@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.0.6-beta-13",
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.7.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.3.1"
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 TippyCustomized, { TippyTheme } from '../TippyCustomized'
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 default function TagLabelSelect({ labelTags, setLabelTags }) {
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 '../../../Assets/Img/warning-medium.svg';
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 '../../../Assets/Icons/ic-close.svg';
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 * from './ConfirmationDialog'
1
+ export { default as ConfirmationDialog } from './ConfirmationDialog'
2
2
  export * from './DeleteDialog'
3
3
  export * from './DialogForm'
4
- export * from './ForceDeleteDialog'
4
+ export { default as ForceDeleteDialog } from './ForceDeleteDialog'
@@ -1,13 +1,9 @@
1
- import React, { ReactNode, useEffect, useRef } from 'react'
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 default function TippyCustomized(props: TippyCustomizedProps) {
37
+ export function TippyCustomized(props: TippyCustomizedProps) {
42
38
  const tippyRef = useRef(null)
43
39
  const isWhiteTheme = props.theme === TippyTheme.white
44
40
 
@@ -23,4 +23,9 @@ export interface TagType {
23
23
  export interface OptionType {
24
24
  label: string;
25
25
  value: string;
26
+ }
27
+
28
+ export enum TippyTheme {
29
+ black = 'black',
30
+ white = 'white',
26
31
  }
@@ -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 * from './PopupMenu'
19
+ export { default as PopupMenu } from './PopupMenu'
20
20
  export * from './TippyCustomized'
21
- export * from './CustomTagSelector'
21
+ export * from './CustomTagSelector'
22
+ export * from './Dialogs'
package/tsconfig.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "es6",
3
+ "target": "es5",
4
4
  "downlevelIteration": true,
5
5
  "lib": [
6
6
  "dom",