@itcase/ui 1.8.36 → 1.8.37
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_DBoMi2WA.js → Avatar_cjs_nMPCDjk8.js} +1 -1
- package/dist/{Avatar_es_DHREqfOD.js → Avatar_es_B73a6TzA.js} +1 -1
- package/dist/{Button_cjs_djJUZATX.js → Button_cjs_plv5-qcj.js} +10 -1
- package/dist/{Button_es_X1DzVhok.js → Button_es_BigB2Wz6.js} +10 -1
- package/dist/{ChipsGroup_cjs_5xsEchPo.js → ChipsGroup_cjs_DrOhD-Fc.js} +2 -4
- package/dist/{ChipsGroup_es_4TOkv-fm.js → ChipsGroup_es_B9m4l0wN.js} +2 -4
- package/dist/{DatePicker_cjs_DffhgUnQ.js → DatePicker_cjs_CmqgSNw7.js} +3 -3
- package/dist/{DatePicker_es_GmkagjKf.js → DatePicker_es_mk9wFTe9.js} +3 -3
- package/dist/{DropdownItem_cjs_DxBpJAi9.js → DropdownItem_cjs_DQvByLbN.js} +1 -1
- package/dist/{DropdownItem_es_Loneq6M7.js → DropdownItem_es_KppIfto7.js} +1 -1
- package/dist/{Label_cjs_C88e2CIP.js → Label_cjs_BGJfyrOL.js} +50 -48
- package/dist/{Label_es_Bn2aRjLl.js → Label_es_C4Px7b-N.js} +50 -48
- package/dist/{Tooltip_cjs_oS1iOamX.js → Tooltip_cjs_DHduWa-v.js} +72 -68
- package/dist/{Tooltip_es_LV5ZNg3B.js → Tooltip_es_ltCY-w4M.js} +72 -68
- 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/stories/__mock__.js +32 -48
- package/dist/cjs/components/Breadcrumbs.js +38 -120
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips/stories/__mock__.js +2 -2
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice.js +16 -14
- 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/stories/__mock__.js +103 -33
- 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 +7 -9
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Notification.js +3 -8
- package/dist/cjs/components/Pagination.js +2 -2
- package/dist/cjs/components/Response.js +2 -2
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented/stories/__mock__.js +11 -11
- package/dist/cjs/components/Segmented.js +28 -25
- 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/stories/__mock__.js +33 -48
- package/dist/components/Breadcrumbs.js +38 -120
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips/stories/__mock__.js +2 -2
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice.js +16 -14
- 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/stories/__mock__.js +101 -34
- 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 +7 -9
- package/dist/components/Modal.js +1 -1
- package/dist/components/Notification.js +3 -8
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Response.js +2 -2
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented/stories/__mock__.js +8 -8
- package/dist/components/Segmented.js +28 -25
- 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/Breadcrumbs/Breadcrumbs.css +24 -0
- package/dist/css/components/Icon/Icon.css +24 -0
- package/dist/css/components/MenuItem/MenuItem.css +31 -0
- package/dist/css/components/Notification/Notification.css +0 -48
- package/dist/css/components/Segmented/Segmented.css +16 -7
- package/dist/css/components/Segmented/css/__item/segmaented__item.css +2 -5
- package/dist/stories/BreadcrumbsPlsyground.mdx +1 -1
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsAccent.d.ts +2 -12
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSize.d.ts +7 -14
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsStyle.d.ts +1 -3
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSurface.d.ts +11 -8
- package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +6 -32
- package/dist/types/components/Button/appearance/buttonSurface.d.ts +9 -0
- package/dist/types/components/Chips/appearance/chipsStyle.d.ts +1 -3
- package/dist/types/components/Choice/appearance/choiceDefault.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +1 -1
- package/dist/types/components/Choice/appearance/choiceError.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceRequire.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceStyle.d.ts +1 -3
- package/dist/types/components/Choice/appearance/choiceSuccess.d.ts +1 -0
- package/dist/types/components/Dropdown/stories/__mock__/index.d.ts +87 -44
- package/dist/types/components/Icon/appearance/iconAccent.d.ts +2 -4
- package/dist/types/components/Icon/appearance/iconDanger.d.ts +2 -4
- package/dist/types/components/Icon/appearance/iconDisabled.d.ts +12 -0
- package/dist/types/components/Icon/appearance/iconError.d.ts +4 -4
- package/dist/types/components/Icon/appearance/iconInfo.d.ts +7 -4
- package/dist/types/components/Icon/appearance/iconPrimary.d.ts +4 -2
- package/dist/types/components/Icon/appearance/iconSecondary.d.ts +2 -2
- package/dist/types/components/Icon/appearance/iconStyle.d.ts +4 -6
- package/dist/types/components/Icon/appearance/iconSuccess.d.ts +0 -2
- package/dist/types/components/Icon/appearance/iconSurface.d.ts +0 -5
- package/dist/types/components/Icon/appearance/iconWarning.d.ts +4 -4
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +1 -0
- package/dist/types/components/Label/appearance/labelSurface.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +4 -6
- package/dist/types/components/Notification/appearance/notificationDefault.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationError.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationInfo.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationSuccess.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationWarning.d.ts +0 -1
- package/dist/types/components/Segmented/appearance/segmentedDefault.d.ts +1 -1
- package/dist/types/components/Segmented/appearance/segmentedDisabled.d.ts +2 -2
- package/dist/types/components/Segmented/appearance/segmentedError.d.ts +3 -1
- package/dist/types/components/Segmented/appearance/segmentedStyle.d.ts +3 -5
- package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +3 -2
- package/dist/types/components/Segmented/appearance/segmentedWarning.d.ts +2 -1
- package/dist/types/components/Segmented/stories/__mock__/index.d.ts +5 -5
- package/package.json +7 -7
- package/dist/css/components/Notification/css/__item/notification__item_status.css +0 -48
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsDanger.d.ts +0 -7
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsError.d.ts +0 -9
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsInfo.d.ts +0 -17
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsPrimary.d.ts +0 -8
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSecondary.d.ts +0 -8
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSuccess.d.ts +0 -9
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsWarning.d.ts +0 -9
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_ltCY-w4M.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_ltCY-w4M.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_C4Px7b-N.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_ltCY-w4M.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, T as Tooltip } from '../Tooltip_es_ltCY-w4M.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';
|
|
@@ -98,17 +98,15 @@ var menuItemAppearanceSize = {
|
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
var menuItemAppearanceStyle = {
|
|
101
|
-
|
|
102
|
-
borderColor: 'none',
|
|
103
|
-
},
|
|
104
|
-
ghost: {
|
|
105
|
-
fill: 'none',
|
|
101
|
+
solid: {
|
|
106
102
|
borderColor: 'none',
|
|
107
103
|
},
|
|
108
104
|
outlined: {
|
|
109
105
|
fill: 'none',
|
|
110
106
|
},
|
|
111
|
-
|
|
107
|
+
full: {},
|
|
108
|
+
ghost: {
|
|
109
|
+
fill: 'none',
|
|
112
110
|
borderColor: 'none',
|
|
113
111
|
},
|
|
114
112
|
};
|
|
@@ -161,7 +159,7 @@ function MenuItem(props) {
|
|
|
161
159
|
return (__assign(__assign({}, resultConfig), (_a = menuItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
162
160
|
}, {});
|
|
163
161
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
164
|
-
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, borderColorClass = propsGenerator.borderColorClass, 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,
|
|
162
|
+
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, borderColorClass = propsGenerator.borderColorClass, 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, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, tooltipAppearance = propsGenerator.tooltipAppearance, tooltipFill = propsGenerator.tooltipFill, tooltipShapeStrength = propsGenerator.tooltipShapeStrength, tooltipText = propsGenerator.tooltipText, tooltipTextColor = propsGenerator.tooltipTextColor, tooltipTitleTextColor = propsGenerator.tooltipTitleTextColor, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
|
|
165
163
|
// @ts-expect-error
|
|
166
164
|
var menuItem = useStyles(props).styles;
|
|
167
165
|
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), borderColorClass && "border-color_".concat(borderColorClass), !isActive
|
|
@@ -183,7 +181,7 @@ function MenuItem(props) {
|
|
|
183
181
|
: labelTextActiveHoverColorDisabled
|
|
184
182
|
: !isDisabled
|
|
185
183
|
? labelTextHoverColor
|
|
186
|
-
: 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] }) }));
|
|
184
|
+
: 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, jsx(Tooltip, { className: "menu-item__tooltip", appearance: tooltipAppearance, minWidth: "auto", fill: tooltipFill, left: "100%", zIndex: "100", titleTextColor: tooltipTitleTextColor, text: tooltipText, textColor: tooltipTextColor, centering: "vertical", shapeStrength: tooltipShapeStrength })] }) }));
|
|
187
185
|
}
|
|
188
186
|
|
|
189
187
|
export { MenuItem, menuItemAppearance, menuItemConfig };
|
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_ltCY-w4M.js';
|
|
10
10
|
import { L as Loader } from '../Loader_es_GYOr0UTX.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_ltCY-w4M.js';
|
|
7
7
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
8
8
|
import { icons20 } from '@itcase/icons/default';
|
|
9
9
|
import { useNotifications, useNotificationsAPI } from '../context/Notifications.js';
|
|
@@ -31,7 +31,6 @@ var notificationAppearanceDefault = {
|
|
|
31
31
|
descTextColor: 'surfaceTextPrimary',
|
|
32
32
|
descTextSize: 'm',
|
|
33
33
|
borderColor: 'surfaceBorderPrimary',
|
|
34
|
-
elevation: 8,
|
|
35
34
|
textColor: 'surfaceTextPrimary',
|
|
36
35
|
iconSize: 20,
|
|
37
36
|
closeIcon: icons20.Action.Close,
|
|
@@ -48,7 +47,6 @@ var notificationAppearanceError = {
|
|
|
48
47
|
descTextColor: 'errorTextPrimary',
|
|
49
48
|
descTextSize: 'm',
|
|
50
49
|
borderColor: 'errorBorderPrimary',
|
|
51
|
-
elevation: 8,
|
|
52
50
|
textColor: 'errorTextPrimary',
|
|
53
51
|
iconSize: 20,
|
|
54
52
|
closeIcon: icons20.Action.Close,
|
|
@@ -65,7 +63,6 @@ var notificationAppearanceInfo = {
|
|
|
65
63
|
descTextColor: 'infoTextPrimary',
|
|
66
64
|
descTextSize: 'm',
|
|
67
65
|
borderColor: 'infoBorderPrimary',
|
|
68
|
-
elevation: 8,
|
|
69
66
|
textColor: 'infoTextPrimary',
|
|
70
67
|
iconSize: 20,
|
|
71
68
|
closeIcon: icons20.Action.Close,
|
|
@@ -98,7 +95,6 @@ var notificationAppearanceSuccess = {
|
|
|
98
95
|
descTextColor: 'successTextPrimary',
|
|
99
96
|
descTextSize: 'm',
|
|
100
97
|
borderColor: 'successBorderPrimary',
|
|
101
|
-
elevation: 8,
|
|
102
98
|
textColor: 'successTextPrimary',
|
|
103
99
|
iconSize: 20,
|
|
104
100
|
closeIcon: icons20.Action.Close,
|
|
@@ -115,7 +111,6 @@ var notificationAppearanceWarning = {
|
|
|
115
111
|
descTextColor: 'warningTextPrimary',
|
|
116
112
|
descTextSize: 'm',
|
|
117
113
|
borderColor: 'surfaceBorderPrimary',
|
|
118
|
-
elevation: 8,
|
|
119
114
|
textColor: 'warningTextPrimary',
|
|
120
115
|
iconSize: 20,
|
|
121
116
|
closeIcon: icons20.Action.Close,
|
|
@@ -132,7 +127,7 @@ var notificationConfig = {
|
|
|
132
127
|
},
|
|
133
128
|
};
|
|
134
129
|
function Notification(props) {
|
|
135
|
-
var id = props.id, className = props.className,
|
|
130
|
+
var id = props.id, className = props.className, appearance = props.appearance, title = props.title, desc = props.desc, dataTestId = props.dataTestId, dataTour = props.dataTour, before = props.before, after = props.after, close = props.close, isSkeleton = props.isSkeleton, onClickClose = props.onClickClose;
|
|
136
131
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
137
132
|
var _a;
|
|
138
133
|
return (__assign(__assign({}, resultConfig), (_a = notificationConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
@@ -141,7 +136,7 @@ function Notification(props) {
|
|
|
141
136
|
var fillClass = propsGenerator.fillClass, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, elevationClass = propsGenerator.elevationClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, closeIcon = propsGenerator.closeIcon, closeIconFill = propsGenerator.closeIconFill, closeIconFillIcon = propsGenerator.closeIconFillIcon, closeIconFillSize = propsGenerator.closeIconFillSize, closeIconShape = propsGenerator.closeIconShape, closeIconSize = propsGenerator.closeIconSize, closeIconSrc = propsGenerator.closeIconSrc;
|
|
142
137
|
// @ts-expect-error
|
|
143
138
|
var notificationStyles = useStyles(props).styles;
|
|
144
|
-
return (jsxs("div", { className: clsx('notification__item',
|
|
139
|
+
return (jsxs("div", { className: clsx('notification__item', elevationClass && "elevation_".concat(elevationClass), sizeClass && "notification__item_set_".concat(sizeClass), widthClass && "width_".concat(widthClass), fillClass && "fill_".concat(fillClass), isSkeleton && "notification__item_skeleton"), "data-testid": dataTestId, "data-tour": dataTour, style: notificationStyles, children: [before, jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsx(Text, { className: "notification__item-title", size: titleTextSize, textColor: titleTextColor, children: title })), desc && (jsx(Text, { className: "notification__item-text", size: descTextSize, textColor: descTextColor, children: desc })), close && (closeIcon || closeIconSrc) && (jsx(Icon, { className: clsx('notification__item-close', 'cursor_type_pointer'), fill: closeIconFill, fillSize: closeIconFillSize, iconFill: closeIconFillIcon, iconSize: closeIconSize, imageSrc: closeIconSrc, shape: closeIconShape, SvgImage: closeIcon, onClick: function () { return onClickClose && onClickClose(id); } }))] }), after] }));
|
|
145
140
|
}
|
|
146
141
|
|
|
147
142
|
function NotificationWrapper(props) {
|
|
@@ -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_KppIfto7.js';
|
|
10
|
+
import { I as Icon } from '../Tooltip_es_ltCY-w4M.js';
|
|
11
11
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
12
12
|
import { icons32, icons14 } 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_BigB2Wz6.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_ltCY-w4M.js';
|
|
24
24
|
import '../Link_es_DxtZLeKY.js';
|
|
25
25
|
import '../Loader_es_GYOr0UTX.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_ltCY-w4M.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';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __assign } from '../../../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
2
|
import { icons24, icons20, icons16, icons14 } from '@itcase/icons/default';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var segmentedMock = {
|
|
5
5
|
activeSegment: {
|
|
6
6
|
value: 1,
|
|
7
7
|
},
|
|
@@ -32,17 +32,17 @@ var segmentedArgsMock = {
|
|
|
32
32
|
},
|
|
33
33
|
],
|
|
34
34
|
};
|
|
35
|
-
var
|
|
35
|
+
var segmentedLabelMock = segmentedMock === null || segmentedMock === void 0 ? void 0 : segmentedMock.segments.map(function (segment) { return ({
|
|
36
36
|
label: segment.label,
|
|
37
37
|
value: segment.value,
|
|
38
38
|
}); });
|
|
39
|
-
var
|
|
39
|
+
var segmentedIconMock = segmentedMock === null || segmentedMock === void 0 ? void 0 : segmentedMock.segments.map(function (segment) { return ({
|
|
40
40
|
iconBefore: segment.iconBefore,
|
|
41
41
|
}); }).slice(3);
|
|
42
|
-
var
|
|
43
|
-
14:
|
|
44
|
-
16:
|
|
45
|
-
20:
|
|
42
|
+
var segmentedMockSize = {
|
|
43
|
+
14: segmentedMock.segments.map(function (segment) { return (__assign(__assign({}, segment), { iconAfter: icons14.Placeholder.Default, iconBefore: icons14.Placeholder.Default })); }),
|
|
44
|
+
16: segmentedMock.segments.map(function (segment) { return (__assign(__assign({}, segment), { iconAfter: icons16.Placeholder.Default, iconBefore: icons16.Placeholder.Default })); }),
|
|
45
|
+
20: segmentedMock.segments.map(function (segment) { return (__assign(__assign({}, segment), { iconAfter: icons20.Placeholder.Default, iconBefore: icons20.Placeholder.Default })); }),
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
export {
|
|
48
|
+
export { segmentedIconMock, segmentedLabelMock, segmentedMock, segmentedMockSize };
|
|
@@ -2,7 +2,7 @@ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useRef, useMemo, createRef, useCallback, useEffect } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { I as Icon } from '../
|
|
5
|
+
import { I as Icon } from '../Tooltip_es_ltCY-w4M.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
8
8
|
import '../hooks/useStyles/useStyles.js';
|
|
@@ -30,6 +30,7 @@ var segmentedAppearanceDefault = {
|
|
|
30
30
|
labelTextActiveColor: 'accentTextPrimary',
|
|
31
31
|
labelTextActiveHoverColor: 'accentTextPrimary',
|
|
32
32
|
labelTextColor: 'surfaceTextPrimary',
|
|
33
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
33
34
|
iconAfterFill: 'surfaceItemQuaternary',
|
|
34
35
|
iconAfterFillActive: 'surfaceItemSecondary',
|
|
35
36
|
iconBeforeFill: 'surfaceItemQuaternary',
|
|
@@ -37,23 +38,22 @@ var segmentedAppearanceDefault = {
|
|
|
37
38
|
iconFill: 'surfaceItemQuaternary',
|
|
38
39
|
iconFillActive: 'surfaceItemSecondary',
|
|
39
40
|
indicatorFill: 'accentPrimary',
|
|
40
|
-
inputBorderColor: 'surfaceBorderQuaternary',
|
|
41
41
|
},
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
var segmentedAppearanceDisabled = {
|
|
45
45
|
disabledPrimary: {
|
|
46
46
|
fill: 'surfaceDisabled',
|
|
47
|
-
fillActive: '
|
|
48
|
-
|
|
47
|
+
fillActive: 'surfaceItemTertiary',
|
|
48
|
+
labelTextActiveColor: 'surfaceTextQuaternary',
|
|
49
49
|
labelTextColor: 'surfaceTextQuaternary',
|
|
50
|
+
borderColor: 'surfaceBorderPrimary',
|
|
50
51
|
iconAfterFill: 'surfaceItemPrimary',
|
|
51
52
|
iconAfterFillActive: 'surfaceItemDisabled',
|
|
52
53
|
iconBeforeFill: 'surfaceItemPrimary',
|
|
53
54
|
iconBeforeFillActive: 'surfaceItemDisabled',
|
|
54
55
|
iconFill: 'surfaceItemPrimary',
|
|
55
56
|
iconFillActive: 'surfaceItemDisabled',
|
|
56
|
-
inputBorderColor: 'surfaceBorderPrimary',
|
|
57
57
|
},
|
|
58
58
|
};
|
|
59
59
|
|
|
@@ -62,14 +62,16 @@ var segmentedAppearanceError = {
|
|
|
62
62
|
fill: 'errorTertiary',
|
|
63
63
|
fillActive: 'errorPrimary',
|
|
64
64
|
fillHover: 'errorItemHover',
|
|
65
|
-
|
|
65
|
+
labelTextActiveColor: 'errorTextPrimary',
|
|
66
|
+
labelTextColor: 'errorTextSecondary',
|
|
67
|
+
labelTextColorHover: 'errorTextPrimary',
|
|
68
|
+
borderColor: 'errorBorderQuaternary',
|
|
66
69
|
iconAfterFill: 'errorItemSecondary',
|
|
67
70
|
iconAfterFillActive: 'errorItemTertiary',
|
|
68
71
|
iconBeforeFill: 'errorItemSecondary',
|
|
69
72
|
iconBeforeFillActive: 'errorItemTertiary',
|
|
70
73
|
iconFill: 'errorItemSecondary',
|
|
71
74
|
iconFillActive: 'errorItemTertiary',
|
|
72
|
-
inputBorderColor: 'errorBorderQuaternary',
|
|
73
75
|
},
|
|
74
76
|
};
|
|
75
77
|
|
|
@@ -103,19 +105,17 @@ var segmentedAppearanceSize = {
|
|
|
103
105
|
|
|
104
106
|
var segmentedAppearanceStyle = {
|
|
105
107
|
solid: {
|
|
106
|
-
|
|
108
|
+
borderColor: 'none',
|
|
107
109
|
},
|
|
108
110
|
outlined: {
|
|
109
111
|
fill: 'none',
|
|
110
112
|
fillActive: 'none',
|
|
111
113
|
},
|
|
112
|
-
full: {
|
|
113
|
-
inputBorderColor: '0',
|
|
114
|
-
},
|
|
114
|
+
full: {},
|
|
115
115
|
ghost: {
|
|
116
116
|
fill: 'none',
|
|
117
117
|
fillActive: 'none',
|
|
118
|
-
|
|
118
|
+
borderColor: 'none',
|
|
119
119
|
},
|
|
120
120
|
};
|
|
121
121
|
|
|
@@ -123,16 +123,17 @@ var segmentedAppearanceSuccess = {
|
|
|
123
123
|
successPrimary: {
|
|
124
124
|
fill: 'successTertiary',
|
|
125
125
|
fillActive: 'successItemSecondary',
|
|
126
|
-
fillHover: '
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
fillHover: 'successItemSecondary',
|
|
127
|
+
labelTextActiveColor: 'successTextPrimary',
|
|
128
|
+
labelTextColor: 'successTextSecondary',
|
|
129
|
+
labelTextHoverColor: 'successTextPrimary',
|
|
130
|
+
borderColor: 'successBorderSecondary',
|
|
129
131
|
iconAfterFill: 'successItemSecondary',
|
|
130
132
|
iconAfterFillActive: 'successTertiary',
|
|
131
133
|
iconBeforeFill: 'successItemSecondary',
|
|
132
134
|
iconBeforeFillActive: 'successTertiary',
|
|
133
135
|
iconFill: 'successItemSecondary',
|
|
134
136
|
iconFillActive: 'successTertiary',
|
|
135
|
-
inputBorderColor: 'successBorderSecondary',
|
|
136
137
|
},
|
|
137
138
|
};
|
|
138
139
|
|
|
@@ -141,15 +142,16 @@ var segmentedAppearanceWarning = {
|
|
|
141
142
|
fill: 'warningTertiary',
|
|
142
143
|
fillActive: 'warningItemSecondary',
|
|
143
144
|
fillHover: 'warningItemHover',
|
|
144
|
-
|
|
145
|
+
labelTextActiveColor: 'warningTextPrimary',
|
|
146
|
+
labelTextColor: 'warningTextSecondary',
|
|
145
147
|
labelTextColorHover: 'warningTextSecondary',
|
|
148
|
+
borderColor: 'warningBorderSecondary',
|
|
146
149
|
iconAfterFill: 'warningItemSecondary',
|
|
147
150
|
iconAfterFillActive: 'warningTertiary',
|
|
148
151
|
iconBeforeFill: 'warningItemSecondary',
|
|
149
152
|
iconBeforeFillActive: 'warningTertiary',
|
|
150
153
|
iconFill: 'warningItemSecondary',
|
|
151
154
|
iconFillActive: 'warningTertiary',
|
|
152
|
-
inputBorderColor: 'warningBorderSecondary',
|
|
153
155
|
},
|
|
154
156
|
};
|
|
155
157
|
|
|
@@ -189,16 +191,17 @@ var Segmented = React.forwardRef(function (props) {
|
|
|
189
191
|
return (__assign(__assign({}, resultConfig), (_a = segmentedConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
190
192
|
}, {});
|
|
191
193
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
192
|
-
var fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWrap = propsGenerator.labelTextWrap, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconFillDisabled = propsGenerator.iconFillDisabled, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, indicatorFillClass = propsGenerator.indicatorFillClass,
|
|
193
|
-
return (jsx("div", { className: clsx(className, 'segmented', shapeClass && "segmented_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), widthClass && "segmented_width_".concat(widthClass), sizeClass && "segmented_size_".concat(sizeClass),
|
|
194
|
+
var fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconFillDisabled = propsGenerator.iconFillDisabled, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, indicatorFillClass = propsGenerator.indicatorFillClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
195
|
+
return (jsx("div", { className: clsx(className, 'segmented', shapeClass && "segmented_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), widthClass && "segmented_width_".concat(widthClass), sizeClass && "segmented_size_".concat(sizeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), isSkeleton && "segmented_skeleton"), ref: controlRef, children: jsx("div", { className: "segmented__wrapper", children: jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments === null || segments === void 0 ? void 0 : segments.map(function (item) {
|
|
194
196
|
var isActive = String(activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value) === String(item.value);
|
|
195
|
-
return (jsx("div", { className: clsx('segmented__item', sizeClass && "segmented__item_size_".concat(sizeClass), isActive && 'segmented__item_active', !isActive && isDisabled && 'segmented__item_state_disabled', isActive &&
|
|
197
|
+
return (jsx("div", { className: clsx('segmented__item', !item.label && 'segmented__item_icon', sizeClass && "segmented__item_size_".concat(sizeClass), isActive && 'segmented__item_active', !isActive && isDisabled && 'segmented__item_state_disabled', isActive &&
|
|
196
198
|
isDisabled &&
|
|
197
|
-
'segmented__item_active_state_disabled',
|
|
199
|
+
'segmented__item_active_state_disabled', !isActive
|
|
200
|
+
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
201
|
+
: fillActiveHoverClass &&
|
|
202
|
+
"fill_active_hover_".concat(fillActiveHoverClass), isActive &&
|
|
198
203
|
fillActiveClass &&
|
|
199
|
-
"fill_active_".concat(fillActiveClass),
|
|
200
|
-
fillActiveHoverClass &&
|
|
201
|
-
"fill_active_hover_".concat(fillActiveHoverClass)), ref: segmentsRefs.get(item.value), onClick: function () { return !isDisabled && onChangeValue(item); }, children: jsxs("div", { className: clsx('segmented__item-label', sizeClass && "segmented_size_".concat(sizeClass)), children: [item.iconBefore || item.iconBeforeActive ? (jsx(Icon, { className: "segmented__item-icon", iconFillDisabled: iconFillDisabled, isDisabled: isDisabled, iconFill: iconFill, iconFillActive: iconFillActive, iconSize: iconSize, SvgImage: isActive
|
|
204
|
+
"fill_active_".concat(fillActiveClass)), ref: segmentsRefs.get(item.value), onClick: function () { return !isDisabled && onChangeValue(item); }, children: jsxs("div", { className: clsx('segmented__item-label', sizeClass && "segmented_size_".concat(sizeClass)), children: [item.iconBefore || item.iconBeforeActive ? (jsx(Icon, { className: "segmented__item-icon", iconFillDisabled: iconFillDisabled, isDisabled: isDisabled, iconFill: iconFill, iconFillActive: iconFillActive, iconSize: iconSize, SvgImage: isActive
|
|
202
205
|
? item.iconBeforeActive || item.iconBefore
|
|
203
206
|
: item.iconBefore, isActive: isActive })) : null, item.label && (jsx(Text, { size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveHoverColor, textColorHover: labelTextHoverColor, textWrap: labelTextWrap, isActive: isActive, children: item.label })), item.icon || item.iconActive ? (jsx(Icon, { className: "segmented__item-icon", iconFillDisabled: iconFillDisabled, isDisabled: isDisabled, iconFill: iconFill, iconFillActive: iconFillActive, iconSize: iconSize, SvgImage: isActive ? item.iconActive || item.icon : item.icon, isActive: isActive })) : null, item.iconAfter || item.iconAfterActive ? (jsx(Icon, { className: "segmented__item-icon", iconFillDisabled: iconFillDisabled, isDisabled: isDisabled, iconFill: iconFill, iconFillActive: iconFillActive, iconSize: iconSize, SvgImage: isActive
|
|
204
207
|
? item.iconAfterActive || item.iconAfter
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import Select, { components } from 'react-select';
|
|
4
|
-
import { I as Icon, B as Badge } from '../
|
|
4
|
+
import { I as Icon, B as Badge } from '../Tooltip_es_ltCY-w4M.js';
|
|
5
5
|
import React, { useRef, useCallback, useEffect, useMemo } from 'react';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import CreatableSelect from 'react-select/creatable';
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { b as Title } from '../
|
|
7
|
+
import { b as Title } from '../Tooltip_es_ltCY-w4M.js';
|
|
8
8
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
package/dist/components/Tab.js
CHANGED
|
@@ -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 { B as Badge, I as Icon } from '../
|
|
7
|
+
import { B as Badge, I as Icon } from '../Tooltip_es_ltCY-w4M.js';
|
|
8
8
|
import { D as Divider } from '../Divider_es_kY-30pft.js';
|
|
9
9
|
import { L as Link } from '../Link_es_DxtZLeKY.js';
|
|
10
10
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
package/dist/components/Tile.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 { b as Title, B as Badge, I as Icon } from '../
|
|
6
|
+
import { b as Title, B as Badge, I as Icon } from '../Tooltip_es_ltCY-w4M.js';
|
|
7
7
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
8
8
|
import 'react';
|
|
9
9
|
import 'lodash/camelCase';
|
package/dist/components/Title.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as Title, d as titleAppearance, c as titleConfig } from '../
|
|
1
|
+
export { b as Title, d as titleAppearance, c as titleConfig } from '../Tooltip_es_ltCY-w4M.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../
|
|
1
|
+
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip_es_ltCY-w4M.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -12,6 +12,30 @@
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
+
.breadcrumbs__item {
|
|
16
|
+
&&_skeleton {
|
|
17
|
+
background-size: 200% !important;
|
|
18
|
+
border: none;
|
|
19
|
+
animation: breadCrumbsItemSkeleton 3s infinite linear !important;
|
|
20
|
+
background-image: linear-gradient(
|
|
21
|
+
90deg,
|
|
22
|
+
var(--color-surface-fill-secondary),
|
|
23
|
+
var(--color-surface-fill-tertiary),
|
|
24
|
+
var(--color-surface-fill-secondary)
|
|
25
|
+
) !important;
|
|
26
|
+
& * {
|
|
27
|
+
opacity: 0%;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
@keyframes breadCrumbsItemSkeleton {
|
|
32
|
+
0% {
|
|
33
|
+
background-position: 200%;
|
|
34
|
+
}
|
|
35
|
+
100% {
|
|
36
|
+
background-position: -200%;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
15
39
|
:root {
|
|
16
40
|
--breadcrumbs-item-xxl-gap: 8px;
|
|
17
41
|
--breadcrumbs-item-xl-gap: 8px;
|
|
@@ -302,6 +302,30 @@
|
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
+
.icon {
|
|
306
|
+
&&_skeleton {
|
|
307
|
+
background-size: 200% !important;
|
|
308
|
+
border: none;
|
|
309
|
+
animation: iconSkeleton 3s infinite linear !important;
|
|
310
|
+
background-image: linear-gradient(
|
|
311
|
+
90deg,
|
|
312
|
+
var(--color-surface-fill-secondary),
|
|
313
|
+
var(--color-surface-fill-tertiary),
|
|
314
|
+
var(--color-surface-fill-secondary)
|
|
315
|
+
) !important;
|
|
316
|
+
& * {
|
|
317
|
+
opacity: 0%;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
@keyframes iconSkeleton {
|
|
322
|
+
0% {
|
|
323
|
+
background-position: 200%;
|
|
324
|
+
}
|
|
325
|
+
100% {
|
|
326
|
+
background-position: -200%;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
305
329
|
.icon {
|
|
306
330
|
&__tooltip {
|
|
307
331
|
&.tooltip {
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
.menu-item {
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
|
+
&:hover {
|
|
5
|
+
^&__tooltip {
|
|
6
|
+
visibility: visible !important;
|
|
7
|
+
animation-duration: 0.2s !important;
|
|
8
|
+
animation-name: menuTooltipShowAnimation !important;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
4
11
|
&__wrapper {
|
|
5
12
|
width: 100%;
|
|
6
13
|
position: relative;
|
|
@@ -12,6 +19,30 @@
|
|
|
12
19
|
align-items: center;
|
|
13
20
|
flex-grow: 1;
|
|
14
21
|
}
|
|
22
|
+
^&__tooltip {
|
|
23
|
+
visibility: hidden !important;
|
|
24
|
+
animation-duration: 0.2s !important;
|
|
25
|
+
animation-name: menuTooltipHideAnimation !important;
|
|
26
|
+
opacity: 100% !important;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@keyframes menuTooltipShowAnimation {
|
|
32
|
+
0% {
|
|
33
|
+
visibility: hidden;
|
|
34
|
+
}
|
|
35
|
+
100% {
|
|
36
|
+
visibility: visible;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@keyframes menuTooltipHideAnimation {
|
|
41
|
+
0% {
|
|
42
|
+
visibility: visible;
|
|
43
|
+
}
|
|
44
|
+
100% {
|
|
45
|
+
visibility: hidden;
|
|
15
46
|
}
|
|
16
47
|
}
|
|
17
48
|
|
|
@@ -76,54 +76,6 @@
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
.notification__item {
|
|
80
|
-
&_status {
|
|
81
|
-
&_success {
|
|
82
|
-
/* background: var(--color-success-fill-primary);
|
|
83
|
-
^^&-wrapper {
|
|
84
|
-
^^^&-title {
|
|
85
|
-
color: var(--color-success-text-secondary);
|
|
86
|
-
}
|
|
87
|
-
^^^&-text {
|
|
88
|
-
color: var(--color-success-text-secondary);
|
|
89
|
-
}
|
|
90
|
-
} */
|
|
91
|
-
}
|
|
92
|
-
&_error {
|
|
93
|
-
/* background: var(--color-error-fill-primary);
|
|
94
|
-
^^&-wrapper {
|
|
95
|
-
^^^&-title {
|
|
96
|
-
color: var(--color-error-text-secondary);
|
|
97
|
-
}
|
|
98
|
-
^^^&-text {
|
|
99
|
-
color: var(--color-error-text-secondary);
|
|
100
|
-
}
|
|
101
|
-
} */
|
|
102
|
-
}
|
|
103
|
-
&_warning {
|
|
104
|
-
/* background: var(--color-primary-fill-primary);
|
|
105
|
-
^^&-wrapper {
|
|
106
|
-
^^^&-title {
|
|
107
|
-
color: var(--color-primary-text-primary);
|
|
108
|
-
}
|
|
109
|
-
^^^&-text {
|
|
110
|
-
color: var(--color-primary-text-primary);
|
|
111
|
-
}
|
|
112
|
-
} */
|
|
113
|
-
}
|
|
114
|
-
&_info {
|
|
115
|
-
/* background: var(--color-info-fill-primary);
|
|
116
|
-
^^&-wrapper {
|
|
117
|
-
^^^&-title {
|
|
118
|
-
color: var(--color-info-text-primary);
|
|
119
|
-
}
|
|
120
|
-
^^^&-text {
|
|
121
|
-
color: var(--color-info-text-primary);
|
|
122
|
-
}
|
|
123
|
-
} */
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
79
|
.notification__item {
|
|
128
80
|
min-width: 240px;
|
|
129
81
|
padding: 12px;
|