@itcase/ui 1.8.30 → 1.8.31
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_33OrnLtt.js → Avatar_cjs_DRaNGlad.js} +1 -1
- package/dist/{Avatar_es_B3LiV8MM.js → Avatar_es_Ck1RiTgB.js} +1 -1
- package/dist/{Button_cjs_C05Joa8j.js → Button_cjs_CnBP4mKv.js} +1 -1
- package/dist/{Button_es_CO_dwo-N.js → Button_es_WG0yV-rp.js} +1 -1
- package/dist/{ChipsGroup_cjs_DN9BoTKe.js → ChipsGroup_cjs_BCnPa9xv.js} +1 -1
- package/dist/{ChipsGroup_es_D9aK8Roh.js → ChipsGroup_es_1854brF_.js} +1 -1
- package/dist/{DatePicker_cjs_B_OWDm9X.js → DatePicker_cjs_Cbv3ffoB.js} +3 -3
- package/dist/{DatePicker_es_BCbmUdl0.js → DatePicker_es_DGck2HRu.js} +3 -3
- package/dist/{DropdownItem_cjs_DPoFy70W.js → DropdownItem_cjs_C3BV7axh.js} +1 -1
- package/dist/{DropdownItem_es_CVztMEm0.js → DropdownItem_es_VDp5tKZr.js} +1 -1
- package/dist/{Label_cjs_BefEcq6i.js → Label_cjs_CqSZcFNk.js} +63 -63
- package/dist/{Label_es_Dl_DrMOh.js → Label_es_s3M2-dON.js} +63 -63
- package/dist/{Tooltip_cjs_pBGCcXLZ.js → Tooltip_cjs_BE4fABOp.js} +34 -5
- package/dist/{Tooltip_es_frBCZDrO.js → Tooltip_es_BPMRrd2L.js} +34 -5
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/AvatarStack.js +2 -2
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs.js +1 -1
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice/stories/__mock__.js +11 -0
- package/dist/cjs/components/Choice.js +59 -17
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DatePeriod.js +5 -5
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/MenuItem.js +38 -68
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +2 -2
- package/dist/cjs/components/Response.js +2 -2
- package/dist/cjs/components/Search.js +4 -4
- package/dist/cjs/components/Segmented.js +21 -44
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Tile.js +1 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +2 -2
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs.js +1 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice/stories/__mock__.js +9 -0
- package/dist/components/Choice.js +59 -17
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DatePeriod.js +5 -5
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/MenuItem.js +38 -68
- package/dist/components/Modal.js +1 -1
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Response.js +2 -2
- package/dist/components/Search.js +4 -4
- package/dist/components/Segmented.js +21 -44
- package/dist/components/Select.js +1 -1
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/css/components/Choice/Choice.css +27 -19
- package/dist/css/components/MenuItem/MenuItem.css +45 -8
- package/dist/stories/ChoiceOverview.mdx +2 -2
- package/dist/stories/ChoicePlayground.mdx +3 -3
- package/dist/types/components/Accordion/appearance/accordionSize.d.ts +7 -7
- package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +1 -1
- package/dist/types/components/Cell/stories/__mock__/index.d.ts +2 -2
- package/dist/types/components/Choice/Choice.interface.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceDefault.d.ts +10 -0
- package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +10 -0
- package/dist/types/components/Choice/appearance/choiceError.d.ts +10 -0
- package/dist/types/components/Choice/appearance/choiceRequire.d.ts +11 -0
- package/dist/types/components/Choice/appearance/choiceStyle.d.ts +6 -4
- package/dist/types/components/Choice/appearance/choiceSuccess.d.ts +11 -0
- package/dist/types/components/Choice/stories/__mock__/index.d.ts +4 -0
- package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +6 -6
- package/dist/types/components/DatePicker/appearance/datePickerSize.d.ts +6 -6
- package/dist/types/components/Drawer/appearance/drawerSurface.d.ts +1 -1
- package/dist/types/components/Icon/appearance/iconDanger.d.ts +6 -0
- package/dist/types/components/Icon/appearance/iconError.d.ts +6 -0
- package/dist/types/components/Icon/appearance/iconPrimary.d.ts +5 -0
- package/dist/types/components/Icon/appearance/iconSecondary.d.ts +5 -0
- package/dist/types/components/Icon/appearance/iconStyle.d.ts +6 -5
- package/dist/types/components/Icon/appearance/iconWarning.d.ts +6 -0
- package/dist/types/components/Label/appearance/labelAccent.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelDanger.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelError.d.ts +7 -7
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelSecondary.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelSuccess.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelSurface.d.ts +8 -8
- package/dist/types/components/Label/appearance/labelWarning.d.ts +1 -1
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemAccent.d.ts +5 -8
- package/dist/types/components/MenuItem/appearance/menuItemError.d.ts +3 -3
- package/dist/types/components/MenuItem/appearance/menuItemSize.d.ts +0 -15
- package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +1 -3
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +3 -5
- package/dist/types/components/Notification/appearance/notificationDefault.d.ts +1 -1
- package/dist/types/components/Notification/appearance/notificationError.d.ts +1 -1
- package/dist/types/components/Notification/appearance/notificationSuccess.d.ts +1 -1
- package/dist/types/components/Notification/appearance/notificationWarning.d.ts +1 -1
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +1 -1
- package/dist/types/components/Search/appearance/searchSize.d.ts +12 -12
- package/dist/types/components/Segmented/appearance/{segmentedSurface.d.ts → segmentedDefault.d.ts} +4 -4
- package/dist/types/components/Select/SelectLoadingIndicator.d.ts +1 -2
- package/dist/types/components/Tab/stories/__mock__/index.d.ts +1 -1
- package/dist/types/hooks/useDeviceTargetClass.d.ts +5 -0
- package/package.json +12 -12
- package/dist/types/components/Choice/appearance/choiceAccent.d.ts +0 -10
- package/dist/types/components/Label/appearance/labelGradient.d.ts +0 -9
- package/dist/types/components/MenuItem/appearance/menuItemPrimary.d.ts +0 -8
- package/dist/types/components/Pagination/appearance/paginationAccent.d.ts +0 -21
- package/dist/types/components/Pagination/appearance/paginationDanger.d.ts +0 -7
- package/dist/types/components/Pagination/appearance/paginationError.d.ts +0 -11
- package/dist/types/components/Pagination/appearance/paginationInfo.d.ts +0 -21
- package/dist/types/components/Pagination/appearance/paginationPrimary.d.ts +0 -8
- package/dist/types/components/Pagination/appearance/paginationSecondary.d.ts +0 -8
- package/dist/types/components/Pagination/appearance/paginationSize.d.ts +0 -48
- package/dist/types/components/Pagination/appearance/paginationStyle.d.ts +0 -16
- package/dist/types/components/Pagination/appearance/paginationSuccess.d.ts +0 -11
- package/dist/types/components/Pagination/appearance/paginationWarning.d.ts +0 -11
- package/dist/types/components/Segmented/appearance/segmentedAccent.d.ts +0 -19
- package/dist/types/components/Segmented/appearance/segmentedFalse.d.ts +0 -4
- package/dist/types/config/forms/datepicker.d.ts +0 -18
- package/dist/types/config/forms/index.d.ts +0 -3
- package/dist/types/config/forms/input.d.ts +0 -14
|
@@ -4,7 +4,7 @@ import React, { useRef, useMemo, createRef, useCallback } 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 { I as Icon } from '../
|
|
7
|
+
import { I as Icon } from '../Tooltip_es_BPMRrd2L.js';
|
|
8
8
|
import { L as Loader } from '../Loader_es_B2auu_rc.js';
|
|
9
9
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -22,13 +22,44 @@ import '../hooks/useStyles/styleAttributes.js';
|
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../Link_es_DxtZLeKY.js';
|
|
24
24
|
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
fill: '
|
|
28
|
-
fillItemActive: 'accentPrimary',
|
|
29
|
-
labelTextActiveColor: 'accentTextPrimary',
|
|
25
|
+
var choiceAppearanceDefault = {
|
|
26
|
+
defaultPrimary: {
|
|
27
|
+
fill: 'surfaceSecondary',
|
|
30
28
|
labelTextColor: 'surfaceTextPrimary',
|
|
31
|
-
borderColor: '
|
|
29
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
30
|
+
iconAfterFill: 'surfaceItemQuaternary',
|
|
31
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var choiceAppearanceDisabled = {
|
|
36
|
+
disabledPrimary: {
|
|
37
|
+
fill: 'surfaceDisabled',
|
|
38
|
+
labelTextColor: 'surfaceTextQuaternary',
|
|
39
|
+
borderColor: 'surfaceBorderPrimary',
|
|
40
|
+
iconAfterFill: 'surfaceItemPrimary',
|
|
41
|
+
iconBeforeFill: 'surfaceItemPrimary',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
var choiceAppearanceError = {
|
|
46
|
+
errorPrimary: {
|
|
47
|
+
fill: 'errorTertiary',
|
|
48
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
49
|
+
borderColor: 'errorBorderQuaternary',
|
|
50
|
+
iconAfterFill: 'errorItemPrimary',
|
|
51
|
+
iconBeforeFill: 'errorItemPrimary',
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
var choiceAppearanceRequire = {
|
|
56
|
+
requirePrimary: {
|
|
57
|
+
fill: 'warningTertiary',
|
|
58
|
+
fillItemActive: 'warningTertiary',
|
|
59
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
60
|
+
borderColor: 'warningBorderSecondary',
|
|
61
|
+
iconAfterFill: 'warningItemSecondary',
|
|
62
|
+
iconBeforeFill: 'warningItemSecondary',
|
|
32
63
|
},
|
|
33
64
|
};
|
|
34
65
|
|
|
@@ -51,18 +82,29 @@ var choiceAppearanceSize = {
|
|
|
51
82
|
};
|
|
52
83
|
|
|
53
84
|
var choiceAppearanceStyle = {
|
|
54
|
-
|
|
55
|
-
borderColor: '
|
|
85
|
+
full: {
|
|
86
|
+
borderColor: '0',
|
|
87
|
+
},
|
|
88
|
+
ghost: {
|
|
89
|
+
fill: 'none',
|
|
90
|
+
borderColor: '0',
|
|
56
91
|
},
|
|
57
92
|
outlined: {
|
|
58
93
|
fill: 'none',
|
|
59
94
|
},
|
|
60
|
-
|
|
61
|
-
|
|
95
|
+
solid: {
|
|
96
|
+
borderColor: '0',
|
|
62
97
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
var choiceAppearanceSuccess = {
|
|
101
|
+
successPrimary: {
|
|
102
|
+
fill: 'successTertiary',
|
|
103
|
+
fillItemActive: 'successTertiary',
|
|
104
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
105
|
+
borderColor: 'successBorderSecondary',
|
|
106
|
+
iconAfterFill: 'successItemSecondary',
|
|
107
|
+
iconBeforeFill: 'successItemSecondary',
|
|
66
108
|
},
|
|
67
109
|
};
|
|
68
110
|
|
|
@@ -91,7 +133,7 @@ var choiceAppearanceSurface = {
|
|
|
91
133
|
},
|
|
92
134
|
};
|
|
93
135
|
|
|
94
|
-
var choiceAppearance = __assign(__assign(__assign(__assign({},
|
|
136
|
+
var choiceAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, choiceAppearanceError), choiceAppearanceDisabled), choiceAppearanceDefault), choiceAppearanceSuccess), choiceAppearanceRequire), choiceAppearanceStyle), choiceAppearanceSize), choiceAppearanceSurface);
|
|
95
137
|
|
|
96
138
|
var choiceConfig = {
|
|
97
139
|
appearance: choiceAppearance,
|
|
@@ -100,7 +142,7 @@ var choiceConfig = {
|
|
|
100
142
|
},
|
|
101
143
|
};
|
|
102
144
|
function Choice(props) {
|
|
103
|
-
var id = props.id, className = props.className, name = props.name, appearance = props.appearance, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, _b = props.active, active = _b === void 0 ? { value: undefined } : _b, dataTestId = props.dataTestId, dataTour = props.dataTour, icon = props.icon, itemAfter = props.itemAfter, itemBefore = props.itemBefore, _c = props.options, options = _c === void 0 ? [] : _c, before = props.before, after = props.after, _d = props.isCheckbox, isCheckbox = _d === void 0 ? false : _d, _e = props.isLoading, isLoading = _e === void 0 ? false : _e, setActiveSegment = props.setActiveSegment;
|
|
145
|
+
var id = props.id, className = props.className, name = props.name, appearance = props.appearance, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, _b = props.active, active = _b === void 0 ? { value: undefined } : _b, dataTestId = props.dataTestId, dataTour = props.dataTour, icon = props.icon, itemAfter = props.itemAfter, itemBefore = props.itemBefore, _c = props.options, options = _c === void 0 ? [] : _c, before = props.before, after = props.after, _d = props.isCheckbox, isCheckbox = _d === void 0 ? false : _d, _e = props.isLoading, isLoading = _e === void 0 ? false : _e, isSkeleton = props.isSkeleton, setActiveSegment = props.setActiveSegment;
|
|
104
146
|
var controlRef = useRef(null);
|
|
105
147
|
var optionsRefs = useMemo(function () {
|
|
106
148
|
return new Map(options.map(function (item) { return [item.value, createRef()]; }));
|
|
@@ -116,7 +158,7 @@ function Choice(props) {
|
|
|
116
158
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
117
159
|
var size = propsGenerator.size, fillClass = propsGenerator.fillClass, fillItemActiveClass = propsGenerator.fillItemActiveClass, fillItemActiveDisabledClass = propsGenerator.fillItemActiveDisabledClass, fillItemActiveHoverClass = propsGenerator.fillItemActiveHoverClass, fillItemClass = propsGenerator.fillItemClass, fillItemDisabledClass = propsGenerator.fillItemDisabledClass, fillItemHoverClass = propsGenerator.fillItemHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveColorDisabled = propsGenerator.labelTextActiveColorDisabled, labelTextColor = propsGenerator.labelTextColor, labelTextColorDisabled = propsGenerator.labelTextColorDisabled, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconAfterFillDisabled = propsGenerator.iconAfterFillDisabled, iconBeforeFillDisabled = propsGenerator.iconBeforeFillDisabled, iconFillDisabled = propsGenerator.iconFillDisabled, iconActive = propsGenerator.iconActive, iconAfter = propsGenerator.iconAfter, iconAfterActive = propsGenerator.iconAfterActive, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillActive = propsGenerator.iconAfterFillActive, iconAfterSize = propsGenerator.iconAfterSize, iconBefore = propsGenerator.iconBefore, iconBeforeActive = propsGenerator.iconBeforeActive, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillActive = propsGenerator.iconBeforeFillActive, iconBeforeSize = propsGenerator.iconBeforeSize, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, shapeClass = propsGenerator.shapeClass, shapeItemClass = propsGenerator.shapeItemClass, wrapClass = propsGenerator.wrapClass;
|
|
118
160
|
var styles = useStyles(props).styles;
|
|
119
|
-
return (jsxs("div", { id: id, className: clsx(className, 'choice', size && "choice_size_".concat(size), fillClass && "fill_".concat(fillClass), wrapClass && "choice_wrap_".concat(wrapClass)), "data-testid": dataTestId && "".concat(dataTestId, "Choice"), "data-tour": dataTour, ref: controlRef, style: styles, children: [before && jsx("div", { className: "choice__before", children: before }), isLoading ? (jsx(Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemAccent" })) : (jsx(React.Fragment, { children: options.map(function (item) {
|
|
161
|
+
return (jsxs("div", { id: id, className: clsx(className, 'choice', size && "choice_size_".concat(size), fillClass && "fill_".concat(fillClass), wrapClass && "choice_wrap_".concat(wrapClass), isSkeleton && "choice_skeleton"), "data-testid": dataTestId && "".concat(dataTestId, "Choice"), "data-tour": dataTour, ref: controlRef, style: styles, children: [before && jsx("div", { className: "choice__before", children: before }), isLoading ? (jsx(Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemAccent" })) : (jsx(React.Fragment, { children: options.map(function (item) {
|
|
120
162
|
var isActive = typeof active === 'object'
|
|
121
163
|
? String(item.value) === String(active.value)
|
|
122
164
|
: String(item.value) === String(active);
|
|
@@ -4,7 +4,7 @@ import { useRef, useMemo, useCallback, useEffect } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import Cookies from 'js-cookie';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { B as Button } from '../
|
|
7
|
+
import { B as Button } from '../Button_es_WG0yV-rp.js';
|
|
8
8
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
@@ -16,7 +16,7 @@ import '../context/UIContext.js';
|
|
|
16
16
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
17
17
|
import 'react-responsive';
|
|
18
18
|
import '../utils/setViewportProperty.js';
|
|
19
|
-
import '../
|
|
19
|
+
import '../Tooltip_es_BPMRrd2L.js';
|
|
20
20
|
import '../hooks/useStyles/useStyles.js';
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
@@ -4,9 +4,9 @@ import { useCallback } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { DateTime } from 'luxon';
|
|
6
6
|
import { DATE_PERIOD_INTERVALS } from '@itcase/common';
|
|
7
|
-
import { D as DatePickerInput } from '../
|
|
7
|
+
import { D as DatePickerInput } from '../DatePicker_es_DGck2HRu.js';
|
|
8
8
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
|
-
import { b as ChipsGroup, C as Chips } from '../
|
|
9
|
+
import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_1854brF_.js';
|
|
10
10
|
import 'date-fns/locale';
|
|
11
11
|
import 'react-datepicker';
|
|
12
12
|
import '../hooks/useStyles/useStyles.js';
|
|
@@ -20,14 +20,14 @@ import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
|
20
20
|
import 'react-responsive';
|
|
21
21
|
import '../utils/setViewportProperty.js';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
|
-
import '../
|
|
24
|
-
import '../
|
|
23
|
+
import '../Button_es_WG0yV-rp.js';
|
|
24
|
+
import '../Tooltip_es_BPMRrd2L.js';
|
|
25
25
|
import '../Text_es_BfLRfj-5.js';
|
|
26
26
|
import 'react-inlinesvg';
|
|
27
27
|
import '../Link_es_DxtZLeKY.js';
|
|
28
28
|
import '../Loader_es_B2auu_rc.js';
|
|
29
29
|
import '../Input_es_CNduH28G.js';
|
|
30
|
-
import '../
|
|
30
|
+
import '../Label_es_s3M2-dON.js';
|
|
31
31
|
import '@itcase/icons/default';
|
|
32
32
|
import 'lodash/castArray';
|
|
33
33
|
|
|
@@ -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_DGck2HRu.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 '../
|
|
22
|
+
import '../Button_es_WG0yV-rp.js';
|
|
23
|
+
import '../Tooltip_es_BPMRrd2L.js';
|
|
24
24
|
import '../Text_es_BfLRfj-5.js';
|
|
25
25
|
import 'react-inlinesvg';
|
|
26
26
|
import '../Link_es_DxtZLeKY.js';
|
|
27
27
|
import '../Loader_es_B2auu_rc.js';
|
|
28
28
|
import '../Input_es_CNduH28G.js';
|
|
29
|
-
import '../
|
|
29
|
+
import '../Label_es_s3M2-dON.js';
|
|
30
30
|
import '@itcase/icons/default';
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useRef, useEffect } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import ReactDrawer from 'react-modern-drawer';
|
|
6
|
-
import { I as Icon, b as Title } from '../
|
|
6
|
+
import { I as Icon, b as Title } from '../Tooltip_es_BPMRrd2L.js';
|
|
7
7
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
8
8
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
9
|
import { icon24 } from '@itcase/icons/default';
|
|
@@ -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_VDp5tKZr.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -18,7 +18,7 @@ import '../hooks/useStyles/useStyles.js';
|
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
20
|
import '../Divider_es_kY-30pft.js';
|
|
21
|
-
import '../
|
|
21
|
+
import '../Tooltip_es_BPMRrd2L.js';
|
|
22
22
|
import '../Text_es_BfLRfj-5.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
24
|
import '../Link_es_DxtZLeKY.js';
|
|
@@ -4,7 +4,7 @@ import { useMemo } 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 { I as Icon } from '../
|
|
7
|
+
import { I as Icon } from '../Tooltip_es_BPMRrd2L.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
10
10
|
import 'lodash/upperFirst';
|
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_BPMRrd2L.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -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_BPMRrd2L.js';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/castArray';
|
|
9
9
|
import 'lodash/upperFirst';
|
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_s3M2-dON.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 '../
|
|
20
|
+
import '../Tooltip_es_BPMRrd2L.js';
|
|
21
21
|
import '../Text_es_BfLRfj-5.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../Link_es_DxtZLeKY.js';
|
|
@@ -4,7 +4,7 @@ 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 { I as Icon } from '../
|
|
7
|
+
import { I as Icon } from '../Tooltip_es_BPMRrd2L.js';
|
|
8
8
|
import { L as Link } from '../Link_es_DxtZLeKY.js';
|
|
9
9
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -22,102 +22,76 @@ import '../hooks/useStyles/styleAttributes.js';
|
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
|
|
24
24
|
var menuItemAppearanceAccent = {
|
|
25
|
-
accent: {
|
|
26
|
-
fill: 'accentPrimary',
|
|
27
|
-
fillHover: 'accentPrimaryHover',
|
|
28
|
-
},
|
|
29
25
|
accentPrimary: {
|
|
30
26
|
fill: 'accentPrimary',
|
|
31
27
|
fillHover: 'accentPrimaryHover',
|
|
32
|
-
|
|
28
|
+
labelTextColor: 'accentTextPrimary',
|
|
29
|
+
iconAfterFillIcon: 'accentItemPrimary',
|
|
30
|
+
iconBeforeFillIcon: 'accentItemPrimary',
|
|
33
31
|
},
|
|
34
32
|
accentSecondary: {
|
|
35
33
|
fill: 'accentPrimary',
|
|
36
34
|
fillHover: 'accentPrimaryHover',
|
|
37
35
|
labelTextColor: 'accentTextSecondary',
|
|
38
36
|
labelTextColorHover: 'accentTextSecondary',
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
loaderItemFill: 'accentItemPrimary',
|
|
37
|
+
iconAfterFillIcon: 'accentItemSecondary',
|
|
38
|
+
iconBeforeFillIcon: 'accentItemSecondary',
|
|
42
39
|
},
|
|
43
40
|
};
|
|
44
41
|
|
|
45
42
|
var menuItemAppearanceError = {
|
|
46
|
-
|
|
43
|
+
errorPrimary: {
|
|
47
44
|
fill: 'errorPrimary',
|
|
48
45
|
fillHover: 'errorPrimaryHover',
|
|
49
46
|
labelTextColor: 'errorTextPrimary',
|
|
50
47
|
labelTextColorHover: 'errorTextPrimary',
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
var menuItemAppearancePrimary = {
|
|
57
|
-
primary: {
|
|
58
|
-
fill: 'primaryPrimary',
|
|
59
|
-
fillHover: 'primaryPrimaryHover',
|
|
60
|
-
labelTextColor: 'primaryTextPrimary',
|
|
48
|
+
iconAfterFillIcon: 'errorItemPrimary',
|
|
49
|
+
iconBeforeFillIcon: 'errorItemPrimary',
|
|
61
50
|
},
|
|
62
51
|
};
|
|
63
52
|
|
|
64
53
|
var menuItemAppearanceSize = {
|
|
65
54
|
sizeXXL: {
|
|
66
55
|
size: 'xxl',
|
|
67
|
-
labelTextSize: '
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
iconBeforeFillSize: '48',
|
|
71
|
-
iconBeforeSize: '14',
|
|
56
|
+
labelTextSize: 'l',
|
|
57
|
+
iconAfterSize: '20',
|
|
58
|
+
iconBeforeSize: '20',
|
|
72
59
|
},
|
|
73
60
|
sizeXL: {
|
|
74
61
|
size: 'xl',
|
|
75
62
|
labelTextSize: 'l',
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
iconBeforeFillSize: '40',
|
|
79
|
-
iconBeforeSize: '40',
|
|
63
|
+
iconAfterSize: '20',
|
|
64
|
+
iconBeforeSize: '20',
|
|
80
65
|
},
|
|
81
66
|
sizeL: {
|
|
82
67
|
size: 'l',
|
|
83
|
-
labelTextSize: '
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
iconAfterSize: '32',
|
|
87
|
-
iconBeforeFillSize: '32',
|
|
88
|
-
iconBeforeSize: '32',
|
|
68
|
+
labelTextSize: 's',
|
|
69
|
+
iconAfterSize: '16',
|
|
70
|
+
iconBeforeSize: '16',
|
|
89
71
|
},
|
|
90
72
|
sizeM: {
|
|
91
73
|
size: 'm',
|
|
92
|
-
labelTextSize: '
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
iconBeforeFillSize: '28',
|
|
96
|
-
iconBeforeSize: '28',
|
|
74
|
+
labelTextSize: 's',
|
|
75
|
+
iconAfterSize: '16',
|
|
76
|
+
iconBeforeSize: '16',
|
|
97
77
|
},
|
|
98
78
|
sizeS: {
|
|
99
79
|
size: 's',
|
|
100
|
-
labelTextSize: '
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
iconBeforeFillSize: '24',
|
|
104
|
-
iconBeforeSize: '24',
|
|
80
|
+
labelTextSize: 'xs',
|
|
81
|
+
iconAfterSize: '12',
|
|
82
|
+
iconBeforeSize: '12',
|
|
105
83
|
},
|
|
106
84
|
sizeXS: {
|
|
107
85
|
size: 'xs',
|
|
108
86
|
labelTextSize: 'xs',
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
iconBeforeFillSize: '20',
|
|
112
|
-
iconBeforeSize: '20',
|
|
87
|
+
iconAfterSize: '12',
|
|
88
|
+
iconBeforeSize: '12',
|
|
113
89
|
},
|
|
114
90
|
sizeXXS: {
|
|
115
91
|
size: 'xxs',
|
|
116
|
-
labelTextSize: '
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
iconBeforeFillSize: '16',
|
|
120
|
-
iconBeforeSize: '16',
|
|
92
|
+
labelTextSize: 'xxs',
|
|
93
|
+
iconAfterSize: '12',
|
|
94
|
+
iconBeforeSize: '12',
|
|
121
95
|
},
|
|
122
96
|
};
|
|
123
97
|
|
|
@@ -128,9 +102,7 @@ var menuItemAppearanceStyle = {
|
|
|
128
102
|
outlined: {
|
|
129
103
|
fill: 'none',
|
|
130
104
|
},
|
|
131
|
-
full: {
|
|
132
|
-
borderColor: 'none',
|
|
133
|
-
},
|
|
105
|
+
full: {},
|
|
134
106
|
ghost: {
|
|
135
107
|
fill: 'none',
|
|
136
108
|
borderColor: 'none',
|
|
@@ -140,18 +112,11 @@ var menuItemAppearanceStyle = {
|
|
|
140
112
|
var menuItemAppearanceSurface = {
|
|
141
113
|
surfacePrimary: {
|
|
142
114
|
fill: 'surfacePrimary',
|
|
143
|
-
|
|
144
|
-
fillActiveHover: 'surfaceSecondary',
|
|
145
|
-
fillHover: 'surfaceSecondary',
|
|
115
|
+
fillHover: 'surfacePrimaryHover',
|
|
146
116
|
labelTextColor: 'surfaceTextPrimary',
|
|
147
117
|
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
148
118
|
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
149
119
|
},
|
|
150
|
-
surfaceQuaternary: {
|
|
151
|
-
fill: 'surfaceQuaternary',
|
|
152
|
-
fillHover: 'surfaceQuaternaryHover',
|
|
153
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
154
|
-
},
|
|
155
120
|
surfaceSecondary: {
|
|
156
121
|
fill: 'surfaceSecondary',
|
|
157
122
|
fillHover: 'surfaceSecondaryHover',
|
|
@@ -162,9 +127,14 @@ var menuItemAppearanceSurface = {
|
|
|
162
127
|
fillHover: 'surfaceTertiaryHover',
|
|
163
128
|
labelTextColor: 'surfaceTextPrimary',
|
|
164
129
|
},
|
|
130
|
+
surfaceQuaternary: {
|
|
131
|
+
fill: 'surfaceQuaternary',
|
|
132
|
+
fillHover: 'surfaceQuaternaryHover',
|
|
133
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
134
|
+
},
|
|
165
135
|
};
|
|
166
136
|
|
|
167
|
-
var menuItemAppearance = __assign(__assign(__assign(__assign(__assign(
|
|
137
|
+
var menuItemAppearance = __assign(__assign(__assign(__assign(__assign({}, menuItemAppearanceSize), menuItemAppearanceStyle), menuItemAppearanceAccent), menuItemAppearanceError), menuItemAppearanceSurface);
|
|
168
138
|
|
|
169
139
|
var menuItemConfig = {
|
|
170
140
|
appearance: menuItemAppearance,
|
|
@@ -179,7 +149,7 @@ function MenuItem(props) {
|
|
|
179
149
|
return (__assign(__assign({}, resultConfig), (_a = menuItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
180
150
|
}, {});
|
|
181
151
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
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;
|
|
152
|
+
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, isSkeleton = propsGenerator.isSkeleton;
|
|
183
153
|
// @ts-expect-error
|
|
184
154
|
var menuItem = useStyles(props).styles;
|
|
185
155
|
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
|
|
@@ -187,7 +157,7 @@ function MenuItem(props) {
|
|
|
187
157
|
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
188
158
|
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
189
159
|
: 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
|
|
160
|
+
"menu-item_justify-content_".concat(justifyContentClass), isSkeleton && "menu-item_skeleton"), 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
161
|
? !isDisabled
|
|
192
162
|
? labelTextActiveColor
|
|
193
163
|
: labelTextActiveColorDisabled
|
package/dist/components/Modal.js
CHANGED
|
@@ -6,7 +6,7 @@ import ReactDOM from 'react-dom';
|
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
8
|
import { O as Overlay } from '../Overlay_es_DczPjVL9.js';
|
|
9
|
-
import { b as Title } from '../
|
|
9
|
+
import { b as Title } from '../Tooltip_es_BPMRrd2L.js';
|
|
10
10
|
import { L as Loader } from '../Loader_es_B2auu_rc.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
12
12
|
import 'lodash/castArray';
|
|
@@ -3,7 +3,7 @@ import { jsxs, 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 { I as Icon } from '../
|
|
6
|
+
import { I as Icon } from '../Tooltip_es_BPMRrd2L.js';
|
|
7
7
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
8
8
|
import { icon20 } from '@itcase/icons/default';
|
|
9
9
|
import { useNotifications, useNotificationsAPI } from '../context/Notifications.js';
|
|
@@ -6,8 +6,8 @@ import ceil from 'lodash/ceil';
|
|
|
6
6
|
import ReactPaginate from 'react-paginate';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
|
-
import { D as Dropdown, a as DropdownItem } from '../
|
|
10
|
-
import { I as Icon } from '../
|
|
9
|
+
import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_VDp5tKZr.js';
|
|
10
|
+
import { I as Icon } from '../Tooltip_es_BPMRrd2L.js';
|
|
11
11
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
12
12
|
import { icon32, icon24 } from '@itcase/icons/default';
|
|
13
13
|
import 'lodash/camelCase';
|
|
@@ -5,7 +5,7 @@ import clsx from 'clsx';
|
|
|
5
5
|
import SVG from 'react-inlinesvg';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { B as Button } from '../
|
|
8
|
+
import { B as Button } from '../Button_es_WG0yV-rp.js';
|
|
9
9
|
import { G as Group } from '../Group_es_CYW2Hquh.js';
|
|
10
10
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
@@ -20,7 +20,7 @@ import 'react-responsive';
|
|
|
20
20
|
import '../utils/setViewportProperty.js';
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
|
-
import '../
|
|
23
|
+
import '../Tooltip_es_BPMRrd2L.js';
|
|
24
24
|
import '../Link_es_DxtZLeKY.js';
|
|
25
25
|
import '../Loader_es_B2auu_rc.js';
|
|
26
26
|
|
|
@@ -5,7 +5,7 @@ import React, { useCallback } from 'react';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { I as Icon } from '../
|
|
8
|
+
import { I as Icon } from '../Tooltip_es_BPMRrd2L.js';
|
|
9
9
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
10
10
|
import { S as Scrollbar } from '../Scrollbar_es_CThJeCLF.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
@@ -55,9 +55,9 @@ var searchAppearanceError = {
|
|
|
55
55
|
fill: 'errorTertiary',
|
|
56
56
|
borderColor: 'errorBorderQuaternary',
|
|
57
57
|
borderHover: 'errorBorderQuaternaryHover',
|
|
58
|
-
iconAfterFill: '
|
|
59
|
-
iconBeforeFill: '
|
|
60
|
-
iconClearFill: '
|
|
58
|
+
iconAfterFill: 'errorItemSecondary',
|
|
59
|
+
iconBeforeFill: 'errorItemSecondary',
|
|
60
|
+
iconClearFill: 'errorItemSecondary',
|
|
61
61
|
inputTextColor: 'surfaceTextPrimary',
|
|
62
62
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
63
63
|
},
|