@itcase/ui 1.8.62 → 1.8.64
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_g8d8LDkU.js → Avatar_cjs_DOBcPDTn.js} +1 -1
- package/dist/{Avatar_es_DbH5Le9j.js → Avatar_es_DA6o8oNQ.js} +1 -1
- package/dist/{Button_cjs_BMCGsGKK.js → Button_cjs_CA7J_adG.js} +5 -5
- package/dist/{Button_es_CvkdyDHz.js → Button_es_BSxEly4r.js} +5 -5
- package/dist/{ChipsGroup_cjs_BALOkFuT.js → ChipsGroup_cjs_DHNbkBEk.js} +1 -1
- package/dist/{ChipsGroup_es_BIDq4idr.js → ChipsGroup_es_zirUM0Bc.js} +1 -1
- package/dist/{DatePicker_cjs_EaIpF6cm.js → DatePicker_cjs_BsLBVElQ.js} +3 -3
- package/dist/{DatePicker_es_Cq2jJkv0.js → DatePicker_es_BotT8lRT.js} +3 -3
- package/dist/{DropdownItem_cjs_DyjqXle_.js → DropdownItem_cjs_BF18Ii9Z.js} +1 -1
- package/dist/{DropdownItem_es_DHKJHW8q.js → DropdownItem_es_2b-hX4HZ.js} +1 -1
- package/dist/{Icon_cjs_BsACgdjJ.js → Icon_cjs_D1Ze-oNL.js} +5 -5
- package/dist/{Icon_es_CoIszJbl.js → Icon_es_DrQu8Zp8.js} +5 -5
- package/dist/{Label_cjs_QJ0WLQXG.js → Label_cjs_BPu58uG9.js} +6 -6
- package/dist/{Label_es_WH-qJKvj.js → Label_es_CH68RBo-.js} +6 -6
- package/dist/cjs/components/Accordion.js +1 -1
- 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 +2 -2
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DatePeriod.js +5 -5
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Drawer.js +4 -4
- package/dist/cjs/components/Dropdown.js +2 -2
- 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/MenuItem.js +1 -1
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +2 -2
- package/dist/cjs/components/Response.js +2 -2
- package/dist/cjs/components/Search.js +34 -9
- package/dist/cjs/components/Segmented.js +1 -1
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +2 -4
- package/dist/cjs/components/Tile.js +39 -12
- 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/components/Accordion.js +1 -1
- 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 +2 -2
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice.js +1 -1
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DatePeriod.js +5 -5
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Drawer.js +4 -4
- package/dist/components/Dropdown.js +2 -2
- 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/MenuItem.js +1 -1
- package/dist/components/Modal.js +1 -1
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Response.js +2 -2
- package/dist/components/Search.js +34 -9
- package/dist/components/Segmented.js +1 -1
- package/dist/components/Select.js +1 -1
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +2 -4
- package/dist/components/Tile.js +39 -12
- 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/Badge/Badge.css +0 -10
- package/dist/css/components/Drawer/Drawer.css +17 -11
- package/dist/css/components/Label/Label.css +0 -25
- package/dist/css/components/Search/Search.css +14 -42
- package/dist/css/components/Search/css/search-input/search-input.css +8 -19
- package/dist/css/components/Tile/Tile.css +0 -12
- package/dist/css/components/Title/Title.css +1 -1
- package/dist/types/components/Badge/appearance/badgeShape.d.ts +2 -2
- package/dist/types/components/Button/appearance/buttonShape.d.ts +2 -2
- package/dist/types/components/Label/appearance/labelShape.d.ts +2 -2
- package/dist/types/components/Search/appearance/searchShape.d.ts +25 -0
- package/dist/types/components/Tile/appearance/tileShape.d.ts +25 -0
- package/dist/types/components/Tile/appearance/tileStyle.d.ts +4 -6
- package/dist/types/components/Tile/appearance/tileSurface.d.ts +4 -0
- package/package.json +1 -1
- package/dist/css/components/Search/css/search-input/search-input_shape.css +0 -8
- package/dist/css/components/Search/css/search-result/search-result_shape.css +0 -8
|
@@ -2,7 +2,7 @@ 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 { I as Icon, b as Title } from '../
|
|
5
|
+
import { I as Icon, b as Title } from '../Icon_es_DrQu8Zp8.js';
|
|
6
6
|
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
7
7
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
8
8
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
@@ -66,18 +66,18 @@ var drawerConfig = {
|
|
|
66
66
|
},
|
|
67
67
|
};
|
|
68
68
|
function Drawer(props) {
|
|
69
|
-
var className = props.className, type = props.type, appearance = props.appearance, title = props.title, desc = props.desc, dataTestId = props.dataTestId, dataTour = props.dataTour, enableOverlay = props.enableOverlay, before = props.before, after = props.after, close = props.close, isOpenModal = props.isOpenModal, onClickClose = props.onClickClose, onClose = props.onClose, children = props.children;
|
|
69
|
+
var className = props.className, type = props.type, appearance = props.appearance, title = props.title, desc = props.desc, dataTestId = props.dataTestId, dataTour = props.dataTour, enableOverlay = props.enableOverlay, stickyButton = props.stickyButton, before = props.before, after = props.after, close = props.close, isOpenModal = props.isOpenModal, onClickClose = props.onClickClose, onClose = props.onClose, children = props.children;
|
|
70
70
|
var prevIsOpenModalRef = useRef(null);
|
|
71
71
|
var appearanceConfig = useAppearanceConfig(appearance, drawerConfig);
|
|
72
72
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
73
|
-
var direction = propsGenerator.direction, size = propsGenerator.size, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, closeIcon = propsGenerator.closeIcon, closeIconFill = propsGenerator.closeIconFill, closeIconFillIcon = propsGenerator.closeIconFillIcon, closeIconFillSize = propsGenerator.closeIconFillSize, closeIconShape = propsGenerator.closeIconShape, closeIconSize = propsGenerator.closeIconSize, closeIconSrc = propsGenerator.closeIconSrc;
|
|
73
|
+
var direction = propsGenerator.direction, size = propsGenerator.size, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, zeroPadding = propsGenerator.zeroPadding, closeIcon = propsGenerator.closeIcon, closeIconFill = propsGenerator.closeIconFill, closeIconFillIcon = propsGenerator.closeIconFillIcon, closeIconFillSize = propsGenerator.closeIconFillSize, closeIconShape = propsGenerator.closeIconShape, closeIconSize = propsGenerator.closeIconSize, closeIconSrc = propsGenerator.closeIconSrc;
|
|
74
74
|
useEffect(function () {
|
|
75
75
|
if (onClose && prevIsOpenModalRef.current === true && !isOpenModal) {
|
|
76
76
|
onClose();
|
|
77
77
|
}
|
|
78
78
|
prevIsOpenModalRef.current = Boolean(isOpenModal);
|
|
79
79
|
}, [isOpenModal, onClose]);
|
|
80
|
-
return (jsxs(ReactDrawer, { className: clsx('drawer', type && "drawer_type_".concat(type), className, dataTour && "dataTour-".concat(dataTour)), direction: direction || 'right', size: size || 600,
|
|
80
|
+
return (jsxs(ReactDrawer, { className: clsx('drawer', type && "drawer_type_".concat(type), className, dataTour && "dataTour-".concat(dataTour), stickyButton && 'drawer_sticky-button', zeroPadding && 'drawer_reset-padding'), direction: direction || 'right', size: size || 600,
|
|
81
81
|
// Drawer set prefix "EZDrawer" for any id
|
|
82
82
|
customIdSuffix: dataTestId ? "_".concat(dataTestId) : undefined, dataTour: dataTour, enableOverlay: enableOverlay, lockBackgroundScroll: false, overlayClassName: "drawer__overlay", open: isOpenModal, onClose: onClickClose, children: [before && jsx("div", { className: "drawer__before", children: before }), !close && (closeIcon || closeIconSrc) && (jsx("div", { className: "drawer__close", children: jsx(Icon, { className: "cursor_type_pointer", fill: closeIconFill, fillSize: closeIconFillSize, iconFill: closeIconFillIcon, iconSize: closeIconSize, imageSrc: closeIconSrc, shape: closeIconShape, SvgImage: closeIcon }) })), (title || desc) && (jsxs("div", { className: "drawer__header", children: [jsx(Title, { className: "drawer__header-title", size: titleTextSize, textColor: titleTextColor, children: title }), jsx(Text, { className: "drawer__header-desc", size: descTextSize, textColor: descTextColor, children: desc })] })), children && jsx("div", { className: "drawer__wrapper", children: children }), after && jsx("div", { className: "drawer__after", children: after })] }));
|
|
83
83
|
}
|
|
@@ -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_2b-hX4HZ.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -17,7 +17,7 @@ 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_DrQu8Zp8.js';
|
|
21
21
|
import 'react-inlinesvg';
|
|
22
22
|
import '../hoc/urlWithAssetPrefix.js';
|
|
23
23
|
import '../context/UrlAssetPrefix.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_DrQu8Zp8.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_DrQu8Zp8.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_CH68RBo-.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_DrQu8Zp8.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../hoc/urlWithAssetPrefix.js';
|
|
24
24
|
import '../context/UrlAssetPrefix.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_DrQu8Zp8.js';
|
|
8
8
|
import { L as Link } from '../Link_es_BnUIX0QT.js';
|
|
9
9
|
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
10
10
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
package/dist/components/Modal.js
CHANGED
|
@@ -6,7 +6,7 @@ import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceC
|
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
8
|
import { O as Overlay } from '../Overlay_es_BvehRqIP.js';
|
|
9
|
-
import { b as Title } from '../
|
|
9
|
+
import { b as Title } from '../Icon_es_DrQu8Zp8.js';
|
|
10
10
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
11
11
|
import { L as Loader } from '../Loader_es_DhNCKZ8Y.js';
|
|
12
12
|
import 'lodash/camelCase';
|
|
@@ -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 { I as Icon } from '../
|
|
6
|
+
import { I as Icon } from '../Icon_es_DrQu8Zp8.js';
|
|
7
7
|
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
8
8
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import { icons20 } from '@itcase/icons/default';
|
|
@@ -6,8 +6,8 @@ import ReactPaginate from 'react-paginate';
|
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
|
-
import { D as Dropdown, a as DropdownItem } from '../
|
|
10
|
-
import { I as Icon } from '../
|
|
9
|
+
import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_2b-hX4HZ.js';
|
|
10
|
+
import { I as Icon } from '../Icon_es_DrQu8Zp8.js';
|
|
11
11
|
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
12
12
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
13
13
|
import { icons14, icons24, icons16 } from '@itcase/icons/default';
|
|
@@ -7,7 +7,7 @@ import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
|
|
|
7
7
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
8
8
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
9
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
10
|
-
import { B as Button } from '../
|
|
10
|
+
import { B as Button } from '../Button_es_BSxEly4r.js';
|
|
11
11
|
import { G as Group } from '../Group_es_CruwH8Al.js';
|
|
12
12
|
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
13
13
|
import '@itcase/common';
|
|
@@ -23,7 +23,7 @@ import 'react-responsive';
|
|
|
23
23
|
import '../utils/setViewportProperty.js';
|
|
24
24
|
import 'lodash/maxBy';
|
|
25
25
|
import '../hooks/useStyles/styleAttributes.js';
|
|
26
|
-
import '../
|
|
26
|
+
import '../Icon_es_DrQu8Zp8.js';
|
|
27
27
|
import 'react-inlinesvg';
|
|
28
28
|
import '../Link_es_BnUIX0QT.js';
|
|
29
29
|
import '../Loader_es_DhNCKZ8Y.js';
|
|
@@ -6,7 +6,7 @@ import clsx from 'clsx';
|
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
|
-
import { I as Icon } from '../
|
|
9
|
+
import { I as Icon } from '../Icon_es_DrQu8Zp8.js';
|
|
10
10
|
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
11
11
|
import { S as Scrollbar } from '../Scrollbar_es_CThJeCLF.js';
|
|
12
12
|
import 'lodash/camelCase';
|
|
@@ -79,6 +79,31 @@ var searchAppearanceRequire = {
|
|
|
79
79
|
},
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
+
var searchAppearanceShape = {
|
|
83
|
+
circular: {
|
|
84
|
+
shape: 'circular',
|
|
85
|
+
},
|
|
86
|
+
rounded: {
|
|
87
|
+
shape: 'rounded',
|
|
88
|
+
},
|
|
89
|
+
roundedS: {
|
|
90
|
+
shape: 'rounded',
|
|
91
|
+
shapeStrength: '0_5m',
|
|
92
|
+
},
|
|
93
|
+
roundedM: {
|
|
94
|
+
shape: 'rounded',
|
|
95
|
+
shapeStrength: '1m',
|
|
96
|
+
},
|
|
97
|
+
roundedL: {
|
|
98
|
+
shape: 'rounded',
|
|
99
|
+
shapeStrength: '1_5m',
|
|
100
|
+
},
|
|
101
|
+
roundedXL: {
|
|
102
|
+
shape: 'rounded',
|
|
103
|
+
shapeStrength: '2m',
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
|
|
82
107
|
var searchAppearanceSize = {
|
|
83
108
|
sizeXXL: {
|
|
84
109
|
size: 'xxl',
|
|
@@ -154,7 +179,7 @@ var searchAppearanceSuccess = {
|
|
|
154
179
|
},
|
|
155
180
|
};
|
|
156
181
|
|
|
157
|
-
var searchAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, searchAppearanceSize), searchAppearanceStyle), searchAppearanceDefault), searchAppearanceError), searchAppearanceSuccess), searchAppearanceRequire), searchAppearanceDisabled);
|
|
182
|
+
var searchAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, searchAppearanceSize), searchAppearanceStyle), searchAppearanceDefault), searchAppearanceError), searchAppearanceSuccess), searchAppearanceRequire), searchAppearanceDisabled), searchAppearanceShape);
|
|
158
183
|
|
|
159
184
|
var searchInputConfig = {
|
|
160
185
|
appearance: searchAppearance,
|
|
@@ -163,7 +188,7 @@ var searchInputConfig = {
|
|
|
163
188
|
},
|
|
164
189
|
};
|
|
165
190
|
var SearchInput = React.forwardRef(function SearchInput(props, ref) {
|
|
166
|
-
var className = props.className,
|
|
191
|
+
var className = props.className, appearance = props.appearance, dataTour = props.dataTour, placeholder = props.placeholder, value = props.value, before = props.before, after = props.after, isActive = props.isActive, isSkeleton = props.isSkeleton, onChange = props.onChange, onClickClean = props.onClickClean, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
|
|
167
192
|
var onChangeSearchInput = useCallback(function (event) {
|
|
168
193
|
onChange && onChange(event.target.value);
|
|
169
194
|
}, [onChange]);
|
|
@@ -176,13 +201,13 @@ var SearchInput = React.forwardRef(function SearchInput(props, ref) {
|
|
|
176
201
|
}, [onChange, onClickClean]);
|
|
177
202
|
var appearanceConfig = useAppearanceConfig(appearance, searchInputConfig);
|
|
178
203
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
179
|
-
var size = propsGenerator.size, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, iconClear = propsGenerator.iconClear, iconClearFill = propsGenerator.iconClearFill, iconClearSize = propsGenerator.iconClearSize, iconClearSrc = propsGenerator.iconClearSrc, inputFillClass = propsGenerator.inputFillClass,
|
|
204
|
+
var size = propsGenerator.size, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, iconClear = propsGenerator.iconClear, iconClearFill = propsGenerator.iconClearFill, iconClearSize = propsGenerator.iconClearSize, iconClearSrc = propsGenerator.iconClearSrc, inputFillClass = propsGenerator.inputFillClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, inputTextStyleClass = propsGenerator.inputTextStyleClass, inputTextWeightClass = propsGenerator.inputTextWeightClass, placeholderTextColor = propsGenerator.placeholderTextColor, placeholderTextSize = propsGenerator.placeholderTextSize, placeholderTextStyle = propsGenerator.placeholderTextStyle, placeholderTextWeight = propsGenerator.placeholderTextWeight, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, widthClass = propsGenerator.widthClass;
|
|
180
205
|
var searchInputStyles = useStyles(props).styles;
|
|
181
|
-
return (jsxs("label", { className: clsx(className, 'search-input', shapeClass && "
|
|
206
|
+
return (jsxs("label", { className: clsx(className, 'search-input', shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), fillClass && "fill_".concat(fillClass), widthClass && "width_".concat(widthClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), size && "search-input_size_".concat(size), isSkeleton && "search-input_skeleton"), dataTour: dataTour, style: searchInputStyles, children: [before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "search-input__icon-before", size: iconBeforeSize, iconFill: iconBeforeFill, imageSrc: iconBeforeSrc, SvgImage: iconBefore })), jsxs("div", { className: clsx('search-input__wrapper', inputFillClass && "fill_".concat(inputFillClass)), children: [jsx("input", { className: clsx('search-input__value', (inputTextSizeClass ||
|
|
182
207
|
inputTextWeightClass ||
|
|
183
208
|
inputTextColorClass ||
|
|
184
209
|
inputTextStyleClass) &&
|
|
185
|
-
'text', inputTextSizeClass && "text_size_".concat(inputTextSizeClass), inputTextWeightClass && "text-weight_".concat(inputTextWeightClass), inputTextColorClass && "text-color_".concat(inputTextColorClass), inputTextStyleClass && "text-style_".concat(inputTextStyleClass)), type: "text", ref: ref, required: true, value: value, onChange: onChangeSearchInput, onFocus: onFocus, onKeyDown: onKeyDown }), jsx("div", { className: "search-input__placeholder", children: jsx(Text, { className: clsx('search-input__placeholder-value'), size: placeholderTextSize, textColor: placeholderTextColor, textStyle: placeholderTextStyle, textWeight: placeholderTextWeight, children: placeholder }) }), value && (jsx(Icon, { className: clsx('search-input__clear', 'cursor_type_pointer', isActive && "fill_".concat(iconClearFill)), size: iconClearSize, iconFill: iconClearFill, imageSrc: iconClearSrc, SvgImage: iconClear, onClick: onClickClearIcon }))] }), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "search-input__icon
|
|
210
|
+
'text', inputTextSizeClass && "text_size_".concat(inputTextSizeClass), inputTextWeightClass && "text-weight_".concat(inputTextWeightClass), inputTextColorClass && "text-color_".concat(inputTextColorClass), inputTextStyleClass && "text-style_".concat(inputTextStyleClass)), type: "text", ref: ref, required: true, value: value, onChange: onChangeSearchInput, onFocus: onFocus, onKeyDown: onKeyDown }), jsx("div", { className: "search-input__placeholder", children: jsx(Text, { className: clsx('search-input__placeholder-value'), size: placeholderTextSize, textColor: placeholderTextColor, textStyle: placeholderTextStyle, textWeight: placeholderTextWeight, children: placeholder }) }), value && (jsx(Icon, { className: clsx('search-input__clear', 'cursor_type_pointer', isActive && "fill_".concat(iconClearFill)), size: iconClearSize, iconFill: iconClearFill, imageSrc: iconClearSrc, SvgImage: iconClear, onClick: onClickClearIcon }))] }), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "search-input__icon-after", size: iconAfterSize, iconFill: iconAfterFill, imageSrc: iconAfterSrc, SvgImage: iconAfter })), after] }));
|
|
186
211
|
});
|
|
187
212
|
// @ts-expect-error
|
|
188
213
|
SearchInput.DEFAULT_REF_STATE = {
|
|
@@ -190,10 +215,10 @@ SearchInput.DEFAULT_REF_STATE = {
|
|
|
190
215
|
};
|
|
191
216
|
|
|
192
217
|
var SearchResult = React.forwardRef(function SearchResult(props) {
|
|
193
|
-
var className = props.className,
|
|
218
|
+
var className = props.className, scrollHeight = props.scrollHeight, before = props.before, after = props.after, children = props.children;
|
|
194
219
|
var propsGenerator = useDevicePropsGenerator(props);
|
|
195
|
-
var fillClass = propsGenerator.fillClass;
|
|
196
|
-
return (jsx("div", { className: clsx(className, 'search-result',
|
|
220
|
+
var fillClass = propsGenerator.fillClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass;
|
|
221
|
+
return (jsx("div", { className: clsx(className, 'search-result', shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), fillClass && "fill_".concat(fillClass)), children: jsxs("div", { className: "search-result__wrapper", children: [before, React.Children.toArray(children).filter(Boolean).length && (jsx(Scrollbar, { scrollHeight: scrollHeight ? "".concat(scrollHeight, "px") : '300px', children: children })), after] }) }));
|
|
197
222
|
});
|
|
198
223
|
|
|
199
224
|
export { SearchInput, SearchResult, searchAppearance, searchInputConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import React, { useRef, useMemo, createRef, useCallback, useEffect } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { I as Icon } from '../
|
|
4
|
+
import { I as Icon } from '../Icon_es_DrQu8Zp8.js';
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import Select, { components } from 'react-select';
|
|
4
|
-
import { I as Icon, B as Badge } from '../
|
|
4
|
+
import { I as Icon, B as Badge } from '../Icon_es_DrQu8Zp8.js';
|
|
5
5
|
import React, { useRef, useCallback, useEffect, useMemo } from 'react';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import CreatableSelect from 'react-select/creatable';
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { b as Title } from '../
|
|
7
|
+
import { b as Title } from '../Icon_es_DrQu8Zp8.js';
|
|
8
8
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
package/dist/components/Tab.js
CHANGED
|
@@ -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 { B as Badge, I as Icon } from '../
|
|
7
|
+
import { B as Badge, I as Icon } from '../Icon_es_DrQu8Zp8.js';
|
|
8
8
|
import { D as Divider } from '../Divider_es_CiRU0sTz.js';
|
|
9
9
|
import { L as Link } from '../Link_es_BnUIX0QT.js';
|
|
10
10
|
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
@@ -96,9 +96,7 @@ var tabAppearanceStyle = {
|
|
|
96
96
|
outlined: {
|
|
97
97
|
fill: 'none',
|
|
98
98
|
},
|
|
99
|
-
full: {
|
|
100
|
-
/* border / fill */
|
|
101
|
-
},
|
|
99
|
+
full: {},
|
|
102
100
|
ghost: {
|
|
103
101
|
fill: 'none',
|
|
104
102
|
borderColor: 'none',
|
package/dist/components/Tile.js
CHANGED
|
@@ -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 { b as Title, B as Badge, I as Icon } from '../
|
|
6
|
+
import { b as Title, B as Badge, I as Icon } from '../Icon_es_DrQu8Zp8.js';
|
|
7
7
|
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
8
8
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'react';
|
|
@@ -24,6 +24,31 @@ import '../hoc/urlWithAssetPrefix.js';
|
|
|
24
24
|
import '../context/UrlAssetPrefix.js';
|
|
25
25
|
import '../Link_es_BnUIX0QT.js';
|
|
26
26
|
|
|
27
|
+
var tileAppearanceShape = {
|
|
28
|
+
circular: {
|
|
29
|
+
shape: 'circular',
|
|
30
|
+
},
|
|
31
|
+
rounded: {
|
|
32
|
+
shape: 'rounded',
|
|
33
|
+
},
|
|
34
|
+
roundedS: {
|
|
35
|
+
shape: 'rounded',
|
|
36
|
+
shapeStrength: '0_5m',
|
|
37
|
+
},
|
|
38
|
+
roundedM: {
|
|
39
|
+
shape: 'rounded',
|
|
40
|
+
shapeStrength: '1m',
|
|
41
|
+
},
|
|
42
|
+
roundedL: {
|
|
43
|
+
shape: 'rounded',
|
|
44
|
+
shapeStrength: '1_5m',
|
|
45
|
+
},
|
|
46
|
+
roundedXL: {
|
|
47
|
+
shape: 'rounded',
|
|
48
|
+
shapeStrength: '2m',
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
|
|
27
52
|
var tileAppearanceSize = {
|
|
28
53
|
sizeXL: {
|
|
29
54
|
size: 'xl',
|
|
@@ -76,18 +101,16 @@ var tileAppearanceSize = {
|
|
|
76
101
|
};
|
|
77
102
|
|
|
78
103
|
var tileAppearanceStyle = {
|
|
79
|
-
|
|
80
|
-
borderColor: '
|
|
81
|
-
},
|
|
82
|
-
ghost: {
|
|
83
|
-
fill: 'none',
|
|
84
|
-
borderColor: '0',
|
|
104
|
+
solid: {
|
|
105
|
+
borderColor: 'none',
|
|
85
106
|
},
|
|
86
107
|
outlined: {
|
|
87
108
|
fill: 'none',
|
|
88
109
|
},
|
|
89
|
-
|
|
90
|
-
|
|
110
|
+
full: {},
|
|
111
|
+
ghost: {
|
|
112
|
+
fill: 'none',
|
|
113
|
+
borderColor: 'none',
|
|
91
114
|
},
|
|
92
115
|
};
|
|
93
116
|
|
|
@@ -97,6 +120,7 @@ var tileAppearanceSurface = {
|
|
|
97
120
|
fillHover: 'surfacePrimaryHover',
|
|
98
121
|
titleTextColor: 'surfaceTextPrimary',
|
|
99
122
|
descTextColor: 'surfaceTextPrimary',
|
|
123
|
+
borderColor: 'surfaceBorderPrimary',
|
|
100
124
|
badgeAppearance: 'accentPrimary',
|
|
101
125
|
iconFillIcon: 'surfaceItemPrimary',
|
|
102
126
|
},
|
|
@@ -105,6 +129,7 @@ var tileAppearanceSurface = {
|
|
|
105
129
|
fillHover: 'surfaceSecondaryHover',
|
|
106
130
|
titleTextColor: 'surfaceTextPrimary',
|
|
107
131
|
descTextColor: 'surfaceTextPrimary',
|
|
132
|
+
borderColor: 'surfaceBorderPrimary',
|
|
108
133
|
badgeAppearance: 'accentPrimary',
|
|
109
134
|
iconFillIcon: 'surfaceItemPrimary',
|
|
110
135
|
},
|
|
@@ -113,6 +138,7 @@ var tileAppearanceSurface = {
|
|
|
113
138
|
fillHover: 'surfaceTertiaryHover',
|
|
114
139
|
titleTextColor: 'surfaceTextPrimary',
|
|
115
140
|
descTextColor: 'surfaceTextPrimary',
|
|
141
|
+
borderColor: 'surfaceBorderPrimary',
|
|
116
142
|
badgeAppearance: 'accentPrimary',
|
|
117
143
|
iconFillIcon: 'surfaceItemPrimary',
|
|
118
144
|
},
|
|
@@ -121,12 +147,13 @@ var tileAppearanceSurface = {
|
|
|
121
147
|
fillHover: 'surfaceQuaternaryHover',
|
|
122
148
|
titleTextColor: 'surfaceTextPrimary',
|
|
123
149
|
descTextColor: 'surfaceTextPrimary',
|
|
150
|
+
borderColor: 'surfaceBorderPrimary',
|
|
124
151
|
badgeAppearance: 'accentPrimary',
|
|
125
152
|
iconFillIcon: 'surfaceItemPrimary',
|
|
126
153
|
},
|
|
127
154
|
};
|
|
128
155
|
|
|
129
|
-
var tileAppearance = __assign(__assign(__assign({}, tileAppearanceSize), tileAppearanceSurface), tileAppearanceStyle);
|
|
156
|
+
var tileAppearance = __assign(__assign(__assign(__assign({}, tileAppearanceSize), tileAppearanceSurface), tileAppearanceShape), tileAppearanceStyle);
|
|
130
157
|
|
|
131
158
|
var tileConfig = {
|
|
132
159
|
appearance: tileAppearance,
|
|
@@ -138,10 +165,10 @@ function Tile(props) {
|
|
|
138
165
|
var className = props.className, type = props.type, appearance = props.appearance, direction = props.direction, title = props.title, desc = props.desc, badgeValue = props.badgeValue, reverse = props.reverse, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
|
|
139
166
|
var appearanceConfig = useAppearanceConfig(appearance, tileConfig);
|
|
140
167
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
141
|
-
var alignClass = propsGenerator.alignClass, _a = propsGenerator.alignDirectionClass, alignDirectionClass = _a === void 0 ? 'vertical' : _a, 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, dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, 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, sizeClass = propsGenerator.sizeClass;
|
|
168
|
+
var alignClass = propsGenerator.alignClass, _a = propsGenerator.alignDirectionClass, alignDirectionClass = _a === void 0 ? 'vertical' : _a, 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, dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, 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;
|
|
142
169
|
// @ts-expect-error
|
|
143
170
|
var tileStyles = useStyles(props).styles;
|
|
144
|
-
return (jsx("div", { className: clsx('tile', className, fillClass && "fill_".concat(fillClass), shapeClass && "
|
|
171
|
+
return (jsx("div", { className: clsx('tile', className, fillClass && "fill_".concat(fillClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), direction && "direction_".concat(direction), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), reverse && 'tile_reverse', sizeClass && "tile_size_".concat(sizeClass), type && "tile_type_".concat(type), badgeValue && "tile_state_badge", isSkeleton && "tile_skeleton"), dataTestId: dataTestId, dataTour: dataTour, style: tileStyles, onClick: onClick, children: jsxs("div", { className: clsx('tile__wrapper', alignClass, alignDirectionClass), children: [before, jsxs("div", { className: "tile__header", children: [jsxs("div", { className: "tile__header-inner", children: [title && (jsx(Title, { className: "tile__title", size: titleTextSize, textAlign: titleTextAlign, textColor: titleTextColor, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), desc && (jsx(Text, { className: "tile__text", size: descTextSize, textColor: descTextColor, textWrap: descTextWrap, children: desc }))] }), jsxs("div", { className: "tile__header-actions", children: [badgeValue && (jsx(Badge, { className: "tile__badge", appearance: "".concat(badgeAppearance, " ").concat(badgeAppearanceSize), size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (jsx(Icon, { className: clsx('tile__icon'), appearance: iconAppearance, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] })] }), children, after] }) }));
|
|
145
172
|
}
|
|
146
173
|
|
|
147
174
|
export { Tile, tileAppearance, tileConfig };
|
package/dist/components/Title.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as Title, d as titleAppearance, c as titleConfig } from '../
|
|
1
|
+
export { b as Title, d as titleAppearance, c as titleConfig } from '../Icon_es_DrQu8Zp8.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../
|
|
1
|
+
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Icon_es_DrQu8Zp8.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useState, Fragment } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { I as Icon } from '../
|
|
4
|
+
import { I as Icon } from '../Icon_es_DrQu8Zp8.js';
|
|
5
5
|
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
@@ -30,16 +30,6 @@
|
|
|
30
30
|
background-position: -200%;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
.badge {
|
|
34
|
-
&_shape {
|
|
35
|
-
&_rounded {
|
|
36
|
-
border-radius: var(--badge-shape-rounded, 6px);
|
|
37
|
-
}
|
|
38
|
-
&_circular {
|
|
39
|
-
border-radius: 50%;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
33
|
.badge {
|
|
44
34
|
&_size {
|
|
45
35
|
@each $size in xxs, xs, s, m, l, xl, xxl {
|
|
@@ -34,30 +34,36 @@
|
|
|
34
34
|
backdrop-filter: var(--drawer-overlay-filter) !important;
|
|
35
35
|
}
|
|
36
36
|
&__close {
|
|
37
|
-
justify-content: flex-end;
|
|
38
|
-
position: relative;
|
|
39
37
|
padding: 3m 3m 0 3m;
|
|
38
|
+
position: relative;
|
|
40
39
|
display: flex;
|
|
40
|
+
justify-content: flex-end;
|
|
41
41
|
}
|
|
42
42
|
&__header {
|
|
43
|
+
padding: 0 3m 3m 3m;
|
|
43
44
|
display: flex;
|
|
44
45
|
flex-direction: column;
|
|
45
|
-
padding: 0 3m 3m 3m;
|
|
46
46
|
}
|
|
47
47
|
&__wrapper {
|
|
48
|
+
padding: 3m;
|
|
48
49
|
flex: 1;
|
|
49
50
|
}
|
|
50
51
|
&__after {
|
|
51
52
|
z-index: 10;
|
|
52
53
|
}
|
|
53
|
-
&
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
&_sticky-button {
|
|
55
|
+
^^&__after {
|
|
56
|
+
width: 100%;
|
|
57
|
+
position: sticky;
|
|
58
|
+
left: 0;
|
|
59
|
+
bottom: 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
.drawer {
|
|
64
|
+
&_reset-padding {
|
|
65
|
+
^&__wrapper {
|
|
66
|
+
padding: 0;
|
|
61
67
|
}
|
|
62
68
|
}
|
|
63
69
|
}
|
|
@@ -35,21 +35,6 @@
|
|
|
35
35
|
background-position: -200%;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
.label {
|
|
39
|
-
&_shape {
|
|
40
|
-
&_rounded {
|
|
41
|
-
border-radius: var(--label-shape-rounded-default);
|
|
42
|
-
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
43
|
-
&.label_size_$(size) {
|
|
44
|
-
border-radius: var(--label-size-$(size)-shape-rounded);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
&_circular {
|
|
49
|
-
border-radius: 9999px;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
38
|
.label {
|
|
54
39
|
&_size {
|
|
55
40
|
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
@@ -80,16 +65,6 @@ div.label {
|
|
|
80
65
|
}
|
|
81
66
|
}
|
|
82
67
|
:root {
|
|
83
|
-
--label-shape-rounded-default: 6px;
|
|
84
|
-
|
|
85
|
-
--label-size-xxl-shape-rounded: 12px;
|
|
86
|
-
--label-size-xl-shape-rounded: 6px;
|
|
87
|
-
--label-size-l-shape-rounded: 6px;
|
|
88
|
-
--label-size-m-shape-rounded: 12px;
|
|
89
|
-
--label-size-s-shape-rounded: 12px;
|
|
90
|
-
--label-size-xs-shape-rounded: 12px;
|
|
91
|
-
--label-size-xxs-shape-rounded: 12px;
|
|
92
|
-
|
|
93
68
|
--label-size-xxl-padding: 10px 10px;
|
|
94
69
|
--label-size-xxl-gap: 8px;
|
|
95
70
|
--label-size-xl-padding: 7px 8px;
|