@itcase/ui 1.0.47 → 1.0.49
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/components/Drawer.js +197 -0
- package/dist/components/Image.js +5 -5
- package/dist/components/Modal.js +8 -7
- package/dist/components/Swiper.js +18 -27
- package/dist/css/components/Choice/Choice.css +36 -36
- package/dist/css/components/Choice/css/__item/choice__item.css +36 -0
- package/dist/css/components/Drawer/Drawer.css +47 -0
- package/dist/css/components/Fader/Fader.css +3 -14
- package/dist/css/components/Image/Image.css +2 -14
- package/dist/css/components/Modal/Modal.css +7 -4
- package/dist/css/components/Swiper/Swiper.css +46 -4
- package/dist/css/components/Swiper/css/__item/swiper-block__item.css +6 -0
- package/package.json +3 -2
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var PropTypes = require('prop-types');
|
|
5
|
+
var clsx = require('clsx');
|
|
6
|
+
|
|
7
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
+
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
10
|
+
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
11
|
+
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
12
|
+
|
|
13
|
+
function _extends() {
|
|
14
|
+
_extends = Object.assign || function (target) {
|
|
15
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
16
|
+
var source = arguments[i];
|
|
17
|
+
|
|
18
|
+
for (var key in source) {
|
|
19
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
20
|
+
target[key] = source[key];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return target;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
return _extends.apply(this, arguments);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
var getDirectionStyle = function getDirectionStyle(dir, size) {
|
|
32
|
+
switch (dir) {
|
|
33
|
+
case 'left':
|
|
34
|
+
return {
|
|
35
|
+
top: 0,
|
|
36
|
+
left: 0,
|
|
37
|
+
transform: 'translate3d(-100%, 0, 0)',
|
|
38
|
+
width: size,
|
|
39
|
+
height: '100vh'
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
case 'right':
|
|
43
|
+
return {
|
|
44
|
+
top: 0,
|
|
45
|
+
right: 0,
|
|
46
|
+
transform: 'translate3d(100%, 0, 0)',
|
|
47
|
+
width: size,
|
|
48
|
+
height: '100vh'
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
case 'bottom':
|
|
52
|
+
return {
|
|
53
|
+
left: 0,
|
|
54
|
+
right: 0,
|
|
55
|
+
bottom: 0,
|
|
56
|
+
transform: 'translate3d(0, 100%, 0)',
|
|
57
|
+
width: '100%',
|
|
58
|
+
height: size
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
case 'top':
|
|
62
|
+
return {
|
|
63
|
+
left: 0,
|
|
64
|
+
right: 0,
|
|
65
|
+
top: 0,
|
|
66
|
+
transform: 'translate3d(0, -100%, 0)',
|
|
67
|
+
width: '100%',
|
|
68
|
+
height: size
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
default:
|
|
72
|
+
return {};
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
var EZDrawer = function EZDrawer(props) {
|
|
77
|
+
var open = props.open,
|
|
78
|
+
_props$onClose = props.onClose,
|
|
79
|
+
onClose = _props$onClose === void 0 ? function () {} : _props$onClose,
|
|
80
|
+
children = props.children,
|
|
81
|
+
style = props.style,
|
|
82
|
+
_props$enableOverlay = props.enableOverlay,
|
|
83
|
+
enableOverlay = _props$enableOverlay === void 0 ? true : _props$enableOverlay,
|
|
84
|
+
_props$overlayColor = props.overlayColor,
|
|
85
|
+
overlayColor = _props$overlayColor === void 0 ? '#000' : _props$overlayColor,
|
|
86
|
+
_props$overlayOpacity = props.overlayOpacity,
|
|
87
|
+
overlayOpacity = _props$overlayOpacity === void 0 ? 0.4 : _props$overlayOpacity,
|
|
88
|
+
_props$zIndex = props.zIndex,
|
|
89
|
+
zIndex = _props$zIndex === void 0 ? 100 : _props$zIndex,
|
|
90
|
+
_props$duration = props.duration,
|
|
91
|
+
duration = _props$duration === void 0 ? 500 : _props$duration,
|
|
92
|
+
direction = props.direction,
|
|
93
|
+
_props$size = props.size,
|
|
94
|
+
size = _props$size === void 0 ? 250 : _props$size,
|
|
95
|
+
className = props.className,
|
|
96
|
+
customIdSuffix = props.customIdSuffix,
|
|
97
|
+
_props$lockBackground = props.lockBackgroundScroll,
|
|
98
|
+
lockBackgroundScroll = _props$lockBackground === void 0 ? false : _props$lockBackground,
|
|
99
|
+
_props$overlayClassNa = props.overlayClassName,
|
|
100
|
+
overlayClassName = _props$overlayClassNa === void 0 ? '' : _props$overlayClassNa;
|
|
101
|
+
var bodyRef = React.useRef(null);
|
|
102
|
+
React.useEffect(function () {
|
|
103
|
+
var updatePageScroll = function updatePageScroll() {
|
|
104
|
+
bodyRef.current = window.document.querySelector('body');
|
|
105
|
+
|
|
106
|
+
if (bodyRef.current && lockBackgroundScroll) {
|
|
107
|
+
if (open) {
|
|
108
|
+
bodyRef.current.style.overflow = 'hidden';
|
|
109
|
+
} else {
|
|
110
|
+
bodyRef.current.style.overflow = '';
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
updatePageScroll();
|
|
116
|
+
}, [open]);
|
|
117
|
+
var idSuffix = React.useMemo(function () {
|
|
118
|
+
return customIdSuffix || (Math.random() + 1).toString(36).substring(7);
|
|
119
|
+
}, [customIdSuffix]);
|
|
120
|
+
var overlayStyles = {
|
|
121
|
+
backgroundColor: "" + overlayColor,
|
|
122
|
+
opacity: "" + overlayOpacity,
|
|
123
|
+
zIndex: zIndex
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
var drawerStyles = _extends({
|
|
127
|
+
zIndex: zIndex + 1,
|
|
128
|
+
transitionDuration: duration + "ms"
|
|
129
|
+
}, getDirectionStyle(direction, size), style);
|
|
130
|
+
|
|
131
|
+
return React__default.default.createElement("div", {
|
|
132
|
+
id: 'EZDrawer' + idSuffix,
|
|
133
|
+
className: 'EZDrawer'
|
|
134
|
+
}, React__default.default.createElement("input", {
|
|
135
|
+
type: 'checkbox',
|
|
136
|
+
id: 'EZDrawer__checkbox' + idSuffix,
|
|
137
|
+
className: 'EZDrawer__checkbox',
|
|
138
|
+
onChange: onClose,
|
|
139
|
+
checked: open
|
|
140
|
+
}), React__default.default.createElement("nav", {
|
|
141
|
+
role: 'navigation',
|
|
142
|
+
id: 'EZDrawer__container' + idSuffix,
|
|
143
|
+
style: drawerStyles,
|
|
144
|
+
className: 'EZDrawer__container ' + className
|
|
145
|
+
}, children), enableOverlay && React__default.default.createElement("label", {
|
|
146
|
+
htmlFor: 'EZDrawer__checkbox' + idSuffix,
|
|
147
|
+
id: 'EZDrawer__overlay' + idSuffix,
|
|
148
|
+
className: 'EZDrawer__overlay ' + overlayClassName,
|
|
149
|
+
style: overlayStyles
|
|
150
|
+
}));
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
function Drawer(props) {
|
|
154
|
+
const {
|
|
155
|
+
isOpenModal,
|
|
156
|
+
type,
|
|
157
|
+
closeModal,
|
|
158
|
+
children,
|
|
159
|
+
size,
|
|
160
|
+
before,
|
|
161
|
+
after,
|
|
162
|
+
dataTour,
|
|
163
|
+
direction,
|
|
164
|
+
className
|
|
165
|
+
} = props;
|
|
166
|
+
return /*#__PURE__*/React__default.default.createElement(EZDrawer, {
|
|
167
|
+
className: clsx__default.default('drawer', type && `drawer_type_${type}`, className, dataTour && `data-tour-${dataTour}`),
|
|
168
|
+
direction: direction || 'right',
|
|
169
|
+
lockBackgroundScroll: true,
|
|
170
|
+
open: isOpenModal,
|
|
171
|
+
overlayClassName: "drawer__overlay",
|
|
172
|
+
size: size || 600,
|
|
173
|
+
onClose: closeModal
|
|
174
|
+
}, before && /*#__PURE__*/React__default.default.createElement("div", {
|
|
175
|
+
className: "drawer__before"
|
|
176
|
+
}, before), children && /*#__PURE__*/React__default.default.createElement("div", {
|
|
177
|
+
className: "drawer__wrapper"
|
|
178
|
+
}, children), after && /*#__PURE__*/React__default.default.createElement("div", {
|
|
179
|
+
className: "drawer__after"
|
|
180
|
+
}, after));
|
|
181
|
+
}
|
|
182
|
+
Drawer.propTypes = {
|
|
183
|
+
isOpenModal: PropTypes__default.default.bool.isRequired,
|
|
184
|
+
after: PropTypes__default.default.any,
|
|
185
|
+
before: PropTypes__default.default.any,
|
|
186
|
+
children: PropTypes__default.default.any,
|
|
187
|
+
className: PropTypes__default.default.string,
|
|
188
|
+
closeModal: PropTypes__default.default.func,
|
|
189
|
+
dataTour: PropTypes__default.default.string,
|
|
190
|
+
direction: PropTypes__default.default.string,
|
|
191
|
+
// "right", "left", "top", "bottom"
|
|
192
|
+
size: PropTypes__default.default.number,
|
|
193
|
+
// width in px
|
|
194
|
+
type: PropTypes__default.default.string
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
exports.Drawer = Drawer;
|
package/dist/components/Image.js
CHANGED
|
@@ -34,8 +34,8 @@ function Image(props) {
|
|
|
34
34
|
caption,
|
|
35
35
|
children,
|
|
36
36
|
className,
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
imageWrapperClassName,
|
|
38
|
+
imageClassName,
|
|
39
39
|
overlay,
|
|
40
40
|
src,
|
|
41
41
|
title,
|
|
@@ -88,14 +88,14 @@ function Image(props) {
|
|
|
88
88
|
onClick: onClick,
|
|
89
89
|
style: styles
|
|
90
90
|
}, before, /*#__PURE__*/React__default.default.createElement("div", {
|
|
91
|
-
className: clsx__default.default('image__wrapper',
|
|
91
|
+
className: clsx__default.default('image__wrapper', imageWrapperClassName),
|
|
92
92
|
style: wrapperStyles
|
|
93
93
|
}, /*#__PURE__*/React__default.default.createElement("img", {
|
|
94
94
|
src: src,
|
|
95
95
|
alt: alt,
|
|
96
96
|
title: title,
|
|
97
97
|
style: imageStyles,
|
|
98
|
-
className: clsx__default.default('image__item', widthClass, heightClass,
|
|
98
|
+
className: clsx__default.default('image__item', widthClass, heightClass, imageClassName, borderClass, borderColorImageClass),
|
|
99
99
|
onError: onError
|
|
100
100
|
}), overlay, caption, children), after);
|
|
101
101
|
}
|
|
@@ -116,7 +116,7 @@ Image.propTypes = {
|
|
|
116
116
|
horizontalContentAlignDesktop: PropTypes__default.default.oneOf(horizontalContentAlign.default),
|
|
117
117
|
horizontalContentAlignMobile: PropTypes__default.default.oneOf(horizontalContentAlign.default),
|
|
118
118
|
horizontalContentAlignTablet: PropTypes__default.default.oneOf(horizontalContentAlign.default),
|
|
119
|
-
|
|
119
|
+
imageClassName: PropTypes__default.default.string,
|
|
120
120
|
imgWrapClassName: PropTypes__default.default.string,
|
|
121
121
|
onClick: PropTypes__default.default.func,
|
|
122
122
|
resizeMode: PropTypes__default.default.oneOf(resizeMode.default),
|
package/dist/components/Modal.js
CHANGED
|
@@ -59,6 +59,7 @@ const Modal = /*#__PURE__*/React__default.default.forwardRef(function Modal(prop
|
|
|
59
59
|
contentClassName,
|
|
60
60
|
id,
|
|
61
61
|
isFader,
|
|
62
|
+
faderClassName,
|
|
62
63
|
faderFill,
|
|
63
64
|
faderFillGradient,
|
|
64
65
|
faderOpacity,
|
|
@@ -66,7 +67,7 @@ const Modal = /*#__PURE__*/React__default.default.forwardRef(function Modal(prop
|
|
|
66
67
|
isScrollOnOpen,
|
|
67
68
|
isSetFocusOnOpen,
|
|
68
69
|
modalQuerySelector,
|
|
69
|
-
|
|
70
|
+
debug,
|
|
70
71
|
onCloseModal,
|
|
71
72
|
onOpenModal
|
|
72
73
|
} = props;
|
|
@@ -159,9 +160,9 @@ const Modal = /*#__PURE__*/React__default.default.forwardRef(function Modal(prop
|
|
|
159
160
|
closeModal,
|
|
160
161
|
modalElement
|
|
161
162
|
}));
|
|
162
|
-
const
|
|
163
|
+
const fillClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
163
164
|
prefix: 'fill_',
|
|
164
|
-
propsKey: '
|
|
165
|
+
propsKey: 'fill'
|
|
165
166
|
});
|
|
166
167
|
const shapeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
167
168
|
prefix: 'modal-shape_',
|
|
@@ -191,11 +192,11 @@ const Modal = /*#__PURE__*/React__default.default.forwardRef(function Modal(prop
|
|
|
191
192
|
return modalElement && /*#__PURE__*/ReactDOM__default.default.createPortal(
|
|
192
193
|
// Any valid React child: JSX, strings, arrays, etc.
|
|
193
194
|
isOpen ? /*#__PURE__*/React__default.default.createElement(React__default.default.Fragment, null, /*#__PURE__*/React__default.default.createElement("div", {
|
|
194
|
-
className: clsx__default.default('modal-content', contentClassName,
|
|
195
|
+
className: clsx__default.default('modal-content', contentClassName, fillClass, shapeClass, borderColorClass, borderWidthClass, borderTypeClass, elevationClass),
|
|
195
196
|
id: id,
|
|
196
197
|
ref: modalContentRef,
|
|
197
198
|
tabIndex: 0,
|
|
198
|
-
onBlur:
|
|
199
|
+
onBlur: debug ? undefined : closeModal,
|
|
199
200
|
style: modalStyles
|
|
200
201
|
}, closeButton && /*#__PURE__*/React__default.default.createElement("div", {
|
|
201
202
|
className: "modal-content__close",
|
|
@@ -205,7 +206,7 @@ const Modal = /*#__PURE__*/React__default.default.forwardRef(function Modal(prop
|
|
|
205
206
|
fill: faderFill,
|
|
206
207
|
fillGradient: faderFillGradient,
|
|
207
208
|
opacity: faderOpacity,
|
|
208
|
-
className:
|
|
209
|
+
className: clsx__default.default('modal__fader', 'fader_type_modal', faderClassName),
|
|
209
210
|
isFader: isFader
|
|
210
211
|
})) : null,
|
|
211
212
|
// A DOM element
|
|
@@ -225,7 +226,7 @@ Modal.propTypes = {
|
|
|
225
226
|
isScrollOnOpen: PropTypes__default.default.bool,
|
|
226
227
|
isSetFocusOnOpen: PropTypes__default.default.bool,
|
|
227
228
|
modalQuerySelector: PropTypes__default.default.string,
|
|
228
|
-
|
|
229
|
+
debug: PropTypes__default.default.bool,
|
|
229
230
|
onCloseModal: PropTypes__default.default.func,
|
|
230
231
|
onOpenModal: PropTypes__default.default.func
|
|
231
232
|
};
|
|
@@ -4759,13 +4759,16 @@ SwiperSlide.displayName = 'SwiperSlide';
|
|
|
4759
4759
|
function Swiper(props) {
|
|
4760
4760
|
const {
|
|
4761
4761
|
activeSlideIndex,
|
|
4762
|
-
allowTouchMove,
|
|
4763
4762
|
autoHeight,
|
|
4764
4763
|
breakpoints,
|
|
4765
4764
|
children,
|
|
4766
4765
|
className,
|
|
4767
4766
|
direction,
|
|
4768
|
-
|
|
4767
|
+
allowTouchMove,
|
|
4768
|
+
swiperSlideClass,
|
|
4769
|
+
preventClicks,
|
|
4770
|
+
preventClicksPropagation,
|
|
4771
|
+
simulateTouch,
|
|
4769
4772
|
forwardedRef,
|
|
4770
4773
|
// https://github.com/vercel/next.js/issues/4957
|
|
4771
4774
|
freeMode,
|
|
@@ -4865,23 +4868,15 @@ function Swiper(props) {
|
|
|
4865
4868
|
className: "swiper-block__next swiper-button",
|
|
4866
4869
|
ref: nextRef
|
|
4867
4870
|
}, nextButton))), /*#__PURE__*/React__default.default.createElement(Swiper$1, {
|
|
4868
|
-
allowTouchMove: allowTouchMove,
|
|
4869
4871
|
autoHeight: autoHeight ?? false,
|
|
4870
4872
|
breakpoints: breakpoints,
|
|
4873
|
+
allowTouchMove: allowTouchMove,
|
|
4874
|
+
centeredSlides: true,
|
|
4871
4875
|
className: clsx__default.default('swiper-block__swiper', swiperClass),
|
|
4872
4876
|
direction: direction,
|
|
4873
4877
|
freeMode: freeMode,
|
|
4874
4878
|
init: isInit ?? true,
|
|
4875
4879
|
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,
|
|
4885
4880
|
modules: modules,
|
|
4886
4881
|
mousewheel: mousewheel,
|
|
4887
4882
|
navigation: isNavigation ? {
|
|
@@ -4889,28 +4884,24 @@ function Swiper(props) {
|
|
|
4889
4884
|
nextEl
|
|
4890
4885
|
} : false,
|
|
4891
4886
|
normalizeSlideIndex: normalizeSlideIndex,
|
|
4892
|
-
pagination: isPagination,
|
|
4893
|
-
ref: swiperRef,
|
|
4894
|
-
scrollbar: isScrollbar,
|
|
4895
|
-
slidesPerView: slidesPerView,
|
|
4896
|
-
spaceBetween: spaceBetween
|
|
4897
|
-
// noSwiping={true}
|
|
4898
|
-
// allowTouchMove={false}
|
|
4899
|
-
// touchStartPreventDefault={false}
|
|
4900
|
-
// touchMoveStopPropagation={false}
|
|
4901
|
-
// preventClicks={false}
|
|
4902
|
-
// preventClicksPropagation={false}
|
|
4903
|
-
,
|
|
4904
|
-
speed: speed ?? 500,
|
|
4905
4887
|
onInit: onInitSwiper,
|
|
4906
4888
|
onSlideChange: onSlideChange,
|
|
4907
4889
|
onSlideNextTransitionEnd: onSlideNextTransitionEnd,
|
|
4908
4890
|
onSlidePrevTransitionEnd: onSlidePrevTransitionEnd,
|
|
4909
4891
|
onSwiper: onSwiper,
|
|
4892
|
+
onTransitionStart: onTransitionStart,
|
|
4910
4893
|
onUpdate: onUpdate,
|
|
4911
|
-
|
|
4894
|
+
pagination: isPagination,
|
|
4895
|
+
preventClicks: preventClicks,
|
|
4896
|
+
preventClicksPropagation: preventClicksPropagation,
|
|
4897
|
+
ref: swiperRef,
|
|
4898
|
+
scrollbar: isScrollbar,
|
|
4899
|
+
simulateTouch: simulateTouch,
|
|
4900
|
+
slidesPerView: slidesPerView,
|
|
4901
|
+
spaceBetween: spaceBetween,
|
|
4902
|
+
speed: speed ?? 500
|
|
4912
4903
|
}, children || items?.map((item, i) => /*#__PURE__*/React__default.default.createElement(SwiperSlide, {
|
|
4913
|
-
className: clsx__default.default(alignDirectionClass, alignClass),
|
|
4904
|
+
className: clsx__default.default('swiper-block__item', swiperSlideClass, alignDirectionClass, alignClass),
|
|
4914
4905
|
key: `swiper-slide_${i}`
|
|
4915
4906
|
}, item))));
|
|
4916
4907
|
}
|
|
@@ -4,42 +4,6 @@
|
|
|
4
4
|
&__wrapper {
|
|
5
5
|
position: relative;
|
|
6
6
|
display: flex;
|
|
7
|
-
^&__item {
|
|
8
|
-
min-width: 30px;
|
|
9
|
-
border-left: 0;
|
|
10
|
-
border-top: 0;
|
|
11
|
-
border-bottom: 0;
|
|
12
|
-
position: relative;
|
|
13
|
-
display: flex;
|
|
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
|
-
margin: 0;
|
|
26
|
-
border: 0;
|
|
27
|
-
position: absolute;
|
|
28
|
-
inset: 0 0 0 0;
|
|
29
|
-
z-index: 2;
|
|
30
|
-
opacity: 0%;
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
}
|
|
33
|
-
&-label {
|
|
34
|
-
width: 100%;
|
|
35
|
-
text-align: center;
|
|
36
|
-
position: relative;
|
|
37
|
-
display: block;
|
|
38
|
-
z-index: 3;
|
|
39
|
-
transition: color 0.5s ease;
|
|
40
|
-
cursor: pointer;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
7
|
}
|
|
44
8
|
}
|
|
45
9
|
.choice {
|
|
@@ -73,6 +37,42 @@
|
|
|
73
37
|
}
|
|
74
38
|
}
|
|
75
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
|
+
}
|
|
76
76
|
:root {
|
|
77
77
|
--choice-item-background-hover: var(--color-surface-secondary);
|
|
78
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
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.EZDrawer .EZDrawer__checkbox {
|
|
2
|
+
display: none; }
|
|
3
|
+
.EZDrawer .EZDrawer__checkbox:checked ~ .EZDrawer__overlay {
|
|
4
|
+
display: block;
|
|
5
|
+
opacity: 1; }
|
|
6
|
+
.EZDrawer .EZDrawer__checkbox:checked ~ .EZDrawer__container {
|
|
7
|
+
visibility: visible;
|
|
8
|
+
transform: translate3d(0, 0, 0) !important; }
|
|
9
|
+
.EZDrawer .EZDrawer__overlay {
|
|
10
|
+
display: none;
|
|
11
|
+
height: 100vh;
|
|
12
|
+
left: 0;
|
|
13
|
+
position: fixed;
|
|
14
|
+
top: 0;
|
|
15
|
+
width: 100%; }
|
|
16
|
+
.EZDrawer .EZDrawer__container {
|
|
17
|
+
position: fixed;
|
|
18
|
+
visibility: hidden;
|
|
19
|
+
background: white;
|
|
20
|
+
transition: all;
|
|
21
|
+
box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1); }
|
|
22
|
+
.drawer {
|
|
23
|
+
overflow-y: scroll;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-flow: column nowrap;
|
|
26
|
+
&__overlay {
|
|
27
|
+
background: rgba(116, 116, 116, 0.5) !important;
|
|
28
|
+
opacity: 100% !important;
|
|
29
|
+
backdrop-filter: blur(10px) !important;
|
|
30
|
+
}
|
|
31
|
+
&__wrapper {
|
|
32
|
+
flex: 1;
|
|
33
|
+
}
|
|
34
|
+
&__after {
|
|
35
|
+
z-index: 10;
|
|
36
|
+
}
|
|
37
|
+
&_type {
|
|
38
|
+
&_sticky-button {
|
|
39
|
+
^^&__after {
|
|
40
|
+
width: 100%;
|
|
41
|
+
position: sticky;
|
|
42
|
+
left: 0;
|
|
43
|
+
bottom: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
.fader {
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 100%;
|
|
4
|
+
background: var(--fader-fill);
|
|
5
|
+
position: absolute;
|
|
4
6
|
left: 0;
|
|
5
7
|
top: 0;
|
|
6
8
|
z-index: 1;
|
|
7
|
-
|
|
9
|
+
backdrop-filter: blur(var(--fader-blur, 10px));
|
|
8
10
|
}
|
|
9
11
|
.fader {
|
|
10
12
|
&&_state {
|
|
11
13
|
&_visible {
|
|
12
14
|
position: fixed;
|
|
13
|
-
display: block;
|
|
14
15
|
visibility: visible !important;
|
|
15
16
|
animation-name: faderFadeIn;
|
|
16
17
|
}
|
|
@@ -40,15 +41,3 @@
|
|
|
40
41
|
opacity: 0;
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
|
-
.fader {
|
|
44
|
-
&&_type_modal {
|
|
45
|
-
opacity: 0;
|
|
46
|
-
display: none;
|
|
47
|
-
background: var(--color-fader);
|
|
48
|
-
backdrop-filter: blur(10px);
|
|
49
|
-
transition: opacity 1s ease-in-out;
|
|
50
|
-
animation-duration: 1s;
|
|
51
|
-
animation-fill-mode: both;
|
|
52
|
-
visibility: hidden;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
&_horizontal-content-align {
|
|
10
10
|
&_center {
|
|
11
11
|
^^&__wrapper {
|
|
12
|
+
width: 100%;
|
|
12
13
|
display: flex;
|
|
13
14
|
justify-content: center;
|
|
14
15
|
}
|
|
@@ -25,20 +26,6 @@
|
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
|
-
&_caption-back {
|
|
29
|
-
> ^^&__wrapper {
|
|
30
|
-
position: relative;
|
|
31
|
-
& > ^^^&__item {
|
|
32
|
-
position: absolute;
|
|
33
|
-
height: 100%;
|
|
34
|
-
width: 100%;
|
|
35
|
-
object-fit: cover;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
.caption {
|
|
39
|
-
position: inherit;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
29
|
}
|
|
43
30
|
}
|
|
44
31
|
.image {
|
|
@@ -98,6 +85,7 @@
|
|
|
98
85
|
&_vertical-content-align {
|
|
99
86
|
&_center {
|
|
100
87
|
^^&__wrapper {
|
|
88
|
+
height: 100%;
|
|
101
89
|
display: flex;
|
|
102
90
|
align-items: center;
|
|
103
91
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
.modal-shape {
|
|
19
19
|
&_rounded {
|
|
20
|
-
border-radius:
|
|
20
|
+
border-radius: 20px;
|
|
21
21
|
}
|
|
22
22
|
&_circular {
|
|
23
23
|
border-radius: 50%;
|
|
@@ -25,10 +25,13 @@
|
|
|
25
25
|
}
|
|
26
26
|
.modal-content {
|
|
27
27
|
width: 100%;
|
|
28
|
-
max-width: var(--modal-max-width, 600px);
|
|
29
|
-
position: relative;
|
|
30
|
-
min-height: 200px;
|
|
31
28
|
min-width: 200px;
|
|
29
|
+
min-height: 200px;
|
|
30
|
+
max-width: var(--modal-max-width, 800px);
|
|
31
|
+
position: relative;
|
|
32
|
+
&:focus {
|
|
33
|
+
outline: 0;
|
|
34
|
+
}
|
|
32
35
|
&__inner {
|
|
33
36
|
width: 100%;
|
|
34
37
|
}
|
|
@@ -883,10 +883,10 @@ button.swiper-pagination-bullet {
|
|
|
883
883
|
overflow: hidden;
|
|
884
884
|
}
|
|
885
885
|
|
|
886
|
-
.swiper-
|
|
887
|
-
|
|
888
|
-
&
|
|
889
|
-
|
|
886
|
+
div.swiper-block__item {
|
|
887
|
+
display: flex;
|
|
888
|
+
&_type_center {
|
|
889
|
+
height: auto !important;
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
892
|
|
|
@@ -903,3 +903,45 @@ button.swiper-pagination-bullet {
|
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
|
+
|
|
907
|
+
.swiper-block {
|
|
908
|
+
width: 100%;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
div.swiper-pagination {
|
|
912
|
+
display: flex;
|
|
913
|
+
&-horizontal {
|
|
914
|
+
justify-content: center;
|
|
915
|
+
bottom: 16px;
|
|
916
|
+
& .swiper-pagination-bullet {
|
|
917
|
+
margin: 0;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
& .swiper-pagination-bullet {
|
|
921
|
+
width: 24px;
|
|
922
|
+
height: 24px;
|
|
923
|
+
background: none;
|
|
924
|
+
margin: 0;
|
|
925
|
+
display: flex;
|
|
926
|
+
justify-content: center;
|
|
927
|
+
align-items: center;
|
|
928
|
+
opacity: 100%;
|
|
929
|
+
&::after {
|
|
930
|
+
width: 6px;
|
|
931
|
+
height: 6px;
|
|
932
|
+
background: #fff;
|
|
933
|
+
border: solid 1px #000;
|
|
934
|
+
border-radius: 50%;
|
|
935
|
+
content: '';
|
|
936
|
+
display: block;
|
|
937
|
+
}
|
|
938
|
+
&-active {
|
|
939
|
+
&::after {
|
|
940
|
+
width: 10px;
|
|
941
|
+
height: 10px;
|
|
942
|
+
background: #fff;
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.49",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -52,13 +52,14 @@
|
|
|
52
52
|
"react-date-range": "^1.4.0",
|
|
53
53
|
"react-dom": "^18.2.0",
|
|
54
54
|
"react-inlinesvg": "^4.0.3",
|
|
55
|
+
"react-modern-drawer": "^1.2.2",
|
|
55
56
|
"react-otp-input": "^3.0.4",
|
|
56
57
|
"react-paginate": "^8.2.0",
|
|
57
58
|
"react-responsive": "^9.0.2",
|
|
58
59
|
"react-scrollbars-custom": "^4.1.1",
|
|
59
60
|
"react-select": "^5.7.4",
|
|
60
61
|
"swiper": "^10.2.0",
|
|
61
|
-
"uuid": "^9.0.
|
|
62
|
+
"uuid": "^9.0.1"
|
|
62
63
|
},
|
|
63
64
|
"devDependencies": {
|
|
64
65
|
"@babel/core": "^7.22.17",
|