@itcase/ui 1.0.46 → 1.0.48
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.
|
@@ -34,6 +34,7 @@ const Choice = /*#__PURE__*/React__default.default.forwardRef((props, ref) => {
|
|
|
34
34
|
type,
|
|
35
35
|
options,
|
|
36
36
|
active,
|
|
37
|
+
set,
|
|
37
38
|
setActiveSegment,
|
|
38
39
|
size,
|
|
39
40
|
labelTextColor,
|
|
@@ -71,7 +72,7 @@ const Choice = /*#__PURE__*/React__default.default.forwardRef((props, ref) => {
|
|
|
71
72
|
propsKey: 'fillActive'
|
|
72
73
|
});
|
|
73
74
|
return /*#__PURE__*/React__default.default.createElement("div", {
|
|
74
|
-
className: clsx__default.default(className, 'choice', shapeClass, fillClass, borderColorClass, borderWidthClass, borderTypeClass, size && `choice_size_${size}`, type && `choice_type_${type}`),
|
|
75
|
+
className: clsx__default.default(className, 'choice', shapeClass, fillClass, borderColorClass, borderWidthClass, borderTypeClass, set && `choice_set_${set}`, size && `choice_size_${size}`, type && `choice_type_${type}`),
|
|
75
76
|
ref: controlRef
|
|
76
77
|
}, /*#__PURE__*/React__default.default.createElement("div", {
|
|
77
78
|
className: "choice__wrapper"
|
|
@@ -4873,6 +4873,15 @@ function Swiper(props) {
|
|
|
4873
4873
|
freeMode: freeMode,
|
|
4874
4874
|
init: isInit ?? true,
|
|
4875
4875
|
loop: isLoop,
|
|
4876
|
+
noSwipingClass: "swiper-no-swiping",
|
|
4877
|
+
noSwiping: true,
|
|
4878
|
+
a11y: false,
|
|
4879
|
+
watchSlidesProgress: true,
|
|
4880
|
+
noSwipingSelector: 'button',
|
|
4881
|
+
allowTouchMove: false,
|
|
4882
|
+
preventClicks: false,
|
|
4883
|
+
preventClicksPropagation: false,
|
|
4884
|
+
simulateTouch: false,
|
|
4876
4885
|
modules: modules,
|
|
4877
4886
|
mousewheel: mousewheel,
|
|
4878
4887
|
navigation: isNavigation ? {
|
|
@@ -4,45 +4,6 @@
|
|
|
4
4
|
&__wrapper {
|
|
5
5
|
position: relative;
|
|
6
6
|
display: flex;
|
|
7
|
-
^&__item {
|
|
8
|
-
min-width: 80px;
|
|
9
|
-
position: relative;
|
|
10
|
-
display: flex;
|
|
11
|
-
border-top: 0;
|
|
12
|
-
border-left: 0;
|
|
13
|
-
border-bottom: 0;
|
|
14
|
-
&:hover {
|
|
15
|
-
background: var(--choice-item-background-hover);
|
|
16
|
-
}
|
|
17
|
-
&:last-child {
|
|
18
|
-
border-right: 0;
|
|
19
|
-
}
|
|
20
|
-
&_state_active {
|
|
21
|
-
}
|
|
22
|
-
& input {
|
|
23
|
-
width: 100%;
|
|
24
|
-
height: 100%;
|
|
25
|
-
position: absolute;
|
|
26
|
-
left: 0;
|
|
27
|
-
top: 0;
|
|
28
|
-
right: 0;
|
|
29
|
-
bottom: 0;
|
|
30
|
-
z-index: 2;
|
|
31
|
-
opacity: 0%;
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
border: 0;
|
|
34
|
-
margin: 0;
|
|
35
|
-
}
|
|
36
|
-
&-label {
|
|
37
|
-
width: 100%;
|
|
38
|
-
text-align: center;
|
|
39
|
-
position: relative;
|
|
40
|
-
display: block;
|
|
41
|
-
z-index: 3;
|
|
42
|
-
transition: color 0.5s ease;
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
7
|
}
|
|
47
8
|
}
|
|
48
9
|
.choice {
|
|
@@ -65,7 +26,7 @@
|
|
|
65
26
|
}
|
|
66
27
|
.choice {
|
|
67
28
|
&_size {
|
|
68
|
-
@each $size in
|
|
29
|
+
@each $size in tiny, compact, normal {
|
|
69
30
|
&_$(size) {
|
|
70
31
|
^^&__item {
|
|
71
32
|
&-label {
|
|
@@ -76,6 +37,42 @@
|
|
|
76
37
|
}
|
|
77
38
|
}
|
|
78
39
|
}
|
|
40
|
+
.choice__item {
|
|
41
|
+
min-width: 30px;
|
|
42
|
+
border-left: 0;
|
|
43
|
+
border-top: 0;
|
|
44
|
+
border-bottom: 0;
|
|
45
|
+
position: relative;
|
|
46
|
+
display: flex;
|
|
47
|
+
&:hover {
|
|
48
|
+
background: var(--choice-item-background-hover);
|
|
49
|
+
}
|
|
50
|
+
&:last-child {
|
|
51
|
+
border-right: 0;
|
|
52
|
+
}
|
|
53
|
+
&_state_active {
|
|
54
|
+
}
|
|
55
|
+
& input {
|
|
56
|
+
width: 100%;
|
|
57
|
+
height: 100%;
|
|
58
|
+
margin: 0;
|
|
59
|
+
border: 0;
|
|
60
|
+
position: absolute;
|
|
61
|
+
inset: 0 0 0 0;
|
|
62
|
+
z-index: 2;
|
|
63
|
+
opacity: 0%;
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
}
|
|
66
|
+
&-label {
|
|
67
|
+
width: 100%;
|
|
68
|
+
text-align: center;
|
|
69
|
+
position: relative;
|
|
70
|
+
display: block;
|
|
71
|
+
z-index: 3;
|
|
72
|
+
transition: color 0.5s ease;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
79
76
|
:root {
|
|
80
77
|
--choice-item-background-hover: var(--color-surface-secondary);
|
|
81
78
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.choice__item {
|
|
2
|
+
min-width: 30px;
|
|
3
|
+
border-left: 0;
|
|
4
|
+
border-top: 0;
|
|
5
|
+
border-bottom: 0;
|
|
6
|
+
position: relative;
|
|
7
|
+
display: flex;
|
|
8
|
+
&:hover {
|
|
9
|
+
background: var(--choice-item-background-hover);
|
|
10
|
+
}
|
|
11
|
+
&:last-child {
|
|
12
|
+
border-right: 0;
|
|
13
|
+
}
|
|
14
|
+
&_state_active {
|
|
15
|
+
}
|
|
16
|
+
& input {
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
margin: 0;
|
|
20
|
+
border: 0;
|
|
21
|
+
position: absolute;
|
|
22
|
+
inset: 0 0 0 0;
|
|
23
|
+
z-index: 2;
|
|
24
|
+
opacity: 0%;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
}
|
|
27
|
+
&-label {
|
|
28
|
+
width: 100%;
|
|
29
|
+
text-align: center;
|
|
30
|
+
position: relative;
|
|
31
|
+
display: block;
|
|
32
|
+
z-index: 3;
|
|
33
|
+
transition: color 0.5s ease;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
}
|
|
36
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.48",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"eslint-config-standard": "^17.1.0",
|
|
84
84
|
"eslint-plugin-babel": "^5.3.1",
|
|
85
85
|
"eslint-plugin-import": "^2.28.1",
|
|
86
|
-
"eslint-plugin-n": "^16.0
|
|
86
|
+
"eslint-plugin-n": "^16.1.0",
|
|
87
87
|
"eslint-plugin-node": "^11.1.0",
|
|
88
88
|
"eslint-plugin-prettier": "^5.0.0",
|
|
89
89
|
"eslint-plugin-promise": "^6.1.1",
|