@itcase/ui 1.2.29 → 1.2.31
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/{Badge-TyPbVqR_.js → Badge-BMKD9teI.js} +6 -2
- package/dist/{Badge-BZYBmgBK.js → Badge-DQnTpE4I.js} +6 -2
- package/dist/{Button-avhviao1.js → Button-DS2l65oq.js} +4 -4
- package/dist/{Button-BcOsYgoT.js → Button-x4mnZJoS.js} +3 -3
- package/dist/Divider-3upWnf8a.js +71 -0
- package/dist/Divider-DE2Q5J36.js +68 -0
- package/dist/{DropdownItem-toApJyeB.js → DropdownItem-CT9Dmiub.js} +38 -14
- package/dist/DropdownItem-DzDP45iO.js +179 -0
- package/dist/{Icon-ClsRaxDk.js → Icon-B7BJo5kW.js} +14 -19
- package/dist/{Icon-B2BwTQnP.js → Icon-PoesVPJn.js} +13 -18
- package/dist/{Input-BaicBuyd.js → Input-DXbt_RWB.js} +1 -2
- package/dist/{Input-DbzsXvEf.js → Input-HGM-rzzr.js} +1 -2
- package/dist/{Label-fp2Bus_T.js → Label-BBm19sQ-.js} +3 -6
- package/dist/{Label-BfotYOmD.js → Label-Chm6tl6E.js} +3 -6
- package/dist/{Link-CzC1kU5C.js → Link-CeQuavin.js} +1 -1
- package/dist/Loader-CqEocvjh.js +56 -0
- package/dist/Loader-DRTOGvF1.js +59 -0
- package/dist/{MenuItem-BJ3uGKCH.js → MenuItem-DPJ_9FxW.js} +14 -3
- package/dist/{MenuItem-BEYVY0Vf.js → MenuItem-zHzWXIvQ.js} +15 -4
- package/dist/{Scrollbar-CrGXCZ_F.js → Scrollbar-Bo7z7ELm.js} +10 -13
- package/dist/{Scrollbar-DVlIZzvz.js → Scrollbar-CKbA0jQU.js} +10 -13
- package/dist/{Text-CC0xnhmx.js → Text-1b-Bk7yG.js} +3 -4
- package/dist/{Text-kxGZButz.js → Text-DlSG_p4u.js} +3 -4
- package/dist/{Title-CQ_Fr1hO.js → Title-mkus84Rh.js} +3 -6
- package/dist/{Title-Ze_OL1Co.js → Title-o5ofk8ge.js} +3 -6
- package/dist/{Tooltip-PrwacZFC.js → Tooltip-CNJN2lf5.js} +19 -3
- package/dist/{Tooltip-ccRCMYQM.js → Tooltip-f5EWhsGj.js} +19 -3
- package/dist/appearance/Avatar.js +5 -0
- package/dist/appearance/Code.js +5 -0
- package/dist/appearance/Divider.js +5 -0
- package/dist/appearance/DropdownItem.js +5 -0
- package/dist/appearance/Modal.js +5 -0
- package/dist/appearance/Response.js +95 -21
- package/dist/appearance/SiteMenu.js +5 -0
- package/dist/appearance/Switch.js +5 -0
- package/dist/appearance/Tile.js +5 -0
- package/dist/cjs/appearance/Avatar.js +7 -0
- package/dist/cjs/appearance/Code.js +7 -0
- package/dist/cjs/appearance/Divider.js +7 -0
- package/dist/cjs/appearance/DropdownItem.js +7 -0
- package/dist/cjs/appearance/Modal.js +7 -0
- package/dist/cjs/appearance/Response.js +95 -21
- package/dist/cjs/appearance/SiteMenu.js +7 -0
- package/dist/cjs/appearance/Switch.js +7 -0
- package/dist/cjs/appearance/Tile.js +7 -0
- package/dist/cjs/components/Accordion.js +6 -6
- package/dist/cjs/components/Avatar.js +22 -8
- package/dist/cjs/components/Badge.js +2 -3
- package/dist/cjs/components/Breadcrumbs.js +4 -8
- package/dist/cjs/components/Button.js +7 -8
- package/dist/cjs/components/Caption.js +0 -1
- package/dist/cjs/components/Card.js +3 -12
- package/dist/cjs/components/Cell.js +7 -12
- package/dist/cjs/components/Checkbox.js +1 -5
- package/dist/cjs/components/Chips.js +1 -2
- package/dist/cjs/components/Choice.js +6 -7
- package/dist/cjs/components/Code.js +31 -10
- package/dist/cjs/components/ContextMenu.js +9 -21
- package/dist/cjs/components/CookiesWarning.js +9 -15
- package/dist/cjs/components/DadataHintField.js +1 -2
- package/dist/cjs/components/DatePicker.js +10 -1053
- package/dist/cjs/components/Divider.js +3 -2
- package/dist/cjs/components/Dot.js +1 -3
- package/dist/cjs/components/Dropdown.js +6 -4
- package/dist/cjs/components/Flex.js +0 -1
- package/dist/cjs/components/Grid.js +1 -8
- package/dist/cjs/components/Group.js +0 -1
- package/dist/cjs/components/HTMLContent.js +0 -1
- package/dist/cjs/components/Icon.js +5 -6
- package/dist/cjs/components/Image.js +0 -1
- package/dist/cjs/components/Input.js +1 -2
- package/dist/cjs/components/InputMask.js +7 -9
- package/dist/cjs/components/InputPassword.js +5 -6
- package/dist/cjs/components/Label.js +4 -5
- package/dist/cjs/components/LanguageSelector.js +5 -6
- package/dist/cjs/components/Link.js +0 -1
- package/dist/cjs/components/List.js +0 -1
- package/dist/cjs/components/Loader.js +2 -3
- package/dist/cjs/components/Logo.js +0 -1
- package/dist/cjs/components/Menu.js +2 -3
- package/dist/cjs/components/MenuItem.js +2 -3
- package/dist/cjs/components/Modal.js +27 -7
- package/dist/cjs/components/ModalSheetBottom.js +34 -0
- package/dist/cjs/components/Notification.js +7 -6
- package/dist/cjs/components/Overlay.js +0 -1
- package/dist/cjs/components/Page.js +3 -46
- package/dist/cjs/components/Pagination.js +8 -7
- package/dist/cjs/components/Panel.js +1 -2
- package/dist/cjs/components/Radio.js +1 -3
- package/dist/cjs/components/RangeSlider.js +0 -1
- package/dist/cjs/components/Response.js +20 -15
- package/dist/cjs/components/SVGContent.js +0 -1
- package/dist/cjs/components/ScrollOnDrag.js +0 -1
- package/dist/cjs/components/ScrollToView.js +0 -1
- package/dist/cjs/components/Scrollbar.js +1 -1
- package/dist/cjs/components/Search.js +9 -12
- package/dist/cjs/components/Segmented.js +1 -2
- package/dist/cjs/components/Select.js +7 -7
- package/dist/cjs/components/SiteMenu.js +18 -8
- package/dist/cjs/components/Swiper.js +6 -8
- package/dist/cjs/components/Switch.js +12 -3
- package/dist/cjs/components/Tab.js +4 -4
- package/dist/cjs/components/Text.js +1 -2
- package/dist/cjs/components/Textarea.js +0 -1
- package/dist/cjs/components/Tile.js +22 -6
- package/dist/cjs/components/Title.js +1 -2
- package/dist/cjs/components/Tooltip.js +3 -4
- package/dist/cjs/components/Video.js +0 -1
- package/dist/cjs/components/Wrapper.js +3 -8
- package/dist/cjs/context/Notifications.js +0 -5
- package/dist/cjs/context/UIContext.js +0 -9
- package/dist/cjs/hooks/useDeviceTargetClass.js +0 -1
- package/dist/cjs/hooks/useStyles.js +0 -1
- package/dist/components/Accordion.js +8 -8
- package/dist/components/Avatar.js +23 -10
- package/dist/components/Badge.js +2 -3
- package/dist/components/Breadcrumbs.js +6 -10
- package/dist/components/Button.js +8 -9
- package/dist/components/Caption.js +0 -1
- package/dist/components/Card.js +3 -12
- package/dist/components/Cell.js +8 -13
- package/dist/components/Checkbox.js +1 -5
- package/dist/components/Chips.js +1 -2
- package/dist/components/Choice.js +7 -8
- package/dist/components/Code.js +32 -12
- package/dist/components/ContextMenu.js +10 -22
- package/dist/components/CookiesWarning.js +10 -16
- package/dist/components/DadataHintField.js +2 -3
- package/dist/components/DatePicker.js +11 -1054
- package/dist/components/Divider.js +2 -2
- package/dist/components/Dot.js +1 -3
- package/dist/components/Dropdown.js +7 -6
- package/dist/components/Flex.js +0 -1
- package/dist/components/Grid.js +1 -8
- package/dist/components/Group.js +0 -1
- package/dist/components/HTMLContent.js +0 -1
- package/dist/components/Icon.js +6 -7
- package/dist/components/Image.js +0 -1
- package/dist/components/Input.js +1 -2
- package/dist/components/InputMask.js +7 -9
- package/dist/components/InputPassword.js +6 -7
- package/dist/components/Label.js +4 -5
- package/dist/components/LanguageSelector.js +6 -7
- package/dist/components/Link.js +2 -3
- package/dist/components/List.js +2 -3
- package/dist/components/Loader.js +2 -3
- package/dist/components/Logo.js +2 -3
- package/dist/components/Menu.js +4 -5
- package/dist/components/MenuItem.js +4 -5
- package/dist/components/Modal.js +27 -8
- package/dist/components/ModalSheetBottom.js +32 -0
- package/dist/components/Notification.js +8 -7
- package/dist/components/Overlay.js +0 -1
- package/dist/components/Page.js +3 -46
- package/dist/components/Pagination.js +10 -9
- package/dist/components/Panel.js +1 -2
- package/dist/components/Radio.js +1 -3
- package/dist/components/RangeSlider.js +0 -1
- package/dist/components/Response.js +21 -16
- package/dist/components/SVGContent.js +0 -1
- package/dist/components/ScrollOnDrag.js +1 -2
- package/dist/components/ScrollToView.js +0 -1
- package/dist/components/Scrollbar.js +1 -1
- package/dist/components/Search.js +10 -13
- package/dist/components/Segmented.js +1 -2
- package/dist/components/Select.js +9 -9
- package/dist/components/SiteMenu.js +19 -10
- package/dist/components/Swiper.js +6 -8
- package/dist/components/Switch.js +12 -4
- package/dist/components/Tab.js +6 -6
- package/dist/components/Text.js +1 -2
- package/dist/components/Textarea.js +0 -1
- package/dist/components/Tile.js +22 -7
- package/dist/components/Title.js +1 -2
- package/dist/components/Tooltip.js +3 -4
- package/dist/components/Video.js +0 -1
- package/dist/components/Wrapper.js +3 -8
- package/dist/context/Notifications.js +1 -6
- package/dist/context/UIContext.js +0 -9
- package/dist/css/components/ModalSheetBottom/ModalSheetBottom.css +29 -0
- package/dist/hooks/useDeviceTargetClass.js +0 -1
- package/dist/hooks/useStyles.js +0 -1
- package/dist/stories/Response.stories.js +38 -12
- package/dist/{tslib.es6-w7hdJ3oZ.js → tslib.es6-5FtW-kfi.js} +1 -1
- package/dist/types/appearance/Avatar/index.d.ts +2 -0
- package/dist/types/appearance/Code/index.d.ts +2 -0
- package/dist/types/appearance/Divider/index.d.ts +2 -0
- package/dist/types/appearance/DropdownItem/index.d.ts +2 -0
- package/dist/types/appearance/Modal/index.d.ts +2 -0
- package/dist/types/appearance/SiteMenu/index.d.ts +2 -0
- package/dist/types/appearance/Switch/index.d.ts +2 -0
- package/dist/types/appearance/Tile/index.d.ts +2 -0
- package/dist/types/components/Avatar/Avatar.d.ts +3 -2
- package/dist/types/components/Avatar/Avatar.interface.d.ts +25 -11
- package/dist/types/components/Avatar/index.d.ts +1 -1
- package/dist/types/components/Badge/Badge.d.ts +6 -0
- package/dist/types/components/Breadcrumbs/BreadcrumbsItem.d.ts +0 -5
- package/dist/types/components/Button/Button.interface.d.ts +6 -6
- package/dist/types/components/Card/Card.d.ts +0 -10
- package/dist/types/components/Cell/Cell.d.ts +0 -6
- package/dist/types/components/Checkbox/Checkbox.d.ts +0 -5
- package/dist/types/components/Code/Code.d.ts +6 -8
- package/dist/types/components/Code/Code.interface.d.ts +21 -2
- package/dist/types/components/Code/index.d.ts +1 -1
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +0 -5
- package/dist/types/components/CookiesWarning/CookiesWarning.d.ts +0 -7
- package/dist/types/components/Divider/Divider.d.ts +3 -2
- package/dist/types/components/Divider/Divider.interface.d.ts +11 -0
- package/dist/types/components/Divider/index.d.ts +1 -1
- package/dist/types/components/Dot/Dot.d.ts +0 -3
- package/dist/types/components/Dropdown/Dropdown.d.ts +0 -7
- package/dist/types/components/Dropdown/Dropdown.interface.d.ts +28 -15
- package/dist/types/components/Dropdown/DropdownItem.d.ts +5 -4
- package/dist/types/components/Dropdown/index.d.ts +2 -2
- package/dist/types/components/Grid/Grid.d.ts +0 -5
- package/dist/types/components/Grid/GridRow.d.ts +0 -5
- package/dist/types/components/Label/Label.d.ts +0 -5
- package/dist/types/components/Loader/Loader.interface.d.ts +3 -3
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +2 -2
- package/dist/types/components/Modal/Modal.d.ts +3 -2
- package/dist/types/components/Modal/Modal.interface.d.ts +22 -6
- package/dist/types/components/Modal/index.d.ts +2 -2
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.d.ts +3 -0
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.interface.d.ts +11 -0
- package/dist/types/components/ModalSheetBottom/index.d.ts +1 -0
- package/dist/types/components/Notification/Notification.interface.d.ts +8 -7
- package/dist/types/components/Page/Page.d.ts +3 -0
- package/dist/types/components/Page/Page.interface.d.ts +18 -0
- package/dist/types/components/Page/index.d.ts +1 -42
- package/dist/types/components/Radio/Radio.d.ts +0 -1
- package/dist/types/components/Response/Response.interface.d.ts +4 -4
- package/dist/types/components/Scrollbar/Scrollbar.d.ts +0 -5
- package/dist/types/components/Search/Search.interface.d.ts +9 -9
- package/dist/types/components/SiteMenu/SiteMenu.d.ts +3 -2
- package/dist/types/components/SiteMenu/SiteMenu.interface.d.ts +18 -5
- package/dist/types/components/SiteMenu/index.d.ts +2 -2
- package/dist/types/components/Swiper/Swiper.d.ts +0 -1
- package/dist/types/components/Switch/Switch.d.ts +3 -2
- package/dist/types/components/Switch/Switch.interface.d.ts +17 -4
- package/dist/types/components/Switch/index.d.ts +1 -1
- package/dist/types/components/Text/Text.d.ts +0 -5
- package/dist/types/components/Text/Text.interface.d.ts +1 -1
- package/dist/types/components/Tile/Tile.d.ts +3 -2
- package/dist/types/components/Tile/Tile.interface.d.ts +21 -9
- package/dist/types/components/Tile/index.d.ts +1 -1
- package/dist/types/components/Title/Title.d.ts +0 -5
- package/dist/types/components/Wrapper/Wrapper.d.ts +0 -6
- package/dist/types/context/Notifications.d.ts +0 -7
- package/dist/types/context/UIContext.d.ts +10 -2
- package/dist/types/icons/index.d.ts +2 -2
- package/dist/types/types/componentProps/appearanceKeys.d.ts +1 -1
- package/package.json +29 -32
- package/dist/Divider-BjB5MD6u.js +0 -50
- package/dist/Divider-U5UdY-ef.js +0 -48
- package/dist/DropdownItem-CFkRx8LX.js +0 -156
- package/dist/Loader-CU_5Ydmy.js +0 -53
- package/dist/Loader-Ck59IXGG.js +0 -56
- package/dist/types/constants/componentProps/align.d.ts +0 -2
- package/dist/types/constants/componentProps/alignDirection.d.ts +0 -2
- package/dist/types/constants/componentProps/fill.d.ts +0 -2
- package/dist/types/constants/componentProps/horizontalResizeMode.d.ts +0 -2
- package/dist/types/constants/componentProps/position.d.ts +0 -2
- package/dist/types/constants/componentProps/verticalResizeMode.d.ts +0 -2
- /package/dist/css/{styles → mediaqueries}/mediaqueries.css +0 -0
package/dist/components/Code.js
CHANGED
|
@@ -1,19 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as __assign } from '../tslib.es6-5FtW-kfi.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import OtpInput from 'react-otp-input';
|
|
6
|
+
import { codeAppearance } from '../appearance/Code.js';
|
|
6
7
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
7
8
|
import 'lodash/castArray';
|
|
8
9
|
import 'lodash/camelCase';
|
|
9
10
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
11
|
import '../hooks/useMediaQueries.js';
|
|
12
12
|
import 'react-responsive';
|
|
13
13
|
|
|
14
|
+
var codeConfig = {
|
|
15
|
+
appearance: codeAppearance,
|
|
16
|
+
setAppearance: function (newComponent) {
|
|
17
|
+
codeConfig.appearance = newComponent;
|
|
18
|
+
},
|
|
19
|
+
};
|
|
14
20
|
function Code(props) {
|
|
15
|
-
var
|
|
16
|
-
var
|
|
21
|
+
var after = props.after, appearance = props.appearance, before = props.before, className = props.className, inputAutoFocus = props.inputAutoFocus, _a = props.inputCount, inputCount = _a === void 0 ? 6 : _a, _b = props.inputPlaceholder, inputPlaceholder = _b === void 0 ? 0 : _b, _c = props.inputType, inputType = _c === void 0 ? 'number' : _c, separatorComponent = props.separatorComponent, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
|
|
22
|
+
var _d = useState(''), otp = _d[0], setOtp = _d[1];
|
|
17
23
|
var fillClass = useDeviceTargetClass(props, {
|
|
18
24
|
prefix: 'fill_',
|
|
19
25
|
propsKey: 'inputFill',
|
|
@@ -74,9 +80,26 @@ function Code(props) {
|
|
|
74
80
|
prefix: 'width_',
|
|
75
81
|
propsKey: 'width',
|
|
76
82
|
});
|
|
83
|
+
var appearanceConfig = appearance && choiceConfig.appearance && choiceConfig.appearance[appearance];
|
|
77
84
|
// NOTE: too many dependencies for "useCallback" and possible too many checks
|
|
78
85
|
var renderInput = function (otpInputProps) {
|
|
79
|
-
return (jsx("input", __assign({}, otpInputProps, { className: clsx('code__input', caretClass, fillClass
|
|
86
|
+
return (jsx("input", __assign({}, otpInputProps, { className: clsx('code__input', caretClass, fillClass ||
|
|
87
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fill) &&
|
|
88
|
+
"fill_".concat(appearanceConfig.fill).replace(/([A-Z])/g, '-$1').toLowerCase()), fillHoverClass ||
|
|
89
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fillHover) &&
|
|
90
|
+
"fill_hover_".concat(appearanceConfig.fillHover).replace(/([A-Z])/g, '-$1').toLowerCase()), placeholderClass, shapeClass ||
|
|
91
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.shape) &&
|
|
92
|
+
"code__input_shape_".concat(appearanceConfig.shape)
|
|
93
|
+
.replace(/([A-Z])/g, '-$1')
|
|
94
|
+
.toLowerCase()), textSizeClass ||
|
|
95
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textSize) &&
|
|
96
|
+
"text_size_".concat(appearanceConfig.textSize).replace(/([A-Z])/g, '-$1').toLowerCase()), textColorClass ||
|
|
97
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor) &&
|
|
98
|
+
"text-color_".concat(appearanceConfig.textColor).replace(/([A-Z])/g, '-$1').toLowerCase()), weightClass, borderWidthClass, borderColorClass ||
|
|
99
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.borderColor) &&
|
|
100
|
+
"border-color_".concat(appearanceConfig.borderColor)
|
|
101
|
+
.replace(/([A-Z])/g, '-$1')
|
|
102
|
+
.toLowerCase()), borderColorHoverClass, borderColorFocusClass, sizeClass), autoComplete: "one-time-code", onBlur: function (event) {
|
|
80
103
|
onBlur && onBlur(event);
|
|
81
104
|
otpInputProps.onBlur(event);
|
|
82
105
|
}, onFocus: function (event) {
|
|
@@ -90,20 +113,17 @@ function Code(props) {
|
|
|
90
113
|
return (jsxs("div", { className: clsx(className, 'code', widthClass), children: [before, jsx(OtpInput, { containerStyle: clsx(className, 'code__wrapper', gapClass), inputType: inputType, numInputs: inputCount, placeholder: inputPlaceholder, renderInput: renderInput, renderSeparator: separatorComponent || null, shouldAutoFocus: inputAutoFocus, value: otp, onChange: setOtp }), after] }));
|
|
91
114
|
}
|
|
92
115
|
Code.defaultProps = {
|
|
93
|
-
inputCount: 6,
|
|
94
|
-
inputType: 'number',
|
|
95
|
-
inputSize: 'normal',
|
|
96
|
-
inputBorderWidth: 1,
|
|
97
|
-
inputPlaceholder: 0,
|
|
98
116
|
inputBorderColor: 'surfaceBorderTertiary',
|
|
99
117
|
inputBorderColorHover: 'surfaceBorderQuaternary',
|
|
100
118
|
inputBorderFocusColor: 'surfaceBorderAccent',
|
|
119
|
+
inputBorderWidth: 1,
|
|
120
|
+
inputCaretColor: 'surfaceItemAccent',
|
|
101
121
|
inputFill: 'surfacePrimary',
|
|
102
122
|
inputFillHover: 'surfaceSecondary',
|
|
103
123
|
inputShape: 'rounded',
|
|
124
|
+
inputSize: 'normal',
|
|
104
125
|
inputTextColor: 'surfaceTextPrimary',
|
|
105
126
|
inputTextSize: 'xxl',
|
|
106
|
-
inputCaretColor: 'surfaceItemAccent',
|
|
107
127
|
};
|
|
108
128
|
|
|
109
|
-
export { Code };
|
|
129
|
+
export { Code, codeConfig };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
4
|
-
import { D as Divider } from '../Divider-
|
|
5
|
-
import { I as Icon } from '../Icon-
|
|
6
|
-
import { T as Text } from '../Text-
|
|
4
|
+
import { D as Divider } from '../Divider-DE2Q5J36.js';
|
|
5
|
+
import { I as Icon } from '../Icon-B7BJo5kW.js';
|
|
6
|
+
import { T as Text } from '../Text-DlSG_p4u.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'lodash/castArray';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import '../context/UIContext.js';
|
|
11
|
-
import 'prop-types';
|
|
12
11
|
import '../hooks/useMediaQueries.js';
|
|
13
12
|
import 'react-responsive';
|
|
13
|
+
import '../appearance/Divider.js';
|
|
14
14
|
import '../hooks/useStyles.js';
|
|
15
15
|
import 'lodash/maxBy';
|
|
16
16
|
import 'lodash/upperFirst';
|
|
17
17
|
import '../hooks/styleAttributes.js';
|
|
18
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
18
19
|
import 'react-inlinesvg';
|
|
19
20
|
import '../appearance/Icon.js';
|
|
20
|
-
import '../Link-
|
|
21
|
-
import '../
|
|
22
|
-
import '../Tooltip-ccRCMYQM.js';
|
|
21
|
+
import '../Link-CeQuavin.js';
|
|
22
|
+
import '../Tooltip-f5EWhsGj.js';
|
|
23
23
|
import '../appearance/Tooltip.js';
|
|
24
|
-
import '../Title-
|
|
24
|
+
import '../Title-mkus84Rh.js';
|
|
25
25
|
import '../appearance/Title.js';
|
|
26
26
|
import '../appearance/Text.js';
|
|
27
27
|
|
|
@@ -37,21 +37,9 @@ function ContextMenu(props) {
|
|
|
37
37
|
});
|
|
38
38
|
return (jsx("div", { className: clsx(className, 'context-menu', set && "context-menu_set_".concat(set), shapeClass, fillClass), id: id, onClick: onClick, children: children }));
|
|
39
39
|
}
|
|
40
|
-
ContextMenu.defaultProps = {
|
|
41
|
-
tag: 'div',
|
|
42
|
-
};
|
|
43
40
|
|
|
44
41
|
function ContextMenuItem(props) {
|
|
45
|
-
var id = props.id, className = props.className,
|
|
46
|
-
useDeviceTargetClass(props, {
|
|
47
|
-
propsKey: 'labelTextSize',
|
|
48
|
-
});
|
|
49
|
-
useDeviceTargetClass(props, {
|
|
50
|
-
propsKey: 'labelTextColor',
|
|
51
|
-
});
|
|
52
|
-
useDeviceTargetClass(props, {
|
|
53
|
-
propsKey: 'labelTextWeight',
|
|
54
|
-
});
|
|
42
|
+
var id = props.id, className = props.className, dividerDirection = props.dividerDirection, dividerFill = props.dividerFill, dividerSize = props.dividerSize, dividerWidth = props.dividerWidth, iconAfter = props.iconAfter, iconAfterBgFill = props.iconAfterBgFill, iconAfterFill = props.iconAfterFill, iconAfterSize = props.iconAfterSize, iconBefore = props.iconBefore, iconBeforeBgFill = props.iconBeforeBgFill, iconBeforeFill = props.iconBeforeFill, iconBeforeSize = props.iconBeforeSize, label = props.label, labelTextColor = props.labelTextColor, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, onClick = props.onClick;
|
|
55
43
|
var fillClass = useDeviceTargetClass(props, {
|
|
56
44
|
prefix: 'fill_',
|
|
57
45
|
propsKey: 'fill',
|
|
@@ -60,7 +48,7 @@ function ContextMenuItem(props) {
|
|
|
60
48
|
prefix: 'fill_hover_',
|
|
61
49
|
propsKey: 'fillHover',
|
|
62
50
|
});
|
|
63
|
-
return (jsxs("div", { className: clsx(className, 'context-menu__item', fillClass, fillHoverClass, onClick && 'cursor_type_pointer'), id: id, onClick: onClick, children: [jsxs("div", { className: "context-menu__item-wrapper", children: [iconBefore && (jsx(Icon, { className: "context-menu__item-icon-before",
|
|
51
|
+
return (jsxs("div", { className: clsx(className, 'context-menu__item', fillClass, fillHoverClass, onClick && 'cursor_type_pointer'), id: id, onClick: onClick, children: [jsxs("div", { className: "context-menu__item-wrapper", children: [iconBefore && (jsx(Icon, { className: "context-menu__item-icon-before", fill: iconBeforeFill, bgFill: iconBeforeBgFill, size: iconBeforeSize, SvgImage: iconBefore })), label && (jsx(Text, { className: "context-menu__item-title", size: labelTextSize, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), iconAfter && (jsx(Icon, { className: "context-menu__item-icon-after", fill: iconAfterFill, bgFill: iconAfterBgFill, size: iconAfterSize, SvgImage: iconAfter }))] }), jsx(Divider, { className: "context-menu__item-divider", width: dividerWidth, fill: dividerFill, direction: dividerDirection, size: dividerSize })] }));
|
|
64
52
|
}
|
|
65
53
|
|
|
66
54
|
export { ContextMenu, ContextMenuItem };
|
|
@@ -3,13 +3,12 @@ import { useRef, useMemo, useCallback, useEffect } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import Cookies from 'js-cookie';
|
|
5
5
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
6
|
-
import { B as Button } from '../Button-
|
|
6
|
+
import { B as Button } from '../Button-DS2l65oq.js';
|
|
7
7
|
import { G as Group } from '../Group-Dc70Z4_7.js';
|
|
8
|
-
import { T as Text } from '../Text-
|
|
8
|
+
import { T as Text } from '../Text-DlSG_p4u.js';
|
|
9
9
|
import 'lodash/castArray';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import '../context/UIContext.js';
|
|
12
|
-
import 'prop-types';
|
|
13
12
|
import '../hooks/useMediaQueries.js';
|
|
14
13
|
import 'react-responsive';
|
|
15
14
|
import '../appearance/Button.js';
|
|
@@ -17,22 +16,22 @@ import '../hooks/useStyles.js';
|
|
|
17
16
|
import 'lodash/maxBy';
|
|
18
17
|
import 'lodash/upperFirst';
|
|
19
18
|
import '../hooks/styleAttributes.js';
|
|
20
|
-
import '../Icon-
|
|
19
|
+
import '../Icon-B7BJo5kW.js';
|
|
20
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
21
21
|
import 'react-inlinesvg';
|
|
22
22
|
import '../appearance/Icon.js';
|
|
23
|
-
import '../Link-
|
|
24
|
-
import '../
|
|
25
|
-
import '../Tooltip-ccRCMYQM.js';
|
|
23
|
+
import '../Link-CeQuavin.js';
|
|
24
|
+
import '../Tooltip-f5EWhsGj.js';
|
|
26
25
|
import '../appearance/Tooltip.js';
|
|
27
|
-
import '../Title-
|
|
26
|
+
import '../Title-mkus84Rh.js';
|
|
28
27
|
import '../appearance/Title.js';
|
|
29
|
-
import '../Loader-
|
|
28
|
+
import '../Loader-CqEocvjh.js';
|
|
30
29
|
import '../appearance/Loader.js';
|
|
31
30
|
import '../appearance/Group.js';
|
|
32
31
|
import '../appearance/Text.js';
|
|
33
32
|
|
|
34
33
|
function CookiesWarning(props) {
|
|
35
|
-
var _a = props.
|
|
34
|
+
var _a = props.isHideOnScroll, isHideOnScroll = _a === void 0 ? false : _a, buttonFill = props.buttonFill, buttonFillHover = props.buttonFillHover, _b = props.buttonLabel, buttonLabel = _b === void 0 ? 'I agree' : _b, buttonLabelSize = props.buttonLabelSize, buttonLabelTextColor = props.buttonLabelTextColor, buttonShape = props.buttonShape, buttonSize = props.buttonSize, buttonWidth = props.buttonWidth, className = props.className, _c = props.message, message = _c === void 0 ? 'The site uses cookies to collect technical information, to optimize the design and improvement of the website, and to provide certain functions. By using the website, you agree to the use of «cookies».' : _c, textColor = props.textColor, textSize = props.textSize;
|
|
36
35
|
var cookiesWarningRef = useRef(null);
|
|
37
36
|
var isOpen = useMemo(function () { return Cookies.get('cookies-warning') !== 'close'; }, []);
|
|
38
37
|
var closeCookiesWarning = useCallback(function () {
|
|
@@ -65,12 +64,7 @@ function CookiesWarning(props) {
|
|
|
65
64
|
var gap = useDeviceTargetClass(props, {
|
|
66
65
|
propsKey: 'gap',
|
|
67
66
|
});
|
|
68
|
-
return isOpen ? (jsx("div", { className: clsx('cookies-warning', className, fillClass, fillGradientClass), ref: cookiesWarningRef, children: jsxs(Group, {
|
|
67
|
+
return isOpen ? (jsx("div", { className: clsx('cookies-warning', className, fillClass, fillGradientClass), ref: cookiesWarningRef, children: jsxs(Group, { className: "cookies-warning__inner", direction: "vertical", gap: gap ? gap : undefined, children: [jsx(Text, { size: textSize, textColor: textColor, children: message }), jsx(Button, { width: buttonWidth, labelTextColor: buttonLabelTextColor, labelTextSize: buttonLabelSize, fill: buttonFill, fillHover: buttonFillHover, shape: buttonShape, size: buttonSize, onClick: closeCookiesWarning, children: buttonLabel })] }) })) : null;
|
|
69
68
|
}
|
|
70
|
-
CookiesWarning.defaultProps = {
|
|
71
|
-
message: 'The site uses cookies to collect technical information, to optimize the design and improvement of the website, and to provide certain functions. By using the website, you agree to the use of «cookies».',
|
|
72
|
-
buttonText: 'I agree',
|
|
73
|
-
isHideOnScroll: false,
|
|
74
|
-
};
|
|
75
69
|
|
|
76
70
|
export { CookiesWarning };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as __assign, a as __rest } from '../tslib.es6-5FtW-kfi.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { PartySuggestions } from 'react-dadata';
|
|
6
|
-
import { I as Input } from '../Input-
|
|
6
|
+
import { I as Input } from '../Input-HGM-rzzr.js';
|
|
7
7
|
import '../appearance/Input.js';
|
|
8
8
|
import '../hooks/useDeviceTargetClass.js';
|
|
9
9
|
import 'lodash/castArray';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import '../context/UIContext.js';
|
|
12
|
-
import 'prop-types';
|
|
13
12
|
import '../hooks/useMediaQueries.js';
|
|
14
13
|
import 'react-responsive';
|
|
15
14
|
|