@corva/ui 0.96.0-4 → 0.96.0-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs-bundle/components/AddComment/Popover.js +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/components/Annotation/index.js +1 -1
- package/cjs-bundle/components/Annotations/components/LastAnnotation/index.js +1 -1
- package/cjs-bundle/components/Autocomplete/Autocomplete.js +1 -1
- package/cjs-bundle/components/Avatar/index.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
- package/cjs-bundle/components/Breadcrumbs/index.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Checkbox/index.js +1 -1
- package/cjs-bundle/components/Chip/index.js +1 -1
- package/cjs-bundle/components/Comment/CommentIcon/index.js +1 -1
- package/cjs-bundle/components/Comment/index.js +1 -1
- package/cjs-bundle/components/CommentInput/index.js +1 -1
- package/cjs-bundle/components/CommentsInfo/index.js +1 -1
- package/cjs-bundle/components/ContextMenuItem/index.js +1 -1
- package/cjs-bundle/components/CopyToClipboard/CopyToClipboard.js +1 -1
- package/cjs-bundle/components/Counter/index.js +1 -1
- package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/cjs-bundle/components/EmptyState/EmptyState.js +1 -1
- package/cjs-bundle/components/EmptyState/constants.js +1 -1
- package/cjs-bundle/components/EmptyState/utils.js +1 -1
- package/cjs-bundle/components/EmptyView/EmptyAppView/EmptyAppView.js +1 -1
- package/cjs-bundle/components/EmptyView/EmptyView.js +1 -1
- package/cjs-bundle/components/FeedItem/components/AvatarIcon.js +1 -1
- package/cjs-bundle/components/FileIcon/FileIcon.js +1 -1
- package/cjs-bundle/components/MenuItem/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/cjs-bundle/components/SettingEditors/ColorEditor/index.js +1 -1
- package/cjs-bundle/components/SettingEditors/ColorEditor/style.css.js +1 -1
- package/cjs-bundle/components/Template/TemplateSharingDialog/UsersChipSelector.js +1 -1
- package/cjs-bundle/components/UserMention/index.js +1 -1
- package/cjs-bundle/components/index.js +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/Annotation/index.js +1 -1
- package/components/Annotations/components/LastAnnotation/index.js +1 -1
- package/components/Autocomplete/Autocomplete.d.ts +41 -36
- package/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/components/Autocomplete/Autocomplete.js +1 -1
- package/components/Autocomplete/Autocomplete.stories.d.ts +13 -0
- package/components/Autocomplete/Autocomplete.stories.d.ts.map +1 -0
- package/components/Avatar/Avatar.stories.d.ts +19 -0
- package/components/Avatar/Avatar.stories.d.ts.map +1 -0
- package/components/Avatar/index.d.ts +9 -101
- 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/Breadcrumbs/Breadcrumbs.stories.d.ts +8 -0
- package/components/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -0
- package/components/Breadcrumbs/index.d.ts +11 -10
- package/components/Breadcrumbs/index.d.ts.map +1 -1
- package/components/Breadcrumbs/index.js +1 -1
- package/components/Button/Button.stories.d.ts.map +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/Checkbox/Checkbox.stories.d.ts +10 -0
- package/components/Checkbox/Checkbox.stories.d.ts.map +1 -0
- package/components/Checkbox/index.d.ts +13 -11
- package/components/Checkbox/index.d.ts.map +1 -1
- package/components/Checkbox/index.js +1 -1
- package/components/Chip/Chip.stories.d.ts +9 -0
- package/components/Chip/Chip.stories.d.ts.map +1 -0
- package/components/Chip/index.d.ts +9 -8
- package/components/Chip/index.d.ts.map +1 -1
- package/components/Chip/index.js +1 -1
- package/components/ColorPicker/ColorPicker.stories.d.ts +8 -0
- package/components/ColorPicker/ColorPicker.stories.d.ts.map +1 -0
- package/components/Comment/CommentIcon/CommentIcon.stories.d.ts +8 -0
- package/components/Comment/CommentIcon/CommentIcon.stories.d.ts.map +1 -0
- package/components/Comment/CommentIcon/index.d.ts +5 -20
- package/components/Comment/CommentIcon/index.d.ts.map +1 -1
- package/components/Comment/CommentIcon/index.js +1 -1
- package/components/Comment/index.js +1 -1
- package/components/CommentInput/index.js +1 -1
- package/components/CommentsInfo/index.js +1 -1
- package/components/ContextMenuItem/ContextMenuItem.stories.d.ts +10 -0
- package/components/ContextMenuItem/ContextMenuItem.stories.d.ts.map +1 -0
- package/components/ContextMenuItem/index.d.ts +11 -23
- package/components/ContextMenuItem/index.d.ts.map +1 -1
- package/components/ContextMenuItem/index.js +1 -1
- package/components/CopyToClipboard/CopyToClipboard.d.ts +23 -41
- package/components/CopyToClipboard/CopyToClipboard.d.ts.map +1 -1
- package/components/CopyToClipboard/CopyToClipboard.js +1 -1
- package/components/CopyToClipboard/CopyToClipboard.stories.d.ts +8 -0
- package/components/CopyToClipboard/CopyToClipboard.stories.d.ts.map +1 -0
- package/components/Counter/Counter.stories.d.ts +10 -0
- package/components/Counter/Counter.stories.d.ts.map +1 -0
- package/components/Counter/index.d.ts +11 -33
- package/components/Counter/index.d.ts.map +1 -1
- package/components/Counter/index.js +1 -1
- package/components/DatePicker/DatePicker.stories.d.ts +8 -0
- package/components/DatePicker/DatePicker.stories.d.ts.map +1 -0
- package/components/DateTimePicker/DateTimePicker.stories.d.ts +8 -0
- package/components/DateTimePicker/DateTimePicker.stories.d.ts.map +1 -0
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.d.ts +4 -4
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.d.ts.map +1 -1
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.stories.d.ts +9 -0
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.stories.d.ts.map +1 -0
- package/components/DevCenter/AppHeader/AppHeader.stories.d.ts +15 -0
- package/components/DevCenter/AppHeader/AppHeader.stories.d.ts.map +1 -0
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts +10 -7
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.stories.d.ts +8 -0
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.stories.d.ts.map +1 -0
- 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/shared/ConfirmationPopup.js +1 -1
- package/components/EmptyState/EmptyState.d.ts +18 -55
- package/components/EmptyState/EmptyState.d.ts.map +1 -1
- package/components/EmptyState/EmptyState.js +1 -1
- package/components/EmptyState/EmptyState.stories.d.ts +11 -0
- package/components/EmptyState/EmptyState.stories.d.ts.map +1 -0
- package/components/EmptyState/constants.d.ts +7 -38
- package/components/EmptyState/constants.d.ts.map +1 -1
- package/components/EmptyState/constants.js +1 -1
- package/components/EmptyState/images/index.d.ts.map +1 -1
- package/components/EmptyState/utils.d.ts +1 -1
- package/components/EmptyState/utils.d.ts.map +1 -1
- package/components/EmptyState/utils.js +1 -1
- package/components/EmptyView/EmptyAppView/EmptyAppView.d.ts +24 -81
- package/components/EmptyView/EmptyAppView/EmptyAppView.d.ts.map +1 -1
- package/components/EmptyView/EmptyAppView/EmptyAppView.js +1 -1
- package/components/EmptyView/EmptyAppView/EmptyAppView.stories.d.ts +11 -0
- package/components/EmptyView/EmptyAppView/EmptyAppView.stories.d.ts.map +1 -0
- package/components/EmptyView/EmptyView.d.ts +16 -30
- package/components/EmptyView/EmptyView.d.ts.map +1 -1
- package/components/EmptyView/EmptyView.js +1 -1
- package/components/EmptyView/EmptyView.stories.d.ts +8 -0
- package/components/EmptyView/EmptyView.stories.d.ts.map +1 -0
- package/components/FeedItem/components/AvatarIcon.js +1 -1
- package/components/FileIcon/FileIcon.d.ts +4 -3
- package/components/FileIcon/FileIcon.d.ts.map +1 -1
- package/components/FileIcon/FileIcon.js +1 -1
- package/components/FileIcon/FileIcon.stories.d.ts +8 -981
- package/components/FileIcon/FileIcon.stories.d.ts.map +1 -1
- package/components/MenuItem/MenuItem.stories.d.ts +10 -0
- package/components/MenuItem/MenuItem.stories.d.ts.map +1 -0
- package/components/MenuItem/index.d.ts +15 -1
- package/components/MenuItem/index.d.ts.map +1 -1
- package/components/MenuItem/index.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- 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/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/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/OffsetWellPickerV4.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/PadOffsetsPicker/StagesSelector.js +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/components/SettingEditors/ColorEditor/ColorEditor.stories.d.ts +9 -0
- package/components/SettingEditors/ColorEditor/ColorEditor.stories.d.ts.map +1 -0
- package/components/SettingEditors/ColorEditor/index.d.ts +18 -89
- package/components/SettingEditors/ColorEditor/index.d.ts.map +1 -1
- package/components/SettingEditors/ColorEditor/index.js +1 -1
- package/components/SettingEditors/ColorEditor/style.css.js +1 -1
- package/components/Template/TemplateSharingDialog/UsersChipSelector.js +1 -1
- package/components/UserMention/index.js +1 -1
- package/components/index.js +1 -1
- package/package.json +1 -1
- package/storyBookHelpers/components.d.ts +3 -2
- package/storyBookHelpers/components.d.ts.map +1 -1
- package/storyBookHelpers/index.d.ts +1 -0
- package/storyBookHelpers/index.d.ts.map +1 -1
- package/storyBookHelpers/types.d.ts +6 -0
- package/storyBookHelpers/types.d.ts.map +1 -0
- package/storyBookHelpers/utils.d.ts +9 -4
- package/storyBookHelpers/utils.d.ts.map +1 -1
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import * as images from './images';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { APP_MESSAGES } from './constants';
|
|
4
|
+
export declare type EmptyStateProps = {
|
|
5
|
+
title?: ReactNode;
|
|
6
|
+
subtitle?: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* URL to an image
|
|
9
|
+
*/
|
|
6
10
|
image?: string;
|
|
11
|
+
/**
|
|
12
|
+
* ClassNames for inner components
|
|
13
|
+
*/
|
|
7
14
|
classes?: {
|
|
8
15
|
root?: string;
|
|
9
16
|
content?: string;
|
|
@@ -12,55 +19,11 @@ export interface EmptyStateProps {
|
|
|
12
19
|
image?: string;
|
|
13
20
|
};
|
|
14
21
|
'data-testid'?: string;
|
|
15
|
-
}
|
|
16
|
-
declare
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
classes: {};
|
|
23
|
-
'data-testid': string;
|
|
24
|
-
};
|
|
25
|
-
var IMAGES: typeof images;
|
|
26
|
-
var APP_MESSAGES: {
|
|
27
|
-
appNotSubscribed: {
|
|
28
|
-
title: string;
|
|
29
|
-
subtitle: string;
|
|
30
|
-
};
|
|
31
|
-
appNotSubscribedForAsset: {
|
|
32
|
-
title: string;
|
|
33
|
-
subtitle: string;
|
|
34
|
-
};
|
|
35
|
-
internalAppError: {
|
|
36
|
-
title: string;
|
|
37
|
-
};
|
|
38
|
-
appPackageWasNotFound: {
|
|
39
|
-
title: string;
|
|
40
|
-
subtitle: string;
|
|
41
|
-
};
|
|
42
|
-
fracFleetWasNotFound: {
|
|
43
|
-
title: string;
|
|
44
|
-
};
|
|
45
|
-
fracFleetHasNoPad: {
|
|
46
|
-
title: string;
|
|
47
|
-
};
|
|
48
|
-
padHasNoWells: {
|
|
49
|
-
title: string;
|
|
50
|
-
};
|
|
51
|
-
appComponentWasNotFound: {
|
|
52
|
-
title: string;
|
|
53
|
-
};
|
|
54
|
-
noAssetData: {
|
|
55
|
-
title: string;
|
|
56
|
-
};
|
|
57
|
-
assetNotAvailable: {
|
|
58
|
-
title: string;
|
|
59
|
-
};
|
|
60
|
-
AccessDenied: {
|
|
61
|
-
title: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
export default EmptyState;
|
|
22
|
+
};
|
|
23
|
+
declare type EmptyStateWithProperties = ((props: EmptyStateProps) => ReactElement) & {
|
|
24
|
+
IMAGES: typeof images;
|
|
25
|
+
APP_MESSAGES: typeof APP_MESSAGES;
|
|
26
|
+
};
|
|
27
|
+
declare const _default: EmptyStateWithProperties;
|
|
28
|
+
export default _default;
|
|
66
29
|
//# sourceMappingURL=EmptyState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAiC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAiC,MAAM,OAAO,CAAC;AAE/E,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAGnC,OAAO,EAAE,YAAY,EAAS,MAAM,aAAa,CAAC;AAIlD,oBAAY,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAmDF,aAAK,wBAAwB,GAAG,CAAC,CAAC,KAAK,EAAE,eAAe,KAAK,YAAY,CAAC,GAAG;IAC3E,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,YAAY,EAAE,OAAO,YAAY,CAAC;CACnC,CAAC;;AAEF,wBAAsD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e,jsxs as
|
|
1
|
+
import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e,jsxs as i}from"react/jsx-runtime";import{useState as s,useRef as a,useCallback as r}from"react";import o from"classnames";import*as m from"./images/index.js";import{NoDataAvailable as l}from"./images/index.js";import c from"../../effects/useResizeObserver.js";import{SIZES as d,APP_MESSAGES as n}from"./constants.js";import{getSize as f}from"./utils.js";import{useStyles as v}from"./styles.js";var p=function(m){var n=m.title,p=void 0===n?"No Data Available":n,u=m.subtitle,b=void 0===u?"":u,j=m.image,S=void 0===j?l:j,g=m.classes,A=void 0===g?{}:g,N=m["data-testid"],x=void 0===N?"EmptyState":N,E=s(d.LARGE),_=E[0],h=E[1],z=s(!1),M=z[0],G=z[1],L=a(),R=r((function(t){var e=t[0].borderBoxSize[0].blockSize;h(f(e)),G(!0)}),[]);c({callback:R,containerRef:L});var k=v({image:S,size:_}),y=_!==d.SMALL;return e("div",t({className:o(k.rootTransparent,M&&k.rootOpaque,A.root)},{children:i("div",t({"data-testid":"".concat(x,"_fullMessage"),className:o(k.content,A.content),ref:L},{children:[e("div",t({"data-testid":"".concat(x,"_title"),className:o(k.title,A.title)},{children:p})),e("div",t({"data-testid":"".concat(x,"_subtitle"),className:o(k.subtitle,A.subtitle)},{children:b})),y&&e("img",{src:S,className:k.image,alt:"error"})]}))}))};p.IMAGES=m,p.APP_MESSAGES=n;export{p as default};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import EmptyState from './EmptyState';
|
|
4
|
+
declare type Props = ComponentProps<typeof EmptyState>;
|
|
5
|
+
declare const meta: Meta<Props>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: (props: Props) => JSX.Element;
|
|
8
|
+
export declare const Images: () => JSX.Element;
|
|
9
|
+
export declare const Messages: () => JSX.Element;
|
|
10
|
+
export declare const Sizes: () => JSX.Element;
|
|
11
|
+
//# sourceMappingURL=EmptyState.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyState.stories.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/EmptyState.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAe,cAAc,EAAyB,MAAM,OAAO,CAAC;AAE3E,OAAO,UAAU,MAAM,cAAc,CAAC;AAItC,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAYF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAA8B,CAAC;AAEnE,eAAO,MAAM,MAAM,mBAElB,CAAC;AAwBF,eAAO,MAAM,QAAQ,mBAMpB,CAAC;AAuBF,eAAO,MAAM,KAAK,mBA6BjB,CAAC"}
|
|
@@ -3,42 +3,11 @@ export declare enum SIZES {
|
|
|
3
3
|
MEDIUM = "medium",
|
|
4
4
|
LARGE = "large"
|
|
5
5
|
}
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
subtitle: string;
|
|
14
|
-
};
|
|
15
|
-
internalAppError: {
|
|
16
|
-
title: string;
|
|
17
|
-
};
|
|
18
|
-
appPackageWasNotFound: {
|
|
19
|
-
title: string;
|
|
20
|
-
subtitle: string;
|
|
21
|
-
};
|
|
22
|
-
fracFleetWasNotFound: {
|
|
23
|
-
title: string;
|
|
24
|
-
};
|
|
25
|
-
fracFleetHasNoPad: {
|
|
26
|
-
title: string;
|
|
27
|
-
};
|
|
28
|
-
padHasNoWells: {
|
|
29
|
-
title: string;
|
|
30
|
-
};
|
|
31
|
-
appComponentWasNotFound: {
|
|
32
|
-
title: string;
|
|
33
|
-
};
|
|
34
|
-
noAssetData: {
|
|
35
|
-
title: string;
|
|
36
|
-
};
|
|
37
|
-
assetNotAvailable: {
|
|
38
|
-
title: string;
|
|
39
|
-
};
|
|
40
|
-
AccessDenied: {
|
|
41
|
-
title: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
6
|
+
export declare const SIZE_MEDIUM_THRESHOLD = 300;
|
|
7
|
+
export declare const SIZE_LARGE_THRESHOLD = 400;
|
|
8
|
+
export declare type AppMessages = Record<'appNotSubscribed' | 'appNotSubscribedForAsset' | 'internalAppError' | 'appPackageWasNotFound' | 'fracFleetWasNotFound' | 'fracFleetHasNoPad' | 'padHasNoWells' | 'appComponentWasNotFound' | 'noAssetData' | 'assetNotAvailable' | 'AccessDenied', {
|
|
9
|
+
title: string;
|
|
10
|
+
subtitle?: string;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const APP_MESSAGES: AppMessages;
|
|
44
13
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACf,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACf,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAGxC,oBAAY,WAAW,GAAG,MAAM,CAC5B,kBAAkB,GAClB,0BAA0B,GAC1B,kBAAkB,GAClB,uBAAuB,GACvB,sBAAsB,GACtB,mBAAmB,GACnB,eAAe,GACf,yBAAyB,GACzB,aAAa,GACb,mBAAmB,GACnB,cAAc,EAChB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CACrC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,WAsC1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t;!function(t){t.SMALL="small",t.MEDIUM="medium",t.LARGE="large"}(t||(t={}));var e={appNotSubscribed:{title:"No Subscription exists for this app.",subtitle:"Contact your Corva Account rep to get access to this app."},appNotSubscribedForAsset:{title:"No Subscription exists for this asset.",subtitle:"Contact your Corva Account rep to get access to this asset."},internalAppError:{title:"App Loading Error"},appPackageWasNotFound:{title:"App package was not found",subtitle:"Please choose another version in the app settings menu or delete and add app again on your dashboard"},fracFleetWasNotFound:{title:"Frac fleet was not found"},fracFleetHasNoPad:{title:"Frac fleet has no active pad"},padHasNoWells:{title:"This pad has no wells"},appComponentWasNotFound:{title:"App component was not found"},noAssetData:{title:"No asset data found"},assetNotAvailable:{title:"Asset unavailable"},AccessDenied:{title:"Access Denied"}};export{
|
|
1
|
+
var t;!function(t){t.SMALL="small",t.MEDIUM="medium",t.LARGE="large"}(t||(t={}));var e=300,a=400,o={appNotSubscribed:{title:"No Subscription exists for this app.",subtitle:"Contact your Corva Account rep to get access to this app."},appNotSubscribedForAsset:{title:"No Subscription exists for this asset.",subtitle:"Contact your Corva Account rep to get access to this asset."},internalAppError:{title:"App Loading Error"},appPackageWasNotFound:{title:"App package was not found",subtitle:"Please choose another version in the app settings menu or delete and add app again on your dashboard"},fracFleetWasNotFound:{title:"Frac fleet was not found"},fracFleetHasNoPad:{title:"Frac fleet has no active pad"},padHasNoWells:{title:"This pad has no wells"},appComponentWasNotFound:{title:"App component was not found"},noAssetData:{title:"No asset data found"},assetNotAvailable:{title:"Asset unavailable"},AccessDenied:{title:"Access Denied"}};export{o as APP_MESSAGES,t as SIZES,a as SIZE_LARGE_THRESHOLD,e as SIZE_MEDIUM_THRESHOLD};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/EmptyState/images/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,uBAAuB,CAAC;AACpD,OAAO,cAAc,MAAM,sBAAsB,CAAC;AAClD,OAAO,qBAAqB,MAAM,6BAA6B,CAAC;AAChE,OAAO,uBAAuB,MAAM,+BAA+B,CAAC;AACpE,OAAO,eAAe,MAAM,uBAAuB,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,eAAe,MAAM,uBAAuB,CAAC;AACpD,OAAO,cAAc,MAAM,sBAAsB,CAAC;AAClD,OAAO,eAAe,MAAM,uBAAuB,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,kBAAkB,MAAM,0BAA0B,CAAC;AAC1D,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AACxD,OAAO,YAAY,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/EmptyState/images/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,uBAAuB,CAAC;AACpD,OAAO,cAAc,MAAM,sBAAsB,CAAC;AAClD,OAAO,qBAAqB,MAAM,6BAA6B,CAAC;AAChE,OAAO,uBAAuB,MAAM,+BAA+B,CAAC;AACpE,OAAO,eAAe,MAAM,uBAAuB,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,eAAe,MAAM,uBAAuB,CAAC;AACpD,OAAO,cAAc,MAAM,sBAAsB,CAAC;AAClD,OAAO,eAAe,MAAM,uBAAuB,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,kBAAkB,MAAM,0BAA0B,CAAC;AAC1D,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AACxD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAG9C,OAAO,EACL,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,uBAAuB,EACvB,eAAe,EACf,YAAY,EACZ,eAAe,EACf,cAAc,EACd,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,GACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/utils.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+C,KAAK,EAAE,MAAM,aAAa,CAAC;AAEjF,eAAO,MAAM,OAAO,kBAAmB,MAAM,UAI5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SIZES as
|
|
1
|
+
import{SIZE_LARGE_THRESHOLD as r,SIZES as t,SIZE_MEDIUM_THRESHOLD as n}from"./constants.js";var o=function(o){return o>=r?t.LARGE:o>=n?t.MEDIUM:t.SMALL};export{o as getSize};
|
|
@@ -1,82 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
namespace fracFleetHasNoPad {
|
|
27
|
-
const title_5: string;
|
|
28
|
-
export { title_5 as title };
|
|
29
|
-
}
|
|
30
|
-
namespace padHasNoWells {
|
|
31
|
-
const title_6: string;
|
|
32
|
-
export { title_6 as title };
|
|
33
|
-
}
|
|
34
|
-
namespace appComponentWasNotFound {
|
|
35
|
-
const title_7: string;
|
|
36
|
-
export { title_7 as title };
|
|
37
|
-
}
|
|
38
|
-
namespace noAssetData {
|
|
39
|
-
const title_8: string;
|
|
40
|
-
export { title_8 as title };
|
|
41
|
-
}
|
|
42
|
-
namespace assetNotAvailable {
|
|
43
|
-
const title_9: string;
|
|
44
|
-
export { title_9 as title };
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
export namespace EMPTY_STATES {
|
|
48
|
-
const empty: string;
|
|
49
|
-
const error: string;
|
|
50
|
-
const noData: string;
|
|
51
|
-
const noSubscription: string;
|
|
52
|
-
}
|
|
53
|
-
export default EmptyAppView;
|
|
54
|
-
declare function EmptyAppView(props: any): JSX.Element;
|
|
55
|
-
declare namespace EmptyAppView {
|
|
56
|
-
export namespace propTypes {
|
|
57
|
-
export const actions: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
58
|
-
export const app: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
59
|
-
export const state: PropTypes.Requireable<string>;
|
|
60
|
-
const subtitle_3: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
61
|
-
export { subtitle_3 as subtitle };
|
|
62
|
-
const title_10: PropTypes.Validator<string>;
|
|
63
|
-
export { title_10 as title };
|
|
64
|
-
export const withAppHeader: PropTypes.Requireable<boolean>;
|
|
65
|
-
}
|
|
66
|
-
export namespace defaultProps {
|
|
67
|
-
const actions_1: any;
|
|
68
|
-
export { actions_1 as actions };
|
|
69
|
-
const app_1: any;
|
|
70
|
-
export { app_1 as app };
|
|
71
|
-
import state_1 = EMPTY_STATES.empty;
|
|
72
|
-
export { state_1 as state };
|
|
73
|
-
const subtitle_4: string;
|
|
74
|
-
export { subtitle_4 as subtitle };
|
|
75
|
-
const withAppHeader_1: boolean;
|
|
76
|
-
export { withAppHeader_1 as withAppHeader };
|
|
77
|
-
}
|
|
78
|
-
export { APP_MESSAGES };
|
|
79
|
-
export { EMPTY_STATES };
|
|
80
|
-
}
|
|
81
|
-
import PropTypes from "prop-types";
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
export declare const HEIGHT_SMALL_BREAKPOINT = 300;
|
|
3
|
+
export declare const HEIGHT_MEDIUM_BREAKPOINT = 400;
|
|
4
|
+
declare type AppMessages = Record<'appNotSubscribed' | 'appNotSubscribedForAsset' | 'internalAppError' | 'appPackageWasNotFound' | 'fracFleetWasNotFound' | 'fracFleetHasNoPad' | 'padHasNoWells' | 'appComponentWasNotFound' | 'noAssetData' | 'assetNotAvailable', {
|
|
5
|
+
title: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const APP_MESSAGES: AppMessages;
|
|
9
|
+
declare type EmptyStates = 'empty' | 'error' | 'noData' | 'noSubscription';
|
|
10
|
+
export declare const EMPTY_STATES: Record<EmptyStates, EmptyStates>;
|
|
11
|
+
export declare type EmptyAppViewProps = {
|
|
12
|
+
title: ReactNode;
|
|
13
|
+
actions?: ReactNode;
|
|
14
|
+
app?: object;
|
|
15
|
+
state?: EmptyStates;
|
|
16
|
+
subtitle?: ReactNode;
|
|
17
|
+
withAppHeader?: boolean;
|
|
18
|
+
};
|
|
19
|
+
declare type EmptyAppViewType = ((props: EmptyAppViewProps) => ReactElement) & {
|
|
20
|
+
APP_MESSAGES: typeof APP_MESSAGES;
|
|
21
|
+
EMPTY_STATES: typeof EMPTY_STATES;
|
|
22
|
+
};
|
|
23
|
+
declare const _default: EmptyAppViewType;
|
|
24
|
+
export default _default;
|
|
82
25
|
//# sourceMappingURL=EmptyAppView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyAppView.d.ts","sourceRoot":"","sources":["../../../../src/components/EmptyView/EmptyAppView/EmptyAppView.
|
|
1
|
+
{"version":3,"file":"EmptyAppView.d.ts","sourceRoot":"","sources":["../../../../src/components/EmptyView/EmptyAppView/EmptyAppView.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,SAAS,EAA+B,MAAM,OAAO,CAAC;AAa7E,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAG5C,aAAK,WAAW,GAAG,MAAM,CACrB,kBAAkB,GAClB,0BAA0B,GAC1B,kBAAkB,GAClB,uBAAuB,GACvB,sBAAsB,GACtB,mBAAmB,GACnB,eAAe,GACf,yBAAyB,GACzB,aAAa,GACb,mBAAmB,EACrB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CACrC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,WAmC1B,CAAC;AAEF,aAAK,WAAW,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,gBAAgB,CAAC;AAEnE,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,WAAW,EAAE,WAAW,CAKzD,CAAC;AAkEF,oBAAY,iBAAiB,GAAG;IAC9B,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,aAAK,gBAAgB,GAAG,CAAC,CAAC,KAAK,EAAE,iBAAiB,KAAK,YAAY,CAAC,GAAG;IACrE,YAAY,EAAE,OAAO,YAAY,CAAC;IAClC,YAAY,EAAE,OAAO,YAAY,CAAC;CACnC,CAAC;;AAgEF,wBAAgD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e
|
|
1
|
+
import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as a,Fragment as i}from"react/jsx-runtime";import{useState as o,useEffect as r,useRef as n}from"react";import s from"classnames";import{makeStyles as l}from"@material-ui/core";import p from"../../DevCenter/AppHeader/AppHeader.js";var c=300,d=400,m={appNotSubscribed:{title:"No Subscription exists for this app.",subtitle:"Contact your Corva Account rep to get access to this app."},appNotSubscribedForAsset:{title:"No Subscription exists for this asset.",subtitle:"Contact your Corva Account rep to get access to this asset."},internalAppError:{title:"App Loading Error"},appPackageWasNotFound:{title:"App package was not found",subtitle:"Please choose another version in the app settings menu or delete and add app again on your dashboard"},fracFleetWasNotFound:{title:"Frac fleet was not found"},fracFleetHasNoPad:{title:"Frac fleet has no active pad"},padHasNoWells:{title:"This pad has no wells"},appComponentWasNotFound:{title:"App component was not found"},noAssetData:{title:"No asset data found"},assetNotAvailable:{title:"Asset unavailable"}},u={empty:"empty",error:"error",noData:"noData",noSubscription:"noSubscription"},f={empty:"/static/media/e607e3aa0a4603bb7ae7f83a2148511e.svg",error:"/static/media/9b185a425ea91b6c2beedfef39c06663.svg",noData:"/static/media/1bfc6e5d9cbb531a554ab8d025fa23e9.svg",noSubscription:"/static/media/76e3ee12638391cba164716321509ad7.svg"},g=l((function(e){var t=e.palette;return{wrapper:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center",justifyContent:"center",height:"100%",padding:24,overflow:"auto"},title:{color:t.primary.text7,fontSize:32,lineHeight:"38px",marginBottom:8,"&.medium":{fontSize:24,lineHeight:"28px"},"&.small":{fontSize:24,lineHeight:"28px"},fontStyle:"italic"},subtitle:{color:t.primary.text6,fontSize:16,lineHeight:"22px",marginBottom:24,"&.medium":{fontSize:14,lineHeight:"20px"},"&.small":{fontSize:14,lineHeight:"20px"}},imageWrapper:{display:"flex",flexGrow:1,maxWidth:390,maxHeight:300,width:"100%","&.medium":{maxidth:260,maxHeight:200}},backgroundImage:{width:"100%",backgroundImage:function(e){return"url(".concat([f[e.state]],")")},backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"contain"},appHeader:{display:"flex",padding:"12px",flexWrap:"wrap",justifyContent:"space-between"},container:{height:"100%",flexDirection:"column",display:"flex"}}})),b=function(l){var c=l.title,d=l.subtitle,m=void 0===d?"":d,u=l.state,f=void 0===u?"empty":u,b=l.withAppHeader,h=void 0!==b&&b,v=l.app,x=l.actions,S=void 0===x?null:x,A=g({state:f}),y=o(!1),H=y[0],N=y[1];r((function(){N(!0)}),[]);var w=n(null),k=w.current,C=(null==k?void 0:k.offsetHeight)<300,E=(null==k?void 0:k.offsetHeight)<400;return t("div",e({className:A.container},{children:[h&&a(p,{app:v,classes:{appHeader:A.appHeader}}),a("div",e({className:A.wrapper,ref:w},{children:H&&t(i,{children:[a("div",e({"data-testid":"".concat("EmptyAppView","_title"),className:s(A.title,E&&"medium",C&&"small")},{children:c})),S,m&&a("div",e({"data-testid":"".concat("EmptyAppView","_subtitle"),className:s(A.subtitle,E&&"medium",C&&"small")},{children:m})),!C&&a("div",e({className:s(A.imageWrapper,E&&"medium")},{children:a("div",{className:A.backgroundImage})}))]})}))]}))};b.APP_MESSAGES=m,b.EMPTY_STATES=u;export{m as APP_MESSAGES,u as EMPTY_STATES,d as HEIGHT_MEDIUM_BREAKPOINT,c as HEIGHT_SMALL_BREAKPOINT,b as default};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import EmptyAppView from './EmptyAppView';
|
|
4
|
+
declare type Props = ComponentProps<typeof EmptyAppView>;
|
|
5
|
+
declare const meta: Meta<Props>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: (props: Props) => JSX.Element;
|
|
8
|
+
export declare const PropertiesState: () => JSX.Element;
|
|
9
|
+
export declare const PropertiesMessages: () => JSX.Element;
|
|
10
|
+
export declare const Sizes: () => JSX.Element;
|
|
11
|
+
//# sourceMappingURL=EmptyAppView.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyAppView.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/EmptyView/EmptyAppView/EmptyAppView.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,YAAmE,MAAM,gBAAgB,CAAC;AAEjG,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AAMjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAiBF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAInC,CAAC;AAEF,eAAO,MAAM,eAAe,mBAI3B,CAAC;AAOF,eAAO,MAAM,kBAAkB,mBAO9B,CAAC;AAqBF,eAAO,MAAM,KAAK,mBAYjB,CAAC"}
|
|
@@ -1,32 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type EmptyViewProps = {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
showArrow?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Classes for internal elements
|
|
8
|
+
*/
|
|
9
|
+
customStyles?: {
|
|
10
|
+
wrapper?: string;
|
|
11
|
+
title?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
arrow?: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
declare function EmptyView({ title, description, showArrow, customStyles, }: EmptyViewProps): JSX.Element;
|
|
1
17
|
export default EmptyView;
|
|
2
|
-
declare function EmptyView({ title, description, showArrow, customStyles }: {
|
|
3
|
-
title: any;
|
|
4
|
-
description: any;
|
|
5
|
-
showArrow: any;
|
|
6
|
-
customStyles: any;
|
|
7
|
-
}): JSX.Element;
|
|
8
|
-
declare namespace EmptyView {
|
|
9
|
-
namespace propTypes {
|
|
10
|
-
const title: PropTypes.Requireable<string>;
|
|
11
|
-
const description: PropTypes.Requireable<string>;
|
|
12
|
-
const showArrow: PropTypes.Requireable<boolean>;
|
|
13
|
-
const customStyles: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
|
-
wrapper: PropTypes.Requireable<string>;
|
|
15
|
-
title: PropTypes.Requireable<string>;
|
|
16
|
-
description: PropTypes.Requireable<string>;
|
|
17
|
-
arrow: PropTypes.Requireable<string>;
|
|
18
|
-
}>>;
|
|
19
|
-
}
|
|
20
|
-
namespace defaultProps {
|
|
21
|
-
const title_1: string;
|
|
22
|
-
export { title_1 as title };
|
|
23
|
-
const description_1: string;
|
|
24
|
-
export { description_1 as description };
|
|
25
|
-
const showArrow_1: boolean;
|
|
26
|
-
export { showArrow_1 as showArrow };
|
|
27
|
-
const customStyles_1: {};
|
|
28
|
-
export { customStyles_1 as customStyles };
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
import PropTypes from "prop-types";
|
|
32
18
|
//# sourceMappingURL=EmptyView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyView.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyView/EmptyView.
|
|
1
|
+
{"version":3,"file":"EmptyView.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyView/EmptyView.tsx"],"names":[],"mappings":";AAsEA,aAAK,cAAc,GAAG;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;AAEF,iBAAS,SAAS,CAAC,EACjB,KAA2B,EAC3B,WAAgB,EAChB,SAAiB,EACjB,YAAiB,GAClB,EAAE,cAAc,eAkBhB;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{__assign as i}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as e,jsx as t}from"react/jsx-runtime";import{makeStyles as a,Typography as r}from"@material-ui/core";import o from"classnames";var p=a({wrapper:{position:"relative",width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",padding:"16px",zIndex:function(i){return i.showArrow?1:"auto"},"@media (max-height:350px)":{paddingTop:"56px"},"@media (max-width:500px)":{paddingTop:"128px"}},errorImage:{width:"390px",height:"300px",marginTop:"24px","@media (max-height:400px)":{width:"260px",height:"200px"},"@media (max-height:350px), (max-width: 580px) and (max-height:550px)":{display:"none"},"@media (max-width:500px)":{width:"260px",height:"200px"}},title:{fontSize:"32px",fontStyle:"italic",color:"#9E9E9E",lineHeight:"37px",fontWeight:"normal","@media (max-height:400px)":{fontSize:"24px"},"@media (max-width:500px)":{fontSize:"24px"}},description:{fontSize:"16px",color:"#9E9E9E"},arrow:{position:"absolute",top:0,right:0,zIndex:-1,"@media (max-width: 960px)":{display:"none"}}});function d(a){var d=a.title,m=void 0===d?"No Data Available":d,n=a.description,s=void 0===n?"":n,x=a.showArrow,l=void 0!==x&&x,h=a.customStyles,c=void 0===h?{}:h,w=p({showArrow:l});return e("div",i({"data-testid":"".concat("EmptyView","_wrapper"),className:o(w.wrapper,c.wrapper)},{children:[t(r,i({className:o(w.title,c.title)},{children:m})),t(r,i({className:o(w.description,c.description)},{children:s})),t("img",{src:"/static/media/5010eaf4520add4dcd713ce1fdbda5ea.png",className:w.errorImage,alt:"error state"}),l&&t("img",{src:"/static/media/1be6a0ee1d46b5f5c15203014864e086.svg",alt:"arrow",className:o(w.arrow,c.arrow)})]}))}export{d as default};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import EmptyView from './EmptyView';
|
|
4
|
+
declare type Props = ComponentProps<typeof EmptyView>;
|
|
5
|
+
declare const meta: Meta<Props>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: (props: Props) => JSX.Element;
|
|
8
|
+
//# sourceMappingURL=EmptyView.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyView.stories.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyView/EmptyView.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AAE9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAOF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import e from"classnames";import{makeStyles as a}from"@material-ui/core";import o
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import e from"classnames";import{makeStyles as a}from"@material-ui/core";import{AvatarComponent as o}from"../../Avatar/index.js";import i from"../../UserCardPopover.js";import{isNativeDetected as t}from"../../../utils/mobileDetect.js";import m from"../../Icons/RecommendationIcon.js";import{jsxs as s,jsx as p}from"react/jsx-runtime";var l=a({avatarWrapper:{width:32,height:32,backgroundColor:"grey",borderRadius:"100%",position:"absolute",top:22,left:-16},avatarWrapperNative:{left:"auto"},recommendationWrapper:{position:"absolute",bottom:-8,right:-6}}),n=function(a){var n,d,c=a.displayName,u=a.feedItem,v=a.isRecommended,f=a.currentUser,h=l();return s("div",{className:e(h.avatarWrapper,r({},h.avatarWrapperNative,t)),children:[t?p(o,{displayName:c,imgSrc:null===(n=u.user)||void 0===n?void 0:n.profile_photo,size:32}):p(i,{user:u.user,currentUser:f,children:p(o,{displayName:c,imgSrc:null===(d=u.user)||void 0===d?void 0:d.profile_photo,size:32,className:h.avatar})}),v&&p("div",{className:h.recommendationWrapper,children:p(m,{})})]})};export{n as default};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
1
|
+
import { ComponentProps, ComponentType } from 'react';
|
|
2
2
|
import { SvgIcon } from '@material-ui/core';
|
|
3
3
|
declare type SvgIconProps = Omit<ComponentProps<typeof SvgIcon>, 'viewBox' | 'color' | 'htmlColor'>;
|
|
4
|
-
declare type FileIconProps =
|
|
4
|
+
declare type FileIconProps = {
|
|
5
5
|
name: string;
|
|
6
|
-
}
|
|
6
|
+
} & Omit<SvgIconProps, 'children' | 'name'>;
|
|
7
|
+
export declare const ExtensionsToIconArray: [string, ComponentType<SvgIconProps>][];
|
|
7
8
|
export declare const FileIcon: ({ name, ...svgIconProps }: FileIconProps) => JSX.Element;
|
|
8
9
|
export {};
|
|
9
10
|
//# sourceMappingURL=FileIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileIcon.d.ts","sourceRoot":"","sources":["../../../src/components/FileIcon/FileIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"FileIcon.d.ts","sourceRoot":"","sources":["../../../src/components/FileIcon/FileIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,aAAK,YAAY,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,WAAW,CAAC,CAAC;AAE5F,aAAK,aAAa,GAAG;IACnB,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,MAAM,CAAC,CAAC;AAE5C,eAAO,MAAM,qBAAqB,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC,EAwCxE,CAAC;AAEF,eAAO,MAAM,QAAQ,8BAA+B,aAAa,gBAgBhE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as i}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as m}from"react/jsx-runtime";import{ArchiveFileIcon as n}from"./icons/ArchiveFileIcon.js";import{CSVFileIcon as r}from"./icons/CSVFileIcon.js";import{DocFileIcon as s}from"./icons/DocFileIcon.js";import{EDMFileIcon as e}from"./icons/EDMFileIcon.js";import{ExcelFileIcon as c}from"./icons/ExcelFileIcon.js";import{ImageFileIcon as t}from"./icons/ImageFileIcon.js";import{JsonFileIcon as p}from"./icons/JsonFileIcon.js";import{LasFileIcon as l}from"./icons/LasFileIcon.js";import{OtherFileIcon as f}from"./icons/OtherFileIcon.js";import{PdfFileIcon as j}from"./icons/PdfFileIcon.js";import{PowerPointFileIcon as I}from"./icons/PowerPointFileIcon.js";import{TxtFileIcon as v}from"./icons/TxtFileIcon.js";import{UnknownFileIcon as F}from"./icons/UnknownFileIcon.js";import{VideoFileIcon as d}from"./icons/VideoFileIcon.js";import{XmlFileIcon as a}from"./icons/XmlFileIcon.js";var x=[[".pdf",j],[".csv",r],[".json",p],[".edm.xml",e],[".xml",a],[".las",l],[".txt",v],[".pptx",I],[".ppt",I],[".xlsx",c],[".xls",c],[".docx",s],[".doc",s],[".jpg",t],[".png",t],[".jpeg",t],[".gif",t],[".bmp",t],[".svg",t],[".webp",t],[".rar",n],[".zip",n],[".7z",n],[".mp4",d],[".avi",d],[".mkv",d],[".mov",d],[".wmv",d],[".flv",d],[".webm",d],[".mpg",d],[".mpeg",d],[".m4v",d]],g=function(n){var r,s=n.name,e=o(n,["name"]),c=null==s?void 0:s.toLowerCase().trim(),t=null===(r=x.find((function(o){var i=o[0];return c.endsWith(i)})))||void 0===r?void 0:r[1];return t||(t=/\.\w{1,4}$/.test(c)?f:F),m(t,i({},e))};export{g as FileIcon};
|
|
1
|
+
import{__rest as o,__assign as i}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as m}from"react/jsx-runtime";import{ArchiveFileIcon as n}from"./icons/ArchiveFileIcon.js";import{CSVFileIcon as r}from"./icons/CSVFileIcon.js";import{DocFileIcon as s}from"./icons/DocFileIcon.js";import{EDMFileIcon as e}from"./icons/EDMFileIcon.js";import{ExcelFileIcon as c}from"./icons/ExcelFileIcon.js";import{ImageFileIcon as t}from"./icons/ImageFileIcon.js";import{JsonFileIcon as p}from"./icons/JsonFileIcon.js";import{LasFileIcon as l}from"./icons/LasFileIcon.js";import{OtherFileIcon as f}from"./icons/OtherFileIcon.js";import{PdfFileIcon as j}from"./icons/PdfFileIcon.js";import{PowerPointFileIcon as I}from"./icons/PowerPointFileIcon.js";import{TxtFileIcon as v}from"./icons/TxtFileIcon.js";import{UnknownFileIcon as F}from"./icons/UnknownFileIcon.js";import{VideoFileIcon as d}from"./icons/VideoFileIcon.js";import{XmlFileIcon as a}from"./icons/XmlFileIcon.js";var x=[[".pdf",j],[".csv",r],[".json",p],[".edm.xml",e],[".xml",a],[".las",l],[".txt",v],[".pptx",I],[".ppt",I],[".xlsx",c],[".xls",c],[".docx",s],[".doc",s],[".jpg",t],[".png",t],[".jpeg",t],[".gif",t],[".bmp",t],[".svg",t],[".webp",t],[".rar",n],[".zip",n],[".7z",n],[".mp4",d],[".avi",d],[".mkv",d],[".mov",d],[".wmv",d],[".flv",d],[".webm",d],[".mpg",d],[".mpeg",d],[".m4v",d]],g=function(n){var r,s=n.name,e=o(n,["name"]),c=(null==s?void 0:s.toLowerCase().trim())||"",t=null===(r=x.find((function(o){var i=o[0];return c.endsWith(i)})))||void 0===r?void 0:r[1];return t||(t=/\.\w{1,4}$/.test(c)?f:F),m(t,i({},e))};export{x as ExtensionsToIconArray,g as FileIcon};
|