@itcase/ui 1.0.92 → 1.0.94
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/dist/{SelectContainer-meg_EXPO.js → SelectContainer-umrbJtB5.js} +87 -54
- package/dist/components/Accordion.js +10 -1
- package/dist/components/Avatar.js +7 -1
- package/dist/components/Badge.js +2 -1
- package/dist/components/Breadcrumbs.js +8 -3
- package/dist/components/Button.js +12 -7
- package/dist/components/Cell.js +7 -2
- package/dist/components/Checkbox.js +32 -8
- package/dist/components/Chips.js +1 -1
- package/dist/components/Choice.js +5 -0
- package/dist/components/ContextMenu.js +5 -0
- package/dist/components/CookiesWarning.js +5 -1
- package/dist/components/DatePicker.js +4 -0
- package/dist/components/Dropdown.js +14 -2
- package/dist/components/Empty.js +5 -0
- package/dist/components/Flex.js +20 -3
- package/dist/components/FormField.js +7 -2
- package/dist/components/Grid.js +5 -1
- package/dist/components/Group.js +33 -2
- package/dist/components/Icon.js +30 -2
- package/dist/components/Image.js +10 -4
- package/dist/components/InputPassword.js +8 -0
- package/dist/components/Label.js +2 -1
- package/dist/components/LanguageSelector.js +8 -0
- package/dist/components/Loader.js +27 -12
- package/dist/components/Logo.js +4 -3
- package/dist/components/MenuItem.js +1 -1
- package/dist/components/Notification.js +1 -1
- package/dist/components/Search.js +5 -0
- package/dist/components/Segmented.js +13 -1
- package/dist/components/Select.js +20 -14
- package/dist/components/SiteMenu.js +5 -0
- package/dist/components/Tab.js +1 -1
- package/dist/components/Text.js +4 -3
- package/dist/components/Tile.js +1 -0
- package/dist/components/Title.js +2 -1
- package/dist/components/Tooltip.js +46 -26
- package/dist/constants/componentProps/alignment.js +5 -0
- package/dist/constants.js +6 -4
- package/dist/css/components/Accordion/Accordion.css +2 -1
- package/dist/css/components/Avatar/Avatar.css +40 -13
- package/dist/css/components/Badge/Badge.css +35 -10
- package/dist/css/components/Cell/Cell.css +41 -0
- package/dist/css/components/Checkbox/Checkbox.css +20 -20
- package/dist/css/components/Group/Group.css +1 -0
- package/dist/css/components/Icon/Icon.css +8 -0
- package/dist/css/components/Image/Image.css +28 -1
- package/dist/css/components/Label/Label.css +32 -10
- package/dist/css/components/Logo/Logo.css +33 -8
- package/dist/css/components/Segmented/Segmented.css +0 -1
- package/dist/css/components/Select/Select.css +1 -0
- package/dist/css/components/Select/css/__indicators/select__indicators.css +1 -0
- package/dist/css/components/Text/Text.css +24 -0
- package/dist/css/components/Title/Title.css +24 -0
- package/dist/css/components/Tooltip/Tooltip.css +103 -3
- package/dist/css/styles/alignment/alignment.css +54 -0
- package/dist/css/styles/mediaqueries.css +23 -9
- package/package.json +1 -1
|
@@ -8,19 +8,32 @@
|
|
|
8
8
|
line-height: 0;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
|
|
12
11
|
.label {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
&&_mode {
|
|
13
|
+
&_skeleton {
|
|
14
|
+
background-image: linear-gradient(
|
|
15
|
+
90deg,
|
|
16
|
+
var(--color-surface-secondary),
|
|
17
|
+
var(--color-surface-tertiary),
|
|
18
|
+
var(--color-surface-secondary)
|
|
19
|
+
);
|
|
20
|
+
background-size: 200%;
|
|
21
|
+
animation: label-skeleton 3s infinite linear;
|
|
22
|
+
^^&__label {
|
|
23
|
+
color: transparent;
|
|
19
24
|
}
|
|
20
25
|
}
|
|
21
26
|
}
|
|
22
27
|
}
|
|
23
|
-
|
|
28
|
+
@keyframes label-skeleton {
|
|
29
|
+
0% {
|
|
30
|
+
background-position: 200%;
|
|
31
|
+
}
|
|
32
|
+
100% {
|
|
33
|
+
background-position: -200%;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/* mode && `avatar_mode_${mode}`, */
|
|
24
37
|
.label {
|
|
25
38
|
&_shape {
|
|
26
39
|
&_rounded {
|
|
@@ -36,7 +49,17 @@
|
|
|
36
49
|
}
|
|
37
50
|
}
|
|
38
51
|
}
|
|
39
|
-
|
|
52
|
+
.label {
|
|
53
|
+
&_size {
|
|
54
|
+
@each $size in xxs, xs, s, m, l, xl, xxl {
|
|
55
|
+
&_$(size) {
|
|
56
|
+
^^&__inner {
|
|
57
|
+
padding: var(--label-size-$(size)-padding);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
40
63
|
.label {
|
|
41
64
|
&&_text-align {
|
|
42
65
|
&_left {
|
|
@@ -56,7 +79,6 @@
|
|
|
56
79
|
}
|
|
57
80
|
}
|
|
58
81
|
}
|
|
59
|
-
|
|
60
82
|
.label {
|
|
61
83
|
&&_width {
|
|
62
84
|
&_fixed {
|
|
@@ -8,6 +8,39 @@
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
+
.logo {
|
|
12
|
+
@each $val in stretch, flex-start, flex-end, center, baseline, auto {
|
|
13
|
+
&_align-items_$(val) {
|
|
14
|
+
align-items: $(val);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.logo {
|
|
19
|
+
&&_mode {
|
|
20
|
+
&_skeleton {
|
|
21
|
+
background-image: linear-gradient(
|
|
22
|
+
90deg,
|
|
23
|
+
var(--color-surface-secondary),
|
|
24
|
+
var(--color-surface-tertiary),
|
|
25
|
+
var(--color-surface-secondary)
|
|
26
|
+
);
|
|
27
|
+
background-size: 200%;
|
|
28
|
+
border-radius: 6px;
|
|
29
|
+
animation: logo-skeleton 3s infinite linear;
|
|
30
|
+
^^&__image {
|
|
31
|
+
opacity: 0;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
@keyframes logo-skeleton {
|
|
37
|
+
0% {
|
|
38
|
+
background-position: 200%;
|
|
39
|
+
}
|
|
40
|
+
100% {
|
|
41
|
+
background-position: -200%;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
11
44
|
.logo {
|
|
12
45
|
&_size {
|
|
13
46
|
@each $size in s, m, l {
|
|
@@ -20,13 +53,6 @@
|
|
|
20
53
|
}
|
|
21
54
|
}
|
|
22
55
|
}
|
|
23
|
-
.logo {
|
|
24
|
-
@each $val in stretch, flex-start, flex-end, center, baseline, auto {
|
|
25
|
-
&_align-items_$(val) {
|
|
26
|
-
align-items: $(val);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
56
|
:root {
|
|
31
57
|
--logo-size-l-width: 240px;
|
|
32
58
|
--logo-size-l-height: 90px;
|
|
@@ -37,4 +63,3 @@
|
|
|
37
63
|
--logo-size-s-width: 140px;
|
|
38
64
|
--logo-size-s-height: 52px;
|
|
39
65
|
}
|
|
40
|
-
|
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
.text {}
|
|
2
|
+
.text {
|
|
3
|
+
&&&&_mode {
|
|
4
|
+
&_skeleton {
|
|
5
|
+
color: transparent;
|
|
6
|
+
background-image: linear-gradient(
|
|
7
|
+
90deg,
|
|
8
|
+
var(--color-surface-secondary),
|
|
9
|
+
var(--color-surface-tertiary),
|
|
10
|
+
var(--color-surface-secondary)
|
|
11
|
+
);
|
|
12
|
+
background-size: 200%;
|
|
13
|
+
border-radius: 6px;
|
|
14
|
+
animation: text-skeleton 3s infinite linear;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
@keyframes text-skeleton {
|
|
19
|
+
0% {
|
|
20
|
+
background-position: 200%;
|
|
21
|
+
}
|
|
22
|
+
100% {
|
|
23
|
+
background-position: -200%;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
2
26
|
.text_size {
|
|
3
27
|
@each $sizeText in xxs, xs, s, m, l, xl, xxl {
|
|
4
28
|
&_$(sizeText) {
|
|
@@ -41,6 +41,30 @@
|
|
|
41
41
|
margin: 0;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
+
.title.title {
|
|
45
|
+
&_mode {
|
|
46
|
+
&_skeleton {
|
|
47
|
+
color: transparent;
|
|
48
|
+
background-image: linear-gradient(
|
|
49
|
+
90deg,
|
|
50
|
+
var(--color-surface-secondary),
|
|
51
|
+
var(--color-surface-tertiary),
|
|
52
|
+
var(--color-surface-secondary)
|
|
53
|
+
);
|
|
54
|
+
background-size: 200%;
|
|
55
|
+
border-radius: 6px;
|
|
56
|
+
animation: title-skeleton 3s infinite linear;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
@keyframes title-skeleton {
|
|
61
|
+
0% {
|
|
62
|
+
background-position: 200%;
|
|
63
|
+
}
|
|
64
|
+
100% {
|
|
65
|
+
background-position: -200%;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
44
68
|
.title {
|
|
45
69
|
&&_type {
|
|
46
70
|
&_accent {
|
|
@@ -1,4 +1,104 @@
|
|
|
1
|
-
|
|
1
|
+
.tooltip {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
animation: 0.5s tooltipShowAnimation ease;
|
|
5
|
+
}
|
|
2
6
|
|
|
3
|
-
@
|
|
4
|
-
|
|
7
|
+
@keyframes tooltipShowAnimation {
|
|
8
|
+
0% {
|
|
9
|
+
visibility: hidden;
|
|
10
|
+
opacity: 0%;
|
|
11
|
+
}
|
|
12
|
+
100% {
|
|
13
|
+
visibility: visible;
|
|
14
|
+
opacity: 100%;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.tooltip {
|
|
19
|
+
&_size {
|
|
20
|
+
@each $size in s, m, l {
|
|
21
|
+
&_$(size) {
|
|
22
|
+
max-width: 400px;
|
|
23
|
+
padding: var(--tooltip-size-$(size)-padding);
|
|
24
|
+
^^&__inner {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-flow: column nowrap;
|
|
27
|
+
gap: var(--tooltip-size-$(size)-gap);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.tooltip {
|
|
35
|
+
&_shape {
|
|
36
|
+
&_rounded {
|
|
37
|
+
border-radius: var(--tooltip-shape-rounded-default, 12px);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.tooltip {
|
|
43
|
+
&_type_arrow {
|
|
44
|
+
^&__inner {
|
|
45
|
+
position: relative;
|
|
46
|
+
background-color: inherit;
|
|
47
|
+
}
|
|
48
|
+
&::after {
|
|
49
|
+
content: '';
|
|
50
|
+
display: block;
|
|
51
|
+
position: absolute;
|
|
52
|
+
background-color: inherit;
|
|
53
|
+
width: var(--tooltip-arrow-width);
|
|
54
|
+
height: var(--tooltip-arrow-height);
|
|
55
|
+
border-radius: var(--tooltip-arrow-radius);
|
|
56
|
+
z-index: -1;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.tooltip {
|
|
62
|
+
&_arrow_position {
|
|
63
|
+
&_top {
|
|
64
|
+
&::after {
|
|
65
|
+
top: 0;
|
|
66
|
+
left: 50%;
|
|
67
|
+
transform: translate(-50%, calc(calc(var(--tooltip-arrow-width) / 2) * -1)) rotate(45deg);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
&_left {
|
|
71
|
+
&::after {
|
|
72
|
+
top: 50%;
|
|
73
|
+
left: 0;
|
|
74
|
+
transform: translate(calc(calc(var(--tooltip-arrow-width) / 2) * -1), -50%) rotate(45deg);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
&_right {
|
|
78
|
+
&::after {
|
|
79
|
+
top: 50%;
|
|
80
|
+
right: 0;
|
|
81
|
+
transform: translate(calc(var(--tooltip-arrow-width) / 2), -50%) rotate(45deg);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
&_bottom {
|
|
85
|
+
&::after {
|
|
86
|
+
bottom: 0;
|
|
87
|
+
left: 50%;
|
|
88
|
+
transform: translate(-50%, calc(var(--tooltip-arrow-width) / 2)) rotate(45deg);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:root {
|
|
95
|
+
--tooltip-size-m-padding: 0;
|
|
96
|
+
--tooltip-size-s-padding: 0;
|
|
97
|
+
|
|
98
|
+
--tooltip-size-m-gap: 0;
|
|
99
|
+
--tooltip-size-s-gap: 0;
|
|
100
|
+
|
|
101
|
+
--tooltip-arrow-width: 14px;
|
|
102
|
+
--tooltip-arrow-height: 14px;
|
|
103
|
+
--tooltip-arrow-radius: 2px;
|
|
104
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.alignment {
|
|
2
|
+
&_top {
|
|
3
|
+
&-left {
|
|
4
|
+
position: absolute;
|
|
5
|
+
right: 100%;
|
|
6
|
+
bottom: 100%;
|
|
7
|
+
transform: translate(calc(0% - 12px), calc(0% - 12px));
|
|
8
|
+
}
|
|
9
|
+
&-center {
|
|
10
|
+
position: absolute;
|
|
11
|
+
left: 50%;
|
|
12
|
+
bottom: 100%;
|
|
13
|
+
transform: translate(-50%, calc(0% - 12px));
|
|
14
|
+
}
|
|
15
|
+
&-right {
|
|
16
|
+
position: absolute;
|
|
17
|
+
left: 100%;
|
|
18
|
+
bottom: 100%;
|
|
19
|
+
transform: translate(calc(0% + 12px), calc(0% - 12px));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
&_bottom {
|
|
23
|
+
&-left {
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 100%;
|
|
26
|
+
right: 100%;
|
|
27
|
+
transform: translate(calc(0% - 12px), calc(0% + 12px));
|
|
28
|
+
}
|
|
29
|
+
&-center {
|
|
30
|
+
position: absolute;
|
|
31
|
+
left: 50%;
|
|
32
|
+
top: 100%;
|
|
33
|
+
transform: translate(-50%, calc(0% + 12px));
|
|
34
|
+
}
|
|
35
|
+
&-right {
|
|
36
|
+
position: absolute;
|
|
37
|
+
left: 100%;
|
|
38
|
+
top: 100%;
|
|
39
|
+
transform: translate(calc(0% + 12px), calc(0% + 12px));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
&_left-center {
|
|
43
|
+
position: absolute;
|
|
44
|
+
top: 50%;
|
|
45
|
+
right: 100%;
|
|
46
|
+
transform: translate(calc(0% - 12px), -50%);
|
|
47
|
+
}
|
|
48
|
+
&_right-center {
|
|
49
|
+
position: absolute;
|
|
50
|
+
left: 100%;
|
|
51
|
+
top: 50%;
|
|
52
|
+
transform: translate(calc(0% + 12px), -50%);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -1,23 +1,37 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
|
|
2
3
|
--mobile-tiny: 15em; /* 240px */
|
|
4
|
+
|
|
3
5
|
--mobile-small: 20em; /* 320px */
|
|
6
|
+
|
|
4
7
|
--mobile-medium: 23.435em; /* 375px */
|
|
8
|
+
|
|
5
9
|
--mobile-large: 25.875em; /* 414px */
|
|
10
|
+
|
|
6
11
|
--mobile-extra-large: 30em; /* 480px */
|
|
12
|
+
|
|
7
13
|
--mobile-super-extra-large: 40em; /* 640px */
|
|
14
|
+
|
|
8
15
|
--tablet: 48em; /* 768px */
|
|
16
|
+
|
|
9
17
|
--desktop-small: 60em; /* 960px */
|
|
18
|
+
|
|
10
19
|
--desktop-medium: 64em; /* 1024px */
|
|
20
|
+
|
|
11
21
|
--desktop-normal: 72.5em; /* 1160px */
|
|
22
|
+
|
|
12
23
|
--desktop-large: 80em; /* 1280px */
|
|
24
|
+
|
|
13
25
|
--desktop-extra-large: 90em; /* 1441px */
|
|
26
|
+
|
|
14
27
|
--desktop-super-extra-large: 120em; /* 1920px */
|
|
28
|
+
|
|
15
29
|
--desktop-huge: 160em; /* 560px */
|
|
16
30
|
}
|
|
17
31
|
|
|
18
32
|
@custom-media --warning (width <= 15em);
|
|
19
33
|
|
|
20
|
-
@custom-media --mobile (width >= 15em) and (width <
|
|
34
|
+
@custom-media --mobile (width >= 15em) and (width < 48em);
|
|
21
35
|
|
|
22
36
|
@custom-media --mobile-tiny (width >= 15em) and (width < 20em);
|
|
23
37
|
|
|
@@ -25,17 +39,17 @@
|
|
|
25
39
|
|
|
26
40
|
@custom-media --mobile-medium (width >= 23.435em) and (width < 25.875em);
|
|
27
41
|
|
|
28
|
-
@custom-media --mobile-standart (width >=
|
|
42
|
+
@custom-media --mobile-standart (width >= 25.875em) and (width < 30em);
|
|
29
43
|
|
|
30
44
|
@custom-media --mobile-large (width >= 30em) and (width < 40em);
|
|
31
45
|
|
|
32
|
-
@custom-media --mobile-huge (width >= 40em) and (width <
|
|
46
|
+
@custom-media --mobile-huge (width >= 40em) and (width < 48em);
|
|
33
47
|
|
|
34
|
-
@custom-media --tablet (width >=
|
|
48
|
+
@custom-media --tablet (width >= 48em) and (width < 60em);
|
|
35
49
|
|
|
36
|
-
@custom-media --tablet-small (width >= 40em) and (width <
|
|
50
|
+
@custom-media --tablet-small (width >= 40em) and (width < 48em);
|
|
37
51
|
|
|
38
|
-
@custom-media --tablet-large (width >=
|
|
52
|
+
@custom-media --tablet-large (width >= 48em) and (width < 60em);
|
|
39
53
|
|
|
40
54
|
@custom-media --desktop (width >= 60em);
|
|
41
55
|
|
|
@@ -49,13 +63,13 @@
|
|
|
49
63
|
|
|
50
64
|
@custom-media --desktop-large (width >= 90em) and (width < 120em);
|
|
51
65
|
|
|
52
|
-
@custom-media --desktop-huge (width >=
|
|
66
|
+
@custom-media --desktop-huge (width >= 120em) and (width < 160em);
|
|
53
67
|
|
|
54
68
|
@custom-media --desktop-super-huge (width >= 160em);
|
|
55
69
|
|
|
56
|
-
@custom-media --landscape (orientation:landscape) and (width >=
|
|
70
|
+
@custom-media --landscape (orientation: landscape) and (width >= 15em) and (width < 60em);
|
|
57
71
|
|
|
58
|
-
@custom-media --portrait (orientation:portrait) and (width >=
|
|
72
|
+
@custom-media --portrait (orientation: portrait) and (width >= 15em) and (width < 60em);
|
|
59
73
|
|
|
60
74
|
@custom-media --touch (hover: none) and (pointer: coarse);
|
|
61
75
|
|