@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
|
@@ -4,10 +4,11 @@ import clsx from 'clsx';
|
|
|
4
4
|
import castArray from 'lodash/castArray';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
+
import { mergeAppearanceKeys } from '../utils/mergeAppearanceKeys.js';
|
|
7
8
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
8
|
-
import { B as Badge, I as Icon } from '../
|
|
9
|
-
import { D as Divider } from '../
|
|
10
|
-
import { T as Text } from '../
|
|
9
|
+
import { B as Badge, I as Icon } from '../Icon_es_DNVHNKFK.js';
|
|
10
|
+
import { D as Divider } from '../Divider_es_BR7ZO8w0.js';
|
|
11
|
+
import { T as Text } from '../Text_es_B85LGfjW.js';
|
|
11
12
|
import { icons16 } from '@itcase/icons/default';
|
|
12
13
|
import 'lodash/camelCase';
|
|
13
14
|
import 'lodash/upperFirst';
|
|
@@ -24,7 +25,7 @@ import 'lodash/maxBy';
|
|
|
24
25
|
import 'react-inlinesvg';
|
|
25
26
|
import '../hoc/urlWithAssetPrefix.js';
|
|
26
27
|
import '../context/UrlAssetPrefix.js';
|
|
27
|
-
import '../
|
|
28
|
+
import '../Link_es_BwLH5S8y.js';
|
|
28
29
|
|
|
29
30
|
const accordionAppearanceSize = {
|
|
30
31
|
sizeXXL: {
|
|
@@ -153,9 +154,8 @@ function AccordionItem(props) {
|
|
|
153
154
|
const appearanceConfig = useAppearanceConfig(appearance, accordionItemConfig);
|
|
154
155
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
155
156
|
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;
|
|
156
|
-
//@ts-expect-error
|
|
157
157
|
const { styles } = useStyles(props);
|
|
158
|
-
return (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: [jsxs("div", { className: clsx('accordion-item__header', fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`), children: [jsx(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 }), jsxs("div", { className: "accordion-item__action", children: [badgeValue && (jsx(Badge, { appearance:
|
|
158
|
+
return (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: [jsxs("div", { className: clsx('accordion-item__header', fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`), children: [jsx(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 }), jsxs("div", { className: "accordion-item__action", children: [badgeValue && (jsx(Badge, { appearance: mergeAppearanceKeys(badgeAppearance, badgeAppearanceSize), className: "accordion-item__badge", size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (jsx(Icon, { className: clsx('accordion-item__icon'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon, onClick: onClickTitle }))] }), showDivider && (jsx(Divider, { width: "fill", direction: dividerDirection, size: dividerSize, fill: dividerFill || 'surfaceTertiary' }))] }), beforeContent, isExpanded && (jsxs("div", { className: clsx('accordion-item__content'), children: [content && (jsx("div", { className: clsx('accordion-item__content-inner', fillClass && `fill_${fillClass}`), children: jsx(Text, { size: contentTextSize, textColor: contentTextColor, textWeight: contentTextWeight, children: content }) })), children] })), afterContent] }));
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
function Accordion(props) {
|
|
@@ -204,7 +204,6 @@ function Accordion(props) {
|
|
|
204
204
|
}, [items, children, appearance, expandedItems, onClickAccordionItem]);
|
|
205
205
|
const propsGenerator = useDevicePropsGenerator(props);
|
|
206
206
|
const { fillClass, borderColorClass, shapeClass, shapeStrengthClass, widthClass, } = propsGenerator;
|
|
207
|
-
//@ts-expect-error
|
|
208
207
|
const { styles: accordionStyles } = useStyles(props);
|
|
209
208
|
return (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 }));
|
|
210
209
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../
|
|
1
|
+
export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../Avatar_es_2Na9ZgVL.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -16,12 +16,12 @@ import 'react-responsive';
|
|
|
16
16
|
import '../utils/setViewportProperty.js';
|
|
17
17
|
import '../hooks.js';
|
|
18
18
|
import '../hooks/useStyles/styleAttributes.js';
|
|
19
|
-
import '../
|
|
19
|
+
import '../Icon_es_DNVHNKFK.js';
|
|
20
20
|
import 'react-inlinesvg';
|
|
21
21
|
import '../hoc/urlWithAssetPrefix.js';
|
|
22
22
|
import '../context/UrlAssetPrefix.js';
|
|
23
23
|
import '../hooks/useStyles/useStyles.js';
|
|
24
24
|
import 'lodash/maxBy';
|
|
25
|
-
import '../
|
|
26
|
-
import '../
|
|
27
|
-
import '../
|
|
25
|
+
import '../Link_es_BwLH5S8y.js';
|
|
26
|
+
import '../Text_es_B85LGfjW.js';
|
|
27
|
+
import '../Image_es_DbD3JzLa.js';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
+
import { mergeAppearanceKeys } from '../utils/mergeAppearanceKeys.js';
|
|
3
4
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
4
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { A as Avatar } from '../
|
|
7
|
-
import { G as Group } from '../
|
|
8
|
-
import { T as Text } from '../
|
|
7
|
+
import { A as Avatar } from '../Avatar_es_2Na9ZgVL.js';
|
|
8
|
+
import { G as Group } from '../Group_es_BVpRj4LR.js';
|
|
9
|
+
import { T as Text } from '../Text_es_B85LGfjW.js';
|
|
9
10
|
import 'react';
|
|
10
11
|
import 'lodash/camelCase';
|
|
11
12
|
import 'lodash/castArray';
|
|
@@ -20,12 +21,12 @@ import '../utils/setViewportProperty.js';
|
|
|
20
21
|
import '../hooks.js';
|
|
21
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
23
|
import 'lodash/maxBy';
|
|
23
|
-
import '../
|
|
24
|
+
import '../Icon_es_DNVHNKFK.js';
|
|
24
25
|
import 'react-inlinesvg';
|
|
25
26
|
import '../hoc/urlWithAssetPrefix.js';
|
|
26
27
|
import '../context/UrlAssetPrefix.js';
|
|
27
|
-
import '../
|
|
28
|
-
import '../
|
|
28
|
+
import '../Link_es_BwLH5S8y.js';
|
|
29
|
+
import '../Image_es_DbD3JzLa.js';
|
|
29
30
|
|
|
30
31
|
const avatarStackAppearanceSize = {
|
|
31
32
|
size16: {
|
|
@@ -59,9 +60,8 @@ function AvatarStack(props) {
|
|
|
59
60
|
const appearanceConfig = useAppearanceConfig(appearance, avatarStackConfig);
|
|
60
61
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
61
62
|
const { size } = propsGenerator;
|
|
62
|
-
//@ts-expect-error
|
|
63
63
|
const { styles: avatarStackStyles } = useStyles(props);
|
|
64
|
-
return (avatarsList.length && (jsxs("div", { className: clsx(className, 'avatar-stack', direction && `group_direction_${direction}`, size && `avatar-stack_size_${size}`, isSkeleton && `avatar-stack-skeleton`), style: avatarStackStyles, children: [avatarsList.slice(0, length).map((item) => (jsx(Avatar, { appearance:
|
|
64
|
+
return (avatarsList.length && (jsxs("div", { className: clsx(className, 'avatar-stack', direction && `group_direction_${direction}`, size && `avatar-stack_size_${size}`, isSkeleton && `avatar-stack-skeleton`), style: avatarStackStyles, children: [avatarsList.slice(0, length).map((item) => (jsx(Avatar, { appearance: mergeAppearanceKeys(avatarAppearance, `size${size}`), className: "avatar-stack__item", src: item.src, textSize: "l", firstName: item.firstName, secondName: item.lastName, shape: "circular" }, item.id))), avatarsList.length > length && (jsx(Group, { className: "avatar-stack__item avatar-stack__item-text", width: `${size}px`, height: `${size}px`, fill: "surfaceSecondary", children: jsxs(Text, { size: "xs", textColor: "surfaceTextPrimary", textWeight: "600", children: ["+", avatarsList.length - length] }) }))] })));
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export { AvatarStack };
|
package/dist/components/Badge.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Badge, f as badgeAppearance, g as badgeConfig } from '../
|
|
1
|
+
export { B as Badge, f as badgeAppearance, g as badgeConfig } from '../Icon_es_DNVHNKFK.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -21,5 +21,5 @@ import '../hooks.js';
|
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
22
|
import '../hooks/useStyles/useStyles.js';
|
|
23
23
|
import 'lodash/maxBy';
|
|
24
|
-
import '../
|
|
25
|
-
import '../
|
|
24
|
+
import '../Link_es_BwLH5S8y.js';
|
|
25
|
+
import '../Text_es_B85LGfjW.js';
|
|
@@ -4,9 +4,9 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
8
|
-
import { a as LinkWrapper } from '../
|
|
9
|
-
import { T as Text } from '../
|
|
7
|
+
import { I as Icon } from '../Icon_es_DNVHNKFK.js';
|
|
8
|
+
import { a as LinkWrapper } from '../Link_es_BwLH5S8y.js';
|
|
9
|
+
import { T as Text } from '../Text_es_B85LGfjW.js';
|
|
10
10
|
import { icons12, icons14, icons16, icons20, icons24 } from '@itcase/icons/default';
|
|
11
11
|
import 'lodash/camelCase';
|
|
12
12
|
import 'lodash/castArray';
|
|
@@ -127,7 +127,6 @@ function BreadcrumbsItem(props) {
|
|
|
127
127
|
const appearanceConfig = useAppearanceConfig(appearance, breadcrumbsConfig);
|
|
128
128
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
129
129
|
const { fillClass, labelTextColor, labelTextColorHover, labelTextSize, borderColorClass, text, cursor, icon, iconFill, iconFillIcon, iconFillSize, iconShape, iconSize, iconSrc, shapeClass, sizeClass, underlineClass, } = propsGenerator;
|
|
130
|
-
// @ts-expect-error
|
|
131
130
|
const { styles: itemStyles } = useStyles(props);
|
|
132
131
|
return (jsxs(LinkWrapper, { className: clsx(className, 'breadcrumbs__item', borderColorClass && `border-color_${borderColorClass}`, isActive && 'breadcrumbs__item_current', sizeClass && `breadcrumbs__item_size_${sizeClass}`, shapeClass && `breadcrumbs__item_shape_${shapeClass}`, fillClass && `fill_${fillClass}`, underlineClass && `text-decoration_${underlineClass}`, isSkeleton && `breadcrumbs__item_skeleton`, onClick && (cursor || 'cursor_type_pointer')), "data-testid": dataTestId, "data-tour": dataTour, href: href, LinkComponent: "div", style: itemStyles, onClick: onClick, children: [jsx(Text, { className: "breadcrumbs__item-text", size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, children: text || children }), !isActive && (icon || iconSrc) && (jsx(Icon, { className: clsx('breadcrumbs__item-icon'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] }));
|
|
133
132
|
}
|
|
@@ -145,7 +144,6 @@ function Breadcrumbs(props) {
|
|
|
145
144
|
}
|
|
146
145
|
return [];
|
|
147
146
|
}, [breadcrumbsList, children, appearance, isSkeleton]);
|
|
148
|
-
//@ts-expect-error
|
|
149
147
|
const { styles: breadcrumbsStyles } = useStyles(props);
|
|
150
148
|
return (jsx("div", { className: clsx(className, 'breadcrumbs', widthClass && `width_${widthClass}`, directionClass && `direction_${directionClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: breadcrumbsStyles, children: breadcrumbsItemsList }));
|
|
151
149
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../
|
|
1
|
+
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_ul2sDicM.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
5
|
+
import '../utils/mergeAppearanceKeys.js';
|
|
5
6
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
7
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
8
|
import 'lodash/camelCase';
|
|
@@ -18,10 +19,10 @@ import '../hooks.js';
|
|
|
18
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
19
20
|
import '../hooks/useStyles/useStyles.js';
|
|
20
21
|
import 'lodash/maxBy';
|
|
21
|
-
import '../
|
|
22
|
+
import '../Icon_es_DNVHNKFK.js';
|
|
22
23
|
import 'react-inlinesvg';
|
|
23
24
|
import '../hoc/urlWithAssetPrefix.js';
|
|
24
25
|
import '../context/UrlAssetPrefix.js';
|
|
25
|
-
import '../
|
|
26
|
-
import '../
|
|
27
|
-
import '../
|
|
26
|
+
import '../Link_es_BwLH5S8y.js';
|
|
27
|
+
import '../Text_es_B85LGfjW.js';
|
|
28
|
+
import '../Loader_es_DFSNJsLL.js';
|
package/dist/components/Cell.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
+
import { mergeAppearanceKeys } from '../utils/mergeAppearanceKeys.js';
|
|
3
4
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
4
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { I as Icon } from '../
|
|
7
|
-
import { L as Label } from '../
|
|
8
|
-
import { T as Text } from '../
|
|
7
|
+
import { I as Icon } from '../Icon_es_DNVHNKFK.js';
|
|
8
|
+
import { L as Label } from '../Label_es_CbXFs_ts.js';
|
|
9
|
+
import { T as Text } from '../Text_es_B85LGfjW.js';
|
|
9
10
|
import 'react';
|
|
10
11
|
import 'lodash/camelCase';
|
|
11
12
|
import 'lodash/castArray';
|
|
@@ -23,7 +24,7 @@ import 'lodash/maxBy';
|
|
|
23
24
|
import 'react-inlinesvg';
|
|
24
25
|
import '../hoc/urlWithAssetPrefix.js';
|
|
25
26
|
import '../context/UrlAssetPrefix.js';
|
|
26
|
-
import '../
|
|
27
|
+
import '../Link_es_BwLH5S8y.js';
|
|
27
28
|
|
|
28
29
|
const cellAppearanceSize = {
|
|
29
30
|
sizeXL: {
|
|
@@ -166,7 +167,6 @@ function Cell(props) {
|
|
|
166
167
|
const appearanceConfig = useAppearanceConfig(appearance, cellConfig);
|
|
167
168
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
168
169
|
const { directionClass, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, titleIconFill, titleIconFillHover, titleIconFillSize, titleIconItemFill, titleIconShape, titleIconSrc, titleLabelAppearance, titleLabelAppearanceSize, titleLabelShape, titleLabelSize, titleLabelTextSize, titleTextColor, titleTextSize, titleTextTruncate, titleTextWeight, titleTextWrap, borderColorActiveClass, borderColorActiveHoverClass, borderColorClass, borderColorHoverClass, reverseClass, shapeClass, sizeClass, valueIconFill, valueIconFillHover, valueIconFillSize, valueIconItemFill, valueIconShape, valueIconSrc, valueLabel, valueLabelAppearance, valueLabelAppearanceSize, valueLabelShape, valueLabelSize, valueLabelTextSize, valueTextAlign, valueTextColor, valueTextSize, valueTextTruncate, valueTextWeight, valueTextWrap, widthClass, zeroGap, zeroPadding, } = propsGenerator;
|
|
169
|
-
// @ts-expect-error
|
|
170
170
|
const { data: dataStyles, styles: cellStyles } = useStyles(props);
|
|
171
171
|
return (jsxs("div", { className: clsx(className, 'cell', sizeClass && `cell_size_${sizeClass}`, !isActive
|
|
172
172
|
? fillClass && `fill_${fillClass}`
|
|
@@ -179,7 +179,7 @@ function Cell(props) {
|
|
|
179
179
|
? borderColorHoverClass &&
|
|
180
180
|
`border-color_hover_${borderColorHoverClass}`
|
|
181
181
|
: borderColorActiveHoverClass &&
|
|
182
|
-
`border-color_active_hover_${borderColorActiveHoverClass}`, reverseClass && `cell_reverse_${reverseClass}`, shapeClass && `cell_shape_${shapeClass}`, widthClass && `width_${widthClass}`, zeroPadding && 'cell_reset-padding', zeroGap && 'cell_reset-gap'), "data-testid": dataTestId, "data-tour": dataTour, style: cellStyles, onClick: onClick, onMouseEnter: onMouseEnter, children: [before && jsx("div", { className: "cell__before", children: before }), jsxs("div", { className: clsx('cell__wrapper', directionClass && `cell__wrapper_direction_${directionClass}`, isEqual && 'cell__wrapper-equal', isSameWidth && 'cell__wrapper-same-width'), children: [title && (jsxs("div", { className: "cell__data", style: dataStyles, children: [jsx(Text, { className: "cell__title", size: titleTextSize, textColor: titleTextColor, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, tag: titleTag, children: title }), (titleIcon || titleIconSrc) && (jsx(Icon, { className: "cell__title-icon", fill: titleIconFill, fillSize: titleIconFillSize, iconFill: titleIconItemFill, iconFillHover: titleIconFillHover, imageSrc: titleIconSrc, shape: titleIconShape, SvgImage: titleIcon })), (showTitleLabel || titleLabel) && (jsx(Label, { appearance:
|
|
182
|
+
`border-color_active_hover_${borderColorActiveHoverClass}`, reverseClass && `cell_reverse_${reverseClass}`, shapeClass && `cell_shape_${shapeClass}`, widthClass && `width_${widthClass}`, zeroPadding && 'cell_reset-padding', zeroGap && 'cell_reset-gap'), "data-testid": dataTestId, "data-tour": dataTour, style: cellStyles, onClick: onClick, onMouseEnter: onMouseEnter, children: [before && jsx("div", { className: "cell__before", children: before }), jsxs("div", { className: clsx('cell__wrapper', directionClass && `cell__wrapper_direction_${directionClass}`, isEqual && 'cell__wrapper-equal', isSameWidth && 'cell__wrapper-same-width'), children: [title && (jsxs("div", { className: "cell__data", style: dataStyles, children: [jsx(Text, { className: "cell__title", size: titleTextSize, textColor: titleTextColor, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, tag: titleTag, children: title }), (titleIcon || titleIconSrc) && (jsx(Icon, { className: "cell__title-icon", fill: titleIconFill, fillSize: titleIconFillSize, iconFill: titleIconItemFill, iconFillHover: titleIconFillHover, imageSrc: titleIconSrc, shape: titleIconShape, SvgImage: titleIcon })), (showTitleLabel || titleLabel) && (jsx(Label, { appearance: mergeAppearanceKeys(titleLabelAppearance, titleLabelAppearanceSize), className: "cell__title-label", size: titleLabelSize, label: titleLabel, labelTextSize: titleLabelTextSize, shape: titleLabelShape }))] })), value && (jsxs("div", { className: "cell__data", style: dataStyles, children: [jsx(Text, { className: "cell__value", size: valueTextSize, textAlign: valueTextAlign, textColor: valueTextColor, textTruncate: valueTextTruncate, textWeight: valueTextWeight, textWrap: valueTextWrap, tag: valueTag, children: value }), (valueIcon || valueIconSrc) && (jsx(Icon, { className: "cell__value-icon", fill: valueIconFill, fillSize: valueIconFillSize, iconFill: valueIconItemFill, iconFillHover: valueIconFillHover, imageSrc: valueIconSrc, shape: valueIconShape, SvgImage: valueIcon })), (showValueLabel || valueLabel) && (jsx(Label, { appearance: mergeAppearanceKeys(valueLabelAppearance, valueLabelAppearanceSize), className: "cell__value-label", size: valueLabelSize, label: valueLabel, labelTextSize: valueLabelTextSize, shape: valueLabelShape }))] }))] }), after && jsx("div", { className: "cell__after", children: after })] }));
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
export { Cell, cellAppearance, cellConfig };
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
|
-
import { T as Text } from '../
|
|
5
|
+
import { T as Text } from '../Text_es_B85LGfjW.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/castArray';
|
|
@@ -22,15 +22,15 @@ import 'lodash/maxBy';
|
|
|
22
22
|
const checkboxAppearanceDefault = {
|
|
23
23
|
defaultPrimary: {
|
|
24
24
|
fillCheckbox: 'surfaceSecondary',
|
|
25
|
-
fillCheckboxActive: '
|
|
26
|
-
fillCheckboxActiveHover: '
|
|
25
|
+
fillCheckboxActive: 'surfaceSecondary',
|
|
26
|
+
fillCheckboxActiveHover: 'surfaceTertiary',
|
|
27
27
|
fillCheckboxHover: 'surfaceHoverTertiary',
|
|
28
28
|
fillCheckmark: 'surfacePrimary',
|
|
29
29
|
labelTextColor: 'surfaceTextPrimary',
|
|
30
30
|
descTextColor: 'surfaceTextPrimary',
|
|
31
31
|
borderColorCheckbox: 'surfaceBorderPrimary',
|
|
32
|
-
borderColorCheckboxActive: '
|
|
33
|
-
borderColorCheckboxActiveHover: '
|
|
32
|
+
borderColorCheckboxActive: 'surfaceBorderPrimary',
|
|
33
|
+
borderColorCheckboxActiveHover: 'surfaceBorderPrimary',
|
|
34
34
|
borderColorCheckboxHover: 'surfaceBorderHoverPrimary',
|
|
35
35
|
},
|
|
36
36
|
};
|
|
@@ -116,7 +116,6 @@ function Checkmark(props) {
|
|
|
116
116
|
const appearanceConfig = useAppearanceConfig(appearance, checkmarkConfig);
|
|
117
117
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
118
118
|
const { fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, borderColorActiveClass, borderColorActiveHoverClass, borderColorClass, borderColorHoverClass, borderWidthClass, checkmarkFillClass, sizeClass, } = propsGenerator;
|
|
119
|
-
// @ts-expect-error
|
|
120
119
|
const { styles: checkmarkStyles } = useStyles(props);
|
|
121
120
|
return (jsx("div", { className: clsx(className, 'checkmark', sizeClass && `checkmark_size_${sizeClass}`, !isChecked || !isActive
|
|
122
121
|
? fillClass && `fill_${fillClass}`
|
package/dist/components/Chips.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../
|
|
1
|
+
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_wecRqt6G.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
@@ -18,9 +18,9 @@ import '../hooks/useStyles/styleAttributes.js';
|
|
|
18
18
|
import '../hooks/useStyles/useStyles.js';
|
|
19
19
|
import 'lodash/maxBy';
|
|
20
20
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
21
|
-
import '../
|
|
21
|
+
import '../Icon_es_DNVHNKFK.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../hoc/urlWithAssetPrefix.js';
|
|
24
24
|
import '../context/UrlAssetPrefix.js';
|
|
25
|
-
import '../
|
|
26
|
-
import '../
|
|
25
|
+
import '../Link_es_BwLH5S8y.js';
|
|
26
|
+
import '../Text_es_B85LGfjW.js';
|
|
@@ -4,9 +4,9 @@ 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 } from '../
|
|
8
|
-
import { L as Loader } from '../
|
|
9
|
-
import { T as Text } from '../
|
|
7
|
+
import { I as Icon } from '../Icon_es_DNVHNKFK.js';
|
|
8
|
+
import { L as Loader } from '../Loader_es_DFSNJsLL.js';
|
|
9
|
+
import { T as Text } from '../Text_es_B85LGfjW.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
11
11
|
import 'lodash/castArray';
|
|
12
12
|
import 'lodash/upperFirst';
|
|
@@ -23,7 +23,7 @@ import 'lodash/maxBy';
|
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
24
|
import '../hoc/urlWithAssetPrefix.js';
|
|
25
25
|
import '../context/UrlAssetPrefix.js';
|
|
26
|
-
import '../
|
|
26
|
+
import '../Link_es_BwLH5S8y.js';
|
|
27
27
|
|
|
28
28
|
const choiceAppearanceDefault = {
|
|
29
29
|
defaultMutedPrimary: {
|
|
@@ -69,15 +69,14 @@ const choiceAppearanceDisabled = {
|
|
|
69
69
|
fillItemActive: 'surfaceDisabled',
|
|
70
70
|
fillItemActiveHover: 'surfaceDisabled',
|
|
71
71
|
fillItemHover: 'surfaceTertiary',
|
|
72
|
-
labelTextActiveColor: 'surfaceTextQuaternary',
|
|
73
72
|
labelTextColor: 'surfaceTextQuaternary',
|
|
74
73
|
borderColor: 'surfaceBorderPrimary',
|
|
75
74
|
iconAfterFill: 'surfaceItemPrimary',
|
|
76
|
-
iconAfterFillActive: '
|
|
75
|
+
iconAfterFillActive: 'disabledItemSecondary',
|
|
77
76
|
iconBeforeFill: 'surfaceItemPrimary',
|
|
78
|
-
iconBeforeFillActive: '
|
|
77
|
+
iconBeforeFillActive: 'disabledItemSecondary',
|
|
79
78
|
iconFill: 'surfaceItemPrimary',
|
|
80
|
-
iconFillActive: '
|
|
79
|
+
iconFillActive: 'disabledItemSecondary',
|
|
81
80
|
},
|
|
82
81
|
};
|
|
83
82
|
|
|
@@ -105,14 +104,14 @@ const choiceAppearanceRequire = {
|
|
|
105
104
|
fillItemActive: 'warningSecondary',
|
|
106
105
|
fillItemHover: 'warningHoverPrimary',
|
|
107
106
|
labelTextColor: 'warningTextSecondary',
|
|
108
|
-
labelTextColorActive: '
|
|
107
|
+
labelTextColorActive: 'warningTextPrimary',
|
|
109
108
|
borderColor: 'warningBorderSecondary',
|
|
110
109
|
iconAfterFill: 'warningItemSecondary',
|
|
111
|
-
iconAfterFillActive: '
|
|
110
|
+
iconAfterFillActive: 'warningItemTertiary',
|
|
112
111
|
iconBeforeFill: 'warningItemSecondary',
|
|
113
|
-
iconBeforeFillActive: '
|
|
112
|
+
iconBeforeFillActive: 'warningItemTertiary',
|
|
114
113
|
iconFill: 'warningItemSecondary',
|
|
115
|
-
iconFillActive: '
|
|
114
|
+
iconFillActive: 'warningItemTertiary',
|
|
116
115
|
},
|
|
117
116
|
};
|
|
118
117
|
|
|
@@ -183,11 +182,11 @@ const choiceAppearanceSuccess = {
|
|
|
183
182
|
labelTextColorActive: 'successTextActivePrimary',
|
|
184
183
|
borderColor: 'successBorderSecondary',
|
|
185
184
|
iconAfterFill: 'successItemSecondary',
|
|
186
|
-
iconAfterFillActive: '
|
|
185
|
+
iconAfterFillActive: 'successItemTertiary',
|
|
187
186
|
iconBeforeFill: 'successItemSecondary',
|
|
188
|
-
iconBeforeFillActive: '
|
|
187
|
+
iconBeforeFillActive: 'successItemTertiary',
|
|
189
188
|
iconFill: 'successItemSecondary',
|
|
190
|
-
iconFillActive: '
|
|
189
|
+
iconFillActive: 'successItemTertiary',
|
|
191
190
|
},
|
|
192
191
|
};
|
|
193
192
|
|
|
@@ -219,7 +218,6 @@ function Choice(props) {
|
|
|
219
218
|
const appearanceConfig = useAppearanceConfig(appearance, choiceConfig, isDisabled);
|
|
220
219
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
221
220
|
const { size, fillClass, fillItemActiveClass, fillItemActiveDisabledClass, fillItemActiveHoverClass, fillItemClass, fillItemDisabledClass, fillItemHoverClass, labelTextColor, labelTextColorActive, labelTextColorActiveHover, labelTextColorHover, labelTextSize, labelTextWeight, labelTextWrap, borderColorClass, borderTypeClass, borderWidthClass, iconAfterFill, iconAfterFillActive, iconAfterFillDisabled, iconAfterSize, iconBeforeFill, iconBeforeFillActive, iconBeforeFillDisabled, iconBeforeSize, iconFill, iconFillActive, iconFillDisabled, iconSize, shapeClass, shapeStrengthClass, wrapClass, } = propsGenerator;
|
|
222
|
-
//@ts-expect-error
|
|
223
221
|
const { styles } = useStyles(props);
|
|
224
222
|
return (jsxs("div", { id: id, className: clsx(className, 'choice', size && `choice_size_${size}`, fillClass && `fill_${fillClass}`, wrapClass && `choice_wrap_${wrapClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, isSkeleton && `choice_skeleton`), ref: controlRef, "data-testid": dataTestId && `${dataTestId}Choice`, "data-tour": dataTour, style: styles, children: [before && jsx("div", { className: "choice__before", children: before }), isLoading ? (jsx(Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemPrimary" })) : (jsx(React.Fragment, { children: options.map((item) => {
|
|
225
223
|
const isActive = typeof active === 'object'
|
|
@@ -4,8 +4,8 @@ import clsx from 'clsx';
|
|
|
4
4
|
import Cookies from 'js-cookie';
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { B as Button } from '../
|
|
8
|
-
import { T as Text } from '../
|
|
7
|
+
import { B as Button } from '../Button_es_ul2sDicM.js';
|
|
8
|
+
import { T as Text } from '../Text_es_B85LGfjW.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
11
11
|
import 'lodash/upperFirst';
|
|
@@ -18,14 +18,15 @@ import 'react-responsive';
|
|
|
18
18
|
import '../utils/setViewportProperty.js';
|
|
19
19
|
import '../hooks.js';
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
|
+
import '../utils/mergeAppearanceKeys.js';
|
|
21
22
|
import '../hooks/useStyles/useStyles.js';
|
|
22
23
|
import 'lodash/maxBy';
|
|
23
|
-
import '../
|
|
24
|
+
import '../Icon_es_DNVHNKFK.js';
|
|
24
25
|
import 'react-inlinesvg';
|
|
25
26
|
import '../hoc/urlWithAssetPrefix.js';
|
|
26
27
|
import '../context/UrlAssetPrefix.js';
|
|
27
|
-
import '../
|
|
28
|
-
import '../
|
|
28
|
+
import '../Link_es_BwLH5S8y.js';
|
|
29
|
+
import '../Loader_es_DFSNJsLL.js';
|
|
29
30
|
|
|
30
31
|
const cookiesWarningAppearanceDefault = {
|
|
31
32
|
defaultPrimary: {
|
|
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { PartySuggestions } from 'react-dadata';
|
|
5
|
-
import { I as Input } from '../
|
|
5
|
+
import { I as Input } from '../Input_es_CYUPx5I_.js';
|
|
6
6
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
@@ -3,19 +3,20 @@ import { useCallback } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { DateTime } from 'luxon';
|
|
5
5
|
import { DATE_PERIOD_INTERVALS } from '@itcase/common';
|
|
6
|
+
import { mergeAppearanceKeys } from '../utils/mergeAppearanceKeys.js';
|
|
6
7
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
8
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
|
-
import { b as ChipsGroup, C as Chips } from '../
|
|
9
|
-
import { D as DatePickerInput } from '../
|
|
9
|
+
import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_wecRqt6G.js';
|
|
10
|
+
import { D as DatePickerInput } from '../DatePicker_es_CCZmi-lN.js';
|
|
10
11
|
import 'react-select';
|
|
11
|
-
import '../
|
|
12
|
-
import { S as SelectContainer } from '../
|
|
12
|
+
import '../Icon_es_DNVHNKFK.js';
|
|
13
|
+
import { S as SelectContainer } from '../SelectContainer_es_Bqek7tN5.js';
|
|
13
14
|
import 'lodash/camelCase';
|
|
14
15
|
import 'lodash/maxBy';
|
|
15
16
|
import 'lodash/upperFirst';
|
|
16
17
|
import '../context/Notifications.js';
|
|
17
18
|
import '../context/UIContext.js';
|
|
18
|
-
import '../
|
|
19
|
+
import '../Group_es_BVpRj4LR.js';
|
|
19
20
|
import 'lodash/castArray';
|
|
20
21
|
import '../hooks.js';
|
|
21
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
@@ -24,20 +25,20 @@ import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
|
24
25
|
import 'react-responsive';
|
|
25
26
|
import '../utils/setViewportProperty.js';
|
|
26
27
|
import '../hooks/useStyles/useStyles.js';
|
|
27
|
-
import '../
|
|
28
|
+
import '../Text_es_B85LGfjW.js';
|
|
28
29
|
import 'date-fns/locale';
|
|
29
30
|
import 'react-datepicker';
|
|
30
|
-
import '../
|
|
31
|
-
import '../
|
|
32
|
-
import '../
|
|
33
|
-
import '../
|
|
34
|
-
import '../
|
|
31
|
+
import '../Button_es_ul2sDicM.js';
|
|
32
|
+
import '../Link_es_BwLH5S8y.js';
|
|
33
|
+
import '../Loader_es_DFSNJsLL.js';
|
|
34
|
+
import '../Input_es_CYUPx5I_.js';
|
|
35
|
+
import '../Label_es_CbXFs_ts.js';
|
|
35
36
|
import '@itcase/icons/default';
|
|
36
37
|
import 'react-inlinesvg';
|
|
37
38
|
import '../hoc/urlWithAssetPrefix.js';
|
|
38
39
|
import '../context/UrlAssetPrefix.js';
|
|
39
40
|
import 'react-select/creatable';
|
|
40
|
-
import '../
|
|
41
|
+
import '../Divider_es_BR7ZO8w0.js';
|
|
41
42
|
|
|
42
43
|
const datePeriodAppearanceShape = {
|
|
43
44
|
circular: {
|
|
@@ -151,23 +152,22 @@ function DatePeriod(props) {
|
|
|
151
152
|
return (dateStartIso === normalizedDatePeriodValueStart &&
|
|
152
153
|
dateEndIso === normalizedDatePeriodValueEnd);
|
|
153
154
|
}, [datePeriodValueEnd, datePeriodValueStart]);
|
|
154
|
-
return (jsxs("div", { className: clsx(className, 'date-period', sizeClass && `date-period_size_${sizeClass}`, isSkeleton && `date-period_skeleton`), "data-testid": dataTestId, "data-tour": dataTour, children: [jsxs("div", { className: clsx('date-period__wrapper', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, fillClass && `fill_${fillClass}`, 'cursor_type_pointer'), children: [jsx(ChipsGroup, { className: "date-period__choice", direction: "horizontal", children: datePeriodIntervalsList.map((datePeriodItem) => (jsx(Chips, { appearance:
|
|
155
|
-
appearance:
|
|
155
|
+
return (jsxs("div", { className: clsx(className, 'date-period', sizeClass && `date-period_size_${sizeClass}`, isSkeleton && `date-period_skeleton`), "data-testid": dataTestId, "data-tour": dataTour, children: [jsxs("div", { className: clsx('date-period__wrapper', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, fillClass && `fill_${fillClass}`, 'cursor_type_pointer'), children: [jsx(ChipsGroup, { className: "date-period__choice", direction: "horizontal", children: datePeriodIntervalsList.map((datePeriodItem) => (jsx(Chips, { appearance: mergeAppearanceKeys(chipsAppearance, chipsAppearanceSize), label: datePeriodItem.label, shape: chipsShape, isActive: checkIsChipsActive(datePeriodItem), onClick: () => onClickPeriodChips(datePeriodItem) }, datePeriodItem.value))) }), jsx(DatePickerInput, { className: "date-period__datepicker", datePickerProps: {
|
|
156
|
+
appearance: mergeAppearanceKeys(datePickerAppearance, datePickerAppearanceSize),
|
|
156
157
|
dateFormat: 'dd/MM/yyyy',
|
|
157
158
|
monthsShown: monthsShown,
|
|
158
159
|
popperPlacement: popperPlacement,
|
|
159
160
|
selectsRange: selectsRange,
|
|
160
161
|
showWeekNumbers: showWeekNumbers,
|
|
161
162
|
isClearable: false,
|
|
162
|
-
isStartDefaultNull: true,
|
|
163
163
|
onKeyDown: onKeyDown,
|
|
164
164
|
}, endValue: datePeriodValueEnd, inputProps: {
|
|
165
|
-
appearance:
|
|
165
|
+
appearance: mergeAppearanceKeys(datePickerInputAppearance, datePickerInputAppearanceSize, 'ghost'),
|
|
166
166
|
className: `date-period__datepicker-input date-period__datepicker-input_size_${sizeClass} `,
|
|
167
167
|
fillHover: datePickerInputFillHover,
|
|
168
168
|
textSize: datePickerInputTextSize,
|
|
169
169
|
placeholder: 'Выбрать период',
|
|
170
|
-
}, value: datePeriodValueStart, onChange: onChangeDatePeriod })] }), datePeriodSelectFirstOptions && (jsx(SelectContainer, { appearance:
|
|
170
|
+
}, value: datePeriodValueStart, onChange: onChangeDatePeriod })] }), datePeriodSelectFirstOptions && (jsx(SelectContainer, { appearance: mergeAppearanceKeys(selectAppearance, selectAppearanceSize), className: "date-period__select", width: "180px", minWidth: "180px", options: datePeriodSelectFirstOptions, placeholder: datePeriodSelectFirstPlaceholder, shape: selectShape, value: datePeriodSelectFirstValue, isSearchable: true, onChange: onChangeDatePeriodFirstSelect })), datePeriodSelectSecondOptions && (jsx(SelectContainer, { appearance: mergeAppearanceKeys(selectAppearance, selectAppearanceSize), className: "date-period__select", width: "180px", minWidth: "180px", options: datePeriodSelectSecondOptions, placeholder: datePeriodSelectSecondPlaceholder, shape: selectShape, value: datePeriodSelectSecondValue, isSearchable: true, onChange: onChangeDatePeriodSecondSelect }))] }));
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
export { DatePeriod, datePeriodAppearance, datePeriodConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../
|
|
1
|
+
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_CCZmi-lN.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -20,14 +20,15 @@ import '../hooks.js';
|
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
21
|
import '../hooks/useStyles/useStyles.js';
|
|
22
22
|
import 'lodash/maxBy';
|
|
23
|
-
import '../
|
|
24
|
-
import '../
|
|
23
|
+
import '../Button_es_ul2sDicM.js';
|
|
24
|
+
import '../utils/mergeAppearanceKeys.js';
|
|
25
|
+
import '../Icon_es_DNVHNKFK.js';
|
|
25
26
|
import 'react-inlinesvg';
|
|
26
27
|
import '../hoc/urlWithAssetPrefix.js';
|
|
27
28
|
import '../context/UrlAssetPrefix.js';
|
|
28
|
-
import '../
|
|
29
|
-
import '../
|
|
30
|
-
import '../
|
|
31
|
-
import '../
|
|
32
|
-
import '../
|
|
29
|
+
import '../Link_es_BwLH5S8y.js';
|
|
30
|
+
import '../Text_es_B85LGfjW.js';
|
|
31
|
+
import '../Loader_es_DFSNJsLL.js';
|
|
32
|
+
import '../Input_es_CYUPx5I_.js';
|
|
33
|
+
import '../Label_es_CbXFs_ts.js';
|
|
33
34
|
import '@itcase/icons/default';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Divider, a as dividerAppearance, d as dividerConfig } from '../
|
|
1
|
+
export { D as Divider, a as dividerAppearance, d as dividerConfig } from '../Divider_es_BR7ZO8w0.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
package/dist/components/Dot.js
CHANGED
|
@@ -21,7 +21,6 @@ function Dot(props) {
|
|
|
21
21
|
const { className, children } = props;
|
|
22
22
|
const propsGenerator = useDevicePropsGenerator(props);
|
|
23
23
|
const { dataTestId, dataTour, fillClass, borderColorClass, borderTypeClass, shapeClass, sizeClass, } = propsGenerator;
|
|
24
|
-
// @ts-expect-error
|
|
25
24
|
const { styles } = useStyles(props);
|
|
26
25
|
return (jsx("div", { className: clsx(className, 'dot', borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, fillClass && `fill_${fillClass}`, shapeClass && `dot_shape_${shapeClass}`, sizeClass && `dot_size_${sizeClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: styles, children: children }));
|
|
27
26
|
}
|
|
@@ -4,9 +4,9 @@ import clsx from 'clsx';
|
|
|
4
4
|
import ReactDrawer from 'react-modern-drawer';
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { D as Divider } from '../
|
|
8
|
-
import { I as Icon, b as Title } from '../
|
|
9
|
-
import { T as Text } from '../
|
|
7
|
+
import { D as Divider } from '../Divider_es_BR7ZO8w0.js';
|
|
8
|
+
import { I as Icon, b as Title } from '../Icon_es_DNVHNKFK.js';
|
|
9
|
+
import { T as Text } from '../Text_es_B85LGfjW.js';
|
|
10
10
|
import { icons24 } from '@itcase/icons/default';
|
|
11
11
|
import 'lodash/camelCase';
|
|
12
12
|
import 'lodash/castArray';
|
|
@@ -25,7 +25,7 @@ import 'lodash/maxBy';
|
|
|
25
25
|
import 'react-inlinesvg';
|
|
26
26
|
import '../hoc/urlWithAssetPrefix.js';
|
|
27
27
|
import '../context/UrlAssetPrefix.js';
|
|
28
|
-
import '../
|
|
28
|
+
import '../Link_es_BwLH5S8y.js';
|
|
29
29
|
|
|
30
30
|
const drawerAppearanceSize = {
|
|
31
31
|
sizeH3: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../
|
|
1
|
+
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem_es__mygSEH6.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -18,10 +18,10 @@ import '../hooks.js';
|
|
|
18
18
|
import '../hooks/useStyles/styleAttributes.js';
|
|
19
19
|
import '../hooks/useStyles/useStyles.js';
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
|
-
import '../
|
|
21
|
+
import '../Icon_es_DNVHNKFK.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../hoc/urlWithAssetPrefix.js';
|
|
24
24
|
import '../context/UrlAssetPrefix.js';
|
|
25
|
-
import '../
|
|
26
|
-
import '../
|
|
27
|
-
import '../
|
|
25
|
+
import '../Link_es_BwLH5S8y.js';
|
|
26
|
+
import '../Text_es_B85LGfjW.js';
|
|
27
|
+
import '../Divider_es_BR7ZO8w0.js';
|