@devtron-labs/devtron-fe-common-lib 1.14.1 → 1.14.2-pre-1-beta-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/{@code-editor-Da2XaRcI.js → @code-editor-CHYHyh2T.js} +9921 -9620
  2. package/dist/{@common-rjsf-CK-nXKwn.js → @common-rjsf-D9RK1bFp.js} +2 -2
  3. package/dist/{@framer-motion-DyOLEeMN.js → @framer-motion-CXr339mx.js} +3 -3
  4. package/dist/{@react-dates-B7d8RWU9.js → @react-dates-BqsAxdEY.js} +14 -14
  5. package/dist/{@react-select-Coo19Q6a.js → @react-select-BMTMYG5B.js} +6 -6
  6. package/dist/{@react-virtualized-sticky-tree-BPjPJDIR.js → @react-virtualized-sticky-tree-wtn_BsmV.js} +1 -1
  7. package/dist/{@vendor-D9q4wrnL.js → @vendor-CmCjU670.js} +13875 -15779
  8. package/dist/Common/Constants.d.ts +4 -10
  9. package/dist/Common/SegmentedControl/Segment.d.ts +1 -1
  10. package/dist/Common/SegmentedControl/types.d.ts +3 -2
  11. package/dist/Common/TippyCustomized.d.ts +1 -1
  12. package/dist/Common/Types.d.ts +17 -7
  13. package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/services.d.ts +1 -1
  14. package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +2 -1
  15. package/dist/Shared/Components/CICDHistory/types.d.ts +1 -2
  16. package/dist/Shared/Components/CodeEditor/CodeEditor.d.ts +1 -1
  17. package/dist/Shared/Components/CodeEditor/CodeEditorRenderer.d.ts +1 -1
  18. package/dist/Shared/Components/CodeEditor/Extensions/findAndReplace.d.ts +2 -1
  19. package/dist/Shared/Components/CodeEditor/types.d.ts +14 -1
  20. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +0 -2
  21. package/dist/Shared/Components/DocLink/DocLink.d.ts +2 -0
  22. package/dist/Shared/Components/DocLink/constants.d.ts +94 -0
  23. package/dist/Shared/Components/DocLink/index.d.ts +4 -0
  24. package/dist/Shared/Components/DocLink/types.d.ts +18 -0
  25. package/dist/Shared/Components/DocLink/utils.d.ts +2 -0
  26. package/dist/Shared/Components/DynamicDataTable/DynamicDataTable.d.ts +1 -1
  27. package/dist/Shared/Components/DynamicDataTable/DynamicDataTableRow.d.ts +1 -1
  28. package/dist/Shared/Components/DynamicDataTable/types.d.ts +8 -4
  29. package/dist/Shared/Components/FeatureDescription/types.d.ts +2 -1
  30. package/dist/Shared/Components/FramerComponents/index.d.ts +2 -3
  31. package/dist/Shared/Components/GenericInfoCard/GenericInfoCardListing.d.ts +2 -0
  32. package/dist/Shared/Components/GenericInfoCard/GenericInfoListSkeleton.d.ts +2 -0
  33. package/dist/Shared/Components/GenericInfoCard/index.d.ts +3 -1
  34. package/dist/Shared/Components/GenericInfoCard/types.d.ts +13 -0
  35. package/dist/Shared/Components/Header/types.d.ts +4 -8
  36. package/dist/Shared/Components/Icon/Icon.d.ts +31 -0
  37. package/dist/Shared/Components/Icon/types.d.ts +2 -2
  38. package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
  39. package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
  40. package/dist/Shared/Components/KeyValueTable/KeyValueTable.types.d.ts +1 -1
  41. package/dist/Shared/Components/LoadingCard.d.ts +5 -0
  42. package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +2 -1
  43. package/dist/Shared/Components/StatusComponent/AppStatus.d.ts +1 -1
  44. package/dist/Shared/Components/Switch/Switch.component.d.ts +3 -0
  45. package/dist/Shared/Components/Switch/constants.d.ts +14 -0
  46. package/dist/Shared/Components/Switch/index.d.ts +2 -0
  47. package/dist/Shared/Components/Switch/types.d.ts +101 -0
  48. package/dist/Shared/Components/Switch/utils.d.ts +12 -0
  49. package/dist/Shared/Components/index.d.ts +3 -1
  50. package/dist/Shared/Helpers.d.ts +1 -0
  51. package/dist/Shared/Providers/index.d.ts +1 -1
  52. package/dist/Shared/Providers/types.d.ts +16 -0
  53. package/dist/Shared/constants.d.ts +1 -0
  54. package/dist/Shared/types.d.ts +8 -0
  55. package/dist/Shared/validations.d.ts +1 -0
  56. package/dist/assets/@code-editor.css +1 -1
  57. package/dist/assets/empty-create.661d9355.png +0 -0
  58. package/dist/assets/ic-app-template.82736707.svg +23 -0
  59. package/dist/assets/ic-arrows-clockwise.5858ba0a.svg +3 -0
  60. package/dist/assets/ic-checkbox-selected-error.185fc40c.svg +4 -0
  61. package/dist/assets/{ic-hibernate.f75c1e70.svg → ic-checkbox-selected-error.b40237bc.svg} +3 -2
  62. package/dist/assets/ic-cluster-isolated.93f843b9.svg +3 -0
  63. package/dist/assets/{ic-cluster.71ba9e26.svg → ic-cluster.f1c3fad1.svg} +1 -1
  64. package/dist/assets/ic-devtron-app.a8b688d3.svg +23 -0
  65. package/dist/assets/ic-devtron-job.1b216232.svg +10 -0
  66. package/dist/assets/ic-email.78fed574.svg +3 -0
  67. package/dist/assets/ic-environment-isolated.b772ae9d.svg +3 -0
  68. package/dist/assets/ic-environment.e639b8f3.svg +4 -0
  69. package/dist/assets/ic-fast-forward.8d1a414b.svg +4 -0
  70. package/dist/assets/ic-filter-applied.56f397cb.svg +4 -0
  71. package/dist/assets/ic-filter.d6f03b78.svg +3 -0
  72. package/dist/assets/ic-flask.d0624c30.svg +3 -0
  73. package/dist/assets/ic-hibernate-circle.7c32c56e.svg +3 -0
  74. package/dist/assets/{ic-arrow-square-out.3d1a0d41.svg → ic-hibernate.263ffcea.svg} +2 -2
  75. package/dist/assets/ic-key-enter.59d23056.svg +3 -0
  76. package/dist/assets/ic-lego.1d2c5e1d.svg +3 -0
  77. package/dist/assets/ic-magnifying-glass.cf47bce0.svg +3 -0
  78. package/dist/assets/ic-mechanical-operation.04a318d6.svg +17 -0
  79. package/dist/assets/ic-more-vertical.6b4cc903.svg +3 -0
  80. package/dist/assets/ic-play-outline.a4f09bf9.svg +3 -0
  81. package/dist/assets/ic-rocket-gear.f1e30f8a.svg +3 -0
  82. package/dist/assets/ic-shapes.b7b5c28f.svg +3 -0
  83. package/dist/assets/ic-spray-can.624b202a.svg +3 -0
  84. package/dist/assets/ic-strategy-blue-green-color.0b348d03.svg +6 -0
  85. package/dist/assets/ic-strategy-blue-green.4e57a068.svg +3 -0
  86. package/dist/assets/ic-strategy-canary-color.db010ee7.svg +5 -0
  87. package/dist/assets/ic-strategy-canary.aa75f27f.svg +3 -0
  88. package/dist/assets/ic-strategy-recreate-color.187facd4.svg +4 -0
  89. package/dist/assets/ic-strategy-recreate.77b19a53.svg +3 -0
  90. package/dist/assets/ic-strategy-rolling-color.f9b3c0bb.svg +6 -0
  91. package/dist/assets/ic-strategy-rolling.ba8a30f7.svg +3 -0
  92. package/dist/assets/ic-sun.47c14f53.svg +3 -0
  93. package/dist/assets/ic-traffic-signal.f23a1086.svg +3 -0
  94. package/dist/index.d.ts +6 -0
  95. package/dist/index.js +793 -783
  96. package/package.json +1 -2
  97. package/dist/Shared/Components/DiffViewer/DiffViewer.component.d.ts +0 -41
  98. package/dist/Shared/Components/DiffViewer/constants.d.ts +0 -2
  99. package/dist/Shared/Components/DiffViewer/index.d.ts +0 -1
  100. package/dist/Shared/Components/DiffViewer/types.d.ts +0 -9
  101. package/dist/Shared/Components/FramerComponents/MotionDiv.d.ts +0 -2
  102. package/dist/assets/ic-mechanical-operation.3c3f4672.svg +0 -76
@@ -6,9 +6,11 @@ export declare const iconMap: {
6
6
  'ic-amazon-eks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
7
7
  'ic-apica': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
8
8
  'ic-app-group': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
9
+ 'ic-app-template': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
9
10
  'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
10
11
  'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
11
12
  'ic-arrow-square-out': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
13
+ 'ic-arrows-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
12
14
  'ic-arrows-left-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
13
15
  'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
14
16
  'ic-azure-aks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -37,6 +39,7 @@ export declare const iconMap: {
37
39
  'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
38
40
  'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
39
41
  'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
42
+ 'ic-cluster-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
40
43
  'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
41
44
  'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
42
45
  'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -49,24 +52,33 @@ export declare const iconMap: {
49
52
  'ic-delete-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
50
53
  'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
51
54
  'ic-delhivery': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
55
+ 'ic-devtron-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
52
56
  'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
57
+ 'ic-devtron-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
53
58
  'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
54
59
  'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
55
60
  'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
56
61
  'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
57
62
  'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
58
63
  'ic-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
64
+ 'ic-email': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
59
65
  'ic-enterprise-feat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
60
66
  'ic-enterprise-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
61
67
  'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
68
+ 'ic-environment-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
69
+ 'ic-environment': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
62
70
  'ic-error': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
63
71
  'ic-expand-right-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
64
72
  'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
65
73
  'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
74
+ 'ic-fast-forward': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
66
75
  'ic-file-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
67
76
  'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
68
77
  'ic-file': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
69
78
  'ic-files': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
79
+ 'ic-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
80
+ 'ic-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
81
+ 'ic-flask': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
70
82
  'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
71
83
  'ic-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
72
84
  'ic-gift-gradient': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -86,6 +98,7 @@ export declare const iconMap: {
86
98
  'ic-helm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
87
99
  'ic-help-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
88
100
  'ic-help-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
101
+ 'ic-hibernate-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
89
102
  'ic-hibernate': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
90
103
  'ic-in-progress': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
91
104
  'ic-info-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -94,14 +107,17 @@ export declare const iconMap: {
94
107
  'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
95
108
  'ic-k3s': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
96
109
  'ic-k8s-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
110
+ 'ic-key-enter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
97
111
  'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
98
112
  'ic-kind': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
99
113
  'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
100
114
  'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
115
+ 'ic-lego': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
101
116
  'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
102
117
  'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
103
118
  'ic-livspace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
104
119
  'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
120
+ 'ic-magnifying-glass': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
105
121
  'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
106
122
  'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
107
123
  'ic-megaphone-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -112,6 +128,7 @@ export declare const iconMap: {
112
128
  'ic-missing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
113
129
  'ic-mobile': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
114
130
  'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
131
+ 'ic-more-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
115
132
  'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
116
133
  'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
117
134
  'ic-oidc': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -122,10 +139,13 @@ export declare const iconMap: {
122
139
  'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
123
140
  'ic-path': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
124
141
  'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
142
+ 'ic-play-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
125
143
  'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
126
144
  'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
145
+ 'ic-rocket-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
127
146
  'ic-rocket-launch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
128
147
  'ic-selected': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
148
+ 'ic-shapes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
129
149
  'ic-shield-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
130
150
  'ic-sliders-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
131
151
  'ic-sort-ascending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -133,9 +153,19 @@ export declare const iconMap: {
133
153
  'ic-sortable': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
134
154
  'ic-sparkle-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
135
155
  'ic-spinny': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
156
+ 'ic-spray-can': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
136
157
  'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
137
158
  'ic-stamp': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
159
+ 'ic-strategy-blue-green-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
160
+ 'ic-strategy-blue-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
161
+ 'ic-strategy-canary-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
162
+ 'ic-strategy-canary': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
163
+ 'ic-strategy-recreate-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
164
+ 'ic-strategy-recreate': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
165
+ 'ic-strategy-rolling-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
166
+ 'ic-strategy-rolling': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
138
167
  'ic-success': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
168
+ 'ic-sun': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
139
169
  'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
140
170
  'ic-tata1mg': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
141
171
  'ic-terminal-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -145,6 +175,7 @@ export declare const iconMap: {
145
175
  'ic-thumb-up': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
146
176
  'ic-timeout-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
147
177
  'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
178
+ 'ic-traffic-signal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
148
179
  'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
149
180
  'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
150
181
  'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -1,6 +1,6 @@
1
1
  import { FC, SVGProps } from 'react';
2
- import { TooltipProps } from '@Common/Tooltip/types';
3
- import { IconBaseColorType, IconBaseSizeType } from '../../index';
2
+ import { TooltipProps } from '../../../Common/Tooltip';
3
+ import { IconBaseColorType, IconBaseSizeType } from '../../types';
4
4
  type IconMap = Record<string, FC<SVGProps<SVGSVGElement>>>;
5
5
  export interface IconBaseProps {
6
6
  /**
@@ -1,3 +1,3 @@
1
1
  import { InfoIconTippyProps } from '../../../Common/Types';
2
- declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, buttonPadding, }: InfoIconTippyProps) => JSX.Element;
2
+ declare const InfoIconTippy: <T extends boolean = false>({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, buttonPadding, isExternalLink, openInNewTab, }: InfoIconTippyProps<T>) => JSX.Element;
3
3
  export default InfoIconTippy;
@@ -1,2 +1,2 @@
1
1
  import { KeyValueTableProps } from './KeyValueTable.types';
2
- export declare const KeyValueTable: ({ headerLabel, rows: initialRows, placeholder, maskValue, isSortable, headerComponent, onChange, isAdditionNotAllowed, readOnly, showError, validationSchema: parentValidationSchema, onError, validateDuplicateKeys, validateEmptyKeys, }: KeyValueTableProps) => JSX.Element;
2
+ export declare const KeyValueTable: ({ headerLabel, rows: initialRows, placeholder, maskValue, isSortable, headerComponent, onChange, isAdditionNotAllowed, shouldAutoFocusOnMount, readOnly, showError, validationSchema: parentValidationSchema, onError, validateDuplicateKeys, validateEmptyKeys, }: KeyValueTableProps) => JSX.Element;
@@ -55,7 +55,7 @@ export interface KeyValueTableData extends Pick<KeyValueTableRowType, 'id'> {
55
55
  /**
56
56
  * Props for the KeyValueTable component.
57
57
  */
58
- export type KeyValueTableProps = Pick<DynamicDataTableProps<KeyValueTableDataType>, 'isAdditionNotAllowed' | 'readOnly' | 'headerComponent'> & {
58
+ export type KeyValueTableProps = Pick<DynamicDataTableProps<KeyValueTableDataType>, 'isAdditionNotAllowed' | 'readOnly' | 'headerComponent' | 'shouldAutoFocusOnMount'> & {
59
59
  /**
60
60
  * The label for the table header.
61
61
  */
@@ -0,0 +1,5 @@
1
+ interface LoadingCardType {
2
+ wider?: boolean;
3
+ }
4
+ declare const LoadingCard: ({ wider }: LoadingCardType) => JSX.Element;
5
+ export default LoadingCard;
@@ -1,8 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
+ import { DocLinkProps } from '../DocLink';
2
3
  export interface ModalSidebarPanelProps {
3
4
  rootClassName?: string;
4
5
  heading: string | null;
5
6
  icon?: JSX.Element;
6
7
  children?: ReactNode;
7
- documentationLink: string;
8
+ documentationLink: DocLinkProps<false>['docLinkKey'];
8
9
  }
@@ -1,2 +1,2 @@
1
1
  import { AppStatusProps } from './types';
2
- export declare const AppStatus: ({ status, isJobView, isVirtualEnv, ...restProps }: AppStatusProps) => JSX.Element;
2
+ export declare const AppStatus: ({ status, isJobView, isVirtualEnv, hideMessage, ...restProps }: AppStatusProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { DTSwitchProps } from './types';
2
+ declare const Switch: ({ ariaLabel, isDisabled, isLoading, isChecked, tooltipContent, shape, variant, iconColor, iconName, indeterminate, size, name, onChange, }: DTSwitchProps) => JSX.Element;
3
+ export default Switch;
@@ -0,0 +1,14 @@
1
+ import { IconBaseColorType } from '../../types';
2
+ import { DTSwitchProps } from './types';
3
+ export declare const ROUNDED_SWITCH_SIZE_MAP: Readonly<Record<DTSwitchProps['size'], string>>;
4
+ export declare const SQUARE_SWITCH_SIZE_MAP: typeof ROUNDED_SWITCH_SIZE_MAP;
5
+ export declare const SWITCH_HEIGHT_MAP: Readonly<Record<DTSwitchProps['size'], string>>;
6
+ export declare const LOADING_COLOR_MAP: Record<DTSwitchProps['variant'], IconBaseColorType>;
7
+ export declare const ROUNDED_SWITCH_TRACK_COLOR_MAP: Record<DTSwitchProps['variant'], string>;
8
+ export declare const ROUNDED_SWITCH_TRACK_HOVER_COLOR_MAP: Record<DTSwitchProps['variant'], `var(--${IconBaseColorType})`>;
9
+ export declare const SQUARE_SWITCH_TRACK_COLOR_MAP: typeof ROUNDED_SWITCH_TRACK_COLOR_MAP;
10
+ export declare const SQUARE_SWITCH_TRACK_HOVER_COLOR_MAP: typeof ROUNDED_SWITCH_TRACK_HOVER_COLOR_MAP;
11
+ export declare const ROUNDED_SWITCH_THUMB_SIZE_MAP: Record<DTSwitchProps['size'], string>;
12
+ export declare const INDETERMINATE_ICON_WIDTH_MAP: Record<DTSwitchProps['size'], string>;
13
+ export declare const SWITCH_THUMB_PADDING_MAP: Record<DTSwitchProps['size'], string>;
14
+ export declare const THUMB_OUTER_PADDING_MAP: Record<DTSwitchProps['shape'], string>;
@@ -0,0 +1,2 @@
1
+ export { default as DTSwitch } from './Switch.component';
2
+ export type { DTSwitchProps } from './types';
@@ -0,0 +1,101 @@
1
+ import { ComponentSizeType } from '../../constants';
2
+ import { IconBaseColorType } from '../../types';
3
+ import { IconName } from '../Icon';
4
+ /**
5
+ * Represents the properties for configuring the shape and behavior of a switch component.
6
+ *
7
+ * - When `shape` is `rounded`:
8
+ * - The switch will have a rounded appearance.
9
+ * - `iconName`, `iconColor`, and `indeterminate` are not applicable.
10
+ *
11
+ * - When `shape` is `square`:
12
+ * - The switch will have a square appearance.
13
+ * - `iconName` specifies the name of the icon to display.
14
+ * - `iconColor` allows customization of the icon's color in the active state.
15
+ * - `indeterminate` indicates whether the switch is in an indeterminate state, typically used for checkboxes to represent a mixed state.
16
+ * If `indeterminate` is true, the switch will not be fully checked or unchecked.
17
+ */
18
+ type SwitchShapeProps = {
19
+ /**
20
+ * The shape of the switch. Defaults to `rounded` if not specified.
21
+ */
22
+ shape?: 'rounded';
23
+ /**
24
+ * Icon name is not applicable for the `rounded` shape.
25
+ */
26
+ iconName?: never;
27
+ /**
28
+ * Icon color is not applicable for the `rounded` shape.
29
+ */
30
+ iconColor?: never;
31
+ /**
32
+ * Indicates whether the switch is in an indeterminate state.
33
+ * This state is typically used for checkboxes to indicate a mixed state.
34
+ * If true, the switch will not be fully checked or unchecked. Due this state alone we are keeping role as `checkbox` instead of `switch`.
35
+ * This property is not applicable for the `square` shape.
36
+ * @default false
37
+ */
38
+ indeterminate?: boolean;
39
+ } | {
40
+ /**
41
+ * The shape of the switch. Must be `square` to enable icon-related properties.
42
+ */
43
+ shape: 'square';
44
+ /**
45
+ * The name of the icon to display when the shape is `square`.
46
+ */
47
+ iconName: IconName;
48
+ /**
49
+ * The color of the icon. If provided, this will override the default color in the active state.
50
+ */
51
+ iconColor?: IconBaseColorType;
52
+ indeterminate?: never;
53
+ };
54
+ /**
55
+ * Represents the properties for the `Switch` component.
56
+ */
57
+ export type DTSwitchProps = {
58
+ /**
59
+ * The ARIA label for the switch, used for accessibility purposes.
60
+ */
61
+ ariaLabel: string;
62
+ /**
63
+ * Used in forms to identify the switch.
64
+ */
65
+ name: string;
66
+ /**
67
+ * The visual variant of the switch.
68
+ *
69
+ * @default `positive`
70
+ */
71
+ variant?: 'theme' | 'positive';
72
+ /**
73
+ * The size of the switch.
74
+ * @default `ComponentSizeType.medium`
75
+ */
76
+ size?: Extract<ComponentSizeType, ComponentSizeType.medium | ComponentSizeType.small>;
77
+ /**
78
+ * Callback function that is called when the switch state changes.
79
+ * This function should handle the logic for toggling the switch.
80
+ */
81
+ onChange: () => void;
82
+ /**
83
+ * Indicates whether the switch is disabled.
84
+ */
85
+ isDisabled?: boolean;
86
+ /**
87
+ * Indicates whether the switch is in a loading state.
88
+ */
89
+ isLoading?: boolean;
90
+ /**
91
+ * Indicates whether the switch is currently checked (on).
92
+ */
93
+ isChecked: boolean;
94
+ /**
95
+ * Optional tooltip content to display when hovering over the switch.
96
+ *
97
+ * @default undefined
98
+ */
99
+ tooltipContent?: string;
100
+ } & SwitchShapeProps;
101
+ export {};
@@ -0,0 +1,12 @@
1
+ import { IconBaseColorType } from '../../types';
2
+ import { ROUNDED_SWITCH_TRACK_HOVER_COLOR_MAP } from './constants';
3
+ import { DTSwitchProps } from './types';
4
+ export declare const getSwitchContainerClass: ({ shape, size }: Required<Pick<DTSwitchProps, "shape" | "size">>) => string;
5
+ export declare const getSwitchTrackColor: ({ shape, variant, isChecked, isLoading, }: Required<Pick<DTSwitchProps, "shape" | "variant" | "isChecked" | "isLoading">>) => string;
6
+ export declare const getSwitchTrackHoverColor: ({ shape, variant, isChecked, }: Required<Pick<DTSwitchProps, "shape" | "variant" | "isChecked">>) => (typeof ROUNDED_SWITCH_TRACK_HOVER_COLOR_MAP)[DTSwitchProps["variant"]];
7
+ export declare const getSwitchThumbClass: ({ shape, size, showIndeterminateIcon, }: Pick<DTSwitchProps, "shape" | "size"> & {
8
+ showIndeterminateIcon: boolean;
9
+ }) => string;
10
+ export declare const getSwitchIconColor: ({ iconColor, isChecked, variant, }: Pick<DTSwitchProps, "iconColor" | "isChecked" | "variant">) => IconBaseColorType;
11
+ export declare const getThumbPosition: ({ isLoading, isChecked, }: Pick<DTSwitchProps, "isLoading" | "isChecked">) => "left" | "right" | "center";
12
+ export declare const getThumbPadding: ({ shape, isLoading }: Pick<DTSwitchProps, "shape" | "isLoading">) => string;
@@ -26,7 +26,7 @@ export * from './DatePicker';
26
26
  export * from './DeploymentConfigDiff';
27
27
  export * from './DeploymentStatusBreakdown';
28
28
  export * from './DetectBottom';
29
- export * from './DiffViewer';
29
+ export * from './DocLink';
30
30
  export * from './DynamicDataTable';
31
31
  export * from './EditableTextArea';
32
32
  export * from './EditImageFormField';
@@ -56,6 +56,7 @@ export * from './InfoIconTippy';
56
56
  export * from './InvalidYAMLTippy';
57
57
  export * from './KeyValueTable';
58
58
  export * from './License';
59
+ export { default as LoadingCard } from './LoadingCard';
59
60
  export * from './LoginBanner';
60
61
  export * from './MaterialHistory';
61
62
  export * from './ModalSidebarPanel';
@@ -71,6 +72,7 @@ export * from './SelectPicker';
71
72
  export * from './ShowMoreText';
72
73
  export * from './SSOProviderIcon';
73
74
  export * from './StatusComponent';
75
+ export * from './Switch';
74
76
  export * from './TabGroup';
75
77
  export * from './Table';
76
78
  export * from './TagsKeyValueTable';
@@ -101,4 +101,5 @@ export declare const deriveBorderRadiusAndBorderClassFromConfig: ({ borderConfig
101
101
  export declare const getClassNameForStickyHeaderWithShadow: (isStuck: boolean, topClassName?: string) => string;
102
102
  export declare const clearCookieOnLogout: () => void;
103
103
  export declare const getAppDetailsURL: (appId: number | string, envId?: number | string) => string;
104
+ export declare const smoothScrollToTop: (scrollContainer: HTMLElement, targetPosition: number) => import('framer-motion').AnimationPlaybackControls;
104
105
  export {};
@@ -1,5 +1,5 @@
1
1
  export * from './ImageSelectionUtility';
2
2
  export * from './MainContextProvider';
3
3
  export * from './ThemeProvider';
4
- export type { MainContext, ReloadVersionConfigTypes } from './types';
4
+ export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig } from './types';
5
5
  export * from './UserEmailProvider';
@@ -11,6 +11,10 @@ export interface ReloadVersionConfigTypes {
11
11
  updateToastRef: MutableRefObject<ReturnType<typeof ToastManager.showToast>> | null;
12
12
  isRefreshing: boolean;
13
13
  }
14
+ export interface SidePanelConfig {
15
+ open: boolean;
16
+ docLink?: string | null;
17
+ }
14
18
  export interface MainContext {
15
19
  serverMode: SERVER_MODE;
16
20
  setServerMode: (serverMode: SERVER_MODE) => void;
@@ -58,6 +62,18 @@ export interface MainContext {
58
62
  reloadVersionConfig: ReloadVersionConfigTypes;
59
63
  intelligenceConfig: IntelligenceConfig;
60
64
  setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
65
+ sidePanelConfig: SidePanelConfig;
66
+ setSidePanelConfig: Dispatch<SetStateAction<SidePanelConfig>>;
67
+ /**
68
+ * Indicates whether the current Devtron instance is running as an Enterprise edition. \
69
+ * This flag is determined based on server-side configuration.
70
+ */
71
+ isEnterprise: boolean;
72
+ /**
73
+ * Indicates whether the fe-lib modules are available in the current instance. \
74
+ * Used to conditionally render or enable features that depend on fe-lib
75
+ */
76
+ isFELibAvailable: boolean;
61
77
  }
62
78
  export interface MainContextProviderProps {
63
79
  children: ReactNode;
@@ -429,3 +429,4 @@ export declare const VARIANT_TO_BORDER_MAP: Record<InfoBlockProps['variant'], st
429
429
  export declare const DEPLOYMENT_STAGE_TO_NODE_MAP: Readonly<Record<DeploymentStageType, DeploymentNodeType>>;
430
430
  export declare const APP_DETAILS_FALLBACK_POLLING_INTERVAL = 30000;
431
431
  export declare const PROGRESSING_DEPLOYMENT_STATUS_POLLING_INTERVAL = 10000;
432
+ export declare const CUBIC_BEZIER_CURVE: [number, number, number, number];
@@ -6,6 +6,11 @@ import { ReleaseMode } from '../Pages/index';
6
6
  import { CommonNodeAttr, DeploymentAppTypes, OptionType, PluginType, RefVariableType, SegmentedControlProps, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, VulnerabilityType } from '../Common';
7
7
  import { SelectPickerOptionType, WorkflowRunnerStatusDTO } from './Components';
8
8
  import { BASE_CONFIGURATION_ENV_ID, DEPLOYMENT_STATUS, EnvironmentTypeEnum, PatchOperationType } from './constants';
9
+ export declare enum InstallationType {
10
+ OSS_KUBECTL = "oss_kubectl",
11
+ OSS_HELM = "oss_helm",
12
+ ENTERPRISE = "enterprise"
13
+ }
9
14
  export declare enum EnvType {
10
15
  CHART = "helm_charts",
11
16
  APPLICATION = "apps"
@@ -1069,4 +1074,7 @@ export interface IntelligenceConfig {
1069
1074
  prompt: string;
1070
1075
  analyticsCategory: string;
1071
1076
  }
1077
+ export type DeploymentStrategyType = 'CANARY' | 'ROLLING' | 'RECREATE' | 'BLUE-GREEN' | 'ROLLINGUPDATE' | 'ONDELETE';
1078
+ export type DeploymentStrategyTypeWithDefault = DeploymentStrategyType | 'DEFAULT';
1079
+ export type PipelineIdsVsDeploymentStrategyMap = Record<number, DeploymentStrategyTypeWithDefault>;
1072
1080
  export {};
@@ -59,3 +59,4 @@ export declare const validateCMVolumeMountPath: (value: string) => {
59
59
  message: string;
60
60
  };
61
61
  export declare const validateYAML: (yamlString: string, isRequired?: boolean) => ValidationResponseType;
62
+ export declare const validateEmail: (email: string) => ValidationResponseType;