@devtron-labs/devtron-fe-common-lib 1.16.0-beta-1 → 1.16.0-beta-6
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/dist/{@code-editor-DxJTBxC3.js → @code-editor-uOMc_BUW.js} +9452 -9092
- package/dist/{@common-rjsf-BP_R1OLj.js → @common-rjsf-DDiY22zr.js} +6 -6
- package/dist/{@framer-motion-DAmKhMSi.js → @framer-motion-j6RIjEIR.js} +20 -20
- package/dist/{@moment-C_WeV3Af.js → @moment-CGWt8tF2.js} +12 -1
- package/dist/{@react-dates-D5kydtW-.js → @react-dates-BVyHiOGU.js} +2065 -2140
- package/dist/{@react-select-Cmser7OI.js → @react-select-BQNFZu0Y.js} +6 -6
- package/dist/{@react-virtualized-sticky-tree-DMnFy9PE.js → @react-virtualized-sticky-tree-CuElh0mS.js} +1 -1
- package/dist/{@vendor-STJ9h0oI.js → @vendor-DbxoIktR.js} +29809 -29542
- package/dist/Common/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Common/Constants.d.ts +2 -0
- package/dist/Common/GenericDescription/GenericDescription.d.ts +1 -1
- package/dist/Common/GenericDescription/types.d.ts +4 -1
- package/dist/Common/GenericDescription/utils.d.ts +1 -0
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +1 -1
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +19 -0
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/Hooks/useStateFilters/types.d.ts +2 -2
- package/dist/Common/Hooks/useStateFilters/useStateFilters.d.ts +1 -1
- package/dist/Common/Hooks/useUrlFilters/index.d.ts +1 -0
- package/dist/Common/Hooks/useUrlFilters/types.d.ts +2 -1
- package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +1 -1
- package/dist/Common/Modals/VisibleModal.d.ts +1 -0
- package/dist/Common/Modals/VisibleModal2.d.ts +1 -0
- package/dist/Common/Pagination/constants.d.ts +4 -0
- package/dist/Common/Pagination/index.d.ts +1 -0
- package/dist/Common/Tooltip/types.d.ts +1 -1
- package/dist/Common/Types.d.ts +2 -2
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/constants.d.ts +8 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +35 -2
- package/dist/Pages/ResourceBrowser/constants.d.ts +14 -0
- package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/types.d.ts +17 -0
- package/dist/Shared/Components/AboutDevtron/AboutDevtronBody.d.ts +1 -3
- package/dist/Shared/Components/AboutDevtron/AboutDevtronDialog.d.ts +1 -2
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +1 -1
- package/dist/Shared/Components/AnimatedDeployButton/AnimatedDeployButton.d.ts +1 -1
- package/dist/Shared/Components/AnimatedDeployButton/types.d.ts +5 -9
- package/dist/Shared/Components/AppStatusModal/service.d.ts +1 -1
- package/dist/Shared/Components/AppStatusModal/types.d.ts +1 -2
- package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/index.d.ts +1 -0
- package/dist/Shared/Components/Backdrop/types.d.ts +28 -2
- package/dist/Shared/Components/Backdrop/utils.d.ts +1 -0
- package/dist/Shared/Components/Badge/Badge.d.ts +3 -0
- package/dist/Shared/Components/Badge/index.d.ts +2 -0
- package/dist/Shared/Components/Badge/types.d.ts +18 -0
- package/dist/Shared/Components/Badge/utils.d.ts +7 -0
- package/dist/Shared/Components/BulkOperations/types.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/types.d.ts +4 -9
- package/dist/Shared/Components/Button/Button.component.d.ts +376 -2
- package/dist/Shared/Components/Button/types.d.ts +6 -3
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -2
- package/dist/Shared/Components/CodeEditor/CodeEditor.constants.d.ts +1 -1
- package/dist/Shared/Components/DeploymentStatusBreakdown/constants.d.ts +1 -2
- package/dist/Shared/Components/DeploymentStatusBreakdown/utils.d.ts +1 -2
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +1 -1
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +1 -1
- package/dist/Shared/Components/GenericModal/GenericModal.component.d.ts +9 -0
- package/dist/Shared/Components/GenericModal/GenericModal.context.d.ts +6 -0
- package/dist/Shared/Components/GenericModal/constants.d.ts +2 -0
- package/dist/Shared/Components/GenericModal/index.d.ts +2 -0
- package/dist/Shared/Components/GenericModal/types.d.ts +37 -0
- package/dist/Shared/Components/GettingStartedCard/GettingStarted.d.ts +1 -1
- package/dist/Shared/Components/GettingStartedCard/types.d.ts +0 -3
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +1 -1
- package/dist/Shared/Components/Header/HelpButton.d.ts +1 -1
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +1 -3
- package/dist/Shared/Components/Icon/Icon.d.ts +18 -1
- package/dist/Shared/Components/InfoBlock/constants.d.ts +2 -1
- package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +1 -1
- package/dist/Shared/Components/Popover/types.d.ts +3 -2
- package/dist/Shared/Components/Popover/utils.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +7 -7
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +1 -1
- package/dist/Shared/Components/Security/SeverityChip.d.ts +6 -0
- package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +2 -2
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +1 -1
- package/dist/Shared/Components/Table/BulkSelectionActionWidget.d.ts +1 -1
- package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
- package/dist/Shared/Components/Table/TableContent.d.ts +3 -0
- package/dist/Shared/Components/Table/constants.d.ts +1 -0
- package/dist/Shared/Components/Table/index.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +48 -21
- package/dist/Shared/Components/Table/useTableWithKeyboardShortcuts.d.ts +6 -1
- package/dist/Shared/Components/Table/utils.d.ts +5 -0
- package/dist/Shared/Components/TargetPlatforms/types.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/SourceTypeCard.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/constants.d.ts +75 -41
- package/dist/Shared/Components/WorkflowOptionsModal/index.d.ts +1 -0
- package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +10 -12
- package/dist/Shared/Components/WorkflowOptionsModal/utils.d.ts +13 -2
- package/dist/Shared/Components/index.d.ts +3 -0
- package/dist/Shared/Helpers.d.ts +3 -2
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +2 -2
- package/dist/Shared/Providers/MainContextProvider/index.d.ts +3 -0
- package/dist/Shared/Providers/{types.d.ts → MainContextProvider/types.d.ts} +4 -4
- package/dist/Shared/Providers/index.d.ts +0 -2
- package/dist/Shared/Services/types.d.ts +1 -0
- package/dist/Shared/constants.d.ts +1 -0
- package/dist/Shared/types.d.ts +13 -4
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/@common-rjsf.css +1 -1
- package/dist/assets/ic-bug.8a8dc1fc.svg +3 -0
- package/dist/assets/ic-check-all.fdea6b38.svg +5 -0
- package/dist/assets/ic-check-square.e355731d.svg +4 -0
- package/dist/assets/ic-clean-brush.c21cbe1e.svg +3 -0
- package/dist/assets/ic-container.92a4c33a.svg +3 -0
- package/dist/assets/ic-deploy-color.73a8df48.svg +14 -0
- package/dist/assets/ic-deploy-sync.6b1cf1b1.svg +16 -0
- package/dist/assets/ic-download.468a0cb7.svg +3 -0
- package/dist/assets/ic-file-code.0926d194.svg +3 -0
- package/dist/assets/ic-gavel.a3b064b5.svg +3 -0
- package/dist/assets/ic-git-branch.d6b3d950.svg +3 -0
- package/dist/assets/ic-info-filled-color.47953fcf.svg +8 -0
- package/dist/assets/ic-linked-build-color.d1df5ce1.svg +7 -0
- package/dist/assets/ic-logs.d310db72.svg +3 -0
- package/dist/assets/{ic-minus.416da21b.svg → ic-minus.aac464f7.svg} +1 -1
- package/dist/assets/ic-pause-circle.f9405070.svg +3 -0
- package/dist/assets/ic-speedometer.3ecaae3b.svg +3 -0
- package/dist/assets/ic-two-cubes.056d1333.svg +3 -0
- package/dist/assets/ic-webhook.ffd8ded6.svg +21 -0
- package/dist/assets/workflow-options-modal-header.0444485e.svg +38 -0
- package/dist/index.d.ts +1 -6
- package/dist/index.js +866 -851
- package/package.json +7 -7
- package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +0 -3
- package/dist/assets/change-source.abc9d12f.png +0 -0
- package/dist/assets/ic-check-all.0376437d.svg +0 -21
- package/dist/assets/ic-check-square.2a3d3fb9.svg +0 -20
- package/dist/assets/ic-ci-webhook.a2ab6db6.svg +0 -42
- package/dist/assets/ic-source-build.7d776b10.svg +0 -22
- package/dist/assets/ic-source-job.a40f06cf.svg +0 -26
- package/dist/assets/ic-source-linked-build.f24ecbed.svg +0 -24
- package/dist/assets/ic-source-webhook.ee64a29a.svg +0 -22
- package/dist/assets/select-image-source.fb911f42.png +0 -0
- /package/dist/Shared/Providers/{MainContextProvider.d.ts → MainContextProvider/MainContextProvider.d.ts} +0 -0
- /package/dist/assets/{ic-container.4e1e6455.svg → ic-container-registry.4e1e6455.svg} +0 -0
@@ -1,4 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { TooltipProps } from '../../../Common/Tooltip';
|
2
|
+
import { ComponentSizeType } from '../../constants';
|
3
|
+
import { ButtonComponentType, ButtonStyleType, ButtonVariantType } from './types';
|
2
4
|
/**
|
3
5
|
* Generic component for Button.
|
4
6
|
* Should be used in combination of variant, size and style.
|
@@ -63,5 +65,377 @@ import { ButtonComponentType, ButtonProps } from './types';
|
|
63
65
|
* <Button icon={<ICCube />} ariaLabel="Label" />
|
64
66
|
* ```
|
65
67
|
*/
|
66
|
-
declare const Button: import('react').ForwardRefExoticComponent<
|
68
|
+
declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
69
|
+
ref?: import('react').Ref<HTMLAnchorElement>;
|
70
|
+
component: ButtonComponentType.anchor;
|
71
|
+
linkProps?: never;
|
72
|
+
buttonProps?: never;
|
73
|
+
anchorProps: Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "styles" | "className" | "onClick">;
|
74
|
+
onClick?: import('react').AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
|
75
|
+
} & {
|
76
|
+
variant?: ButtonVariantType;
|
77
|
+
size?: ComponentSizeType;
|
78
|
+
style?: ButtonStyleType;
|
79
|
+
isLoading?: boolean;
|
80
|
+
dataTestId: string;
|
81
|
+
disabled?: boolean;
|
82
|
+
fullWidth?: boolean;
|
83
|
+
isOpacityHoverChild?: boolean;
|
84
|
+
triggerAutoClickTimestamp?: number | null;
|
85
|
+
} & {
|
86
|
+
showTooltip?: boolean;
|
87
|
+
tooltipProps: Omit<Extract<TooltipProps, {
|
88
|
+
alwaysShowTippyOnHover: boolean;
|
89
|
+
}>, "alwaysShowTippyOnHover"> | Omit<Extract<TooltipProps, {
|
90
|
+
alwaysShowTippyOnHover?: boolean;
|
91
|
+
}>, "alwaysShowTippyOnHover"> | Omit<Extract<TooltipProps, {
|
92
|
+
alwaysShowTippyOnHover?: never;
|
93
|
+
}>, "alwaysShowTippyOnHover">;
|
94
|
+
} & {
|
95
|
+
icon?: never;
|
96
|
+
ariaLabel?: never;
|
97
|
+
showAriaLabelInTippy?: never;
|
98
|
+
text: string;
|
99
|
+
startIcon?: import('react').ReactElement;
|
100
|
+
endIcon?: import('react').ReactElement;
|
101
|
+
fontWeight?: "bold" | "normal";
|
102
|
+
}, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
103
|
+
ref?: import('react').Ref<HTMLAnchorElement>;
|
104
|
+
component: ButtonComponentType.anchor;
|
105
|
+
linkProps?: never;
|
106
|
+
buttonProps?: never;
|
107
|
+
anchorProps: Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "styles" | "className" | "onClick">;
|
108
|
+
onClick?: import('react').AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
|
109
|
+
} & {
|
110
|
+
variant?: ButtonVariantType;
|
111
|
+
size?: ComponentSizeType;
|
112
|
+
style?: ButtonStyleType;
|
113
|
+
isLoading?: boolean;
|
114
|
+
dataTestId: string;
|
115
|
+
disabled?: boolean;
|
116
|
+
fullWidth?: boolean;
|
117
|
+
isOpacityHoverChild?: boolean;
|
118
|
+
triggerAutoClickTimestamp?: number | null;
|
119
|
+
} & {
|
120
|
+
showTooltip?: boolean;
|
121
|
+
tooltipProps: Omit<Extract<TooltipProps, {
|
122
|
+
alwaysShowTippyOnHover: boolean;
|
123
|
+
}>, "alwaysShowTippyOnHover"> | Omit<Extract<TooltipProps, {
|
124
|
+
alwaysShowTippyOnHover?: boolean;
|
125
|
+
}>, "alwaysShowTippyOnHover"> | Omit<Extract<TooltipProps, {
|
126
|
+
alwaysShowTippyOnHover?: never;
|
127
|
+
}>, "alwaysShowTippyOnHover">;
|
128
|
+
} & {
|
129
|
+
icon: import('react').ReactElement;
|
130
|
+
showAriaLabelInTippy?: boolean;
|
131
|
+
ariaLabel: string;
|
132
|
+
text?: never;
|
133
|
+
startIcon?: never;
|
134
|
+
endIcon?: never;
|
135
|
+
fontWeight?: never;
|
136
|
+
}, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
137
|
+
ref?: import('react').Ref<HTMLAnchorElement>;
|
138
|
+
component: ButtonComponentType.anchor;
|
139
|
+
linkProps?: never;
|
140
|
+
buttonProps?: never;
|
141
|
+
anchorProps: Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "styles" | "className" | "onClick">;
|
142
|
+
onClick?: import('react').AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
|
143
|
+
} & {
|
144
|
+
variant?: ButtonVariantType;
|
145
|
+
size?: ComponentSizeType;
|
146
|
+
style?: ButtonStyleType;
|
147
|
+
isLoading?: boolean;
|
148
|
+
dataTestId: string;
|
149
|
+
disabled?: boolean;
|
150
|
+
fullWidth?: boolean;
|
151
|
+
isOpacityHoverChild?: boolean;
|
152
|
+
triggerAutoClickTimestamp?: number | null;
|
153
|
+
} & {
|
154
|
+
showTooltip?: never;
|
155
|
+
tooltipProps?: never;
|
156
|
+
} & {
|
157
|
+
icon?: never;
|
158
|
+
ariaLabel?: never;
|
159
|
+
showAriaLabelInTippy?: never;
|
160
|
+
text: string;
|
161
|
+
startIcon?: import('react').ReactElement;
|
162
|
+
endIcon?: import('react').ReactElement;
|
163
|
+
fontWeight?: "bold" | "normal";
|
164
|
+
}, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
165
|
+
ref?: import('react').Ref<HTMLAnchorElement>;
|
166
|
+
component: ButtonComponentType.anchor;
|
167
|
+
linkProps?: never;
|
168
|
+
buttonProps?: never;
|
169
|
+
anchorProps: Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "styles" | "className" | "onClick">;
|
170
|
+
onClick?: import('react').AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
|
171
|
+
} & {
|
172
|
+
variant?: ButtonVariantType;
|
173
|
+
size?: ComponentSizeType;
|
174
|
+
style?: ButtonStyleType;
|
175
|
+
isLoading?: boolean;
|
176
|
+
dataTestId: string;
|
177
|
+
disabled?: boolean;
|
178
|
+
fullWidth?: boolean;
|
179
|
+
isOpacityHoverChild?: boolean;
|
180
|
+
triggerAutoClickTimestamp?: number | null;
|
181
|
+
} & {
|
182
|
+
showTooltip?: never;
|
183
|
+
tooltipProps?: never;
|
184
|
+
} & {
|
185
|
+
icon: import('react').ReactElement;
|
186
|
+
showAriaLabelInTippy?: boolean;
|
187
|
+
ariaLabel: string;
|
188
|
+
text?: never;
|
189
|
+
startIcon?: never;
|
190
|
+
endIcon?: never;
|
191
|
+
fontWeight?: never;
|
192
|
+
}, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
193
|
+
ref?: import('react').Ref<HTMLButtonElement>;
|
194
|
+
component?: ButtonComponentType.button;
|
195
|
+
buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
|
196
|
+
linkProps?: never;
|
197
|
+
anchorProps?: never;
|
198
|
+
onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
199
|
+
} & {
|
200
|
+
variant?: ButtonVariantType;
|
201
|
+
size?: ComponentSizeType;
|
202
|
+
style?: ButtonStyleType;
|
203
|
+
isLoading?: boolean;
|
204
|
+
dataTestId: string;
|
205
|
+
disabled?: boolean;
|
206
|
+
fullWidth?: boolean;
|
207
|
+
isOpacityHoverChild?: boolean;
|
208
|
+
triggerAutoClickTimestamp?: number | null;
|
209
|
+
} & {
|
210
|
+
showTooltip?: boolean;
|
211
|
+
tooltipProps: Omit<Extract<TooltipProps, {
|
212
|
+
alwaysShowTippyOnHover: boolean;
|
213
|
+
}>, "alwaysShowTippyOnHover"> | Omit<Extract<TooltipProps, {
|
214
|
+
alwaysShowTippyOnHover?: boolean;
|
215
|
+
}>, "alwaysShowTippyOnHover"> | Omit<Extract<TooltipProps, {
|
216
|
+
alwaysShowTippyOnHover?: never;
|
217
|
+
}>, "alwaysShowTippyOnHover">;
|
218
|
+
} & {
|
219
|
+
icon?: never;
|
220
|
+
ariaLabel?: never;
|
221
|
+
showAriaLabelInTippy?: never;
|
222
|
+
text: string;
|
223
|
+
startIcon?: import('react').ReactElement;
|
224
|
+
endIcon?: import('react').ReactElement;
|
225
|
+
fontWeight?: "bold" | "normal";
|
226
|
+
}, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
227
|
+
ref?: import('react').Ref<HTMLButtonElement>;
|
228
|
+
component?: ButtonComponentType.button;
|
229
|
+
buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
|
230
|
+
linkProps?: never;
|
231
|
+
anchorProps?: never;
|
232
|
+
onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
233
|
+
} & {
|
234
|
+
variant?: ButtonVariantType;
|
235
|
+
size?: ComponentSizeType;
|
236
|
+
style?: ButtonStyleType;
|
237
|
+
isLoading?: boolean;
|
238
|
+
dataTestId: string;
|
239
|
+
disabled?: boolean;
|
240
|
+
fullWidth?: boolean;
|
241
|
+
isOpacityHoverChild?: boolean;
|
242
|
+
triggerAutoClickTimestamp?: number | null;
|
243
|
+
} & {
|
244
|
+
showTooltip?: boolean;
|
245
|
+
tooltipProps: Omit<Extract<TooltipProps, {
|
246
|
+
alwaysShowTippyOnHover: boolean;
|
247
|
+
}>, "alwaysShowTippyOnHover"> | Omit<Extract<TooltipProps, {
|
248
|
+
alwaysShowTippyOnHover?: boolean;
|
249
|
+
}>, "alwaysShowTippyOnHover"> | Omit<Extract<TooltipProps, {
|
250
|
+
alwaysShowTippyOnHover?: never;
|
251
|
+
}>, "alwaysShowTippyOnHover">;
|
252
|
+
} & {
|
253
|
+
icon: import('react').ReactElement;
|
254
|
+
showAriaLabelInTippy?: boolean;
|
255
|
+
ariaLabel: string;
|
256
|
+
text?: never;
|
257
|
+
startIcon?: never;
|
258
|
+
endIcon?: never;
|
259
|
+
fontWeight?: never;
|
260
|
+
}, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
261
|
+
ref?: import('react').Ref<HTMLButtonElement>;
|
262
|
+
component?: ButtonComponentType.button;
|
263
|
+
buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
|
264
|
+
linkProps?: never;
|
265
|
+
anchorProps?: never;
|
266
|
+
onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
267
|
+
} & {
|
268
|
+
variant?: ButtonVariantType;
|
269
|
+
size?: ComponentSizeType;
|
270
|
+
style?: ButtonStyleType;
|
271
|
+
isLoading?: boolean;
|
272
|
+
dataTestId: string;
|
273
|
+
disabled?: boolean;
|
274
|
+
fullWidth?: boolean;
|
275
|
+
isOpacityHoverChild?: boolean;
|
276
|
+
triggerAutoClickTimestamp?: number | null;
|
277
|
+
} & {
|
278
|
+
showTooltip?: never;
|
279
|
+
tooltipProps?: never;
|
280
|
+
} & {
|
281
|
+
icon?: never;
|
282
|
+
ariaLabel?: never;
|
283
|
+
showAriaLabelInTippy?: never;
|
284
|
+
text: string;
|
285
|
+
startIcon?: import('react').ReactElement;
|
286
|
+
endIcon?: import('react').ReactElement;
|
287
|
+
fontWeight?: "bold" | "normal";
|
288
|
+
}, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
289
|
+
ref?: import('react').Ref<HTMLButtonElement>;
|
290
|
+
component?: ButtonComponentType.button;
|
291
|
+
buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
|
292
|
+
linkProps?: never;
|
293
|
+
anchorProps?: never;
|
294
|
+
onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
295
|
+
} & {
|
296
|
+
variant?: ButtonVariantType;
|
297
|
+
size?: ComponentSizeType;
|
298
|
+
style?: ButtonStyleType;
|
299
|
+
isLoading?: boolean;
|
300
|
+
dataTestId: string;
|
301
|
+
disabled?: boolean;
|
302
|
+
fullWidth?: boolean;
|
303
|
+
isOpacityHoverChild?: boolean;
|
304
|
+
triggerAutoClickTimestamp?: number | null;
|
305
|
+
} & {
|
306
|
+
showTooltip?: never;
|
307
|
+
tooltipProps?: never;
|
308
|
+
} & {
|
309
|
+
icon: import('react').ReactElement;
|
310
|
+
showAriaLabelInTippy?: boolean;
|
311
|
+
ariaLabel: string;
|
312
|
+
text?: never;
|
313
|
+
startIcon?: never;
|
314
|
+
endIcon?: never;
|
315
|
+
fontWeight?: never;
|
316
|
+
}, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
317
|
+
ref?: import('react').Ref<HTMLAnchorElement>;
|
318
|
+
component: ButtonComponentType.link;
|
319
|
+
linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
|
320
|
+
buttonProps?: never;
|
321
|
+
anchorProps?: never;
|
322
|
+
onClick?: import('react-router-dom').LinkProps["onClick"];
|
323
|
+
} & {
|
324
|
+
variant?: ButtonVariantType;
|
325
|
+
size?: ComponentSizeType;
|
326
|
+
style?: ButtonStyleType;
|
327
|
+
isLoading?: boolean;
|
328
|
+
dataTestId: string;
|
329
|
+
disabled?: boolean;
|
330
|
+
fullWidth?: boolean;
|
331
|
+
isOpacityHoverChild?: boolean;
|
332
|
+
triggerAutoClickTimestamp?: number | null;
|
333
|
+
} & {
|
334
|
+
showTooltip?: boolean;
|
335
|
+
tooltipProps: Omit<Extract<TooltipProps, {
|
336
|
+
alwaysShowTippyOnHover: boolean;
|
337
|
+
}>, "alwaysShowTippyOnHover"> | Omit<Extract<TooltipProps, {
|
338
|
+
alwaysShowTippyOnHover?: boolean;
|
339
|
+
}>, "alwaysShowTippyOnHover"> | Omit<Extract<TooltipProps, {
|
340
|
+
alwaysShowTippyOnHover?: never;
|
341
|
+
}>, "alwaysShowTippyOnHover">;
|
342
|
+
} & {
|
343
|
+
icon?: never;
|
344
|
+
ariaLabel?: never;
|
345
|
+
showAriaLabelInTippy?: never;
|
346
|
+
text: string;
|
347
|
+
startIcon?: import('react').ReactElement;
|
348
|
+
endIcon?: import('react').ReactElement;
|
349
|
+
fontWeight?: "bold" | "normal";
|
350
|
+
}, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
351
|
+
ref?: import('react').Ref<HTMLAnchorElement>;
|
352
|
+
component: ButtonComponentType.link;
|
353
|
+
linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
|
354
|
+
buttonProps?: never;
|
355
|
+
anchorProps?: never;
|
356
|
+
onClick?: import('react-router-dom').LinkProps["onClick"];
|
357
|
+
} & {
|
358
|
+
variant?: ButtonVariantType;
|
359
|
+
size?: ComponentSizeType;
|
360
|
+
style?: ButtonStyleType;
|
361
|
+
isLoading?: boolean;
|
362
|
+
dataTestId: string;
|
363
|
+
disabled?: boolean;
|
364
|
+
fullWidth?: boolean;
|
365
|
+
isOpacityHoverChild?: boolean;
|
366
|
+
triggerAutoClickTimestamp?: number | null;
|
367
|
+
} & {
|
368
|
+
showTooltip?: boolean;
|
369
|
+
tooltipProps: Omit<Extract<TooltipProps, {
|
370
|
+
alwaysShowTippyOnHover: boolean;
|
371
|
+
}>, "alwaysShowTippyOnHover"> | Omit<Extract<TooltipProps, {
|
372
|
+
alwaysShowTippyOnHover?: boolean;
|
373
|
+
}>, "alwaysShowTippyOnHover"> | Omit<Extract<TooltipProps, {
|
374
|
+
alwaysShowTippyOnHover?: never;
|
375
|
+
}>, "alwaysShowTippyOnHover">;
|
376
|
+
} & {
|
377
|
+
icon: import('react').ReactElement;
|
378
|
+
showAriaLabelInTippy?: boolean;
|
379
|
+
ariaLabel: string;
|
380
|
+
text?: never;
|
381
|
+
startIcon?: never;
|
382
|
+
endIcon?: never;
|
383
|
+
fontWeight?: never;
|
384
|
+
}, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
385
|
+
ref?: import('react').Ref<HTMLAnchorElement>;
|
386
|
+
component: ButtonComponentType.link;
|
387
|
+
linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
|
388
|
+
buttonProps?: never;
|
389
|
+
anchorProps?: never;
|
390
|
+
onClick?: import('react-router-dom').LinkProps["onClick"];
|
391
|
+
} & {
|
392
|
+
variant?: ButtonVariantType;
|
393
|
+
size?: ComponentSizeType;
|
394
|
+
style?: ButtonStyleType;
|
395
|
+
isLoading?: boolean;
|
396
|
+
dataTestId: string;
|
397
|
+
disabled?: boolean;
|
398
|
+
fullWidth?: boolean;
|
399
|
+
isOpacityHoverChild?: boolean;
|
400
|
+
triggerAutoClickTimestamp?: number | null;
|
401
|
+
} & {
|
402
|
+
showTooltip?: never;
|
403
|
+
tooltipProps?: never;
|
404
|
+
} & {
|
405
|
+
icon?: never;
|
406
|
+
ariaLabel?: never;
|
407
|
+
showAriaLabelInTippy?: never;
|
408
|
+
text: string;
|
409
|
+
startIcon?: import('react').ReactElement;
|
410
|
+
endIcon?: import('react').ReactElement;
|
411
|
+
fontWeight?: "bold" | "normal";
|
412
|
+
}, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
413
|
+
ref?: import('react').Ref<HTMLAnchorElement>;
|
414
|
+
component: ButtonComponentType.link;
|
415
|
+
linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
|
416
|
+
buttonProps?: never;
|
417
|
+
anchorProps?: never;
|
418
|
+
onClick?: import('react-router-dom').LinkProps["onClick"];
|
419
|
+
} & {
|
420
|
+
variant?: ButtonVariantType;
|
421
|
+
size?: ComponentSizeType;
|
422
|
+
style?: ButtonStyleType;
|
423
|
+
isLoading?: boolean;
|
424
|
+
dataTestId: string;
|
425
|
+
disabled?: boolean;
|
426
|
+
fullWidth?: boolean;
|
427
|
+
isOpacityHoverChild?: boolean;
|
428
|
+
triggerAutoClickTimestamp?: number | null;
|
429
|
+
} & {
|
430
|
+
showTooltip?: never;
|
431
|
+
tooltipProps?: never;
|
432
|
+
} & {
|
433
|
+
icon: import('react').ReactElement;
|
434
|
+
showAriaLabelInTippy?: boolean;
|
435
|
+
ariaLabel: string;
|
436
|
+
text?: never;
|
437
|
+
startIcon?: never;
|
438
|
+
endIcon?: never;
|
439
|
+
fontWeight?: never;
|
440
|
+
}, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy">) & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
67
441
|
export default Button;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactElement } from 'react';
|
1
|
+
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactElement, Ref } from 'react';
|
2
2
|
import { LinkProps } from 'react-router-dom';
|
3
|
-
import { TooltipProps } from '
|
3
|
+
import { TooltipProps } from '../../../Common/Tooltip';
|
4
4
|
import { ComponentSizeType } from '../../constants';
|
5
5
|
export declare enum ButtonVariantType {
|
6
6
|
primary = "primary",
|
@@ -24,6 +24,7 @@ export declare enum ButtonComponentType {
|
|
24
24
|
anchor = "anchor"
|
25
25
|
}
|
26
26
|
export type ButtonProps<ComponentType extends ButtonComponentType = ButtonComponentType.button> = (ComponentType extends ButtonComponentType.link ? {
|
27
|
+
ref?: Ref<HTMLAnchorElement>;
|
27
28
|
component: ButtonComponentType.link;
|
28
29
|
/**
|
29
30
|
* Props for the link component
|
@@ -33,6 +34,7 @@ export type ButtonProps<ComponentType extends ButtonComponentType = ButtonCompon
|
|
33
34
|
anchorProps?: never;
|
34
35
|
onClick?: LinkProps['onClick'];
|
35
36
|
} : ComponentType extends ButtonComponentType.anchor ? {
|
37
|
+
ref?: Ref<HTMLAnchorElement>;
|
36
38
|
component: ButtonComponentType.anchor;
|
37
39
|
linkProps?: never;
|
38
40
|
buttonProps?: never;
|
@@ -44,6 +46,7 @@ export type ButtonProps<ComponentType extends ButtonComponentType = ButtonCompon
|
|
44
46
|
anchorProps: Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'children' | 'styles' | 'className' | 'onClick'>;
|
45
47
|
onClick?: AnchorHTMLAttributes<HTMLAnchorElement>['onClick'];
|
46
48
|
} : {
|
49
|
+
ref?: Ref<HTMLButtonElement>;
|
47
50
|
/**
|
48
51
|
* Component to be rendered from the available options
|
49
52
|
*
|
@@ -112,7 +115,7 @@ export type ButtonProps<ComponentType extends ButtonComponentType = ButtonCompon
|
|
112
115
|
/**
|
113
116
|
* If true, the tooltip is shown for the button
|
114
117
|
*/
|
115
|
-
showTooltip
|
118
|
+
showTooltip?: boolean;
|
116
119
|
/**
|
117
120
|
* Props for tooltip
|
118
121
|
*/
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DeploymentConfigDiffProps } from '
|
1
|
+
import { DeploymentConfigDiffProps } from '../../DeploymentConfigDiff';
|
2
2
|
import { History } from '../types';
|
3
3
|
import { DeploymentHistoryConfigDiffProps } from './types';
|
4
4
|
export declare const renderDeploymentHistoryConfig: (config: DeploymentConfigDiffProps["configList"], heading: string, pathname: string, hideDiffState: boolean) => JSX.Element;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
2
2
|
import { UseUrlFiltersReturnType } from '../../../../Common/Hooks';
|
3
|
-
import { DeploymentConfigDiffProps } from '
|
3
|
+
import { DeploymentConfigDiffProps } from '../../DeploymentConfigDiff';
|
4
4
|
import { EnvResourceType } from '../../../Services';
|
5
5
|
import { History, HistoryLogsProps } from '../types';
|
6
6
|
export interface DeploymentHistoryConfigDiffQueryParams {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { SelectPickerOptionType } from '
|
1
|
+
import { SelectPickerOptionType } from '../../SelectPicker';
|
2
2
|
import { DeploymentHistorySingleValue, History } from '../types';
|
3
3
|
import { DeploymentHistoryConfigDiffProps } from './types';
|
4
4
|
export declare const getPipelineDeployments: (triggerHistory: DeploymentHistoryConfigDiffProps["triggerHistory"]) => History[];
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { DeploymentStatusDetailBreakdownType } from './types';
|
2
|
-
declare const DeploymentStatusDetailBreakdown: ({ deploymentStatusDetailsBreakdownData, isVirtualEnvironment, appDetails, rootClassName,
|
2
|
+
declare const DeploymentStatusDetailBreakdown: ({ deploymentStatusDetailsBreakdownData, isVirtualEnvironment, appDetails, rootClassName, }: DeploymentStatusDetailBreakdownType) => JSX.Element;
|
3
3
|
export default DeploymentStatusDetailBreakdown;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CSSProperties, MutableRefObject, ReactElement, ReactNode } from 'react';
|
2
|
-
import { SupportedKeyboardKeysType } from '
|
2
|
+
import { SupportedKeyboardKeysType } from '../../../Common/Hooks/UseRegisterShortcut/types';
|
3
3
|
import { DeploymentAppTypes, FilterConditionsListType, ImageComment, OptionType, PaginationProps, PromotionApprovalMetadataType, ReleaseTag, ResponseType, TooltipProps, UserApprovalMetadataType, useScrollable } from '../../../Common';
|
4
4
|
import { DeploymentStageType } from '../../constants';
|
5
5
|
import { AggregationKeys, AppDetails, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, DeploymentStatusTimelineType, DeploymentStrategyType, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType, TargetPlatformsDTO } from '../../types';
|
@@ -402,7 +402,6 @@ export interface DeploymentStatusDetailBreakdownType {
|
|
402
402
|
*/
|
403
403
|
appDetails: AppDetails | null;
|
404
404
|
rootClassName?: string;
|
405
|
-
deploymentAppType?: DeploymentAppTypes;
|
406
405
|
}
|
407
406
|
export interface DeploymentStatusDetailRowType extends Pick<DeploymentStatusDetailBreakdownType, 'appDetails'> {
|
408
407
|
type: DeploymentStatusTimelineType;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { SupportedKeyboardKeysType } from '
|
1
|
+
import { SupportedKeyboardKeysType } from '../../../Common/Hooks/UseRegisterShortcut/types';
|
2
2
|
export declare const PREVIOUS_MATCH_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
3
3
|
export declare const NEXT_MATCH_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
4
4
|
export declare const REPLACE_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
@@ -6,6 +6,5 @@ export declare const WFR_STATUS_DTO_TO_DEPLOYMENT_STATUS_MAP: Readonly<Record<Wo
|
|
6
6
|
export declare const PROGRESSING_DEPLOYMENT_STATUS: Readonly<(typeof DEPLOYMENT_STATUS)[keyof typeof DEPLOYMENT_STATUS][]>;
|
7
7
|
export declare const SUCCESSFUL_DEPLOYMENT_STATUS: typeof PROGRESSING_DEPLOYMENT_STATUS;
|
8
8
|
export declare const FAILED_DEPLOYMENT_STATUS: typeof PROGRESSING_DEPLOYMENT_STATUS;
|
9
|
-
export declare const
|
10
|
-
export declare const PHYSICAL_ENV_DEPLOYMENT_TIMELINE_ORDER_FLUX: Readonly<DeploymentStatusTimelineType[]>;
|
9
|
+
export declare const PHYSICAL_ENV_DEPLOYMENT_TIMELINE_ORDER: Readonly<DeploymentStatusTimelineType[]>;
|
11
10
|
export declare const DEPLOYMENT_PHASES: Readonly<DeploymentPhaseType[]>;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { DeploymentAppTypes } from '../../../Common/Types';
|
2
1
|
import { DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType } from '../../types';
|
3
2
|
/**
|
4
3
|
* @description
|
@@ -18,4 +17,4 @@ import { DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType }
|
|
18
17
|
* - If this timeline is not inprogress and deploymentStatus is progressing, we will set the current timeline to waiting.
|
19
18
|
* - In similar fashion based on the deploymentStatus we will set the icon and display text for the timeline.
|
20
19
|
*/
|
21
|
-
export declare const processDeploymentStatusDetailsData: (
|
20
|
+
export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { DetailedHTMLProps, ReactElement, ReactNode } from 'react';
|
2
2
|
import { ResizableTagTextAreaProps } from '../../../Common/CustomTagSelector';
|
3
3
|
import { UseStateFiltersReturnType } from '../../../Common/Hooks';
|
4
|
-
import { TooltipProps } from '
|
4
|
+
import { TooltipProps } from '../../../Common/Tooltip';
|
5
5
|
import { FileUploadProps } from '../FileUpload';
|
6
6
|
import { SelectPickerOptionType, SelectPickerProps, SelectPickerTextAreaProps } from '../SelectPicker';
|
7
7
|
/**
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { MouseEventHandler, ReactElement } from 'react';
|
2
2
|
import { LinkProps } from 'react-router-dom';
|
3
|
-
import { GenericFilterEmptyStateProps } from '
|
3
|
+
import { GenericFilterEmptyStateProps } from '../../../Common/EmptyState/types';
|
4
4
|
import { GenericEmptyStateType } from '../../../Common/Types';
|
5
5
|
import { APIResponseHandlerProps } from '../APIResponseHandler';
|
6
6
|
type BaseGenericInfoCardProps = {
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
2
|
+
import { GenericModalFooterProps, GenericModalHeaderProps, GenericModalProps } from './types';
|
3
|
+
declare const GenericModal: {
|
4
|
+
({ name, open, width, onClose, onEscape, closeOnBackdropClick, children, }: PropsWithChildren<GenericModalProps>): JSX.Element;
|
5
|
+
Header: ({ title }: GenericModalHeaderProps) => JSX.Element;
|
6
|
+
Body: ({ children }: PropsWithChildren<{}>) => JSX.Element;
|
7
|
+
Footer: ({ leftSideElement, buttonConfig, children, }: PropsWithChildren<GenericModalFooterProps>) => JSX.Element;
|
8
|
+
};
|
9
|
+
export default GenericModal;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
2
|
+
import { GenericModalContextType } from './types';
|
3
|
+
export declare const GenericModalProvider: ({ value, children }: PropsWithChildren<{
|
4
|
+
value: GenericModalContextType;
|
5
|
+
}>) => JSX.Element;
|
6
|
+
export declare const useGenericModalContext: () => GenericModalContextType;
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { BackdropProps } from '../Backdrop';
|
2
|
+
import { ButtonProps } from '../Button';
|
3
|
+
export interface GenericModalProps extends Partial<Pick<BackdropProps, 'onEscape'>> {
|
4
|
+
/** Unique identifier for the modal */
|
5
|
+
name: string;
|
6
|
+
/** Controls whether the modal is visible or hidden */
|
7
|
+
open: boolean;
|
8
|
+
/** Callback function triggered when the modal is closed */
|
9
|
+
onClose: () => void;
|
10
|
+
/**
|
11
|
+
* Width of the modal (in pixels).
|
12
|
+
* @default 600
|
13
|
+
*/
|
14
|
+
width?: 500 | 600 | 800;
|
15
|
+
/**
|
16
|
+
* Determines if the modal should close when the user clicks outside of it (on the backdrop).
|
17
|
+
* @default false
|
18
|
+
*/
|
19
|
+
closeOnBackdropClick?: boolean;
|
20
|
+
}
|
21
|
+
export interface GenericModalContextType extends Pick<GenericModalProps, 'name' | 'onClose'> {
|
22
|
+
}
|
23
|
+
export interface GenericModalHeaderProps {
|
24
|
+
/** Title text displayed in the modal header */
|
25
|
+
title: string;
|
26
|
+
}
|
27
|
+
export interface GenericModalFooterProps {
|
28
|
+
/** Configuration for the buttons displayed in the modal footer */
|
29
|
+
buttonConfig?: {
|
30
|
+
/** Properties for the primary action button */
|
31
|
+
primaryButton?: ButtonProps;
|
32
|
+
/** Properties for the secondary action button */
|
33
|
+
secondaryButton?: ButtonProps;
|
34
|
+
};
|
35
|
+
/** Optional element to be displayed on the left side of the footer */
|
36
|
+
leftSideElement?: React.ReactNode;
|
37
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { GettingStartedType } from './types';
|
2
|
-
declare const GettingStartedCard: ({
|
2
|
+
declare const GettingStartedCard: ({ hideGettingStartedCard }: GettingStartedType) => JSX.Element;
|
3
3
|
export default GettingStartedCard;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { HelpButtonProps } from './types';
|
2
|
-
export declare const HelpButton: ({ serverInfo, fetchingServerInfo, onClick }: HelpButtonProps) => JSX.Element;
|
2
|
+
export declare const HelpButton: ({ serverInfo, fetchingServerInfo, onClick, hideGettingStartedCard }: HelpButtonProps) => JSX.Element;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { PageHeaderType } from './types';
|
2
|
-
declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons,
|
2
|
+
declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, tippyProps, }: PageHeaderType) => JSX.Element;
|
3
3
|
export default PageHeader;
|
@@ -10,9 +10,6 @@ export interface PageHeaderType {
|
|
10
10
|
isBreadcrumbs?: boolean;
|
11
11
|
breadCrumbs?: () => JSX.Element;
|
12
12
|
renderActionButtons?: () => JSX.Element;
|
13
|
-
showCloseButton?: boolean;
|
14
|
-
onClose?: () => void;
|
15
|
-
markAsBeta?: boolean;
|
16
13
|
tippyProps?: Pick<TippyCustomizedProps<false>, 'additionalContent'> & {
|
17
14
|
isTippyCustomized?: boolean;
|
18
15
|
tippyRedirectLink?: keyof typeof DOCUMENTATION;
|
@@ -34,6 +31,7 @@ export interface HelpButtonProps {
|
|
34
31
|
serverInfo: ServerInfo;
|
35
32
|
fetchingServerInfo: boolean;
|
36
33
|
onClick: () => void;
|
34
|
+
hideGettingStartedCard: () => void;
|
37
35
|
}
|
38
36
|
export declare enum HelpMenuItems {
|
39
37
|
GETTING_STARTED = "getting-started",
|