@devtron-labs/devtron-fe-common-lib 1.5.7-beta-1 → 1.5.7-beta-3

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 (30) hide show
  1. package/dist/{@code-editor-BKHJxN67.js → @code-editor-9cwek7Vs.js} +6988 -6783
  2. package/dist/{@common-rjsf-D9ZQTT8h.js → @common-rjsf-CuQUrtJ0.js} +1 -1
  3. package/dist/Common/CustomTagSelector/TagDetails.d.ts +2 -0
  4. package/dist/Common/CustomTagSelector/TagLabelValueSelector.d.ts +2 -0
  5. package/dist/Common/CustomTagSelector/index.d.ts +2 -0
  6. package/dist/Common/ResizableTextarea.d.ts +3 -0
  7. package/dist/Common/Types.d.ts +13 -0
  8. package/dist/Common/index.d.ts +1 -0
  9. package/dist/Shared/Components/Button/constants.d.ts +1 -0
  10. package/dist/Shared/Components/ConfirmationModal/DeleteConfirmationModal.d.ts +3 -0
  11. package/dist/Shared/Components/ConfirmationModal/index.d.ts +1 -0
  12. package/dist/Shared/Components/ConfirmationModal/types.d.ts +20 -0
  13. package/dist/Shared/Components/EditableTextArea/types.d.ts +1 -0
  14. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  15. package/dist/Shared/Components/SelectPicker/type.d.ts +13 -2
  16. package/dist/Shared/Components/ThemeSwitcher/index.d.ts +0 -1
  17. package/dist/Shared/Components/index.d.ts +0 -2
  18. package/dist/Shared/constants.d.ts +0 -3
  19. package/dist/assets/@code-editor.css +1 -1
  20. package/dist/index.js +630 -631
  21. package/package.json +1 -1
  22. package/dist/Shared/Components/FormFieldWrapper/FormFieldInfo.d.ts +0 -3
  23. package/dist/Shared/Components/FormFieldWrapper/FormFieldLabel.d.ts +0 -3
  24. package/dist/Shared/Components/FormFieldWrapper/FormFieldWrapper.d.ts +0 -3
  25. package/dist/Shared/Components/FormFieldWrapper/index.d.ts +0 -2
  26. package/dist/Shared/Components/FormFieldWrapper/types.d.ts +0 -22
  27. package/dist/Shared/Components/Textarea/Textarea.component.d.ts +0 -3
  28. package/dist/Shared/Components/Textarea/constants.d.ts +0 -4
  29. package/dist/Shared/Components/Textarea/index.d.ts +0 -2
  30. package/dist/Shared/Components/Textarea/types.d.ts +0 -17
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "1.5.7-beta-1",
3
+ "version": "1.5.7-beta-3",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,3 +0,0 @@
1
- import { FormFieldInfoProps } from './types';
2
- declare const FormFieldInfo: ({ error, helperText, warningText, inputId }: FormFieldInfoProps) => JSX.Element;
3
- export default FormFieldInfo;
@@ -1,3 +0,0 @@
1
- import { FormFieldLabelProps } from './types';
2
- declare const FormFieldLabel: ({ label, inputId, required }: FormFieldLabelProps) => JSX.Element;
3
- export default FormFieldLabel;
@@ -1,3 +0,0 @@
1
- import { FormFieldWrapperProps } from './types';
2
- declare const FormFieldWrapper: ({ layout, fullWidth, label, inputId, error, helperText, warningText, required, children, }: Required<FormFieldWrapperProps>) => JSX.Element;
3
- export default FormFieldWrapper;
@@ -1,2 +0,0 @@
1
- export { default as FormFieldWrapper } from './FormFieldWrapper';
2
- export type { FormFieldWrapperProps } from './types';
@@ -1,22 +0,0 @@
1
- import { ReactElement, ReactNode } from 'react';
2
- export interface FormFieldLabelProps {
3
- label?: ReactNode;
4
- required?: boolean;
5
- inputId: string;
6
- }
7
- export interface FormFieldInfoProps extends Pick<FormFieldLabelProps, 'inputId'> {
8
- error?: ReactNode;
9
- helperText?: ReactNode;
10
- warningText?: ReactNode;
11
- }
12
- export interface FormInfoItemProps {
13
- id: string;
14
- text: ReactNode;
15
- textClass: string;
16
- icon: ReactElement;
17
- }
18
- export interface FormFieldWrapperProps extends Pick<FormFieldLabelProps, 'label' | 'required'>, FormFieldInfoProps {
19
- layout?: 'row' | 'column';
20
- fullWidth?: boolean;
21
- children: ReactElement;
22
- }
@@ -1,3 +0,0 @@
1
- import { TextareaProps } from './types';
2
- declare const Textarea: ({ name, label, fullWidth, error, helperText, warningText, layout, required, onBlur, shouldTrim, size, ...props }: TextareaProps) => JSX.Element;
3
- export default Textarea;
@@ -1,4 +0,0 @@
1
- export declare const TEXTAREA_CONSTRAINTS: {
2
- MIN_HEIGHT: number;
3
- MAX_HEIGHT: number;
4
- };
@@ -1,2 +0,0 @@
1
- export { default as Textarea } from './Textarea.component';
2
- export type { TextareaProps } from './types';
@@ -1,17 +0,0 @@
1
- import { TextareaHTMLAttributes } from 'react';
2
- import { ComponentSizeType } from '../../constants';
3
- import { FormFieldWrapperProps } from '../FormFieldWrapper';
4
- export interface TextareaProps extends Omit<FormFieldWrapperProps, 'children' | 'inputId'>, Pick<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onBlur' | 'disabled' | 'autoFocus' | 'onFocus'>, Required<Pick<TextareaHTMLAttributes<HTMLTextAreaElement>, 'placeholder' | 'onChange' | 'value' | 'name'>> {
5
- /**
6
- * If false, the input is not trimmed on blur
7
- *
8
- * @default true
9
- */
10
- shouldTrim?: boolean;
11
- /**
12
- * Size of the textarea
13
- *
14
- * @default ComponentSizeType.large
15
- */
16
- size?: Extract<ComponentSizeType, ComponentSizeType.medium | ComponentSizeType.large>;
17
- }