@vchasno/ui-kit 0.3.28 → 0.3.30

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 (153) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/Datepicker/index.cjs.js +12 -6
  3. package/dist/Datepicker/index.cjs.js.map +1 -1
  4. package/dist/Datepicker/index.d.ts +5 -1
  5. package/dist/Datepicker/index.js +12 -6
  6. package/dist/Datepicker/index.js.map +1 -1
  7. package/dist/Datepicker/types/components/Alert/Alert.d.ts +2 -1
  8. package/dist/Datepicker/types/components/Button/Button.d.ts +2 -2
  9. package/dist/Datepicker/types/components/Checkbox/Checkbox.d.ts +2 -2
  10. package/dist/Datepicker/types/components/Datepicker/DatePicker.d.ts +2 -2
  11. package/dist/Datepicker/types/components/FlexBox/FlexBox.d.ts +2 -1
  12. package/dist/Datepicker/types/components/Input/Input.d.ts +2 -2
  13. package/dist/Datepicker/types/components/MaskInput/MaskInput.d.ts +2 -1
  14. package/dist/Datepicker/types/components/Paragraph/Paragraph.d.ts +2 -2
  15. package/dist/Datepicker/types/components/Select/Select.d.ts +2 -3
  16. package/dist/Datepicker/types/components/Select/SelectCreatable.d.ts +2 -3
  17. package/dist/Datepicker/types/components/Select/customComponents.d.ts +2 -1
  18. package/dist/Datepicker/types/components/Switch/Switch.d.ts +2 -2
  19. package/dist/Datepicker/types/components/Text/Text.d.ts +2 -2
  20. package/dist/Datepicker/types/components/TextAreaInput/TextAreaInput.d.ts +2 -1
  21. package/dist/Datepicker/types/components/TextInput/TextInput.d.ts +2 -1
  22. package/dist/Datepicker/types/components/Title/Title.d.ts +3 -2
  23. package/dist/Datepicker/types/components/types.d.ts +4 -0
  24. package/dist/Menu/types/components/Alert/Alert.d.ts +2 -1
  25. package/dist/Menu/types/components/Button/Button.d.ts +2 -2
  26. package/dist/Menu/types/components/Checkbox/Checkbox.d.ts +2 -2
  27. package/dist/Menu/types/components/Datepicker/DatePicker.d.ts +2 -2
  28. package/dist/Menu/types/components/FlexBox/FlexBox.d.ts +2 -1
  29. package/dist/Menu/types/components/Input/Input.d.ts +2 -2
  30. package/dist/Menu/types/components/MaskInput/MaskInput.d.ts +2 -1
  31. package/dist/Menu/types/components/Paragraph/Paragraph.d.ts +2 -2
  32. package/dist/Menu/types/components/Select/Select.d.ts +2 -3
  33. package/dist/Menu/types/components/Select/SelectCreatable.d.ts +2 -3
  34. package/dist/Menu/types/components/Select/customComponents.d.ts +2 -1
  35. package/dist/Menu/types/components/Switch/Switch.d.ts +2 -2
  36. package/dist/Menu/types/components/Text/Text.d.ts +2 -2
  37. package/dist/Menu/types/components/TextAreaInput/TextAreaInput.d.ts +2 -1
  38. package/dist/Menu/types/components/TextInput/TextInput.d.ts +2 -1
  39. package/dist/Menu/types/components/Title/Title.d.ts +3 -2
  40. package/dist/Menu/types/components/types.d.ts +4 -0
  41. package/dist/ProjectsPopover/index.cjs.js +2 -2
  42. package/dist/ProjectsPopover/index.cjs.js.map +1 -1
  43. package/dist/ProjectsPopover/index.js +2 -2
  44. package/dist/ProjectsPopover/index.js.map +1 -1
  45. package/dist/ProjectsPopover/types/components/Alert/Alert.d.ts +2 -1
  46. package/dist/ProjectsPopover/types/components/Button/Button.d.ts +2 -2
  47. package/dist/ProjectsPopover/types/components/Checkbox/Checkbox.d.ts +2 -2
  48. package/dist/ProjectsPopover/types/components/Datepicker/DatePicker.d.ts +2 -2
  49. package/dist/ProjectsPopover/types/components/FlexBox/FlexBox.d.ts +2 -1
  50. package/dist/ProjectsPopover/types/components/Input/Input.d.ts +2 -2
  51. package/dist/ProjectsPopover/types/components/MaskInput/MaskInput.d.ts +2 -1
  52. package/dist/ProjectsPopover/types/components/Paragraph/Paragraph.d.ts +2 -2
  53. package/dist/ProjectsPopover/types/components/Select/Select.d.ts +2 -3
  54. package/dist/ProjectsPopover/types/components/Select/SelectCreatable.d.ts +2 -3
  55. package/dist/ProjectsPopover/types/components/Select/customComponents.d.ts +2 -1
  56. package/dist/ProjectsPopover/types/components/Switch/Switch.d.ts +2 -2
  57. package/dist/ProjectsPopover/types/components/Text/Text.d.ts +2 -2
  58. package/dist/ProjectsPopover/types/components/TextAreaInput/TextAreaInput.d.ts +2 -1
  59. package/dist/ProjectsPopover/types/components/TextInput/TextInput.d.ts +2 -1
  60. package/dist/ProjectsPopover/types/components/Title/Title.d.ts +3 -2
  61. package/dist/ProjectsPopover/types/components/types.d.ts +4 -0
  62. package/dist/Select/index.cjs.js +16 -7
  63. package/dist/Select/index.cjs.js.map +1 -1
  64. package/dist/Select/index.d.ts +5 -2
  65. package/dist/Select/index.js +16 -7
  66. package/dist/Select/index.js.map +1 -1
  67. package/dist/Select/types/components/Alert/Alert.d.ts +2 -1
  68. package/dist/Select/types/components/Button/Button.d.ts +2 -2
  69. package/dist/Select/types/components/Checkbox/Checkbox.d.ts +2 -2
  70. package/dist/Select/types/components/Datepicker/DatePicker.d.ts +2 -2
  71. package/dist/Select/types/components/FlexBox/FlexBox.d.ts +2 -1
  72. package/dist/Select/types/components/Input/Input.d.ts +2 -2
  73. package/dist/Select/types/components/MaskInput/MaskInput.d.ts +2 -1
  74. package/dist/Select/types/components/Paragraph/Paragraph.d.ts +2 -2
  75. package/dist/Select/types/components/Select/Select.d.ts +2 -3
  76. package/dist/Select/types/components/Select/SelectCreatable.d.ts +2 -3
  77. package/dist/Select/types/components/Select/customComponents.d.ts +2 -1
  78. package/dist/Select/types/components/Switch/Switch.d.ts +2 -2
  79. package/dist/Select/types/components/Text/Text.d.ts +2 -2
  80. package/dist/Select/types/components/TextAreaInput/TextAreaInput.d.ts +2 -1
  81. package/dist/Select/types/components/TextInput/TextInput.d.ts +2 -1
  82. package/dist/Select/types/components/Title/Title.d.ts +3 -2
  83. package/dist/Select/types/components/types.d.ts +4 -0
  84. package/dist/SelectCreatable/index.cjs.js +16 -7
  85. package/dist/SelectCreatable/index.cjs.js.map +1 -1
  86. package/dist/SelectCreatable/index.d.ts +5 -2
  87. package/dist/SelectCreatable/index.js +16 -7
  88. package/dist/SelectCreatable/index.js.map +1 -1
  89. package/dist/SelectCreatable/types/components/Alert/Alert.d.ts +2 -1
  90. package/dist/SelectCreatable/types/components/Button/Button.d.ts +2 -2
  91. package/dist/SelectCreatable/types/components/Checkbox/Checkbox.d.ts +2 -2
  92. package/dist/SelectCreatable/types/components/Datepicker/DatePicker.d.ts +2 -2
  93. package/dist/SelectCreatable/types/components/FlexBox/FlexBox.d.ts +2 -1
  94. package/dist/SelectCreatable/types/components/Input/Input.d.ts +2 -2
  95. package/dist/SelectCreatable/types/components/MaskInput/MaskInput.d.ts +2 -1
  96. package/dist/SelectCreatable/types/components/Paragraph/Paragraph.d.ts +2 -2
  97. package/dist/SelectCreatable/types/components/Select/Select.d.ts +2 -3
  98. package/dist/SelectCreatable/types/components/Select/SelectCreatable.d.ts +2 -3
  99. package/dist/SelectCreatable/types/components/Select/customComponents.d.ts +2 -1
  100. package/dist/SelectCreatable/types/components/Switch/Switch.d.ts +2 -2
  101. package/dist/SelectCreatable/types/components/Text/Text.d.ts +2 -2
  102. package/dist/SelectCreatable/types/components/TextAreaInput/TextAreaInput.d.ts +2 -1
  103. package/dist/SelectCreatable/types/components/TextInput/TextInput.d.ts +2 -1
  104. package/dist/SelectCreatable/types/components/Title/Title.d.ts +3 -2
  105. package/dist/SelectCreatable/types/components/types.d.ts +4 -0
  106. package/dist/Snackbar/index.cjs.js +32 -32
  107. package/dist/Snackbar/index.cjs.js.map +1 -1
  108. package/dist/Snackbar/index.js +32 -32
  109. package/dist/Snackbar/index.js.map +1 -1
  110. package/dist/Snackbar/types/components/Alert/Alert.d.ts +2 -1
  111. package/dist/Snackbar/types/components/Button/Button.d.ts +2 -2
  112. package/dist/Snackbar/types/components/Checkbox/Checkbox.d.ts +2 -2
  113. package/dist/Snackbar/types/components/Datepicker/DatePicker.d.ts +2 -2
  114. package/dist/Snackbar/types/components/FlexBox/FlexBox.d.ts +2 -1
  115. package/dist/Snackbar/types/components/Input/Input.d.ts +2 -2
  116. package/dist/Snackbar/types/components/MaskInput/MaskInput.d.ts +2 -1
  117. package/dist/Snackbar/types/components/Paragraph/Paragraph.d.ts +2 -2
  118. package/dist/Snackbar/types/components/Select/Select.d.ts +2 -3
  119. package/dist/Snackbar/types/components/Select/SelectCreatable.d.ts +2 -3
  120. package/dist/Snackbar/types/components/Select/customComponents.d.ts +2 -1
  121. package/dist/Snackbar/types/components/Switch/Switch.d.ts +2 -2
  122. package/dist/Snackbar/types/components/Text/Text.d.ts +2 -2
  123. package/dist/Snackbar/types/components/TextAreaInput/TextAreaInput.d.ts +2 -1
  124. package/dist/Snackbar/types/components/TextInput/TextInput.d.ts +2 -1
  125. package/dist/Snackbar/types/components/Title/Title.d.ts +3 -2
  126. package/dist/Snackbar/types/components/types.d.ts +4 -0
  127. package/dist/css/Button.global.css +16 -7
  128. package/dist/css/DatePicker.global.css +54 -29
  129. package/dist/css/Input.global.css +1 -0
  130. package/dist/css/Select.global.css +11 -19
  131. package/dist/css/Title.global.css +4 -0
  132. package/dist/css/_theme.css +43 -3
  133. package/dist/index.d.ts +29 -24
  134. package/dist/index.js +36 -36
  135. package/dist/index.js.map +1 -1
  136. package/dist/types/components/Alert/Alert.d.ts +2 -1
  137. package/dist/types/components/Button/Button.d.ts +2 -2
  138. package/dist/types/components/Checkbox/Checkbox.d.ts +2 -2
  139. package/dist/types/components/Datepicker/DatePicker.d.ts +2 -2
  140. package/dist/types/components/FlexBox/FlexBox.d.ts +2 -1
  141. package/dist/types/components/Input/Input.d.ts +2 -2
  142. package/dist/types/components/MaskInput/MaskInput.d.ts +2 -1
  143. package/dist/types/components/Paragraph/Paragraph.d.ts +2 -2
  144. package/dist/types/components/Select/Select.d.ts +2 -3
  145. package/dist/types/components/Select/SelectCreatable.d.ts +2 -3
  146. package/dist/types/components/Select/customComponents.d.ts +2 -1
  147. package/dist/types/components/Switch/Switch.d.ts +2 -2
  148. package/dist/types/components/Text/Text.d.ts +2 -2
  149. package/dist/types/components/TextAreaInput/TextAreaInput.d.ts +2 -1
  150. package/dist/types/components/TextInput/TextInput.d.ts +2 -1
  151. package/dist/types/components/Title/Title.d.ts +3 -2
  152. package/dist/types/components/types.d.ts +4 -0
  153. package/package.json +1 -1
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
+ import { DataQa } from '../types';
2
3
  import './Alert.global.css';
3
4
  type AlertType = 'error' | 'warning' | 'success' | 'info' | 'config';
4
5
  type IconType = 'info' | 'cross' | 'error' | 'warning' | 'success' | 'config';
5
- export interface AlertProps {
6
+ export interface AlertProps extends DataQa {
6
7
  type?: AlertType;
7
8
  icon?: IconType;
8
9
  customIcon?: React.ReactNode;
@@ -1,8 +1,8 @@
1
1
  import React, { ButtonHTMLAttributes } from 'react';
2
- import { LoadingFeedback, Sizable } from '../types';
2
+ import { DataQa, LoadingFeedback, Sizable } from '../types';
3
3
  import './Button.global.css';
4
4
  type ButtonTheme = 'primary' | 'secondary' | 'transparent' | 'light' | 'danger' | 'pink';
5
- export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Partial<Sizable>, Partial<LoadingFeedback> {
5
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Partial<Sizable & LoadingFeedback & DataQa> {
6
6
  className?: string;
7
7
  theme?: ButtonTheme;
8
8
  outline?: boolean;
@@ -1,7 +1,7 @@
1
1
  import React, { InputHTMLAttributes } from 'react';
2
- import type { LoadingFeedback } from '../types';
2
+ import type { DataQa, LoadingFeedback } from '../types';
3
3
  import './Checkbox.global.css';
4
- export interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement>, Partial<LoadingFeedback> {
4
+ export interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement>, Partial<LoadingFeedback & DataQa> {
5
5
  className?: string;
6
6
  label?: string;
7
7
  disabled?: boolean;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import type { ReactDatePickerProps } from 'react-datepicker';
3
3
  import { MaskedInputProps } from 'react-text-mask';
4
- import type { ErrorFeedback, LoadingFeedback, WithHint } from '../types';
4
+ import type { DataQa, ErrorFeedback, LoadingFeedback, WithHint } from '../types';
5
5
  import './DatePicker.global.css';
6
- export interface DatePickerProps extends ReactDatePickerProps, Partial<LoadingFeedback & WithHint & ErrorFeedback> {
6
+ export interface DatePickerProps extends ReactDatePickerProps, Partial<LoadingFeedback & WithHint & ErrorFeedback & DataQa> {
7
7
  label?: string;
8
8
  className?: string;
9
9
  showMask?: boolean;
@@ -1,6 +1,7 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
+ import { DataQa } from '../types';
2
3
  import './FlexBox.css';
3
- export interface FlexBoxProps extends HTMLAttributes<HTMLElement> {
4
+ export interface FlexBoxProps extends HTMLAttributes<HTMLElement>, DataQa {
4
5
  className?: string;
5
6
  tagName?: keyof HTMLElementTagNameMap;
6
7
  direction?: React.CSSProperties['flexDirection'];
@@ -1,7 +1,7 @@
1
1
  import React, { InputHTMLAttributes } from 'react';
2
- import type { ErrorFeedback, LoadingFeedback, WithHint, WithLabel } from '../types';
2
+ import type { DataQa, ErrorFeedback, LoadingFeedback, WithHint, WithLabel } from '../types';
3
3
  import './Input.global.css';
4
- export interface InputProps extends Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback> {
4
+ export interface InputProps extends Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback & DataQa> {
5
5
  className?: string;
6
6
  disabled?: boolean;
7
7
  required?: boolean;
@@ -1,8 +1,9 @@
1
1
  import React, { InputHTMLAttributes } from 'react';
2
2
  import { MaskedInputProps } from 'react-text-mask';
3
3
  import { InputProps } from '../Input';
4
+ import { DataQa } from '../types';
4
5
  import './MaskInput.global.css';
5
- export interface MaskInputProps extends MaskedInputProps, Omit<InputProps, 'children'> {
6
+ export interface MaskInputProps extends MaskedInputProps, Omit<InputProps, 'children'>, DataQa {
6
7
  inputClassName?: string;
7
8
  labelProps?: InputHTMLAttributes<HTMLLabelElement>;
8
9
  }
@@ -1,8 +1,8 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- import { EllipsisText, TextAlign } from '../types';
2
+ import { DataQa, EllipsisText, TextAlign } from '../types';
3
3
  import '../../styles/typography.global.css';
4
4
  import './Paragraph.global.css';
5
- export interface ParagraphProps extends EllipsisText, TextAlign, HTMLAttributes<HTMLParagraphElement> {
5
+ export interface ParagraphProps extends EllipsisText, TextAlign, DataQa, HTMLAttributes<HTMLParagraphElement> {
6
6
  className?: string;
7
7
  children: React.ReactNode;
8
8
  ellipsisLine?: number;
@@ -1,13 +1,12 @@
1
1
  import React from 'react';
2
2
  import { Props as ReactSelectProps } from 'react-select';
3
3
  import type { GroupBase } from 'react-select/dist/declarations/src/types';
4
- import type { ErrorFeedback, LoadingFeedback, WithHint, WithLabel } from '../types';
4
+ import { DataQa, ErrorFeedback, LoadingFeedback, WithHint, WithLabel } from '../types';
5
5
  import { Option } from './types';
6
6
  import './Select.global.css';
7
7
  export type SelectOption = Option;
8
- export interface SelectProps extends ReactSelectProps<Option, false | true, GroupBase<Option>>, Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback> {
8
+ export interface SelectProps extends ReactSelectProps<Option, false | true, GroupBase<Option>>, Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback & DataQa> {
9
9
  wide?: boolean;
10
- dataQa?: string;
11
10
  }
12
11
  declare const Select: React.FC<SelectProps>;
13
12
  export declare const SelectComponents: {
@@ -1,14 +1,13 @@
1
1
  import React, { InputHTMLAttributes } from 'react';
2
2
  import { CreatableProps } from 'react-select/creatable';
3
3
  import type { GroupBase } from 'react-select/dist/declarations/src/types';
4
- import type { ErrorFeedback, LoadingFeedback, WithHint, WithLabel } from '../types';
4
+ import { DataQa, ErrorFeedback, LoadingFeedback, WithHint, WithLabel } from '../types';
5
5
  import { Option } from './types';
6
6
  import './Select.global.css';
7
7
  export type SelectOption = Option;
8
- export interface SelectCreatableProps extends CreatableProps<Option, false | true, GroupBase<Option>>, Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback> {
8
+ export interface SelectCreatableProps extends CreatableProps<Option, false | true, GroupBase<Option>>, Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback & DataQa> {
9
9
  wide?: boolean;
10
10
  labelProps?: InputHTMLAttributes<HTMLLabelElement>;
11
- dataQa?: string;
12
11
  }
13
12
  declare const SelectCreatable: React.FC<SelectCreatableProps>;
14
13
  export default SelectCreatable;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import { ClearIndicatorProps, DropdownIndicatorProps } from 'react-select';
2
+ import { ClearIndicatorProps, DropdownIndicatorProps, MultiValueRemoveProps } from 'react-select';
3
3
  declare const _default: {
4
+ MultiValueRemove: (props: MultiValueRemoveProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => React.JSX.Element;
4
5
  DropdownIndicator: (props: DropdownIndicatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => React.JSX.Element;
5
6
  LoadingIndicator: () => React.JSX.Element;
6
7
  IndicatorSeparator: () => null;
@@ -1,7 +1,7 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- import { LoadingFeedback, Sizable } from '../types';
2
+ import { DataQa, LoadingFeedback, Sizable } from '../types';
3
3
  import './Switch.global.css';
4
- export interface SwitchProps extends HTMLAttributes<HTMLInputElement>, Partial<LoadingFeedback>, Partial<Sizable> {
4
+ export interface SwitchProps extends HTMLAttributes<HTMLInputElement>, DataQa, Partial<LoadingFeedback>, Partial<Sizable> {
5
5
  className?: string;
6
6
  label?: string;
7
7
  value?: boolean;
@@ -1,7 +1,7 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- import { EllipsisText, TextType } from '../types';
2
+ import { DataQa, EllipsisText, TextType } from '../types';
3
3
  import './Text.global.css';
4
- export interface TextProps extends HTMLAttributes<HTMLSpanElement>, EllipsisText {
4
+ export interface TextProps extends HTMLAttributes<HTMLSpanElement>, EllipsisText, DataQa {
5
5
  type?: TextType;
6
6
  code?: boolean;
7
7
  underline?: boolean;
@@ -1,7 +1,8 @@
1
1
  import React, { InputHTMLAttributes } from 'react';
2
2
  import { InputProps } from '../Input';
3
+ import { DataQa } from '../types';
3
4
  import './TextAreaInput.global.css';
4
- export interface TextAreaInputProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'children' | 'rows'>, Omit<InputProps, 'children'> {
5
+ export interface TextAreaInputProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'children' | 'rows'>, Omit<InputProps, 'children'>, DataQa {
5
6
  textareaClassName?: string;
6
7
  labelProps?: InputHTMLAttributes<HTMLLabelElement>;
7
8
  minRows?: number;
@@ -1,7 +1,8 @@
1
1
  import React, { InputHTMLAttributes } from 'react';
2
2
  import type { InputProps } from '../Input';
3
+ import { DataQa } from '../types';
3
4
  import './TextInput.global.css';
4
- export interface TextInputProps extends InputHTMLAttributes<HTMLInputElement>, Omit<InputProps, 'children'> {
5
+ export interface TextInputProps extends InputHTMLAttributes<HTMLInputElement>, Omit<InputProps, 'children'>, DataQa {
5
6
  inputClassName?: string;
6
7
  labelProps?: InputHTMLAttributes<HTMLLabelElement>;
7
8
  }
@@ -1,10 +1,11 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- import { EllipsisText, TextAlign } from '../types';
2
+ import { DataQa, EllipsisText, TextAlign } from '../types';
3
3
  import '../../styles/typography.global.css';
4
4
  import './Title.global.css';
5
- export interface TitleProps extends EllipsisText, TextAlign, HTMLAttributes<HTMLHeadingElement> {
5
+ export interface TitleProps extends EllipsisText, TextAlign, HTMLAttributes<HTMLHeadingElement>, DataQa {
6
6
  level?: 1 | 2 | 3 | 4 | 5;
7
7
  className?: string;
8
+ pretty?: boolean;
8
9
  }
9
10
  export declare const Title: React.ForwardRefExoticComponent<TitleProps & React.RefAttributes<HTMLHeadingElement>>;
10
11
  export default Title;
@@ -22,6 +22,10 @@ export interface EllipsisText {
22
22
  /** для скорочення тексту і виведення 3 точок */
23
23
  ellipsis?: boolean;
24
24
  }
25
+ export interface DataQa {
26
+ /** для тестування */
27
+ dataQa?: string;
28
+ }
25
29
  export interface TextAlign {
26
30
  /** для центрування тексту **/
27
31
  textAlign?: 'center' | 'start' | 'end' | 'justify';
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
+ import { DataQa } from '../types';
2
3
  import './Alert.global.css';
3
4
  type AlertType = 'error' | 'warning' | 'success' | 'info' | 'config';
4
5
  type IconType = 'info' | 'cross' | 'error' | 'warning' | 'success' | 'config';
5
- export interface AlertProps {
6
+ export interface AlertProps extends DataQa {
6
7
  type?: AlertType;
7
8
  icon?: IconType;
8
9
  customIcon?: React.ReactNode;
@@ -1,8 +1,8 @@
1
1
  import React, { ButtonHTMLAttributes } from 'react';
2
- import { LoadingFeedback, Sizable } from '../types';
2
+ import { DataQa, LoadingFeedback, Sizable } from '../types';
3
3
  import './Button.global.css';
4
4
  type ButtonTheme = 'primary' | 'secondary' | 'transparent' | 'light' | 'danger' | 'pink';
5
- export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Partial<Sizable>, Partial<LoadingFeedback> {
5
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Partial<Sizable & LoadingFeedback & DataQa> {
6
6
  className?: string;
7
7
  theme?: ButtonTheme;
8
8
  outline?: boolean;
@@ -1,7 +1,7 @@
1
1
  import React, { InputHTMLAttributes } from 'react';
2
- import type { LoadingFeedback } from '../types';
2
+ import type { DataQa, LoadingFeedback } from '../types';
3
3
  import './Checkbox.global.css';
4
- export interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement>, Partial<LoadingFeedback> {
4
+ export interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement>, Partial<LoadingFeedback & DataQa> {
5
5
  className?: string;
6
6
  label?: string;
7
7
  disabled?: boolean;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import type { ReactDatePickerProps } from 'react-datepicker';
3
3
  import { MaskedInputProps } from 'react-text-mask';
4
- import type { ErrorFeedback, LoadingFeedback, WithHint } from '../types';
4
+ import type { DataQa, ErrorFeedback, LoadingFeedback, WithHint } from '../types';
5
5
  import './DatePicker.global.css';
6
- export interface DatePickerProps extends ReactDatePickerProps, Partial<LoadingFeedback & WithHint & ErrorFeedback> {
6
+ export interface DatePickerProps extends ReactDatePickerProps, Partial<LoadingFeedback & WithHint & ErrorFeedback & DataQa> {
7
7
  label?: string;
8
8
  className?: string;
9
9
  showMask?: boolean;
@@ -1,6 +1,7 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
+ import { DataQa } from '../types';
2
3
  import './FlexBox.css';
3
- export interface FlexBoxProps extends HTMLAttributes<HTMLElement> {
4
+ export interface FlexBoxProps extends HTMLAttributes<HTMLElement>, DataQa {
4
5
  className?: string;
5
6
  tagName?: keyof HTMLElementTagNameMap;
6
7
  direction?: React.CSSProperties['flexDirection'];
@@ -1,7 +1,7 @@
1
1
  import React, { InputHTMLAttributes } from 'react';
2
- import type { ErrorFeedback, LoadingFeedback, WithHint, WithLabel } from '../types';
2
+ import type { DataQa, ErrorFeedback, LoadingFeedback, WithHint, WithLabel } from '../types';
3
3
  import './Input.global.css';
4
- export interface InputProps extends Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback> {
4
+ export interface InputProps extends Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback & DataQa> {
5
5
  className?: string;
6
6
  disabled?: boolean;
7
7
  required?: boolean;
@@ -1,8 +1,9 @@
1
1
  import React, { InputHTMLAttributes } from 'react';
2
2
  import { MaskedInputProps } from 'react-text-mask';
3
3
  import { InputProps } from '../Input';
4
+ import { DataQa } from '../types';
4
5
  import './MaskInput.global.css';
5
- export interface MaskInputProps extends MaskedInputProps, Omit<InputProps, 'children'> {
6
+ export interface MaskInputProps extends MaskedInputProps, Omit<InputProps, 'children'>, DataQa {
6
7
  inputClassName?: string;
7
8
  labelProps?: InputHTMLAttributes<HTMLLabelElement>;
8
9
  }
@@ -1,8 +1,8 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- import { EllipsisText, TextAlign } from '../types';
2
+ import { DataQa, EllipsisText, TextAlign } from '../types';
3
3
  import '../../styles/typography.global.css';
4
4
  import './Paragraph.global.css';
5
- export interface ParagraphProps extends EllipsisText, TextAlign, HTMLAttributes<HTMLParagraphElement> {
5
+ export interface ParagraphProps extends EllipsisText, TextAlign, DataQa, HTMLAttributes<HTMLParagraphElement> {
6
6
  className?: string;
7
7
  children: React.ReactNode;
8
8
  ellipsisLine?: number;
@@ -1,13 +1,12 @@
1
1
  import React from 'react';
2
2
  import { Props as ReactSelectProps } from 'react-select';
3
3
  import type { GroupBase } from 'react-select/dist/declarations/src/types';
4
- import type { ErrorFeedback, LoadingFeedback, WithHint, WithLabel } from '../types';
4
+ import { DataQa, ErrorFeedback, LoadingFeedback, WithHint, WithLabel } from '../types';
5
5
  import { Option } from './types';
6
6
  import './Select.global.css';
7
7
  export type SelectOption = Option;
8
- export interface SelectProps extends ReactSelectProps<Option, false | true, GroupBase<Option>>, Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback> {
8
+ export interface SelectProps extends ReactSelectProps<Option, false | true, GroupBase<Option>>, Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback & DataQa> {
9
9
  wide?: boolean;
10
- dataQa?: string;
11
10
  }
12
11
  declare const Select: React.FC<SelectProps>;
13
12
  export declare const SelectComponents: {
@@ -1,14 +1,13 @@
1
1
  import React, { InputHTMLAttributes } from 'react';
2
2
  import { CreatableProps } from 'react-select/creatable';
3
3
  import type { GroupBase } from 'react-select/dist/declarations/src/types';
4
- import type { ErrorFeedback, LoadingFeedback, WithHint, WithLabel } from '../types';
4
+ import { DataQa, ErrorFeedback, LoadingFeedback, WithHint, WithLabel } from '../types';
5
5
  import { Option } from './types';
6
6
  import './Select.global.css';
7
7
  export type SelectOption = Option;
8
- export interface SelectCreatableProps extends CreatableProps<Option, false | true, GroupBase<Option>>, Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback> {
8
+ export interface SelectCreatableProps extends CreatableProps<Option, false | true, GroupBase<Option>>, Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback & DataQa> {
9
9
  wide?: boolean;
10
10
  labelProps?: InputHTMLAttributes<HTMLLabelElement>;
11
- dataQa?: string;
12
11
  }
13
12
  declare const SelectCreatable: React.FC<SelectCreatableProps>;
14
13
  export default SelectCreatable;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import { ClearIndicatorProps, DropdownIndicatorProps } from 'react-select';
2
+ import { ClearIndicatorProps, DropdownIndicatorProps, MultiValueRemoveProps } from 'react-select';
3
3
  declare const _default: {
4
+ MultiValueRemove: (props: MultiValueRemoveProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => React.JSX.Element;
4
5
  DropdownIndicator: (props: DropdownIndicatorProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => React.JSX.Element;
5
6
  LoadingIndicator: () => React.JSX.Element;
6
7
  IndicatorSeparator: () => null;
@@ -1,7 +1,7 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- import { LoadingFeedback, Sizable } from '../types';
2
+ import { DataQa, LoadingFeedback, Sizable } from '../types';
3
3
  import './Switch.global.css';
4
- export interface SwitchProps extends HTMLAttributes<HTMLInputElement>, Partial<LoadingFeedback>, Partial<Sizable> {
4
+ export interface SwitchProps extends HTMLAttributes<HTMLInputElement>, DataQa, Partial<LoadingFeedback>, Partial<Sizable> {
5
5
  className?: string;
6
6
  label?: string;
7
7
  value?: boolean;
@@ -1,7 +1,7 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- import { EllipsisText, TextType } from '../types';
2
+ import { DataQa, EllipsisText, TextType } from '../types';
3
3
  import './Text.global.css';
4
- export interface TextProps extends HTMLAttributes<HTMLSpanElement>, EllipsisText {
4
+ export interface TextProps extends HTMLAttributes<HTMLSpanElement>, EllipsisText, DataQa {
5
5
  type?: TextType;
6
6
  code?: boolean;
7
7
  underline?: boolean;
@@ -1,7 +1,8 @@
1
1
  import React, { InputHTMLAttributes } from 'react';
2
2
  import { InputProps } from '../Input';
3
+ import { DataQa } from '../types';
3
4
  import './TextAreaInput.global.css';
4
- export interface TextAreaInputProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'children' | 'rows'>, Omit<InputProps, 'children'> {
5
+ export interface TextAreaInputProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'children' | 'rows'>, Omit<InputProps, 'children'>, DataQa {
5
6
  textareaClassName?: string;
6
7
  labelProps?: InputHTMLAttributes<HTMLLabelElement>;
7
8
  minRows?: number;
@@ -1,7 +1,8 @@
1
1
  import React, { InputHTMLAttributes } from 'react';
2
2
  import type { InputProps } from '../Input';
3
+ import { DataQa } from '../types';
3
4
  import './TextInput.global.css';
4
- export interface TextInputProps extends InputHTMLAttributes<HTMLInputElement>, Omit<InputProps, 'children'> {
5
+ export interface TextInputProps extends InputHTMLAttributes<HTMLInputElement>, Omit<InputProps, 'children'>, DataQa {
5
6
  inputClassName?: string;
6
7
  labelProps?: InputHTMLAttributes<HTMLLabelElement>;
7
8
  }
@@ -1,10 +1,11 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- import { EllipsisText, TextAlign } from '../types';
2
+ import { DataQa, EllipsisText, TextAlign } from '../types';
3
3
  import '../../styles/typography.global.css';
4
4
  import './Title.global.css';
5
- export interface TitleProps extends EllipsisText, TextAlign, HTMLAttributes<HTMLHeadingElement> {
5
+ export interface TitleProps extends EllipsisText, TextAlign, HTMLAttributes<HTMLHeadingElement>, DataQa {
6
6
  level?: 1 | 2 | 3 | 4 | 5;
7
7
  className?: string;
8
+ pretty?: boolean;
8
9
  }
9
10
  export declare const Title: React.ForwardRefExoticComponent<TitleProps & React.RefAttributes<HTMLHeadingElement>>;
10
11
  export default Title;
@@ -22,6 +22,10 @@ export interface EllipsisText {
22
22
  /** для скорочення тексту і виведення 3 точок */
23
23
  ellipsis?: boolean;
24
24
  }
25
+ export interface DataQa {
26
+ /** для тестування */
27
+ dataQa?: string;
28
+ }
25
29
  export interface TextAlign {
26
30
  /** для центрування тексту **/
27
31
  textAlign?: 'center' | 'start' | 'end' | 'justify';
@@ -12420,10 +12420,10 @@ var BlackTooltip = styled(function (_a) {
12420
12420
  var _a;
12421
12421
  return (_a = {},
12422
12422
  _a["& .".concat(tooltipClasses.arrow)] = {
12423
- color: '#333',
12423
+ color: 'rgba(0, 0, 0, 0.9)',
12424
12424
  },
12425
12425
  _a["& .".concat(tooltipClasses.tooltip)] = {
12426
- backgroundColor: '#333',
12426
+ backgroundColor: 'rgba(0, 0, 0, 0.9)',
12427
12427
  fontSize: '14px',
12428
12428
  color: '#fff',
12429
12429
  padding: '10px',