kiban-design-system 1.1.4-hotfix.0 → 1.1.5-hotfix.0
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/components/ActionList/ActionList.props.d.ts +4 -0
- package/dist/components/AlphaButton/AlphaButton.d.ts +1 -1
- package/dist/components/AlphaButton/AlphaButton.props.d.ts +4 -0
- package/dist/components/AlphaGraphicCard/AlphaGraphicCard.d.ts +5 -0
- package/dist/components/AlphaGraphicCard/AlphaGraphicCard.props.d.ts +15 -0
- package/dist/components/AlphaGraphicCard/index.d.ts +3 -0
- package/dist/components/AlphaInputDate/AlphaInputDate.d.ts +1 -1
- package/dist/components/AlphaInputDate/AlphaInputDate.props.d.ts +1 -0
- package/dist/components/AlphaInputTag/AlphaInputTag.d.ts +1 -1
- package/dist/components/AlphaInputTag/AlphaInputTag.props.d.ts +1 -0
- package/dist/components/ChoiceList/ChoiceList.d.ts +2 -1
- package/dist/components/ChoiceList/ChoiceList.props.d.ts +4 -0
- package/dist/components/Collapsible/Collapsible.d.ts +2 -1
- package/dist/components/Collapsible/Collapsible.props.d.ts +4 -0
- package/dist/components/DynamicForm/DynamicForm.d.ts +1 -1
- package/dist/components/DynamicForm/DynamicForm.props.d.ts +1 -0
- package/dist/components/DynamicForm/components/DeletableSection/DeletableSection.d.ts +1 -1
- package/dist/components/DynamicForm/components/DeletableSection/DeletableSection.props.d.ts +1 -0
- package/dist/components/DynamicForm/components/Form/Form.d.ts +1 -1
- package/dist/components/DynamicForm/components/Form/Form.props.d.ts +1 -0
- package/dist/components/DynamicForm/components/FormField/FormField.d.ts +1 -1
- package/dist/components/DynamicForm/components/FormField/FormField.props.d.ts +1 -0
- package/dist/components/DynamicForm/components/SectionForm/SectionForm.d.ts +1 -1
- package/dist/components/DynamicForm/components/SectionForm/SectionForm.props.d.ts +1 -0
- package/dist/components/FileDownloader/FileDownloader.d.ts +1 -1
- package/dist/components/FileDownloader/FileDownloader.props.d.ts +1 -0
- package/dist/components/Filedrop/Filedrop.d.ts +3 -2
- package/dist/components/Filedrop/Filedrop.props.d.ts +4 -0
- package/dist/components/Filedrop/components/File/File.d.ts +2 -1
- package/dist/components/Filedrop/components/File/File.props.d.ts +1 -0
- package/dist/components/Filters/Filters.d.ts +1 -1
- package/dist/components/Filters/Filters.props.d.ts +2 -0
- package/dist/components/IndexList/IndexList.props.d.ts +4 -0
- package/dist/components/InlineEdit/InlineEdit.d.ts +2 -1
- package/dist/components/InlineEdit/InlineEdit.props.d.ts +4 -0
- package/dist/components/InputPhoneNumber/InputPhoneNumber.d.ts +1 -1
- package/dist/components/InputPhoneNumber/InputPhoneNumber.props.d.ts +4 -0
- package/dist/components/InputTag/InputTag.d.ts +2 -1
- package/dist/components/InputTag/InputTag.props.d.ts +4 -0
- package/dist/components/InputText/InputText.d.ts +2 -1
- package/dist/components/InputText/InputText.props.d.ts +4 -0
- package/dist/components/Link/Link.d.ts +1 -1
- package/dist/components/Link/Link.props.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts +2 -2
- package/dist/components/Modal/Modal.props.d.ts +4 -0
- package/dist/components/Modal/components/Footer/Footer.props.d.ts +4 -0
- package/dist/components/Modal/components/Header/Header.d.ts +1 -1
- package/dist/components/Modal/components/Header/Header.props.d.ts +4 -0
- package/dist/components/Nip/Nip.d.ts +1 -1
- package/dist/components/Nip/Nip.props.d.ts +1 -0
- package/dist/components/OptionList/OptionList.d.ts +1 -0
- package/dist/components/OptionList/OptionList.props.d.ts +4 -0
- package/dist/components/Page/components/Header/Header.props.d.ts +3 -0
- package/dist/components/PageActions/PageActions.props.d.ts +4 -0
- package/dist/components/Pagination/Pagination.d.ts +2 -1
- package/dist/components/Pagination/Pagination.props.d.ts +4 -0
- package/dist/components/Panel/components/Footer/Footer.props.d.ts +4 -0
- package/dist/components/Panel/components/Header/Header.props.d.ts +4 -0
- package/dist/components/Select/Select.d.ts +2 -1
- package/dist/components/Select/Select.props.d.ts +4 -0
- package/dist/components/SideMenu/SideMenu.props.d.ts +4 -0
- package/dist/components/Tabs/components/Tab/Tab.d.ts +1 -1
- package/dist/components/Tabs/components/Tab/Tab.props.d.ts +1 -0
- package/dist/components/Tabs/components/TabsWrapper/TabsWrapper.props.d.ts +1 -0
- package/dist/components/Tag/Tag.d.ts +2 -1
- package/dist/components/Tag/Tag.props.d.ts +4 -0
- package/dist/components/Toggle/Toggle.d.ts +2 -1
- package/dist/components/Toggle/Toggle.props.d.ts +4 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.css +6 -4
- package/dist/index.css.map +1 -1
- package/dist/index.js +244 -195
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -11,6 +11,10 @@ export interface ActionListItemProps {
|
|
|
11
11
|
* Determines if the item is active or not
|
|
12
12
|
*/
|
|
13
13
|
isActive?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Label to use in automatic tests
|
|
16
|
+
*/
|
|
17
|
+
ariaLabel?: string;
|
|
14
18
|
}
|
|
15
19
|
export interface ActionListHeaderItemsProps {
|
|
16
20
|
/** Action list header illustration */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { AlphaButtonProps } from './AlphaButton.props';
|
|
3
3
|
import './AlphaButton.styles.scss';
|
|
4
|
-
declare const AlphaButton: ({ children, icon, spinnerIcon, iconPosition, id, isDanger, isDisabled, isFullWidth, isLink, isLoading, isPrimary, isSubmit, isTertiary, size, textAlign, isRounded, theme: themeProp, onClick, onFocus, onBlur, onKeyPress, onKeyUp, onKeyDown, onMouseEnter, onMouseLeave, onTouchStart, onTouchEnd, }: AlphaButtonProps) => JSX.Element;
|
|
4
|
+
declare const AlphaButton: ({ ariaLabel, children, icon, spinnerIcon, iconPosition, id, isDanger, isDisabled, isFullWidth, isLink, isLoading, isPrimary, isSubmit, isTertiary, size, textAlign, isRounded, theme: themeProp, onClick, onFocus, onBlur, onKeyPress, onKeyUp, onKeyDown, onMouseEnter, onMouseLeave, onTouchStart, onTouchEnd, }: AlphaButtonProps) => JSX.Element;
|
|
5
5
|
export default AlphaButton;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { ActionProps, IconProp, ThemeType } from '../../types';
|
|
2
2
|
export interface AlphaButtonProps extends ActionProps {
|
|
3
|
+
/**
|
|
4
|
+
* Label to use in automatic tests
|
|
5
|
+
*/
|
|
6
|
+
ariaLabel?: string;
|
|
3
7
|
/** Content which will be displayed inside the button */
|
|
4
8
|
children?: string;
|
|
5
9
|
/** Sets primary style to the button */
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare type TVariantGraphic = 'error' | 'success' | 'warning' | 'workfloo' | 'primary' | 'neutral';
|
|
2
|
+
export declare type TDataGraphic = {
|
|
3
|
+
label: string;
|
|
4
|
+
total: string;
|
|
5
|
+
percent: number;
|
|
6
|
+
};
|
|
7
|
+
export declare type TDataGraphicCard = {
|
|
8
|
+
title: string;
|
|
9
|
+
variant?: TVariantGraphic;
|
|
10
|
+
hidePercent?: boolean;
|
|
11
|
+
dataGraphics: TDataGraphic[];
|
|
12
|
+
};
|
|
13
|
+
export interface AlphaGraphicCardProps {
|
|
14
|
+
data: TDataGraphicCard[];
|
|
15
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { AlphaInputDateProps } from './AlphaInputDate.props';
|
|
3
|
-
declare const AlphaInputDate: ({ disabled, label, onChange, value, isRequired, placeholder, onBlur, errorMessage, months, weekdays, }: AlphaInputDateProps) => JSX.Element;
|
|
3
|
+
declare const AlphaInputDate: ({ ariaLabel, disabled, label, onChange, value, isRequired, placeholder, onBlur, errorMessage, months, weekdays, }: AlphaInputDateProps) => JSX.Element;
|
|
4
4
|
export default AlphaInputDate;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { AlphaInputTagProps } from './AlphaInputTag.props';
|
|
3
3
|
import './AlphaInputTag.styles.scss';
|
|
4
|
-
declare const InputTag: ({ id, inputTextPlaceholder, inputTextValue, isRequired, label, onChange, onInputTextChange, addedTags, triggerKeys, onBlur, onFocus, isDisabled, hasError, tagRemoveIcon, helpText, }: AlphaInputTagProps) => JSX.Element;
|
|
4
|
+
declare const InputTag: ({ ariaLabel, id, inputTextPlaceholder, inputTextValue, isRequired, label, onChange, onInputTextChange, addedTags, triggerKeys, onBlur, onFocus, isDisabled, hasError, tagRemoveIcon, helpText, }: AlphaInputTagProps) => JSX.Element;
|
|
5
5
|
export default InputTag;
|
|
@@ -14,7 +14,8 @@ import './ChoiceList.styles.scss';
|
|
|
14
14
|
* @param {Function} ChoiceListProps.onChange - Callback when the selected choices change
|
|
15
15
|
* @param {string} ChoiceListProps.title - Label for list of choices
|
|
16
16
|
* @param {string} ChoiceListProps.allowSelectAll - Let user select all choices when is multiple choice list
|
|
17
|
+
* @param {string} InputTextProps.ariaLabel - Label to use in automatic tests
|
|
17
18
|
* @returns {symbol} - Returns the component
|
|
18
19
|
*/
|
|
19
|
-
declare const ChoiceList: ({ choices, name, selected, allowMultiple, allowSelectAll, isDisabled, onChange, title, }: ChoiceListProps) => JSX.Element;
|
|
20
|
+
declare const ChoiceList: ({ ariaLabel, choices, name, selected, allowMultiple, allowSelectAll, isDisabled, onChange, title, }: ChoiceListProps) => JSX.Element;
|
|
20
21
|
export default ChoiceList;
|
|
@@ -26,4 +26,8 @@ export interface ChoiceListProps {
|
|
|
26
26
|
onChange?: (selected: string[], name: string) => void;
|
|
27
27
|
/** Let user select all choices when is multiple choice list */
|
|
28
28
|
allowSelectAll?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Label to use in automatic tests
|
|
31
|
+
*/
|
|
32
|
+
ariaLabel?: string;
|
|
29
33
|
}
|
|
@@ -12,7 +12,8 @@ import './Collapsible.styles.scss';
|
|
|
12
12
|
* @param {function} CollapsibleProps.onClick - Component opening function
|
|
13
13
|
* @param {string} CollapsibleProps.buttonText - Text to display on the button
|
|
14
14
|
* @param {string} CollapsibleProps.title - Component Title
|
|
15
|
+
* @param {string} InputTextProps.ariaLabel - Label to use in automatic tests
|
|
15
16
|
* @returns {symbol} The component.
|
|
16
17
|
*/
|
|
17
|
-
declare const Collapsible: ({ iconMedia, mediaAppearance, children, isOpen, onClick, buttonText, title, }: CollapsibleProps) => JSX.Element;
|
|
18
|
+
declare const Collapsible: ({ ariaLabel, iconMedia, mediaAppearance, children, isOpen, onClick, buttonText, title, }: CollapsibleProps) => JSX.Element;
|
|
18
19
|
export default Collapsible;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { DynamicFormProps } from './DynamicForm.props';
|
|
3
3
|
import './DynamicForm.styles.scss';
|
|
4
|
-
declare const DynamicForm: <T>({ dataFormArray, fields, fieldsSection, iconDeletable, iconHelperText, labelDivider, onChange, onAddForm, tagRemoveIcon, deletableFormArray, extraPropsFieldsArray, }: DynamicFormProps<T>) => JSX.Element;
|
|
4
|
+
declare const DynamicForm: <T>({ ariaLabel, dataFormArray, fields, fieldsSection, iconDeletable, iconHelperText, labelDivider, onChange, onAddForm, tagRemoveIcon, deletableFormArray, extraPropsFieldsArray, }: DynamicFormProps<T>) => JSX.Element;
|
|
5
5
|
export default DynamicForm;
|
|
@@ -14,6 +14,7 @@ export declare type TItemExtraPropField = {
|
|
|
14
14
|
};
|
|
15
15
|
export declare type TExtraPropFields = Record<string, TItemExtraPropField>;
|
|
16
16
|
export interface DynamicFormProps<T> {
|
|
17
|
+
ariaLabel?: string;
|
|
17
18
|
dataFormArray?: (DataDynamicFormType & T)[];
|
|
18
19
|
fields?: TFormField[];
|
|
19
20
|
fieldsSection?: TSectionFormField[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { DeletableSectionProps } from './DeletableSection.props';
|
|
3
3
|
import './DeletableSection.styles.scss';
|
|
4
|
-
declare const DeletableSection: ({ children, onDelete, iconDeletable, isDeletable, }: DeletableSectionProps) => JSX.Element;
|
|
4
|
+
declare const DeletableSection: ({ ariaLabel, children, onDelete, iconDeletable, isDeletable, }: DeletableSectionProps) => JSX.Element;
|
|
5
5
|
export default DeletableSection;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { FormProps } from './Form.props';
|
|
3
|
-
declare function Form<T>({ data, fields, fieldsSection, iconHelperText, onChange, fieldWrapperElement, tagRemoveIcon, extraPropsField, }: FormProps<T>): JSX.Element;
|
|
3
|
+
declare function Form<T>({ ariaLabel, data, fields, fieldsSection, iconHelperText, onChange, fieldWrapperElement, tagRemoveIcon, extraPropsField, }: FormProps<T>): JSX.Element;
|
|
4
4
|
export default Form;
|
|
@@ -3,6 +3,7 @@ import type { IconType } from '../../../../types';
|
|
|
3
3
|
import type { TExtraPropFields } from '../../DynamicForm.props';
|
|
4
4
|
import type { TSectionFormField, TFormField } from '../FormField';
|
|
5
5
|
export interface FormProps<T> {
|
|
6
|
+
ariaLabel?: string;
|
|
6
7
|
data?: T;
|
|
7
8
|
fields?: Partial<TFormField>[];
|
|
8
9
|
fieldsSection?: TSectionFormField[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { FormFieldProps } from './FormField.props';
|
|
3
3
|
import './FormField.styles.scss';
|
|
4
|
-
declare const FormField: ({ hasError, label, labelInputFile, labelUploadButton, onChange, placeholder, type, value, iconHelperText, isRequired, defaultValue, files, extensionFiles, errorTooltipPosition, onRemoveFile, isReadOnly, addedTags, helpText, action, isDisabled, isMultiLine, maxLength, options, tagRemoveIcon, onBlur, weekdays, months, minLength, }: FormFieldProps) => JSX.Element;
|
|
4
|
+
declare const FormField: ({ ariaLabel, hasError, label, labelInputFile, labelUploadButton, onChange, placeholder, type, value, iconHelperText, isRequired, defaultValue, files, extensionFiles, errorTooltipPosition, onRemoveFile, isReadOnly, addedTags, helpText, action, isDisabled, isMultiLine, maxLength, options, tagRemoveIcon, onBlur, weekdays, months, minLength, }: FormFieldProps) => JSX.Element;
|
|
5
5
|
export default FormField;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { SectionFormProps } from './SectionForm.props';
|
|
3
|
-
declare const SectionForm: <T>({ data, fields, fieldsSection, iconDeletable, iconHelperText, onChange, onDelete, tagRemoveIcon, isDeletable, extraPropsField, }: SectionFormProps<T>) => JSX.Element;
|
|
3
|
+
declare const SectionForm: <T>({ ariaLabel, data, fields, fieldsSection, iconDeletable, iconHelperText, onChange, onDelete, tagRemoveIcon, isDeletable, extraPropsField, }: SectionFormProps<T>) => JSX.Element;
|
|
4
4
|
export default SectionForm;
|
|
@@ -2,6 +2,7 @@ import type { IconType } from '../../../../types';
|
|
|
2
2
|
import type { TExtraPropFields } from '../../DynamicForm.props';
|
|
3
3
|
import { TSectionFormField, TFormField } from '../FormField';
|
|
4
4
|
export interface SectionFormProps<T> {
|
|
5
|
+
ariaLabel?: string;
|
|
5
6
|
data?: T;
|
|
6
7
|
fields?: TFormField[];
|
|
7
8
|
fieldsSection?: TSectionFormField[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FileDownloaderProps } from './FileDownloader.props';
|
|
3
3
|
import './FileDownloader.styles.scss';
|
|
4
|
-
declare const FileDownloader: ({ title, isDisabled, onDownload, }: FileDownloaderProps) => JSX.Element;
|
|
4
|
+
declare const FileDownloader: ({ ariaLabel, title, isDisabled, onDownload, }: FileDownloaderProps) => JSX.Element;
|
|
5
5
|
export default FileDownloader;
|
|
@@ -27,10 +27,11 @@ import type { FiledropProps } from './Filedrop.props';
|
|
|
27
27
|
* @param {string} Filedrop.label - To show label inside input
|
|
28
28
|
* @param {string} Filedrop.labelButton - Text to show inside button
|
|
29
29
|
* @param {boolean} Filedrop.isMultipleFiles - To active functionality to upload multiple files
|
|
30
|
+
* @param {string} InputTextProps.ariaLabel - Label to use in automatic tests
|
|
30
31
|
* @returns {symbol} The component.
|
|
31
32
|
*/
|
|
32
33
|
declare const Filedrop: {
|
|
33
|
-
({ arrayFiles, isEncodeBase64, extensionsFiles, isGzip, onChange, onDelete, onCreateBase64, isEnableDragAndDrop, isReadOnly, label, labelButton, isMultipleFiles, isShowButton, }: FiledropProps): JSX.Element;
|
|
34
|
-
FileItem: ({ name, addon, onDelete, size }: import("./components").FileProps) => JSX.Element;
|
|
34
|
+
({ arrayFiles, ariaLabel, isEncodeBase64, extensionsFiles, isGzip, onChange, onDelete, onCreateBase64, isEnableDragAndDrop, isReadOnly, label, labelButton, isMultipleFiles, isShowButton, }: FiledropProps): JSX.Element;
|
|
35
|
+
FileItem: ({ ariaLabel, name, addon, onDelete, size, }: import("./components").FileProps) => JSX.Element;
|
|
35
36
|
};
|
|
36
37
|
export default Filedrop;
|
|
@@ -15,6 +15,7 @@ import './File.styles.scss';
|
|
|
15
15
|
* @param {void} FileProps.onDelete - Function to return data
|
|
16
16
|
* @param {string} FileProps.size - Size to show in input
|
|
17
17
|
* @returns {symbol} - Element FileItem
|
|
18
|
+
* @param {string} InputTextProps.ariaLabel - Label to use in automatic tests
|
|
18
19
|
*/
|
|
19
|
-
declare const FileItem: ({ name, addon, onDelete, size }: FileProps) => JSX.Element;
|
|
20
|
+
declare const FileItem: ({ ariaLabel, name, addon, onDelete, size, }: FileProps) => JSX.Element;
|
|
20
21
|
export default FileItem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { FiltersProps } from './Filters.props';
|
|
3
3
|
import './Filters.styles.scss';
|
|
4
|
-
declare const Filters: ({ filters, onApplyFilters, onRemoveFilter, appliedFilters, onCleanFilters, onAddFilter, addFilterButtonIcon, addFilterButtonLabel, clearButtonLabel, searchButtonLabel, extraActions, selectedFilters, }: FiltersProps) => JSX.Element;
|
|
4
|
+
declare const Filters: ({ ariaLabel, filters, onApplyFilters, onRemoveFilter, appliedFilters, onCleanFilters, onAddFilter, addFilterButtonIcon, addFilterButtonLabel, clearButtonLabel, searchButtonLabel, extraActions, selectedFilters, }: FiltersProps) => JSX.Element;
|
|
5
5
|
export default Filters;
|
|
@@ -13,8 +13,10 @@ export declare type TExtraAction = {
|
|
|
13
13
|
isDanger?: boolean;
|
|
14
14
|
onClick?: () => void;
|
|
15
15
|
isDisabled?: boolean;
|
|
16
|
+
ariaLabel?: string;
|
|
16
17
|
};
|
|
17
18
|
export interface FiltersProps {
|
|
19
|
+
ariaLabel?: string;
|
|
18
20
|
filters: TFilter[];
|
|
19
21
|
onApplyFilters?: () => void;
|
|
20
22
|
onRemoveFilter?: (filter: string) => void;
|
|
@@ -15,6 +15,7 @@ import './InlineEdit.styles.scss';
|
|
|
15
15
|
* @param {Function} InlineEditProps.onEdit - Function to execute when click Edit
|
|
16
16
|
* @param {Function} InlineEditProps.onSave - Function to execut when click Save
|
|
17
17
|
* @param {Function} InlineEditProps.onInputChange - Function to execut when input changes
|
|
18
|
+
* @param {string} InputTextProps.ariaLabel - Label to use in automatic tests
|
|
18
19
|
*/
|
|
19
|
-
declare const InlineEdit: ({ editIcon, isDisable, onChange, onEdit, onSave, saveIcon, size, state, value, }: InlineEditProps) => JSX.Element;
|
|
20
|
+
declare const InlineEdit: ({ ariaLabel, editIcon, isDisable, onChange, onEdit, onSave, saveIcon, size, state, value, }: InlineEditProps) => JSX.Element;
|
|
20
21
|
export default InlineEdit;
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
import type { InputPhoneNumberProps } from './InputPhoneNumber.props';
|
|
3
3
|
import 'react-phone-input-2/lib/style.css';
|
|
4
4
|
import './InputPhoneNumber.styles.scss';
|
|
5
|
-
declare const InputPhoneNumber: ({ helperText, isHelperMode, isErrorMode, label, tooltip, disabled, placeholder, id, name, value, isFocused, onChange, onBlur, onFocus, defaultCountry, language, preferredCountries, isRequired, tooltipLabel, }: InputPhoneNumberProps) => JSX.Element;
|
|
5
|
+
declare const InputPhoneNumber: ({ ariaLabel, helperText, isHelperMode, isErrorMode, label, tooltip, disabled, placeholder, id, name, value, isFocused, onChange, onBlur, onFocus, defaultCountry, language, preferredCountries, isRequired, tooltipLabel, }: InputPhoneNumberProps) => JSX.Element;
|
|
6
6
|
export default InputPhoneNumber;
|
|
@@ -26,6 +26,7 @@ import './InputTag.styles.scss';
|
|
|
26
26
|
* @param {TagPropsInputTag[]} PageActionsProps.tags - Array of string to preload tags
|
|
27
27
|
* @param {Tooltip} PageActionsProps.tooltip - Array of objects to preload tags
|
|
28
28
|
* @param {keyToAddTag[]} PageActionsProps.triggerKeys - Array of string to set keys to add tag
|
|
29
|
+
* @param {string} InputTextProps.ariaLabel - Label to use in automatic tests
|
|
29
30
|
*/
|
|
30
|
-
declare const InputTag: ({ helperText, isDisabled, isDanger, isFocused, isHelperMode, isReadOnly, label, onAddTag, onBlur, onChange, onDeleteTag, onFocus, placeholder, tags, tooltip, triggerKeys, value, isRequired, tooltipLabel, }: InputTagProps) => JSX.Element;
|
|
31
|
+
declare const InputTag: ({ ariaLabel, helperText, isDisabled, isDanger, isFocused, isHelperMode, isReadOnly, label, onAddTag, onBlur, onChange, onDeleteTag, onFocus, placeholder, tags, tooltip, triggerKeys, value, isRequired, tooltipLabel, }: InputTagProps) => JSX.Element;
|
|
31
32
|
export default InputTag;
|
|
@@ -29,7 +29,8 @@ import './InputText.styles.scss';
|
|
|
29
29
|
* @param {number} InputTextProps.max - For a max value input.
|
|
30
30
|
* @param {number} InputTextProps.min - For a min value input.
|
|
31
31
|
* @param {boolean} InputTextProps.isFocused - For active focus whit a boolean.
|
|
32
|
+
* @param {string} InputTextProps.ariaLabel - Label to use in automatic tests
|
|
32
33
|
* @returns {symbol} The component.
|
|
33
34
|
*/
|
|
34
|
-
declare const InputText: ({ action, helperText, isHelperMode, isErrorMode, icon, label, secondaryAction, prefix, suffix, tooltip, disabled, placeholder, type, readOnly, id, name, className, value, maxLength, minLength, max, min, isFocused, onChange, onBlur, onFocus, onKeyDown, isRequired, isMultiline, autoComplete, inputMode, tooltipLabel, }: InputTextProps) => JSX.Element;
|
|
35
|
+
declare const InputText: ({ action, ariaLabel, helperText, isHelperMode, isErrorMode, icon, label, secondaryAction, prefix, suffix, tooltip, disabled, placeholder, type, readOnly, id, name, className, value, maxLength, minLength, max, min, isFocused, onChange, onBlur, onFocus, onKeyDown, isRequired, isMultiline, autoComplete, inputMode, tooltipLabel, }: InputTextProps) => JSX.Element;
|
|
35
36
|
export default InputText;
|
|
@@ -166,4 +166,8 @@ export interface InputTextProps {
|
|
|
166
166
|
autoComplete?: 'on' | 'off';
|
|
167
167
|
inputMode?: 'text' | 'none' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
|
168
168
|
tooltipLabel?: TooltipInput;
|
|
169
|
+
/**
|
|
170
|
+
* Label to use in automatic tests
|
|
171
|
+
*/
|
|
172
|
+
ariaLabel?: string;
|
|
169
173
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { LinkProps } from './Link.props';
|
|
3
3
|
import './Link.styles.scss';
|
|
4
|
-
declare const Link: ({ children, className: classNameProp, component, to, }: LinkProps) => JSX.Element;
|
|
4
|
+
declare const Link: ({ children, className: classNameProp, component, to, target, }: LinkProps) => JSX.Element;
|
|
5
5
|
export default Link;
|
|
@@ -20,8 +20,8 @@ import './Modal.styles.scss';
|
|
|
20
20
|
* @param {boolean} ModalProps.hasPane - Validate if it has Pane
|
|
21
21
|
*/
|
|
22
22
|
declare const Modal: {
|
|
23
|
-
({ children, isOpen, media, onClose, position, primaryAction, secondaryActions, extraAction, hideFooter, hideHeader, size, title, hasPane, id, mediaTheme, height, }: ModalProps): JSX.Element;
|
|
24
|
-
Header: ({ title, media, onClose, hideHeader, mediaTheme, }: import("./components").ModalHeaderProps) => JSX.Element;
|
|
23
|
+
({ ariaLabel, children, isOpen, media, onClose, position, primaryAction, secondaryActions, extraAction, hideFooter, hideHeader, size, title, hasPane, id, mediaTheme, height, }: ModalProps): JSX.Element;
|
|
24
|
+
Header: ({ ariaLabel, title, media, onClose, hideHeader, mediaTheme, }: import("./components").ModalHeaderProps) => JSX.Element;
|
|
25
25
|
Pane: ({ children, size }: import("./components").PaneProps) => JSX.Element;
|
|
26
26
|
Content: ({ children, hasPane, height }: import("./components").ModalContentProps) => JSX.Element;
|
|
27
27
|
Footer: ({ position, primaryAction, secondaryActions, extraAction, hideFooter, }: import("./components").ModalFooterProps) => JSX.Element;
|
|
@@ -9,5 +9,5 @@ import './Header.styles.scss';
|
|
|
9
9
|
* @param {string} ModalHeaderProps.media - Icon name to create a media component to display in header
|
|
10
10
|
* @param {Function} ModalHeaderProps.onClose - Function to exeute when clic close icon modal
|
|
11
11
|
*/
|
|
12
|
-
declare const ModalHeader: ({ title, media, onClose, hideHeader, mediaTheme, }: ModalHeaderProps) => JSX.Element;
|
|
12
|
+
declare const ModalHeader: ({ ariaLabel, title, media, onClose, hideHeader, mediaTheme, }: ModalHeaderProps) => JSX.Element;
|
|
13
13
|
export default ModalHeader;
|
|
@@ -11,5 +11,5 @@ import './Nip.styles.scss';
|
|
|
11
11
|
* @param {boolean} NipProps.nipLength - Nip length
|
|
12
12
|
* @returns {symbol} - Returns the component
|
|
13
13
|
*/
|
|
14
|
-
declare const Nip: ({ onChange, isDisabled, nip, nipLength, }: NipProps) => JSX.Element;
|
|
14
|
+
declare const Nip: ({ ariaLabel, onChange, isDisabled, nip, nipLength, }: NipProps) => JSX.Element;
|
|
15
15
|
export default Nip;
|
|
@@ -18,6 +18,7 @@ import './OptionList.styles.scss';
|
|
|
18
18
|
* @param {string[]} OptionListProps.selected - Preselected data to
|
|
19
19
|
* highlight in the render of the list items
|
|
20
20
|
* @param {string[]} OptionListProps.parentId - ParentId to focus when select with keys
|
|
21
|
+
* @param {string} InputTextProps.ariaLabel - Label to use in automatic tests
|
|
21
22
|
* @returns {symbol} - Returns the component
|
|
22
23
|
*/
|
|
23
24
|
declare const OptionList: ({ sections, items, className, isMultiple, onChange, selected, parentId, onEscKeyDown, }: OptionListProps) => JSX.Element;
|
|
@@ -4,6 +4,10 @@ export interface OptionListItemType {
|
|
|
4
4
|
label: React.ReactNode | string;
|
|
5
5
|
/** Value to return each time an item in the list is clicked */
|
|
6
6
|
value: string;
|
|
7
|
+
/**
|
|
8
|
+
* Label to use in automatic tests
|
|
9
|
+
*/
|
|
10
|
+
ariaLabel?: string;
|
|
7
11
|
}
|
|
8
12
|
export interface OptionListSectionType {
|
|
9
13
|
/** Text to display in the divider */
|
|
@@ -7,16 +7,19 @@ export declare type PageHeaderPrimaryActionType = {
|
|
|
7
7
|
isLoading?: boolean;
|
|
8
8
|
isDanger?: boolean;
|
|
9
9
|
appearance?: 'secondary' | 'tertiary' | 'transparent' | 'danger';
|
|
10
|
+
ariaLabel?: string;
|
|
10
11
|
};
|
|
11
12
|
export declare type PageHeaderSecondaryActionType = {
|
|
12
13
|
text?: string;
|
|
13
14
|
onClick?: () => void;
|
|
14
15
|
isDisabled?: boolean;
|
|
15
16
|
isDanger?: boolean;
|
|
17
|
+
ariaLabel?: string;
|
|
16
18
|
};
|
|
17
19
|
export declare type PageBreadcrumbType = {
|
|
18
20
|
onClick?: () => void;
|
|
19
21
|
text?: string;
|
|
22
|
+
ariaLabel?: string;
|
|
20
23
|
};
|
|
21
24
|
export interface PageHeaderThumbnailType extends ThumbnailProps {
|
|
22
25
|
size?: 'huge';
|
|
@@ -17,6 +17,10 @@ export declare type PageActionsButtonType = {
|
|
|
17
17
|
* @default false
|
|
18
18
|
*/
|
|
19
19
|
isLoading?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Label to use in automatic tests
|
|
22
|
+
*/
|
|
23
|
+
ariaLabel?: string;
|
|
20
24
|
};
|
|
21
25
|
export interface SecundaryActionButton extends PageActionsButtonType {
|
|
22
26
|
/** The type of button to display, only primary is disabled */
|
|
@@ -13,6 +13,7 @@ import './Pagination.styles.scss';
|
|
|
13
13
|
* @param {Function} PaginationProps.onNext - Acction to execute when click on next button
|
|
14
14
|
* @param {hasPrevious} PaginationProps.hasPrevious - Flag to disable previous button
|
|
15
15
|
* @param {hasNext} PaginationProps.hasNext - Flag to disable next button
|
|
16
|
+
* @param {string} InputTextProps.ariaLabel - Label to use in automatic tests
|
|
16
17
|
*/
|
|
17
|
-
declare const Pagination: ({ previousButtonContent, nextButtonContent, onPrevious, onNext, hasPrevious, hasNext, }: PaginationProps) => JSX.Element;
|
|
18
|
+
declare const Pagination: ({ ariaLabel, previousButtonContent, nextButtonContent, onPrevious, onNext, hasPrevious, hasNext, }: PaginationProps) => JSX.Element;
|
|
18
19
|
export default Pagination;
|
|
@@ -23,6 +23,10 @@ export interface PanelSecondaryActionProps {
|
|
|
23
23
|
* @default 'false'
|
|
24
24
|
*/
|
|
25
25
|
isLoading?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Label to use in automatic tests
|
|
28
|
+
*/
|
|
29
|
+
ariaLabel?: string;
|
|
26
30
|
}
|
|
27
31
|
export interface PanelPrimaryActionProps extends PanelSecondaryActionProps {
|
|
28
32
|
/**
|
|
@@ -26,7 +26,8 @@ import './Select.styles.scss';
|
|
|
26
26
|
* time the search engine is typed
|
|
27
27
|
* @param {boolean} SelectProps.isReadOnly - Disables popover operation
|
|
28
28
|
* @default 'false'
|
|
29
|
+
* @param {string} InputTextProps.ariaLabel - Label to use in automatic tests
|
|
29
30
|
* @returns {symbol} - Element Select
|
|
30
31
|
*/
|
|
31
|
-
declare const Select: ({ items, sections, isMultiple, placeholder, label, selected, onChange, searchPlaceholder, searchLabel, helperText, isHelperMode, isDisabled, onSearchChange, search, tooltip, isDanger, isReadOnly, id, emptyState, onBlur, isRequired, tooltipLabel, action, }: SelectProps) => JSX.Element;
|
|
32
|
+
declare const Select: ({ ariaLabel, items, sections, isMultiple, placeholder, label, selected, onChange, searchPlaceholder, searchLabel, helperText, isHelperMode, isDisabled, onSearchChange, search, tooltip, isDanger, isReadOnly, id, emptyState, onBlur, isRequired, tooltipLabel, action, }: SelectProps) => JSX.Element;
|
|
32
33
|
export default Select;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { TabProps } from './Tab.props';
|
|
3
|
-
declare const Tab: ({ content, isSelected, onClick, isFitted }: TabProps) => JSX.Element;
|
|
3
|
+
declare const Tab: ({ ariaLabel, content, isSelected, onClick, isFitted, }: TabProps) => JSX.Element;
|
|
4
4
|
export default Tab;
|