@itcase/ui 1.8.94 → 1.8.96
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_Dh7c9RmS.js → Avatar_cjs_BcGACdXb.js} +1 -1
- package/dist/{Avatar_es_D4xUwAOB.js → Avatar_es_CRe2Om1a.js} +1 -1
- package/dist/{Button_cjs_DuAAQvct.js → Button_cjs_DojNe74O.js} +2 -2
- package/dist/{Button_es_DgLivwXd.js → Button_es_DCM3C_2S.js} +2 -2
- package/dist/{ChipsGroup_cjs_7mHtHzNh.js → ChipsGroup_cjs_DFdZuX6w.js} +1 -1
- package/dist/{ChipsGroup_es_Cz_gDYsw.js → ChipsGroup_es_Dm-iGTBi.js} +1 -1
- package/dist/{DatePicker_cjs_Ca9M-Ks1.js → DatePicker_cjs_mrV_Qly2.js} +3 -3
- package/dist/{DatePicker_es_DU2ZE7vb.js → DatePicker_es_Di_4I2Xv.js} +3 -3
- package/dist/{Divider_cjs_rxMMBfLC.js → Divider_cjs_DUYtmwn2.js} +3 -3
- package/dist/{Divider_es_CiRU0sTz.js → Divider_es_CCLBFIx6.js} +3 -3
- package/dist/{DropdownItem_cjs_DrMFaKh6.js → DropdownItem_cjs_DNSMwZdV.js} +2 -2
- package/dist/{DropdownItem_es_Dp7-DGkV.js → DropdownItem_es_DURwA4mR.js} +2 -2
- package/dist/{Icon_cjs_CDMtlf1A.js → Icon_cjs_B-nskaAO.js} +25 -29
- package/dist/{Icon_es_MOmiy9nF.js → Icon_es_CTKPPrrC.js} +25 -29
- package/dist/{Label_cjs_BTLhlnJW.js → Label_cjs_B1fNYJak.js} +1 -1
- package/dist/{Label_es_DBPp2ots.js → Label_es_d9RioNNf.js} +1 -1
- package/dist/{Loader_cjs_jCYE0aEd.js → Loader_cjs_CMvh28cF.js} +1 -3
- package/dist/{Loader_es_tNV0bjm_.js → Loader_es_DGMpRDMk.js} +1 -3
- package/dist/cjs/components/Accordion.js +6 -7
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/AvatarStack.js +2 -2
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs.js +1 -1
- package/dist/cjs/components/Button.js +3 -3
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice.js +2 -2
- package/dist/cjs/components/CookiesWarning.js +3 -3
- package/dist/cjs/components/DatePeriod.js +6 -6
- package/dist/cjs/components/DatePicker.js +5 -5
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Drawer.js +2 -2
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/Loader.js +1 -1
- package/dist/cjs/components/MenuItem.js +1 -1
- package/dist/cjs/components/Modal.js +2 -2
- package/dist/cjs/components/ModalSheetBottom.js +8 -7
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +3 -3
- package/dist/cjs/components/Response.js +3 -3
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented.js +1 -1
- package/dist/cjs/components/Select.js +3 -3
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +2 -2
- package/dist/cjs/components/Tile.js +13 -13
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/cjs/components/Warning.js +1 -1
- package/dist/cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +23 -18
- package/dist/components/Accordion.js +6 -7
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +2 -2
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs.js +1 -1
- package/dist/components/Button.js +3 -3
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice.js +2 -2
- package/dist/components/CookiesWarning.js +3 -3
- package/dist/components/DatePeriod.js +6 -6
- package/dist/components/DatePicker.js +5 -5
- package/dist/components/Divider.js +1 -1
- package/dist/components/Drawer.js +2 -2
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/Loader.js +1 -1
- package/dist/components/MenuItem.js +1 -1
- package/dist/components/Modal.js +2 -2
- package/dist/components/ModalSheetBottom.js +8 -7
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +3 -3
- package/dist/components/Response.js +3 -3
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented.js +1 -1
- package/dist/components/Select.js +3 -3
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +2 -2
- package/dist/components/Tile.js +13 -13
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Warning.js +1 -1
- package/dist/css/components/Accordion/Accordion.css +12 -36
- package/dist/css/components/Loader/Loader.css +0 -6
- package/dist/css/styles/align/align_horizontal.css +22 -40
- package/dist/css/styles/align/align_vertical.css +7 -25
- package/dist/css/styles/alignment/alignment.css +0 -8
- package/dist/css/styles/border-color/border-color.css +2 -3
- package/dist/css/styles/border-color/border-color_active.css +2 -3
- package/dist/css/styles/border-color/border-color_focus.css +2 -3
- package/dist/css/styles/border-color/border-color_hover.css +2 -3
- package/dist/css/styles/fill/fill_active.css +2 -4
- package/dist/css/styles/fill/fill_active_hover.css +2 -4
- package/dist/css/styles/fill/fill_hover.css +2 -3
- package/dist/css/styles/text-color/text-color_active.css +2 -4
- package/dist/css/styles/text-color/text-color_active_hover.css +2 -4
- package/dist/css/styles/text-color/text-color_hover.css +2 -4
- package/dist/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +23 -18
- package/dist/types/components/Accordion/Accordion.interface.d.ts +21 -39
- package/dist/types/components/Badge/Badge.appearance.d.ts +230 -2
- package/dist/types/components/Badge/Badge.interface.d.ts +26 -19
- package/dist/types/components/Badge/appearance/badgeShape.d.ts +4 -4
- package/dist/types/components/Divider/Divider.appearance.d.ts +814 -2
- package/dist/types/components/Divider/Divider.interface.d.ts +24 -36
- package/dist/types/components/Divider/appearance/dividerAccent.d.ts +2 -5
- package/dist/types/components/Divider/appearance/dividerError.d.ts +2 -5
- package/dist/types/components/Divider/appearance/dividerPrimary.d.ts +2 -5
- package/dist/types/components/Divider/appearance/dividerSecondary.d.ts +2 -5
- package/dist/types/components/Divider/appearance/dividerSize.d.ts +2 -11
- package/dist/types/components/Divider/appearance/dividerSuccess.d.ts +2 -5
- package/dist/types/components/Divider/appearance/dividerSurface.d.ts +2 -14
- package/dist/types/components/Divider/appearance/dividerWarning.d.ts +2 -5
- package/dist/types/components/Icon/Icon.appearance.d.ts +41 -2
- package/dist/types/components/Icon/Icon.d.ts +1 -0
- package/dist/types/components/Icon/Icon.interface.d.ts +59 -73
- package/dist/types/components/Icon/appearance/iconAccent.d.ts +2 -22
- package/dist/types/components/Icon/appearance/iconDanger.d.ts +2 -13
- package/dist/types/components/Icon/appearance/iconDisabled.d.ts +2 -12
- package/dist/types/components/Icon/appearance/iconError.d.ts +2 -15
- package/dist/types/components/Icon/appearance/iconInfo.d.ts +2 -18
- package/dist/types/components/Icon/appearance/iconPrimary.d.ts +2 -15
- package/dist/types/components/Icon/appearance/iconSecondary.d.ts +2 -13
- package/dist/types/components/Icon/appearance/iconShape.d.ts +2 -24
- package/dist/types/components/Icon/appearance/iconSize.d.ts +2 -142
- package/dist/types/components/Icon/appearance/iconStyle.d.ts +2 -13
- package/dist/types/components/Icon/appearance/iconSuccess.d.ts +2 -13
- package/dist/types/components/Icon/appearance/iconSurface.d.ts +2 -27
- package/dist/types/components/Icon/appearance/iconWarning.d.ts +2 -15
- package/dist/types/components/Image/Image.d.ts +2 -5
- package/dist/types/components/Loader/Loader.appearance.d.ts +466 -2
- package/dist/types/components/Loader/Loader.interface.d.ts +12 -14
- package/dist/types/components/Logo/Logo.d.ts +2 -6
- package/dist/types/components/Response/Response.d.ts +2 -6
- package/dist/types/components/SVGContent/SVGContent.d.ts +2 -5
- package/dist/types/components/Tile/Tile.appearance.d.ts +60 -2
- package/dist/types/components/Tile/Tile.interface.d.ts +46 -28
- package/dist/types/components/Tile/appearance/tileShape.d.ts +2 -24
- package/dist/types/components/Tile/appearance/tileSize.d.ts +2 -50
- package/dist/types/components/Tile/appearance/tileStyle.d.ts +2 -13
- package/dist/types/components/Tile/appearance/tileSurface.d.ts +2 -38
- package/dist/types/hoc/urlWithAssetPrefix.d.ts +3 -2
- package/dist/types/hooks/useDevicePropsGenerator/useDevicePropsGenerator.d.ts +7 -2
- package/dist/types/hooks/useDevicePropsGenerator/useDevicePropsGenerator.interface.d.ts +1 -10
- package/dist/types/hooks/useStyles/styleAttributes.interface.d.ts +78 -102
- package/dist/types/types/utils.d.ts +4 -0
- package/package.json +6 -8
|
@@ -5,7 +5,7 @@ var clsx = require('clsx');
|
|
|
5
5
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
6
6
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
8
|
-
var Icon = require('../../
|
|
8
|
+
var Icon = require('../../Icon_cjs_B-nskaAO.js');
|
|
9
9
|
var Text = require('../../Text_cjs_DmuzuKFj.js');
|
|
10
10
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
11
11
|
require('react');
|
|
@@ -33,21 +33,21 @@ var tileAppearanceShape = {
|
|
|
33
33
|
rounded: {
|
|
34
34
|
shape: 'rounded',
|
|
35
35
|
},
|
|
36
|
-
|
|
37
|
-
shape: 'rounded',
|
|
38
|
-
shapeStrength: '0_5m',
|
|
39
|
-
},
|
|
40
|
-
roundedM: {
|
|
36
|
+
roundedXL: {
|
|
41
37
|
shape: 'rounded',
|
|
42
|
-
shapeStrength: '
|
|
38
|
+
shapeStrength: '2m',
|
|
43
39
|
},
|
|
44
40
|
roundedL: {
|
|
45
41
|
shape: 'rounded',
|
|
46
42
|
shapeStrength: '1_5m',
|
|
47
43
|
},
|
|
48
|
-
|
|
44
|
+
roundedM: {
|
|
49
45
|
shape: 'rounded',
|
|
50
|
-
shapeStrength: '
|
|
46
|
+
shapeStrength: '1m',
|
|
47
|
+
},
|
|
48
|
+
roundedS: {
|
|
49
|
+
shape: 'rounded',
|
|
50
|
+
shapeStrength: '0_5m',
|
|
51
51
|
},
|
|
52
52
|
};
|
|
53
53
|
|
|
@@ -155,7 +155,7 @@ var tileAppearanceSurface = {
|
|
|
155
155
|
},
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
-
var tileAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({},
|
|
158
|
+
var tileAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, tileAppearanceShape), tileAppearanceSize), tileAppearanceStyle), tileAppearanceSurface);
|
|
159
159
|
|
|
160
160
|
var tileConfig = {
|
|
161
161
|
appearance: tileAppearance,
|
|
@@ -164,13 +164,13 @@ var tileConfig = {
|
|
|
164
164
|
},
|
|
165
165
|
};
|
|
166
166
|
function Tile(props) {
|
|
167
|
-
var className = props.className, type = props.type, appearance = props.appearance,
|
|
167
|
+
var className = props.className, type = props.type, appearance = props.appearance, title = props.title, desc = props.desc, badgeValue = props.badgeValue, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
|
|
168
168
|
var appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, tileConfig);
|
|
169
169
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
170
|
-
var
|
|
170
|
+
var dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, directionClass = propsGenerator.directionClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, titleTextAlign = propsGenerator.titleTextAlign, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, titleTextWrap = propsGenerator.titleTextWrap, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, descTextWrap = propsGenerator.descTextWrap, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, badgeAppearance = propsGenerator.badgeAppearance, badgeAppearanceSize = propsGenerator.badgeAppearanceSize, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, icon = propsGenerator.icon, iconAppearance = propsGenerator.iconAppearance, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
171
171
|
// @ts-expect-error
|
|
172
172
|
var tileStyles = useStyles.useStyles(props).styles;
|
|
173
|
-
return (jsxRuntime.jsx("div", { className: clsx('tile', className, fillClass && "fill_".concat(fillClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), alignClass && "align_".concat(alignClass),
|
|
173
|
+
return (jsxRuntime.jsx("div", { className: clsx('tile', className, fillClass && "fill_".concat(fillClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), alignClass && "align_".concat(alignClass), directionClass && "direction_".concat(directionClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "tile_size_".concat(sizeClass), type && "tile_type_".concat(type), badgeValue && "tile_state_badge", widthClass && "width_".concat(widthClass), isSkeleton && "tile_skeleton"), "data-test-id": dataTestId, "data-tour": dataTour, style: tileStyles, onClick: onClick, children: jsxRuntime.jsxs("div", { className: clsx('tile__wrapper', alignClass, alignDirectionClass), children: [before, jsxRuntime.jsxs("div", { className: "tile__header", children: [jsxRuntime.jsxs("div", { className: "tile__header-inner", children: [title && (jsxRuntime.jsx(Icon.Title, { className: "tile__title", size: titleTextSize, textAlign: titleTextAlign, textColor: titleTextColor, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), desc && (jsxRuntime.jsx(Text.Text, { className: "tile__text", size: descTextSize, textColor: descTextColor, textWrap: descTextWrap, children: desc }))] }), jsxRuntime.jsxs("div", { className: "tile__header-actions", children: [badgeValue && (jsxRuntime.jsx(Icon.Badge, { className: "tile__badge", appearance: "".concat(badgeAppearance, " ").concat(badgeAppearanceSize), size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "tile__icon", appearance: iconAppearance, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] })] }), children, after] }) }));
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
exports.Tile = Tile;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
|
-
var Icon = require('../../
|
|
6
|
+
var Icon = require('../../Icon_cjs_B-nskaAO.js');
|
|
7
7
|
var Text = require('../../Text_cjs_DmuzuKFj.js');
|
|
8
8
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
9
9
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
@@ -39,7 +39,8 @@ function useDevicePropsGenerator(componentProps, appearanceConfig) {
|
|
|
39
39
|
* "fillClass" - is "surface-secondary"
|
|
40
40
|
*
|
|
41
41
|
* Usage for props value for device:
|
|
42
|
-
* const { titleTextSize } = propsGenerator / const titleTextSize = propsGenerator.titleTextSize
|
|
42
|
+
* const { titleTextSize } = propsGenerator / const titleTextSize = propsGenerator.titleTextSize
|
|
43
|
+
*
|
|
43
44
|
* "titleTextSize" - contain some value from props:
|
|
44
45
|
* - titleTextSize
|
|
45
46
|
* - titleTextSizeMobile
|
|
@@ -50,12 +51,12 @@ function useDevicePropsGenerator(componentProps, appearanceConfig) {
|
|
|
50
51
|
var deviceCurrentMainType = UIContext.useUserDeviceContext().deviceCurrentMainType;
|
|
51
52
|
var devicePropsGenerator = React.useMemo(function () {
|
|
52
53
|
var propsGenerator = {
|
|
53
|
-
getProp: function (
|
|
54
|
-
var propsForDeviceKey = "".concat(
|
|
54
|
+
getProp: function (propKey) {
|
|
55
|
+
var propsForDeviceKey = "".concat(propKey).concat(upperFirst(deviceCurrentMainType));
|
|
55
56
|
var valueForDevice = componentProps[propsForDeviceKey];
|
|
56
|
-
var valueDefault = componentProps[
|
|
57
|
+
var valueDefault = componentProps[propKey];
|
|
57
58
|
var appearanceForDevice = appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig[propsForDeviceKey];
|
|
58
|
-
var appearanceDefault = appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig[
|
|
59
|
+
var appearanceDefault = appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig[propKey];
|
|
59
60
|
// prettier-ignore
|
|
60
61
|
var targetPropsValue = (
|
|
61
62
|
// Value for device from props is first priority
|
|
@@ -69,11 +70,10 @@ function useDevicePropsGenerator(componentProps, appearanceConfig) {
|
|
|
69
70
|
return targetPropsValue;
|
|
70
71
|
},
|
|
71
72
|
// eslint-disable-next-line perfectionist/sort-objects
|
|
72
|
-
getClassName: function (
|
|
73
|
-
|
|
74
|
-
var _a = params.prefix, prefix = _a === void 0 ? '' : _a, _b = params.replace, replace = _b === void 0 ? [/([A-Z])/g, '-$1'] : _b;
|
|
73
|
+
getClassName: function (propKey, params) {
|
|
74
|
+
var _a = params || {}, _b = _a.prefix, prefix = _b === void 0 ? '' : _b, _c = _a.replace, replace = _c === void 0 ? [/([A-Z])/g, '-$1'] : _c;
|
|
75
75
|
// prettier-ignore
|
|
76
|
-
var targetClassValue = this.getProp(
|
|
76
|
+
var targetClassValue = this.getProp(String(propKey));
|
|
77
77
|
if (targetClassValue) {
|
|
78
78
|
var cleanClassValue = String(targetClassValue);
|
|
79
79
|
if (!cleanClassValue.includes('.')) {
|
|
@@ -81,8 +81,11 @@ function useDevicePropsGenerator(componentProps, appearanceConfig) {
|
|
|
81
81
|
}
|
|
82
82
|
if (replace) {
|
|
83
83
|
var replaceList = castArray(replace);
|
|
84
|
-
cleanClassValue = cleanClassValue.replace(replaceList[0],
|
|
84
|
+
cleanClassValue = cleanClassValue.replace(replaceList[0],
|
|
85
|
+
// @ts-expect-error
|
|
86
|
+
replaceList[1] || '');
|
|
85
87
|
}
|
|
88
|
+
// prettier-ignore
|
|
86
89
|
return "".concat(prefix).concat(cleanClassValue).toLowerCase();
|
|
87
90
|
}
|
|
88
91
|
// If target key not exists in props and appearance config - return empty class
|
|
@@ -90,29 +93,31 @@ function useDevicePropsGenerator(componentProps, appearanceConfig) {
|
|
|
90
93
|
},
|
|
91
94
|
};
|
|
92
95
|
var generatorProxyHandler = {
|
|
93
|
-
get: function (target,
|
|
96
|
+
get: function (target, propKey, receiver) {
|
|
94
97
|
var args = [];
|
|
95
98
|
for (var _i = 3; _i < arguments.length; _i++) {
|
|
96
99
|
args[_i - 3] = arguments[_i];
|
|
97
100
|
}
|
|
98
|
-
if (typeof
|
|
101
|
+
if (typeof propKey === 'string') {
|
|
99
102
|
// If object does not have the property being retrieved
|
|
100
|
-
if (!Reflect.has(target,
|
|
103
|
+
if (!Reflect.has(target, propKey)) {
|
|
101
104
|
// And property ended on "Class" keyword
|
|
102
|
-
if (
|
|
103
|
-
|
|
105
|
+
if (propKey.endsWith('Class')) {
|
|
106
|
+
// prettier-ignore
|
|
107
|
+
var shortProp = propKey.substring(0, propKey.lastIndexOf('Class'));
|
|
104
108
|
// Return prop from props for device as formatted class name
|
|
105
109
|
return target.getClassName(shortProp);
|
|
106
110
|
}
|
|
107
111
|
// Return prop from props for device
|
|
108
|
-
return target.getProp(
|
|
112
|
+
return target.getProp(propKey);
|
|
109
113
|
}
|
|
110
114
|
// Return object property. Original "get".
|
|
111
|
-
|
|
115
|
+
// @ts-expect-error
|
|
116
|
+
return Reflect.get.apply(Reflect, tslib_es6.__spreadArray([target, propKey, receiver], args, false));
|
|
112
117
|
}
|
|
113
118
|
// In some cases, like in Chrome browser, sometime "prop" is not string.
|
|
114
119
|
// We return this object as is.
|
|
115
|
-
return
|
|
120
|
+
return propKey;
|
|
116
121
|
},
|
|
117
122
|
};
|
|
118
123
|
return new Proxy(propsGenerator, generatorProxyHandler);
|
|
@@ -6,8 +6,8 @@ import castArray from 'lodash/castArray';
|
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
8
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
9
|
-
import { B as Badge, I as Icon } from '../
|
|
10
|
-
import { D as Divider } from '../
|
|
9
|
+
import { B as Badge, I as Icon } from '../Icon_es_CTKPPrrC.js';
|
|
10
|
+
import { D as Divider } from '../Divider_es_CCLBFIx6.js';
|
|
11
11
|
import { T as Text } from '../Text_es_DIU5ySvf.js';
|
|
12
12
|
import { icons16 } from '@itcase/icons/default';
|
|
13
13
|
import 'lodash/camelCase';
|
|
@@ -149,10 +149,9 @@ function AccordionItem(props) {
|
|
|
149
149
|
}, [id, title, content, isExpanded, onClick]);
|
|
150
150
|
var appearanceConfig = useAppearanceConfig(appearance, accordionItemConfig);
|
|
151
151
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
152
|
-
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, titleBorderColorClass = propsGenerator.titleBorderColorClass, titleFillClass = propsGenerator.titleFillClass, titleFillHoverClass = propsGenerator.titleFillHoverClass, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, titleWidthClass = propsGenerator.titleWidthClass, borderColorClass = propsGenerator.borderColorClass, badgeAppearance = propsGenerator.badgeAppearance, badgeAppearanceSize = propsGenerator.badgeAppearanceSize, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, badgeValue = propsGenerator.badgeValue, contentTextColor = propsGenerator.contentTextColor, contentTextSize = propsGenerator.contentTextSize, contentTextWeight = propsGenerator.contentTextWeight, dividerDirection = propsGenerator.dividerDirection, dividerFill = propsGenerator.dividerFill, dividerSize = propsGenerator.dividerSize, icon = propsGenerator.icon, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, shapeClass = propsGenerator.shapeClass, showDivider = propsGenerator.showDivider, sizeClass = propsGenerator.sizeClass, zeroGap = propsGenerator.zeroGap, zeroPadding = propsGenerator.zeroPadding;
|
|
153
|
-
// @ts-expect-error
|
|
152
|
+
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, titleBorderColorClass = propsGenerator.titleBorderColorClass, titleFillClass = propsGenerator.titleFillClass, titleFillHoverClass = propsGenerator.titleFillHoverClass, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, titleWidthClass = propsGenerator.titleWidthClass, borderColorClass = propsGenerator.borderColorClass, badgeAppearance = propsGenerator.badgeAppearance, badgeAppearanceSize = propsGenerator.badgeAppearanceSize, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, badgeValue = propsGenerator.badgeValue, contentTextColor = propsGenerator.contentTextColor, contentTextSize = propsGenerator.contentTextSize, contentTextWeight = propsGenerator.contentTextWeight, dividerDirection = propsGenerator.dividerDirection, dividerFill = propsGenerator.dividerFill, dividerSize = propsGenerator.dividerSize, icon = propsGenerator.icon, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, showDivider = propsGenerator.showDivider, sizeClass = propsGenerator.sizeClass, zeroGap = propsGenerator.zeroGap, zeroPadding = propsGenerator.zeroPadding;
|
|
154
153
|
var styles = useStyles(props).styles;
|
|
155
|
-
return (jsxs("div", { className: clsx('accordion-item', className, zeroPadding && 'accordion-item_zero-padding', zeroGap && 'accordion-item_zero-gap', borderColorClass && "border-color_".concat(borderColorClass), shapeClass && "
|
|
154
|
+
return (jsxs("div", { className: clsx('accordion-item', className, zeroPadding && 'accordion-item_zero-padding', zeroGap && 'accordion-item_zero-gap', borderColorClass && "border-color_".concat(borderColorClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), sizeClass && "accordion-item_size_".concat(sizeClass), isExpanded && 'accordion-item_state_open'), style: styles, children: [jsxs("div", { className: clsx('accordion-item__header', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), children: [jsx(Text, { className: clsx('accordion-item__title', titleBorderColorClass && "border-color_".concat(titleBorderColorClass), titleFillClass && "fill_".concat(titleFillClass), titleFillHoverClass && "fill_hover_".concat(titleFillHoverClass), titleWidthClass && "width_".concat(titleWidthClass), onClickTitle && 'cursor_type_pointer'), size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, onClick: onClickTitle, children: title }), jsxs("div", { className: "accordion-item__action", children: [badgeValue && (jsx(Badge, { className: "accordion-item__badge", appearance: "".concat(badgeAppearance, " ").concat(badgeAppearanceSize), size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (jsx(Icon, { className: clsx('accordion-item__icon'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon, onClick: onClickTitle }))] }), showDivider && (jsx(Divider, { width: "fill", direction: dividerDirection, size: dividerSize, fill: dividerFill || 'surfaceTertiary' }))] }), beforeContent, isExpanded && (jsxs("div", { className: clsx('accordion-item__content'), children: [content && (jsx("div", { className: clsx('accordion-item__content-inner', fillClass && "fill_".concat(fillClass)), children: jsx(Text, { size: contentTextSize, textColor: contentTextColor, textWeight: contentTextWeight, children: content }) })), children] })), afterContent] }));
|
|
156
155
|
}
|
|
157
156
|
|
|
158
157
|
function Accordion(props) {
|
|
@@ -203,9 +202,9 @@ function Accordion(props) {
|
|
|
203
202
|
return [];
|
|
204
203
|
}, [children, items, expandedItems, onClickAccordionItem]);
|
|
205
204
|
var propsGenerator = useDevicePropsGenerator(props);
|
|
206
|
-
var fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass;
|
|
205
|
+
var fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, widthClass = propsGenerator.widthClass;
|
|
207
206
|
var accordionStyles = useStyles(props).styles;
|
|
208
|
-
return (jsx("div", { className: clsx(className, 'accordion', borderColorClass && "border-color_".concat(borderColorClass), fillClass && "fill_".concat(fillClass), shapeClass && "
|
|
207
|
+
return (jsx("div", { className: clsx(className, 'accordion', borderColorClass && "border-color_".concat(borderColorClass), fillClass && "fill_".concat(fillClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), widthClass && "width_".concat(widthClass)), style: accordionStyles, children: accordionItemsList }));
|
|
209
208
|
}
|
|
210
209
|
|
|
211
210
|
export { Accordion, AccordionItem, accordionAppearance, accordionItemConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../
|
|
1
|
+
export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../Avatar_es_CRe2Om1a.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -15,7 +15,7 @@ import '../context/UIContext.js';
|
|
|
15
15
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
16
16
|
import 'react-responsive';
|
|
17
17
|
import '../utils/setViewportProperty.js';
|
|
18
|
-
import '../
|
|
18
|
+
import '../Icon_es_CTKPPrrC.js';
|
|
19
19
|
import 'react-inlinesvg';
|
|
20
20
|
import '../hoc/urlWithAssetPrefix.js';
|
|
21
21
|
import '../context/UrlAssetPrefix.js';
|
|
@@ -3,7 +3,7 @@ import clsx from 'clsx';
|
|
|
3
3
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { A as Avatar } from '../
|
|
6
|
+
import { A as Avatar } from '../Avatar_es_CRe2Om1a.js';
|
|
7
7
|
import { G as Group } from '../Group_es_Bo7Y6JwT.js';
|
|
8
8
|
import { T as Text } from '../Text_es_DIU5ySvf.js';
|
|
9
9
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
@@ -20,7 +20,7 @@ import 'react-responsive';
|
|
|
20
20
|
import '../utils/setViewportProperty.js';
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
|
-
import '../
|
|
23
|
+
import '../Icon_es_CTKPPrrC.js';
|
|
24
24
|
import 'react-inlinesvg';
|
|
25
25
|
import '../hoc/urlWithAssetPrefix.js';
|
|
26
26
|
import '../context/UrlAssetPrefix.js';
|
package/dist/components/Badge.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Badge, f as badgeAppearance, g as badgeConfig } from '../
|
|
1
|
+
export { B as Badge, f as badgeAppearance, g as badgeConfig } from '../Icon_es_CTKPPrrC.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
7
|
+
import { I as Icon } from '../Icon_es_CTKPPrrC.js';
|
|
8
8
|
import { a as LinkWrapper } from '../Link_es_BnUIX0QT.js';
|
|
9
9
|
import { T as Text } from '../Text_es_DIU5ySvf.js';
|
|
10
10
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../
|
|
1
|
+
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_DCM3C_2S.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
5
|
-
import '../
|
|
5
|
+
import '../Icon_es_CTKPPrrC.js';
|
|
6
6
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
7
7
|
import 'react-inlinesvg';
|
|
8
8
|
import '../hoc/urlWithAssetPrefix.js';
|
|
@@ -24,4 +24,4 @@ import 'lodash/maxBy';
|
|
|
24
24
|
import '../hooks/useStyles/styleAttributes.js';
|
|
25
25
|
import '../Link_es_BnUIX0QT.js';
|
|
26
26
|
import '../Text_es_DIU5ySvf.js';
|
|
27
|
-
import '../
|
|
27
|
+
import '../Loader_es_DGMpRDMk.js';
|
package/dist/components/Cell.js
CHANGED
|
@@ -3,8 +3,8 @@ import clsx from 'clsx';
|
|
|
3
3
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { I as Icon } from '../
|
|
7
|
-
import { L as Label } from '../
|
|
6
|
+
import { I as Icon } from '../Icon_es_CTKPPrrC.js';
|
|
7
|
+
import { L as Label } from '../Label_es_d9RioNNf.js';
|
|
8
8
|
import { T as Text } from '../Text_es_DIU5ySvf.js';
|
|
9
9
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
10
10
|
import 'react';
|
package/dist/components/Chips.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../
|
|
1
|
+
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_Dm-iGTBi.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
@@ -18,7 +18,7 @@ import '../utils/setViewportProperty.js';
|
|
|
18
18
|
import '../hooks/useStyles/useStyles.js';
|
|
19
19
|
import 'lodash/maxBy';
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
|
-
import '../
|
|
21
|
+
import '../Icon_es_CTKPPrrC.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../hoc/urlWithAssetPrefix.js';
|
|
24
24
|
import '../context/UrlAssetPrefix.js';
|
|
@@ -4,8 +4,8 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
8
|
-
import { L as Loader } from '../
|
|
7
|
+
import { I as Icon } from '../Icon_es_CTKPPrrC.js';
|
|
8
|
+
import { L as Loader } from '../Loader_es_DGMpRDMk.js';
|
|
9
9
|
import { T as Text } from '../Text_es_DIU5ySvf.js';
|
|
10
10
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import Cookies from 'js-cookie';
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { B as Button } from '../
|
|
7
|
+
import { B as Button } from '../Button_es_DCM3C_2S.js';
|
|
8
8
|
import { T as Text } from '../Text_es_DIU5ySvf.js';
|
|
9
9
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -17,7 +17,7 @@ import '../context/UIContext.js';
|
|
|
17
17
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
18
18
|
import 'react-responsive';
|
|
19
19
|
import '../utils/setViewportProperty.js';
|
|
20
|
-
import '../
|
|
20
|
+
import '../Icon_es_CTKPPrrC.js';
|
|
21
21
|
import 'react-inlinesvg';
|
|
22
22
|
import '../hoc/urlWithAssetPrefix.js';
|
|
23
23
|
import '../context/UrlAssetPrefix.js';
|
|
@@ -25,7 +25,7 @@ import '../hooks/useStyles/useStyles.js';
|
|
|
25
25
|
import 'lodash/maxBy';
|
|
26
26
|
import '../hooks/useStyles/styleAttributes.js';
|
|
27
27
|
import '../Link_es_BnUIX0QT.js';
|
|
28
|
-
import '../
|
|
28
|
+
import '../Loader_es_DGMpRDMk.js';
|
|
29
29
|
|
|
30
30
|
var cookiesWarningAppearanceDefault = {
|
|
31
31
|
defaultPrimary: {
|
|
@@ -2,10 +2,10 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { DATE_PERIOD_INTERVALS } from '@itcase/common';
|
|
5
|
-
import { D as DatePickerInput } from '../
|
|
5
|
+
import { D as DatePickerInput } from '../DatePicker_es_Di_4I2Xv.js';
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
|
-
import { b as ChipsGroup, C as Chips } from '../
|
|
8
|
+
import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_Dm-iGTBi.js';
|
|
9
9
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
10
10
|
import 'date-fns/locale';
|
|
11
11
|
import 'react-datepicker';
|
|
@@ -20,16 +20,16 @@ import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
|
20
20
|
import 'react-responsive';
|
|
21
21
|
import '../utils/setViewportProperty.js';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
|
-
import '../
|
|
24
|
-
import '../
|
|
23
|
+
import '../Button_es_DCM3C_2S.js';
|
|
24
|
+
import '../Icon_es_CTKPPrrC.js';
|
|
25
25
|
import 'react-inlinesvg';
|
|
26
26
|
import '../hoc/urlWithAssetPrefix.js';
|
|
27
27
|
import '../context/UrlAssetPrefix.js';
|
|
28
28
|
import '../Link_es_BnUIX0QT.js';
|
|
29
29
|
import '../Text_es_DIU5ySvf.js';
|
|
30
|
-
import '../
|
|
30
|
+
import '../Loader_es_DGMpRDMk.js';
|
|
31
31
|
import '../Input_es_l3ry6luZ.js';
|
|
32
|
-
import '../
|
|
32
|
+
import '../Label_es_d9RioNNf.js';
|
|
33
33
|
import '@itcase/icons/default';
|
|
34
34
|
import 'lodash/castArray';
|
|
35
35
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../
|
|
1
|
+
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_Di_4I2Xv.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -20,14 +20,14 @@ import '../utils/setViewportProperty.js';
|
|
|
20
20
|
import '../hooks/useStyles/useStyles.js';
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
|
-
import '../
|
|
24
|
-
import '../
|
|
23
|
+
import '../Button_es_DCM3C_2S.js';
|
|
24
|
+
import '../Icon_es_CTKPPrrC.js';
|
|
25
25
|
import 'react-inlinesvg';
|
|
26
26
|
import '../hoc/urlWithAssetPrefix.js';
|
|
27
27
|
import '../context/UrlAssetPrefix.js';
|
|
28
28
|
import '../Link_es_BnUIX0QT.js';
|
|
29
29
|
import '../Text_es_DIU5ySvf.js';
|
|
30
|
-
import '../
|
|
30
|
+
import '../Loader_es_DGMpRDMk.js';
|
|
31
31
|
import '../Input_es_l3ry6luZ.js';
|
|
32
|
-
import '../
|
|
32
|
+
import '../Label_es_d9RioNNf.js';
|
|
33
33
|
import '@itcase/icons/default';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Divider, a as dividerAppearance, d as dividerConfig } from '../
|
|
1
|
+
export { D as Divider, a as dividerAppearance, d as dividerConfig } from '../Divider_es_CCLBFIx6.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
@@ -2,8 +2,8 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useRef, useEffect } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import ReactDrawer from 'react-modern-drawer';
|
|
5
|
-
import { D as Divider } from '../
|
|
6
|
-
import { I as Icon, b as Title } from '../
|
|
5
|
+
import { D as Divider } from '../Divider_es_CCLBFIx6.js';
|
|
6
|
+
import { I as Icon, b as Title } from '../Icon_es_CTKPPrrC.js';
|
|
7
7
|
import { T as Text } from '../Text_es_DIU5ySvf.js';
|
|
8
8
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
9
9
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../
|
|
1
|
+
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem_es_DURwA4mR.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -17,11 +17,11 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
import '../hooks/useStyles/useStyles.js';
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../
|
|
20
|
+
import '../Icon_es_CTKPPrrC.js';
|
|
21
21
|
import 'react-inlinesvg';
|
|
22
22
|
import '../hoc/urlWithAssetPrefix.js';
|
|
23
23
|
import '../context/UrlAssetPrefix.js';
|
|
24
24
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
25
25
|
import '../Link_es_BnUIX0QT.js';
|
|
26
26
|
import '../Text_es_DIU5ySvf.js';
|
|
27
|
-
import '../
|
|
27
|
+
import '../Divider_es_CCLBFIx6.js';
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
7
|
+
import { I as Icon } from '../Icon_es_CTKPPrrC.js';
|
|
8
8
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
package/dist/components/Icon.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useState, useMemo, useCallback } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
7
|
+
import { I as Icon } from '../Icon_es_CTKPPrrC.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
10
10
|
import 'lodash/upperFirst';
|
package/dist/components/Label.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Label, a as labelAppearance, l as labelConfig } from '../
|
|
1
|
+
export { L as Label, a as labelAppearance, l as labelConfig } from '../Label_es_d9RioNNf.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -18,7 +18,7 @@ import '../utils/setViewportProperty.js';
|
|
|
18
18
|
import '../hooks/useStyles/useStyles.js';
|
|
19
19
|
import 'lodash/maxBy';
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
|
-
import '../
|
|
21
|
+
import '../Icon_es_CTKPPrrC.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../hoc/urlWithAssetPrefix.js';
|
|
24
24
|
import '../context/UrlAssetPrefix.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../
|
|
1
|
+
export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader_es_DGMpRDMk.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon, T as Tooltip } from '../
|
|
7
|
+
import { I as Icon, T as Tooltip } from '../Icon_es_CTKPPrrC.js';
|
|
8
8
|
import { L as Link } from '../Link_es_BnUIX0QT.js';
|
|
9
9
|
import { T as Text } from '../Text_es_DIU5ySvf.js';
|
|
10
10
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
package/dist/components/Modal.js
CHANGED
|
@@ -5,11 +5,11 @@ import ReactDOM from 'react-dom';
|
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { b as Title, I as Icon } from '../
|
|
8
|
+
import { b as Title, I as Icon } from '../Icon_es_CTKPPrrC.js';
|
|
9
9
|
import { O as Overlay } from '../Overlay_es_BvehRqIP.js';
|
|
10
10
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
11
11
|
import { icons24, icons40 } from '@itcase/icons/default';
|
|
12
|
-
import { L as Loader } from '../
|
|
12
|
+
import { L as Loader } from '../Loader_es_DGMpRDMk.js';
|
|
13
13
|
import 'lodash/camelCase';
|
|
14
14
|
import 'lodash/castArray';
|
|
15
15
|
import 'lodash/upperFirst';
|
|
@@ -22,24 +22,25 @@ var modalSheetBottomAppearance = {
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
var ModalSheetBottom = React.forwardRef(function Modal(props, ref) {
|
|
25
|
-
var
|
|
25
|
+
var dataTestId = props.dataTestId, dataTour = props.dataTour, initialIsOpen = props.initialIsOpen, closeButton = props.closeButton, onCloseModalSheetBottom = props.onCloseModalSheetBottom, onOpenModalSheetBottom = props.onOpenModalSheetBottom, children = props.children;
|
|
26
26
|
var _a = useState(initialIsOpen), isOpen = _a[0], setIsOpen = _a[1];
|
|
27
27
|
var openModalSheetBottom = useCallback(function () {
|
|
28
28
|
setIsOpen(true);
|
|
29
|
-
|
|
30
|
-
onOpenModalSheetBottom();
|
|
31
|
-
}
|
|
29
|
+
onOpenModalSheetBottom && onOpenModalSheetBottom();
|
|
32
30
|
}, [onOpenModalSheetBottom]);
|
|
33
31
|
var closeModalSheetBottom = useCallback(function () {
|
|
34
32
|
setIsOpen(false);
|
|
35
|
-
// Callback
|
|
36
33
|
onCloseModalSheetBottom && onCloseModalSheetBottom();
|
|
37
34
|
}, [onCloseModalSheetBottom]);
|
|
38
35
|
// Save ref things
|
|
39
|
-
useImperativeHandle(ref, function () { return ({
|
|
36
|
+
useImperativeHandle(ref, function () { return ({
|
|
37
|
+
openModal: openModalSheetBottom,
|
|
38
|
+
closeModal: closeModalSheetBottom,
|
|
39
|
+
isOpen: isOpen,
|
|
40
|
+
}); }, [isOpen, openModalSheetBottom, closeModalSheetBottom]);
|
|
40
41
|
// @ts-expect-error
|
|
41
42
|
var styles = useStyles(props).styles;
|
|
42
|
-
return (jsxs(Sheet, __assign({ className: "modal-sheet-bottom",
|
|
43
|
+
return (jsxs(Sheet, __assign({ dataTestId: dataTestId, dataTour: dataTour, className: "modal-sheet-bottom", isOpen: isOpen, onClose: closeModalSheetBottom }, props, { children: [jsxs(Sheet.Container, { className: "modal-sheet-bottom__container", style: styles, children: [closeButton ? (jsx("div", { className: "modal-sheet-bottom__header", children: jsx("div", { className: "modal-sheet-bottom__close", onClick: closeModalSheetBottom, children: closeButton }) })) : (jsx(Sheet.Header, { className: "modal-sheet-bottom__header" })), jsx(Sheet.Content, { className: "modal-sheet-bottom__content", children: jsx("div", { className: "modal-sheet-bottom__content-wrapper", children: children }) })] }), jsx(Sheet.Backdrop, { className: "modal-sheet-bottom__backdrop", onClick: closeModalSheetBottom })] })));
|
|
43
44
|
});
|
|
44
45
|
|
|
45
46
|
export { ModalSheetBottom, modalSheetBottomAppearance };
|