Skip to content

Commit 75c967a

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/gui-view-hidden
2 parents 209454e + 9a3e6d3 commit 75c967a

28 files changed

+2919
-2305
lines changed

package-lock.json

Lines changed: 1718 additions & 2288 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "0.0.97-beta-2",
3+
"version": "0.1.3",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",
@@ -60,7 +60,6 @@
6060
"moment": "^2.29.4",
6161
"monaco-editor": "0.44.0",
6262
"monaco-yaml": "5.1.1",
63-
"react-monaco-editor": "^0.55.0",
6463
"prettier": "^3.1.1",
6564
"react-ga4": "^1.4.1",
6665
"react-mde": "^11.5.0",
@@ -94,7 +93,18 @@
9493
"fast-json-patch": "^3.1.1",
9594
"jsonpath-plus": "^9.0.0",
9695
"react-monaco-editor": "^0.54.0",
96+
"@types/react-dates": "^21.8.6",
97+
"react-dates": "^21.8.0",
9798
"sass": "^1.69.7",
9899
"tslib": "^2.4.1"
100+
},
101+
"overrides": {
102+
"react-dates": {
103+
"react": "^17.0.2",
104+
"react-dom": "^17.0.2"
105+
},
106+
"react-monaco-editor": {
107+
"monaco-editor": "0.44.0"
108+
}
99109
}
100-
}
110+
}

src/Assets/Icon/ic-calender-blank.svg

Lines changed: 19 additions & 0 deletions
Loading

src/Assets/Icon/ic-clock.svg

Lines changed: 19 additions & 0 deletions
Loading
Lines changed: 20 additions & 0 deletions
Loading

src/Common/BreadCrumb/BreadcrumbStore.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,16 @@
1515
*/
1616

1717
import React, { createContext, useState } from 'react'
18+
import { BreadcrumbTextProps } from './Types'
1819

1920
const initialState = {
2021
alias: {},
2122
}
2223

24+
export const BreadcrumbText = ({ heading, isActive }: BreadcrumbTextProps) => (
25+
<h2 className={`m-0 fs-16 fw-6 lh-32 ${isActive ? 'cn-9' : 'cb-5'}`}>{heading}</h2>
26+
)
27+
2328
const Store = ({ children }) => {
2429
const [state, setState] = useState(initialState)
2530
return <BreadcrumbContext.Provider value={{ state, setState }}>{children}</BreadcrumbContext.Provider>

src/Common/BreadCrumb/Types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,8 @@ export interface Breadcrumbs {
4343
}
4444

4545
export type UseBreadcrumbOptionalProps = UseBreadcrumbProps | null
46+
47+
export interface BreadcrumbTextProps {
48+
heading: string
49+
isActive?: boolean
50+
}

src/Common/Constants.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,10 +421,6 @@ export enum FREQUENCY_ENUM {
421421
WEEKLY_RANGE = 'WEEKLY_RANGE',
422422
}
423423

424-
export const TIME_FORMAT = {
425-
DD_MMM_YYYY_HH_MM: 'DD MMM YYYY, hh:mm',
426-
}
427-
428424
export function getOrdinal(number) {
429425
if (number % 100 >= 11 && number % 100 <= 13) {
430426
return `${number}th`
@@ -512,4 +508,6 @@ export const DATE_TIME_FORMATS = {
512508
TWELVE_HOURS_FORMAT: 'ddd, DD MMM YYYY, hh:mm A',
513509
TWELVE_HOURS_FORMAT_WITHOUT_WEEKDAY: 'DD MMM YYYY, hh:mm A',
514510
TWELVE_HOURS_EXPORT_FORMAT: 'DD-MMM-YYYY hh.mm A',
511+
DD_MMM_YYYY_HH_MM: 'DD MMM YYYY, hh:mm',
512+
DD_MMM_YYYY: 'DD MMM YYYY',
515513
}

src/Common/CustomInput/CustomInput.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
import { CustomInputProps } from './Types'
18-
import { ReactComponent as Info } from '../../Assets/Icon/ic-info-filled.svg'
18+
import { ReactComponent as Info } from '../../Assets/Icon/ic-info-filled-override.svg'
1919
import { ReactComponent as ErrorIcon } from '../../Assets/Icon/ic-warning.svg'
2020

2121
export const CustomInput = ({
@@ -135,9 +135,9 @@ export const CustomInput = ({
135135

136136
{getInputError()}
137137
{helperText && (
138-
<div className="form__text-field-info">
139-
<Info className="form__icon form__icon--info" />
140-
<p className="sentence-case">{helperText}</p>
138+
<div className="flex left top dc__gap-4 fs-11 lh-16 cn-7">
139+
<Info className="icon-dim-16" />
140+
<div>{helperText}</div>
141141
</div>
142142
)}
143143
</div>

src/Common/Helper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ export function useKeyDown() {
10181018
export const DropdownIndicator = (props) => {
10191019
return (
10201020
<components.DropdownIndicator {...props}>
1021-
<ArrowDown className="icon-dim-20 icon-n5" />
1021+
<ArrowDown className="icon-dim-20 icon-n6" />
10221022
</components.DropdownIndicator>
10231023
)
10241024
}

0 commit comments

Comments
 (0)