@devtron-labs/devtron-fe-common-lib 0.0.67-beta-5 → 0.0.67-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.
@@ -94,13 +94,3 @@ export declare enum SortingOrder {
94
94
  * Base page size for pagination
95
95
  */
96
96
  export declare const DEFAULT_BASE_PAGE_SIZE = 20;
97
- export declare enum MODAL_TYPE {
98
- HIBERNATE = "HIBERNATE",
99
- RESTORE = "RESTORE",
100
- DEPLOY = "DEPLOY",
101
- RESOURCE = "RESOURCE",
102
- RESTART = "RESTART",
103
- PIPELINE = "PIPELINE",
104
- OVERVIEW = "OVERVIEW",
105
- APP_DETAILS_STATUS = "APP_DETAILS_STATUS"
106
- }
@@ -65,8 +65,4 @@ export declare function getLockedJSON(json: any, jsonPathArray: string[]): any;
65
65
  * Returns a debounced variant of the function
66
66
  */
67
67
  export declare const debounce: (func: any, timeout?: number) => (this: any, ...args: any[]) => void;
68
- /**
69
- * Returns a capitalized string with first letter in uppercase and rest in lowercase
70
- */
71
- export declare const capitalizeFirstLetter: (text: string) => string;
72
68
  export {};
@@ -1,16 +1,4 @@
1
1
  import React from 'react';
2
- interface RadioGroupInterface {
3
- name: string;
4
- onChange: any;
5
- className?: string;
6
- initialTab: string;
7
- disabled: boolean;
8
- showTippy?: boolean;
9
- tippyContent?: any;
10
- dataTestId?: string;
11
- }
12
- interface RadioGroupComposition {
13
- Radio?: React.FC<any>;
14
- }
2
+ import { RadioGroupComposition, RadioGroupInterface } from '..';
15
3
  declare const RadioGroup: React.FC<RadioGroupInterface> & RadioGroupComposition;
16
4
  export default RadioGroup;
@@ -1,8 +1,10 @@
1
- import { Component } from 'react';
2
- import { RadioGroupItemProps, RadioGroupProps } from './Types';
3
- export declare class RadioGroupItem extends Component<RadioGroupItemProps> {
4
- render(): JSX.Element;
5
- }
6
- export declare class RadioGroup extends Component<RadioGroupProps> {
7
- render(): JSX.Element;
8
- }
1
+ /// <reference types="react" />
2
+ import { RadioGroupProps } from './Types';
3
+ export declare const RadioGroupContext: import("react").Context<{
4
+ name: string;
5
+ value: string;
6
+ disabled: boolean;
7
+ onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
8
+ }>;
9
+ declare const RadioGroup: ({ name, value, disabled, onChange, className, children }: RadioGroupProps) => JSX.Element;
10
+ export default RadioGroup;
@@ -0,0 +1,3 @@
1
+ import { RadioGroupItemProps } from './Types';
2
+ declare const RadioGroupItem: ({ value, disabled, children, dataTestId }: RadioGroupItemProps) => JSX.Element;
3
+ export default RadioGroupItem;
@@ -134,8 +134,33 @@ export interface RadioGroupItemProps {
134
134
  value: string;
135
135
  dataTestId?: string;
136
136
  disabled?: boolean;
137
+ children: ReactNode;
138
+ }
139
+ export interface RadioGroupInterface {
140
+ name: string;
141
+ onChange: any;
142
+ className?: string;
143
+ initialTab: string;
144
+ disabled: boolean;
145
+ children: ReactNode;
146
+ }
147
+ export interface RadioInterface {
148
+ children: ReactNode;
149
+ value: string;
150
+ className?: string;
151
+ showTippy?: boolean;
152
+ tippyContent?: any;
153
+ tippyPlacement?: string;
154
+ canSelect?: boolean;
155
+ isDisabled?: boolean;
156
+ tippyClass?: string;
157
+ dataTestId?: string;
158
+ }
159
+ export interface RadioGroupComposition {
160
+ Radio?: React.FC<any>;
137
161
  }
138
162
  export interface RadioGroupProps {
163
+ children: ReactNode;
139
164
  value: string;
140
165
  name: string;
141
166
  disabled?: boolean;
@@ -14,7 +14,8 @@ export * from './Modals/VisibleModal';
14
14
  export * from './Modals/VisibleModal2';
15
15
  export { BreadCrumb, useBreadcrumb } from './BreadCrumb/BreadCrumb';
16
16
  export { default as BreadcrumbStore } from './BreadCrumb/BreadcrumbStore';
17
- export * from './RadioGroup';
17
+ export { default as RadioGroup } from './RadioGroup';
18
+ export { default as RadioGroupItem } from './RadioGroupItem';
18
19
  export { default as PopupMenu } from './PopupMenu';
19
20
  export * from './TippyCustomized';
20
21
  export * from './CustomTagSelector';