@corva/ui 0.49.0-3 → 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.
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AnnotationComments/index.d.ts +1 -1
- package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.d.ts +2 -2
- package/components/Annotations/components/AnnotationsList/index.d.ts +3 -3
- package/components/AppVersionsSelect/AppVersionsSelect.d.ts +1 -1
- package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
- package/components/AssetEditor/AssetEditorAutocomplete.d.ts +4 -4
- package/components/AssetEditor/SingleAssetEditor.d.ts +2 -2
- package/components/Attachment/index.d.ts +2 -2
- package/components/Avatar/index.d.ts +81 -46
- package/components/Avatar/index.d.ts.map +1 -1
- package/components/Avatar/index.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/components/Chart/options.d.ts +10 -2
- package/components/Chart/options.d.ts.map +1 -1
- package/components/Chart/tooltip.d.ts +2 -0
- package/components/Chart/tooltip.d.ts.map +1 -0
- package/components/CollapsableSidebar.d.ts +3 -3
- package/components/ColorPicker/ColorPicker.d.ts +2 -43
- package/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/components/ColorPicker/ColorPicker.js +1 -1
- package/components/ColorPicker/index.d.ts +1 -1
- package/components/ColorPicker/index.d.ts.map +1 -1
- package/components/ColorPickerPalette/ColorPickerPalette.d.ts +2 -17
- package/components/ColorPickerPalette/ColorPickerPalette.d.ts.map +1 -1
- package/components/Comment/CommentIcon/index.d.ts +2 -1
- package/components/Comment/CommentIcon/index.d.ts.map +1 -1
- package/components/Comment/index.d.ts +3 -3
- package/components/CommentInput/index.d.ts +5 -5
- package/components/CommentsInfo/index.d.ts +3 -3
- package/components/ConfirmationDialog.d.ts +3 -3
- package/components/Counter/index.d.ts +35 -24
- package/components/Counter/index.d.ts.map +1 -1
- package/components/Counter/index.js +1 -1
- package/components/DateTimePicker/index.d.ts +14 -21
- package/components/DateTimePicker/index.d.ts.map +1 -1
- package/components/DateTimePicker/index.js +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts +31 -25
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/components/DevCenter/AppSettingsPopover/index.d.ts +1 -1
- package/components/DevCenter/AppSettingsPopover/index.d.ts.map +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.d.ts +58 -66
- package/components/DevCenter/AppSideBar/AppSideBar.d.ts.map +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/effects/useAppMaximized.d.ts +2 -2
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/components/DocumentViewer/DocumentViewer.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/sharedStyles.d.ts +1 -1
- package/components/EditableItem/EditableItem/index.d.ts +33 -37
- package/components/EditableItem/EditableItem/index.d.ts.map +1 -1
- package/components/EditableItem/EditableItem/index.js +1 -1
- package/components/EmbeddedApp/DevCenterEmbeddedApp.d.ts +1 -1
- package/components/EmbeddedApp/EmbeddedApp.d.ts +1 -1
- package/components/ErrorBoundary/ErrorBoundary.d.ts +1 -1
- package/components/FeedItem/FeedItem.d.ts +2 -2
- package/components/FeedItem/feedItemTypes/DepthCommentFeedItem.d.ts +1 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/utils.d.ts +20 -2
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/utils.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/TracesMemoFeedItem.d.ts +1 -1
- package/components/FilePreview/index.d.ts +1 -1
- package/components/FilesLoader/FilesLoader.d.ts +49 -58
- package/components/FilesLoader/FilesLoader.d.ts.map +1 -1
- package/components/FilesLoader/FilesLoader.js +1 -1
- package/components/FilesLoader/Icons/IconWarning.d.ts +1 -1
- package/components/FilesLoader/Icons/IconWarning.js +1 -1
- package/components/FilesLoader/index.d.ts +2 -2
- package/components/FilesLoader/index.d.ts.map +1 -1
- package/components/FilesLoader/useStyles.d.ts +1 -1
- package/components/FilesLoader/useStyles.d.ts.map +1 -1
- package/components/FilesLoader/useStyles.js +1 -1
- package/components/IconButton/index.d.ts +33 -10
- package/components/IconButton/index.d.ts.map +1 -1
- package/components/IconButton/index.js +1 -1
- package/components/IconMenu/index.d.ts +4 -4
- package/components/LoadingIndicator/FullScreenLoadingIndicator.d.ts +14 -17
- package/components/LoadingIndicator/FullScreenLoadingIndicator.d.ts.map +1 -1
- package/components/LoadingIndicator/FullScreenLoadingIndicator.js +1 -1
- package/components/LoadingIndicator/InlineLoadingIndicator.d.ts +14 -17
- package/components/LoadingIndicator/InlineLoadingIndicator.d.ts.map +1 -1
- package/components/LoadingIndicator/InlineLoadingIndicator.js +1 -1
- package/components/LoadingIndicator/Loader.d.ts +14 -15
- package/components/LoadingIndicator/Loader.d.ts.map +1 -1
- package/components/LoadingIndicator/Loader.js +1 -1
- package/components/LoadingIndicator/LoadingIndicator.d.ts +18 -26
- package/components/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
- package/components/LoadingIndicator/LoadingIndicator.js +1 -1
- package/components/LoadingIndicator/types.d.ts +25 -0
- package/components/LoadingIndicator/types.d.ts.map +1 -0
- package/components/LoadingIndicator/types.js +1 -0
- package/components/Modal/CorvaModal.d.ts +60 -69
- package/components/Modal/CorvaModal.d.ts.map +1 -1
- package/components/Modal/CorvaModal.js +1 -1
- package/components/Modal/Modal.d.ts +2 -1
- package/components/Modal/Modal.d.ts.map +1 -1
- package/components/Modal/Modal.js +1 -1
- package/components/Modal/index.d.ts +1 -1
- package/components/Modal/index.d.ts.map +1 -1
- package/components/Notifications/components/Toast.d.ts +1 -1
- package/components/OffsetWellButton/OffsetWellButton.d.ts +29 -28
- package/components/OffsetWellButton/OffsetWellButton.d.ts.map +1 -1
- package/components/OffsetWellButton/OffsetWellButton.js +1 -1
- package/components/OffsetWellButton/index.d.ts +1 -1
- package/components/OffsetWellButton/index.d.ts.map +1 -1
- package/components/OffsetWellChips/Chip.d.ts +19 -29
- package/components/OffsetWellChips/Chip.d.ts.map +1 -1
- package/components/OffsetWellChips/Chip.js +1 -1
- package/components/OffsetWellChips/ChipsContainer.d.ts +9 -11
- package/components/OffsetWellChips/ChipsContainer.d.ts.map +1 -1
- package/components/OffsetWellChips/ChipsContainer.js +1 -1
- package/components/OffsetWellChips/index.d.ts +2 -2
- package/components/OffsetWellChips/index.d.ts.map +1 -1
- package/components/OffsetWellChips/types.d.ts +17 -0
- package/components/OffsetWellChips/types.d.ts.map +1 -0
- package/components/OffsetWellChips/types.js +1 -0
- package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsSelect.d.ts +2 -2
- package/components/OffsetWellPickerV2/constants.d.ts +15 -2
- package/components/OffsetWellPickerV2/constants.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsSelect.d.ts +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/constants.d.ts +15 -2
- package/components/OffsetWellPickerV3/components/CustomSelectionView/constants.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/components/OffsetWellPickerV4/constants.d.ts +15 -2
- package/components/OffsetWellPickerV4/constants.d.ts.map +1 -1
- package/components/ParameterCharts/AddEditTrack.d.ts +2 -2
- package/components/ParameterCharts/components/DataLoadingIndicator.d.ts +1 -1
- package/components/ParameterCharts/components/TrackSettings.d.ts +1 -1
- package/components/PostPreviewDialog/index.d.ts +5 -5
- package/components/RangeSlider/RangeSlider.d.ts +42 -34
- package/components/RangeSlider/RangeSlider.d.ts.map +1 -1
- package/components/RangeSlider/RangeSlider.js +1 -1
- package/components/ResizableTable/ResizableTable.d.ts +8 -10
- package/components/ResizableTable/ResizableTable.d.ts.map +1 -1
- package/components/ResizableTable/ResizableTable.js +1 -1
- package/components/ResizableTable/ResizableTableCell.d.ts +8 -7
- package/components/ResizableTable/ResizableTableCell.d.ts.map +1 -1
- package/components/ResizableTable/ResizableTableCell.js +1 -1
- package/components/ResizableTable/ResizableTableHeaderCell.d.ts +18 -15
- package/components/ResizableTable/ResizableTableHeaderCell.d.ts.map +1 -1
- package/components/ResizableTable/ResizableTableHeaderCell.js +1 -1
- package/components/ResizableTable/index.d.ts +1 -1
- package/components/ResizableTable/index.d.ts.map +1 -1
- package/components/Search/Search.d.ts +68 -69
- package/components/Search/Search.d.ts.map +1 -1
- package/components/Search/Search.js +1 -1
- package/components/Search/styles.d.ts +1 -1
- package/components/Search/styles.d.ts.map +1 -1
- package/components/Select/index.d.ts +44 -24
- package/components/Select/index.d.ts.map +1 -1
- package/components/Select/index.js +1 -1
- package/components/SettingEditors/ColorEditor/index.d.ts +82 -45
- package/components/SettingEditors/ColorEditor/index.d.ts.map +1 -1
- package/components/SettingEditors/ColorEditor/index.js +1 -1
- package/components/SettingEditors/DropdownEditor/index.d.ts +1 -1
- package/components/SettingEditors/RadioEditor/index.d.ts +25 -21
- package/components/SettingEditors/RadioEditor/index.d.ts.map +1 -1
- package/components/SettingEditors/RadioEditor/index.js +1 -1
- package/components/StageDesignVActual/ElementsComparison/ElementsComparison.d.ts +1 -1
- package/components/StageDesignVActual/ElementsComparison/ElementsComparison.d.ts.map +1 -1
- package/components/StageDesignVActual/ElementsComparison/utils.d.ts +4 -1
- package/components/StageDesignVActual/ElementsComparison/utils.d.ts.map +1 -1
- package/components/Stepper/Step.d.ts +37 -42
- package/components/Stepper/Step.d.ts.map +1 -1
- package/components/Stepper/Step.js +1 -1
- package/components/Stepper/Stepper.d.ts +29 -18
- package/components/Stepper/Stepper.d.ts.map +1 -1
- package/components/Stepper/Stepper.js +1 -1
- package/components/Stepper/StepsWrapper.d.ts +16 -14
- package/components/Stepper/StepsWrapper.d.ts.map +1 -1
- package/components/Stepper/StepsWrapper.js +1 -1
- package/components/SwitchControl/index.d.ts +6 -93
- package/components/SwitchControl/index.d.ts.map +1 -1
- package/components/Template/TemplateSharingDialog/ChipSelector.d.ts +1 -1
- package/components/TextField/index.d.ts +1 -1
- package/components/Typography.d.ts +16 -16
- package/components/UserMention/index.d.ts +1 -1
- package/constants/goals.d.ts +31 -4
- package/constants/goals.d.ts.map +1 -1
- package/constants/wellSummary.d.ts +14 -0
- package/constants/wellSummary.d.ts.map +1 -1
- package/hocs/withMUIProvidersHOC.d.ts +1 -1
- package/package.json +1 -1
- package/types.d.ts +1 -0
- package/utils/accuracy.d.ts +1 -1
- package/utils/accuracy.d.ts.map +1 -1
- package/utils/casing/conversion.d.ts +1 -1
- package/utils/casing/conversion.d.ts.map +1 -1
- package/utils/completion.d.ts +1 -1
- package/utils/completion.d.ts.map +1 -1
- package/utils/goals.d.ts +3 -3
- package/utils/goals.d.ts.map +1 -1
- package/utils/mapbox.d.ts +1 -1
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare type ColorPickerPaletteProps = {
|
|
4
|
-
color: string;
|
|
5
|
-
onChange: (convertedColor: string) => void;
|
|
6
|
-
handleClose: () => void;
|
|
7
|
-
anchorEl?: null | Element | ((element: Element) => Element);
|
|
8
|
-
converter?: string;
|
|
9
|
-
popoverAnchorOrigin?: PopoverOrigin;
|
|
10
|
-
popoverTransformOrigin?: PopoverOrigin;
|
|
11
|
-
pickerComponent?: ElementType;
|
|
12
|
-
classes?: {
|
|
13
|
-
root: string;
|
|
14
|
-
};
|
|
15
|
-
enableTransparencyPalette?: boolean;
|
|
16
|
-
};
|
|
17
|
-
declare const _default: import("react").ComponentType<Pick<ColorPickerPaletteProps, "color" | "onChange" | "anchorEl" | "handleClose" | "enableTransparencyPalette" | "converter" | "popoverAnchorOrigin" | "popoverTransformOrigin" | "pickerComponent"> & import("@material-ui/core").StyledComponentProps<"root" | "popper" | "rightLabel" | "topLabel">>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: import("react").ComponentType<Pick<{}, never> & import("@material-ui/core").StyledComponentProps<"root" | "popper" | "topLabel" | "rightLabel">>;
|
|
18
3
|
export default _default;
|
|
19
4
|
//# sourceMappingURL=ColorPickerPalette.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorPickerPalette.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPickerPalette/ColorPickerPalette.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ColorPickerPalette.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPickerPalette/ColorPickerPalette.tsx"],"names":[],"mappings":";;AAwFA,wBAoB6B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
|
|
2
|
+
interface CommentIconProps extends PropTypes.InferProps<typeof commentIconProps> {
|
|
3
|
+
}
|
|
3
4
|
declare const CommentIcon: {
|
|
4
5
|
({ displayName, imgSrc, size }: CommentIconProps): JSX.Element;
|
|
5
6
|
propTypes: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Comment/CommentIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAiCnC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Comment/CommentIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAiCnC,UAAU,gBAAiB,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAEnF,QAAA,MAAM,WAAW;oCAAmC,gBAAgB,GAAG,WAAW;;;;;;;;;;;CAYjF,CAAC;AAEF,QAAA,MAAM,gBAAgB;;;;CAIrB,CAAC;AAUF,eAAe,WAAW,CAAC"}
|
|
@@ -10,15 +10,15 @@ declare const _default: import("react").ComponentType<Pick<Pick<PropTypes.InferP
|
|
|
10
10
|
currentUser: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
|
|
11
11
|
classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{}>>>;
|
|
12
12
|
isNative: PropTypes.Requireable<boolean>;
|
|
13
|
-
}>, "
|
|
13
|
+
}>, "comment" | "classes" | "handleDeleteCallback" | "patchCommentCallback"> & {
|
|
14
14
|
companyId?: number;
|
|
15
15
|
currentUser?: PropTypes.InferProps<PropTypes.ValidationMap<any>>;
|
|
16
|
-
isNative?: boolean;
|
|
17
16
|
handleEdit?: (...args: any[]) => any;
|
|
17
|
+
isNative?: boolean;
|
|
18
18
|
showOnMount?: boolean;
|
|
19
19
|
spaceAround?: boolean;
|
|
20
20
|
handleShowOnMount?: (...args: any[]) => any;
|
|
21
|
-
} & {}, "
|
|
21
|
+
} & {}, "comment" | "companyId" | "currentUser" | "handleDeleteCallback" | "patchCommentCallback" | "handleEdit" | "isNative" | "showOnMount" | "spaceAround" | "handleShowOnMount"> & import("@material-ui/core/styles").StyledComponentProps<"iconButtonRoot" | "commentWrapper" | "timeRoot" | "textRoot" | "userName">>;
|
|
22
22
|
export default _default;
|
|
23
23
|
import PropTypes from "prop-types";
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -28,21 +28,20 @@ declare const _default: import("react").ComponentType<Pick<Pick<PropTypes.InferP
|
|
|
28
28
|
companyId: PropTypes.Requireable<number>;
|
|
29
29
|
parentId: PropTypes.Requireable<string>;
|
|
30
30
|
}>, "classes" | "postComment"> & {
|
|
31
|
+
companyId?: number;
|
|
31
32
|
autoFocus?: boolean;
|
|
32
33
|
disabled?: boolean;
|
|
33
|
-
companyId?: number;
|
|
34
|
-
currentUser?: PropTypes.InferProps<PropTypes.ValidationMap<any>>;
|
|
35
|
-
isNative?: boolean;
|
|
36
34
|
inputRef?: PropTypes.InferProps<{
|
|
37
35
|
current: PropTypes.Requireable<PropTypes.InferProps<{
|
|
38
36
|
focus: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
39
37
|
}>>;
|
|
40
38
|
}>;
|
|
39
|
+
currentUser?: PropTypes.InferProps<PropTypes.ValidationMap<any>>;
|
|
41
40
|
setIsPosting?: (...args: any[]) => any;
|
|
42
41
|
patchCommentCallback?: (...args: any[]) => any;
|
|
43
42
|
postCommentCallback?: (...args: any[]) => any;
|
|
44
43
|
onMount?: (...args: any[]) => any;
|
|
45
|
-
|
|
44
|
+
isNative?: boolean;
|
|
46
45
|
spaceAround?: boolean;
|
|
47
46
|
exitEditMode?: (...args: any[]) => any;
|
|
48
47
|
setIsEditting?: (...args: any[]) => any;
|
|
@@ -54,7 +53,8 @@ declare const _default: import("react").ComponentType<Pick<Pick<PropTypes.InferP
|
|
|
54
53
|
file_name: PropTypes.Requireable<string>;
|
|
55
54
|
}>;
|
|
56
55
|
editComment?: string;
|
|
57
|
-
|
|
56
|
+
parentId?: string;
|
|
57
|
+
} & {}, "companyId" | "autoFocus" | "disabled" | "inputRef" | "currentUser" | "setIsPosting" | "patchCommentCallback" | "postComment" | "postCommentCallback" | "onMount" | "isNative" | "spaceAround" | "exitEditMode" | "setIsEditting" | "editFeedItemId" | "editCommentId" | "editAttachment" | "editComment" | "parentId"> & import("@material-ui/core").StyledComponentProps<"input" | "inputRoot" | "sendButton" | "inputAdornment" | "paperRoot" | "inputEl" | "additionalActionButton" | "nativeActionButton" | "fileUploadingError" | "inputMain" | "inputHelper" | "cancelText" | "highlightedLabel" | "iconTooltip">>;
|
|
58
58
|
export default _default;
|
|
59
59
|
import PropTypes from "prop-types";
|
|
60
60
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -20,15 +20,15 @@ declare const _default: import("react").ComponentType<Pick<Pick<Pick<{
|
|
|
20
20
|
isNative: PropTypes.Requireable<boolean>;
|
|
21
21
|
small: PropTypes.Requireable<boolean>;
|
|
22
22
|
currentUser: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
23
|
-
}>, "small" | "classes" | "currentUser" | "
|
|
23
|
+
}>, "small" | "classes" | "currentUser" | "commentsCount" | "isNative" | "usersWhoCommented" | "activeUsersList" | "likesCount" | "usersWhoLike" | "onCommentsClick">, "classes" | "usersWhoCommented" | "activeUsersList"> & {
|
|
24
24
|
small?: boolean;
|
|
25
25
|
currentUser?: PropTypes.InferProps<{}>;
|
|
26
|
-
isNative?: boolean;
|
|
27
26
|
commentsCount?: number;
|
|
27
|
+
isNative?: boolean;
|
|
28
28
|
likesCount?: number;
|
|
29
29
|
usersWhoLike?: PropTypes.InferProps<{}>[];
|
|
30
30
|
onCommentsClick?: (...args: any[]) => any;
|
|
31
|
-
} & {}, "small" | "currentUser" | "
|
|
31
|
+
} & {}, "small" | "currentUser" | "commentsCount" | "isNative" | "usersWhoCommented" | "activeUsersList" | "likesCount" | "usersWhoLike" | "onCommentsClick"> & import("@material-ui/core").StyledComponentProps<"tooltip" | "avatarInList" | "reactionTypographyRoot">>;
|
|
32
32
|
export default _default;
|
|
33
33
|
import PropTypes from "prop-types";
|
|
34
34
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,14 +12,14 @@ declare const _default: import("react").ComponentType<Pick<Pick<PropTypes.InferP
|
|
|
12
12
|
classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{}>>>;
|
|
13
13
|
}>, "classes" | "text" | "open"> & {
|
|
14
14
|
title?: string;
|
|
15
|
-
isShowCancel?: boolean;
|
|
16
|
-
handleOk?: (...args: any[]) => any;
|
|
17
15
|
handleClose?: (...args: any[]) => any;
|
|
16
|
+
handleOk?: (...args: any[]) => any;
|
|
18
17
|
okText?: string;
|
|
18
|
+
isShowCancel?: boolean;
|
|
19
19
|
confirmation?: string;
|
|
20
20
|
confirmationText?: string;
|
|
21
21
|
disableOk?: boolean;
|
|
22
|
-
} & {}, "title" | "text" | "open" | "
|
|
22
|
+
} & {}, "title" | "text" | "open" | "handleClose" | "handleOk" | "okText" | "isShowCancel" | "confirmation" | "confirmationText" | "disableOk"> & import("@material-ui/core/styles").StyledComponentProps<"actionButton" | "confirmation">>;
|
|
23
23
|
export default _default;
|
|
24
24
|
import PropTypes from "prop-types";
|
|
25
25
|
//# sourceMappingURL=ConfirmationDialog.d.ts.map
|
|
@@ -1,26 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const classes: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
6
|
-
const size: PropTypes.Requireable<string>;
|
|
7
|
-
const limited: PropTypes.Requireable<boolean>;
|
|
8
|
-
const clickable: PropTypes.Requireable<boolean>;
|
|
9
|
-
const label: PropTypes.Validator<string>;
|
|
10
|
-
const tooltip: PropTypes.Requireable<string>;
|
|
11
|
-
}
|
|
12
|
-
namespace defaultProps {
|
|
13
|
-
const classes_1: {};
|
|
14
|
-
export { classes_1 as classes };
|
|
15
|
-
const size_1: string;
|
|
16
|
-
export { size_1 as size };
|
|
17
|
-
const limited_1: boolean;
|
|
18
|
-
export { limited_1 as limited };
|
|
19
|
-
const clickable_1: boolean;
|
|
20
|
-
export { clickable_1 as clickable };
|
|
21
|
-
const tooltip_1: string;
|
|
22
|
-
export { tooltip_1 as tooltip };
|
|
23
|
-
}
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import { ChipProps as MuiChipProps } from '@material-ui/core';
|
|
3
|
+
interface CounterProps extends Omit<MuiChipProps, 'classes' | 'size' | 'label'>, PropTypes.InferProps<typeof counterPropTypes> {
|
|
4
|
+
size?: 'small' | 'medium' | 'large';
|
|
24
5
|
}
|
|
25
|
-
|
|
6
|
+
declare const Counter: {
|
|
7
|
+
(props: CounterProps): JSX.Element;
|
|
8
|
+
propTypes: {
|
|
9
|
+
classes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
10
|
+
root: PropTypes.Requireable<string>;
|
|
11
|
+
}>>;
|
|
12
|
+
size: PropTypes.Requireable<string>;
|
|
13
|
+
limited: PropTypes.Requireable<boolean>;
|
|
14
|
+
clickable: PropTypes.Requireable<boolean>;
|
|
15
|
+
label: PropTypes.Validator<string>;
|
|
16
|
+
tooltip: PropTypes.Requireable<string>;
|
|
17
|
+
};
|
|
18
|
+
defaultProps: {
|
|
19
|
+
classes: {};
|
|
20
|
+
size: string;
|
|
21
|
+
limited: boolean;
|
|
22
|
+
clickable: boolean;
|
|
23
|
+
tooltip: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
declare const counterPropTypes: {
|
|
27
|
+
classes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
28
|
+
root: PropTypes.Requireable<string>;
|
|
29
|
+
}>>;
|
|
30
|
+
size: PropTypes.Requireable<string>;
|
|
31
|
+
limited: PropTypes.Requireable<boolean>;
|
|
32
|
+
clickable: PropTypes.Requireable<boolean>;
|
|
33
|
+
label: PropTypes.Validator<string>;
|
|
34
|
+
tooltip: PropTypes.Requireable<string>;
|
|
35
|
+
};
|
|
36
|
+
export default Counter;
|
|
26
37
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Counter/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Counter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,OAAO,EAAmB,SAAS,IAAI,YAAY,EAAuB,MAAM,mBAAmB,CAAC;AAkGpG,UAAU,YAAa,SAAQ,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC;IAC5H,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CACrC;AAED,QAAA,MAAM,OAAO;YAAW,YAAY,GAAG,WAAW;;;;;;;;;;;;;;;;;;CAwBjD,CAAC;AAEF,QAAA,MAAM,gBAAgB;;;;;;;;;CASrB,CAAC;AAYF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{__assign as i}from"../../_virtual/_tslib.js";import{jsx as t}from"react/jsx-runtime";import e from"prop-types";import o from"classnames";import{capitalize as p}from"lodash";import{makeStyles as r,Tooltip as l,Chip as a}from"@material-ui/core";import{Close as s}from"@material-ui/icons";var n=r((function(i){return{rootChip:{"&.MuiChip-root":{backgroundColor:i.palette.background.b9,color:i.palette.primary.text6,textAlign:"center","&:hover":{color:i.palette.primary.contrastText,"& .MuiSvgIcon-root":{color:i.palette.primary.contrastText}},"& span.MuiChip-label":{padding:0}}},tooltip:{marginTop:"10px"},closeIcon:{"&.MuiSvgIcon-root.MuiChip-deleteIcon":{width:16,height:16,left:18,top:4,margin:"0px 0px 0px 4px",color:i.palette.primary.text6}},sizeSmall:{"&.MuiChip-root":{minWidth:16,height:16,padding:"1px 2px","& span":{fontSize:"11px",lineHeight:"14px"}}},sizeSmallLimited:{"&.MuiChip-root":{padding:"1px 3px"}},sizeMedium:{"&.MuiChip-root":{minWidth:24,height:24,padding:"2px 4px","& span":{fontSize:"14px",lineHeight:"20px"}}},sizeMediumLimited:{"&.MuiChip-root":{padding:"2px 6px"}},sizeMediumClickable:{"&.MuiChip-root":{padding:"2px 6px"}},sizeLarge:{"&.MuiChip-root":{minWidth:32,height:32,padding:"5px 7px","& span":{fontSize:"16px",lineHeight:"22px"}}},sizeLargeLimited:{"&.MuiChip-root":{padding:"5px 8px"}},sizeLargeClickable:{"&.MuiChip-root":{padding:"5px 8px"}}}})),c=function(e){var r=e.classes,c=e.size,m=e.limited,d=e.clickable,x=e.tooltip,h=n();return t(l,i({title:x,classes:{tooltip:h.tooltip}},{children:t(a,i({},e,{classes:i(i({},r),{root:o(r.root,h.rootChip,h["size".concat(p(c))],m&&h["size".concat(p(c),"Limited")],d&&h["size".concat(p(c),"Clickable")])}),clickable:d,deleteIcon:t(s,{className:h.closeIcon,fontSize:"small"})}))}))},m={classes:e.shape({root:e.string}),size:e.oneOf(["small","medium","large"]),limited:e.bool,clickable:e.bool,label:e.string.isRequired,tooltip:e.string};c.propTypes=m,c.defaultProps={classes:{},size:"medium",limited:!1,clickable:!1,tooltip:""};export{c as default};
|
|
@@ -1,26 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
className: any;
|
|
5
|
-
PopoverProps: any;
|
|
6
|
-
format: any;
|
|
7
|
-
}): JSX.Element;
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import { KeyboardDateTimePickerProps } from '@material-ui/pickers';
|
|
3
|
+
declare function DateTimePicker({ className, PopoverProps, format, ...otherProps }: KeyboardDateTimePickerProps): JSX.Element;
|
|
8
4
|
declare namespace DateTimePicker {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
var propTypes: {
|
|
6
|
+
className: PropTypes.Requireable<string>;
|
|
7
|
+
PopoverProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
12
8
|
className: PropTypes.Requireable<string>;
|
|
13
9
|
}>>;
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export { DATE_TIME_FORMAT as format };
|
|
22
|
-
}
|
|
10
|
+
format: PropTypes.Requireable<string>;
|
|
11
|
+
};
|
|
12
|
+
var defaultProps: {
|
|
13
|
+
className: string;
|
|
14
|
+
PopoverProps: {};
|
|
15
|
+
format: string;
|
|
16
|
+
};
|
|
23
17
|
}
|
|
24
|
-
|
|
25
|
-
import { DATE_TIME_FORMAT } from "../../constants/dateTimeFormat";
|
|
18
|
+
export default DateTimePicker;
|
|
26
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DateTimePicker/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DateTimePicker/index.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,OAAO,EAA0B,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AA4B3F,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,EAAE,2BAA2B,GAAG,GAAG,CAAC,OAAO,CAepH;kBAfQ,cAAc;;;;;;;;;;;;;;AA+BvB,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r
|
|
1
|
+
import{__rest as o,__assign as r}from"../../_virtual/_tslib.js";import{jsx as t}from"react/jsx-runtime";import a from"classnames";import e from"prop-types";import m from"moment";import{KeyboardDateTimePicker as i}from"@material-ui/pickers";import{makeStyles as p}from"@material-ui/core";import{Event as s}from"@material-ui/icons";import{DATE_TIME_FORMAT as n}from"../../constants/dateTimeFormat.js";var c=p((function(o){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:o.palette.primary.main},"& .MuiIconButton-root":{marginRight:-7,padding:7},"& .MuiSvgIcon-root":{fill:"".concat(o.palette.primary.text6," !important")}},paper:{marginTop:8}}}));function u(e){var p=e.className,n=e.PopoverProps,u=e.format,l=o(e,["className","PopoverProps","format"]),f=c();return t(i,r({dateRangeIcon:t(s,{}),keyboardIcon:t(s,{}),format:u,refuse:/[^(\w|\d)]+/gi,placeholder:m().format(u)},l,{PopoverProps:r({className:f.paper},n),className:a(f.dateTimePickerInput,p)}))}u.propTypes={className:e.string,PopoverProps:e.shape({className:e.string}),format:e.string},u.defaultProps={className:"",PopoverProps:{},format:n};export{u as default};
|
|
@@ -1,30 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
defaultScrollable: any;
|
|
7
|
-
maxHeight: any;
|
|
8
|
-
}): JSX.Element;
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import { PopoverProps } from '@material-ui/core';
|
|
3
|
+
interface AppSettingsPopoverProps extends PopoverProps, PropTypes.InferProps<typeof appSettingsPopoverPropTypes> {
|
|
4
|
+
}
|
|
5
|
+
declare function AppSettingsPopover({ children, iconSettingsProps, defaultScrollable, maxHeight, ...popoverProps }: AppSettingsPopoverProps): JSX.Element;
|
|
9
6
|
declare namespace AppSettingsPopover {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const iconSettingsProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
7
|
+
var propTypes: {
|
|
8
|
+
iconSettingsProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
13
9
|
iconSize: PropTypes.Requireable<string>;
|
|
10
|
+
tooltipProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
11
|
+
title: PropTypes.Requireable<string>;
|
|
12
|
+
}>>;
|
|
14
13
|
}>>;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const maxHeight_1: any;
|
|
26
|
-
export { maxHeight_1 as maxHeight };
|
|
27
|
-
}
|
|
14
|
+
defaultScrollable: PropTypes.Requireable<boolean>;
|
|
15
|
+
maxHeight: PropTypes.Requireable<number>;
|
|
16
|
+
};
|
|
17
|
+
var defaultProps: {
|
|
18
|
+
iconSettingsProps: {
|
|
19
|
+
iconSize: string;
|
|
20
|
+
};
|
|
21
|
+
defaultScrollable: boolean;
|
|
22
|
+
maxHeight: any;
|
|
23
|
+
};
|
|
28
24
|
}
|
|
29
|
-
|
|
25
|
+
declare const appSettingsPopoverPropTypes: {
|
|
26
|
+
iconSettingsProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
27
|
+
iconSize: PropTypes.Requireable<string>;
|
|
28
|
+
tooltipProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
29
|
+
title: PropTypes.Requireable<string>;
|
|
30
|
+
}>>;
|
|
31
|
+
}>>;
|
|
32
|
+
defaultScrollable: PropTypes.Requireable<boolean>;
|
|
33
|
+
maxHeight: PropTypes.Requireable<number>;
|
|
34
|
+
};
|
|
35
|
+
export default AppSettingsPopover;
|
|
30
36
|
//# sourceMappingURL=AppSettingsPopover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/AppSettingsPopover.
|
|
1
|
+
{"version":3,"file":"AppSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/AppSettingsPopover.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,OAAO,EAAuB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAsDtE,UAAU,uBAAwB,SAAQ,YAAY,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,2BAA2B,CAAC;CAAG;AAEnH,iBAAS,kBAAkB,CAAC,EAC1B,QAAQ,EACR,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,GAAG,YAAY,EAChB,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CA8DvC;kBApEQ,kBAAkB;;;;;;;;;;;;;;;;;;;AAsE3B,QAAA,MAAM,2BAA2B;;;;;;;;;CAIhC,CAAC;AAUF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"
|
|
1
|
+
import{__rest as e,__assign as o}from"../../../_virtual/_tslib.js";import{jsxs as t,Fragment as r,jsx as i}from"react/jsx-runtime";import{useState as l}from"react";import n from"prop-types";import a from"classnames";import{makeStyles as c,Popover as p}from"@material-ui/core";import{Settings as s,Close as d}from"@material-ui/icons";import h from"../../IconButton/index.js";var g=c((function(e){return{popoverPaper:{minWidth:286,width:286,overflowY:"hidden",backgroundColor:e.palette.background.b9,maxHeight:function(e){var o=e.maxHeight;return o?o-24:"calc(100% - 24px)"},"&.scrollable":{height:function(e){return e.maxHeight||"100%"}}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(e.palette.background.b9,", ").concat(e.palette.background.b9," 79%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"},shadow:{position:"absolute",bottom:0,width:"100%",height:16,background:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9," 100%)")}}}));function m(n){var c,m=n.children,u=n.iconSettingsProps,b=n.defaultScrollable,f=n.maxHeight,v=e(n,["children","iconSettingsProps","defaultScrollable","maxHeight"]),x=g({maxHeight:f}),C=l(null),H=C[0],S=C[1],k=l(!0),w=k[0],P=k[1],T=function(){S(null)},z=Boolean(H);return t(r,{children:[i(h,o({onClick:function(e){return S(e.currentTarget)}},u,{children:i(s,{})})),t(p,o({open:z,anchorEl:H,onClose:T,anchorOrigin:{vertical:w?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},v,{classes:o(o({},null==v?void 0:v.classes),{paper:a(x.popoverPaper,w&&"scrollable",null===(c=null==v?void 0:v.classes)||void 0===c?void 0:c.paper)})},{children:[t("div",o({className:a(x.popoverHeader,w&&"scrollable")},{children:[i("div",o({className:x.headerTitle},{children:"Settings"})),i(h,o({tooltipProps:{title:"Close"},onClick:T},{children:i(d,{})}))]})),i("div",o({className:a(x.popoverContentContainer,w&&"scrollable"),ref:function(e){e&&e.scrollHeight<=e.clientHeight&&!b&&P(!1)}},{children:i("div",o({className:x.popoverContent},{children:m}))})),i("div",{className:x.shadow})]}))]})}var u={iconSettingsProps:n.shape({iconSize:n.string,tooltipProps:n.shape({title:n.string})}),defaultScrollable:n.bool,maxHeight:n.number};m.propTypes=u,m.defaultProps={iconSettingsProps:{iconSize:"small"},defaultScrollable:!1,maxHeight:null};export{m as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from './AppSettingsPopover';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,68 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
drawerPaperClassName: any;
|
|
6
|
-
expandedTooltipTitle: any;
|
|
7
|
-
collapsedTooltipTitle: any;
|
|
8
|
-
header: any;
|
|
9
|
-
headerIcon: any;
|
|
10
|
-
headerTitleIcon: any;
|
|
11
|
-
isOpen: any;
|
|
12
|
-
openedDrawerWidth: any;
|
|
13
|
-
setIsOpen: any;
|
|
14
|
-
size: any;
|
|
15
|
-
allOptionsButtonShown: any;
|
|
16
|
-
isAllOptionsSelected: any;
|
|
17
|
-
onAllOptionsClick: any;
|
|
18
|
-
}): JSX.Element;
|
|
19
|
-
declare namespace AppSideBar {
|
|
20
|
-
namespace propTypes {
|
|
21
|
-
const anchor: PropTypes.Requireable<string>;
|
|
22
|
-
const children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
23
|
-
const drawerPaperClassName: PropTypes.Requireable<string>;
|
|
24
|
-
const expandedTooltipTitle: PropTypes.Requireable<string>;
|
|
25
|
-
const collapsedTooltipTitle: PropTypes.Requireable<string>;
|
|
26
|
-
const header: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
27
|
-
const headerIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
28
|
-
const headerTitleIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
29
|
-
const isOpen: PropTypes.Requireable<boolean>;
|
|
30
|
-
const openedDrawerWidth: PropTypes.Requireable<NonNullable<string | number>>;
|
|
31
|
-
const setIsOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
|
-
const size: PropTypes.Requireable<string>;
|
|
33
|
-
const allOptionsButtonShown: PropTypes.Requireable<boolean>;
|
|
34
|
-
const isAllOptionsSelected: PropTypes.Requireable<boolean>;
|
|
35
|
-
const onAllOptionsClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
36
|
-
}
|
|
37
|
-
namespace defaultProps {
|
|
38
|
-
const anchor_1: string;
|
|
39
|
-
export { anchor_1 as anchor };
|
|
40
|
-
const drawerPaperClassName_1: string;
|
|
41
|
-
export { drawerPaperClassName_1 as drawerPaperClassName };
|
|
42
|
-
const expandedTooltipTitle_1: string;
|
|
43
|
-
export { expandedTooltipTitle_1 as expandedTooltipTitle };
|
|
44
|
-
const collapsedTooltipTitle_1: string;
|
|
45
|
-
export { collapsedTooltipTitle_1 as collapsedTooltipTitle };
|
|
46
|
-
const header_1: any;
|
|
47
|
-
export { header_1 as header };
|
|
48
|
-
const headerIcon_1: any;
|
|
49
|
-
export { headerIcon_1 as headerIcon };
|
|
50
|
-
const headerTitleIcon_1: any;
|
|
51
|
-
export { headerTitleIcon_1 as headerTitleIcon };
|
|
52
|
-
const isOpen_1: boolean;
|
|
53
|
-
export { isOpen_1 as isOpen };
|
|
54
|
-
const openedDrawerWidth_1: number;
|
|
55
|
-
export { openedDrawerWidth_1 as openedDrawerWidth };
|
|
56
|
-
export { noop as setIsOpen };
|
|
57
|
-
const size_1: string;
|
|
58
|
-
export { size_1 as size };
|
|
59
|
-
const allOptionsButtonShown_1: boolean;
|
|
60
|
-
export { allOptionsButtonShown_1 as allOptionsButtonShown };
|
|
61
|
-
const isAllOptionsSelected_1: boolean;
|
|
62
|
-
export { isAllOptionsSelected_1 as isAllOptionsSelected };
|
|
63
|
-
export { noop as onAllOptionsClick };
|
|
64
|
-
}
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
declare type Anchor = 'left' | 'right';
|
|
3
|
+
interface AppSideBarProps extends PropTypes.InferProps<typeof appSideBarPropTypes> {
|
|
4
|
+
anchor: Anchor;
|
|
65
5
|
}
|
|
66
|
-
|
|
67
|
-
|
|
6
|
+
declare const AppSideBar: {
|
|
7
|
+
({ anchor, children, drawerPaperClassName, expandedTooltipTitle, collapsedTooltipTitle, header, headerIcon, headerTitleIcon, isOpen, openedDrawerWidth, setIsOpen, size, allOptionsButtonShown, isAllOptionsSelected, onAllOptionsClick, }: AppSideBarProps): JSX.Element;
|
|
8
|
+
propTypes: {
|
|
9
|
+
anchor: PropTypes.Requireable<string>;
|
|
10
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
11
|
+
drawerPaperClassName: PropTypes.Requireable<string>;
|
|
12
|
+
expandedTooltipTitle: PropTypes.Requireable<string>;
|
|
13
|
+
collapsedTooltipTitle: PropTypes.Requireable<string>;
|
|
14
|
+
header: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
15
|
+
headerIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
16
|
+
headerTitleIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
17
|
+
isOpen: PropTypes.Requireable<boolean>;
|
|
18
|
+
openedDrawerWidth: PropTypes.Requireable<NonNullable<string | number>>;
|
|
19
|
+
setIsOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
+
size: PropTypes.Requireable<string>;
|
|
21
|
+
allOptionsButtonShown: PropTypes.Requireable<boolean>;
|
|
22
|
+
isAllOptionsSelected: PropTypes.Requireable<boolean>;
|
|
23
|
+
onAllOptionsClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
24
|
+
};
|
|
25
|
+
defaultProps: {
|
|
26
|
+
anchor: string;
|
|
27
|
+
drawerPaperClassName: string;
|
|
28
|
+
expandedTooltipTitle: string;
|
|
29
|
+
collapsedTooltipTitle: string;
|
|
30
|
+
header: any;
|
|
31
|
+
headerIcon: any;
|
|
32
|
+
headerTitleIcon: any;
|
|
33
|
+
isOpen: boolean;
|
|
34
|
+
openedDrawerWidth: number;
|
|
35
|
+
setIsOpen: (...args: any[]) => void;
|
|
36
|
+
size: string;
|
|
37
|
+
allOptionsButtonShown: boolean;
|
|
38
|
+
isAllOptionsSelected: boolean;
|
|
39
|
+
onAllOptionsClick: (...args: any[]) => void;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
declare const appSideBarPropTypes: {
|
|
43
|
+
anchor: PropTypes.Requireable<string>;
|
|
44
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
45
|
+
drawerPaperClassName: PropTypes.Requireable<string>;
|
|
46
|
+
expandedTooltipTitle: PropTypes.Requireable<string>;
|
|
47
|
+
collapsedTooltipTitle: PropTypes.Requireable<string>;
|
|
48
|
+
header: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
49
|
+
headerIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
50
|
+
headerTitleIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
51
|
+
isOpen: PropTypes.Requireable<boolean>;
|
|
52
|
+
openedDrawerWidth: PropTypes.Requireable<NonNullable<string | number>>;
|
|
53
|
+
setIsOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
|
54
|
+
size: PropTypes.Requireable<string>;
|
|
55
|
+
allOptionsButtonShown: PropTypes.Requireable<boolean>;
|
|
56
|
+
isAllOptionsSelected: PropTypes.Requireable<boolean>;
|
|
57
|
+
onAllOptionsClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
58
|
+
};
|
|
59
|
+
export default AppSideBar;
|
|
68
60
|
//# sourceMappingURL=AppSideBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSideBar.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSideBar/AppSideBar.
|
|
1
|
+
{"version":3,"file":"AppSideBar.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSideBar/AppSideBar.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAoBnC,aAAK,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE/B,UAAU,eAAgB,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC;IAChF,MAAM,EAAE,MAAM,CAAC;CAChB;AAmHD,QAAA,MAAM,UAAU;gPAgBb,eAAe,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+F/B,CAAC;AAEF,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;CAgBxB,CAAC;AAqBF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as o,Fragment as t,jsx as n}from"react/jsx-runtime";import{useState as r,useRef as i,useEffect as a}from"react";import l from"prop-types";import d from"classnames";import{noop as p}from"lodash";import{makeStyles as c,createStyles as s,Drawer as h,Box as m,Tooltip as u}from"@material-ui/core";import f from"@material-ui/icons/ChevronLeftRounded";import g from"@material-ui/icons/ChevronRightRounded";import x from"@material-ui/icons/Sort";import b from"@material-ui/icons/Check";import w from"@material-ui/icons/Close";import C from"../../IconButton/index.js";import T from"../../Button/index.js";var S=c((function(e){var o,t;return s({drawer:function(o){var t;return(t={height:"100%",position:"relative",width:o.openedDrawerWidth,borderTop:"1px solid",borderTopColor:e.palette.background.b7,boxShadow:"4px 0px 8px rgba(0, 0, 0, 0.15)"})["&.".concat("closed")]={width:"48px"},t},drawerPaper:(o={position:"relative",width:"100%",backgroundColor:e.palette.background.b5},o["&.".concat("closed")]={cursor:"pointer","&:hover":{backgroundColor:e.palette.background.b7,"& > $header":{backgroundColor:e.palette.background.b7}}},o["&.MuiDrawer-paperAnchorDockedLeft"]={borderRight:"none"},o["&.MuiDrawer-paperAnchorDockedRight"]={borderLeft:"none"},o),header:(t={height:48,borderBottom:"1px solid",borderBottomColor:e.palette.background.b7,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",top:0,left:0,right:0,letterSpacing:"1px",textTransform:"uppercase",fontSize:"14px",fontWeight:500,lineHeight:"20px",backgroundColor:e.palette.background.b5},t["&.".concat("open")]={padding:e.spacing(1.5),justifyContent:"flex-start"},t["&.".concat("withShadow")]={zIndex:1,boxShadow:"-18px 12px 12px #272727"},t),openToggleIconOpen:{transform:"rotate(180deg)"},openToggleContainer:function(e){var o,t=e.anchor;return(o={alignItems:"center",bottom:0,display:"flex",flex:"0 0",height:48,justifyContent:"center",padding:6,position:"absolute",width:"100%"})["&.".concat("withShadow")]={zIndex:1,boxShadow:"-18px -12px 12px #272727"},o["&.".concat("open")]={justifyContent:"left"===t?"flex-end":"flex-start",paddingRight:6},o},contentWrapper:{marginTop:48,height:"calc(100% - 96px)",overflowY:"auto"},content:{padding:"16px 12px",display:"flex",flexDirection:"column"},selectAllButton:{textTransform:"none",fontSize:"10px",lineHeight:"14px",letterSpacing:"0.4px",marginLeft:16,"& .MuiButton-iconSizeMedium > *:first-child":{fontSize:"12px !important"},"& .MuiButton-startIcon":{marginRight:4}},headerIcon:{cursor:"pointer"},headerIconText:{cursor:"pointer",paddingLeft:7,letterSpacing:1}})})),I=function(l){var p,c=l.anchor,s=l.children,I=l.drawerPaperClassName,k=l.expandedTooltipTitle,v=l.collapsedTooltipTitle,O=l.header,A=l.headerIcon,B=l.headerTitleIcon,N=l.isOpen,D=l.openedDrawerWidth,y=l.setIsOpen,z=l.size,j=l.allOptionsButtonShown,R=l.isAllOptionsSelected,W=l.onAllOptionsClick,P=r(!1),L=P[0],M=P[1],_=i(),H=S({anchor:c,openedDrawerWidth:D||{small:235,medium:354,large:473}[z]});a((function(){var e=_.current,o=e.scrollHeight,t=e.clientHeight;M(o>t)}));var q="left"===c?g:f;return o(h,e({"data-testid":"".concat("AppSideBar","_Drawer"),onClick:function(){N||y(!0)},className:d(H.drawer,!N&&"closed"),variant:"permanent",classes:{paper:d(H.drawerPaper,I,!N&&"closed")},anchor:c},{children:[o("div",e({className:d(H.header,N&&"open",L&&"withShadow"),onClick:function(){N&&y(!1)}},{children:[N&&o(t,{children:[B||n(x,{className:H.headerIcon}),n("div",e({"data-testid":"".concat("AppSideBar","_header"),className:H.headerIconText},{children:O})),j&&n(T,e({className:H.selectAllButton,onClick:function(e){e.stopPropagation(),W(e)},startIcon:n(R?w:b,{})},{children:R?"Clear All":"Select All"}))]}),!N&&A]})),n("div",e({className:H.contentWrapper,ref:_},{children:n("div",e({className:H.content},{children:N&&s}))})),n(m,e({className:d(H.openToggleContainer,(p={},p.open=N,p.withShadow=L,p))},{children:n(u,e({title:N?k:v,placement:"bottom"},{children:n("div",{children:n(C,e({"aria-label":"toggle sidebar",onClick:function(){y(!N)}},{children:n(q,{"data-testid":"".concat("AppSideBar","_arrowButton"),className:d(N&&H.openToggleIconOpen)})}))})}))}))]}))},k={anchor:l.oneOf(["left","right"]),children:l.node.isRequired,drawerPaperClassName:l.string,expandedTooltipTitle:l.string,collapsedTooltipTitle:l.string,header:l.node,headerIcon:l.node,headerTitleIcon:l.node,isOpen:l.bool,openedDrawerWidth:l.oneOfType([l.string,l.number]),setIsOpen:l.func,size:l.oneOf(["small","medium","large"]),allOptionsButtonShown:l.bool,isAllOptionsSelected:l.bool,onAllOptionsClick:l.func};I.propTypes=k,I.defaultProps={anchor:"left",drawerPaperClassName:"",expandedTooltipTitle:"Collapse",collapsedTooltipTitle:"Expand",header:null,headerIcon:null,headerTitleIcon:null,isOpen:!1,openedDrawerWidth:0,setIsOpen:p,size:"medium",allOptionsButtonShown:!1,isAllOptionsSelected:!1,onAllOptionsClick:p};export{I as default};
|