@itcase/ui 1.2.9 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button-53nOhnOL.js → Button-VFc2pmvE.js} +2 -2
- package/dist/{Button-C63pTYaS.js → Button-YvFWfIzn.js} +2 -2
- package/dist/{DropdownItem-m4hdxHp6.js → DropdownItem-Dy3DG4XJ.js} +1 -1
- package/dist/{DropdownItem-bB-KYqcL.js → DropdownItem-agqkY0-H.js} +1 -1
- package/dist/{Icon-DszS1y__.js → Icon-BanAVsve.js} +1 -1
- package/dist/{Icon-Bx2PdtAD.js → Icon-mG_ucnJz.js} +1 -1
- package/dist/{Link-Bqu5amIb.js → Link-BSquFKSX.js} +1 -1
- package/dist/{Link-DQxoFKhI.js → Link-BoJdm1hz.js} +1 -1
- package/dist/{MenuItem-DvIFaWkB.js → MenuItem-Snw0sSXT.js} +1 -1
- package/dist/{MenuItem-CNJfj0nV.js → MenuItem-p5bhKFb0.js} +1 -1
- package/dist/cjs/components/Accordion.js +3 -3
- package/dist/cjs/components/Avatar.js +3 -3
- package/dist/cjs/components/Breadcrumbs.js +3 -3
- package/dist/cjs/components/Button.js +4 -4
- package/dist/cjs/components/Cell.js +3 -3
- package/dist/cjs/components/Choice.js +3 -3
- package/dist/cjs/components/Code.js +1 -1
- package/dist/cjs/components/ContextMenu.js +3 -3
- package/dist/cjs/components/CookiesWarning.js +4 -4
- package/dist/cjs/components/DadataHintField.js +1 -1
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/FormField.js +3 -3
- package/dist/cjs/components/Icon.js +3 -3
- package/dist/cjs/components/InputPassword.js +3 -3
- package/dist/cjs/components/LanguageSelector.js +3 -3
- package/dist/cjs/components/Link.js +2 -2
- package/dist/cjs/components/List.js +2 -2
- package/dist/cjs/components/Logo.js +2 -2
- package/dist/cjs/components/Menu.js +3 -3
- package/dist/cjs/components/MenuItem.js +3 -3
- package/dist/cjs/components/Pagination.js +4 -4
- package/dist/cjs/components/Response.js +4 -4
- package/dist/cjs/components/ScrollOnDrag.js +1 -1
- package/dist/cjs/components/Search.js +3 -3
- package/dist/cjs/components/Select.js +18 -19
- package/dist/cjs/components/SiteMenu.js +3 -3
- package/dist/cjs/components/Tab.js +2 -2
- package/dist/components/Accordion.js +3 -3
- package/dist/components/Avatar.js +3 -3
- package/dist/components/Breadcrumbs.js +3 -3
- package/dist/components/Button.js +4 -4
- package/dist/components/Cell.js +3 -3
- package/dist/components/Choice.js +3 -3
- package/dist/components/Code.js +1 -1
- package/dist/components/ContextMenu.js +3 -3
- package/dist/components/CookiesWarning.js +4 -4
- package/dist/components/DadataHintField.js +1 -1
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/FormField.js +3 -3
- package/dist/components/Icon.js +3 -3
- package/dist/components/InputPassword.js +3 -3
- package/dist/components/LanguageSelector.js +3 -3
- package/dist/components/Link.js +2 -2
- package/dist/components/List.js +2 -2
- package/dist/components/Logo.js +2 -2
- package/dist/components/Menu.js +3 -3
- package/dist/components/MenuItem.js +3 -3
- package/dist/components/Pagination.js +4 -4
- package/dist/components/Response.js +4 -4
- package/dist/components/ScrollOnDrag.js +1 -1
- package/dist/components/Search.js +3 -3
- package/dist/components/Select.js +18 -19
- package/dist/components/SiteMenu.js +3 -3
- package/dist/components/Tab.js +2 -2
- package/dist/css/components/Swiper/Swiper.css +2 -2
- package/dist/css/styles/mediaqueries.css +12 -0
- package/dist/{tslib.es6-S-VPg1Cw.js → tslib.es6-5FtW-kfi.js} +1 -1
- package/dist/{tslib.es6-CKiUdo7p.js → tslib.es6-CCZ3TN_7.js} +1 -1
- package/dist/types/components/Select/Select.interface.d.ts +52 -49
- package/dist/types/components/Select/SelectClearIndicator.d.ts +2 -3
- package/dist/types/components/Select/SelectContainer.d.ts +2 -2
- package/dist/types/components/Select/SelectControl.d.ts +2 -3
- package/dist/types/components/Select/SelectDropdownIndicator.d.ts +1 -2
- package/dist/types/components/Select/SelectGroupHeading.d.ts +2 -3
- package/dist/types/components/Select/SelectIndicatorsContainer.d.ts +2 -3
- package/dist/types/components/Select/SelectInput.d.ts +2 -3
- package/dist/types/components/Select/SelectLoadingIndicator.d.ts +2 -3
- package/dist/types/components/Select/SelectMenu.d.ts +2 -3
- package/dist/types/components/Select/SelectMultiValueContainer.d.ts +2 -3
- package/dist/types/components/Select/SelectMultiValueLabel.d.ts +2 -3
- package/dist/types/components/Select/SelectMultiValueRemove.d.ts +2 -3
- package/dist/types/components/Select/SelectNoOptions.d.ts +2 -3
- package/dist/types/components/Select/SelectOption.d.ts +1 -2
- package/dist/types/components/Select/SelectPlaceholder.d.ts +1 -2
- package/dist/types/components/Select/SelectSingleValue.d.ts +5 -2
- package/dist/types/components/Select/SelectValueContainer.d.ts +1 -2
- package/package.json +9 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as __assign } from '../tslib.es6-
|
|
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-BanAVsve.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';
|
|
@@ -20,18 +20,20 @@ import '../context/UIContext.js';
|
|
|
20
20
|
import 'prop-types';
|
|
21
21
|
import '../hooks/useMediaQueries.js';
|
|
22
22
|
import 'react-responsive';
|
|
23
|
-
import '../Link-
|
|
23
|
+
import '../Link-BSquFKSX.js';
|
|
24
24
|
import '../Tooltip-DJufHBiQ.js';
|
|
25
25
|
import '../Title-BfSFPJtJ.js';
|
|
26
26
|
import 'lodash/castArray';
|
|
27
27
|
|
|
28
|
+
// interface ClearIndicatorProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>>
|
|
29
|
+
// extends DefaultClearIndicatorProps<Option, IsMulti, Group> {}
|
|
28
30
|
// For use memo need to check "ClearIndicator" props
|
|
29
31
|
// const SelectClearIndicator = React.memo(
|
|
30
|
-
function
|
|
32
|
+
var SelectClearIndicator = function (props) {
|
|
31
33
|
var children = props.children;
|
|
32
34
|
var _a = props.selectProps, clearIcon = _a.clearIcon, clearIconFill = _a.clearIconFill;
|
|
33
35
|
return (jsx(components.ClearIndicator, __assign({}, props, { children: clearIcon ? jsx(Icon, { iconFill: clearIconFill, SvgImage: clearIcon }) : children })));
|
|
34
|
-
}
|
|
36
|
+
};
|
|
35
37
|
|
|
36
38
|
var SelectControl = function (props) {
|
|
37
39
|
var _a = props.selectProps, after = _a.after, before = _a.before, inputBorderColor = _a.inputBorderColor, inputBorderColorHover = _a.inputBorderColorHover, inputFill = _a.inputFill, inputShape = _a.inputShape;
|
|
@@ -91,13 +93,7 @@ var SelectMultiValueLabel = function (props) {
|
|
|
91
93
|
|
|
92
94
|
var SelectMultiValueRemove = function (props) {
|
|
93
95
|
var _a = props.selectProps, multipleItemIcon = _a.multipleItemIcon, multipleItemIconFill = _a.multipleItemIconFill;
|
|
94
|
-
return (
|
|
95
|
-
{
|
|
96
|
-
label: 'vs',
|
|
97
|
-
options: [{ label: '' }],
|
|
98
|
-
},
|
|
99
|
-
{},
|
|
100
|
-
] })] })));
|
|
96
|
+
return (jsx(components.MultiValueRemove, __assign({}, props, { children: jsx(Icon, { iconFill: multipleItemIconFill, SvgImage: multipleItemIcon }) })));
|
|
101
97
|
};
|
|
102
98
|
|
|
103
99
|
var SelectNoOptions = function (props) {
|
|
@@ -246,9 +242,12 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
|
246
242
|
var isTargetSelectContainer =
|
|
247
243
|
// maybe here ".contains()"?
|
|
248
244
|
event.target.hasClass && event.target.hasClass('select_state_hide-value-container');
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
(
|
|
245
|
+
if ('current' in selectRef && selectRef.current && selectRef.current.controlRef) {
|
|
246
|
+
var isTargetInsideController = selectRef.current.controlRef.contains(event.target);
|
|
247
|
+
if (!isTargetSelectContainer && !isTargetInsideController) {
|
|
248
|
+
// @ts-expect-error
|
|
249
|
+
(_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.onInputBlur();
|
|
250
|
+
}
|
|
252
251
|
}
|
|
253
252
|
};
|
|
254
253
|
if (hideValueContainer) {
|
|
@@ -263,9 +262,9 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
|
263
262
|
var selectAppearanceItem = (appearance && selectConfig.appearance && selectConfig.appearance[appearance]) || {};
|
|
264
263
|
return (jsx(SelectComponent, { className: clsx(className, 'select', fillClass, fillHoverClass, shapeClass, borderColorClass, sizeClass ||
|
|
265
264
|
(selectAppearanceItem.size &&
|
|
266
|
-
"select_size_".concat(selectAppearanceItem.size).replace(/([A-Z])/g, '-$1').toLowerCase()), hideValueContainer && 'select_state_hide-value-container', set && "select_set_".concat(set)), ref: selectRef, after: after, badgeAppearance: badgeAppearance, badgeSize: badgeSize, badgeTextSize: badgeTextSize, before: before, classNamePrefix: "select", clearIcon: clearIcon, clearIconFill: clearIconFill, closeMenuOnSelect: closeMenuOnSelect !== null && closeMenuOnSelect !== void 0 ? closeMenuOnSelect : false, defaultValue: defaultValue || initialValue, dividerDirection: dividerDirection, dividerFill: dividerFill, dividerSize: dividerSize, dropdownFillHover: dropdownFillHover, dropdownIcon: dropdownIcon, dropdownIconFill: dropdownIconFill, dropdownIconShape: dropdownIconShape, elevation: elevation || selectAppearanceItem.elevation, filterOption: filterOption, headingFill: headingFillClass, headingFillHover: headingFillHoverClass, headingTextColor: headingTextColorClass, headingTextSize: headingTextSizeClass, headingTextWeight: headingTextWeightClass, hideSelectedOptions: hideSelectedOptions, inputAfter: inputAfter, inputBefore: inputBefore, inputCaretColor: inputCaretColorClass,
|
|
265
|
+
"select_size_".concat(selectAppearanceItem.size).replace(/([A-Z])/g, '-$1').toLowerCase()), hideValueContainer && 'select_state_hide-value-container', set && "select_set_".concat(set)), ref: selectRef, after: after, badgeAppearance: badgeAppearance, badgeSize: badgeSize, badgeTextSize: badgeTextSize, before: before, classNamePrefix: "select", clearIcon: clearIcon, clearIconFill: clearIconFill, closeMenuOnSelect: closeMenuOnSelect !== null && closeMenuOnSelect !== void 0 ? closeMenuOnSelect : false, defaultValue: defaultValue || initialValue, dividerDirection: dividerDirection, dividerFill: dividerFill, dividerSize: dividerSize, dropdownFillHover: dropdownFillHover, dropdownIcon: dropdownIcon, dropdownIconFill: dropdownIconFill, dropdownIconShape: dropdownIconShape, elevation: elevation || selectAppearanceItem.elevation, filterOption: filterOption, headingFill: headingFillClass, headingFillHover: headingFillHoverClass, headingTextColor: headingTextColorClass, headingTextSize: headingTextSizeClass, headingTextWeight: headingTextWeightClass, hideSelectedOptions: hideSelectedOptions, inputAfter: inputAfter, inputBefore: inputBefore, inputCaretColor: inputCaretColorClass, inputTextSize: inputTextSizeClass || selectAppearanceItem.inputTextSize, instanceId: instanceId,
|
|
267
266
|
// @ts-expect-error
|
|
268
|
-
loadingMessage: getLoadingMessage, menuAfter: menuAfter, menuBefore: menuBefore, menuItemSize: menuItemSize, multipleItemFill: multipleItemFill, multipleItemFillHover: multipleItemFillHover, multipleItemIcon: multipleItemIcon, multipleItemIconFill: multipleItemIconFill, multipleItemTextColor: multipleItemTextColorClass, multipleItemTextSize: multipleItemTextSizeClass, noOptionBorder: optionBorderClass, noOptionBorderType: optionBorderTypeClass, noOptionsFill: optionFillClass, noOptionsSearchText: noOptionsSearchText, noOptionsText: noOptionsText || selectAppearanceItem.noOptionsText,
|
|
267
|
+
loadingMessage: getLoadingMessage, menuAfter: menuAfter, menuBefore: menuBefore, menuItemSize: menuItemSize, multipleItemFill: multipleItemFill, multipleItemFillHover: multipleItemFillHover, multipleItemIcon: multipleItemIcon, multipleItemIconFill: multipleItemIconFill, multipleItemTextColor: multipleItemTextColorClass, multipleItemTextSize: multipleItemTextSizeClass, noOptionBorder: optionBorderClass, noOptionBorderType: optionBorderTypeClass, noOptionsFill: optionFillClass, noOptionsSearchText: noOptionsSearchText, noOptionsText: noOptionsText || selectAppearanceItem.noOptionsText, openMenuOnClick: openMenuOnClick, optionAfter: optionAfter, optionBefore: optionBefore, optionBorder: optionBorderClass, optionBorderType: optionBorderTypeClass, options: options, optionSelected: optionSelected, optionShape: optionShapeClass, placeholder: placeholder || selectAppearanceItem.placeholder, placeholderTextColor: placeholderTextColor || selectAppearanceItem.placeholderTextColor, placeholderTextSize: placeholderTextSize || selectAppearanceItem.placeholderTextSize, showBadge: showBadge, showDivider: showDivider, styles: clearStyle, value: value, components: {
|
|
269
268
|
ClearIndicator: SelectClearIndicator,
|
|
270
269
|
Control: SelectControl,
|
|
271
270
|
DropdownIndicator: SelectDropdownIndicator,
|
|
@@ -295,13 +294,13 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
|
295
294
|
(selectAppearanceItem.inputShape &&
|
|
296
295
|
"select__control_shape_".concat(selectAppearanceItem.inputShape)
|
|
297
296
|
.replace(/([A-Z])/g, '-$1')
|
|
298
|
-
.toLowerCase()), optionFill: optionFillClass ||
|
|
297
|
+
.toLowerCase()), inputTextColor: inputTextColorClass || selectAppearanceItem.inputTextColor, noOptionsTextColor: noOptionsTextColorClass || selectAppearanceItem.noOptionsTextColor, noOptionsTextSize: noOptionsTextSizeClass || selectAppearanceItem.noOptionsTextSize, optionFill: optionFillClass ||
|
|
299
298
|
(selectAppearanceItem.optionFill &&
|
|
300
299
|
"fill_".concat(selectAppearanceItem.optionFill).replace(/([A-Z])/g, '-$1').toLowerCase()), optionFillHover: optionFillHoverClass ||
|
|
301
300
|
(selectAppearanceItem.optionFillHover &&
|
|
302
301
|
"fill_hover_".concat(selectAppearanceItem.optionFillHover)
|
|
303
302
|
.replace(/([A-Z])/g, '-$1')
|
|
304
|
-
.toLowerCase()), isClearable: isClearable, isDisabled: isDisabled, isLoading: isLoading, isMulti: isMulti, isSearchable: isSearchable, set: set, onChange: onChange, onInputChange: onInputChange }));
|
|
303
|
+
.toLowerCase()), optionTextColor: optionTextColorClass || selectAppearanceItem.optionTextColor, optionTextSize: optionTextSizeClass || selectAppearanceItem.optionTextSize, isClearable: isClearable, isDisabled: isDisabled, isLoading: isLoading, isMulti: isMulti, isSearchable: isSearchable, set: set, onChange: onChange, onInputChange: onInputChange }));
|
|
305
304
|
});
|
|
306
305
|
SelectContainer.defaultProps = {
|
|
307
306
|
// @ts-expect-error
|
|
@@ -3,7 +3,7 @@ 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-
|
|
6
|
+
import { I as Icon } from '../Icon-BanAVsve.js';
|
|
7
7
|
import { T as Text } from '../Text-CG3xPG27.js';
|
|
8
8
|
import 'prop-types';
|
|
9
9
|
import '../hooks/useMediaQueries.js';
|
|
@@ -15,8 +15,8 @@ import '../hooks/useStyles.js';
|
|
|
15
15
|
import 'lodash/maxBy';
|
|
16
16
|
import 'lodash/upperFirst';
|
|
17
17
|
import '../hooks/styleAttributes.js';
|
|
18
|
-
import '../Link-
|
|
19
|
-
import '../tslib.es6-
|
|
18
|
+
import '../Link-BSquFKSX.js';
|
|
19
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
20
20
|
import '../Tooltip-DJufHBiQ.js';
|
|
21
21
|
import '../Title-BfSFPJtJ.js';
|
|
22
22
|
|
package/dist/components/Tab.js
CHANGED
|
@@ -5,7 +5,7 @@ import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
|
5
5
|
import { useStyles } from '../hooks/useStyles.js';
|
|
6
6
|
import { B as Badge } from '../Badge-CrhdvxY6.js';
|
|
7
7
|
import { D as Divider } from '../Divider-U5UdY-ef.js';
|
|
8
|
-
import { L as Link } from '../Link-
|
|
8
|
+
import { L as Link } from '../Link-BSquFKSX.js';
|
|
9
9
|
import { T as Text } from '../Text-CG3xPG27.js';
|
|
10
10
|
import 'lodash/castArray';
|
|
11
11
|
import 'lodash/camelCase';
|
|
@@ -16,7 +16,7 @@ import 'react-responsive';
|
|
|
16
16
|
import 'lodash/maxBy';
|
|
17
17
|
import 'lodash/upperFirst';
|
|
18
18
|
import '../hooks/styleAttributes.js';
|
|
19
|
-
import '../tslib.es6-
|
|
19
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
20
20
|
|
|
21
21
|
var tabConfig = {
|
|
22
22
|
appearance: undefined,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Swiper 11.1.
|
|
2
|
+
* Swiper 11.1.14
|
|
3
3
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
4
4
|
* https://swiperjs.com
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on: September
|
|
10
|
+
* Released on: September 12, 2024
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
/* FONT_START */
|
|
@@ -64,3 +64,15 @@
|
|
|
64
64
|
@custom-media --console (hover: hover) and (pointer: coarse);
|
|
65
65
|
|
|
66
66
|
@custom-media --mouse (hover: hover) and (pointer: fine);
|
|
67
|
+
|
|
68
|
+
@custom-media --tiny-viewport (width >= 1280px) and (height <= 720px);
|
|
69
|
+
|
|
70
|
+
@custom-media --small-viewport (width >= 1366px) and (height < 768px);
|
|
71
|
+
|
|
72
|
+
@custom-media --medium-viewport (width >= 1440px) and (height < 900px);
|
|
73
|
+
|
|
74
|
+
@custom-media --large-viewport (width >= 1440px) and (height < 900px);
|
|
75
|
+
|
|
76
|
+
@custom-media --huge-viewport (width >= 1600px) and (height < 900px);
|
|
77
|
+
|
|
78
|
+
@custom-media --super-huge-viewport (width >= 1920px) and (height >= 1080px);
|
|
@@ -12,7 +12,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
12
12
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
13
|
PERFORMANCE OF THIS SOFTWARE.
|
|
14
14
|
***************************************************************************** */
|
|
15
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
15
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var __assign = function() {
|
|
@@ -14,7 +14,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
14
14
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
15
|
PERFORMANCE OF THIS SOFTWARE.
|
|
16
16
|
***************************************************************************** */
|
|
17
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
17
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
exports.__assign = function() {
|
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import { GroupBase,
|
|
3
|
-
import {
|
|
2
|
+
import { GroupBase, PropsValue } from 'react-select';
|
|
3
|
+
import { Props } from 'react-select/base';
|
|
4
|
+
import { borderColorHoverPropsType, borderTypePropsType, sizeOptionPropsType, tBorderColorProps, tDirectionProps, tFillHoverProps, tFillProps, tItemColorProps, tShapeProps, tSizeProps, tTextColorProps, tTextSizeProps, tTextWeightProps } from '../../types';
|
|
4
5
|
import type { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
5
|
-
interface iSelectThemeColor
|
|
6
|
+
interface iSelectThemeColor {
|
|
7
|
+
elevation?: number;
|
|
8
|
+
inputBorderColor?: tBorderColorProps;
|
|
9
|
+
inputBorderColorHover?: borderColorHoverPropsType;
|
|
10
|
+
inputFill?: string;
|
|
11
|
+
inputShape?: string;
|
|
12
|
+
inputTextColor?: tTextColorProps;
|
|
13
|
+
inputTextSize?: tTextSizeProps;
|
|
14
|
+
noOptionsText?: ReactNode;
|
|
15
|
+
noOptionsTextColor?: tTextColorProps;
|
|
16
|
+
noOptionsTextSize?: tTextSizeProps;
|
|
17
|
+
optionFill?: string;
|
|
18
|
+
optionFillHover?: string;
|
|
19
|
+
optionTextColor?: tTextColorProps;
|
|
20
|
+
optionTextSize?: tTextSizeProps;
|
|
21
|
+
placeholder?: React.ReactNode;
|
|
22
|
+
placeholderTextColor?: tTextColorProps;
|
|
23
|
+
placeholderTextSize?: tTextSizeProps;
|
|
24
|
+
size?: sizeOptionPropsType;
|
|
6
25
|
}
|
|
7
26
|
type tSelectAppearance = {
|
|
8
27
|
[key in tAppearanceKeysDefault]?: iSelectThemeColor;
|
|
@@ -11,25 +30,24 @@ interface iSelectConfig {
|
|
|
11
30
|
appearance: tSelectAppearance | undefined;
|
|
12
31
|
setAppearance: (newComponent: tSelectAppearance) => void;
|
|
13
32
|
}
|
|
14
|
-
interface iSelectProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> extends Pick<Props<Option, IsMulti, Group>, 'className' | 'closeMenuOnSelect' | '
|
|
15
|
-
}
|
|
16
|
-
interface iSelectCustomComponentsProps {
|
|
17
|
-
data?: {
|
|
18
|
-
label?: ReactNode;
|
|
19
|
-
optionAfter?: ReactNode;
|
|
20
|
-
optionBefore?: ReactNode;
|
|
21
|
-
};
|
|
22
|
-
selectProps?: iSelectPropsCustom;
|
|
33
|
+
interface iSelectProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> extends Partial<Pick<Props<Option, IsMulti, Group>, 'className' | 'closeMenuOnSelect' | 'filterOption' | 'hideSelectedOptions' | 'hideValueContainer' | 'instanceId' | 'isClearable' | 'isDisabled' | 'isLoading' | 'isMulti' | 'isSearchable' | 'loadingMessage' | 'onChange' | 'onInputChange' | 'openMenuOnClick' | 'options' | 'value'>>, iSelectThemeColor, iSelectPropsCustom<Option> {
|
|
23
34
|
}
|
|
24
|
-
interface iSelectPropsCustom {
|
|
25
|
-
after?: ReactNode;
|
|
35
|
+
interface iSelectPropsCustom<Option> {
|
|
36
|
+
after?: React.ReactNode;
|
|
26
37
|
appearance?: tAppearanceKeysDefault;
|
|
27
38
|
badgeAppearance?: tAppearanceKeysDefault;
|
|
28
39
|
badgeSize?: tSizeProps;
|
|
29
40
|
badgeTextSize?: tTextSizeProps;
|
|
30
|
-
before?: ReactNode;
|
|
41
|
+
before?: React.ReactNode;
|
|
42
|
+
borderColor?: tBorderColorProps;
|
|
31
43
|
clearIcon?: any;
|
|
32
44
|
clearIconFill?: tItemColorProps;
|
|
45
|
+
data?: {
|
|
46
|
+
label?: React.ReactNode;
|
|
47
|
+
optionAfter?: React.ReactNode;
|
|
48
|
+
optionBefore?: React.ReactNode;
|
|
49
|
+
};
|
|
50
|
+
defaultValue?: PropsValue<Option>;
|
|
33
51
|
dividerDirection?: tDirectionProps;
|
|
34
52
|
dividerFill?: tFillProps;
|
|
35
53
|
dividerSize?: tSizeProps;
|
|
@@ -37,27 +55,22 @@ interface iSelectPropsCustom {
|
|
|
37
55
|
dropdownIcon?: any;
|
|
38
56
|
dropdownIconFill?: tItemColorProps;
|
|
39
57
|
dropdownIconShape?: tShapeProps;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
58
|
+
fetchingData?: React.ReactNode;
|
|
59
|
+
fill?: tFillProps;
|
|
60
|
+
fillHover?: tFillHoverProps;
|
|
61
|
+
headingFill?: tFillProps;
|
|
62
|
+
headingFillHover?: string | null;
|
|
44
63
|
headingTextColor?: tTextColorProps;
|
|
45
64
|
headingTextSize?: tTextSizeProps;
|
|
46
65
|
headingTextWeight?: tTextWeightProps;
|
|
47
66
|
hideValueContainer?: boolean;
|
|
48
|
-
inputAfter?: ReactNode;
|
|
49
|
-
inputBefore?: ReactNode;
|
|
50
|
-
|
|
51
|
-
inputBorderColorHover?: borderColorHoverPropsType;
|
|
52
|
-
inputCaretColor?: string;
|
|
53
|
-
inputFill?: string;
|
|
54
|
-
inputShape?: string;
|
|
55
|
-
inputTextColor?: tTextColorProps;
|
|
56
|
-
inputTextSize?: tTextSizeProps;
|
|
67
|
+
inputAfter?: React.ReactNode;
|
|
68
|
+
inputBefore?: React.ReactNode;
|
|
69
|
+
inputCaretColor?: string | null;
|
|
57
70
|
inputValue?: string;
|
|
58
|
-
loadingIndicator?: ReactNode;
|
|
59
|
-
menuAfter?: ReactNode;
|
|
60
|
-
menuBefore?: ReactNode;
|
|
71
|
+
loadingIndicator?: React.ReactNode;
|
|
72
|
+
menuAfter?: React.ReactNode;
|
|
73
|
+
menuBefore?: React.ReactNode;
|
|
61
74
|
menuItemSize?: string;
|
|
62
75
|
multipleItemFill?: tFillProps;
|
|
63
76
|
multipleItemFillHover?: tFillHoverProps;
|
|
@@ -65,27 +78,17 @@ interface iSelectPropsCustom {
|
|
|
65
78
|
multipleItemIconFill?: tItemColorProps;
|
|
66
79
|
multipleItemTextColor?: tTextColorProps;
|
|
67
80
|
multipleItemTextSize?: tTextSizeProps;
|
|
68
|
-
noOptionsSearchText?: ReactNode;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
optionBorder?: string;
|
|
75
|
-
optionBorderType?: string;
|
|
76
|
-
optionFill?: string;
|
|
77
|
-
optionFillHover?: string;
|
|
78
|
-
optionSelected?: ReactNode;
|
|
81
|
+
noOptionsSearchText?: React.ReactNode;
|
|
82
|
+
optionAfter?: React.ReactNode;
|
|
83
|
+
optionBefore?: React.ReactNode;
|
|
84
|
+
optionBorder?: tBorderColorProps;
|
|
85
|
+
optionBorderType?: borderTypePropsType;
|
|
86
|
+
optionSelected?: React.ReactNode;
|
|
79
87
|
optionShape?: tShapeProps;
|
|
80
|
-
|
|
81
|
-
optionTextSize?: tTextSizeProps;
|
|
82
|
-
placeholder?: ReactNode;
|
|
83
|
-
placeholderTextColor?: tTextColorProps;
|
|
84
|
-
placeholderTextSize?: tTextSizeProps;
|
|
88
|
+
shape?: tShapeProps;
|
|
85
89
|
showBadge?: boolean;
|
|
86
90
|
showDivider?: boolean;
|
|
87
|
-
size?: sizeOptionPropsType;
|
|
88
91
|
isCreatable?: boolean;
|
|
89
92
|
set?: string;
|
|
90
93
|
}
|
|
91
|
-
export type {
|
|
94
|
+
export type { iSelectThemeColor, iSelectPropsCustom, tSelectAppearance, iSelectConfig, iSelectProps, };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ClearIndicatorProps } from 'react-select';
|
|
2
|
-
|
|
3
|
-
declare function SelectClearIndicator(props: ClearIndicatorProps & iSelectCustomComponentsProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { ClearIndicatorProps, GroupBase } from 'react-select';
|
|
2
|
+
declare const SelectClearIndicator: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: ClearIndicatorProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export { SelectClearIndicator };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { GroupBase } from 'react-select';
|
|
2
|
+
import { GroupBase, SelectInstance } from 'react-select';
|
|
3
3
|
import { iSelectProps } from './Select.interface';
|
|
4
|
-
declare const SelectContainer: React.ForwardRefExoticComponent<iSelectProps<unknown, boolean, GroupBase<unknown>> & React.RefAttributes<unknown
|
|
4
|
+
declare const SelectContainer: React.ForwardRefExoticComponent<iSelectProps<unknown, boolean, GroupBase<unknown>> & React.RefAttributes<SelectInstance<unknown, boolean, GroupBase<unknown>>>>;
|
|
5
5
|
export { SelectContainer };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ControlProps } from 'react-select';
|
|
2
|
-
|
|
3
|
-
declare const SelectControl: (props: ControlProps & iSelectCustomComponentsProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { ControlProps, GroupBase } from 'react-select';
|
|
2
|
+
declare const SelectControl: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: ControlProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export { SelectControl };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { DropdownIndicatorProps, GroupBase } from 'react-select';
|
|
2
|
-
|
|
3
|
-
declare const SelectDropdownIndicator: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: DropdownIndicatorProps<Option, IsMulti, Group> & iSelectCustomComponentsProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const SelectDropdownIndicator: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: DropdownIndicatorProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export { SelectDropdownIndicator };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { GroupHeadingProps } from 'react-select';
|
|
2
|
-
|
|
3
|
-
declare const SelectGroupHeading: (props: GroupHeadingProps & iSelectCustomComponentsProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { GroupBase, GroupHeadingProps } from 'react-select';
|
|
2
|
+
declare const SelectGroupHeading: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: GroupHeadingProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export { SelectGroupHeading };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IndicatorsContainerProps } from 'react-select';
|
|
2
|
-
|
|
3
|
-
declare const SelectIndicatorsContainer: (props: IndicatorsContainerProps & iSelectCustomComponentsProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { GroupBase, IndicatorsContainerProps } from 'react-select';
|
|
2
|
+
declare const SelectIndicatorsContainer: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: IndicatorsContainerProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export { SelectIndicatorsContainer };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InputProps } from 'react-select';
|
|
2
|
-
|
|
3
|
-
declare const SelectInput: (props: InputProps & iSelectCustomComponentsProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { GroupBase, InputProps } from 'react-select';
|
|
2
|
+
declare const SelectInput: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: InputProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export { SelectInput };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LoadingIndicatorProps } from 'react-select';
|
|
3
|
-
|
|
4
|
-
declare const SelectLoadingIndicator: (props: iSelectCustomComponentsProps & LoadingIndicatorProps) => React.ReactNode;
|
|
2
|
+
import { GroupBase, LoadingIndicatorProps } from 'react-select';
|
|
3
|
+
declare const SelectLoadingIndicator: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: LoadingIndicatorProps<Option, IsMulti, Group>) => React.ReactNode;
|
|
5
4
|
export { SelectLoadingIndicator };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { MenuProps } from 'react-select';
|
|
2
|
-
|
|
3
|
-
declare const SelectMenu: (props: iSelectCustomComponentsProps & MenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { GroupBase, MenuProps } from 'react-select';
|
|
2
|
+
declare const SelectMenu: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: MenuProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export { SelectMenu };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { MultiValueGenericProps } from 'react-select';
|
|
2
|
-
|
|
3
|
-
declare const SelectMultiValueContainer: (props: iSelectCustomComponentsProps & MultiValueGenericProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { GroupBase, MultiValueGenericProps } from 'react-select';
|
|
2
|
+
declare const SelectMultiValueContainer: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: MultiValueGenericProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export { SelectMultiValueContainer };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { MultiValueGenericProps } from 'react-select';
|
|
2
|
-
|
|
3
|
-
declare const SelectMultiValueLabel: (props: iSelectCustomComponentsProps & MultiValueGenericProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { GroupBase, MultiValueGenericProps } from 'react-select';
|
|
2
|
+
declare const SelectMultiValueLabel: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: MultiValueGenericProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export { SelectMultiValueLabel };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { MultiValueRemoveProps } from 'react-select';
|
|
2
|
-
|
|
3
|
-
declare const SelectMultiValueRemove: (props: iSelectCustomComponentsProps & MultiValueRemoveProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { GroupBase, MultiValueRemoveProps } from 'react-select';
|
|
2
|
+
declare const SelectMultiValueRemove: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: MultiValueRemoveProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export { SelectMultiValueRemove };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { NoticeProps } from 'react-select';
|
|
2
|
-
|
|
3
|
-
declare const SelectNoOptions: (props: iSelectCustomComponentsProps & NoticeProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { GroupBase, NoticeProps } from 'react-select';
|
|
2
|
+
declare const SelectNoOptions: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: NoticeProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export { SelectNoOptions };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { GroupBase, OptionProps } from 'react-select';
|
|
2
|
-
|
|
3
|
-
declare const SelectOption: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: iSelectCustomComponentsProps & OptionProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const SelectOption: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: OptionProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export { SelectOption };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { GroupBase, PlaceholderProps } from 'react-select';
|
|
2
|
-
|
|
3
|
-
declare const SelectPlaceholder: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: iSelectCustomComponentsProps & PlaceholderProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const SelectPlaceholder: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: PlaceholderProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export { SelectPlaceholder };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { GroupBase, SingleValueProps } from 'react-select';
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
declare const SelectSingleValue: <Option extends {
|
|
4
|
+
optionAfter?: React.ReactNode;
|
|
5
|
+
optionBefore?: React.ReactNode;
|
|
6
|
+
}, IsMulti extends boolean, Group extends GroupBase<Option>>(props: SingleValueProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
4
7
|
export { SelectSingleValue };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { GroupBase, ValueContainerProps } from 'react-select';
|
|
2
|
-
|
|
3
|
-
declare const SelectValueContainer: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: iSelectCustomComponentsProps & ValueContainerProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const SelectValueContainer: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: ValueContainerProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export { SelectValueContainer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"registry": "https://registry.npmjs.org/"
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"@itcase/common": "^1.2.
|
|
93
|
+
"@itcase/common": "^1.2.10",
|
|
94
94
|
"clsx": "^2.1.1",
|
|
95
95
|
"html5-boilerplate": "^9.0.1",
|
|
96
96
|
"js-cookie": "^3.0.5",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"react-scroll": "^1.9.0",
|
|
113
113
|
"react-scrollbars-custom": "^4.1.1",
|
|
114
114
|
"react-select": "^5.8.0",
|
|
115
|
-
"swiper": "^11.1.
|
|
115
|
+
"swiper": "^11.1.14",
|
|
116
116
|
"uuid": "^10.0.0"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
"@babel/eslint-plugin": "^7.25.1",
|
|
122
122
|
"@babel/preset-env": "^7.25.4",
|
|
123
123
|
"@babel/preset-react": "^7.24.7",
|
|
124
|
-
"@commitlint/cli": "^19.
|
|
125
|
-
"@commitlint/config-conventional": "^19.
|
|
124
|
+
"@commitlint/cli": "^19.5.0",
|
|
125
|
+
"@commitlint/config-conventional": "^19.5.0",
|
|
126
126
|
"@itcase/lint": "^1.0.13",
|
|
127
127
|
"@rollup/plugin-babel": "^6.0.4",
|
|
128
128
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
@@ -139,16 +139,16 @@
|
|
|
139
139
|
"@types/react-datepicker": "^7.0.0",
|
|
140
140
|
"@types/react-dom": "^18.3.0",
|
|
141
141
|
"@types/react-scroll": "^1.8.10",
|
|
142
|
-
"babel-loader": "^9.1
|
|
142
|
+
"babel-loader": "^9.2.1",
|
|
143
143
|
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
144
144
|
"babel-plugin-react-docgen": "^4.2.1",
|
|
145
145
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
146
146
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
147
147
|
"eslint": "9.10.0",
|
|
148
|
-
"husky": "^9.1.
|
|
148
|
+
"husky": "^9.1.6",
|
|
149
149
|
"lint-staged": "^15.2.10",
|
|
150
150
|
"npm": "^10.8.3",
|
|
151
|
-
"postcss": "^8.4.
|
|
151
|
+
"postcss": "^8.4.47",
|
|
152
152
|
"postcss-aspect-ratio-polyfill": "^2.0.0",
|
|
153
153
|
"postcss-cli": "^11.0.0",
|
|
154
154
|
"postcss-combine-duplicated-selectors": "^10.0.3",
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"postcss-responsive-type": "github:ITCase/postcss-responsive-type",
|
|
172
172
|
"postcss-sort-media-queries": "^5.2.0",
|
|
173
173
|
"prettier": "^3.3.3",
|
|
174
|
-
"rollup": "^4.21.
|
|
174
|
+
"rollup": "^4.21.3",
|
|
175
175
|
"rollup-plugin-copy": "^3.5.0",
|
|
176
176
|
"rollup-plugin-dts": "^6.1.1",
|
|
177
177
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|