@itcase/ui 1.9.72 → 1.9.75
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_RLDhG_yp.js → Avatar_cjs_Du4ue21o.js} +2 -2
- package/dist/{Avatar_es_C3EWFMqx.js → Avatar_es_CibEByu1.js} +2 -2
- package/dist/{Button_cjs_PkMuJ9DO.js → Button_cjs_WtHw9BDA.js} +2 -2
- package/dist/{Button_es_Bc-ZxgQj.js → Button_es_8PzNfJfg.js} +2 -2
- package/dist/{ChipsGroup_cjs_B2ZlA6eW.js → ChipsGroup_cjs_DyrMNE7_.js} +1 -1
- package/dist/{ChipsGroup_es_RmxQO3xO.js → ChipsGroup_es_BfxuOpwS.js} +1 -1
- package/dist/{DatePicker_cjs_BICCxCBy.js → DatePicker_cjs_BSeEjkX8.js} +4 -4
- package/dist/{DatePicker_es_CjMN5FY_.js → DatePicker_es_C7XoEWWQ.js} +4 -4
- package/dist/{Group_cjs_DnhjMBbG.js → Group_cjs_DOK19BiO.js} +1 -1
- package/dist/{Group_es_xcelocLg.js → Group_es_C5ZSQzaZ.js} +1 -1
- package/dist/{Image_cjs_DWpR9AaJ.js → Image_cjs_CJeps_Bm.js} +1 -1
- package/dist/{Image_es_mAIAmL6i.js → Image_es_814TZFXG.js} +1 -1
- package/dist/{Input_cjs_BFNo6gwu.js → Input_cjs_BgxerqP6.js} +1 -1
- package/dist/{Input_es_CWDd4ALJ.js → Input_es_DeChNcE-.js} +1 -1
- package/dist/{Label_cjs_DTzXRcqq.js → Label_cjs_B6PcbtKO.js} +2 -1
- package/dist/{Label_es_DaOAzZqj.js → Label_es_BgLfzksU.js} +2 -1
- package/dist/{Loader_cjs_rE9OZ75z.js → Loader_cjs_DOnd5Cda.js} +1 -1
- package/dist/{Loader_es_VyygDcXJ.js → Loader_es_DXPtXFW_.js} +1 -1
- package/dist/{Overlay_cjs_30v9WTGR.js → Overlay_cjs_DE0PpMty.js} +1 -1
- package/dist/{Overlay_es_CnYxRbhB.js → Overlay_es_He7Wj1Za.js} +1 -1
- package/dist/{SelectContainer_cjs_FvhilokK.js → SelectContainer_cjs_DGntN9oG.js} +3 -3
- package/dist/{SelectContainer_es_DFy6rr8f.js → SelectContainer_es_FnfMojiJ.js} +3 -3
- package/dist/cjs/components/Accordion.js +2 -1
- package/dist/cjs/components/Avatar.js +4 -3
- package/dist/cjs/components/AvatarStack.js +5 -4
- package/dist/cjs/components/Badge.js +2 -1
- package/dist/cjs/components/Breadcrumbs.js +2 -1
- package/dist/cjs/components/Button.js +4 -3
- package/dist/cjs/components/Cell.js +3 -2
- package/dist/cjs/components/Checkbox.js +2 -1
- package/dist/cjs/components/Checkmark.js +2 -1
- package/dist/cjs/components/Chips.js +3 -2
- package/dist/cjs/components/Choice.js +3 -2
- package/dist/cjs/components/Code.js +2 -1
- package/dist/cjs/components/CookiesWarning.js +4 -3
- package/dist/cjs/components/Dadata.js +3 -2
- package/dist/cjs/components/DatePeriod.js +10 -9
- package/dist/cjs/components/DatePicker.js +7 -6
- package/dist/cjs/components/Divider.js +2 -1
- package/dist/cjs/components/Dot.js +2 -1
- package/dist/cjs/components/Drawer.js +2 -1
- package/dist/cjs/components/Dropdown.js +2 -1
- package/dist/cjs/components/Dropzone.js +5 -3
- package/dist/cjs/components/Flex.js +2 -1
- package/dist/cjs/components/Grid.js +2 -1
- package/dist/cjs/components/Group.js +3 -2
- package/dist/cjs/components/HTMLContent.js +2 -1
- package/dist/cjs/components/HeroTitle.js +2 -1
- package/dist/cjs/components/Icon.js +2 -1
- package/dist/cjs/components/Image.js +3 -2
- package/dist/cjs/components/Input.js +3 -2
- package/dist/cjs/components/InputNumber.js +4 -3
- package/dist/cjs/components/InputPassword.js +2 -1
- package/dist/cjs/components/Label.js +3 -2
- package/dist/cjs/components/Link.js +2 -1
- package/dist/cjs/components/List.js +2 -1
- package/dist/cjs/components/Loader.js +3 -2
- package/dist/cjs/components/Logo.js +2 -1
- package/dist/cjs/components/MenuItem.js +15 -25
- package/dist/cjs/components/Modal.js +4 -3
- package/dist/cjs/components/ModalSheetBottom.js +2 -1
- package/dist/cjs/components/Notification.js +4 -3
- package/dist/cjs/components/Overlay.js +3 -2
- package/dist/cjs/components/Pagination.js +2 -1
- package/dist/cjs/components/Radio.js +2 -1
- package/dist/cjs/components/RangeSlider.js +2 -1
- package/dist/cjs/components/Response.js +5 -4
- package/dist/cjs/components/SVGContent.js +2 -1
- package/dist/cjs/components/ScrollOnDrag.js +2 -1
- package/dist/cjs/components/ScrollToView.js +2 -1
- package/dist/cjs/components/Search.js +2 -1
- package/dist/cjs/components/Segmented.js +2 -1
- package/dist/cjs/components/Select.js +5 -4
- package/dist/cjs/components/Swiper.js +3 -2
- package/dist/cjs/components/Switch.js +2 -1
- package/dist/cjs/components/Tab.js +2 -1
- package/dist/cjs/components/Text.js +2 -1
- package/dist/cjs/components/Textarea.js +2 -1
- package/dist/cjs/components/Tile.js +2 -1
- package/dist/cjs/components/Title.js +2 -1
- package/dist/cjs/components/Tooltip.js +3 -1
- package/dist/cjs/components/Video.js +2 -1
- package/dist/cjs/components/Warning.js +2 -1
- package/dist/cjs/context/Notifications.js +2 -1
- package/dist/cjs/context/UIContext.js +2 -1
- package/dist/cjs/context/UrlAssetPrefix.js +2 -1
- package/dist/cjs/hoc/urlWithAssetPrefix.js +2 -1
- package/dist/cjs/hooks/useAppearanceConfig/useAppearanceConfig.js +2 -1
- package/dist/cjs/hooks/useAppearanceConfig.js +2 -1
- package/dist/cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +2 -1
- package/dist/cjs/hooks/useDevicePropsGenerator.js +2 -1
- package/dist/cjs/hooks/useDeviceTargetClass.js +2 -1
- package/dist/cjs/hooks/useDropzoneFieldFiles.js +1834 -1379
- package/dist/cjs/hooks/useMediaQueries/useMediaQueries.js +2 -1
- package/dist/cjs/hooks/useMediaQueries.js +2 -1
- package/dist/cjs/hooks/useStyles/styleAttributes.js +2 -1
- package/dist/cjs/hooks/useStyles/useStyles.js +2 -1
- package/dist/cjs/hooks/useStyles.js +2 -1
- package/dist/cjs/hooks.js +2 -1
- package/dist/cjs/utils/mergeAppearanceKeys.js +2 -1
- package/dist/cjs/utils/setViewportProperty.js +2 -1
- package/dist/cjs/utils.js +2 -1
- package/dist/components/Accordion.js +2 -1
- package/dist/components/Avatar.js +4 -3
- package/dist/components/AvatarStack.js +5 -4
- package/dist/components/Badge.js +2 -1
- package/dist/components/Breadcrumbs.js +2 -1
- package/dist/components/Button.js +4 -3
- package/dist/components/Cell.js +3 -2
- package/dist/components/Checkbox.js +2 -1
- package/dist/components/Checkmark.js +2 -1
- package/dist/components/Chips.js +3 -2
- package/dist/components/Choice.js +3 -2
- package/dist/components/Code.js +2 -1
- package/dist/components/CookiesWarning.js +4 -3
- package/dist/components/Dadata.js +3 -2
- package/dist/components/DatePeriod.js +10 -9
- package/dist/components/DatePicker.js +7 -6
- package/dist/components/Divider.js +2 -1
- package/dist/components/Dot.js +2 -1
- package/dist/components/Drawer.js +2 -1
- package/dist/components/Dropdown.js +2 -1
- package/dist/components/Dropzone.js +5 -3
- package/dist/components/Flex.js +2 -1
- package/dist/components/Grid.js +2 -1
- package/dist/components/Group.js +3 -2
- package/dist/components/HTMLContent.js +2 -1
- package/dist/components/HeroTitle.js +2 -1
- package/dist/components/Icon.js +2 -1
- package/dist/components/Image.js +3 -2
- package/dist/components/Input.js +3 -2
- package/dist/components/InputNumber.js +4 -3
- package/dist/components/InputPassword.js +2 -1
- package/dist/components/Label.js +3 -2
- package/dist/components/Link.js +2 -1
- package/dist/components/List.js +2 -1
- package/dist/components/Loader.js +3 -2
- package/dist/components/Logo.js +2 -1
- package/dist/components/MenuItem.js +17 -27
- package/dist/components/Modal.js +4 -3
- package/dist/components/ModalSheetBottom.js +2 -1
- package/dist/components/Notification.js +4 -3
- package/dist/components/Overlay.js +3 -2
- package/dist/components/Pagination.js +2 -1
- package/dist/components/Radio.js +2 -1
- package/dist/components/RangeSlider.js +2 -1
- package/dist/components/Response.js +5 -4
- package/dist/components/SVGContent.js +2 -1
- package/dist/components/ScrollOnDrag.js +2 -1
- package/dist/components/ScrollToView.js +2 -1
- package/dist/components/Search.js +2 -1
- package/dist/components/Segmented.js +2 -1
- package/dist/components/Select.js +5 -4
- package/dist/components/Swiper.js +3 -2
- package/dist/components/Switch.js +2 -1
- package/dist/components/Tab.js +2 -1
- package/dist/components/Text.js +2 -1
- package/dist/components/Textarea.js +2 -1
- package/dist/components/Tile.js +2 -1
- package/dist/components/Title.js +2 -1
- package/dist/components/Tooltip.js +2 -1
- package/dist/components/Video.js +2 -1
- package/dist/components/Warning.js +2 -1
- package/dist/context/Notifications.js +2 -1
- package/dist/context/UIContext.js +2 -1
- package/dist/context/UrlAssetPrefix.js +2 -1
- package/dist/css/styles/bundles.css +196 -31
- package/dist/hoc/urlWithAssetPrefix.js +2 -1
- package/dist/hooks/useAppearanceConfig/useAppearanceConfig.js +2 -1
- package/dist/hooks/useAppearanceConfig.js +2 -1
- package/dist/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +2 -1
- package/dist/hooks/useDevicePropsGenerator.js +2 -1
- package/dist/hooks/useDeviceTargetClass.js +2 -1
- package/dist/hooks/useDropzoneFieldFiles.js +1834 -1379
- package/dist/hooks/useMediaQueries/useMediaQueries.js +2 -1
- package/dist/hooks/useMediaQueries.js +2 -1
- package/dist/hooks/useStyles/styleAttributes.js +2 -1
- package/dist/hooks/useStyles/useStyles.js +2 -1
- package/dist/hooks/useStyles.js +2 -1
- package/dist/hooks.js +2 -1
- package/dist/{primitives_cjs_D8cRUOUa.js → primitives_cjs_CqGNSrPn.js} +9 -2
- package/dist/{primitives_es_gY0Wzlk_.js → primitives_es_CFZll4Gh.js} +9 -3
- package/dist/types/components/Avatar/Avatar.interface.d.ts +7 -8
- package/dist/types/components/Badge/Badge.interface.d.ts +6 -7
- package/dist/types/components/Badge/index.d.ts +1 -1
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +10 -7
- package/dist/types/components/Select/Select.interface.d.ts +1 -1
- package/dist/types/components/Tooltip/Tooltip.d.ts +1 -2
- package/dist/types/components/Tooltip/Tooltip.interface.d.ts +2 -3
- package/dist/types/components/Tooltip/TooltipWrapper.d.ts +3 -0
- package/dist/types/components/Tooltip/TooltipWrapper.interface.d.ts +13 -0
- package/dist/types/components/Tooltip/index.d.ts +2 -0
- package/dist/utils/mergeAppearanceKeys.js +2 -1
- package/dist/utils/setViewportProperty.js +2 -1
- package/dist/utils.js +2 -1
- package/package.json +13 -12
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'react-responsive';
|
|
3
|
-
export {
|
|
3
|
+
export { n as useMediaQueries } from '../../primitives_es_CFZll4Gh.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
|
+
import '@rc-component/tooltip';
|
|
5
6
|
import 'clsx';
|
|
6
7
|
import 'lodash/camelCase';
|
|
7
8
|
import 'lodash/castArray';
|
|
@@ -2,8 +2,9 @@ import 'react';
|
|
|
2
2
|
import 'lodash/camelCase';
|
|
3
3
|
import 'lodash/maxBy';
|
|
4
4
|
import 'lodash/upperFirst';
|
|
5
|
-
export { u as useStyles } from '../../
|
|
5
|
+
export { u as useStyles } from '../../primitives_es_CFZll4Gh.js';
|
|
6
6
|
import 'react/jsx-runtime';
|
|
7
|
+
import '@rc-component/tooltip';
|
|
7
8
|
import 'clsx';
|
|
8
9
|
import 'lodash/castArray';
|
|
9
10
|
import 'uuid';
|
package/dist/hooks/useStyles.js
CHANGED
package/dist/hooks.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { o as getStyleAttributeKey } from './primitives_es_CFZll4Gh.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
|
+
import '@rc-component/tooltip';
|
|
3
4
|
import 'react';
|
|
4
5
|
import 'clsx';
|
|
5
6
|
import 'lodash/camelCase';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var TooltipTrigger = require('@rc-component/tooltip');
|
|
5
6
|
var React = require('react');
|
|
6
7
|
var clsx = require('clsx');
|
|
7
8
|
var camelCase = require('lodash/camelCase');
|
|
@@ -1870,15 +1871,20 @@ const Tooltip = React.forwardRef(function Tooltip(props, ref) {
|
|
|
1870
1871
|
}), [isTooltipVisible, openTooltip, closeTooltip]);
|
|
1871
1872
|
const appearanceConfig = useAppearanceConfig(appearance, tooltipConfig);
|
|
1872
1873
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
1873
|
-
const { alignClass, alignDirectionClass, alignmentClass, alignPosition, fillClass, titleColor, titleSize, titleWeight, borderColorClass, borderTypeClass, borderWidthClass, textColor, textSize, textWeight, arrowPosition,
|
|
1874
|
+
const { alignClass, alignDirectionClass, alignmentClass, alignPosition, fillClass, titleColor, titleSize, titleWeight, borderColorClass, borderTypeClass, borderWidthClass, textColor, textSize, textWeight, arrowPosition, elevationClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
|
|
1874
1875
|
const { styles: tooltipStyles } = useStyles(props);
|
|
1875
1876
|
return (jsxRuntime.jsxs("div", { className: clsx(className, 'tooltip', !isTooltipDisableState
|
|
1876
1877
|
? isTooltipVisible
|
|
1877
1878
|
? 'tooltip_state_open'
|
|
1878
1879
|
: 'tooltip_state_close'
|
|
1879
|
-
: null, alignPosition && `tooltip_align-position_${alignPosition}`, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`, elevationClass && `elevation_${elevationClass}`,
|
|
1880
|
+
: null, alignPosition && `tooltip_align-position_${alignPosition}`, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`, elevationClass && `elevation_${elevationClass}`, alignmentClass && `alignment_${alignmentClass}`, sizeClass && `tooltip_size_${sizeClass}`, isSkeleton && 'tooltip_skeleton', widthClass && `width_${widthClass}`), ref: tooltipElementRef, "data-testid": dataTestId, "data-tour": dataTour, style: tooltipStyles, onAnimationEnd: onAnimationEnd, children: [arrowPosition && (jsxRuntime.jsx("div", { className: clsx('tooltip__arrow', arrowPosition && `tooltip__arrow_position_${arrowPosition}`, fillClass && `fill_${fillClass}`), children: "\u00A0" })), before, jsxRuntime.jsxs("div", { className: clsx('tooltip__inner', borderWidthClass && `border-width_${borderWidthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, fillClass && `fill_${fillClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`), children: [title && (jsxRuntime.jsx(Title, { className: "tooltip__title text", size: titleSize, textColor: titleColor, textWeight: titleWeight, children: title })), text && (jsxRuntime.jsx(Text, { className: "tooltip__text", size: textSize, textColor: textColor, textWeight: textWeight, children: text })), children] }), after] }));
|
|
1880
1881
|
});
|
|
1881
1882
|
|
|
1883
|
+
const TooltipWrapper = (props) => {
|
|
1884
|
+
const { destroyOnHidden = true, placement = 'right', tooltipContent, trigger = 'hover', openDelay = 0.5, closeDelay = 0.25, isOpen, children, ...tooltipProps } = props;
|
|
1885
|
+
return (jsxRuntime.jsx(TooltipTrigger, { destroyOnHidden: destroyOnHidden, mouseEnterDelay: openDelay, mouseLeaveDelay: closeDelay, overlay: jsxRuntime.jsx(Tooltip, { initialIsVisible: true, ...tooltipProps, children: tooltipContent }), placement: placement, prefixCls: "tooltip-wrapper", trigger: trigger, visible: isOpen, children: children }));
|
|
1886
|
+
};
|
|
1887
|
+
|
|
1882
1888
|
const UrlAssetPrefixContext = React.createContext({
|
|
1883
1889
|
assetPrefix: undefined,
|
|
1884
1890
|
ignorePathsList: undefined,
|
|
@@ -2686,6 +2692,7 @@ exports.NotificationsProvider = NotificationsProvider;
|
|
|
2686
2692
|
exports.Text = Text;
|
|
2687
2693
|
exports.Title = Title;
|
|
2688
2694
|
exports.Tooltip = Tooltip;
|
|
2695
|
+
exports.TooltipWrapper = TooltipWrapper;
|
|
2689
2696
|
exports.UIProvider = UIProvider;
|
|
2690
2697
|
exports.UrlAssetPrefixContext = UrlAssetPrefixContext;
|
|
2691
2698
|
exports.UrlAssetPrefixProvider = UrlAssetPrefixProvider;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import TooltipTrigger from '@rc-component/tooltip';
|
|
3
4
|
import React, { useMemo, createContext, useState, useCallback, useEffect, useContext, memo, useRef, useImperativeHandle } from 'react';
|
|
4
5
|
import clsx from 'clsx';
|
|
5
6
|
import camelCase from 'lodash/camelCase';
|
|
@@ -1868,15 +1869,20 @@ const Tooltip = React.forwardRef(function Tooltip(props, ref) {
|
|
|
1868
1869
|
}), [isTooltipVisible, openTooltip, closeTooltip]);
|
|
1869
1870
|
const appearanceConfig = useAppearanceConfig(appearance, tooltipConfig);
|
|
1870
1871
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
1871
|
-
const { alignClass, alignDirectionClass, alignmentClass, alignPosition, fillClass, titleColor, titleSize, titleWeight, borderColorClass, borderTypeClass, borderWidthClass, textColor, textSize, textWeight, arrowPosition,
|
|
1872
|
+
const { alignClass, alignDirectionClass, alignmentClass, alignPosition, fillClass, titleColor, titleSize, titleWeight, borderColorClass, borderTypeClass, borderWidthClass, textColor, textSize, textWeight, arrowPosition, elevationClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
|
|
1872
1873
|
const { styles: tooltipStyles } = useStyles(props);
|
|
1873
1874
|
return (jsxs("div", { className: clsx(className, 'tooltip', !isTooltipDisableState
|
|
1874
1875
|
? isTooltipVisible
|
|
1875
1876
|
? 'tooltip_state_open'
|
|
1876
1877
|
: 'tooltip_state_close'
|
|
1877
|
-
: null, alignPosition && `tooltip_align-position_${alignPosition}`, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`, elevationClass && `elevation_${elevationClass}`,
|
|
1878
|
+
: null, alignPosition && `tooltip_align-position_${alignPosition}`, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`, elevationClass && `elevation_${elevationClass}`, alignmentClass && `alignment_${alignmentClass}`, sizeClass && `tooltip_size_${sizeClass}`, isSkeleton && 'tooltip_skeleton', widthClass && `width_${widthClass}`), ref: tooltipElementRef, "data-testid": dataTestId, "data-tour": dataTour, style: tooltipStyles, onAnimationEnd: onAnimationEnd, children: [arrowPosition && (jsx("div", { className: clsx('tooltip__arrow', arrowPosition && `tooltip__arrow_position_${arrowPosition}`, fillClass && `fill_${fillClass}`), children: "\u00A0" })), before, jsxs("div", { className: clsx('tooltip__inner', borderWidthClass && `border-width_${borderWidthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, fillClass && `fill_${fillClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`), children: [title && (jsx(Title, { className: "tooltip__title text", size: titleSize, textColor: titleColor, textWeight: titleWeight, children: title })), text && (jsx(Text, { className: "tooltip__text", size: textSize, textColor: textColor, textWeight: textWeight, children: text })), children] }), after] }));
|
|
1878
1879
|
});
|
|
1879
1880
|
|
|
1881
|
+
const TooltipWrapper = (props) => {
|
|
1882
|
+
const { destroyOnHidden = true, placement = 'right', tooltipContent, trigger = 'hover', openDelay = 0.5, closeDelay = 0.25, isOpen, children, ...tooltipProps } = props;
|
|
1883
|
+
return (jsx(TooltipTrigger, { destroyOnHidden: destroyOnHidden, mouseEnterDelay: openDelay, mouseLeaveDelay: closeDelay, overlay: jsx(Tooltip, { initialIsVisible: true, ...tooltipProps, children: tooltipContent }), placement: placement, prefixCls: "tooltip-wrapper", trigger: trigger, visible: isOpen, children: children }));
|
|
1884
|
+
};
|
|
1885
|
+
|
|
1880
1886
|
const UrlAssetPrefixContext = createContext({
|
|
1881
1887
|
assetPrefix: undefined,
|
|
1882
1888
|
ignorePathsList: undefined,
|
|
@@ -2673,4 +2679,4 @@ function DropdownItem(props) {
|
|
|
2673
2679
|
`dropdown__item_justify-content_${justifyContentClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: dropdownItem, onClick: onClick, onMouseEnter: onMouseEnter, children: [jsx("div", { className: "dropdown__item-wrapper", children: jsxs(React.Fragment, { children: [before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('dropdown__item_before', iconBadgeValue && 'dropdown__item_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'dropdown__item_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), children || (jsxs(React.Fragment, { children: [label && (jsx(Text, { className: "dropdown__item-label", size: labelTextSize, textAlign: labelTextAlign, textColor: labelTextColor, textColorActive: labelTextColorActive, textColorActiveHover: labelTextColorActiveHover, textColorHover: labelTextColorHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, children: label })), badgeValue && (jsx(Badge, { appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), desc && (jsx(Text, { className: "dropdown__item-desc", size: descTextSize, textColor: descTextColor, textColorGradient: descTextGradient, textColorHover: descTextColorHover, textStyle: descTextStyle, textWeight: descTextWeight, textWrap: descTextWrap, isActive: isActive, children: desc })), emptyMessage && (jsx(Text, { className: "dropdown__item", size: emptyMessageTextSize, textColor: emptyMessageTextColor, textColorHover: emptyMessageTextColorHover, textStyle: emptyMessageTextStyle, textWeight: emptyMessageTextWeight, textWrap: emptyMessageTextWrap, isActive: isActive, children: emptyMessage }))] })), after, (iconAfter || iconAfterSrc) && (jsx(Icon, { className: clsx('dropdown__item_after', iconBadgeValue && 'dropdown__item_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'dropdown__item_after_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] }) }), showDivider && (jsx(Divider, { width: "fill", direction: dividerDirection, size: dividerSize, fill: dividerFill }))] }));
|
|
2674
2680
|
}
|
|
2675
2681
|
|
|
2676
|
-
export {
|
|
2682
|
+
export { tooltipAppearance as A, Badge as B, tooltipConfig as C, Divider as D, UrlAssetPrefixContext as E, UrlAssetPrefixProvider as F, iconAppearance as G, iconConfig as H, Icon as I, dividerAppearance as J, dividerConfig as K, LinkWrapper as L, dropdownItemAppearance as M, NotificationsProvider as N, dropdownItemConfig as O, Title as T, UIProvider as U, useDevicePropsGenerator as a, Text as b, urlWithAssetPrefix as c, useAppearanceConfig as d, useUserDeviceContext as e, Dropdown as f, DropdownItem as g, TooltipWrapper as h, Link as i, useNotifications as j, useNotificationsAPI as k, Tooltip as l, mergeAppearanceKeys as m, useMediaQueries as n, getStyleAttributeKey as o, styleAttributes as p, textConfig as q, badgeAppearance as r, setViewportProperty as s, textAppearance as t, useStyles as u, badgeConfig as v, linkAppearance as w, linkConfig as x, titleAppearance as y, titleConfig as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { BorderColorProps, CompositeAppearanceSizePxKey, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizePXProps } from '@itcase/types-ui';
|
|
3
3
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
import { BadgeProps } from '../Badge/Badge.interface';
|
|
5
5
|
import { IconProps } from '../Icon/Icon.interface';
|
|
@@ -33,7 +33,7 @@ type AvatarAppearanceProps = {
|
|
|
33
33
|
};
|
|
34
34
|
type AvatarProps = AvatarAppearanceProps & StyleAttributes & {
|
|
35
35
|
after?: string;
|
|
36
|
-
appearance?:
|
|
36
|
+
appearance?: CompositeAppearanceSizePxKey;
|
|
37
37
|
before?: string;
|
|
38
38
|
children?: ReactNode;
|
|
39
39
|
className?: string;
|
|
@@ -47,12 +47,11 @@ type AvatarProps = AvatarAppearanceProps & StyleAttributes & {
|
|
|
47
47
|
src?: string;
|
|
48
48
|
style?: CSSProperties;
|
|
49
49
|
};
|
|
50
|
-
type AvatarAppearanceKey = AppearanceKeysDefault | AppearanceShapeKey | AppearanceSizePxKey | AppearanceStyleKey;
|
|
51
|
-
type AvatarAppearance = {
|
|
52
|
-
[key in AvatarAppearanceKey]?: AvatarAppearanceProps;
|
|
53
|
-
};
|
|
54
50
|
type AvatarConfig = {
|
|
55
|
-
appearance:
|
|
56
|
-
|
|
51
|
+
appearance: {
|
|
52
|
+
[key in CompositeAppearanceSizePxKey]?: AvatarAppearanceProps;
|
|
53
|
+
};
|
|
54
|
+
setAppearance: (appearanceConfig: AvatarConfig['appearance']) => void;
|
|
57
55
|
};
|
|
56
|
+
type AvatarAppearance = AvatarConfig['appearance'];
|
|
58
57
|
export type { AvatarAppearance, AvatarConfig, AvatarProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceKey, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, SvgFillItemProps } from '@itcase/types-ui';
|
|
3
3
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
import { IconProps } from '../Icon/Icon.interface';
|
|
5
5
|
import { TextProps } from '../Text/Text.interface';
|
|
@@ -35,12 +35,11 @@ type BadgeProps = BadgeAppearanceProps & StyleAttributes & {
|
|
|
35
35
|
type?: 'counter' | 'dot' | 'dot-icon-counter' | 'fill' | 'icon' | 'icon-counter';
|
|
36
36
|
value?: number | string;
|
|
37
37
|
};
|
|
38
|
-
type BadgeAppearanceKey = AppearanceKeysDefault | AppearanceShapeKey | AppearanceSizeKey | AppearanceStyleKey;
|
|
39
|
-
type BadgeAppearance = {
|
|
40
|
-
[key in BadgeAppearanceKey]?: BadgeAppearanceProps;
|
|
41
|
-
};
|
|
42
38
|
type BadgeConfig = {
|
|
43
|
-
appearance:
|
|
39
|
+
appearance: {
|
|
40
|
+
[key in CompositeAppearanceKey]?: BadgeAppearanceProps;
|
|
41
|
+
};
|
|
44
42
|
setAppearance: (appearanceConfig: BadgeAppearance) => void;
|
|
45
43
|
};
|
|
46
|
-
|
|
44
|
+
type BadgeAppearance = BadgeConfig['appearance'];
|
|
45
|
+
export type { BadgeAppearance, BadgeConfig, BadgeProps };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Badge, badgeConfig } from './Badge';
|
|
2
2
|
export { badgeAppearance } from './Badge.appearance';
|
|
3
|
-
export type { BadgeAppearance,
|
|
3
|
+
export type { BadgeAppearance, BadgeConfig, BadgeProps, } from './Badge.interface';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { CSSProperties, ElementType, ReactNode } from 'react';
|
|
2
|
-
import { LinkProps } from 'react-scroll';
|
|
3
|
-
import { AlignProps, AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, CompositeAppearanceKey, DirectionProps, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, JustifyContentProps, ShapeProps, ShapeStrengthProps, TextSizeProps, UnderlineProps } from '@itcase/types-ui';
|
|
4
|
-
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
5
|
-
import { IconProps } from '../Icon/Icon.interface';
|
|
6
|
-
import { TextProps } from '../Text/Text.interface';
|
|
7
|
-
import { TooltipProps } from '../Tooltip/Tooltip.interface';
|
|
1
|
+
import type { CSSProperties, ElementType, ReactNode } from 'react';
|
|
2
|
+
import type { LinkProps } from 'react-scroll';
|
|
3
|
+
import type { AlignProps, AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, CompositeAppearanceKey, DirectionProps, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, JustifyContentProps, ShapeProps, ShapeStrengthProps, TextSizeProps, UnderlineProps } from '@itcase/types-ui';
|
|
4
|
+
import type { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
5
|
+
import type { IconProps } from '../Icon/Icon.interface';
|
|
6
|
+
import type { TextProps } from '../Text/Text.interface';
|
|
7
|
+
import type { TooltipProps } from '../Tooltip/Tooltip.interface';
|
|
8
|
+
import type { TooltipWrapperPlacement, TooltipWrapperProps } from '../Tooltip/TooltipWrapper.interface';
|
|
8
9
|
type MenuItemAppearanceProps = {
|
|
9
10
|
align?: AlignProps;
|
|
10
11
|
alignDirection?: DirectionProps;
|
|
@@ -83,6 +84,8 @@ type MenuItemProps = MenuItemAppearanceProps & StyleAttributes & {
|
|
|
83
84
|
style?: CSSProperties;
|
|
84
85
|
target?: LinkProps['target'];
|
|
85
86
|
tooltipAppearance?: TooltipProps['appearance'];
|
|
87
|
+
tooltipContent?: TooltipWrapperProps['tooltipContent'];
|
|
88
|
+
tooltipPlacement?: TooltipWrapperPlacement;
|
|
86
89
|
underline?: UnderlineProps;
|
|
87
90
|
};
|
|
88
91
|
type MenuItemAppearanceKey = AppearanceKeysDefault | AppearanceShapeKey | AppearanceSizeKey | AppearanceStyleKey;
|
|
@@ -125,7 +125,7 @@ type SelectAppearanceProps<Option> = {
|
|
|
125
125
|
size?: SizeProps;
|
|
126
126
|
width?: WidthProps;
|
|
127
127
|
};
|
|
128
|
-
type AppearanceKeys =
|
|
128
|
+
type AppearanceKeys = AppearanceStateKeysDefault | AppearanceSizeKey | AppearanceStyleKey | AppearanceShapeKey;
|
|
129
129
|
type SelectAppearance = {
|
|
130
130
|
[key in AppearanceKeys]?: SelectAppearanceProps<SelectOption>;
|
|
131
131
|
};
|
|
@@ -6,7 +6,7 @@ declare const Tooltip: React.ForwardRefExoticComponent<import("../../hooks/useSt
|
|
|
6
6
|
alignDirection?: import("@itcase/types-ui").DirectionProps;
|
|
7
7
|
alignment?: string;
|
|
8
8
|
alignPosition?: import("@itcase/types-ui").AlignProps;
|
|
9
|
-
arrowPosition?: import("@itcase/types-ui").
|
|
9
|
+
arrowPosition?: import("@itcase/types-ui").ArrowPosition;
|
|
10
10
|
borderColor?: import("@itcase/types-ui").BorderColorProps;
|
|
11
11
|
borderType?: import("@itcase/types-ui").BorderTypeProps;
|
|
12
12
|
borderWidth?: import("@itcase/types-ui").BorderWidthProps;
|
|
@@ -42,6 +42,5 @@ declare const Tooltip: React.ForwardRefExoticComponent<import("../../hooks/useSt
|
|
|
42
42
|
style?: React.CSSProperties;
|
|
43
43
|
text?: string;
|
|
44
44
|
title?: string;
|
|
45
|
-
tooltipContent?: string;
|
|
46
45
|
} & React.RefAttributes<any>>;
|
|
47
46
|
export { Tooltip, tooltipConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { AlignProps, AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceStateDefault, DirectionProps, ElevationProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, WrapProps } from '@itcase/types-ui';
|
|
2
|
+
import { AlignProps, ArrowPosition, AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceStateDefault, DirectionProps, ElevationProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, WrapProps } from '@itcase/types-ui';
|
|
3
3
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
import { TextProps } from '../Text/Text.interface';
|
|
5
5
|
import { TitleProps } from '../Title/Title.interface';
|
|
@@ -8,7 +8,7 @@ type TooltipAppearanceProps = {
|
|
|
8
8
|
alignDirection?: DirectionProps;
|
|
9
9
|
alignment?: string;
|
|
10
10
|
alignPosition?: AlignProps;
|
|
11
|
-
arrowPosition?:
|
|
11
|
+
arrowPosition?: ArrowPosition;
|
|
12
12
|
borderColor?: BorderColorProps;
|
|
13
13
|
borderType?: BorderTypeProps;
|
|
14
14
|
borderWidth?: BorderWidthProps;
|
|
@@ -45,7 +45,6 @@ type TooltipProps = StyleAttributes & TooltipAppearanceProps & {
|
|
|
45
45
|
style?: CSSProperties;
|
|
46
46
|
text?: string;
|
|
47
47
|
title?: string;
|
|
48
|
-
tooltipContent?: string;
|
|
49
48
|
};
|
|
50
49
|
type TooltipAppearanceKey = AppearanceShapeKey | AppearanceSizeKey | AppearanceStateKeysDefault | AppearanceStyleKey;
|
|
51
50
|
type TooltipAppearance = {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TooltipProps as TooltipTriggerProps } from '@rc-component/tooltip/lib/Tooltip';
|
|
2
|
+
import type { Placement as TooltipWrapperPlacement } from '@rc-component/trigger/es/interface';
|
|
3
|
+
import type { TooltipProps } from './Tooltip.interface';
|
|
4
|
+
type PropsFromTooltip = Omit<TooltipProps, keyof Pick<TooltipProps, 'align' | 'children' | 'closeTimeoutDelay' | 'initialIsVisible' | 'openTimeoutDelay' | 'zIndex'>>;
|
|
5
|
+
type PropsFromTooltipTrigger = Pick<TooltipTriggerProps, 'children' | 'destroyOnHidden' | 'trigger'>;
|
|
6
|
+
type TooltipWrapperProps = PropsFromTooltip & PropsFromTooltipTrigger & {
|
|
7
|
+
closeDelay?: number;
|
|
8
|
+
isOpen?: boolean;
|
|
9
|
+
openDelay?: number;
|
|
10
|
+
placement?: TooltipWrapperPlacement;
|
|
11
|
+
tooltipContent?: React.ReactNode;
|
|
12
|
+
};
|
|
13
|
+
export type { TooltipWrapperPlacement, TooltipWrapperProps };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { Tooltip, tooltipConfig } from './Tooltip';
|
|
2
2
|
export { tooltipAppearance } from './Tooltip.appearance';
|
|
3
3
|
export type { TooltipAppearance, TooltipConfig, TooltipProps, } from './Tooltip.interface';
|
|
4
|
+
export { TooltipWrapper } from './TooltipWrapper';
|
|
5
|
+
export type { TooltipWrapperPlacement, TooltipWrapperProps, } from './TooltipWrapper.interface';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { m as mergeAppearanceKeys } from '../
|
|
1
|
+
export { m as mergeAppearanceKeys } from '../primitives_es_CFZll4Gh.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
|
+
import '@rc-component/tooltip';
|
|
3
4
|
import 'react';
|
|
4
5
|
import 'clsx';
|
|
5
6
|
import 'lodash/camelCase';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { s as setViewportProperty } from '../
|
|
1
|
+
export { s as setViewportProperty } from '../primitives_es_CFZll4Gh.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
|
+
import '@rc-component/tooltip';
|
|
3
4
|
import 'react';
|
|
4
5
|
import 'clsx';
|
|
5
6
|
import 'lodash/camelCase';
|
package/dist/utils.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { m as mergeAppearanceKeys, s as setViewportProperty } from './
|
|
1
|
+
export { m as mergeAppearanceKeys, s as setViewportProperty } from './primitives_es_CFZll4Gh.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
|
+
import '@rc-component/tooltip';
|
|
3
4
|
import 'react';
|
|
4
5
|
import 'clsx';
|
|
5
6
|
import 'lodash/camelCase';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.75",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -133,13 +133,14 @@
|
|
|
133
133
|
"@itcase/tokens-am": "^1.1.45",
|
|
134
134
|
"@itcase/tokens-baikal": "^1.1.41",
|
|
135
135
|
"@itcase/tokens-palette": "^1.1.41",
|
|
136
|
+
"@rc-component/tooltip": "^1.4.0",
|
|
136
137
|
"clsx": "^2.1.1",
|
|
137
138
|
"date-fns": "^4.1.0",
|
|
138
|
-
"framer-motion": "^12.
|
|
139
|
+
"framer-motion": "^12.37.0",
|
|
139
140
|
"js-cookie": "^3.0.5",
|
|
140
141
|
"lodash": "^4.17.23",
|
|
141
142
|
"luxon": "^3.7.2",
|
|
142
|
-
"motion": "^12.
|
|
143
|
+
"motion": "^12.37.0",
|
|
143
144
|
"rc-slider": "^11.1.9",
|
|
144
145
|
"react": "^18.3.1",
|
|
145
146
|
"react-dadata": "^2.27.4",
|
|
@@ -148,7 +149,7 @@
|
|
|
148
149
|
"react-dropzone": "^15.0.0",
|
|
149
150
|
"react-indiana-drag-scroll": "^3.0.3-alpha",
|
|
150
151
|
"react-inlinesvg": "^4.2.0",
|
|
151
|
-
"react-modal-sheet": "5.
|
|
152
|
+
"react-modal-sheet": "5.4.1",
|
|
152
153
|
"react-modern-drawer": "^1.4.0",
|
|
153
154
|
"react-otp-input": "^3.1.1",
|
|
154
155
|
"react-paginate": "^8.3.0",
|
|
@@ -163,12 +164,12 @@
|
|
|
163
164
|
"devDependencies": {
|
|
164
165
|
"@babel/core": "^7.29.0",
|
|
165
166
|
"@babel/preset-react": "^7.28.5",
|
|
166
|
-
"@commitlint/cli": "^20.
|
|
167
|
-
"@commitlint/config-conventional": "^20.
|
|
167
|
+
"@commitlint/cli": "^20.5.0",
|
|
168
|
+
"@commitlint/config-conventional": "^20.5.0",
|
|
168
169
|
"@itcase/config": "^1.6.52",
|
|
169
|
-
"@itcase/lint": "^1.1.
|
|
170
|
-
"@itcase/types-core": "^1.1.
|
|
171
|
-
"@itcase/types-ui": "^1.1.
|
|
170
|
+
"@itcase/lint": "^1.1.102",
|
|
171
|
+
"@itcase/types-core": "^1.1.49",
|
|
172
|
+
"@itcase/types-ui": "^1.1.53",
|
|
172
173
|
"@rollup/plugin-alias": "^6.0.0",
|
|
173
174
|
"@rollup/plugin-babel": "^7.0.0",
|
|
174
175
|
"@rollup/plugin-commonjs": "^29.0.2",
|
|
@@ -193,15 +194,15 @@
|
|
|
193
194
|
"conventional-changelog-conventionalcommits": "^9.3.0",
|
|
194
195
|
"eslint": "9",
|
|
195
196
|
"husky": "^9.1.7",
|
|
196
|
-
"lint-staged": "^16.
|
|
197
|
+
"lint-staged": "^16.4.0",
|
|
197
198
|
"prettier": "^3.8.1",
|
|
198
199
|
"rollup": "4.59.0",
|
|
199
200
|
"rollup-plugin-copy": "^3.5.0",
|
|
200
|
-
"rollup-plugin-dts": "^6.
|
|
201
|
+
"rollup-plugin-dts": "^6.4.0",
|
|
201
202
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
202
203
|
"rollup-preserve-directives": "^1.1.3",
|
|
203
204
|
"semantic-release": "^25.0.3",
|
|
204
|
-
"storybook": "^10.2.
|
|
205
|
+
"storybook": "^10.2.19",
|
|
205
206
|
"stylelint": "^17.4.0",
|
|
206
207
|
"typescript": "^5.9.3"
|
|
207
208
|
}
|