@devtron-labs/devtron-fe-common-lib 1.5.7-beta-1 → 1.5.7-beta-2
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/{@code-editor-BKHJxN67.js → @code-editor-BOcxYZ1d.js} +6282 -6093
- package/dist/{@common-rjsf-D9ZQTT8h.js → @common-rjsf-DnO3TwpC.js} +1 -1
- package/dist/Common/CustomTagSelector/TagDetails.d.ts +2 -0
- package/dist/Common/CustomTagSelector/TagLabelValueSelector.d.ts +2 -0
- package/dist/Common/CustomTagSelector/index.d.ts +2 -0
- package/dist/Shared/Components/FormFieldWrapper/index.d.ts +1 -0
- package/dist/Shared/Components/FormFieldWrapper/types.d.ts +10 -4
- package/dist/Shared/Components/FormFieldWrapper/utils.d.ts +17 -0
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/Textarea/Textarea.component.d.ts +1 -1
- package/dist/index.js +362 -360
- package/package.json +1 -1
@@ -2,7 +2,7 @@ import { j as t, J as $ } from "./@vendor-ROKJESOw.js";
|
|
2
2
|
import A, { forwardRef as E } from "react";
|
3
3
|
import L, { getDefaultRegistry as D } from "@rjsf/core";
|
4
4
|
import H from "@rjsf/validator-ajv8";
|
5
|
-
import { T as v, c as U, a as k, i as J, b as w, d as S } from "./@code-editor-
|
5
|
+
import { T as v, c as U, a as k, i as J, b as w, d as S } from "./@code-editor-BOcxYZ1d.js";
|
6
6
|
import M, { components as B } from "react-select";
|
7
7
|
import { ReactComponent as W } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
8
8
|
import { getUiOptions as C, getTemplate as I, getSubmitButtonOptions as V, ADDITIONAL_PROPERTY_FLAG as P, errorId as q, englishStringTranslator as K, TranslatableString as Y, titleId as z, canExpand as G, deepEquals as Q } from "@rjsf/utils";
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import { TagLabelValueSelectorType } from './Types';
|
2
|
+
export declare const TagLabelValueSelector: ({ selectedTagIndex, tagData, setTagData, tagOptions, isRequired, tagInputType, placeholder, tabIndex, refVar, dependentRef, noBackDrop, }: TagLabelValueSelectorType) => JSX.Element;
|
@@ -1,4 +1,6 @@
|
|
1
1
|
export { default as PropagateTagInfo } from './PropagateTagInfo';
|
2
|
+
export * from './TagDetails';
|
3
|
+
export * from './TagLabelValueSelector';
|
2
4
|
export * from './ResizableTagTextArea';
|
3
5
|
export * from './Types';
|
4
6
|
export { validateTagKeyValue, validateTagValue } from './tags.utils';
|
@@ -1,9 +1,15 @@
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
2
|
-
export
|
3
|
-
label
|
2
|
+
export type LabelOrAriaLabelType = {
|
3
|
+
label: ReactNode;
|
4
|
+
ariaLabel?: never;
|
5
|
+
} | {
|
6
|
+
label?: never;
|
7
|
+
ariaLabel: string;
|
8
|
+
};
|
9
|
+
export type FormFieldLabelProps = LabelOrAriaLabelType & {
|
4
10
|
required?: boolean;
|
5
11
|
inputId: string;
|
6
|
-
}
|
12
|
+
};
|
7
13
|
export interface FormFieldInfoProps extends Pick<FormFieldLabelProps, 'inputId'> {
|
8
14
|
error?: ReactNode;
|
9
15
|
helperText?: ReactNode;
|
@@ -15,7 +21,7 @@ export interface FormInfoItemProps {
|
|
15
21
|
textClass: string;
|
16
22
|
icon: ReactElement;
|
17
23
|
}
|
18
|
-
export interface FormFieldWrapperProps extends Pick<FormFieldLabelProps, 'label' | 'required'>, FormFieldInfoProps {
|
24
|
+
export interface FormFieldWrapperProps extends Pick<FormFieldLabelProps, 'label' | 'required' | 'ariaLabel'>, FormFieldInfoProps {
|
19
25
|
layout?: 'row' | 'column';
|
20
26
|
fullWidth?: boolean;
|
21
27
|
children: ReactElement;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { FormFieldInfoProps, FormFieldLabelProps } from './types';
|
2
|
+
export declare const getFormErrorElementId: (inputId: FormFieldLabelProps["inputId"]) => string;
|
3
|
+
export declare const getFormLabelElementId: (inputId: FormFieldLabelProps["inputId"]) => string;
|
4
|
+
export declare const getFormHelperTextElementId: (inputId: FormFieldLabelProps["inputId"]) => string;
|
5
|
+
export declare const getFormFieldAriaAttributes: ({ inputId, label, ariaLabel, required, error, helperText, }: Required<Pick<FormFieldLabelProps, "label" | "ariaLabel" | "required" | "inputId"> & Pick<FormFieldInfoProps, "error" | "helperText">>) => {
|
6
|
+
'aria-labelledby': string;
|
7
|
+
'aria-errormessage'?: string;
|
8
|
+
'aria-invalid'?: boolean;
|
9
|
+
'aria-describedby'?: string;
|
10
|
+
'aria-required': boolean;
|
11
|
+
} | {
|
12
|
+
'aria-label': string;
|
13
|
+
'aria-errormessage'?: string;
|
14
|
+
'aria-invalid'?: boolean;
|
15
|
+
'aria-describedby'?: string;
|
16
|
+
'aria-required': boolean;
|
17
|
+
};
|
@@ -134,5 +134,5 @@ import { SelectPickerProps } from './type';
|
|
134
134
|
* />
|
135
135
|
* ```
|
136
136
|
*/
|
137
|
-
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, renderMenuListFooter, isCreatable, onCreateOption, closeMenuOnSelect, shouldShowNoOptionsMessage, shouldRenderTextArea, onKeyDown, shouldHideMenu, warningText, layout, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
137
|
+
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, renderMenuListFooter, isCreatable, onCreateOption, closeMenuOnSelect, shouldShowNoOptionsMessage, shouldRenderTextArea, onKeyDown, shouldHideMenu, warningText, layout, ariaLabel, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
138
138
|
export default SelectPicker;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { TextareaProps } from './types';
|
2
|
-
declare const Textarea: ({ name, label, fullWidth, error, helperText, warningText, layout, required, onBlur, shouldTrim, size, ...props }: TextareaProps) => JSX.Element;
|
2
|
+
declare const Textarea: ({ name, label, fullWidth, error, helperText, warningText, layout, required, onBlur, shouldTrim, size, ariaLabel, ...props }: TextareaProps) => JSX.Element;
|
3
3
|
export default Textarea;
|