@itcase/ui 1.8.0 → 1.8.1
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/{Button-DJxd2_t4.js → Button-CWPTzaG2.js} +1 -1
- package/dist/{Button-K5n8BI_w.js → Button-DHOZJDHv.js} +1 -1
- package/dist/{DropdownItem-f29l8dds.js → DropdownItem-Cl1pYnVf.js} +4 -4
- package/dist/{DropdownItem-CdAS1E-G.js → DropdownItem-_bKQxzEZ.js} +4 -4
- package/dist/{Input-v52BiIsb.js → Input-BH6rNRqZ.js} +2 -2
- package/dist/{Input-C_HeI9UK.js → Input-BRhHPsGM.js} +2 -2
- package/dist/{Loader-CZVsMYl6.js → Loader-CjT6-r3I.js} +1 -1
- package/dist/{Loader-BnhUh-g6.js → Loader-Dquhwxz4.js} +1 -1
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Choice.js +54 -44
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DadataHintField.js +1 -1
- package/dist/cjs/components/DatePicker.js +13 -8
- package/dist/cjs/components/Dropdown.js +1 -1
- package/dist/cjs/components/Grid.js +5 -5
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/Loader.js +1 -1
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Pagination.js +15 -47
- package/dist/cjs/components/Response.js +2 -2
- package/dist/cjs/context/Notifications.js +3 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Choice.js +55 -45
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DadataHintField.js +1 -1
- package/dist/components/DatePicker.js +13 -8
- package/dist/components/Dropdown.js +1 -1
- package/dist/components/Grid.js +5 -5
- package/dist/components/Input.js +1 -1
- package/dist/components/Loader.js +1 -1
- package/dist/components/Modal.js +1 -1
- package/dist/components/Pagination.js +15 -47
- package/dist/components/Response.js +2 -2
- package/dist/context/Notifications.js +3 -1
- package/dist/css/components/Choice/Choice.css +32 -40
- package/dist/css/components/Choice/css/__item/choice__item.css +5 -16
- package/dist/css/components/Choice/css/__item/choice__item_shape.css +11 -0
- package/dist/css/components/DatePicker/DatePicker.css +3 -6
- package/dist/css/components/Dropdown/Dropdown.css +16 -25
- package/dist/css/components/Grid/Grid.css +50 -8
- package/dist/css/components/Grid/css/__item/grid__item_column.css +13 -1
- package/dist/css/components/Grid/css/__item/grid__item_justify-self.css +4 -1
- package/dist/css/components/Grid/css/__item/grid__item_row.css +2 -1
- package/dist/css/components/Input/Input.css +3 -0
- package/dist/css/components/Pagination/Pagination.css +10 -8
- package/dist/css/components/Pagination/css/__item/pagination__item.css +4 -5
- package/dist/css/styles/fill/fill_active.css +14 -0
- package/dist/css/styles/fill/fill_active_hover.css +50 -0
- package/dist/css/styles/fill/fill_hover.css +33 -0
- package/dist/types/components/Choice/appearance/choiceAccent.d.ts +11 -0
- package/dist/types/components/Choice/appearance/choiceSurface.d.ts +22 -0
- package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +29 -2
- package/dist/types/components/DatePicker/appearance/datePickerSurface.d.ts +30 -0
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +34 -0
- package/dist/types/context/Notifications.d.ts +3 -2
- package/package.json +16 -16
|
@@ -7,7 +7,8 @@ var clsx = require('clsx');
|
|
|
7
7
|
var ceil = require('lodash/ceil');
|
|
8
8
|
var ReactPaginate = require('react-paginate');
|
|
9
9
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
|
-
var
|
|
10
|
+
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
11
|
+
var DropdownItem = require('../../DropdownItem-_bKQxzEZ.js');
|
|
11
12
|
var Icon = require('../../Icon-D_BDlSSb.js');
|
|
12
13
|
var Text = require('../../Text-DwIx33-P.js');
|
|
13
14
|
require('lodash/camelCase');
|
|
@@ -20,7 +21,6 @@ require('../context/UIContext.js');
|
|
|
20
21
|
require('../hooks/useMediaQueries/useMediaQueries.js');
|
|
21
22
|
require('react-responsive');
|
|
22
23
|
require('../utils/setViewportProperty.js');
|
|
23
|
-
require('../hooks/useStyles/useStyles.js');
|
|
24
24
|
require('lodash/maxBy');
|
|
25
25
|
require('../hooks/useStyles/styleAttributes.js');
|
|
26
26
|
require('../../Divider-BQIfjvPR.js');
|
|
@@ -29,8 +29,8 @@ require('../../Link-CZ8o5lGW.js');
|
|
|
29
29
|
require('../../Tooltip-hznDyLwa.js');
|
|
30
30
|
require('../../Title-ByfOyy-n.js');
|
|
31
31
|
|
|
32
|
-
var
|
|
33
|
-
|
|
32
|
+
var paginationAppearanceSurface = {
|
|
33
|
+
surfacePrimary: {
|
|
34
34
|
fill: 'surfacePrimary',
|
|
35
35
|
fillHover: 'surfaceSecondary',
|
|
36
36
|
gap: '8',
|
|
@@ -39,7 +39,7 @@ var paginationAppearance = {
|
|
|
39
39
|
pageCountDescTextColor: 'surfaceTextPrimary',
|
|
40
40
|
pageCountDescTextSize: 'm',
|
|
41
41
|
pageCountDropdownAlignment: 'topCenter',
|
|
42
|
-
pageCountDropdownElevation:
|
|
42
|
+
pageCountDropdownElevation: 8,
|
|
43
43
|
pageCountDropdownFill: 'surfacePrimary',
|
|
44
44
|
pageCountDropdownItemDividerFill: 'surfaceSecondary',
|
|
45
45
|
pageCountDropdownItemDividerSize: 'xxs',
|
|
@@ -54,7 +54,6 @@ var paginationAppearance = {
|
|
|
54
54
|
pageCountDropdownItemShowDivider: true,
|
|
55
55
|
pageCountDropdownItemSize: 'l',
|
|
56
56
|
pageCountDropdownItemWidth: 'hug',
|
|
57
|
-
pageCountDropdownSet: 'default',
|
|
58
57
|
pageCountDropdownShape: 'rounded',
|
|
59
58
|
pageCountInputIconColor: 'surfaceItemPrimary',
|
|
60
59
|
pageCountInputIconFillSize: '24',
|
|
@@ -64,6 +63,8 @@ var paginationAppearance = {
|
|
|
64
63
|
},
|
|
65
64
|
};
|
|
66
65
|
|
|
66
|
+
var paginationAppearance = tslib_es6.__assign({}, paginationAppearanceSurface);
|
|
67
|
+
|
|
67
68
|
var paginationConfig = {
|
|
68
69
|
appearance: paginationAppearance,
|
|
69
70
|
setAppearance: function (appearanceConfig) {
|
|
@@ -71,7 +72,7 @@ var paginationConfig = {
|
|
|
71
72
|
},
|
|
72
73
|
};
|
|
73
74
|
function Pagination(props) {
|
|
74
|
-
var className = props.className, appearance = props.appearance, _a = props.allItemsCount, allItemsCount = _a === void 0 ? 0 : _a,
|
|
75
|
+
var className = props.className, appearance = props.appearance, _a = props.allItemsCount, allItemsCount = _a === void 0 ? 0 : _a, dataTestId = props.dataTestId, dataTour = props.dataTour, nextLabel = props.nextLabel, _b = props.pageCountArray, pageCountArray = _b === void 0 ? [10, 20, 50, 100] : _b, pageCountDropdownItemDividerDirection = props.pageCountDropdownItemDividerDirection, _c = props.pageCountDesc, pageCountDesc = _c === void 0 ? 'кол-во строк' : _c, pageCountInputIconSrc = props.pageCountInputIconSrc, _d = props.pageNumber, pageNumber = _d === void 0 ? 0 : _d, _e = props.perPageCount, perPageCount = _e === void 0 ? 0 : _e, previousLabel = props.previousLabel, isPageCount = props.isPageCount, _f = props.isPageCountDropdownReversed, isPageCountDropdownReversed = _f === void 0 ? false : _f, onChangePage = props.onChangePage, onChangePerPageCount = props.onChangePerPageCount,
|
|
75
76
|
/**
|
|
76
77
|
* @deprecated The method should not be used
|
|
77
78
|
*/
|
|
@@ -133,49 +134,16 @@ function Pagination(props) {
|
|
|
133
134
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = paginationConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
134
135
|
}, {});
|
|
135
136
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
136
|
-
var justifyContentClass = propsGenerator.justifyContentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
breakLabel: "...", breakLinkClassName: "pagination__item-link", containerClassName: clsx(className, 'pagination__container', justifyContentClass &&
|
|
137
|
+
var justifyContentClass = propsGenerator.justifyContentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, marginPagesDisplayed = propsGenerator.marginPagesDisplayed, pageCountDescTextColor = propsGenerator.pageCountDescTextColor, pageCountDescTextSize = propsGenerator.pageCountDescTextSize, pageCountDropdownAlignment = propsGenerator.pageCountDropdownAlignment, pageCountDropdownElevation = propsGenerator.pageCountDropdownElevation, pageCountDropdownFill = propsGenerator.pageCountDropdownFill, pageCountDropdownItemDividerFill = propsGenerator.pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize = propsGenerator.pageCountDropdownItemDividerSize, pageCountDropdownItemFill = propsGenerator.pageCountDropdownItemFill, pageCountDropdownItemFillActive = propsGenerator.pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover = propsGenerator.pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover = propsGenerator.pageCountDropdownItemFillHover, pageCountDropdownItemLabelAlign = propsGenerator.pageCountDropdownItemLabelAlign, pageCountDropdownItemLabelColor = propsGenerator.pageCountDropdownItemLabelColor, pageCountDropdownItemLabelColorActive = propsGenerator.pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelSize = propsGenerator.pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap = propsGenerator.pageCountDropdownItemLabelWrap, pageCountDropdownItemShowDivider = propsGenerator.pageCountDropdownItemShowDivider, pageCountDropdownItemSize = propsGenerator.pageCountDropdownItemSize, pageCountDropdownItemWidth = propsGenerator.pageCountDropdownItemWidth, pageCountDropdownShape = propsGenerator.pageCountDropdownShape, pageCountInputIcon = propsGenerator.pageCountInputIcon, pageCountInputIconColor = propsGenerator.pageCountInputIconColor, pageCountInputIconFillSize = propsGenerator.pageCountInputIconFillSize, pageCountInputTextColor = propsGenerator.pageCountInputTextColor, pageCountInputTextSize = propsGenerator.pageCountInputTextSize, pageRangeDisplayed = propsGenerator.pageRangeDisplayed;
|
|
138
|
+
var paginationStyles = useStyles.useStyles(props).styles;
|
|
139
|
+
return (jsxRuntime.jsxs("div", { className: "pagination", "data-testid": dataTestId, "data-tour": dataTour, style: paginationStyles, children: [jsxRuntime.jsx(ReactPaginate, { disabledClassName: "pagination__item_state_disabled cursor_type_default", disabledLinkClassName: "pagination__item_state_disabled", activeClassName: "pagination__item_state_active cursor_type_default", activeLinkClassName: "pagination__item-link_state_active", breakClassName: "pagination__item pagination__item_break", breakLabel: "...", breakLinkClassName: "pagination__item-link", containerClassName: clsx(className, 'pagination__container', justifyContentClass &&
|
|
140
140
|
"pagination_justify-content_".concat(justifyContentClass)),
|
|
141
141
|
// pages settings
|
|
142
|
-
forcePage: paginationPageIndex, marginPagesDisplayed: marginPagesDisplayed
|
|
142
|
+
forcePage: paginationPageIndex, marginPagesDisplayed: marginPagesDisplayed, nextClassName: "pagination__item pagination__item_next",
|
|
143
143
|
// next button
|
|
144
|
-
nextLabel: nextLabel, nextLinkClassName: "pagination__item-link",
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
// previous button
|
|
148
|
-
previousLabel: previousLabel, previousLinkClassName: "pagination__item-link", onPageChange: _onChangePage }), isPageCount && (jsxRuntime.jsxs("div", { className: clsx(className, 'pagination__count', gapClass && "gap_".concat(gapClass)), children: [jsxRuntime.jsx(Text.Text, { size: pageCountDescTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDescTextSize), textColor: pageCountDescTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDescTextColor), children: pageCountDesc || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDesc) }), jsxRuntime.jsxs("div", { className: clsx('pagination__input', 'cursor_type_pointer', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), onClick: onClickCommandMenuButton, children: [jsxRuntime.jsx(Text.Text, { size: pageCountInputTextSize ||
|
|
149
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputTextSize), textColor: pageCountInputTextColor ||
|
|
150
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputTextColor), children: activeDropdownItem }), jsxRuntime.jsx(Icon.Icon, { fillSize: pageCountInputIconFillSize ||
|
|
151
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputIconFillSize), iconFill: pageCountInputIconColor ||
|
|
152
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputIconColor), imageSrc: pageCountInputIconSrc, SvgImage: pageCountInputIcon }), jsxRuntime.jsx(DropdownItem.Dropdown, { alignment: pageCountDropdownAlignment ||
|
|
153
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownAlignment), fill: pageCountDropdownFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownFill), elevation: pageCountDropdownElevation ||
|
|
154
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownElevation), shape: pageCountDropdownShape ||
|
|
155
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownShape), isOpen: isOpenDropdown, set: pageCountDropdownSet || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownSet), setIsOpen: setIsOpenDropdown, children: pageCountDropdownArray.map(function (item, index) {
|
|
156
|
-
return activeDropdownItem === item ? (jsxRuntime.jsx(DropdownItem.DropdownItem, { width: pageCountDropdownItemWidth ||
|
|
157
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemWidth), size: pageCountDropdownItemSize ||
|
|
158
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemSize), fill: pageCountDropdownItemFill ||
|
|
159
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFill), fillActive: pageCountDropdownItemFillActive ||
|
|
160
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillActive), fillActiveHover: pageCountDropdownItemFillActiveHover ||
|
|
161
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillActiveHover), fillHover: pageCountDropdownItemFillHover ||
|
|
162
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillHover), label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign ||
|
|
163
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelAlign), labelTextColor: pageCountDropdownItemLabelColor ||
|
|
164
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColor), labelTextColorActive: pageCountDropdownItemLabelColorActive ||
|
|
165
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColorActive), labelTextSize: pageCountDropdownItemLabelSize ||
|
|
166
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelSize), labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill ||
|
|
167
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemDividerFill), dividerSize: pageCountDropdownItemDividerSize ||
|
|
168
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemDividerSize), showDivider: index < pageCountArray.length - 1 &&
|
|
169
|
-
(pageCountDropdownItemShowDivider ||
|
|
170
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemShowDivider)), isActive: true, onClick: function (event) { return handleDropdownItemClick(event, item); } }, item)) : (jsxRuntime.jsx(DropdownItem.DropdownItem, { width: pageCountDropdownItemWidth ||
|
|
171
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemWidth), size: pageCountDropdownItemSize ||
|
|
172
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemSize), fill: pageCountDropdownItemFill, fillHover: pageCountDropdownItemFillHover ||
|
|
173
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillHover), label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign ||
|
|
174
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelAlign), labelTextColor: pageCountDropdownItemLabelColor ||
|
|
175
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColor), labelTextColorActive: pageCountDropdownItemLabelColorActive ||
|
|
176
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColorActive), labelTextSize: pageCountDropdownItemLabelSize ||
|
|
177
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelSize), labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill, dividerSize: pageCountDropdownItemDividerSize ||
|
|
178
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemDividerSize), showDivider: index < pageCountArray.length - 1 &&
|
|
144
|
+
nextLabel: nextLabel, nextLinkClassName: "pagination__item-link", pageClassName: "pagination__item", pageCount: paginationPagesCount, pageLinkClassName: "pagination__item-link", pageRangeDisplayed: pageRangeDisplayed, previousClassName: "pagination__item pagination__item_previous", previousLabel: previousLabel, previousLinkClassName: "pagination__item-link", onPageChange: _onChangePage }), isPageCount && (jsxRuntime.jsxs("div", { className: clsx(className, 'pagination__count'), children: [jsxRuntime.jsx(Text.Text, { className: "pagination__count-text", size: pageCountDescTextSize, textColor: pageCountDescTextColor, children: pageCountDesc }), jsxRuntime.jsxs("div", { className: clsx('pagination__input', 'cursor_type_pointer', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), onClick: onClickCommandMenuButton, children: [jsxRuntime.jsx(Text.Text, { size: pageCountInputTextSize, textColor: pageCountInputTextColor, children: activeDropdownItem }), jsxRuntime.jsx(Icon.Icon, { fillSize: pageCountInputIconFillSize, iconFill: pageCountInputIconColor, imageSrc: pageCountInputIconSrc, SvgImage: pageCountInputIcon }), jsxRuntime.jsx(DropdownItem.Dropdown, { alignment: pageCountDropdownAlignment, fill: pageCountDropdownFill, elevation: pageCountDropdownElevation, shape: pageCountDropdownShape, isOpen: isOpenDropdown, setIsOpen: setIsOpenDropdown, children: pageCountDropdownArray.map(function (item, index) {
|
|
145
|
+
return activeDropdownItem === item ? (jsxRuntime.jsx(DropdownItem.DropdownItem, { width: pageCountDropdownItemWidth, size: pageCountDropdownItemSize, fill: pageCountDropdownItemFill, fillActive: pageCountDropdownItemFillActive, fillActiveHover: pageCountDropdownItemFillActiveHover, fillHover: pageCountDropdownItemFillHover, label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign, labelTextColor: pageCountDropdownItemLabelColor, labelTextColorActive: pageCountDropdownItemLabelColorActive, labelTextSize: pageCountDropdownItemLabelSize, labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill, dividerSize: pageCountDropdownItemDividerSize, showDivider: index < pageCountArray.length - 1 &&
|
|
146
|
+
pageCountDropdownItemShowDivider, isActive: true, onClick: function (event) { return handleDropdownItemClick(event, item); } }, item)) : (jsxRuntime.jsx(DropdownItem.DropdownItem, { width: pageCountDropdownItemWidth, size: pageCountDropdownItemSize, fill: pageCountDropdownItemFill, fillHover: pageCountDropdownItemFillHover, label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign, labelTextColor: pageCountDropdownItemLabelColor, labelTextColorActive: pageCountDropdownItemLabelColorActive, labelTextSize: pageCountDropdownItemLabelSize, labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill, dividerSize: pageCountDropdownItemDividerSize, showDivider: index < pageCountArray.length - 1 &&
|
|
179
147
|
pageCountDropdownItemShowDivider, isActive: false, onClick: function (event) { return handleDropdownItemClick(event, item); } }, item));
|
|
180
148
|
}) })] })] }))] }));
|
|
181
149
|
}
|
|
@@ -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('../../Button-
|
|
10
|
+
var Button = require('../../Button-CWPTzaG2.js');
|
|
11
11
|
var Group = require('../../Group-utjnjUDZ.js');
|
|
12
12
|
var Text = require('../../Text-DwIx33-P.js');
|
|
13
13
|
require('lodash/camelCase');
|
|
@@ -26,7 +26,7 @@ require('../../Icon-D_BDlSSb.js');
|
|
|
26
26
|
require('../../Link-CZ8o5lGW.js');
|
|
27
27
|
require('../../Tooltip-hznDyLwa.js');
|
|
28
28
|
require('../../Title-ByfOyy-n.js');
|
|
29
|
-
require('../../Loader-
|
|
29
|
+
require('../../Loader-CjT6-r3I.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";
|
|
32
32
|
|
|
@@ -14,11 +14,13 @@ var STATUSES = {
|
|
|
14
14
|
warning: 'warning',
|
|
15
15
|
};
|
|
16
16
|
var NotificationsContext = React.createContext([]);
|
|
17
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
17
18
|
var NotificationsAPIContext = React.createContext({
|
|
18
19
|
hideNotifications: function () { },
|
|
19
|
-
showNotification: function () { },
|
|
20
|
+
showNotification: function (notification, onClose) { },
|
|
20
21
|
notificationStatuses: STATUSES,
|
|
21
22
|
});
|
|
23
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
22
24
|
function NotificationsProvider(props) {
|
|
23
25
|
var _a = props.initialNotificationsList, initialNotificationsList = _a === void 0 ? [] : _a, isLogRequestsErrors = props.isLogRequestsErrors, children = props.children;
|
|
24
26
|
var _b = React.useState(function () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button-
|
|
1
|
+
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button-DHOZJDHv.js';
|
|
2
2
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -23,4 +23,4 @@ import '../Link-Cn7hiWmM.js';
|
|
|
23
23
|
import '../Tooltip-DP32J5V6.js';
|
|
24
24
|
import '../Text-aaWArShm.js';
|
|
25
25
|
import '../Title--_epIXkC.js';
|
|
26
|
-
import '../Loader-
|
|
26
|
+
import '../Loader-Dquhwxz4.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { _ as __assign } from '../tslib.es6-Bwu1Cn-t.js';
|
|
2
|
-
import {
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useRef, useMemo, createRef, useCallback } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
7
|
import { I as Icon } from '../Icon-BF7i3XdQ.js';
|
|
8
|
-
import { L as Loader } from '../Loader-
|
|
8
|
+
import { L as Loader } from '../Loader-Dquhwxz4.js';
|
|
9
9
|
import { T as Text } from '../Text-aaWArShm.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
@@ -24,30 +24,41 @@ import '../Link-Cn7hiWmM.js';
|
|
|
24
24
|
import '../Tooltip-DP32J5V6.js';
|
|
25
25
|
import '../Title--_epIXkC.js';
|
|
26
26
|
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
size: 'normal',
|
|
27
|
+
var choiceAppearanceAccent = {
|
|
28
|
+
accentPrimary: {
|
|
30
29
|
fill: 'surfacePrimary',
|
|
31
30
|
fillActive: 'accentPrimary',
|
|
32
31
|
labelTextActiveColor: 'accentTextPrimary',
|
|
33
32
|
labelTextColor: 'surfaceTextPrimary',
|
|
34
33
|
labelTextSize: 's',
|
|
35
34
|
borderColor: 'surfaceBorderSecondary',
|
|
36
|
-
shape: 'rounded',
|
|
37
35
|
},
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
var choiceAppearanceSurface = {
|
|
39
|
+
surfacePrimary: {
|
|
40
40
|
fill: 'surfacePrimary',
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
fillItem: 'surfaceItemInverse',
|
|
42
|
+
fillItemActive: 'surfaceItemSecondary',
|
|
43
|
+
fillItemActiveHover: 'surfaceItemTertiary',
|
|
44
|
+
fillItemHover: 'surfaceItemSecondary',
|
|
45
|
+
labelTextActiveColor: 'surfaceTextPrimary',
|
|
46
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
47
|
+
labelTextSize: 'm',
|
|
48
|
+
},
|
|
49
|
+
surfaceSecondary: {
|
|
50
|
+
fill: 'surfaceSecondary',
|
|
51
|
+
fillItem: 'surfacePrimary',
|
|
52
|
+
fillItemActive: 'surfacePrimary',
|
|
53
|
+
fillItemHover: 'surfacePrimary',
|
|
43
54
|
labelTextActiveColor: 'surfaceTextPrimary',
|
|
44
55
|
labelTextColor: 'surfaceTextPrimary',
|
|
45
56
|
labelTextSize: 'm',
|
|
46
|
-
borderColor: 'surfaceBorderTertiary',
|
|
47
|
-
shape: 'rounded',
|
|
48
57
|
},
|
|
49
58
|
};
|
|
50
59
|
|
|
60
|
+
var choiceAppearance = __assign(__assign({}, choiceAppearanceAccent), choiceAppearanceSurface);
|
|
61
|
+
|
|
51
62
|
var choiceConfig = {
|
|
52
63
|
appearance: choiceAppearance,
|
|
53
64
|
setAppearance: function (appearanceConfig) {
|
|
@@ -55,7 +66,7 @@ var choiceConfig = {
|
|
|
55
66
|
},
|
|
56
67
|
};
|
|
57
68
|
function Choice(props) {
|
|
58
|
-
var id = props.id, className = props.className, type = props.type, name = props.name, appearance = props.appearance,
|
|
69
|
+
var id = props.id, className = props.className, type = props.type, name = props.name, appearance = props.appearance, size = props.size, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, _b = props.active, active = _b === void 0 ? { value: undefined } : _b, activeIcon = props.activeIcon, dataTestId = props.dataTestId, dataTour = props.dataTour, icon = props.icon, itemAfter = props.itemAfter, itemBefore = props.itemBefore, _c = props.options, options = _c === void 0 ? [] : _c, before = props.before, after = props.after, _d = props.isCheckbox, isCheckbox = _d === void 0 ? false : _d, _e = props.isLoading, isLoading = _e === void 0 ? false : _e, setActiveSegment = props.setActiveSegment;
|
|
59
70
|
var controlRef = useRef(null);
|
|
60
71
|
var optionsRefs = useMemo(function () {
|
|
61
72
|
return new Map(options.map(function (item) { return [item.value, createRef()]; }));
|
|
@@ -69,39 +80,38 @@ function Choice(props) {
|
|
|
69
80
|
return (__assign(__assign({}, resultConfig), (_a = choiceConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
70
81
|
}, {});
|
|
71
82
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
72
|
-
var
|
|
73
|
-
// @ts-expect-error
|
|
83
|
+
var fillClass = propsGenerator.fillClass, fillItemActiveClass = propsGenerator.fillItemActiveClass, fillItemActiveDisabledClass = propsGenerator.fillItemActiveDisabledClass, fillItemActiveHoverClass = propsGenerator.fillItemActiveHoverClass, fillItemClass = propsGenerator.fillItemClass, fillItemDisabledClass = propsGenerator.fillItemDisabledClass, fillItemHoverClass = propsGenerator.fillItemHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveColorDisabled = propsGenerator.labelTextActiveColorDisabled, labelTextColor = propsGenerator.labelTextColor, labelTextColorDisabled = propsGenerator.labelTextColorDisabled, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconFillDisabled = propsGenerator.iconFillDisabled, activeIconItemFill = propsGenerator.activeIconItemFill, iconItemFill = propsGenerator.iconItemFill, iconSize = propsGenerator.iconSize, shapeClass = propsGenerator.shapeClass, shapeItemClass = propsGenerator.shapeItemClass, wrapClass = propsGenerator.wrapClass;
|
|
74
84
|
var styles = useStyles(props).styles;
|
|
75
|
-
return (
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
85
|
+
return (jsxs("div", { id: id, className: clsx(className, 'choice', fillClass && "fill_".concat(fillClass), shapeClass && "choice_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), size && "choice_size_".concat(size), type && "choice_type_".concat(type), wrapClass && "choice_wrap_".concat(wrapClass)), "data-testid": dataTestId && "".concat(dataTestId, "Choice"), "data-tour": dataTour, ref: controlRef, style: styles, children: [before && jsx("div", { className: "choice__before", children: before }), isLoading ? (jsx(Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemAccent" })) : (jsx(React.Fragment, { children: options.map(function (item) {
|
|
86
|
+
var isActive = typeof active === 'object'
|
|
87
|
+
? String(item.value) === String(active.value)
|
|
88
|
+
: String(item.value) === String(active);
|
|
89
|
+
return (jsxs("div", { className: clsx('choice__item', !isDisabled
|
|
90
|
+
? fillItemClass && "fill_".concat(fillItemClass)
|
|
91
|
+
: fillItemDisabledClass &&
|
|
92
|
+
"fill_disabled_".concat(fillItemDisabledClass), !isDisabled
|
|
93
|
+
? fillItemHoverClass && "fill_hover_".concat(fillItemHoverClass)
|
|
94
|
+
: null, !isActive && isDisabled && 'choice__item_state_disabled', isActive &&
|
|
95
|
+
fillItemActiveHoverClass &&
|
|
96
|
+
"fill_active_hover_".concat(fillItemActiveHoverClass), isActive
|
|
97
|
+
? !isDisabled
|
|
98
|
+
? fillItemActiveClass &&
|
|
99
|
+
"fill_active_".concat(fillItemActiveClass)
|
|
100
|
+
: fillItemActiveDisabledClass &&
|
|
101
|
+
"fill_active_disabled_".concat(fillItemActiveDisabledClass)
|
|
102
|
+
: !isDisabled
|
|
103
|
+
? fillItemClass && "fill_".concat(fillItemClass)
|
|
104
|
+
: fillItemDisabledClass &&
|
|
105
|
+
"fill_disabled_".concat(fillItemDisabledClass), isActive &&
|
|
106
|
+
isDisabled &&
|
|
107
|
+
'choice__item_active_state_disabled', isActive && 'choice__item_active', shapeItemClass && "choice__item_shape_".concat(shapeItemClass)), ref: optionsRefs.get(item.value), children: [jsx("input", { id: "".concat(name, "-").concat(item.value), className: "choice__item-radio", type: isCheckbox ? 'checkbox' : 'radio', name: name, disabled: isDisabled, checked: isActive, value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [itemBefore, item.label && (jsx(Text, { size: labelTextSize, textColor: isActive
|
|
108
|
+
? !isDisabled
|
|
109
|
+
? labelTextActiveColor
|
|
110
|
+
: labelTextActiveColorDisabled
|
|
111
|
+
: !isDisabled
|
|
112
|
+
? labelTextColor
|
|
113
|
+
: labelTextColorDisabled, textWeight: labelTextWeight, children: item.label })), (icon || activeIcon) && (jsx(Icon, { className: "choice__item-icon", iconFillDisabled: isDisabled ? iconFillDisabled : undefined, iconFill: isActive ? activeIconItemFill : iconItemFill, iconSize: iconSize, SvgImage: isActive ? activeIcon : icon })), itemAfter] })] }, "".concat(name, "-").concat(item.value)));
|
|
114
|
+
}) })), after && jsx("div", { className: "choice__after", children: after })] }));
|
|
105
115
|
}
|
|
106
116
|
|
|
107
117
|
export { Choice, choiceAppearance, choiceConfig };
|
|
@@ -3,7 +3,7 @@ import { useRef, useMemo, useCallback, useEffect } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import Cookies from 'js-cookie';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { B as Button } from '../Button-
|
|
6
|
+
import { B as Button } from '../Button-DHOZJDHv.js';
|
|
7
7
|
import { G as Group } from '../Group-C8NUU6k5.js';
|
|
8
8
|
import { T as Text } from '../Text-aaWArShm.js';
|
|
9
9
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
@@ -25,7 +25,7 @@ import '../hooks/useStyles/styleAttributes.js';
|
|
|
25
25
|
import '../Link-Cn7hiWmM.js';
|
|
26
26
|
import '../Tooltip-DP32J5V6.js';
|
|
27
27
|
import '../Title--_epIXkC.js';
|
|
28
|
-
import '../Loader-
|
|
28
|
+
import '../Loader-Dquhwxz4.js';
|
|
29
29
|
|
|
30
30
|
function CookiesWarning(props) {
|
|
31
31
|
var className = props.className, _a = props.message, message = _a === 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».' : _a, textColor = props.textColor, textSize = props.textSize, 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, _c = props.isHideOnScroll, isHideOnScroll = _c === void 0 ? false : _c;
|
|
@@ -3,7 +3,7 @@ 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-BH6rNRqZ.js';
|
|
7
7
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
@@ -6,9 +6,9 @@ import { ru } from 'date-fns/locale';
|
|
|
6
6
|
import DatePicker from 'react-datepicker';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
|
-
import { B as Button } from '../Button-
|
|
9
|
+
import { B as Button } from '../Button-DHOZJDHv.js';
|
|
10
10
|
import { I as Icon } from '../Icon-BF7i3XdQ.js';
|
|
11
|
-
import { I as Input } from '../Input-
|
|
11
|
+
import { I as Input } from '../Input-BH6rNRqZ.js';
|
|
12
12
|
import { L as Label } from '../Label-brG78nLi.js';
|
|
13
13
|
import { T as Text } from '../Text-aaWArShm.js';
|
|
14
14
|
import 'lodash/camelCase';
|
|
@@ -24,13 +24,13 @@ import '../utils/setViewportProperty.js';
|
|
|
24
24
|
import 'lodash/maxBy';
|
|
25
25
|
import '../hooks/useStyles/styleAttributes.js';
|
|
26
26
|
import '../Link-Cn7hiWmM.js';
|
|
27
|
-
import '../Loader-
|
|
27
|
+
import '../Loader-Dquhwxz4.js';
|
|
28
28
|
import 'react-inlinesvg';
|
|
29
29
|
import '../Tooltip-DP32J5V6.js';
|
|
30
30
|
import '../Title--_epIXkC.js';
|
|
31
31
|
|
|
32
|
-
var
|
|
33
|
-
|
|
32
|
+
var datePickerAppearanceSurface = {
|
|
33
|
+
surfacePrimary: {
|
|
34
34
|
datePicker: {
|
|
35
35
|
daySize: 'xs',
|
|
36
36
|
dayTextColor: 'surfaceTextPrimary',
|
|
@@ -46,18 +46,23 @@ var datePickerAppearance = {
|
|
|
46
46
|
},
|
|
47
47
|
input: {
|
|
48
48
|
width: '200',
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
width: 'fill',
|
|
50
|
+
size: 'm',
|
|
51
|
+
fill: 'surfacePrimary',
|
|
52
|
+
fillHover: 'surfacePrimary',
|
|
53
|
+
borderColor: 'surfaceBorderInverse',
|
|
51
54
|
textColor: 'surfaceTextPrimary',
|
|
52
55
|
textSize: 'm',
|
|
53
56
|
caret: 'surfaceItemPrimary',
|
|
57
|
+
caret: 'secondaryItemSecondary',
|
|
54
58
|
placeholderTextColor: 'surfaceTextSecondary',
|
|
55
59
|
shape: 'rounded',
|
|
56
60
|
},
|
|
57
|
-
shape: 'rounded',
|
|
58
61
|
},
|
|
59
62
|
};
|
|
60
63
|
|
|
64
|
+
var datePickerAppearance = __assign({}, datePickerAppearanceSurface);
|
|
65
|
+
|
|
61
66
|
var datePickerConfig = {
|
|
62
67
|
appearance: datePickerAppearance,
|
|
63
68
|
setAppearance: function (appearanceConfig) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem-
|
|
1
|
+
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem-Cl1pYnVf.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
package/dist/components/Grid.js
CHANGED
|
@@ -20,10 +20,10 @@ import '../hooks/useStyles/styleAttributes.js';
|
|
|
20
20
|
function Grid(props) {
|
|
21
21
|
var id = props.id, className = props.className, type = props.type, dataTour = props.dataTour, horizontalResizing = props.horizontalResizing, horizontalScroll = props.horizontalScroll, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, useGridSystem = props.useGridSystem, verticalResizing = props.verticalResizing, before = props.before, after = props.after, onClick = props.onClick, onDoubleClick = props.onDoubleClick, children = props.children;
|
|
22
22
|
var propsGenerator = useDevicePropsGenerator(props);
|
|
23
|
-
var justifyContentClass = propsGenerator.justifyContentClass, justifyItemsClass = propsGenerator.justifyItemsClass, alignContentClass = propsGenerator.alignContentClass, alignItemsClass = propsGenerator.alignItemsClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, columnGapClass = propsGenerator.columnGapClass, columnsClass = propsGenerator.columnsClass, rowGapClass = propsGenerator.rowGapClass, rowsClass = propsGenerator.rowsClass;
|
|
23
|
+
var justifyContentClass = propsGenerator.justifyContentClass, justifyItemsClass = propsGenerator.justifyItemsClass, alignContentClass = propsGenerator.alignContentClass, alignItemsClass = propsGenerator.alignItemsClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, columnGapClass = propsGenerator.columnGapClass, columnsClass = propsGenerator.columnsClass, heightClass = propsGenerator.heightClass, rowGapClass = propsGenerator.rowGapClass, rowsClass = propsGenerator.rowsClass, widthClass = propsGenerator.widthClass;
|
|
24
24
|
// @ts-expect-error
|
|
25
25
|
var gridStyles = useStyles(props).styles;
|
|
26
|
-
return (jsxs(Tag, { id: id, className: clsx(className, 'grid', useGridSystem && "grid_state_system", horizontalScroll && "grid_scroll_horizontal", type && "grid_type_".concat(type), columnsClass && "grid_columns_".concat(columnsClass), rowsClass && "grid_rows_".concat(rowsClass), rowGapClass && "grid_row-gap_".concat(rowGapClass), columnGapClass && "grid_column-gap_".concat(columnGapClass), alignContentClass && "grid_align-content_".concat(alignContentClass), alignItemsClass && "grid_align-items_".concat(alignItemsClass), borderColorClass && "border-color_".concat(borderColorClass), justifyContentClass && "grid_justify-content_".concat(justifyContentClass), justifyItemsClass && "grid_justify-items_".concat(justifyItemsClass), fillClass && "fill_".concat(fillClass), horizontalResizing && "grid_horizontal-resizing_".concat(horizontalResizing), verticalResizing && "grid_vertical-resizing_".concat(verticalResizing)), "data-tour": dataTour, style: gridStyles, onClick: onClick, onDoubleClick: onDoubleClick, children: [before && jsx("div", { className: "grid__before", children: before }), children, after && jsx("div", { className: "grid__after", children: after })] }));
|
|
26
|
+
return (jsxs(Tag, { id: id, className: clsx(className, 'grid', widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), useGridSystem && "grid_state_system", horizontalScroll && "grid_scroll_horizontal", type && "grid_type_".concat(type), columnsClass && "grid_columns_".concat(columnsClass), rowsClass && "grid_rows_".concat(rowsClass), rowGapClass && "grid_row-gap_".concat(rowGapClass), columnGapClass && "grid_column-gap_".concat(columnGapClass), alignContentClass && "grid_align-content_".concat(alignContentClass), alignItemsClass && "grid_align-items_".concat(alignItemsClass), borderColorClass && "border-color_".concat(borderColorClass), justifyContentClass && "grid_justify-content_".concat(justifyContentClass), justifyItemsClass && "grid_justify-items_".concat(justifyItemsClass), fillClass && "fill_".concat(fillClass), horizontalResizing && "grid_horizontal-resizing_".concat(horizontalResizing), verticalResizing && "grid_vertical-resizing_".concat(verticalResizing)), "data-tour": dataTour, style: gridStyles, onClick: onClick, onDoubleClick: onDoubleClick, children: [before && jsx("div", { className: "grid__before", children: before }), children, after && jsx("div", { className: "grid__after", children: after })] }));
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
function GridItem(props) {
|
|
@@ -36,12 +36,12 @@ function GridItem(props) {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
function GridRow(props) {
|
|
39
|
-
var id = props.id, className = props.className, dataTestId = props.dataTestId, dataTour = props.dataTour, htmlFor = props.htmlFor,
|
|
39
|
+
var id = props.id, className = props.className, dataTestId = props.dataTestId, dataTour = props.dataTour, htmlFor = props.htmlFor, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, onClick = props.onClick, children = props.children;
|
|
40
40
|
var propsGenerator = useDevicePropsGenerator(props);
|
|
41
|
-
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass;
|
|
41
|
+
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, heightClass = propsGenerator.heightClass, widthClass = propsGenerator.widthClass;
|
|
42
42
|
// @ts-expect-error
|
|
43
43
|
var gridRowStyles = useStyles(props).styles;
|
|
44
|
-
return (jsx(Tag, { id: id, className: clsx(className, 'grid__row', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), borderColorClass && "border-color_".concat(borderColorClass)), "data-testid": dataTestId, "data-tour": dataTour, htmlFor: htmlFor, style:
|
|
44
|
+
return (jsx(Tag, { id: id, className: clsx(className, 'grid__row', widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), borderColorClass && "border-color_".concat(borderColorClass)), "data-testid": dataTestId, "data-tour": dataTour, htmlFor: htmlFor, style: gridRowStyles, onClick: onClick, children: children }));
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
export { Grid, GridItem, GridRow };
|
package/dist/components/Input.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as Input, a as inputAppearance, i as inputConfig, b as inputState } from '../Input-
|
|
1
|
+
export { I as Input, a as inputAppearance, i as inputConfig, b as inputState } from '../Input-BH6rNRqZ.js';
|
|
2
2
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader-
|
|
1
|
+
export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader-Dquhwxz4.js';
|
|
2
2
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'clsx';
|
package/dist/components/Modal.js
CHANGED
|
@@ -7,7 +7,7 @@ import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDev
|
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
8
|
import { O as Overlay } from '../Overlay-Be9UCtR9.js';
|
|
9
9
|
import { T as Title } from '../Title--_epIXkC.js';
|
|
10
|
-
import { L as Loader } from '../Loader-
|
|
10
|
+
import { L as Loader } from '../Loader-Dquhwxz4.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
12
12
|
import 'lodash/castArray';
|
|
13
13
|
import 'lodash/upperFirst';
|