@itcase/ui 1.0.95 → 1.0.97
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/Button.js +1 -1
- package/dist/components/Checkbox.js +11 -6
- package/dist/components/Chips.js +6 -2
- package/dist/components/Choice.js +25 -12
- package/dist/components/DadataHintField.js +1 -1
- package/dist/components/DatePicker.js +7755 -8894
- package/dist/components/FormField.js +3 -3
- package/dist/components/Grid.js +3 -1
- package/dist/components/Group.js +9 -1
- package/dist/components/Input.js +6 -1
- package/dist/components/InputPassword.js +6 -1
- package/dist/components/Label.js +2 -0
- package/dist/components/RadioButton.js +12 -7
- package/dist/components/Segmented.js +22 -6
- package/dist/components/Select.js +8520 -46
- package/dist/components/Swiper.js +23 -13
- package/dist/components/Tab.js +5 -4
- package/dist/components/Text.js +13 -1
- package/dist/components/Textarea.js +6 -1
- package/dist/components/Title.js +11 -3
- package/dist/css/components/Cell/Cell.css +0 -1
- package/dist/css/components/Chips/Chips.css +7 -7
- package/dist/css/components/DatePicker/DatePicker.css +33 -84
- package/dist/css/components/Grid/Grid.css +8 -0
- package/dist/css/components/Label/Label.css +0 -1
- package/dist/css/components/Select/Select.css +0 -1
- package/dist/css/components/Select/css/__menu/select__menu.css +0 -1
- package/dist/css/components/Swiper/Swiper.css +4 -4
- package/dist/css/components/Tab/Tab.css +3 -1
- package/dist/css/styles/align/align_vertical.css +4 -4
- package/dist/css/styles/border-color/border-color.css +1 -2
- package/dist/css/styles/border-color/border-color_hover.css +22 -0
- package/dist/css/styles/fill/fill.css +2 -4
- package/dist/css/styles/fill/fill_active.css +2 -2
- package/dist/css/styles/fill/fill_disabled.css +2 -2
- package/dist/css/styles/fill/fill_hover.css +2 -2
- package/dist/css/styles/fill-gradient/fill-gradient.css +1 -1
- package/dist/css/styles/hover/hover-fill-color.css +1 -1
- package/dist/css/styles/hover/hover-item-color.css +1 -1
- package/dist/css/styles/hover/hover-text-color.css +1 -1
- package/dist/css/styles/mediaqueries.css +0 -14
- package/dist/css/styles/text-color/text-color.css +2 -3
- package/dist/css/styles/text-color/text-color_active.css +1 -1
- package/dist/css/styles/text-color/text-color_hover.css +23 -0
- package/dist/css/styles/text-gradient/text-gradient.css +0 -3
- package/dist/floating-ui.dom-D_Zct5p2.js +1401 -0
- package/package.json +26 -26
- package/dist/SelectContainer-umrbJtB5.js +0 -8728
- package/dist/css/styles/border-color-hover/border-color-hover.css +0 -21
- package/dist/css/styles/text-color-hover/text-color-hover.css +0 -21
- package/dist/defineProperty-ujK-k7aM.js +0 -166
- /package/dist/{_commonjsHelpers-rI13D0F7.js → _commonjsHelpers-CFO10eej.js} +0 -0
- /package/dist/css/styles/{border-color-focus/border-color-focus.css → border-color/border-color_focus.css} +0 -0
|
@@ -506,6 +506,7 @@ function getDevice(overrides) {
|
|
|
506
506
|
let browser;
|
|
507
507
|
function calcBrowser() {
|
|
508
508
|
const window = getWindow();
|
|
509
|
+
const device = getDevice();
|
|
509
510
|
let needPerspectiveFix = false;
|
|
510
511
|
function isSafari() {
|
|
511
512
|
const ua = window.navigator.userAgent.toLowerCase();
|
|
@@ -518,10 +519,14 @@ function calcBrowser() {
|
|
|
518
519
|
needPerspectiveFix = major < 16 || major === 16 && minor < 2;
|
|
519
520
|
}
|
|
520
521
|
}
|
|
522
|
+
const isWebView = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent);
|
|
523
|
+
const isSafariBrowser = isSafari();
|
|
524
|
+
const need3dFix = isSafariBrowser || isWebView && device.ios;
|
|
521
525
|
return {
|
|
522
|
-
isSafari: needPerspectiveFix ||
|
|
526
|
+
isSafari: needPerspectiveFix || isSafariBrowser,
|
|
523
527
|
needPerspectiveFix,
|
|
524
|
-
|
|
528
|
+
need3dFix,
|
|
529
|
+
isWebView
|
|
525
530
|
};
|
|
526
531
|
}
|
|
527
532
|
function getBrowser() {
|
|
@@ -1827,7 +1832,7 @@ function slideTo(index, speed, runCallbacks, internal, initial) {
|
|
|
1827
1832
|
wrapperEl,
|
|
1828
1833
|
enabled
|
|
1829
1834
|
} = swiper;
|
|
1830
|
-
if (swiper.animating && params.preventInteractionOnTransition || !enabled && !internal && !initial) {
|
|
1835
|
+
if (swiper.animating && params.preventInteractionOnTransition || !enabled && !internal && !initial || swiper.destroyed) {
|
|
1831
1836
|
return false;
|
|
1832
1837
|
}
|
|
1833
1838
|
const skip = Math.min(swiper.params.slidesPerGroupSkip, slideIndex);
|
|
@@ -1967,6 +1972,7 @@ function slideToLoop(index, speed, runCallbacks, internal) {
|
|
|
1967
1972
|
index = indexAsNumber;
|
|
1968
1973
|
}
|
|
1969
1974
|
const swiper = this;
|
|
1975
|
+
if (swiper.destroyed) return;
|
|
1970
1976
|
const gridEnabled = swiper.grid && swiper.params.grid && swiper.params.grid.rows > 1;
|
|
1971
1977
|
let newIndex = index;
|
|
1972
1978
|
if (swiper.params.loop) {
|
|
@@ -2035,7 +2041,7 @@ function slideNext(speed, runCallbacks, internal) {
|
|
|
2035
2041
|
params,
|
|
2036
2042
|
animating
|
|
2037
2043
|
} = swiper;
|
|
2038
|
-
if (!enabled) return swiper;
|
|
2044
|
+
if (!enabled || swiper.destroyed) return swiper;
|
|
2039
2045
|
let perGroup = params.slidesPerGroup;
|
|
2040
2046
|
if (params.slidesPerView === 'auto' && params.slidesPerGroup === 1 && params.slidesPerGroupAuto) {
|
|
2041
2047
|
perGroup = Math.max(swiper.slidesPerViewDynamic('current', true), 1);
|
|
@@ -2079,7 +2085,7 @@ function slidePrev(speed, runCallbacks, internal) {
|
|
|
2079
2085
|
enabled,
|
|
2080
2086
|
animating
|
|
2081
2087
|
} = swiper;
|
|
2082
|
-
if (!enabled) return swiper;
|
|
2088
|
+
if (!enabled || swiper.destroyed) return swiper;
|
|
2083
2089
|
const isVirtual = swiper.virtual && params.virtual.enabled;
|
|
2084
2090
|
if (params.loop) {
|
|
2085
2091
|
if (animating && !isVirtual && params.loopPreventsSliding) return false;
|
|
@@ -2139,6 +2145,7 @@ function slideReset(speed, runCallbacks, internal) {
|
|
|
2139
2145
|
runCallbacks = true;
|
|
2140
2146
|
}
|
|
2141
2147
|
const swiper = this;
|
|
2148
|
+
if (swiper.destroyed) return;
|
|
2142
2149
|
return swiper.slideTo(swiper.activeIndex, speed, runCallbacks, internal);
|
|
2143
2150
|
}
|
|
2144
2151
|
|
|
@@ -2154,6 +2161,7 @@ function slideToClosest(speed, runCallbacks, internal, threshold) {
|
|
|
2154
2161
|
threshold = 0.5;
|
|
2155
2162
|
}
|
|
2156
2163
|
const swiper = this;
|
|
2164
|
+
if (swiper.destroyed) return;
|
|
2157
2165
|
let index = swiper.activeIndex;
|
|
2158
2166
|
const skip = Math.min(swiper.params.slidesPerGroupSkip, index);
|
|
2159
2167
|
const snapIndex = skip + Math.floor((index - skip) / swiper.params.slidesPerGroup);
|
|
@@ -2182,6 +2190,7 @@ function slideToClosest(speed, runCallbacks, internal, threshold) {
|
|
|
2182
2190
|
|
|
2183
2191
|
function slideToClickedSlide() {
|
|
2184
2192
|
const swiper = this;
|
|
2193
|
+
if (swiper.destroyed) return;
|
|
2185
2194
|
const {
|
|
2186
2195
|
params,
|
|
2187
2196
|
slidesEl
|
|
@@ -3538,6 +3547,7 @@ var defaults = {
|
|
|
3538
3547
|
init: true,
|
|
3539
3548
|
direction: 'horizontal',
|
|
3540
3549
|
oneWayMovement: false,
|
|
3550
|
+
swiperElementNodeName: 'SWIPER-CONTAINER',
|
|
3541
3551
|
touchEventsTarget: 'wrapper',
|
|
3542
3552
|
initialSlide: 0,
|
|
3543
3553
|
speed: 300,
|
|
@@ -3978,11 +3988,11 @@ let Swiper$2 = class Swiper {
|
|
|
3978
3988
|
let spv = 1;
|
|
3979
3989
|
if (typeof params.slidesPerView === 'number') return params.slidesPerView;
|
|
3980
3990
|
if (params.centeredSlides) {
|
|
3981
|
-
let slideSize = slides[activeIndex] ? slides[activeIndex].swiperSlideSize : 0;
|
|
3991
|
+
let slideSize = slides[activeIndex] ? Math.ceil(slides[activeIndex].swiperSlideSize) : 0;
|
|
3982
3992
|
let breakLoop;
|
|
3983
3993
|
for (let i = activeIndex + 1; i < slides.length; i += 1) {
|
|
3984
3994
|
if (slides[i] && !breakLoop) {
|
|
3985
|
-
slideSize += slides[i].swiperSlideSize;
|
|
3995
|
+
slideSize += Math.ceil(slides[i].swiperSlideSize);
|
|
3986
3996
|
spv += 1;
|
|
3987
3997
|
if (slideSize > swiperSize) breakLoop = true;
|
|
3988
3998
|
}
|
|
@@ -4119,7 +4129,7 @@ let Swiper$2 = class Swiper {
|
|
|
4119
4129
|
return false;
|
|
4120
4130
|
}
|
|
4121
4131
|
el.swiper = swiper;
|
|
4122
|
-
if (el.parentNode && el.parentNode.host && el.parentNode.host.nodeName ===
|
|
4132
|
+
if (el.parentNode && el.parentNode.host && el.parentNode.host.nodeName === swiper.params.swiperElementNodeName.toUpperCase()) {
|
|
4123
4133
|
swiper.isElement = true;
|
|
4124
4134
|
}
|
|
4125
4135
|
const getWrapperSelector = () => {
|
|
@@ -4311,7 +4321,7 @@ Object.keys(prototypes).forEach(prototypeGroup => {
|
|
|
4311
4321
|
Swiper$2.use([Resize, Observer]);
|
|
4312
4322
|
|
|
4313
4323
|
/* underscore in name -> watch for changes */
|
|
4314
|
-
const paramsList = ['eventsPrefix', 'injectStyles', 'injectStylesUrls', 'modules', 'init', '_direction', 'oneWayMovement', 'touchEventsTarget', 'initialSlide', '_speed', 'cssMode', 'updateOnWindowResize', 'resizeObserver', 'nested', 'focusableElements', '_enabled', '_width', '_height', 'preventInteractionOnTransition', 'userAgent', 'url', '_edgeSwipeDetection', '_edgeSwipeThreshold', '_freeMode', '_autoHeight', 'setWrapperSize', 'virtualTranslate', '_effect', 'breakpoints', 'breakpointsBase', '_spaceBetween', '_slidesPerView', 'maxBackfaceHiddenSlides', '_grid', '_slidesPerGroup', '_slidesPerGroupSkip', '_slidesPerGroupAuto', '_centeredSlides', '_centeredSlidesBounds', '_slidesOffsetBefore', '_slidesOffsetAfter', 'normalizeSlideIndex', '_centerInsufficientSlides', '_watchOverflow', 'roundLengths', 'touchRatio', 'touchAngle', 'simulateTouch', '_shortSwipes', '_longSwipes', 'longSwipesRatio', 'longSwipesMs', '_followFinger', 'allowTouchMove', '_threshold', 'touchMoveStopPropagation', 'touchStartPreventDefault', 'touchStartForcePreventDefault', 'touchReleaseOnEdges', 'uniqueNavElements', '_resistance', '_resistanceRatio', '_watchSlidesProgress', '_grabCursor', 'preventClicks', 'preventClicksPropagation', '_slideToClickedSlide', '_loop', 'loopAdditionalSlides', 'loopAddBlankSlides', 'loopPreventsSliding', '_rewind', '_allowSlidePrev', '_allowSlideNext', '_swipeHandler', '_noSwiping', 'noSwipingClass', 'noSwipingSelector', 'passiveListeners', 'containerModifierClass', 'slideClass', 'slideActiveClass', 'slideVisibleClass', 'slideFullyVisibleClass', 'slideNextClass', 'slidePrevClass', 'slideBlankClass', 'wrapperClass', 'lazyPreloaderClass', 'lazyPreloadPrevNext', 'runCallbacksOnInit', 'observer', 'observeParents', 'observeSlideChildren',
|
|
4324
|
+
const paramsList = ['eventsPrefix', 'injectStyles', 'injectStylesUrls', 'modules', 'init', '_direction', 'oneWayMovement', 'swiperElementNodeName', 'touchEventsTarget', 'initialSlide', '_speed', 'cssMode', 'updateOnWindowResize', 'resizeObserver', 'nested', 'focusableElements', '_enabled', '_width', '_height', 'preventInteractionOnTransition', 'userAgent', 'url', '_edgeSwipeDetection', '_edgeSwipeThreshold', '_freeMode', '_autoHeight', 'setWrapperSize', 'virtualTranslate', '_effect', 'breakpoints', 'breakpointsBase', '_spaceBetween', '_slidesPerView', 'maxBackfaceHiddenSlides', '_grid', '_slidesPerGroup', '_slidesPerGroupSkip', '_slidesPerGroupAuto', '_centeredSlides', '_centeredSlidesBounds', '_slidesOffsetBefore', '_slidesOffsetAfter', 'normalizeSlideIndex', '_centerInsufficientSlides', '_watchOverflow', 'roundLengths', 'touchRatio', 'touchAngle', 'simulateTouch', '_shortSwipes', '_longSwipes', 'longSwipesRatio', 'longSwipesMs', '_followFinger', 'allowTouchMove', '_threshold', 'touchMoveStopPropagation', 'touchStartPreventDefault', 'touchStartForcePreventDefault', 'touchReleaseOnEdges', 'uniqueNavElements', '_resistance', '_resistanceRatio', '_watchSlidesProgress', '_grabCursor', 'preventClicks', 'preventClicksPropagation', '_slideToClickedSlide', '_loop', 'loopAdditionalSlides', 'loopAddBlankSlides', 'loopPreventsSliding', '_rewind', '_allowSlidePrev', '_allowSlideNext', '_swipeHandler', '_noSwiping', 'noSwipingClass', 'noSwipingSelector', 'passiveListeners', 'containerModifierClass', 'slideClass', 'slideActiveClass', 'slideVisibleClass', 'slideFullyVisibleClass', 'slideNextClass', 'slidePrevClass', 'slideBlankClass', 'wrapperClass', 'lazyPreloaderClass', 'lazyPreloadPrevNext', 'runCallbacksOnInit', 'observer', 'observeParents', 'observeSlideChildren',
|
|
4315
4325
|
// modules
|
|
4316
4326
|
'a11y', '_autoplay', '_controller', 'coverflowEffect', 'cubeEffect', 'fadeEffect', 'flipEffect', 'creativeEffect', 'cardsEffect', 'hashNavigation', 'history', 'keyboard', 'mousewheel', '_navigation', '_pagination', 'parallax', '_scrollbar', '_thumbs', 'virtual', 'zoom', 'control'];
|
|
4317
4327
|
|
|
@@ -4666,15 +4676,15 @@ const updateOnVirtualData = swiper => {
|
|
|
4666
4676
|
};
|
|
4667
4677
|
|
|
4668
4678
|
/**
|
|
4669
|
-
* Swiper React 11.0.
|
|
4679
|
+
* Swiper React 11.0.6
|
|
4670
4680
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
4671
4681
|
* https://swiperjs.com
|
|
4672
4682
|
*
|
|
4673
|
-
* Copyright 2014-
|
|
4683
|
+
* Copyright 2014-2024 Vladimir Kharlampidi
|
|
4674
4684
|
*
|
|
4675
4685
|
* Released under the MIT License
|
|
4676
4686
|
*
|
|
4677
|
-
* Released on:
|
|
4687
|
+
* Released on: February 5, 2024
|
|
4678
4688
|
*/
|
|
4679
4689
|
|
|
4680
4690
|
|
|
@@ -4896,7 +4906,7 @@ const Swiper$1 = /*#__PURE__*/React.forwardRef(function (_temp, externalElRef) {
|
|
|
4896
4906
|
scrollbarEl: scrollbarElRef.current,
|
|
4897
4907
|
swiper: swiperRef.current
|
|
4898
4908
|
}, swiperParams);
|
|
4899
|
-
if (onSwiper) onSwiper(swiperRef.current);
|
|
4909
|
+
if (onSwiper && !swiperRef.current.destroyed) onSwiper(swiperRef.current);
|
|
4900
4910
|
// eslint-disable-next-line
|
|
4901
4911
|
return () => {
|
|
4902
4912
|
if (swiperRef.current && !swiperRef.current.destroyed) {
|
package/dist/components/Tab.js
CHANGED
|
@@ -48,6 +48,7 @@ const tabConfig = {
|
|
|
48
48
|
function Tab(props) {
|
|
49
49
|
const {
|
|
50
50
|
isActive,
|
|
51
|
+
isDisabled,
|
|
51
52
|
isHover,
|
|
52
53
|
appearance,
|
|
53
54
|
after,
|
|
@@ -63,6 +64,7 @@ function Tab(props) {
|
|
|
63
64
|
labelColor,
|
|
64
65
|
labelTextColorHover,
|
|
65
66
|
labelColorActive,
|
|
67
|
+
labelColorDisabled,
|
|
66
68
|
labelTextGradient,
|
|
67
69
|
labelTextSize,
|
|
68
70
|
labelTextWrap,
|
|
@@ -139,7 +141,7 @@ function Tab(props) {
|
|
|
139
141
|
styles: tab
|
|
140
142
|
} = useStyles.useStyles(props);
|
|
141
143
|
return /*#__PURE__*/React__default.default.createElement("div", {
|
|
142
|
-
className: clsx__default.default('tab', isActive && 'tab_state_active', isHover && 'tab_state_hover', fillClass || tabConfig.appearance[appearance] && `fill_${tabConfig.appearance[appearance].fill}`.replace(/([A-Z])/g, '-$1').toLowerCase(), fillHoverClass || tabConfig.appearance[appearance] && `fill_hover_${tabConfig.appearance[appearance].fillHover}`.replace(/([A-Z])/g, '-$1').toLowerCase(), className, sizeClass, fillActiveClass, fillActiveHoverClass,
|
|
144
|
+
className: clsx__default.default('tab', isActive && 'tab_state_active', isDisabled && 'tab_state_disabled', isHover && 'tab_state_hover', fillClass || (isDisabled ? fillDisabledClass || tabConfig.appearance[appearance] && `fill_${tabConfig.appearance[appearance].fillDisabled}`.replace(/([A-Z])/g, '-$1').toLowerCase() : fillClass || tabConfig.appearance[appearance] && `fill_${tabConfig.appearance[appearance].fill}`.replace(/([A-Z])/g, '-$1').toLowerCase()), fillHoverClass || (isDisabled ? null : tabConfig.appearance[appearance] && `fill_hover_${tabConfig.appearance[appearance].fillHover}`.replace(/([A-Z])/g, '-$1').toLowerCase()), className, sizeClass, fillActiveClass, fillActiveHoverClass, shapeClass, typeClass, widthClass, reset && 'tab-reset', set && `tab_set_${set}`, justifyContentClass, onClick && 'cursor_type_pointer'),
|
|
143
145
|
"data-tour": dataTour,
|
|
144
146
|
style: tab,
|
|
145
147
|
onClick: onClick,
|
|
@@ -155,7 +157,7 @@ function Tab(props) {
|
|
|
155
157
|
}, label && /*#__PURE__*/React__default.default.createElement(index$1.Text, {
|
|
156
158
|
className: "tab__label",
|
|
157
159
|
size: labelTextSize,
|
|
158
|
-
textColor: labelColor || tabConfig.appearance[appearance].labelColor,
|
|
160
|
+
textColor: isDisabled ? labelColorDisabled || tabConfig.appearance[appearance].labelColorDisabled : labelColor || tabConfig.appearance[appearance].labelColor,
|
|
159
161
|
textColorActive: isActive && (labelColorActive || tabConfig.appearance[appearance].labelColorActive),
|
|
160
162
|
textColorGradient: labelTextGradient,
|
|
161
163
|
textColorHover: labelTextColorHover,
|
|
@@ -169,10 +171,9 @@ function Tab(props) {
|
|
|
169
171
|
value: badgeValue
|
|
170
172
|
})), /*#__PURE__*/React__default.default.createElement(index$3.Divider, {
|
|
171
173
|
direction: dividerDirection,
|
|
172
|
-
fill: dividerFill || tabConfig.appearance[appearance].dividerFill,
|
|
174
|
+
fill: isDisabled ? dividerFillDisabled || tabConfig.appearance[appearance].dividerFillDisabled : dividerFill || tabConfig.appearance[appearance].dividerFill,
|
|
173
175
|
fillActive: isActive && (dividerFillActive || tabConfig.appearance[appearance].dividerFillActive),
|
|
174
176
|
fillActiveHover: dividerFillActiveHover,
|
|
175
|
-
fillDisabled: dividerFillDisabled,
|
|
176
177
|
fillHover: isHover && (dividerFillHover || tabConfig.appearance[appearance].dividerFillHover),
|
|
177
178
|
size: dividerSize,
|
|
178
179
|
width: "fill"
|
package/dist/components/Text.js
CHANGED
|
@@ -27,9 +27,16 @@ var React__default = /*#__PURE__*/_interopDefault(React);
|
|
|
27
27
|
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
28
28
|
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
29
29
|
|
|
30
|
+
const textConfig = {
|
|
31
|
+
appearance: {},
|
|
32
|
+
setAppearance: newComponent => {
|
|
33
|
+
textConfig.appearance = newComponent;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
30
36
|
function Text(props) {
|
|
31
37
|
const {
|
|
32
38
|
after,
|
|
39
|
+
appearance,
|
|
33
40
|
before,
|
|
34
41
|
children,
|
|
35
42
|
className,
|
|
@@ -60,6 +67,10 @@ function Text(props) {
|
|
|
60
67
|
prefix: 'text-color_',
|
|
61
68
|
propsKey: 'textColor'
|
|
62
69
|
});
|
|
70
|
+
const textAlignClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
71
|
+
prefix: 'text-align_',
|
|
72
|
+
propsKey: 'textAlign'
|
|
73
|
+
});
|
|
63
74
|
const textColorActiveClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
64
75
|
prefix: 'text-color_active_',
|
|
65
76
|
propsKey: 'textColorActive'
|
|
@@ -89,7 +100,7 @@ function Text(props) {
|
|
|
89
100
|
propsKey: 'width'
|
|
90
101
|
});
|
|
91
102
|
return /*#__PURE__*/React__default.default.createElement(Tag, {
|
|
92
|
-
className: clsx__default.default(className, 'text', sizeClass, weightClass, textColorClass, textColorActiveClass, textColorHoverClass, textGradientClass, textStyleClass, textTruncateClass, textWrapClass, type && `text_type_${type}`, mode && `text_mode_${mode}`, widthClass, cursorClass, onClick && (cursor || 'cursor_type_pointer')),
|
|
103
|
+
className: clsx__default.default(className, 'text', sizeClass || textConfig.appearance[appearance] && `text_size_${textConfig.appearance[appearance].size}`.replace(/([A-Z])/g, '-$1').toLowerCase(), weightClass, textAlignClass, textColorClass || textConfig.appearance[appearance] && `text-color_${textConfig.appearance[appearance].textColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), textColorActiveClass, textColorHoverClass, textGradientClass, textStyleClass, textTruncateClass, textWrapClass, type && `text_type_${type}`, mode && `text_mode_${mode}`, widthClass, cursorClass, onClick && (cursor || 'cursor_type_pointer')),
|
|
93
104
|
"data-tour": dataTour,
|
|
94
105
|
htmlFor: htmlFor,
|
|
95
106
|
style: textStyles,
|
|
@@ -346,3 +357,4 @@ Text.__docgenInfo = {
|
|
|
346
357
|
};
|
|
347
358
|
|
|
348
359
|
exports.Text = Text;
|
|
360
|
+
exports.textConfig = textConfig;
|
|
@@ -23,10 +23,15 @@ const textareaConfig = {
|
|
|
23
23
|
state: {},
|
|
24
24
|
setState: newComponent => {
|
|
25
25
|
textareaConfig.state = newComponent;
|
|
26
|
+
},
|
|
27
|
+
appearance: {},
|
|
28
|
+
setAppearance: newComponent => {
|
|
29
|
+
textareaConfig.appearance = newComponent;
|
|
26
30
|
}
|
|
27
31
|
};
|
|
28
32
|
function Textarea(props) {
|
|
29
33
|
const {
|
|
34
|
+
appearance,
|
|
30
35
|
id,
|
|
31
36
|
className,
|
|
32
37
|
placeholder,
|
|
@@ -82,7 +87,7 @@ function Textarea(props) {
|
|
|
82
87
|
propsKey: 'width'
|
|
83
88
|
});
|
|
84
89
|
return /*#__PURE__*/React__default.default.createElement("textarea", {
|
|
85
|
-
className: clsx__default.default(className, 'textarea', (textSizeClass || textColorClass || weightClass) && 'text', caretClass, fillClass, borderColorClass || textareaConfig.state[state]?.borderColor && `border-color_${textareaConfig.state[state].borderColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), borderColorHoverClass, placeholderTextColorClass || textareaConfig.state[state]?.placeholderTextColor && `placeholder-text-color_${textareaConfig.state[state].placeholderTextColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), sizeClass, shapeClass, textSizeClass, textColorClass || textareaConfig.state[state]?.textColor && `text-color_${textareaConfig.state[state].textColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), weightClass, widthClass),
|
|
90
|
+
className: clsx__default.default(className, 'textarea', (textSizeClass || textColorClass || weightClass) && 'text', caretClass, fillClass, borderColorClass || textareaConfig.state[state]?.borderColor && `border-color_${textareaConfig.state[state].borderColor}`.replace(/([A-Z])/g, '-$1').toLowerCase() || textareaConfig.appearance[appearance]?.borderColor && `border-color_${textareaConfig.appearance[appearance].borderColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), borderColorHoverClass || textareaConfig.appearance[appearance]?.borderHover && `border-color_hover_${textareaConfig.appearance[appearance].borderHover}`.replace(/([A-Z])/g, '-$1').toLowerCase(), placeholderTextColorClass || textareaConfig.state[state]?.placeholderTextColor && `placeholder-text-color_${textareaConfig.state[state].placeholderTextColor}`.replace(/([A-Z])/g, '-$1').toLowerCase() || textareaConfig.appearance[appearance]?.placeholderTextColor && `placeholder-text-color_${textareaConfig.appearance[appearance].placeholderTextColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), sizeClass, shapeClass || textareaConfig.appearance[appearance]?.shape && `textarea_shape_${textareaConfig.appearance[appearance].shape}`.replace(/([A-Z])/g, '-$1').toLowerCase(), textSizeClass || textareaConfig.appearance[appearance]?.textSize && `text_size_${textareaConfig.appearance[appearance].textSize}`.replace(/([A-Z])/g, '-$1').toLowerCase(), textColorClass || textareaConfig.state[state]?.textColor && `text-color_${textareaConfig.state[state].textColor}`.replace(/([A-Z])/g, '-$1').toLowerCase() || textareaConfig.appearance[appearance]?.textColor && `text-color_${textareaConfig.appearance[appearance].textColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), weightClass, widthClass),
|
|
86
91
|
id: id,
|
|
87
92
|
disabled: disabled,
|
|
88
93
|
placeholder: placeholder,
|
package/dist/components/Title.js
CHANGED
|
@@ -29,6 +29,12 @@ var React__default = /*#__PURE__*/_interopDefault(React);
|
|
|
29
29
|
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
30
30
|
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
31
31
|
|
|
32
|
+
const titleConfig = {
|
|
33
|
+
appearance: {},
|
|
34
|
+
setAppearance: newComponent => {
|
|
35
|
+
titleConfig.appearance = newComponent;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
32
38
|
function Title(props) {
|
|
33
39
|
const {
|
|
34
40
|
dataTour,
|
|
@@ -42,6 +48,7 @@ function Title(props) {
|
|
|
42
48
|
onClick
|
|
43
49
|
} = props;
|
|
44
50
|
const {
|
|
51
|
+
appearance,
|
|
45
52
|
mode,
|
|
46
53
|
size,
|
|
47
54
|
sizeMobile,
|
|
@@ -114,7 +121,7 @@ function Title(props) {
|
|
|
114
121
|
return size;
|
|
115
122
|
}, [isMobile, isTablet, isDesktop]);
|
|
116
123
|
return /*#__PURE__*/React__default.default.createElement(Tag, {
|
|
117
|
-
className: clsx__default.default(className, 'title', fillColorClass, size && `title_size_${size}`, mode && `title_mode_${mode}`, textColorClass, textColorActiveClass, textColorHoverClass, typeClass, textGradientClass, textStyleClass, weightClass, textWrap && `word-wrap_${textWrap}`),
|
|
124
|
+
className: clsx__default.default(className, 'title', fillColorClass, size && `title_size_${size}`, mode && `title_mode_${mode}`, textColorClass || titleConfig.appearance[appearance] && `text-color_${titleConfig.appearance[appearance].textColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), textColorActiveClass, textColorHoverClass, typeClass, textGradientClass, textStyleClass, weightClass, textWrap && `word-wrap_${textWrap}`),
|
|
118
125
|
"data-tour": dataTour,
|
|
119
126
|
onClick: onClick,
|
|
120
127
|
style: titleStyles
|
|
@@ -151,7 +158,7 @@ Title.propTypes = {
|
|
|
151
158
|
onClick: PropTypes__default.default.func
|
|
152
159
|
};
|
|
153
160
|
Title.defaultProps = {
|
|
154
|
-
size: '
|
|
161
|
+
size: 'h3'
|
|
155
162
|
};
|
|
156
163
|
Title.__docgenInfo = {
|
|
157
164
|
"description": "",
|
|
@@ -160,7 +167,7 @@ Title.__docgenInfo = {
|
|
|
160
167
|
"props": {
|
|
161
168
|
"size": {
|
|
162
169
|
"defaultValue": {
|
|
163
|
-
"value": "'
|
|
170
|
+
"value": "'h3'",
|
|
164
171
|
"computed": false
|
|
165
172
|
},
|
|
166
173
|
"description": "",
|
|
@@ -390,3 +397,4 @@ Title.__docgenInfo = {
|
|
|
390
397
|
};
|
|
391
398
|
|
|
392
399
|
exports.Title = Title;
|
|
400
|
+
exports.titleConfig = titleConfig;
|
|
@@ -13,31 +13,31 @@
|
|
|
13
13
|
.chips {
|
|
14
14
|
&&_size {
|
|
15
15
|
&_xxs {
|
|
16
|
-
padding: 2px 6px;
|
|
16
|
+
padding: var(--chips-size-xxs-padding, 2px 6px);
|
|
17
17
|
@mixin text-s;
|
|
18
18
|
}
|
|
19
19
|
&_xs {
|
|
20
|
-
padding: 2px 6px;
|
|
20
|
+
padding: var(--chips-size-xs-padding, 2px 6px);
|
|
21
21
|
@mixin text-s;
|
|
22
22
|
}
|
|
23
23
|
&_s {
|
|
24
|
-
padding: 2px 6px;
|
|
24
|
+
padding: var(--chips-size-s-padding, 2px 6px);
|
|
25
25
|
@mixin text-s;
|
|
26
26
|
}
|
|
27
27
|
&_m {
|
|
28
|
-
padding: 2px 6px;
|
|
28
|
+
padding: var(--chips-size-m-padding, 2px 6px);
|
|
29
29
|
@mixin text-m;
|
|
30
30
|
}
|
|
31
31
|
&_l {
|
|
32
|
-
padding: 2px 6px;
|
|
32
|
+
padding: var(--chips-size-l-padding, 2px 6px);
|
|
33
33
|
@mixin text-l;
|
|
34
34
|
}
|
|
35
35
|
&_xl {
|
|
36
|
-
padding: 2px 6px;
|
|
36
|
+
padding: var(--chips-size-xl-padding, 2px 6px);
|
|
37
37
|
@mixin text-l;
|
|
38
38
|
}
|
|
39
39
|
&_xxl {
|
|
40
|
-
padding: 6px 12px;
|
|
40
|
+
padding: var(--chips-size-xxl-padding, 6px 12px);
|
|
41
41
|
@mixin text-xxl;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -12,54 +12,15 @@
|
|
|
12
12
|
top: 6px;
|
|
13
13
|
width: 9px;
|
|
14
14
|
}
|
|
15
|
-
.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle {
|
|
16
|
-
margin-left: -4px;
|
|
17
|
-
position: absolute;
|
|
18
|
-
width: 0;
|
|
19
|
-
}
|
|
20
|
-
.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::after, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::after {
|
|
21
|
-
box-sizing: content-box;
|
|
22
|
-
position: absolute;
|
|
23
|
-
border: 8px solid transparent;
|
|
24
|
-
height: 0;
|
|
25
|
-
width: 1px;
|
|
26
|
-
content: "";
|
|
27
|
-
z-index: -1;
|
|
28
|
-
border-width: 8px;
|
|
29
|
-
left: -8px;
|
|
30
|
-
}
|
|
31
|
-
.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before {
|
|
32
|
-
border-bottom-color: #aeaeae;
|
|
33
|
-
}
|
|
34
15
|
.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::after {
|
|
39
|
-
border-top: none;
|
|
40
|
-
border-bottom-color: #f0f0f0;
|
|
41
|
-
}
|
|
42
|
-
.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::after {
|
|
43
|
-
top: 0;
|
|
44
|
-
}
|
|
45
|
-
.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle::before {
|
|
46
|
-
top: -1px;
|
|
47
|
-
border-bottom-color: #aeaeae;
|
|
16
|
+
fill: #f0f0f0;
|
|
17
|
+
color: #f0f0f0;
|
|
18
|
+
stroke: #aeaeae;
|
|
48
19
|
}
|
|
49
20
|
.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before, .react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::after {
|
|
54
|
-
border-bottom: none;
|
|
55
|
-
border-top-color: #fff;
|
|
56
|
-
}
|
|
57
|
-
.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::after {
|
|
58
|
-
bottom: 0;
|
|
59
|
-
}
|
|
60
|
-
.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle::before {
|
|
61
|
-
bottom: -1px;
|
|
62
|
-
border-top-color: #aeaeae;
|
|
21
|
+
fill: #fff;
|
|
22
|
+
color: #fff;
|
|
23
|
+
stroke: #aeaeae;
|
|
63
24
|
}
|
|
64
25
|
.react-datepicker-wrapper {
|
|
65
26
|
display: inline-block;
|
|
@@ -75,9 +36,7 @@
|
|
|
75
36
|
border-radius: 0.3rem;
|
|
76
37
|
display: inline-block;
|
|
77
38
|
position: relative;
|
|
78
|
-
|
|
79
|
-
.react-datepicker--time-only .react-datepicker__triangle {
|
|
80
|
-
left: 35px;
|
|
39
|
+
line-height: initial;
|
|
81
40
|
}
|
|
82
41
|
.react-datepicker--time-only .react-datepicker__time-container {
|
|
83
42
|
border-left: 0;
|
|
@@ -87,36 +46,9 @@
|
|
|
87
46
|
border-bottom-left-radius: 0.3rem;
|
|
88
47
|
border-bottom-right-radius: 0.3rem;
|
|
89
48
|
}
|
|
90
|
-
.react-datepicker__triangle {
|
|
91
|
-
position: absolute;
|
|
92
|
-
left: 50px;
|
|
93
|
-
}
|
|
94
49
|
.react-datepicker-popper {
|
|
95
50
|
z-index: 1;
|
|
96
|
-
|
|
97
|
-
.react-datepicker-popper[data-placement^=bottom] {
|
|
98
|
-
padding-top: 10px;
|
|
99
|
-
}
|
|
100
|
-
.react-datepicker-popper[data-placement=bottom-end] .react-datepicker__triangle, .react-datepicker-popper[data-placement=top-end] .react-datepicker__triangle {
|
|
101
|
-
left: auto;
|
|
102
|
-
right: 50px;
|
|
103
|
-
}
|
|
104
|
-
.react-datepicker-popper[data-placement^=top] {
|
|
105
|
-
padding-bottom: 10px;
|
|
106
|
-
}
|
|
107
|
-
.react-datepicker-popper[data-placement^=right] {
|
|
108
|
-
padding-left: 8px;
|
|
109
|
-
}
|
|
110
|
-
.react-datepicker-popper[data-placement^=right] .react-datepicker__triangle {
|
|
111
|
-
left: auto;
|
|
112
|
-
right: 42px;
|
|
113
|
-
}
|
|
114
|
-
.react-datepicker-popper[data-placement^=left] {
|
|
115
|
-
padding-right: 8px;
|
|
116
|
-
}
|
|
117
|
-
.react-datepicker-popper[data-placement^=left] .react-datepicker__triangle {
|
|
118
|
-
left: 42px;
|
|
119
|
-
right: auto;
|
|
51
|
+
line-height: 0;
|
|
120
52
|
}
|
|
121
53
|
.react-datepicker__header {
|
|
122
54
|
text-align: center;
|
|
@@ -442,10 +374,10 @@
|
|
|
442
374
|
background-color: #ff6803;
|
|
443
375
|
color: #fff;
|
|
444
376
|
}
|
|
445
|
-
.react-datepicker__day--holidays .
|
|
446
|
-
.react-datepicker__month-text--holidays .
|
|
447
|
-
.react-datepicker__quarter-text--holidays .
|
|
448
|
-
.react-datepicker__year-text--holidays .
|
|
377
|
+
.react-datepicker__day--holidays .overlay,
|
|
378
|
+
.react-datepicker__month-text--holidays .overlay,
|
|
379
|
+
.react-datepicker__quarter-text--holidays .overlay,
|
|
380
|
+
.react-datepicker__year-text--holidays .overlay {
|
|
449
381
|
position: absolute;
|
|
450
382
|
bottom: 100%;
|
|
451
383
|
left: 50%;
|
|
@@ -465,10 +397,10 @@
|
|
|
465
397
|
.react-datepicker__year-text--holidays:hover {
|
|
466
398
|
background-color: #cf5300;
|
|
467
399
|
}
|
|
468
|
-
.react-datepicker__day--holidays:hover .
|
|
469
|
-
.react-datepicker__month-text--holidays:hover .
|
|
470
|
-
.react-datepicker__quarter-text--holidays:hover .
|
|
471
|
-
.react-datepicker__year-text--holidays:hover .
|
|
400
|
+
.react-datepicker__day--holidays:hover .overlay,
|
|
401
|
+
.react-datepicker__month-text--holidays:hover .overlay,
|
|
402
|
+
.react-datepicker__quarter-text--holidays:hover .overlay,
|
|
403
|
+
.react-datepicker__year-text--holidays:hover .overlay {
|
|
472
404
|
visibility: visible;
|
|
473
405
|
opacity: 1;
|
|
474
406
|
}
|
|
@@ -577,6 +509,23 @@
|
|
|
577
509
|
.react-datepicker__year-text--disabled:hover {
|
|
578
510
|
background-color: transparent;
|
|
579
511
|
}
|
|
512
|
+
.react-datepicker__day--disabled .overlay,
|
|
513
|
+
.react-datepicker__month-text--disabled .overlay,
|
|
514
|
+
.react-datepicker__quarter-text--disabled .overlay,
|
|
515
|
+
.react-datepicker__year-text--disabled .overlay {
|
|
516
|
+
position: absolute;
|
|
517
|
+
bottom: 70%;
|
|
518
|
+
left: 50%;
|
|
519
|
+
transform: translateX(-50%);
|
|
520
|
+
background-color: #333;
|
|
521
|
+
color: #fff;
|
|
522
|
+
padding: 4px;
|
|
523
|
+
border-radius: 4px;
|
|
524
|
+
white-space: nowrap;
|
|
525
|
+
visibility: hidden;
|
|
526
|
+
opacity: 0;
|
|
527
|
+
transition: visibility 0s, opacity 0.3s ease-in-out;
|
|
528
|
+
}
|
|
580
529
|
.react-datepicker__input-container {
|
|
581
530
|
position: relative;
|
|
582
531
|
display: inline-block;
|
|
@@ -111,6 +111,14 @@
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
+
.grid {
|
|
115
|
+
&_scroll_horizontal {
|
|
116
|
+
min-width: 100%;
|
|
117
|
+
overflow-x: auto;
|
|
118
|
+
scrollbar-width: thin;
|
|
119
|
+
scrollbar-color: var(--color-accent-secondary) var(--color-surface-tertiary);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
114
122
|
.grid {
|
|
115
123
|
&_shape {
|
|
116
124
|
&_rounded {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Swiper 11.0.
|
|
2
|
+
* Swiper 11.0.6
|
|
3
3
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
4
4
|
* https://swiperjs.com
|
|
5
5
|
*
|
|
6
|
-
* Copyright 2014-
|
|
6
|
+
* Copyright 2014-2024 Vladimir Kharlampidi
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on:
|
|
10
|
+
* Released on: February 5, 2024
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
/* FONT_START */
|
|
@@ -923,7 +923,7 @@ div.swiper-block {
|
|
|
923
923
|
position: relative;
|
|
924
924
|
&__swiper {
|
|
925
925
|
& .swiper-wrapper {
|
|
926
|
-
|
|
926
|
+
box-sizing: border-box;
|
|
927
927
|
}
|
|
928
928
|
}
|
|
929
929
|
&__wrapper {
|
|
@@ -55,9 +55,11 @@ div.tab-reset {
|
|
|
55
55
|
}
|
|
56
56
|
.tab {
|
|
57
57
|
&_size {
|
|
58
|
-
@each $size in normal, compact, xxs, xs, s, m, l, xl, xxl
|
|
58
|
+
@each $size in normal, compact, xxs, xs, s, m, l, xl, xxl {
|
|
59
59
|
&_$(size) {
|
|
60
60
|
^^&__wrapper {
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
61
63
|
padding: var(--tab-size-$(size)-padding);
|
|
62
64
|
gap: var(--tab-size-$(size)-gap);
|
|
63
65
|
}
|
|
@@ -7,17 +7,17 @@
|
|
|
7
7
|
align-items: flex-start;
|
|
8
8
|
}
|
|
9
9
|
&-center {
|
|
10
|
-
align-items: center;
|
|
11
10
|
text-align: center;
|
|
11
|
+
align-items: center;
|
|
12
12
|
}
|
|
13
13
|
&-right {
|
|
14
|
-
align-items: flex-end;
|
|
15
14
|
text-align: right;
|
|
15
|
+
align-items: flex-end;
|
|
16
16
|
}
|
|
17
17
|
&-auto {
|
|
18
|
-
align-items: center;
|
|
19
|
-
text-align: center;
|
|
20
18
|
justify-content: space-between;
|
|
19
|
+
text-align: center;
|
|
20
|
+
align-items: center;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
&^&_left {
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
@each $type in accent, primary, secondary, tertiary, surface, success, error {
|
|
3
3
|
&_$(type) {
|
|
4
4
|
&-border {
|
|
5
|
-
@each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, active,
|
|
6
|
-
disabled, hover, invert {
|
|
5
|
+
@each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, active, disabled, hover, invert {
|
|
7
6
|
&-$(color) {
|
|
8
7
|
border-width: 1px;
|
|
9
8
|
border-color: var(--color-$(type)-border-$(color));
|