@vchasno/ui-kit 0.3.21 → 0.3.23

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 (58) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/Datepicker/index.cjs.js +1 -1
  3. package/dist/Datepicker/index.js +1 -1
  4. package/dist/Datepicker/types/components/Select/Label.d.ts +1 -2
  5. package/dist/Datepicker/types/components/Select/customComponents.d.ts +0 -2
  6. package/dist/Menu/types/components/Select/Label.d.ts +1 -2
  7. package/dist/Menu/types/components/Select/customComponents.d.ts +0 -2
  8. package/dist/ProjectsPopover/types/components/Select/Label.d.ts +1 -2
  9. package/dist/ProjectsPopover/types/components/Select/customComponents.d.ts +0 -2
  10. package/dist/Select/index.cjs.js +27 -24
  11. package/dist/Select/index.cjs.js.map +1 -1
  12. package/dist/Select/index.js +27 -24
  13. package/dist/Select/index.js.map +1 -1
  14. package/dist/Select/types/components/Select/Label.d.ts +1 -2
  15. package/dist/Select/types/components/Select/customComponents.d.ts +0 -2
  16. package/dist/SelectCreatable/index.cjs.js +28 -25
  17. package/dist/SelectCreatable/index.cjs.js.map +1 -1
  18. package/dist/SelectCreatable/index.js +28 -25
  19. package/dist/SelectCreatable/index.js.map +1 -1
  20. package/dist/SelectCreatable/types/components/Select/Label.d.ts +1 -2
  21. package/dist/SelectCreatable/types/components/Select/customComponents.d.ts +0 -2
  22. package/dist/Snackbar/index.cjs.js +1 -1
  23. package/dist/Snackbar/index.js +1 -1
  24. package/dist/Snackbar/types/components/Select/Label.d.ts +1 -2
  25. package/dist/Snackbar/types/components/Select/customComponents.d.ts +0 -2
  26. package/dist/css/Alert.global.css +79 -0
  27. package/dist/css/BubbleBox.global.css +47 -0
  28. package/dist/css/Button.global.css +189 -0
  29. package/dist/css/Checkbox.global.css +74 -0
  30. package/dist/css/DatePicker.global.css +625 -0
  31. package/dist/css/FollowUs.global.css +25 -0
  32. package/dist/css/Input.global.css +89 -0
  33. package/dist/css/InputMeta.global.css +25 -0
  34. package/dist/css/LabelText.global.css +75 -0
  35. package/dist/css/MaskInput.global.css +16 -0
  36. package/dist/css/Menu.global.css +117 -0
  37. package/dist/css/MenuButton.global.css +18 -0
  38. package/dist/css/MenuItem.global.css +30 -0
  39. package/dist/css/MobileAppLinks.global.css +22 -0
  40. package/dist/css/Pagination.global.css +51 -0
  41. package/dist/css/Paragraph.global.css +9 -0
  42. package/dist/css/ProjectsPopover.global.css +111 -0
  43. package/dist/css/Select.global.css +212 -0
  44. package/dist/css/Snackbar.global.css +31 -0
  45. package/dist/css/Spinner.global.css +47 -0
  46. package/dist/css/SplashLogo.global.css +29 -0
  47. package/dist/css/SvgBorder.global.css +32 -0
  48. package/dist/css/Switch.global.css +82 -0
  49. package/dist/css/Tabs.global.css +122 -0
  50. package/dist/css/Text.global.css +73 -0
  51. package/dist/css/TextAreaInput.global.css +41 -0
  52. package/dist/css/TextInput.global.css +22 -0
  53. package/dist/css/Title.global.css +44 -0
  54. package/dist/css/_theme.css +1 -1
  55. package/dist/index.js +1 -1
  56. package/dist/types/components/Select/Label.d.ts +1 -2
  57. package/dist/types/components/Select/customComponents.d.ts +0 -2
  58. package/package.json +1 -1
@@ -0,0 +1,89 @@
1
+ .vchasno-ui-input {
2
+ display: inline-flex;
3
+ max-width: 100%;
4
+ flex-direction: column;
5
+ gap: 5px;
6
+ }
7
+
8
+ .vchasno-ui-input input::placeholder {
9
+ color: var(--vchasno-ui-input-border-color-default);
10
+ font-size: var(--vchasno-ui-input-font-size);
11
+ line-height: calc(var(--vchasno-ui-input-font-size) * 1.2);
12
+ transition: color var(--vchasno-ui-transition-duration-sec, 0.3s);
13
+ }
14
+
15
+ .vchasno-ui-input .vchasno-ui-text-input,
16
+ .vchasno-ui-input .vchasno-ui-mask-input {
17
+ flex-grow: 1;
18
+ }
19
+
20
+ .vchasno-ui-input.--wide {
21
+ width: 100%;
22
+ }
23
+
24
+ .vchasno-ui-input__wrapper {
25
+ position: relative;
26
+ display: flex;
27
+ height: 50px;
28
+ box-sizing: border-box;
29
+ align-items: center;
30
+ padding-right: 33px;
31
+ padding-left: 16px;
32
+ border: 1px solid var(--vchasno-ui-input-border-color-default);
33
+ border-radius: 8px;
34
+ background-color: var(--vchasno-ui-input-bg-color);
35
+ outline: solid 3px transparent;
36
+ transition: border var(--vchasno-ui-transition-duration-sec, 0.3s);
37
+ }
38
+
39
+ .vchasno-ui-input__wrapper > input {
40
+ max-width: 100%;
41
+ }
42
+
43
+ .vchasno-ui-input__wrapper__start-element {
44
+ display: flex;
45
+ flex-grow: 0;
46
+ flex-shrink: 0;
47
+ align-items: center;
48
+ font-size: var(--vchasno-ui-input-font-size, 14px);
49
+ line-height: var(--vchasno-ui-input-font-size, 14px);
50
+ }
51
+
52
+ .vchasno-ui-input__feedback {
53
+ position: absolute;
54
+ top: 10px;
55
+ right: 10px;
56
+ display: block;
57
+ width: 18px;
58
+ height: 18px;
59
+ }
60
+
61
+ .vchasno-ui-input .vchasno-ui-spinner__svg__circle {
62
+ stroke: var(--vchasno-ui-input-border-color-focused);
63
+ }
64
+
65
+ .vchasno-ui-input.--disabled .vchasno-ui-input__wrapper {
66
+ background-color: var(--vchasno-ui-input-bg-color-disabled);
67
+ color: var(--vchasno-ui-input-font-color-disabled);
68
+ }
69
+
70
+ .vchasno-ui-input:not(.--disabled) .vchasno-ui-input__wrapper:hover {
71
+ cursor: text;
72
+ }
73
+
74
+ .vchasno-ui-input:not(.--disabled):hover .vchasno-ui-input__wrapper,
75
+ .vchasno-ui-input:not(.--disabled):focus-within .vchasno-ui-input__wrapper {
76
+ border-color: var(--vchasno-ui-input-border-color-focused);
77
+ outline-color: var(--vchasno-ui-input-outline-color-focused);
78
+ }
79
+
80
+ .vchasno-ui-input:not(.--disabled).--error .vchasno-ui-input__wrapper {
81
+ border-color: var(--vchasno-ui-input-color-error);
82
+ outline-color: var(--vchasno-ui-input-outline-color-error);
83
+ }
84
+
85
+ .vchasno-ui-input.--disabled,
86
+ .vchasno-ui-input.--disabled * {
87
+ cursor: not-allowed;
88
+ opacity: 0.8;
89
+ }
@@ -0,0 +1,25 @@
1
+ .vchasno-ui-meta {
2
+ display: block;
3
+ max-width: 100%;
4
+ height: calc(var(--vchasno-ui-input-font-size) * 0.9);
5
+ padding-left: 16px;
6
+ font-size: calc(var(--vchasno-ui-input-font-size) * 0.8);
7
+ line-height: calc(var(--vchasno-ui-input-font-size) * 0.9);
8
+ }
9
+
10
+ .vchasno-ui-meta__hint,
11
+ .vchasno-ui-meta__error {
12
+ display: inline-block;
13
+ overflow: hidden;
14
+ max-width: inherit;
15
+ text-overflow: ellipsis;
16
+ white-space: nowrap;
17
+ }
18
+
19
+ .vchasno-ui-meta__hint {
20
+ color: var(--vchasno-ui-label-color-default);
21
+ }
22
+
23
+ .vchasno-ui-meta__error {
24
+ color: var(--vchasno-ui-input-color-error);
25
+ }
@@ -0,0 +1,75 @@
1
+ .vchasno-ui-label-text {
2
+ position: absolute;
3
+ z-index: 1;
4
+ top: 50%;
5
+ left: 12px;
6
+ display: inline-flex;
7
+ max-width: calc(100% - 20px);
8
+ align-self: flex-start;
9
+ padding: 0 4px;
10
+ background-color: var(--vchasno-ui-input-bg-color);
11
+ color: var(--vchasno-ui-label-color-default);
12
+ font-size: var(--vchasno-ui-input-font-size);
13
+ gap: 3px;
14
+ line-height: calc(var(--vchasno-ui-input-font-size) * 1.2);
15
+ pointer-events: none;
16
+ text-overflow: ellipsis;
17
+ transform: translate(0, -50%);
18
+ transition:
19
+ color var(--vchasno-ui-transition-duration-sec, 0.3s),
20
+ top 0.3s,
21
+ font-size 0.3s;
22
+ white-space: nowrap;
23
+ }
24
+
25
+ .vchasno-ui-select .vchasno-ui-label-text {
26
+ max-width: calc(100% - 40px);
27
+ }
28
+
29
+ .vchasno-ui-select__floating-label,
30
+ [class^='vchasno-ui-']:not(:placeholder-shown) + .vchasno-ui-label-text,
31
+ [class^='vchasno-ui-']:focus:not(.--disabled) + .vchasno-ui-label-text {
32
+ top: 0;
33
+ font-size: 12px;
34
+ }
35
+
36
+ label[class^='vchasno-ui-']:not(.--error):focus-within .vchasno-ui-label-text {
37
+ color: var(--vchasno-ui-label-color-focused);
38
+ }
39
+
40
+ label[class^='vchasno-ui-']:not(.--disabled).--error .vchasno-ui-label-text {
41
+ color: var(--vchasno-ui-input-color-error);
42
+ }
43
+
44
+ label[class^='vchasno-ui-']:not(.--disabled).--required .vchasno-ui-label-text:hover {
45
+ cursor: text;
46
+ }
47
+
48
+ .vchasno-ui-label-text sup {
49
+ position: relative;
50
+ top: -0.2em;
51
+ display: none;
52
+ color: var(--vchasno-ui-input-color-error);
53
+ font-size: calc(var(--vchasno-ui-input-font-size) * 1.4);
54
+ vertical-align: top;
55
+ }
56
+
57
+ label[class^='vchasno-ui-'].--required .vchasno-ui-label-text sup {
58
+ display: inline-block;
59
+ }
60
+
61
+ .vchasno-ui-label-text__title-icon {
62
+ display: none;
63
+ color: var(--vchasno-ui-label-color-default);
64
+ transform: scale(0.8);
65
+ }
66
+
67
+ .vchasno-ui-input[title] .vchasno-ui-label-text__title-icon {
68
+ display: block;
69
+ }
70
+
71
+ .vchasno-ui-label-text__content {
72
+ overflow: hidden;
73
+ text-overflow: ellipsis;
74
+ white-space: nowrap;
75
+ }
@@ -0,0 +1,16 @@
1
+ .vchasno-ui-mask-input {
2
+ position: relative;
3
+ font-size: var(--vchasno-ui-input-font-size);
4
+ line-height: var(--vchasno-ui-input-font-size);
5
+ }
6
+
7
+ .vchasno-ui-mask-input::placeholder {
8
+ color: var(--vchasno-ui-input-border-color-default);
9
+ font-size: var(--vchasno-ui-input-font-size);
10
+ line-height: calc(var(--vchasno-ui-input-font-size) * 1.2);
11
+ transition: color var(--vchasno-ui-transition-duration-sec, 0.3s);
12
+ }
13
+
14
+ .vchasno-ui-mask-input:focus::placeholder {
15
+ color: transparent;
16
+ }
@@ -0,0 +1,117 @@
1
+ .szh-menu {
2
+ z-index: 100;
3
+ width: max-content;
4
+ min-width: 10rem;
5
+ box-sizing: border-box;
6
+ padding: 8px;
7
+ border: 1px solid var(--vchasno-ui-input-border-color-default);
8
+ border-radius: 4px;
9
+ margin: 0;
10
+ background-color: #fff;
11
+ color: #212529;
12
+ list-style: none;
13
+ user-select: none;
14
+ }
15
+
16
+ .szh-menu:focus {
17
+ outline: none;
18
+ }
19
+
20
+ .szh-menu__arrow {
21
+ z-index: -1;
22
+ width: 0.75rem;
23
+ height: 0.75rem;
24
+ box-sizing: border-box;
25
+ border: 1px solid transparent;
26
+ border-top-color: rgb(0 0 0 / 10%);
27
+ border-left-color: rgb(0 0 0 / 10%);
28
+ background-color: #fff;
29
+ }
30
+
31
+ .szh-menu__arrow--dir-left {
32
+ right: -0.375rem;
33
+ transform: translateY(-50%) rotate(135deg);
34
+ }
35
+
36
+ .szh-menu__arrow--dir-right {
37
+ left: -0.375rem;
38
+ transform: translateY(-50%) rotate(-45deg);
39
+ }
40
+
41
+ .szh-menu__arrow--dir-top {
42
+ bottom: -0.375rem;
43
+ transform: translateX(-50%) rotate(-135deg);
44
+ }
45
+
46
+ .szh-menu__arrow--dir-bottom {
47
+ top: -0.375rem;
48
+ transform: translateX(-50%) rotate(45deg);
49
+ }
50
+
51
+ .szh-menu__group {
52
+ box-sizing: border-box;
53
+ }
54
+
55
+ .szh-menu__radio-group {
56
+ padding: 0;
57
+ margin: 0;
58
+ list-style: none;
59
+ }
60
+
61
+ .szh-menu__divider {
62
+ height: 1px;
63
+ margin: 0.5rem 0;
64
+ background-color: rgb(0 0 0 / 12%);
65
+ }
66
+
67
+ .szh-menu-container--itemTransition .szh-menu__item {
68
+ transition-duration: 0.15s;
69
+ transition-property: background-color, color;
70
+ transition-timing-function: ease-in-out;
71
+ }
72
+
73
+ .szh-menu__item--type-radio {
74
+ padding-left: 2.2rem;
75
+ }
76
+
77
+ .szh-menu__item--type-radio::before {
78
+ position: absolute;
79
+ top: 0.55rem;
80
+ left: 0.8rem;
81
+ content: "○";
82
+ font-size: 0.8rem;
83
+ }
84
+
85
+ .szh-menu__item--type-radio.szh-menu__item--checked::before {
86
+ content: "●";
87
+ }
88
+
89
+ .szh-menu__item--type-checkbox {
90
+ padding-left: 2.2rem;
91
+ }
92
+
93
+ .szh-menu__item--type-checkbox::before {
94
+ position: absolute;
95
+ left: 0.8rem;
96
+ }
97
+
98
+ .szh-menu__item--type-checkbox.szh-menu__item--checked::before {
99
+ content: "✔";
100
+ }
101
+
102
+ .szh-menu__submenu > .szh-menu__item {
103
+ padding-right: 2.5rem;
104
+ }
105
+
106
+ .szh-menu__submenu > .szh-menu__item::after {
107
+ position: absolute;
108
+ right: 1rem;
109
+ content: "❯";
110
+ }
111
+
112
+ .szh-menu__header {
113
+ padding: 0.2rem 1.5rem;
114
+ color: #888;
115
+ font-size: 0.8rem;
116
+ text-transform: uppercase;
117
+ }
@@ -0,0 +1,18 @@
1
+ .szh-menu-button {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ .vchasno-ui-menu-button {
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ padding: 5px;
10
+ border: none;
11
+ border-radius: 4px;
12
+ cursor: pointer;
13
+ transition: background-color var(--vchasno-ui-transition-duration-sec);
14
+ }
15
+
16
+ .vchasno-ui-menu-button:hover {
17
+ background-color: var(--vchasno-ui-menu-button-bg);
18
+ }
@@ -0,0 +1,30 @@
1
+ .szh-menu__item {
2
+ position: relative;
3
+ display: flex;
4
+ align-items: center;
5
+ padding: 10px 12px;
6
+ cursor: pointer;
7
+ transition: background-color var(--vchasno-ui-transition-duration-sec);
8
+ }
9
+
10
+ .szh-menu__item + .szh-menu__item {
11
+ margin-top: 4px;
12
+ }
13
+
14
+ .szh-menu__item:focus {
15
+ outline: none;
16
+ }
17
+
18
+ .szh-menu__item--hover {
19
+ background-color: var(--vchasno-ui-menu-item-hover-bg);
20
+ }
21
+
22
+ .szh-menu__item--focusable {
23
+ background-color: inherit;
24
+ cursor: default;
25
+ }
26
+
27
+ .szh-menu__item--disabled {
28
+ color: #aaa;
29
+ cursor: default;
30
+ }
@@ -0,0 +1,22 @@
1
+ .vchasno-ui-MobileAppLinks {
2
+ min-width: 100px;
3
+ }
4
+
5
+ .vchasno-ui-MobileAppLinks__label {
6
+ font-size: 14px;
7
+ }
8
+
9
+ .vchasno-ui-MobileAppLinks__link {
10
+ display: block;
11
+ max-width: 150px;
12
+ aspect-ratio: 300 / 89;
13
+ transition: filter 0.3s;
14
+ }
15
+
16
+ .vchasno-ui-MobileAppLinks__link img {
17
+ display: block;
18
+ }
19
+
20
+ .vchasno-ui-MobileAppLinks__link:hover {
21
+ filter: brightness(80%);
22
+ }
@@ -0,0 +1,51 @@
1
+ .vchasno-ui-pagination {
2
+ display: inline-flex;
3
+ flex-shrink: 0;
4
+ align-items: center;
5
+ font-size: 14px;
6
+ gap: 10px;
7
+ }
8
+
9
+ .vchasno-ui-pagination__item {
10
+ display: flex;
11
+ min-width: var(--vchasno-ui-pagination-size);
12
+ height: var(--vchasno-ui-pagination-size);
13
+ flex-grow: 0;
14
+ flex-shrink: 0;
15
+ align-items: center;
16
+ justify-content: center;
17
+ border: 1px solid transparent;
18
+ border-radius: 6px;
19
+ background-color: #fff;
20
+ cursor: pointer;
21
+ outline: 0;
22
+ text-align: center;
23
+ transition:
24
+ background-color var(--vchasno-ui-transition-duration-sec, 0.3s),
25
+ border var(--vchasno-ui-transition-duration-sec, 0.3s);
26
+ user-select: none;
27
+ vertical-align: middle;
28
+ }
29
+
30
+ .vchasno-ui-pagination__item-arrow {
31
+ display: inline-flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ }
35
+
36
+ .vchasno-ui-pagination__item:not(.vchasno-ui-pagination__item-disabled):hover {
37
+ background-color: var(--vchasno-ui-pagination-hover-bg-color, rgb(0 0 0 / 10%));
38
+ }
39
+
40
+ .vchasno-ui-pagination__item-active {
41
+ border-color: var(--vchasno-ui-pagination-border-color, #6b5fff);
42
+ }
43
+
44
+ .vchasno-ui-pagination__item-disabled {
45
+ cursor: not-allowed;
46
+ opacity: 0.8;
47
+ }
48
+
49
+ .vchasno-ui-pagination__item-hidden {
50
+ display: none;
51
+ }
@@ -0,0 +1,9 @@
1
+ .vchasno-ui-paragraph {
2
+ color: var(--vchasno-ui-text-primary-color);
3
+ }
4
+
5
+ .vchasno-ui-paragraph.--ellipsis {
6
+ overflow: hidden;
7
+ text-overflow: ellipsis;
8
+ white-space: nowrap;
9
+ }
@@ -0,0 +1,111 @@
1
+ .vchasno-ui-ProjectsPopover {
2
+ display: inline-block;
3
+ width: 440px;
4
+ max-width: calc(100vw - 32px);
5
+ box-sizing: border-box;
6
+ padding: 24px 16px 0;
7
+ border-radius: 3px;
8
+ background-color: #fff;
9
+ }
10
+
11
+ .vchasno-ui-ProjectsPopover__content {
12
+ display: flex;
13
+ flex-direction: column;
14
+ gap: 32px;
15
+ }
16
+
17
+ .vchasno-ui-ProjectsPopover__products {
18
+ display: flex;
19
+ width: calc(100% + 32px);
20
+ box-sizing: border-box;
21
+ flex-wrap: wrap;
22
+ gap: 10px;
23
+ }
24
+
25
+ .vchasno-ui-ProjectsPopover a:hover {
26
+ color: unset;
27
+ text-decoration: none;
28
+ }
29
+
30
+ .vchasno-ui-ProjectsPopover--border {
31
+ border: 1px solid #dbe5ea;
32
+ }
33
+
34
+ .vchasno-ui-ProjectsPopover__title {
35
+ width: 100%;
36
+ font-size: 16px;
37
+ font-style: normal;
38
+ font-weight: 500;
39
+ line-height: 18px;
40
+ }
41
+
42
+ .vchasno-ui-ProjectsPopover__box {
43
+ display: inline-flex;
44
+ width: 198px;
45
+ box-sizing: border-box;
46
+ align-items: center;
47
+ padding: 20px;
48
+ border: 1px solid #dbe5ea;
49
+ border-radius: 8px;
50
+ aspect-ratio: 198/80;
51
+ color: var(--vchasno-ui-text-primary-color);
52
+ gap: 8px;
53
+ text-decoration: none;
54
+ transition: background-color 0.3s;
55
+ }
56
+
57
+ .vchasno-ui-ProjectsPopover__box > svg {
58
+ max-width: 90%;
59
+ }
60
+
61
+ .vchasno-ui-ProjectsPopover__box__icon {
62
+ width: 40px;
63
+ height: 40px;
64
+ box-sizing: border-box;
65
+ flex-shrink: 0;
66
+ border-radius: 50%;
67
+ }
68
+
69
+ .vchasno-ui-ProjectsPopover__box:hover {
70
+ background-color: #f3f6f8;
71
+ cursor: pointer;
72
+ }
73
+
74
+ .vchasno-ui-ProjectsPopover__box__title {
75
+ font-size: 14px;
76
+ font-style: normal;
77
+ font-weight: 400;
78
+ line-height: 26px;
79
+ }
80
+
81
+ .vchasno-ui-ProjectsPopover .vchasno-ui-ProjectsPopover__footer {
82
+ display: flex;
83
+ min-height: 42px;
84
+ align-items: center;
85
+ justify-content: center;
86
+ border-radius: 0 0 4px 4px;
87
+ margin: 0 -16px;
88
+ background: #ecf4ff;
89
+ color: #6b8091;
90
+ font-size: 12px;
91
+ font-weight: 400;
92
+ }
93
+
94
+ .vchasno-ui-ProjectsPopover .vchasno-ui-ProjectsPopover__footer > a {
95
+ color: #0890de;
96
+ text-decoration: none;
97
+ }
98
+
99
+ @media screen and (width <= 480px) {
100
+ .vchasno-ui-ProjectsPopover {
101
+ width: 330px;
102
+ }
103
+
104
+ .vchasno-ui-ProjectsPopover__box {
105
+ width: calc(50% - 20px);
106
+ flex-direction: column;
107
+ justify-content: center;
108
+ padding: 10px;
109
+ aspect-ratio: 1 / 1;
110
+ }
111
+ }