@itcase/ui 1.9.72 → 1.9.73
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_DzHVjvS7.js} +2 -2
- package/dist/{Avatar_es_C3EWFMqx.js → Avatar_es_DT90hDx2.js} +2 -2
- package/dist/{Button_cjs_PkMuJ9DO.js → Button_cjs_BRuxcSph.js} +2 -2
- package/dist/{Button_es_Bc-ZxgQj.js → Button_es_CyZy_s7U.js} +2 -2
- package/dist/{ChipsGroup_cjs_B2ZlA6eW.js → ChipsGroup_cjs_BHWN4JnI.js} +1 -1
- package/dist/{ChipsGroup_es_RmxQO3xO.js → ChipsGroup_es_BwAnAj_g.js} +1 -1
- package/dist/{DatePicker_cjs_BICCxCBy.js → DatePicker_cjs_DKgk6CEH.js} +4 -4
- package/dist/{DatePicker_es_CjMN5FY_.js → DatePicker_es_D1Djdtw0.js} +4 -4
- package/dist/{Group_cjs_DnhjMBbG.js → Group_cjs_D3Vcfu56.js} +1 -1
- package/dist/{Group_es_xcelocLg.js → Group_es_Bkzb9-kE.js} +1 -1
- package/dist/{Image_cjs_DWpR9AaJ.js → Image_cjs_NKrFIeit.js} +1 -1
- package/dist/{Image_es_mAIAmL6i.js → Image_es_Bk5tFxP2.js} +1 -1
- package/dist/{Input_cjs_BFNo6gwu.js → Input_cjs_B-2x-wi5.js} +1 -1
- package/dist/{Input_es_CWDd4ALJ.js → Input_es_C7mbiaA5.js} +1 -1
- package/dist/{Label_cjs_DTzXRcqq.js → Label_cjs_bihYjSd_.js} +2 -1
- package/dist/{Label_es_DaOAzZqj.js → Label_es_CD4vmexu.js} +2 -1
- package/dist/{Loader_cjs_rE9OZ75z.js → Loader_cjs_Ba1FJg3e.js} +1 -1
- package/dist/{Loader_es_VyygDcXJ.js → Loader_es_BPfKELUA.js} +1 -1
- package/dist/{Overlay_cjs_30v9WTGR.js → Overlay_cjs_CX6qxDFr.js} +1 -1
- package/dist/{Overlay_es_CnYxRbhB.js → Overlay_es_Cv_RvDFl.js} +1 -1
- package/dist/{SelectContainer_cjs_FvhilokK.js → SelectContainer_cjs_Dl2PK3-x.js} +3 -3
- package/dist/{SelectContainer_es_DFy6rr8f.js → SelectContainer_es_CzFeKrsC.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_BEU-o0FZ.js} +9 -2
- package/dist/{primitives_es_gY0Wzlk_.js → primitives_es_g9LRUQ6M.js} +9 -3
- 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 -2
- package/dist/types/components/Tooltip/TooltipWrapper.d.ts +3 -0
- package/dist/types/components/Tooltip/TooltipWrapper.interface.d.ts +12 -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 +2 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'react-responsive';
|
|
3
|
-
export {
|
|
3
|
+
export { n as useMediaQueries } from '../../primitives_es_g9LRUQ6M.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_g9LRUQ6M.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_g9LRUQ6M.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 { placement = 'right', tooltipContent, trigger = 'hover', openDelay, closeDelay, isOpen, children, ...tooltipProps } = props;
|
|
1885
|
+
return (jsxRuntime.jsx(TooltipTrigger, { prefixCls: "tooltip-wrapper", destroyOnHidden: false, mouseEnterDelay: openDelay, mouseLeaveDelay: closeDelay, overlay: jsxRuntime.jsx(Tooltip, { initialIsVisible: true, ...tooltipProps, children: tooltipContent }), placement: placement, 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 { placement = 'right', tooltipContent, trigger = 'hover', openDelay, closeDelay, isOpen, children, ...tooltipProps } = props;
|
|
1883
|
+
return (jsx(TooltipTrigger, { prefixCls: "tooltip-wrapper", destroyOnHidden: false, mouseEnterDelay: openDelay, mouseLeaveDelay: closeDelay, overlay: jsx(Tooltip, { initialIsVisible: true, ...tooltipProps, children: tooltipContent }), placement: placement, 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,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?:
|
|
9
|
+
arrowPosition?: "bottom" | "left" | "right" | "top" | "bottomLeft" | "bottomRight" | "leftBottom" | "leftTop" | "rightBottom" | "rightTop" | "topLeft" | "topRight";
|
|
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 };
|
|
@@ -3,12 +3,13 @@ import { AlignProps, AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysD
|
|
|
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';
|
|
6
|
+
type ArrowPosition = 'bottom' | 'bottomLeft' | 'bottomRight' | 'left' | 'leftBottom' | 'leftTop' | 'right' | 'rightBottom' | 'rightTop' | 'top' | 'topLeft' | 'topRight';
|
|
6
7
|
type TooltipAppearanceProps = {
|
|
7
8
|
align?: AlignProps;
|
|
8
9
|
alignDirection?: DirectionProps;
|
|
9
10
|
alignment?: string;
|
|
10
11
|
alignPosition?: AlignProps;
|
|
11
|
-
arrowPosition?:
|
|
12
|
+
arrowPosition?: ArrowPosition;
|
|
12
13
|
borderColor?: BorderColorProps;
|
|
13
14
|
borderType?: BorderTypeProps;
|
|
14
15
|
borderWidth?: BorderWidthProps;
|
|
@@ -45,7 +46,6 @@ type TooltipProps = StyleAttributes & TooltipAppearanceProps & {
|
|
|
45
46
|
style?: CSSProperties;
|
|
46
47
|
text?: string;
|
|
47
48
|
title?: string;
|
|
48
|
-
tooltipContent?: string;
|
|
49
49
|
};
|
|
50
50
|
type TooltipAppearanceKey = AppearanceShapeKey | AppearanceSizeKey | AppearanceStateKeysDefault | AppearanceStyleKey;
|
|
51
51
|
type TooltipAppearance = {
|
|
@@ -0,0 +1,12 @@
|
|
|
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' | 'placement' | 'trigger'>;
|
|
6
|
+
type TooltipWrapperProps = PropsFromTooltip & PropsFromTooltipTrigger & {
|
|
7
|
+
closeDelay?: number;
|
|
8
|
+
isOpen?: boolean;
|
|
9
|
+
openDelay?: number;
|
|
10
|
+
tooltipContent?: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
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_g9LRUQ6M.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_g9LRUQ6M.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_g9LRUQ6M.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.73",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -133,6 +133,7 @@
|
|
|
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
139
|
"framer-motion": "^12.35.2",
|