@itcase/ui 1.1.14 → 1.1.15
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/{Accordion-vh2p5Mzs.js → Accordion-DyOfdiGd.js} +1 -1
- package/dist/{Avatar-DhZxzLEY.js → Avatar-DLNS2LBo.js} +1 -1
- package/dist/{Badge-D-4zpdfU.js → Badge-BBbMdbjo.js} +8 -2
- package/dist/{Breadcrumbs-CciIq1Na.js → Breadcrumbs-Dz-WcAoT.js} +2 -2
- package/dist/{Button-BXClqM-t.js → Button-ULZVVxWC.js} +2 -2
- package/dist/{Cell-BfV_aVxs.js → Cell-DftU408q.js} +2 -2
- package/dist/{Choice-BJd9Jx4D.js → Choice-BT6xwc_a.js} +8 -6
- package/dist/{ContextMenuItem-CpZ3pjky.js → ContextMenuItem--304_MdY.js} +1 -1
- package/dist/{CookiesWarning-jN2hWm12.js → CookiesWarning-CDlz4Rfl.js} +4 -4
- package/dist/{DatePicker-Nm4Ut2tD.js → DatePicker-CUmrPZZ-.js} +9091 -9080
- package/dist/{DropdownItem-BaQXZu0w.js → DropdownItem-Cf5vBgDu.js} +1 -1
- package/dist/{GridRow-DUnumam2.js → GridRow-CvYQDJ2W.js} +1 -1
- package/dist/{Icon-Duj1nynQ.js → Icon-DWnG-4KG.js} +2 -2
- package/dist/{InputPassword-CTbtTP_o.js → InputPassword-BOdsE_Yd.js} +1 -1
- package/dist/{Label-D9cQMuy3.js → Label-VHbRKztj.js} +1 -1
- package/dist/{LanguageSelector-TZEgbNsG.js → LanguageSelector-CzIV_gnd.js} +1 -1
- package/dist/{Link-CbCqej5B.js → Link-Co6uspFK.js} +9 -1
- package/dist/{ListItem-Dgx1_Igi.js → ListItem-DMS6_Rtr.js} +1 -1
- package/dist/{Logo-DsOEX4uk.js → Logo-D6UNcO5P.js} +1 -1
- package/dist/{Menu-Kpe1GMns.js → Menu-Cd-XlUmJ.js} +1 -1
- package/dist/{MenuItem-C5BPgTO7.js → MenuItem-COZ-C9K2.js} +1 -1
- package/dist/{NotificationList-CJ-hNA9W.js → NotificationList-C2OCJkY5.js} +3 -3
- package/dist/{Pagination-LXBlrbZT.js → Pagination-QfVqvSbE.js} +2 -2
- package/dist/{Response-Nzg8ooT8.js → Response-DzfL5Sy8.js} +2 -2
- package/dist/{SearchResult-B6Jd1xZO.js → SearchResult-DbhHiNmy.js} +1 -1
- package/dist/{SiteMenuButton-CcCAsJtr.js → SiteMenuButton-BwyPO-2_.js} +1 -1
- package/dist/{Swiper-JdwU0uca.js → Swiper-CL9zCKXE.js} +4 -4
- package/dist/{SwitchField-B8JbD2Se.js → SwitchField-nmu255b8.js} +1 -1
- package/dist/{TabGroup-DieipbE3.js → TabGroup-CK6ndAuh.js} +2 -2
- package/dist/{Tile-rSmWn8mR.js → Tile-qiXVUf-t.js} +3 -3
- package/dist/{Title-BUN57fWw.js → Title-BhJcCgdK.js} +20 -4
- package/dist/{Tooltip-CcwyN7PD.js → Tooltip-CpEQOh9v.js} +1 -1
- package/dist/cjs/{Accordion-BPSF6By2.js → Accordion-UbOVpiO4.js} +1 -1
- package/dist/cjs/{Avatar-qFiPDVgu.js → Avatar-Bj5BiStx.js} +1 -1
- package/dist/cjs/{Badge-zYZKun4n.js → Badge-D7W3B9G5.js} +8 -2
- package/dist/cjs/{Breadcrumbs-BIhuwcTG.js → Breadcrumbs-xj-c6cUH.js} +2 -2
- package/dist/cjs/{Button-C4_FRFZe.js → Button-DfUQ11Hs.js} +2 -2
- package/dist/cjs/{Cell-zxHVzKan.js → Cell-BhsGTfV-.js} +2 -2
- package/dist/cjs/{Choice-CPPQ2o2L.js → Choice-Cm_1ke3H.js} +8 -6
- package/dist/cjs/{ContextMenuItem-BME-EZ-y.js → ContextMenuItem-D6dUiYw7.js} +1 -1
- package/dist/cjs/{CookiesWarning-CfEwpkS8.js → CookiesWarning-BfkNifW2.js} +4 -4
- package/dist/cjs/{DatePicker-BiCqQFyi.js → DatePicker-DOmOhaU3.js} +9090 -9079
- package/dist/cjs/{DropdownItem-bjpmcFH1.js → DropdownItem-BhpFr7Z0.js} +1 -1
- package/dist/cjs/{Icon-DzJtiBBk.js → Icon-2rv_L0yY.js} +2 -2
- package/dist/cjs/{InputPassword-DHgR_QTK.js → InputPassword-BXCwerW2.js} +1 -1
- package/dist/cjs/{Label-BcwjtIk7.js → Label-EFoxH21m.js} +1 -1
- package/dist/cjs/{LanguageSelector-C3i2JJCM.js → LanguageSelector-CFKki1Sr.js} +1 -1
- package/dist/cjs/{Link-3qPujNn9.js → Link-B6Xq7PWn.js} +9 -1
- package/dist/cjs/{ListItem-CvMoKXM-.js → ListItem-C3tWa-2I.js} +1 -1
- package/dist/cjs/{Logo-YADZn1N4.js → Logo-De74wmbt.js} +1 -1
- package/dist/cjs/{Menu-CDlB7QNf.js → Menu-rXCCn52A.js} +1 -1
- package/dist/cjs/{MenuItem-4uVtNhb4.js → MenuItem-C__OMtEI.js} +1 -1
- package/dist/cjs/{NotificationList-BTvz_kvZ.js → NotificationList-CKd0PxLU.js} +3 -3
- package/dist/cjs/{Pagination-B0-KGWSv.js → Pagination-D6thfJMP.js} +2 -2
- package/dist/cjs/{Response-XesiDp89.js → Response-DOQQr9jP.js} +2 -2
- package/dist/cjs/{SearchResult-D147g0-n.js → SearchResult-BnIZD8lL.js} +1 -1
- package/dist/cjs/{SiteMenuButton-ChUD4CgP.js → SiteMenuButton-B2wBLVOJ.js} +1 -1
- package/dist/cjs/{Swiper-DHjkfpbP.js → Swiper-DrXdHybn.js} +4 -4
- package/dist/cjs/{SwitchField-CdpEiqFv.js → SwitchField-B0N-28Ne.js} +1 -1
- package/dist/cjs/{TabGroup-Vn5oELiY.js → TabGroup-BCw7IKuz.js} +2 -2
- package/dist/cjs/{Tile-j8EfyWDg.js → Tile-2VY0LzsE.js} +3 -3
- package/dist/cjs/{Title-C3lN-EvU.js → Title-DZn77tSl.js} +20 -4
- package/dist/cjs/{Tooltip-CnnungCh.js → Tooltip-DRsL77n1.js} +1 -1
- package/dist/cjs/components/Accordion.js +5 -5
- package/dist/cjs/components/Avatar.js +5 -5
- package/dist/cjs/components/Badge/Badge.interface.d.ts +2 -1
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs.js +5 -5
- package/dist/cjs/components/Button.js +5 -5
- package/dist/cjs/components/Cell/Cell.interface.d.ts +4 -3
- package/dist/cjs/components/Cell.js +6 -6
- package/dist/cjs/components/Choice/Choice.interface.d.ts +1 -1
- package/dist/cjs/components/Choice.js +5 -5
- package/dist/cjs/components/ContextMenu.js +5 -5
- package/dist/cjs/components/CookiesWarning.js +6 -6
- package/dist/cjs/components/DatePicker/DatePicker.interface.d.ts +8 -4
- package/dist/cjs/components/DatePicker.js +9 -9
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/FormField.js +7 -7
- package/dist/cjs/components/Icon.js +4 -4
- package/dist/cjs/components/InputPassword.js +5 -5
- package/dist/cjs/components/Label.js +3 -3
- package/dist/cjs/components/LanguageSelector.js +5 -5
- package/dist/cjs/components/Link/Link.interface.d.ts +2 -0
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +2 -2
- package/dist/cjs/components/Logo/Logo.interface.d.ts +1 -0
- package/dist/cjs/components/Logo.js +2 -2
- package/dist/cjs/components/Menu.js +3 -3
- package/dist/cjs/components/MenuItem.js +2 -2
- package/dist/cjs/components/Notification.js +2 -2
- package/dist/cjs/components/Pagination.js +6 -6
- package/dist/cjs/components/Response.js +6 -6
- package/dist/cjs/components/Search.js +5 -5
- package/dist/cjs/components/Select.js +9 -9
- package/dist/cjs/components/SiteMenu.js +5 -5
- package/dist/cjs/components/Swiper.js +2 -2
- package/dist/cjs/components/Tab.js +3 -3
- package/dist/cjs/components/Tile.js +3 -3
- package/dist/cjs/components/Title/Title.interface.d.ts +9 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +2 -2
- package/dist/cjs/components.js +32 -32
- package/dist/cjs/context/Notifications.js +3 -3
- package/dist/cjs/{floating-ui.dom-CW7i9VDu.js → floating-ui.dom-D1St6qnn.js} +29 -17
- package/dist/cjs/types/componentProps/svgFill.d.ts +1 -0
- package/dist/cjs/types/componentProps/textColor.d.ts +1 -1
- package/dist/cjs/types/componentProps/textColorActive.d.ts +1 -1
- package/dist/cjs/types/componentProps/textColorHover.d.ts +1 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/components/Accordion.js +5 -5
- package/dist/components/Avatar.js +5 -5
- package/dist/components/Badge/Badge.interface.d.ts +2 -1
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs.js +5 -5
- package/dist/components/Button.js +5 -5
- package/dist/components/Cell/Cell.interface.d.ts +4 -3
- package/dist/components/Cell.js +6 -6
- package/dist/components/Choice/Choice.interface.d.ts +1 -1
- package/dist/components/Choice.js +5 -5
- package/dist/components/ContextMenu.js +5 -5
- package/dist/components/CookiesWarning.js +6 -6
- package/dist/components/DatePicker/DatePicker.interface.d.ts +8 -4
- package/dist/components/DatePicker.js +9 -9
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/FormField.js +7 -7
- package/dist/components/Grid.js +1 -1
- package/dist/components/Icon.js +4 -4
- package/dist/components/InputPassword.js +5 -5
- package/dist/components/Label.js +3 -3
- package/dist/components/LanguageSelector.js +5 -5
- package/dist/components/Link/Link.interface.d.ts +2 -0
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +2 -2
- package/dist/components/Logo/Logo.interface.d.ts +1 -0
- package/dist/components/Logo.js +2 -2
- package/dist/components/Menu.js +3 -3
- package/dist/components/MenuItem.js +2 -2
- package/dist/components/Notification.js +2 -2
- package/dist/components/Pagination.js +6 -6
- package/dist/components/Response.js +6 -6
- package/dist/components/Search.js +5 -5
- package/dist/components/Select.js +9 -9
- package/dist/components/SiteMenu.js +5 -5
- package/dist/components/Swiper.js +2 -2
- package/dist/components/Tab.js +3 -3
- package/dist/components/Tile.js +3 -3
- package/dist/components/Title/Title.interface.d.ts +9 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +2 -2
- package/dist/components.js +33 -33
- package/dist/context/Notifications.js +3 -3
- package/dist/css/components/DatePicker/DatePicker.css +4 -0
- package/dist/css/components/Logo/Logo.css +1 -1
- package/dist/css/components/Swiper/Swiper.css +2 -2
- package/dist/css/components/Title/Title.css +19 -3
- package/dist/css/styles/svg-color/svg_fill.css +24 -0
- package/dist/css/styles/svg-color/svg_fill_hover.css +18 -0
- package/dist/css/styles/text-color/text-color.css +1 -1
- package/dist/css/styles/text-color/text-color_active.css +1 -1
- package/dist/{floating-ui.dom-B080ZrCv.js → floating-ui.dom-_PBQLJcF.js} +29 -17
- package/dist/types/componentProps/svgFill.d.ts +1 -0
- package/dist/types/componentProps/textColor.d.ts +1 -1
- package/dist/types/componentProps/textColorActive.d.ts +1 -1
- package/dist/types/componentProps/textColorHover.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +36 -33
|
@@ -5,7 +5,7 @@ import clsx from 'clsx';
|
|
|
5
5
|
import castArray from 'lodash/castArray';
|
|
6
6
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
7
7
|
import { useStyles } from './hooks/useStyles.js';
|
|
8
|
-
import { I as Icon } from './Icon-
|
|
8
|
+
import { I as Icon } from './Icon-DWnG-4KG.js';
|
|
9
9
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
10
10
|
|
|
11
11
|
var ChevronDown16 = function ChevronDown16(props) {
|
|
@@ -2,7 +2,7 @@ import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
|
-
import { I as Icon } from './Icon-
|
|
5
|
+
import { I as Icon } from './Icon-DWnG-4KG.js';
|
|
6
6
|
import { I as Image } from './Image-Bz4Fo3eB.js';
|
|
7
7
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ var badgeConfig = {
|
|
|
12
12
|
},
|
|
13
13
|
};
|
|
14
14
|
function Badge(props) {
|
|
15
|
-
var _a;
|
|
15
|
+
var _a, _b;
|
|
16
16
|
var appearance = props.appearance, children = props.children, className = props.className, mode = props.mode; props.shape; props.size; var textColor = props.textColor, textSize = props.textSize, value = props.value;
|
|
17
17
|
var borderColorClass = useDeviceTargetClass(props, {
|
|
18
18
|
prefix: 'border-color_',
|
|
@@ -34,6 +34,10 @@ function Badge(props) {
|
|
|
34
34
|
prefix: 'fill_',
|
|
35
35
|
propsKey: 'fill',
|
|
36
36
|
});
|
|
37
|
+
var fillHoverClass = useDeviceTargetClass(props, {
|
|
38
|
+
prefix: 'fill_hover_',
|
|
39
|
+
propsKey: 'fillHover',
|
|
40
|
+
});
|
|
37
41
|
var positionClass = useDeviceTargetClass(props, {
|
|
38
42
|
prefix: 'position_',
|
|
39
43
|
propsKey: 'position',
|
|
@@ -51,7 +55,9 @@ function Badge(props) {
|
|
|
51
55
|
var appearanceConfig = useMemo(function () { return appearance && badgeConfig.appearance && badgeConfig.appearance[appearance]; }, [appearance, badgeConfig]);
|
|
52
56
|
return (jsxRuntimeExports.jsx("div", { className: clsx(className, 'badge', !value && 'badge_type_status', mode && "badge_mode_".concat(mode), borderColorClass, borderColorHoverClass, borderWidthClass, borderTypeClass, fillClass ||
|
|
53
57
|
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fill) &&
|
|
54
|
-
((_a = "fill_".concat(appearanceConfig.fill)) === null || _a === void 0 ? void 0 : _a.replace(/([A-Z])/g, '-$1').toLowerCase())),
|
|
58
|
+
((_a = "fill_".concat(appearanceConfig.fill)) === null || _a === void 0 ? void 0 : _a.replace(/([A-Z])/g, '-$1').toLowerCase())), fillHoverClass ||
|
|
59
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fillHover) &&
|
|
60
|
+
((_b = "fill_hover_".concat(appearanceConfig.fillHover)) === null || _b === void 0 ? void 0 : _b.replace(/([A-Z])/g, '-$1').toLowerCase())), positionClass, sizeClass, shapeClass), style: badgeStyles, children: children ||
|
|
55
61
|
(value && (jsxRuntimeExports.jsx(Text, { size: textSize, textColor: textColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor), children: value }))) }));
|
|
56
62
|
}
|
|
57
63
|
Badge.defaultProps = {
|
|
@@ -5,8 +5,8 @@ import clsx from 'clsx';
|
|
|
5
5
|
import camelCase from 'lodash/camelCase';
|
|
6
6
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
7
7
|
import { useStyles } from './hooks/useStyles.js';
|
|
8
|
-
import { I as Icon } from './Icon-
|
|
9
|
-
import { a as LinkWrapper } from './Link-
|
|
8
|
+
import { I as Icon } from './Icon-DWnG-4KG.js';
|
|
9
|
+
import { a as LinkWrapper } from './Link-Co6uspFK.js';
|
|
10
10
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
11
11
|
|
|
12
12
|
function BreadcrumbsItem(props) {
|
|
@@ -3,8 +3,8 @@ import React__default, { useMemo } 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 { a as LinkWrapper } from './Link-
|
|
6
|
+
import { I as Icon } from './Icon-DWnG-4KG.js';
|
|
7
|
+
import { a as LinkWrapper } from './Link-Co6uspFK.js';
|
|
8
8
|
import { L as Loader } from './Loader-YZrWGaNy.js';
|
|
9
9
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
10
10
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
4
|
-
import { I as Icon } from './Icon-
|
|
5
|
-
import { L as Label } from './Label-
|
|
4
|
+
import { I as Icon } from './Icon-DWnG-4KG.js';
|
|
5
|
+
import { L as Label } from './Label-VHbRKztj.js';
|
|
6
6
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
7
7
|
|
|
8
8
|
function Cell(props) {
|
|
@@ -2,7 +2,7 @@ import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
|
2
2
|
import React__default, { useRef, useMemo, createRef, useCallback } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
|
-
import { I as Icon } from './Icon-
|
|
5
|
+
import { I as Icon } from './Icon-DWnG-4KG.js';
|
|
6
6
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
7
7
|
|
|
8
8
|
var choiceConfig = {
|
|
@@ -12,13 +12,13 @@ var choiceConfig = {
|
|
|
12
12
|
},
|
|
13
13
|
};
|
|
14
14
|
var Choice = React__default.forwardRef(function Choice(props, ref) {
|
|
15
|
-
var active = props.active, activeIcon = props.activeIcon, activeIconItemFill = props.activeIconItemFill, after = props.after, appearance = props.appearance, before = props.before, className = props.className, icon = props.icon, iconFillDisabled = props.iconFillDisabled, iconItemFill = props.iconItemFill, iconSize = props.iconSize, isDisabled = props.isDisabled,
|
|
15
|
+
var active = props.active, activeIcon = props.activeIcon, activeIconItemFill = props.activeIconItemFill, after = props.after, appearance = props.appearance, before = props.before, className = props.className, icon = props.icon, iconFillDisabled = props.iconFillDisabled, iconItemFill = props.iconItemFill, iconSize = props.iconSize, isDisabled = props.isDisabled, isCheckbox = props.isCheckbox, labelTextActiveColor = props.labelTextActiveColor, labelTextActiveColorDisabled = props.labelTextActiveColorDisabled, labelTextColor = props.labelTextColor, labelTextColorDisabled = props.labelTextColorDisabled, labelTextWeight = props.labelTextWeight, labelTextSize = props.labelTextSize, name = props.name, options = props.options, set = props.set, _a = props.size, size = _a === void 0 ? 'normal' : _a, type = props.type, setActiveSegment = props.setActiveSegment;
|
|
16
16
|
var controlRef = useRef(null);
|
|
17
17
|
var optionsRefs = useMemo(function () { return new Map(options.map(function (item) { return [item.value, createRef()]; })); }, [options]);
|
|
18
18
|
var onChange = useCallback(function (event, item) {
|
|
19
|
-
var isChecked =
|
|
19
|
+
var isChecked = isCheckbox ? event.target.checked : true;
|
|
20
20
|
setActiveSegment && setActiveSegment(item, isChecked);
|
|
21
|
-
}, [
|
|
21
|
+
}, [isCheckbox, setActiveSegment]);
|
|
22
22
|
var borderColorClass = useDeviceTargetClass(props, {
|
|
23
23
|
prefix: 'border-color_',
|
|
24
24
|
propsKey: 'borderColor',
|
|
@@ -81,13 +81,15 @@ var Choice = React__default.forwardRef(function Choice(props, ref) {
|
|
|
81
81
|
: fillActiveDisabledClass
|
|
82
82
|
: !isDisabled
|
|
83
83
|
? fillClass
|
|
84
|
-
: fillDisabledClass, item.value === active.value && isDisabled && 'choice__item_active_state_disabled', item.value === active.value && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [jsxRuntimeExports.jsx("input", { checked: item.value === active.value, className: "choice__item-radio", id: "".concat(name, "-").concat(item.value), name: name, disabled: isDisabled, type:
|
|
84
|
+
: fillDisabledClass, item.value === active.value && isDisabled && 'choice__item_active_state_disabled', item.value === active.value && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [jsxRuntimeExports.jsx("input", { checked: item.value === active.value, className: "choice__item-radio", id: "".concat(name, "-").concat(item.value), name: name, disabled: isDisabled, type: isCheckbox ? 'checkbox' : 'radio', value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxRuntimeExports.jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [before, item.label && (jsxRuntimeExports.jsx(Text, { size: labelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextSize), textColor: item.value === active.value
|
|
85
85
|
? !isDisabled
|
|
86
86
|
? labelTextActiveColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextActiveColor)
|
|
87
87
|
: labelTextActiveColorDisabled
|
|
88
88
|
: !isDisabled
|
|
89
89
|
? labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor)
|
|
90
|
-
: labelTextColorDisabled, textWeight: labelTextWeight, children: item.label })), (icon || activeIcon) && (jsxRuntimeExports.jsx(Icon, { className: "choice__item-icon", iconFill: item.value === active.value
|
|
90
|
+
: labelTextColorDisabled, textWeight: labelTextWeight, children: item.label })), (icon || activeIcon) && (jsxRuntimeExports.jsx(Icon, { className: "choice__item-icon", iconFill: item.value === active.value
|
|
91
|
+
? activeIconItemFill || item.activeIconItemFill
|
|
92
|
+
: iconItemFill || item.iconItemFill, iconFillDisabled: isDisabled ? iconFillDisabled : undefined, iconSize: iconSize, SvgImage: item.value === active.value ? activeIcon : icon })), after] })] }, item.value)); }) }) }));
|
|
91
93
|
});
|
|
92
94
|
Choice.defaultProps = {
|
|
93
95
|
active: { value: undefined },
|
|
@@ -2,7 +2,7 @@ import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
4
4
|
import { D as Divider } from './Divider-Dhj6sMWd.js';
|
|
5
|
-
import { I as Icon } from './Icon-
|
|
5
|
+
import { I as Icon } from './Icon-DWnG-4KG.js';
|
|
6
6
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
7
7
|
|
|
8
8
|
function ContextMenu(props) {
|
|
@@ -3,7 +3,7 @@ import { useRef, useMemo, useCallback, useEffect } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import Cookies from 'js-cookie';
|
|
5
5
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
6
|
-
import { B as Button } from './Button-
|
|
6
|
+
import { B as Button } from './Button-ULZVVxWC.js';
|
|
7
7
|
import { G as Group } from './Group-C2kJKhWJ.js';
|
|
8
8
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
9
9
|
|
|
@@ -23,13 +23,13 @@ function CookiesWarning(props) {
|
|
|
23
23
|
return function () {
|
|
24
24
|
window.removeEventListener('scroll', closeCookiesWarning, true);
|
|
25
25
|
};
|
|
26
|
-
}, []);
|
|
26
|
+
}, []);
|
|
27
27
|
useEffect(function () {
|
|
28
28
|
// isHideOnScroll &&
|
|
29
29
|
if (!isOpen) {
|
|
30
30
|
window.removeEventListener('scroll', closeCookiesWarning, true);
|
|
31
31
|
}
|
|
32
|
-
}, [isOpen]);
|
|
32
|
+
}, [isOpen]);
|
|
33
33
|
var fillClass = useDeviceTargetClass(props, {
|
|
34
34
|
prefix: 'fill_',
|
|
35
35
|
propsKey: 'fill',
|
|
@@ -41,7 +41,7 @@ function CookiesWarning(props) {
|
|
|
41
41
|
var gap = useDeviceTargetClass(props, {
|
|
42
42
|
propsKey: 'gap',
|
|
43
43
|
});
|
|
44
|
-
return isOpen ? (jsxRuntimeExports.jsx("div", {
|
|
44
|
+
return isOpen ? (jsxRuntimeExports.jsx("div", { className: clsx('cookies-warning', className, fillClass, fillGradientClass), ref: cookiesWarningRef, children: jsxRuntimeExports.jsxs(Group, { direction: "vertical", className: "cookies-warning__inner", gap: gap ? gap : undefined, children: [jsxRuntimeExports.jsx(Text, { size: textSize, textColor: textColor, children: message }), jsxRuntimeExports.jsx(Button, { width: buttonWidth, fill: buttonFill, fillHover: buttonFillHover, shape: buttonShape, size: buttonSize, labelTextColor: buttonLabelTextColor, labelTextSize: buttonLabelSize, onClick: closeCookiesWarning, children: buttonLabel })] }) })) : null;
|
|
45
45
|
}
|
|
46
46
|
CookiesWarning.defaultProps = {
|
|
47
47
|
message: 'The site uses cookies to collect technical information, to optimize the design and improvement of the website, and to provide certain functions. By using the website, you agree to the use of «cookies».',
|