@itcase/ui 1.8.61 → 1.8.62
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_B-x-GK60.js → Avatar_cjs_g8d8LDkU.js} +2 -2
- package/dist/{Avatar_es_Dq-ngVWR.js → Avatar_es_DbH5Le9j.js} +2 -2
- package/dist/{Button_cjs_mbF1YhaZ.js → Button_cjs_BMCGsGKK.js} +10 -10
- package/dist/{Button_es_B2N3GsgJ.js → Button_es_CvkdyDHz.js} +10 -10
- package/dist/{ChipsGroup_cjs_BroKrFnn.js → ChipsGroup_cjs_BALOkFuT.js} +5 -5
- package/dist/{ChipsGroup_es_CCN4Bfnp.js → ChipsGroup_es_BIDq4idr.js} +5 -5
- package/dist/{DatePicker_cjs_CMgWyAQ0.js → DatePicker_cjs_EaIpF6cm.js} +4 -4
- package/dist/{DatePicker_es_CLJs86S9.js → DatePicker_es_Cq2jJkv0.js} +4 -4
- package/dist/{DropdownItem_cjs_DdjN_gRH.js → DropdownItem_cjs_DyjqXle_.js} +2 -2
- package/dist/{DropdownItem_es_DfEoMbef.js → DropdownItem_es_DHKJHW8q.js} +2 -2
- package/dist/{Group_cjs_DHNBxjH3.js → Group_cjs_D4QLNgcC.js} +2 -2
- package/dist/{Group_es_B2yGEJfj.js → Group_es_CruwH8Al.js} +2 -2
- package/dist/{Icon_cjs_O7ILYzgW.js → Icon_cjs_BsACgdjJ.js} +3 -3
- package/dist/{Icon_es_BGR9vYtq.js → Icon_es_CoIszJbl.js} +3 -3
- package/dist/{Label_cjs_eQIgvtt7.js → Label_cjs_QJ0WLQXG.js} +3 -3
- package/dist/{Label_es_BQDu9dwH.js → Label_es_WH-qJKvj.js} +3 -3
- package/dist/{Loader_cjs_DXJ1zsFJ.js → Loader_cjs_DlnM5Vzb.js} +16 -2
- package/dist/{Loader_es_D_NFpg8C.js → Loader_es_DhNCKZ8Y.js} +16 -2
- package/dist/{Overlay_cjs_BMrkRg7M.js → Overlay_cjs_B2KA85nC.js} +1 -1
- package/dist/{Overlay_es_D_izIIUB.js → Overlay_es_BvehRqIP.js} +1 -1
- package/dist/{Text_cjs_C-Ux7Tz5.js → Text_cjs_B8nNXWBA.js} +1 -1
- package/dist/{Text_es_BdFAdf7M.js → Text_es_BvmOR4nv.js} +1 -1
- package/dist/cjs/components/Accordion.js +2 -2
- package/dist/cjs/components/Avatar.js +3 -3
- package/dist/cjs/components/AvatarStack.js +4 -4
- package/dist/cjs/components/Badge.js +2 -2
- package/dist/cjs/components/Breadcrumbs.js +2 -2
- package/dist/cjs/components/Button.js +4 -4
- package/dist/cjs/components/Cell.js +3 -3
- package/dist/cjs/components/Checkbox.js +1 -1
- package/dist/cjs/components/Chips.js +3 -3
- package/dist/cjs/components/Choice.js +4 -4
- package/dist/cjs/components/CookiesWarning.js +4 -4
- package/dist/cjs/components/DatePeriod.js +7 -7
- package/dist/cjs/components/DatePicker.js +6 -6
- package/dist/cjs/components/Drawer.js +4 -4
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/Flex.js +2 -2
- package/dist/cjs/components/Grid.js +3 -3
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/HTMLContent.js +1 -1
- package/dist/cjs/components/HeroTitle.js +3 -3
- package/dist/cjs/components/Icon.js +2 -2
- package/dist/cjs/components/InputPassword.js +2 -2
- package/dist/cjs/components/Label.js +3 -3
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/MenuItem.js +2 -2
- package/dist/cjs/components/Modal.js +5 -5
- package/dist/cjs/components/ModalSheetBottom.js +1 -1
- package/dist/cjs/components/Notification.js +3 -3
- package/dist/cjs/components/Overlay.js +1 -1
- package/dist/cjs/components/Pagination.js +4 -4
- package/dist/cjs/components/Radio.js +1 -1
- package/dist/cjs/components/Response/img.js +4 -4
- package/dist/cjs/components/Response.js +12 -8
- package/dist/cjs/components/Search.js +3 -3
- package/dist/cjs/components/Segmented.js +2 -2
- package/dist/cjs/components/Select.js +3 -3
- package/dist/cjs/components/Swiper.js +2 -2
- package/dist/cjs/components/Switch.js +1 -1
- package/dist/cjs/components/Tab.js +4 -4
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Tile.js +3 -3
- package/dist/cjs/components/Title.js +2 -2
- package/dist/cjs/components/Tooltip.js +2 -2
- package/dist/cjs/components/Warning.js +2 -2
- package/dist/components/Accordion.js +2 -2
- package/dist/components/Avatar.js +3 -3
- package/dist/components/AvatarStack.js +4 -4
- package/dist/components/Badge.js +2 -2
- package/dist/components/Breadcrumbs.js +2 -2
- package/dist/components/Button.js +4 -4
- package/dist/components/Cell.js +3 -3
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Chips.js +3 -3
- package/dist/components/Choice.js +4 -4
- package/dist/components/CookiesWarning.js +4 -4
- package/dist/components/DatePeriod.js +7 -7
- package/dist/components/DatePicker.js +6 -6
- package/dist/components/Drawer.js +4 -4
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/Flex.js +2 -2
- package/dist/components/Grid.js +3 -3
- package/dist/components/Group.js +1 -1
- package/dist/components/HTMLContent.js +1 -1
- package/dist/components/HeroTitle.js +3 -3
- package/dist/components/Icon.js +2 -2
- package/dist/components/InputPassword.js +2 -2
- package/dist/components/Label.js +3 -3
- package/dist/components/Loader.js +2 -2
- package/dist/components/MenuItem.js +2 -2
- package/dist/components/Modal.js +5 -5
- package/dist/components/ModalSheetBottom.js +1 -1
- package/dist/components/Notification.js +3 -3
- package/dist/components/Overlay.js +1 -1
- package/dist/components/Pagination.js +4 -4
- package/dist/components/Radio.js +1 -1
- package/dist/components/Response/img.js +4 -4
- package/dist/components/Response.js +11 -8
- package/dist/components/Search.js +3 -3
- package/dist/components/Segmented.js +2 -2
- package/dist/components/Select.js +3 -3
- package/dist/components/Swiper.js +2 -2
- package/dist/components/Switch.js +1 -1
- package/dist/components/Tab.js +4 -4
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +3 -3
- package/dist/components/Title.js +2 -2
- package/dist/components/Tooltip.js +2 -2
- package/dist/components/Warning.js +2 -2
- package/dist/types/components/Button/appearance/buttonStyle.d.ts +4 -4
- package/dist/types/components/Loader/appearance/loaderStyle.d.ts +14 -0
- package/dist/types/components/Response/appearance/responceConfirm.d.ts +2 -0
- package/dist/types/components/Response/appearance/responseSuccess.d.ts +2 -2
- package/dist/types/components/Response/img/index.d.ts +4 -4
- package/dist/types/components/Response/index.d.ts +4 -2
- package/package.json +5 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { responseIcon } from './Response/img.js';
|
|
1
2
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
4
|
import { useMemo } from 'react';
|
|
@@ -6,9 +7,9 @@ import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
|
|
|
6
7
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
8
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
9
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
|
-
import { B as Button } from '../
|
|
10
|
-
import { G as Group } from '../
|
|
11
|
-
import { T as Text } from '../
|
|
10
|
+
import { B as Button } from '../Button_es_CvkdyDHz.js';
|
|
11
|
+
import { G as Group } from '../Group_es_CruwH8Al.js';
|
|
12
|
+
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
12
13
|
import '@itcase/common';
|
|
13
14
|
import '../context/UrlAssetPrefix.js';
|
|
14
15
|
import 'lodash/camelCase';
|
|
@@ -22,10 +23,10 @@ import 'react-responsive';
|
|
|
22
23
|
import '../utils/setViewportProperty.js';
|
|
23
24
|
import 'lodash/maxBy';
|
|
24
25
|
import '../hooks/useStyles/styleAttributes.js';
|
|
25
|
-
import '../
|
|
26
|
+
import '../Icon_es_CoIszJbl.js';
|
|
26
27
|
import 'react-inlinesvg';
|
|
27
28
|
import '../Link_es_BnUIX0QT.js';
|
|
28
|
-
import '../
|
|
29
|
+
import '../Loader_es_DhNCKZ8Y.js';
|
|
29
30
|
|
|
30
31
|
var responseAppearanceConfirm = {
|
|
31
32
|
confirm: {
|
|
@@ -34,6 +35,8 @@ var responseAppearanceConfirm = {
|
|
|
34
35
|
titleTextSize: 'xxl',
|
|
35
36
|
labelTextColor: 'surfaceTextPrimary',
|
|
36
37
|
descTextSize: 'm',
|
|
38
|
+
svgFill: 'surfaceTertiary',
|
|
39
|
+
svgPathFill: 'surfaceItemQuaternary',
|
|
37
40
|
primaryButtonAppearance: 'accentPrimary sizeXXL',
|
|
38
41
|
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
39
42
|
},
|
|
@@ -102,10 +105,10 @@ var responseAppearanceSuccess = {
|
|
|
102
105
|
titleTextSize: 'xxl',
|
|
103
106
|
labelTextColor: 'surfaceTextPrimary',
|
|
104
107
|
descTextSize: 'm',
|
|
108
|
+
svgFill: 'accentPrimary',
|
|
109
|
+
svgPathFill: 'accentItemPrimary',
|
|
105
110
|
primaryButtonAppearance: 'accentPrimary sizeXXL',
|
|
106
111
|
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
107
|
-
svgFill: 'surfaceTertiary',
|
|
108
|
-
svgPathFill: 'surfaceItemQuaternary',
|
|
109
112
|
},
|
|
110
113
|
};
|
|
111
114
|
|
|
@@ -178,7 +181,7 @@ var Response = urlWithAssetPrefix(function Response(props) {
|
|
|
178
181
|
}, [imageSrc, svgSrc, SvgImage, width, height, svgFillClass]);
|
|
179
182
|
// @ts-expect-error
|
|
180
183
|
var _a = useStyles(props), responseStyles = _a.styles, wrapperStyles = _a.wrapper;
|
|
181
|
-
return (jsxs("div", { className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), isSkeleton && "response_skeleton"),
|
|
184
|
+
return (jsxs("div", { dataTestId: dataTestId, dataTour: dataTour, className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), isSkeleton && "response_skeleton"), style: responseStyles, children: [before, jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [ImageComponent && (jsx("div", { className: clsx('response__image', svgFillClass && "svg_fill_".concat(svgFillClass), svgPathFillClass && "svg_path_fill_".concat(svgPathFillClass)), children: ImageComponent })), jsxs("div", { className: "response__wrapper-inner", children: [title && (jsx(Text, { className: "response__title", size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title })), desc && (jsx(Text, { className: "response__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] })] }), (primaryButtonLabel ||
|
|
182
185
|
primaryButton ||
|
|
183
186
|
secondaryButtonLabel ||
|
|
184
187
|
secondaryButton ||
|
|
@@ -6,8 +6,8 @@ import clsx from 'clsx';
|
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
|
-
import { I as Icon } from '../
|
|
10
|
-
import { T as Text } from '../
|
|
9
|
+
import { I as Icon } from '../Icon_es_CoIszJbl.js';
|
|
10
|
+
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
11
11
|
import { S as Scrollbar } from '../Scrollbar_es_CThJeCLF.js';
|
|
12
12
|
import 'lodash/camelCase';
|
|
13
13
|
import 'lodash/castArray';
|
|
@@ -178,7 +178,7 @@ var SearchInput = React.forwardRef(function SearchInput(props, ref) {
|
|
|
178
178
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
179
179
|
var size = propsGenerator.size, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, iconClear = propsGenerator.iconClear, iconClearFill = propsGenerator.iconClearFill, iconClearSize = propsGenerator.iconClearSize, iconClearSrc = propsGenerator.iconClearSrc, inputFillClass = propsGenerator.inputFillClass, inputShapeClass = propsGenerator.inputShapeClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, inputTextStyleClass = propsGenerator.inputTextStyleClass, inputTextWeightClass = propsGenerator.inputTextWeightClass, placeholderTextColor = propsGenerator.placeholderTextColor, placeholderTextSize = propsGenerator.placeholderTextSize, placeholderTextStyle = propsGenerator.placeholderTextStyle, placeholderTextWeight = propsGenerator.placeholderTextWeight, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass;
|
|
180
180
|
var searchInputStyles = useStyles(props).styles;
|
|
181
|
-
return (jsxs("label", { className: clsx(className, 'search-input', shapeClass && "search_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), widthClass && "width_".concat(widthClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), size && "search-input_size_".concat(size), type && "search-input_type_".concat(type), isSkeleton && "search-input_skeleton"),
|
|
181
|
+
return (jsxs("label", { className: clsx(className, 'search-input', shapeClass && "search_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), widthClass && "width_".concat(widthClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), size && "search-input_size_".concat(size), type && "search-input_type_".concat(type), isSkeleton && "search-input_skeleton"), dataTour: dataTour, style: searchInputStyles, children: [before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "search-input__icon search-input__icon-before", size: iconBeforeSize, iconFill: iconBeforeFill, imageSrc: iconBeforeSrc, SvgImage: iconBefore })), jsxs("div", { className: clsx('search-input__wrapper', inputFillClass && "fill_".concat(inputFillClass), inputShapeClass && "search-input_shape_".concat(inputShapeClass)), children: [jsx("input", { className: clsx('search-input__value', (inputTextSizeClass ||
|
|
182
182
|
inputTextWeightClass ||
|
|
183
183
|
inputTextColorClass ||
|
|
184
184
|
inputTextStyleClass) &&
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import React, { useRef, useMemo, createRef, useCallback, useEffect } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { I as Icon } from '../
|
|
4
|
+
import { I as Icon } from '../Icon_es_CoIszJbl.js';
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { T as Text } from '../
|
|
7
|
+
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
8
8
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'react-inlinesvg';
|
|
10
10
|
import '../hoc/urlWithAssetPrefix.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
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 '../Icon_es_CoIszJbl.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';
|
|
8
8
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
9
9
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
10
|
-
import { T as Text } from '../
|
|
11
|
-
import { G as Group } from '../
|
|
10
|
+
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
11
|
+
import { G as Group } from '../Group_es_CruwH8Al.js';
|
|
12
12
|
import { D as Divider } from '../Divider_es_CiRU0sTz.js';
|
|
13
13
|
import 'react-inlinesvg';
|
|
14
14
|
import '../hoc/urlWithAssetPrefix.js';
|
|
@@ -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 '../Icon_es_CoIszJbl.js';
|
|
8
8
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
@@ -23,7 +23,7 @@ import '../hoc/urlWithAssetPrefix.js';
|
|
|
23
23
|
import '../context/UrlAssetPrefix.js';
|
|
24
24
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
25
25
|
import '../Link_es_BnUIX0QT.js';
|
|
26
|
-
import '../
|
|
26
|
+
import '../Text_es_BvmOR4nv.js';
|
|
27
27
|
|
|
28
28
|
function Swiper(props) {
|
|
29
29
|
var id = props.id, className = props.className, direction = props.direction, title = props.title, titleAfter = props.titleAfter, titleSize = props.titleSize, titleTextColor = props.titleTextColor, titleWeight = props.titleWeight, setNextBtnDisabled = props.setNextBtnDisabled, setPrevBtnDisabled = props.setPrevBtnDisabled, _a = props.activeSlideIndex, activeSlideIndex = _a === void 0 ? 0 : _a, allowTouchMove = props.allowTouchMove, autoHeight = props.autoHeight, breakpoints = props.breakpoints, forwardedRef = props.forwardedRef, // https://github.com/vercel/next.js/issues/4957
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { T as Text } from '../
|
|
6
|
+
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
7
7
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
package/dist/components/Tab.js
CHANGED
|
@@ -4,10 +4,10 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
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 '../Icon_es_CoIszJbl.js';
|
|
8
8
|
import { D as Divider } from '../Divider_es_CiRU0sTz.js';
|
|
9
9
|
import { L as Link } from '../Link_es_BnUIX0QT.js';
|
|
10
|
-
import { T as Text } from '../
|
|
10
|
+
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
11
11
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
12
12
|
import 'lodash/camelCase';
|
|
13
13
|
import 'lodash/castArray';
|
|
@@ -213,7 +213,7 @@ function Tab(props) {
|
|
|
213
213
|
? borderColorHoverClass &&
|
|
214
214
|
"border-color_hover_".concat(borderColorHoverClass)
|
|
215
215
|
: borderColorActiveHoverClass &&
|
|
216
|
-
"border-color_active_hover_".concat(borderColorActiveHoverClass), sizeClass && "tab_size_".concat(sizeClass), shapeClass && "tab_shape_".concat(shapeClass), widthClass && "width_".concat(widthClass), justifyContentClass && "tab_justify-content_".concat(justifyContentClass), isSkeleton && "tab_skeleton", onClick && 'cursor_type_pointer'),
|
|
216
|
+
"border-color_active_hover_".concat(borderColorActiveHoverClass), sizeClass && "tab_size_".concat(sizeClass), shapeClass && "tab_shape_".concat(shapeClass), widthClass && "width_".concat(widthClass), justifyContentClass && "tab_justify-content_".concat(justifyContentClass), isSkeleton && "tab_skeleton", onClick && 'cursor_type_pointer'), dataTour: dataTour, style: tab, onClick: onClick, onMouseEnter: onMouseEnter, children: jsxs(Link, { className: clsx('tab__link', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), !isDisabled && 'cursor_type_pointer'), fill: linkFill, href: link || href, rel: rel, target: target, children: [before, children || (jsxs(React.Fragment, { children: [jsxs("div", { className: "tab__wrapper", children: [label && (jsx(Text, { className: "tab__label", size: labelTextSize, textAlign: labelTextAlign, textColor: labelTextColor, textColorActive: labelTextColorActive, textColorHover: labelTextColorHover, textColorHoverActive: labelTextColorActiveHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap, isDisabled: isDisabled, isActive: isActive, children: label })), badgeValue && (jsx(Badge, { appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (jsx(Icon, { className: clsx('tab__icon_after'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] }), jsx(Divider, { width: "fill", direction: "horizontal", size: dividerSize, fill: dividerFill, fillActive: dividerFillActive, fillActiveHover: dividerFillActiveHover, fillDisabled: dividerFillDisabled, fillHover: dividerFillHover, zIndex: "1", isDisabled: isDisabled, isActive: isActive })] })), after] }) }));
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
function TabGroup(props) {
|
|
@@ -222,7 +222,7 @@ function TabGroup(props) {
|
|
|
222
222
|
var directionClass = propsGenerator.directionClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
223
223
|
// @ts-expect-error
|
|
224
224
|
var _a = useStyles(props), groupStyles = _a.styles, groupWrapperStyles = _a.wrapper;
|
|
225
|
-
return (jsx("div", { className: clsx(className, 'tab-group', 'group', widthClass && "width_".concat(widthClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), fillClass && "fill_".concat(fillClass), horizontalScroll && 'group_type_horizontal_scroll', wrapClass && "group_wrap_".concat(wrapClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)),
|
|
225
|
+
return (jsx("div", { className: clsx(className, 'tab-group', 'group', widthClass && "width_".concat(widthClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), fillClass && "fill_".concat(fillClass), horizontalScroll && 'group_type_horizontal_scroll', wrapClass && "group_wrap_".concat(wrapClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), dataTestId: dataTestId, dataTour: dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsxs("div", { className: "tab-group__wrapper", style: groupWrapperStyles, children: [tabList === null || tabList === void 0 ? void 0 : tabList.map(function (item) { return (jsx(Tab, { appearance: tabAppearance, label: item.label, isActive: item.isActive }, item.key)); }), children] })) : (jsxs(React.Fragment, { children: [tabList === null || tabList === void 0 ? void 0 : tabList.map(function (item) { return (jsx(Tab, { appearance: tabAppearance, label: item.label, badgeValue: item.badgeValue, icon: item.icon, iconSrc: item.icon, isActive: item.isActive }, item.key)); }), children] })) }));
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
export { Tab, TabGroup, tabAppearance, tabConfig };
|
package/dist/components/Text.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { T as Text, a as textAppearance, t as textConfig } from '../
|
|
1
|
+
export { T as Text, a as textAppearance, t as textConfig } from '../Text_es_BvmOR4nv.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
package/dist/components/Tile.js
CHANGED
|
@@ -3,8 +3,8 @@ import clsx from 'clsx';
|
|
|
3
3
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
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 '../
|
|
7
|
-
import { T as Text } from '../
|
|
6
|
+
import { b as Title, B as Badge, I as Icon } from '../Icon_es_CoIszJbl.js';
|
|
7
|
+
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
8
8
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -141,7 +141,7 @@ function Tile(props) {
|
|
|
141
141
|
var alignClass = propsGenerator.alignClass, _a = propsGenerator.alignDirectionClass, alignDirectionClass = _a === void 0 ? 'vertical' : _a, fillClass = propsGenerator.fillClass, titleTextAlign = propsGenerator.titleTextAlign, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, titleTextWrap = propsGenerator.titleTextWrap, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, descTextWrap = propsGenerator.descTextWrap, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, badgeAppearance = propsGenerator.badgeAppearance, badgeAppearanceSize = propsGenerator.badgeAppearanceSize, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, icon = propsGenerator.icon, iconAppearance = propsGenerator.iconAppearance, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass;
|
|
142
142
|
// @ts-expect-error
|
|
143
143
|
var tileStyles = useStyles(props).styles;
|
|
144
|
-
return (jsx("div", { className: clsx('tile', className, fillClass && "fill_".concat(fillClass), shapeClass && "tile_shape_".concat(shapeClass), alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), direction && "direction_".concat(direction), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), reverse && 'tile_reverse', sizeClass && "tile_size_".concat(sizeClass), type && "tile_type_".concat(type), badgeValue && "tile_state_badge", isSkeleton && "tile_skeleton"),
|
|
144
|
+
return (jsx("div", { className: clsx('tile', className, fillClass && "fill_".concat(fillClass), shapeClass && "tile_shape_".concat(shapeClass), alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), direction && "direction_".concat(direction), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), reverse && 'tile_reverse', sizeClass && "tile_size_".concat(sizeClass), type && "tile_type_".concat(type), badgeValue && "tile_state_badge", isSkeleton && "tile_skeleton"), dataTestId: dataTestId, dataTour: dataTour, style: tileStyles, onClick: onClick, children: jsxs("div", { className: clsx('tile__wrapper', alignClass, alignDirectionClass), children: [before, jsxs("div", { className: "tile__header", children: [jsxs("div", { className: "tile__header-inner", children: [title && (jsx(Title, { className: "tile__title", size: titleTextSize, textAlign: titleTextAlign, textColor: titleTextColor, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), desc && (jsx(Text, { className: "tile__text", size: descTextSize, textColor: descTextColor, textWrap: descTextWrap, children: desc }))] }), jsxs("div", { className: "tile__header-actions", children: [badgeValue && (jsx(Badge, { className: "tile__badge", appearance: "".concat(badgeAppearance, " ").concat(badgeAppearanceSize), size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (jsx(Icon, { className: clsx('tile__icon'), appearance: iconAppearance, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] })] }), children, after] }) }));
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
export { Tile, tileAppearance, tileConfig };
|
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 '../Icon_es_CoIszJbl.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -22,4 +22,4 @@ import '../hooks/useStyles/useStyles.js';
|
|
|
22
22
|
import 'lodash/maxBy';
|
|
23
23
|
import '../hooks/useStyles/styleAttributes.js';
|
|
24
24
|
import '../Link_es_BnUIX0QT.js';
|
|
25
|
-
import '../
|
|
25
|
+
import '../Text_es_BvmOR4nv.js';
|
|
@@ -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 '../Icon_es_CoIszJbl.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -22,4 +22,4 @@ import '../hooks/useStyles/useStyles.js';
|
|
|
22
22
|
import 'lodash/maxBy';
|
|
23
23
|
import '../hooks/useStyles/styleAttributes.js';
|
|
24
24
|
import '../Link_es_BnUIX0QT.js';
|
|
25
|
-
import '../
|
|
25
|
+
import '../Text_es_BvmOR4nv.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useState, Fragment } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { I as Icon } from '../
|
|
5
|
-
import { T as Text } from '../
|
|
4
|
+
import { I as Icon } from '../Icon_es_CoIszJbl.js';
|
|
5
|
+
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
@@ -5,10 +5,10 @@ declare const responseAppearanceSuccess: {
|
|
|
5
5
|
titleTextSize: string;
|
|
6
6
|
labelTextColor: string;
|
|
7
7
|
descTextSize: string;
|
|
8
|
-
primaryButtonAppearance: string;
|
|
9
|
-
secondaryButtonAppearance: string;
|
|
10
8
|
svgFill: string;
|
|
11
9
|
svgPathFill: string;
|
|
10
|
+
primaryButtonAppearance: string;
|
|
11
|
+
secondaryButtonAppearance: string;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
export { responseAppearanceSuccess };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const responseIcon: {
|
|
2
|
+
Error: any;
|
|
2
3
|
Warning: any;
|
|
3
4
|
Success: any;
|
|
4
5
|
Confirm: any;
|
|
5
|
-
Search: any;
|
|
6
|
-
Error: any;
|
|
7
6
|
Fail: any;
|
|
8
7
|
NothingFound: any;
|
|
9
8
|
Refresh: any;
|
|
9
|
+
Search: any;
|
|
10
10
|
UnableLoadData: any;
|
|
11
11
|
};
|
|
12
|
-
export {
|
|
12
|
+
export { responseIcon };
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { responseIcon } from './img';
|
|
2
|
+
import { Response, responseConfig } from './Response';
|
|
3
|
+
import { responseAppearance } from './Response.appearance';
|
|
4
|
+
export { responseAppearance, responseIcon, Response, responseConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.62",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -103,11 +103,11 @@
|
|
|
103
103
|
"@emotion/is-prop-valid": "^1.3.1",
|
|
104
104
|
"@itcase/common": "^1.2.28",
|
|
105
105
|
"@itcase/icons": "^1.2.16",
|
|
106
|
-
"@itcase/storybook-config": "^1.1.
|
|
106
|
+
"@itcase/storybook-config": "^1.1.53",
|
|
107
107
|
"@itcase/tokens-am": "^1.1.19",
|
|
108
108
|
"@itcase/tokens-baikal": "^1.1.17",
|
|
109
109
|
"@itcase/tokens-palette": "^1.1.11",
|
|
110
|
-
"@storybook/addon-vitest": "^9.0.
|
|
110
|
+
"@storybook/addon-vitest": "^9.0.18",
|
|
111
111
|
"clsx": "^2.1.1",
|
|
112
112
|
"date-fns": "^4.1.0",
|
|
113
113
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"@commitlint/cli": "^19.8.1",
|
|
144
144
|
"@commitlint/config-conventional": "^19.8.1",
|
|
145
145
|
"@itcase/config": "^1.0.54",
|
|
146
|
-
"@itcase/lint": "^1.1.
|
|
146
|
+
"@itcase/lint": "^1.1.26",
|
|
147
147
|
"@itcase/types": "^1.0.6",
|
|
148
148
|
"@rollup/plugin-alias": "^5.1.1",
|
|
149
149
|
"@rollup/plugin-babel": "^6.0.4",
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
181
181
|
"rollup-preserve-directives": "^1.1.3",
|
|
182
182
|
"semantic-release": "^24.2.7",
|
|
183
|
-
"storybook": "^9.0.
|
|
183
|
+
"storybook": "^9.0.18",
|
|
184
184
|
"stylelint": "^16.22.0",
|
|
185
185
|
"typescript": "^5.8.3"
|
|
186
186
|
}
|