@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
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
5
|
import { useStyles } from './hooks/useStyles.js';
|
|
6
6
|
import { D as Divider } from './Divider-Dhj6sMWd.js';
|
|
7
|
-
import { L as Link } from './Link-
|
|
7
|
+
import { L as Link } from './Link-Co6uspFK.js';
|
|
8
8
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
9
9
|
|
|
10
10
|
function Dropdown(props) {
|
|
@@ -5,8 +5,8 @@ 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 { a as LinkWrapper } from './Link-
|
|
9
|
-
import { T as Tooltip } from './Tooltip-
|
|
8
|
+
import { a as LinkWrapper } from './Link-Co6uspFK.js';
|
|
9
|
+
import { T as Tooltip } from './Tooltip-CpEQOh9v.js';
|
|
10
10
|
|
|
11
11
|
var iconConfig = {
|
|
12
12
|
appearance: {},
|
|
@@ -2,7 +2,7 @@ import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
|
2
2
|
import { useState, useMemo, 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
|
|
|
7
7
|
var inputPasswordConfig = {
|
|
8
8
|
state: undefined,
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
5
|
import { useStyles } from './hooks/useStyles.js';
|
|
6
6
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
7
|
-
import { T as Tooltip } from './Tooltip-
|
|
7
|
+
import { T as Tooltip } from './Tooltip-CpEQOh9v.js';
|
|
8
8
|
|
|
9
9
|
var labelConfig = {
|
|
10
10
|
appearance: undefined,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { I as Icon } from './Icon-
|
|
3
|
+
import { I as Icon } from './Icon-DWnG-4KG.js';
|
|
4
4
|
|
|
5
5
|
function LanguageSelectorItem(props) {
|
|
6
6
|
var label = props.label, iconSize = props.iconSize, SvgImage = props.SvgImage, isActive = props.isActive, onClick = props.onClick;
|
|
@@ -29,6 +29,14 @@ function Link(props) {
|
|
|
29
29
|
prefix: 'fill_',
|
|
30
30
|
propsKey: 'fill',
|
|
31
31
|
});
|
|
32
|
+
var svgFillClass = useDeviceTargetClass(props, {
|
|
33
|
+
prefix: 'svg_fill_',
|
|
34
|
+
propsKey: 'svgFill',
|
|
35
|
+
});
|
|
36
|
+
var svgFillHoverClass = useDeviceTargetClass(props, {
|
|
37
|
+
prefix: 'svg_fill_hover_',
|
|
38
|
+
propsKey: 'svgFillHover',
|
|
39
|
+
});
|
|
32
40
|
var weightClass = useDeviceTargetClass(props, {
|
|
33
41
|
prefix: 'text-weight_',
|
|
34
42
|
propsKey: 'textWeight',
|
|
@@ -47,7 +55,7 @@ function Link(props) {
|
|
|
47
55
|
});
|
|
48
56
|
// @ts-expect-error
|
|
49
57
|
var styles = useStyles(props).styles;
|
|
50
|
-
return (jsxRuntimeExports.jsxs(LinkWrapper, { className: clsx(className, 'link', directionClass, sizeClass, underline && "link_underline_".concat(underline), (textColorClass ||
|
|
58
|
+
return (jsxRuntimeExports.jsxs(LinkWrapper, { className: clsx(className, 'link', directionClass, sizeClass, svgFillClass, svgFillHoverClass, underline && "link_underline_".concat(underline), (textColorClass ||
|
|
51
59
|
textColorHoverClass ||
|
|
52
60
|
textGradientClass ||
|
|
53
61
|
textStyleClass ||
|
|
@@ -2,7 +2,7 @@ import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useStyles } from './hooks/useStyles.js';
|
|
4
4
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
|
-
import { L as Link } from './Link-
|
|
5
|
+
import { L as Link } from './Link-Co6uspFK.js';
|
|
6
6
|
|
|
7
7
|
function List(props) {
|
|
8
8
|
var children = props.children, className = props.className, style = props.style, type = props.type;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { a as LinkWrapper } from './Link-
|
|
3
|
+
import { a as LinkWrapper } from './Link-Co6uspFK.js';
|
|
4
4
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
5
|
import { useStyles } from './hooks/useStyles.js';
|
|
6
6
|
|
|
@@ -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 { useStyles } from './hooks/useStyles.js';
|
|
5
|
-
import { M as MenuItem } from './MenuItem-
|
|
5
|
+
import { M as MenuItem } from './MenuItem-COZ-C9K2.js';
|
|
6
6
|
|
|
7
7
|
function Menu(props) {
|
|
8
8
|
var after = props.after, before = props.before, children = props.children, className = props.className, items = props.items, type = props.type, onClickItem = props.onClickItem;
|
|
@@ -3,7 +3,7 @@ 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 { L as Link } from './Link-
|
|
6
|
+
import { L as Link } from './Link-Co6uspFK.js';
|
|
7
7
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
8
8
|
|
|
9
9
|
var menuItemConfig = {
|
|
@@ -4,7 +4,7 @@ import { useNotifications, useNotificationsAPI } from './context/Notifications.j
|
|
|
4
4
|
import { useMemo } from 'react';
|
|
5
5
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
6
6
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
7
|
-
import { T as Title } from './Title-
|
|
7
|
+
import { T as Title } from './Title-BhJcCgdK.js';
|
|
8
8
|
|
|
9
9
|
var notificationItemConfig = {
|
|
10
10
|
appearance: {},
|
|
@@ -36,8 +36,8 @@ NotificationItem.defaultProps = {
|
|
|
36
36
|
function NotificationList(props) {
|
|
37
37
|
var notifications = useNotifications();
|
|
38
38
|
var hideNotifications = useNotificationsAPI().hideNotifications;
|
|
39
|
-
var className = props.className,
|
|
40
|
-
return (jsxRuntimeExports.jsx("div", { className: clsx('notification', className), children: jsxRuntimeExports.jsx("div", { className: "notification__wrapper", children: notifications.map(function (notification, i) { return (jsxRuntimeExports.jsx(NotificationItem, { id: notification.id,
|
|
39
|
+
var className = props.className, closeButton = props.closeButton, set = props.set, size = props.size, type = props.type;
|
|
40
|
+
return (jsxRuntimeExports.jsx("div", { className: clsx('notification', className), children: jsxRuntimeExports.jsx("div", { className: "notification__wrapper", children: notifications.map(function (notification, i) { return (jsxRuntimeExports.jsx(NotificationItem, { closeButton: closeButton, id: notification.id, size: notification.size || size, status: notification.status, text: notification.text, title: notification.title, type: notification.type || type, set: notification.set || set, onClickClose: hideNotifications }, i)); }) }) }));
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export { NotificationItem as N, NotificationList as a, notificationItemConfig as n };
|
|
@@ -4,8 +4,8 @@ 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-
|
|
7
|
+
import { D as Dropdown, a as DropdownItem } from './DropdownItem-Cf5vBgDu.js';
|
|
8
|
+
import { I as Icon } from './Icon-DWnG-4KG.js';
|
|
9
9
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
10
10
|
|
|
11
11
|
function Pagination(props) {
|
|
@@ -4,10 +4,10 @@ import clsx from 'clsx';
|
|
|
4
4
|
import SVG from 'react-inlinesvg';
|
|
5
5
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
6
6
|
import { useStyles } from './hooks/useStyles.js';
|
|
7
|
-
import { B as Button } from './Button-
|
|
7
|
+
import { B as Button } from './Button-ULZVVxWC.js';
|
|
8
8
|
import { G as Group } from './Group-C2kJKhWJ.js';
|
|
9
9
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
10
|
-
import { T as Title } from './Title-
|
|
10
|
+
import { T as Title } from './Title-BhJcCgdK.js';
|
|
11
11
|
|
|
12
12
|
var responseConfig = {
|
|
13
13
|
appearance: undefined,
|
|
@@ -3,7 +3,7 @@ import React__default, { useCallback, 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-
|
|
6
|
+
import { I as Icon } from './Icon-DWnG-4KG.js';
|
|
7
7
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
8
8
|
import { S as Scrollbar } from './Scrollbar-DrRNpn12.js';
|
|
9
9
|
|
|
@@ -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-DWnG-4KG.js';
|
|
7
7
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
8
8
|
|
|
9
9
|
function SiteMenu(props) {
|
|
@@ -3,7 +3,7 @@ import React__default, { forwardRef, useState, useRef, useEffect, useLayoutEffec
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
5
|
import { useStyles } from './hooks/useStyles.js';
|
|
6
|
-
import { T as Title } from './Title-
|
|
6
|
+
import { T as Title } from './Title-BhJcCgdK.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* SSR Window 4.0.2
|
|
@@ -610,7 +610,7 @@ function Observer(_ref) {
|
|
|
610
610
|
});
|
|
611
611
|
observer.observe(target, {
|
|
612
612
|
attributes: typeof options.attributes === 'undefined' ? true : options.attributes,
|
|
613
|
-
childList: typeof options.childList === 'undefined' ? true : options.childList,
|
|
613
|
+
childList: swiper.isElement || (typeof options.childList === 'undefined' ? true : options).childList,
|
|
614
614
|
characterData: typeof options.characterData === 'undefined' ? true : options.characterData
|
|
615
615
|
});
|
|
616
616
|
observers.push(observer);
|
|
@@ -4664,7 +4664,7 @@ const updateOnVirtualData = swiper => {
|
|
|
4664
4664
|
};
|
|
4665
4665
|
|
|
4666
4666
|
/**
|
|
4667
|
-
* Swiper React 11.1.
|
|
4667
|
+
* Swiper React 11.1.5
|
|
4668
4668
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
4669
4669
|
* https://swiperjs.com
|
|
4670
4670
|
*
|
|
@@ -4672,7 +4672,7 @@ const updateOnVirtualData = swiper => {
|
|
|
4672
4672
|
*
|
|
4673
4673
|
* Released under the MIT License
|
|
4674
4674
|
*
|
|
4675
|
-
* Released on:
|
|
4675
|
+
* Released on: July 15, 2024
|
|
4676
4676
|
*/
|
|
4677
4677
|
|
|
4678
4678
|
|
|
@@ -6,7 +6,7 @@ import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
|
6
6
|
import { SelectInput } from './components/Select.js';
|
|
7
7
|
import { D as Divider } from './Divider-Dhj6sMWd.js';
|
|
8
8
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
9
|
-
import { I as Icon } from './Icon-
|
|
9
|
+
import { I as Icon } from './Icon-DWnG-4KG.js';
|
|
10
10
|
import { useStyles } from './hooks/useStyles.js';
|
|
11
11
|
import { S as Switch } from './Switch-0BHqovLA.js';
|
|
12
12
|
|
|
@@ -3,9 +3,9 @@ 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 { B as Badge } from './Badge-
|
|
6
|
+
import { B as Badge } from './Badge-BBbMdbjo.js';
|
|
7
7
|
import { D as Divider } from './Divider-Dhj6sMWd.js';
|
|
8
|
-
import { L as Link } from './Link-
|
|
8
|
+
import { L as Link } from './Link-Co6uspFK.js';
|
|
9
9
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
10
10
|
|
|
11
11
|
var tabConfig = {
|
|
@@ -2,12 +2,12 @@ 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 { useStyles } from './hooks/useStyles.js';
|
|
5
|
-
import { B as Badge } from './Badge-
|
|
5
|
+
import { B as Badge } from './Badge-BBbMdbjo.js';
|
|
6
6
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
7
|
-
import { T as Title } from './Title-
|
|
7
|
+
import { T as Title } from './Title-BhJcCgdK.js';
|
|
8
8
|
|
|
9
9
|
function Tile(props) {
|
|
10
|
-
var after = props.after, badge = props.badge, badgeSize = props.badgeSize, badgeTextColor = props.badgeTextColor, badgeTextSize = props.badgeTextSize, before = props.before,
|
|
10
|
+
var children = props.children, after = props.after, badge = props.badge, badgeSize = props.badgeSize, badgeTextColor = props.badgeTextColor, badgeTextSize = props.badgeTextSize, before = props.before, className = props.className, direction = props.direction, reverse = props.reverse, size = props.size, text = props.text, textColor = props.textColor, textSize = props.textSize, textWrap = props.textWrap, title = props.title, titleTextAlign = props.titleTextAlign, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextWeight = props.titleTextWeight, titleTextWrap = props.titleTextWrap, type = props.type, onClick = props.onClick;
|
|
11
11
|
var fillClass = useDeviceTargetClass(props, {
|
|
12
12
|
prefix: 'fill_',
|
|
13
13
|
propsKey: 'fill',
|
|
@@ -12,8 +12,16 @@ var titleConfig = {
|
|
|
12
12
|
},
|
|
13
13
|
};
|
|
14
14
|
function Title(props) {
|
|
15
|
-
var appearance = props.appearance, children = props.children, className = props.className, dataTour = props.dataTour, mode = props.mode, size = props.size, sizeDesktop = props.sizeDesktop, sizeMobile = props.sizeMobile, sizeTablet = props.sizeTablet, _a = props.tag, tag = _a === void 0 ? 'span' : _a, text = props.text, textWrap = props.textWrap, onClick = props.onClick;
|
|
15
|
+
var appearance = props.appearance, children = props.children, className = props.className, dataTour = props.dataTour, before = props.before, beforeWrapper = props.beforeWrapper, afterWrapper = props.afterWrapper, after = props.after, mode = props.mode, size = props.size, sizeDesktop = props.sizeDesktop, sizeMobile = props.sizeMobile, sizeTablet = props.sizeTablet, _a = props.tag, tag = _a === void 0 ? 'span' : _a, text = props.text, textWrap = props.textWrap, onClick = props.onClick;
|
|
16
16
|
var _b = useUserDeviceContext(), isMobile = _b.isMobile, isTablet = _b.isTablet, isDesktop = _b.isDesktop;
|
|
17
|
+
var directionClass = useDeviceTargetClass(props, {
|
|
18
|
+
prefix: 'title_direction_',
|
|
19
|
+
propsKey: 'direction',
|
|
20
|
+
});
|
|
21
|
+
var directionWrapperClass = useDeviceTargetClass(props, {
|
|
22
|
+
prefix: 'title-direction_',
|
|
23
|
+
propsKey: 'wrapperDirection',
|
|
24
|
+
});
|
|
17
25
|
var textColorClass = useDeviceTargetClass(props, {
|
|
18
26
|
prefix: 'text-color_',
|
|
19
27
|
propsKey: 'textColor',
|
|
@@ -26,6 +34,14 @@ function Title(props) {
|
|
|
26
34
|
prefix: 'text-color_hover_',
|
|
27
35
|
propsKey: 'textColorHover',
|
|
28
36
|
});
|
|
37
|
+
var svgFillClass = useDeviceTargetClass(props, {
|
|
38
|
+
prefix: 'svg_fill_',
|
|
39
|
+
propsKey: 'svgFill',
|
|
40
|
+
});
|
|
41
|
+
var svgFillHoverClass = useDeviceTargetClass(props, {
|
|
42
|
+
prefix: 'svg_fill_hover_',
|
|
43
|
+
propsKey: 'svgFillHover',
|
|
44
|
+
});
|
|
29
45
|
var textAlignClass = useDeviceTargetClass(props, {
|
|
30
46
|
prefix: 'text-align_',
|
|
31
47
|
propsKey: 'textAlign',
|
|
@@ -55,7 +71,7 @@ function Title(props) {
|
|
|
55
71
|
propsKey: 'textTruncate',
|
|
56
72
|
});
|
|
57
73
|
// @ts-expect-error
|
|
58
|
-
var
|
|
74
|
+
var _c = useStyles(props), titleStyles = _c.styles, titleWrapperStyles = _c.wrapper;
|
|
59
75
|
var appearanceConfig = useMemo(function () { return appearance && titleConfig.appearance && titleConfig.appearance[appearance]; }, [appearance, titleConfig]);
|
|
60
76
|
// Element type (h1, h2, ..., h6)
|
|
61
77
|
var Tag = useMemo(function () {
|
|
@@ -73,9 +89,9 @@ function Title(props) {
|
|
|
73
89
|
}
|
|
74
90
|
return size ? size : 'span';
|
|
75
91
|
}, [isMobile, isTablet, isDesktop]);
|
|
76
|
-
return (jsxRuntimeExports.
|
|
92
|
+
return (jsxRuntimeExports.jsxs(Tag, { className: clsx(className, 'title', fillColorClass, svgFillClass, svgFillHoverClass, size && "title_size_".concat(size), mode && "title_mode_".concat(mode), directionClass, textColorClass ||
|
|
77
93
|
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor) &&
|
|
78
|
-
"text-color_".concat(appearanceConfig.textColor).replace(/([A-Z])/g, '-$1').toLowerCase()), textColorActiveClass, textColorHoverClass, typeClass, textGradientClass, textStyleClass, weightClass, textWrap && "word-wrap_".concat(textWrap)), "data-tour": dataTour, onClick: onClick, style: titleStyles, children: jsxRuntimeExports.
|
|
94
|
+
"text-color_".concat(appearanceConfig.textColor).replace(/([A-Z])/g, '-$1').toLowerCase()), textColorActiveClass, textColorHoverClass, typeClass, textGradientClass, textStyleClass, weightClass, textWrap && "word-wrap_".concat(textWrap)), "data-tour": dataTour, onClick: onClick, style: titleStyles, children: [before, jsxRuntimeExports.jsxs("span", { className: clsx(textAlignClass, directionWrapperClass, 'title__wrapper', textTruncateClass), style: titleWrapperStyles, children: [beforeWrapper, children || text, afterWrapper] }), after] }));
|
|
79
95
|
}
|
|
80
96
|
Title.defaultProps = {
|
|
81
97
|
size: 'h3',
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
5
|
import { useStyles } from './hooks/useStyles.js';
|
|
6
6
|
import { T as Text } from './Text-CxrzHFN1.js';
|
|
7
|
-
import { T as Title } from './Title-
|
|
7
|
+
import { T as Title } from './Title-BhJcCgdK.js';
|
|
8
8
|
|
|
9
9
|
var tooltipConfig = {
|
|
10
10
|
appearance: undefined,
|
|
@@ -7,7 +7,7 @@ var clsx = require('clsx');
|
|
|
7
7
|
var castArray = require('lodash/castArray');
|
|
8
8
|
var useDeviceTargetClass = require('./hooks/useDeviceTargetClass.js');
|
|
9
9
|
var useStyles = require('./hooks/useStyles.js');
|
|
10
|
-
var Icon = require('./Icon-
|
|
10
|
+
var Icon = require('./Icon-2rv_L0yY.js');
|
|
11
11
|
var Text = require('./Text-C8vlKWNN.js');
|
|
12
12
|
|
|
13
13
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -4,7 +4,7 @@ var jsxRuntime = require('./jsx-runtime-BBxmckJR.js');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDeviceTargetClass = require('./hooks/useDeviceTargetClass.js');
|
|
7
|
-
var Icon = require('./Icon-
|
|
7
|
+
var Icon = require('./Icon-2rv_L0yY.js');
|
|
8
8
|
var Image = require('./Image-CCx6QWZj.js');
|
|
9
9
|
var Text = require('./Text-C8vlKWNN.js');
|
|
10
10
|
|
|
@@ -18,7 +18,7 @@ var badgeConfig = {
|
|
|
18
18
|
},
|
|
19
19
|
};
|
|
20
20
|
function Badge(props) {
|
|
21
|
-
var _a;
|
|
21
|
+
var _a, _b;
|
|
22
22
|
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;
|
|
23
23
|
var borderColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
24
24
|
prefix: 'border-color_',
|
|
@@ -40,6 +40,10 @@ function Badge(props) {
|
|
|
40
40
|
prefix: 'fill_',
|
|
41
41
|
propsKey: 'fill',
|
|
42
42
|
});
|
|
43
|
+
var fillHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
44
|
+
prefix: 'fill_hover_',
|
|
45
|
+
propsKey: 'fillHover',
|
|
46
|
+
});
|
|
43
47
|
var positionClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
44
48
|
prefix: 'position_',
|
|
45
49
|
propsKey: 'position',
|
|
@@ -57,7 +61,9 @@ function Badge(props) {
|
|
|
57
61
|
var appearanceConfig = React.useMemo(function () { return appearance && badgeConfig.appearance && badgeConfig.appearance[appearance]; }, [appearance, badgeConfig]);
|
|
58
62
|
return (jsxRuntime.jsxRuntimeExports.jsx("div", { className: clsx__default.default(className, 'badge', !value && 'badge_type_status', mode && "badge_mode_".concat(mode), borderColorClass, borderColorHoverClass, borderWidthClass, borderTypeClass, fillClass ||
|
|
59
63
|
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fill) &&
|
|
60
|
-
((_a = "fill_".concat(appearanceConfig.fill)) === null || _a === void 0 ? void 0 : _a.replace(/([A-Z])/g, '-$1').toLowerCase())),
|
|
64
|
+
((_a = "fill_".concat(appearanceConfig.fill)) === null || _a === void 0 ? void 0 : _a.replace(/([A-Z])/g, '-$1').toLowerCase())), fillHoverClass ||
|
|
65
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fillHover) &&
|
|
66
|
+
((_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 ||
|
|
61
67
|
(value && (jsxRuntime.jsxRuntimeExports.jsx(Text.Text, { size: textSize, textColor: textColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor), children: value }))) }));
|
|
62
68
|
}
|
|
63
69
|
Badge.defaultProps = {
|
|
@@ -7,8 +7,8 @@ var clsx = require('clsx');
|
|
|
7
7
|
var camelCase = require('lodash/camelCase');
|
|
8
8
|
var useDeviceTargetClass = require('./hooks/useDeviceTargetClass.js');
|
|
9
9
|
var useStyles = require('./hooks/useStyles.js');
|
|
10
|
-
var Icon = require('./Icon-
|
|
11
|
-
var Link = require('./Link-
|
|
10
|
+
var Icon = require('./Icon-2rv_L0yY.js');
|
|
11
|
+
var Link = require('./Link-B6Xq7PWn.js');
|
|
12
12
|
var Text = require('./Text-C8vlKWNN.js');
|
|
13
13
|
|
|
14
14
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -5,8 +5,8 @@ var React = require('react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDeviceTargetClass = require('./hooks/useDeviceTargetClass.js');
|
|
7
7
|
var useStyles = require('./hooks/useStyles.js');
|
|
8
|
-
var Icon = require('./Icon-
|
|
9
|
-
var Link = require('./Link-
|
|
8
|
+
var Icon = require('./Icon-2rv_L0yY.js');
|
|
9
|
+
var Link = require('./Link-B6Xq7PWn.js');
|
|
10
10
|
var Loader = require('./Loader-2vQxF_aO.js');
|
|
11
11
|
var Text = require('./Text-C8vlKWNN.js');
|
|
12
12
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var jsxRuntime = require('./jsx-runtime-BBxmckJR.js');
|
|
4
4
|
var clsx = require('clsx');
|
|
5
5
|
var useDeviceTargetClass = require('./hooks/useDeviceTargetClass.js');
|
|
6
|
-
var Icon = require('./Icon-
|
|
7
|
-
var Label = require('./Label-
|
|
6
|
+
var Icon = require('./Icon-2rv_L0yY.js');
|
|
7
|
+
var Label = require('./Label-EFoxH21m.js');
|
|
8
8
|
var Text = require('./Text-C8vlKWNN.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -4,7 +4,7 @@ var jsxRuntime = require('./jsx-runtime-BBxmckJR.js');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDeviceTargetClass = require('./hooks/useDeviceTargetClass.js');
|
|
7
|
-
var Icon = require('./Icon-
|
|
7
|
+
var Icon = require('./Icon-2rv_L0yY.js');
|
|
8
8
|
var Text = require('./Text-C8vlKWNN.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -19,13 +19,13 @@ var choiceConfig = {
|
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
var Choice = React__default.default.forwardRef(function Choice(props, ref) {
|
|
22
|
-
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,
|
|
22
|
+
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;
|
|
23
23
|
var controlRef = React.useRef(null);
|
|
24
24
|
var optionsRefs = React.useMemo(function () { return new Map(options.map(function (item) { return [item.value, React.createRef()]; })); }, [options]);
|
|
25
25
|
var onChange = React.useCallback(function (event, item) {
|
|
26
|
-
var isChecked =
|
|
26
|
+
var isChecked = isCheckbox ? event.target.checked : true;
|
|
27
27
|
setActiveSegment && setActiveSegment(item, isChecked);
|
|
28
|
-
}, [
|
|
28
|
+
}, [isCheckbox, setActiveSegment]);
|
|
29
29
|
var borderColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
30
30
|
prefix: 'border-color_',
|
|
31
31
|
propsKey: 'borderColor',
|
|
@@ -88,13 +88,15 @@ var Choice = React__default.default.forwardRef(function Choice(props, ref) {
|
|
|
88
88
|
: fillActiveDisabledClass
|
|
89
89
|
: !isDisabled
|
|
90
90
|
? fillClass
|
|
91
|
-
: fillDisabledClass, item.value === active.value && isDisabled && 'choice__item_active_state_disabled', item.value === active.value && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [jsxRuntime.jsxRuntimeExports.jsx("input", { checked: item.value === active.value, className: "choice__item-radio", id: "".concat(name, "-").concat(item.value), name: name, disabled: isDisabled, type:
|
|
91
|
+
: fillDisabledClass, item.value === active.value && isDisabled && 'choice__item_active_state_disabled', item.value === active.value && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [jsxRuntime.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); } }), jsxRuntime.jsxRuntimeExports.jsxs("label", { className: clsx__default.default('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [before, item.label && (jsxRuntime.jsxRuntimeExports.jsx(Text.Text, { size: labelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextSize), textColor: item.value === active.value
|
|
92
92
|
? !isDisabled
|
|
93
93
|
? labelTextActiveColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextActiveColor)
|
|
94
94
|
: labelTextActiveColorDisabled
|
|
95
95
|
: !isDisabled
|
|
96
96
|
? labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor)
|
|
97
|
-
: labelTextColorDisabled, textWeight: labelTextWeight, children: item.label })), (icon || activeIcon) && (jsxRuntime.jsxRuntimeExports.jsx(Icon.Icon, { className: "choice__item-icon", iconFill: item.value === active.value
|
|
97
|
+
: labelTextColorDisabled, textWeight: labelTextWeight, children: item.label })), (icon || activeIcon) && (jsxRuntime.jsxRuntimeExports.jsx(Icon.Icon, { className: "choice__item-icon", iconFill: item.value === active.value
|
|
98
|
+
? activeIconItemFill || item.activeIconItemFill
|
|
99
|
+
: iconItemFill || item.iconItemFill, iconFillDisabled: isDisabled ? iconFillDisabled : undefined, iconSize: iconSize, SvgImage: item.value === active.value ? activeIcon : icon })), after] })] }, item.value)); }) }) }));
|
|
98
100
|
});
|
|
99
101
|
Choice.defaultProps = {
|
|
100
102
|
active: { value: undefined },
|
|
@@ -4,7 +4,7 @@ var jsxRuntime = require('./jsx-runtime-BBxmckJR.js');
|
|
|
4
4
|
var clsx = require('clsx');
|
|
5
5
|
var useDeviceTargetClass = require('./hooks/useDeviceTargetClass.js');
|
|
6
6
|
var Divider = require('./Divider-D92wY8Fn.js');
|
|
7
|
-
var Icon = require('./Icon-
|
|
7
|
+
var Icon = require('./Icon-2rv_L0yY.js');
|
|
8
8
|
var Text = require('./Text-C8vlKWNN.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var Cookies = require('js-cookie');
|
|
7
7
|
var useDeviceTargetClass = require('./hooks/useDeviceTargetClass.js');
|
|
8
|
-
var Button = require('./Button-
|
|
8
|
+
var Button = require('./Button-DfUQ11Hs.js');
|
|
9
9
|
var Group = require('./Group-C9BxTKs-.js');
|
|
10
10
|
var Text = require('./Text-C8vlKWNN.js');
|
|
11
11
|
|
|
@@ -30,13 +30,13 @@ function CookiesWarning(props) {
|
|
|
30
30
|
return function () {
|
|
31
31
|
window.removeEventListener('scroll', closeCookiesWarning, true);
|
|
32
32
|
};
|
|
33
|
-
}, []);
|
|
33
|
+
}, []);
|
|
34
34
|
React.useEffect(function () {
|
|
35
35
|
// isHideOnScroll &&
|
|
36
36
|
if (!isOpen) {
|
|
37
37
|
window.removeEventListener('scroll', closeCookiesWarning, true);
|
|
38
38
|
}
|
|
39
|
-
}, [isOpen]);
|
|
39
|
+
}, [isOpen]);
|
|
40
40
|
var fillClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
41
41
|
prefix: 'fill_',
|
|
42
42
|
propsKey: 'fill',
|
|
@@ -48,7 +48,7 @@ function CookiesWarning(props) {
|
|
|
48
48
|
var gap = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
49
49
|
propsKey: 'gap',
|
|
50
50
|
});
|
|
51
|
-
return isOpen ? (jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
51
|
+
return isOpen ? (jsxRuntime.jsxRuntimeExports.jsx("div", { className: clsx__default.default('cookies-warning', className, fillClass, fillGradientClass), ref: cookiesWarningRef, children: jsxRuntime.jsxRuntimeExports.jsxs(Group.Group, { direction: "vertical", className: "cookies-warning__inner", gap: gap ? gap : undefined, children: [jsxRuntime.jsxRuntimeExports.jsx(Text.Text, { size: textSize, textColor: textColor, children: message }), jsxRuntime.jsxRuntimeExports.jsx(Button.Button, { width: buttonWidth, fill: buttonFill, fillHover: buttonFillHover, shape: buttonShape, size: buttonSize, labelTextColor: buttonLabelTextColor, labelTextSize: buttonLabelSize, onClick: closeCookiesWarning, children: buttonLabel })] }) })) : null;
|
|
52
52
|
}
|
|
53
53
|
CookiesWarning.defaultProps = {
|
|
54
54
|
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».',
|