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.
Files changed (74) hide show
  1. package/dist/components/ActionList/ActionList.props.d.ts +4 -0
  2. package/dist/components/AlphaButton/AlphaButton.d.ts +1 -1
  3. package/dist/components/AlphaButton/AlphaButton.props.d.ts +4 -0
  4. package/dist/components/AlphaGraphicCard/AlphaGraphicCard.d.ts +5 -0
  5. package/dist/components/AlphaGraphicCard/AlphaGraphicCard.props.d.ts +15 -0
  6. package/dist/components/AlphaGraphicCard/index.d.ts +3 -0
  7. package/dist/components/AlphaInputDate/AlphaInputDate.d.ts +1 -1
  8. package/dist/components/AlphaInputDate/AlphaInputDate.props.d.ts +1 -0
  9. package/dist/components/AlphaInputTag/AlphaInputTag.d.ts +1 -1
  10. package/dist/components/AlphaInputTag/AlphaInputTag.props.d.ts +1 -0
  11. package/dist/components/ChoiceList/ChoiceList.d.ts +2 -1
  12. package/dist/components/ChoiceList/ChoiceList.props.d.ts +4 -0
  13. package/dist/components/Collapsible/Collapsible.d.ts +2 -1
  14. package/dist/components/Collapsible/Collapsible.props.d.ts +4 -0
  15. package/dist/components/DynamicForm/DynamicForm.d.ts +1 -1
  16. package/dist/components/DynamicForm/DynamicForm.props.d.ts +1 -0
  17. package/dist/components/DynamicForm/components/DeletableSection/DeletableSection.d.ts +1 -1
  18. package/dist/components/DynamicForm/components/DeletableSection/DeletableSection.props.d.ts +1 -0
  19. package/dist/components/DynamicForm/components/Form/Form.d.ts +1 -1
  20. package/dist/components/DynamicForm/components/Form/Form.props.d.ts +1 -0
  21. package/dist/components/DynamicForm/components/FormField/FormField.d.ts +1 -1
  22. package/dist/components/DynamicForm/components/FormField/FormField.props.d.ts +1 -0
  23. package/dist/components/DynamicForm/components/SectionForm/SectionForm.d.ts +1 -1
  24. package/dist/components/DynamicForm/components/SectionForm/SectionForm.props.d.ts +1 -0
  25. package/dist/components/FileDownloader/FileDownloader.d.ts +1 -1
  26. package/dist/components/FileDownloader/FileDownloader.props.d.ts +1 -0
  27. package/dist/components/Filedrop/Filedrop.d.ts +3 -2
  28. package/dist/components/Filedrop/Filedrop.props.d.ts +4 -0
  29. package/dist/components/Filedrop/components/File/File.d.ts +2 -1
  30. package/dist/components/Filedrop/components/File/File.props.d.ts +1 -0
  31. package/dist/components/Filters/Filters.d.ts +1 -1
  32. package/dist/components/Filters/Filters.props.d.ts +2 -0
  33. package/dist/components/IndexList/IndexList.props.d.ts +4 -0
  34. package/dist/components/InlineEdit/InlineEdit.d.ts +2 -1
  35. package/dist/components/InlineEdit/InlineEdit.props.d.ts +4 -0
  36. package/dist/components/InputPhoneNumber/InputPhoneNumber.d.ts +1 -1
  37. package/dist/components/InputPhoneNumber/InputPhoneNumber.props.d.ts +4 -0
  38. package/dist/components/InputTag/InputTag.d.ts +2 -1
  39. package/dist/components/InputTag/InputTag.props.d.ts +4 -0
  40. package/dist/components/InputText/InputText.d.ts +2 -1
  41. package/dist/components/InputText/InputText.props.d.ts +4 -0
  42. package/dist/components/Link/Link.d.ts +1 -1
  43. package/dist/components/Link/Link.props.d.ts +1 -0
  44. package/dist/components/Modal/Modal.d.ts +2 -2
  45. package/dist/components/Modal/Modal.props.d.ts +4 -0
  46. package/dist/components/Modal/components/Footer/Footer.props.d.ts +4 -0
  47. package/dist/components/Modal/components/Header/Header.d.ts +1 -1
  48. package/dist/components/Modal/components/Header/Header.props.d.ts +4 -0
  49. package/dist/components/Nip/Nip.d.ts +1 -1
  50. package/dist/components/Nip/Nip.props.d.ts +1 -0
  51. package/dist/components/OptionList/OptionList.d.ts +1 -0
  52. package/dist/components/OptionList/OptionList.props.d.ts +4 -0
  53. package/dist/components/Page/components/Header/Header.props.d.ts +3 -0
  54. package/dist/components/PageActions/PageActions.props.d.ts +4 -0
  55. package/dist/components/Pagination/Pagination.d.ts +2 -1
  56. package/dist/components/Pagination/Pagination.props.d.ts +4 -0
  57. package/dist/components/Panel/components/Footer/Footer.props.d.ts +4 -0
  58. package/dist/components/Panel/components/Header/Header.props.d.ts +4 -0
  59. package/dist/components/Select/Select.d.ts +2 -1
  60. package/dist/components/Select/Select.props.d.ts +4 -0
  61. package/dist/components/SideMenu/SideMenu.props.d.ts +4 -0
  62. package/dist/components/Tabs/components/Tab/Tab.d.ts +1 -1
  63. package/dist/components/Tabs/components/Tab/Tab.props.d.ts +1 -0
  64. package/dist/components/Tabs/components/TabsWrapper/TabsWrapper.props.d.ts +1 -0
  65. package/dist/components/Tag/Tag.d.ts +2 -1
  66. package/dist/components/Tag/Tag.props.d.ts +4 -0
  67. package/dist/components/Toggle/Toggle.d.ts +2 -1
  68. package/dist/components/Toggle/Toggle.props.d.ts +4 -0
  69. package/dist/components/index.d.ts +1 -0
  70. package/dist/index.css +6 -4
  71. package/dist/index.css.map +1 -1
  72. package/dist/index.js +244 -195
  73. package/dist/index.js.map +1 -1
  74. 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,5 @@
1
+ /// <reference types="react" />
2
+ import { AlphaGraphicCardProps } from './AlphaGraphicCard.props';
3
+ import './AlphaGraphicCard.styles.scss';
4
+ declare const AlphaGraphicCard: ({ data }: AlphaGraphicCardProps) => JSX.Element;
5
+ export default AlphaGraphicCard;
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ import AlphaGraphicCard from './AlphaGraphicCard';
2
+ export * from './AlphaGraphicCard.props';
3
+ export { AlphaGraphicCard };
@@ -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,4 +1,5 @@
1
1
  export interface AlphaInputDateProps {
2
+ ariaLabel?: string;
2
3
  label?: string;
3
4
  value?: string;
4
5
  onChange?: (value: Date | null) => void;
@@ -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;
@@ -19,4 +19,5 @@ export interface AlphaInputTagProps {
19
19
  hasError?: InlineErrorType;
20
20
  tagRemoveIcon?: IconProp;
21
21
  helpText?: HelpTextType;
22
+ ariaLabel?: string;
22
23
  }
@@ -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;
@@ -30,4 +30,8 @@ export interface CollapsibleProps {
30
30
  * Component Title
31
31
  */
32
32
  title?: string;
33
+ /**
34
+ * Label to use in automatic tests
35
+ */
36
+ ariaLabel?: string;
33
37
  }
@@ -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,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { IconType } from '../../../../types';
3
3
  export interface DeletableSectionProps {
4
+ ariaLabel?: string;
4
5
  children?: React.ReactNode;
5
6
  iconDeletable?: IconType;
6
7
  onDelete?: () => void;
@@ -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;
@@ -41,6 +41,7 @@ export declare type TInputPhoneValue = {
41
41
  value: string;
42
42
  };
43
43
  export interface FormFieldProps {
44
+ ariaLabel?: string;
44
45
  type?: TFormField['type'];
45
46
  label?: string;
46
47
  labelInputFile?: string;
@@ -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;
@@ -2,4 +2,5 @@ export interface FileDownloaderProps {
2
2
  title: string;
3
3
  onDownload: () => void;
4
4
  isDisabled?: boolean;
5
+ ariaLabel?: string;
5
6
  }
@@ -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;
@@ -36,4 +36,8 @@ export interface FiledropProps {
36
36
  isEnableDragAndDrop?: boolean;
37
37
  isMultipleFiles?: boolean;
38
38
  isShowButton?: boolean;
39
+ /**
40
+ * Label to use in automatic tests
41
+ */
42
+ ariaLabel?: string;
39
43
  }
@@ -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;
@@ -4,4 +4,5 @@ export interface FileProps {
4
4
  addon?: React.ReactNode;
5
5
  onDelete?(): void;
6
6
  size?: number;
7
+ ariaLabel?: string;
7
8
  }
@@ -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;
@@ -12,6 +12,10 @@ export interface Index {
12
12
  * Flag to set if Index is disabled
13
13
  */
14
14
  isDisabled: boolean;
15
+ /**
16
+ * Label to use in automatic tests
17
+ */
18
+ ariaLabel?: string;
15
19
  }
16
20
  export interface IndexListProps {
17
21
  /**
@@ -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;
@@ -44,4 +44,8 @@ export interface InlineEditProps {
44
44
  * Function to execute when input changes
45
45
  */
46
46
  onChange: (value: string) => void;
47
+ /**
48
+ * Label to use in automatic tests
49
+ */
50
+ ariaLabel?: string;
47
51
  }
@@ -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;
@@ -100,4 +100,8 @@ export interface InputPhoneNumberProps {
100
100
  */
101
101
  isRequired?: boolean;
102
102
  tooltipLabel?: TooltipInput;
103
+ /**
104
+ * Label to use in automatic tests
105
+ */
106
+ ariaLabel?: string;
103
107
  }
@@ -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;
@@ -93,4 +93,8 @@ export interface InputTagProps {
93
93
  */
94
94
  isRequired?: boolean;
95
95
  tooltipLabel?: TooltipInput;
96
+ /**
97
+ * Label to use in automatic tests
98
+ */
99
+ ariaLabel?: string;
96
100
  }
@@ -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;
@@ -4,4 +4,5 @@ export interface LinkProps {
4
4
  children: React.ReactNode;
5
5
  className?: string;
6
6
  component: React.ElementType;
7
+ target?: string;
7
8
  }
@@ -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;
@@ -30,4 +30,8 @@ export interface ModalProps extends ModalHeaderProps, ModalFooterProps, ModalCon
30
30
  * @default 'true'
31
31
  */
32
32
  hideHeader?: boolean;
33
+ /**
34
+ * Label to use in automatic tests
35
+ */
36
+ ariaLabel?: string;
33
37
  }
@@ -23,6 +23,10 @@ export interface SecondaryActionProps {
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 PrimaryActionProps extends SecondaryActionProps {
28
32
  /**
@@ -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;
@@ -25,4 +25,8 @@ export interface ModalHeaderProps {
25
25
  * Media appearance
26
26
  */
27
27
  mediaTheme?: MediaProps['themeAppearance'];
28
+ /**
29
+ * Label to use in automatic tests
30
+ */
31
+ ariaLabel?: string;
28
32
  }
@@ -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;
@@ -3,4 +3,5 @@ export interface NipProps {
3
3
  isDisabled?: boolean;
4
4
  nip: string[];
5
5
  nipLength?: number;
6
+ ariaLabel?: string;
6
7
  }
@@ -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,4 +23,8 @@ export interface PaginationProps {
23
23
  * Flag to enable o disabled next button
24
24
  */
25
25
  hasNext?: boolean;
26
+ /**
27
+ * Label to use in automatic tests
28
+ */
29
+ ariaLabel?: string;
26
30
  }
@@ -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
  /**
@@ -4,6 +4,10 @@ import { ThemeType } from '../../../ThemeProvider';
4
4
  export interface PanelHeaderExtraActions {
5
5
  onClick: () => void;
6
6
  iconName: IconName;
7
+ /**
8
+ * Label to use in automatic tests
9
+ */
10
+ ariaLabel?: string;
7
11
  }
8
12
  export interface PanelHeaderProps {
9
13
  /**
@@ -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;
@@ -101,4 +101,8 @@ export interface SelectProps {
101
101
  isRequired?: boolean;
102
102
  tooltipLabel?: TooltipInput;
103
103
  action?: ActionType;
104
+ /**
105
+ * Label to use in automatic tests
106
+ */
107
+ ariaLabel?: string;
104
108
  }
@@ -3,6 +3,10 @@ import type { IconName } from '../Icon';
3
3
  export interface SecondaryActionsType {
4
4
  icon?: IconName;
5
5
  onClick?: () => void;
6
+ /**
7
+ * Label to use in automatic tests
8
+ */
9
+ ariaLabel?: string;
6
10
  }
7
11
  export interface SideMenuProps {
8
12
  /**
@@ -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;