@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';
|
|
@@ -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
|
}
|
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
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -5,19 +5,6 @@ import * as _mui_system from '@mui/system';
|
|
|
5
5
|
import * as _mui_material_styles from '@mui/material/styles';
|
|
6
6
|
import { TooltipProps } from '@mui/material/Tooltip';
|
|
7
7
|
|
|
8
|
-
interface FlexBoxProps extends HTMLAttributes<HTMLElement> {
|
|
9
|
-
className?: string;
|
|
10
|
-
tagName?: keyof HTMLElementTagNameMap;
|
|
11
|
-
direction?: React.CSSProperties['flexDirection'];
|
|
12
|
-
gap?: number;
|
|
13
|
-
grow?: React.CSSProperties['flexGrow'];
|
|
14
|
-
shrink?: React.CSSProperties['flexShrink'];
|
|
15
|
-
wrap?: React.CSSProperties['flexWrap'];
|
|
16
|
-
align?: React.CSSProperties['alignItems'];
|
|
17
|
-
justify?: React.CSSProperties['justifyContent'];
|
|
18
|
-
}
|
|
19
|
-
declare const FlexBox: React.ForwardRefExoticComponent<FlexBoxProps & React.RefAttributes<HTMLElement>>;
|
|
20
|
-
|
|
21
8
|
interface Sizable {
|
|
22
9
|
size: 'sm' | 'md' | 'lg';
|
|
23
10
|
}
|
|
@@ -42,14 +29,31 @@ interface EllipsisText {
|
|
|
42
29
|
/** для скорочення тексту і виведення 3 точок */
|
|
43
30
|
ellipsis?: boolean;
|
|
44
31
|
}
|
|
32
|
+
interface DataQa {
|
|
33
|
+
/** для тестування */
|
|
34
|
+
dataQa?: string;
|
|
35
|
+
}
|
|
45
36
|
interface TextAlign {
|
|
46
37
|
/** для центрування тексту **/
|
|
47
38
|
textAlign?: 'center' | 'start' | 'end' | 'justify';
|
|
48
39
|
}
|
|
49
40
|
type VchasnoProduct = 'edo' | 'kep' | 'kasa' | 'edi' | 'ttn' | 'dm';
|
|
50
41
|
|
|
42
|
+
interface FlexBoxProps extends HTMLAttributes<HTMLElement>, DataQa {
|
|
43
|
+
className?: string;
|
|
44
|
+
tagName?: keyof HTMLElementTagNameMap;
|
|
45
|
+
direction?: React.CSSProperties['flexDirection'];
|
|
46
|
+
gap?: number;
|
|
47
|
+
grow?: React.CSSProperties['flexGrow'];
|
|
48
|
+
shrink?: React.CSSProperties['flexShrink'];
|
|
49
|
+
wrap?: React.CSSProperties['flexWrap'];
|
|
50
|
+
align?: React.CSSProperties['alignItems'];
|
|
51
|
+
justify?: React.CSSProperties['justifyContent'];
|
|
52
|
+
}
|
|
53
|
+
declare const FlexBox: React.ForwardRefExoticComponent<FlexBoxProps & React.RefAttributes<HTMLElement>>;
|
|
54
|
+
|
|
51
55
|
type ButtonTheme = 'primary' | 'secondary' | 'transparent' | 'light' | 'danger' | 'pink';
|
|
52
|
-
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Partial<Sizable
|
|
56
|
+
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Partial<Sizable & LoadingFeedback & DataQa> {
|
|
53
57
|
className?: string;
|
|
54
58
|
theme?: ButtonTheme;
|
|
55
59
|
outline?: boolean;
|
|
@@ -57,7 +61,7 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Partial<S
|
|
|
57
61
|
}
|
|
58
62
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
59
63
|
|
|
60
|
-
interface InputProps extends Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback> {
|
|
64
|
+
interface InputProps extends Partial<WithLabel & WithHint & LoadingFeedback & ErrorFeedback & DataQa> {
|
|
61
65
|
className?: string;
|
|
62
66
|
disabled?: boolean;
|
|
63
67
|
required?: boolean;
|
|
@@ -75,7 +79,7 @@ interface InputMetaProps extends Partial<WithHint & ErrorFeedback> {
|
|
|
75
79
|
}
|
|
76
80
|
declare const InputMeta: React.FC<InputMetaProps>;
|
|
77
81
|
|
|
78
|
-
interface MaskInputProps extends MaskedInputProps, Omit<InputProps, 'children'
|
|
82
|
+
interface MaskInputProps extends MaskedInputProps, Omit<InputProps, 'children'>, DataQa {
|
|
79
83
|
inputClassName?: string;
|
|
80
84
|
labelProps?: InputHTMLAttributes<HTMLLabelElement>;
|
|
81
85
|
}
|
|
@@ -95,13 +99,13 @@ interface PaginationProps {
|
|
|
95
99
|
}
|
|
96
100
|
declare const Pagination: React.FC<PaginationProps>;
|
|
97
101
|
|
|
98
|
-
interface TextInputProps extends InputHTMLAttributes<HTMLInputElement>, Omit<InputProps, 'children'
|
|
102
|
+
interface TextInputProps extends InputHTMLAttributes<HTMLInputElement>, Omit<InputProps, 'children'>, DataQa {
|
|
99
103
|
inputClassName?: string;
|
|
100
104
|
labelProps?: InputHTMLAttributes<HTMLLabelElement>;
|
|
101
105
|
}
|
|
102
106
|
declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
103
107
|
|
|
104
|
-
interface TextProps extends HTMLAttributes<HTMLSpanElement>, EllipsisText {
|
|
108
|
+
interface TextProps extends HTMLAttributes<HTMLSpanElement>, EllipsisText, DataQa {
|
|
105
109
|
type?: TextType;
|
|
106
110
|
code?: boolean;
|
|
107
111
|
underline?: boolean;
|
|
@@ -112,21 +116,21 @@ interface TextProps extends HTMLAttributes<HTMLSpanElement>, EllipsisText {
|
|
|
112
116
|
}
|
|
113
117
|
declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
114
118
|
|
|
115
|
-
interface TitleProps extends EllipsisText, TextAlign, HTMLAttributes<HTMLHeadingElement
|
|
119
|
+
interface TitleProps extends EllipsisText, TextAlign, HTMLAttributes<HTMLHeadingElement>, DataQa {
|
|
116
120
|
level?: 1 | 2 | 3 | 4 | 5;
|
|
117
121
|
className?: string;
|
|
118
122
|
pretty?: boolean;
|
|
119
123
|
}
|
|
120
124
|
declare const Title: React.ForwardRefExoticComponent<TitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
121
125
|
|
|
122
|
-
interface ParagraphProps extends EllipsisText, TextAlign, HTMLAttributes<HTMLParagraphElement> {
|
|
126
|
+
interface ParagraphProps extends EllipsisText, TextAlign, DataQa, HTMLAttributes<HTMLParagraphElement> {
|
|
123
127
|
className?: string;
|
|
124
128
|
children: React.ReactNode;
|
|
125
129
|
ellipsisLine?: number;
|
|
126
130
|
}
|
|
127
131
|
declare const Paragraph: React.ForwardRefExoticComponent<ParagraphProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
128
132
|
|
|
129
|
-
interface TextAreaInputProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'children' | 'rows'>, Omit<InputProps, 'children'
|
|
133
|
+
interface TextAreaInputProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'children' | 'rows'>, Omit<InputProps, 'children'>, DataQa {
|
|
130
134
|
textareaClassName?: string;
|
|
131
135
|
labelProps?: InputHTMLAttributes<HTMLLabelElement>;
|
|
132
136
|
minRows?: number;
|
|
@@ -136,7 +140,7 @@ declare const TextAreaInput: React.ForwardRefExoticComponent<TextAreaInputProps
|
|
|
136
140
|
|
|
137
141
|
type AlertType = 'error' | 'warning' | 'success' | 'info' | 'config';
|
|
138
142
|
type IconType = 'info' | 'cross' | 'error' | 'warning' | 'success' | 'config';
|
|
139
|
-
interface AlertProps {
|
|
143
|
+
interface AlertProps extends DataQa {
|
|
140
144
|
type?: AlertType;
|
|
141
145
|
icon?: IconType;
|
|
142
146
|
customIcon?: React.ReactNode;
|
|
@@ -167,7 +171,7 @@ interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
167
171
|
}
|
|
168
172
|
declare const Spinner: React.FC<SpinnerProps>;
|
|
169
173
|
|
|
170
|
-
interface SwitchProps extends HTMLAttributes<HTMLInputElement>, Partial<LoadingFeedback>, Partial<Sizable> {
|
|
174
|
+
interface SwitchProps extends HTMLAttributes<HTMLInputElement>, DataQa, Partial<LoadingFeedback>, Partial<Sizable> {
|
|
171
175
|
className?: string;
|
|
172
176
|
label?: string;
|
|
173
177
|
value?: boolean;
|
|
@@ -195,7 +199,7 @@ interface TabsProps<T> {
|
|
|
195
199
|
}
|
|
196
200
|
declare const Tabs: <T extends string>({ onChange, items, defaultActiveKey, activeTab, className, isPending, }: TabsProps<T>) => React.JSX.Element;
|
|
197
201
|
|
|
198
|
-
interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement>, Partial<LoadingFeedback> {
|
|
202
|
+
interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement>, Partial<LoadingFeedback & DataQa> {
|
|
199
203
|
className?: string;
|
|
200
204
|
label?: string;
|
|
201
205
|
disabled?: boolean;
|