@vchasno/ui-kit 0.3.24 → 0.3.26
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 +18 -0
- package/dist/Datepicker/index.cjs.js +1 -1
- package/dist/Datepicker/index.js +1 -1
- package/dist/Datepicker/types/components/Paragraph/Paragraph.d.ts +1 -0
- package/dist/Datepicker/types/components/Select/utils.d.ts +2 -0
- package/dist/Datepicker/types/components/TextAreaInput/TextAreaInput.d.ts +3 -2
- package/dist/Menu/types/components/Paragraph/Paragraph.d.ts +1 -0
- package/dist/Menu/types/components/Select/utils.d.ts +2 -0
- package/dist/Menu/types/components/TextAreaInput/TextAreaInput.d.ts +3 -2
- package/dist/ProjectsPopover/types/components/Paragraph/Paragraph.d.ts +1 -0
- package/dist/ProjectsPopover/types/components/Select/utils.d.ts +2 -0
- package/dist/ProjectsPopover/types/components/TextAreaInput/TextAreaInput.d.ts +3 -2
- package/dist/Select/index.cjs.js +8 -24
- package/dist/Select/index.cjs.js.map +1 -1
- package/dist/Select/index.js +8 -24
- package/dist/Select/index.js.map +1 -1
- package/dist/Select/types/components/Paragraph/Paragraph.d.ts +1 -0
- package/dist/Select/types/components/Select/utils.d.ts +2 -0
- package/dist/Select/types/components/TextAreaInput/TextAreaInput.d.ts +3 -2
- package/dist/SelectCreatable/index.cjs.js +8 -24
- package/dist/SelectCreatable/index.cjs.js.map +1 -1
- package/dist/SelectCreatable/index.js +8 -24
- package/dist/SelectCreatable/index.js.map +1 -1
- package/dist/SelectCreatable/types/components/Paragraph/Paragraph.d.ts +1 -0
- package/dist/SelectCreatable/types/components/Select/utils.d.ts +2 -0
- package/dist/SelectCreatable/types/components/TextAreaInput/TextAreaInput.d.ts +3 -2
- package/dist/Snackbar/index.cjs.js +626 -444
- package/dist/Snackbar/index.cjs.js.map +1 -1
- package/dist/Snackbar/index.js +628 -446
- package/dist/Snackbar/index.js.map +1 -1
- package/dist/Snackbar/types/components/Paragraph/Paragraph.d.ts +1 -0
- package/dist/Snackbar/types/components/Select/utils.d.ts +2 -0
- package/dist/Snackbar/types/components/TextAreaInput/TextAreaInput.d.ts +3 -2
- package/dist/css/Input.global.css +1 -1
- package/dist/css/LabelText.global.css +1 -0
- package/dist/css/Paragraph.global.css +8 -0
- package/dist/css/Select.global.css +1 -1
- package/dist/css/Text.global.css +4 -0
- package/dist/css/TextAreaInput.global.css +7 -9
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1065 -883
- package/dist/index.js.map +1 -1
- package/dist/types/components/Paragraph/Paragraph.d.ts +1 -0
- package/dist/types/components/Select/utils.d.ts +2 -0
- package/dist/types/components/TextAreaInput/TextAreaInput.d.ts +3 -2
- package/package.json +1 -2
- package/dist/Datepicker/types/components/Select/useCheckValueExists.d.ts +0 -3
- package/dist/Menu/types/components/Select/useCheckValueExists.d.ts +0 -3
- package/dist/ProjectsPopover/types/components/Select/useCheckValueExists.d.ts +0 -3
- package/dist/Select/types/components/Select/useCheckValueExists.d.ts +0 -3
- package/dist/SelectCreatable/types/components/Select/useCheckValueExists.d.ts +0 -3
- package/dist/Snackbar/types/components/Select/useCheckValueExists.d.ts +0 -3
- package/dist/types/components/Select/useCheckValueExists.d.ts +0 -3
|
@@ -5,6 +5,7 @@ import './Paragraph.global.css';
|
|
|
5
5
|
export interface ParagraphProps extends EllipsisText, TextAlign, HTMLAttributes<HTMLParagraphElement> {
|
|
6
6
|
className?: string;
|
|
7
7
|
children: React.ReactNode;
|
|
8
|
+
ellipsisLine?: number;
|
|
8
9
|
}
|
|
9
10
|
declare const Paragraph: React.ForwardRefExoticComponent<ParagraphProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
10
11
|
export default Paragraph;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React, { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { TextareaAutosizeProps } from 'react-textarea-autosize';
|
|
3
2
|
import { InputProps } from '../Input';
|
|
3
|
+
import { TextareaAutosizeProps } from '@mui/base/TextareaAutosize';
|
|
4
4
|
import './TextAreaInput.global.css';
|
|
5
5
|
export interface TextAreaInputProps extends TextareaAutosizeProps, Omit<InputProps, 'children'> {
|
|
6
6
|
textareaClassName?: string;
|
|
7
7
|
labelProps?: InputHTMLAttributes<HTMLLabelElement>;
|
|
8
|
+
title?: string;
|
|
8
9
|
}
|
|
9
|
-
declare const TextAreaInput: React.ForwardRefExoticComponent<TextAreaInputProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
10
|
+
declare const TextAreaInput: React.ForwardRefExoticComponent<Omit<TextAreaInputProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
10
11
|
export default TextAreaInput;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
transform 0.3s;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.vchasno-ui-select
|
|
15
|
+
.vchasno-ui-select:has(.vchasno-ui-select__value-container--has-value) .vchasno-ui-label-text,
|
|
16
16
|
.vchasno-ui-select:focus-within .vchasno-ui-label-text {
|
|
17
17
|
font-size: 12px;
|
|
18
18
|
transform: translate(0, -42px);
|
package/dist/css/Text.global.css
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
.vchasno-ui-textarea-input-container .vchasno-ui-input__wrapper {
|
|
2
2
|
height: auto;
|
|
3
|
-
min-height: 40px;
|
|
4
3
|
padding-top: 10px;
|
|
5
4
|
padding-bottom: 10px;
|
|
6
5
|
}
|
|
@@ -19,11 +18,6 @@
|
|
|
19
18
|
font-size: var(--vchasno-ui-input-font-size);
|
|
20
19
|
line-height: calc(var(--vchasno-ui-input-font-size) * 1.2);
|
|
21
20
|
transition: color var(--vchasno-ui-transition-duration-sec, 0.3s);
|
|
22
|
-
visibility: hidden;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.vchasno-ui-textarea-input:focus::placeholder {
|
|
26
|
-
visibility: visible;
|
|
27
21
|
}
|
|
28
22
|
|
|
29
23
|
.vchasno-ui-input__wrapper__label {
|
|
@@ -31,11 +25,15 @@
|
|
|
31
25
|
}
|
|
32
26
|
|
|
33
27
|
.vchasno-ui-textarea-input + .vchasno-ui-label-text {
|
|
34
|
-
top:
|
|
35
|
-
transform:
|
|
28
|
+
top: 0;
|
|
29
|
+
transform: translateY(10px);
|
|
30
|
+
transition:
|
|
31
|
+
transform var(--vchasno-ui-transition-duration-sec, 0.3s),
|
|
32
|
+
font-size var(--vchasno-ui-transition-duration-sec, 0.3s);
|
|
36
33
|
}
|
|
37
34
|
|
|
38
35
|
.vchasno-ui-textarea-input:not(:placeholder-shown) + .vchasno-ui-label-text,
|
|
39
36
|
.vchasno-ui-textarea-input:focus:not(.--disabled) + .vchasno-ui-label-text {
|
|
40
|
-
top:
|
|
37
|
+
top: 0;
|
|
38
|
+
transform: translateY(-12px);
|
|
41
39
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes, ButtonHTMLAttributes, InputHTMLAttributes } from 'react';
|
|
2
2
|
import { MaskedInputProps } from 'react-text-mask';
|
|
3
|
-
import { TextareaAutosizeProps } from '
|
|
3
|
+
import { TextareaAutosizeProps } from '@mui/base/TextareaAutosize';
|
|
4
4
|
import * as _emotion_styled from '@emotion/styled';
|
|
5
5
|
import * as _mui_system from '@mui/system';
|
|
6
6
|
import * as _mui_material_styles from '@mui/material/styles';
|
|
@@ -122,14 +122,16 @@ declare const Title: React.ForwardRefExoticComponent<TitleProps & React.RefAttri
|
|
|
122
122
|
interface ParagraphProps extends EllipsisText, TextAlign, HTMLAttributes<HTMLParagraphElement> {
|
|
123
123
|
className?: string;
|
|
124
124
|
children: React.ReactNode;
|
|
125
|
+
ellipsisLine?: number;
|
|
125
126
|
}
|
|
126
127
|
declare const Paragraph: React.ForwardRefExoticComponent<ParagraphProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
127
128
|
|
|
128
129
|
interface TextAreaInputProps extends TextareaAutosizeProps, Omit<InputProps, 'children'> {
|
|
129
130
|
textareaClassName?: string;
|
|
130
131
|
labelProps?: InputHTMLAttributes<HTMLLabelElement>;
|
|
132
|
+
title?: string;
|
|
131
133
|
}
|
|
132
|
-
declare const TextAreaInput: React.ForwardRefExoticComponent<TextAreaInputProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
134
|
+
declare const TextAreaInput: React.ForwardRefExoticComponent<Omit<TextAreaInputProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
133
135
|
|
|
134
136
|
type AlertType = 'error' | 'warning' | 'success' | 'info' | 'config';
|
|
135
137
|
type IconType = 'info' | 'cross' | 'error' | 'warning' | 'success' | 'config';
|