@itcase/ui 1.3.24 → 1.3.25
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/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Checkmark.js +64 -0
- package/dist/cjs/components/Notification.js +2 -4
- package/dist/cjs/components/Response.js +70 -46
- package/dist/cjs/components/Select.js +17 -2
- package/dist/components/Cell.js +2 -2
- package/dist/components/Checkmark.js +60 -0
- package/dist/components/Notification.js +2 -4
- package/dist/components/Response.js +70 -46
- package/dist/components/Select.js +17 -2
- package/dist/css/components/Checkmark/Checkmark.css +30 -0
- package/dist/css/components/Code/Code.css +2 -1
- package/dist/css/components/Dropdown/Dropdown.css +1 -1
- package/dist/css/components/Notification/Notification.css +6 -2
- package/dist/css/components/Notification/css/__item/notification__item_set_form.css +6 -2
- package/dist/css/components/Pagination/Pagination.css +4 -4
- package/dist/css/components/Pagination/css/__item/pagination__item_state_active.css +4 -4
- package/dist/css/components/Response/Response.css +10 -2
- package/dist/css/components/Switch/Switch.css +1 -1
- package/dist/css/components/Tile/Tile.css +1 -1
- package/dist/stories/Avatar.mdx +1 -1
- package/dist/types/components/Checkmark/Checkmark.appearance.d.ts +2 -0
- package/dist/types/components/Checkmark/Checkmark.d.ts +4 -0
- package/dist/types/components/Checkmark/Checkmark.interface.d.ts +29 -0
- package/dist/types/components/Checkmark/index.d.ts +2 -0
- package/dist/types/components/Notification/Notification.interface.d.ts +3 -3
- package/package.json +1 -1
|
@@ -39,8 +39,8 @@ function Cell(props) {
|
|
|
39
39
|
var classGenerator = useDeviceTargetClassGenerator.useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
40
40
|
var bgFillActiveClass = classGenerator.bgFillActiveClass, bgFillClass = classGenerator.bgFillClass, bgFillDisabledClass = classGenerator.bgFillDisabledClass, bgFillHoverClass = classGenerator.bgFillHoverClass, bgShapeClass = classGenerator.bgShapeClass, directionClass = classGenerator.directionClass, fillActiveClass = classGenerator.fillActiveClass, fillClass = classGenerator.fillClass, fillDisabledClass = classGenerator.fillDisabledClass, fillHoverClass = classGenerator.fillHoverClass, gapClass = classGenerator.gapClass, shapeClass = classGenerator.shapeClass, widthClass = classGenerator.widthClass;
|
|
41
41
|
// @ts-expect-error
|
|
42
|
-
var
|
|
43
|
-
return (jsxRuntime.jsxs("div", { className: clsx(className, 'cell', mode && "cell_mode_".concat(mode), size && "cell_size_".concat(size), set && "cell_set_".concat(set), bgFillClass && "fill_".concat(bgFillClass), bgFillHoverClass && "fill_hover_".concat(bgFillHoverClass), isActive && bgFillActiveClass && "fill_active_".concat(bgFillActiveClass), isDisabled && bgFillDisabledClass && "fill_disabled_".concat(bgFillDisabledClass), bgShapeClass && "cell_shape_".concat(bgShapeClass), widthClass && "width_".concat(widthClass), gapClass && "gap_".concat(gapClass), zeroPadding && 'cell_reset-padding', zeroGap && 'cell_reset-gap', reverse && 'cell_reverse'), style: cellStyles, onClick: onClick, onMouseEnter: onMouseEnter, children: [before && jsxRuntime.jsx("div", { className: "cell__before", children: before }), jsxRuntime.jsxs("div", { className: clsx('cell__wrapper', directionClass && "cell__wrapper_direction_".concat(directionClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), isActive && fillActiveClass && "fill_active_".concat(fillActiveClass), isDisabled && fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), shapeClass && "cell__wrapper_shape_".concat(shapeClass), isEqual && 'cell__wrapper-equal'), children: [title && (jsxRuntime.jsxs("div", { className: "cell__data", children: [jsxRuntime.jsx(Text.Text, { className: "cell__title", size: titleTextSize, tag: titleTag, textColor: titleTextColor, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title }), (titleIcon || titleIconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "cell__icon", fill: titleIconFill, fillSize: titleIconFillSize, iconFill: titleIconItemFill, iconFillHover: titleIconFillHover, imageSrc: titleIconSrc, shape: titleIconShape, SvgImage: titleIcon })), showTitleLabel && (jsxRuntime.jsx(Label.Label, { labelTextSize: titleLabelTextSize, appearance: titleLabelAppearance, label: titleLabel, shape: titleLabelShape, size: titleLabelSize }))] })), value && (jsxRuntime.jsxs("div", { className: "cell__data", children: [jsxRuntime.jsx(Text.Text, { className: "cell__value", size: valueTextSize, tag: valueTag, textAlign: valueTextAlign, textColor: valueTextColor, textTruncate: valueTextTruncate, textWeight: valueTextWeight, textWrap: valueTextWrap, children: value }), (valueIcon || valueIconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "cell__icon", fill: valueIconFill, fillSize: valueIconFillSize, iconFill: valueIconItemFill, iconFillHover: valueIconFillHover, imageSrc: valueIconSrc, shape: valueIconShape, SvgImage: valueIcon })), showValueLabel && (jsxRuntime.jsx(Label.Label, { labelTextSize: valueLabelTextSize, appearance: valueLabelAppearance, label: valueLabel, shape: valueLabelShape, size: valueLabelSize }))] }))] }), after && jsxRuntime.jsx("div", { className: "cell__after", children: after })] }));
|
|
42
|
+
var _b = useStyles.useStyles(props), dataStyles = _b.data, cellStyles = _b.styles;
|
|
43
|
+
return (jsxRuntime.jsxs("div", { className: clsx(className, 'cell', mode && "cell_mode_".concat(mode), size && "cell_size_".concat(size), set && "cell_set_".concat(set), bgFillClass && "fill_".concat(bgFillClass), bgFillHoverClass && "fill_hover_".concat(bgFillHoverClass), isActive && bgFillActiveClass && "fill_active_".concat(bgFillActiveClass), isDisabled && bgFillDisabledClass && "fill_disabled_".concat(bgFillDisabledClass), bgShapeClass && "cell_shape_".concat(bgShapeClass), widthClass && "width_".concat(widthClass), gapClass && "gap_".concat(gapClass), zeroPadding && 'cell_reset-padding', zeroGap && 'cell_reset-gap', reverse && 'cell_reverse'), style: cellStyles, onClick: onClick, onMouseEnter: onMouseEnter, children: [before && jsxRuntime.jsx("div", { className: "cell__before", children: before }), jsxRuntime.jsxs("div", { className: clsx('cell__wrapper', directionClass && "cell__wrapper_direction_".concat(directionClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), isActive && fillActiveClass && "fill_active_".concat(fillActiveClass), isDisabled && fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), shapeClass && "cell__wrapper_shape_".concat(shapeClass), isEqual && 'cell__wrapper-equal'), children: [title && (jsxRuntime.jsxs("div", { className: "cell__data", style: dataStyles, children: [jsxRuntime.jsx(Text.Text, { className: "cell__title", size: titleTextSize, tag: titleTag, textColor: titleTextColor, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title }), (titleIcon || titleIconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "cell__icon", fill: titleIconFill, fillSize: titleIconFillSize, iconFill: titleIconItemFill, iconFillHover: titleIconFillHover, imageSrc: titleIconSrc, shape: titleIconShape, SvgImage: titleIcon })), showTitleLabel && (jsxRuntime.jsx(Label.Label, { labelTextSize: titleLabelTextSize, appearance: titleLabelAppearance, label: titleLabel, shape: titleLabelShape, size: titleLabelSize }))] })), value && (jsxRuntime.jsxs("div", { className: "cell__data", style: dataStyles, children: [jsxRuntime.jsx(Text.Text, { className: "cell__value", size: valueTextSize, tag: valueTag, textAlign: valueTextAlign, textColor: valueTextColor, textTruncate: valueTextTruncate, textWeight: valueTextWeight, textWrap: valueTextWrap, children: value }), (valueIcon || valueIconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "cell__icon", fill: valueIconFill, fillSize: valueIconFillSize, iconFill: valueIconItemFill, iconFillHover: valueIconFillHover, imageSrc: valueIconSrc, shape: valueIconShape, SvgImage: valueIcon })), showValueLabel && (jsxRuntime.jsx(Label.Label, { labelTextSize: valueLabelTextSize, appearance: valueLabelAppearance, label: valueLabel, shape: valueLabelShape, size: valueLabelSize }))] }))] }), after && jsxRuntime.jsx("div", { className: "cell__after", children: after })] }));
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
exports.Cell = Cell;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var clsx = require('clsx');
|
|
5
|
+
var useDeviceTargetClassGenerator = require('../hooks/useDeviceTargetClassGenerator.js');
|
|
6
|
+
var useStyles = require('../hooks/useStyles.js');
|
|
7
|
+
var Icon = require('../../Icon-ByLHEhHL.js');
|
|
8
|
+
require('../../tslib.es6-CCZ3TN_7.js');
|
|
9
|
+
require('react');
|
|
10
|
+
require('lodash/camelCase');
|
|
11
|
+
require('lodash/castArray');
|
|
12
|
+
require('../context/UIContext.js');
|
|
13
|
+
require('../hooks/useMediaQueries.js');
|
|
14
|
+
require('react-responsive');
|
|
15
|
+
require('lodash/maxBy');
|
|
16
|
+
require('lodash/upperFirst');
|
|
17
|
+
require('../hooks/styleAttributes.js');
|
|
18
|
+
require('react-inlinesvg');
|
|
19
|
+
require('../../Link-CoAhRbFg.js');
|
|
20
|
+
require('../../Tooltip-CyZCVyba.js');
|
|
21
|
+
require('../../Text-COHpLTYr.js');
|
|
22
|
+
require('../../Title-BduD-TXE.js');
|
|
23
|
+
|
|
24
|
+
var checkmarkAppearance = {
|
|
25
|
+
accent: {
|
|
26
|
+
borderWidth: '4',
|
|
27
|
+
borderColor: 'accentBorderQuaternary',
|
|
28
|
+
fill: 'accentPrimary',
|
|
29
|
+
iconFill: 'surfaceItemInverse',
|
|
30
|
+
},
|
|
31
|
+
disabled: {
|
|
32
|
+
borderWidth: '4',
|
|
33
|
+
borderColor: 'surfaceBorderTertiary',
|
|
34
|
+
fill: 'surfaceItemSecondary',
|
|
35
|
+
iconFill: 'surfaceItemQuaternary',
|
|
36
|
+
},
|
|
37
|
+
surface: {
|
|
38
|
+
borderWidth: '4',
|
|
39
|
+
borderColor: 'surfaceBorderTertiary',
|
|
40
|
+
fill: 'surfacePrimary',
|
|
41
|
+
iconFill: 'surfaceItemPrimary',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
var checkmarkConfig = {
|
|
46
|
+
appearance: checkmarkAppearance,
|
|
47
|
+
setAppearance: function (newComponent) {
|
|
48
|
+
checkmarkConfig.appearance = newComponent;
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
function Checkmark(props) {
|
|
52
|
+
var isChecked = props.isChecked, _a = props.isDisabled, isDisabled = _a === undefined ? false : _a, appearance = props.appearance, className = props.className, iconChecked = props.iconChecked, iconFill = props.iconFill, onClick = props.onClick;
|
|
53
|
+
// @ts-expect-error
|
|
54
|
+
var appearanceConfig = checkmarkConfig.appearance && checkmarkConfig.appearance[appearance];
|
|
55
|
+
var classGenerator = useDeviceTargetClassGenerator.useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
56
|
+
var borderColorClass = classGenerator.borderColorClass, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, sizeClass = classGenerator.sizeClass;
|
|
57
|
+
// @ts-expect-error
|
|
58
|
+
var checkmarkStyles = useStyles.useStyles(props).styles;
|
|
59
|
+
return (jsxRuntime.jsx("div", { className: clsx(className, 'checkmark', sizeClass && "checkmark_size_".concat(sizeClass), fillClass && "fill_".concat(fillClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), isDisabled), style: checkmarkStyles, onClick: onClick, children: isChecked && (jsxRuntime.jsx(Icon.Icon, { className: "checkmark__svg", iconFill: iconFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconFill), size: "24", SvgImage: isChecked ? iconChecked : null })) }));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
exports.Checkmark = Checkmark;
|
|
63
|
+
exports.checkmarkAppearance = checkmarkAppearance;
|
|
64
|
+
exports.checkmarkConfig = checkmarkConfig;
|
|
@@ -5,7 +5,6 @@ var clsx = require('clsx');
|
|
|
5
5
|
var useDeviceTargetClassGenerator = require('../hooks/useDeviceTargetClassGenerator.js');
|
|
6
6
|
var useStyles = require('../hooks/useStyles.js');
|
|
7
7
|
var Text = require('../../Text-COHpLTYr.js');
|
|
8
|
-
var Title = require('../../Title-BduD-TXE.js');
|
|
9
8
|
var Notifications = require('../context/Notifications.js');
|
|
10
9
|
require('../../tslib.es6-CCZ3TN_7.js');
|
|
11
10
|
require('react');
|
|
@@ -59,14 +58,13 @@ var notificationItemConfig = {
|
|
|
59
58
|
},
|
|
60
59
|
};
|
|
61
60
|
function NotificationItem(props) {
|
|
62
|
-
var id = props.id, after = props.after, appearance = props.appearance, before = props.before, className = props.className, closeButton = props.closeButton, dataTour = props.dataTour, set = props.set, size = props.size, status = props.status, text = props.text, textColor = props.textColor, _a = props.textSize, textSize = _a === undefined ? 's' : _a, title = props.title, titleTextColor = props.titleTextColor, _b = props.titleTextSize, titleTextSize = _b === undefined ? '
|
|
63
|
-
// @ts-expect-error
|
|
61
|
+
var id = props.id, after = props.after, appearance = props.appearance, before = props.before, className = props.className, closeButton = props.closeButton, dataTour = props.dataTour, set = props.set, size = props.size, status = props.status, text = props.text, textColor = props.textColor, _a = props.textSize, textSize = _a === undefined ? 's' : _a, title = props.title, titleTextColor = props.titleTextColor, _b = props.titleTextSize, titleTextSize = _b === undefined ? 'm' : _b, onClickClose = props.onClickClose;
|
|
64
62
|
var appearanceConfig = notificationItemConfig.appearance && notificationItemConfig.appearance[appearance];
|
|
65
63
|
var classGenerator = useDeviceTargetClassGenerator.useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
66
64
|
var fillClass = classGenerator.fillClass, widthClass = classGenerator.widthClass;
|
|
67
65
|
// @ts-expect-error
|
|
68
66
|
var notificationStyles = useStyles.useStyles(props).styles;
|
|
69
|
-
return (jsxRuntime.jsxs("div", { className: clsx('notification__item', status && "notification__item_status_".concat(status), set && "notification__item_set_".concat(set), size && "notification__item_set_".concat(size), closeButton && 'notification__item_type_close-button', widthClass && "width_".concat(widthClass), fillClass && "fill_".concat(fillClass)), "data-tour": dataTour, style: notificationStyles, children: [before, jsxRuntime.jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsxRuntime.jsx(
|
|
67
|
+
return (jsxRuntime.jsxs("div", { className: clsx('notification__item', status && "notification__item_status_".concat(status), set && "notification__item_set_".concat(set), size && "notification__item_set_".concat(size), closeButton && 'notification__item_type_close-button', widthClass && "width_".concat(widthClass), fillClass && "fill_".concat(fillClass)), "data-tour": dataTour, style: notificationStyles, children: [before, jsxRuntime.jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsxRuntime.jsx(Text.Text, { className: "notification__item-title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.titleTextSize), textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.titleTextColor), children: title })), text && (jsxRuntime.jsx(Text.Text, { className: "notification__item-text", size: textSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.textSize), textColor: textColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.textColor), children: text })), closeButton && (jsxRuntime.jsx("div", { className: clsx('notification__item-close', onClickClose && 'cursor_type_pointer'), onClick: function () { return onClickClose && onClickClose(id); }, children: closeButton }))] }), after] }));
|
|
70
68
|
}
|
|
71
69
|
|
|
72
70
|
function NotificationList(props) {
|
|
@@ -10,7 +10,6 @@ var useStyles = require('../hooks/useStyles.js');
|
|
|
10
10
|
var Button = require('../../Button-BSygAkO5.js');
|
|
11
11
|
var Group = require('../../Group-pMTTxQH4.js');
|
|
12
12
|
var Text = require('../../Text-COHpLTYr.js');
|
|
13
|
-
var Title = require('../../Title-BduD-TXE.js');
|
|
14
13
|
require('lodash/camelCase');
|
|
15
14
|
require('lodash/castArray');
|
|
16
15
|
require('../context/UIContext.js');
|
|
@@ -22,13 +21,16 @@ require('../hooks/styleAttributes.js');
|
|
|
22
21
|
require('../../Icon-ByLHEhHL.js');
|
|
23
22
|
require('../../Link-CoAhRbFg.js');
|
|
24
23
|
require('../../Tooltip-CyZCVyba.js');
|
|
24
|
+
require('../../Title-BduD-TXE.js');
|
|
25
25
|
require('../../Loader-D_53c71f.js');
|
|
26
26
|
|
|
27
|
-
var img$
|
|
27
|
+
var img$7 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M85.7155 56.9042L54.1865 115.911C53.0219 118.09 54.5678 121.43 58.4708 121.43H121.529C125.432 121.43 126.978 118.09 125.814 115.911L94.2845 56.9043C93.5012 55.4392 91.8762 54.57 89.9998 54.57C88.1237 54.57 86.4986 55.439 85.7155 56.9042ZM89.9998 48C93.9317 48 98.1142 49.8644 100.253 53.8659L131.782 112.873C135.732 120.266 129.482 128 121.529 128H58.4708C50.5181 128 44.2675 120.266 48.2181 112.873L79.7471 53.866C81.8855 49.8645 86.0683 48 89.9998 48ZM90.0002 74.0886C91.8588 74.0886 93.3658 75.5593 93.3658 77.3736V92.8756C93.3658 94.6897 91.8588 96.1606 90.0002 96.1606C88.1411 96.1606 86.6345 94.6897 86.6345 92.8756V77.3736C86.6345 75.5593 88.1411 74.0886 90.0002 74.0886ZM93.3658 108.377C93.3658 106.563 91.8588 105.092 90.0002 105.092C88.1411 105.092 86.6345 106.563 86.6345 108.377V108.457C86.6345 110.271 88.1411 111.742 90.0002 111.742C91.8588 111.742 93.3658 110.271 93.3658 108.457V108.377Z' fill='%23747474'/%3e%3c/svg%3e";
|
|
28
28
|
|
|
29
|
-
var img$
|
|
29
|
+
var img$6 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23E00000'/%3e%3cpath d='M90.5027 104.581V45.2513' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M90.5027 134.749V129.721' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
30
30
|
|
|
31
|
-
var img$
|
|
31
|
+
var img$5 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M116.144 71.2426C118.487 68.8995 118.487 65.1005 116.144 62.7574C113.801 60.4142 110.002 60.4142 107.659 62.7574L89.4506 80.9654L71.2426 62.7574C68.8995 60.4142 65.1005 60.4142 62.7574 62.7574C60.4142 65.1005 60.4142 68.8995 62.7574 71.2426L80.9654 89.4506L62.7574 107.659C60.4142 110.002 60.4142 113.801 62.7574 116.144C65.1005 118.487 68.8995 118.487 71.2426 116.144L89.4506 97.9359L107.659 116.144C110.002 118.487 113.801 118.487 116.144 116.144C118.487 113.801 118.487 110.002 116.144 107.659L97.9359 89.4506L116.144 71.2426Z' fill='%23747474'/%3e%3c/svg%3e";
|
|
32
|
+
|
|
33
|
+
var img$4 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M93.2275 101.842H84.0659C83.8263 99.1898 83.976 96.839 84.515 94.7895C85.1138 92.74 86.2216 90.8111 87.8383 89.0027C89.515 87.1341 91.7904 85.2051 94.6647 83.2159C96.5808 81.8898 97.9581 80.5637 98.7964 79.2375C99.6946 77.9114 100.144 76.4345 100.144 74.807C100.144 72.2753 99.2156 70.1957 97.3593 68.5682C95.503 66.9406 93.0778 66.1269 90.0838 66.1269C87.3892 66.1269 84.7246 66.9105 82.0898 68.4777C79.4551 69.9847 77.0299 72.3959 74.8144 75.7112L67 67.9352C70.0539 64.0774 73.5868 61.1237 77.5988 59.0742C81.6707 57.0247 85.9521 56 90.4431 56C94.5749 56 98.2575 56.8439 101.491 58.5317C104.725 60.1592 107.269 62.3896 109.126 65.2227C111.042 67.9955 112 71.1601 112 74.7166C112 78.0922 111.042 81.1062 109.126 83.7584C107.269 86.4107 104.455 88.8821 100.683 91.1727C97.7485 92.8605 95.7725 94.4881 94.7545 96.0553C93.7365 97.6226 93.2275 99.5515 93.2275 101.842ZM96.1916 115.767C96.1916 117.756 95.4731 119.474 94.0359 120.92C92.5988 122.307 90.8323 123 88.7365 123C86.6407 123 84.8743 122.307 83.4371 120.92C82 119.474 81.2814 117.756 81.2814 115.767C81.2814 113.717 82 111.999 83.4371 110.613C84.8743 109.166 86.6407 108.443 88.7365 108.443C90.8323 108.443 92.5988 109.166 94.0359 110.613C95.4731 111.999 96.1916 113.717 96.1916 115.767Z' fill='%23747474'/%3e%3c/svg%3e";
|
|
32
34
|
|
|
33
35
|
var img$3 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M89.4468 113.833C98.5743 113.833 106.51 108.762 110.56 101.299L116.507 109.116C110.49 117.519 100.612 123 89.4468 123C74.5162 123 61.888 113.2 57.7156 99.7167H51L62.3388 84.8667L73.6777 99.7167H67.55C71.2908 108.036 79.6878 113.833 89.4468 113.833Z' fill='%23747474'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M122.212 84.6833C119.654 68.9858 105.958 57 89.4468 57C77.527 57 67.0747 63.2463 61.2209 72.6261L67.4218 80.5738C71.0963 72.0991 79.5747 66.1667 89.4468 66.1667C100.848 66.1667 110.391 74.0798 112.821 84.6833H106.322L117.661 99.5333L129 84.6833H122.212ZM118.759 84.6833H118.81L118.793 84.6618L118.759 84.6833Z' fill='%23747474'/%3e%3c/svg%3e";
|
|
34
36
|
|
|
@@ -38,12 +40,12 @@ var img$1 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180
|
|
|
38
40
|
|
|
39
41
|
var img = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23DE8806'/%3e%3cpath d='M90.5028 104.581V45.2513' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M90.5028 134.749V129.721' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
40
42
|
|
|
43
|
+
/* eslint-disable perfectionist/sort-objects */
|
|
41
44
|
var responseAppearance = {
|
|
42
|
-
|
|
43
|
-
fill: 'surfaceSecondary',
|
|
45
|
+
cantLoadData: {
|
|
44
46
|
messageTextColor: 'surfaceTextPrimary',
|
|
45
47
|
messageTextSize: 'm',
|
|
46
|
-
messageTextWeight:
|
|
48
|
+
messageTextWeight: 400,
|
|
47
49
|
primaryButtonAppearance: 'surfaceTertiary',
|
|
48
50
|
primaryButtonLabelTextSize: 'l',
|
|
49
51
|
primaryButtonShape: 'rounded',
|
|
@@ -54,14 +56,15 @@ var responseAppearance = {
|
|
|
54
56
|
secondaryButtonShape: 'rounded',
|
|
55
57
|
secondaryButtonSize: 'xxl',
|
|
56
58
|
secondaryButtonWidth: 'fill',
|
|
59
|
+
svgSrc: img$7,
|
|
57
60
|
titleTextColor: 'surfaceTextPrimary',
|
|
58
|
-
titleTextSize: '
|
|
61
|
+
titleTextSize: 'xxl',
|
|
59
62
|
titleTextWeight: 400,
|
|
60
63
|
},
|
|
61
64
|
custom: {
|
|
62
65
|
messageTextColor: 'surfaceTextPrimary',
|
|
63
66
|
messageTextSize: 'm',
|
|
64
|
-
messageTextWeight:
|
|
67
|
+
messageTextWeight: 400,
|
|
65
68
|
primaryButtonAppearance: 'accent',
|
|
66
69
|
primaryButtonLabelTextSize: 'l',
|
|
67
70
|
primaryButtonShape: 'rounded',
|
|
@@ -73,15 +76,15 @@ var responseAppearance = {
|
|
|
73
76
|
secondaryButtonSize: 'xxl',
|
|
74
77
|
secondaryButtonWidth: 'fill',
|
|
75
78
|
titleTextColor: 'surfaceTextPrimary',
|
|
76
|
-
titleTextSize: '
|
|
79
|
+
titleTextSize: 'xxl',
|
|
77
80
|
titleTextWeight: 400,
|
|
78
81
|
},
|
|
79
|
-
|
|
80
|
-
|
|
82
|
+
dev: {
|
|
83
|
+
fill: 'surfaceSecondary',
|
|
81
84
|
messageTextColor: 'surfaceTextPrimary',
|
|
82
85
|
messageTextSize: 'm',
|
|
83
|
-
messageTextWeight:
|
|
84
|
-
primaryButtonAppearance: '
|
|
86
|
+
messageTextWeight: 400,
|
|
87
|
+
primaryButtonAppearance: 'surfaceTertiary',
|
|
85
88
|
primaryButtonLabelTextSize: 'l',
|
|
86
89
|
primaryButtonShape: 'rounded',
|
|
87
90
|
primaryButtonSize: 'xxl',
|
|
@@ -92,15 +95,14 @@ var responseAppearance = {
|
|
|
92
95
|
secondaryButtonSize: 'xxl',
|
|
93
96
|
secondaryButtonWidth: 'fill',
|
|
94
97
|
titleTextColor: 'surfaceTextPrimary',
|
|
95
|
-
titleTextSize: '
|
|
98
|
+
titleTextSize: 'xxl',
|
|
96
99
|
titleTextWeight: 400,
|
|
97
100
|
},
|
|
98
|
-
|
|
99
|
-
svgSrc: img$1,
|
|
101
|
+
error: {
|
|
100
102
|
messageTextColor: 'surfaceTextPrimary',
|
|
101
103
|
messageTextSize: 'm',
|
|
102
|
-
messageTextWeight:
|
|
103
|
-
primaryButtonAppearance: '
|
|
104
|
+
messageTextWeight: 400,
|
|
105
|
+
primaryButtonAppearance: 'secondary',
|
|
104
106
|
primaryButtonLabelTextSize: 'l',
|
|
105
107
|
primaryButtonShape: 'rounded',
|
|
106
108
|
primaryButtonSize: 'xxl',
|
|
@@ -110,16 +112,16 @@ var responseAppearance = {
|
|
|
110
112
|
secondaryButtonShape: 'rounded',
|
|
111
113
|
secondaryButtonSize: 'xxl',
|
|
112
114
|
secondaryButtonWidth: 'fill',
|
|
115
|
+
svgSrc: img$6,
|
|
113
116
|
titleTextColor: 'surfaceTextPrimary',
|
|
114
|
-
titleTextSize: '
|
|
117
|
+
titleTextSize: 'xxl',
|
|
115
118
|
titleTextWeight: 400,
|
|
116
119
|
},
|
|
117
|
-
|
|
118
|
-
svgSrc: img,
|
|
120
|
+
fail: {
|
|
119
121
|
messageTextColor: 'surfaceTextPrimary',
|
|
120
122
|
messageTextSize: 'm',
|
|
121
|
-
messageTextWeight:
|
|
122
|
-
primaryButtonAppearance: '
|
|
123
|
+
messageTextWeight: 400,
|
|
124
|
+
primaryButtonAppearance: 'surfaceTertiary',
|
|
123
125
|
primaryButtonLabelTextSize: 'l',
|
|
124
126
|
primaryButtonShape: 'rounded',
|
|
125
127
|
primaryButtonSize: 'xxl',
|
|
@@ -129,15 +131,15 @@ var responseAppearance = {
|
|
|
129
131
|
secondaryButtonShape: 'rounded',
|
|
130
132
|
secondaryButtonSize: 'xxl',
|
|
131
133
|
secondaryButtonWidth: 'fill',
|
|
134
|
+
svgSrc: img$5,
|
|
132
135
|
titleTextColor: 'surfaceTextPrimary',
|
|
133
|
-
titleTextSize: '
|
|
136
|
+
titleTextSize: 'xxl',
|
|
134
137
|
titleTextWeight: 400,
|
|
135
138
|
},
|
|
136
|
-
|
|
137
|
-
svgSrc: img$4,
|
|
139
|
+
refresh: {
|
|
138
140
|
messageTextColor: 'surfaceTextPrimary',
|
|
139
141
|
messageTextSize: 'm',
|
|
140
|
-
messageTextWeight:
|
|
142
|
+
messageTextWeight: 400,
|
|
141
143
|
primaryButtonAppearance: 'surfaceTertiary',
|
|
142
144
|
primaryButtonLabelTextSize: 'l',
|
|
143
145
|
primaryButtonShape: 'rounded',
|
|
@@ -148,17 +150,36 @@ var responseAppearance = {
|
|
|
148
150
|
secondaryButtonShape: 'rounded',
|
|
149
151
|
secondaryButtonSize: 'xxl',
|
|
150
152
|
secondaryButtonWidth: 'fill',
|
|
153
|
+
svgSrc: img$3,
|
|
151
154
|
titleTextColor: 'surfaceTextPrimary',
|
|
152
|
-
titleTextSize: '
|
|
155
|
+
titleTextSize: 'xxl',
|
|
153
156
|
titleTextWeight: 400,
|
|
154
157
|
},
|
|
155
|
-
|
|
156
|
-
|
|
158
|
+
off: {
|
|
159
|
+
messageTextColor: 'surfaceTextPrimary',
|
|
160
|
+
messageTextSize: 'm',
|
|
161
|
+
messageTextWeight: 400,
|
|
162
|
+
primaryButtonAppearance: 'success',
|
|
163
|
+
primaryButtonLabelTextSize: 'l',
|
|
164
|
+
primaryButtonShape: 'rounded',
|
|
165
|
+
primaryButtonSize: 'xxl',
|
|
166
|
+
primaryButtonWidth: 'fill',
|
|
167
|
+
secondaryButtonAppearance: 'secondary',
|
|
168
|
+
secondaryButtonLabelTextSize: 'l',
|
|
169
|
+
secondaryButtonShape: 'rounded',
|
|
170
|
+
secondaryButtonSize: 'xxl',
|
|
171
|
+
secondaryButtonWidth: 'fill',
|
|
157
172
|
svgFill: 'errorPrimary',
|
|
158
173
|
svgPathFill: 'surfaceItemTertiary',
|
|
174
|
+
svgSrc: img$4,
|
|
175
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
176
|
+
titleTextSize: 'xxl',
|
|
177
|
+
titleTextWeight: 400,
|
|
178
|
+
},
|
|
179
|
+
search: {
|
|
159
180
|
messageTextColor: 'surfaceTextPrimary',
|
|
160
181
|
messageTextSize: 'm',
|
|
161
|
-
messageTextWeight:
|
|
182
|
+
messageTextWeight: 400,
|
|
162
183
|
primaryButtonAppearance: 'surfaceTertiary',
|
|
163
184
|
primaryButtonLabelTextSize: 'l',
|
|
164
185
|
primaryButtonShape: 'rounded',
|
|
@@ -169,16 +190,18 @@ var responseAppearance = {
|
|
|
169
190
|
secondaryButtonShape: 'rounded',
|
|
170
191
|
secondaryButtonSize: 'xxl',
|
|
171
192
|
secondaryButtonWidth: 'fill',
|
|
193
|
+
svgFill: 'errorPrimary',
|
|
194
|
+
svgPathFill: 'surfaceItemTertiary',
|
|
195
|
+
svgSrc: img$2,
|
|
172
196
|
titleTextColor: 'surfaceTextPrimary',
|
|
173
|
-
titleTextSize: '
|
|
197
|
+
titleTextSize: 'xxl',
|
|
174
198
|
titleTextWeight: 400,
|
|
175
199
|
},
|
|
176
|
-
|
|
177
|
-
svgSrc: img$6,
|
|
200
|
+
success: {
|
|
178
201
|
messageTextColor: 'surfaceTextPrimary',
|
|
179
202
|
messageTextSize: 'm',
|
|
180
|
-
messageTextWeight:
|
|
181
|
-
primaryButtonAppearance: '
|
|
203
|
+
messageTextWeight: 400,
|
|
204
|
+
primaryButtonAppearance: 'accent',
|
|
182
205
|
primaryButtonLabelTextSize: 'l',
|
|
183
206
|
primaryButtonShape: 'rounded',
|
|
184
207
|
primaryButtonSize: 'xxl',
|
|
@@ -188,16 +211,16 @@ var responseAppearance = {
|
|
|
188
211
|
secondaryButtonShape: 'rounded',
|
|
189
212
|
secondaryButtonSize: 'xxl',
|
|
190
213
|
secondaryButtonWidth: 'fill',
|
|
214
|
+
svgSrc: img$1,
|
|
191
215
|
titleTextColor: 'surfaceTextPrimary',
|
|
192
|
-
titleTextSize: '
|
|
216
|
+
titleTextSize: 'xxl',
|
|
193
217
|
titleTextWeight: 400,
|
|
194
218
|
},
|
|
195
|
-
|
|
196
|
-
svgSrc: img$3,
|
|
219
|
+
warning: {
|
|
197
220
|
messageTextColor: 'surfaceTextPrimary',
|
|
198
221
|
messageTextSize: 'm',
|
|
199
|
-
messageTextWeight:
|
|
200
|
-
primaryButtonAppearance: '
|
|
222
|
+
messageTextWeight: 400,
|
|
223
|
+
primaryButtonAppearance: 'primary',
|
|
201
224
|
primaryButtonLabelTextSize: 'l',
|
|
202
225
|
primaryButtonShape: 'rounded',
|
|
203
226
|
primaryButtonSize: 'xxl',
|
|
@@ -207,8 +230,9 @@ var responseAppearance = {
|
|
|
207
230
|
secondaryButtonShape: 'rounded',
|
|
208
231
|
secondaryButtonSize: 'xxl',
|
|
209
232
|
secondaryButtonWidth: 'fill',
|
|
233
|
+
svgSrc: img,
|
|
210
234
|
titleTextColor: 'surfaceTextPrimary',
|
|
211
|
-
titleTextSize: '
|
|
235
|
+
titleTextSize: 'xxl',
|
|
212
236
|
titleTextWeight: 400,
|
|
213
237
|
},
|
|
214
238
|
};
|
|
@@ -224,7 +248,7 @@ function Response(props) {
|
|
|
224
248
|
// @ts-expect-error
|
|
225
249
|
var appearanceConfig = responseConfig.appearance && responseConfig.appearance[appearance];
|
|
226
250
|
var classGenerator = useDeviceTargetClassGenerator.useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
227
|
-
var borderColorClass = classGenerator.borderColorClass, borderColorHoverClass = classGenerator.borderColorHoverClass, borderTypeClass = classGenerator.borderTypeClass, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, shapeClass = classGenerator.shapeClass, svgFillClass = classGenerator.svgFillClass, svgPathFillClass = classGenerator.svgPathFillClass;
|
|
251
|
+
var borderColorClass = classGenerator.borderColorClass, borderColorHoverClass = classGenerator.borderColorHoverClass, borderTypeClass = classGenerator.borderTypeClass, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, shapeClass = classGenerator.shapeClass, svgFillClass = classGenerator.svgFillClass, svgPathFillClass = classGenerator.svgPathFillClass, textAlignClass = classGenerator.textAlignClass;
|
|
228
252
|
var ImageComponent = React.useMemo(function () {
|
|
229
253
|
var src = imageSrc || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.imageSrc) || svgSrc || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.svgSrc);
|
|
230
254
|
var Image = SvgImage || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.SvgImage);
|
|
@@ -252,8 +276,8 @@ function Response(props) {
|
|
|
252
276
|
return null;
|
|
253
277
|
}, [imageSrc, appearanceConfig, SvgImage, width, height, svgFillClass]);
|
|
254
278
|
// @ts-expect-error
|
|
255
|
-
var
|
|
256
|
-
return (jsxRuntime.jsxs("div", { className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), set && "response_set_".concat(set)), style: responseStyles, children: [before, jsxRuntime.jsx("div", { className: clsx('response__image', svgFillClass && "svg_fill_".concat(svgFillClass), svgPathFillClass && "svg_path_fill_".concat(svgPathFillClass)), children: ImageComponent }), jsxRuntime.jsxs(Group.Group, { className:
|
|
279
|
+
var _a = useStyles.useStyles(props), responseStyles = _a.styles, wrapperStyles = _a.wrapper;
|
|
280
|
+
return (jsxRuntime.jsxs("div", { className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), set && "response_set_".concat(set)), style: responseStyles, children: [before, jsxRuntime.jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [jsxRuntime.jsx("div", { className: clsx('response__image', svgFillClass && "svg_fill_".concat(svgFillClass), svgPathFillClass && "svg_path_fill_".concat(svgPathFillClass)), children: ImageComponent }), jsxRuntime.jsxs(Group.Group, { className: clsx('response__desc', textAlignClass && "text-align_".concat(textAlignClass)), width: "fill", children: [title && (jsxRuntime.jsx(Text.Text, { className: "response__title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.titleTextSize) || 'xxl', textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.titleTextColor), textWeight: titleTextWeight || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.titleTextWeight) || '400', children: title })), message && (jsxRuntime.jsx(Text.Text, { className: "response__message", size: messageTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.messageTextSize) || 'm', textColor: messageTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.messageTextColor), textWeight: messageTextWeight || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.messageTextWeight), children: message }))] })] }), (primaryButtonLabel ||
|
|
257
281
|
primaryButton ||
|
|
258
282
|
secondaryButtonLabel ||
|
|
259
283
|
secondaryButton ||
|
|
@@ -154,7 +154,7 @@ var selectConfig = {
|
|
|
154
154
|
},
|
|
155
155
|
};
|
|
156
156
|
var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
157
|
-
var elevation = props.elevation, isClearable = props.isClearable, isCreatable = props.isCreatable, isDisabled = props.isDisabled, isLoading = props.isLoading, isMulti = props.isMulti, isSearchable = props.isSearchable, after = props.after, appearance = props.appearance, badgeAppearance = props.badgeAppearance, badgeSize = props.badgeSize, badgeTextSize = props.badgeTextSize, before = props.before, className = props.className, clearIcon = props.clearIcon, clearIconFill = props.clearIconFill, closeMenuOnSelect = props.closeMenuOnSelect, defaultValue = props.defaultValue, dividerDirection = props.dividerDirection, dividerFill = props.dividerFill, dividerSize = props.dividerSize, dropdownFillHover = props.dropdownFillHover, dropdownIcon = props.dropdownIcon, dropdownIconFill = props.dropdownIconFill, dropdownIconShape = props.dropdownIconShape, filterOption = props.filterOption, hideSelectedOptions = props.hideSelectedOptions, hideValueContainer = props.hideValueContainer, initialValue = props.initialValue, inputAfter = props.inputAfter, inputBefore = props.inputBefore, instanceId = props.instanceId, loadingMessage = props.loadingMessage, menuAfter = props.menuAfter, menuBefore = props.menuBefore, menuIsOpen = props.menuIsOpen, menuItemSize = props.menuItemSize, multipleItemFill = props.multipleItemFill, multipleItemFillHover = props.multipleItemFillHover, multipleItemIcon = props.multipleItemIcon, multipleItemIconFill = props.multipleItemIconFill, noOptionsSearchText = props.noOptionsSearchText, noOptionsText = props.noOptionsText, openMenuOnClick = props.openMenuOnClick, optionAfter = props.optionAfter, optionBefore = props.optionBefore, options = props.options, optionSelected = props.optionSelected, placeholder = props.placeholder, placeholderTextColor = props.placeholderTextColor, placeholderTextSize = props.placeholderTextSize, set = props.set, showBadge = props.showBadge, showDivider = props.showDivider, value = props.value, onChange = props.onChange, onInputChange = props.onInputChange;
|
|
157
|
+
var width = props.width, minWidth = props.minWidth, elevation = props.elevation, isClearable = props.isClearable, isCreatable = props.isCreatable, isDisabled = props.isDisabled, isLoading = props.isLoading, isMulti = props.isMulti, isSearchable = props.isSearchable, after = props.after, appearance = props.appearance, badgeAppearance = props.badgeAppearance, badgeSize = props.badgeSize, badgeTextSize = props.badgeTextSize, before = props.before, className = props.className, clearIcon = props.clearIcon, clearIconFill = props.clearIconFill, closeMenuOnSelect = props.closeMenuOnSelect, defaultValue = props.defaultValue, dividerDirection = props.dividerDirection, dividerFill = props.dividerFill, dividerSize = props.dividerSize, dropdownFillHover = props.dropdownFillHover, dropdownIcon = props.dropdownIcon, dropdownIconFill = props.dropdownIconFill, dropdownIconShape = props.dropdownIconShape, filterOption = props.filterOption, hideSelectedOptions = props.hideSelectedOptions, hideValueContainer = props.hideValueContainer, initialValue = props.initialValue, inputAfter = props.inputAfter, inputBefore = props.inputBefore, instanceId = props.instanceId, loadingMessage = props.loadingMessage, menuAfter = props.menuAfter, menuBefore = props.menuBefore, menuIsOpen = props.menuIsOpen, menuItemSize = props.menuItemSize, multipleItemFill = props.multipleItemFill, multipleItemFillHover = props.multipleItemFillHover, multipleItemIcon = props.multipleItemIcon, multipleItemIconFill = props.multipleItemIconFill, noOptionsSearchText = props.noOptionsSearchText, noOptionsText = props.noOptionsText, openMenuOnClick = props.openMenuOnClick, optionAfter = props.optionAfter, optionBefore = props.optionBefore, options = props.options, optionSelected = props.optionSelected, placeholder = props.placeholder, placeholderTextColor = props.placeholderTextColor, placeholderTextSize = props.placeholderTextSize, set = props.set, showBadge = props.showBadge, showDivider = props.showDivider, value = props.value, onChange = props.onChange, onInputChange = props.onInputChange;
|
|
158
158
|
var defaultRef = React.useRef(null);
|
|
159
159
|
var selectRef = ref || defaultRef;
|
|
160
160
|
// React-select wait function as "loadingMessage" property
|
|
@@ -184,7 +184,22 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
186
|
}, []);
|
|
187
|
-
var clearStyle = React.useMemo(function () {
|
|
187
|
+
var clearStyle = React.useMemo(function () {
|
|
188
|
+
return new Proxy({
|
|
189
|
+
container: {
|
|
190
|
+
width: width,
|
|
191
|
+
minWidth: minWidth,
|
|
192
|
+
},
|
|
193
|
+
}, {
|
|
194
|
+
get: function (target, prop) {
|
|
195
|
+
if (prop in target) {
|
|
196
|
+
return function () { return target[prop]; };
|
|
197
|
+
}
|
|
198
|
+
return function () { };
|
|
199
|
+
},
|
|
200
|
+
});
|
|
201
|
+
}, []);
|
|
202
|
+
// @ts-expect-error
|
|
188
203
|
var appearanceConfig = (selectConfig.appearance && selectConfig.appearance[appearance]) || {};
|
|
189
204
|
var classGenerator = useDeviceTargetClassGenerator.useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
190
205
|
var borderColorClass = classGenerator.borderColorClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, headingFillClass = classGenerator.headingFillClass, headingFillHoverClass = classGenerator.headingFillHoverClass, headingTextColorClass = classGenerator.headingTextColorClass, headingTextSizeClass = classGenerator.headingTextSizeClass, headingTextWeightClass = classGenerator.headingTextWeightClass, inputBorderColorClass = classGenerator.inputBorderColorClass, inputBorderColorHoverClass = classGenerator.inputBorderColorHoverClass, inputCaretColorClass = classGenerator.inputCaretColorClass, inputFillClass = classGenerator.inputFillClass, inputShapeClass = classGenerator.inputShapeClass, inputTextColorClass = classGenerator.inputTextColorClass, inputTextSizeClass = classGenerator.inputTextSizeClass, multipleItemTextColorClass = classGenerator.multipleItemTextColorClass, multipleItemTextSizeClass = classGenerator.multipleItemTextSizeClass, noOptionsTextColorClass = classGenerator.noOptionsTextColorClass, noOptionsTextSizeClass = classGenerator.noOptionsTextSizeClass, optionBorderClass = classGenerator.optionBorderClass, optionBorderTypeClass = classGenerator.optionBorderTypeClass, optionFillClass = classGenerator.optionFillClass, optionFillHoverClass = classGenerator.optionFillHoverClass, optionShapeClass = classGenerator.optionShapeClass, optionTextColorClass = classGenerator.optionTextColorClass, optionTextSizeClass = classGenerator.optionTextSizeClass, shapeClass = classGenerator.shapeClass, sizeClass = classGenerator.sizeClass;
|
package/dist/components/Cell.js
CHANGED
|
@@ -37,8 +37,8 @@ function Cell(props) {
|
|
|
37
37
|
var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
38
38
|
var bgFillActiveClass = classGenerator.bgFillActiveClass, bgFillClass = classGenerator.bgFillClass, bgFillDisabledClass = classGenerator.bgFillDisabledClass, bgFillHoverClass = classGenerator.bgFillHoverClass, bgShapeClass = classGenerator.bgShapeClass, directionClass = classGenerator.directionClass, fillActiveClass = classGenerator.fillActiveClass, fillClass = classGenerator.fillClass, fillDisabledClass = classGenerator.fillDisabledClass, fillHoverClass = classGenerator.fillHoverClass, gapClass = classGenerator.gapClass, shapeClass = classGenerator.shapeClass, widthClass = classGenerator.widthClass;
|
|
39
39
|
// @ts-expect-error
|
|
40
|
-
var
|
|
41
|
-
return (jsxs("div", { className: clsx(className, 'cell', mode && "cell_mode_".concat(mode), size && "cell_size_".concat(size), set && "cell_set_".concat(set), bgFillClass && "fill_".concat(bgFillClass), bgFillHoverClass && "fill_hover_".concat(bgFillHoverClass), isActive && bgFillActiveClass && "fill_active_".concat(bgFillActiveClass), isDisabled && bgFillDisabledClass && "fill_disabled_".concat(bgFillDisabledClass), bgShapeClass && "cell_shape_".concat(bgShapeClass), widthClass && "width_".concat(widthClass), gapClass && "gap_".concat(gapClass), zeroPadding && 'cell_reset-padding', zeroGap && 'cell_reset-gap', reverse && 'cell_reverse'), style: cellStyles, onClick: onClick, onMouseEnter: onMouseEnter, children: [before && jsx("div", { className: "cell__before", children: before }), jsxs("div", { className: clsx('cell__wrapper', directionClass && "cell__wrapper_direction_".concat(directionClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), isActive && fillActiveClass && "fill_active_".concat(fillActiveClass), isDisabled && fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), shapeClass && "cell__wrapper_shape_".concat(shapeClass), isEqual && 'cell__wrapper-equal'), children: [title && (jsxs("div", { className: "cell__data", children: [jsx(Text, { className: "cell__title", size: titleTextSize, tag: titleTag, textColor: titleTextColor, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title }), (titleIcon || titleIconSrc) && (jsx(Icon, { className: "cell__icon", fill: titleIconFill, fillSize: titleIconFillSize, iconFill: titleIconItemFill, iconFillHover: titleIconFillHover, imageSrc: titleIconSrc, shape: titleIconShape, SvgImage: titleIcon })), showTitleLabel && (jsx(Label, { labelTextSize: titleLabelTextSize, appearance: titleLabelAppearance, label: titleLabel, shape: titleLabelShape, size: titleLabelSize }))] })), value && (jsxs("div", { className: "cell__data", children: [jsx(Text, { className: "cell__value", size: valueTextSize, tag: valueTag, textAlign: valueTextAlign, textColor: valueTextColor, textTruncate: valueTextTruncate, textWeight: valueTextWeight, textWrap: valueTextWrap, children: value }), (valueIcon || valueIconSrc) && (jsx(Icon, { className: "cell__icon", fill: valueIconFill, fillSize: valueIconFillSize, iconFill: valueIconItemFill, iconFillHover: valueIconFillHover, imageSrc: valueIconSrc, shape: valueIconShape, SvgImage: valueIcon })), showValueLabel && (jsx(Label, { labelTextSize: valueLabelTextSize, appearance: valueLabelAppearance, label: valueLabel, shape: valueLabelShape, size: valueLabelSize }))] }))] }), after && jsx("div", { className: "cell__after", children: after })] }));
|
|
40
|
+
var _b = useStyles(props), dataStyles = _b.data, cellStyles = _b.styles;
|
|
41
|
+
return (jsxs("div", { className: clsx(className, 'cell', mode && "cell_mode_".concat(mode), size && "cell_size_".concat(size), set && "cell_set_".concat(set), bgFillClass && "fill_".concat(bgFillClass), bgFillHoverClass && "fill_hover_".concat(bgFillHoverClass), isActive && bgFillActiveClass && "fill_active_".concat(bgFillActiveClass), isDisabled && bgFillDisabledClass && "fill_disabled_".concat(bgFillDisabledClass), bgShapeClass && "cell_shape_".concat(bgShapeClass), widthClass && "width_".concat(widthClass), gapClass && "gap_".concat(gapClass), zeroPadding && 'cell_reset-padding', zeroGap && 'cell_reset-gap', reverse && 'cell_reverse'), style: cellStyles, onClick: onClick, onMouseEnter: onMouseEnter, children: [before && jsx("div", { className: "cell__before", children: before }), jsxs("div", { className: clsx('cell__wrapper', directionClass && "cell__wrapper_direction_".concat(directionClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), isActive && fillActiveClass && "fill_active_".concat(fillActiveClass), isDisabled && fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), shapeClass && "cell__wrapper_shape_".concat(shapeClass), isEqual && 'cell__wrapper-equal'), children: [title && (jsxs("div", { className: "cell__data", style: dataStyles, children: [jsx(Text, { className: "cell__title", size: titleTextSize, tag: titleTag, textColor: titleTextColor, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title }), (titleIcon || titleIconSrc) && (jsx(Icon, { className: "cell__icon", fill: titleIconFill, fillSize: titleIconFillSize, iconFill: titleIconItemFill, iconFillHover: titleIconFillHover, imageSrc: titleIconSrc, shape: titleIconShape, SvgImage: titleIcon })), showTitleLabel && (jsx(Label, { labelTextSize: titleLabelTextSize, appearance: titleLabelAppearance, label: titleLabel, shape: titleLabelShape, size: titleLabelSize }))] })), value && (jsxs("div", { className: "cell__data", style: dataStyles, children: [jsx(Text, { className: "cell__value", size: valueTextSize, tag: valueTag, textAlign: valueTextAlign, textColor: valueTextColor, textTruncate: valueTextTruncate, textWeight: valueTextWeight, textWrap: valueTextWrap, children: value }), (valueIcon || valueIconSrc) && (jsx(Icon, { className: "cell__icon", fill: valueIconFill, fillSize: valueIconFillSize, iconFill: valueIconItemFill, iconFillHover: valueIconFillHover, imageSrc: valueIconSrc, shape: valueIconShape, SvgImage: valueIcon })), showValueLabel && (jsx(Label, { labelTextSize: valueLabelTextSize, appearance: valueLabelAppearance, label: valueLabel, shape: valueLabelShape, size: valueLabelSize }))] }))] }), after && jsx("div", { className: "cell__after", children: after })] }));
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export { Cell, cellAppearance, cellConfig };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
4
|
+
import { useStyles } from '../hooks/useStyles.js';
|
|
5
|
+
import { I as Icon } from '../Icon-DotE-03d.js';
|
|
6
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
7
|
+
import 'react';
|
|
8
|
+
import 'lodash/camelCase';
|
|
9
|
+
import 'lodash/castArray';
|
|
10
|
+
import '../context/UIContext.js';
|
|
11
|
+
import '../hooks/useMediaQueries.js';
|
|
12
|
+
import 'react-responsive';
|
|
13
|
+
import 'lodash/maxBy';
|
|
14
|
+
import 'lodash/upperFirst';
|
|
15
|
+
import '../hooks/styleAttributes.js';
|
|
16
|
+
import 'react-inlinesvg';
|
|
17
|
+
import '../Link-C53o3P6_.js';
|
|
18
|
+
import '../Tooltip-BsbXMzGd.js';
|
|
19
|
+
import '../Text-D9sEeRE4.js';
|
|
20
|
+
import '../Title-Cl95USIn.js';
|
|
21
|
+
|
|
22
|
+
var checkmarkAppearance = {
|
|
23
|
+
accent: {
|
|
24
|
+
borderWidth: '4',
|
|
25
|
+
borderColor: 'accentBorderQuaternary',
|
|
26
|
+
fill: 'accentPrimary',
|
|
27
|
+
iconFill: 'surfaceItemInverse',
|
|
28
|
+
},
|
|
29
|
+
disabled: {
|
|
30
|
+
borderWidth: '4',
|
|
31
|
+
borderColor: 'surfaceBorderTertiary',
|
|
32
|
+
fill: 'surfaceItemSecondary',
|
|
33
|
+
iconFill: 'surfaceItemQuaternary',
|
|
34
|
+
},
|
|
35
|
+
surface: {
|
|
36
|
+
borderWidth: '4',
|
|
37
|
+
borderColor: 'surfaceBorderTertiary',
|
|
38
|
+
fill: 'surfacePrimary',
|
|
39
|
+
iconFill: 'surfaceItemPrimary',
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
var checkmarkConfig = {
|
|
44
|
+
appearance: checkmarkAppearance,
|
|
45
|
+
setAppearance: function (newComponent) {
|
|
46
|
+
checkmarkConfig.appearance = newComponent;
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
function Checkmark(props) {
|
|
50
|
+
var isChecked = props.isChecked, _a = props.isDisabled, isDisabled = _a === undefined ? false : _a, appearance = props.appearance, className = props.className, iconChecked = props.iconChecked, iconFill = props.iconFill, onClick = props.onClick;
|
|
51
|
+
// @ts-expect-error
|
|
52
|
+
var appearanceConfig = checkmarkConfig.appearance && checkmarkConfig.appearance[appearance];
|
|
53
|
+
var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
54
|
+
var borderColorClass = classGenerator.borderColorClass, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, sizeClass = classGenerator.sizeClass;
|
|
55
|
+
// @ts-expect-error
|
|
56
|
+
var checkmarkStyles = useStyles(props).styles;
|
|
57
|
+
return (jsx("div", { className: clsx(className, 'checkmark', sizeClass && "checkmark_size_".concat(sizeClass), fillClass && "fill_".concat(fillClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), isDisabled), style: checkmarkStyles, onClick: onClick, children: isChecked && (jsx(Icon, { className: "checkmark__svg", iconFill: iconFill || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.iconFill), size: "24", SvgImage: isChecked ? iconChecked : null })) }));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { Checkmark, checkmarkAppearance, checkmarkConfig };
|
|
@@ -3,7 +3,6 @@ import clsx from 'clsx';
|
|
|
3
3
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
4
4
|
import { useStyles } from '../hooks/useStyles.js';
|
|
5
5
|
import { T as Text } from '../Text-D9sEeRE4.js';
|
|
6
|
-
import { T as Title } from '../Title-Cl95USIn.js';
|
|
7
6
|
import { useNotifications, useNotificationsAPI } from '../context/Notifications.js';
|
|
8
7
|
import '../tslib.es6-5FtW-kfi.js';
|
|
9
8
|
import 'react';
|
|
@@ -57,14 +56,13 @@ var notificationItemConfig = {
|
|
|
57
56
|
},
|
|
58
57
|
};
|
|
59
58
|
function NotificationItem(props) {
|
|
60
|
-
var id = props.id, after = props.after, appearance = props.appearance, before = props.before, className = props.className, closeButton = props.closeButton, dataTour = props.dataTour, set = props.set, size = props.size, status = props.status, text = props.text, textColor = props.textColor, _a = props.textSize, textSize = _a === undefined ? 's' : _a, title = props.title, titleTextColor = props.titleTextColor, _b = props.titleTextSize, titleTextSize = _b === undefined ? '
|
|
61
|
-
// @ts-expect-error
|
|
59
|
+
var id = props.id, after = props.after, appearance = props.appearance, before = props.before, className = props.className, closeButton = props.closeButton, dataTour = props.dataTour, set = props.set, size = props.size, status = props.status, text = props.text, textColor = props.textColor, _a = props.textSize, textSize = _a === undefined ? 's' : _a, title = props.title, titleTextColor = props.titleTextColor, _b = props.titleTextSize, titleTextSize = _b === undefined ? 'm' : _b, onClickClose = props.onClickClose;
|
|
62
60
|
var appearanceConfig = notificationItemConfig.appearance && notificationItemConfig.appearance[appearance];
|
|
63
61
|
var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
64
62
|
var fillClass = classGenerator.fillClass, widthClass = classGenerator.widthClass;
|
|
65
63
|
// @ts-expect-error
|
|
66
64
|
var notificationStyles = useStyles(props).styles;
|
|
67
|
-
return (jsxs("div", { className: clsx('notification__item', status && "notification__item_status_".concat(status), set && "notification__item_set_".concat(set), size && "notification__item_set_".concat(size), closeButton && 'notification__item_type_close-button', widthClass && "width_".concat(widthClass), fillClass && "fill_".concat(fillClass)), "data-tour": dataTour, style: notificationStyles, children: [before, jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsx(
|
|
65
|
+
return (jsxs("div", { className: clsx('notification__item', status && "notification__item_status_".concat(status), set && "notification__item_set_".concat(set), size && "notification__item_set_".concat(size), closeButton && 'notification__item_type_close-button', widthClass && "width_".concat(widthClass), fillClass && "fill_".concat(fillClass)), "data-tour": dataTour, style: notificationStyles, children: [before, jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsx(Text, { className: "notification__item-title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.titleTextSize), textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.titleTextColor), children: title })), text && (jsx(Text, { className: "notification__item-text", size: textSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.textSize), textColor: textColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.textColor), children: text })), closeButton && (jsx("div", { className: clsx('notification__item-close', onClickClose && 'cursor_type_pointer'), onClick: function () { return onClickClose && onClickClose(id); }, children: closeButton }))] }), after] }));
|
|
68
66
|
}
|
|
69
67
|
|
|
70
68
|
function NotificationList(props) {
|
|
@@ -8,7 +8,6 @@ import { useStyles } from '../hooks/useStyles.js';
|
|
|
8
8
|
import { B as Button } from '../Button-Bn8Mjoeh.js';
|
|
9
9
|
import { G as Group } from '../Group-CIIZoSm5.js';
|
|
10
10
|
import { T as Text } from '../Text-D9sEeRE4.js';
|
|
11
|
-
import { T as Title } from '../Title-Cl95USIn.js';
|
|
12
11
|
import 'lodash/camelCase';
|
|
13
12
|
import 'lodash/castArray';
|
|
14
13
|
import '../context/UIContext.js';
|
|
@@ -20,13 +19,16 @@ import '../hooks/styleAttributes.js';
|
|
|
20
19
|
import '../Icon-DotE-03d.js';
|
|
21
20
|
import '../Link-C53o3P6_.js';
|
|
22
21
|
import '../Tooltip-BsbXMzGd.js';
|
|
22
|
+
import '../Title-Cl95USIn.js';
|
|
23
23
|
import '../Loader-Cm98w6lJ.js';
|
|
24
24
|
|
|
25
|
-
var img$
|
|
25
|
+
var img$7 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M85.7155 56.9042L54.1865 115.911C53.0219 118.09 54.5678 121.43 58.4708 121.43H121.529C125.432 121.43 126.978 118.09 125.814 115.911L94.2845 56.9043C93.5012 55.4392 91.8762 54.57 89.9998 54.57C88.1237 54.57 86.4986 55.439 85.7155 56.9042ZM89.9998 48C93.9317 48 98.1142 49.8644 100.253 53.8659L131.782 112.873C135.732 120.266 129.482 128 121.529 128H58.4708C50.5181 128 44.2675 120.266 48.2181 112.873L79.7471 53.866C81.8855 49.8645 86.0683 48 89.9998 48ZM90.0002 74.0886C91.8588 74.0886 93.3658 75.5593 93.3658 77.3736V92.8756C93.3658 94.6897 91.8588 96.1606 90.0002 96.1606C88.1411 96.1606 86.6345 94.6897 86.6345 92.8756V77.3736C86.6345 75.5593 88.1411 74.0886 90.0002 74.0886ZM93.3658 108.377C93.3658 106.563 91.8588 105.092 90.0002 105.092C88.1411 105.092 86.6345 106.563 86.6345 108.377V108.457C86.6345 110.271 88.1411 111.742 90.0002 111.742C91.8588 111.742 93.3658 110.271 93.3658 108.457V108.377Z' fill='%23747474'/%3e%3c/svg%3e";
|
|
26
26
|
|
|
27
|
-
var img$
|
|
27
|
+
var img$6 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23E00000'/%3e%3cpath d='M90.5027 104.581V45.2513' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M90.5027 134.749V129.721' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
28
28
|
|
|
29
|
-
var img$
|
|
29
|
+
var img$5 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M116.144 71.2426C118.487 68.8995 118.487 65.1005 116.144 62.7574C113.801 60.4142 110.002 60.4142 107.659 62.7574L89.4506 80.9654L71.2426 62.7574C68.8995 60.4142 65.1005 60.4142 62.7574 62.7574C60.4142 65.1005 60.4142 68.8995 62.7574 71.2426L80.9654 89.4506L62.7574 107.659C60.4142 110.002 60.4142 113.801 62.7574 116.144C65.1005 118.487 68.8995 118.487 71.2426 116.144L89.4506 97.9359L107.659 116.144C110.002 118.487 113.801 118.487 116.144 116.144C118.487 113.801 118.487 110.002 116.144 107.659L97.9359 89.4506L116.144 71.2426Z' fill='%23747474'/%3e%3c/svg%3e";
|
|
30
|
+
|
|
31
|
+
var img$4 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M93.2275 101.842H84.0659C83.8263 99.1898 83.976 96.839 84.515 94.7895C85.1138 92.74 86.2216 90.8111 87.8383 89.0027C89.515 87.1341 91.7904 85.2051 94.6647 83.2159C96.5808 81.8898 97.9581 80.5637 98.7964 79.2375C99.6946 77.9114 100.144 76.4345 100.144 74.807C100.144 72.2753 99.2156 70.1957 97.3593 68.5682C95.503 66.9406 93.0778 66.1269 90.0838 66.1269C87.3892 66.1269 84.7246 66.9105 82.0898 68.4777C79.4551 69.9847 77.0299 72.3959 74.8144 75.7112L67 67.9352C70.0539 64.0774 73.5868 61.1237 77.5988 59.0742C81.6707 57.0247 85.9521 56 90.4431 56C94.5749 56 98.2575 56.8439 101.491 58.5317C104.725 60.1592 107.269 62.3896 109.126 65.2227C111.042 67.9955 112 71.1601 112 74.7166C112 78.0922 111.042 81.1062 109.126 83.7584C107.269 86.4107 104.455 88.8821 100.683 91.1727C97.7485 92.8605 95.7725 94.4881 94.7545 96.0553C93.7365 97.6226 93.2275 99.5515 93.2275 101.842ZM96.1916 115.767C96.1916 117.756 95.4731 119.474 94.0359 120.92C92.5988 122.307 90.8323 123 88.7365 123C86.6407 123 84.8743 122.307 83.4371 120.92C82 119.474 81.2814 117.756 81.2814 115.767C81.2814 113.717 82 111.999 83.4371 110.613C84.8743 109.166 86.6407 108.443 88.7365 108.443C90.8323 108.443 92.5988 109.166 94.0359 110.613C95.4731 111.999 96.1916 113.717 96.1916 115.767Z' fill='%23747474'/%3e%3c/svg%3e";
|
|
30
32
|
|
|
31
33
|
var img$3 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M89.4468 113.833C98.5743 113.833 106.51 108.762 110.56 101.299L116.507 109.116C110.49 117.519 100.612 123 89.4468 123C74.5162 123 61.888 113.2 57.7156 99.7167H51L62.3388 84.8667L73.6777 99.7167H67.55C71.2908 108.036 79.6878 113.833 89.4468 113.833Z' fill='%23747474'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M122.212 84.6833C119.654 68.9858 105.958 57 89.4468 57C77.527 57 67.0747 63.2463 61.2209 72.6261L67.4218 80.5738C71.0963 72.0991 79.5747 66.1667 89.4468 66.1667C100.848 66.1667 110.391 74.0798 112.821 84.6833H106.322L117.661 99.5333L129 84.6833H122.212ZM118.759 84.6833H118.81L118.793 84.6618L118.759 84.6833Z' fill='%23747474'/%3e%3c/svg%3e";
|
|
32
34
|
|
|
@@ -36,12 +38,12 @@ var img$1 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180
|
|
|
36
38
|
|
|
37
39
|
var img = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23DE8806'/%3e%3cpath d='M90.5028 104.581V45.2513' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M90.5028 134.749V129.721' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
38
40
|
|
|
41
|
+
/* eslint-disable perfectionist/sort-objects */
|
|
39
42
|
var responseAppearance = {
|
|
40
|
-
|
|
41
|
-
fill: 'surfaceSecondary',
|
|
43
|
+
cantLoadData: {
|
|
42
44
|
messageTextColor: 'surfaceTextPrimary',
|
|
43
45
|
messageTextSize: 'm',
|
|
44
|
-
messageTextWeight:
|
|
46
|
+
messageTextWeight: 400,
|
|
45
47
|
primaryButtonAppearance: 'surfaceTertiary',
|
|
46
48
|
primaryButtonLabelTextSize: 'l',
|
|
47
49
|
primaryButtonShape: 'rounded',
|
|
@@ -52,14 +54,15 @@ var responseAppearance = {
|
|
|
52
54
|
secondaryButtonShape: 'rounded',
|
|
53
55
|
secondaryButtonSize: 'xxl',
|
|
54
56
|
secondaryButtonWidth: 'fill',
|
|
57
|
+
svgSrc: img$7,
|
|
55
58
|
titleTextColor: 'surfaceTextPrimary',
|
|
56
|
-
titleTextSize: '
|
|
59
|
+
titleTextSize: 'xxl',
|
|
57
60
|
titleTextWeight: 400,
|
|
58
61
|
},
|
|
59
62
|
custom: {
|
|
60
63
|
messageTextColor: 'surfaceTextPrimary',
|
|
61
64
|
messageTextSize: 'm',
|
|
62
|
-
messageTextWeight:
|
|
65
|
+
messageTextWeight: 400,
|
|
63
66
|
primaryButtonAppearance: 'accent',
|
|
64
67
|
primaryButtonLabelTextSize: 'l',
|
|
65
68
|
primaryButtonShape: 'rounded',
|
|
@@ -71,15 +74,15 @@ var responseAppearance = {
|
|
|
71
74
|
secondaryButtonSize: 'xxl',
|
|
72
75
|
secondaryButtonWidth: 'fill',
|
|
73
76
|
titleTextColor: 'surfaceTextPrimary',
|
|
74
|
-
titleTextSize: '
|
|
77
|
+
titleTextSize: 'xxl',
|
|
75
78
|
titleTextWeight: 400,
|
|
76
79
|
},
|
|
77
|
-
|
|
78
|
-
|
|
80
|
+
dev: {
|
|
81
|
+
fill: 'surfaceSecondary',
|
|
79
82
|
messageTextColor: 'surfaceTextPrimary',
|
|
80
83
|
messageTextSize: 'm',
|
|
81
|
-
messageTextWeight:
|
|
82
|
-
primaryButtonAppearance: '
|
|
84
|
+
messageTextWeight: 400,
|
|
85
|
+
primaryButtonAppearance: 'surfaceTertiary',
|
|
83
86
|
primaryButtonLabelTextSize: 'l',
|
|
84
87
|
primaryButtonShape: 'rounded',
|
|
85
88
|
primaryButtonSize: 'xxl',
|
|
@@ -90,15 +93,14 @@ var responseAppearance = {
|
|
|
90
93
|
secondaryButtonSize: 'xxl',
|
|
91
94
|
secondaryButtonWidth: 'fill',
|
|
92
95
|
titleTextColor: 'surfaceTextPrimary',
|
|
93
|
-
titleTextSize: '
|
|
96
|
+
titleTextSize: 'xxl',
|
|
94
97
|
titleTextWeight: 400,
|
|
95
98
|
},
|
|
96
|
-
|
|
97
|
-
svgSrc: img$1,
|
|
99
|
+
error: {
|
|
98
100
|
messageTextColor: 'surfaceTextPrimary',
|
|
99
101
|
messageTextSize: 'm',
|
|
100
|
-
messageTextWeight:
|
|
101
|
-
primaryButtonAppearance: '
|
|
102
|
+
messageTextWeight: 400,
|
|
103
|
+
primaryButtonAppearance: 'secondary',
|
|
102
104
|
primaryButtonLabelTextSize: 'l',
|
|
103
105
|
primaryButtonShape: 'rounded',
|
|
104
106
|
primaryButtonSize: 'xxl',
|
|
@@ -108,16 +110,16 @@ var responseAppearance = {
|
|
|
108
110
|
secondaryButtonShape: 'rounded',
|
|
109
111
|
secondaryButtonSize: 'xxl',
|
|
110
112
|
secondaryButtonWidth: 'fill',
|
|
113
|
+
svgSrc: img$6,
|
|
111
114
|
titleTextColor: 'surfaceTextPrimary',
|
|
112
|
-
titleTextSize: '
|
|
115
|
+
titleTextSize: 'xxl',
|
|
113
116
|
titleTextWeight: 400,
|
|
114
117
|
},
|
|
115
|
-
|
|
116
|
-
svgSrc: img,
|
|
118
|
+
fail: {
|
|
117
119
|
messageTextColor: 'surfaceTextPrimary',
|
|
118
120
|
messageTextSize: 'm',
|
|
119
|
-
messageTextWeight:
|
|
120
|
-
primaryButtonAppearance: '
|
|
121
|
+
messageTextWeight: 400,
|
|
122
|
+
primaryButtonAppearance: 'surfaceTertiary',
|
|
121
123
|
primaryButtonLabelTextSize: 'l',
|
|
122
124
|
primaryButtonShape: 'rounded',
|
|
123
125
|
primaryButtonSize: 'xxl',
|
|
@@ -127,15 +129,15 @@ var responseAppearance = {
|
|
|
127
129
|
secondaryButtonShape: 'rounded',
|
|
128
130
|
secondaryButtonSize: 'xxl',
|
|
129
131
|
secondaryButtonWidth: 'fill',
|
|
132
|
+
svgSrc: img$5,
|
|
130
133
|
titleTextColor: 'surfaceTextPrimary',
|
|
131
|
-
titleTextSize: '
|
|
134
|
+
titleTextSize: 'xxl',
|
|
132
135
|
titleTextWeight: 400,
|
|
133
136
|
},
|
|
134
|
-
|
|
135
|
-
svgSrc: img$4,
|
|
137
|
+
refresh: {
|
|
136
138
|
messageTextColor: 'surfaceTextPrimary',
|
|
137
139
|
messageTextSize: 'm',
|
|
138
|
-
messageTextWeight:
|
|
140
|
+
messageTextWeight: 400,
|
|
139
141
|
primaryButtonAppearance: 'surfaceTertiary',
|
|
140
142
|
primaryButtonLabelTextSize: 'l',
|
|
141
143
|
primaryButtonShape: 'rounded',
|
|
@@ -146,17 +148,36 @@ var responseAppearance = {
|
|
|
146
148
|
secondaryButtonShape: 'rounded',
|
|
147
149
|
secondaryButtonSize: 'xxl',
|
|
148
150
|
secondaryButtonWidth: 'fill',
|
|
151
|
+
svgSrc: img$3,
|
|
149
152
|
titleTextColor: 'surfaceTextPrimary',
|
|
150
|
-
titleTextSize: '
|
|
153
|
+
titleTextSize: 'xxl',
|
|
151
154
|
titleTextWeight: 400,
|
|
152
155
|
},
|
|
153
|
-
|
|
154
|
-
|
|
156
|
+
off: {
|
|
157
|
+
messageTextColor: 'surfaceTextPrimary',
|
|
158
|
+
messageTextSize: 'm',
|
|
159
|
+
messageTextWeight: 400,
|
|
160
|
+
primaryButtonAppearance: 'success',
|
|
161
|
+
primaryButtonLabelTextSize: 'l',
|
|
162
|
+
primaryButtonShape: 'rounded',
|
|
163
|
+
primaryButtonSize: 'xxl',
|
|
164
|
+
primaryButtonWidth: 'fill',
|
|
165
|
+
secondaryButtonAppearance: 'secondary',
|
|
166
|
+
secondaryButtonLabelTextSize: 'l',
|
|
167
|
+
secondaryButtonShape: 'rounded',
|
|
168
|
+
secondaryButtonSize: 'xxl',
|
|
169
|
+
secondaryButtonWidth: 'fill',
|
|
155
170
|
svgFill: 'errorPrimary',
|
|
156
171
|
svgPathFill: 'surfaceItemTertiary',
|
|
172
|
+
svgSrc: img$4,
|
|
173
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
174
|
+
titleTextSize: 'xxl',
|
|
175
|
+
titleTextWeight: 400,
|
|
176
|
+
},
|
|
177
|
+
search: {
|
|
157
178
|
messageTextColor: 'surfaceTextPrimary',
|
|
158
179
|
messageTextSize: 'm',
|
|
159
|
-
messageTextWeight:
|
|
180
|
+
messageTextWeight: 400,
|
|
160
181
|
primaryButtonAppearance: 'surfaceTertiary',
|
|
161
182
|
primaryButtonLabelTextSize: 'l',
|
|
162
183
|
primaryButtonShape: 'rounded',
|
|
@@ -167,16 +188,18 @@ var responseAppearance = {
|
|
|
167
188
|
secondaryButtonShape: 'rounded',
|
|
168
189
|
secondaryButtonSize: 'xxl',
|
|
169
190
|
secondaryButtonWidth: 'fill',
|
|
191
|
+
svgFill: 'errorPrimary',
|
|
192
|
+
svgPathFill: 'surfaceItemTertiary',
|
|
193
|
+
svgSrc: img$2,
|
|
170
194
|
titleTextColor: 'surfaceTextPrimary',
|
|
171
|
-
titleTextSize: '
|
|
195
|
+
titleTextSize: 'xxl',
|
|
172
196
|
titleTextWeight: 400,
|
|
173
197
|
},
|
|
174
|
-
|
|
175
|
-
svgSrc: img$6,
|
|
198
|
+
success: {
|
|
176
199
|
messageTextColor: 'surfaceTextPrimary',
|
|
177
200
|
messageTextSize: 'm',
|
|
178
|
-
messageTextWeight:
|
|
179
|
-
primaryButtonAppearance: '
|
|
201
|
+
messageTextWeight: 400,
|
|
202
|
+
primaryButtonAppearance: 'accent',
|
|
180
203
|
primaryButtonLabelTextSize: 'l',
|
|
181
204
|
primaryButtonShape: 'rounded',
|
|
182
205
|
primaryButtonSize: 'xxl',
|
|
@@ -186,16 +209,16 @@ var responseAppearance = {
|
|
|
186
209
|
secondaryButtonShape: 'rounded',
|
|
187
210
|
secondaryButtonSize: 'xxl',
|
|
188
211
|
secondaryButtonWidth: 'fill',
|
|
212
|
+
svgSrc: img$1,
|
|
189
213
|
titleTextColor: 'surfaceTextPrimary',
|
|
190
|
-
titleTextSize: '
|
|
214
|
+
titleTextSize: 'xxl',
|
|
191
215
|
titleTextWeight: 400,
|
|
192
216
|
},
|
|
193
|
-
|
|
194
|
-
svgSrc: img$3,
|
|
217
|
+
warning: {
|
|
195
218
|
messageTextColor: 'surfaceTextPrimary',
|
|
196
219
|
messageTextSize: 'm',
|
|
197
|
-
messageTextWeight:
|
|
198
|
-
primaryButtonAppearance: '
|
|
220
|
+
messageTextWeight: 400,
|
|
221
|
+
primaryButtonAppearance: 'primary',
|
|
199
222
|
primaryButtonLabelTextSize: 'l',
|
|
200
223
|
primaryButtonShape: 'rounded',
|
|
201
224
|
primaryButtonSize: 'xxl',
|
|
@@ -205,8 +228,9 @@ var responseAppearance = {
|
|
|
205
228
|
secondaryButtonShape: 'rounded',
|
|
206
229
|
secondaryButtonSize: 'xxl',
|
|
207
230
|
secondaryButtonWidth: 'fill',
|
|
231
|
+
svgSrc: img,
|
|
208
232
|
titleTextColor: 'surfaceTextPrimary',
|
|
209
|
-
titleTextSize: '
|
|
233
|
+
titleTextSize: 'xxl',
|
|
210
234
|
titleTextWeight: 400,
|
|
211
235
|
},
|
|
212
236
|
};
|
|
@@ -222,7 +246,7 @@ function Response(props) {
|
|
|
222
246
|
// @ts-expect-error
|
|
223
247
|
var appearanceConfig = responseConfig.appearance && responseConfig.appearance[appearance];
|
|
224
248
|
var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
225
|
-
var borderColorClass = classGenerator.borderColorClass, borderColorHoverClass = classGenerator.borderColorHoverClass, borderTypeClass = classGenerator.borderTypeClass, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, shapeClass = classGenerator.shapeClass, svgFillClass = classGenerator.svgFillClass, svgPathFillClass = classGenerator.svgPathFillClass;
|
|
249
|
+
var borderColorClass = classGenerator.borderColorClass, borderColorHoverClass = classGenerator.borderColorHoverClass, borderTypeClass = classGenerator.borderTypeClass, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, shapeClass = classGenerator.shapeClass, svgFillClass = classGenerator.svgFillClass, svgPathFillClass = classGenerator.svgPathFillClass, textAlignClass = classGenerator.textAlignClass;
|
|
226
250
|
var ImageComponent = useMemo(function () {
|
|
227
251
|
var src = imageSrc || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.imageSrc) || svgSrc || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.svgSrc);
|
|
228
252
|
var Image = SvgImage || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.SvgImage);
|
|
@@ -250,8 +274,8 @@ function Response(props) {
|
|
|
250
274
|
return null;
|
|
251
275
|
}, [imageSrc, appearanceConfig, SvgImage, width, height, svgFillClass]);
|
|
252
276
|
// @ts-expect-error
|
|
253
|
-
var
|
|
254
|
-
return (jsxs("div", { className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), set && "response_set_".concat(set)), style: responseStyles, children: [before, jsx("div", { className: clsx('response__image', svgFillClass && "svg_fill_".concat(svgFillClass), svgPathFillClass && "svg_path_fill_".concat(svgPathFillClass)), children: ImageComponent }), jsxs(Group, { className:
|
|
277
|
+
var _a = useStyles(props), responseStyles = _a.styles, wrapperStyles = _a.wrapper;
|
|
278
|
+
return (jsxs("div", { className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), set && "response_set_".concat(set)), style: responseStyles, children: [before, jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [jsx("div", { className: clsx('response__image', svgFillClass && "svg_fill_".concat(svgFillClass), svgPathFillClass && "svg_path_fill_".concat(svgPathFillClass)), children: ImageComponent }), jsxs(Group, { className: clsx('response__desc', textAlignClass && "text-align_".concat(textAlignClass)), width: "fill", children: [title && (jsx(Text, { className: "response__title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.titleTextSize) || 'xxl', textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.titleTextColor), textWeight: titleTextWeight || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.titleTextWeight) || '400', children: title })), message && (jsx(Text, { className: "response__message", size: messageTextSize || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.messageTextSize) || 'm', textColor: messageTextColor || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.messageTextColor), textWeight: messageTextWeight || (appearanceConfig === null || appearanceConfig === undefined ? undefined : appearanceConfig.messageTextWeight), children: message }))] })] }), (primaryButtonLabel ||
|
|
255
279
|
primaryButton ||
|
|
256
280
|
secondaryButtonLabel ||
|
|
257
281
|
secondaryButton ||
|
|
@@ -152,7 +152,7 @@ var selectConfig = {
|
|
|
152
152
|
},
|
|
153
153
|
};
|
|
154
154
|
var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
155
|
-
var elevation = props.elevation, isClearable = props.isClearable, isCreatable = props.isCreatable, isDisabled = props.isDisabled, isLoading = props.isLoading, isMulti = props.isMulti, isSearchable = props.isSearchable, after = props.after, appearance = props.appearance, badgeAppearance = props.badgeAppearance, badgeSize = props.badgeSize, badgeTextSize = props.badgeTextSize, before = props.before, className = props.className, clearIcon = props.clearIcon, clearIconFill = props.clearIconFill, closeMenuOnSelect = props.closeMenuOnSelect, defaultValue = props.defaultValue, dividerDirection = props.dividerDirection, dividerFill = props.dividerFill, dividerSize = props.dividerSize, dropdownFillHover = props.dropdownFillHover, dropdownIcon = props.dropdownIcon, dropdownIconFill = props.dropdownIconFill, dropdownIconShape = props.dropdownIconShape, filterOption = props.filterOption, hideSelectedOptions = props.hideSelectedOptions, hideValueContainer = props.hideValueContainer, initialValue = props.initialValue, inputAfter = props.inputAfter, inputBefore = props.inputBefore, instanceId = props.instanceId, loadingMessage = props.loadingMessage, menuAfter = props.menuAfter, menuBefore = props.menuBefore, menuIsOpen = props.menuIsOpen, menuItemSize = props.menuItemSize, multipleItemFill = props.multipleItemFill, multipleItemFillHover = props.multipleItemFillHover, multipleItemIcon = props.multipleItemIcon, multipleItemIconFill = props.multipleItemIconFill, noOptionsSearchText = props.noOptionsSearchText, noOptionsText = props.noOptionsText, openMenuOnClick = props.openMenuOnClick, optionAfter = props.optionAfter, optionBefore = props.optionBefore, options = props.options, optionSelected = props.optionSelected, placeholder = props.placeholder, placeholderTextColor = props.placeholderTextColor, placeholderTextSize = props.placeholderTextSize, set = props.set, showBadge = props.showBadge, showDivider = props.showDivider, value = props.value, onChange = props.onChange, onInputChange = props.onInputChange;
|
|
155
|
+
var width = props.width, minWidth = props.minWidth, elevation = props.elevation, isClearable = props.isClearable, isCreatable = props.isCreatable, isDisabled = props.isDisabled, isLoading = props.isLoading, isMulti = props.isMulti, isSearchable = props.isSearchable, after = props.after, appearance = props.appearance, badgeAppearance = props.badgeAppearance, badgeSize = props.badgeSize, badgeTextSize = props.badgeTextSize, before = props.before, className = props.className, clearIcon = props.clearIcon, clearIconFill = props.clearIconFill, closeMenuOnSelect = props.closeMenuOnSelect, defaultValue = props.defaultValue, dividerDirection = props.dividerDirection, dividerFill = props.dividerFill, dividerSize = props.dividerSize, dropdownFillHover = props.dropdownFillHover, dropdownIcon = props.dropdownIcon, dropdownIconFill = props.dropdownIconFill, dropdownIconShape = props.dropdownIconShape, filterOption = props.filterOption, hideSelectedOptions = props.hideSelectedOptions, hideValueContainer = props.hideValueContainer, initialValue = props.initialValue, inputAfter = props.inputAfter, inputBefore = props.inputBefore, instanceId = props.instanceId, loadingMessage = props.loadingMessage, menuAfter = props.menuAfter, menuBefore = props.menuBefore, menuIsOpen = props.menuIsOpen, menuItemSize = props.menuItemSize, multipleItemFill = props.multipleItemFill, multipleItemFillHover = props.multipleItemFillHover, multipleItemIcon = props.multipleItemIcon, multipleItemIconFill = props.multipleItemIconFill, noOptionsSearchText = props.noOptionsSearchText, noOptionsText = props.noOptionsText, openMenuOnClick = props.openMenuOnClick, optionAfter = props.optionAfter, optionBefore = props.optionBefore, options = props.options, optionSelected = props.optionSelected, placeholder = props.placeholder, placeholderTextColor = props.placeholderTextColor, placeholderTextSize = props.placeholderTextSize, set = props.set, showBadge = props.showBadge, showDivider = props.showDivider, value = props.value, onChange = props.onChange, onInputChange = props.onInputChange;
|
|
156
156
|
var defaultRef = useRef(null);
|
|
157
157
|
var selectRef = ref || defaultRef;
|
|
158
158
|
// React-select wait function as "loadingMessage" property
|
|
@@ -182,7 +182,22 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
|
182
182
|
}
|
|
183
183
|
};
|
|
184
184
|
}, []);
|
|
185
|
-
var clearStyle = useMemo(function () {
|
|
185
|
+
var clearStyle = useMemo(function () {
|
|
186
|
+
return new Proxy({
|
|
187
|
+
container: {
|
|
188
|
+
width: width,
|
|
189
|
+
minWidth: minWidth,
|
|
190
|
+
},
|
|
191
|
+
}, {
|
|
192
|
+
get: function (target, prop) {
|
|
193
|
+
if (prop in target) {
|
|
194
|
+
return function () { return target[prop]; };
|
|
195
|
+
}
|
|
196
|
+
return function () { };
|
|
197
|
+
},
|
|
198
|
+
});
|
|
199
|
+
}, []);
|
|
200
|
+
// @ts-expect-error
|
|
186
201
|
var appearanceConfig = (selectConfig.appearance && selectConfig.appearance[appearance]) || {};
|
|
187
202
|
var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
188
203
|
var borderColorClass = classGenerator.borderColorClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, headingFillClass = classGenerator.headingFillClass, headingFillHoverClass = classGenerator.headingFillHoverClass, headingTextColorClass = classGenerator.headingTextColorClass, headingTextSizeClass = classGenerator.headingTextSizeClass, headingTextWeightClass = classGenerator.headingTextWeightClass, inputBorderColorClass = classGenerator.inputBorderColorClass, inputBorderColorHoverClass = classGenerator.inputBorderColorHoverClass, inputCaretColorClass = classGenerator.inputCaretColorClass, inputFillClass = classGenerator.inputFillClass, inputShapeClass = classGenerator.inputShapeClass, inputTextColorClass = classGenerator.inputTextColorClass, inputTextSizeClass = classGenerator.inputTextSizeClass, multipleItemTextColorClass = classGenerator.multipleItemTextColorClass, multipleItemTextSizeClass = classGenerator.multipleItemTextSizeClass, noOptionsTextColorClass = classGenerator.noOptionsTextColorClass, noOptionsTextSizeClass = classGenerator.noOptionsTextSizeClass, optionBorderClass = classGenerator.optionBorderClass, optionBorderTypeClass = classGenerator.optionBorderTypeClass, optionFillClass = classGenerator.optionFillClass, optionFillHoverClass = classGenerator.optionFillHoverClass, optionShapeClass = classGenerator.optionShapeClass, optionTextColorClass = classGenerator.optionTextColorClass, optionTextSizeClass = classGenerator.optionTextSizeClass, shapeClass = classGenerator.shapeClass, sizeClass = classGenerator.sizeClass;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.checkmark {
|
|
2
|
+
border-radius: 100px;
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
&__svg {
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
& .icon__item {
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
14
|
+
& > svg {
|
|
15
|
+
width: 70%;
|
|
16
|
+
height: 70%;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.checkmark {
|
|
22
|
+
&_size {
|
|
23
|
+
@each $size in xxs, xs, s, m, l, xl, xxl {
|
|
24
|
+
&_$(size) {
|
|
25
|
+
min-width: var(--checkmark-width-size-$(size));
|
|
26
|
+
min-height: var(--checkmark-height-size-$(size));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -57,13 +57,17 @@
|
|
|
57
57
|
&_set {
|
|
58
58
|
&_form {
|
|
59
59
|
width: 100%;
|
|
60
|
+
padding: var(--notification-item-set-form-padding, 0);
|
|
60
61
|
border-radius: var(--notification-item-set-form-border-radius, 8px);
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
gap: var(--notification-item-set-form-gap, 0);
|
|
61
65
|
^^&-wrapper {
|
|
62
66
|
text-align: left;
|
|
63
|
-
padding: var(--notification-item-set-form-padding, 12px 16px);
|
|
67
|
+
padding: var(--notification-item-set-form-wrapper-padding, 12px 16px);
|
|
64
68
|
display: flex;
|
|
65
69
|
flex-direction: column;
|
|
66
|
-
gap: 4px;
|
|
70
|
+
gap: var(--notification-item-set-form-wrapper-gap, 4px);
|
|
67
71
|
}
|
|
68
72
|
}
|
|
69
73
|
}
|
|
@@ -2,13 +2,17 @@
|
|
|
2
2
|
&_set {
|
|
3
3
|
&_form {
|
|
4
4
|
width: 100%;
|
|
5
|
+
padding: var(--notification-item-set-form-padding, 0);
|
|
5
6
|
border-radius: var(--notification-item-set-form-border-radius, 8px);
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: var(--notification-item-set-form-gap, 0);
|
|
6
10
|
^^&-wrapper {
|
|
7
11
|
text-align: left;
|
|
8
|
-
padding: var(--notification-item-set-form-padding, 12px 16px);
|
|
12
|
+
padding: var(--notification-item-set-form-wrapper-padding, 12px 16px);
|
|
9
13
|
display: flex;
|
|
10
14
|
flex-direction: column;
|
|
11
|
-
gap: 4px;
|
|
15
|
+
gap: var(--notification-item-set-form-wrapper-gap, 4px);
|
|
12
16
|
}
|
|
13
17
|
}
|
|
14
18
|
}
|
|
@@ -75,13 +75,13 @@
|
|
|
75
75
|
border: solid 1px var(--paginator-item-active-border);
|
|
76
76
|
&&_state {
|
|
77
77
|
&_active {
|
|
78
|
-
|
|
79
|
-
color: var(--paginator-item-active-text);
|
|
80
|
-
}
|
|
81
|
-
background: var(--color-accent-primary);
|
|
78
|
+
background: var(--paginator-item-active-background, var(--color-accent-primary));
|
|
82
79
|
&:hover {
|
|
83
80
|
background: var(--paginator-item-active-fill-hover);
|
|
84
81
|
}
|
|
82
|
+
^^&-link {
|
|
83
|
+
color: var(--paginator-item-active-text);
|
|
84
|
+
}
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
border: solid 1px var(--paginator-item-active-border);
|
|
4
4
|
&&_state {
|
|
5
5
|
&_active {
|
|
6
|
-
|
|
7
|
-
color: var(--paginator-item-active-text);
|
|
8
|
-
}
|
|
9
|
-
background: var(--color-accent-primary);
|
|
6
|
+
background: var(--paginator-item-active-background, var(--color-accent-primary));
|
|
10
7
|
&:hover {
|
|
11
8
|
background: var(--paginator-item-active-fill-hover);
|
|
12
9
|
}
|
|
10
|
+
^^&-link {
|
|
11
|
+
color: var(--paginator-item-active-text);
|
|
12
|
+
}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -3,13 +3,21 @@
|
|
|
3
3
|
flex-flow: column nowrap;
|
|
4
4
|
justify-content: center;
|
|
5
5
|
align-items: center;
|
|
6
|
-
|
|
6
|
+
&__wrapper {
|
|
7
|
+
width: 100%;
|
|
8
|
+
padding: 24px;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: 24px;
|
|
14
|
+
}
|
|
7
15
|
&__desc {
|
|
8
16
|
display: flex;
|
|
9
17
|
flex-direction: column;
|
|
10
18
|
justify-content: center;
|
|
11
19
|
align-items: center;
|
|
12
|
-
gap:
|
|
20
|
+
gap: 8px;
|
|
13
21
|
}
|
|
14
22
|
&__button {
|
|
15
23
|
display: flex;
|
package/dist/stories/Avatar.mdx
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import 'types';
|
|
2
|
+
import { ElementType } from 'react';
|
|
3
|
+
import { tBorderColorProps, tBorderWidthProps, tFillProps, tSizeProps } from 'types';
|
|
4
|
+
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
5
|
+
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
6
|
+
export interface iCheckmarkThemeColor {
|
|
7
|
+
[key: number | string | symbol]: any;
|
|
8
|
+
borderColor?: tBorderColorProps;
|
|
9
|
+
borderWidth?: tBorderWidthProps;
|
|
10
|
+
fill?: tFillProps;
|
|
11
|
+
size?: tSizeProps;
|
|
12
|
+
}
|
|
13
|
+
type tAppearanceKeys = tAppearanceKeysDefault & {};
|
|
14
|
+
export type tCheckmarkAppearance = {
|
|
15
|
+
[key in tAppearanceKeysDefault]?: iCheckmarkThemeColor;
|
|
16
|
+
};
|
|
17
|
+
export interface iCheckmarkConfig {
|
|
18
|
+
[key: number | string | symbol]: any;
|
|
19
|
+
appearance: tCheckmarkAppearance | undefined;
|
|
20
|
+
setAppearance: (newComponent: tCheckmarkAppearance) => void;
|
|
21
|
+
}
|
|
22
|
+
export interface iCheckmarkProps extends iCheckmarkThemeColor, iStyleAttributes {
|
|
23
|
+
[key: number | string | symbol]: any;
|
|
24
|
+
appearance?: tAppearanceKeys;
|
|
25
|
+
className?: string;
|
|
26
|
+
iconChecked: ElementType;
|
|
27
|
+
isDisabled?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { tFillProps, tSizeProps, tTextColorProps, tTextSizeProps,
|
|
2
|
+
import { tFillProps, tSizeProps, tTextColorProps, tTextSizeProps, tWidthProps } from 'types';
|
|
3
3
|
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
4
4
|
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
5
5
|
export interface iNotificationItemThemeColor {
|
|
@@ -9,7 +9,7 @@ export interface iNotificationItemThemeColor {
|
|
|
9
9
|
textColor?: tTextColorProps;
|
|
10
10
|
textSize?: tTextSizeProps;
|
|
11
11
|
titleTextColor?: tTextColorProps;
|
|
12
|
-
titleTextSize?:
|
|
12
|
+
titleTextSize?: tTextSizeProps;
|
|
13
13
|
width?: tWidthProps;
|
|
14
14
|
}
|
|
15
15
|
type tAppearanceKeys = tAppearanceKeysDefault & {};
|
|
@@ -39,7 +39,7 @@ export interface iNotificationItemProps extends iStyleAttributes {
|
|
|
39
39
|
textSize?: tTextSizeProps;
|
|
40
40
|
title?: string;
|
|
41
41
|
titleTextColor?: tTextColorProps;
|
|
42
|
-
titleTextSize?:
|
|
42
|
+
titleTextSize?: tTextSizeProps;
|
|
43
43
|
type?: string;
|
|
44
44
|
onClickClose?: (id?: number | string) => void;
|
|
45
45
|
set?: string;
|