@itcase/ui 1.2.34 → 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 +7 -6
- 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/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 +7 -7
- 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/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/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
|
@@ -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';
|
|
@@ -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 };
|
|
@@ -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 };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { siteMenuAppearance } from './SiteMenu.appearance';
|
|
1
2
|
import { SiteMenu, siteMenuConfig } from './SiteMenu.js';
|
|
2
3
|
import { SiteMenuButton } from './SiteMenuButton.js';
|
|
3
|
-
export { SiteMenu, siteMenuConfig, SiteMenuButton };
|
|
4
|
+
export { SiteMenu, siteMenuConfig, siteMenuAppearance, SiteMenuButton };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { defaultDatepickerProps } from './datepicker';
|
|
2
2
|
import { defaultInputProps } from './input';
|
|
3
|
-
|
|
4
|
-
export { defaultDatepickerProps, defaultInputProps, defaultSelectProps };
|
|
3
|
+
export { defaultDatepickerProps, defaultInputProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.35",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -96,10 +96,10 @@
|
|
|
96
96
|
"registry": "https://registry.npmjs.org/"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@itcase/common": "^1.2.
|
|
99
|
+
"@itcase/common": "^1.2.17",
|
|
100
|
+
"@itcase/icons": "^1.0.7",
|
|
100
101
|
"clsx": "^2.1.1",
|
|
101
102
|
"date-fns": "^4.1.0",
|
|
102
|
-
"framer-motion": "^11.12.0",
|
|
103
103
|
"js-cookie": "^3.0.5",
|
|
104
104
|
"lodash": "^4.17.21",
|
|
105
105
|
"rc-slider": "^11.1.7",
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"postcss-preset-env": "^10.1.1",
|
|
190
190
|
"postcss-pxtorem": "^6.1.0",
|
|
191
191
|
"postcss-sort-media-queries": "^5.2.0",
|
|
192
|
-
"prettier": "^3.4.
|
|
192
|
+
"prettier": "^3.4.2",
|
|
193
193
|
"rollup": "^4.28.0",
|
|
194
194
|
"rollup-plugin-copy": "^3.5.0",
|
|
195
195
|
"rollup-plugin-dts": "^6.1.1",
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
declare const defaultSelectProps: {
|
|
2
|
-
elevation: number;
|
|
3
|
-
isClearable: boolean;
|
|
4
|
-
isSearchable: boolean;
|
|
5
|
-
badgeAppearance: string;
|
|
6
|
-
badgeSize: string;
|
|
7
|
-
badgeTextSize: string;
|
|
8
|
-
clearIconFill: string;
|
|
9
|
-
closeMenuOnSelect: boolean;
|
|
10
|
-
dividerDirection: string;
|
|
11
|
-
dividerFill: string;
|
|
12
|
-
dividerSize: string;
|
|
13
|
-
dropdownIconFill: string;
|
|
14
|
-
errorInputBorderColor: string;
|
|
15
|
-
headingFill: string;
|
|
16
|
-
headingTextColor: string;
|
|
17
|
-
headingTextSize: string;
|
|
18
|
-
headingTextWeight: string;
|
|
19
|
-
inputBorderColor: string;
|
|
20
|
-
inputBorderColorHover: string;
|
|
21
|
-
inputCaretColor: string;
|
|
22
|
-
inputFill: string;
|
|
23
|
-
inputShape: string;
|
|
24
|
-
inputTextColor: string;
|
|
25
|
-
inputTextSize: string;
|
|
26
|
-
loadingMessage: import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
multipleItemFill: string;
|
|
28
|
-
multipleItemFillHover: string;
|
|
29
|
-
multipleItemIconFill: string;
|
|
30
|
-
multipleItemTextColor: string;
|
|
31
|
-
multipleItemTextSize: string;
|
|
32
|
-
noOptionsSearchText: string;
|
|
33
|
-
noOptionsText: string;
|
|
34
|
-
noOptionsTextColor: string;
|
|
35
|
-
noOptionsTextSize: string;
|
|
36
|
-
optionBorder: string;
|
|
37
|
-
optionFill: string;
|
|
38
|
-
optionFillHover: string;
|
|
39
|
-
optionShape: string;
|
|
40
|
-
optionTextColor: string;
|
|
41
|
-
optionTextSize: string;
|
|
42
|
-
placeholder: string;
|
|
43
|
-
placeholderTextColor: string;
|
|
44
|
-
placeholderTextSize: string;
|
|
45
|
-
requiredInputBorderColor: string;
|
|
46
|
-
showBadge: boolean;
|
|
47
|
-
showDivider: boolean;
|
|
48
|
-
size: string;
|
|
49
|
-
};
|
|
50
|
-
export { defaultSelectProps };
|