@itcase/ui 1.9.37 → 1.9.39
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_BH4N1LbX.js → Avatar_cjs_Ctz9kEoE.js} +3 -3
- package/dist/{Avatar_es_DONdO4MV.js → Avatar_es_2Na9ZgVL.js} +3 -3
- package/dist/{Button_cjs_Dvh0E0zz.js → Button_cjs_Ivarkwy6.js} +7 -7
- package/dist/{Button_es_BDrXGgUw.js → Button_es_ul2sDicM.js} +7 -7
- package/dist/{ChipsGroup_cjs_CT4DME-7.js → ChipsGroup_cjs_CIIf1Cyn.js} +4 -6
- package/dist/{ChipsGroup_es_BB6xVGnI.js → ChipsGroup_es_wecRqt6G.js} +4 -6
- package/dist/{DatePicker_cjs_DFbSO6Me.js → DatePicker_cjs_BzAzvsdV.js} +6 -7
- package/dist/{DatePicker_es_D3e0JZtJ.js → DatePicker_es_CCZmi-lN.js} +6 -7
- package/dist/{Divider_cjs_DmIeh3Jq.js → Divider_cjs_C5Ou2Kqa.js} +0 -1
- package/dist/{Divider_es_Cod0xv2q.js → Divider_es_BR7ZO8w0.js} +0 -1
- package/dist/{DropdownItem_cjs_Aun30hgm.js → DropdownItem_cjs_nZbgMgqg.js} +3 -5
- package/dist/{DropdownItem_es_CgVFMUyM.js → DropdownItem_es__mygSEH6.js} +3 -5
- package/dist/{Group_cjs_BGVwVJwS.js → Group_cjs_xCUYKUcc.js} +0 -1
- package/dist/{Group_es_CrDAyR_E.js → Group_es_BVpRj4LR.js} +0 -1
- package/dist/{Icon_cjs_DRdjXL7T.js → Icon_cjs_D20B2YBo.js} +40 -23
- package/dist/{Icon_es_BoUAbwyu.js → Icon_es_DNVHNKFK.js} +40 -23
- package/dist/{Image_cjs_Dvojc8Dw.js → Image_cjs_JfkEyfgx.js} +1 -3
- package/dist/{Image_es_CTXiU4L4.js → Image_es_DbD3JzLa.js} +1 -3
- package/dist/{Input_cjs_B13aeHfj.js → Input_cjs_BQIi1N63.js} +1 -3
- package/dist/{Input_es_BUJJnw5X.js → Input_es_CYUPx5I_.js} +1 -3
- package/dist/{Label_cjs_Kf3sYviA.js → Label_cjs_DlbcXQX4.js} +2 -3
- package/dist/{Label_es_DTsS8xDD.js → Label_es_CbXFs_ts.js} +2 -3
- package/dist/{Link_cjs_CmBw4h-N.js → Link_cjs_DXBqPjwm.js} +3 -4
- package/dist/{Link_es_OpkyzWe6.js → Link_es_BwLH5S8y.js} +3 -4
- package/dist/{Loader_cjs_BHMB4c8f.js → Loader_cjs_DMIUN6_q.js} +1 -2
- package/dist/{Loader_es_CcFl-K-t.js → Loader_es_DFSNJsLL.js} +1 -2
- package/dist/{Overlay_cjs_2az7kviY.js → Overlay_cjs_BK_0yTLw.js} +0 -1
- package/dist/{Overlay_es_Du0WjVgO.js → Overlay_es_Dx6UIr2X.js} +0 -1
- package/dist/{SelectContainer_cjs_DlpMN8W0.js → SelectContainer_cjs_Bd9llsQa.js} +11 -11
- package/dist/{SelectContainer_es_YFoz_R-E.js → SelectContainer_es_Bqek7tN5.js} +11 -11
- package/dist/{Text_cjs_BJ9NgJkx.js → Text_cjs_erTy2pUN.js} +0 -1
- package/dist/{Text_es_DR4Alx-v.js → Text_es_B85LGfjW.js} +0 -1
- package/dist/cjs/components/Accordion.js +6 -7
- package/dist/cjs/components/Avatar.js +5 -5
- package/dist/cjs/components/AvatarStack.js +8 -8
- package/dist/cjs/components/Badge.js +3 -3
- package/dist/cjs/components/Breadcrumbs.js +3 -5
- package/dist/cjs/components/Button.js +6 -5
- package/dist/cjs/components/Cell.js +6 -6
- package/dist/cjs/components/Checkbox.js +5 -5
- package/dist/cjs/components/Checkmark.js +0 -1
- package/dist/cjs/components/Chips.js +4 -4
- package/dist/cjs/components/Choice.js +14 -16
- package/dist/cjs/components/CookiesWarning.js +6 -5
- package/dist/cjs/components/Dadata.js +1 -1
- package/dist/cjs/components/DatePeriod.js +17 -17
- package/dist/cjs/components/DatePicker.js +9 -8
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Dot.js +0 -1
- package/dist/cjs/components/Drawer.js +4 -4
- package/dist/cjs/components/Dropdown.js +5 -5
- package/dist/cjs/components/Flex.js +0 -2
- package/dist/cjs/components/Grid.js +0 -3
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/HTMLContent.js +0 -1
- package/dist/cjs/components/HeroTitle.js +3 -4
- package/dist/cjs/components/Icon.js +3 -3
- package/dist/cjs/components/Image.js +1 -1
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputNumber.js +6 -5
- package/dist/cjs/components/InputPassword.js +3 -5
- package/dist/cjs/components/Label.js +4 -4
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -3
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/Logo.js +1 -2
- package/dist/cjs/components/MenuItem.js +3 -4
- package/dist/cjs/components/Modal.js +10 -10
- package/dist/cjs/components/ModalSheetBottom.js +3 -4
- package/dist/cjs/components/Notification.js +7 -7
- package/dist/cjs/components/Overlay.js +1 -1
- package/dist/cjs/components/Pagination.js +6 -7
- package/dist/cjs/components/Radio.js +1 -1
- package/dist/cjs/components/RangeSlider.js +0 -1
- package/dist/cjs/components/Response.js +17 -27
- package/dist/cjs/components/SVGContent.js +0 -1
- package/dist/cjs/components/ScrollOnDrag.js +0 -1
- package/dist/cjs/components/ScrollToView.js +0 -1
- package/dist/cjs/components/Search.js +4 -5
- package/dist/cjs/components/Segmented.js +7 -11
- package/dist/cjs/components/Select.js +8 -7
- package/dist/cjs/components/Swiper.js +4 -5
- package/dist/cjs/components/Switch.js +13 -13
- package/dist/cjs/components/Tab.js +7 -8
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Tile.js +3 -4
- package/dist/cjs/components/Title.js +3 -3
- package/dist/cjs/components/Tooltip.js +3 -3
- package/dist/cjs/components/Video.js +0 -1
- package/dist/cjs/components/Warning.js +3 -4
- package/dist/cjs/utils/mergeAppearanceKeys.js +5 -0
- package/dist/cjs/utils.js +2 -0
- package/dist/components/Accordion.js +6 -7
- package/dist/components/Avatar.js +5 -5
- package/dist/components/AvatarStack.js +8 -8
- package/dist/components/Badge.js +3 -3
- package/dist/components/Breadcrumbs.js +3 -5
- package/dist/components/Button.js +6 -5
- package/dist/components/Cell.js +6 -6
- package/dist/components/Checkbox.js +5 -5
- package/dist/components/Checkmark.js +0 -1
- package/dist/components/Chips.js +4 -4
- package/dist/components/Choice.js +14 -16
- package/dist/components/CookiesWarning.js +6 -5
- package/dist/components/Dadata.js +1 -1
- package/dist/components/DatePeriod.js +17 -17
- package/dist/components/DatePicker.js +9 -8
- package/dist/components/Divider.js +1 -1
- package/dist/components/Dot.js +0 -1
- package/dist/components/Drawer.js +4 -4
- package/dist/components/Dropdown.js +5 -5
- package/dist/components/Flex.js +0 -2
- package/dist/components/Grid.js +0 -3
- package/dist/components/Group.js +1 -1
- package/dist/components/HTMLContent.js +0 -1
- package/dist/components/HeroTitle.js +3 -4
- package/dist/components/Icon.js +3 -3
- package/dist/components/Image.js +1 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/InputNumber.js +6 -5
- package/dist/components/InputPassword.js +3 -5
- package/dist/components/Label.js +4 -4
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -3
- package/dist/components/Loader.js +2 -2
- package/dist/components/Logo.js +1 -2
- package/dist/components/MenuItem.js +3 -4
- package/dist/components/Modal.js +10 -10
- package/dist/components/ModalSheetBottom.js +3 -4
- package/dist/components/Notification.js +7 -7
- package/dist/components/Overlay.js +1 -1
- package/dist/components/Pagination.js +6 -7
- package/dist/components/Radio.js +1 -1
- package/dist/components/RangeSlider.js +0 -1
- package/dist/components/Response.js +17 -27
- package/dist/components/SVGContent.js +0 -1
- package/dist/components/ScrollOnDrag.js +0 -1
- package/dist/components/ScrollToView.js +0 -1
- package/dist/components/Search.js +4 -5
- package/dist/components/Segmented.js +7 -11
- package/dist/components/Select.js +8 -7
- package/dist/components/Swiper.js +4 -5
- package/dist/components/Switch.js +13 -13
- package/dist/components/Tab.js +7 -8
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +3 -4
- package/dist/components/Title.js +3 -3
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/Video.js +0 -1
- package/dist/components/Warning.js +3 -4
- package/dist/css/mixins/mixin_typography.css +1 -1
- package/dist/css/styles/bundles.css +20 -23
- package/dist/snippets/Loader.snippets.json +12 -0
- package/dist/snippets/Tab.snippets.json +14 -0
- package/dist/snippets/TabGroup.snippets.json +12 -0
- package/dist/types/components/Button/Button.d.ts +1 -1
- package/dist/types/components/Button/Button.interface.d.ts +1 -1
- package/dist/types/components/Button/stories/ButtonDefault.stories.d.ts +1 -1
- package/dist/types/components/Button/stories/ButtonDemo.stories.d.ts +1 -1
- package/dist/types/components/Button/stories/ButtonIcon.stories.d.ts +1 -1
- package/dist/types/components/Button/stories/ButtonLabel.stories.d.ts +1 -1
- package/dist/types/components/Button/stories/ButtonLoading.stories.d.ts +1 -1
- package/dist/types/components/Button/stories/ButtonMuted.stories.d.ts +1 -1
- package/dist/types/components/Button/stories/ButtonMutedIcon.stories.d.ts +1 -1
- package/dist/types/components/Button/stories/ButtonShape.stories.d.ts +1 -1
- package/dist/types/components/Button/stories/ButtonSize.stories.d.ts +1 -1
- package/dist/types/components/Chips/stories/ChipsGroup.stories.d.ts +2 -2
- package/dist/types/components/Choice/Choice.interface.d.ts +2 -2
- package/dist/types/components/Dadata/Dadata.interface.d.ts +1 -1
- package/dist/types/components/DatePeriod/DatePeriod.interface.d.ts +4 -7
- package/dist/types/components/DatePicker/DatePicker.interface.d.ts +1 -1
- package/dist/types/components/Icon/Icon.d.ts +1 -1
- package/dist/types/components/Icon/Icon.interface.d.ts +2 -3
- package/dist/types/components/Icon/appearance/iconExtra.d.ts +2 -2
- package/dist/types/components/Icon/appearance/iconSpecial.d.ts +2 -2
- package/dist/types/components/Icon/stories/IconDefault.stories.d.ts +1 -1
- package/dist/types/components/Icon/stories/IconDemo.stories.d.ts +1 -1
- package/dist/types/components/Icon/stories/IconShape.stories.d.ts +1 -1
- package/dist/types/components/Icon/stories/IconSize12.stories.d.ts +1 -1
- package/dist/types/components/Icon/stories/IconSize14.stories.d.ts +1 -1
- package/dist/types/components/Icon/stories/IconSize16.stories.d.ts +1 -1
- package/dist/types/components/Icon/stories/IconSize20.stories.d.ts +1 -1
- package/dist/types/components/Icon/stories/IconSize24.stories.d.ts +1 -1
- package/dist/types/components/Icon/stories/IconSize32.stories.d.ts +1 -1
- package/dist/types/components/Icon/stories/IconSize40.stories.d.ts +1 -1
- package/dist/types/components/Icon/stories/IconStyle.stories.d.ts +1 -1
- package/dist/types/components/Icon/stories/IconWithBadge.stories.d.ts +1 -1
- package/dist/types/components/InputNumber/InputNumber.interfaces.d.ts +2 -2
- package/dist/types/components/InputPassword/InputPassword.interface.d.ts +1 -1
- package/dist/types/components/Link/Link.interface.d.ts +1 -0
- package/dist/types/components/Link/appearance/linkExtra.d.ts +2 -7
- package/dist/types/components/Link/appearance/linkSpecial.d.ts +2 -7
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.interface.d.ts +1 -1
- package/dist/types/components/Notification/Notification.interface.d.ts +1 -1
- package/dist/types/components/Pagination/Pagination.interface.d.ts +2 -2
- package/dist/types/components/Response/Response.d.ts +2 -3
- package/dist/types/components/Response/Response.interface.d.ts +2 -3
- package/dist/types/components/Response/stories/ResponseConfirm.stories.d.ts +2 -3
- package/dist/types/components/Response/stories/ResponseDemo.stories.d.ts +2 -3
- package/dist/types/components/Response/stories/ResponseError.stories.d.ts +2 -3
- package/dist/types/components/Response/stories/ResponseFail.stories.d.ts +2 -3
- package/dist/types/components/Response/stories/ResponseNothingFound.stories.d.ts +2 -3
- package/dist/types/components/Response/stories/ResponseRefresh.stories.d.ts +2 -3
- package/dist/types/components/Response/stories/ResponseSuccess.stories.d.ts +2 -3
- package/dist/types/components/Response/stories/ResponseUnableLoadData.stories.d.ts +2 -3
- package/dist/types/components/Response/stories/ResponseWarning.stories.d.ts +2 -3
- package/dist/types/components/Segmented/Segmented.interface.d.ts +1 -1
- package/dist/types/components/Select/Select.interface.d.ts +10 -6
- package/dist/types/components/Select/SelectMultiValue.d.ts +2 -1
- package/dist/types/components/Tooltip/appearance/tooltipShape.d.ts +3 -0
- package/dist/types/hooks/useDevicePropsGenerator/useDevicePropsGenerator.interface.d.ts +1 -1
- package/dist/types/utils/index.d.ts +2 -1
- package/dist/types/utils/mergeAppearanceKeys.d.ts +2 -0
- package/dist/utils/mergeAppearanceKeys.js +3 -0
- package/dist/utils.js +1 -0
- package/package.json +10 -10
|
@@ -6,8 +6,8 @@ import { urlWithAssetPrefix } from './hoc/urlWithAssetPrefix.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';
|
|
9
|
-
import { a as LinkWrapper } from './
|
|
10
|
-
import { T as Text } from './
|
|
9
|
+
import { a as LinkWrapper } from './Link_es_BwLH5S8y.js';
|
|
10
|
+
import { T as Text } from './Text_es_B85LGfjW.js';
|
|
11
11
|
|
|
12
12
|
const badgeAppearanceAccent = {
|
|
13
13
|
accentPrimary: {
|
|
@@ -253,7 +253,6 @@ function Badge(props) {
|
|
|
253
253
|
const appearanceConfig = useAppearanceConfig(appearance, badgeConfig);
|
|
254
254
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
255
255
|
const { fillClass, fillHoverClass, borderColorClass, borderColorHoverClass, borderTypeClass, borderWidthClass, textColor, textSize, dotFillClass, iconFill, iconShape, iconSize, shapeClass, shapeStrengthClass, sizeClass, } = propsGenerator;
|
|
256
|
-
// @ts-expect-error
|
|
257
256
|
const { styles: badgeStyles } = useStyles(props);
|
|
258
257
|
const badgeTypeClass = value
|
|
259
258
|
? icon
|
|
@@ -473,7 +472,6 @@ function Title(props) {
|
|
|
473
472
|
const appearanceConfig = useAppearanceConfig(appearance, titleConfig, isDisabled);
|
|
474
473
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
475
474
|
const { directionClass, size, fillClass, fillHoverClass, textAlignClass, textColorActiveClass, textColorActiveHoverClass, textColorClass, textColorDisabledClass, textColorHoverClass, textFontClass, textStyleClass, textTruncateClass, textWeightClass, textWrap, heightClass, iconAfter, iconAfterFill, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconBadgeAppearance, iconBadgeShape, iconBadgeSize, iconBadgeTextColor, iconBadgeTextSize, iconBadgeValue, iconBefore, iconBeforeFill, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, svgFillClass, svgFillHoverClass, widthClass, wrapperDirectionClass, onClickIconAfter, onClickIconBefore, } = propsGenerator;
|
|
476
|
-
// @ts-expect-error
|
|
477
475
|
const { styles: titleStyles, wrapper: titleWrapperStyles } = useStyles(props);
|
|
478
476
|
const Tag = useMemo(() => {
|
|
479
477
|
if (tag) {
|
|
@@ -537,6 +535,31 @@ const tooltipAppearanceRequire = {
|
|
|
537
535
|
},
|
|
538
536
|
};
|
|
539
537
|
|
|
538
|
+
const tooltipAppearanceShape = {
|
|
539
|
+
circular: {
|
|
540
|
+
shape: 'circular',
|
|
541
|
+
},
|
|
542
|
+
rounded: {
|
|
543
|
+
shape: 'rounded',
|
|
544
|
+
},
|
|
545
|
+
roundedXL: {
|
|
546
|
+
shape: 'rounded',
|
|
547
|
+
shapeStrength: '2m',
|
|
548
|
+
},
|
|
549
|
+
roundedL: {
|
|
550
|
+
shape: 'rounded',
|
|
551
|
+
shapeStrength: '1_5m',
|
|
552
|
+
},
|
|
553
|
+
roundedM: {
|
|
554
|
+
shape: 'rounded',
|
|
555
|
+
shapeStrength: '1m',
|
|
556
|
+
},
|
|
557
|
+
roundedS: {
|
|
558
|
+
shape: 'rounded',
|
|
559
|
+
shapeStrength: '0_5m',
|
|
560
|
+
},
|
|
561
|
+
};
|
|
562
|
+
|
|
540
563
|
const tooltipAppearanceSize = {
|
|
541
564
|
sizeL: {
|
|
542
565
|
size: 'l',
|
|
@@ -584,6 +607,7 @@ const tooltipAppearance = {
|
|
|
584
607
|
...tooltipAppearanceSize,
|
|
585
608
|
...tooltipAppearanceDisabled,
|
|
586
609
|
...tooltipAppearanceRequire,
|
|
610
|
+
...tooltipAppearanceShape,
|
|
587
611
|
...tooltipAppearanceStyle,
|
|
588
612
|
...tooltipAppearanceError,
|
|
589
613
|
...tooltipAppearanceSuccess,
|
|
@@ -640,7 +664,6 @@ const Tooltip = React.forwardRef(function Tooltip(props, ref) {
|
|
|
640
664
|
const appearanceConfig = useAppearanceConfig(appearance, tooltipConfig);
|
|
641
665
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
642
666
|
const { alignClass, alignDirectionClass, alignmentClass, alignPosition, fillClass, titleColor, titleSize, titleWeight, borderColorClass, borderTypeClass, borderWidthClass, textColor, textSize, textWeight, arrowPosition, centeringClass, elevationClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
|
|
643
|
-
// @ts-expect-error
|
|
644
667
|
const { styles: tooltipStyles } = useStyles(props);
|
|
645
668
|
return (jsxs("div", { className: clsx(className, 'tooltip', !isTooltipDisableState
|
|
646
669
|
? isTooltipVisible
|
|
@@ -719,16 +742,6 @@ const iconAppearanceInfo = {
|
|
|
719
742
|
},
|
|
720
743
|
};
|
|
721
744
|
|
|
722
|
-
const iconAppearanceSpecial = {
|
|
723
|
-
specialPrimary: {
|
|
724
|
-
fill: 'specialPrimary',
|
|
725
|
-
fillHover: 'specialPrimaryHover',
|
|
726
|
-
borderColor: 'specialBorderQuaternary',
|
|
727
|
-
badgeAppearance: 'surfacePrimary',
|
|
728
|
-
iconFill: 'specialItemPrimary',
|
|
729
|
-
},
|
|
730
|
-
};
|
|
731
|
-
|
|
732
745
|
const iconAppearanceShape = {
|
|
733
746
|
circular: {
|
|
734
747
|
shape: 'circular',
|
|
@@ -897,6 +910,16 @@ const iconAppearanceSize = {
|
|
|
897
910
|
},
|
|
898
911
|
};
|
|
899
912
|
|
|
913
|
+
const iconAppearanceSpecial = {
|
|
914
|
+
specialPrimary: {
|
|
915
|
+
fill: 'specialPrimary',
|
|
916
|
+
fillHover: 'specialHoverPrimary',
|
|
917
|
+
borderColor: 'specialBorderQuaternary',
|
|
918
|
+
badgeAppearance: 'surfacePrimary',
|
|
919
|
+
iconFill: 'specialItemPrimary',
|
|
920
|
+
},
|
|
921
|
+
};
|
|
922
|
+
|
|
900
923
|
const iconAppearanceStyle = {
|
|
901
924
|
solid: {
|
|
902
925
|
borderColor: 'none',
|
|
@@ -950,12 +973,6 @@ const iconAppearanceSurface = {
|
|
|
950
973
|
};
|
|
951
974
|
|
|
952
975
|
const iconAppearanceWarning = {
|
|
953
|
-
warning: {
|
|
954
|
-
fill: 'warningPrimary',
|
|
955
|
-
fillHover: 'warningHoverPrimary',
|
|
956
|
-
badgeAppearance: 'surfacePrimary',
|
|
957
|
-
iconFill: 'warningItemPrimary',
|
|
958
|
-
},
|
|
959
976
|
warningPrimary: {
|
|
960
977
|
fill: 'warningPrimary',
|
|
961
978
|
fillHover: 'warningHoverPrimary',
|
|
@@ -991,6 +1008,7 @@ const Icon = urlWithAssetPrefix(React.forwardRef(function Icon(props, ref) {
|
|
|
991
1008
|
const { id, appearance, className, dataTestId, dataTour, width, height, badgeClass, href, imageSrc, link, linkRel, linkTarget, notification, saveFillStroke, showTooltip, SvgImage, before, after, isActive, isDisabled, isSkeleton, onClick, onMouseEnter, onMouseLeave, } = props;
|
|
992
1009
|
const ImageComponent = useMemo(() => {
|
|
993
1010
|
if (SvgImage) {
|
|
1011
|
+
const SvgComponent = SvgImage;
|
|
994
1012
|
const sizes = {};
|
|
995
1013
|
if (width) {
|
|
996
1014
|
sizes.width = width;
|
|
@@ -998,7 +1016,7 @@ const Icon = urlWithAssetPrefix(React.forwardRef(function Icon(props, ref) {
|
|
|
998
1016
|
if (height) {
|
|
999
1017
|
sizes.height = height;
|
|
1000
1018
|
}
|
|
1001
|
-
return jsx(
|
|
1019
|
+
return jsx(SvgComponent, { ...sizes });
|
|
1002
1020
|
}
|
|
1003
1021
|
if (imageSrc) {
|
|
1004
1022
|
if (imageSrc.endsWith('.svg')) {
|
|
@@ -1014,7 +1032,6 @@ const Icon = urlWithAssetPrefix(React.forwardRef(function Icon(props, ref) {
|
|
|
1014
1032
|
const appearanceConfig = useAppearanceConfig(appearance, iconConfig, isDisabled);
|
|
1015
1033
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
1016
1034
|
const { alignmentClass, fillActiveClass, fillActiveHoverClass, fillClass, fillDisabledClass, fillHoverClass, fillSizeClass, borderColorClass, borderColorHoverClass, borderTypeClass, borderWidthClass, badgeAppearance, badgeShape, badgeSize, badgeTextColor, badgeTextSize, badgeValue, centeringClass, iconFillActiveClass, iconFillActiveHoverClass, iconFillClass, iconFillDisabledClass, iconFillHoverClass, iconSizeClass, shapeClass, shapeStrengthClass, tooltipAppearance, tooltipText, tooltipTextSize, tooltipTitle, tooltipTitleSize, } = propsGenerator;
|
|
1017
|
-
// @ts-expect-error - TODO: сделать useStyles на ts
|
|
1018
1035
|
const { styles: iconStyles } = useStyles(props);
|
|
1019
1036
|
return (jsxs("div", { id: id, className: clsx(className, 'icon', !isActive
|
|
1020
1037
|
? fillClass && `fill_${fillClass}`
|
|
@@ -11,9 +11,7 @@ const Image = urlWithAssetPrefix.urlWithAssetPrefix(React.forwardRef(function Im
|
|
|
11
11
|
const { className, dataTestId, dataTour, type, src, title, alt, caption, imageClassName, imageWrapperClassName, mode, overlay, placeholderUrl, before, after, isSkeleton, onClick, onError, children, } = props;
|
|
12
12
|
const propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props);
|
|
13
13
|
const { fillClass, fillHoverClass, borderColorClass, borderColorImageClass, borderTypeClass, borderWidthClass, cursorClass, heightClass, horizontalAlignClass, imageHeightClass, imageWidthClass, resizeModeClass, shapeClass, verticalAlignClass, widthClass, } = propsGenerator;
|
|
14
|
-
|
|
15
|
-
// @ts-expect-error
|
|
16
|
-
const { image: imageStyles, styles, wrapper: wrapperStyles } = useStyles.useStyles(props);
|
|
14
|
+
const { image: imageStyles, styles, wrapper: wrapperStyles, } = useStyles.useStyles(props);
|
|
17
15
|
const onErrorImage = React.useCallback((event) => {
|
|
18
16
|
const img = event.currentTarget;
|
|
19
17
|
if (onError) {
|
|
@@ -9,9 +9,7 @@ const Image = urlWithAssetPrefix(forwardRef(function Image(props, ref) {
|
|
|
9
9
|
const { className, dataTestId, dataTour, type, src, title, alt, caption, imageClassName, imageWrapperClassName, mode, overlay, placeholderUrl, before, after, isSkeleton, onClick, onError, children, } = props;
|
|
10
10
|
const propsGenerator = useDevicePropsGenerator(props);
|
|
11
11
|
const { fillClass, fillHoverClass, borderColorClass, borderColorImageClass, borderTypeClass, borderWidthClass, cursorClass, heightClass, horizontalAlignClass, imageHeightClass, imageWidthClass, resizeModeClass, shapeClass, verticalAlignClass, widthClass, } = propsGenerator;
|
|
12
|
-
|
|
13
|
-
// @ts-expect-error
|
|
14
|
-
const { image: imageStyles, styles, wrapper: wrapperStyles } = useStyles(props);
|
|
12
|
+
const { image: imageStyles, styles, wrapper: wrapperStyles, } = useStyles(props);
|
|
15
13
|
const onErrorImage = useCallback((event) => {
|
|
16
14
|
const img = event.currentTarget;
|
|
17
15
|
if (onError) {
|
|
@@ -34,8 +34,6 @@ const inputAppearanceDisabled = {
|
|
|
34
34
|
borderColor: 'surfaceBorderDisabled',
|
|
35
35
|
borderColorHover: 'surfaceBorderDisabled',
|
|
36
36
|
textColor: 'surfaceTextQuaternary',
|
|
37
|
-
iconBeforeFill: 'surfaceItemQuaternary',
|
|
38
|
-
iconClearFill: 'surfaceItemPrimary',
|
|
39
37
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
40
38
|
},
|
|
41
39
|
disabledSecondary: {
|
|
@@ -197,7 +195,7 @@ const Input = React.forwardRef(function Input(props, ref) {
|
|
|
197
195
|
const { fillClass, fillHoverClass, borderColorClass, borderColorHoverClass, borderWidthClass, textColorClass, textSizeClass, textWeightClass, caretClass, placeholderTextColorClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
|
|
198
196
|
const fallbackId = React.useId();
|
|
199
197
|
return (jsxRuntime.jsx("input", { id: String(id ?? fallbackId), className: clsx(className, 'input', type === 'number' && 'input_type_number', isDisabled && 'input_state_disabled', (textSizeClass || textColorClass || textWeightClass) && 'text', borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass && `border-color_hover_${borderColorHoverClass}`, borderWidthClass && `border-width_${borderWidthClass}`, caretClass && `caret-color_${caretClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, placeholderTextColorClass &&
|
|
200
|
-
`placeholder-text-color_${placeholderTextColorClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `input_size_${sizeClass}`, textColorClass && `text-color_${textColorClass}`, textColorClass && `text-color_${textColorClass}`, textSizeClass && `text_size_${textSizeClass}`, textWeightClass && `text-weight_${textWeightClass}`, widthClass && `width_${widthClass}`), type: type, ref: ref, autoComplete: autocomplete, "data-testid": dataTestId || (name ? `${name}-input` : 'input'), "data-tour": dataTour, disabled: isDisabled,
|
|
198
|
+
`placeholder-text-color_${placeholderTextColorClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `input_size_${sizeClass}`, textColorClass && `text-color_${textColorClass}`, textColorClass && `text-color_${textColorClass}`, textSizeClass && `text_size_${textSizeClass}`, textWeightClass && `text-weight_${textWeightClass}`, widthClass && `width_${widthClass}`), type: type, ref: ref, autoComplete: autocomplete, "data-index": index, "data-testid": dataTestId || (name ? `${name}-input` : 'input'), "data-tour": dataTour, disabled: isDisabled, placeholder: placeholder, readOnly: isReadOnly, value: value, onClick: onClick, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }));
|
|
201
199
|
});
|
|
202
200
|
|
|
203
201
|
exports.Input = Input;
|
|
@@ -32,8 +32,6 @@ const inputAppearanceDisabled = {
|
|
|
32
32
|
borderColor: 'surfaceBorderDisabled',
|
|
33
33
|
borderColorHover: 'surfaceBorderDisabled',
|
|
34
34
|
textColor: 'surfaceTextQuaternary',
|
|
35
|
-
iconBeforeFill: 'surfaceItemQuaternary',
|
|
36
|
-
iconClearFill: 'surfaceItemPrimary',
|
|
37
35
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
38
36
|
},
|
|
39
37
|
disabledSecondary: {
|
|
@@ -195,7 +193,7 @@ const Input = React.forwardRef(function Input(props, ref) {
|
|
|
195
193
|
const { fillClass, fillHoverClass, borderColorClass, borderColorHoverClass, borderWidthClass, textColorClass, textSizeClass, textWeightClass, caretClass, placeholderTextColorClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
|
|
196
194
|
const fallbackId = useId();
|
|
197
195
|
return (jsx("input", { id: String(id ?? fallbackId), className: clsx(className, 'input', type === 'number' && 'input_type_number', isDisabled && 'input_state_disabled', (textSizeClass || textColorClass || textWeightClass) && 'text', borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass && `border-color_hover_${borderColorHoverClass}`, borderWidthClass && `border-width_${borderWidthClass}`, caretClass && `caret-color_${caretClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, placeholderTextColorClass &&
|
|
198
|
-
`placeholder-text-color_${placeholderTextColorClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `input_size_${sizeClass}`, textColorClass && `text-color_${textColorClass}`, textColorClass && `text-color_${textColorClass}`, textSizeClass && `text_size_${textSizeClass}`, textWeightClass && `text-weight_${textWeightClass}`, widthClass && `width_${widthClass}`), type: type, ref: ref, autoComplete: autocomplete, "data-testid": dataTestId || (name ? `${name}-input` : 'input'), "data-tour": dataTour, disabled: isDisabled,
|
|
196
|
+
`placeholder-text-color_${placeholderTextColorClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `input_size_${sizeClass}`, textColorClass && `text-color_${textColorClass}`, textColorClass && `text-color_${textColorClass}`, textSizeClass && `text_size_${textSizeClass}`, textWeightClass && `text-weight_${textWeightClass}`, widthClass && `width_${widthClass}`), type: type, ref: ref, autoComplete: autocomplete, "data-index": index, "data-testid": dataTestId || (name ? `${name}-input` : 'input'), "data-tour": dataTour, disabled: isDisabled, placeholder: placeholder, readOnly: isReadOnly, value: value, onClick: onClick, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }));
|
|
199
197
|
});
|
|
200
198
|
|
|
201
199
|
export { Input as I, inputAppearance as a, inputConfig as i };
|
|
@@ -6,8 +6,8 @@ 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('./
|
|
10
|
-
var Text = require('./
|
|
9
|
+
var Icon = require('./Icon_cjs_D20B2YBo.js');
|
|
10
|
+
var Text = require('./Text_cjs_erTy2pUN.js');
|
|
11
11
|
|
|
12
12
|
const labelAppearanceAccent = {
|
|
13
13
|
accentMutedPrimary: {
|
|
@@ -327,7 +327,6 @@ function Label(props) {
|
|
|
327
327
|
const appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, labelConfig, isDisabled);
|
|
328
328
|
const propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
329
329
|
const { alignClass, fillClass, fillHoverClass, labelTextColor, labelTextColorHover, labelTextSize, labelTextWeight, labelTextWrap, borderColorClass, borderTypeClass, iconAfter, iconAfterFill, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconBefore, iconBeforeFill, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, shapeClass, shapeStrengthClass, sizeClass, tooltipAlignment, tooltipAppearance, tooltipArrowPosition, tooltipText, tooltipTextSize, tooltipTextWeight, tooltipTitle, tooltipTitleSize, tooltipTitleWeight, widthClass, wrapClass, } = propsGenerator;
|
|
330
|
-
// @ts-expect-error
|
|
331
330
|
const { styles: labelStyles } = useStyles.useStyles(props);
|
|
332
331
|
return (jsxRuntime.jsxs("div", { className: clsx(className, 'label', fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, shapeClass && `shape_${shapeClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, sizeClass && `label_size_${sizeClass}`, wrapClass && `word-wrap_${wrapClass}`, widthClass && `label_width_${widthClass}`, alignClass && `align_${alignClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, isSkeleton && `label_skeleton`, onClick && (cursor || 'cursor_type_pointer')), "data-testid": 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, { appearance: tooltipAppearance, className: "label__tooltip", ref: tooltipRef, 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] }));
|
|
333
332
|
}
|
|
@@ -4,8 +4,8 @@ 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 { I as Icon, T as Tooltip } from './
|
|
8
|
-
import { T as Text } from './
|
|
7
|
+
import { I as Icon, T as Tooltip } from './Icon_es_DNVHNKFK.js';
|
|
8
|
+
import { T as Text } from './Text_es_B85LGfjW.js';
|
|
9
9
|
|
|
10
10
|
const labelAppearanceAccent = {
|
|
11
11
|
accentMutedPrimary: {
|
|
@@ -325,7 +325,6 @@ function Label(props) {
|
|
|
325
325
|
const appearanceConfig = useAppearanceConfig(appearance, labelConfig, isDisabled);
|
|
326
326
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
327
327
|
const { alignClass, fillClass, fillHoverClass, labelTextColor, labelTextColorHover, labelTextSize, labelTextWeight, labelTextWrap, borderColorClass, borderTypeClass, iconAfter, iconAfterFill, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconBefore, iconBeforeFill, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, shapeClass, shapeStrengthClass, sizeClass, tooltipAlignment, tooltipAppearance, tooltipArrowPosition, tooltipText, tooltipTextSize, tooltipTextWeight, tooltipTitle, tooltipTitleSize, tooltipTitleWeight, widthClass, wrapClass, } = propsGenerator;
|
|
328
|
-
// @ts-expect-error
|
|
329
328
|
const { styles: labelStyles } = useStyles(props);
|
|
330
329
|
return (jsxs("div", { className: clsx(className, 'label', fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, shapeClass && `shape_${shapeClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, sizeClass && `label_size_${sizeClass}`, wrapClass && `word-wrap_${wrapClass}`, widthClass && `label_width_${widthClass}`, alignClass && `align_${alignClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, isSkeleton && `label_skeleton`, onClick && (cursor || 'cursor_type_pointer')), "data-testid": dataTestId, "data-tour": dataTour, style: labelStyles, onClick: onClick, onMouseEnter: onMouseEnterLabel, onMouseLeave: onMouseLeaveLabel, children: [before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('label__icon_before'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), jsxs("div", { className: "label__inner", children: [typeof label === 'string' ? (jsx(Text, { className: "label__text", size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })) : (jsx("div", { className: "label__text", children: label })), children, tooltipContent && (jsx(Tooltip, { appearance: tooltipAppearance, className: "label__tooltip", ref: tooltipRef, alignment: tooltipAlignment, title: tooltipTitle, titleSize: tooltipTitleSize, titleWeight: tooltipTitleWeight, text: tooltipText, textSize: tooltipTextSize, textWeight: tooltipTextWeight, arrowPosition: tooltipArrowPosition, children: tooltipContent }))] }), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: clsx('label__icon_after'), fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), after] }));
|
|
331
330
|
}
|
|
@@ -54,7 +54,7 @@ const linkAppearanceError = {
|
|
|
54
54
|
const linkAppearanceExtra = {
|
|
55
55
|
extraPrimary: {
|
|
56
56
|
fill: 'extraPrimary',
|
|
57
|
-
fillHover: '
|
|
57
|
+
fillHover: 'extraHoverPrimary',
|
|
58
58
|
labelTextColor: 'extraTextPrimary',
|
|
59
59
|
},
|
|
60
60
|
};
|
|
@@ -148,9 +148,9 @@ const linkAppearanceSize = {
|
|
|
148
148
|
};
|
|
149
149
|
|
|
150
150
|
const linkAppearanceSpecial = {
|
|
151
|
-
|
|
151
|
+
specialPrimary: {
|
|
152
152
|
fill: 'specialPrimary',
|
|
153
|
-
fillHover: '
|
|
153
|
+
fillHover: 'specialHoverPrimary',
|
|
154
154
|
labelTextColor: 'specialTextPrimary',
|
|
155
155
|
},
|
|
156
156
|
};
|
|
@@ -243,7 +243,6 @@ function Link(props) {
|
|
|
243
243
|
const appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, linkConfig, isDisabled);
|
|
244
244
|
const propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
245
245
|
const { directionClass, fillClass, fillHoverClass, borderColorClass, borderColorHoverClass, borderTypeClass, borderWidthClass, textColorClass, textColorHoverClass, textGradientClass, textStyleClass, textWeightClass, heightClass, shapeClass, sizeClass, svgFillClass, svgFillHoverClass, underline = 'underline', widthClass, } = propsGenerator;
|
|
246
|
-
// @ts-expect-error
|
|
247
246
|
const { styles } = useStyles.useStyles(props);
|
|
248
247
|
return (jsxRuntime.jsxs(LinkWrapper, { className: clsx(className, 'link', widthClass && `width_${widthClass}`, heightClass && `height_${heightClass}`, directionClass && `link_direction_${directionClass}`, sizeClass && `text_size_${sizeClass}`, svgFillClass && `svg_fill_${svgFillClass}`, svgFillHoverClass && `svg_fill_hover_${svgFillHoverClass}`, underline && `link_underline_${underline}`, 'text', (textColorClass ||
|
|
249
248
|
textColorHoverClass ||
|
|
@@ -52,7 +52,7 @@ const linkAppearanceError = {
|
|
|
52
52
|
const linkAppearanceExtra = {
|
|
53
53
|
extraPrimary: {
|
|
54
54
|
fill: 'extraPrimary',
|
|
55
|
-
fillHover: '
|
|
55
|
+
fillHover: 'extraHoverPrimary',
|
|
56
56
|
labelTextColor: 'extraTextPrimary',
|
|
57
57
|
},
|
|
58
58
|
};
|
|
@@ -146,9 +146,9 @@ const linkAppearanceSize = {
|
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
const linkAppearanceSpecial = {
|
|
149
|
-
|
|
149
|
+
specialPrimary: {
|
|
150
150
|
fill: 'specialPrimary',
|
|
151
|
-
fillHover: '
|
|
151
|
+
fillHover: 'specialHoverPrimary',
|
|
152
152
|
labelTextColor: 'specialTextPrimary',
|
|
153
153
|
},
|
|
154
154
|
};
|
|
@@ -241,7 +241,6 @@ function Link(props) {
|
|
|
241
241
|
const appearanceConfig = useAppearanceConfig(appearance, linkConfig, isDisabled);
|
|
242
242
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
243
243
|
const { directionClass, fillClass, fillHoverClass, borderColorClass, borderColorHoverClass, borderTypeClass, borderWidthClass, textColorClass, textColorHoverClass, textGradientClass, textStyleClass, textWeightClass, heightClass, shapeClass, sizeClass, svgFillClass, svgFillHoverClass, underline = 'underline', widthClass, } = propsGenerator;
|
|
244
|
-
// @ts-expect-error
|
|
245
244
|
const { styles } = useStyles(props);
|
|
246
245
|
return (jsxs(LinkWrapper, { className: clsx(className, 'link', widthClass && `width_${widthClass}`, heightClass && `height_${heightClass}`, directionClass && `link_direction_${directionClass}`, sizeClass && `text_size_${sizeClass}`, svgFillClass && `svg_fill_${svgFillClass}`, svgFillHoverClass && `svg_fill_hover_${svgFillHoverClass}`, underline && `link_underline_${underline}`, 'text', (textColorClass ||
|
|
247
246
|
textColorHoverClass ||
|
|
@@ -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 Text = require('./
|
|
8
|
+
var Text = require('./Text_cjs_erTy2pUN.js');
|
|
9
9
|
|
|
10
10
|
const loaderAppearanceAccent = {
|
|
11
11
|
accentPrimary: {
|
|
@@ -133,7 +133,6 @@ function Loader(props) {
|
|
|
133
133
|
const appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, loaderConfig, isDisabled);
|
|
134
134
|
const propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
135
135
|
const { fillClass, textColor, textSize, heightClass, itemFillClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
|
|
136
|
-
// @ts-expect-error - TODO: сделать useStyles на ts
|
|
137
136
|
const { styles: loader } = useStyles.useStyles(props);
|
|
138
137
|
return (jsxRuntime.jsxs("div", { className: clsx('loader', className, widthClass && `width_${widthClass}`, heightClass && `height_${heightClass}`, fillClass && `fill_${fillClass}`, sizeClass && `loader_size_${sizeClass}`, isSkeleton && `loader_skeleton`, type && `loader_type_${type}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: loader, children: [children || (jsxRuntime.jsxs("div", { className: "loader__inner", children: [jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && `fill_${itemFillClass}`), children: "\u00A0" }), jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && `fill_${itemFillClass}`), children: "\u00A0" }), jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && `fill_${itemFillClass}`), children: "\u00A0" })] })), text && (jsxRuntime.jsx(Text.Text, { className: "loader__text", size: textSize, textColor: textColor, children: text }))] }));
|
|
139
138
|
}
|
|
@@ -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 { T as Text } from './
|
|
6
|
+
import { T as Text } from './Text_es_B85LGfjW.js';
|
|
7
7
|
|
|
8
8
|
const loaderAppearanceAccent = {
|
|
9
9
|
accentPrimary: {
|
|
@@ -131,7 +131,6 @@ function Loader(props) {
|
|
|
131
131
|
const appearanceConfig = useAppearanceConfig(appearance, loaderConfig, isDisabled);
|
|
132
132
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
133
133
|
const { fillClass, textColor, textSize, heightClass, itemFillClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
|
|
134
|
-
// @ts-expect-error - TODO: сделать useStyles на ts
|
|
135
134
|
const { styles: loader } = useStyles(props);
|
|
136
135
|
return (jsxs("div", { className: clsx('loader', className, widthClass && `width_${widthClass}`, heightClass && `height_${heightClass}`, fillClass && `fill_${fillClass}`, sizeClass && `loader_size_${sizeClass}`, isSkeleton && `loader_skeleton`, type && `loader_type_${type}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: loader, children: [children || (jsxs("div", { className: "loader__inner", children: [jsx("span", { className: clsx('loader__item', itemFillClass && `fill_${itemFillClass}`), children: "\u00A0" }), jsx("span", { className: clsx('loader__item', itemFillClass && `fill_${itemFillClass}`), children: "\u00A0" }), jsx("span", { className: clsx('loader__item', itemFillClass && `fill_${itemFillClass}`), children: "\u00A0" })] })), text && (jsx(Text, { className: "loader__text", size: textSize, textColor: textColor, children: text }))] }));
|
|
137
136
|
}
|
|
@@ -32,7 +32,6 @@ function Overlay(props) {
|
|
|
32
32
|
const appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, overlayConfig);
|
|
33
33
|
const propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
34
34
|
const { fillClass, blurClass, opacityClass } = propsGenerator;
|
|
35
|
-
// @ts-expect-error - TODO: сделать useStyles на ts
|
|
36
35
|
const { styles: overlayStyles } = useStyles.useStyles(props);
|
|
37
36
|
return (jsxRuntime.jsx("div", { className: clsx(className, 'overlay', opacityClass && `opacity_${opacityClass}`, blurClass && `blur_${blurClass}`, isOverlay && 'overlay_state_visible', fillClass && `fill_${fillClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: overlayStyles, onClick: onClick, children: "\u00A0" }));
|
|
38
37
|
}
|
|
@@ -30,7 +30,6 @@ function Overlay(props) {
|
|
|
30
30
|
const appearanceConfig = useAppearanceConfig(appearance, overlayConfig);
|
|
31
31
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
32
32
|
const { fillClass, blurClass, opacityClass } = propsGenerator;
|
|
33
|
-
// @ts-expect-error - TODO: сделать useStyles на ts
|
|
34
33
|
const { styles: overlayStyles } = useStyles(props);
|
|
35
34
|
return (jsx("div", { className: clsx(className, 'overlay', opacityClass && `opacity_${opacityClass}`, blurClass && `blur_${blurClass}`, isOverlay && 'overlay_state_visible', fillClass && `fill_${fillClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: overlayStyles, onClick: onClick, children: "\u00A0" }));
|
|
36
35
|
}
|
|
@@ -7,12 +7,13 @@ var Select = require('react-select');
|
|
|
7
7
|
var CreatableSelect = require('react-select/creatable');
|
|
8
8
|
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
9
9
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
|
-
var Group = require('./
|
|
11
|
-
var Text = require('./
|
|
10
|
+
var Group = require('./Group_cjs_xCUYKUcc.js');
|
|
11
|
+
var Text = require('./Text_cjs_erTy2pUN.js');
|
|
12
12
|
var _default = require('@itcase/icons/default');
|
|
13
|
-
var Icon = require('./
|
|
14
|
-
var Loader = require('./
|
|
15
|
-
var
|
|
13
|
+
var Icon = require('./Icon_cjs_D20B2YBo.js');
|
|
14
|
+
var Loader = require('./Loader_cjs_DMIUN6_q.js');
|
|
15
|
+
var mergeAppearanceKeys = require('./cjs/utils/mergeAppearanceKeys.js');
|
|
16
|
+
var Divider = require('./Divider_cjs_C5Ou2Kqa.js');
|
|
16
17
|
|
|
17
18
|
const SelectClearIndicator = (props) => {
|
|
18
19
|
const { children } = props;
|
|
@@ -38,7 +39,7 @@ const selectAppearanceDefault = {
|
|
|
38
39
|
groupFill: 'surfaceSecondary',
|
|
39
40
|
groupTextColor: 'surfaceTextPrimary',
|
|
40
41
|
groupTextWeight: '600',
|
|
41
|
-
inputCaretColor: '
|
|
42
|
+
inputCaretColor: 'accentPrimary',
|
|
42
43
|
inputTextColor: 'surfaceTextPrimary',
|
|
43
44
|
loaderAppearance: 'accentPrimary sizeS ghost',
|
|
44
45
|
loadingMessageTextColor: 'surfaceTextPrimary',
|
|
@@ -66,8 +67,8 @@ const selectAppearanceDisabled = {
|
|
|
66
67
|
disabledPrimary: {
|
|
67
68
|
elevation: 8,
|
|
68
69
|
badgeAppearance: 'accentPrimary solid circular',
|
|
69
|
-
clearIconFill: '
|
|
70
|
-
dropdownIconFill: '
|
|
70
|
+
clearIconFill: 'surfaceItemQuaternary',
|
|
71
|
+
dropdownIconFill: 'surfaceItemQuaternary',
|
|
71
72
|
headingFill: 'surfaceSecondary',
|
|
72
73
|
headingTextColor: 'surfaceTextPrimary',
|
|
73
74
|
inputBorderColor: 'surfaceBorderTertiary',
|
|
@@ -415,7 +416,7 @@ const SelectMenu = (props) => {
|
|
|
415
416
|
const SelectOverflowBadge = (props) => {
|
|
416
417
|
const { badgeAppearance, badgeAppearanceSize, overflowItemsList } = props;
|
|
417
418
|
const label = `+${overflowItemsList.length}`;
|
|
418
|
-
return (jsxRuntime.jsx(Icon.Badge, { appearance:
|
|
419
|
+
return (jsxRuntime.jsx(Icon.Badge, { appearance: mergeAppearanceKeys.mergeAppearanceKeys(badgeAppearance, badgeAppearanceSize), className: "select__multi-value-badge", value: label }));
|
|
419
420
|
};
|
|
420
421
|
|
|
421
422
|
const SelectMultiValue = (props) => {
|
|
@@ -485,7 +486,7 @@ const SelectSingleValue = (props) => {
|
|
|
485
486
|
const { inputTextColor, inputTextSize } = props.selectProps;
|
|
486
487
|
const optionBefore = data.optionBefore;
|
|
487
488
|
const optionAfter = data.optionBefore;
|
|
488
|
-
return (jsxRuntime.jsxs(Select.components.SingleValue, { ...props, children: [data && optionBefore, jsxRuntime.jsx(Text.Text, { size: inputTextSize, textColor: inputTextColor, children: children }), data && optionAfter] }));
|
|
489
|
+
return (jsxRuntime.jsxs(Select.components.SingleValue, { ...props, children: [data && optionBefore, jsxRuntime.jsx(Text.Text, { size: inputTextSize, textColor: inputTextColor, textTruncate: true, children: children }), data && optionAfter] }));
|
|
489
490
|
};
|
|
490
491
|
|
|
491
492
|
const SelectValueContainer = (props) => {
|
|
@@ -507,7 +508,6 @@ const SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
|
507
508
|
? CreatableSelect
|
|
508
509
|
: Select;
|
|
509
510
|
React.useEffect(() => {
|
|
510
|
-
// @ts-expect-error
|
|
511
511
|
const onClickOutside = (event) => {
|
|
512
512
|
const isTargetSelectContainer = event.target.hasClass &&
|
|
513
513
|
event.target.hasClass('select_state_hide-value-container');
|
|
@@ -5,12 +5,13 @@ import Select, { components } from 'react-select';
|
|
|
5
5
|
import CreatableSelect from 'react-select/creatable';
|
|
6
6
|
import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
|
-
import { G as Group } from './
|
|
9
|
-
import { T as Text } from './
|
|
8
|
+
import { G as Group } from './Group_es_BVpRj4LR.js';
|
|
9
|
+
import { T as Text } from './Text_es_B85LGfjW.js';
|
|
10
10
|
import { icons12, icons16, icons14, icons24 } from '@itcase/icons/default';
|
|
11
|
-
import { I as Icon, B as Badge } from './
|
|
12
|
-
import { L as Loader } from './
|
|
13
|
-
import {
|
|
11
|
+
import { I as Icon, B as Badge } from './Icon_es_DNVHNKFK.js';
|
|
12
|
+
import { L as Loader } from './Loader_es_DFSNJsLL.js';
|
|
13
|
+
import { mergeAppearanceKeys } from './utils/mergeAppearanceKeys.js';
|
|
14
|
+
import { D as Divider } from './Divider_es_BR7ZO8w0.js';
|
|
14
15
|
|
|
15
16
|
const SelectClearIndicator = (props) => {
|
|
16
17
|
const { children } = props;
|
|
@@ -36,7 +37,7 @@ const selectAppearanceDefault = {
|
|
|
36
37
|
groupFill: 'surfaceSecondary',
|
|
37
38
|
groupTextColor: 'surfaceTextPrimary',
|
|
38
39
|
groupTextWeight: '600',
|
|
39
|
-
inputCaretColor: '
|
|
40
|
+
inputCaretColor: 'accentPrimary',
|
|
40
41
|
inputTextColor: 'surfaceTextPrimary',
|
|
41
42
|
loaderAppearance: 'accentPrimary sizeS ghost',
|
|
42
43
|
loadingMessageTextColor: 'surfaceTextPrimary',
|
|
@@ -64,8 +65,8 @@ const selectAppearanceDisabled = {
|
|
|
64
65
|
disabledPrimary: {
|
|
65
66
|
elevation: 8,
|
|
66
67
|
badgeAppearance: 'accentPrimary solid circular',
|
|
67
|
-
clearIconFill: '
|
|
68
|
-
dropdownIconFill: '
|
|
68
|
+
clearIconFill: 'surfaceItemQuaternary',
|
|
69
|
+
dropdownIconFill: 'surfaceItemQuaternary',
|
|
69
70
|
headingFill: 'surfaceSecondary',
|
|
70
71
|
headingTextColor: 'surfaceTextPrimary',
|
|
71
72
|
inputBorderColor: 'surfaceBorderTertiary',
|
|
@@ -413,7 +414,7 @@ const SelectMenu = (props) => {
|
|
|
413
414
|
const SelectOverflowBadge = (props) => {
|
|
414
415
|
const { badgeAppearance, badgeAppearanceSize, overflowItemsList } = props;
|
|
415
416
|
const label = `+${overflowItemsList.length}`;
|
|
416
|
-
return (jsx(Badge, { appearance:
|
|
417
|
+
return (jsx(Badge, { appearance: mergeAppearanceKeys(badgeAppearance, badgeAppearanceSize), className: "select__multi-value-badge", value: label }));
|
|
417
418
|
};
|
|
418
419
|
|
|
419
420
|
const SelectMultiValue = (props) => {
|
|
@@ -483,7 +484,7 @@ const SelectSingleValue = (props) => {
|
|
|
483
484
|
const { inputTextColor, inputTextSize } = props.selectProps;
|
|
484
485
|
const optionBefore = data.optionBefore;
|
|
485
486
|
const optionAfter = data.optionBefore;
|
|
486
|
-
return (jsxs(components.SingleValue, { ...props, children: [data && optionBefore, jsx(Text, { size: inputTextSize, textColor: inputTextColor, children: children }), data && optionAfter] }));
|
|
487
|
+
return (jsxs(components.SingleValue, { ...props, children: [data && optionBefore, jsx(Text, { size: inputTextSize, textColor: inputTextColor, textTruncate: true, children: children }), data && optionAfter] }));
|
|
487
488
|
};
|
|
488
489
|
|
|
489
490
|
const SelectValueContainer = (props) => {
|
|
@@ -505,7 +506,6 @@ const SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
|
505
506
|
? CreatableSelect
|
|
506
507
|
: Select;
|
|
507
508
|
useEffect(() => {
|
|
508
|
-
// @ts-expect-error
|
|
509
509
|
const onClickOutside = (event) => {
|
|
510
510
|
const isTargetSelectContainer = event.target.hasClass &&
|
|
511
511
|
event.target.hasClass('select_state_hide-value-container');
|
|
@@ -45,7 +45,6 @@ function Text(props) {
|
|
|
45
45
|
const appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, textConfig, isDisabled);
|
|
46
46
|
const propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
47
47
|
const { textAlignClass, textColorActiveClass, textColorActiveHoverClass, textColorClass, textColorDisabledClass, textColorHoverClass, textFontClass, textStyleClass, textTruncateClass, textWeightClass, textWrapClass, cursorClass, sizeClass, widthClass, } = propsGenerator;
|
|
48
|
-
// @ts-expect-error
|
|
49
48
|
const { styles: textStyles } = useStyles.useStyles(props);
|
|
50
49
|
return (jsxRuntime.jsxs(Tag, { className: clsx(className, 'text', sizeClass && `text_size_${sizeClass}`, textWeightClass && `text-weight_${textWeightClass}`, textAlignClass && `text-align_${textAlignClass}`, isDisabled &&
|
|
51
50
|
textColorDisabledClass &&
|
|
@@ -43,7 +43,6 @@ function Text(props) {
|
|
|
43
43
|
const appearanceConfig = useAppearanceConfig(appearance, textConfig, isDisabled);
|
|
44
44
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
45
45
|
const { textAlignClass, textColorActiveClass, textColorActiveHoverClass, textColorClass, textColorDisabledClass, textColorHoverClass, textFontClass, textStyleClass, textTruncateClass, textWeightClass, textWrapClass, cursorClass, sizeClass, widthClass, } = propsGenerator;
|
|
46
|
-
// @ts-expect-error
|
|
47
46
|
const { styles: textStyles } = useStyles(props);
|
|
48
47
|
return (jsxs(Tag, { className: clsx(className, 'text', sizeClass && `text_size_${sizeClass}`, textWeightClass && `text-weight_${textWeightClass}`, textAlignClass && `text-align_${textAlignClass}`, isDisabled &&
|
|
49
48
|
textColorDisabledClass &&
|
|
@@ -6,10 +6,11 @@ var clsx = require('clsx');
|
|
|
6
6
|
var castArray = require('lodash/castArray');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
+
var mergeAppearanceKeys = require('../utils/mergeAppearanceKeys.js');
|
|
9
10
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
10
|
-
var Icon = require('../../
|
|
11
|
-
var Divider = require('../../
|
|
12
|
-
var Text = require('../../
|
|
11
|
+
var Icon = require('../../Icon_cjs_D20B2YBo.js');
|
|
12
|
+
var Divider = require('../../Divider_cjs_C5Ou2Kqa.js');
|
|
13
|
+
var Text = require('../../Text_cjs_erTy2pUN.js');
|
|
13
14
|
var _default = require('@itcase/icons/default');
|
|
14
15
|
require('lodash/camelCase');
|
|
15
16
|
require('lodash/upperFirst');
|
|
@@ -26,7 +27,7 @@ require('lodash/maxBy');
|
|
|
26
27
|
require('react-inlinesvg');
|
|
27
28
|
require('../hoc/urlWithAssetPrefix.js');
|
|
28
29
|
require('../context/UrlAssetPrefix.js');
|
|
29
|
-
require('../../
|
|
30
|
+
require('../../Link_cjs_DXBqPjwm.js');
|
|
30
31
|
|
|
31
32
|
const accordionAppearanceSize = {
|
|
32
33
|
sizeXXL: {
|
|
@@ -155,9 +156,8 @@ function AccordionItem(props) {
|
|
|
155
156
|
const appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, accordionItemConfig);
|
|
156
157
|
const propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
157
158
|
const { fillClass, fillHoverClass, titleBorderColorClass, titleFillClass, titleFillHoverClass, titleTextColor, titleTextSize, titleTextWeight, titleWidthClass, borderColorClass, badgeAppearance, badgeAppearanceSize, badgeShape, badgeSize, badgeTextColor, badgeTextSize, badgeValue, contentTextColor, contentTextSize, contentTextWeight, dividerDirection, dividerFill, dividerSize, icon, iconFill, iconFillIcon, iconFillSize, iconShape, iconSize, iconSrc, shapeClass, shapeStrengthClass, showDivider, sizeClass, zeroGap, zeroPadding, } = propsGenerator;
|
|
158
|
-
//@ts-expect-error
|
|
159
159
|
const { styles } = useStyles.useStyles(props);
|
|
160
|
-
return (jsxRuntime.jsxs("div", { className: clsx('accordion-item', className, zeroPadding && 'accordion-item_zero-padding', zeroGap && 'accordion-item_zero-gap', borderColorClass && `border-color_${borderColorClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `accordion-item_size_${sizeClass}`, isExpanded && 'accordion-item_state_open'), style: styles, children: [jsxRuntime.jsxs("div", { className: clsx('accordion-item__header', fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`), children: [jsxRuntime.jsx(Text.Text, { className: clsx('accordion-item__title', titleBorderColorClass && `border-color_${titleBorderColorClass}`, titleFillClass && `fill_${titleFillClass}`, titleFillHoverClass && `fill_hover_${titleFillHoverClass}`, titleWidthClass && `width_${titleWidthClass}`, onClick && 'cursor_type_pointer'), size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, onClick: onClickTitle, children: title }), jsxRuntime.jsxs("div", { className: "accordion-item__action", children: [badgeValue && (jsxRuntime.jsx(Icon.Badge, { appearance:
|
|
160
|
+
return (jsxRuntime.jsxs("div", { className: clsx('accordion-item', className, zeroPadding && 'accordion-item_zero-padding', zeroGap && 'accordion-item_zero-gap', borderColorClass && `border-color_${borderColorClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `accordion-item_size_${sizeClass}`, isExpanded && 'accordion-item_state_open'), style: styles, children: [jsxRuntime.jsxs("div", { className: clsx('accordion-item__header', fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`), children: [jsxRuntime.jsx(Text.Text, { className: clsx('accordion-item__title', titleBorderColorClass && `border-color_${titleBorderColorClass}`, titleFillClass && `fill_${titleFillClass}`, titleFillHoverClass && `fill_hover_${titleFillHoverClass}`, titleWidthClass && `width_${titleWidthClass}`, onClick && 'cursor_type_pointer'), size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, onClick: onClickTitle, children: title }), jsxRuntime.jsxs("div", { className: "accordion-item__action", children: [badgeValue && (jsxRuntime.jsx(Icon.Badge, { appearance: mergeAppearanceKeys.mergeAppearanceKeys(badgeAppearance, badgeAppearanceSize), className: "accordion-item__badge", size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: clsx('accordion-item__icon'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon, onClick: onClickTitle }))] }), showDivider && (jsxRuntime.jsx(Divider.Divider, { width: "fill", direction: dividerDirection, size: dividerSize, fill: dividerFill || 'surfaceTertiary' }))] }), beforeContent, isExpanded && (jsxRuntime.jsxs("div", { className: clsx('accordion-item__content'), children: [content && (jsxRuntime.jsx("div", { className: clsx('accordion-item__content-inner', fillClass && `fill_${fillClass}`), children: jsxRuntime.jsx(Text.Text, { size: contentTextSize, textColor: contentTextColor, textWeight: contentTextWeight, children: content }) })), children] })), afterContent] }));
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
function Accordion(props) {
|
|
@@ -206,7 +206,6 @@ function Accordion(props) {
|
|
|
206
206
|
}, [items, children, appearance, expandedItems, onClickAccordionItem]);
|
|
207
207
|
const propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props);
|
|
208
208
|
const { fillClass, borderColorClass, shapeClass, shapeStrengthClass, widthClass, } = propsGenerator;
|
|
209
|
-
//@ts-expect-error
|
|
210
209
|
const { styles: accordionStyles } = useStyles.useStyles(props);
|
|
211
210
|
return (jsxRuntime.jsx("div", { className: clsx(className, 'accordion', borderColorClass && `border-color_${borderColorClass}`, fillClass && `fill_${fillClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, widthClass && `width_${widthClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: accordionStyles, children: accordionItemsList }));
|
|
212
211
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Avatar = require('../../
|
|
3
|
+
var Avatar = require('../../Avatar_cjs_Ctz9kEoE.js');
|
|
4
4
|
require('react/jsx-runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('clsx');
|
|
@@ -18,15 +18,15 @@ require('react-responsive');
|
|
|
18
18
|
require('../utils/setViewportProperty.js');
|
|
19
19
|
require('../hooks.js');
|
|
20
20
|
require('../hooks/useStyles/styleAttributes.js');
|
|
21
|
-
require('../../
|
|
21
|
+
require('../../Icon_cjs_D20B2YBo.js');
|
|
22
22
|
require('react-inlinesvg');
|
|
23
23
|
require('../hoc/urlWithAssetPrefix.js');
|
|
24
24
|
require('../context/UrlAssetPrefix.js');
|
|
25
25
|
require('../hooks/useStyles/useStyles.js');
|
|
26
26
|
require('lodash/maxBy');
|
|
27
|
-
require('../../
|
|
28
|
-
require('../../
|
|
29
|
-
require('../../
|
|
27
|
+
require('../../Link_cjs_DXBqPjwm.js');
|
|
28
|
+
require('../../Text_cjs_erTy2pUN.js');
|
|
29
|
+
require('../../Image_cjs_JfkEyfgx.js');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|