@itcase/ui 1.9.57 → 1.9.59
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_BIHJrAbQ.js → Avatar_cjs_BcCK-1qn.js} +5 -8
- package/dist/{Avatar_es_CtP68jPM.js → Avatar_es_Dn6PILdH.js} +2 -5
- package/dist/{Button_cjs_BCcz3-Fw.js → Button_cjs_DqbZe2Sk.js} +7 -13
- package/dist/{Button_es_DAzeb-vJ.js → Button_es_C9pw5qr_.js} +2 -8
- package/dist/{ChipsGroup_cjs_C27x9x9O.js → ChipsGroup_cjs_BNapN3BL.js} +7 -11
- package/dist/{ChipsGroup_es_BTe1MYhV.js → ChipsGroup_es_CYtMZd_G.js} +1 -5
- package/dist/{DatePicker_cjs_Dvw_cGFH.js → DatePicker_cjs_CY3VQDAV.js} +10 -14
- package/dist/{DatePicker_es_t3u6yddn.js → DatePicker_es_C110M8WT.js} +4 -8
- package/dist/{Group_cjs_MYtD5is_.js → Group_cjs_CvX0cIz2.js} +5 -17
- package/dist/{Group_es_C_WChp2_.js → Group_es_BgJhtaOv.js} +2 -14
- package/dist/{Image_cjs_Hvjp2QDB.js → Image_cjs_BdHJJUTP.js} +4 -6
- package/dist/{Image_es_DpOCNWpn.js → Image_es_5EyRL35j.js} +1 -3
- package/dist/{Input_cjs_BQIi1N63.js → Input_cjs_BStFgIuQ.js} +3 -4
- package/dist/{Input_es_BYbc2X9M.js → Input_es_BVvf5Gpr.js} +1 -2
- package/dist/{Label_cjs_RI5tFcPt.js → Label_cjs_BYjXyKWj.js} +5 -9
- package/dist/{Label_es_CNRTIAWo.js → Label_es_SG60qCRL.js} +1 -5
- package/dist/{Loader_cjs_CJpdLndn.js → Loader_cjs_BgiKK0BF.js} +5 -8
- package/dist/{Loader_es_CqlLujBJ.js → Loader_es_DzjoV2MF.js} +1 -4
- package/dist/{Overlay_cjs_BK_0yTLw.js → Overlay_cjs_OmKx5lKU.js} +4 -6
- package/dist/{Overlay_es_DOO535JM.js → Overlay_es_DhKLpjdA.js} +1 -3
- package/dist/{SelectContainer_cjs_DTIqXM5V.js → SelectContainer_cjs_CdxNPEhL.js} +17 -22
- package/dist/{SelectContainer_es_CXkK4_Om.js → SelectContainer_es_BQNyIzfX.js} +3 -8
- package/dist/cjs/components/Accordion.js +7 -22
- package/dist/cjs/components/Avatar.js +4 -18
- package/dist/cjs/components/AvatarStack.js +8 -22
- package/dist/cjs/components/Badge.js +5 -19
- package/dist/cjs/components/Breadcrumbs.js +7 -21
- package/dist/cjs/components/Button.js +4 -18
- package/dist/cjs/components/Cell.js +6 -20
- package/dist/cjs/components/Checkbox.js +7 -15
- package/dist/cjs/components/Checkmark.js +5 -19
- package/dist/cjs/components/Chips.js +2 -16
- package/dist/cjs/components/Choice.js +7 -21
- package/dist/cjs/components/Code.js +5 -10
- package/dist/cjs/components/CookiesWarning.js +7 -21
- package/dist/cjs/components/Dadata.js +4 -9
- package/dist/cjs/components/DatePeriod.js +18 -33
- package/dist/cjs/components/DatePicker.js +7 -21
- package/dist/cjs/components/Divider.js +6 -14
- package/dist/cjs/components/Dot.js +4 -10
- package/dist/cjs/components/Drawer.js +6 -21
- package/dist/cjs/components/Dropdown.js +5 -21
- package/dist/cjs/components/Dropzone.js +11 -25
- package/dist/cjs/components/Flex.js +6 -12
- package/dist/cjs/components/Grid.js +8 -14
- package/dist/cjs/components/Group.js +3 -10
- package/dist/cjs/components/HTMLContent.js +4 -10
- package/dist/cjs/components/HeroTitle.js +5 -19
- package/dist/cjs/components/Icon.js +5 -19
- package/dist/cjs/components/Image.js +4 -12
- package/dist/cjs/components/Input.js +4 -9
- package/dist/cjs/components/InputNumber.js +6 -20
- package/dist/cjs/components/InputPassword.js +5 -19
- package/dist/cjs/components/Label.js +2 -16
- package/dist/cjs/components/Link.js +6 -14
- package/dist/cjs/components/List.js +8 -16
- package/dist/cjs/components/Loader.js +3 -11
- package/dist/cjs/components/Logo.js +8 -18
- package/dist/cjs/components/MenuItem.js +5 -19
- package/dist/cjs/components/Modal.js +7 -21
- package/dist/cjs/components/ModalSheetBottom.js +5 -19
- package/dist/cjs/components/Notification.js +11 -25
- package/dist/cjs/components/Overlay.js +3 -10
- package/dist/cjs/components/Pagination.js +8 -24
- package/dist/cjs/components/Radio.js +5 -13
- package/dist/cjs/components/RangeSlider.js +4 -10
- package/dist/cjs/components/Response.js +10 -24
- package/dist/cjs/components/SVGContent.js +5 -14
- package/dist/cjs/components/ScrollOnDrag.js +4 -10
- package/dist/cjs/components/ScrollToView.js +4 -10
- package/dist/cjs/components/Search.js +7 -21
- package/dist/cjs/components/Segmented.js +6 -20
- package/dist/cjs/components/Select.js +5 -20
- package/dist/cjs/components/Swiper.js +6 -20
- package/dist/cjs/components/Switch.js +5 -13
- package/dist/cjs/components/Tab.js +8 -23
- package/dist/cjs/components/Text.js +6 -14
- package/dist/cjs/components/Textarea.js +5 -10
- package/dist/cjs/components/Tile.js +5 -19
- package/dist/cjs/components/Title.js +5 -19
- package/dist/cjs/components/Tooltip.js +5 -19
- package/dist/cjs/components/Video.js +5 -9
- package/dist/cjs/components/Warning.js +5 -19
- package/dist/cjs/context/Notifications.js +16 -188
- package/dist/cjs/context/UIContext.js +14 -71
- package/dist/cjs/context/UrlAssetPrefix.js +15 -13
- package/dist/cjs/hoc/urlWithAssetPrefix.js +14 -73
- package/dist/cjs/hooks/useAppearanceConfig/useAppearanceConfig.js +14 -25
- package/dist/cjs/hooks/useAppearanceConfig.js +12 -2
- package/dist/cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +10 -124
- package/dist/cjs/hooks/useDevicePropsGenerator.js +6 -9
- package/dist/cjs/hooks/useDeviceTargetClass.js +8 -4
- package/dist/cjs/hooks/useMediaQueries/useMediaQueries.js +13 -116
- package/dist/cjs/hooks/useMediaQueries.js +11 -2
- package/dist/cjs/hooks/useStyles/styleAttributes.js +15 -168
- package/dist/cjs/hooks/useStyles/useStyles.js +10 -196
- package/dist/cjs/hooks/useStyles.js +7 -10
- package/dist/cjs/hooks.js +15 -6
- package/dist/cjs/utils/mergeAppearanceKeys.js +15 -15
- package/dist/cjs/utils/setViewportProperty.js +15 -5
- package/dist/cjs/utils.js +14 -4
- package/dist/components/Accordion.js +1 -16
- package/dist/components/Avatar.js +4 -18
- package/dist/components/AvatarStack.js +4 -18
- package/dist/components/Badge.js +2 -16
- package/dist/components/Breadcrumbs.js +1 -15
- package/dist/components/Button.js +4 -18
- package/dist/components/Cell.js +2 -16
- package/dist/components/Checkbox.js +4 -12
- package/dist/components/Checkmark.js +1 -15
- package/dist/components/Chips.js +2 -16
- package/dist/components/Choice.js +2 -16
- package/dist/components/Code.js +3 -8
- package/dist/components/CookiesWarning.js +4 -18
- package/dist/components/Dadata.js +4 -9
- package/dist/components/DatePeriod.js +12 -27
- package/dist/components/DatePicker.js +7 -21
- package/dist/components/Divider.js +3 -11
- package/dist/components/Dot.js +2 -8
- package/dist/components/Drawer.js +3 -18
- package/dist/components/Dropdown.js +1 -17
- package/dist/components/Dropzone.js +7 -21
- package/dist/components/Flex.js +2 -8
- package/dist/components/Grid.js +2 -8
- package/dist/components/Group/Group.appearance.js +1 -4
- package/dist/components/Group.js +3 -10
- package/dist/components/HTMLContent.js +2 -8
- package/dist/components/HeroTitle.js +1 -15
- package/dist/components/Icon.js +2 -16
- package/dist/components/Image.js +4 -12
- package/dist/components/Input.js +4 -9
- package/dist/components/InputNumber.js +4 -18
- package/dist/components/InputPassword.js +2 -16
- package/dist/components/Label.js +2 -16
- package/dist/components/Link.js +2 -10
- package/dist/components/List.js +2 -10
- package/dist/components/Loader.js +3 -11
- package/dist/components/Logo.js +3 -13
- package/dist/components/MenuItem.js +1 -15
- package/dist/components/Modal.js +3 -17
- package/dist/components/ModalSheetBottom.js +1 -15
- package/dist/components/Notification.js +5 -19
- package/dist/components/Overlay.js +3 -10
- package/dist/components/Pagination.js +1 -17
- package/dist/components/Radio.js +2 -10
- package/dist/components/RangeSlider.js +2 -8
- package/dist/components/Response.js +5 -19
- package/dist/components/SVGContent.js +2 -11
- package/dist/components/ScrollOnDrag.js +2 -8
- package/dist/components/ScrollToView.js +2 -8
- package/dist/components/Search.js +1 -15
- package/dist/components/Segmented.js +2 -16
- package/dist/components/Select.js +5 -20
- package/dist/components/Swiper.js +2 -16
- package/dist/components/Switch.js +2 -10
- package/dist/components/Tab.js +2 -17
- package/dist/components/Text.js +3 -11
- package/dist/components/Textarea.js +3 -8
- package/dist/components/Tile.js +1 -15
- package/dist/components/Title.js +2 -16
- package/dist/components/Tooltip.js +2 -16
- package/dist/components/Video.js +4 -8
- package/dist/components/Warning.js +1 -15
- package/dist/hooks/useAppearanceConfig.js +11 -1
- package/dist/hooks/useDevicePropsGenerator.js +5 -8
- package/dist/hooks/useMediaQueries.js +10 -1
- package/dist/hooks/useStyles.js +6 -9
- package/dist/hooks.js +12 -7
- package/dist/primitives_cjs_DX--6Yn5.js +2715 -0
- package/dist/primitives_es_BNlMaZfZ.js +2672 -0
- package/dist/utils.js +12 -2
- package/package.json +1 -1
- package/dist/Divider_cjs_C5Ou2Kqa.js +0 -104
- package/dist/Divider_es_D2snK_vn.js +0 -100
- package/dist/DropdownItem_cjs_k28TIoDU.js +0 -230
- package/dist/DropdownItem_es_DjPgbwtU.js +0 -225
- package/dist/Icon_cjs_DTvdhr8B.js +0 -1099
- package/dist/Icon_es_kewxGRUB.js +0 -1086
- package/dist/Link_cjs_Dn7UhCYe.js +0 -277
- package/dist/Link_es_BDAmhIzd.js +0 -272
- package/dist/Text_cjs_erTy2pUN.js +0 -68
- package/dist/Text_es_DVNvU0m0.js +0 -64
- package/dist/components/Group/appearance/groupSurface.js +0 -8
- package/dist/types/components/Group/appearance/groupSurface.d.ts +0 -3
|
@@ -3,11 +3,8 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var Icon = require('./Icon_cjs_DTvdhr8B.js');
|
|
9
|
-
var Image = require('./Image_cjs_Hvjp2QDB.js');
|
|
10
|
-
var Text = require('./Text_cjs_erTy2pUN.js');
|
|
6
|
+
var primitives = require('./primitives_cjs_DX--6Yn5.js');
|
|
7
|
+
var Image = require('./Image_cjs_BdHJJUTP.js');
|
|
11
8
|
|
|
12
9
|
const avatarAppearanceDefault = {
|
|
13
10
|
surfacePrimary: {
|
|
@@ -156,10 +153,10 @@ function Avatar(props) {
|
|
|
156
153
|
const secondChar = (secondName?.[0] || '').toUpperCase();
|
|
157
154
|
return `${firstChar}${secondChar}`;
|
|
158
155
|
}, [firstName, secondName]);
|
|
159
|
-
const appearanceConfig =
|
|
160
|
-
const propsGenerator =
|
|
156
|
+
const appearanceConfig = primitives.useAppearanceConfig(appearance, avatarConfig);
|
|
157
|
+
const propsGenerator = primitives.useDevicePropsGenerator(props, appearanceConfig);
|
|
161
158
|
const { size, fillClass, fillHoverClass, textColor, textSize, textWeight, badge, badgeAppearance, badgeShape, badgeSize, badgeTextColor, badgeTextSize, badgeValue, icon, iconFill, iconFillHover, iconFillSize, iconItemFill, iconShape, iconSize, iconSrc, placeholderUrl, shapeClass, shapeStrengthClass, sizeClass, } = propsGenerator;
|
|
162
|
-
return (jsxRuntime.jsx("div", { className: clsx(className, 'avatar', size && `avatar_size_${sizeClass}`, (badgeValue || badgeAppearance || badgeSize) && 'avatar_status', isSkeleton && `avatar_skeleton`, onClick && 'cursor_type_pointer'), "data-testid": dataTestId, "data-tour": dataTour, onClick: onClick, children: jsxRuntime.jsxs("div", { className: clsx('avatar__wrapper', fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`), children: [before, src ? (jsxRuntime.jsx(Image.Image, { className: clsx('avatar__image', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`), src: src, placeholderUrl: placeholderUrl })) : (jsxRuntime.jsx(
|
|
159
|
+
return (jsxRuntime.jsx("div", { className: clsx(className, 'avatar', size && `avatar_size_${sizeClass}`, (badgeValue || badgeAppearance || badgeSize) && 'avatar_status', isSkeleton && `avatar_skeleton`, onClick && 'cursor_type_pointer'), "data-testid": dataTestId, "data-tour": dataTour, onClick: onClick, children: jsxRuntime.jsxs("div", { className: clsx('avatar__wrapper', fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`), children: [before, src ? (jsxRuntime.jsx(Image.Image, { className: clsx('avatar__image', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`), src: src, placeholderUrl: placeholderUrl })) : (jsxRuntime.jsx(primitives.Text, { className: "avatar__text", size: textSize, textColor: textColor, textWeight: textWeight, children: avatarChars || count })), (icon || iconSrc) && (jsxRuntime.jsx(primitives.Icon, { className: "avatar__icon", fill: iconFill, fillHover: iconFillHover, fillSize: iconFillSize, iconFill: iconItemFill, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (badge || badgeValue) && (jsxRuntime.jsx(primitives.Badge, { appearance: badgeAppearance, className: "avatar__badge", size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), after] }) }));
|
|
163
160
|
}
|
|
164
161
|
|
|
165
162
|
exports.Avatar = Avatar;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { useAppearanceConfig } from './
|
|
5
|
-
import {
|
|
6
|
-
import { I as Icon, B as Badge } from './Icon_es_kewxGRUB.js';
|
|
7
|
-
import { I as Image } from './Image_es_DpOCNWpn.js';
|
|
8
|
-
import { T as Text } from './Text_es_DVNvU0m0.js';
|
|
4
|
+
import { d as useAppearanceConfig, a as useDevicePropsGenerator, b as Text, I as Icon, B as Badge } from './primitives_es_BNlMaZfZ.js';
|
|
5
|
+
import { I as Image } from './Image_es_5EyRL35j.js';
|
|
9
6
|
|
|
10
7
|
const avatarAppearanceDefault = {
|
|
11
8
|
surfacePrimary: {
|
|
@@ -3,15 +3,9 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var Loader = require('./Loader_cjs_CJpdLndn.js');
|
|
9
|
-
var Text = require('./Text_cjs_erTy2pUN.js');
|
|
10
|
-
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
11
|
-
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
6
|
+
var primitives = require('./primitives_cjs_DX--6Yn5.js');
|
|
7
|
+
var Loader = require('./Loader_cjs_BgiKK0BF.js');
|
|
12
8
|
var useHoldProgress = require('./cjs/hooks/useHoldProgress.js');
|
|
13
|
-
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
14
|
-
var mergeAppearanceKeys = require('./cjs/utils/mergeAppearanceKeys.js');
|
|
15
9
|
|
|
16
10
|
const buttonAppearanceAccent = {
|
|
17
11
|
accentMutedPrimary: {
|
|
@@ -391,10 +385,10 @@ const buttonConfig = {
|
|
|
391
385
|
};
|
|
392
386
|
const Button = React.forwardRef(function Button(props, ref) {
|
|
393
387
|
const { appearance, className, dataTestId, dataTour, label, Badge, href, htmlType = 'button', link, rel, target, tooltip, before, after, isDisabled, isHolding, isLoading = false, onClick, onHoldComplete, onMouseDown, children, } = props;
|
|
394
|
-
const appearanceConfig =
|
|
395
|
-
const propsGenerator =
|
|
388
|
+
const appearanceConfig = primitives.useAppearanceConfig(appearance, buttonConfig, isDisabled);
|
|
389
|
+
const propsGenerator = primitives.useDevicePropsGenerator(props, appearanceConfig);
|
|
396
390
|
const { fillClass, fillHoverClass, labelTextColor, labelTextColorHover, labelTextSize, labelTextTruncate, labelTextWeight, labelTextWidth, labelTextWrap, borderColorClass, borderTypeClass, borderWidthClass, elevationClass, icon, iconAfter, iconAfterAppearance, iconAfterAppearanceSize, iconAfterFill, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconAppearance, iconAppearanceSize, iconBefore, iconBeforeAppearance, iconBeforeAppearanceSize, iconBeforeFill, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, iconFill, iconFillIcon, iconFillSize, iconShape, iconSize, iconSrc, loaderAppearance, loaderAppearanceSize, loaderFill, loaderItemFill, loaderSize, loaderType = 'dot', shapeClass, shapeStrengthClass, sizeClass, widthClass, zeroGap, zeroPadding, isSkeleton, } = propsGenerator;
|
|
397
|
-
const { label: labelStyles, styles: buttonStyles } =
|
|
391
|
+
const { label: labelStyles, styles: buttonStyles } = primitives.useStyles(props);
|
|
398
392
|
const { holdState, onHoldEnd, onHoldStart } = useHoldProgress.useHoldProgress({
|
|
399
393
|
holdDurationMs: 500, // hardcoded in button.css
|
|
400
394
|
onHoldComplete: onHoldComplete,
|
|
@@ -407,13 +401,13 @@ const Button = React.forwardRef(function Button(props, ref) {
|
|
|
407
401
|
iconBefore ||
|
|
408
402
|
iconBeforeSrc ||
|
|
409
403
|
iconSrc;
|
|
410
|
-
return (jsxRuntime.jsxs(
|
|
404
|
+
return (jsxRuntime.jsxs(primitives.LinkWrapper, { className: clsx(className, 'button', label && buttonTypeClass
|
|
411
405
|
? 'button_type_default'
|
|
412
406
|
: label
|
|
413
407
|
? 'button_type_label'
|
|
414
408
|
: buttonTypeClass
|
|
415
409
|
? 'button_type_icon'
|
|
416
|
-
: '', borderWidthClass && `border-width_${borderWidthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && !isDisabled && `fill_hover_${fillHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `button_size_${sizeClass}`, widthClass && `button_width_${widthClass}`, elevationClass && `elevation_${elevationClass}`, onClick && 'cursor_type_pointer', isDisabled && 'button_state_disabled cursor_type_default', Badge && 'button_type_badge', zeroPadding && 'button_reset-padding', zeroGap && 'button_reset-gap', isLoading && 'button_state_loading', isSkeleton && 'button_skeleton', isHolding && 'button_holding', holdState && `button_state_${holdState}`), type: htmlType, title: tooltip, "data-testid": dataTestId, "data-tour": dataTour, disabled: isDisabled, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, onPointerCancel: onHoldEnd, onPointerDown: onHoldStart, onPointerLeave: onHoldEnd, onPointerUp: onHoldEnd, children: [isHolding && (jsxRuntime.jsx("div", { className: clsx('button__indication', `button__indication_${holdState}`), children: jsxRuntime.jsx("div", { className: "button__indication-item", children: "\u00A0" }) })), jsxRuntime.jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsxRuntime.jsx(Loader.Loader, { appearance:
|
|
410
|
+
: '', borderWidthClass && `border-width_${borderWidthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && !isDisabled && `fill_hover_${fillHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, sizeClass && `button_size_${sizeClass}`, widthClass && `button_width_${widthClass}`, elevationClass && `elevation_${elevationClass}`, onClick && 'cursor_type_pointer', isDisabled && 'button_state_disabled cursor_type_default', Badge && 'button_type_badge', zeroPadding && 'button_reset-padding', zeroGap && 'button_reset-gap', isLoading && 'button_state_loading', isSkeleton && 'button_skeleton', isHolding && 'button_holding', holdState && `button_state_${holdState}`), type: htmlType, title: tooltip, "data-testid": dataTestId, "data-tour": dataTour, disabled: isDisabled, href: link || href, LinkComponent: "button", rel: rel, style: buttonStyles, target: target, onClick: onClick, onMouseDown: onMouseDown, onPointerCancel: onHoldEnd, onPointerDown: onHoldStart, onPointerLeave: onHoldEnd, onPointerUp: onHoldEnd, children: [isHolding && (jsxRuntime.jsx("div", { className: clsx('button__indication', `button__indication_${holdState}`), children: jsxRuntime.jsx("div", { className: "button__indication-item", children: "\u00A0" }) })), jsxRuntime.jsxs("div", { className: "button__wrapper", ref: ref, children: [isLoading && (jsxRuntime.jsx(Loader.Loader, { appearance: primitives.mergeAppearanceKeys(loaderAppearance, loaderAppearanceSize), className: clsx(className, 'button__loader'), type: loaderType, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(primitives.Icon, { appearance: primitives.mergeAppearanceKeys(iconBeforeAppearance, iconBeforeAppearanceSize), className: "button__icon_before", fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), (icon || iconSrc) && (jsxRuntime.jsx(primitives.Icon, { appearance: primitives.mergeAppearanceKeys(iconAppearance, iconAppearanceSize), className: "button__icon", fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), (children || label) && (jsxRuntime.jsx(primitives.Text, { className: "button__label", width: labelTextWidth, size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textTruncate: labelTextTruncate, textWeight: labelTextWeight, textWrap: labelTextWrap, style: labelStyles, children: children || label })), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(primitives.Icon, { appearance: primitives.mergeAppearanceKeys(iconAfterAppearance, iconAfterAppearanceSize), className: "button__icon_after", fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), Badge, after] })] }));
|
|
417
411
|
});
|
|
418
412
|
|
|
419
413
|
exports.Button = Button;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { I as Icon } from './
|
|
5
|
-
import {
|
|
6
|
-
import { L as Loader } from './Loader_es_CqlLujBJ.js';
|
|
7
|
-
import { T as Text } from './Text_es_DVNvU0m0.js';
|
|
8
|
-
import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
9
|
-
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
4
|
+
import { d as useAppearanceConfig, a as useDevicePropsGenerator, u as useStyles, L as LinkWrapper, m as mergeAppearanceKeys, I as Icon, b as Text } from './primitives_es_BNlMaZfZ.js';
|
|
5
|
+
import { L as Loader } from './Loader_es_DzjoV2MF.js';
|
|
10
6
|
import { useHoldProgress } from './hooks/useHoldProgress.js';
|
|
11
|
-
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
12
|
-
import { mergeAppearanceKeys } from './utils/mergeAppearanceKeys.js';
|
|
13
7
|
|
|
14
8
|
const buttonAppearanceAccent = {
|
|
15
9
|
accentMutedPrimary: {
|
|
@@ -2,11 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var clsx = require('clsx');
|
|
5
|
-
var
|
|
6
|
-
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
7
|
-
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
8
|
-
var Icon = require('./Icon_cjs_DTvdhr8B.js');
|
|
9
|
-
var Text = require('./Text_cjs_erTy2pUN.js');
|
|
5
|
+
var primitives = require('./primitives_cjs_DX--6Yn5.js');
|
|
10
6
|
|
|
11
7
|
const chipsAppearanceAccent = {
|
|
12
8
|
accentMutedPrimary: {
|
|
@@ -318,15 +314,15 @@ const chipsConfig = {
|
|
|
318
314
|
};
|
|
319
315
|
function Chips(props) {
|
|
320
316
|
const { appearance, className, dataTestId, dataTour, label = '', isActive, isDisabled, isSkeleton, onClick, onClickIconAfter, onClickIconBefore, children, } = props;
|
|
321
|
-
const appearanceConfig =
|
|
322
|
-
const propsGenerator =
|
|
317
|
+
const appearanceConfig = primitives.useAppearanceConfig(appearance, chipsConfig, isDisabled);
|
|
318
|
+
const propsGenerator = primitives.useDevicePropsGenerator(props, appearanceConfig);
|
|
323
319
|
const { alignClass, alignDirectionClass, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, labelTextActiveColor, labelTextActiveColorHover, labelTextColor, labelTextColorHover, labelTextSize, labelTextWeight, labelTextWrap, borderColorClass, borderTypeClass, badgeAppearance, badgeShape, badgeSize, badgeTextColor, badgeTextSize, badgeValue, cursorClass, iconAfter, iconAfterActive, iconAfterFill, iconAfterFillActiveIcon, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconBefore, iconBeforeActive, iconBeforeFill, iconBeforeFillActiveIcon, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, shapeClass, shapeStrengthClass, sizeClass, } = propsGenerator;
|
|
324
|
-
const { styles: chipsStyles } =
|
|
320
|
+
const { styles: chipsStyles } = primitives.useStyles(props);
|
|
325
321
|
return (jsxRuntime.jsx("div", { className: clsx(className, 'chips', !isActive
|
|
326
322
|
? fillClass && `fill_${fillClass}`
|
|
327
323
|
: fillActiveClass && `fill_active_${fillActiveClass}`, !isActive
|
|
328
324
|
? fillHoverClass && `fill_hover_${fillHoverClass}`
|
|
329
|
-
: fillActiveHoverClass && `fill_active_hover_${fillActiveHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, sizeClass && `chips_size_${sizeClass}`, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`, isActive && 'chips_state_active', isDisabled && `chips_state_disabled`, cursorClass && `cursor_${cursorClass}`, onClick && 'cursor_type_pointer', isSkeleton && `chips_skeleton`), "data-testid": dataTestId && `${dataTestId}Chips`, "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxRuntime.jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc || (iconBeforeActive && isActive)) && (jsxRuntime.jsx(
|
|
325
|
+
: fillActiveHoverClass && `fill_active_hover_${fillActiveHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, sizeClass && `chips_size_${sizeClass}`, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`, isActive && 'chips_state_active', isDisabled && `chips_state_disabled`, cursorClass && `cursor_${cursorClass}`, onClick && 'cursor_type_pointer', isSkeleton && `chips_skeleton`), "data-testid": dataTestId && `${dataTestId}Chips`, "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxRuntime.jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc || (iconBeforeActive && isActive)) && (jsxRuntime.jsx(primitives.Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconFillActive: iconBeforeFillActiveIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBeforeActive && isActive ? iconBeforeActive : iconBefore, isActive: isActive, onClick: onClickIconBefore })), typeof label === 'string' ? (jsxRuntime.jsx(primitives.Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveColorHover, textColorHover: labelTextColorHover, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, children: label })) : (jsxRuntime.jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc || (iconAfterActive && isActive)) && (jsxRuntime.jsx(primitives.Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconFillActive: iconAfterFillActiveIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfterActive && isActive ? iconAfterActive : iconAfter, isActive: isActive, onClick: onClickIconAfter })), badgeValue && (jsxRuntime.jsx(primitives.Badge, { appearance: badgeAppearance, className: "chips__badge", size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue }))] }) }));
|
|
330
326
|
}
|
|
331
327
|
|
|
332
328
|
function ChipsGroup(props) {
|
|
@@ -335,9 +331,9 @@ function ChipsGroup(props) {
|
|
|
335
331
|
* to do same structure for "Option" object.
|
|
336
332
|
*/
|
|
337
333
|
const { className, dataTestId, dataTour, chipsList, horizontalScroll, style, onClick, children, } = props;
|
|
338
|
-
const propsGenerator =
|
|
334
|
+
const propsGenerator = primitives.useDevicePropsGenerator(props);
|
|
339
335
|
const { directionClass, alignClass, alignDirectionClass, fillClass, borderColorClass, borderTypeClass, borderWidthClass, chipsAppearance, widthClass, wrapClass, } = propsGenerator;
|
|
340
|
-
const { styles: groupStyles } =
|
|
336
|
+
const { styles: groupStyles } = primitives.useStyles(props);
|
|
341
337
|
return (jsxRuntime.jsx("div", { className: clsx(className, 'chips-group', 'group', widthClass && `width_${widthClass}`, alignDirectionClass && `align_${alignDirectionClass}`, directionClass && `group_direction_${directionClass}`, alignClass && `align_${alignClass}`, fillClass && `fill_${fillClass}`, horizontalScroll && 'group_scroll_horizontal', wrapClass && `group_wrap_${wrapClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: children
|
|
342
338
|
? children
|
|
343
339
|
: chipsList?.map((item) => (jsxRuntime.jsx(Chips, { appearance: chipsAppearance, label: item.label, iconAfter: item.iconAfter, iconAfterActive: item.iconAfterActive, iconBefore: item.iconBefore, iconBeforeActive: item.iconBeforeActive, isActive: item.isActive, isDisabled: item.isDisabled, onClick: (event) => onClick?.(item, event) }, item.value))) }));
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { useDevicePropsGenerator } from './
|
|
4
|
-
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
5
|
-
import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
|
-
import { I as Icon, B as Badge } from './Icon_es_kewxGRUB.js';
|
|
7
|
-
import { T as Text } from './Text_es_DVNvU0m0.js';
|
|
3
|
+
import { d as useAppearanceConfig, a as useDevicePropsGenerator, u as useStyles, I as Icon, b as Text, B as Badge } from './primitives_es_BNlMaZfZ.js';
|
|
8
4
|
|
|
9
5
|
const chipsAppearanceAccent = {
|
|
10
6
|
accentMutedPrimary: {
|
|
@@ -5,14 +5,10 @@ var React = require('react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var locale = require('date-fns/locale');
|
|
7
7
|
var DatePicker = require('react-datepicker');
|
|
8
|
-
var Button = require('./
|
|
9
|
-
var
|
|
10
|
-
var Input = require('./
|
|
11
|
-
var Label = require('./
|
|
12
|
-
var Text = require('./Text_cjs_erTy2pUN.js');
|
|
13
|
-
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
14
|
-
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
15
|
-
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
8
|
+
var Button = require('./Button_cjs_DqbZe2Sk.js');
|
|
9
|
+
var primitives = require('./primitives_cjs_DX--6Yn5.js');
|
|
10
|
+
var Input = require('./Input_cjs_BStFgIuQ.js');
|
|
11
|
+
var Label = require('./Label_cjs_BYjXyKWj.js');
|
|
16
12
|
var _default = require('@itcase/icons/default');
|
|
17
13
|
|
|
18
14
|
const datePickerSize = {
|
|
@@ -106,8 +102,8 @@ const datePickerConfig = {
|
|
|
106
102
|
function DatePickerInput(props) {
|
|
107
103
|
const { className, dataTestId, dataTour, datePickerProps = {}, endValue, inputProps = {}, value, onChange, } = props;
|
|
108
104
|
const { appearance, customTimeInput, disablePastDays, monthsShown, selectsRange, showWeekNumbers, showWeekPicker, } = datePickerProps;
|
|
109
|
-
const appearanceConfig =
|
|
110
|
-
const propsGenerator =
|
|
105
|
+
const appearanceConfig = primitives.useAppearanceConfig(appearance, datePickerConfig);
|
|
106
|
+
const propsGenerator = primitives.useDevicePropsGenerator(datePickerProps, appearanceConfig);
|
|
111
107
|
const { daySize, dayTextColor, dayTextShape, dayTextSize, iconFill, iconFillHover, iconFillSize, iconItemFill, iconLeft, iconRight, iconShape, monthTextColor, monthTextSize, monthTextWeight, popper, popperPlacement, sizeClass, widthClass, yearTextColor, yearTextSize, yearTextWeight, isClearable, } = propsGenerator;
|
|
112
108
|
const datepickerRef = React.useRef(null);
|
|
113
109
|
const [dateStart, dateEnd] = React.useMemo(() => {
|
|
@@ -149,7 +145,7 @@ function DatePickerInput(props) {
|
|
|
149
145
|
const renderDayContents = React.useCallback((day, date) => {
|
|
150
146
|
return (jsxRuntime.jsx(Button.Button, { className: "react-datepicker__day-button", size: daySize, label: date.getDate().toString(), labelTextColor: dayTextColor, labelTextSize: dayTextSize, shape: dayTextShape }));
|
|
151
147
|
}, [daySize, dayTextColor, dayTextShape, dayTextSize]);
|
|
152
|
-
const renderCustomHeader = React.useCallback(({ decreaseMonth, increaseMonth, monthDate, }) => (jsxRuntime.jsxs("div", { className: "react-datepicker__header--div", children: [iconLeft && (jsxRuntime.jsx(
|
|
148
|
+
const renderCustomHeader = React.useCallback(({ decreaseMonth, increaseMonth, monthDate, }) => (jsxRuntime.jsxs("div", { className: "react-datepicker__header--div", children: [iconLeft && (jsxRuntime.jsx(primitives.Icon, { className: "react-datepicker__icon", fill: iconFill, fillHover: iconFillHover, fillSize: iconFillSize, iconFill: iconItemFill, shape: iconShape, SvgImage: iconLeft, onClick: decreaseMonth })), jsxRuntime.jsxs("div", { className: "react-datepicker__data", children: [jsxRuntime.jsx(primitives.Text, { className: "react-datepicker__month", size: monthTextSize, textColor: monthTextColor, textWeight: monthTextWeight, children: monthDate.toLocaleString('ru-RU', { month: 'long' }) }), jsxRuntime.jsx(primitives.Text, { className: "react-datepicker__year", size: yearTextSize, textColor: yearTextColor, textWeight: yearTextWeight, children: monthDate.toLocaleString('ru-RU', { year: 'numeric' }) })] }), iconRight && (jsxRuntime.jsx(primitives.Icon, { className: "react-datepicker__icon", fill: iconFill, fillHover: iconFillHover, fillSize: iconFillSize, iconFill: iconItemFill, shape: iconShape, SvgImage: iconRight, onClick: increaseMonth }))] })), [
|
|
153
149
|
iconFill,
|
|
154
150
|
iconFillHover,
|
|
155
151
|
iconFillSize,
|
|
@@ -164,7 +160,7 @@ function DatePickerInput(props) {
|
|
|
164
160
|
yearTextSize,
|
|
165
161
|
yearTextWeight,
|
|
166
162
|
]);
|
|
167
|
-
const { styles: datePickerStyles } =
|
|
163
|
+
const { styles: datePickerStyles } = primitives.useStyles(props);
|
|
168
164
|
return (jsxRuntime.jsx("div", { className: clsx(className, 'datepicker', monthsShown && 'datepicker_multiple-months', customTimeInput && 'datepicker_button', sizeClass && `datepicker_size_${sizeClass}`, widthClass && `datepicker_width_${widthClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: datePickerStyles, children: jsxRuntime.jsx(DatePicker, { ref: datepickerRef, ...datePickerProps, minDate: disablePastDays ? new Date() : undefined, customInput: jsxRuntime.jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: isClearable }), endDate: selectsRange ? dateEnd : undefined, locale: locale.ru, outsideClickIgnoreClass: "react-datepicker-popper", popperClassName: popper && `react-datepicker-popper-${popper}`, popperPlacement: popperPlacement, preventOpenOnFocus: true, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: dateStart, startDate: dateStart, isClearable: false, onChange: handleChange, onWeekSelect: showWeekNumbers ? handleWeekSelect : undefined }) }));
|
|
169
165
|
}
|
|
170
166
|
const DatePickerCustomInput = React.forwardRef((props, ref) => {
|
|
@@ -185,11 +181,11 @@ function DatePickerClearButton(props) {
|
|
|
185
181
|
datepickerRef?.current?.handleFocus(event);
|
|
186
182
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
187
183
|
}, []);
|
|
188
|
-
return (jsxRuntime.jsx(React.Fragment, { children: clearLabel ? (jsxRuntime.jsx(Label.Label, { className: clsx('react-datepicker__clear-label', 'cursor_type_pointer'), label: clearLabel, labelTextColor: clearLabelTextColor, labelTextColorHover: clearLabelTextColorHover, labelTextSize: clearLabelTextSize, onClick: onClick })) : ((clearIcon || clearIconSrc) && (jsxRuntime.jsx(
|
|
184
|
+
return (jsxRuntime.jsx(React.Fragment, { children: clearLabel ? (jsxRuntime.jsx(Label.Label, { className: clsx('react-datepicker__clear-label', 'cursor_type_pointer'), label: clearLabel, labelTextColor: clearLabelTextColor, labelTextColorHover: clearLabelTextColorHover, labelTextSize: clearLabelTextSize, onClick: onClick })) : ((clearIcon || clearIconSrc) && (jsxRuntime.jsx(primitives.Icon, { className: clsx('react-datepicker__clear-icon', 'cursor_type_pointer'), size: clearIconSize, fill: clearIconFill, fillHover: clearIconFillHover, fillSize: clearIconFillSize, iconFill: clearIconItemFill, iconFillHover: clearIconItemFillHover, imageSrc: clearIconSrc, shape: clearIconShape, SvgImage: clearIcon, onClick: onClick }))) }));
|
|
189
185
|
}
|
|
190
186
|
function DatePickerInputIcon(props) {
|
|
191
187
|
const { inputIcon, inputIconFill, inputIconFillHover, inputIconFillSize, inputIconItemFill, inputIconShape, inputIconSize, inputIconSrc, onClick, } = props;
|
|
192
|
-
return (jsxRuntime.jsx(
|
|
188
|
+
return (jsxRuntime.jsx(primitives.Icon, { className: clsx('react-datepicker__input-icon', 'cursor_type_pointer'), size: inputIconSize, fill: inputIconFill, fillHover: inputIconFillHover, fillSize: inputIconFillSize, iconFill: inputIconItemFill, imageSrc: inputIconSrc, shape: inputIconShape, SvgImage: inputIcon, onClick: () => onClick && onClick() }));
|
|
193
189
|
}
|
|
194
190
|
|
|
195
191
|
exports.DatePickerInput = DatePickerInput;
|
|
@@ -3,14 +3,10 @@ import React, { useMemo, useCallback, useRef } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { ru } from 'date-fns/locale';
|
|
5
5
|
import DatePicker from 'react-datepicker';
|
|
6
|
-
import { B as Button } from './
|
|
7
|
-
import { I as Icon } from './
|
|
8
|
-
import { I as Input } from './
|
|
9
|
-
import { L as Label } from './
|
|
10
|
-
import { T as Text } from './Text_es_DVNvU0m0.js';
|
|
11
|
-
import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
12
|
-
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
13
|
-
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
6
|
+
import { B as Button } from './Button_es_C9pw5qr_.js';
|
|
7
|
+
import { I as Icon, d as useAppearanceConfig, a as useDevicePropsGenerator, b as Text, u as useStyles } from './primitives_es_BNlMaZfZ.js';
|
|
8
|
+
import { I as Input } from './Input_es_BVvf5Gpr.js';
|
|
9
|
+
import { L as Label } from './Label_es_SG60qCRL.js';
|
|
14
10
|
import { icons14 } from '@itcase/icons/default';
|
|
15
11
|
|
|
16
12
|
const datePickerSize = {
|
|
@@ -3,21 +3,9 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
|
-
var
|
|
7
|
-
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
|
-
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
6
|
+
var primitives = require('./primitives_cjs_DX--6Yn5.js');
|
|
9
7
|
|
|
10
|
-
const
|
|
11
|
-
surfacePrimary: {
|
|
12
|
-
fill: 'surfacePrimary',
|
|
13
|
-
borderColor: 'surfaceBorderPrimary',
|
|
14
|
-
borderWidth: '1',
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const groupAppearance = {
|
|
19
|
-
...groupAppearanceSurface,
|
|
20
|
-
};
|
|
8
|
+
const groupAppearance = {};
|
|
21
9
|
|
|
22
10
|
const groupConfig = {
|
|
23
11
|
appearance: groupAppearance,
|
|
@@ -27,10 +15,10 @@ const groupConfig = {
|
|
|
27
15
|
};
|
|
28
16
|
const Group = React.forwardRef(function Group(props, ref) {
|
|
29
17
|
const { id, appearance, className, dataTestId, dataTour, name, dataId, easing, htmlFor, print, scroll, style, tag: Tag = 'div', isActive, isDisabled, onClick, onMouseDown, onMouseEnter, onMouseLeave, children, } = props;
|
|
30
|
-
const appearanceConfig =
|
|
31
|
-
const propsGenerator =
|
|
18
|
+
const appearanceConfig = primitives.useAppearanceConfig(appearance, groupConfig);
|
|
19
|
+
const propsGenerator = primitives.useDevicePropsGenerator(props, appearanceConfig);
|
|
32
20
|
const { directionClass, flexGrowClass, justifyContentClass, alignClass, alignDirectionClass, fillActiveClass, fillActiveHoverClass, fillClass, fillDisabledClass, fillHoverClass, borderColorActiveClass, borderColorActiveHoverClass, borderColorClass, borderColorHoverClass, borderTypeClass, borderWidthClass, textColorActiveClass, textColorClass, textColorHoverClass, columnsClass, elevationClass, heightClass, hoverFilterClass, iconFillHoverClass, shapeClass, shapeStrengthClass, stackingClass, widthClass, wrapClass, } = propsGenerator;
|
|
33
|
-
const { styles: groupStyles } =
|
|
21
|
+
const { styles: groupStyles } = primitives.useStyles(props);
|
|
34
22
|
return (jsxRuntime.jsx(Tag, { id: id, className: clsx(className, 'group', easing && `easing_${easing}`, widthClass && `width_${widthClass}`, heightClass && `height_${heightClass}`, hoverFilterClass && `hover-filter_${hoverFilterClass}`, columnsClass && `group_columns_${columnsClass}`, alignDirectionClass && `align_${alignDirectionClass}`, directionClass && `group_direction_${directionClass}`, alignClass && `align_${alignClass}`, justifyContentClass && `justify-content_${justifyContentClass}`, textColorClass && `group_text-color_${textColorClass}`, textColorActiveClass &&
|
|
35
23
|
`group_text-color_active_${textColorActiveClass}`, textColorHoverClass && `group_text-color_hover_${textColorHoverClass}`, iconFillHoverClass && `group_icon_fill_hover_${iconFillHoverClass}`, !isDisabled
|
|
36
24
|
? !isActive
|
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { useAppearanceConfig } from './
|
|
5
|
-
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
4
|
+
import { d as useAppearanceConfig, a as useDevicePropsGenerator, u as useStyles } from './primitives_es_BNlMaZfZ.js';
|
|
7
5
|
|
|
8
|
-
const
|
|
9
|
-
surfacePrimary: {
|
|
10
|
-
fill: 'surfacePrimary',
|
|
11
|
-
borderColor: 'surfaceBorderPrimary',
|
|
12
|
-
borderWidth: '1',
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const groupAppearance = {
|
|
17
|
-
...groupAppearanceSurface,
|
|
18
|
-
};
|
|
6
|
+
const groupAppearance = {};
|
|
19
7
|
|
|
20
8
|
const groupConfig = {
|
|
21
9
|
appearance: groupAppearance,
|
|
@@ -3,15 +3,13 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
|
-
var
|
|
7
|
-
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
|
-
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
6
|
+
var primitives = require('./primitives_cjs_DX--6Yn5.js');
|
|
9
7
|
|
|
10
|
-
const Image =
|
|
8
|
+
const Image = primitives.urlWithAssetPrefix(React.forwardRef(function Image(props, ref) {
|
|
11
9
|
const { className, dataTestId, dataTour, type, src, title, alt, caption, imageClassName, imageWrapperClassName, mode, overlay, placeholderUrl, before, after, isSkeleton, onClick, onError, children, } = props;
|
|
12
|
-
const propsGenerator =
|
|
10
|
+
const propsGenerator = primitives.useDevicePropsGenerator(props);
|
|
13
11
|
const { fillClass, fillHoverClass, borderColorClass, borderColorImageClass, borderTypeClass, borderWidthClass, cursorClass, heightClass, horizontalAlignClass, imageHeightClass, imageWidthClass, resizeModeClass, shapeClass, verticalAlignClass, widthClass, } = propsGenerator;
|
|
14
|
-
const { image: imageStyles, styles, wrapper: wrapperStyles, } =
|
|
12
|
+
const { image: imageStyles, styles, wrapper: wrapperStyles, } = primitives.useStyles(props);
|
|
15
13
|
const [imageSrc, setImageSrc] = React.useState('');
|
|
16
14
|
// Handles image load errors: calls onError callback or falls back to placeholderUrl
|
|
17
15
|
const handleImageError = React.useCallback((event) => {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef, useState, useCallback, useEffect } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { urlWithAssetPrefix } from './
|
|
5
|
-
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
4
|
+
import { c as urlWithAssetPrefix, a as useDevicePropsGenerator, u as useStyles } from './primitives_es_BNlMaZfZ.js';
|
|
7
5
|
|
|
8
6
|
const Image = urlWithAssetPrefix(forwardRef(function Image(props, ref) {
|
|
9
7
|
const { className, dataTestId, dataTour, type, src, title, alt, caption, imageClassName, imageWrapperClassName, mode, overlay, placeholderUrl, before, after, isSkeleton, onClick, onError, children, } = props;
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
|
-
var
|
|
7
|
-
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
6
|
+
var primitives = require('./primitives_cjs_DX--6Yn5.js');
|
|
8
7
|
|
|
9
8
|
const inputAppearanceDefault = {
|
|
10
9
|
defaultPrimary: {
|
|
@@ -190,8 +189,8 @@ const inputConfig = {
|
|
|
190
189
|
};
|
|
191
190
|
const Input = React.forwardRef(function Input(props, ref) {
|
|
192
191
|
const { id, appearance, className, dataTestId, dataTour, type = 'text', name, autocomplete, index, placeholder, value, isDisabled, isReadOnly, onClick, onBlur, onChange, onFocus, onKeyDown, } = props;
|
|
193
|
-
const appearanceConfig =
|
|
194
|
-
const propsGenerator =
|
|
192
|
+
const appearanceConfig = primitives.useAppearanceConfig(appearance, inputConfig, isDisabled);
|
|
193
|
+
const propsGenerator = primitives.useDevicePropsGenerator(props, appearanceConfig);
|
|
195
194
|
const { fillClass, fillHoverClass, borderColorClass, borderColorHoverClass, borderWidthClass, textColorClass, textSizeClass, textWeightClass, caretClass, placeholderTextColorClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
|
|
196
195
|
const fallbackId = React.useId();
|
|
197
196
|
return (jsxRuntime.jsx("input", { id: String(id ?? fallbackId), className: clsx(className, 'input', type === 'number' && 'input_type_number', isDisabled && 'input_state_disabled', (textSizeClass || textColorClass || textWeightClass) && 'text', borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass && `border-color_hover_${borderColorHoverClass}`, borderWidthClass && `border-width_${borderWidthClass}`, caretClass && `caret-color_${caretClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, placeholderTextColorClass &&
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import React, { useId } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { useAppearanceConfig } from './
|
|
5
|
-
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
4
|
+
import { d as useAppearanceConfig, a as useDevicePropsGenerator } from './primitives_es_BNlMaZfZ.js';
|
|
6
5
|
|
|
7
6
|
const inputAppearanceDefault = {
|
|
8
7
|
defaultPrimary: {
|
|
@@ -3,11 +3,7 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
|
-
var
|
|
7
|
-
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
|
-
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
9
|
-
var Icon = require('./Icon_cjs_DTvdhr8B.js');
|
|
10
|
-
var Text = require('./Text_cjs_erTy2pUN.js');
|
|
6
|
+
var primitives = require('./primitives_cjs_DX--6Yn5.js');
|
|
11
7
|
|
|
12
8
|
const labelAppearanceAccent = {
|
|
13
9
|
accentMutedPrimary: {
|
|
@@ -324,11 +320,11 @@ function Label(props) {
|
|
|
324
320
|
const onMouseLeaveLabel = React.useCallback(() => {
|
|
325
321
|
tooltipRef.current?.closeTooltip();
|
|
326
322
|
}, []);
|
|
327
|
-
const appearanceConfig =
|
|
328
|
-
const propsGenerator =
|
|
323
|
+
const appearanceConfig = primitives.useAppearanceConfig(appearance, labelConfig, isDisabled);
|
|
324
|
+
const propsGenerator = primitives.useDevicePropsGenerator(props, appearanceConfig);
|
|
329
325
|
const { alignClass, fillClass, fillHoverClass, labelTextColor, labelTextColorHover, labelTextSize, labelTextWeight, labelTextWrap, borderColorClass, borderTypeClass, iconAfter, iconAfterFill, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconBefore, iconBeforeFill, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, shapeClass, shapeStrengthClass, sizeClass, tooltipAlignment, tooltipAppearance, tooltipArrowPosition, tooltipText, tooltipTextSize, tooltipTextWeight, tooltipTitle, tooltipTitleSize, tooltipTitleWeight, widthClass, wrapClass, } = propsGenerator;
|
|
330
|
-
const { styles: labelStyles } =
|
|
331
|
-
return (jsxRuntime.jsxs("div", { className: clsx(className, 'label', fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, shapeClass && `shape_${shapeClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, sizeClass && `label_size_${sizeClass}`, wrapClass && `word-wrap_${wrapClass}`, widthClass && `label_width_${widthClass}`, alignClass && `align_${alignClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, isSkeleton && `label_skeleton`, onClick && (cursor || 'cursor_type_pointer')), "data-testid": dataTestId, "data-tour": dataTour, style: labelStyles, onClick: onClick, onMouseEnter: onMouseEnterLabel, onMouseLeave: onMouseLeaveLabel, children: [before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(
|
|
326
|
+
const { styles: labelStyles } = primitives.useStyles(props);
|
|
327
|
+
return (jsxRuntime.jsxs("div", { className: clsx(className, 'label', fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, shapeClass && `shape_${shapeClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, sizeClass && `label_size_${sizeClass}`, wrapClass && `word-wrap_${wrapClass}`, widthClass && `label_width_${widthClass}`, alignClass && `align_${alignClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, isSkeleton && `label_skeleton`, onClick && (cursor || 'cursor_type_pointer')), "data-testid": dataTestId, "data-tour": dataTour, style: labelStyles, onClick: onClick, onMouseEnter: onMouseEnterLabel, onMouseLeave: onMouseLeaveLabel, children: [before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(primitives.Icon, { className: clsx('label__icon_before'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), jsxRuntime.jsxs("div", { className: "label__inner", children: [typeof label === 'string' ? (jsxRuntime.jsx(primitives.Text, { className: "label__text", size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })) : (jsxRuntime.jsx("div", { className: "label__text", children: label })), children, tooltipContent && (jsxRuntime.jsx(primitives.Tooltip, { appearance: tooltipAppearance, className: "label__tooltip", ref: tooltipRef, alignment: tooltipAlignment, title: tooltipTitle, titleSize: tooltipTitleSize, titleWeight: tooltipTitleWeight, text: tooltipText, textSize: tooltipTextSize, textWeight: tooltipTextWeight, arrowPosition: tooltipArrowPosition, children: tooltipContent }))] }), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(primitives.Icon, { className: clsx('label__icon_after'), fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), after] }));
|
|
332
328
|
}
|
|
333
329
|
|
|
334
330
|
exports.Label = Label;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useRef, useCallback } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { useAppearanceConfig } from './
|
|
5
|
-
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon, T as Tooltip } from './Icon_es_kewxGRUB.js';
|
|
8
|
-
import { T as Text } from './Text_es_DVNvU0m0.js';
|
|
4
|
+
import { d as useAppearanceConfig, a as useDevicePropsGenerator, u as useStyles, I as Icon, b as Text, i as Tooltip } from './primitives_es_BNlMaZfZ.js';
|
|
9
5
|
|
|
10
6
|
const labelAppearanceAccent = {
|
|
11
7
|
accentMutedPrimary: {
|
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var clsx = require('clsx');
|
|
5
|
-
var
|
|
6
|
-
var useAppearanceConfig = require('./cjs/hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
7
|
-
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
|
-
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
5
|
+
var primitives = require('./primitives_cjs_DX--6Yn5.js');
|
|
9
6
|
|
|
10
7
|
const loaderAppearanceAccent = {
|
|
11
8
|
accentPrimary: {
|
|
@@ -145,11 +142,11 @@ const loaderConfig = {
|
|
|
145
142
|
};
|
|
146
143
|
function Loader(props) {
|
|
147
144
|
const { appearance, className, dataTestId, dataTour, type = 'dot', text, isDisabled, isSkeleton, children, } = props;
|
|
148
|
-
const appearanceConfig =
|
|
149
|
-
const propsGenerator =
|
|
145
|
+
const appearanceConfig = primitives.useAppearanceConfig(appearance, loaderConfig, isDisabled);
|
|
146
|
+
const propsGenerator = primitives.useDevicePropsGenerator(props, appearanceConfig);
|
|
150
147
|
const { fillClass, borderColorClass, textColor, textSize, heightClass, itemFillClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
|
|
151
|
-
const { styles: loader } =
|
|
152
|
-
return (jsxRuntime.jsxs("div", { className: clsx('loader', className, widthClass && `width_${widthClass}`, heightClass && `height_${heightClass}`, fillClass && `fill_${fillClass}`, sizeClass && `loader_size_${sizeClass}`, isSkeleton && `loader_skeleton`, type && `loader_type_${type}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: loader, children: [children || (jsxRuntime.jsxs("div", { className: "loader__inner", children: [jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && `fill_${itemFillClass}`, type === 'circular' && `border-color_${borderColorClass}`), children: "\u00A0" }), jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && `fill_${itemFillClass}`), children: "\u00A0" }), jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && `fill_${itemFillClass}`), children: "\u00A0" })] })), text && (jsxRuntime.jsx(
|
|
148
|
+
const { styles: loader } = primitives.useStyles(props);
|
|
149
|
+
return (jsxRuntime.jsxs("div", { className: clsx('loader', className, widthClass && `width_${widthClass}`, heightClass && `height_${heightClass}`, fillClass && `fill_${fillClass}`, sizeClass && `loader_size_${sizeClass}`, isSkeleton && `loader_skeleton`, type && `loader_type_${type}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: loader, children: [children || (jsxRuntime.jsxs("div", { className: "loader__inner", children: [jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && `fill_${itemFillClass}`, type === 'circular' && `border-color_${borderColorClass}`), children: "\u00A0" }), jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && `fill_${itemFillClass}`), children: "\u00A0" }), jsxRuntime.jsx("span", { className: clsx('loader__item', itemFillClass && `fill_${itemFillClass}`), children: "\u00A0" })] })), text && (jsxRuntime.jsx(primitives.Text, { className: "loader__text", size: textSize, textColor: textColor, children: text }))] }));
|
|
153
150
|
}
|
|
154
151
|
|
|
155
152
|
exports.Loader = Loader;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import {
|
|
4
|
-
import { useAppearanceConfig } from './hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
5
|
-
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
3
|
+
import { d as useAppearanceConfig, a as useDevicePropsGenerator, u as useStyles, b as Text } from './primitives_es_BNlMaZfZ.js';
|
|
7
4
|
|
|
8
5
|
const loaderAppearanceAccent = {
|
|
9
6
|
accentPrimary: {
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var clsx = require('clsx');
|
|
5
|
-
var
|
|
6
|
-
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
|
-
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
5
|
+
var primitives = require('./primitives_cjs_DX--6Yn5.js');
|
|
8
6
|
|
|
9
7
|
const overlayAppearanceDefault = {
|
|
10
8
|
blackout: {
|
|
@@ -29,10 +27,10 @@ const overlayConfig = {
|
|
|
29
27
|
};
|
|
30
28
|
function Overlay(props) {
|
|
31
29
|
const { appearance, className, dataTestId, dataTour, isOverlay, onClick } = props;
|
|
32
|
-
const appearanceConfig =
|
|
33
|
-
const propsGenerator =
|
|
30
|
+
const appearanceConfig = primitives.useAppearanceConfig(appearance, overlayConfig);
|
|
31
|
+
const propsGenerator = primitives.useDevicePropsGenerator(props, appearanceConfig);
|
|
34
32
|
const { fillClass, blurClass, opacityClass } = propsGenerator;
|
|
35
|
-
const { styles: overlayStyles } =
|
|
33
|
+
const { styles: overlayStyles } = primitives.useStyles(props);
|
|
36
34
|
return (jsxRuntime.jsx("div", { className: clsx(className, 'overlay', opacityClass && `opacity_${opacityClass}`, blurClass && `blur_${blurClass}`, isOverlay && 'overlay_state_visible', fillClass && `fill_${fillClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: overlayStyles, onClick: onClick, children: "\u00A0" }));
|
|
37
35
|
}
|
|
38
36
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { useAppearanceConfig } from './
|
|
4
|
-
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
|
-
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
3
|
+
import { d as useAppearanceConfig, a as useDevicePropsGenerator, u as useStyles } from './primitives_es_BNlMaZfZ.js';
|
|
6
4
|
|
|
7
5
|
const overlayAppearanceDefault = {
|
|
8
6
|
blackout: {
|