@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.
Files changed (53) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/Datepicker/index.cjs.js +1 -1
  3. package/dist/Datepicker/index.js +1 -1
  4. package/dist/Datepicker/types/components/Paragraph/Paragraph.d.ts +1 -0
  5. package/dist/Datepicker/types/components/Select/utils.d.ts +2 -0
  6. package/dist/Datepicker/types/components/TextAreaInput/TextAreaInput.d.ts +3 -2
  7. package/dist/Menu/types/components/Paragraph/Paragraph.d.ts +1 -0
  8. package/dist/Menu/types/components/Select/utils.d.ts +2 -0
  9. package/dist/Menu/types/components/TextAreaInput/TextAreaInput.d.ts +3 -2
  10. package/dist/ProjectsPopover/types/components/Paragraph/Paragraph.d.ts +1 -0
  11. package/dist/ProjectsPopover/types/components/Select/utils.d.ts +2 -0
  12. package/dist/ProjectsPopover/types/components/TextAreaInput/TextAreaInput.d.ts +3 -2
  13. package/dist/Select/index.cjs.js +8 -24
  14. package/dist/Select/index.cjs.js.map +1 -1
  15. package/dist/Select/index.js +8 -24
  16. package/dist/Select/index.js.map +1 -1
  17. package/dist/Select/types/components/Paragraph/Paragraph.d.ts +1 -0
  18. package/dist/Select/types/components/Select/utils.d.ts +2 -0
  19. package/dist/Select/types/components/TextAreaInput/TextAreaInput.d.ts +3 -2
  20. package/dist/SelectCreatable/index.cjs.js +8 -24
  21. package/dist/SelectCreatable/index.cjs.js.map +1 -1
  22. package/dist/SelectCreatable/index.js +8 -24
  23. package/dist/SelectCreatable/index.js.map +1 -1
  24. package/dist/SelectCreatable/types/components/Paragraph/Paragraph.d.ts +1 -0
  25. package/dist/SelectCreatable/types/components/Select/utils.d.ts +2 -0
  26. package/dist/SelectCreatable/types/components/TextAreaInput/TextAreaInput.d.ts +3 -2
  27. package/dist/Snackbar/index.cjs.js +626 -444
  28. package/dist/Snackbar/index.cjs.js.map +1 -1
  29. package/dist/Snackbar/index.js +628 -446
  30. package/dist/Snackbar/index.js.map +1 -1
  31. package/dist/Snackbar/types/components/Paragraph/Paragraph.d.ts +1 -0
  32. package/dist/Snackbar/types/components/Select/utils.d.ts +2 -0
  33. package/dist/Snackbar/types/components/TextAreaInput/TextAreaInput.d.ts +3 -2
  34. package/dist/css/Input.global.css +1 -1
  35. package/dist/css/LabelText.global.css +1 -0
  36. package/dist/css/Paragraph.global.css +8 -0
  37. package/dist/css/Select.global.css +1 -1
  38. package/dist/css/Text.global.css +4 -0
  39. package/dist/css/TextAreaInput.global.css +7 -9
  40. package/dist/index.d.ts +4 -2
  41. package/dist/index.js +1065 -883
  42. package/dist/index.js.map +1 -1
  43. package/dist/types/components/Paragraph/Paragraph.d.ts +1 -0
  44. package/dist/types/components/Select/utils.d.ts +2 -0
  45. package/dist/types/components/TextAreaInput/TextAreaInput.d.ts +3 -2
  46. package/package.json +1 -2
  47. package/dist/Datepicker/types/components/Select/useCheckValueExists.d.ts +0 -3
  48. package/dist/Menu/types/components/Select/useCheckValueExists.d.ts +0 -3
  49. package/dist/ProjectsPopover/types/components/Select/useCheckValueExists.d.ts +0 -3
  50. package/dist/Select/types/components/Select/useCheckValueExists.d.ts +0 -3
  51. package/dist/SelectCreatable/types/components/Select/useCheckValueExists.d.ts +0 -3
  52. package/dist/Snackbar/types/components/Select/useCheckValueExists.d.ts +0 -3
  53. 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;
@@ -0,0 +1,2 @@
1
+ import { Props as ReactSelectProps } from 'react-select';
2
+ export declare const composeStyles: ReactSelectProps['styles'];
@@ -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;
@@ -24,7 +24,7 @@
24
24
  .vchasno-ui-input__wrapper {
25
25
  position: relative;
26
26
  display: flex;
27
- height: 50px;
27
+ min-height: 50px;
28
28
  box-sizing: border-box;
29
29
  align-items: center;
30
30
  padding-right: 33px;
@@ -7,6 +7,7 @@
7
7
  max-width: calc(100% - 20px);
8
8
  align-self: flex-start;
9
9
  padding: 0 4px;
10
+ border-radius: 4px;
10
11
  background-color: var(--vchasno-ui-input-bg-color);
11
12
  color: var(--vchasno-ui-label-color-default);
12
13
  font-size: var(--vchasno-ui-input-font-size);
@@ -7,3 +7,11 @@
7
7
  text-overflow: ellipsis;
8
8
  white-space: nowrap;
9
9
  }
10
+
11
+ .vchasno-ui-paragraph.--ellipsis-line {
12
+ display: -webkit-box;
13
+ overflow: hidden;
14
+ -webkit-box-orient: vertical;
15
+ text-overflow: ellipsis;
16
+ white-space: unset;
17
+ }
@@ -12,7 +12,7 @@
12
12
  transform 0.3s;
13
13
  }
14
14
 
15
- .vchasno-ui-select.--with-value .vchasno-ui-label-text,
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);
@@ -71,3 +71,7 @@
71
71
  color: var(--vchasno-ui-text-error-color, #ff5937);
72
72
  content: '*';
73
73
  }
74
+
75
+ strong.vchasno-ui-text {
76
+ font-weight: 700;
77
+ }
@@ -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: 10px;
35
- transform: none;
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: -12px;
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 'react-textarea-autosize';
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';