@itcase/ui 1.8.19 → 1.8.22
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/Avatar_cjs_DSXs1Yrg.js +221 -0
- package/dist/Avatar_es_DByUaJL6.js +217 -0
- package/dist/{Button_cjs_DjCsrrlr.js → Button_cjs_CukkOE-v.js} +15 -6
- package/dist/{Button_es_CHDT0-8K.js → Button_es_DXcCJuNX.js} +15 -6
- package/dist/{ChipsGroup_cjs_CTpMiyQb.js → ChipsGroup_cjs_9wrMZrzL.js} +2 -2
- package/dist/{ChipsGroup_es_CP_xm25C.js → ChipsGroup_es_CjGZ-ulT.js} +2 -2
- package/dist/{DatePicker_cjs_DPtOL1eW.js → DatePicker_cjs_BriuTQqj.js} +4 -4
- package/dist/{DatePicker_es_DCuzMD0T.js → DatePicker_es_DzY_fVii.js} +4 -4
- package/dist/{DropdownItem_cjs_DW0UXopm.js → DropdownItem_cjs_DY61IdLK.js} +15 -15
- package/dist/{DropdownItem_es_vuNthDPa.js → DropdownItem_es_D8mY9vFZ.js} +15 -15
- package/dist/{Group_cjs_B0oM0pjF.js → Group_cjs_Cwt0gWk4.js} +9 -2
- package/dist/{Group_es_B8pQHYsC.js → Group_es_CYW2Hquh.js} +9 -2
- package/dist/{Image_cjs_DuIBtUq5.js → Image_cjs_CCWqbNn4.js} +11 -3
- package/dist/{Image_es_CSzHhlA1.js → Image_es_DZUVp0FS.js} +11 -3
- package/dist/{Label_cjs_mw4pHZR1.js → Label_cjs_CnwET26s.js} +12 -4
- package/dist/{Label_es_CiPEDFcR.js → Label_es_Dc18d1gY.js} +12 -4
- package/dist/Link_cjs_DbRGq2Yk.js +303 -0
- package/dist/Link_es_DxtZLeKY.js +298 -0
- package/dist/{Loader_cjs_DZbIy6Ko.js → Loader_cjs_3VRzFLI2.js} +14 -2
- package/dist/{Loader_es_SHdP0IkA.js → Loader_es_DEYowVdU.js} +14 -2
- package/dist/Text_cjs_DPhKj3wf.js +68 -0
- package/dist/{Text_es_D012qJ8s.js → Text_es_BRb3qqKM.js} +8 -3
- package/dist/{Tooltip_cjs_BKOjNMkt.js → Tooltip_cjs_PkuRdzzy.js} +480 -17
- package/dist/{Tooltip_es_C7zstTA2.js → Tooltip_es_BaGfb-qC.js} +480 -17
- package/dist/cjs/components/Accordion.js +3 -3
- package/dist/cjs/components/Avatar.js +13 -236
- package/dist/cjs/components/AvatarStack.js +35 -0
- package/dist/cjs/components/Badge.js +3 -3
- package/dist/cjs/components/Breadcrumbs.js +4 -4
- package/dist/cjs/components/Button.js +5 -5
- package/dist/cjs/components/Cell.js +16 -150
- package/dist/cjs/components/Checkbox.js +1 -1
- package/dist/cjs/components/Chips.js +4 -4
- package/dist/cjs/components/Choice.js +6 -6
- package/dist/cjs/components/Code.js +2 -8
- package/dist/cjs/components/CookiesWarning.js +13 -6
- package/dist/cjs/components/DatePeriod.js +8 -8
- package/dist/cjs/components/DatePicker.js +7 -7
- package/dist/cjs/components/Drawer.js +26 -2
- package/dist/cjs/components/Dropdown.js +5 -2
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/Icon.js +3 -3
- package/dist/cjs/components/Image.js +2 -2
- package/dist/cjs/components/InputPassword.js +166 -44
- package/dist/cjs/components/Label.js +4 -4
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/Logo.js +1 -1
- package/dist/cjs/components/MenuItem.js +30 -10
- package/dist/cjs/components/Modal.js +4 -4
- package/dist/cjs/components/ModalSheetBottom.js +7 -0
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +11 -9
- package/dist/cjs/components/Radio.js +1 -1
- package/dist/cjs/components/Response/img.js +33 -0
- package/dist/cjs/components/Response.js +96 -184
- package/dist/cjs/components/Search.js +126 -13
- package/dist/cjs/components/Segmented.js +1 -1
- package/dist/cjs/components/Select.js +4 -4
- package/dist/cjs/components/Swiper.js +3 -3
- package/dist/cjs/components/Switch.js +238 -3
- package/dist/cjs/components/Tab.js +3 -3
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Tile.js +81 -8
- package/dist/cjs/components/Title.js +3 -3
- package/dist/cjs/components/Tooltip.js +3 -3
- package/dist/components/Accordion.js +3 -3
- package/dist/components/Avatar.js +10 -237
- package/dist/components/AvatarStack.js +33 -0
- package/dist/components/Badge.js +3 -3
- package/dist/components/Breadcrumbs.js +4 -4
- package/dist/components/Button.js +5 -5
- package/dist/components/Cell.js +16 -150
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Chips.js +4 -4
- package/dist/components/Choice.js +6 -6
- package/dist/components/Code.js +2 -8
- package/dist/components/CookiesWarning.js +13 -7
- package/dist/components/DatePeriod.js +8 -8
- package/dist/components/DatePicker.js +7 -7
- package/dist/components/Drawer.js +26 -2
- package/dist/components/Dropdown.js +5 -2
- package/dist/components/Group.js +1 -1
- package/dist/components/Icon.js +3 -3
- package/dist/components/Image.js +2 -2
- package/dist/components/InputPassword.js +166 -43
- package/dist/components/Label.js +4 -4
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Loader.js +2 -2
- package/dist/components/Logo.js +1 -1
- package/dist/components/MenuItem.js +30 -10
- package/dist/components/Modal.js +4 -4
- package/dist/components/ModalSheetBottom.js +7 -1
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +11 -9
- package/dist/components/Radio.js +1 -1
- package/dist/components/Response/img.js +31 -0
- package/dist/components/Response.js +96 -184
- package/dist/components/Search.js +126 -13
- package/dist/components/Segmented.js +1 -1
- package/dist/components/Select.js +4 -4
- package/dist/components/Swiper.js +3 -3
- package/dist/components/Switch.js +238 -3
- package/dist/components/Tab.js +3 -3
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +81 -8
- package/dist/components/Title.js +3 -3
- package/dist/components/Tooltip.js +3 -3
- package/dist/css/components/AvatarStack/AvatarStack.css +54 -0
- package/dist/css/components/Code/Code.css +3 -6
- package/dist/css/components/Icon/Icon.css +128 -4
- package/dist/css/components/Label/Label.css +4 -4
- package/dist/css/components/MenuItem/MenuItem.css +19 -43
- package/dist/css/components/Response/Response.css +6 -3
- package/dist/css/components/Tab/Tab.css +14 -31
- package/dist/css/components/Text/Text.css +0 -9
- package/dist/css/components/Tile/Tile.css +7 -5
- package/dist/css/styles/border-color/border-color_hover.css +6 -8
- package/dist/css/styles/fill/fill_active.css +19 -9
- package/dist/css/styles/fill/fill_active_hover.css +19 -0
- package/dist/css/styles/fill/fill_hover.css +19 -0
- package/dist/css/styles/svg-color/svg_fill.css +5 -5
- package/dist/css/styles/text-color/text-color_active.css +17 -0
- package/dist/css/styles/text-color/text-color_active_hover.css +40 -0
- package/dist/stories/Plsyground.mdx +0 -1
- package/dist/stories/index.stories.js +46 -0
- package/dist/stories/useDevicePropsGenerator.mdx +76 -102
- package/dist/stories/useMediaQueries.mdx +32 -7
- package/dist/stories/useStyles.mdx +50 -2
- package/dist/types/components/Avatar/appearance/avatarAccent.d.ts +0 -4
- package/dist/types/components/Avatar/appearance/avatarDanger.d.ts +0 -1
- package/dist/types/components/Avatar/appearance/avatarInfo.d.ts +0 -4
- package/dist/types/components/Avatar/appearance/avatarPrimary.d.ts +0 -1
- package/dist/types/components/Avatar/appearance/avatarSecondary.d.ts +0 -1
- package/dist/types/components/Avatar/appearance/avatarSuccess.d.ts +1 -3
- package/dist/types/components/Avatar/appearance/avatarSurface.d.ts +0 -6
- package/dist/types/components/AvatarStack/AvatarStack.d.ts +3 -0
- package/dist/types/components/AvatarStack/AvatarStack.interface.d.ts +9 -0
- package/dist/types/components/AvatarStack/index.d.ts +2 -0
- package/dist/types/components/Button/appearance/buttonAccent.d.ts +1 -0
- package/dist/types/components/Button/appearance/buttonDanger.d.ts +8 -0
- package/dist/types/components/Cell/appearance/cellSize.d.ts +8 -44
- package/dist/types/components/Code/appearance/codeSize.d.ts +2 -8
- package/dist/types/components/CookiesWarning/CookiesWarning.appearance.d.ts +5 -0
- package/dist/types/components/CookiesWarning/index.d.ts +2 -1
- package/dist/types/components/Drawer/appearance/drawerSurface.d.ts +25 -0
- package/dist/types/components/Dropdown/appearance/dropdownAccent.d.ts +0 -6
- package/dist/types/components/Dropdown/appearance/dropdownSurface.d.ts +5 -0
- package/dist/types/components/InputPassword/InputPassword.appearance.d.ts +2 -3
- package/dist/types/components/InputPassword/InputPassword.interface.d.ts +4 -11
- package/dist/types/components/InputPassword/appearance/inputPasswordDefault.d.ts +24 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordDisabled.d.ts +20 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordError.d.ts +20 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordRequire.d.ts +20 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordSize.d.ts +59 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordStyle.d.ts +16 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordSuccess.d.ts +20 -0
- package/dist/types/components/InputPassword/index.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelAccent.d.ts +7 -0
- package/dist/types/components/Label/appearance/labelSize.d.ts +1 -0
- package/dist/types/components/Link/Link.interface.d.ts +1 -1
- package/dist/types/components/{Cell/appearance/cellAccent.d.ts → Link/appearance/linkAccent.d.ts} +2 -3
- package/dist/types/components/{Cell/appearance/cellDanger.d.ts → Link/appearance/linkDanger.d.ts} +2 -2
- package/dist/types/components/Link/appearance/linkDisabled.d.ts +20 -0
- package/dist/types/components/{Cell/appearance/cellError.d.ts → Link/appearance/linkError.d.ts} +2 -2
- package/dist/types/components/{Cell/appearance/cellInfo.d.ts → Link/appearance/linkInfo.d.ts} +2 -2
- package/dist/types/components/{Cell/appearance/cellPrimary.d.ts → Link/appearance/linkPrimary.d.ts} +2 -2
- package/dist/types/components/Link/appearance/linkRequire.d.ts +20 -0
- package/dist/types/components/{Cell/appearance/cellSecondary.d.ts → Link/appearance/linkSecondary.d.ts} +2 -2
- package/dist/types/components/Link/appearance/linkSize.d.ts +59 -0
- package/dist/types/components/Link/appearance/linkStyle.d.ts +16 -0
- package/dist/types/components/{Cell/appearance/cellSuccess.d.ts → Link/appearance/linkSuccess.d.ts} +2 -2
- package/dist/types/components/Link/appearance/linkSurface.d.ts +25 -0
- package/dist/types/components/{Cell/appearance/cellWarning.d.ts → Link/appearance/linkWarning.d.ts} +2 -2
- package/dist/types/components/Loader/Loader.appearance.d.ts +3 -2
- package/dist/types/components/Loader/Loader.interface.d.ts +16 -17
- package/dist/types/components/Loader/appearance/loaderSize.d.ts +12 -0
- package/dist/types/components/MenuItem/appearance/menuItemSize.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +4 -2
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.appearance.d.ts +5 -0
- package/dist/types/components/ModalSheetBottom/index.d.ts +1 -0
- package/dist/types/components/Pagination/appearance/paginationSize.d.ts +8 -0
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +2 -0
- package/dist/types/components/Response/Response.appearance.d.ts +2 -2
- package/dist/types/components/Response/appearance/responceConfirm.d.ts +13 -0
- package/dist/types/components/Response/appearance/responceFail.d.ts +13 -0
- package/dist/types/components/Response/appearance/responceNothingFound.d.ts +13 -0
- package/dist/types/components/Response/appearance/responceRefresh.d.ts +13 -0
- package/dist/types/components/Response/appearance/responseError.d.ts +13 -0
- package/dist/types/components/Response/appearance/responseSuccess.d.ts +13 -0
- package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +13 -0
- package/dist/types/components/Response/appearance/responseWarning.d.ts +13 -0
- package/dist/types/components/Response/img/index.d.ts +12 -0
- package/dist/types/components/Search/appearance/searchDefault.d.ts +24 -0
- package/dist/types/components/Search/appearance/searchDisabled.d.ts +20 -0
- package/dist/types/components/Search/appearance/searchError.d.ts +20 -0
- package/dist/types/components/Search/appearance/searchRequire.d.ts +20 -0
- package/dist/types/components/Search/appearance/searchSize.d.ts +18 -8
- package/dist/types/components/Search/appearance/searchSuccess.d.ts +20 -0
- package/dist/types/components/Switch/Switch.appearance.d.ts +1 -1
- package/dist/types/components/Switch/appearance/switchAccent.d.ts +20 -0
- package/dist/types/components/Switch/appearance/switchDanger.d.ts +7 -0
- package/dist/types/components/Switch/appearance/switchDisabled.d.ts +20 -0
- package/dist/types/components/Switch/appearance/switchError.d.ts +11 -0
- package/dist/types/components/Switch/appearance/switchInfo.d.ts +21 -0
- package/dist/types/components/Switch/appearance/switchPrimary.d.ts +8 -0
- package/dist/types/components/Switch/appearance/switchRequire.d.ts +20 -0
- package/dist/types/components/Switch/appearance/switchSecondary.d.ts +8 -0
- package/dist/types/components/Switch/appearance/switchSize.d.ts +59 -0
- package/dist/types/components/Switch/appearance/switchStyle.d.ts +16 -0
- package/dist/types/components/Switch/appearance/switchSuccess.d.ts +11 -0
- package/dist/types/components/Switch/appearance/switchSurface.d.ts +25 -0
- package/dist/types/components/Switch/appearance/switchWarning.d.ts +11 -0
- package/dist/types/components/Tile/appearance/tileSize.d.ts +51 -0
- package/dist/types/components/Tile/appearance/tileSurface.d.ts +24 -0
- package/dist/types/components/Title/Title.appearance.d.ts +2 -2
- package/dist/types/components/Title/Title.interface.d.ts +3 -3
- package/dist/types/components/Title/appearance/titleAccent.d.ts +20 -0
- package/dist/types/components/Title/appearance/titleDanger.d.ts +7 -0
- package/dist/types/components/Title/appearance/titleDisabled.d.ts +20 -0
- package/dist/types/components/Title/appearance/titleError.d.ts +11 -0
- package/dist/types/components/Title/appearance/titleInfo.d.ts +21 -0
- package/dist/types/components/Title/appearance/titlePrimary.d.ts +8 -0
- package/dist/types/components/Title/appearance/titleRequire.d.ts +20 -0
- package/dist/types/components/Title/appearance/titleSecondary.d.ts +8 -0
- package/dist/types/components/Title/appearance/titleSize.d.ts +59 -0
- package/dist/types/components/Title/appearance/titleStyle.d.ts +16 -0
- package/dist/types/components/Title/appearance/titleSuccess.d.ts +11 -0
- package/dist/types/components/Title/appearance/titleSurface.d.ts +25 -0
- package/dist/types/components/Title/appearance/titleWarning.d.ts +11 -0
- package/dist/types/components/Tooltip/Tooltip.appearance.d.ts +1 -1
- package/dist/types/components/Tooltip/appearance/tooltipAccent.d.ts +20 -0
- package/dist/types/components/Tooltip/appearance/tooltipDanger.d.ts +7 -0
- package/dist/types/components/Tooltip/appearance/tooltipDisabled.d.ts +20 -0
- package/dist/types/components/Tooltip/appearance/tooltipError.d.ts +11 -0
- package/dist/types/components/Tooltip/appearance/tooltipInfo.d.ts +21 -0
- package/dist/types/components/Tooltip/appearance/tooltipPrimary.d.ts +8 -0
- package/dist/types/components/Tooltip/appearance/tooltipRequire.d.ts +20 -0
- package/dist/types/components/Tooltip/appearance/tooltipSecondary.d.ts +8 -0
- package/dist/types/components/Tooltip/appearance/tooltipSize.d.ts +59 -0
- package/dist/types/components/Tooltip/appearance/tooltipStyle.d.ts +16 -0
- package/dist/types/components/Tooltip/appearance/tooltipSuccess.d.ts +11 -0
- package/dist/types/components/Tooltip/appearance/tooltipSurface.d.ts +25 -0
- package/dist/types/components/Tooltip/appearance/tooltipWarning.d.ts +11 -0
- package/package.json +7 -7
- package/dist/Link_cjs_yht44xJv.js +0 -68
- package/dist/Link_es_DkW06IM-.js +0 -63
- package/dist/Text_cjs_iL1l_7V1.js +0 -63
- package/dist/cjs/components/InputMask.js +0 -65
- package/dist/cjs/components/Panel.js +0 -44
- package/dist/components/InputMask.js +0 -62
- package/dist/components/Panel.js +0 -41
- package/dist/css/components/InputMask/InputMask.css +0 -77
- package/dist/css/components/Panel/Panel.css +0 -107
- package/dist/stories/Accordion.mdx +0 -11
- package/dist/stories/AccordionItem.mdx +0 -15
- package/dist/stories/Breadcrumbs.mdx +0 -15
- package/dist/stories/BreadcrumbsItem.mdx +0 -17
- package/dist/stories/Dot.mdx +0 -19
- package/dist/stories/Drawer.mdx +0 -11
- package/dist/stories/Dropdown.mdx +0 -12
- package/dist/stories/DropdownItem.mdx +0 -19
- package/dist/stories/Image.mdx +0 -15
- package/dist/stories/Input.mdx +0 -31
- package/dist/stories/InputPassword.mdx +0 -15
- package/dist/stories/Label.mdx +0 -11
- package/dist/stories/ListItem.mdx +0 -11
- package/dist/stories/Logo.mdx +0 -24
- package/dist/stories/MenuItem.mdx +0 -15
- package/dist/stories/Modal.mdx +0 -15
- package/dist/stories/Notification.mdx +0 -23
- package/dist/stories/Pagination.mdx +0 -11
- package/dist/stories/Radio.mdx +0 -28
- package/dist/stories/Response.mdx +0 -11
- package/dist/stories/SearchInput.mdx +0 -19
- package/dist/stories/Switch.mdx +0 -23
- package/dist/stories/Tab.mdx +0 -27
- package/dist/stories/Text.mdx +0 -35
- package/dist/stories/Tile.mdx +0 -11
- package/dist/types/components/InputMask/InputMask.d.ts +0 -5
- package/dist/types/components/InputMask/InputMask.interface.d.ts +0 -54
- package/dist/types/components/InputMask/index.d.ts +0 -1
- package/dist/types/components/Panel/Panel.d.ts +0 -5
- package/dist/types/components/Panel/Panel.interface.d.ts +0 -58
- package/dist/types/components/Panel/index.d.ts +0 -1
package/dist/components/Code.js
CHANGED
|
@@ -88,18 +88,12 @@ var codeAppearanceSize = {
|
|
|
88
88
|
sizeL: {
|
|
89
89
|
size: 'l',
|
|
90
90
|
labelTextSize: 'l',
|
|
91
|
-
|
|
92
|
-
iconAfterSize: '56',
|
|
93
|
-
iconBeforeFillSize: '56',
|
|
94
|
-
iconBeforeSize: '56',
|
|
91
|
+
inputSize: 'l',
|
|
95
92
|
},
|
|
96
93
|
sizeM: {
|
|
97
94
|
size: 'm',
|
|
98
95
|
labelTextSize: 'm',
|
|
99
|
-
|
|
100
|
-
iconAfterSize: '48',
|
|
101
|
-
iconBeforeFillSize: '48',
|
|
102
|
-
iconBeforeSize: '48',
|
|
96
|
+
inputSize: 'm',
|
|
103
97
|
},
|
|
104
98
|
};
|
|
105
99
|
|
|
@@ -3,9 +3,9 @@ import { useRef, useMemo, useCallback, useEffect } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import Cookies from 'js-cookie';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { B as Button } from '../
|
|
7
|
-
import { G as Group } from '../
|
|
8
|
-
import { T as Text } from '../
|
|
6
|
+
import { B as Button } from '../Button_es_DXcCJuNX.js';
|
|
7
|
+
import { G as Group } from '../Group_es_CYW2Hquh.js';
|
|
8
|
+
import { T as Text } from '../Text_es_BRb3qqKM.js';
|
|
9
9
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
@@ -17,13 +17,13 @@ import '../context/UIContext.js';
|
|
|
17
17
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
18
18
|
import 'react-responsive';
|
|
19
19
|
import '../utils/setViewportProperty.js';
|
|
20
|
-
import '../
|
|
20
|
+
import '../Tooltip_es_BaGfb-qC.js';
|
|
21
21
|
import '../hooks/useStyles/useStyles.js';
|
|
22
22
|
import 'lodash/maxBy';
|
|
23
23
|
import '../hooks/useStyles/styleAttributes.js';
|
|
24
24
|
import 'react-inlinesvg';
|
|
25
|
-
import '../
|
|
26
|
-
import '../
|
|
25
|
+
import '../Link_es_DxtZLeKY.js';
|
|
26
|
+
import '../Loader_es_DEYowVdU.js';
|
|
27
27
|
|
|
28
28
|
function CookiesWarning(props) {
|
|
29
29
|
var className = props.className, message = props.message, _a = props.isHideOnScroll, isHideOnScroll = _a === void 0 ? false : _a;
|
|
@@ -53,4 +53,10 @@ function CookiesWarning(props) {
|
|
|
53
53
|
return (isOpen && (jsx("div", { className: clsx('cookies-warning', className, fillClass && "fill_".concat(fillClass), fillGradientClass && "fill-gradient_".concat(fillGradientClass)), ref: cookiesWarningRef, children: jsxs(Group, { className: "cookies-warning__inner", direction: "vertical", children: [jsx(Text, { size: textSize, textColor: textColor, children: message }), jsx(Button, { width: buttonWidth, size: buttonSize, fill: buttonFill, fillHover: buttonFillHover, labelTextColor: buttonLabelTextColor, labelTextSize: buttonLabelSize, shape: buttonShape, onClick: closeCookiesWarning, children: buttonLabel })] }) })));
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
var cookiesWarningAppearance = {
|
|
57
|
+
dev: {
|
|
58
|
+
fill: 'accentPrimary',
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export { CookiesWarning, cookiesWarningAppearance };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { D as DatePickerInput } from '../
|
|
4
|
+
import { D as DatePickerInput } from '../DatePicker_es_DzY_fVii.js';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { b as ChipsGroup, C as Chips } from '../
|
|
6
|
+
import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_CjGZ-ulT.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'date-fns/locale';
|
|
9
9
|
import 'react-datepicker';
|
|
@@ -19,14 +19,14 @@ import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
|
19
19
|
import 'react-responsive';
|
|
20
20
|
import '../utils/setViewportProperty.js';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
|
-
import '../
|
|
23
|
-
import '../
|
|
24
|
-
import '../
|
|
22
|
+
import '../Button_es_DXcCJuNX.js';
|
|
23
|
+
import '../Tooltip_es_BaGfb-qC.js';
|
|
24
|
+
import '../Text_es_BRb3qqKM.js';
|
|
25
25
|
import 'react-inlinesvg';
|
|
26
|
-
import '../
|
|
27
|
-
import '../
|
|
26
|
+
import '../Link_es_DxtZLeKY.js';
|
|
27
|
+
import '../Loader_es_DEYowVdU.js';
|
|
28
28
|
import '../Input_es_CNduH28G.js';
|
|
29
|
-
import '../
|
|
29
|
+
import '../Label_es_Dc18d1gY.js';
|
|
30
30
|
import '@itcase/icons/default';
|
|
31
31
|
import 'lodash/castArray';
|
|
32
32
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../
|
|
1
|
+
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_DzY_fVii.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -19,12 +19,12 @@ import '../utils/setViewportProperty.js';
|
|
|
19
19
|
import '../hooks/useStyles/useStyles.js';
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
|
-
import '../
|
|
23
|
-
import '../
|
|
24
|
-
import '../
|
|
22
|
+
import '../Button_es_DXcCJuNX.js';
|
|
23
|
+
import '../Tooltip_es_BaGfb-qC.js';
|
|
24
|
+
import '../Text_es_BRb3qqKM.js';
|
|
25
25
|
import 'react-inlinesvg';
|
|
26
|
-
import '../
|
|
27
|
-
import '../
|
|
26
|
+
import '../Link_es_DxtZLeKY.js';
|
|
27
|
+
import '../Loader_es_DEYowVdU.js';
|
|
28
28
|
import '../Input_es_CNduH28G.js';
|
|
29
|
-
import '../
|
|
29
|
+
import '../Label_es_Dc18d1gY.js';
|
|
30
30
|
import '@itcase/icons/default';
|
|
@@ -2,11 +2,35 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useRef, useEffect } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import ReactDrawer from 'react-modern-drawer';
|
|
5
|
+
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
5
6
|
|
|
6
|
-
var
|
|
7
|
-
|
|
7
|
+
var drawerAppearanceSurface = {
|
|
8
|
+
surfacePrimary: {
|
|
9
|
+
fill: 'surfacePrimary',
|
|
10
|
+
fillHover: 'surfacePrimaryHover',
|
|
11
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
12
|
+
},
|
|
13
|
+
surfaceQuaternary: {
|
|
14
|
+
fill: 'surfaceQuaternary',
|
|
15
|
+
fillHover: 'surfaceQuaternaryHover',
|
|
16
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
17
|
+
},
|
|
18
|
+
surfaceSecondary: {
|
|
19
|
+
fill: 'surfaceSecondary',
|
|
20
|
+
fillHover: 'surfaceSecondaryHover',
|
|
21
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
22
|
+
loaderFill: 'surfaceSecondary',
|
|
23
|
+
loaderItemFill: 'surfaceItemPrimary',
|
|
24
|
+
},
|
|
25
|
+
surfaceTertiary: {
|
|
26
|
+
fill: 'surfaceTertiary',
|
|
27
|
+
fillHover: 'surfaceTertiaryHover',
|
|
28
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
29
|
+
},
|
|
8
30
|
};
|
|
9
31
|
|
|
32
|
+
var drawerAppearance = __assign({}, drawerAppearanceSurface);
|
|
33
|
+
|
|
10
34
|
var drawerConfig = {
|
|
11
35
|
appearance: drawerAppearance,
|
|
12
36
|
setAppearance: function (appearanceConfig) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../
|
|
1
|
+
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem_es_D8mY9vFZ.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -18,4 +18,7 @@ import '../hooks/useStyles/useStyles.js';
|
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
20
|
import '../Divider_es_BdU9qjKa.js';
|
|
21
|
-
import '../
|
|
21
|
+
import '../Tooltip_es_BaGfb-qC.js';
|
|
22
|
+
import '../Text_es_BRb3qqKM.js';
|
|
23
|
+
import 'react-inlinesvg';
|
|
24
|
+
import '../Link_es_DxtZLeKY.js';
|
package/dist/components/Group.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { G as Group, a as groupAppearance, g as groupConfig } from '../
|
|
1
|
+
export { G as Group, a as groupAppearance, g as groupConfig } from '../Group_es_CYW2Hquh.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
package/dist/components/Icon.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as Icon, e as iconAppearance, i as iconConfig } from '../
|
|
1
|
+
export { I as Icon, e as iconAppearance, i as iconConfig } from '../Tooltip_es_BaGfb-qC.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -17,6 +17,6 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
import '../hooks/useStyles/useStyles.js';
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../
|
|
20
|
+
import '../Text_es_BRb3qqKM.js';
|
|
21
21
|
import 'react-inlinesvg';
|
|
22
|
-
import '../
|
|
22
|
+
import '../Link_es_DxtZLeKY.js';
|
package/dist/components/Image.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { I as Image } from '../
|
|
1
|
+
export { I as Image } from '../Image_es_DZUVp0FS.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
3
4
|
import 'clsx';
|
|
4
5
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
6
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
6
|
-
import 'react';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/castArray';
|
|
9
9
|
import 'lodash/upperFirst';
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useState, useMemo, useCallback } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { I as Icon } from '../
|
|
6
|
+
import { I as Icon } from '../Tooltip_es_BaGfb-qC.js';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/castArray';
|
|
9
9
|
import 'lodash/upperFirst';
|
|
@@ -17,73 +17,196 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
import '../hooks/useStyles/useStyles.js';
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../
|
|
20
|
+
import '../Text_es_BRb3qqKM.js';
|
|
21
21
|
import 'react-inlinesvg';
|
|
22
|
-
import '../
|
|
22
|
+
import '../Link_es_DxtZLeKY.js';
|
|
23
23
|
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
var inputPasswordAppearanceDefault = {
|
|
25
|
+
defaultPrimary: {
|
|
26
|
+
fill: 'surfaceSecondary',
|
|
27
27
|
borderColor: 'surfaceBorderTertiary',
|
|
28
|
+
borderHover: 'surfaceBorderQuaternary',
|
|
28
29
|
textColor: 'surfaceTextPrimary',
|
|
29
|
-
|
|
30
|
+
textColorDisabled: 'surfaceTextDisabled',
|
|
31
|
+
caret: 'secondaryItemSecondary',
|
|
32
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
33
|
+
iconClearFill: 'surfaceItemPrimary',
|
|
34
|
+
},
|
|
35
|
+
defaultSecondary: {
|
|
36
|
+
fill: 'surfacePrimary',
|
|
37
|
+
borderColor: 'surfaceBorderTertiary',
|
|
38
|
+
borderHover: 'surfaceBorderQuaternary',
|
|
39
|
+
textColor: 'surfaceTextPrimary',
|
|
40
|
+
textColorDisabled: 'surfaceTextDisabled',
|
|
41
|
+
caret: 'secondaryItemSecondary',
|
|
42
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
43
|
+
iconClearFill: 'surfaceItemPrimary',
|
|
44
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
var inputPasswordAppearanceDisabled = {
|
|
49
|
+
disabledPrimary: {
|
|
50
|
+
fill: 'surfaceFillDisabled',
|
|
51
|
+
borderColor: 'errorBorderQuaternary',
|
|
52
|
+
borderHover: 'errorBorderQuaternary',
|
|
53
|
+
textColor: 'surfaceTextQuaternary',
|
|
54
|
+
iconBeforeFill: 'errorItemQuaternary',
|
|
55
|
+
iconClearFill: 'errorItemPrimary',
|
|
56
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
57
|
+
},
|
|
58
|
+
disabledSecondary: {
|
|
59
|
+
fill: 'surfaceSecondary',
|
|
60
|
+
borderColor: 'surfaceBorderTertiary',
|
|
61
|
+
borderHover: 'surfaceBorderQuaternary',
|
|
62
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
63
|
+
iconClearFill: 'surfaceItemPrimary',
|
|
30
64
|
placeholderTextColor: 'surfaceTextSecondary',
|
|
31
|
-
shape: 'rounded',
|
|
32
65
|
},
|
|
33
66
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
67
|
+
|
|
68
|
+
var inputPasswordAppearanceError = {
|
|
69
|
+
errorPrimary: {
|
|
70
|
+
fill: 'errorTertiary',
|
|
71
|
+
borderColor: 'errorBorderQuaternary',
|
|
72
|
+
borderHover: 'errorBorderQuaternary',
|
|
37
73
|
textColor: 'surfaceTextPrimary',
|
|
74
|
+
iconBeforeFill: 'errorItemQuaternary',
|
|
75
|
+
iconClearFill: 'errorItemPrimary',
|
|
76
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
77
|
+
},
|
|
78
|
+
errorSecondary: {
|
|
79
|
+
fill: 'errorSecondary',
|
|
80
|
+
borderColor: 'errorBorderTertiary',
|
|
81
|
+
borderHover: 'errorBorderQuaternary',
|
|
82
|
+
iconBeforeFill: 'errorItemQuaternary',
|
|
83
|
+
iconClearFill: 'errorItemPrimary',
|
|
84
|
+
placeholderTextColor: 'errorTextSecondary',
|
|
38
85
|
},
|
|
39
|
-
|
|
40
|
-
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
var inputPasswordAppearanceRequire = {
|
|
89
|
+
requirePrimary: {
|
|
90
|
+
fill: 'warningTertiary',
|
|
91
|
+
borderColor: 'warningBorderQuaternary',
|
|
92
|
+
borderHover: 'warningBorderQuaternary',
|
|
41
93
|
textColor: 'surfaceTextPrimary',
|
|
42
|
-
|
|
94
|
+
iconBeforeFill: 'warningItemQuaternary',
|
|
95
|
+
iconClearFill: 'warningItemPrimary',
|
|
96
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
43
97
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
98
|
+
requireSecondary: {
|
|
99
|
+
fill: 'surfaceSecondary',
|
|
100
|
+
borderColor: 'surfaceBorderTertiary',
|
|
101
|
+
borderHover: 'surfaceBorderQuaternary',
|
|
102
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
103
|
+
iconClearFill: 'surfaceItemPrimary',
|
|
104
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
47
105
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
var inputPasswordAppearanceSize = {
|
|
109
|
+
sizeXXL: {
|
|
110
|
+
size: 'xxl',
|
|
111
|
+
textSize: 'l',
|
|
112
|
+
iconAfterFillSize: '24',
|
|
113
|
+
iconAfterSize: '24',
|
|
114
|
+
iconBeforeFillSize: '24',
|
|
115
|
+
iconBeforeSize: '24',
|
|
51
116
|
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
117
|
+
sizeXL: {
|
|
118
|
+
size: 'xl',
|
|
119
|
+
textSize: 's',
|
|
120
|
+
iconAfterFillSize: '24',
|
|
121
|
+
iconAfterSize: '24',
|
|
122
|
+
iconBeforeFillSize: '24',
|
|
123
|
+
iconBeforeSize: '24',
|
|
55
124
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
125
|
+
sizeL: {
|
|
126
|
+
size: 'l',
|
|
127
|
+
textSize: 's',
|
|
128
|
+
iconAfterFillSize: '24',
|
|
129
|
+
iconAfterSize: '24',
|
|
130
|
+
iconBeforeFillSize: '24',
|
|
131
|
+
iconBeforeSize: '24',
|
|
59
132
|
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
133
|
+
sizeM: {
|
|
134
|
+
size: 'm',
|
|
135
|
+
textSize: 'm',
|
|
136
|
+
iconAfterFillSize: '24',
|
|
137
|
+
iconAfterSize: '24',
|
|
138
|
+
iconBeforeFillSize: '24',
|
|
139
|
+
iconBeforeSize: '24',
|
|
63
140
|
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
141
|
+
sizeS: {
|
|
142
|
+
size: 's',
|
|
143
|
+
textSize: 's',
|
|
144
|
+
iconAfterFillSize: '24',
|
|
145
|
+
iconAfterSize: '24',
|
|
146
|
+
iconBeforeFillSize: '24',
|
|
147
|
+
iconBeforeSize: '24',
|
|
67
148
|
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
149
|
+
sizeXS: {
|
|
150
|
+
size: 'xs',
|
|
151
|
+
textSize: 's',
|
|
152
|
+
iconAfterFillSize: '24',
|
|
153
|
+
iconAfterSize: '24',
|
|
154
|
+
iconBeforeFillSize: '24',
|
|
155
|
+
iconBeforeSize: '24',
|
|
156
|
+
},
|
|
157
|
+
sizeXXS: {
|
|
158
|
+
size: 'xxs',
|
|
159
|
+
textSize: 's',
|
|
160
|
+
iconAfterFillSize: '24',
|
|
161
|
+
iconAfterSize: '24',
|
|
162
|
+
iconBeforeFillSize: '24',
|
|
163
|
+
iconBeforeSize: '24',
|
|
164
|
+
},
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
var inputPasswordAppearanceStyle = {
|
|
168
|
+
full: {
|
|
169
|
+
borderColor: '0',
|
|
170
|
+
},
|
|
171
|
+
ghost: {
|
|
172
|
+
fill: 'none',
|
|
173
|
+
borderColor: '0',
|
|
71
174
|
},
|
|
72
|
-
|
|
73
|
-
|
|
175
|
+
outlined: {
|
|
176
|
+
fill: 'none',
|
|
177
|
+
},
|
|
178
|
+
solid: {
|
|
179
|
+
borderColor: '0',
|
|
180
|
+
},
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
var inputPasswordAppearanceSuccess = {
|
|
184
|
+
successPrimary: {
|
|
185
|
+
fill: 'successTertiary',
|
|
186
|
+
borderColor: 'successBorderQuaternary',
|
|
187
|
+
borderHover: 'successBorderQuaternary',
|
|
74
188
|
textColor: 'surfaceTextPrimary',
|
|
189
|
+
iconBeforeFill: 'successItemQuaternary',
|
|
190
|
+
iconClearFill: 'successItemPrimary',
|
|
191
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
192
|
+
},
|
|
193
|
+
successSecondary: {
|
|
194
|
+
fill: 'surfaceSecondary',
|
|
195
|
+
borderColor: 'surfaceBorderTertiary',
|
|
196
|
+
borderHover: 'surfaceBorderQuaternary',
|
|
197
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
198
|
+
iconClearFill: 'surfaceItemPrimary',
|
|
199
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
75
200
|
},
|
|
76
201
|
};
|
|
77
202
|
|
|
203
|
+
var inputPasswordAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, inputPasswordAppearanceSize), inputPasswordAppearanceDisabled), inputPasswordAppearanceRequire), inputPasswordAppearanceStyle), inputPasswordAppearanceError), inputPasswordAppearanceDefault), inputPasswordAppearanceSuccess);
|
|
204
|
+
|
|
78
205
|
var inputPasswordConfig = {
|
|
79
|
-
appearance:
|
|
80
|
-
state: InputPasswordState,
|
|
206
|
+
appearance: inputPasswordAppearance,
|
|
81
207
|
setAppearance: function (appearanceConfig) {
|
|
82
208
|
inputPasswordConfig.appearance = appearanceConfig;
|
|
83
209
|
},
|
|
84
|
-
setState: function (newComponent) {
|
|
85
|
-
inputPasswordConfig.state = newComponent;
|
|
86
|
-
},
|
|
87
210
|
};
|
|
88
211
|
function InputPassword(props) {
|
|
89
212
|
var id = props.id, className = props.className, appearance = props.appearance, disabled = props.disabled, iconFill = props.iconFill, iconFillHover = props.iconFillHover, iconRevealableHide = props.iconRevealableHide, iconRevealableShow = props.iconRevealableShow, iconShape = props.iconShape, iconSize = props.iconSize, imageRevealableHide = props.imageRevealableHide, imageRevealableShow = props.imageRevealableShow, placeholder = props.placeholder,
|
|
@@ -111,4 +234,4 @@ function InputPassword(props) {
|
|
|
111
234
|
"placeholder-text-color_".concat(placeholderTextColorClass), textColorClass && "text-color_".concat(textColorClass)), type: inputType, disabled: disabled, placeholder: placeholder, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }), isRevealable && (jsx(Icon, { className: "input-password__icon", size: iconSize, iconFill: iconFill, iconFillHover: iconFillHover, imageSrc: isRevealed ? imageRevealableHide : imageRevealableShow, shape: iconShape, SvgImage: isRevealed ? iconRevealableHide : iconRevealableShow, onClick: revealeHandler }))] }));
|
|
112
235
|
}
|
|
113
236
|
|
|
114
|
-
export { InputPassword,
|
|
237
|
+
export { InputPassword, inputPasswordAppearance, inputPasswordConfig };
|
package/dist/components/Label.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Label, a as labelAppearance, l as labelConfig } from '../
|
|
1
|
+
export { L as Label, a as labelAppearance, l as labelConfig } from '../Label_es_Dc18d1gY.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -17,7 +17,7 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
import '../hooks/useStyles/useStyles.js';
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../
|
|
21
|
-
import '../
|
|
20
|
+
import '../Tooltip_es_BaGfb-qC.js';
|
|
21
|
+
import '../Text_es_BRb3qqKM.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
|
-
import '../
|
|
23
|
+
import '../Link_es_DxtZLeKY.js';
|
package/dist/components/Link.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Link, a as LinkWrapper, b as linkAppearance, l as linkConfig } from '../
|
|
1
|
+
export { L as Link, a as LinkWrapper, b as linkAppearance, l as linkConfig } from '../Link_es_DxtZLeKY.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
package/dist/components/List.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { L as Link } from '../
|
|
6
|
+
import { L as Link } from '../Link_es_DxtZLeKY.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../
|
|
1
|
+
export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader_es_DEYowVdU.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'clsx';
|
|
@@ -17,4 +17,4 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
import '../hooks/useStyles/useStyles.js';
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../
|
|
20
|
+
import '../Text_es_BRb3qqKM.js';
|
package/dist/components/Logo.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { a as LinkWrapper } from '../
|
|
6
|
+
import { a as LinkWrapper } from '../Link_es_DxtZLeKY.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
@@ -4,8 +4,9 @@ import React from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { I as Icon } from '../Tooltip_es_BaGfb-qC.js';
|
|
8
|
+
import { L as Link } from '../Link_es_DxtZLeKY.js';
|
|
9
|
+
import { T as Text } from '../Text_es_BRb3qqKM.js';
|
|
9
10
|
import 'lodash/camelCase';
|
|
10
11
|
import 'lodash/castArray';
|
|
11
12
|
import 'lodash/upperFirst';
|
|
@@ -18,6 +19,7 @@ import 'react-responsive';
|
|
|
18
19
|
import '../utils/setViewportProperty.js';
|
|
19
20
|
import 'lodash/maxBy';
|
|
20
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
|
+
import 'react-inlinesvg';
|
|
21
23
|
|
|
22
24
|
var menuItemAppearanceAccent = {
|
|
23
25
|
accent: {
|
|
@@ -79,6 +81,7 @@ var menuItemAppearanceSize = {
|
|
|
79
81
|
sizeL: {
|
|
80
82
|
size: 'l',
|
|
81
83
|
labelTextSize: 'l',
|
|
84
|
+
descTextSize: 'm',
|
|
82
85
|
iconAfterFillSize: '32',
|
|
83
86
|
iconAfterSize: '32',
|
|
84
87
|
iconBeforeFillSize: '32',
|
|
@@ -137,8 +140,12 @@ var menuItemAppearanceStyle = {
|
|
|
137
140
|
var menuItemAppearanceSurface = {
|
|
138
141
|
surfacePrimary: {
|
|
139
142
|
fill: 'surfacePrimary',
|
|
140
|
-
|
|
143
|
+
fillActive: 'surfaceSecondary',
|
|
144
|
+
fillActiveHover: 'surfaceSecondary',
|
|
145
|
+
fillHover: 'surfaceSecondary',
|
|
141
146
|
labelTextColor: 'surfaceTextPrimary',
|
|
147
|
+
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
148
|
+
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
142
149
|
},
|
|
143
150
|
surfaceQuaternary: {
|
|
144
151
|
fill: 'surfaceQuaternary',
|
|
@@ -149,8 +156,6 @@ var menuItemAppearanceSurface = {
|
|
|
149
156
|
fill: 'surfaceSecondary',
|
|
150
157
|
fillHover: 'surfaceSecondaryHover',
|
|
151
158
|
labelTextColor: 'surfaceTextPrimary',
|
|
152
|
-
loaderFill: 'surfaceSecondary',
|
|
153
|
-
loaderItemFill: 'surfaceItemPrimary',
|
|
154
159
|
},
|
|
155
160
|
surfaceTertiary: {
|
|
156
161
|
fill: 'surfaceTertiary',
|
|
@@ -168,18 +173,33 @@ var menuItemConfig = {
|
|
|
168
173
|
},
|
|
169
174
|
};
|
|
170
175
|
function MenuItem(props) {
|
|
171
|
-
var className = props.className, appearance = props.appearance, label = props.label,
|
|
176
|
+
var className = props.className, appearance = props.appearance, label = props.label, isDisabled = props.isDisabled, href = props.href, link = props.link, LinkComponent = props.LinkComponent, rel = props.rel, target = props.target, underline = props.underline, before = props.before, after = props.after, isActive = props.isActive, onClick = props.onClick, onMouseEnter = props.onMouseEnter, children = props.children;
|
|
172
177
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
173
178
|
var _a;
|
|
174
179
|
return (__assign(__assign({}, resultConfig), (_a = menuItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
175
180
|
}, {});
|
|
176
181
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
177
|
-
var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass,
|
|
182
|
+
var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelStyle = propsGenerator.labelStyle, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveColorDisabled = propsGenerator.labelTextActiveColorDisabled, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextActiveHoverColorDisabled = propsGenerator.labelTextActiveHoverColorDisabled, labelTextColor = propsGenerator.labelTextColor, labelTextColorDisabled = propsGenerator.labelTextColorDisabled, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextHoverColorDisabled = propsGenerator.labelTextHoverColorDisabled, labelTextSize = propsGenerator.labelTextSize, labelWeight = propsGenerator.labelWeight, labelWrap = propsGenerator.labelWrap, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBadgeAppearance = propsGenerator.iconBadgeAppearance, iconBadgeShape = propsGenerator.iconBadgeShape, iconBadgeSize = propsGenerator.iconBadgeSize, iconBadgeTextColor = propsGenerator.iconBadgeTextColor, iconBadgeTextSize = propsGenerator.iconBadgeTextSize, iconBadgeValue = propsGenerator.iconBadgeValue, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass;
|
|
178
183
|
// @ts-expect-error
|
|
179
184
|
var menuItem = useStyles(props).styles;
|
|
180
|
-
return (jsx("div", { className: clsx('menu-item', isActive && 'menu-item_state_active',
|
|
181
|
-
|
|
182
|
-
|
|
185
|
+
return (jsx("div", { className: clsx('menu-item', isActive && 'menu-item_state_active', isDisabled && "menu-item_state_disabled", directionClass && "menu-item_direction_".concat(directionClass), className, sizeClass && "menu-item_size_".concat(sizeClass), !isActive
|
|
186
|
+
? fillClass && "fill_".concat(fillClass)
|
|
187
|
+
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
188
|
+
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
189
|
+
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "menu-item_shape_".concat(shapeClass), typeClass && "menu-item_type_".concat(typeClass), widthClass && "width_".concat(widthClass), justifyContentClass &&
|
|
190
|
+
"menu-item_justify-content_".concat(justifyContentClass)), style: menuItem, onClick: onClick, onMouseEnter: onMouseEnter, children: jsxs(Link, { className: clsx('menu-item__wrapper', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), href: link || href, LinkComponent: LinkComponent, rel: rel, target: target, underline: underline, children: [before, children || (jsxs(React.Fragment, { children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('menu-item__icon_before', iconBadgeValue && 'menu-item__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'menu-item__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), label && (jsx(Text, { className: "menu-item__label", size: labelTextSize, textColor: isActive
|
|
191
|
+
? !isDisabled
|
|
192
|
+
? labelTextActiveColor
|
|
193
|
+
: labelTextActiveColorDisabled
|
|
194
|
+
: !isDisabled
|
|
195
|
+
? labelTextColor
|
|
196
|
+
: labelTextColorDisabled, textColorHover: isActive
|
|
197
|
+
? !isDisabled
|
|
198
|
+
? labelTextActiveHoverColor
|
|
199
|
+
: labelTextActiveHoverColorDisabled
|
|
200
|
+
: !isDisabled
|
|
201
|
+
? labelTextHoverColor
|
|
202
|
+
: labelTextHoverColorDisabled, textStyle: labelStyle, textWeight: labelWeight, textWrap: labelWrap, children: label })), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: clsx('menu-item__icon_after', iconBadgeValue && 'menu-item__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'menu-item__icon_after_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] })), after] }) }));
|
|
183
203
|
}
|
|
184
204
|
|
|
185
205
|
export { MenuItem, menuItemAppearance, menuItemConfig };
|