@devtron-labs/devtron-fe-common-lib 0.0.6-beta-13 → 0.0.6-beta-15
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/Common/CustomTagSelector/TagLabelSelect.d.ts +5 -4
- package/dist/Common/Dialogs/index.d.ts +2 -2
- package/dist/Common/TippyCustomized.d.ts +2 -5
- package/dist/Common/Types.d.ts +4 -0
- package/dist/Common/index.d.ts +2 -1
- package/dist/index.js +4946 -287
- package/package.json +5 -4
- package/rollup.config.js +2 -2
- package/src/Common/CustomTagSelector/PropagateTagInfo.tsx +2 -1
- package/src/Common/CustomTagSelector/TagLabelSelect.tsx +8 -1
- package/src/Common/Dialogs/DeleteDialog.tsx +1 -1
- package/src/Common/Dialogs/DialogForm.tsx +1 -1
- package/src/Common/Dialogs/index.ts +2 -2
- package/src/Common/TippyCustomized.tsx +3 -7
- package/src/Common/Types.ts +5 -0
- package/src/Common/index.ts +3 -2
- package/tsconfig.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devtron-labs/devtron-fe-common-lib",
|
|
3
|
-
"version": "0.0.6-beta-
|
|
3
|
+
"version": "0.0.6-beta-15",
|
|
4
4
|
"description": "Supporting common component library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"@types/react": "17.0.39",
|
|
29
29
|
"@types/react-dom": "17.0.13",
|
|
30
30
|
"@types/react-router-dom": "^5.3.3",
|
|
31
|
-
"rollup": "^3.
|
|
31
|
+
"rollup": "^3.10.0",
|
|
32
32
|
"rollup-plugin-delete": "^2.0.0",
|
|
33
33
|
"@svgr/rollup": "6.5.1",
|
|
34
34
|
"@rollup/plugin-url": "8.0.1",
|
|
35
35
|
"typescript": "^4.9.4",
|
|
36
36
|
"react-toastify": "^8.2.0",
|
|
37
37
|
"@tippyjs/react": "^4.2.0",
|
|
38
|
-
"@sentry/browser": "^7.
|
|
38
|
+
"@sentry/browser": "^7.31.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": "^17.0.2",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"react-router-dom": "^5.3.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"sass": "^1.56.2"
|
|
46
|
+
"sass": "^1.56.2",
|
|
47
|
+
"tslib": "^2.4.1"
|
|
47
48
|
}
|
|
48
49
|
}
|
package/rollup.config.js
CHANGED
|
@@ -5,7 +5,7 @@ import postcss from 'rollup-plugin-postcss'
|
|
|
5
5
|
import { babel } from '@rollup/plugin-babel'
|
|
6
6
|
import del from 'rollup-plugin-delete'
|
|
7
7
|
import pkg from './package.json'
|
|
8
|
-
import svgr from '@svgr/rollup'
|
|
8
|
+
import svgr from '@svgr/rollup'
|
|
9
9
|
import url from '@rollup/plugin-url'
|
|
10
10
|
|
|
11
11
|
export default {
|
|
@@ -23,7 +23,7 @@ export default {
|
|
|
23
23
|
}),
|
|
24
24
|
del({ targets: ['dist/*'] }),
|
|
25
25
|
url(),
|
|
26
|
-
svgr()
|
|
26
|
+
svgr(),
|
|
27
27
|
],
|
|
28
28
|
external: Object.keys(pkg.peerDependencies || {}),
|
|
29
29
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { ReactComponent as InjectTag } from '../../Assets/Icon/inject-tag.svg'
|
|
3
3
|
import { ReactComponent as Help } from '../../Assets/Icon/ic-help-outline.svg'
|
|
4
|
-
import
|
|
4
|
+
import { TippyCustomized } from '../TippyCustomized'
|
|
5
|
+
import { TippyTheme } from '../Types'
|
|
5
6
|
|
|
6
7
|
export default function PropagateTagInfo() {
|
|
7
8
|
const additionalInfo = () => {
|
|
@@ -2,8 +2,15 @@ import React from 'react'
|
|
|
2
2
|
import PropagateTagInfo from './PropagateTagInfo'
|
|
3
3
|
import { ReactComponent as Add } from '../../Assets/Icon/ic-add.svg'
|
|
4
4
|
import TagDetails from './TagDetails'
|
|
5
|
+
import { TagType } from '../Types'
|
|
5
6
|
|
|
6
|
-
export
|
|
7
|
+
export const TagLabelSelect = ({
|
|
8
|
+
labelTags,
|
|
9
|
+
setLabelTags,
|
|
10
|
+
}: {
|
|
11
|
+
labelTags: TagType[]
|
|
12
|
+
setLabelTags: (tagList: TagType[]) => void
|
|
13
|
+
}) => {
|
|
7
14
|
const setTagData = (index, tagValue): void => {
|
|
8
15
|
const _tags = [...labelTags]
|
|
9
16
|
_tags[index] = tagValue
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import warn from '
|
|
2
|
+
import warn from '../../Assets/Img/warning-medium.svg';
|
|
3
3
|
import { Progressing } from '../Progressing'
|
|
4
4
|
import ConfirmationDialog from './ConfirmationDialog';
|
|
5
5
|
import { DeleteDialogProps } from './Types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Component, createContext } from 'react';
|
|
2
2
|
import { VisibleModal } from '../Modals/VisibleModal';
|
|
3
|
-
import close from '
|
|
3
|
+
import close from '../../Assets/Icon/ic-close.svg';
|
|
4
4
|
import { Progressing } from '../Progressing'
|
|
5
5
|
//TODO: may not need context
|
|
6
6
|
const DialogFormContext = createContext({ title: '', isLoading: false, close: (event) => {}, onSave: (event) => {} });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { default as ConfirmationDialog } from './ConfirmationDialog'
|
|
2
2
|
export * from './DeleteDialog'
|
|
3
3
|
export * from './DialogForm'
|
|
4
|
-
export
|
|
4
|
+
export { default as ForceDeleteDialog } from './ForceDeleteDialog'
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import React, { ReactNode,
|
|
1
|
+
import React, { ReactNode, useRef } from 'react'
|
|
2
2
|
import Tippy from '@tippyjs/react'
|
|
3
3
|
import { Placement } from 'tippy.js'
|
|
4
4
|
import { ReactComponent as CloseIcon } from '../Assets/Icon/ic-close.svg'
|
|
5
5
|
import 'tippy.js/animations/shift-toward-subtle.css'
|
|
6
|
-
|
|
7
|
-
export enum TippyTheme {
|
|
8
|
-
black = 'black',
|
|
9
|
-
white = 'white',
|
|
10
|
-
}
|
|
6
|
+
import { TippyTheme } from './Types'
|
|
11
7
|
|
|
12
8
|
interface TippyCustomizedProps {
|
|
13
9
|
theme: TippyTheme
|
|
@@ -38,7 +34,7 @@ interface TippyCustomizedProps {
|
|
|
38
34
|
|
|
39
35
|
// This component will handle some of the new tippy designs and interactions
|
|
40
36
|
// So this can be updated to support further for new features or interactions
|
|
41
|
-
export
|
|
37
|
+
export function TippyCustomized(props: TippyCustomizedProps) {
|
|
42
38
|
const tippyRef = useRef(null)
|
|
43
39
|
const isWhiteTheme = props.theme === TippyTheme.white
|
|
44
40
|
|
package/src/Common/Types.ts
CHANGED
package/src/Common/index.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './Modals/VisibleModal2'
|
|
|
16
16
|
export { BreadCrumb, useBreadcrumb } from './BreadCrumb/BreadCrumb'
|
|
17
17
|
export { default as BreadcrumbStore } from './BreadCrumb/BreadcrumbStore'
|
|
18
18
|
export * from './RadioGroup'
|
|
19
|
-
export
|
|
19
|
+
export { default as PopupMenu } from './PopupMenu'
|
|
20
20
|
export * from './TippyCustomized'
|
|
21
|
-
export * from './CustomTagSelector'
|
|
21
|
+
export * from './CustomTagSelector'
|
|
22
|
+
export * from './Dialogs'
|