@itcase/ui 1.5.1 → 1.7.0
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/{Badge-ydSHGXSG.js → Badge-BE28NFES.js} +4 -4
- package/dist/{Badge-JXM0G_0I.js → Badge-C_6Iofu7.js} +4 -4
- package/dist/{Button-BmSyIDb_.js → Button-Df425Vot.js} +6 -6
- package/dist/{Button-DCtRrkgc.js → Button-sYpJIJPv.js} +6 -6
- package/dist/{Divider-D8hUUrwe.js → Divider-BQIfjvPR.js} +2 -2
- package/dist/{Divider-DhXzYcNF.js → Divider-CUFKsm-9.js} +2 -2
- package/dist/{DropdownItem-CBJeJPbP.js → DropdownItem-CdAS1E-G.js} +4 -5
- package/dist/{DropdownItem-C8CumsgX.js → DropdownItem-f29l8dds.js} +4 -5
- package/dist/{Group-OkygpKiJ.js → Group-D5nvxHx0.js} +2 -2
- package/dist/{Group-BVlu5z77.js → Group-NYDjw1CD.js} +2 -2
- package/dist/{Icon-BOEOspTF.js → Icon-BzIdIgGY.js} +1 -1
- package/dist/{Icon-DU2T-nfY.js → Icon-dS-it4rs.js} +1 -1
- package/dist/{Input-e0kLrbs6.js → Input-C_HeI9UK.js} +2 -2
- package/dist/{Input-ChiH90mV.js → Input-v52BiIsb.js} +2 -2
- package/dist/{Label-CP8IAPOM.js → Label-DsNZ-asS.js} +4 -4
- package/dist/{Label-CfE08vBy.js → Label-brG78nLi.js} +4 -4
- package/dist/{Loader-CRN4MAbm.js → Loader-BnhUh-g6.js} +3 -3
- package/dist/{Loader-rzo8nnRI.js → Loader-CZVsMYl6.js} +3 -3
- package/dist/{Overlay-CRIofShk.js → Overlay-Be9UCtR9.js} +2 -2
- package/dist/{Overlay-CZFSerUl.js → Overlay-BoIJ-g58.js} +2 -2
- package/dist/{Text-CEcBg-F5.js → Text-DwIx33-P.js} +2 -2
- package/dist/{Text-CI2prtf6.js → Text-aaWArShm.js} +2 -2
- package/dist/{Title-CaXw1KBQ.js → Title--_epIXkC.js} +2 -2
- package/dist/{Title-C4xUtigh.js → Title-ByfOyy-n.js} +2 -2
- package/dist/{Tooltip-EOu0a93a.js → Tooltip-DP32J5V6.js} +4 -4
- package/dist/{Tooltip-Lhx-Fefx.js → Tooltip-hznDyLwa.js} +4 -4
- package/dist/cjs/components/Accordion.js +9 -9
- package/dist/cjs/components/Avatar.js +6 -6
- package/dist/cjs/components/Badge.js +5 -5
- package/dist/cjs/components/Breadcrumbs.js +4 -4
- package/dist/cjs/components/Button.js +6 -6
- package/dist/cjs/components/Cell.js +7 -7
- package/dist/cjs/components/Checkbox.js +4 -4
- package/dist/cjs/components/Checkmark.js +2 -2
- package/dist/cjs/components/Chips.js +6 -7
- package/dist/cjs/components/Choice.js +7 -7
- package/dist/cjs/components/Code.js +2 -2
- package/dist/cjs/components/CookiesWarning.js +7 -7
- package/dist/cjs/components/DadataHintField.js +1 -1
- package/dist/cjs/components/DatePicker.js +10 -10
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/HeroTitle.js +2 -2
- package/dist/cjs/components/Icon.js +4 -4
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputMask.js +2 -2
- package/dist/cjs/components/InputPassword.js +6 -6
- package/dist/cjs/components/Label.js +4 -4
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/Logo.js +2 -2
- package/dist/cjs/components/MenuItem.js +3 -3
- package/dist/cjs/components/Modal.js +6 -6
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Overlay.js +1 -1
- package/dist/cjs/components/Pagination.js +8 -8
- package/dist/cjs/components/Panel.js +4 -4
- package/dist/cjs/components/Radio.js +3 -3
- package/dist/cjs/components/Response.js +9 -10
- package/dist/cjs/components/Search.js +6 -6
- package/dist/cjs/components/Segmented.js +3 -3
- package/dist/cjs/components/Select.js +17 -12
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Switch.js +8 -8
- package/dist/cjs/components/Tab.js +8 -8
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Textarea.js +2 -2
- package/dist/cjs/components/Tile.js +7 -7
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +3 -3
- package/dist/components/Accordion.js +9 -9
- package/dist/components/Avatar.js +6 -6
- package/dist/components/Badge.js +5 -5
- package/dist/components/Breadcrumbs.js +4 -4
- package/dist/components/Button.js +6 -6
- package/dist/components/Cell.js +7 -7
- package/dist/components/Checkbox.js +4 -4
- package/dist/components/Checkmark.js +2 -2
- package/dist/components/Chips.js +6 -7
- package/dist/components/Choice.js +7 -7
- package/dist/components/Code.js +2 -2
- package/dist/components/CookiesWarning.js +7 -7
- package/dist/components/DadataHintField.js +1 -1
- package/dist/components/DatePicker.js +10 -10
- package/dist/components/Divider.js +1 -1
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/Group.js +1 -1
- package/dist/components/HeroTitle.js +2 -2
- package/dist/components/Icon.js +4 -4
- package/dist/components/Input.js +1 -1
- package/dist/components/InputMask.js +2 -2
- package/dist/components/InputPassword.js +6 -6
- package/dist/components/Label.js +4 -4
- package/dist/components/Loader.js +2 -2
- package/dist/components/Logo.js +2 -2
- package/dist/components/MenuItem.js +3 -3
- package/dist/components/Modal.js +6 -6
- package/dist/components/Notification.js +1 -1
- package/dist/components/Overlay.js +1 -1
- package/dist/components/Pagination.js +8 -8
- package/dist/components/Panel.js +4 -4
- package/dist/components/Radio.js +3 -3
- package/dist/components/Response.js +9 -10
- package/dist/components/Search.js +6 -6
- package/dist/components/Segmented.js +3 -3
- package/dist/components/Select.js +17 -12
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Switch.js +8 -8
- package/dist/components/Tab.js +8 -8
- package/dist/components/Text.js +1 -1
- package/dist/components/Textarea.js +2 -2
- package/dist/components/Tile.js +7 -7
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +3 -3
- package/dist/css/components/Switch/Switch.css +65 -25
- package/dist/types/components/Select/index.d.ts +15 -15
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
6
|
-
import { I as Icon } from './Icon-
|
|
7
|
-
import { T as Text } from './Text-
|
|
6
|
+
import { I as Icon } from './Icon-BzIdIgGY.js';
|
|
7
|
+
import { T as Text } from './Text-aaWArShm.js';
|
|
8
8
|
|
|
9
9
|
var defaultAppearance = {
|
|
10
10
|
accent: {
|
|
@@ -219,9 +219,9 @@ var badgeConfig = {
|
|
|
219
219
|
};
|
|
220
220
|
function Badge(props) {
|
|
221
221
|
var className = props.className, appearance = props.appearance, dot = props.dot, icon = props.icon, iconSrc = props.iconSrc, value = props.value, isSkeleton = props.isSkeleton, children = props.children;
|
|
222
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
222
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
223
223
|
var _a;
|
|
224
|
-
return (__assign(__assign({},
|
|
224
|
+
return (__assign(__assign({}, resultConfig), (_a = badgeConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
225
225
|
}, {});
|
|
226
226
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
227
227
|
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, dotFillClass = propsGenerator.dotFillClass, iconFill = propsGenerator.iconFill, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, positionClass = propsGenerator.positionClass, _a = propsGenerator.shapeClass, shapeClass = _a === void 0 ? 'rounded' : _a, _b = propsGenerator.sizeClass, sizeClass = _b === void 0 ? 'm' : _b;
|
|
@@ -5,8 +5,8 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
8
|
-
var Icon = require('./Icon-
|
|
9
|
-
var Text = require('./Text-
|
|
8
|
+
var Icon = require('./Icon-dS-it4rs.js');
|
|
9
|
+
var Text = require('./Text-DwIx33-P.js');
|
|
10
10
|
|
|
11
11
|
var defaultAppearance = {
|
|
12
12
|
accent: {
|
|
@@ -221,9 +221,9 @@ var badgeConfig = {
|
|
|
221
221
|
};
|
|
222
222
|
function Badge(props) {
|
|
223
223
|
var className = props.className, appearance = props.appearance, dot = props.dot, icon = props.icon, iconSrc = props.iconSrc, value = props.value, isSkeleton = props.isSkeleton, children = props.children;
|
|
224
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
224
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
225
225
|
var _a;
|
|
226
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
226
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = badgeConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
227
227
|
}, {});
|
|
228
228
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
229
229
|
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, dotFillClass = propsGenerator.dotFillClass, iconFill = propsGenerator.iconFill, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, positionClass = propsGenerator.positionClass, _a = propsGenerator.shapeClass, shapeClass = _a === void 0 ? 'rounded' : _a, _b = propsGenerator.sizeClass, sizeClass = _b === void 0 ? 'm' : _b;
|
|
@@ -4,10 +4,10 @@ var tslib_es6 = require('./tslib.es6-CCZ3TN_7.js');
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
|
-
var Icon = require('./Icon-
|
|
7
|
+
var Icon = require('./Icon-dS-it4rs.js');
|
|
8
8
|
var Link = require('./Link-UmzWKcxT.js');
|
|
9
|
-
var Loader = require('./Loader-
|
|
10
|
-
var Text = require('./Text-
|
|
9
|
+
var Loader = require('./Loader-CZVsMYl6.js');
|
|
10
|
+
var Text = require('./Text-DwIx33-P.js');
|
|
11
11
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
12
12
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
13
13
|
|
|
@@ -251,10 +251,10 @@ var buttonConfig = {
|
|
|
251
251
|
},
|
|
252
252
|
};
|
|
253
253
|
var Button = React.forwardRef(function Button(props, ref) {
|
|
254
|
-
var className = props.className, appearance = props.appearance, label = props.label, Badge = props.Badge, dataTestId = props.dataTestId, dataTour = props.dataTour, href = props.href, _a = props.htmlType, htmlType = _a === void 0 ? 'button' : _a, icon = props.icon, iconAfter = props.iconAfter, iconAfterSrc = props.iconAfterSrc, iconBefore = props.iconBefore, iconBeforeSrc = props.iconBeforeSrc, iconSrc = props.iconSrc, link = props.link, _b = props.loadertype, loadertype = _b === void 0 ? 'simple' : _b, loading = props.loading, rel = props.rel, target = props.target, before = props.before, after = props.after,
|
|
255
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
254
|
+
var className = props.className, appearance = props.appearance, label = props.label, isDisabled = props.isDisabled, Badge = props.Badge, dataTestId = props.dataTestId, dataTour = props.dataTour, href = props.href, _a = props.htmlType, htmlType = _a === void 0 ? 'button' : _a, icon = props.icon, iconAfter = props.iconAfter, iconAfterSrc = props.iconAfterSrc, iconBefore = props.iconBefore, iconBeforeSrc = props.iconBeforeSrc, iconSrc = props.iconSrc, link = props.link, _b = props.loadertype, loadertype = _b === void 0 ? 'simple' : _b, loading = props.loading, rel = props.rel, target = props.target, before = props.before, after = props.after, _c = props.isLoading, isLoading = _c === void 0 ? false : _c, onClick = props.onClick, onMouseDown = props.onMouseDown, children = props.children;
|
|
255
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
256
256
|
var _a;
|
|
257
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
257
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = buttonConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
258
258
|
}, {});
|
|
259
259
|
if (loading !== undefined) {
|
|
260
260
|
console.warn('DEPRECATED: prop Loading is deprecated, use isLoading');
|
|
@@ -2,10 +2,10 @@ import { _ as __assign } from './tslib.es6-Bwu1Cn-t.js';
|
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { I as Icon } from './Icon-
|
|
5
|
+
import { I as Icon } from './Icon-BzIdIgGY.js';
|
|
6
6
|
import { a as LinkWrapper } from './Link-aBsZ1d0Q.js';
|
|
7
|
-
import { L as Loader } from './Loader-
|
|
8
|
-
import { T as Text } from './Text-
|
|
7
|
+
import { L as Loader } from './Loader-BnhUh-g6.js';
|
|
8
|
+
import { T as Text } from './Text-aaWArShm.js';
|
|
9
9
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
10
10
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
11
11
|
|
|
@@ -249,10 +249,10 @@ var buttonConfig = {
|
|
|
249
249
|
},
|
|
250
250
|
};
|
|
251
251
|
var Button = React.forwardRef(function Button(props, ref) {
|
|
252
|
-
var className = props.className, appearance = props.appearance, label = props.label, Badge = props.Badge, dataTestId = props.dataTestId, dataTour = props.dataTour, href = props.href, _a = props.htmlType, htmlType = _a === void 0 ? 'button' : _a, icon = props.icon, iconAfter = props.iconAfter, iconAfterSrc = props.iconAfterSrc, iconBefore = props.iconBefore, iconBeforeSrc = props.iconBeforeSrc, iconSrc = props.iconSrc, link = props.link, _b = props.loadertype, loadertype = _b === void 0 ? 'simple' : _b, loading = props.loading, rel = props.rel, target = props.target, before = props.before, after = props.after,
|
|
253
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
252
|
+
var className = props.className, appearance = props.appearance, label = props.label, isDisabled = props.isDisabled, Badge = props.Badge, dataTestId = props.dataTestId, dataTour = props.dataTour, href = props.href, _a = props.htmlType, htmlType = _a === void 0 ? 'button' : _a, icon = props.icon, iconAfter = props.iconAfter, iconAfterSrc = props.iconAfterSrc, iconBefore = props.iconBefore, iconBeforeSrc = props.iconBeforeSrc, iconSrc = props.iconSrc, link = props.link, _b = props.loadertype, loadertype = _b === void 0 ? 'simple' : _b, loading = props.loading, rel = props.rel, target = props.target, before = props.before, after = props.after, _c = props.isLoading, isLoading = _c === void 0 ? false : _c, onClick = props.onClick, onMouseDown = props.onMouseDown, children = props.children;
|
|
253
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
254
254
|
var _a;
|
|
255
|
-
return (__assign(__assign({},
|
|
255
|
+
return (__assign(__assign({}, resultConfig), (_a = buttonConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
256
256
|
}, {});
|
|
257
257
|
if (loading !== undefined) {
|
|
258
258
|
console.warn('DEPRECATED: prop Loading is deprecated, use isLoading');
|
|
@@ -18,9 +18,9 @@ var dividerConfig = {
|
|
|
18
18
|
};
|
|
19
19
|
function Divider(props) {
|
|
20
20
|
var className = props.className, appearance = props.appearance;
|
|
21
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
21
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
22
22
|
var _a;
|
|
23
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
23
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = dividerConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
24
24
|
}, {});
|
|
25
25
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
26
26
|
var directionClass = propsGenerator.directionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, _a = propsGenerator.sizeClass, sizeClass = _a === void 0 ? 'xs' : _a, widthClass = propsGenerator.widthClass;
|
|
@@ -16,9 +16,9 @@ var dividerConfig = {
|
|
|
16
16
|
};
|
|
17
17
|
function Divider(props) {
|
|
18
18
|
var className = props.className, appearance = props.appearance;
|
|
19
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
19
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
20
20
|
var _a;
|
|
21
|
-
return (__assign(__assign({},
|
|
21
|
+
return (__assign(__assign({}, resultConfig), (_a = dividerConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
22
22
|
}, {});
|
|
23
23
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
24
24
|
var directionClass = propsGenerator.directionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, _a = propsGenerator.sizeClass, sizeClass = _a === void 0 ? 'xs' : _a, widthClass = propsGenerator.widthClass;
|
|
@@ -6,8 +6,8 @@ var clsx = require('clsx');
|
|
|
6
6
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
8
8
|
var tslib_es6 = require('./tslib.es6-CCZ3TN_7.js');
|
|
9
|
-
var Divider = require('./Divider-
|
|
10
|
-
var Text = require('./Text-
|
|
9
|
+
var Divider = require('./Divider-BQIfjvPR.js');
|
|
10
|
+
var Text = require('./Text-DwIx33-P.js');
|
|
11
11
|
|
|
12
12
|
function Dropdown(props) {
|
|
13
13
|
var className = props.className, _a = props.animationClose, animationClose = _a === void 0 ? 'dropdown_animation_close' : _a, _b = props.animationOpen, animationOpen = _b === void 0 ? 'dropdown_animation_open' : _b, before = props.before, after = props.after, isOpen = props.isOpen, _c = props.set, set = _c === void 0 ? 'normal' : _c, setIsOpen = props.setIsOpen, children = props.children;
|
|
@@ -58,7 +58,6 @@ function Dropdown(props) {
|
|
|
58
58
|
}, []);
|
|
59
59
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props);
|
|
60
60
|
var alignmentClass = propsGenerator.alignmentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass;
|
|
61
|
-
// @ts-expect-error
|
|
62
61
|
var styles = useStyles.useStyles(props).styles;
|
|
63
62
|
return (jsxRuntime.jsxs("div", { className: clsx(className, 'dropdown', alignmentClass && "alignment_".concat(alignmentClass), set && "dropdown_set_".concat(set), shapeClass && "dropdown_shape_".concat(shapeClass), elevationClass && "elevation_".concat(elevationClass), isOpen ? 'dropdown_state_open' : 'dropdown_state_close', animationState.className), ref: dropdownRef, style: styles, children: [before, children && (jsxRuntime.jsx("div", { className: clsx('dropdown__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)),
|
|
64
63
|
// Add "onAnimationEnd" only for wrapper for ignore dropdown button
|
|
@@ -100,9 +99,9 @@ var dropdownItemConfig = {
|
|
|
100
99
|
};
|
|
101
100
|
function DropdownItem(props) {
|
|
102
101
|
var className = props.className, appearance = props.appearance, label = props.label, desc = props.desc, isDisabled = props.isDisabled, showDivider = props.showDivider, before = props.before, after = props.after, isActive = props.isActive, isHover = props.isHover, set = props.set, onClick = props.onClick, onMouseEnter = props.onMouseEnter, children = props.children;
|
|
103
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
102
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
104
103
|
var _a;
|
|
105
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
104
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = dropdownItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
106
105
|
}, {});
|
|
107
106
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
108
107
|
var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextAlign = propsGenerator.labelTextAlign, labelTextColor = propsGenerator.labelTextColor, labelTextColorActive = propsGenerator.labelTextColorActive, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextGradient = propsGenerator.labelTextGradient, labelTextSize = propsGenerator.labelTextSize, labelTextStyle = propsGenerator.labelTextStyle, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, descTextColor = propsGenerator.descTextColor, descTextColorHover = propsGenerator.descTextColorHover, descTextGradient = propsGenerator.descTextGradient, descTextSize = propsGenerator.descTextSize, descTextStyle = propsGenerator.descTextStyle, descTextWeight = propsGenerator.descTextWeight, descTextWrap = propsGenerator.descTextWrap, dividerDirection = propsGenerator.dividerDirection, dividerFill = propsGenerator.dividerFill, dividerSize = propsGenerator.dividerSize, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass;
|
|
@@ -4,8 +4,8 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
6
6
|
import { _ as __assign } from './tslib.es6-Bwu1Cn-t.js';
|
|
7
|
-
import { D as Divider } from './Divider-
|
|
8
|
-
import { T as Text } from './Text-
|
|
7
|
+
import { D as Divider } from './Divider-CUFKsm-9.js';
|
|
8
|
+
import { T as Text } from './Text-aaWArShm.js';
|
|
9
9
|
|
|
10
10
|
function Dropdown(props) {
|
|
11
11
|
var className = props.className, _a = props.animationClose, animationClose = _a === void 0 ? 'dropdown_animation_close' : _a, _b = props.animationOpen, animationOpen = _b === void 0 ? 'dropdown_animation_open' : _b, before = props.before, after = props.after, isOpen = props.isOpen, _c = props.set, set = _c === void 0 ? 'normal' : _c, setIsOpen = props.setIsOpen, children = props.children;
|
|
@@ -56,7 +56,6 @@ function Dropdown(props) {
|
|
|
56
56
|
}, []);
|
|
57
57
|
var propsGenerator = useDevicePropsGenerator(props);
|
|
58
58
|
var alignmentClass = propsGenerator.alignmentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass;
|
|
59
|
-
// @ts-expect-error
|
|
60
59
|
var styles = useStyles(props).styles;
|
|
61
60
|
return (jsxs("div", { className: clsx(className, 'dropdown', alignmentClass && "alignment_".concat(alignmentClass), set && "dropdown_set_".concat(set), shapeClass && "dropdown_shape_".concat(shapeClass), elevationClass && "elevation_".concat(elevationClass), isOpen ? 'dropdown_state_open' : 'dropdown_state_close', animationState.className), ref: dropdownRef, style: styles, children: [before, children && (jsx("div", { className: clsx('dropdown__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)),
|
|
62
61
|
// Add "onAnimationEnd" only for wrapper for ignore dropdown button
|
|
@@ -98,9 +97,9 @@ var dropdownItemConfig = {
|
|
|
98
97
|
};
|
|
99
98
|
function DropdownItem(props) {
|
|
100
99
|
var className = props.className, appearance = props.appearance, label = props.label, desc = props.desc, isDisabled = props.isDisabled, showDivider = props.showDivider, before = props.before, after = props.after, isActive = props.isActive, isHover = props.isHover, set = props.set, onClick = props.onClick, onMouseEnter = props.onMouseEnter, children = props.children;
|
|
101
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
100
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
102
101
|
var _a;
|
|
103
|
-
return (__assign(__assign({},
|
|
102
|
+
return (__assign(__assign({}, resultConfig), (_a = dropdownItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
104
103
|
}, {});
|
|
105
104
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
106
105
|
var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextAlign = propsGenerator.labelTextAlign, labelTextColor = propsGenerator.labelTextColor, labelTextColorActive = propsGenerator.labelTextColorActive, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextGradient = propsGenerator.labelTextGradient, labelTextSize = propsGenerator.labelTextSize, labelTextStyle = propsGenerator.labelTextStyle, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, descTextColor = propsGenerator.descTextColor, descTextColorHover = propsGenerator.descTextColorHover, descTextGradient = propsGenerator.descTextGradient, descTextSize = propsGenerator.descTextSize, descTextStyle = propsGenerator.descTextStyle, descTextWeight = propsGenerator.descTextWeight, descTextWrap = propsGenerator.descTextWrap, dividerDirection = propsGenerator.dividerDirection, dividerFill = propsGenerator.dividerFill, dividerSize = propsGenerator.dividerSize, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass;
|
|
@@ -23,9 +23,9 @@ var groupConfig = {
|
|
|
23
23
|
};
|
|
24
24
|
var Group = React.forwardRef(function Group(props, ref) {
|
|
25
25
|
var id = props.id, className = props.className, name = props.name, appearance = props.appearance, dataTestId = props.dataTestId, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, htmlFor = props.htmlFor, style = props.style, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, onClick = props.onClick, children = props.children;
|
|
26
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
26
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
27
27
|
var _a;
|
|
28
|
-
return (__assign(__assign({},
|
|
28
|
+
return (__assign(__assign({}, resultConfig), (_a = groupConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
29
29
|
}, {});
|
|
30
30
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
31
31
|
var directionClass = propsGenerator.directionClass, flexGrowClass = propsGenerator.flexGrowClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorHoverClass = propsGenerator.textColorHoverClass, columnsClass = propsGenerator.columnsClass, contentAlignClass = propsGenerator.contentAlignClass, elevationClass = propsGenerator.elevationClass, heightClass = propsGenerator.heightClass, iconFillHoverClass = propsGenerator.iconFillHoverClass, shapeClass = propsGenerator.shapeClass, stackingClass = propsGenerator.stackingClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
@@ -25,9 +25,9 @@ var groupConfig = {
|
|
|
25
25
|
};
|
|
26
26
|
var Group = React.forwardRef(function Group(props, ref) {
|
|
27
27
|
var id = props.id, className = props.className, name = props.name, appearance = props.appearance, dataTestId = props.dataTestId, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, htmlFor = props.htmlFor, style = props.style, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, onClick = props.onClick, children = props.children;
|
|
28
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
28
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
29
29
|
var _a;
|
|
30
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
30
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = groupConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
31
31
|
}, {});
|
|
32
32
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
33
33
|
var directionClass = propsGenerator.directionClass, flexGrowClass = propsGenerator.flexGrowClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorHoverClass = propsGenerator.textColorHoverClass, columnsClass = propsGenerator.columnsClass, contentAlignClass = propsGenerator.contentAlignClass, elevationClass = propsGenerator.elevationClass, heightClass = propsGenerator.heightClass, iconFillHoverClass = propsGenerator.iconFillHoverClass, shapeClass = propsGenerator.shapeClass, stackingClass = propsGenerator.stackingClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
@@ -6,7 +6,7 @@ import SVG from 'react-inlinesvg';
|
|
|
6
6
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
8
8
|
import { a as LinkWrapper } from './Link-aBsZ1d0Q.js';
|
|
9
|
-
import { T as Tooltip } from './Tooltip-
|
|
9
|
+
import { T as Tooltip } from './Tooltip-DP32J5V6.js';
|
|
10
10
|
|
|
11
11
|
var iconAppearance = {
|
|
12
12
|
accent: {
|
|
@@ -8,7 +8,7 @@ var SVG = require('react-inlinesvg');
|
|
|
8
8
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
9
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
10
10
|
var Link = require('./Link-UmzWKcxT.js');
|
|
11
|
-
var Tooltip = require('./Tooltip-
|
|
11
|
+
var Tooltip = require('./Tooltip-hznDyLwa.js');
|
|
12
12
|
|
|
13
13
|
var iconAppearance = {
|
|
14
14
|
accent: {
|
|
@@ -73,9 +73,9 @@ var inputConfig = {
|
|
|
73
73
|
};
|
|
74
74
|
var Input = React.forwardRef(function Input(props, ref) {
|
|
75
75
|
var id = props.id, className = props.className, _a = props.type, type = _a === void 0 ? 'text' : _a, name = props.name, appearance = props.appearance, isDisabled = props.isDisabled, autocomplete = props.autocomplete, dataTestId = props.dataTestId, index = props.index, placeholder = props.placeholder, value = props.value, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
|
|
76
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
76
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
77
77
|
var _a;
|
|
78
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
78
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = inputConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
79
79
|
}, {});
|
|
80
80
|
// const stateConfig = state && inputConfig.state && inputConfig.state[state]
|
|
81
81
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
@@ -71,9 +71,9 @@ var inputConfig = {
|
|
|
71
71
|
};
|
|
72
72
|
var Input = React.forwardRef(function Input(props, ref) {
|
|
73
73
|
var id = props.id, className = props.className, _a = props.type, type = _a === void 0 ? 'text' : _a, name = props.name, appearance = props.appearance, isDisabled = props.isDisabled, autocomplete = props.autocomplete, dataTestId = props.dataTestId, index = props.index, placeholder = props.placeholder, value = props.value, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
|
|
74
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
74
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
75
75
|
var _a;
|
|
76
|
-
return (__assign(__assign({},
|
|
76
|
+
return (__assign(__assign({}, resultConfig), (_a = inputConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
77
77
|
}, {});
|
|
78
78
|
// const stateConfig = state && inputConfig.state && inputConfig.state[state]
|
|
79
79
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
@@ -6,8 +6,8 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
9
|
-
var Text = require('./Text-
|
|
10
|
-
var Tooltip = require('./Tooltip-
|
|
9
|
+
var Text = require('./Text-DwIx33-P.js');
|
|
10
|
+
var Tooltip = require('./Tooltip-hznDyLwa.js');
|
|
11
11
|
|
|
12
12
|
var labelAppearanceAccent = {
|
|
13
13
|
accent: {
|
|
@@ -221,9 +221,9 @@ function Label(props) {
|
|
|
221
221
|
var _a;
|
|
222
222
|
(_a = tooltipRef.current) === null || _a === void 0 ? void 0 : _a.closeTooltip();
|
|
223
223
|
}, []);
|
|
224
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
224
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
225
225
|
var _a;
|
|
226
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
226
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = labelConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
227
227
|
}, {});
|
|
228
228
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
229
229
|
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
@@ -4,8 +4,8 @@ import { useRef, useCallback } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
7
|
-
import { T as Text } from './Text-
|
|
8
|
-
import { T as Tooltip } from './Tooltip-
|
|
7
|
+
import { T as Text } from './Text-aaWArShm.js';
|
|
8
|
+
import { T as Tooltip } from './Tooltip-DP32J5V6.js';
|
|
9
9
|
|
|
10
10
|
var labelAppearanceAccent = {
|
|
11
11
|
accent: {
|
|
@@ -219,9 +219,9 @@ function Label(props) {
|
|
|
219
219
|
var _a;
|
|
220
220
|
(_a = tooltipRef.current) === null || _a === void 0 ? void 0 : _a.closeTooltip();
|
|
221
221
|
}, []);
|
|
222
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
222
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
223
223
|
var _a;
|
|
224
|
-
return (__assign(__assign({},
|
|
224
|
+
return (__assign(__assign({}, resultConfig), (_a = labelConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
225
225
|
}, {});
|
|
226
226
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
227
227
|
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
6
|
-
import { T as Text } from './Text-
|
|
6
|
+
import { T as Text } from './Text-aaWArShm.js';
|
|
7
7
|
|
|
8
8
|
var loaderAppearanceAccent = {
|
|
9
9
|
accentPrimary: {
|
|
@@ -51,9 +51,9 @@ var loaderConfig = {
|
|
|
51
51
|
};
|
|
52
52
|
function Loader(props) {
|
|
53
53
|
var className = props.className, type = props.type, appearance = props.appearance, text = props.text, isSkeleton = props.isSkeleton, children = props.children;
|
|
54
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
54
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
55
55
|
var _a;
|
|
56
|
-
return (__assign(__assign({},
|
|
56
|
+
return (__assign(__assign({}, resultConfig), (_a = loaderConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
57
57
|
}, {});
|
|
58
58
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
59
59
|
var fillClass = propsGenerator.fillClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, heightClass = propsGenerator.heightClass, itemFillClass = propsGenerator.itemFillClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
8
|
-
var Text = require('./Text-
|
|
8
|
+
var Text = require('./Text-DwIx33-P.js');
|
|
9
9
|
|
|
10
10
|
var loaderAppearanceAccent = {
|
|
11
11
|
accentPrimary: {
|
|
@@ -53,9 +53,9 @@ var loaderConfig = {
|
|
|
53
53
|
};
|
|
54
54
|
function Loader(props) {
|
|
55
55
|
var className = props.className, type = props.type, appearance = props.appearance, text = props.text, isSkeleton = props.isSkeleton, children = props.children;
|
|
56
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
56
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
57
57
|
var _a;
|
|
58
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
58
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = loaderConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
59
59
|
}, {});
|
|
60
60
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
61
61
|
var fillClass = propsGenerator.fillClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, heightClass = propsGenerator.heightClass, itemFillClass = propsGenerator.itemFillClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
@@ -16,9 +16,9 @@ var overlayConfig = {
|
|
|
16
16
|
};
|
|
17
17
|
function Overlay(props) {
|
|
18
18
|
var className = props.className, type = props.type, appearance = props.appearance, dataTestId = props.dataTestId, dataTour = props.dataTour, isOverlay = props.isOverlay, onClick = props.onClick;
|
|
19
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
19
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
20
20
|
var _a;
|
|
21
|
-
return (__assign(__assign({},
|
|
21
|
+
return (__assign(__assign({}, resultConfig), (_a = overlayConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
22
22
|
}, {});
|
|
23
23
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
24
24
|
var fillClass = propsGenerator.fillClass, fillGradientClass = propsGenerator.fillGradientClass, opacityClass = propsGenerator.opacityClass;
|
|
@@ -18,9 +18,9 @@ var overlayConfig = {
|
|
|
18
18
|
};
|
|
19
19
|
function Overlay(props) {
|
|
20
20
|
var className = props.className, type = props.type, appearance = props.appearance, dataTestId = props.dataTestId, dataTour = props.dataTour, isOverlay = props.isOverlay, onClick = props.onClick;
|
|
21
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
21
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
22
22
|
var _a;
|
|
23
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
23
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = overlayConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
24
24
|
}, {});
|
|
25
25
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
26
26
|
var fillClass = propsGenerator.fillClass, fillGradientClass = propsGenerator.fillGradientClass, opacityClass = propsGenerator.opacityClass;
|
|
@@ -21,9 +21,9 @@ var textConfig = {
|
|
|
21
21
|
};
|
|
22
22
|
function Text(props) {
|
|
23
23
|
var className = props.className, type = props.type, appearance = props.appearance, cursor = props.cursor, dataTestId = props.dataTestId, dataTour = props.dataTour, htmlFor = props.htmlFor, mode = props.mode, _a = props.tag, Tag = _a === void 0 ? 'span' : _a, before = props.before, after = props.after, onClick = props.onClick, onDoubleClick = props.onDoubleClick, children = props.children;
|
|
24
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
24
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
25
25
|
var _a;
|
|
26
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
26
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = textConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
27
27
|
}, {});
|
|
28
28
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
29
29
|
var textAlignClass = propsGenerator.textAlignClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorGradientClass = propsGenerator.textColorGradientClass, textColorHoverClass = propsGenerator.textColorHoverClass, textStyleClass = propsGenerator.textStyleClass, textTruncateClass = propsGenerator.textTruncateClass, textWeightClass = propsGenerator.textWeightClass, textWrapClass = propsGenerator.textWrapClass, cursorClass = propsGenerator.cursorClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
@@ -19,9 +19,9 @@ var textConfig = {
|
|
|
19
19
|
};
|
|
20
20
|
function Text(props) {
|
|
21
21
|
var className = props.className, type = props.type, appearance = props.appearance, cursor = props.cursor, dataTestId = props.dataTestId, dataTour = props.dataTour, htmlFor = props.htmlFor, mode = props.mode, _a = props.tag, Tag = _a === void 0 ? 'span' : _a, before = props.before, after = props.after, onClick = props.onClick, onDoubleClick = props.onDoubleClick, children = props.children;
|
|
22
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
22
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
23
23
|
var _a;
|
|
24
|
-
return (__assign(__assign({},
|
|
24
|
+
return (__assign(__assign({}, resultConfig), (_a = textConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
25
25
|
}, {});
|
|
26
26
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
27
27
|
var textAlignClass = propsGenerator.textAlignClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorGradientClass = propsGenerator.textColorGradientClass, textColorHoverClass = propsGenerator.textColorHoverClass, textStyleClass = propsGenerator.textStyleClass, textTruncateClass = propsGenerator.textTruncateClass, textWeightClass = propsGenerator.textWeightClass, textWrapClass = propsGenerator.textWrapClass, cursorClass = propsGenerator.cursorClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
@@ -22,9 +22,9 @@ var titleConfig = {
|
|
|
22
22
|
function Title(props) {
|
|
23
23
|
var className = props.className, appearance = props.appearance, _a = props.size, size = _a === void 0 ? 'h3' : _a, text = props.text, textWrap = props.textWrap, afterWrapper = props.afterWrapper, beforeWrapper = props.beforeWrapper, dataTour = props.dataTour, sizeDesktop = props.sizeDesktop, sizeMobile = props.sizeMobile, sizeTablet = props.sizeTablet, _b = props.tag, tag = _b === void 0 ? 'span' : _b, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
|
|
24
24
|
var _c = useUserDeviceContext(), isMobile = _c.isMobile, isTablet = _c.isTablet, isDesktop = _c.isDesktop;
|
|
25
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
25
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
26
26
|
var _a;
|
|
27
|
-
return (__assign(__assign({},
|
|
27
|
+
return (__assign(__assign({}, resultConfig), (_a = titleConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
28
28
|
}, {});
|
|
29
29
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
30
30
|
var directionClass = propsGenerator.directionClass, fillClass = propsGenerator.fillClass, textAlignClass = propsGenerator.textAlignClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorGradientClass = propsGenerator.textColorGradientClass, textColorHoverClass = propsGenerator.textColorHoverClass, textStyleClass = propsGenerator.textStyleClass, textTruncateClass = propsGenerator.textTruncateClass, textWeightClass = propsGenerator.textWeightClass, dataTestId = propsGenerator.dataTestId, heightClass = propsGenerator.heightClass, svgFillClass = propsGenerator.svgFillClass, svgFillHoverClass = propsGenerator.svgFillHoverClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, wrapperDirectionClass = propsGenerator.wrapperDirectionClass;
|
|
@@ -24,9 +24,9 @@ var titleConfig = {
|
|
|
24
24
|
function Title(props) {
|
|
25
25
|
var className = props.className, appearance = props.appearance, _a = props.size, size = _a === void 0 ? 'h3' : _a, text = props.text, textWrap = props.textWrap, afterWrapper = props.afterWrapper, beforeWrapper = props.beforeWrapper, dataTour = props.dataTour, sizeDesktop = props.sizeDesktop, sizeMobile = props.sizeMobile, sizeTablet = props.sizeTablet, _b = props.tag, tag = _b === void 0 ? 'span' : _b, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
|
|
26
26
|
var _c = UIContext.useUserDeviceContext(), isMobile = _c.isMobile, isTablet = _c.isTablet, isDesktop = _c.isDesktop;
|
|
27
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
27
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
28
28
|
var _a;
|
|
29
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
29
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = titleConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
30
30
|
}, {});
|
|
31
31
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
32
32
|
var directionClass = propsGenerator.directionClass, fillClass = propsGenerator.fillClass, textAlignClass = propsGenerator.textAlignClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorGradientClass = propsGenerator.textColorGradientClass, textColorHoverClass = propsGenerator.textColorHoverClass, textStyleClass = propsGenerator.textStyleClass, textTruncateClass = propsGenerator.textTruncateClass, textWeightClass = propsGenerator.textWeightClass, dataTestId = propsGenerator.dataTestId, heightClass = propsGenerator.heightClass, svgFillClass = propsGenerator.svgFillClass, svgFillHoverClass = propsGenerator.svgFillHoverClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, wrapperDirectionClass = propsGenerator.wrapperDirectionClass;
|
|
@@ -4,8 +4,8 @@ import React, { useRef, useState, useCallback, useImperativeHandle } from 'react
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
7
|
-
import { T as Text } from './Text-
|
|
8
|
-
import { T as Title } from './Title
|
|
7
|
+
import { T as Text } from './Text-aaWArShm.js';
|
|
8
|
+
import { T as Title } from './Title--_epIXkC.js';
|
|
9
9
|
|
|
10
10
|
var tooltipAppearance = {
|
|
11
11
|
surfacePrimary: {
|
|
@@ -78,9 +78,9 @@ var Tooltip = React.forwardRef(function Tooltip(props, ref) {
|
|
|
78
78
|
closeTooltip: closeTooltip,
|
|
79
79
|
isTooltipVisible: isTooltipVisible,
|
|
80
80
|
}); }, [isTooltipVisible, openTooltip, closeTooltip]);
|
|
81
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
81
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
82
82
|
var _a;
|
|
83
|
-
return (__assign(__assign({},
|
|
83
|
+
return (__assign(__assign({}, resultConfig), (_a = tooltipConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
84
84
|
}, {});
|
|
85
85
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
86
86
|
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignmentClass = propsGenerator.alignmentClass, fillClass = propsGenerator.fillClass, titleSize = propsGenerator.titleSize, titleTextColor = propsGenerator.titleTextColor, titleTextWeight = propsGenerator.titleTextWeight, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
@@ -6,8 +6,8 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
9
|
-
var Text = require('./Text-
|
|
10
|
-
var Title = require('./Title-
|
|
9
|
+
var Text = require('./Text-DwIx33-P.js');
|
|
10
|
+
var Title = require('./Title-ByfOyy-n.js');
|
|
11
11
|
|
|
12
12
|
var tooltipAppearance = {
|
|
13
13
|
surfacePrimary: {
|
|
@@ -80,9 +80,9 @@ var Tooltip = React.forwardRef(function Tooltip(props, ref) {
|
|
|
80
80
|
closeTooltip: closeTooltip,
|
|
81
81
|
isTooltipVisible: isTooltipVisible,
|
|
82
82
|
}); }, [isTooltipVisible, openTooltip, closeTooltip]);
|
|
83
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
83
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
84
84
|
var _a;
|
|
85
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
85
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = tooltipConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
86
86
|
}, {});
|
|
87
87
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
88
88
|
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignmentClass = propsGenerator.alignmentClass, fillClass = propsGenerator.fillClass, titleSize = propsGenerator.titleSize, titleTextColor = propsGenerator.titleTextColor, titleTextWeight = propsGenerator.titleTextWeight, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
@@ -8,9 +8,9 @@ var castArray = require('lodash/castArray');
|
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
9
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
10
10
|
var _default = require('@itcase/icons/default');
|
|
11
|
-
var Divider = require('../../Divider-
|
|
12
|
-
var Icon = require('../../Icon-
|
|
13
|
-
var Text = require('../../Text-
|
|
11
|
+
var Divider = require('../../Divider-BQIfjvPR.js');
|
|
12
|
+
var Icon = require('../../Icon-dS-it4rs.js');
|
|
13
|
+
var Text = require('../../Text-DwIx33-P.js');
|
|
14
14
|
require('lodash/camelCase');
|
|
15
15
|
require('lodash/upperFirst');
|
|
16
16
|
require('../context/Notifications.js');
|
|
@@ -24,8 +24,8 @@ require('lodash/maxBy');
|
|
|
24
24
|
require('../hooks/useStyles/styleAttributes.js');
|
|
25
25
|
require('react-inlinesvg');
|
|
26
26
|
require('../../Link-UmzWKcxT.js');
|
|
27
|
-
require('../../Tooltip-
|
|
28
|
-
require('../../Title-
|
|
27
|
+
require('../../Tooltip-hznDyLwa.js');
|
|
28
|
+
require('../../Title-ByfOyy-n.js');
|
|
29
29
|
|
|
30
30
|
var accordionAppearance = {
|
|
31
31
|
dev: {},
|
|
@@ -52,9 +52,9 @@ function AccordionItem(props) {
|
|
|
52
52
|
};
|
|
53
53
|
onClick && onClick(thisItemData);
|
|
54
54
|
}, [id, title, content, isExpanded, onClick]);
|
|
55
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
55
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
56
56
|
var _a;
|
|
57
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
57
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = accordionItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
58
58
|
}, {});
|
|
59
59
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
60
60
|
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, titleBorderColorClass = propsGenerator.titleBorderColorClass, titleFillClass = propsGenerator.titleFillClass, titleFillHoverClass = propsGenerator.titleFillHoverClass, borderColorClass = propsGenerator.borderColorClass, contentBorderColorClass = propsGenerator.contentBorderColorClass, contentFillClass = propsGenerator.contentFillClass, contentFillHoverClass = propsGenerator.contentFillHoverClass, shapeClass = propsGenerator.shapeClass;
|
|
@@ -118,9 +118,9 @@ function Accordion(props) {
|
|
|
118
118
|
}
|
|
119
119
|
return [];
|
|
120
120
|
}, [children, items, expandedItems, onClickAccordionItem]);
|
|
121
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
121
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
122
122
|
var _a;
|
|
123
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
123
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = accordionConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
124
124
|
}, {});
|
|
125
125
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
126
126
|
var directionClass = propsGenerator.directionClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass;
|