@itcase/ui 1.7.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/{Badge-BE28NFES.js → Badge-BY030Mwm.js} +1 -1
- package/dist/{Badge-C_6Iofu7.js → Badge-Df7Zxjnk.js} +1 -1
- package/dist/{Button-Df425Vot.js → Button-CWPTzaG2.js} +3 -3
- package/dist/{Button-sYpJIJPv.js → Button-DHOZJDHv.js} +3 -3
- package/dist/{DropdownItem-f29l8dds.js → DropdownItem-Cl1pYnVf.js} +4 -4
- package/dist/{DropdownItem-CdAS1E-G.js → DropdownItem-_bKQxzEZ.js} +4 -4
- package/dist/{Group-D5nvxHx0.js → Group-C8NUU6k5.js} +2 -2
- package/dist/{Group-NYDjw1CD.js → Group-utjnjUDZ.js} +2 -2
- package/dist/{Icon-BzIdIgGY.js → Icon-BF7i3XdQ.js} +1 -1
- package/dist/{Icon-dS-it4rs.js → Icon-D_BDlSSb.js} +1 -1
- package/dist/{Input-v52BiIsb.js → Input-BH6rNRqZ.js} +2 -2
- package/dist/{Input-C_HeI9UK.js → Input-BRhHPsGM.js} +2 -2
- package/dist/{Link-UmzWKcxT.js → Link-CZ8o5lGW.js} +1 -1
- package/dist/{Link-aBsZ1d0Q.js → Link-Cn7hiWmM.js} +1 -1
- 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/Accordion.js +2 -2
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/Badge.js +3 -3
- package/dist/cjs/components/Breadcrumbs.js +2 -2
- package/dist/cjs/components/Button.js +4 -4
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips.js +3 -3
- package/dist/cjs/components/Choice.js +56 -46
- package/dist/cjs/components/CookiesWarning.js +5 -5
- package/dist/cjs/components/DadataHintField.js +1 -1
- package/dist/cjs/components/DatePicker.js +15 -10
- package/dist/cjs/components/Drawer.js +3 -1
- package/dist/cjs/components/Dropdown.js +1 -1
- package/dist/cjs/components/Grid.js +5 -5
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/Icon.js +2 -2
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputMask.js +1 -1
- package/dist/cjs/components/InputPassword.js +2 -2
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Loader.js +1 -1
- package/dist/cjs/components/Logo.js +1 -1
- package/dist/cjs/components/MenuItem.js +1 -1
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Pagination.js +17 -49
- package/dist/cjs/components/Panel.js +1 -1
- package/dist/cjs/components/Response.js +5 -5
- package/dist/cjs/components/Search.js +2 -2
- package/dist/cjs/components/Select.js +4 -4
- package/dist/cjs/components/Tab.js +5 -5
- package/dist/cjs/components/Tile.js +3 -3
- package/dist/cjs/context/Notifications.js +3 -1
- package/dist/components/Accordion.js +2 -2
- package/dist/components/Avatar.js +2 -2
- package/dist/components/Badge.js +3 -3
- package/dist/components/Breadcrumbs.js +2 -2
- package/dist/components/Button.js +4 -4
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips.js +3 -3
- package/dist/components/Choice.js +57 -47
- package/dist/components/CookiesWarning.js +5 -5
- package/dist/components/DadataHintField.js +1 -1
- package/dist/components/DatePicker.js +15 -10
- package/dist/components/Drawer.js +3 -1
- package/dist/components/Dropdown.js +1 -1
- package/dist/components/Grid.js +5 -5
- package/dist/components/Group.js +1 -1
- package/dist/components/Icon.js +2 -2
- package/dist/components/Input.js +1 -1
- package/dist/components/InputMask.js +1 -1
- package/dist/components/InputPassword.js +2 -2
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Loader.js +1 -1
- package/dist/components/Logo.js +1 -1
- package/dist/components/MenuItem.js +1 -1
- package/dist/components/Modal.js +1 -1
- package/dist/components/Pagination.js +17 -49
- package/dist/components/Panel.js +1 -1
- package/dist/components/Response.js +5 -5
- package/dist/components/Search.js +2 -2
- package/dist/components/Select.js +4 -4
- package/dist/components/Tab.js +5 -5
- package/dist/components/Tile.js +3 -3
- 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/Divider/Divider.css +10 -13
- 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/Group/Group.css +13 -4
- package/dist/css/components/Input/Input.css +3 -0
- package/dist/css/components/Link/Link.css +17 -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/components/Tab/Tab.interface.d.ts +1 -2
- package/dist/types/context/Notifications.d.ts +3 -2
- package/package.json +16 -16
|
@@ -5,8 +5,9 @@ import clsx from 'clsx';
|
|
|
5
5
|
import ceil from 'lodash/ceil';
|
|
6
6
|
import ReactPaginate from 'react-paginate';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
|
+
import { D as Dropdown, a as DropdownItem } from '../DropdownItem-Cl1pYnVf.js';
|
|
10
|
+
import { I as Icon } from '../Icon-BF7i3XdQ.js';
|
|
10
11
|
import { T as Text } from '../Text-aaWArShm.js';
|
|
11
12
|
import 'lodash/camelCase';
|
|
12
13
|
import 'lodash/castArray';
|
|
@@ -18,17 +19,16 @@ import '../context/UIContext.js';
|
|
|
18
19
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
19
20
|
import 'react-responsive';
|
|
20
21
|
import '../utils/setViewportProperty.js';
|
|
21
|
-
import '../hooks/useStyles/useStyles.js';
|
|
22
22
|
import 'lodash/maxBy';
|
|
23
23
|
import '../hooks/useStyles/styleAttributes.js';
|
|
24
24
|
import '../Divider-CUFKsm-9.js';
|
|
25
25
|
import 'react-inlinesvg';
|
|
26
|
-
import '../Link-
|
|
26
|
+
import '../Link-Cn7hiWmM.js';
|
|
27
27
|
import '../Tooltip-DP32J5V6.js';
|
|
28
28
|
import '../Title--_epIXkC.js';
|
|
29
29
|
|
|
30
|
-
var
|
|
31
|
-
|
|
30
|
+
var paginationAppearanceSurface = {
|
|
31
|
+
surfacePrimary: {
|
|
32
32
|
fill: 'surfacePrimary',
|
|
33
33
|
fillHover: 'surfaceSecondary',
|
|
34
34
|
gap: '8',
|
|
@@ -37,7 +37,7 @@ var paginationAppearance = {
|
|
|
37
37
|
pageCountDescTextColor: 'surfaceTextPrimary',
|
|
38
38
|
pageCountDescTextSize: 'm',
|
|
39
39
|
pageCountDropdownAlignment: 'topCenter',
|
|
40
|
-
pageCountDropdownElevation:
|
|
40
|
+
pageCountDropdownElevation: 8,
|
|
41
41
|
pageCountDropdownFill: 'surfacePrimary',
|
|
42
42
|
pageCountDropdownItemDividerFill: 'surfaceSecondary',
|
|
43
43
|
pageCountDropdownItemDividerSize: 'xxs',
|
|
@@ -52,7 +52,6 @@ var paginationAppearance = {
|
|
|
52
52
|
pageCountDropdownItemShowDivider: true,
|
|
53
53
|
pageCountDropdownItemSize: 'l',
|
|
54
54
|
pageCountDropdownItemWidth: 'hug',
|
|
55
|
-
pageCountDropdownSet: 'default',
|
|
56
55
|
pageCountDropdownShape: 'rounded',
|
|
57
56
|
pageCountInputIconColor: 'surfaceItemPrimary',
|
|
58
57
|
pageCountInputIconFillSize: '24',
|
|
@@ -62,6 +61,8 @@ var paginationAppearance = {
|
|
|
62
61
|
},
|
|
63
62
|
};
|
|
64
63
|
|
|
64
|
+
var paginationAppearance = __assign({}, paginationAppearanceSurface);
|
|
65
|
+
|
|
65
66
|
var paginationConfig = {
|
|
66
67
|
appearance: paginationAppearance,
|
|
67
68
|
setAppearance: function (appearanceConfig) {
|
|
@@ -69,7 +70,7 @@ var paginationConfig = {
|
|
|
69
70
|
},
|
|
70
71
|
};
|
|
71
72
|
function Pagination(props) {
|
|
72
|
-
var className = props.className, appearance = props.appearance, _a = props.allItemsCount, allItemsCount = _a === void 0 ? 0 : _a,
|
|
73
|
+
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,
|
|
73
74
|
/**
|
|
74
75
|
* @deprecated The method should not be used
|
|
75
76
|
*/
|
|
@@ -131,49 +132,16 @@ function Pagination(props) {
|
|
|
131
132
|
return (__assign(__assign({}, resultConfig), (_a = paginationConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
132
133
|
}, {});
|
|
133
134
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
134
|
-
var justifyContentClass = propsGenerator.justifyContentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
breakLabel: "...", breakLinkClassName: "pagination__item-link", containerClassName: clsx(className, 'pagination__container', justifyContentClass &&
|
|
135
|
+
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;
|
|
136
|
+
var paginationStyles = useStyles(props).styles;
|
|
137
|
+
return (jsxs("div", { className: "pagination", "data-testid": dataTestId, "data-tour": dataTour, style: paginationStyles, children: [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 &&
|
|
138
138
|
"pagination_justify-content_".concat(justifyContentClass)),
|
|
139
139
|
// pages settings
|
|
140
|
-
forcePage: paginationPageIndex, marginPagesDisplayed: marginPagesDisplayed
|
|
140
|
+
forcePage: paginationPageIndex, marginPagesDisplayed: marginPagesDisplayed, nextClassName: "pagination__item pagination__item_next",
|
|
141
141
|
// next button
|
|
142
|
-
nextLabel: nextLabel, nextLinkClassName: "pagination__item-link",
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
// previous button
|
|
146
|
-
previousLabel: previousLabel, previousLinkClassName: "pagination__item-link", onPageChange: _onChangePage }), isPageCount && (jsxs("div", { className: clsx(className, 'pagination__count', gapClass && "gap_".concat(gapClass)), children: [jsx(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) }), jsxs("div", { className: clsx('pagination__input', 'cursor_type_pointer', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), onClick: onClickCommandMenuButton, children: [jsx(Text, { size: pageCountInputTextSize ||
|
|
147
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputTextSize), textColor: pageCountInputTextColor ||
|
|
148
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputTextColor), children: activeDropdownItem }), jsx(Icon, { fillSize: pageCountInputIconFillSize ||
|
|
149
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputIconFillSize), iconFill: pageCountInputIconColor ||
|
|
150
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputIconColor), imageSrc: pageCountInputIconSrc, SvgImage: pageCountInputIcon }), jsx(Dropdown, { alignment: pageCountDropdownAlignment ||
|
|
151
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownAlignment), fill: pageCountDropdownFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownFill), elevation: pageCountDropdownElevation ||
|
|
152
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownElevation), shape: pageCountDropdownShape ||
|
|
153
|
-
(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) {
|
|
154
|
-
return activeDropdownItem === item ? (jsx(DropdownItem, { width: pageCountDropdownItemWidth ||
|
|
155
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemWidth), size: pageCountDropdownItemSize ||
|
|
156
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemSize), fill: pageCountDropdownItemFill ||
|
|
157
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFill), fillActive: pageCountDropdownItemFillActive ||
|
|
158
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillActive), fillActiveHover: pageCountDropdownItemFillActiveHover ||
|
|
159
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillActiveHover), fillHover: pageCountDropdownItemFillHover ||
|
|
160
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillHover), label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign ||
|
|
161
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelAlign), labelTextColor: pageCountDropdownItemLabelColor ||
|
|
162
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColor), labelTextColorActive: pageCountDropdownItemLabelColorActive ||
|
|
163
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColorActive), labelTextSize: pageCountDropdownItemLabelSize ||
|
|
164
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelSize), labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill ||
|
|
165
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemDividerFill), dividerSize: pageCountDropdownItemDividerSize ||
|
|
166
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemDividerSize), showDivider: index < pageCountArray.length - 1 &&
|
|
167
|
-
(pageCountDropdownItemShowDivider ||
|
|
168
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemShowDivider)), isActive: true, onClick: function (event) { return handleDropdownItemClick(event, item); } }, item)) : (jsx(DropdownItem, { width: pageCountDropdownItemWidth ||
|
|
169
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemWidth), size: pageCountDropdownItemSize ||
|
|
170
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemSize), fill: pageCountDropdownItemFill, fillHover: pageCountDropdownItemFillHover ||
|
|
171
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillHover), label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign ||
|
|
172
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelAlign), labelTextColor: pageCountDropdownItemLabelColor ||
|
|
173
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColor), labelTextColorActive: pageCountDropdownItemLabelColorActive ||
|
|
174
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColorActive), labelTextSize: pageCountDropdownItemLabelSize ||
|
|
175
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelSize), labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill, dividerSize: pageCountDropdownItemDividerSize ||
|
|
176
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemDividerSize), showDivider: index < pageCountArray.length - 1 &&
|
|
142
|
+
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 && (jsxs("div", { className: clsx(className, 'pagination__count'), children: [jsx(Text, { className: "pagination__count-text", size: pageCountDescTextSize, textColor: pageCountDescTextColor, children: pageCountDesc }), jsxs("div", { className: clsx('pagination__input', 'cursor_type_pointer', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), onClick: onClickCommandMenuButton, children: [jsx(Text, { size: pageCountInputTextSize, textColor: pageCountInputTextColor, children: activeDropdownItem }), jsx(Icon, { fillSize: pageCountInputIconFillSize, iconFill: pageCountInputIconColor, imageSrc: pageCountInputIconSrc, SvgImage: pageCountInputIcon }), jsx(Dropdown, { alignment: pageCountDropdownAlignment, fill: pageCountDropdownFill, elevation: pageCountDropdownElevation, shape: pageCountDropdownShape, isOpen: isOpenDropdown, setIsOpen: setIsOpenDropdown, children: pageCountDropdownArray.map(function (item, index) {
|
|
143
|
+
return activeDropdownItem === item ? (jsx(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 &&
|
|
144
|
+
pageCountDropdownItemShowDivider, isActive: true, onClick: function (event) { return handleDropdownItemClick(event, item); } }, item)) : (jsx(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 &&
|
|
177
145
|
pageCountDropdownItemShowDivider, isActive: false, onClick: function (event) { return handleDropdownItemClick(event, item); } }, item));
|
|
178
146
|
}) })] })] }))] }));
|
|
179
147
|
}
|
package/dist/components/Panel.js
CHANGED
|
@@ -4,7 +4,7 @@ import React 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
|
-
import { G as Group } from '../Group-
|
|
7
|
+
import { G as Group } from '../Group-C8NUU6k5.js';
|
|
8
8
|
import { T as Text } from '../Text-aaWArShm.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
@@ -5,8 +5,8 @@ import clsx from 'clsx';
|
|
|
5
5
|
import SVG from 'react-inlinesvg';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { B as Button } from '../Button-
|
|
9
|
-
import { G as Group } from '../Group-
|
|
8
|
+
import { B as Button } from '../Button-DHOZJDHv.js';
|
|
9
|
+
import { G as Group } from '../Group-C8NUU6k5.js';
|
|
10
10
|
import { T as Text } from '../Text-aaWArShm.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
12
12
|
import 'lodash/castArray';
|
|
@@ -20,11 +20,11 @@ import 'react-responsive';
|
|
|
20
20
|
import '../utils/setViewportProperty.js';
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
|
-
import '../Icon-
|
|
24
|
-
import '../Link-
|
|
23
|
+
import '../Icon-BF7i3XdQ.js';
|
|
24
|
+
import '../Link-Cn7hiWmM.js';
|
|
25
25
|
import '../Tooltip-DP32J5V6.js';
|
|
26
26
|
import '../Title--_epIXkC.js';
|
|
27
|
-
import '../Loader-
|
|
27
|
+
import '../Loader-Dquhwxz4.js';
|
|
28
28
|
|
|
29
29
|
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";
|
|
30
30
|
|
|
@@ -4,7 +4,7 @@ import React, { 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
|
-
import { I as Icon } from '../Icon-
|
|
7
|
+
import { I as Icon } from '../Icon-BF7i3XdQ.js';
|
|
8
8
|
import { T as Text } from '../Text-aaWArShm.js';
|
|
9
9
|
import { S as Scrollbar } from '../Scrollbar-CThJeCLF.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -20,7 +20,7 @@ import '../utils/setViewportProperty.js';
|
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
|
-
import '../Link-
|
|
23
|
+
import '../Link-Cn7hiWmM.js';
|
|
24
24
|
import '../Tooltip-DP32J5V6.js';
|
|
25
25
|
import '../Title--_epIXkC.js';
|
|
26
26
|
import 'react-scrollbars-custom';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { _ as __assign } from '../tslib.es6-Bwu1Cn-t.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import Select, { components } from 'react-select';
|
|
4
|
-
import { I as Icon } from '../Icon-
|
|
4
|
+
import { I as Icon } from '../Icon-BF7i3XdQ.js';
|
|
5
5
|
import React, { useRef, useCallback, useEffect, useMemo } from 'react';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import CreatableSelect from 'react-select/creatable';
|
|
8
8
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
9
|
import { T as Text } from '../Text-aaWArShm.js';
|
|
10
|
-
import { B as Badge } from '../Badge-
|
|
11
|
-
import { G as Group } from '../Group-
|
|
10
|
+
import { B as Badge } from '../Badge-BY030Mwm.js';
|
|
11
|
+
import { G as Group } from '../Group-C8NUU6k5.js';
|
|
12
12
|
import { D as Divider } from '../Divider-CUFKsm-9.js';
|
|
13
13
|
import 'react-inlinesvg';
|
|
14
14
|
import '../hooks/useStyles/useStyles.js';
|
|
@@ -23,7 +23,7 @@ import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
|
23
23
|
import 'react-responsive';
|
|
24
24
|
import '../utils/setViewportProperty.js';
|
|
25
25
|
import '../hooks/useStyles/styleAttributes.js';
|
|
26
|
-
import '../Link-
|
|
26
|
+
import '../Link-Cn7hiWmM.js';
|
|
27
27
|
import '../Tooltip-DP32J5V6.js';
|
|
28
28
|
import '../Title--_epIXkC.js';
|
|
29
29
|
import 'lodash/castArray';
|
package/dist/components/Tab.js
CHANGED
|
@@ -4,9 +4,9 @@ import React 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
|
-
import { B as Badge } from '../Badge-
|
|
7
|
+
import { B as Badge } from '../Badge-BY030Mwm.js';
|
|
8
8
|
import { D as Divider } from '../Divider-CUFKsm-9.js';
|
|
9
|
-
import { L as Link } from '../Link-
|
|
9
|
+
import { L as Link } from '../Link-Cn7hiWmM.js';
|
|
10
10
|
import { T as Text } from '../Text-aaWArShm.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
12
12
|
import 'lodash/castArray';
|
|
@@ -20,7 +20,7 @@ import 'react-responsive';
|
|
|
20
20
|
import '../utils/setViewportProperty.js';
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
|
-
import '../Icon-
|
|
23
|
+
import '../Icon-BF7i3XdQ.js';
|
|
24
24
|
import 'react-inlinesvg';
|
|
25
25
|
import '../Tooltip-DP32J5V6.js';
|
|
26
26
|
import '../Title--_epIXkC.js';
|
|
@@ -146,12 +146,12 @@ function Tab(props) {
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
function TabGroup(props) {
|
|
149
|
-
var
|
|
149
|
+
var className = props.className, dataTestId = props.dataTestId, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, style = props.style, set = props.set, children = props.children;
|
|
150
150
|
var propsGenerator = useDevicePropsGenerator(props);
|
|
151
151
|
var directionClass = propsGenerator.directionClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, contentAlignClass = propsGenerator.contentAlignClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
152
152
|
// @ts-expect-error
|
|
153
153
|
var _a = useStyles(props), groupStyles = _a.styles, groupWrapperStyles = _a.wrapper;
|
|
154
|
-
return (jsx("div", {
|
|
154
|
+
return (jsx("div", { className: clsx(className, 'tab-group', 'group', widthClass && "width_".concat(widthClass), contentAlignClass && "group_content-align_".concat(contentAlignClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), fillClass && "fill_".concat(fillClass), set && "group_set_".concat(set), horizontalScroll && 'group_type_horizontal_scroll', wrapClass && "group_wrap_".concat(wrapClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsx("div", { className: "tab-group__wrapper", style: groupWrapperStyles, children: children })) : (children) }));
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
export { Tab, TabGroup, tabAppearance, tabConfig };
|
package/dist/components/Tile.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { B as Badge } from '../Badge-
|
|
6
|
+
import { B as Badge } from '../Badge-BY030Mwm.js';
|
|
7
7
|
import { T as Text } from '../Text-aaWArShm.js';
|
|
8
8
|
import { T as Title } from '../Title--_epIXkC.js';
|
|
9
9
|
import 'react';
|
|
@@ -19,9 +19,9 @@ import 'react-responsive';
|
|
|
19
19
|
import '../utils/setViewportProperty.js';
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
|
-
import '../Icon-
|
|
22
|
+
import '../Icon-BF7i3XdQ.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
|
-
import '../Link-
|
|
24
|
+
import '../Link-Cn7hiWmM.js';
|
|
25
25
|
import '../Tooltip-DP32J5V6.js';
|
|
26
26
|
|
|
27
27
|
var tileAppearance = {
|
|
@@ -12,11 +12,13 @@ var STATUSES = {
|
|
|
12
12
|
warning: 'warning',
|
|
13
13
|
};
|
|
14
14
|
var NotificationsContext = createContext([]);
|
|
15
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
15
16
|
var NotificationsAPIContext = createContext({
|
|
16
17
|
hideNotifications: function () { },
|
|
17
|
-
showNotification: function () { },
|
|
18
|
+
showNotification: function (notification, onClose) { },
|
|
18
19
|
notificationStatuses: STATUSES,
|
|
19
20
|
});
|
|
21
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
20
22
|
function NotificationsProvider(props) {
|
|
21
23
|
var _a = props.initialNotificationsList, initialNotificationsList = _a === void 0 ? [] : _a, isLogRequestsErrors = props.isLogRequestsErrors, children = props.children;
|
|
22
24
|
var _b = useState(function () {
|
|
@@ -1,26 +1,14 @@
|
|
|
1
1
|
.choice__item {
|
|
2
|
-
|
|
2
|
+
margin: 2px 0;
|
|
3
3
|
position: relative;
|
|
4
4
|
display: flex;
|
|
5
|
-
/* &:hover {
|
|
6
|
-
background: var(--choice-item-background-hover);
|
|
7
|
-
} */
|
|
8
5
|
&:not(:last-child) {
|
|
9
|
-
border-right: var(--chioce-item-border-right
|
|
6
|
+
border-right: var(--chioce-item-border-right);
|
|
10
7
|
}
|
|
11
8
|
&_state_disabled {
|
|
12
|
-
background: var(--choice-item-state-disabled-background
|
|
9
|
+
background: var(--choice-item-state-disabled-background);
|
|
13
10
|
&:hover {
|
|
14
|
-
background: var(--choice-item-state-disabled-background
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
&_active {
|
|
18
|
-
background: var(--choice-item-background-active);
|
|
19
|
-
&_state_disabled {
|
|
20
|
-
background: var(--choice-item-active-state-disabled-background, #ccc);
|
|
21
|
-
&:hover {
|
|
22
|
-
background: var(--choice-item-active-state-disabled-background, #ccc);
|
|
23
|
-
}
|
|
11
|
+
background: var(--choice-item-state-disabled-background);
|
|
24
12
|
}
|
|
25
13
|
}
|
|
26
14
|
& input {
|
|
@@ -39,6 +27,7 @@
|
|
|
39
27
|
text-align: center;
|
|
40
28
|
position: relative;
|
|
41
29
|
display: flex;
|
|
30
|
+
align-items: center;
|
|
42
31
|
z-index: 3;
|
|
43
32
|
transition: color 0.5s ease;
|
|
44
33
|
cursor: pointer;
|
|
@@ -47,17 +36,28 @@
|
|
|
47
36
|
padding: var(--choice-item-icon-padding);
|
|
48
37
|
}
|
|
49
38
|
}
|
|
50
|
-
|
|
39
|
+
.choice__item {
|
|
40
|
+
&_shape {
|
|
41
|
+
&_rounded {
|
|
42
|
+
border-radius: var(--choice-item-shape-rounded);
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
}
|
|
45
|
+
&_circular {
|
|
46
|
+
border-radius: 50%;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
51
50
|
.choice {
|
|
51
|
+
padding: 0 2px;
|
|
52
52
|
position: relative;
|
|
53
53
|
display: flex;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
&__before {
|
|
55
|
+
margin: 2px 0;
|
|
56
|
+
}
|
|
57
|
+
&__after {
|
|
58
|
+
margin: 2px 0;
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
|
-
|
|
61
61
|
.choice {
|
|
62
62
|
&_set {
|
|
63
63
|
&_form {
|
|
@@ -74,25 +74,24 @@
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
|
|
78
77
|
.choice {
|
|
79
78
|
&_shape {
|
|
80
79
|
&_rounded {
|
|
81
80
|
border-radius: var(--choice-shape-rounded);
|
|
82
|
-
overflow: hidden;
|
|
83
81
|
}
|
|
84
82
|
&_circular {
|
|
85
83
|
border-radius: 50%;
|
|
86
84
|
}
|
|
87
85
|
}
|
|
88
86
|
}
|
|
89
|
-
|
|
90
87
|
.choice {
|
|
91
88
|
&_size {
|
|
92
89
|
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
93
90
|
&_$(size) {
|
|
91
|
+
height: var(--choice-size-$(size)-height);
|
|
94
92
|
^^&__item {
|
|
95
93
|
&-label {
|
|
94
|
+
height: var(--choice-item-size-$(size)-height);
|
|
96
95
|
padding: var(--choice-item-size-$(size)-padding);
|
|
97
96
|
}
|
|
98
97
|
}
|
|
@@ -100,7 +99,6 @@
|
|
|
100
99
|
}
|
|
101
100
|
}
|
|
102
101
|
}
|
|
103
|
-
|
|
104
102
|
.choice {
|
|
105
103
|
&_wrap {
|
|
106
104
|
&_wrap {
|
|
@@ -114,22 +112,16 @@
|
|
|
114
112
|
}
|
|
115
113
|
}
|
|
116
114
|
}
|
|
117
|
-
|
|
118
115
|
:root {
|
|
119
|
-
--choice-item-size-xs-padding: 1px 8px;
|
|
120
|
-
--choice-item-size-s-padding: 5px 10px;
|
|
121
|
-
--choice-item-size-m-padding: 7px 12px;
|
|
122
|
-
--choice-item-size-l-padding: 9px 15px;
|
|
123
|
-
--choice-item-size-xl-padding: 13px 20px;
|
|
124
|
-
--choice-item-size-xxl-padding: 17px 25px;
|
|
125
|
-
--choice-item-size-tiny-padding: 1px 8px;
|
|
126
|
-
--choice-item-size-compact-padding: 5px 10px;
|
|
127
|
-
--choice-item-size-normal-padding: 7px 12px;
|
|
128
|
-
--choice-item-size-large-padding: 9px 15px;
|
|
129
116
|
|
|
130
|
-
--choice-
|
|
131
|
-
--choice-
|
|
132
|
-
|
|
117
|
+
--choice-size-s-height: 28px;;
|
|
118
|
+
--choice-size-m-height: 36px;
|
|
119
|
+
|
|
120
|
+
--choice-item-size-s-padding: 0px 10px;
|
|
121
|
+
--choice-item-size-m-padding: 0px 12px;
|
|
133
122
|
|
|
134
123
|
--choice-item-icon-padding: 0;
|
|
124
|
+
|
|
125
|
+
--choice-shape-rounded: 8px;
|
|
126
|
+
--choice-item-shape-rounded: 8px;
|
|
135
127
|
}
|
|
@@ -1,26 +1,14 @@
|
|
|
1
1
|
.choice__item {
|
|
2
|
-
|
|
2
|
+
margin: 2px 0;
|
|
3
3
|
position: relative;
|
|
4
4
|
display: flex;
|
|
5
|
-
/* &:hover {
|
|
6
|
-
background: var(--choice-item-background-hover);
|
|
7
|
-
} */
|
|
8
5
|
&:not(:last-child) {
|
|
9
|
-
border-right: var(--chioce-item-border-right
|
|
6
|
+
border-right: var(--chioce-item-border-right);
|
|
10
7
|
}
|
|
11
8
|
&_state_disabled {
|
|
12
|
-
background: var(--choice-item-state-disabled-background
|
|
9
|
+
background: var(--choice-item-state-disabled-background);
|
|
13
10
|
&:hover {
|
|
14
|
-
background: var(--choice-item-state-disabled-background
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
&_active {
|
|
18
|
-
background: var(--choice-item-background-active);
|
|
19
|
-
&_state_disabled {
|
|
20
|
-
background: var(--choice-item-active-state-disabled-background, #ccc);
|
|
21
|
-
&:hover {
|
|
22
|
-
background: var(--choice-item-active-state-disabled-background, #ccc);
|
|
23
|
-
}
|
|
11
|
+
background: var(--choice-item-state-disabled-background);
|
|
24
12
|
}
|
|
25
13
|
}
|
|
26
14
|
& input {
|
|
@@ -39,6 +27,7 @@
|
|
|
39
27
|
text-align: center;
|
|
40
28
|
position: relative;
|
|
41
29
|
display: flex;
|
|
30
|
+
align-items: center;
|
|
42
31
|
z-index: 3;
|
|
43
32
|
transition: color 0.5s ease;
|
|
44
33
|
cursor: pointer;
|
|
@@ -1126,7 +1126,7 @@ h2.react-datepicker__current-month {
|
|
|
1126
1126
|
align-items: center;
|
|
1127
1127
|
gap: 12px;
|
|
1128
1128
|
& .input {
|
|
1129
|
-
min-width: var(--date-picker-input-min-width
|
|
1129
|
+
min-width: var(--date-picker-input-min-width);
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
|
1132
1132
|
&-time-container {
|
|
@@ -1171,7 +1171,7 @@ h2.react-datepicker__current-month {
|
|
|
1171
1171
|
& .input {
|
|
1172
1172
|
cursor: pointer;
|
|
1173
1173
|
&.input_size_l {
|
|
1174
|
-
padding: var(--input-container-padding);
|
|
1174
|
+
padding: var(--date-picker-input-container-padding);
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
@@ -1217,11 +1217,8 @@ h2.react-datepicker__current-month {
|
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
1219
|
:root {
|
|
1220
|
-
--input-container-padding: 9px 15px;
|
|
1221
|
-
|
|
1222
|
-
--date-picker-input-min-width: 220px;
|
|
1220
|
+
--date-picker-input-container-padding: 9px 15px;
|
|
1223
1221
|
--date-picker-day-border-radius: 8px;
|
|
1224
|
-
|
|
1225
1222
|
--date-picker-day-width: 35px;
|
|
1226
1223
|
--date-picker-day-height: 35px;
|
|
1227
1224
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
}
|
|
6
6
|
.divider {
|
|
7
7
|
&_size {
|
|
8
|
-
@each $size in
|
|
8
|
+
@each $size in l, m, s{
|
|
9
9
|
&_$(size) {
|
|
10
10
|
height: var(--divider-$(size)-height);
|
|
11
11
|
min-height: var(--divider-$(size)-height);
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
&_direction {
|
|
16
16
|
&_horizontal {
|
|
17
17
|
&^^&_size {
|
|
18
|
-
@each $size in
|
|
18
|
+
@each $size in l, m, s{
|
|
19
19
|
&_$(size) {
|
|
20
20
|
height: var(--divider-$(size)-height);
|
|
21
21
|
min-height: var(--divider-$(size)-height);
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
&_vertical {
|
|
27
27
|
&^^&_size {
|
|
28
|
-
@each $size in
|
|
28
|
+
@each $size in l, m, s{
|
|
29
29
|
&_$(size) {
|
|
30
30
|
width: var(--divider-$(size)-width);
|
|
31
31
|
height: auto;
|
|
@@ -51,15 +51,12 @@
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
:root {
|
|
54
|
-
--divider-
|
|
55
|
-
--divider-
|
|
56
|
-
--divider-
|
|
57
|
-
--divider-s-height: 2px;
|
|
58
|
-
--divider-xs-height: 1px;
|
|
54
|
+
--divider-l-height: 3px;
|
|
55
|
+
--divider-m-height: 2px;
|
|
56
|
+
--divider-s-height: 1px;
|
|
59
57
|
|
|
60
|
-
--divider-
|
|
61
|
-
--divider-
|
|
62
|
-
--divider-
|
|
63
|
-
|
|
64
|
-
--divider-xs-width: 1px;
|
|
58
|
+
--divider-l-width: 3px;
|
|
59
|
+
--divider-m-width: 2px;
|
|
60
|
+
--divider-s-width: 1px;
|
|
61
|
+
;
|
|
65
62
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
.dropdown {
|
|
2
2
|
position: relative;
|
|
3
3
|
display: flex;
|
|
4
|
+
&__wrapper {
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
4
7
|
}
|
|
5
8
|
.dropdown {
|
|
6
9
|
&_animation {
|
|
@@ -17,29 +20,15 @@
|
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
.dropdown {
|
|
20
|
-
&
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
&_normal {
|
|
30
|
-
^^&__wrapper {
|
|
31
|
-
padding: var(--dropdown-normal-padding);
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
gap: var(--dropdown-normal-gap);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
&_compact {
|
|
38
|
-
^^&__wrapper {
|
|
39
|
-
padding: var(--dropdown-compact-padding);
|
|
40
|
-
display: flex;
|
|
41
|
-
flex-direction: column;
|
|
42
|
-
gap: var(--dropdown-compact-gap);
|
|
23
|
+
&_size {
|
|
24
|
+
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
25
|
+
&_$(size) {
|
|
26
|
+
^^&__wrapper {
|
|
27
|
+
padding: var(--dropdown-$(size)-padding);
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
gap: var(--dropdown-$(size)-gap);
|
|
31
|
+
}
|
|
43
32
|
}
|
|
44
33
|
}
|
|
45
34
|
}
|
|
@@ -57,13 +46,15 @@
|
|
|
57
46
|
}
|
|
58
47
|
.dropdown {
|
|
59
48
|
&_state_close {
|
|
60
|
-
visibility: hidden;
|
|
49
|
+
/* visibility: hidden; */
|
|
50
|
+
display: none;
|
|
61
51
|
opacity: 0%;
|
|
62
52
|
}
|
|
63
53
|
}
|
|
64
54
|
.dropdown {
|
|
65
55
|
&&_state_open {
|
|
66
|
-
visibility: visible;
|
|
56
|
+
/* visibility: visible; */
|
|
57
|
+
display: block;
|
|
67
58
|
opacity: 100%;
|
|
68
59
|
}
|
|
69
60
|
}
|