@itcase/ui 1.8.116 → 1.8.118
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_CQhA8iu9.js → Avatar_cjs_BKcQuqYV.js} +1 -1
- package/dist/{Avatar_es__NA_FQGM.js → Avatar_es_Cpn1PNmO.js} +1 -1
- package/dist/{Button_cjs_B2eZhvoC.js → Button_cjs_CvczxroQ.js} +3 -3
- package/dist/{Button_es_C8qinRU4.js → Button_es_BmbsQu5F.js} +3 -3
- package/dist/{ChipsGroup_cjs_ChJ71i_A.js → ChipsGroup_cjs_DhoY9YjT.js} +3 -3
- package/dist/{ChipsGroup_es_Dj0Lu5zm.js → ChipsGroup_es_Dg1GmJ-9.js} +3 -3
- package/dist/{DatePicker_cjs_CpN9wFK4.js → DatePicker_cjs_DYXNxuUF.js} +4 -4
- package/dist/{DatePicker_es_B6WjNDiN.js → DatePicker_es_lMIvYFM6.js} +4 -4
- package/dist/{DropdownItem_cjs_DUIefLij.js → DropdownItem_cjs_D3Mcbsxa.js} +1 -1
- package/dist/{DropdownItem_es_uFi08Joi.js → DropdownItem_es_BUs02mjJ.js} +1 -1
- package/dist/{Group_cjs_BxBk5T7A.js → Group_cjs_CsJ6ICKK.js} +1 -1
- package/dist/{Group_es_DIfmrMSM.js → Group_es_DRqIIM9m.js} +1 -1
- package/dist/{Icon_cjs_D-UNVTqI.js → Icon_cjs_CUArL1z2.js} +15 -15
- package/dist/{Icon_es_Cstv1LFr.js → Icon_es_CNrc90oI.js} +15 -15
- package/dist/{Input_cjs_D18gXu6j.js → Input_cjs_Du73R-wm.js} +1 -1
- package/dist/{Input_es_CHuhHbMo.js → Input_es_CiDHjDqJ.js} +1 -1
- package/dist/{Label_cjs_BvS_ANE3.js → Label_cjs_BUEGAnsq.js} +6 -6
- package/dist/{Label_es_C4Icioi8.js → Label_es_I01RN9hv.js} +6 -6
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/AvatarStack.js +3 -3
- 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.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/Dadata.js +1 -1
- package/dist/cjs/components/DatePeriod.js +6 -6
- package/dist/cjs/components/DatePicker.js +5 -5
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/Flex.js +2 -2
- package/dist/cjs/components/Grid.js +2 -2
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/HeroTitle.js +2 -2
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/Input.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 +1 -1
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/ModalSheetBottom.js +3 -3
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +7 -5
- package/dist/cjs/components/Response.js +4 -4
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented.js +3 -3
- package/dist/cjs/components/Select.js +2 -2
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Tile.js +5 -9
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/cjs/components/Warning.js +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +3 -3
- 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.js +1 -1
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/Dadata.js +1 -1
- package/dist/components/DatePeriod.js +6 -6
- package/dist/components/DatePicker.js +5 -5
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/Flex.js +2 -2
- package/dist/components/Grid.js +2 -2
- package/dist/components/Group.js +1 -1
- package/dist/components/HeroTitle.js +2 -2
- package/dist/components/Icon.js +1 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/MenuItem.js +1 -1
- package/dist/components/Modal.js +1 -1
- package/dist/components/ModalSheetBottom.js +3 -3
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +7 -5
- package/dist/components/Response.js +4 -4
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented.js +4 -4
- package/dist/components/Select.js +2 -2
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Tile.js +5 -9
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Warning.js +1 -1
- package/dist/css/components/Tooltip/Tooltip.css +0 -8
- package/dist/types/components/Icon/Icon.appearance.d.ts +7 -7
- package/dist/types/components/Icon/Icon.interface.d.ts +9 -9
- package/dist/types/components/Input/Input.appearance.d.ts +163 -2
- package/dist/types/components/Label/Label.appearance.d.ts +2262 -259
- package/dist/types/components/Label/Label.interface.d.ts +54 -45
- package/dist/types/components/Label/appearance/labelAccent.d.ts +2 -20
- package/dist/types/components/Label/appearance/labelDanger.d.ts +2 -16
- package/dist/types/components/Label/appearance/labelDisabled.d.ts +2 -16
- package/dist/types/components/Label/appearance/labelError.d.ts +2 -16
- package/dist/types/components/Label/appearance/labelGradient.d.ts +2 -9
- package/dist/types/components/Label/appearance/labelInfo.d.ts +2 -23
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +2 -16
- package/dist/types/components/Label/appearance/labelSecondary.d.ts +2 -16
- package/dist/types/components/Label/appearance/labelShape.d.ts +2 -24
- package/dist/types/components/Label/appearance/labelSize.d.ts +2 -58
- package/dist/types/components/Label/appearance/labelStyle.d.ts +2 -13
- package/dist/types/components/Label/appearance/labelSuccess.d.ts +2 -16
- package/dist/types/components/Label/appearance/labelSurface.d.ts +2 -28
- package/dist/types/components/Label/appearance/labelWarning.d.ts +2 -16
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +2 -0
- package/dist/types/components/Segmented/Segmented.d.ts +1 -2
- package/dist/types/components/Tooltip/Tooltip.appearance.d.ts +914 -2
- package/dist/types/components/Tooltip/Tooltip.d.ts +43 -2
- package/dist/types/components/Tooltip/Tooltip.interface.d.ts +42 -32
- package/dist/types/components/Tooltip/appearance/tooltipDefault.d.ts +2 -9
- package/dist/types/components/Tooltip/appearance/tooltipDisabled.d.ts +2 -8
- package/dist/types/components/Tooltip/appearance/tooltipError.d.ts +2 -9
- package/dist/types/components/Tooltip/appearance/tooltipRequire.d.ts +2 -9
- package/dist/types/components/Tooltip/appearance/tooltipSize.d.ts +2 -17
- package/dist/types/components/Tooltip/appearance/tooltipStyle.d.ts +2 -13
- package/dist/types/components/Tooltip/appearance/tooltipSuccess.d.ts +2 -9
- package/package.json +4 -4
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
7
7
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
|
-
var Icon = require('./
|
|
8
|
+
var Icon = require('./Icon_cjs_CUArL1z2.js');
|
|
9
9
|
var Image = require('./Image_cjs_B6YlGx8G.js');
|
|
10
10
|
var Text = require('./Text_cjs_0EINiUq4.js');
|
|
11
11
|
var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
|
|
@@ -3,7 +3,7 @@ import { useMemo } 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 { I as Icon, B as Badge } from './
|
|
6
|
+
import { I as Icon, B as Badge } from './Icon_es_CNrc90oI.js';
|
|
7
7
|
import { I as Image } from './Image_es_BvYo_cHH.js';
|
|
8
8
|
import { T as Text } from './Text_es_CwV9rjFD.js';
|
|
9
9
|
import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
|
-
var Icon = require('./
|
|
6
|
+
var Icon = require('./Icon_cjs_CUArL1z2.js');
|
|
7
7
|
var Link = require('./Link_cjs_C5UsZUiF.js');
|
|
8
8
|
var Loader = require('./Loader_cjs_Cme6Hi0B.js');
|
|
9
9
|
var Text = require('./Text_cjs_0EINiUq4.js');
|
|
@@ -462,13 +462,13 @@ var Button = React.forwardRef(function Button(props, ref) {
|
|
|
462
462
|
iconBefore ||
|
|
463
463
|
iconBeforeSrc ||
|
|
464
464
|
iconSrc;
|
|
465
|
-
return (jsxRuntime.jsx(Link.LinkWrapper, {
|
|
465
|
+
return (jsxRuntime.jsx(Link.LinkWrapper, { className: clsx(className, 'button', label && buttonTypeClass
|
|
466
466
|
? 'button_type_default'
|
|
467
467
|
: label
|
|
468
468
|
? 'buttom_type_label'
|
|
469
469
|
: buttonTypeClass
|
|
470
470
|
? 'button_type_icon'
|
|
471
|
-
: '', borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), sizeClass && "button_size_".concat(sizeClass), widthClass && "button_width_".concat(widthClass), elevationClass && "elevation_".concat(elevationClass), onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', isLoading && 'button_state_loading', isSkeleton && "button_skeleton"), type: htmlType, disabled: isDisabled, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxRuntime.jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsxRuntime.jsx(Loader.Loader, { className: clsx(className, 'button__loader', loaderShapeClass), type: loaderType, appearance: loaderAppearance, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon", size: iconSize, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (children || label) && (jsxRuntime.jsx(Text.Text, { className: "button__label", width: labelTextWidth, size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
|
|
471
|
+
: '', borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), sizeClass && "button_size_".concat(sizeClass), widthClass && "button_width_".concat(widthClass), elevationClass && "elevation_".concat(elevationClass), onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', isLoading && 'button_state_loading', isSkeleton && "button_skeleton"), type: htmlType, disabled: isDisabled, "data-test-id": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxRuntime.jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsxRuntime.jsx(Loader.Loader, { className: clsx(className, 'button__loader', loaderShapeClass), type: loaderType, appearance: loaderAppearance, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon", size: iconSize, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (children || label) && (jsxRuntime.jsx(Text.Text, { className: "button__label", width: labelTextWidth, size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "button__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
|
|
472
472
|
});
|
|
473
473
|
|
|
474
474
|
exports.Button = Button;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { I as Icon } from './
|
|
4
|
+
import { I as Icon } from './Icon_es_CNrc90oI.js';
|
|
5
5
|
import { a as LinkWrapper } from './Link_es_XiqbdwLp.js';
|
|
6
6
|
import { L as Loader } from './Loader_es_ByhTIMxS.js';
|
|
7
7
|
import { T as Text } from './Text_es_CwV9rjFD.js';
|
|
@@ -460,13 +460,13 @@ var Button = React.forwardRef(function Button(props, ref) {
|
|
|
460
460
|
iconBefore ||
|
|
461
461
|
iconBeforeSrc ||
|
|
462
462
|
iconSrc;
|
|
463
|
-
return (jsx(LinkWrapper, {
|
|
463
|
+
return (jsx(LinkWrapper, { className: clsx(className, 'button', label && buttonTypeClass
|
|
464
464
|
? 'button_type_default'
|
|
465
465
|
: label
|
|
466
466
|
? 'buttom_type_label'
|
|
467
467
|
: buttonTypeClass
|
|
468
468
|
? 'button_type_icon'
|
|
469
|
-
: '', borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), sizeClass && "button_size_".concat(sizeClass), widthClass && "button_width_".concat(widthClass), elevationClass && "elevation_".concat(elevationClass), onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', isLoading && 'button_state_loading', isSkeleton && "button_skeleton"), type: htmlType, disabled: isDisabled, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsx(Loader, { className: clsx(className, 'button__loader', loaderShapeClass), type: loaderType, appearance: loaderAppearance, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "button__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsx(Icon, { className: "button__icon", size: iconSize, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (children || label) && (jsx(Text, { className: "button__label", width: labelTextWidth, size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "button__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
|
|
469
|
+
: '', borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), sizeClass && "button_size_".concat(sizeClass), widthClass && "button_width_".concat(widthClass), elevationClass && "elevation_".concat(elevationClass), onClick && 'cursor_type_pointer', isDisabled && 'cursor_type_default', Badge && 'button_type_badge', isLoading && 'button_state_loading', isSkeleton && "button_skeleton"), type: htmlType, disabled: isDisabled, "data-test-id": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsx(Loader, { className: clsx(className, 'button__loader', loaderShapeClass), type: loaderType, appearance: loaderAppearance, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "button__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsx(Icon, { className: "button__icon", size: iconSize, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (children || label) && (jsx(Text, { className: "button__label", width: labelTextWidth, size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "button__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] }) }));
|
|
470
470
|
});
|
|
471
471
|
|
|
472
472
|
export { Button as B, buttonAppearance as a, buttonConfig as b };
|
|
@@ -5,7 +5,7 @@ var clsx = require('clsx');
|
|
|
5
5
|
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
6
6
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
8
|
-
var Icon = require('./
|
|
8
|
+
var Icon = require('./Icon_cjs_CUArL1z2.js');
|
|
9
9
|
var Text = require('./Text_cjs_0EINiUq4.js');
|
|
10
10
|
var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
|
|
11
11
|
|
|
@@ -307,7 +307,7 @@ function Chips(props) {
|
|
|
307
307
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
308
308
|
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, 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, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, badgeAppearance = propsGenerator.badgeAppearance, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, badgeValue = propsGenerator.badgeValue, cursorClass = propsGenerator.cursorClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillActiveIcon = propsGenerator.iconAfterFillActiveIcon, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillActiveIcon = propsGenerator.iconBeforeFillActiveIcon, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass;
|
|
309
309
|
var chipsStyles = useStyles.useStyles(props).styles;
|
|
310
|
-
return (jsxRuntime.jsx("div", {
|
|
310
|
+
return (jsxRuntime.jsx("div", { "data-test-id": dataTestId && "".concat(dataTestId, "Chips"), "data-tour": dataTour, className: clsx(className, 'chips', !isActive
|
|
311
311
|
? fillClass && "fill_".concat(fillClass)
|
|
312
312
|
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
313
313
|
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
@@ -320,7 +320,7 @@ function ChipsGroup(props) {
|
|
|
320
320
|
var directionClass = propsGenerator.directionClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, chipsAppearance = propsGenerator.chipsAppearance, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
321
321
|
// @ts-expect-error
|
|
322
322
|
var _a = useStyles.useStyles(props), groupStyles = _a.styles, groupWrapperStyles = _a.wrapper;
|
|
323
|
-
return (jsxRuntime.jsx("div", { className: clsx(className, 'chips-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)),
|
|
323
|
+
return (jsxRuntime.jsx("div", { className: clsx(className, 'chips-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)), "data-test-id": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsxRuntime.jsx("div", { className: "chips-group__wrapper", style: groupWrapperStyles, children: children
|
|
324
324
|
? children
|
|
325
325
|
: chipsList === null || chipsList === void 0 ? void 0 : chipsList.map(function (item) { return (jsxRuntime.jsx(Chips, { appearance: chipsAppearance, label: item.label, isDisabled: item.isDisabled, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, onClick: function () { return onClick(item); } }, item.id)); }) })) : children ? (children) : (chipsList === null || chipsList === void 0 ? void 0 : chipsList.map(function (item) { return (jsxRuntime.jsx(Chips, { appearance: chipsAppearance, label: item.label, isDisabled: item.isDisabled, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, onClick: function () { return onClick(item); } }, item.id)); })) }));
|
|
326
326
|
}
|
|
@@ -3,7 +3,7 @@ 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 { I as Icon, B as Badge } from './
|
|
6
|
+
import { I as Icon, B as Badge } from './Icon_es_CNrc90oI.js';
|
|
7
7
|
import { T as Text } from './Text_es_CwV9rjFD.js';
|
|
8
8
|
import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
|
|
@@ -305,7 +305,7 @@ function Chips(props) {
|
|
|
305
305
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
306
306
|
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, 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, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, badgeAppearance = propsGenerator.badgeAppearance, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, badgeValue = propsGenerator.badgeValue, cursorClass = propsGenerator.cursorClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillActiveIcon = propsGenerator.iconAfterFillActiveIcon, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillActiveIcon = propsGenerator.iconBeforeFillActiveIcon, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass;
|
|
307
307
|
var chipsStyles = useStyles(props).styles;
|
|
308
|
-
return (jsx("div", {
|
|
308
|
+
return (jsx("div", { "data-test-id": dataTestId && "".concat(dataTestId, "Chips"), "data-tour": dataTour, className: clsx(className, 'chips', !isActive
|
|
309
309
|
? fillClass && "fill_".concat(fillClass)
|
|
310
310
|
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
311
311
|
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
@@ -318,7 +318,7 @@ function ChipsGroup(props) {
|
|
|
318
318
|
var directionClass = propsGenerator.directionClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, chipsAppearance = propsGenerator.chipsAppearance, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
319
319
|
// @ts-expect-error
|
|
320
320
|
var _a = useStyles(props), groupStyles = _a.styles, groupWrapperStyles = _a.wrapper;
|
|
321
|
-
return (jsx("div", { className: clsx(className, 'chips-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)),
|
|
321
|
+
return (jsx("div", { className: clsx(className, 'chips-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)), "data-test-id": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsx("div", { className: "chips-group__wrapper", style: groupWrapperStyles, children: children
|
|
322
322
|
? children
|
|
323
323
|
: chipsList === null || chipsList === void 0 ? void 0 : chipsList.map(function (item) { return (jsx(Chips, { appearance: chipsAppearance, label: item.label, isDisabled: item.isDisabled, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, onClick: function () { return onClick(item); } }, item.id)); }) })) : children ? (children) : (chipsList === null || chipsList === void 0 ? void 0 : chipsList.map(function (item) { return (jsx(Chips, { appearance: chipsAppearance, label: item.label, isDisabled: item.isDisabled, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, onClick: function () { return onClick(item); } }, item.id)); })) }));
|
|
324
324
|
}
|
|
@@ -9,10 +9,10 @@ var DatePicker = require('react-datepicker');
|
|
|
9
9
|
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
10
10
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
11
11
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
12
|
-
var Button = require('./
|
|
13
|
-
var Icon = require('./
|
|
14
|
-
var Input = require('./
|
|
15
|
-
var Label = require('./
|
|
12
|
+
var Button = require('./Button_cjs_CvczxroQ.js');
|
|
13
|
+
var Icon = require('./Icon_cjs_CUArL1z2.js');
|
|
14
|
+
var Input = require('./Input_cjs_Du73R-wm.js');
|
|
15
|
+
var Label = require('./Label_cjs_BUEGAnsq.js');
|
|
16
16
|
var Text = require('./Text_cjs_0EINiUq4.js');
|
|
17
17
|
var _default = require('@itcase/icons/default');
|
|
18
18
|
|
|
@@ -7,10 +7,10 @@ import DatePicker from 'react-datepicker';
|
|
|
7
7
|
import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
8
8
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
9
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
10
|
-
import { B as Button } from './
|
|
11
|
-
import { I as Icon } from './
|
|
12
|
-
import { I as Input } from './
|
|
13
|
-
import { L as Label } from './
|
|
10
|
+
import { B as Button } from './Button_es_BmbsQu5F.js';
|
|
11
|
+
import { I as Icon } from './Icon_es_CNrc90oI.js';
|
|
12
|
+
import { I as Input } from './Input_es_CiDHjDqJ.js';
|
|
13
|
+
import { L as Label } from './Label_es_I01RN9hv.js';
|
|
14
14
|
import { T as Text } from './Text_es_CwV9rjFD.js';
|
|
15
15
|
import { icons14 } from '@itcase/icons/default';
|
|
16
16
|
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
8
|
-
var Icon = require('./
|
|
8
|
+
var Icon = require('./Icon_cjs_CUArL1z2.js');
|
|
9
9
|
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
10
10
|
var Divider = require('./Divider_cjs_DUYtmwn2.js');
|
|
11
11
|
var Text = require('./Text_cjs_0EINiUq4.js');
|
|
@@ -3,7 +3,7 @@ import React, { useRef, useState, useCallback, useEffect } from 'react';
|
|
|
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, B as Badge } from './
|
|
6
|
+
import { I as Icon, B as Badge } from './Icon_es_CNrc90oI.js';
|
|
7
7
|
import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
8
8
|
import { D as Divider } from './Divider_es_CCLBFIx6.js';
|
|
9
9
|
import { T as Text } from './Text_es_CwV9rjFD.js';
|
|
@@ -30,7 +30,7 @@ var Group = React.forwardRef(function Group(props, ref) {
|
|
|
30
30
|
var directionClass = propsGenerator.directionClass, flexGrowClass = propsGenerator.flexGrowClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorActiveClass = propsGenerator.borderColorActiveClass, borderColorActiveHoverClass = propsGenerator.borderColorActiveHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorHoverClass = propsGenerator.textColorHoverClass, columnsClass = propsGenerator.columnsClass, elevationClass = propsGenerator.elevationClass, heightClass = propsGenerator.heightClass, iconFillHoverClass = propsGenerator.iconFillHoverClass, shapeClass = propsGenerator.shapeClass, stackingClass = propsGenerator.stackingClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
31
31
|
// @ts-expect-error
|
|
32
32
|
var groupStyles = useStyles.useStyles(props).styles;
|
|
33
|
-
return (jsxRuntime.jsx(Tag, { id: id,
|
|
33
|
+
return (jsxRuntime.jsx(Tag, { id: id, "data-test-id": dataTestId, "data-tour": dataTour, className: clsx(className, 'group', widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), columnsClass && "group_columns_".concat(columnsClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), justifyContentClass && "justify-content_".concat(justifyContentClass), textColorClass && "group_text-color_".concat(textColorClass), textColorActiveClass &&
|
|
34
34
|
"group_text-color_active_".concat(textColorActiveClass), textColorHoverClass && "group_text-color_hover_".concat(textColorHoverClass), iconFillHoverClass && "group_icon_fill_hover_".concat(iconFillHoverClass), !isDisabled
|
|
35
35
|
? !isActive
|
|
36
36
|
? fillClass && "fill_".concat(fillClass)
|
|
@@ -28,7 +28,7 @@ var Group = React.forwardRef(function Group(props, ref) {
|
|
|
28
28
|
var directionClass = propsGenerator.directionClass, flexGrowClass = propsGenerator.flexGrowClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorActiveClass = propsGenerator.borderColorActiveClass, borderColorActiveHoverClass = propsGenerator.borderColorActiveHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorHoverClass = propsGenerator.textColorHoverClass, columnsClass = propsGenerator.columnsClass, elevationClass = propsGenerator.elevationClass, heightClass = propsGenerator.heightClass, iconFillHoverClass = propsGenerator.iconFillHoverClass, shapeClass = propsGenerator.shapeClass, stackingClass = propsGenerator.stackingClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
29
29
|
// @ts-expect-error
|
|
30
30
|
var groupStyles = useStyles(props).styles;
|
|
31
|
-
return (jsx(Tag, { id: id,
|
|
31
|
+
return (jsx(Tag, { id: id, "data-test-id": dataTestId, "data-tour": dataTour, className: clsx(className, 'group', widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), columnsClass && "group_columns_".concat(columnsClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), justifyContentClass && "justify-content_".concat(justifyContentClass), textColorClass && "group_text-color_".concat(textColorClass), textColorActiveClass &&
|
|
32
32
|
"group_text-color_active_".concat(textColorActiveClass), textColorHoverClass && "group_text-color_hover_".concat(textColorHoverClass), iconFillHoverClass && "group_icon_fill_hover_".concat(iconFillHoverClass), !isDisabled
|
|
33
33
|
? !isActive
|
|
34
34
|
? fillClass && "fill_".concat(fillClass)
|
|
@@ -525,7 +525,7 @@ function Title(props) {
|
|
|
525
525
|
}
|
|
526
526
|
return size ? size : 'span';
|
|
527
527
|
}, [tag, size]);
|
|
528
|
-
return (jsxRuntime.jsxs(Tag, {
|
|
528
|
+
return (jsxRuntime.jsxs(Tag, { className: clsx(className, 'title', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillClass), svgFillClass && "svg_fill_".concat(svgFillClass), svgFillHoverClass && "svg_fill_hover_".concat(svgFillHoverClass), widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), size && "title_size_".concat(size), directionClass && "title_direction_".concat(directionClass), isDisabled &&
|
|
529
529
|
textColorDisabledClass &&
|
|
530
530
|
"text-color_".concat(textColorDisabledClass), !isActive &&
|
|
531
531
|
!isDisabled &&
|
|
@@ -539,24 +539,24 @@ function Title(props) {
|
|
|
539
539
|
"text-color_hover_".concat(textColorHoverClass), isActive &&
|
|
540
540
|
!isDisabled &&
|
|
541
541
|
textColorActiveHoverClass &&
|
|
542
|
-
"text-color_active_hover".concat(textColorActiveHoverClass), textStyleClass && "text-style_".concat(textStyleClass), textWeightClass && "text-weight_".concat(textWeightClass), textWrap && "word-wrap_".concat(textWrap), iconBadgeValue && 'title_badge', isSkeleton && 'title_skeleton'), style: titleStyles, onClick: onClick, children: [before, jsxRuntime.jsxs("span", { className: clsx(textAlignClass && "text-align_".concat(textAlignClass), wrapperDirectionClass && "title_direction_".concat(wrapperDirectionClass), 'title__wrapper', textTruncateClass && "text-truncate_".concat(textTruncateClass)), style: titleWrapperStyles, children: [(iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon, { className: clsx('title__icon_before', iconBadgeValue && 'title__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), beforeWrapper, children || text, afterWrapper, (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon, { className: clsx('title__icon_after', iconBadgeValue && 'title__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_after_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] }), after] }));
|
|
542
|
+
"text-color_active_hover".concat(textColorActiveHoverClass), textStyleClass && "text-style_".concat(textStyleClass), textWeightClass && "text-weight_".concat(textWeightClass), textWrap && "word-wrap_".concat(textWrap), iconBadgeValue && 'title_badge', isSkeleton && 'title_skeleton'), "data-test-id": dataTestId, "data-tour": dataTour, style: titleStyles, onClick: onClick, children: [before, jsxRuntime.jsxs("span", { className: clsx(textAlignClass && "text-align_".concat(textAlignClass), wrapperDirectionClass && "title_direction_".concat(wrapperDirectionClass), 'title__wrapper', textTruncateClass && "text-truncate_".concat(textTruncateClass)), style: titleWrapperStyles, children: [(iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon, { className: clsx('title__icon_before', iconBadgeValue && 'title__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), beforeWrapper, children || text, afterWrapper, (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon, { className: clsx('title__icon_after', iconBadgeValue && 'title__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_after_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] }), after] }));
|
|
543
543
|
}
|
|
544
544
|
|
|
545
545
|
var tooltipAppearanceDefault = {
|
|
546
546
|
defaultPrimary: {
|
|
547
547
|
fill: 'surfacePrimary',
|
|
548
|
-
fillHover: '
|
|
549
|
-
titleTextColor: 'surfaceTextPrimary',
|
|
548
|
+
fillHover: 'surfaceHoverPrimary',
|
|
550
549
|
borderColor: 'surfaceBorderPrimary',
|
|
550
|
+
titleColor: 'surfaceTextPrimary',
|
|
551
551
|
textColor: 'surfaceTextPrimary',
|
|
552
552
|
},
|
|
553
553
|
};
|
|
554
554
|
|
|
555
555
|
var tooltipAppearanceDisabled = {
|
|
556
556
|
disabledPrimary: {
|
|
557
|
-
fill: '
|
|
558
|
-
fillHover: '
|
|
559
|
-
|
|
557
|
+
fill: 'disabledPrimary',
|
|
558
|
+
fillHover: 'disabledHoverPrimary',
|
|
559
|
+
titleColor: 'surfaceTextPrimary',
|
|
560
560
|
textColor: 'surfaceTextPrimary',
|
|
561
561
|
},
|
|
562
562
|
};
|
|
@@ -564,9 +564,9 @@ var tooltipAppearanceDisabled = {
|
|
|
564
564
|
var tooltipAppearanceError = {
|
|
565
565
|
errorPrimary: {
|
|
566
566
|
fill: 'errorPrimary',
|
|
567
|
-
fillHover: '
|
|
568
|
-
titleTextColor: 'errorTextPrimary',
|
|
567
|
+
fillHover: 'errorHoverPrimary',
|
|
569
568
|
borderColor: 'errorBorderPrimary',
|
|
569
|
+
titleColor: 'errorTextPrimary',
|
|
570
570
|
textColor: 'errorTextPrimary',
|
|
571
571
|
},
|
|
572
572
|
};
|
|
@@ -574,9 +574,9 @@ var tooltipAppearanceError = {
|
|
|
574
574
|
var tooltipAppearanceRequire = {
|
|
575
575
|
requirePrimary: {
|
|
576
576
|
fill: 'warningPrimary',
|
|
577
|
-
fillHover: '
|
|
578
|
-
titleTextColor: 'warningTextPrimary',
|
|
577
|
+
fillHover: 'warningHoverPrimary',
|
|
579
578
|
borderColor: 'warningBorderPrimary',
|
|
579
|
+
titleColor: 'warningTextPrimary',
|
|
580
580
|
textColor: 'warningTextPrimary',
|
|
581
581
|
},
|
|
582
582
|
};
|
|
@@ -616,9 +616,9 @@ var tooltipAppearanceStyle = {
|
|
|
616
616
|
var tooltipAppearanceSuccess = {
|
|
617
617
|
successPrimary: {
|
|
618
618
|
fill: 'successPrimary',
|
|
619
|
-
fillHover: '
|
|
620
|
-
titleTextColor: 'successTextPrimary',
|
|
619
|
+
fillHover: 'successHoverPrimary',
|
|
621
620
|
borderColor: 'successBorderPrimary',
|
|
621
|
+
titleColor: 'successTextPrimary',
|
|
622
622
|
textColor: 'successTextPrimary',
|
|
623
623
|
},
|
|
624
624
|
};
|
|
@@ -680,10 +680,10 @@ var Tooltip = React.forwardRef(function Tooltip(props, ref) {
|
|
|
680
680
|
}); }, [isTooltipVisible, openTooltip, closeTooltip]);
|
|
681
681
|
var appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, tooltipConfig);
|
|
682
682
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
683
|
-
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignmentClass = propsGenerator.alignmentClass, alignPosition = propsGenerator.alignPosition, fillClass = propsGenerator.fillClass,
|
|
683
|
+
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignmentClass = propsGenerator.alignmentClass, alignPosition = propsGenerator.alignPosition, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, titleColor = propsGenerator.titleColor, titleSize = propsGenerator.titleSize, titleWeight = propsGenerator.titleWeight, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWeight = propsGenerator.textWeight, arrowPosition = propsGenerator.arrowPosition, centeringClass = propsGenerator.centeringClass, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
684
684
|
// @ts-expect-error
|
|
685
685
|
var tooltipStyles = useStyles.useStyles(props).styles;
|
|
686
|
-
return (jsxRuntime.jsxs("div", { className: clsx(className, 'tooltip', isTooltipVisible ? 'tooltip_state_open' : 'tooltip_state_close', fillClass && "fill_".concat(fillClass),
|
|
686
|
+
return (jsxRuntime.jsxs("div", { className: clsx(className, 'tooltip', isTooltipVisible ? 'tooltip_state_open' : 'tooltip_state_close', fillClass && "fill_".concat(fillClass), alignPosition && "tooltip_align-position_".concat(alignPosition), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), elevationClass && "elevation_".concat(elevationClass), centeringClass && "centering_".concat(centeringClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), alignmentClass && "alignment_".concat(alignmentClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "tooltip_size_".concat(sizeClass), isSkeleton && 'tooltip_skeleton', widthClass && "width_".concat(widthClass)), ref: tooltipElementRef, style: tooltipStyles, onAnimationEnd: onAnimationEnd, children: [jsxRuntime.jsx("div", { className: clsx('tooltip__arrow', arrowPosition && "tooltip__arrow_position_".concat(arrowPosition), fillClass && "fill_".concat(fillClass)), children: "\u00A0" }), before, jsxRuntime.jsxs("div", { className: "tooltip__inner", children: [title && (jsxRuntime.jsx(Title, { className: "tooltip__title text", size: titleSize, textColor: titleColor, textWeight: titleWeight, children: title })), text && (jsxRuntime.jsx(Text.Text, { className: "tooltip__text", size: textSize, textColor: textColor, textWeight: textWeight, children: text })), children] }), after] }));
|
|
687
687
|
});
|
|
688
688
|
|
|
689
689
|
var iconAppearanceAccent = {
|
|
@@ -523,7 +523,7 @@ function Title(props) {
|
|
|
523
523
|
}
|
|
524
524
|
return size ? size : 'span';
|
|
525
525
|
}, [tag, size]);
|
|
526
|
-
return (jsxs(Tag, {
|
|
526
|
+
return (jsxs(Tag, { className: clsx(className, 'title', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillClass), svgFillClass && "svg_fill_".concat(svgFillClass), svgFillHoverClass && "svg_fill_hover_".concat(svgFillHoverClass), widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), size && "title_size_".concat(size), directionClass && "title_direction_".concat(directionClass), isDisabled &&
|
|
527
527
|
textColorDisabledClass &&
|
|
528
528
|
"text-color_".concat(textColorDisabledClass), !isActive &&
|
|
529
529
|
!isDisabled &&
|
|
@@ -537,24 +537,24 @@ function Title(props) {
|
|
|
537
537
|
"text-color_hover_".concat(textColorHoverClass), isActive &&
|
|
538
538
|
!isDisabled &&
|
|
539
539
|
textColorActiveHoverClass &&
|
|
540
|
-
"text-color_active_hover".concat(textColorActiveHoverClass), textStyleClass && "text-style_".concat(textStyleClass), textWeightClass && "text-weight_".concat(textWeightClass), textWrap && "word-wrap_".concat(textWrap), iconBadgeValue && 'title_badge', isSkeleton && 'title_skeleton'), style: titleStyles, onClick: onClick, children: [before, jsxs("span", { className: clsx(textAlignClass && "text-align_".concat(textAlignClass), wrapperDirectionClass && "title_direction_".concat(wrapperDirectionClass), 'title__wrapper', textTruncateClass && "text-truncate_".concat(textTruncateClass)), style: titleWrapperStyles, children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('title__icon_before', iconBadgeValue && 'title__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), beforeWrapper, children || text, afterWrapper, (iconAfter || iconAfterSrc) && (jsx(Icon, { className: clsx('title__icon_after', iconBadgeValue && 'title__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_after_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] }), after] }));
|
|
540
|
+
"text-color_active_hover".concat(textColorActiveHoverClass), textStyleClass && "text-style_".concat(textStyleClass), textWeightClass && "text-weight_".concat(textWeightClass), textWrap && "word-wrap_".concat(textWrap), iconBadgeValue && 'title_badge', isSkeleton && 'title_skeleton'), "data-test-id": dataTestId, "data-tour": dataTour, style: titleStyles, onClick: onClick, children: [before, jsxs("span", { className: clsx(textAlignClass && "text-align_".concat(textAlignClass), wrapperDirectionClass && "title_direction_".concat(wrapperDirectionClass), 'title__wrapper', textTruncateClass && "text-truncate_".concat(textTruncateClass)), style: titleWrapperStyles, children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('title__icon_before', iconBadgeValue && 'title__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), beforeWrapper, children || text, afterWrapper, (iconAfter || iconAfterSrc) && (jsx(Icon, { className: clsx('title__icon_after', iconBadgeValue && 'title__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_after_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] }), after] }));
|
|
541
541
|
}
|
|
542
542
|
|
|
543
543
|
var tooltipAppearanceDefault = {
|
|
544
544
|
defaultPrimary: {
|
|
545
545
|
fill: 'surfacePrimary',
|
|
546
|
-
fillHover: '
|
|
547
|
-
titleTextColor: 'surfaceTextPrimary',
|
|
546
|
+
fillHover: 'surfaceHoverPrimary',
|
|
548
547
|
borderColor: 'surfaceBorderPrimary',
|
|
548
|
+
titleColor: 'surfaceTextPrimary',
|
|
549
549
|
textColor: 'surfaceTextPrimary',
|
|
550
550
|
},
|
|
551
551
|
};
|
|
552
552
|
|
|
553
553
|
var tooltipAppearanceDisabled = {
|
|
554
554
|
disabledPrimary: {
|
|
555
|
-
fill: '
|
|
556
|
-
fillHover: '
|
|
557
|
-
|
|
555
|
+
fill: 'disabledPrimary',
|
|
556
|
+
fillHover: 'disabledHoverPrimary',
|
|
557
|
+
titleColor: 'surfaceTextPrimary',
|
|
558
558
|
textColor: 'surfaceTextPrimary',
|
|
559
559
|
},
|
|
560
560
|
};
|
|
@@ -562,9 +562,9 @@ var tooltipAppearanceDisabled = {
|
|
|
562
562
|
var tooltipAppearanceError = {
|
|
563
563
|
errorPrimary: {
|
|
564
564
|
fill: 'errorPrimary',
|
|
565
|
-
fillHover: '
|
|
566
|
-
titleTextColor: 'errorTextPrimary',
|
|
565
|
+
fillHover: 'errorHoverPrimary',
|
|
567
566
|
borderColor: 'errorBorderPrimary',
|
|
567
|
+
titleColor: 'errorTextPrimary',
|
|
568
568
|
textColor: 'errorTextPrimary',
|
|
569
569
|
},
|
|
570
570
|
};
|
|
@@ -572,9 +572,9 @@ var tooltipAppearanceError = {
|
|
|
572
572
|
var tooltipAppearanceRequire = {
|
|
573
573
|
requirePrimary: {
|
|
574
574
|
fill: 'warningPrimary',
|
|
575
|
-
fillHover: '
|
|
576
|
-
titleTextColor: 'warningTextPrimary',
|
|
575
|
+
fillHover: 'warningHoverPrimary',
|
|
577
576
|
borderColor: 'warningBorderPrimary',
|
|
577
|
+
titleColor: 'warningTextPrimary',
|
|
578
578
|
textColor: 'warningTextPrimary',
|
|
579
579
|
},
|
|
580
580
|
};
|
|
@@ -614,9 +614,9 @@ var tooltipAppearanceStyle = {
|
|
|
614
614
|
var tooltipAppearanceSuccess = {
|
|
615
615
|
successPrimary: {
|
|
616
616
|
fill: 'successPrimary',
|
|
617
|
-
fillHover: '
|
|
618
|
-
titleTextColor: 'successTextPrimary',
|
|
617
|
+
fillHover: 'successHoverPrimary',
|
|
619
618
|
borderColor: 'successBorderPrimary',
|
|
619
|
+
titleColor: 'successTextPrimary',
|
|
620
620
|
textColor: 'successTextPrimary',
|
|
621
621
|
},
|
|
622
622
|
};
|
|
@@ -678,10 +678,10 @@ var Tooltip = React.forwardRef(function Tooltip(props, ref) {
|
|
|
678
678
|
}); }, [isTooltipVisible, openTooltip, closeTooltip]);
|
|
679
679
|
var appearanceConfig = useAppearanceConfig(appearance, tooltipConfig);
|
|
680
680
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
681
|
-
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignmentClass = propsGenerator.alignmentClass, alignPosition = propsGenerator.alignPosition, fillClass = propsGenerator.fillClass,
|
|
681
|
+
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignmentClass = propsGenerator.alignmentClass, alignPosition = propsGenerator.alignPosition, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, titleColor = propsGenerator.titleColor, titleSize = propsGenerator.titleSize, titleWeight = propsGenerator.titleWeight, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWeight = propsGenerator.textWeight, arrowPosition = propsGenerator.arrowPosition, centeringClass = propsGenerator.centeringClass, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
682
682
|
// @ts-expect-error
|
|
683
683
|
var tooltipStyles = useStyles(props).styles;
|
|
684
|
-
return (jsxs("div", { className: clsx(className, 'tooltip', isTooltipVisible ? 'tooltip_state_open' : 'tooltip_state_close', fillClass && "fill_".concat(fillClass),
|
|
684
|
+
return (jsxs("div", { className: clsx(className, 'tooltip', isTooltipVisible ? 'tooltip_state_open' : 'tooltip_state_close', fillClass && "fill_".concat(fillClass), alignPosition && "tooltip_align-position_".concat(alignPosition), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), elevationClass && "elevation_".concat(elevationClass), centeringClass && "centering_".concat(centeringClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), alignmentClass && "alignment_".concat(alignmentClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "tooltip_size_".concat(sizeClass), isSkeleton && 'tooltip_skeleton', widthClass && "width_".concat(widthClass)), ref: tooltipElementRef, style: tooltipStyles, onAnimationEnd: onAnimationEnd, children: [jsx("div", { className: clsx('tooltip__arrow', arrowPosition && "tooltip__arrow_position_".concat(arrowPosition), fillClass && "fill_".concat(fillClass)), children: "\u00A0" }), before, jsxs("div", { className: "tooltip__inner", children: [title && (jsx(Title, { className: "tooltip__title text", size: titleSize, textColor: titleColor, textWeight: titleWeight, children: title })), text && (jsx(Text, { className: "tooltip__text", size: textSize, textColor: textColor, textWeight: textWeight, children: text })), children] }), after] }));
|
|
685
685
|
});
|
|
686
686
|
|
|
687
687
|
var iconAppearanceAccent = {
|
|
@@ -206,7 +206,7 @@ var Input = React.forwardRef(function Input(props, ref) {
|
|
|
206
206
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
207
207
|
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderWidthClass = propsGenerator.borderWidthClass, textColorClass = propsGenerator.textColorClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
208
208
|
return (jsxRuntime.jsx("input", { id: String(id), className: clsx(className, 'input', type === 'number' && 'input_type_number', isDisabled && 'input_state_disabled', (textSizeClass || textColorClass || textWeightClass) && 'text', caretClass && "caret-color_".concat(caretClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), textColorClass && "text-color_".concat(textColorClass), textSizeClass && "text_size_".concat(textSizeClass), textWeightClass && "text-weight_".concat(textWeightClass), widthClass && "width_".concat(widthClass), sizeClass && "input_size_".concat(sizeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderColorClass && "border-color_".concat(borderColorClass), placeholderTextColorClass &&
|
|
209
|
-
"placeholder-text-color_".concat(placeholderTextColorClass), textColorClass && "text-color_".concat(textColorClass)), type: type, ref: ref, disabled: isDisabled,
|
|
209
|
+
"placeholder-text-color_".concat(placeholderTextColorClass), textColorClass && "text-color_".concat(textColorClass)), type: type, ref: ref, disabled: isDisabled, autoComplete: autocomplete, "data-test-id": dataTestId || (name ? "".concat(name, "Input") : 'input'), index: index, placeholder: placeholder, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }));
|
|
210
210
|
});
|
|
211
211
|
|
|
212
212
|
exports.Input = Input;
|
|
@@ -204,7 +204,7 @@ var Input = React.forwardRef(function Input(props, ref) {
|
|
|
204
204
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
205
205
|
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderWidthClass = propsGenerator.borderWidthClass, textColorClass = propsGenerator.textColorClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
206
206
|
return (jsx("input", { id: String(id), className: clsx(className, 'input', type === 'number' && 'input_type_number', isDisabled && 'input_state_disabled', (textSizeClass || textColorClass || textWeightClass) && 'text', caretClass && "caret-color_".concat(caretClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), textColorClass && "text-color_".concat(textColorClass), textSizeClass && "text_size_".concat(textSizeClass), textWeightClass && "text-weight_".concat(textWeightClass), widthClass && "width_".concat(widthClass), sizeClass && "input_size_".concat(sizeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderColorClass && "border-color_".concat(borderColorClass), placeholderTextColorClass &&
|
|
207
|
-
"placeholder-text-color_".concat(placeholderTextColorClass), textColorClass && "text-color_".concat(textColorClass)), type: type, ref: ref, disabled: isDisabled,
|
|
207
|
+
"placeholder-text-color_".concat(placeholderTextColorClass), textColorClass && "text-color_".concat(textColorClass)), type: type, ref: ref, disabled: isDisabled, autoComplete: autocomplete, "data-test-id": dataTestId || (name ? "".concat(name, "Input") : 'input'), index: index, placeholder: placeholder, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }));
|
|
208
208
|
});
|
|
209
209
|
|
|
210
210
|
export { Input as I, inputAppearance as a, inputConfig as i };
|
|
@@ -6,22 +6,22 @@ var clsx = require('clsx');
|
|
|
6
6
|
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
7
7
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
9
|
-
var Icon = require('./
|
|
9
|
+
var Icon = require('./Icon_cjs_CUArL1z2.js');
|
|
10
10
|
var Text = require('./Text_cjs_0EINiUq4.js');
|
|
11
11
|
var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
|
|
12
12
|
|
|
13
13
|
var labelAppearanceAccent = {
|
|
14
14
|
accentMutedPrimary: {
|
|
15
15
|
fill: 'accentTertiary',
|
|
16
|
-
labelTextColor: 'accentTextQuaternary',
|
|
17
16
|
borderColor: 'accentBorderSecondary',
|
|
17
|
+
labelTextColor: 'accentTextQuaternary',
|
|
18
18
|
iconAfterFillIcon: 'accentItemQuaternary',
|
|
19
19
|
iconBeforeFillIcon: 'accentItemQuaternary',
|
|
20
20
|
},
|
|
21
21
|
accentPrimary: {
|
|
22
22
|
fill: 'accentPrimary',
|
|
23
|
-
labelTextColor: 'accentTextPrimary',
|
|
24
23
|
borderColor: 'accentBorderSecondary',
|
|
24
|
+
labelTextColor: 'accentTextPrimary',
|
|
25
25
|
iconAfterFillIcon: 'accentItemPrimary',
|
|
26
26
|
iconBeforeFillIcon: 'accentItemPrimary',
|
|
27
27
|
},
|
|
@@ -320,7 +320,7 @@ var labelConfig = {
|
|
|
320
320
|
},
|
|
321
321
|
};
|
|
322
322
|
function Label(props) {
|
|
323
|
-
var dataTour = props.dataTour, className = props.className, appearance = props.appearance, label = props.label, cursor = props.cursor,
|
|
323
|
+
var dataTestId = props.dataTestId, dataTour = props.dataTour, className = props.className, appearance = props.appearance, label = props.label, isDisabled = props.isDisabled, cursor = props.cursor, tooltipContent = props.tooltipContent, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
|
|
324
324
|
var tooltipRef = React.useRef(null);
|
|
325
325
|
var onMouseEnterLabel = React.useCallback(function () {
|
|
326
326
|
var _a;
|
|
@@ -332,10 +332,10 @@ function Label(props) {
|
|
|
332
332
|
}, []);
|
|
333
333
|
var appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, labelConfig, isDisabled);
|
|
334
334
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
335
|
-
var alignClass = propsGenerator.alignClass,
|
|
335
|
+
var alignClass = propsGenerator.alignClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, 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, tooltipAlignment = propsGenerator.tooltipAlignment, tooltipAppearance = propsGenerator.tooltipAppearance, tooltipArrowPosition = propsGenerator.tooltipArrowPosition, tooltipText = propsGenerator.tooltipText, tooltipTextSize = propsGenerator.tooltipTextSize, tooltipTextWeight = propsGenerator.tooltipTextWeight, tooltipTitle = propsGenerator.tooltipTitle, tooltipTitleSize = propsGenerator.tooltipTitleSize, tooltipTitleWeight = propsGenerator.tooltipTitleWeight, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
336
336
|
// @ts-expect-error
|
|
337
337
|
var labelStyles = useStyles.useStyles(props).styles;
|
|
338
|
-
return (jsxRuntime.jsxs("div", {
|
|
338
|
+
return (jsxRuntime.jsxs("div", { className: clsx(className, 'label', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "label_size_".concat(sizeClass), wrapClass && "word-wrap_".concat(wrapClass), widthClass && "label_width_".concat(widthClass), alignClass && "align_".concat(alignClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), isSkeleton && "label_skeleton", onClick && (cursor || 'cursor_type_pointer')), "data-test-id": dataTestId, "data-tour": dataTour, style: labelStyles, onClick: onClick, onMouseEnter: onMouseEnterLabel, onMouseLeave: onMouseLeaveLabel, children: [before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: clsx('label__icon_before'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), jsxRuntime.jsxs("div", { className: "label__inner", children: [typeof label === 'string' ? (jsxRuntime.jsx(Text.Text, { className: "label__text", size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })) : (jsxRuntime.jsx("div", { className: "label__text", children: label })), children, tooltipContent && (jsxRuntime.jsx(Icon.Tooltip, { className: "label__tooltip", ref: tooltipRef, appearance: tooltipAppearance, alignment: tooltipAlignment, title: tooltipTitle, titleSize: tooltipTitleSize, titleWeight: tooltipTitleWeight, text: tooltipText, textSize: tooltipTextSize, textWeight: tooltipTextWeight, arrowPosition: tooltipArrowPosition, children: tooltipContent }))] }), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: clsx('label__icon_after'), fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), after] }));
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
exports.Label = Label;
|