@vchasno/ui-kit 0.3.29 → 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.
- package/CHANGELOG.md +7 -0
- package/dist/Datepicker/index.cjs.js +2 -2
- package/dist/Datepicker/index.cjs.js.map +1 -1
- package/dist/Datepicker/index.d.ts +5 -1
- package/dist/Datepicker/index.js +2 -2
- package/dist/Datepicker/index.js.map +1 -1
- package/dist/Datepicker/types/components/Alert/Alert.d.ts +2 -1
- package/dist/Datepicker/types/components/Button/Button.d.ts +2 -2
- package/dist/Datepicker/types/components/Checkbox/Checkbox.d.ts +2 -2
- package/dist/Datepicker/types/components/Datepicker/DatePicker.d.ts +2 -2
- package/dist/Datepicker/types/components/FlexBox/FlexBox.d.ts +2 -1
- package/dist/Datepicker/types/components/Input/Input.d.ts +2 -2
- package/dist/Datepicker/types/components/MaskInput/MaskInput.d.ts +2 -1
- package/dist/Datepicker/types/components/Paragraph/Paragraph.d.ts +2 -2
- package/dist/Datepicker/types/components/Select/Select.d.ts +2 -3
- package/dist/Datepicker/types/components/Select/SelectCreatable.d.ts +2 -3
- package/dist/Datepicker/types/components/Switch/Switch.d.ts +2 -2
- package/dist/Datepicker/types/components/Text/Text.d.ts +2 -2
- package/dist/Datepicker/types/components/TextAreaInput/TextAreaInput.d.ts +2 -1
- package/dist/Datepicker/types/components/TextInput/TextInput.d.ts +2 -1
- package/dist/Datepicker/types/components/Title/Title.d.ts +2 -2
- package/dist/Datepicker/types/components/types.d.ts +4 -0
- package/dist/Menu/types/components/Alert/Alert.d.ts +2 -1
- package/dist/Menu/types/components/Button/Button.d.ts +2 -2
- package/dist/Menu/types/components/Checkbox/Checkbox.d.ts +2 -2
- package/dist/Menu/types/components/Datepicker/DatePicker.d.ts +2 -2
- package/dist/Menu/types/components/FlexBox/FlexBox.d.ts +2 -1
- package/dist/Menu/types/components/Input/Input.d.ts +2 -2
- package/dist/Menu/types/components/MaskInput/MaskInput.d.ts +2 -1
- package/dist/Menu/types/components/Paragraph/Paragraph.d.ts +2 -2
- package/dist/Menu/types/components/Select/Select.d.ts +2 -3
- package/dist/Menu/types/components/Select/SelectCreatable.d.ts +2 -3
- package/dist/Menu/types/components/Switch/Switch.d.ts +2 -2
- package/dist/Menu/types/components/Text/Text.d.ts +2 -2
- package/dist/Menu/types/components/TextAreaInput/TextAreaInput.d.ts +2 -1
- package/dist/Menu/types/components/TextInput/TextInput.d.ts +2 -1
- package/dist/Menu/types/components/Title/Title.d.ts +2 -2
- package/dist/Menu/types/components/types.d.ts +4 -0
- package/dist/ProjectsPopover/index.cjs.js +2 -2
- package/dist/ProjectsPopover/index.cjs.js.map +1 -1
- package/dist/ProjectsPopover/index.js +2 -2
- package/dist/ProjectsPopover/index.js.map +1 -1
- package/dist/ProjectsPopover/types/components/Alert/Alert.d.ts +2 -1
- package/dist/ProjectsPopover/types/components/Button/Button.d.ts +2 -2
- package/dist/ProjectsPopover/types/components/Checkbox/Checkbox.d.ts +2 -2
- package/dist/ProjectsPopover/types/components/Datepicker/DatePicker.d.ts +2 -2
- package/dist/ProjectsPopover/types/components/FlexBox/FlexBox.d.ts +2 -1
- package/dist/ProjectsPopover/types/components/Input/Input.d.ts +2 -2
- package/dist/ProjectsPopover/types/components/MaskInput/MaskInput.d.ts +2 -1
- package/dist/ProjectsPopover/types/components/Paragraph/Paragraph.d.ts +2 -2
- package/dist/ProjectsPopover/types/components/Select/Select.d.ts +2 -3
- package/dist/ProjectsPopover/types/components/Select/SelectCreatable.d.ts +2 -3
- package/dist/ProjectsPopover/types/components/Switch/Switch.d.ts +2 -2
- package/dist/ProjectsPopover/types/components/Text/Text.d.ts +2 -2
- package/dist/ProjectsPopover/types/components/TextAreaInput/TextAreaInput.d.ts +2 -1
- package/dist/ProjectsPopover/types/components/TextInput/TextInput.d.ts +2 -1
- package/dist/ProjectsPopover/types/components/Title/Title.d.ts +2 -2
- package/dist/ProjectsPopover/types/components/types.d.ts +4 -0
- package/dist/Select/index.cjs.js.map +1 -1
- package/dist/Select/index.d.ts +5 -2
- package/dist/Select/index.js.map +1 -1
- package/dist/Select/types/components/Alert/Alert.d.ts +2 -1
- package/dist/Select/types/components/Button/Button.d.ts +2 -2
- package/dist/Select/types/components/Checkbox/Checkbox.d.ts +2 -2
- package/dist/Select/types/components/Datepicker/DatePicker.d.ts +2 -2
- package/dist/Select/types/components/FlexBox/FlexBox.d.ts +2 -1
- package/dist/Select/types/components/Input/Input.d.ts +2 -2
- package/dist/Select/types/components/MaskInput/MaskInput.d.ts +2 -1
- package/dist/Select/types/components/Paragraph/Paragraph.d.ts +2 -2
- package/dist/Select/types/components/Select/Select.d.ts +2 -3
- package/dist/Select/types/components/Select/SelectCreatable.d.ts +2 -3
- package/dist/Select/types/components/Switch/Switch.d.ts +2 -2
- package/dist/Select/types/components/Text/Text.d.ts +2 -2
- package/dist/Select/types/components/TextAreaInput/TextAreaInput.d.ts +2 -1
- package/dist/Select/types/components/TextInput/TextInput.d.ts +2 -1
- package/dist/Select/types/components/Title/Title.d.ts +2 -2
- package/dist/Select/types/components/types.d.ts +4 -0
- package/dist/SelectCreatable/index.cjs.js.map +1 -1
- package/dist/SelectCreatable/index.d.ts +5 -2
- package/dist/SelectCreatable/index.js.map +1 -1
- package/dist/SelectCreatable/types/components/Alert/Alert.d.ts +2 -1
- package/dist/SelectCreatable/types/components/Button/Button.d.ts +2 -2
- package/dist/SelectCreatable/types/components/Checkbox/Checkbox.d.ts +2 -2
- package/dist/SelectCreatable/types/components/Datepicker/DatePicker.d.ts +2 -2
- package/dist/SelectCreatable/types/components/FlexBox/FlexBox.d.ts +2 -1
- package/dist/SelectCreatable/types/components/Input/Input.d.ts +2 -2
- package/dist/SelectCreatable/types/components/MaskInput/MaskInput.d.ts +2 -1
- package/dist/SelectCreatable/types/components/Paragraph/Paragraph.d.ts +2 -2
- package/dist/SelectCreatable/types/components/Select/Select.d.ts +2 -3
- package/dist/SelectCreatable/types/components/Select/SelectCreatable.d.ts +2 -3
- package/dist/SelectCreatable/types/components/Switch/Switch.d.ts +2 -2
- package/dist/SelectCreatable/types/components/Text/Text.d.ts +2 -2
- package/dist/SelectCreatable/types/components/TextAreaInput/TextAreaInput.d.ts +2 -1
- package/dist/SelectCreatable/types/components/TextInput/TextInput.d.ts +2 -1
- package/dist/SelectCreatable/types/components/Title/Title.d.ts +2 -2
- package/dist/SelectCreatable/types/components/types.d.ts +4 -0
- package/dist/Snackbar/index.cjs.js +28 -28
- package/dist/Snackbar/index.cjs.js.map +1 -1
- package/dist/Snackbar/index.js +28 -28
- package/dist/Snackbar/index.js.map +1 -1
- package/dist/Snackbar/types/components/Alert/Alert.d.ts +2 -1
- package/dist/Snackbar/types/components/Button/Button.d.ts +2 -2
- package/dist/Snackbar/types/components/Checkbox/Checkbox.d.ts +2 -2
- package/dist/Snackbar/types/components/Datepicker/DatePicker.d.ts +2 -2
- package/dist/Snackbar/types/components/FlexBox/FlexBox.d.ts +2 -1
- package/dist/Snackbar/types/components/Input/Input.d.ts +2 -2
- package/dist/Snackbar/types/components/MaskInput/MaskInput.d.ts +2 -1
- package/dist/Snackbar/types/components/Paragraph/Paragraph.d.ts +2 -2
- package/dist/Snackbar/types/components/Select/Select.d.ts +2 -3
- package/dist/Snackbar/types/components/Select/SelectCreatable.d.ts +2 -3
- package/dist/Snackbar/types/components/Switch/Switch.d.ts +2 -2
- package/dist/Snackbar/types/components/Text/Text.d.ts +2 -2
- package/dist/Snackbar/types/components/TextAreaInput/TextAreaInput.d.ts +2 -1
- package/dist/Snackbar/types/components/TextInput/TextInput.d.ts +2 -1
- package/dist/Snackbar/types/components/Title/Title.d.ts +2 -2
- package/dist/Snackbar/types/components/types.d.ts +4 -0
- package/dist/css/Button.global.css +16 -7
- package/dist/css/_theme.css +43 -3
- package/dist/index.d.ts +28 -24
- package/dist/index.js +32 -32
- package/dist/index.js.map +1 -1
- package/dist/types/components/Alert/Alert.d.ts +2 -1
- package/dist/types/components/Button/Button.d.ts +2 -2
- package/dist/types/components/Checkbox/Checkbox.d.ts +2 -2
- package/dist/types/components/Datepicker/DatePicker.d.ts +2 -2
- package/dist/types/components/FlexBox/FlexBox.d.ts +2 -1
- package/dist/types/components/Input/Input.d.ts +2 -2
- package/dist/types/components/MaskInput/MaskInput.d.ts +2 -1
- package/dist/types/components/Paragraph/Paragraph.d.ts +2 -2
- package/dist/types/components/Select/Select.d.ts +2 -3
- package/dist/types/components/Select/SelectCreatable.d.ts +2 -3
- package/dist/types/components/Switch/Switch.d.ts +2 -2
- package/dist/types/components/Text/Text.d.ts +2 -2
- package/dist/types/components/TextAreaInput/TextAreaInput.d.ts +2 -1
- package/dist/types/components/TextInput/TextInput.d.ts +2 -1
- package/dist/types/components/Title/Title.d.ts +2 -2
- package/dist/types/components/types.d.ts +4 -0
- 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
|
|
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
|
|
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
|
|
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,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,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 './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
8
|
pretty?: boolean;
|
|
@@ -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';
|
|
@@ -225,8 +225,8 @@ var css_248z$p = ".vchasno-ui-flex-box {\n display: flex;\n max-width: 100
|
|
|
225
225
|
styleInject(css_248z$p);
|
|
226
226
|
|
|
227
227
|
var FlexBox = React$1.forwardRef(function (_a, ref) {
|
|
228
|
-
var className = _a.className, _b = _a.tagName, tagName = _b === void 0 ? 'div' : _b, children = _a.children, direction = _a.direction, gap = _a.gap, wrap = _a.wrap, align = _a.align, justify = _a.justify, grow = _a.grow, shrink = _a.shrink, _c = _a.style, style = _c === void 0 ? {} : _c, rest = __rest(_a, ["className", "tagName", "children", "direction", "gap", "wrap", "align", "justify", "grow", "shrink", "style"]);
|
|
229
|
-
return React$1.createElement(tagName, __assign({ ref: ref, className: cn('vchasno-ui-flex-box', className), style: __assign(__assign({}, style), { flexDirection: direction, gap: gap, flexWrap: wrap, justifyContent: justify, alignItems: align, alignContent: align, flexGrow: grow, flexShrink: shrink }) }, rest), children);
|
|
228
|
+
var className = _a.className, _b = _a.tagName, tagName = _b === void 0 ? 'div' : _b, children = _a.children, direction = _a.direction, gap = _a.gap, wrap = _a.wrap, align = _a.align, justify = _a.justify, grow = _a.grow, shrink = _a.shrink, _c = _a.style, style = _c === void 0 ? {} : _c, dataQa = _a.dataQa, rest = __rest(_a, ["className", "tagName", "children", "direction", "gap", "wrap", "align", "justify", "grow", "shrink", "style", "dataQa"]);
|
|
229
|
+
return React$1.createElement(tagName, __assign({ ref: ref, className: cn('vchasno-ui-flex-box', className), 'data-qa': dataQa, style: __assign(__assign({}, style), { flexDirection: direction, gap: gap, flexWrap: wrap, justifyContent: justify, alignItems: align, alignContent: align, flexGrow: grow, flexShrink: shrink }) }, rest), children);
|
|
230
230
|
});
|
|
231
231
|
FlexBox.displayName = 'FlexBox';
|
|
232
232
|
|
|
@@ -240,12 +240,12 @@ var Spinner = function (_a) {
|
|
|
240
240
|
React$1.createElement("circle", { className: "vchasno-ui-spinner__svg__circle", cx: "50", cy: "50", r: "20", fill: "none", stroke: color, strokeWidth: "2", strokeMiterlimit: "10" }))));
|
|
241
241
|
};
|
|
242
242
|
|
|
243
|
-
var css_248z$n = ".vchasno-ui-button {\n display: inline-flex;\n min-height: 40px;\n align-items: center;\n justify-content: center;\n border: 0;\n border-radius: 8px;\n background-color: var(--vchasno-ui-btn-default-bg);\n color: var(--vchasno-ui-btn-default-color);\n font-size: var(--vchasno-ui-btn-font-size);\n font-weight: 700;\n gap: 5px;\n transition:\n background-color var(--vchasno-ui-transition-duration-sec, 0.3s),\n color var(--vchasno-ui-transition-duration-sec, 0.3s);\n user-select: none;\n}\n\n.vchasno-ui-button:disabled {\n cursor: not-allowed;\n opacity: 0.8;\n}\n\n.vchasno-ui-button:not(:disabled):hover {\n background-color: var(--vchasno-ui-btn-default-hover-bg);\n color: var(--vchasno-ui-btn-default-hover-color);\n cursor: pointer;\n}\n\n.vchasno-ui-button.--sm {\n min-width: 40px;\n padding: 0 15px;\n}\n\n.vchasno-ui-button.--md {\n min-width:
|
|
243
|
+
var css_248z$n = ".vchasno-ui-button {\n display: inline-flex;\n min-height: 40px;\n align-items: center;\n justify-content: center;\n border: 0;\n border-radius: 8px;\n background-color: var(--vchasno-ui-btn-default-bg);\n color: var(--vchasno-ui-btn-default-color);\n font-size: var(--vchasno-ui-btn-font-size);\n font-weight: 700;\n gap: 5px;\n transition:\n min-height var(--vchasno-ui-transition-duration-sec, 0.3s),\n padding var(--vchasno-ui-transition-duration-sec, 0.3s),\n background-color var(--vchasno-ui-transition-duration-sec, 0.3s),\n color var(--vchasno-ui-transition-duration-sec, 0.3s);\n user-select: none;\n}\n\n.vchasno-ui-button:disabled {\n cursor: not-allowed;\n opacity: 0.8;\n}\n\n.vchasno-ui-button:not(:disabled):hover {\n background-color: var(--vchasno-ui-btn-default-hover-bg);\n color: var(--vchasno-ui-btn-default-hover-color);\n cursor: pointer;\n}\n\n.vchasno-ui-button.--sm {\n min-width: 40px;\n padding: 0 15px;\n}\n\n.vchasno-ui-button.--md {\n min-width: 40px;\n padding: 0 24px;\n}\n\n.vchasno-ui-button.--lg {\n min-width: 50px;\n min-height: 50px;\n padding: 0 32px;\n}\n\n.vchasno-ui-button.--wide {\n width: 100%;\n}\n\n.vchasno-ui-button.--primary {\n border: 1px solid transparent;\n background-color: var(--vchasno-ui-btn-primary-bg);\n color: var(--vchasno-ui-btn-primary-color);\n}\n\n.vchasno-ui-button.--primary.--outline {\n border: 1px solid var(--vchasno-ui-btn-primary-bg);\n background-color: transparent;\n box-shadow: none;\n color: var(--vchasno-ui-btn-primary-bg);\n}\n\n.vchasno-ui-button.--secondary {\n border: 1px solid var(--vchasno-ui-btn-secondary-border-color);\n background-color: var(--vchasno-ui-btn-secondary-bg);\n color: var(--vchasno-ui-btn-secondary-color);\n}\n\n.vchasno-ui-button:disabled.--primary,\n.vchasno-ui-button:disabled.--secondary {\n background-color: #b6cadb;\n color: var(--vchasno-ui-btn-disabled-color);\n}\n\n.vchasno-ui-button:disabled.--primary {\n background-color: var(--vchasno-ui-btn-primary-disabled-bg);\n}\n\n.vchasno-ui-button:disabled.--secondary {\n background-color: var(--vchasno-ui-btn-secondary-disabled-bg);\n}\n\n.vchasno-ui-button.--primary:not(:disabled):hover {\n background-color: var(--vchasno-ui-btn-primary-hover-bg);\n color: var(--vchasno-ui-btn-primary-color);\n}\n\n.vchasno-ui-button.--primary.--outline:not(:disabled):hover {\n border: 1px solid var(--vchasno-ui-btn-primary-bg);\n background-color: var(--vchasno-ui-btn-default-hover-bg);\n color: var(--vchasno-ui-btn-primary-bg);\n}\n\n.vchasno-ui-button.--secondary.--outline {\n border: 1px solid var(--vchasno-ui-btn-secondary-bg);\n background-color: transparent;\n box-shadow: none;\n color: var(--vchasno-ui-btn-secondary-bg);\n}\n\n.vchasno-ui-button.--secondary:not(:disabled):hover {\n background-color: var(--vchasno-ui-btn-secondary-hover-bg);\n color: var(--vchasno-ui-btn-secondary-color);\n}\n\n.vchasno-ui-button.--secondary.--outline:not(:disabled):hover {\n background-color: rgb(0 0 0 / 10%);\n color: var(--vchasno-ui-btn-secondary-bg);\n}\n\n.vchasno-ui-button.--pink {\n background-color: var(--vchasno-ui-btn-pink-bg);\n color: var(--vchasno-ui-btn-primary-color);\n}\n\n.vchasno-ui-button.--pink.--outline {\n border: 1px solid var(--vchasno-ui-btn-pink-bg);\n background-color: transparent;\n color: var(--vchasno-ui-btn-pink-bg);\n}\n\n.vchasno-ui-button.--pink:not(:disabled):hover {\n background-color: var(--vchasno-ui-btn-pink-hover-bg);\n color: var(--vchasno-ui-btn-primary-color);\n}\n\n.vchasno-ui-button.--pink.--outline:not(:disabled):hover {\n border: 1px solid var(--vchasno-ui-btn-pink-bg);\n background-color: transparent;\n color: var(--vchasno-ui-btn-pink-bg);\n}\n\n.vchasno-ui-button.--danger {\n border: 1px solid var(--vchasno-ui-btn-danger-color, #ef6562);\n background-color: var(--vchasno-ui-btn-danger-bg, rgb(239 101 98 / 20%));\n color: var(--vchasno-ui-btn-danger-color, #ef6562);\n}\n\n.vchasno-ui-button.--danger.--outline {\n border: 1px solid var(--vchasno-ui-btn-danger-color, #ef6562);\n background-color: transparent;\n color: var(--vchasno-ui-btn-danger-color, #ef6562);\n}\n\n.vchasno-ui-button:disabled.--danger {\n border: 1px solid #b6cadb;\n background-color: rgb(182 202 219 / 20%);\n color: #b6cadb;\n}\n\n.vchasno-ui-button.--danger:not(:disabled):hover {\n background-color: var(--vchasno-ui-btn-danger-hover-bg, #ef6562);\n color: var(--vchasno-ui-btn-danger-hover-color, #fff);\n}\n\n.vchasno-ui-button.--danger.--outline:not(:disabled):hover {\n border: 1px solid var(--vchasno-ui-btn-danger-color, #ef6562);\n background-color: rgb(0 0 0 / 10%);\n color: var(--vchasno-ui-btn-danger-color, #ef6562);\n}\n\n.vchasno-ui-button.--transparent .vchasno-ui-spinner__svg__circle {\n stroke: var(--vchasno-ui-btn-default-color);\n transition: stroke var(--vchasno-ui-transition-duration-sec, 0.3s);\n}\n\n.vchasno-ui-button.--transparent:hover .vchasno-ui-spinner__svg__circle {\n stroke: var(--vchasno-ui-btn-default-hover-color);\n}\n\n.vchasno-ui-button:disabled.--transparent {\n color: #b6cadb;\n}\n\n.vchasno-ui-button.--light {\n border: 1px solid transparent;\n background-color: var(--vchasno-ui-btn-light-bg, #fff);\n color: var(--vchasno-ui-btn-light-color);\n}\n\n.vchasno-ui-button:disabled.--light {\n border: none;\n background-color: rgb(182 202 219 / 20%);\n color: #b6cadb;\n}\n\n.vchasno-ui-button.--light.--outline {\n border: 1px solid var(--vchasno-ui-btn-primary-bg);\n background-color: var(--vchasno-ui-btn-primary-color);\n color: var(--vchasno-ui-btn-primary-bg);\n}\n\n.vchasno-ui-button.--light:not(:disabled):hover {\n background-color: var(--vchasno-ui-btn-light-hover-bg);\n color: var(--vchasno-ui-btn-primary-bg);\n}\n";
|
|
244
244
|
styleInject(css_248z$n);
|
|
245
245
|
|
|
246
246
|
var Button = React$1.forwardRef(function (_a, ref) {
|
|
247
|
-
var _b = _a.theme, theme = _b === void 0 ? 'primary' : _b, _c = _a.type, type = _c === void 0 ? 'button' : _c, _d = _a.size, size = _d === void 0 ? 'md' : _d, _e = _a.outline, outline = _e === void 0 ? false : _e, _f = _a.loading, loading = _f === void 0 ? false : _f, _g = _a.wide, wide = _g === void 0 ? false : _g, className = _a.className, children = _a.children, rest = __rest(_a, ["theme", "type", "size", "outline", "loading", "wide", "className", "children"]);
|
|
248
|
-
return (React$1.createElement("button", __assign({ ref: ref, type: type, className: cn('vchasno-ui-button', "--".concat(theme), "--".concat(size), {
|
|
247
|
+
var _b = _a.theme, theme = _b === void 0 ? 'primary' : _b, _c = _a.type, type = _c === void 0 ? 'button' : _c, _d = _a.size, size = _d === void 0 ? 'md' : _d, _e = _a.outline, outline = _e === void 0 ? false : _e, _f = _a.loading, loading = _f === void 0 ? false : _f, _g = _a.wide, wide = _g === void 0 ? false : _g, className = _a.className, dataQa = _a.dataQa, children = _a.children, rest = __rest(_a, ["theme", "type", "size", "outline", "loading", "wide", "className", "dataQa", "children"]);
|
|
248
|
+
return (React$1.createElement("button", __assign({ "data-qa": dataQa, ref: ref, type: type, className: cn('vchasno-ui-button', "--".concat(theme), "--".concat(size), {
|
|
249
249
|
'--outline': outline,
|
|
250
250
|
'--wide': wide,
|
|
251
251
|
'--loading': loading,
|
|
@@ -286,8 +286,8 @@ var css_248z$k = ".vchasno-ui-input {\n display: inline-flex;\n max-width:
|
|
|
286
286
|
styleInject(css_248z$k);
|
|
287
287
|
|
|
288
288
|
var Input = function (_a) {
|
|
289
|
-
var className = _a.className, disabled = _a.disabled, startElement = _a.startElement, endElement = _a.endElement, error = _a.error, label = _a.label, hint = _a.hint, wide = _a.wide, required = _a.required, loading = _a.loading, labelProps = _a.labelProps, _b = _a.hideEmptyMeta, hideEmptyMeta = _b === void 0 ? false : _b, children = _a.children;
|
|
290
|
-
return (React$1.createElement("label", __assign({ className: cn('vchasno-ui-input', {
|
|
289
|
+
var className = _a.className, disabled = _a.disabled, startElement = _a.startElement, endElement = _a.endElement, error = _a.error, label = _a.label, hint = _a.hint, wide = _a.wide, required = _a.required, loading = _a.loading, labelProps = _a.labelProps, _b = _a.hideEmptyMeta, hideEmptyMeta = _b === void 0 ? false : _b, dataQa = _a.dataQa, children = _a.children;
|
|
290
|
+
return (React$1.createElement("label", __assign({ "data-qa": dataQa, className: cn('vchasno-ui-input', {
|
|
291
291
|
'--required': required,
|
|
292
292
|
'--disabled': disabled,
|
|
293
293
|
'--wide': wide,
|
|
@@ -319,9 +319,9 @@ var css_248z$h = ".vchasno-ui-text-input {\n font-size: var(--vchasno-ui-inpu
|
|
|
319
319
|
styleInject(css_248z$h);
|
|
320
320
|
|
|
321
321
|
var TextInput = React$1.forwardRef(function (_a, ref) {
|
|
322
|
-
var className = _a.className, disabled = _a.disabled, startElement = _a.startElement, endElement = _a.endElement, error = _a.error, label = _a.label, hint = _a.hint, wide = _a.wide, required = _a.required, loading = _a.loading, inputClassName = _a.inputClassName, labelProps = _a.labelProps, hideEmptyMeta = _a.hideEmptyMeta, _b = _a.placeholder, placeholder = _b === void 0 ? ' ' : _b, //need "space" for correct label working
|
|
323
|
-
rest = __rest(_a, ["className", "disabled", "startElement", "endElement", "error", "label", "hint", "wide", "required", "loading", "inputClassName", "labelProps", "hideEmptyMeta", "placeholder"]);
|
|
324
|
-
return (React$1.createElement(Input, { required: required, wide: wide, className: className, loading: loading, disabled: disabled, label: label, error: error, hint: hint, endElement: endElement, startElement: startElement, labelProps: labelProps, hideEmptyMeta: hideEmptyMeta },
|
|
322
|
+
var className = _a.className, disabled = _a.disabled, startElement = _a.startElement, endElement = _a.endElement, error = _a.error, label = _a.label, hint = _a.hint, wide = _a.wide, required = _a.required, loading = _a.loading, inputClassName = _a.inputClassName, labelProps = _a.labelProps, hideEmptyMeta = _a.hideEmptyMeta, dataQa = _a.dataQa, _b = _a.placeholder, placeholder = _b === void 0 ? ' ' : _b, //need "space" for correct label working
|
|
323
|
+
rest = __rest(_a, ["className", "disabled", "startElement", "endElement", "error", "label", "hint", "wide", "required", "loading", "inputClassName", "labelProps", "hideEmptyMeta", "dataQa", "placeholder"]);
|
|
324
|
+
return (React$1.createElement(Input, { dataQa: dataQa, required: required, wide: wide, className: className, loading: loading, disabled: disabled, label: label, error: error, hint: hint, endElement: endElement, startElement: startElement, labelProps: labelProps, hideEmptyMeta: hideEmptyMeta },
|
|
325
325
|
React$1.createElement("input", __assign({ disabled: disabled, className: cn('vchasno-ui-text-input', inputClassName), required: required, ref: ref, placeholder: placeholder }, rest))));
|
|
326
326
|
});
|
|
327
327
|
TextInput.displayName = 'TextInput';
|
|
@@ -339,7 +339,7 @@ var typeToCN = {
|
|
|
339
339
|
likeLink: '--like-link',
|
|
340
340
|
};
|
|
341
341
|
var Text = React$1.forwardRef(function (_a, ref) {
|
|
342
|
-
var _b = _a.type, type = _b === void 0 ? 'default' : _b, className = _a.className, _c = _a.code, code = _c === void 0 ? false : _c, _d = _a.del, del = _d === void 0 ? false : _d, _e = _a.underline, underline = _e === void 0 ? false : _e, _f = _a.strong, strong = _f === void 0 ? false : _f, children = _a.children, ellipsis = _a.ellipsis, _g = _a.required, required = _g === void 0 ? false : _g, rest = __rest(_a, ["type", "className", "code", "del", "underline", "strong", "children", "ellipsis", "required"]);
|
|
342
|
+
var _b = _a.type, type = _b === void 0 ? 'default' : _b, className = _a.className, _c = _a.code, code = _c === void 0 ? false : _c, _d = _a.del, del = _d === void 0 ? false : _d, _e = _a.underline, underline = _e === void 0 ? false : _e, _f = _a.strong, strong = _f === void 0 ? false : _f, children = _a.children, ellipsis = _a.ellipsis, _g = _a.required, required = _g === void 0 ? false : _g, dataQa = _a.dataQa, rest = __rest(_a, ["type", "className", "code", "del", "underline", "strong", "children", "ellipsis", "required", "dataQa"]);
|
|
343
343
|
var element = 'span';
|
|
344
344
|
if (del) {
|
|
345
345
|
element = 'del';
|
|
@@ -353,7 +353,7 @@ var Text = React$1.forwardRef(function (_a, ref) {
|
|
|
353
353
|
if (code) {
|
|
354
354
|
element = 'code';
|
|
355
355
|
}
|
|
356
|
-
return React$1.createElement(element, __assign({ ref: ref, className: cn('vchasno-ui-text', className, typeToCN[type], {
|
|
356
|
+
return React$1.createElement(element, __assign({ ref: ref, 'data-qa': dataQa, className: cn('vchasno-ui-text', className, typeToCN[type], {
|
|
357
357
|
'--code': code,
|
|
358
358
|
'--ellipsis': ellipsis,
|
|
359
359
|
'--required': required,
|
|
@@ -368,20 +368,20 @@ var css_248z$e = ".vchasno-ui-title {\n color: var(--vchasno-ui-text-primary-
|
|
|
368
368
|
styleInject(css_248z$e);
|
|
369
369
|
|
|
370
370
|
var Title = React$1.forwardRef(function (_a, ref) {
|
|
371
|
-
var _b = _a.level, level = _b === void 0 ? 1 : _b, className = _a.className, _c = _a.ellipsis, ellipsis = _c === void 0 ? false : _c, textAlign = _a.textAlign, _d = _a.pretty, pretty = _d === void 0 ? true : _d, rest = __rest(_a, ["level", "className", "ellipsis", "textAlign", "pretty"]);
|
|
371
|
+
var _b = _a.level, level = _b === void 0 ? 1 : _b, className = _a.className, _c = _a.ellipsis, ellipsis = _c === void 0 ? false : _c, textAlign = _a.textAlign, _d = _a.pretty, pretty = _d === void 0 ? true : _d, dataQa = _a.dataQa, rest = __rest(_a, ["level", "className", "ellipsis", "textAlign", "pretty", "dataQa"]);
|
|
372
372
|
var classes = cn('vchasno-ui-title', className, { '--ellipsis': ellipsis, '--pretty': pretty }, textAlign && "--text-".concat(textAlign));
|
|
373
373
|
switch (level) {
|
|
374
374
|
case 2:
|
|
375
|
-
return React$1.createElement("h2", __assign({}, rest, { ref: ref, className: classes }));
|
|
375
|
+
return React$1.createElement("h2", __assign({}, rest, { ref: ref, "data-qa": dataQa, className: classes }));
|
|
376
376
|
case 3:
|
|
377
|
-
return React$1.createElement("h3", __assign({}, rest, { ref: ref, className: classes }));
|
|
377
|
+
return React$1.createElement("h3", __assign({}, rest, { ref: ref, "data-qa": dataQa, className: classes }));
|
|
378
378
|
case 4:
|
|
379
|
-
return React$1.createElement("h4", __assign({}, rest, { ref: ref, className: classes }));
|
|
379
|
+
return React$1.createElement("h4", __assign({}, rest, { ref: ref, "data-qa": dataQa, className: classes }));
|
|
380
380
|
case 5:
|
|
381
|
-
return React$1.createElement("h5", __assign({}, rest, { ref: ref, className: classes }));
|
|
381
|
+
return React$1.createElement("h5", __assign({}, rest, { ref: ref, "data-qa": dataQa, className: classes }));
|
|
382
382
|
case 1:
|
|
383
383
|
default:
|
|
384
|
-
return React$1.createElement("h1", __assign({}, rest, { ref: ref, className: classes }));
|
|
384
|
+
return React$1.createElement("h1", __assign({}, rest, { ref: ref, "data-qa": dataQa, className: classes }));
|
|
385
385
|
}
|
|
386
386
|
});
|
|
387
387
|
Title.displayName = 'Title';
|
|
@@ -390,8 +390,8 @@ var css_248z$d = ".vchasno-ui-paragraph {\n color: var(--vchasno-ui-text-prim
|
|
|
390
390
|
styleInject(css_248z$d);
|
|
391
391
|
|
|
392
392
|
var Paragraph = React$1.forwardRef(function (_a, ref) {
|
|
393
|
-
var _b = _a.ellipsis, ellipsis = _b === void 0 ? false : _b, children = _a.children, className = _a.className, textAlign = _a.textAlign, ellipsisLine = _a.ellipsisLine, rest = __rest(_a, ["ellipsis", "children", "className", "textAlign", "ellipsisLine"]);
|
|
394
|
-
return (React$1.createElement("p", __assign({ ref: ref, title: ellipsis && typeof children === 'string' ? children : undefined, className: cn('vchasno-ui-paragraph', className, { '--ellipsis': ellipsis, '--ellipsis-line': ellipsisLine !== undefined }, textAlign && "--text-".concat(textAlign)) }, rest, { style: ellipsisLine ? { WebkitLineClamp: ellipsisLine } : undefined }), children));
|
|
393
|
+
var _b = _a.ellipsis, ellipsis = _b === void 0 ? false : _b, children = _a.children, className = _a.className, textAlign = _a.textAlign, ellipsisLine = _a.ellipsisLine, dataQa = _a.dataQa, rest = __rest(_a, ["ellipsis", "children", "className", "textAlign", "ellipsisLine", "dataQa"]);
|
|
394
|
+
return (React$1.createElement("p", __assign({ "data-qa": dataQa, ref: ref, title: ellipsis && typeof children === 'string' ? children : undefined, className: cn('vchasno-ui-paragraph', className, { '--ellipsis': ellipsis, '--ellipsis-line': ellipsisLine !== undefined }, textAlign && "--text-".concat(textAlign)) }, rest, { style: ellipsisLine ? { WebkitLineClamp: ellipsisLine } : undefined }), children));
|
|
395
395
|
});
|
|
396
396
|
Paragraph.displayName = 'Paragraph';
|
|
397
397
|
|
|
@@ -2793,8 +2793,8 @@ var css_248z$c = ".vchasno-ui-textarea-input-container .vchasno-ui-input__wrappe
|
|
|
2793
2793
|
styleInject(css_248z$c);
|
|
2794
2794
|
|
|
2795
2795
|
var TextAreaInput = React$1.forwardRef(function (_a, ref) {
|
|
2796
|
-
var className = _a.className, disabled = _a.disabled, startElement = _a.startElement, endElement = _a.endElement, error = _a.error, label = _a.label, hint = _a.hint, wide = _a.wide, required = _a.required, loading = _a.loading, minRows = _a.minRows, maxRows = _a.maxRows, textareaClassName = _a.textareaClassName, labelProps = _a.labelProps, rest = __rest(_a, ["className", "disabled", "startElement", "endElement", "error", "label", "hint", "wide", "required", "loading", "minRows", "maxRows", "textareaClassName", "labelProps"]);
|
|
2797
|
-
return (React$1.createElement(Input, { required: required, wide: wide, className: cn(className, 'vchasno-ui-textarea-input-container'), loading: loading, disabled: disabled, label: label, error: error, hint: hint, endElement: endElement, labelProps: labelProps, startElement: startElement },
|
|
2796
|
+
var className = _a.className, disabled = _a.disabled, startElement = _a.startElement, endElement = _a.endElement, error = _a.error, label = _a.label, hint = _a.hint, wide = _a.wide, required = _a.required, loading = _a.loading, minRows = _a.minRows, maxRows = _a.maxRows, textareaClassName = _a.textareaClassName, labelProps = _a.labelProps, dataQa = _a.dataQa, rest = __rest(_a, ["className", "disabled", "startElement", "endElement", "error", "label", "hint", "wide", "required", "loading", "minRows", "maxRows", "textareaClassName", "labelProps", "dataQa"]);
|
|
2797
|
+
return (React$1.createElement(Input, { dataQa: dataQa, required: required, wide: wide, className: cn(className, 'vchasno-ui-textarea-input-container'), loading: loading, disabled: disabled, label: label, error: error, hint: hint, endElement: endElement, labelProps: labelProps, startElement: startElement },
|
|
2798
2798
|
React$1.createElement(TextareaAutosize, __assign({}, rest, { ref: ref, minRows: minRows, maxRows: maxRows, required: required, disabled: disabled, className: cn('vchasno-ui-textarea-input', textareaClassName) }))));
|
|
2799
2799
|
});
|
|
2800
2800
|
TextAreaInput.displayName = 'TextAreaInput';
|
|
@@ -2811,7 +2811,7 @@ var spinnerSizeMap = {
|
|
|
2811
2811
|
lg: 36,
|
|
2812
2812
|
};
|
|
2813
2813
|
var Switch = React$1.forwardRef(function (_a, ref) {
|
|
2814
|
-
var className = _a.className, label = _a.label, onChange = _a.onChange, onChecked = _a.onChecked, value = _a.value, _b = _a.defaultChecked, defaultChecked = _b === void 0 ? false : _b, disabled = _a.disabled, loading = _a.loading, id = _a.id, _c = _a.size, size = _c === void 0 ? 'md' : _c, rest = __rest(_a, ["className", "label", "onChange", "onChecked", "value", "defaultChecked", "disabled", "loading", "id", "size"]);
|
|
2814
|
+
var className = _a.className, label = _a.label, onChange = _a.onChange, onChecked = _a.onChecked, value = _a.value, _b = _a.defaultChecked, defaultChecked = _b === void 0 ? false : _b, disabled = _a.disabled, loading = _a.loading, id = _a.id, _c = _a.size, size = _c === void 0 ? 'md' : _c, dataQa = _a.dataQa, rest = __rest(_a, ["className", "label", "onChange", "onChecked", "value", "defaultChecked", "disabled", "loading", "id", "size", "dataQa"]);
|
|
2815
2815
|
var _d = React$1.useState(defaultChecked), checked = _d[0], setChecked = _d[1];
|
|
2816
2816
|
var isFullParentControlled = typeof value === 'boolean';
|
|
2817
2817
|
var inputChecked = isFullParentControlled ? value : checked;
|
|
@@ -2822,7 +2822,7 @@ var Switch = React$1.forwardRef(function (_a, ref) {
|
|
|
2822
2822
|
onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
|
2823
2823
|
onChecked === null || onChecked === void 0 ? void 0 : onChecked(event.target.checked, event);
|
|
2824
2824
|
};
|
|
2825
|
-
return (React$1.createElement("label", { className: cn('vchasno-ui-switch', "--".concat(size), {
|
|
2825
|
+
return (React$1.createElement("label", { "data-qa": dataQa, className: cn('vchasno-ui-switch', "--".concat(size), {
|
|
2826
2826
|
'vchasno-ui-switch__active': inputChecked,
|
|
2827
2827
|
'vchasno-ui-switch__disabled': disabled,
|
|
2828
2828
|
}, className) },
|
|
@@ -2840,8 +2840,8 @@ var css_248z$8 = ".vchasno-ui-checkbox {\n display: inline-flex;\n align-i
|
|
|
2840
2840
|
styleInject(css_248z$8);
|
|
2841
2841
|
|
|
2842
2842
|
var Checkbox = React$1.forwardRef(function (_a, ref) {
|
|
2843
|
-
var className = _a.className, label = _a.label, partial = _a.partial, disabled = _a.disabled, loading = _a.loading, rest = __rest(_a, ["className", "label", "partial", "disabled", "loading"]);
|
|
2844
|
-
return (React$1.createElement("label", { className: cn('vchasno-ui-checkbox', className, {
|
|
2843
|
+
var className = _a.className, label = _a.label, partial = _a.partial, disabled = _a.disabled, loading = _a.loading, dataQa = _a.dataQa, rest = __rest(_a, ["className", "label", "partial", "disabled", "loading", "dataQa"]);
|
|
2844
|
+
return (React$1.createElement("label", { "data-qa": dataQa, className: cn('vchasno-ui-checkbox', className, {
|
|
2845
2845
|
'--loading': loading,
|
|
2846
2846
|
'--disabled': disabled,
|
|
2847
2847
|
}) },
|
|
@@ -13055,10 +13055,10 @@ styled(function (_a) {
|
|
|
13055
13055
|
var _a;
|
|
13056
13056
|
return (_a = {},
|
|
13057
13057
|
_a["& .".concat(tooltipClasses.arrow)] = {
|
|
13058
|
-
color: '
|
|
13058
|
+
color: 'rgba(0, 0, 0, 0.9)',
|
|
13059
13059
|
},
|
|
13060
13060
|
_a["& .".concat(tooltipClasses.tooltip)] = {
|
|
13061
|
-
backgroundColor: '
|
|
13061
|
+
backgroundColor: 'rgba(0, 0, 0, 0.9)',
|
|
13062
13062
|
fontSize: '14px',
|
|
13063
13063
|
color: '#fff',
|
|
13064
13064
|
padding: '10px',
|