@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.
- package/CHANGELOG.md +19 -0
- package/dist/Datepicker/index.cjs.js +12 -6
- package/dist/Datepicker/index.cjs.js.map +1 -1
- package/dist/Datepicker/index.d.ts +5 -1
- package/dist/Datepicker/index.js +12 -6
- 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/Select/customComponents.d.ts +2 -1
- 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 +3 -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/Select/customComponents.d.ts +2 -1
- 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 +3 -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/Select/customComponents.d.ts +2 -1
- 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 +3 -2
- package/dist/ProjectsPopover/types/components/types.d.ts +4 -0
- package/dist/Select/index.cjs.js +16 -7
- package/dist/Select/index.cjs.js.map +1 -1
- package/dist/Select/index.d.ts +5 -2
- package/dist/Select/index.js +16 -7
- 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/Select/customComponents.d.ts +2 -1
- 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 +3 -2
- package/dist/Select/types/components/types.d.ts +4 -0
- package/dist/SelectCreatable/index.cjs.js +16 -7
- package/dist/SelectCreatable/index.cjs.js.map +1 -1
- package/dist/SelectCreatable/index.d.ts +5 -2
- package/dist/SelectCreatable/index.js +16 -7
- 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/Select/customComponents.d.ts +2 -1
- 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 +3 -2
- package/dist/SelectCreatable/types/components/types.d.ts +4 -0
- package/dist/Snackbar/index.cjs.js +32 -32
- package/dist/Snackbar/index.cjs.js.map +1 -1
- package/dist/Snackbar/index.js +32 -32
- 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/Select/customComponents.d.ts +2 -1
- 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 +3 -2
- package/dist/Snackbar/types/components/types.d.ts +4 -0
- package/dist/css/Button.global.css +16 -7
- package/dist/css/DatePicker.global.css +54 -29
- package/dist/css/Input.global.css +1 -0
- package/dist/css/Select.global.css +11 -19
- package/dist/css/Title.global.css +4 -0
- package/dist/css/_theme.css +43 -3
- package/dist/index.d.ts +29 -24
- package/dist/index.js +36 -36
- 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/Select/customComponents.d.ts +2 -1
- 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 +3 -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,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';
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
font-weight: 700;
|
|
12
12
|
gap: 5px;
|
|
13
13
|
transition:
|
|
14
|
+
min-height var(--vchasno-ui-transition-duration-sec, 0.3s),
|
|
15
|
+
padding var(--vchasno-ui-transition-duration-sec, 0.3s),
|
|
14
16
|
background-color var(--vchasno-ui-transition-duration-sec, 0.3s),
|
|
15
17
|
color var(--vchasno-ui-transition-duration-sec, 0.3s);
|
|
16
18
|
user-select: none;
|
|
@@ -33,14 +35,14 @@
|
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
.vchasno-ui-button.--md {
|
|
36
|
-
min-width:
|
|
37
|
-
padding: 0
|
|
38
|
+
min-width: 40px;
|
|
39
|
+
padding: 0 24px;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
.vchasno-ui-button.--lg {
|
|
41
|
-
min-width:
|
|
43
|
+
min-width: 50px;
|
|
42
44
|
min-height: 50px;
|
|
43
|
-
padding: 0
|
|
45
|
+
padding: 0 32px;
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
.vchasno-ui-button.--wide {
|
|
@@ -61,15 +63,23 @@
|
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
.vchasno-ui-button.--secondary {
|
|
66
|
+
border: 1px solid var(--vchasno-ui-btn-secondary-border-color);
|
|
64
67
|
background-color: var(--vchasno-ui-btn-secondary-bg);
|
|
65
68
|
color: var(--vchasno-ui-btn-secondary-color);
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
.vchasno-ui-button:disabled.--primary,
|
|
69
72
|
.vchasno-ui-button:disabled.--secondary {
|
|
70
|
-
border-color: #b6cadb;
|
|
71
73
|
background-color: #b6cadb;
|
|
72
|
-
color: var(--vchasno-ui-btn-
|
|
74
|
+
color: var(--vchasno-ui-btn-disabled-color);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.vchasno-ui-button:disabled.--primary {
|
|
78
|
+
background-color: var(--vchasno-ui-btn-primary-disabled-bg);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.vchasno-ui-button:disabled.--secondary {
|
|
82
|
+
background-color: var(--vchasno-ui-btn-secondary-disabled-bg);
|
|
73
83
|
}
|
|
74
84
|
|
|
75
85
|
.vchasno-ui-button.--primary:not(:disabled):hover {
|
|
@@ -96,7 +106,6 @@
|
|
|
96
106
|
}
|
|
97
107
|
|
|
98
108
|
.vchasno-ui-button.--secondary.--outline:not(:disabled):hover {
|
|
99
|
-
border: 1px solid var(--vchasno-ui-btn-secondary-bg);
|
|
100
109
|
background-color: rgb(0 0 0 / 10%);
|
|
101
110
|
color: var(--vchasno-ui-btn-secondary-bg);
|
|
102
111
|
}
|
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
left: 50px;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
.react-datepicker-popper[data-placement^='bottom'] {
|
|
7
|
+
margin-top: -6px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.react-datepicker-popper[data-placement^='top'] {
|
|
11
|
+
margin-top: 6px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.react-datepicker-popper[data-placement^='right'] {
|
|
15
|
+
margin-left: -6px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.react-datepicker-popper[data-placement^='left'] {
|
|
19
|
+
margin-left: 6px;
|
|
20
|
+
}
|
|
21
|
+
|
|
6
22
|
.react-datepicker-popper[data-placement^='bottom'] .react-datepicker__triangle,
|
|
7
23
|
.react-datepicker-popper[data-placement^='top'] .react-datepicker__triangle,
|
|
8
24
|
.react-datepicker__year-read-view--down-arrow,
|
|
@@ -45,7 +61,7 @@
|
|
|
45
61
|
.react-datepicker-popper[data-placement^='bottom'] .react-datepicker__triangle,
|
|
46
62
|
.react-datepicker-popper[data-placement^='bottom'] .react-datepicker__triangle::before {
|
|
47
63
|
border-top: none;
|
|
48
|
-
border-bottom-color:
|
|
64
|
+
border-bottom-color: var(--vchasno-ui-input-bg-color);
|
|
49
65
|
}
|
|
50
66
|
|
|
51
67
|
.react-datepicker-popper[data-placement^='bottom'] .react-datepicker__triangle::before {
|
|
@@ -60,7 +76,7 @@
|
|
|
60
76
|
display: block;
|
|
61
77
|
width: 7px;
|
|
62
78
|
height: 7px;
|
|
63
|
-
background-color:
|
|
79
|
+
background-color: var(--vchasno-ui-input-bg-color);
|
|
64
80
|
content: '';
|
|
65
81
|
transform: rotate(45deg);
|
|
66
82
|
}
|
|
@@ -78,7 +94,7 @@
|
|
|
78
94
|
.react-datepicker-popper[data-placement^='top'] .react-datepicker__triangle::before,
|
|
79
95
|
.react-datepicker__year-read-view--down-arrow::before,
|
|
80
96
|
.react-datepicker__month-read-view--down-arrow::before {
|
|
81
|
-
border-top-color:
|
|
97
|
+
border-top-color: var(--vchasno-ui-input-bg-color);
|
|
82
98
|
border-bottom: none;
|
|
83
99
|
}
|
|
84
100
|
|
|
@@ -96,7 +112,7 @@
|
|
|
96
112
|
display: block;
|
|
97
113
|
width: 7px;
|
|
98
114
|
height: 7px;
|
|
99
|
-
background-color:
|
|
115
|
+
background-color: var(--vchasno-ui-input-bg-color);
|
|
100
116
|
content: '';
|
|
101
117
|
transform: rotate(45deg);
|
|
102
118
|
}
|
|
@@ -107,7 +123,7 @@
|
|
|
107
123
|
padding: 10px;
|
|
108
124
|
border: 1px solid var(--vchasno-ui-calendar-color);
|
|
109
125
|
border-radius: 8px;
|
|
110
|
-
background-color:
|
|
126
|
+
background-color: var(--vchasno-ui-input-bg-color);
|
|
111
127
|
color: var(--vchasno-ui-input-font-color);
|
|
112
128
|
font-size: 0.8rem;
|
|
113
129
|
}
|
|
@@ -162,6 +178,7 @@
|
|
|
162
178
|
height: 30px;
|
|
163
179
|
padding: 5px 10px;
|
|
164
180
|
border-radius: 8px;
|
|
181
|
+
line-height: 20px;
|
|
165
182
|
white-space: nowrap;
|
|
166
183
|
}
|
|
167
184
|
|
|
@@ -239,27 +256,11 @@
|
|
|
239
256
|
z-index: 100;
|
|
240
257
|
}
|
|
241
258
|
|
|
242
|
-
.react-datepicker-popper[data-placement^='bottom'] {
|
|
243
|
-
margin-top: 8px;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.react-datepicker-popper[data-placement^='top'] {
|
|
247
|
-
margin-bottom: 8px;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.react-datepicker-popper[data-placement^='right'] {
|
|
251
|
-
margin-left: 6px;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
259
|
.react-datepicker-popper[data-placement^='right'] .react-datepicker__triangle {
|
|
255
260
|
right: 42px;
|
|
256
261
|
left: auto;
|
|
257
262
|
}
|
|
258
263
|
|
|
259
|
-
.react-datepicker-popper[data-placement^='left'] {
|
|
260
|
-
margin-right: 6px;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
264
|
.react-datepicker-popper[data-placement^='left'] .react-datepicker__triangle {
|
|
264
265
|
right: auto;
|
|
265
266
|
left: 42px;
|
|
@@ -392,17 +393,39 @@
|
|
|
392
393
|
top: 0;
|
|
393
394
|
right: 35px;
|
|
394
395
|
bottom: 0;
|
|
395
|
-
width:
|
|
396
|
-
height:
|
|
396
|
+
width: 20px;
|
|
397
|
+
height: 20px;
|
|
397
398
|
border: 0;
|
|
398
399
|
margin: auto;
|
|
399
|
-
background-
|
|
400
|
-
background-repeat: no-repeat;
|
|
401
|
-
background-size: contain;
|
|
400
|
+
background-color: transparent;
|
|
402
401
|
cursor: pointer;
|
|
403
402
|
outline: none;
|
|
404
403
|
}
|
|
405
404
|
|
|
405
|
+
.vchasno-ui-date-picker__wrapper .vchasno-ui-date-picker__custom-close-icon {
|
|
406
|
+
position: absolute;
|
|
407
|
+
top: 50%;
|
|
408
|
+
right: 35px;
|
|
409
|
+
width: 20px;
|
|
410
|
+
height: 20px;
|
|
411
|
+
color: var(--vchasno-ui-input-border-color-default);
|
|
412
|
+
pointer-events: none;
|
|
413
|
+
transform: translateY(-50%) scale(0);
|
|
414
|
+
transition:
|
|
415
|
+
color var(--vchasno-ui-transition-duration-sec, 0.3s),
|
|
416
|
+
transform var(--vchasno-ui-transition-duration-sec, 0.3s);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.vchasno-ui-date-picker__wrapper:has(.react-datepicker__close-icon)
|
|
420
|
+
.vchasno-ui-date-picker__custom-close-icon {
|
|
421
|
+
transform: translateY(-50%) scale(1);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.vchasno-ui-date-picker__wrapper:has(.react-datepicker__close-icon:hover)
|
|
425
|
+
.vchasno-ui-date-picker__custom-close-icon {
|
|
426
|
+
color: var(--vchasno-ui-calendar-color);
|
|
427
|
+
}
|
|
428
|
+
|
|
406
429
|
.react-datepicker__today-button {
|
|
407
430
|
padding: 5px 0;
|
|
408
431
|
border-top: 1px solid #aeaeae;
|
|
@@ -518,7 +541,7 @@
|
|
|
518
541
|
border: 1px solid var(--vchasno-ui-input-border-color-default, #b6cadb);
|
|
519
542
|
border-radius: 8px;
|
|
520
543
|
appearance: none;
|
|
521
|
-
background:
|
|
544
|
+
background: var(--vchasno-ui-input-bg-color);
|
|
522
545
|
font-size: var(--vchasno-ui-input-font-size, 0.8rem);
|
|
523
546
|
line-height: calc(var(--vchasno-ui-input-font-size, 0.8rem) * 2);
|
|
524
547
|
outline: 1px solid transparent;
|
|
@@ -566,7 +589,7 @@
|
|
|
566
589
|
font-size: 12px;
|
|
567
590
|
}
|
|
568
591
|
|
|
569
|
-
.vchasno-ui-date-picker__wrapper >
|
|
592
|
+
.vchasno-ui-date-picker__wrapper > .vchasno-ui-date-picker__custom-calendar-icon {
|
|
570
593
|
position: absolute;
|
|
571
594
|
top: 50%;
|
|
572
595
|
right: 10px;
|
|
@@ -575,7 +598,9 @@
|
|
|
575
598
|
transition: color var(--vchasno-ui-transition-duration-sec, 0.3s);
|
|
576
599
|
}
|
|
577
600
|
|
|
578
|
-
label[class^='vchasno-ui-']:focus-within
|
|
601
|
+
label[class^='vchasno-ui-']:focus-within
|
|
602
|
+
.vchasno-ui-date-picker__wrapper
|
|
603
|
+
> .vchasno-ui-date-picker__custom-calendar-icon {
|
|
579
604
|
color: var(--vchasno-ui-calendar-color);
|
|
580
605
|
}
|
|
581
606
|
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
.vchasno-ui-select
|
|
89
89
|
.vchasno-ui-select__control--menu-is-open
|
|
90
90
|
.vchasno-ui-select__dropdown-indicator {
|
|
91
|
-
color: var(--vchasno-ui-
|
|
91
|
+
color: var(--vchasno-ui-input-border-color-focused, #6b5fff);
|
|
92
92
|
transition:
|
|
93
93
|
background-color var(--vchasno-ui-transition-duration-sec, 0.3s),
|
|
94
94
|
color var(--vchasno-ui-transition-duration-sec, 0.3s);
|
|
@@ -136,23 +136,13 @@
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
.vchasno-ui-select .vchasno-ui-select__clear-indicator {
|
|
139
|
-
padding:
|
|
140
|
-
border-radius:
|
|
139
|
+
padding: 0;
|
|
140
|
+
border-radius: 4px;
|
|
141
141
|
color: var(--vchasno-ui-input-font-color);
|
|
142
|
-
outline: 3px solid transparent;
|
|
143
|
-
transition:
|
|
144
|
-
outline-color var(--vchasno-ui-transition-duration-sec, 0.3s),
|
|
145
|
-
background-color var(--vchasno-ui-transition-duration-sec, 0.3s);
|
|
146
142
|
}
|
|
147
143
|
|
|
148
144
|
.vchasno-ui-select .vchasno-ui-select__clear-indicator:hover {
|
|
149
|
-
background-color: rgb(0 0 0 / 10%);
|
|
150
145
|
cursor: pointer;
|
|
151
|
-
outline-color: rgb(0 0 0 / 10%);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.vchasno-ui-select .vchasno-ui-select__clear-indicator svg {
|
|
155
|
-
transform: scale(0.6);
|
|
156
146
|
}
|
|
157
147
|
|
|
158
148
|
.vchasno-ui-select .vchasno-ui-select__option--is-selected,
|
|
@@ -180,19 +170,21 @@
|
|
|
180
170
|
padding: 0;
|
|
181
171
|
padding-right: 3px;
|
|
182
172
|
background-color: transparent;
|
|
173
|
+
color: var(--vchasno-ui-label-color-default);
|
|
183
174
|
transition: color var(--vchasno-ui-transition-duration-sec, 0.3s);
|
|
184
175
|
}
|
|
185
176
|
|
|
186
|
-
.vchasno-ui-select .vchasno-ui-select__multi-value__remove svg {
|
|
187
|
-
width: 16px;
|
|
188
|
-
height: 16px;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
177
|
.vchasno-ui-select .vchasno-ui-select__multi-value__remove:hover {
|
|
192
178
|
background-color: transparent;
|
|
179
|
+
color: var(--vchasno-ui-input-color-error);
|
|
193
180
|
cursor: pointer;
|
|
194
181
|
}
|
|
195
182
|
|
|
183
|
+
.vchasno-ui-select .vchasno-ui-select__multi-value__remove svg {
|
|
184
|
+
width: 20px;
|
|
185
|
+
height: 20px;
|
|
186
|
+
}
|
|
187
|
+
|
|
196
188
|
.vchasno-ui-select .vchasno-ui-select__indicators {
|
|
197
189
|
padding-right: 5px;
|
|
198
190
|
}
|
|
@@ -202,7 +194,7 @@
|
|
|
202
194
|
}
|
|
203
195
|
|
|
204
196
|
.vchasno-ui-select .vchasno-ui-select__multi-value__label {
|
|
205
|
-
padding: 6px;
|
|
197
|
+
padding: 6px 0 6px 6px;
|
|
206
198
|
font-size: 14px;
|
|
207
199
|
}
|
|
208
200
|
|
package/dist/css/_theme.css
CHANGED
|
@@ -3,15 +3,19 @@
|
|
|
3
3
|
--vchasno-ui-btn-default-bg: transparent;
|
|
4
4
|
--vchasno-ui-btn-default-hover-bg: #e1e4ff;
|
|
5
5
|
--vchasno-ui-btn-default-color: #6b8091;
|
|
6
|
+
--vchasno-ui-btn-disabled-color: #b6cadb;
|
|
6
7
|
--vchasno-ui-btn-default-hover-color: #604adf;
|
|
7
8
|
--vchasno-ui-btn-primary-bg: #604adf;
|
|
9
|
+
--vchasno-ui-btn-primary-disabled-bg: #dbe5ea;
|
|
8
10
|
--vchasno-ui-btn-primary-hover-bg: #3f328c;
|
|
9
11
|
--vchasno-ui-btn-primary-color: #fff;
|
|
10
|
-
--vchasno-ui-btn-secondary-bg:
|
|
12
|
+
--vchasno-ui-btn-secondary-bg: rgb(255 255 255 / 4%);
|
|
13
|
+
--vchasno-ui-btn-secondary-disabled-bg: #f3f6f8;
|
|
11
14
|
--vchasno-ui-btn-pink-bg: #ff9498;
|
|
12
15
|
--vchasno-ui-btn-pink-hover-bg: #f4736f;
|
|
13
|
-
--vchasno-ui-btn-secondary-
|
|
14
|
-
--vchasno-ui-btn-secondary-
|
|
16
|
+
--vchasno-ui-btn-secondary-border-color: #dbe5ea;
|
|
17
|
+
--vchasno-ui-btn-secondary-hover-bg: #ecf4ff;
|
|
18
|
+
--vchasno-ui-btn-secondary-color: #087dc1;
|
|
15
19
|
--vchasno-ui-btn-light-bg: #fff;
|
|
16
20
|
--vchasno-ui-btn-light-hover-bg: rgb(96 74 223 / 20%);
|
|
17
21
|
--vchasno-ui-btn-light-color: #604adf;
|
|
@@ -136,3 +140,39 @@
|
|
|
136
140
|
--vchasno-ui-snackbar-color-progress-bgo: 0.2;
|
|
137
141
|
--vchasno-ui-snackbar-action-button-color: #0094ff;
|
|
138
142
|
}
|
|
143
|
+
|
|
144
|
+
:root .vchasno-ui-kit-theme-edo {
|
|
145
|
+
--vchasno-ui-btn-primary-bg: #ffb200;
|
|
146
|
+
--vchasno-ui-btn-primary-hover-bg: #ff9c01;
|
|
147
|
+
--vchasno-ui-input-border-color-focused: #ffb200;
|
|
148
|
+
--vchasno-ui-checkbox-bg-color: #ffb200;
|
|
149
|
+
--vchasno-ui-checkbox-outline-color: #fff0ce;
|
|
150
|
+
--vchasno-ui-select-menu-border-color: #ffb200;
|
|
151
|
+
--vchasno-ui-calendar-color: #ffb200;
|
|
152
|
+
--vchasno-ui-pagination-border-color: #ffb200;
|
|
153
|
+
--vchasno-ui-input-outline-color-focused: #fbf4ea;
|
|
154
|
+
--vchasno-ui-input-border-color-default: #dbe5ea;
|
|
155
|
+
--vchasno-ui-label-color-default: #6b8091;
|
|
156
|
+
--vchasno-ui-label-color-focused: #6b8091;
|
|
157
|
+
--vchasno-ui-input-font-size: 13px;
|
|
158
|
+
--vchasno-ui-input-font-color: #333;
|
|
159
|
+
--vchasno-ui-text-primary-color: #333;
|
|
160
|
+
--vchasno-ui-input-bg-color: #fff;
|
|
161
|
+
--vchasno-ui-checkbox-font-size: 13px;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
:root .vchasno-ui-kit-theme-edi {
|
|
165
|
+
--vchasno-ui-btn-primary-bg: #00c5ff;
|
|
166
|
+
--vchasno-ui-btn-primary-hover-bg: #00aee2;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
:root .vchasno-ui-kit-theme-kasa,
|
|
170
|
+
:root .vchasno-ui-kit-theme-dm {
|
|
171
|
+
--vchasno-ui-btn-primary-bg: #e579ff;
|
|
172
|
+
--vchasno-ui-btn-primary-hover-bg: #c055da;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
:root .vchasno-ui-kit-theme-kep {
|
|
176
|
+
--vchasno-ui-btn-primary-bg: #ff5a5f;
|
|
177
|
+
--vchasno-ui-btn-primary-hover-bg: #e75459;
|
|
178
|
+
}
|