@itcase/ui 1.2.33 → 1.2.35
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-_xQzAcyN.js → Badge-BZf2D83-.js} +1 -1
- package/dist/{Badge-DBjlLLfX.js → Badge-MPtjfQS8.js} +1 -1
- package/dist/{Button-ChSAts3j.js → Button-BmE4TGuv.js} +3 -3
- package/dist/{Button-C8MATksY.js → Button-f0zWwezF.js} +3 -3
- package/dist/{Divider-DHIuQUsH.js → Divider-Bdz66wfW.js} +1 -1
- package/dist/{Divider-BoB-f9Gr.js → Divider-CYvszcff.js} +1 -0
- package/dist/{DropdownItem-B8IMNQww.js → DropdownItem-BjtWmVFs.js} +3 -3
- package/dist/{DropdownItem-E9HkOU63.js → DropdownItem-DPBYY3cR.js} +3 -2
- package/dist/{Group-u6YDbMxn.js → Group-Bf2uSl3S.js} +1 -0
- package/dist/{Group-BCvs5UxK.js → Group-D95Sf0X0.js} +1 -1
- package/dist/{Icon-DptCmI_y.js → Icon-21rsw8YW.js} +2 -2
- package/dist/{Icon-C8ACV9r7.js → Icon-gTZ0QO8I.js} +2 -1
- package/dist/{Input-CgjHxZmK.js → Input--x3hPBiN.js} +1 -1
- package/dist/{Input-KgHOW5DR.js → Input-DG5yWwpp.js} +2 -0
- package/dist/{Label-B06hLCqo.js → Label-Ddjf4F18.js} +2 -2
- package/dist/{Label-zOLL6ePu.js → Label-Rq2ptfUd.js} +2 -2
- package/dist/{Loader-DReoCdZ2.js → Loader-1ZnukBPK.js} +2 -1
- package/dist/{Loader-DHNcD09o.js → Loader-CuxFXcNG.js} +2 -2
- package/dist/{MenuItem-C7frDyBO.js → MenuItem-Buu-c29L.js} +2 -2
- package/dist/{MenuItem-BXogEsbS.js → MenuItem-Cqt0EcgC.js} +2 -1
- package/dist/{Text-R6XNq6Ca.js → Text-C-scXvy7.js} +1 -0
- package/dist/{Text-C4Bg2Mv6.js → Text-DGEJa_FL.js} +1 -1
- package/dist/{Title-DWIc05TX.js → Title-BatSai-G.js} +1 -0
- package/dist/{Title-YVzIwk68.js → Title-Bp-4wxkT.js} +1 -1
- package/dist/{Tooltip--c-4Qp04.js → Tooltip-BsMYxi_I.js} +3 -3
- package/dist/{Tooltip-BswHy19O.js → Tooltip-CUL79Nsx.js} +3 -2
- package/dist/cjs/components/Accordion.js +7 -6
- package/dist/cjs/components/Avatar.js +5 -4
- package/dist/cjs/components/Badge.js +2 -2
- package/dist/cjs/components/Breadcrumbs.js +4 -4
- package/dist/cjs/components/Button.js +6 -6
- package/dist/cjs/components/Card.js +1 -1
- package/dist/cjs/components/Cell.js +5 -5
- package/dist/cjs/components/Checkbox.js +3 -1
- package/dist/cjs/components/Chips.js +1 -1
- package/dist/cjs/components/Choice.js +6 -5
- package/dist/cjs/components/Code.js +1 -0
- package/dist/cjs/components/ContextMenu.js +5 -5
- package/dist/cjs/components/CookiesWarning.js +7 -7
- package/dist/cjs/components/DadataHintField.js +1 -1
- package/dist/cjs/components/DatePicker.js +9 -8
- package/dist/cjs/components/Divider.js +2 -1
- package/dist/cjs/components/Dropdown.js +4 -3
- package/dist/cjs/components/Group.js +2 -1
- package/dist/cjs/components/Icon.js +5 -4
- package/dist/cjs/components/Input.js +3 -1
- package/dist/cjs/components/InputPassword.js +6 -4
- package/dist/cjs/components/Label.js +4 -4
- package/dist/cjs/components/LanguageSelector.js +4 -4
- package/dist/cjs/components/Loader.js +3 -2
- package/dist/cjs/components/Menu.js +2 -2
- package/dist/cjs/components/MenuItem.js +3 -2
- package/dist/cjs/components/Modal.js +3 -2
- package/dist/cjs/components/Notification.js +2 -2
- package/dist/cjs/components/Pagination.js +45 -9
- package/dist/cjs/components/Panel.js +2 -2
- package/dist/cjs/components/Radio.js +3 -1
- package/dist/cjs/components/Response.js +7 -7
- package/dist/cjs/components/Search.js +5 -4
- package/dist/cjs/components/Segmented.js +2 -1
- package/dist/cjs/components/Select.js +7 -7
- package/dist/cjs/components/SiteMenu.js +5 -4
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Switch.js +1 -0
- package/dist/cjs/components/Tab.js +3 -3
- package/dist/cjs/components/Text.js +2 -1
- package/dist/cjs/components/Textarea.js +2 -0
- package/dist/cjs/components/Tile.js +4 -3
- package/dist/cjs/components/Title.js +2 -1
- package/dist/cjs/components/Tooltip.js +4 -3
- package/dist/cjs/hooks/useStyles.js +1 -2
- package/dist/components/Accordion.js +6 -5
- package/dist/components/Avatar.js +5 -5
- package/dist/components/Badge.js +2 -2
- package/dist/components/Breadcrumbs.js +4 -4
- package/dist/components/Button.js +6 -6
- package/dist/components/Card.js +1 -1
- package/dist/components/Cell.js +5 -5
- package/dist/components/Checkbox.js +2 -2
- package/dist/components/Chips.js +1 -1
- package/dist/components/Choice.js +6 -6
- package/dist/components/Code.js +1 -1
- package/dist/components/ContextMenu.js +5 -5
- package/dist/components/CookiesWarning.js +7 -7
- package/dist/components/DadataHintField.js +1 -1
- package/dist/components/DatePicker.js +9 -9
- package/dist/components/Divider.js +1 -1
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/Group.js +1 -1
- package/dist/components/Icon.js +4 -4
- package/dist/components/Input.js +1 -1
- package/dist/components/InputPassword.js +5 -5
- package/dist/components/Label.js +4 -4
- package/dist/components/LanguageSelector.js +4 -4
- package/dist/components/Loader.js +2 -2
- package/dist/components/Menu.js +2 -2
- package/dist/components/MenuItem.js +2 -2
- package/dist/components/Modal.js +3 -3
- package/dist/components/Notification.js +2 -2
- package/dist/components/Pagination.js +45 -10
- package/dist/components/Panel.js +2 -2
- package/dist/components/Radio.js +2 -2
- package/dist/components/Response.js +7 -7
- package/dist/components/Search.js +5 -5
- package/dist/components/Segmented.js +2 -2
- package/dist/components/Select.js +7 -7
- package/dist/components/SiteMenu.js +5 -5
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Switch.js +1 -1
- package/dist/components/Tab.js +3 -3
- package/dist/components/Text.js +1 -1
- package/dist/components/Textarea.js +1 -1
- package/dist/components/Tile.js +4 -4
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +3 -3
- package/dist/css/components/Avatar/Avatar.css +8 -4
- package/dist/css/components/Label/Label.tokens.css +3 -3
- package/dist/css/components/Search/Search.tokens.css +5 -0
- package/dist/hooks/useStyles.js +1 -2
- package/dist/stories/Select.stories.js +69 -6
- package/dist/types/components/Avatar/index.d.ts +1 -0
- package/dist/types/components/Checkbox/index.d.ts +1 -0
- package/dist/types/components/Choice/index.d.ts +1 -0
- package/dist/types/components/Code/index.d.ts +1 -0
- package/dist/types/components/DatePicker/index.d.ts +1 -0
- package/dist/types/components/Divider/index.d.ts +1 -0
- package/dist/types/components/Dropdown/index.d.ts +2 -1
- package/dist/types/components/Group/index.d.ts +1 -0
- package/dist/types/components/Icon/index.d.ts +1 -0
- package/dist/types/components/Input/index.d.ts +1 -0
- package/dist/types/components/InputPassword/index.d.ts +1 -0
- package/dist/types/components/Loader/index.d.ts +1 -0
- package/dist/types/components/MenuItem/index.d.ts +1 -0
- package/dist/types/components/Modal/index.d.ts +2 -1
- package/dist/types/components/Pagination/Pagination.appearance.d.ts +2 -0
- package/dist/types/components/Pagination/Pagination.interface.d.ts +1 -0
- package/dist/types/components/Pagination/index.d.ts +1 -0
- package/dist/types/components/Radio/index.d.ts +1 -0
- package/dist/types/components/Search/index.d.ts +2 -1
- package/dist/types/components/Segmented/index.d.ts +1 -0
- package/dist/types/components/SiteMenu/index.d.ts +2 -1
- package/dist/types/components/Switch/index.d.ts +1 -0
- package/dist/types/components/Text/index.d.ts +1 -0
- package/dist/types/components/Textarea/index.d.ts +1 -0
- package/dist/types/components/Tile/index.d.ts +1 -0
- package/dist/types/components/Title/index.d.ts +1 -0
- package/dist/types/components/Tooltip/index.d.ts +1 -0
- package/dist/types/config/forms/index.d.ts +1 -2
- package/package.json +4 -4
- package/dist/types/config/forms/select.d.ts +0 -50
|
@@ -4,9 +4,9 @@ import clsx from 'clsx';
|
|
|
4
4
|
import ceil from 'lodash/ceil';
|
|
5
5
|
import ReactPaginate from 'react-paginate';
|
|
6
6
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
7
|
-
import { D as Dropdown, a as DropdownItem } from '../DropdownItem-
|
|
8
|
-
import { I as Icon } from '../Icon-
|
|
9
|
-
import { T as Text } from '../Text-
|
|
7
|
+
import { D as Dropdown, a as DropdownItem } from '../DropdownItem-BjtWmVFs.js';
|
|
8
|
+
import { I as Icon } from '../Icon-21rsw8YW.js';
|
|
9
|
+
import { T as Text } from '../Text-DGEJa_FL.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
12
12
|
import '../context/UIContext.js';
|
|
@@ -16,21 +16,56 @@ import '../hooks/useStyles.js';
|
|
|
16
16
|
import 'lodash/maxBy';
|
|
17
17
|
import 'lodash/upperFirst';
|
|
18
18
|
import '../hooks/styleAttributes.js';
|
|
19
|
-
import '../Divider-
|
|
19
|
+
import '../Divider-Bdz66wfW.js';
|
|
20
20
|
import '../Link-CeQuavin.js';
|
|
21
21
|
import '../tslib.es6-5FtW-kfi.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
|
-
import '../Tooltip
|
|
24
|
-
import '../Title-
|
|
23
|
+
import '../Tooltip-BsMYxi_I.js';
|
|
24
|
+
import '../Title-Bp-4wxkT.js';
|
|
25
|
+
|
|
26
|
+
var paginationAppearance = {
|
|
27
|
+
default: {
|
|
28
|
+
gap: '8',
|
|
29
|
+
fill: 'surfacePrimary',
|
|
30
|
+
fillHover: 'surfaceSecondary',
|
|
31
|
+
marginPagesDisplayed: 10,
|
|
32
|
+
pageCountDesc: 'кол-во строк',
|
|
33
|
+
pageCountDescTextColor: 'surfaceTextPrimary',
|
|
34
|
+
pageCountDescTextSize: 'm',
|
|
35
|
+
pageCountDropdownAlignment: 'topCenter',
|
|
36
|
+
pageCountDropdownElevation: '8',
|
|
37
|
+
pageCountDropdownFill: 'surfacePrimary',
|
|
38
|
+
pageCountDropdownItemDividerFill: 'surfaceSecondary',
|
|
39
|
+
pageCountDropdownItemDividerSize: 'xxs',
|
|
40
|
+
pageCountDropdownItemFill: 'surfacePrimary',
|
|
41
|
+
pageCountDropdownItemFillActive: 'accentPrimary',
|
|
42
|
+
pageCountDropdownItemFillActiveHover: 'accentActive',
|
|
43
|
+
pageCountDropdownItemFillHover: 'surfaceSecondary',
|
|
44
|
+
pageCountDropdownItemLabelAlign: 'center',
|
|
45
|
+
pageCountDropdownItemLabelColor: 'surfaceTextPrimary',
|
|
46
|
+
pageCountDropdownItemLabelColorActive: 'surfaceTextInverse',
|
|
47
|
+
pageCountDropdownItemLabelSize: 'm',
|
|
48
|
+
pageCountDropdownItemShowDivider: true,
|
|
49
|
+
pageCountDropdownItemSize: 'l',
|
|
50
|
+
pageCountDropdownItemWidth: 'hug',
|
|
51
|
+
pageCountDropdownSet: 'default',
|
|
52
|
+
pageCountDropdownShape: 'rounded',
|
|
53
|
+
pageCountInputIconColor: 'surfaceItemPrimary',
|
|
54
|
+
pageCountInputIconFillSize: '24',
|
|
55
|
+
pageCountInputTextColor: 'surfaceTextPrimary',
|
|
56
|
+
pageCountInputTextSize: 'm',
|
|
57
|
+
pageRangeDisplayed: 8,
|
|
58
|
+
},
|
|
59
|
+
};
|
|
25
60
|
|
|
26
61
|
var paginationConfig = {
|
|
27
|
-
appearance:
|
|
62
|
+
appearance: paginationAppearance,
|
|
28
63
|
setAppearance: function (newComponent) {
|
|
29
64
|
paginationConfig.appearance = newComponent;
|
|
30
65
|
},
|
|
31
66
|
};
|
|
32
67
|
function Pagination(props) {
|
|
33
|
-
var isPageCount = props.isPageCount, _a = props.isPageCountDropdownReversed, isPageCountDropdownReversed = _a === void 0 ? false : _a, _b = props.allItemsCount, allItemsCount = _b === void 0 ? 0 : _b, appearance = props.appearance, className = props.className, marginPagesDisplayed = props.marginPagesDisplayed, nextLabel = props.nextLabel, _c = props.pageCountArray, pageCountArray = _c === void 0 ? [10, 20, 50, 100] : _c, pageCountDesc = props.pageCountDesc, pageCountDescTextColor = props.pageCountDescTextColor, pageCountDescTextSize = props.pageCountDescTextSize, pageCountDropdownAlignment = props.pageCountDropdownAlignment, pageCountDropdownElevation = props.pageCountDropdownElevation, pageCountDropdownFill = props.pageCountDropdownFill, pageCountDropdownItemDividerDirection = props.pageCountDropdownItemDividerDirection, pageCountDropdownItemDividerFill = props.pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize = props.pageCountDropdownItemDividerSize, pageCountDropdownItemFill = props.pageCountDropdownItemFill, pageCountDropdownItemFillActive = props.pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover = props.pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover = props.pageCountDropdownItemFillHover, pageCountDropdownItemLabelAlign = props.pageCountDropdownItemLabelAlign, pageCountDropdownItemLabelColor = props.pageCountDropdownItemLabelColor, _d = props.pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelColorActive = _d === void 0 ? '' : _d, pageCountDropdownItemLabelSize = props.pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap = props.pageCountDropdownItemLabelWrap, pageCountDropdownItemShowDivider = props.pageCountDropdownItemShowDivider, pageCountDropdownItemSize = props.pageCountDropdownItemSize, pageCountDropdownItemWidth = props.pageCountDropdownItemWidth, pageCountDropdownSet = props.pageCountDropdownSet, pageCountDropdownShape = props.pageCountDropdownShape, pageCountInputIcon = props.pageCountInputIcon, pageCountInputIconColor = props.pageCountInputIconColor, pageCountInputIconFillSize = props.pageCountInputIconFillSize, pageCountInputTextColor = props.pageCountInputTextColor, pageCountInputTextSize = props.pageCountInputTextSize, _e = props.pageNumber, pageNumber = _e === void 0 ? 0 : _e, pageRangeDisplayed = props.pageRangeDisplayed, _f = props.perPageCount, perPageCount = _f === void 0 ? 0 : _f, previousLabel = props.previousLabel, onChangePage = props.onChangePage, onChangePerPageCount = props.onChangePerPageCount,
|
|
68
|
+
var isPageCount = props.isPageCount, _a = props.isPageCountDropdownReversed, isPageCountDropdownReversed = _a === void 0 ? false : _a, _b = props.allItemsCount, allItemsCount = _b === void 0 ? 0 : _b, appearance = props.appearance, className = props.className, marginPagesDisplayed = props.marginPagesDisplayed, nextLabel = props.nextLabel, _c = props.pageCountArray, pageCountArray = _c === void 0 ? [10, 20, 50, 100] : _c, pageCountDesc = props.pageCountDesc, pageCountDescTextColor = props.pageCountDescTextColor, pageCountDescTextSize = props.pageCountDescTextSize, pageCountDropdownAlignment = props.pageCountDropdownAlignment, pageCountDropdownElevation = props.pageCountDropdownElevation, pageCountDropdownFill = props.pageCountDropdownFill, pageCountDropdownItemDividerDirection = props.pageCountDropdownItemDividerDirection, pageCountDropdownItemDividerFill = props.pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize = props.pageCountDropdownItemDividerSize, pageCountDropdownItemFill = props.pageCountDropdownItemFill, pageCountDropdownItemFillActive = props.pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover = props.pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover = props.pageCountDropdownItemFillHover, pageCountDropdownItemLabelAlign = props.pageCountDropdownItemLabelAlign, pageCountDropdownItemLabelColor = props.pageCountDropdownItemLabelColor, _d = props.pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelColorActive = _d === void 0 ? '' : _d, pageCountDropdownItemLabelSize = props.pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap = props.pageCountDropdownItemLabelWrap, pageCountDropdownItemShowDivider = props.pageCountDropdownItemShowDivider, pageCountDropdownItemSize = props.pageCountDropdownItemSize, pageCountDropdownItemWidth = props.pageCountDropdownItemWidth, pageCountDropdownSet = props.pageCountDropdownSet, pageCountDropdownShape = props.pageCountDropdownShape, pageCountInputIcon = props.pageCountInputIcon, pageCountInputIconColor = props.pageCountInputIconColor, pageCountInputIconFillSize = props.pageCountInputIconFillSize, pageCountInputIconSrc = props.pageCountInputIconSrc, pageCountInputTextColor = props.pageCountInputTextColor, pageCountInputTextSize = props.pageCountInputTextSize, _e = props.pageNumber, pageNumber = _e === void 0 ? 0 : _e, pageRangeDisplayed = props.pageRangeDisplayed, _f = props.perPageCount, perPageCount = _f === void 0 ? 0 : _f, previousLabel = props.previousLabel, onChangePage = props.onChangePage, onChangePerPageCount = props.onChangePerPageCount,
|
|
34
69
|
/**
|
|
35
70
|
* @deprecated The method should not be used
|
|
36
71
|
*/
|
|
@@ -120,7 +155,7 @@ function Pagination(props) {
|
|
|
120
155
|
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fillHover) &&
|
|
121
156
|
"fill_hover_".concat(appearanceConfig.fillHover)
|
|
122
157
|
.replace(/([A-Z])/g, '-$1')
|
|
123
|
-
.toLowerCase())), onClick: onClickCommandMenuButton, children: [jsx(Text, { size: pageCountInputTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputTextSize), textColor: pageCountInputTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputTextColor), children: activeDropdownItem }), jsx(Icon, { fillSize: pageCountInputIconFillSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputIconFillSize), iconFill: pageCountInputIconColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputIconColor), SvgImage: pageCountInputIcon }), jsx(Dropdown, { fill: pageCountDropdownFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownFill), alignment: pageCountDropdownAlignment || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownAlignment), elevation: pageCountDropdownElevation || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownElevation), shape: pageCountDropdownShape || (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) {
|
|
158
|
+
.toLowerCase())), onClick: onClickCommandMenuButton, children: [jsx(Text, { size: pageCountInputTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputTextSize), textColor: pageCountInputTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputTextColor), children: activeDropdownItem }), jsx(Icon, { fillSize: pageCountInputIconFillSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputIconFillSize), iconFill: pageCountInputIconColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputIconColor), imageSrc: pageCountInputIconSrc, SvgImage: pageCountInputIcon }), jsx(Dropdown, { fill: pageCountDropdownFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownFill), alignment: pageCountDropdownAlignment || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownAlignment), elevation: pageCountDropdownElevation || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownElevation), shape: pageCountDropdownShape || (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) {
|
|
124
159
|
return activeDropdownItem === item ? (jsx(DropdownItem, { width: pageCountDropdownItemWidth || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemWidth), labelTextColor: pageCountDropdownItemLabelColor ||
|
|
125
160
|
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColor), labelTextSize: pageCountDropdownItemLabelSize ||
|
|
126
161
|
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelSize), fill: pageCountDropdownItemFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFill), fillHover: pageCountDropdownItemFillHover ||
|
|
@@ -142,4 +177,4 @@ function Pagination(props) {
|
|
|
142
177
|
}) })] })] }))] }));
|
|
143
178
|
}
|
|
144
179
|
|
|
145
|
-
export { Pagination, paginationConfig };
|
|
180
|
+
export { Pagination, paginationAppearance, paginationConfig };
|
package/dist/components/Panel.js
CHANGED
|
@@ -3,8 +3,8 @@ import React from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles.js';
|
|
6
|
-
import { G as Group } from '../Group-
|
|
7
|
-
import { T as Text } from '../Text-
|
|
6
|
+
import { G as Group } from '../Group-D95Sf0X0.js';
|
|
7
|
+
import { T as Text } from '../Text-DGEJa_FL.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
10
10
|
import '../context/UIContext.js';
|
package/dist/components/Radio.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
4
|
-
import { T as Text } from '../Text-
|
|
4
|
+
import { T as Text } from '../Text-DGEJa_FL.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'lodash/camelCase';
|
|
7
7
|
import 'lodash/castArray';
|
|
@@ -112,4 +112,4 @@ Radio.defaultProps = {
|
|
|
112
112
|
shape: 'circular',
|
|
113
113
|
};
|
|
114
114
|
|
|
115
|
-
export { Radio, radioConfig };
|
|
115
|
+
export { Radio, radioAppearance, radioConfig, radioState };
|
|
@@ -5,10 +5,10 @@ import clsx from 'clsx';
|
|
|
5
5
|
import SVG from 'react-inlinesvg';
|
|
6
6
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles.js';
|
|
8
|
-
import { B as Button } from '../Button-
|
|
9
|
-
import { G as Group } from '../Group-
|
|
10
|
-
import { T as Text } from '../Text-
|
|
11
|
-
import { T as Title } from '../Title-
|
|
8
|
+
import { B as Button } from '../Button-f0zWwezF.js';
|
|
9
|
+
import { G as Group } from '../Group-D95Sf0X0.js';
|
|
10
|
+
import { T as Text } from '../Text-DGEJa_FL.js';
|
|
11
|
+
import { T as Title } from '../Title-Bp-4wxkT.js';
|
|
12
12
|
import 'lodash/camelCase';
|
|
13
13
|
import 'lodash/castArray';
|
|
14
14
|
import '../context/UIContext.js';
|
|
@@ -17,10 +17,10 @@ import 'react-responsive';
|
|
|
17
17
|
import 'lodash/maxBy';
|
|
18
18
|
import 'lodash/upperFirst';
|
|
19
19
|
import '../hooks/styleAttributes.js';
|
|
20
|
-
import '../Icon-
|
|
20
|
+
import '../Icon-21rsw8YW.js';
|
|
21
21
|
import '../Link-CeQuavin.js';
|
|
22
|
-
import '../Tooltip
|
|
23
|
-
import '../Loader-
|
|
22
|
+
import '../Tooltip-BsMYxi_I.js';
|
|
23
|
+
import '../Loader-CuxFXcNG.js';
|
|
24
24
|
|
|
25
25
|
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 fill-rule='evenodd' clip-rule='evenodd' d='M85.7155 56.9042L54.1865 115.911C53.0219 118.09 54.5678 121.43 58.4708 121.43H121.529C125.432 121.43 126.978 118.09 125.814 115.911L94.2845 56.9043C93.5012 55.4392 91.8762 54.57 89.9998 54.57C88.1237 54.57 86.4986 55.439 85.7155 56.9042ZM89.9998 48C93.9317 48 98.1142 49.8644 100.253 53.8659L131.782 112.873C135.732 120.266 129.482 128 121.529 128H58.4708C50.5181 128 44.2675 120.266 48.2181 112.873L79.7471 53.866C81.8855 49.8645 86.0683 48 89.9998 48ZM90.0002 74.0886C91.8588 74.0886 93.3658 75.5593 93.3658 77.3736V92.8756C93.3658 94.6897 91.8588 96.1606 90.0002 96.1606C88.1411 96.1606 86.6345 94.6897 86.6345 92.8756V77.3736C86.6345 75.5593 88.1411 74.0886 90.0002 74.0886ZM93.3658 108.377C93.3658 106.563 91.8588 105.092 90.0002 105.092C88.1411 105.092 86.6345 106.563 86.6345 108.377V108.457C86.6345 110.271 88.1411 111.742 90.0002 111.742C91.8588 111.742 93.3658 110.271 93.3658 108.457V108.377Z' fill='%23747474'/%3e%3c/svg%3e";
|
|
26
26
|
|
|
@@ -3,8 +3,8 @@ import React, { useCallback } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles.js';
|
|
6
|
-
import { I as Icon } from '../Icon-
|
|
7
|
-
import { T as Text } from '../Text-
|
|
6
|
+
import { I as Icon } from '../Icon-21rsw8YW.js';
|
|
7
|
+
import { T as Text } from '../Text-DGEJa_FL.js';
|
|
8
8
|
import { S as Scrollbar } from '../Scrollbar-Bo7z7ELm.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
@@ -17,8 +17,8 @@ import '../hooks/styleAttributes.js';
|
|
|
17
17
|
import '../tslib.es6-5FtW-kfi.js';
|
|
18
18
|
import 'react-inlinesvg';
|
|
19
19
|
import '../Link-CeQuavin.js';
|
|
20
|
-
import '../Tooltip
|
|
21
|
-
import '../Title-
|
|
20
|
+
import '../Tooltip-BsMYxi_I.js';
|
|
21
|
+
import '../Title-Bp-4wxkT.js';
|
|
22
22
|
import 'react-scrollbars-custom';
|
|
23
23
|
|
|
24
24
|
var searchAppearance = {
|
|
@@ -139,4 +139,4 @@ var SearchResult = React.forwardRef(function SearchResult(props, ref) {
|
|
|
139
139
|
return (jsx("div", { className: clsx(className, 'search-result', fillClass, type && "search-result_type_".concat(type)), children: jsxs("div", { className: "search-result__wrapper", children: [before, React.Children.toArray(children).filter(Boolean).length && (jsx(Scrollbar, { scrollHeight: scrollHeight ? "".concat(scrollHeight, "px") : '300px', children: children })), after] }) }));
|
|
140
140
|
});
|
|
141
141
|
|
|
142
|
-
export { SearchInput, SearchResult, searchInputConfig };
|
|
142
|
+
export { SearchInput, SearchResult, searchAppearance, searchInputConfig };
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import React, { useRef, useMemo, createRef, useCallback, useEffect } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
5
|
-
import { T as Text } from '../Text-
|
|
5
|
+
import { T as Text } from '../Text-DGEJa_FL.js';
|
|
6
6
|
import 'lodash/camelCase';
|
|
7
7
|
import 'lodash/castArray';
|
|
8
8
|
import '../context/UIContext.js';
|
|
@@ -115,4 +115,4 @@ var Segmented = React.forwardRef(function (props, ref) {
|
|
|
115
115
|
});
|
|
116
116
|
Segmented.displayName = 'Segmented';
|
|
117
117
|
|
|
118
|
-
export { Segmented, segmentedConfig };
|
|
118
|
+
export { Segmented, segmentedAppearance, segmentedConfig };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { _ as __assign } from '../tslib.es6-5FtW-kfi.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-21rsw8YW.js';
|
|
5
5
|
import React, { useMemo, useRef, useCallback, useEffect } from 'react';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import CreatableSelect from 'react-select/creatable';
|
|
8
8
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
9
|
-
import { T as Text } from '../Text-
|
|
10
|
-
import { B as Badge } from '../Badge-
|
|
11
|
-
import { G as Group } from '../Group-
|
|
12
|
-
import { D as Divider } from '../Divider-
|
|
9
|
+
import { T as Text } from '../Text-DGEJa_FL.js';
|
|
10
|
+
import { B as Badge } from '../Badge-MPtjfQS8.js';
|
|
11
|
+
import { G as Group } from '../Group-D95Sf0X0.js';
|
|
12
|
+
import { D as Divider } from '../Divider-Bdz66wfW.js';
|
|
13
13
|
import 'react-inlinesvg';
|
|
14
14
|
import '../hooks/useStyles.js';
|
|
15
15
|
import 'lodash/camelCase';
|
|
@@ -20,8 +20,8 @@ import '../hooks/useMediaQueries.js';
|
|
|
20
20
|
import 'react-responsive';
|
|
21
21
|
import '../hooks/styleAttributes.js';
|
|
22
22
|
import '../Link-CeQuavin.js';
|
|
23
|
-
import '../Tooltip
|
|
24
|
-
import '../Title-
|
|
23
|
+
import '../Tooltip-BsMYxi_I.js';
|
|
24
|
+
import '../Title-Bp-4wxkT.js';
|
|
25
25
|
import 'lodash/castArray';
|
|
26
26
|
|
|
27
27
|
var selectAppearance = {
|
|
@@ -3,8 +3,8 @@ import { useCallback } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useSiteMenuContext } from '../context/UIContext.js';
|
|
5
5
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
6
|
-
import { I as Icon } from '../Icon-
|
|
7
|
-
import { T as Text } from '../Text-
|
|
6
|
+
import { I as Icon } from '../Icon-21rsw8YW.js';
|
|
7
|
+
import { T as Text } from '../Text-DGEJa_FL.js';
|
|
8
8
|
import '../hooks/useMediaQueries.js';
|
|
9
9
|
import 'react-responsive';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -16,8 +16,8 @@ import 'lodash/maxBy';
|
|
|
16
16
|
import 'lodash/upperFirst';
|
|
17
17
|
import '../hooks/styleAttributes.js';
|
|
18
18
|
import '../Link-CeQuavin.js';
|
|
19
|
-
import '../Tooltip
|
|
20
|
-
import '../Title-
|
|
19
|
+
import '../Tooltip-BsMYxi_I.js';
|
|
20
|
+
import '../Title-Bp-4wxkT.js';
|
|
21
21
|
|
|
22
22
|
var siteMenuAppearance = {
|
|
23
23
|
dev: {},
|
|
@@ -81,4 +81,4 @@ function SiteMenuButton(props) {
|
|
|
81
81
|
return (jsx("div", { className: clsx(className, 'site-menu__button'), onClick: onClickButton, children: children || text }));
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
export { SiteMenu, SiteMenuButton, siteMenuConfig };
|
|
84
|
+
export { SiteMenu, SiteMenuButton, siteMenuAppearance, siteMenuConfig };
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
|
|
5
5
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles.js';
|
|
7
|
-
import { T as Title } from '../Title-
|
|
7
|
+
import { T as Title } from '../Title-Bp-4wxkT.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
10
10
|
import '../context/UIContext.js';
|
|
@@ -20,4 +20,4 @@ var Switch = React.forwardRef(function Switch(props, ref) {
|
|
|
20
20
|
ref: ref, checked: checked, disabled: disabled, id: id, type: "checkbox", onChange: onChange }), jsx("div", { className: "switch__bg", children: "\u00A0" }), jsx("div", { className: "switch__toggle", children: "\u00A0" })] }));
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
export { Switch, switchConfig };
|
|
23
|
+
export { Switch, switchAppearance, switchConfig };
|
package/dist/components/Tab.js
CHANGED
|
@@ -3,10 +3,10 @@ import React from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles.js';
|
|
6
|
-
import { B as Badge } from '../Badge-
|
|
7
|
-
import { D as Divider } from '../Divider-
|
|
6
|
+
import { B as Badge } from '../Badge-MPtjfQS8.js';
|
|
7
|
+
import { D as Divider } from '../Divider-Bdz66wfW.js';
|
|
8
8
|
import { L as Link } from '../Link-CeQuavin.js';
|
|
9
|
-
import { T as Text } from '../Text-
|
|
9
|
+
import { T as Text } from '../Text-DGEJa_FL.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
12
12
|
import '../context/UIContext.js';
|
package/dist/components/Text.js
CHANGED
package/dist/components/Tile.js
CHANGED
|
@@ -2,9 +2,9 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
4
4
|
import { useStyles } from '../hooks/useStyles.js';
|
|
5
|
-
import { B as Badge } from '../Badge-
|
|
6
|
-
import { T as Text } from '../Text-
|
|
7
|
-
import { T as Title } from '../Title-
|
|
5
|
+
import { B as Badge } from '../Badge-MPtjfQS8.js';
|
|
6
|
+
import { T as Text } from '../Text-DGEJa_FL.js';
|
|
7
|
+
import { T as Title } from '../Title-Bp-4wxkT.js';
|
|
8
8
|
import 'react';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
@@ -77,4 +77,4 @@ Tile.defaultProps = {
|
|
|
77
77
|
textTag: 'span',
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
export { Tile, tileConfig };
|
|
80
|
+
export { Tile, tileAppearance, tileConfig };
|
package/dist/components/Title.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { T as Tooltip, t as tooltipConfig } from '../Tooltip
|
|
1
|
+
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip-BsMYxi_I.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -12,5 +12,5 @@ import '../hooks/useStyles.js';
|
|
|
12
12
|
import 'lodash/maxBy';
|
|
13
13
|
import 'lodash/upperFirst';
|
|
14
14
|
import '../hooks/styleAttributes.js';
|
|
15
|
-
import '../Text-
|
|
16
|
-
import '../Title-
|
|
15
|
+
import '../Text-DGEJa_FL.js';
|
|
16
|
+
import '../Title-Bp-4wxkT.js';
|
|
@@ -76,14 +76,18 @@
|
|
|
76
76
|
@each $size in 14, 16, 20, 24, 32, 40, 48, 56, 60, 64, 72, 80, 96, 112, 144, 240 {
|
|
77
77
|
&_$(size) {
|
|
78
78
|
^^&__wrapper {
|
|
79
|
-
width: $(size)px;
|
|
80
|
-
height: $(size)px;
|
|
79
|
+
width: $(size) px;
|
|
80
|
+
height: $(size) px;
|
|
81
81
|
display: flex;
|
|
82
82
|
justify-content: center;
|
|
83
83
|
align-items: center;
|
|
84
84
|
^^^&__image {
|
|
85
|
-
width: $(size)px;
|
|
86
|
-
height: $(size)px;
|
|
85
|
+
width: $(size) px;
|
|
86
|
+
height: $(size) px;
|
|
87
|
+
& .image__item {
|
|
88
|
+
width: $(size) px;
|
|
89
|
+
height: $(size) px;
|
|
90
|
+
}
|
|
87
91
|
}
|
|
88
92
|
}
|
|
89
93
|
}
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
--label-size-m-shape-rounded: 12px;
|
|
8
8
|
--label-size-s-shape-rounded: 12px;
|
|
9
9
|
--label-size-xs-shape-rounded: 12px;
|
|
10
|
-
--label-size-xxs-shape-rounded:
|
|
10
|
+
--label-size-xxs-shape-rounded: 6px;
|
|
11
11
|
|
|
12
12
|
--label-size-xxl-padding: 10px 10px;
|
|
13
13
|
--label-size-xl-padding: 7px 8px;
|
|
14
14
|
--label-size-l-padding: 4px 6px;
|
|
15
15
|
--label-size-m-padding: 2px 8px;
|
|
16
16
|
--label-size-s-padding: 2px 6px;
|
|
17
|
-
--label-size-xs-padding:
|
|
18
|
-
--label-size-xxs-padding:
|
|
17
|
+
--label-size-xs-padding: 1px 4px;
|
|
18
|
+
--label-size-xxs-padding: 1px 4px;
|
|
19
19
|
}
|
package/dist/hooks/useStyles.js
CHANGED
|
@@ -108,8 +108,7 @@ function useStyles(props) {
|
|
|
108
108
|
if (value) {
|
|
109
109
|
// TODO: handle 16px/9px propValues for Horizontal(Left/Right) and Vertical(Top/Bottom)
|
|
110
110
|
const HAS_UNIT = /\D/;
|
|
111
|
-
|
|
112
|
-
const ignorePX = styleAttributeKey.includes('zIndex') || styleAttributeKey.includes('order');
|
|
111
|
+
const ignorePX = ['zIndex', 'order', 'flexGrow'].includes(styleAttributeKey);
|
|
113
112
|
if (!HAS_UNIT.test(value) && !ignorePX) {
|
|
114
113
|
value = `${value}px`;
|
|
115
114
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { defaultSelectProps } from '../../../config/forms'
|
|
2
1
|
import {
|
|
3
2
|
borderColorHoverProps,
|
|
4
3
|
borderColorProps,
|
|
@@ -12,19 +11,66 @@ import { Button } from '../../Button'
|
|
|
12
11
|
import { Loader } from '../../Loader'
|
|
13
12
|
import { Select } from '../index'
|
|
14
13
|
|
|
15
|
-
// import { Select } from '../Select'
|
|
16
|
-
|
|
17
|
-
// import { icon16 } from 'src/icons'
|
|
18
|
-
|
|
19
14
|
export default {
|
|
20
15
|
args: {
|
|
21
|
-
|
|
16
|
+
elevation: 8,
|
|
22
17
|
isClearable: true,
|
|
23
18
|
isMulti: false,
|
|
24
19
|
isSearchable: false,
|
|
20
|
+
badgeAppearance: 'accent',
|
|
21
|
+
badgeSize: 'm',
|
|
22
|
+
badgeTextSize: 'm',
|
|
23
|
+
// clearIcon: icon24.Clear,
|
|
24
|
+
clearIconFill: 'surfaceItemPrimary',
|
|
25
|
+
closeMenuOnSelect: true,
|
|
26
|
+
dividerDirection: 'horizontal',
|
|
27
|
+
// optionSelected: <Icon iconFill="surfaceItemAccent" SvgImage={icon24.Check} />,
|
|
28
|
+
|
|
29
|
+
dividerFill: 'surfaceTertiary',
|
|
30
|
+
dividerSize: 'xxs',
|
|
31
|
+
// dropdownIcon: icon24.ChevronDownSmall,
|
|
25
32
|
dropdownIconFill: 'surfaceItemPrimary',
|
|
33
|
+
// error
|
|
34
|
+
errorInputBorderColor: 'errorBorderPrimary',
|
|
35
|
+
headingFill: 'surfaceSecondary',
|
|
36
|
+
headingTextColor: 'surfaceTextPrimary',
|
|
37
|
+
headingTextSize: 'm',
|
|
38
|
+
|
|
39
|
+
headingTextWeight: '600',
|
|
26
40
|
hideSelectedOptions: false,
|
|
41
|
+
inputBorderColor: 'surfaceBorderTertiary',
|
|
42
|
+
inputBorderColorHover: 'surfaceBorderQuaternary',
|
|
43
|
+
inputCaretColor: 'secondaryItemPrimary',
|
|
44
|
+
|
|
45
|
+
inputFill: 'surfacePrimary',
|
|
46
|
+
|
|
47
|
+
inputShape: 'rounded',
|
|
48
|
+
inputTextColor: 'surfaceTextPrimary',
|
|
49
|
+
inputTextSize: 'm',
|
|
50
|
+
loadingMessage: (
|
|
51
|
+
<Loader
|
|
52
|
+
width="fill"
|
|
53
|
+
height="fill"
|
|
54
|
+
fill="surfacePrimary"
|
|
55
|
+
position="absolute"
|
|
56
|
+
left="0px"
|
|
57
|
+
right="0px"
|
|
58
|
+
zIndex="1"
|
|
59
|
+
itemFill="surfaceItemAccent"
|
|
60
|
+
set="simple"
|
|
61
|
+
/>
|
|
62
|
+
),
|
|
63
|
+
|
|
27
64
|
menuItemSize: 'l',
|
|
65
|
+
multipleItemFill: 'accentPrimary',
|
|
66
|
+
multipleItemFillHover: 'accentPrimaryHover',
|
|
67
|
+
// multipleItemIcon: icon14.Remove,
|
|
68
|
+
multipleItemIconFill: 'accentItemPrimary',
|
|
69
|
+
multipleItemTextColor: 'accentTextPrimary',
|
|
70
|
+
|
|
71
|
+
multipleItemTextSize: 'm',
|
|
72
|
+
|
|
73
|
+
noOptionsSearchText: 'Ничего не найдено...',
|
|
28
74
|
noOptionsText: (
|
|
29
75
|
<Loader
|
|
30
76
|
width="fill"
|
|
@@ -38,6 +84,10 @@ export default {
|
|
|
38
84
|
set="simple"
|
|
39
85
|
/>
|
|
40
86
|
),
|
|
87
|
+
noOptionsTextColor: 'surfaceTextPrimary',
|
|
88
|
+
noOptionsTextSize: 'm',
|
|
89
|
+
|
|
90
|
+
optionBorder: 'none',
|
|
41
91
|
optionFill: 'surfacePrimary',
|
|
42
92
|
optionFillHover: 'surfacePrimaryHover',
|
|
43
93
|
options: [
|
|
@@ -48,9 +98,22 @@ export default {
|
|
|
48
98
|
{ label: 'Планируемые', value: 'planned' },
|
|
49
99
|
{ label: 'Продолжены', value: 'continued' },
|
|
50
100
|
],
|
|
101
|
+
optionShape: 'rounded',
|
|
102
|
+
|
|
51
103
|
optionTextColor: 'surfaceTextPrimary',
|
|
52
104
|
optionTextSize: 'l',
|
|
105
|
+
placeholder: 'Выбрать...',
|
|
106
|
+
|
|
107
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
108
|
+
|
|
109
|
+
placeholderTextSize: 'm',
|
|
110
|
+
// appearance depending on the type of error
|
|
111
|
+
// required
|
|
112
|
+
requiredInputBorderColor: 'warningBorderPrimary',
|
|
113
|
+
showBadge: false,
|
|
53
114
|
showDivider: false,
|
|
115
|
+
|
|
116
|
+
size: 'm',
|
|
54
117
|
},
|
|
55
118
|
argTypes: {
|
|
56
119
|
elevation: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { Dropdown } from './Dropdown';
|
|
2
2
|
import { DropdownItem, dropdownItemConfig } from './DropdownItem';
|
|
3
|
-
|
|
3
|
+
import { dropdownItemAppearance } from './DropdownItem.appearance';
|
|
4
|
+
export { Dropdown, DropdownItem, dropdownItemAppearance, dropdownItemConfig };
|
|
@@ -53,6 +53,7 @@ interface iPaginationProps extends IPaginationThemeColor, iStyleAttributes {
|
|
|
53
53
|
pageCountDropdownItemDividerDirection?: tDirectionProps;
|
|
54
54
|
pageCountDropdownItemLabelWrap?: tTextWrapProps;
|
|
55
55
|
pageCountInputIcon?: ReactNode;
|
|
56
|
+
pageCountInputIconSrc?: ReactNode;
|
|
56
57
|
pageNumber: string | string;
|
|
57
58
|
pageRangeDisplayed?: number;
|
|
58
59
|
perPageCount?: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { searchAppearance } from './Search.appearance';
|
|
1
2
|
import { SearchInput, searchInputConfig } from './SearchInput';
|
|
2
3
|
import { SearchResult } from './SearchResult';
|
|
3
|
-
export { SearchInput, searchInputConfig, SearchResult };
|
|
4
|
+
export { SearchInput, searchInputConfig, searchAppearance, SearchResult };
|