@itcase/ui 1.8.9 → 1.8.10
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_cjs_DrG2tUjI.js → Badge_cjs_CeqDdbMs.js} +1 -1
- package/dist/{Badge_es_Bx0NsdST.js → Badge_es_uDX0eyDM.js} +1 -1
- package/dist/{Button_cjs_B7OmqizJ.js → Button_cjs_BKQLT7oE.js} +1 -1
- package/dist/{Button_es_CBbHMy1v.js → Button_es_H15aBFcg.js} +1 -1
- package/dist/{Icon_cjs_DSzfNqif.js → Icon_cjs_BaWMPaAR.js} +1 -1
- package/dist/{Icon_es_BBmoZ7_3.js → Icon_es_B0sySEUu.js} +1 -1
- package/dist/{Input_cjs_C8RWS1SD.js → Input_cjs_BAVggtkk.js} +5 -5
- package/dist/{Input_es_FXxp51gq.js → Input_es_CNduH28G.js} +5 -5
- package/dist/{Label_cjs_BCjB-mxC.js → Label_cjs_CbcENlSZ.js} +1 -1
- package/dist/{Label_es_CZpanSdR.js → Label_es_BCpDqP3q.js} +1 -1
- package/dist/{Title_cjs_iuyln-ab.js → Title_cjs_ByPcFb15.js} +4 -25
- package/dist/{Title_es_ke3YylFm.js → Title_es_eejUqSJf.js} +4 -25
- package/dist/{Tooltip_cjs_CTwksdFk.js → Tooltip_cjs_CY4HOzhz.js} +1 -1
- package/dist/{Tooltip_es_H976MIb7.js → Tooltip_es_B9hN4Zlm.js} +1 -1
- package/dist/cjs/components/Accordion.js +3 -3
- package/dist/cjs/components/Avatar.js +3 -3
- package/dist/cjs/components/Badge.js +4 -4
- package/dist/cjs/components/Breadcrumbs.js +3 -3
- package/dist/cjs/components/Button.js +4 -4
- package/dist/cjs/components/Cell.js +4 -4
- package/dist/cjs/components/Checkbox.js +150 -22
- package/dist/cjs/components/Chips.js +11 -5
- package/dist/cjs/components/Choice.js +3 -3
- package/dist/cjs/components/CookiesWarning.js +4 -4
- package/dist/cjs/components/DadataHintField.js +1 -1
- package/dist/cjs/components/DatePicker.js +65 -100
- package/dist/cjs/components/HeroTitle.js +9 -19
- package/dist/cjs/components/Icon.js +3 -3
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputPassword.js +3 -3
- package/dist/cjs/components/Label.js +3 -3
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Pagination.js +3 -3
- package/dist/cjs/components/Response.js +4 -4
- package/dist/cjs/components/Search.js +3 -3
- package/dist/cjs/components/Select.js +7 -7
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +4 -4
- package/dist/cjs/components/Tile.js +4 -4
- package/dist/cjs/components/Title.js +5 -5
- package/dist/cjs/components/Tooltip.js +2 -2
- package/dist/cjs/hooks/useStyles/useStyles.js +3 -0
- package/dist/components/Accordion.js +3 -3
- package/dist/components/Avatar.js +3 -3
- package/dist/components/Badge.js +4 -4
- package/dist/components/Breadcrumbs.js +3 -3
- package/dist/components/Button.js +4 -4
- package/dist/components/Cell.js +4 -4
- package/dist/components/Checkbox.js +151 -22
- package/dist/components/Chips.js +11 -5
- package/dist/components/Choice.js +3 -3
- package/dist/components/CookiesWarning.js +4 -4
- package/dist/components/DadataHintField.js +1 -1
- package/dist/components/DatePicker.js +65 -100
- package/dist/components/HeroTitle.js +9 -19
- package/dist/components/Icon.js +3 -3
- package/dist/components/Input.js +1 -1
- package/dist/components/InputPassword.js +3 -3
- package/dist/components/Label.js +3 -3
- package/dist/components/Modal.js +1 -1
- package/dist/components/Pagination.js +3 -3
- package/dist/components/Response.js +4 -4
- package/dist/components/Search.js +3 -3
- package/dist/components/Select.js +7 -7
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +4 -4
- package/dist/components/Tile.js +4 -4
- package/dist/components/Title.js +5 -5
- package/dist/components/Tooltip.js +2 -2
- package/dist/css/components/Checkbox/Checkbox.css +3 -0
- package/dist/css/components/HeroTitle/HeroTitle.css +20 -16
- package/dist/css/components/Select/Select.css +9 -0
- package/dist/css/components/Textarea/Textarea.css +2 -0
- package/dist/css/components/Title/Title.css +20 -16
- package/dist/css/styles/placeholder-text-color/placeholder-text-color.css +1 -1
- package/dist/hooks/useStyles/useStyles.js +3 -0
- package/dist/types/components/Checkbox/Checkbox.appearance.d.ts +1 -2
- package/dist/types/components/Checkbox/Checkbox.interface.d.ts +1 -2
- package/dist/types/components/Checkbox/appearance/checkboxDefault.d.ts +26 -0
- package/dist/types/components/Checkbox/appearance/checkboxDisabled.d.ts +20 -0
- package/dist/types/components/Checkbox/appearance/checkboxError.d.ts +20 -0
- package/dist/types/components/Checkbox/appearance/checkboxRequire.d.ts +20 -0
- package/dist/types/components/Checkbox/appearance/checkboxSize.d.ts +31 -0
- package/dist/types/components/Checkbox/appearance/checkboxStyle.d.ts +14 -0
- package/dist/types/components/Checkbox/appearance/checkboxSuccess.d.ts +20 -0
- package/dist/types/components/Checkbox/index.d.ts +1 -1
- package/dist/types/components/Chips/appearance/chipsSize.d.ts +6 -1
- package/dist/types/components/Chips/appearance/chipsSurface.d.ts +1 -0
- package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +30 -55
- package/dist/types/components/DatePicker/appearance/datePickerSize.d.ts +18 -33
- package/dist/types/components/DatePicker/appearance/datePickerSurface.d.ts +12 -22
- package/dist/types/components/Input/appearance/inputDefault.d.ts +5 -5
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
-
var Icon = require('../../
|
|
9
|
+
var Icon = require('../../Icon_cjs_BaWMPaAR.js');
|
|
10
10
|
var Text = require('../../Text_cjs_D4xG0cKD.js');
|
|
11
11
|
require('lodash/camelCase');
|
|
12
12
|
require('lodash/castArray');
|
|
@@ -22,8 +22,8 @@ require('lodash/maxBy');
|
|
|
22
22
|
require('../hooks/useStyles/styleAttributes.js');
|
|
23
23
|
require('react-inlinesvg');
|
|
24
24
|
require('../../Link_cjs_yht44xJv.js');
|
|
25
|
-
require('../../
|
|
26
|
-
require('../../
|
|
25
|
+
require('../../Tooltip_cjs_CY4HOzhz.js');
|
|
26
|
+
require('../../Title_cjs_ByPcFb15.js');
|
|
27
27
|
|
|
28
28
|
var chipsAppearanceAccent = {
|
|
29
29
|
accent: {
|
|
@@ -68,7 +68,12 @@ var chipsAppearanceSecondary = {
|
|
|
68
68
|
},
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
var chipsAppearanceSize = {
|
|
71
|
+
var chipsAppearanceSize = {
|
|
72
|
+
sizeM: {
|
|
73
|
+
size: 'm',
|
|
74
|
+
labelTextSize: 's',
|
|
75
|
+
},
|
|
76
|
+
};
|
|
72
77
|
|
|
73
78
|
var chipsAppearanceStyle = {};
|
|
74
79
|
|
|
@@ -84,6 +89,7 @@ var chipsAppearanceSurface = {
|
|
|
84
89
|
labelTextColor: 'surfaceTextPrimary',
|
|
85
90
|
labelTextHoverColor: 'surfaceTextPrimary',
|
|
86
91
|
borderColor: 'surfaceBorderTertiary',
|
|
92
|
+
activeIconItemFill: 'surfaceItemSecondary',
|
|
87
93
|
},
|
|
88
94
|
surfaceSecondary: {
|
|
89
95
|
fill: 'surfaceSecondary',
|
|
@@ -135,7 +141,7 @@ function Chips(props) {
|
|
|
135
141
|
? fillClass && "fill_".concat(fillClass)
|
|
136
142
|
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
137
143
|
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
138
|
-
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "chips_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "chips_size_".concat(sizeClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), isDisabled && "chips_state_disabled", cursorClass && "cursor_".concat(cursorClass), onClick && 'cursor_type_pointer'), "data-testid": dataTestId && "".concat(dataTestId, "Chips"), "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxRuntime.jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), typeof label === 'string' ? (jsxRuntime.jsx(Text.Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor,
|
|
144
|
+
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "chips_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "chips_size_".concat(sizeClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), isDisabled && "chips_state_disabled", cursorClass && "cursor_".concat(cursorClass), onClick && 'cursor_type_pointer'), "data-testid": dataTestId && "".concat(dataTestId, "Chips"), "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxRuntime.jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), typeof label === 'string' ? (jsxRuntime.jsx(Text.Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor, textColorActive: isActive && labelTextActiveColor, textColorHover: !isDisabled && !isActive
|
|
139
145
|
? labelTextHoverColor
|
|
140
146
|
: labelTextActiveHoverColor, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })) : (jsxRuntime.jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] }) }));
|
|
141
147
|
}
|
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
-
var Icon = require('../../
|
|
9
|
+
var Icon = require('../../Icon_cjs_BaWMPaAR.js');
|
|
10
10
|
var Loader = require('../../Loader_cjs_D753D3li.js');
|
|
11
11
|
var Text = require('../../Text_cjs_D4xG0cKD.js');
|
|
12
12
|
require('lodash/camelCase');
|
|
@@ -23,8 +23,8 @@ require('lodash/maxBy');
|
|
|
23
23
|
require('../hooks/useStyles/styleAttributes.js');
|
|
24
24
|
require('react-inlinesvg');
|
|
25
25
|
require('../../Link_cjs_yht44xJv.js');
|
|
26
|
-
require('../../
|
|
27
|
-
require('../../
|
|
26
|
+
require('../../Tooltip_cjs_CY4HOzhz.js');
|
|
27
|
+
require('../../Title_cjs_ByPcFb15.js');
|
|
28
28
|
|
|
29
29
|
var choiceAppearanceAccent = {
|
|
30
30
|
accentPrimary: {
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var Cookies = require('js-cookie');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
|
-
var Button = require('../../
|
|
8
|
+
var Button = require('../../Button_cjs_BKQLT7oE.js');
|
|
9
9
|
var Group = require('../../Group_cjs_DFmNT5Mq.js');
|
|
10
10
|
var Text = require('../../Text_cjs_D4xG0cKD.js');
|
|
11
11
|
require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
@@ -19,14 +19,14 @@ require('../context/UIContext.js');
|
|
|
19
19
|
require('../hooks/useMediaQueries/useMediaQueries.js');
|
|
20
20
|
require('react-responsive');
|
|
21
21
|
require('../utils/setViewportProperty.js');
|
|
22
|
-
require('../../
|
|
22
|
+
require('../../Icon_cjs_BaWMPaAR.js');
|
|
23
23
|
require('react-inlinesvg');
|
|
24
24
|
require('../hooks/useStyles/useStyles.js');
|
|
25
25
|
require('lodash/maxBy');
|
|
26
26
|
require('../hooks/useStyles/styleAttributes.js');
|
|
27
27
|
require('../../Link_cjs_yht44xJv.js');
|
|
28
|
-
require('../../
|
|
29
|
-
require('../../
|
|
28
|
+
require('../../Tooltip_cjs_CY4HOzhz.js');
|
|
29
|
+
require('../../Title_cjs_ByPcFb15.js');
|
|
30
30
|
require('../../Loader_cjs_D753D3li.js');
|
|
31
31
|
|
|
32
32
|
function CookiesWarning(props) {
|
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var reactDadata = require('react-dadata');
|
|
8
|
-
var Input = require('../../
|
|
8
|
+
var Input = require('../../Input_cjs_BAVggtkk.js');
|
|
9
9
|
require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
require('lodash/camelCase');
|
|
11
11
|
require('lodash/castArray');
|
|
@@ -8,11 +8,12 @@ var locale = require('date-fns/locale');
|
|
|
8
8
|
var DatePicker = require('react-datepicker');
|
|
9
9
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
11
|
-
var Button = require('../../
|
|
12
|
-
var Icon = require('../../
|
|
13
|
-
var Input = require('../../
|
|
14
|
-
var Label = require('../../
|
|
11
|
+
var Button = require('../../Button_cjs_BKQLT7oE.js');
|
|
12
|
+
var Icon = require('../../Icon_cjs_BaWMPaAR.js');
|
|
13
|
+
var Input = require('../../Input_cjs_BAVggtkk.js');
|
|
14
|
+
var Label = require('../../Label_cjs_CbcENlSZ.js');
|
|
15
15
|
var Text = require('../../Text_cjs_D4xG0cKD.js');
|
|
16
|
+
var _default = require('@itcase/icons/default');
|
|
16
17
|
require('lodash/camelCase');
|
|
17
18
|
require('lodash/castArray');
|
|
18
19
|
require('lodash/upperFirst');
|
|
@@ -28,58 +29,35 @@ require('../hooks/useStyles/styleAttributes.js');
|
|
|
28
29
|
require('../../Link_cjs_yht44xJv.js');
|
|
29
30
|
require('../../Loader_cjs_D753D3li.js');
|
|
30
31
|
require('react-inlinesvg');
|
|
31
|
-
require('../../
|
|
32
|
-
require('../../
|
|
32
|
+
require('../../Tooltip_cjs_CY4HOzhz.js');
|
|
33
|
+
require('../../Title_cjs_ByPcFb15.js');
|
|
33
34
|
|
|
34
|
-
// import { icon14, icon16 } from '@itcase/icons/default'
|
|
35
35
|
var datePickerSize = {
|
|
36
36
|
sizeS: {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
// iconRight: icon14.ChevronRight,
|
|
43
|
-
},
|
|
44
|
-
inputProps: {
|
|
45
|
-
size: 's',
|
|
46
|
-
textSize: 's',
|
|
47
|
-
// clearIcon: icon14.Clear,
|
|
48
|
-
clearIconSize: 16,
|
|
49
|
-
clearLabelTextSize: 'm',
|
|
50
|
-
},
|
|
37
|
+
daySize: 'xs',
|
|
38
|
+
dayTextSize: 'm',
|
|
39
|
+
iconFillSize: 24,
|
|
40
|
+
iconLeft: _default.icon14.ChevronLeft,
|
|
41
|
+
iconRight: _default.icon14.ChevronRight,
|
|
51
42
|
},
|
|
52
43
|
sizeM: {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
// clearIcon: icon14.Clear,
|
|
64
|
-
clearIconSize: 16,
|
|
65
|
-
clearLabelTextSize: 'm',
|
|
66
|
-
},
|
|
44
|
+
daySize: 'xxl',
|
|
45
|
+
dayTextSize: 'm',
|
|
46
|
+
iconFillSize: 24,
|
|
47
|
+
daySize: 'xs',
|
|
48
|
+
dayTextSize: 'm',
|
|
49
|
+
iconSize: 14,
|
|
50
|
+
monthTextSize: 'm',
|
|
51
|
+
yearTextSize: 'm',
|
|
52
|
+
iconLeft: _default.icon14.ChevronLeft,
|
|
53
|
+
iconRight: _default.icon14.ChevronRight,
|
|
67
54
|
},
|
|
68
55
|
sizeL: {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
// iconRight: icon14.ChevronRight,
|
|
75
|
-
},
|
|
76
|
-
inputProps: {
|
|
77
|
-
size: 'l',
|
|
78
|
-
textSize: 'l',
|
|
79
|
-
// clearIcon: icon14.Clear,
|
|
80
|
-
clearIconSize: 16,
|
|
81
|
-
clearLabelTextSize: 'm',
|
|
82
|
-
},
|
|
56
|
+
daySize: 'xs',
|
|
57
|
+
dayTextSize: 'm',
|
|
58
|
+
iconFillSize: 24,
|
|
59
|
+
iconLeft: _default.icon14.ChevronLeft,
|
|
60
|
+
iconRight: _default.icon14.ChevronRight,
|
|
83
61
|
},
|
|
84
62
|
};
|
|
85
63
|
|
|
@@ -111,28 +89,19 @@ var datePickerStyle = {
|
|
|
111
89
|
|
|
112
90
|
var datePickerAppearanceSurface = {
|
|
113
91
|
surfacePrimary: {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
borderColor: 'surfaceBorderPrimary',
|
|
128
|
-
textColor: 'surfaceTextPrimary',
|
|
129
|
-
caret: 'surfaceItemPrimary',
|
|
130
|
-
clearIconItemFill: 'surfaceItemQuaternary',
|
|
131
|
-
clearIconItemFillHover: 'surfaceItemPrimary',
|
|
132
|
-
clearLabelTextColor: 'surfaceTextPrimary',
|
|
133
|
-
clearLabelTextColorHover: 'surfaceTextAccent',
|
|
134
|
-
placeholderTextColor: 'surfaceTextSecondary',
|
|
135
|
-
},
|
|
92
|
+
dayTextColor: 'surfaceTextPrimary',
|
|
93
|
+
dayTextShape: 'rounded',
|
|
94
|
+
iconFillHover: 'surfaceSecondary',
|
|
95
|
+
iconItemFill: 'surfaceItemPrimary',
|
|
96
|
+
iconShape: 'circular',
|
|
97
|
+
iconItemFill: 'surfaceItemPrimary',
|
|
98
|
+
iconLeft: _default.icon14.ChevronLeft,
|
|
99
|
+
iconRight: _default.icon14.ChevronRight,
|
|
100
|
+
monthTextColor: 'surfaceTextPrimary',
|
|
101
|
+
monthTextWeight: 400,
|
|
102
|
+
placeholderTextColor: 'surfaceTextPrimary',
|
|
103
|
+
yearTextColor: 'surfaceTextPrimary',
|
|
104
|
+
yearTextWeight: 400,
|
|
136
105
|
},
|
|
137
106
|
};
|
|
138
107
|
|
|
@@ -145,14 +114,16 @@ var datePickerConfig = {
|
|
|
145
114
|
},
|
|
146
115
|
};
|
|
147
116
|
function DatePickerInput(props) {
|
|
148
|
-
var
|
|
117
|
+
var _a;
|
|
118
|
+
var className = props.className, endValue = props.endValue, _b = props.inputProps, inputProps = _b === void 0 ? {} : _b, _c = props.datePickerProps, datePickerProps = _c === void 0 ? {} : _c, value = props.value, onChange = props.onChange;
|
|
149
119
|
var datepickerRef = React.useRef(null);
|
|
150
|
-
var
|
|
120
|
+
var monthsShown = datePickerProps.monthsShown, customTimeInput = datePickerProps.customTimeInput, disablePastDays = datePickerProps.disablePastDays, selectsRange = datePickerProps.selectsRange;
|
|
121
|
+
var appearanceConfig = (_a = datePickerProps.appearance) === null || _a === void 0 ? void 0 : _a.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
151
122
|
var _a;
|
|
152
123
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = datePickerConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
153
124
|
}, {});
|
|
154
|
-
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(
|
|
155
|
-
var
|
|
125
|
+
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(datePickerProps, appearanceConfig);
|
|
126
|
+
var daySize = propsGenerator.daySize, dayTextColor = propsGenerator.dayTextColor, dayTextShape = propsGenerator.dayTextShape, dayTextSize = propsGenerator.dayTextSize, iconFill = propsGenerator.iconFill, iconFillHover = propsGenerator.iconFillHover, iconFillSize = propsGenerator.iconFillSize, iconItemFill = propsGenerator.iconItemFill, iconLeft = propsGenerator.iconLeft, iconRight = propsGenerator.iconRight, iconShape = propsGenerator.iconShape, monthTextColor = propsGenerator.monthTextColor, monthTextSize = propsGenerator.monthTextSize, monthTextWeight = propsGenerator.monthTextWeight, popper = propsGenerator.popper, widthClass = propsGenerator.widthClass, yearTextColor = propsGenerator.yearTextColor, yearTextSize = propsGenerator.yearTextSize, yearTextWeight = propsGenerator.yearTextWeight, isClearable = propsGenerator.isClearable;
|
|
156
127
|
var start = React.useMemo(function () {
|
|
157
128
|
if (value) {
|
|
158
129
|
if (typeof value === 'string') {
|
|
@@ -174,8 +145,8 @@ function DatePickerInput(props) {
|
|
|
174
145
|
}
|
|
175
146
|
return endValue;
|
|
176
147
|
}, [endValue]);
|
|
177
|
-
var
|
|
178
|
-
var
|
|
148
|
+
var _d = React.useState(start), startDate = _d[0], setStartDate = _d[1];
|
|
149
|
+
var _e = React.useState(end), endDate = _e[0], setEndDate = _e[1];
|
|
179
150
|
var handleChange = React.useCallback(function (_a) {
|
|
180
151
|
var newStartDate = _a[0], newEndDate = _a[1];
|
|
181
152
|
onChange && onChange(newStartDate, newEndDate);
|
|
@@ -183,30 +154,25 @@ function DatePickerInput(props) {
|
|
|
183
154
|
setEndDate(newEndDate);
|
|
184
155
|
}, [onChange]);
|
|
185
156
|
var renderDayContents = React.useCallback(function (day, date) {
|
|
186
|
-
return (jsxRuntime.jsx(Button.Button, { className: "react-datepicker__day-button", size:
|
|
187
|
-
}, [
|
|
188
|
-
datePickerProps.daySize,
|
|
189
|
-
datePickerProps.dayTextColor,
|
|
190
|
-
datePickerProps.dayTextShape,
|
|
191
|
-
datePickerProps.dayTextSize,
|
|
192
|
-
]);
|
|
157
|
+
return (jsxRuntime.jsx(Button.Button, { className: "react-datepicker__day-button", size: daySize, label: date.getDate().toString(), labelTextColor: dayTextColor, labelTextSize: dayTextSize, shape: dayTextShape }));
|
|
158
|
+
}, [daySize, dayTextColor, dayTextShape, dayTextSize]);
|
|
193
159
|
var renderCustomHeader = React.useCallback(function (_a) {
|
|
194
160
|
var decreaseMonth = _a.decreaseMonth, increaseMonth = _a.increaseMonth, monthDate = _a.monthDate;
|
|
195
|
-
return (jsxRuntime.jsxs("div", { className: "react-datepicker__header--div", children: [
|
|
161
|
+
return (jsxRuntime.jsxs("div", { className: "react-datepicker__header--div", children: [iconLeft && (jsxRuntime.jsx(Icon.Icon, { className: "react-datepicker__icon", fill: iconFill, fillHover: iconFillHover, fillSize: iconFillSize, iconFill: iconItemFill, shape: iconShape, SvgImage: iconLeft, onClick: decreaseMonth })), jsxRuntime.jsxs("div", { className: "react-datepicker__data", children: [jsxRuntime.jsx(Text.Text, { className: "react-datepicker__month", size: monthTextSize, textColor: monthTextColor, textWeight: monthTextWeight, children: monthDate.toLocaleString('ru-RU', { month: 'long' }) }), jsxRuntime.jsx(Text.Text, { className: "react-datepicker__year", size: yearTextSize, textColor: yearTextColor, textWeight: yearTextWeight, children: monthDate.toLocaleString('ru-RU', { year: 'numeric' }) })] }), iconRight && (jsxRuntime.jsx(Icon.Icon, { className: "react-datepicker__icon", fill: iconFill, fillHover: iconFillHover, fillSize: iconFillSize, iconFill: iconItemFill, shape: iconShape, SvgImage: iconRight, onClick: increaseMonth }))] }));
|
|
196
162
|
}, [
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
163
|
+
iconFill,
|
|
164
|
+
iconFillHover,
|
|
165
|
+
iconFillSize,
|
|
166
|
+
iconItemFill,
|
|
167
|
+
iconLeft,
|
|
168
|
+
iconRight,
|
|
169
|
+
iconShape,
|
|
170
|
+
monthTextColor,
|
|
171
|
+
monthTextSize,
|
|
172
|
+
monthTextWeight,
|
|
173
|
+
yearTextColor,
|
|
174
|
+
yearTextSize,
|
|
175
|
+
yearTextWeight,
|
|
210
176
|
]);
|
|
211
177
|
React.useEffect(function () {
|
|
212
178
|
setStartDate(start);
|
|
@@ -216,8 +182,7 @@ function DatePickerInput(props) {
|
|
|
216
182
|
}, [end]);
|
|
217
183
|
var datePickerStyles = useStyles.useStyles(props).styles;
|
|
218
184
|
console.log(inputProps);
|
|
219
|
-
return (jsxRuntime.jsx("div", { className: clsx(className, 'datepicker',
|
|
220
|
-
"react-datepicker-popper-".concat(datePickerProps.popper), ref: datepickerRef, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: startDate, startDate: startDate, onChange: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.selectsRange) ? handleChange : onChange }, datePickerProps, {
|
|
185
|
+
return (jsxRuntime.jsx("div", { className: clsx(className, 'datepicker', monthsShown && 'datepicker_multiple-months', customTimeInput && 'datepicker_button', widthClass && "datepicker_width_".concat(widthClass)), style: datePickerStyles, children: jsxRuntime.jsx(DatePicker, tslib_es6.__assign({ minDate: disablePastDays ? new Date() : undefined, customInput: jsxRuntime.jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: isClearable }), endDate: selectsRange ? endDate : undefined, locale: locale.ru, popperClassName: popper && "react-datepicker-popper-".concat(popper), ref: datepickerRef, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: startDate, startDate: startDate, onChange: selectsRange ? handleChange : onChange }, datePickerProps, {
|
|
221
186
|
// Important for use custom clear button
|
|
222
187
|
isClearable: false })) }));
|
|
223
188
|
}
|
|
@@ -4,18 +4,18 @@ var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
|
-
require('../context/Notifications.js');
|
|
8
|
-
var UIContext = require('../context/UIContext.js');
|
|
9
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
+
require('lodash/camelCase');
|
|
10
|
+
require('lodash/castArray');
|
|
11
|
+
require('lodash/upperFirst');
|
|
12
|
+
require('../context/Notifications.js');
|
|
11
13
|
require('uuid');
|
|
12
14
|
require('@itcase/common');
|
|
13
|
-
require('
|
|
15
|
+
require('../context/UIContext.js');
|
|
14
16
|
require('../hooks/useMediaQueries/useMediaQueries.js');
|
|
15
17
|
require('react-responsive');
|
|
16
18
|
require('../utils/setViewportProperty.js');
|
|
17
|
-
require('lodash/castArray');
|
|
18
|
-
require('lodash/upperFirst');
|
|
19
19
|
require('lodash/maxBy');
|
|
20
20
|
require('../hooks/useStyles/styleAttributes.js');
|
|
21
21
|
|
|
@@ -32,32 +32,22 @@ var heroTitleConfig = {
|
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
34
|
function HeroTitle(props) {
|
|
35
|
-
var className = props.className, appearance = props.appearance,
|
|
36
|
-
var _c = UIContext.useUserDeviceContext(), isMobile = _c.isMobile, isTablet = _c.isTablet, isDesktop = _c.isDesktop;
|
|
35
|
+
var className = props.className, appearance = props.appearance, text = props.text, afterWrapper = props.afterWrapper, beforeWrapper = props.beforeWrapper, dataTour = props.dataTour, mode = props.mode, _a = props.tag, tag = _a === void 0 ? 'span' : _a, before = props.before, after = props.after, onClick = props.onClick, children = props.children;
|
|
37
36
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
38
37
|
var _a;
|
|
39
38
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = heroTitleConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
40
39
|
}, {});
|
|
41
40
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
42
|
-
var directionClass = propsGenerator.directionClass, fillClass = propsGenerator.fillClass, textAlignClass = propsGenerator.textAlignClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorGradientClass = propsGenerator.textColorGradientClass, textColorHoverClass = propsGenerator.textColorHoverClass, textStyleClass = propsGenerator.textStyleClass, textTruncateClass = propsGenerator.textTruncateClass, textWeightClass = propsGenerator.textWeightClass, heightClass = propsGenerator.heightClass, svgFillClass = propsGenerator.svgFillClass, svgFillHoverClass = propsGenerator.svgFillHoverClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, wrapperDirectionClass = propsGenerator.wrapperDirectionClass;
|
|
41
|
+
var directionClass = propsGenerator.directionClass, _b = propsGenerator.size, size = _b === void 0 ? 'h3' : _b, fillClass = propsGenerator.fillClass, textAlignClass = propsGenerator.textAlignClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorGradientClass = propsGenerator.textColorGradientClass, textColorHoverClass = propsGenerator.textColorHoverClass, textStyleClass = propsGenerator.textStyleClass, textTruncateClass = propsGenerator.textTruncateClass, textWeightClass = propsGenerator.textWeightClass, textWrap = propsGenerator.textWrap, heightClass = propsGenerator.heightClass, svgFillClass = propsGenerator.svgFillClass, svgFillHoverClass = propsGenerator.svgFillHoverClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, wrapperDirectionClass = propsGenerator.wrapperDirectionClass;
|
|
43
42
|
// @ts-expect-error
|
|
44
|
-
var
|
|
43
|
+
var _c = useStyles.useStyles(props), heroTitleStyles = _c.styles, heroTitleWrapperStyles = _c.wrapper;
|
|
45
44
|
// Element type (h1, h2, ..., h6)
|
|
46
45
|
var Tag = React.useMemo(function () {
|
|
47
46
|
if (tag) {
|
|
48
47
|
return tag;
|
|
49
48
|
}
|
|
50
|
-
if (isMobile && sizeMobile) {
|
|
51
|
-
return sizeMobile;
|
|
52
|
-
}
|
|
53
|
-
if (isTablet && sizeTablet) {
|
|
54
|
-
return sizeTablet;
|
|
55
|
-
}
|
|
56
|
-
if (isDesktop && sizeDesktop) {
|
|
57
|
-
return sizeDesktop;
|
|
58
|
-
}
|
|
59
49
|
return size ? size : 'span';
|
|
60
|
-
}, [
|
|
50
|
+
}, [size, tag]);
|
|
61
51
|
return (jsxRuntime.jsxs(Tag, { className: clsx(className, 'heroTitle', fillClass && "fill_".concat(fillClass), svgFillClass && "svg_fill_".concat(svgFillClass), svgFillHoverClass && "svg_fill_hover_".concat(svgFillHoverClass), widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), size && "hero-title_size_".concat(size), mode && "hero-title_mode_".concat(mode), directionClass && "hero-title_direction_".concat(directionClass), 'text', textColorClass && "text-color_".concat(textColorClass), textColorActiveClass && "text-color_active_".concat(textColorActiveClass), textColorHoverClass && "text-color_hover_".concat(textColorHoverClass), typeClass && "hero-title_type_".concat(typeClass), textColorGradientClass && "text-gradient_".concat(textColorGradientClass), textStyleClass && "text-style_".concat(textStyleClass), textWeightClass && "text-weight_".concat(textWeightClass), textWrap && "word-wrap_".concat(textWrap)), "data-tour": dataTour, style: heroTitleStyles, onClick: onClick, children: [before, jsxRuntime.jsxs("span", { className: clsx(textAlignClass && "text-align_".concat(textAlignClass), wrapperDirectionClass &&
|
|
62
52
|
"hero-title-direction_".concat(wrapperDirectionClass), 'hero-title__wrapper', textTruncateClass && "text-truncate_".concat(textTruncateClass)), style: heroTitleWrapperStyles, children: [beforeWrapper, children || text, afterWrapper] }), after] }));
|
|
63
53
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Icon = require('../../
|
|
3
|
+
var Icon = require('../../Icon_cjs_BaWMPaAR.js');
|
|
4
4
|
require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
@@ -21,9 +21,9 @@ require('../hooks/useStyles/useStyles.js');
|
|
|
21
21
|
require('lodash/maxBy');
|
|
22
22
|
require('../hooks/useStyles/styleAttributes.js');
|
|
23
23
|
require('../../Link_cjs_yht44xJv.js');
|
|
24
|
-
require('../../
|
|
24
|
+
require('../../Tooltip_cjs_CY4HOzhz.js');
|
|
25
25
|
require('../../Text_cjs_D4xG0cKD.js');
|
|
26
|
-
require('../../
|
|
26
|
+
require('../../Title_cjs_ByPcFb15.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
|
-
var Icon = require('../../
|
|
8
|
+
var Icon = require('../../Icon_cjs_BaWMPaAR.js');
|
|
9
9
|
require('lodash/camelCase');
|
|
10
10
|
require('lodash/castArray');
|
|
11
11
|
require('lodash/upperFirst');
|
|
@@ -21,9 +21,9 @@ require('../hooks/useStyles/useStyles.js');
|
|
|
21
21
|
require('lodash/maxBy');
|
|
22
22
|
require('../hooks/useStyles/styleAttributes.js');
|
|
23
23
|
require('../../Link_cjs_yht44xJv.js');
|
|
24
|
-
require('../../
|
|
24
|
+
require('../../Tooltip_cjs_CY4HOzhz.js');
|
|
25
25
|
require('../../Text_cjs_D4xG0cKD.js');
|
|
26
|
-
require('../../
|
|
26
|
+
require('../../Title_cjs_ByPcFb15.js');
|
|
27
27
|
|
|
28
28
|
var InputPasswordAppearance = {
|
|
29
29
|
dev: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Label = require('../../
|
|
3
|
+
var Label = require('../../Label_cjs_CbcENlSZ.js');
|
|
4
4
|
require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
@@ -20,8 +20,8 @@ require('../hooks/useStyles/useStyles.js');
|
|
|
20
20
|
require('lodash/maxBy');
|
|
21
21
|
require('../hooks/useStyles/styleAttributes.js');
|
|
22
22
|
require('../../Text_cjs_D4xG0cKD.js');
|
|
23
|
-
require('../../
|
|
24
|
-
require('../../
|
|
23
|
+
require('../../Tooltip_cjs_CY4HOzhz.js');
|
|
24
|
+
require('../../Title_cjs_ByPcFb15.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -8,7 +8,7 @@ var ReactDOM = require('react-dom');
|
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
9
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
10
10
|
var Overlay = require('../../Overlay_cjs_BTSfcGrM.js');
|
|
11
|
-
var Title = require('../../
|
|
11
|
+
var Title = require('../../Title_cjs_ByPcFb15.js');
|
|
12
12
|
var Loader = require('../../Loader_cjs_D753D3li.js');
|
|
13
13
|
require('lodash/camelCase');
|
|
14
14
|
require('lodash/castArray');
|
|
@@ -9,7 +9,7 @@ var ReactPaginate = require('react-paginate');
|
|
|
9
9
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
11
11
|
var DropdownItem = require('../../DropdownItem_cjs_TdJHpFgg.js');
|
|
12
|
-
var Icon = require('../../
|
|
12
|
+
var Icon = require('../../Icon_cjs_BaWMPaAR.js');
|
|
13
13
|
var Text = require('../../Text_cjs_D4xG0cKD.js');
|
|
14
14
|
var _default = require('@itcase/icons/default');
|
|
15
15
|
require('lodash/camelCase');
|
|
@@ -27,8 +27,8 @@ require('../hooks/useStyles/styleAttributes.js');
|
|
|
27
27
|
require('../../Divider_cjs_DakITdTv.js');
|
|
28
28
|
require('react-inlinesvg');
|
|
29
29
|
require('../../Link_cjs_yht44xJv.js');
|
|
30
|
-
require('../../
|
|
31
|
-
require('../../
|
|
30
|
+
require('../../Tooltip_cjs_CY4HOzhz.js');
|
|
31
|
+
require('../../Title_cjs_ByPcFb15.js');
|
|
32
32
|
|
|
33
33
|
var paginationAppearanceSurface = {
|
|
34
34
|
surfacePrimary: {
|
|
@@ -7,7 +7,7 @@ var clsx = require('clsx');
|
|
|
7
7
|
var SVG = require('react-inlinesvg');
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
9
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
10
|
-
var Button = require('../../
|
|
10
|
+
var Button = require('../../Button_cjs_BKQLT7oE.js');
|
|
11
11
|
var Group = require('../../Group_cjs_DFmNT5Mq.js');
|
|
12
12
|
var Text = require('../../Text_cjs_D4xG0cKD.js');
|
|
13
13
|
require('lodash/camelCase');
|
|
@@ -22,10 +22,10 @@ require('react-responsive');
|
|
|
22
22
|
require('../utils/setViewportProperty.js');
|
|
23
23
|
require('lodash/maxBy');
|
|
24
24
|
require('../hooks/useStyles/styleAttributes.js');
|
|
25
|
-
require('../../
|
|
25
|
+
require('../../Icon_cjs_BaWMPaAR.js');
|
|
26
26
|
require('../../Link_cjs_yht44xJv.js');
|
|
27
|
-
require('../../
|
|
28
|
-
require('../../
|
|
27
|
+
require('../../Tooltip_cjs_CY4HOzhz.js');
|
|
28
|
+
require('../../Title_cjs_ByPcFb15.js');
|
|
29
29
|
require('../../Loader_cjs_D753D3li.js');
|
|
30
30
|
|
|
31
31
|
var img$6 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M93.2275 101.842H84.0659C83.8263 99.1898 83.976 96.839 84.515 94.7895C85.1138 92.74 86.2216 90.8111 87.8383 89.0027C89.515 87.1341 91.7904 85.2051 94.6647 83.2159C96.5808 81.8898 97.9581 80.5637 98.7964 79.2375C99.6946 77.9114 100.144 76.4345 100.144 74.807C100.144 72.2753 99.2156 70.1957 97.3593 68.5682C95.503 66.9406 93.0778 66.1269 90.0838 66.1269C87.3892 66.1269 84.7246 66.9105 82.0898 68.4777C79.4551 69.9847 77.0299 72.3959 74.8144 75.7112L67 67.9352C70.0539 64.0774 73.5868 61.1237 77.5988 59.0742C81.6707 57.0247 85.9521 56 90.4431 56C94.5749 56 98.2575 56.8439 101.491 58.5317C104.725 60.1592 107.269 62.3896 109.126 65.2227C111.042 67.9955 112 71.1601 112 74.7166C112 78.0922 111.042 81.1062 109.126 83.7584C107.269 86.4107 104.455 88.8821 100.683 91.1727C97.7485 92.8605 95.7725 94.4881 94.7545 96.0553C93.7365 97.6226 93.2275 99.5515 93.2275 101.842ZM96.1916 115.767C96.1916 117.756 95.4731 119.474 94.0359 120.92C92.5988 122.307 90.8323 123 88.7365 123C86.6407 123 84.8743 122.307 83.4371 120.92C82 119.474 81.2814 117.756 81.2814 115.767C81.2814 113.717 82 111.999 83.4371 110.613C84.8743 109.166 86.6407 108.443 88.7365 108.443C90.8323 108.443 92.5988 109.166 94.0359 110.613C95.4731 111.999 96.1916 113.717 96.1916 115.767Z' fill='%23747474'/%3e%3c/svg%3e";
|
|
@@ -7,7 +7,7 @@ var React = require('react');
|
|
|
7
7
|
var clsx = require('clsx');
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
9
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
10
|
-
var Icon = require('../../
|
|
10
|
+
var Icon = require('../../Icon_cjs_BaWMPaAR.js');
|
|
11
11
|
var Text = require('../../Text_cjs_D4xG0cKD.js');
|
|
12
12
|
var Scrollbar = require('../../Scrollbar_cjs_DcKOfcNp.js');
|
|
13
13
|
require('lodash/camelCase');
|
|
@@ -24,8 +24,8 @@ require('lodash/maxBy');
|
|
|
24
24
|
require('../hooks/useStyles/styleAttributes.js');
|
|
25
25
|
require('react-inlinesvg');
|
|
26
26
|
require('../../Link_cjs_yht44xJv.js');
|
|
27
|
-
require('../../
|
|
28
|
-
require('../../
|
|
27
|
+
require('../../Tooltip_cjs_CY4HOzhz.js');
|
|
28
|
+
require('../../Title_cjs_ByPcFb15.js');
|
|
29
29
|
require('react-scrollbars-custom');
|
|
30
30
|
|
|
31
31
|
var searchAppearanceSize = {
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var Select = require('react-select');
|
|
6
|
-
var Icon = require('../../
|
|
6
|
+
var Icon = require('../../Icon_cjs_BaWMPaAR.js');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var clsx = require('clsx');
|
|
9
9
|
var CreatableSelect = require('react-select/creatable');
|
|
10
10
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
11
11
|
var Text = require('../../Text_cjs_D4xG0cKD.js');
|
|
12
|
-
var Badge = require('../../
|
|
12
|
+
var Badge = require('../../Badge_cjs_CeqDdbMs.js');
|
|
13
13
|
var Group = require('../../Group_cjs_DFmNT5Mq.js');
|
|
14
14
|
var Divider = require('../../Divider_cjs_DakITdTv.js');
|
|
15
15
|
require('react-inlinesvg');
|
|
@@ -26,8 +26,8 @@ require('react-responsive');
|
|
|
26
26
|
require('../utils/setViewportProperty.js');
|
|
27
27
|
require('../hooks/useStyles/styleAttributes.js');
|
|
28
28
|
require('../../Link_cjs_yht44xJv.js');
|
|
29
|
-
require('../../
|
|
30
|
-
require('../../
|
|
29
|
+
require('../../Tooltip_cjs_CY4HOzhz.js');
|
|
30
|
+
require('../../Title_cjs_ByPcFb15.js');
|
|
31
31
|
require('lodash/castArray');
|
|
32
32
|
|
|
33
33
|
// interface ClearIndicatorProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>>
|
|
@@ -54,7 +54,7 @@ var selectAppearanceDefault = {
|
|
|
54
54
|
noOptionsText: 'Ничего не найдено...',
|
|
55
55
|
noOptionsTextColor: 'surfaceTextPrimary',
|
|
56
56
|
optionFill: 'surfacePrimary',
|
|
57
|
-
optionFillHover: '
|
|
57
|
+
optionFillHover: 'surfaceHover',
|
|
58
58
|
optionTextColor: 'surfaceTextPrimary',
|
|
59
59
|
placeholder: 'Выбрать...',
|
|
60
60
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
@@ -230,8 +230,8 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
|
230
230
|
return {};
|
|
231
231
|
}, [appearance]);
|
|
232
232
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
233
|
-
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, elevation = propsGenerator.elevation, badgeTextSize = propsGenerator.badgeTextSize, clearIconFill = propsGenerator.clearIconFill, dividerFill = propsGenerator.dividerFill, dropdownFillHover = propsGenerator.dropdownFillHover, dropdownIconFill = propsGenerator.dropdownIconFill, dropdownIconShape = propsGenerator.dropdownIconShape, headingFillClass = propsGenerator.headingFillClass, headingFillHoverClass = propsGenerator.headingFillHoverClass, headingTextColorClass = propsGenerator.headingTextColorClass, headingTextSizeClass = propsGenerator.headingTextSizeClass, headingTextWeightClass = propsGenerator.headingTextWeightClass, inputBorderColorClass = propsGenerator.inputBorderColorClass, inputBorderColorHoverClass = propsGenerator.inputBorderColorHoverClass, inputCaretColorClass = propsGenerator.inputCaretColorClass, inputFillClass = propsGenerator.inputFillClass, inputShapeClass = propsGenerator.inputShapeClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, multipleItemFill = propsGenerator.multipleItemFill, multipleItemFillHover = propsGenerator.multipleItemFillHover, multipleItemIcon = propsGenerator.multipleItemIcon, multipleItemIconFill = propsGenerator.multipleItemIconFill, multipleItemTextColorClass = propsGenerator.multipleItemTextColorClass, multipleItemTextSizeClass = propsGenerator.multipleItemTextSizeClass, noOptionsTextColorClass = propsGenerator.noOptionsTextColorClass, noOptionsTextSizeClass = propsGenerator.noOptionsTextSizeClass, optionBorderClass = propsGenerator.optionBorderClass, optionBorderTypeClass = propsGenerator.optionBorderTypeClass, optionFillClass = propsGenerator.optionFillClass, optionFillHoverClass = propsGenerator.optionFillHoverClass, optionShapeClass = propsGenerator.optionShapeClass, optionTextColorClass = propsGenerator.optionTextColorClass, optionTextSizeClass = propsGenerator.optionTextSizeClass, placeholderTextColor = propsGenerator.placeholderTextColor, placeholderTextSize = propsGenerator.placeholderTextSize, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass;
|
|
234
|
-
return (jsxRuntime.jsx(SelectComponent, { className: clsx(className, 'select', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "select_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), sizeClass && "select_size_".concat(sizeClass), hideValueContainer && 'select_state_hide-value-container', set && "select_set_".concat(set)), elevation: elevation, isDisabled: isDisabled, badgeAppearance: badgeAppearance, badgeSize: badgeSize, badgeTextSize: badgeTextSize, classNamePrefix: "select", clearIcon: clearIcon, clearIconFill: clearIconFill, components: {
|
|
233
|
+
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, elevation = propsGenerator.elevation, badgeTextSize = propsGenerator.badgeTextSize, clearIconFill = propsGenerator.clearIconFill, dividerFill = propsGenerator.dividerFill, dropdownFillHover = propsGenerator.dropdownFillHover, dropdownIconFill = propsGenerator.dropdownIconFill, dropdownIconShape = propsGenerator.dropdownIconShape, headingFillClass = propsGenerator.headingFillClass, headingFillHoverClass = propsGenerator.headingFillHoverClass, headingTextColorClass = propsGenerator.headingTextColorClass, headingTextSizeClass = propsGenerator.headingTextSizeClass, headingTextWeightClass = propsGenerator.headingTextWeightClass, inputBorderColorClass = propsGenerator.inputBorderColorClass, inputBorderColorHoverClass = propsGenerator.inputBorderColorHoverClass, inputCaretColorClass = propsGenerator.inputCaretColorClass, inputFillClass = propsGenerator.inputFillClass, inputShapeClass = propsGenerator.inputShapeClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, multipleItemFill = propsGenerator.multipleItemFill, multipleItemFillHover = propsGenerator.multipleItemFillHover, multipleItemIcon = propsGenerator.multipleItemIcon, multipleItemIconFill = propsGenerator.multipleItemIconFill, multipleItemTextColorClass = propsGenerator.multipleItemTextColorClass, multipleItemTextSizeClass = propsGenerator.multipleItemTextSizeClass, noOptionsTextColorClass = propsGenerator.noOptionsTextColorClass, noOptionsTextSizeClass = propsGenerator.noOptionsTextSizeClass, optionBorderClass = propsGenerator.optionBorderClass, optionBorderTypeClass = propsGenerator.optionBorderTypeClass, optionFillClass = propsGenerator.optionFillClass, optionFillHoverClass = propsGenerator.optionFillHoverClass, optionShapeClass = propsGenerator.optionShapeClass, optionTextColorClass = propsGenerator.optionTextColorClass, optionTextSizeClass = propsGenerator.optionTextSizeClass, placeholderTextColor = propsGenerator.placeholderTextColor, placeholderTextSize = propsGenerator.placeholderTextSize, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass, sizeClass = propsGenerator.sizeClass;
|
|
234
|
+
return (jsxRuntime.jsx(SelectComponent, { className: clsx(className, 'select', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "select_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), sizeClass && "select_size_".concat(sizeClass), hideValueContainer && 'select_state_hide-value-container', set && "select_set_".concat(set), widthClass && "select_width_".concat(widthClass)), elevation: elevation, isDisabled: isDisabled, badgeAppearance: badgeAppearance, badgeSize: badgeSize, badgeTextSize: badgeTextSize, classNamePrefix: "select", clearIcon: clearIcon, clearIconFill: clearIconFill, components: {
|
|
235
235
|
IndicatorSeparator: function () { return null; },
|
|
236
236
|
ClearIndicator: SelectClearIndicator,
|
|
237
237
|
Control: SelectControl,
|