@itcase/ui 1.1.10 → 1.1.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/{Accordion-CXvqu97t.js → Accordion-vh2p5Mzs.js} +2 -2
- package/dist/{Avatar-JAaLGdYj.js → Avatar-DhZxzLEY.js} +2 -2
- package/dist/{Badge-DPM6qrjA.js → Badge-D-4zpdfU.js} +1 -1
- package/dist/{Breadcrumbs-BZpYBM5A.js → Breadcrumbs-CciIq1Na.js} +2 -2
- package/dist/{Button-CyO_Wl49.js → Button-BXClqM-t.js} +3 -3
- package/dist/{Card-DKmhFMCS.js → Card-DPGgzPuD.js} +1 -1
- package/dist/{Cell-D3aJx_C0.js → Cell-BfV_aVxs.js} +3 -3
- package/dist/{Checkbox-BqTMHeES.js → Checkbox-C-H_Z4S_.js} +1 -1
- package/dist/{Chips-DhyDHpu7.js → Chips-BR_EPV82.js} +1 -1
- package/dist/{Choice-cgCRlPk0.js → Choice-BJd9Jx4D.js} +4 -4
- package/dist/{ContextMenuItem-DjDhhmjF.js → ContextMenuItem-CpZ3pjky.js} +3 -3
- package/dist/CookiesWarning-jN2hWm12.js +52 -0
- package/dist/{DatePicker-BFLpftbJ.js → DatePicker-Nm4Ut2tD.js} +12 -7
- package/dist/{Divider-D0TEKxHr.js → Divider-Dhj6sMWd.js} +3 -0
- package/dist/{DropdownItem-DOBsvnrL.js → DropdownItem-BaQXZu0w.js} +2 -2
- package/dist/{Icon-C1j6rkeI.js → Icon-Duj1nynQ.js} +1 -1
- package/dist/{InputPassword-Aff74Atr.js → InputPassword-CTbtTP_o.js} +1 -1
- package/dist/{Label-CD6o__-D.js → Label-D9cQMuy3.js} +2 -2
- package/dist/LanguageSelector-TZEgbNsG.js +14 -0
- package/dist/{Loader-BUgSIcId.js → Loader-YZrWGaNy.js} +1 -1
- package/dist/{Menu-89epjC8r.js → Menu-Kpe1GMns.js} +1 -1
- package/dist/{MenuItem-DvpftOnP.js → MenuItem-C5BPgTO7.js} +1 -1
- package/dist/ModalLoader-8l8YtIvz.js +163 -0
- package/dist/{NotificationList-D_NNtwS1.js → NotificationList-CJ-hNA9W.js} +1 -1
- package/dist/{Pagination-0sADvbwj.js → Pagination-LXBlrbZT.js} +3 -3
- package/dist/{Radio-DFeWsO4E.js → Radio-Ca2-2PPF.js} +1 -1
- package/dist/{Response-C5_yetym.js → Response-Nzg8ooT8.js} +2 -2
- package/dist/{SearchResult-C0kjGm-o.js → SearchResult-B6Jd1xZO.js} +3 -3
- package/dist/{Segmented-C56XBzTH.js → Segmented-pa7MGnor.js} +1 -1
- package/dist/{SiteMenuButton-Do8ZNCkl.js → SiteMenuButton-CcCAsJtr.js} +2 -2
- package/dist/{Swiper-BYPes9JY.js → Swiper-JdwU0uca.js} +13 -5
- package/dist/{SwitchField-W4_o97BR.js → SwitchField-B8JbD2Se.js} +4 -4
- package/dist/{TabGroup-DRiFyK3Z.js → TabGroup-DieipbE3.js} +3 -3
- package/dist/{Text-edtauAM6.js → Text-CxrzHFN1.js} +2 -2
- package/dist/{Tile-CQ5L7pja.js → Tile-rSmWn8mR.js} +2 -2
- package/dist/{Tooltip-jT5A43he.js → Tooltip-CcwyN7PD.js} +1 -1
- package/dist/cjs/{Accordion-Dx0BRqhi.js → Accordion-BPSF6By2.js} +2 -2
- package/dist/cjs/{Avatar-C2xK87qB.js → Avatar-qFiPDVgu.js} +2 -2
- package/dist/cjs/{Badge-BvJTwXqB.js → Badge-zYZKun4n.js} +1 -1
- package/dist/cjs/{Breadcrumbs-PHMiEJZH.js → Breadcrumbs-BIhuwcTG.js} +2 -2
- package/dist/cjs/{Button-D7ctQMni.js → Button-C4_FRFZe.js} +3 -3
- package/dist/cjs/{Card-C5uctOQL.js → Card--te6xVsm.js} +1 -1
- package/dist/cjs/{Cell-B2BMVPlV.js → Cell-zxHVzKan.js} +3 -3
- package/dist/cjs/{Checkbox-C1HH9ut8.js → Checkbox-B-1dwjii.js} +1 -1
- package/dist/cjs/{Chips-DkUdk6Zs.js → Chips-BcJttN22.js} +1 -1
- package/dist/cjs/{Choice-CJqMvK5I.js → Choice-CPPQ2o2L.js} +4 -4
- package/dist/cjs/{ContextMenuItem-DocbJZKp.js → ContextMenuItem-BME-EZ-y.js} +3 -3
- package/dist/cjs/CookiesWarning-CfEwpkS8.js +59 -0
- package/dist/cjs/{DatePicker-7Ugf6hQ1.js → DatePicker-BiCqQFyi.js} +12 -7
- package/dist/cjs/{Divider-doetVRw0.js → Divider-D92wY8Fn.js} +3 -0
- package/dist/cjs/{DropdownItem-BVxf7bPs.js → DropdownItem-bjpmcFH1.js} +2 -2
- package/dist/cjs/{Icon-D1v73UhR.js → Icon-DzJtiBBk.js} +1 -1
- package/dist/cjs/{InputPassword-saMz6m0X.js → InputPassword-DHgR_QTK.js} +1 -1
- package/dist/cjs/{Label-C2Whza8M.js → Label-BcwjtIk7.js} +2 -2
- package/dist/cjs/LanguageSelector-C3i2JJCM.js +20 -0
- package/dist/cjs/{Loader-CK9zQAPl.js → Loader-2vQxF_aO.js} +1 -1
- package/dist/cjs/{Menu-BNe1i3Z7.js → Menu-CDlB7QNf.js} +1 -1
- package/dist/cjs/{MenuItem-BRQoOa-K.js → MenuItem-4uVtNhb4.js} +1 -1
- package/dist/cjs/ModalLoader-A2KkSC3x.js +172 -0
- package/dist/cjs/{NotificationList-ydXfdUwy.js → NotificationList-BTvz_kvZ.js} +1 -1
- package/dist/cjs/{Pagination-D8EHefOz.js → Pagination-B0-KGWSv.js} +3 -3
- package/dist/cjs/{Radio-DRXdBBWU.js → Radio-Cvbuwkx3.js} +1 -1
- package/dist/cjs/{Response-De79pGs5.js → Response-XesiDp89.js} +2 -2
- package/dist/cjs/{SearchResult-DFG3pyeM.js → SearchResult-D147g0-n.js} +3 -3
- package/dist/cjs/{Segmented-D0ISlz9H.js → Segmented-BHblcvck.js} +1 -1
- package/dist/cjs/{SiteMenuButton-Ca46xAzk.js → SiteMenuButton-ChUD4CgP.js} +2 -2
- package/dist/cjs/{Swiper-oPcqfskQ.js → Swiper-DHjkfpbP.js} +13 -5
- package/dist/cjs/{SwitchField-xk1JORBl.js → SwitchField-CdpEiqFv.js} +4 -4
- package/dist/cjs/{TabGroup-DEEcVLO0.js → TabGroup-Vn5oELiY.js} +3 -3
- package/dist/cjs/{Text-CgYNdSwY.js → Text-C8vlKWNN.js} +2 -2
- package/dist/cjs/{Tile-gAqZGMv7.js → Tile-j8EfyWDg.js} +2 -2
- package/dist/cjs/{Tooltip-DasmzIDY.js → Tooltip-CnnungCh.js} +1 -1
- package/dist/cjs/components/Accordion.js +4 -4
- package/dist/cjs/components/Avatar.js +4 -4
- package/dist/cjs/components/Badge.js +2 -2
- package/dist/cjs/components/Breadcrumbs.js +4 -4
- package/dist/cjs/components/Button.js +5 -5
- package/dist/cjs/components/Card.js +2 -2
- package/dist/cjs/components/Cell.js +5 -5
- package/dist/cjs/components/Checkbox.js +2 -2
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice/Choice.interface.d.ts +5 -1
- package/dist/cjs/components/Choice.js +4 -4
- package/dist/cjs/components/ContextMenu.js +5 -5
- package/dist/cjs/components/CookiesWarning/CookiesWarning.d.ts +10 -0
- package/dist/cjs/components/CookiesWarning/CookiesWarning.interface.d.ts +16 -0
- package/dist/cjs/components/CookiesWarning/index.d.ts +2 -0
- package/dist/cjs/components/CookiesWarning.js +19 -156
- package/dist/cjs/components/DatePicker/DatePicker.d.ts +1 -1
- package/dist/cjs/components/DatePicker/DatePicker.interface.d.ts +55 -7
- package/dist/cjs/components/DatePicker.js +7 -7
- package/dist/cjs/components/Divider/Divider.d.ts +5 -0
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/FormField.js +7 -7
- package/dist/cjs/components/Icon.js +3 -3
- package/dist/cjs/components/InputPassword.js +4 -4
- package/dist/cjs/components/Label.js +3 -3
- package/dist/cjs/components/LanguageSelector/Label.interface.d.ts +20 -0
- package/dist/cjs/components/LanguageSelector/LanguageSelector.d.ts +3 -0
- package/dist/cjs/components/LanguageSelector/index.d.ts +1 -0
- package/dist/cjs/components/LanguageSelector.js +9 -95
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/Menu.js +3 -3
- package/dist/cjs/components/MenuItem.js +2 -2
- package/dist/cjs/components/Modal/Modal.d.ts +4 -0
- package/dist/cjs/components/Modal/Modal.interface.d.ts +30 -0
- package/dist/cjs/components/Modal/ModalLoader.d.ts +3 -0
- package/dist/cjs/components/Modal/index.d.ts +3 -0
- package/dist/cjs/components/Modal.js +7 -7
- package/dist/cjs/components/Notification.js +2 -2
- package/dist/cjs/components/Pagination.js +6 -6
- package/dist/cjs/components/Panel.js +1 -1
- package/dist/cjs/components/Radio.js +2 -2
- package/dist/cjs/components/Response.js +6 -6
- package/dist/cjs/components/Search/Search.interface.d.ts +2 -2
- package/dist/cjs/components/Search.js +4 -4
- package/dist/cjs/components/Segmented.js +2 -2
- package/dist/cjs/components/Select.js +7 -5
- package/dist/cjs/components/SiteMenu.js +4 -4
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +4 -4
- package/dist/cjs/components/Text/Text.interface.d.ts +1 -0
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Tile.js +3 -3
- package/dist/cjs/components/Tooltip.js +2 -2
- package/dist/cjs/components.js +57 -57
- package/dist/cjs/constants/componentProps/iconSize.js +1 -1
- package/dist/cjs/constants/componentProps/sizePX.js +1 -1
- package/dist/cjs/context/Notifications.js +103 -53
- package/dist/cjs/types/componentProps/borderColorHover.d.ts +1 -1
- package/dist/cjs/types/componentProps/iconFillSize.d.ts +1 -1
- package/dist/cjs/types/componentProps/iconSize.d.ts +1 -1
- package/dist/cjs/types/componentProps/sizePX.d.ts +1 -1
- package/dist/components/Accordion.js +4 -4
- package/dist/components/Avatar.js +4 -4
- package/dist/components/Badge.js +2 -2
- package/dist/components/Breadcrumbs.js +4 -4
- package/dist/components/Button.js +5 -5
- package/dist/components/Card.js +2 -2
- package/dist/components/Cell.js +5 -5
- package/dist/components/Checkbox.js +2 -2
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice/Choice.interface.d.ts +5 -1
- package/dist/components/Choice.js +4 -4
- package/dist/components/ContextMenu.js +5 -5
- package/dist/components/CookiesWarning/CookiesWarning.d.ts +10 -0
- package/dist/components/CookiesWarning/CookiesWarning.interface.d.ts +16 -0
- package/dist/components/CookiesWarning/index.d.ts +2 -0
- package/dist/components/CookiesWarning.js +18 -152
- package/dist/components/DatePicker/DatePicker.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.interface.d.ts +55 -7
- package/dist/components/DatePicker.js +7 -7
- package/dist/components/Divider/Divider.d.ts +5 -0
- package/dist/components/Divider.js +1 -1
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/FormField.js +7 -7
- package/dist/components/Icon.js +3 -3
- package/dist/components/InputPassword.js +4 -4
- package/dist/components/Label.js +3 -3
- package/dist/components/LanguageSelector/Label.interface.d.ts +20 -0
- package/dist/components/LanguageSelector/LanguageSelector.d.ts +3 -0
- package/dist/components/LanguageSelector/index.d.ts +1 -0
- package/dist/components/LanguageSelector.js +8 -92
- package/dist/components/Loader.js +2 -2
- package/dist/components/Menu.js +3 -3
- package/dist/components/MenuItem.js +2 -2
- package/dist/components/Modal/Modal.d.ts +4 -0
- package/dist/components/Modal/Modal.interface.d.ts +30 -0
- package/dist/components/Modal/ModalLoader.d.ts +3 -0
- package/dist/components/Modal/index.d.ts +3 -0
- package/dist/components/Modal.js +7 -7
- package/dist/components/Notification.js +2 -2
- package/dist/components/Pagination.js +6 -6
- package/dist/components/Panel.js +1 -1
- package/dist/components/Radio.js +2 -2
- package/dist/components/Response.js +6 -6
- package/dist/components/Search/Search.interface.d.ts +2 -2
- package/dist/components/Search.js +4 -4
- package/dist/components/Segmented.js +2 -2
- package/dist/components/Select.js +7 -5
- package/dist/components/SiteMenu.js +4 -4
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +4 -4
- package/dist/components/Text/Text.interface.d.ts +1 -0
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +3 -3
- package/dist/components/Tooltip.js +2 -2
- package/dist/components.js +36 -36
- package/dist/constants/componentProps/iconSize.js +1 -1
- package/dist/constants/componentProps/sizePX.js +1 -1
- package/dist/context/Notifications.js +104 -54
- package/dist/css/components/Avatar/Avatar.css +3 -3
- package/dist/css/components/DatePicker/DatePicker.css +21 -0
- package/dist/css/components/Divider/Divider.css +3 -3
- package/dist/css/components/Icon/Icon.css +2 -2
- package/dist/css/components/Search/Search.css +1 -1
- package/dist/css/components/Search/css/search-input/search-input_size.css +1 -1
- package/dist/css/components/Select/Select.css +6 -5
- package/dist/css/components/Select/css/__menu/select__menu.css +1 -0
- package/dist/css/components/Swiper/Swiper.css +2 -2
- package/dist/types/componentProps/borderColorHover.d.ts +1 -1
- package/dist/types/componentProps/iconFillSize.d.ts +1 -1
- package/dist/types/componentProps/iconSize.d.ts +1 -1
- package/dist/types/componentProps/sizePX.d.ts +1 -1
- package/package.json +2 -1
- package/dist/ModalLoader-CushfGnC.js +0 -374
- package/dist/cjs/ModalLoader-1f8MYsLV.js +0 -384
|
@@ -5,8 +5,8 @@ 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-
|
|
9
|
-
import { T as Text } from './Text-
|
|
8
|
+
import { I as Icon } from './Icon-Duj1nynQ.js';
|
|
9
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
10
10
|
|
|
11
11
|
var ChevronDown16 = function ChevronDown16(props) {
|
|
12
12
|
return /*#__PURE__*/React__default.createElement("svg", props, /*#__PURE__*/React__default.createElement("path", {
|
|
@@ -2,9 +2,9 @@ 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-Duj1nynQ.js';
|
|
6
6
|
import { I as Image } from './Image-Bz4Fo3eB.js';
|
|
7
|
-
import { T as Text } from './Text-
|
|
7
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
8
8
|
|
|
9
9
|
function Avatar(props) {
|
|
10
10
|
var className = props.className, Dot = props.Dot, icon = props.icon, _a = props.size, size = _a === void 0 ? '96' : _a, after = props.after, before = props.before, src = props.src, type = props.type, mode = props.mode, onClick = props.onClick, _b = props.textSize, textSize = _b === void 0 ? 'l' : _b, _c = props.textColor, textColor = _c === void 0 ? 'surfaceTextTertiary' : _c, _d = props.textWeight, textWeight = _d === void 0 ? '600' : _d, iconSrc = props.iconSrc, iconItemFill = props.iconItemFill, iconShape = props.iconShape, iconSize = props.iconSize, iconFill = props.iconFill, iconFillHover = props.iconFillHover, iconFillSize = props.iconFillSize, _e = props.firstName, firstName = _e === void 0 ? '' : _e, _f = props.secondName, secondName = _f === void 0 ? '' : _f;
|
|
@@ -3,7 +3,7 @@ import { 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 { T as Text } from './Text-
|
|
6
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
7
7
|
|
|
8
8
|
var badgeConfig = {
|
|
9
9
|
appearance: undefined,
|
|
@@ -5,9 +5,9 @@ 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-
|
|
8
|
+
import { I as Icon } from './Icon-Duj1nynQ.js';
|
|
9
9
|
import { a as LinkWrapper } from './Link-CbCqej5B.js';
|
|
10
|
-
import { T as Text } from './Text-
|
|
10
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
11
11
|
|
|
12
12
|
function BreadcrumbsItem(props) {
|
|
13
13
|
var children = props.children, className = props.className, cursor = props.cursor, _a = props.set, set = _a === void 0 ? 'default' : _a, text = props.text, textSize = props.textSize, textColor = props.textColor, textColorHover = props.textColorHover, href = props.href, iconAfter = props.iconAfter, iconAfterSize = props.iconAfterSize, iconAfterBgFill = props.iconAfterBgFill, iconAfterFill = props.iconAfterFill, onClick = props.onClick;
|
|
@@ -3,10 +3,10 @@ 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-
|
|
6
|
+
import { I as Icon } from './Icon-Duj1nynQ.js';
|
|
7
7
|
import { a as LinkWrapper } from './Link-CbCqej5B.js';
|
|
8
|
-
import { L as Loader } from './Loader-
|
|
9
|
-
import { T as Text } from './Text-
|
|
8
|
+
import { L as Loader } from './Loader-YZrWGaNy.js';
|
|
9
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
10
10
|
|
|
11
11
|
var buttonConfig = {
|
|
12
12
|
appearance: 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 { I as Image } from './Image-Bz4Fo3eB.js';
|
|
5
|
-
import { T as Text } from './Text-
|
|
5
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
6
6
|
|
|
7
7
|
function Card(props) {
|
|
8
8
|
var children = props.children, className = props.className, size = props.size, src = props.src, text = props.text, textSize = props.textSize, textColor = props.textColor, textTag = props.textTag, title = props.title, titleSize = props.titleSize, titleTag = props.titleTag, titleColor = props.titleColor, image = props.image, imageShape = props.imageShape, type = props.type, onClick = props.onClick;
|
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
6
|
-
import { T as Text } from './Text-
|
|
4
|
+
import { I as Icon } from './Icon-Duj1nynQ.js';
|
|
5
|
+
import { L as Label } from './Label-D9cQMuy3.js';
|
|
6
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
7
7
|
|
|
8
8
|
function Cell(props) {
|
|
9
9
|
var after = props.after, before = props.before, className = props.className, isActive = props.isActive, isDisabled = props.isDisabled, mode = props.mode, reverse = props.reverse, set = props.set, showTitleLabel = props.showTitleLabel, showValueLabel = props.showValueLabel, size = props.size, title = props.title, titleIcon = props.titleIcon, titleIconFill = props.titleIconFill, titleIconFillHover = props.titleIconFillHover, titleIconFillSize = props.titleIconFillSize, titleIconItemFill = props.titleIconItemFill, titleIconShape = props.titleIconShape, titleIconSrc = props.titleIconSrc, titleLabel = props.titleLabel, titleLabelAppearance = props.titleLabelAppearance, titleLabelShape = props.titleLabelShape, titleLabelSize = props.titleLabelSize, titleLabelTextSize = props.titleLabelTextSize, titleTag = props.titleTag, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextTruncate = props.titleTextTruncate, titleTextWeight = props.titleTextWeight, titleTextWrap = props.titleTextWrap, value = props.value, valueIcon = props.valueIcon, valueIconFill = props.valueIconFill, valueIconFillHover = props.valueIconFillHover, valueIconFillSize = props.valueIconFillSize, valueIconItemFill = props.valueIconItemFill, valueIconShape = props.valueIconShape, valueIconSrc = props.valueIconSrc, valueLabel = props.valueLabel, valueLabelAppearance = props.valueLabelAppearance, valueLabelShape = props.valueLabelShape, valueLabelSize = props.valueLabelSize, valueLabelTextSize = props.valueLabelTextSize, valueTag = props.valueTag, valueTextAlign = props.valueTextAlign, valueTextColor = props.valueTextColor, valueTextSize = props.valueTextSize, valueTextWeight = props.valueTextWeight, valueTextWrap = props.valueTextWrap, zeroGap = props.zeroGap, zeroPadding = props.zeroPadding, onClick = props.onClick, onMouseEnter = props.onMouseEnter;
|
|
@@ -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 { T as Text } from './Text-
|
|
5
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
6
6
|
|
|
7
7
|
var checkboxConfig = {
|
|
8
8
|
state: undefined,
|
|
@@ -3,7 +3,7 @@ import { 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 { T as Text } from './Text-
|
|
6
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
7
7
|
|
|
8
8
|
var chipsConfig = {
|
|
9
9
|
appearance: undefined,
|
|
@@ -2,8 +2,8 @@ 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-
|
|
6
|
-
import { T as Text } from './Text-
|
|
5
|
+
import { I as Icon } from './Icon-Duj1nynQ.js';
|
|
6
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
7
7
|
|
|
8
8
|
var choiceConfig = {
|
|
9
9
|
appearance: {},
|
|
@@ -12,7 +12,7 @@ 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, isMultiple = props.isMultiple, labelTextActiveColor = props.labelTextActiveColor, labelTextActiveColorDisabled = props.labelTextActiveColorDisabled, labelTextColor = props.labelTextColor, labelTextColorDisabled = props.labelTextColorDisabled, 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;
|
|
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, isMultiple = props.isMultiple, 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) {
|
|
@@ -87,7 +87,7 @@ var Choice = React__default.forwardRef(function Choice(props, ref) {
|
|
|
87
87
|
: labelTextActiveColorDisabled
|
|
88
88
|
: !isDisabled
|
|
89
89
|
? labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor)
|
|
90
|
-
: labelTextColorDisabled, children: item.label })), (icon || activeIcon) && (jsxRuntimeExports.jsx(Icon, { className: "choice__item-icon", iconFill: item.value === active.value ? activeIconItemFill : iconItemFill, iconFillDisabled: isDisabled ? iconFillDisabled : undefined, iconSize: iconSize, SvgImage: item.value === active.value ? activeIcon : icon })), after] })] }, item.value)); }) }) }));
|
|
90
|
+
: labelTextColorDisabled, textWeight: labelTextWeight, children: item.label })), (icon || activeIcon) && (jsxRuntimeExports.jsx(Icon, { className: "choice__item-icon", iconFill: item.value === active.value ? (activeIconItemFill || item.activeIconItemFill) : (iconItemFill || item.iconItemFill), iconFillDisabled: isDisabled ? iconFillDisabled : undefined, iconSize: iconSize, SvgImage: item.value === active.value ? activeIcon : icon })), after] })] }, item.value)); }) }) }));
|
|
91
91
|
});
|
|
92
92
|
Choice.defaultProps = {
|
|
93
93
|
active: { value: undefined },
|
|
@@ -1,9 +1,9 @@
|
|
|
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 { D as Divider } from './Divider-
|
|
5
|
-
import { I as Icon } from './Icon-
|
|
6
|
-
import { T as Text } from './Text-
|
|
4
|
+
import { D as Divider } from './Divider-Dhj6sMWd.js';
|
|
5
|
+
import { I as Icon } from './Icon-Duj1nynQ.js';
|
|
6
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
7
7
|
|
|
8
8
|
function ContextMenu(props) {
|
|
9
9
|
var id = props.id, children = props.children, className = props.className, set = props.set, onClick = props.onClick;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
2
|
+
import { useRef, useMemo, useCallback, useEffect } from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import Cookies from 'js-cookie';
|
|
5
|
+
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
6
|
+
import { B as Button } from './Button-BXClqM-t.js';
|
|
7
|
+
import { G as Group } from './Group-C2kJKhWJ.js';
|
|
8
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
9
|
+
|
|
10
|
+
function CookiesWarning(props) {
|
|
11
|
+
var _a = props.message, message = _a === void 0 ? '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».' : _a, className = props.className, buttonFill = props.buttonFill, buttonFillHover = props.buttonFillHover, _b = props.buttonLabel, buttonLabel = _b === void 0 ? 'I agree' : _b, buttonLabelSize = props.buttonLabelSize, buttonLabelTextColor = props.buttonLabelTextColor, buttonShape = props.buttonShape, buttonSize = props.buttonSize, textSize = props.textSize, textColor = props.textColor, buttonWidth = props.buttonWidth, _c = props.isHideOnScroll, isHideOnScroll = _c === void 0 ? false : _c;
|
|
12
|
+
var cookiesWarningRef = useRef(null);
|
|
13
|
+
var isOpen = useMemo(function () { return Cookies.get('cookies-warning') !== 'close'; }, []);
|
|
14
|
+
var closeCookiesWarning = useCallback(function () {
|
|
15
|
+
var _a;
|
|
16
|
+
(_a = cookiesWarningRef.current) === null || _a === void 0 ? void 0 : _a.classList.add('cookies-warning_state_hidden');
|
|
17
|
+
Cookies.set('cookies-warning', 'close');
|
|
18
|
+
}, []);
|
|
19
|
+
useEffect(function () {
|
|
20
|
+
if (isHideOnScroll) {
|
|
21
|
+
window.addEventListener('scroll', closeCookiesWarning, true);
|
|
22
|
+
}
|
|
23
|
+
return function () {
|
|
24
|
+
window.removeEventListener('scroll', closeCookiesWarning, true);
|
|
25
|
+
};
|
|
26
|
+
}, []); // eslint-disable-line
|
|
27
|
+
useEffect(function () {
|
|
28
|
+
// isHideOnScroll &&
|
|
29
|
+
if (!isOpen) {
|
|
30
|
+
window.removeEventListener('scroll', closeCookiesWarning, true);
|
|
31
|
+
}
|
|
32
|
+
}, [isOpen]); // eslint-disable-line
|
|
33
|
+
var fillClass = useDeviceTargetClass(props, {
|
|
34
|
+
prefix: 'fill_',
|
|
35
|
+
propsKey: 'fill',
|
|
36
|
+
});
|
|
37
|
+
var fillGradientClass = useDeviceTargetClass(props, {
|
|
38
|
+
prefix: 'fill-gradient_',
|
|
39
|
+
propsKey: 'fillGradient',
|
|
40
|
+
});
|
|
41
|
+
var gap = useDeviceTargetClass(props, {
|
|
42
|
+
propsKey: 'gap',
|
|
43
|
+
});
|
|
44
|
+
return isOpen ? (jsxRuntimeExports.jsx("div", { ref: cookiesWarningRef, className: clsx('cookies-warning', className, fillClass, fillGradientClass), 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
|
+
}
|
|
46
|
+
CookiesWarning.defaultProps = {
|
|
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».',
|
|
48
|
+
buttonText: 'I agree',
|
|
49
|
+
isHideOnScroll: false,
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export { CookiesWarning as C };
|
|
@@ -8,11 +8,11 @@ import * as ReactDOM from 'react-dom';
|
|
|
8
8
|
import ReactDOM__default, { findDOMNode } from 'react-dom';
|
|
9
9
|
import { o as offset$1, f as flip$1, c as computePosition, b as arrow$2, p as platform, i as isElement, a as autoUpdate } from './floating-ui.dom-B080ZrCv.js';
|
|
10
10
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
11
|
-
import { B as Button } from './Button-
|
|
12
|
-
import { I as Icon } from './Icon-
|
|
11
|
+
import { B as Button } from './Button-BXClqM-t.js';
|
|
12
|
+
import { I as Icon } from './Icon-Duj1nynQ.js';
|
|
13
13
|
import { I as Input } from './Input-CYMKQ0qF.js';
|
|
14
|
-
import { L as Label } from './Label-
|
|
15
|
-
import { T as Text } from './Text-
|
|
14
|
+
import { L as Label } from './Label-D9cQMuy3.js';
|
|
15
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
16
16
|
|
|
17
17
|
function buildFormatLongFn(args) {
|
|
18
18
|
return (options = {}) => {
|
|
@@ -14070,14 +14070,14 @@ function DatePickerInput(props) {
|
|
|
14070
14070
|
useEffect(function () {
|
|
14071
14071
|
setEndDate(end);
|
|
14072
14072
|
}, [end]);
|
|
14073
|
-
return (jsxRuntimeExports.jsx("div", { className: clsx$1(className, 'datepicker', (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.monthsShown) && 'datepicker_type_multiple-months', (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.customTimeInput) && 'datepicker_type_button', widthClass), children: jsxRuntimeExports.jsx(DatePicker, __assign({ customInput: jsxRuntimeExports.jsx(DatePickerCustomInput, { clearIcon: clearIcon, clearIconFill: clearIconFill, clearIconFillHover: clearIconFillHover, clearIconFillSize: clearIconFillSize, clearIconItemFill: clearIconItemFill, clearIconItemFillHover: clearIconItemFillHover, clearIconShape: clearIconShape, clearIconSize: clearIconSize, clearIconSrc: clearIconSrc, clearLabel: clearLabel, clearLabelTextColor: clearLabelTextColor, clearLabelTextColorHover: clearLabelTextColorHover, clearLabelTextSize: clearLabelTextSize, datepickerRef: datepickerRef, inputProps: inputProps, isClearable: datePickerProps.isClearable, labelTextSize: labelTextSize }), endDate: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.selectsRange) ? endDate : null, locale: ru, minDate: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.disablePastDays) ? new Date() : null, ref: datepickerRef, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: startDate, startDate: startDate,
|
|
14073
|
+
return (jsxRuntimeExports.jsx("div", { className: clsx$1(className, 'datepicker', (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.monthsShown) && 'datepicker_type_multiple-months', (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.customTimeInput) && 'datepicker_type_button', widthClass), children: jsxRuntimeExports.jsx(DatePicker, __assign({ customInput: jsxRuntimeExports.jsx(DatePickerCustomInput, { clearIcon: clearIcon, inputIcon: datePickerProps.inputIcon, inputIconFill: datePickerProps.inputIconFill, inputIconFillHover: datePickerProps.inputIconFillHover, inputIconFillSize: datePickerProps.inputIconFillSize, inputIconShape: datePickerProps.inputIconShape, inputIconSize: datePickerProps.inputIconSize, inputIconSrc: datePickerProps.inputIconSrc, inputIconItemFill: datePickerProps.inputIconItemFill, clearIconFill: clearIconFill, clearIconFillHover: clearIconFillHover, clearIconFillSize: clearIconFillSize, clearIconItemFill: clearIconItemFill, clearIconItemFillHover: clearIconItemFillHover, clearIconShape: clearIconShape, clearIconSize: clearIconSize, clearIconSrc: clearIconSrc, clearLabel: clearLabel, clearLabelTextColor: clearLabelTextColor, clearLabelTextColorHover: clearLabelTextColorHover, clearLabelTextSize: clearLabelTextSize, datepickerRef: datepickerRef, inputProps: inputProps, isClearable: datePickerProps.isClearable, labelTextSize: labelTextSize }), endDate: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.selectsRange) ? endDate : null, locale: ru, minDate: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.disablePastDays) ? new Date() : null, ref: datepickerRef, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: startDate, startDate: startDate,
|
|
14074
14074
|
// @ts-expect-error
|
|
14075
14075
|
onChange: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.selectsRange) ? handleChange : onChange }, datePickerProps, {
|
|
14076
14076
|
// Important for use custom clear button
|
|
14077
14077
|
isClearable: false })) }));
|
|
14078
14078
|
}
|
|
14079
14079
|
var DatePickerCustomInput = React__default.forwardRef(function (props, ref) {
|
|
14080
|
-
var isClearable = props.isClearable, value = props.value, inputProps = props.inputProps;
|
|
14080
|
+
var isClearable = props.isClearable, value = props.value, inputProps = props.inputProps, inputIcon = props.inputIcon;
|
|
14081
14081
|
var multipleValue = useMemo(function () {
|
|
14082
14082
|
if (value) {
|
|
14083
14083
|
var twoDates = value.split(' - ');
|
|
@@ -14085,7 +14085,7 @@ var DatePickerCustomInput = React__default.forwardRef(function (props, ref) {
|
|
|
14085
14085
|
}
|
|
14086
14086
|
return '';
|
|
14087
14087
|
}, [value]);
|
|
14088
|
-
return (jsxRuntimeExports.jsxs(React__default.Fragment, { children: [jsxRuntimeExports.jsx(Input, __assign({}, props, inputProps, { ref: ref, value: multipleValue })), isClearable && jsxRuntimeExports.jsx(DatePickerClearButton, __assign({}, props))] }));
|
|
14088
|
+
return (jsxRuntimeExports.jsxs(React__default.Fragment, { children: [jsxRuntimeExports.jsx(Input, __assign({}, props, inputProps, { ref: ref, value: multipleValue })), inputIcon && jsxRuntimeExports.jsx(DatePickerInputIcon, __assign({}, props)), isClearable && jsxRuntimeExports.jsx(DatePickerClearButton, __assign({}, props))] }));
|
|
14089
14089
|
});
|
|
14090
14090
|
DatePickerCustomInput.displayName = 'DatePickerCustomInput';
|
|
14091
14091
|
function DatePickerClearButton(props) {
|
|
@@ -14100,5 +14100,10 @@ function DatePickerClearButton(props) {
|
|
|
14100
14100
|
return (jsxRuntimeExports.jsxs(React__default.Fragment, { children: [clearLabel && (jsxRuntimeExports.jsx(Label, { className: clsx$1('react-datepicker__clear-label', 'cursor_type_pointer'), label: clearLabel, labelTextColor: clearLabelTextColor, labelTextColorHover: clearLabelTextColorHover, labelTextSize: clearLabelTextSize, onClick: onClick })), (clearIcon || clearIconSrc) && (jsxRuntimeExports.jsx(Icon, { className: clsx$1('react-datepicker__clear-icon', 'cursor_type_pointer'), fill: clearIconFill, fillHover: clearIconFillHover, fillSize: clearIconFillSize, iconFill: clearIconItemFill, iconFillHover: clearIconItemFillHover, imageSrc: clearIconSrc, shape: clearIconShape, size: clearIconSize, SvgImage: clearIcon, onClick: onClick }))] }));
|
|
14101
14101
|
}
|
|
14102
14102
|
DatePickerClearButton.displayName = 'DatePickerClearButton';
|
|
14103
|
+
function DatePickerInputIcon(props) {
|
|
14104
|
+
var inputIconFill = props.inputIconFill, inputIconFillHover = props.inputIconFillHover, inputIconFillSize = props.inputIconFillSize, inputIconShape = props.inputIconShape, inputIconSize = props.inputIconSize, inputIcon = props.inputIcon, inputIconSrc = props.inputIconSrc, inputIconItemFill = props.inputIconItemFill, onClick = props.onClick;
|
|
14105
|
+
return (jsxRuntimeExports.jsx(Icon, { className: clsx$1('react-datepicker__input-icon', 'cursor_type_pointer'), fill: inputIconFill, fillHover: inputIconFillHover, fillSize: inputIconFillSize, iconFill: inputIconItemFill, imageSrc: inputIconSrc, shape: inputIconShape, size: inputIconSize, onClick: function () { return onClick && onClick(); }, SvgImage: inputIcon }));
|
|
14106
|
+
}
|
|
14107
|
+
DatePickerInputIcon.displayName = 'DatePickerInputIcon';
|
|
14103
14108
|
|
|
14104
14109
|
export { DatePickerInput as D };
|
|
@@ -41,5 +41,8 @@ function Divider(props) {
|
|
|
41
41
|
var hrStyles = useStyles(props).styles;
|
|
42
42
|
return (jsxRuntimeExports.jsx("hr", { className: clsx(className, 'divider', widthClass, directionClass, sizeClass, fillClass, fillHoverClass, fillActiveClass, fillActiveHoverClass, fillDisabledClass), style: hrStyles }));
|
|
43
43
|
}
|
|
44
|
+
Divider.defaultProps = {
|
|
45
|
+
size: 'xs',
|
|
46
|
+
};
|
|
44
47
|
|
|
45
48
|
export { Divider as D };
|
|
@@ -3,9 +3,9 @@ import React__default, { useRef, useState, useCallback, useEffect } 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 { D as Divider } from './Divider-
|
|
6
|
+
import { D as Divider } from './Divider-Dhj6sMWd.js';
|
|
7
7
|
import { L as Link } from './Link-CbCqej5B.js';
|
|
8
|
-
import { T as Text } from './Text-
|
|
8
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
9
9
|
|
|
10
10
|
function Dropdown(props) {
|
|
11
11
|
var after = props.after, before = props.before, animationClose = props.animationClose, animationOpen = props.animationOpen, children = props.children, className = props.className, set = props.set, isOpen = props.isOpen, setIsOpen = props.setIsOpen;
|
|
@@ -6,7 +6,7 @@ import SVG from 'react-inlinesvg';
|
|
|
6
6
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
7
7
|
import { useStyles } from './hooks/useStyles.js';
|
|
8
8
|
import { a as LinkWrapper } from './Link-CbCqej5B.js';
|
|
9
|
-
import { T as Tooltip } from './Tooltip-
|
|
9
|
+
import { T as Tooltip } from './Tooltip-CcwyN7PD.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-Duj1nynQ.js';
|
|
6
6
|
|
|
7
7
|
var inputPasswordConfig = {
|
|
8
8
|
state: undefined,
|
|
@@ -3,8 +3,8 @@ import { useRef, 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 { T as Text } from './Text-
|
|
7
|
-
import { T as Tooltip } from './Tooltip-
|
|
6
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
7
|
+
import { T as Tooltip } from './Tooltip-CcwyN7PD.js';
|
|
8
8
|
|
|
9
9
|
var labelConfig = {
|
|
10
10
|
appearance: undefined,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { I as Icon } from './Icon-Duj1nynQ.js';
|
|
4
|
+
|
|
5
|
+
function LanguageSelectorItem(props) {
|
|
6
|
+
var label = props.label, iconSize = props.iconSize, SvgImage = props.SvgImage, isActive = props.isActive, onClick = props.onClick;
|
|
7
|
+
return (jsxRuntimeExports.jsxs("div", { className: clsx('lang__item', isActive && 'lang__item_state_current'), onClick: onClick, children: [SvgImage && jsxRuntimeExports.jsx(Icon, { size: iconSize, SvgImage: SvgImage }), label] }));
|
|
8
|
+
}
|
|
9
|
+
function LanguageSelector(props) {
|
|
10
|
+
var currentLanguage = props.currentLanguage, _a = props.languagesItems, languagesItems = _a === void 0 ? [] : _a, className = props.className, setLanguage = props.setLanguage;
|
|
11
|
+
return (jsxRuntimeExports.jsx("div", { className: clsx(className, 'lang'), children: languagesItems.map(function (languageItem) { return (jsxRuntimeExports.jsx(LanguageSelectorItem, { iconSize: languageItem.iconSize, isActive: currentLanguage === languageItem.value, label: languageItem.label, SvgImage: languageItem.SvgImage, onClick: function () { return setLanguage && setLanguage(languageItem.value); } }, "languageItem_".concat(languageItem.value))); }) }));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { LanguageSelector as L };
|
|
@@ -3,7 +3,7 @@ import { 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 { T as Text } from './Text-
|
|
6
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
7
7
|
|
|
8
8
|
// TODO: is better to use context?
|
|
9
9
|
var loaderConfig = {
|
|
@@ -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-C5BPgTO7.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;
|
|
@@ -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 { L as Link } from './Link-CbCqej5B.js';
|
|
7
|
-
import { T as Text } from './Text-
|
|
7
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
8
8
|
|
|
9
9
|
var menuItemConfig = {
|
|
10
10
|
appearance: undefined,
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
2
|
+
import React__default, { useState, useRef, useCallback, useEffect, useLayoutEffect, useImperativeHandle } from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import ReactDOM__default from 'react-dom';
|
|
5
|
+
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
6
|
+
import { useStyles } from './hooks/useStyles.js';
|
|
7
|
+
import { O as Overlay } from './Overlay-C4gCb0sL.js';
|
|
8
|
+
import { L as Loader } from './Loader-YZrWGaNy.js';
|
|
9
|
+
|
|
10
|
+
var getOrCreateModalElement = function (modalQuerySelector, className) {
|
|
11
|
+
var _a;
|
|
12
|
+
if (className === void 0) { className = ''; }
|
|
13
|
+
// prettier-ignore
|
|
14
|
+
var classList = className && typeof className === 'string'
|
|
15
|
+
? className.split(' ').filter(Boolean)
|
|
16
|
+
: [];
|
|
17
|
+
var modalElement = document.querySelector(modalQuerySelector);
|
|
18
|
+
if (!modalElement) {
|
|
19
|
+
// Add modal element into the DOM on mount.
|
|
20
|
+
modalElement = document.createElement('div');
|
|
21
|
+
modalElement.setAttribute('id', 'modal-global');
|
|
22
|
+
modalElement.classList.add('modal');
|
|
23
|
+
if (classList.length) {
|
|
24
|
+
(_a = modalElement.classList).add.apply(_a, classList);
|
|
25
|
+
}
|
|
26
|
+
document.body.prepend(modalElement);
|
|
27
|
+
}
|
|
28
|
+
return modalElement;
|
|
29
|
+
};
|
|
30
|
+
// Modal component that is an abstraction around the portal API.
|
|
31
|
+
var Modal = React__default.forwardRef(function Modal(props, ref) {
|
|
32
|
+
var children = props.children, className = props.className, closeButton = props.closeButton, contentClassName = props.contentClassName, id = props.id, _a = props.isOverlay, isOverlay = _a === void 0 ? true : _a, overlayClassName = props.overlayClassName, overlayFill = props.overlayFill, overlayFillGradient = props.overlayFillGradient, overlayOpacity = props.overlayOpacity, _b = props.isOpen, initialIsOpen = _b === void 0 ? false : _b, _c = props.isScrollOnOpen, isScrollOnOpen = _c === void 0 ? true : _c, _d = props.isSetFocusOnOpen, isSetFocusOnOpen = _d === void 0 ? true : _d, _e = props.modalQuerySelector, modalQuerySelector = _e === void 0 ? '#modal-global' : _e, debug = props.debug, onCloseModal = props.onCloseModal, onOpenModal = props.onOpenModal;
|
|
33
|
+
// Query DOM element
|
|
34
|
+
var _f = useState(null), modalElement = _f[0], setModalElement = _f[1];
|
|
35
|
+
var _g = useState(initialIsOpen), isOpen = _g[0], setIsOpen = _g[1];
|
|
36
|
+
var modalContentRef = useRef(null);
|
|
37
|
+
var modalOverlayRef = useRef(null);
|
|
38
|
+
var addModalProps = useCallback(function (element) {
|
|
39
|
+
// Change class need in "useEffect"
|
|
40
|
+
if (isOpen) {
|
|
41
|
+
// Show modal
|
|
42
|
+
element.classList.add('modal_state_visible');
|
|
43
|
+
// Scroll to opened modal
|
|
44
|
+
if (isScrollOnOpen) {
|
|
45
|
+
// modalContentRef.current.style.top = `${window.visualViewport.pageTop}px`
|
|
46
|
+
element.scrollIntoView({ block: 'center', behavior: 'smooth' });
|
|
47
|
+
}
|
|
48
|
+
// "setTimeout" in this implementation is needs for set focus on modal
|
|
49
|
+
// after "onMouseDown" event on button
|
|
50
|
+
if (isSetFocusOnOpen) {
|
|
51
|
+
setTimeout(function () {
|
|
52
|
+
if (modalContentRef.current) {
|
|
53
|
+
modalContentRef.current.focus();
|
|
54
|
+
}
|
|
55
|
+
}, 0);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
else if (!element.children.length) {
|
|
59
|
+
// Hide modal if has no children
|
|
60
|
+
element.classList.remove('modal_state_visible');
|
|
61
|
+
}
|
|
62
|
+
}, [isOpen, isSetFocusOnOpen]);
|
|
63
|
+
// Show modal with children content
|
|
64
|
+
var openModal = useCallback(function () {
|
|
65
|
+
setIsOpen(true);
|
|
66
|
+
// Callback
|
|
67
|
+
if (typeof onOpenModal === 'function') {
|
|
68
|
+
onOpenModal();
|
|
69
|
+
}
|
|
70
|
+
/* SHOW TARGET POPUP ABOVE OTHERS POPUPS IF TARGET ALREADY OPENED
|
|
71
|
+
// If current modal is already opened
|
|
72
|
+
// Move content to end of modal root container. For order in DOM.
|
|
73
|
+
const modalContentElement = modalContentRef.current
|
|
74
|
+
if (modalContentElement) {
|
|
75
|
+
modalContentElement.parentNode.appendChild(modalContentElement)
|
|
76
|
+
}
|
|
77
|
+
// Also move overlay to end of modal root container after container
|
|
78
|
+
const modalOverlayElement = modalOverlayRef.current
|
|
79
|
+
if (modalOverlayElement) {
|
|
80
|
+
modalOverlayElement.parentNode.appendChild(modalOverlayElement)
|
|
81
|
+
}
|
|
82
|
+
*/
|
|
83
|
+
}, [onOpenModal]);
|
|
84
|
+
// Hide modal and unmount children content
|
|
85
|
+
var closeModal = useCallback(function (event) {
|
|
86
|
+
var hasRelatedTarget = event.relatedTarget &&
|
|
87
|
+
modalElement &&
|
|
88
|
+
// @ts-expect-error
|
|
89
|
+
modalElement.contains(event.relatedTarget);
|
|
90
|
+
if (hasRelatedTarget) {
|
|
91
|
+
return event;
|
|
92
|
+
}
|
|
93
|
+
setIsOpen(false);
|
|
94
|
+
// Callback
|
|
95
|
+
if (typeof onCloseModal === 'function') {
|
|
96
|
+
onCloseModal();
|
|
97
|
+
}
|
|
98
|
+
}, [modalElement, onCloseModal]);
|
|
99
|
+
useEffect(function () {
|
|
100
|
+
if (!modalElement) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
addModalProps(modalElement);
|
|
104
|
+
}, [isOpen]); // eslint-disable-line
|
|
105
|
+
useLayoutEffect(function () {
|
|
106
|
+
var element = getOrCreateModalElement(modalQuerySelector, className);
|
|
107
|
+
setModalElement(element);
|
|
108
|
+
if (element) {
|
|
109
|
+
addModalProps(element);
|
|
110
|
+
}
|
|
111
|
+
}, []);
|
|
112
|
+
// Save ref things
|
|
113
|
+
useImperativeHandle(ref, function () { return ({ isOpen: isOpen, openModal: openModal, closeModal: closeModal, modalElement: modalElement }); });
|
|
114
|
+
var fillClass = useDeviceTargetClass(props, {
|
|
115
|
+
prefix: 'fill_',
|
|
116
|
+
propsKey: 'fill',
|
|
117
|
+
});
|
|
118
|
+
// Collect classes and styles
|
|
119
|
+
var shapeClass = useDeviceTargetClass(props, {
|
|
120
|
+
prefix: 'modal-shape_',
|
|
121
|
+
propsKey: 'shape',
|
|
122
|
+
});
|
|
123
|
+
var borderColorClass = useDeviceTargetClass(props, {
|
|
124
|
+
prefix: 'border-color_',
|
|
125
|
+
propsKey: 'borderColor',
|
|
126
|
+
});
|
|
127
|
+
var borderWidthClass = useDeviceTargetClass(props, {
|
|
128
|
+
prefix: 'border-width_',
|
|
129
|
+
propsKey: 'borderWidth',
|
|
130
|
+
});
|
|
131
|
+
var borderTypeClass = useDeviceTargetClass(props, {
|
|
132
|
+
prefix: 'border_type_',
|
|
133
|
+
propsKey: 'borderType',
|
|
134
|
+
});
|
|
135
|
+
var elevationClass = useDeviceTargetClass(props, {
|
|
136
|
+
prefix: 'elevation_',
|
|
137
|
+
propsKey: 'elevation',
|
|
138
|
+
});
|
|
139
|
+
// @ts-expect-error
|
|
140
|
+
var modalStyles = useStyles(props).styles;
|
|
141
|
+
// Use a portal to render the children into the element
|
|
142
|
+
return (modalElement &&
|
|
143
|
+
ReactDOM__default.createPortal(
|
|
144
|
+
// Any valid React child: JSX, strings, arrays, etc.
|
|
145
|
+
isOpen ? (jsxRuntimeExports.jsxs(React__default.Fragment, { children: [jsxRuntimeExports.jsxs("div", { className: clsx('modal-content', contentClassName, fillClass, shapeClass, borderColorClass, borderWidthClass, borderTypeClass, elevationClass), id: id, ref: modalContentRef, style: modalStyles, tabIndex: 0, onBlur: debug ? undefined : closeModal, children: [closeButton && (jsxRuntimeExports.jsx("div", { className: "modal-content__close", onClick: closeModal, children: closeButton })), jsxRuntimeExports.jsx("div", { className: "modal-content__wrapper", children: children })] }), jsxRuntimeExports.jsx(Overlay, { className: clsx('modal__overlay', 'overlay_type_modal', overlayClassName), fill: overlayFill, fillGradient: overlayFillGradient, isOverlay: isOverlay, opacity: overlayOpacity,
|
|
146
|
+
// @ts-expect-error
|
|
147
|
+
ref: modalOverlayRef })] })) : null,
|
|
148
|
+
// A DOM element
|
|
149
|
+
modalElement));
|
|
150
|
+
});
|
|
151
|
+
Modal.defaultProps = {
|
|
152
|
+
isOverlay: true,
|
|
153
|
+
isOpen: false,
|
|
154
|
+
isScrollOnOpen: true,
|
|
155
|
+
isSetFocusOnOpen: true,
|
|
156
|
+
modalQuerySelector: '#modal-global',
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
function ModalLoader(props) {
|
|
160
|
+
return (jsxRuntimeExports.jsx("div", { className: "modal-loading", children: jsxRuntimeExports.jsx("div", { className: "modal-loading__inner", children: jsxRuntimeExports.jsx(Loader, {}) }) }));
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export { Modal as M, ModalLoader as a };
|
|
@@ -3,7 +3,7 @@ import clsx from 'clsx';
|
|
|
3
3
|
import { useNotifications, useNotificationsAPI } from './context/Notifications.js';
|
|
4
4
|
import { useMemo } from 'react';
|
|
5
5
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
6
|
-
import { T as Text } from './Text-
|
|
6
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
7
7
|
import { T as Title } from './Title-BUN57fWw.js';
|
|
8
8
|
|
|
9
9
|
var notificationItemConfig = {
|
|
@@ -4,9 +4,9 @@ import clsx from 'clsx';
|
|
|
4
4
|
import ceil from 'lodash/ceil';
|
|
5
5
|
import ReactPaginate from 'react-paginate';
|
|
6
6
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
7
|
-
import { D as Dropdown, a as DropdownItem } from './DropdownItem-
|
|
8
|
-
import { I as Icon } from './Icon-
|
|
9
|
-
import { T as Text } from './Text-
|
|
7
|
+
import { D as Dropdown, a as DropdownItem } from './DropdownItem-BaQXZu0w.js';
|
|
8
|
+
import { I as Icon } from './Icon-Duj1nynQ.js';
|
|
9
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
10
10
|
|
|
11
11
|
function Pagination(props) {
|
|
12
12
|
var allItemsCount = props.allItemsCount, className = props.className, marginPagesDisplayed = props.marginPagesDisplayed, nextLabel = props.nextLabel, _a = props.pageCountArray, pageCountArray = _a === void 0 ? [10, 20, 50, 100] : _a, pageCountDesc = props.pageCountDesc, pageCountDescTextColor = props.pageCountDescTextColor, pageCountDescTextSize = props.pageCountDescTextSize, pageCountDropdownAlignment = props.pageCountDropdownAlignment, pageCountDropdownElevation = props.pageCountDropdownElevation, pageCountDropdownFill = props.pageCountDropdownFill, pageCountDropdownItemDividerDirection = props.pageCountDropdownItemDividerDirection, pageCountDropdownItemDividerFill = props.pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize = props.pageCountDropdownItemDividerSize, pageCountDropdownItemFill = props.pageCountDropdownItemFill, pageCountDropdownItemFillActive = props.pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover = props.pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover = props.pageCountDropdownItemFillHover, pageCountDropdownItemLabelColor = props.pageCountDropdownItemLabelColor, pageCountDropdownItemLabelColorActive = props.pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelSize = props.pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap = props.pageCountDropdownItemLabelWrap, pageCountDropdownItemSize = props.pageCountDropdownItemSize, pageCountDropdownItemLabelAlign = props.pageCountDropdownItemLabelAlign, pageCountDropdownItemWidth = props.pageCountDropdownItemWidth, pageCountDropdownItemShowDivider = props.pageCountDropdownItemShowDivider, pageCountDropdownSet = props.pageCountDropdownSet, pageCountDropdownShape = props.pageCountDropdownShape, pageCountInputIcon = props.pageCountInputIcon, pageCountInputIconColor = props.pageCountInputIconColor, pageCountInputIconFillSize = props.pageCountInputIconFillSize, pageCountInputTextColor = props.pageCountInputTextColor, pageCountInputTextSize = props.pageCountInputTextSize, pageNumber = props.pageNumber, pageRangeDisplayed = props.pageRangeDisplayed, _b = props.perPageCount, perPageCount = _b === void 0 ? 0 : _b, previousLabel = props.previousLabel, isPageCount = props.isPageCount, isPageCountDropdownReversed = props.isPageCountDropdownReversed, onPageChange = props.onPageChange, onPerPageCountChange = props.onPerPageCountChange;
|
|
@@ -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 { T as Text } from './Text-
|
|
5
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
6
6
|
|
|
7
7
|
var radioConfig = {
|
|
8
8
|
state: undefined,
|
|
@@ -4,9 +4,9 @@ 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-BXClqM-t.js';
|
|
8
8
|
import { G as Group } from './Group-C2kJKhWJ.js';
|
|
9
|
-
import { T as Text } from './Text-
|
|
9
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
10
10
|
import { T as Title } from './Title-BUN57fWw.js';
|
|
11
11
|
|
|
12
12
|
var responseConfig = {
|
|
@@ -3,8 +3,8 @@ 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-
|
|
7
|
-
import { T as Text } from './Text-
|
|
6
|
+
import { I as Icon } from './Icon-Duj1nynQ.js';
|
|
7
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
8
8
|
import { S as Scrollbar } from './Scrollbar-DrRNpn12.js';
|
|
9
9
|
|
|
10
10
|
var searchInputConfig = {
|
|
@@ -105,7 +105,7 @@ SearchInput.DEFAULT_REF_STATE = {
|
|
|
105
105
|
SearchInput.defaultProps = {
|
|
106
106
|
placeholderTextSize: 'm',
|
|
107
107
|
inputTextSize: 'm',
|
|
108
|
-
size: '
|
|
108
|
+
size: 'normal',
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
var SearchResult = React__default.forwardRef(function SearchResult(props, ref) {
|
|
@@ -2,7 +2,7 @@ import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
|
2
2
|
import React__default, { useRef, useMemo, createRef, useCallback, useEffect } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
|
-
import { T as Text } from './Text-
|
|
5
|
+
import { T as Text } from './Text-CxrzHFN1.js';
|
|
6
6
|
|
|
7
7
|
var segmentedConfig = {
|
|
8
8
|
appearance: undefined,
|