@itcase/ui 1.8.33 → 1.8.34
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/{DatePicker_cjs_CJl9V32f.js → DatePicker_cjs_C-VbK2J4.js} +1 -1
- package/dist/{DatePicker_es_C2Pi6aB-.js → DatePicker_es_CIEHQyHC.js} +1 -1
- package/dist/{Label_cjs_CZMMdwt5.js → Label_cjs_BWbVsB-u.js} +3 -3
- package/dist/{Label_es_DmDqs4Rc.js → Label_es_ouC2i_iI.js} +3 -3
- package/dist/cjs/components/Cell.js +1 -1
- package/dist/cjs/components/Choice/stories/__mock__.js +15 -15
- package/dist/cjs/components/Choice.js +33 -28
- package/dist/cjs/components/DatePeriod.js +2 -2
- package/dist/cjs/components/DatePicker.js +2 -2
- package/dist/cjs/components/Dropdown/stories/__mock__.js +2 -2
- package/dist/cjs/components/Label.js +1 -1
- package/dist/cjs/components/MenuItem.js +11 -6
- package/dist/cjs/components/Notification/stories/__mock__.js +4 -0
- package/dist/cjs/components/Notification.js +27 -9
- package/dist/cjs/components/Pagination.js +18 -9
- package/dist/cjs/components/Segmented/stories/__mock__.js +38 -0
- package/dist/cjs/components/Segmented.js +12 -9
- package/dist/components/Cell.js +1 -1
- package/dist/components/Choice/stories/__mock__.js +16 -16
- package/dist/components/Choice.js +33 -28
- package/dist/components/DatePeriod.js +2 -2
- package/dist/components/DatePicker.js +2 -2
- package/dist/components/Dropdown/stories/__mock__.js +2 -2
- package/dist/components/Label.js +1 -1
- package/dist/components/MenuItem.js +11 -6
- package/dist/components/Notification/stories/__mock__.js +4 -0
- package/dist/components/Notification.js +27 -9
- package/dist/components/Pagination.js +19 -10
- package/dist/components/Segmented/stories/__mock__.js +36 -0
- package/dist/components/Segmented.js +12 -9
- package/dist/css/components/Notification/Notification.css +23 -0
- package/dist/css/components/Pagination/Pagination.css +19 -6
- package/dist/css/components/Segmented/Segmented.css +24 -0
- package/dist/stories/CellOverview.mdx +3 -2
- package/dist/stories/DatePeriodPlayground.mdx +2 -2
- package/dist/stories/RangeSliderOverview.mdx +0 -3
- package/dist/stories/VideoOverview.mdx +2 -10
- package/dist/stories/VideoPlayground.mdx +2 -2
- package/dist/types/components/Choice/appearance/choiceDefault.d.ts +7 -0
- package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +7 -0
- package/dist/types/components/Choice/appearance/choiceRequire.d.ts +6 -0
- package/dist/types/components/Choice/appearance/choiceStyle.d.ts +4 -0
- package/dist/types/components/Choice/appearance/choiceSuccess.d.ts +6 -0
- package/dist/types/components/Choice/stories/__mock__/index.d.ts +9 -3
- package/dist/types/components/Label/appearance/labelInfo.d.ts +1 -1
- package/dist/types/components/MenuItem/appearance/menuItemAccent.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemError.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +6 -4
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +1 -0
- package/dist/types/components/Notification/appearance/notificationInfo.d.ts +17 -0
- package/dist/types/components/Notification/appearance/notificationStyle.d.ts +4 -4
- package/dist/types/components/Notification/stories/__mock__/index.d.ts +1 -0
- package/dist/types/components/Pagination/appearance/paginationSize.d.ts +12 -0
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +0 -5
- package/dist/types/components/Segmented/Segmented.interface.d.ts +1 -0
- package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +1 -1
- package/dist/types/components/Segmented/stories/__mock__/index.d.ts +17 -0
- package/package.json +5 -5
- package/dist/types/components/Choice/appearance/choiceSurface.d.ts +0 -25
|
@@ -11,7 +11,7 @@ var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
|
11
11
|
var Button = require('./Button_cjs_CW6ENTbm.js');
|
|
12
12
|
var Tooltip = require('./Tooltip_cjs_DinScDnC.js');
|
|
13
13
|
var Input = require('./Input_cjs_arr_wxD2.js');
|
|
14
|
-
var Label = require('./
|
|
14
|
+
var Label = require('./Label_cjs_BWbVsB-u.js');
|
|
15
15
|
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
16
16
|
var _default = require('@itcase/icons/default');
|
|
17
17
|
|
|
@@ -9,7 +9,7 @@ import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
|
9
9
|
import { B as Button } from './Button_es_DTUagqgU.js';
|
|
10
10
|
import { I as Icon } from './Tooltip_es_B0nm9irO.js';
|
|
11
11
|
import { I as Input } from './Input_es_BW6cZThr.js';
|
|
12
|
-
import { L as Label } from './
|
|
12
|
+
import { L as Label } from './Label_es_ouC2i_iI.js';
|
|
13
13
|
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
14
14
|
import { icons14 } from '@itcase/icons/default';
|
|
15
15
|
|
|
@@ -113,7 +113,7 @@ var labelAppearanceError = {
|
|
|
113
113
|
};
|
|
114
114
|
|
|
115
115
|
var labelAppearanceInfo = {
|
|
116
|
-
|
|
116
|
+
infoMutedPrimary: {
|
|
117
117
|
fill: 'infoMuted',
|
|
118
118
|
labelTextColor: 'infoMutedTextPrimary',
|
|
119
119
|
labelTextColorHover: 'infoMutedTextPrimary',
|
|
@@ -373,10 +373,10 @@ function Label(props) {
|
|
|
373
373
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = labelConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
374
374
|
}, {});
|
|
375
375
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
376
|
-
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass,
|
|
376
|
+
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, tooltipAlignment = propsGenerator.tooltipAlignment, tooltipAppearance = propsGenerator.tooltipAppearance, tooltipArrowPosition = propsGenerator.tooltipArrowPosition, tooltipContent = propsGenerator.tooltipContent, tooltipText = propsGenerator.tooltipText, tooltipTextSize = propsGenerator.tooltipTextSize, tooltipTitle = propsGenerator.tooltipTitle, tooltipTitleSize = propsGenerator.tooltipTitleSize, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
377
377
|
// @ts-expect-error
|
|
378
378
|
var labelStyles = useStyles.useStyles(props).styles;
|
|
379
|
-
return (jsxRuntime.jsxs("div", { className: clsx(className, 'label', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "label_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "label_size_".concat(sizeClass), wrapClass && "'word-wrap_".concat(wrapClass), widthClass && "label_width_".concat(widthClass), alignDirectionClass && "
|
|
379
|
+
return (jsxRuntime.jsxs("div", { className: clsx(className, 'label', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "label_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "label_size_".concat(sizeClass), wrapClass && "'word-wrap_".concat(wrapClass), widthClass && "label_width_".concat(widthClass), alignDirectionClass && "".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), type && "label_type_".concat(type), mode && "label_mode_".concat(mode), isSkeleton && "label_skeleton", onClick && (cursor || 'cursor_type_pointer')), "data-tour": dataTour, style: labelStyles, onClick: onClick, onMouseEnter: onMouseEnterLabel, onMouseLeave: onMouseLeaveLabel, children: [before, (iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: clsx('label__icon_before'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), jsxRuntime.jsxs("div", { className: "label__inner", children: [typeof label === 'string' ? (jsxRuntime.jsx(Text.Text, { className: "label__text", size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })) : (jsxRuntime.jsx("div", { className: "label__text", children: label })), children, showTooltip && (jsxRuntime.jsx(Tooltip.Tooltip, { className: "label__tooltip", appearance: tooltipAppearance, alignment: tooltipAlignment, title: tooltipTitle, titleSize: tooltipTitleSize, text: tooltipText, textSize: tooltipTextSize, arrowPosition: tooltipArrowPosition, ref: tooltipRef, children: tooltipContent }))] }), (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Tooltip.Icon, { className: clsx('label__icon_after'), fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), after] }));
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
exports.Label = Label;
|
|
@@ -111,7 +111,7 @@ var labelAppearanceError = {
|
|
|
111
111
|
};
|
|
112
112
|
|
|
113
113
|
var labelAppearanceInfo = {
|
|
114
|
-
|
|
114
|
+
infoMutedPrimary: {
|
|
115
115
|
fill: 'infoMuted',
|
|
116
116
|
labelTextColor: 'infoMutedTextPrimary',
|
|
117
117
|
labelTextColorHover: 'infoMutedTextPrimary',
|
|
@@ -371,10 +371,10 @@ function Label(props) {
|
|
|
371
371
|
return (__assign(__assign({}, resultConfig), (_a = labelConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
372
372
|
}, {});
|
|
373
373
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
374
|
-
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass,
|
|
374
|
+
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, tooltipAlignment = propsGenerator.tooltipAlignment, tooltipAppearance = propsGenerator.tooltipAppearance, tooltipArrowPosition = propsGenerator.tooltipArrowPosition, tooltipContent = propsGenerator.tooltipContent, tooltipText = propsGenerator.tooltipText, tooltipTextSize = propsGenerator.tooltipTextSize, tooltipTitle = propsGenerator.tooltipTitle, tooltipTitleSize = propsGenerator.tooltipTitleSize, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
375
375
|
// @ts-expect-error
|
|
376
376
|
var labelStyles = useStyles(props).styles;
|
|
377
|
-
return (jsxs("div", { className: clsx(className, 'label', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "label_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "label_size_".concat(sizeClass), wrapClass && "'word-wrap_".concat(wrapClass), widthClass && "label_width_".concat(widthClass), alignDirectionClass && "
|
|
377
|
+
return (jsxs("div", { className: clsx(className, 'label', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "label_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "label_size_".concat(sizeClass), wrapClass && "'word-wrap_".concat(wrapClass), widthClass && "label_width_".concat(widthClass), alignDirectionClass && "".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), type && "label_type_".concat(type), mode && "label_mode_".concat(mode), isSkeleton && "label_skeleton", onClick && (cursor || 'cursor_type_pointer')), "data-tour": dataTour, style: labelStyles, onClick: onClick, onMouseEnter: onMouseEnterLabel, onMouseLeave: onMouseLeaveLabel, children: [before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('label__icon_before'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), jsxs("div", { className: "label__inner", children: [typeof label === 'string' ? (jsx(Text, { className: "label__text", size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })) : (jsx("div", { className: "label__text", children: label })), children, showTooltip && (jsx(Tooltip, { className: "label__tooltip", appearance: tooltipAppearance, alignment: tooltipAlignment, title: tooltipTitle, titleSize: tooltipTitleSize, text: tooltipText, textSize: tooltipTextSize, arrowPosition: tooltipArrowPosition, ref: tooltipRef, children: tooltipContent }))] }), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: clsx('label__icon_after'), fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter })), after] }));
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
export { Label as L, labelAppearance as a, labelConfig as l };
|
|
@@ -6,7 +6,7 @@ var clsx = require('clsx');
|
|
|
6
6
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
8
8
|
var Tooltip = require('../../Tooltip_cjs_DinScDnC.js');
|
|
9
|
-
var Label = require('../../
|
|
9
|
+
var Label = require('../../Label_cjs_BWbVsB-u.js');
|
|
10
10
|
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
11
11
|
require('react');
|
|
12
12
|
require('lodash/camelCase');
|
|
@@ -9,32 +9,32 @@ var choiceListMock = {
|
|
|
9
9
|
choices: [
|
|
10
10
|
{
|
|
11
11
|
label: 'Label 1',
|
|
12
|
-
iconAfter: _default.
|
|
13
|
-
iconBefore: _default.
|
|
12
|
+
iconAfter: _default.icons24.Placeholder,
|
|
13
|
+
iconBefore: _default.icons24.Placeholder,
|
|
14
14
|
value: 1,
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
label: 'Label 2',
|
|
18
|
-
iconAfter: _default.
|
|
19
|
-
iconBefore: _default.
|
|
18
|
+
iconAfter: _default.icons24.Placeholder,
|
|
19
|
+
iconBefore: _default.icons24.Placeholder,
|
|
20
20
|
value: 2,
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
label: 'Label 3',
|
|
24
|
-
iconAfter: _default.
|
|
25
|
-
iconBefore: _default.
|
|
24
|
+
iconAfter: _default.icons24.Placeholder,
|
|
25
|
+
iconBefore: _default.icons24.Placeholder,
|
|
26
26
|
value: 3,
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
label: 'Label 4',
|
|
30
|
-
iconAfter: _default.
|
|
31
|
-
iconBefore: _default.
|
|
30
|
+
iconAfter: _default.icons24.Placeholder,
|
|
31
|
+
iconBefore: _default.icons24.Placeholder,
|
|
32
32
|
value: 4,
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
label: 'Label 5',
|
|
36
|
-
iconAfter: _default.
|
|
37
|
-
iconBefore: _default.
|
|
36
|
+
iconAfter: _default.icons24.Placeholder,
|
|
37
|
+
iconBefore: _default.icons24.Placeholder,
|
|
38
38
|
value: 5,
|
|
39
39
|
},
|
|
40
40
|
],
|
|
@@ -45,23 +45,23 @@ var choiceListIconMock = {
|
|
|
45
45
|
},
|
|
46
46
|
choices: [
|
|
47
47
|
{
|
|
48
|
-
icon: _default.
|
|
48
|
+
icon: _default.icons24.Placeholder,
|
|
49
49
|
value: 1,
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
|
-
icon: _default.
|
|
52
|
+
icon: _default.icons24.Placeholder,
|
|
53
53
|
value: 2,
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
|
-
icon: _default.
|
|
56
|
+
icon: _default.icons24.Placeholder,
|
|
57
57
|
value: 3,
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
|
-
icon: _default.
|
|
60
|
+
icon: _default.icons24.Placeholder,
|
|
61
61
|
value: 4,
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
icon: _default.
|
|
64
|
+
icon: _default.icons24.Placeholder,
|
|
65
65
|
value: 5,
|
|
66
66
|
},
|
|
67
67
|
],
|
|
@@ -27,20 +27,34 @@ require('../../Link_cjs_DbRGq2Yk.js');
|
|
|
27
27
|
var choiceAppearanceDefault = {
|
|
28
28
|
defaultPrimary: {
|
|
29
29
|
fill: 'surfaceSecondary',
|
|
30
|
+
fillItem: 'surfaceItemSecondary',
|
|
31
|
+
fillItemActive: 'surfaceItemQuaternary',
|
|
32
|
+
fillItemHover: 'surfaceItemHover',
|
|
30
33
|
labelTextColor: 'surfaceTextPrimary',
|
|
31
34
|
borderColor: 'surfaceBorderQuaternary',
|
|
32
35
|
iconAfterFill: 'surfaceItemQuaternary',
|
|
36
|
+
iconAfterFillActive: 'surfaceItemSecondary',
|
|
33
37
|
iconBeforeFill: 'surfaceItemQuaternary',
|
|
38
|
+
iconBeforeFillActive: 'surfaceItemSecondary',
|
|
39
|
+
iconFill: 'surfaceItemQuaternary',
|
|
40
|
+
iconFillActive: 'surfaceItemSecondary',
|
|
34
41
|
},
|
|
35
42
|
};
|
|
36
43
|
|
|
37
44
|
var choiceAppearanceDisabled = {
|
|
38
45
|
disabledPrimary: {
|
|
39
46
|
fill: 'surfaceDisabled',
|
|
47
|
+
fillItem: 'surfaceItemDisabled',
|
|
48
|
+
fillItemActive: 'surfaceItemPrimary',
|
|
49
|
+
fillItemHover: 'surfaceItemHover',
|
|
40
50
|
labelTextColor: 'surfaceTextQuaternary',
|
|
41
51
|
borderColor: 'surfaceBorderPrimary',
|
|
42
52
|
iconAfterFill: 'surfaceItemPrimary',
|
|
53
|
+
iconAfterFillActive: 'surfaceItemDisabled',
|
|
43
54
|
iconBeforeFill: 'surfaceItemPrimary',
|
|
55
|
+
iconBeforeFillActive: 'surfaceItemDisabled',
|
|
56
|
+
iconFill: 'surfaceItemPrimary',
|
|
57
|
+
iconFillActive: 'surfaceItemDisabled',
|
|
44
58
|
},
|
|
45
59
|
};
|
|
46
60
|
|
|
@@ -64,11 +78,17 @@ var choiceAppearanceError = {
|
|
|
64
78
|
var choiceAppearanceRequire = {
|
|
65
79
|
requirePrimary: {
|
|
66
80
|
fill: 'warningTertiary',
|
|
67
|
-
|
|
81
|
+
fillItem: 'warningTertiary',
|
|
82
|
+
fillItemActive: 'warningItemSecondary',
|
|
83
|
+
fillItemHover: 'warningItemHover',
|
|
68
84
|
labelTextColor: 'surfaceTextPrimary',
|
|
69
85
|
borderColor: 'warningBorderSecondary',
|
|
70
86
|
iconAfterFill: 'warningItemSecondary',
|
|
87
|
+
iconAfterFillActive: 'warningTertiary',
|
|
71
88
|
iconBeforeFill: 'warningItemSecondary',
|
|
89
|
+
iconBeforeFillActive: 'warningTertiary',
|
|
90
|
+
iconFill: 'warningItemSecondary',
|
|
91
|
+
iconFillActive: 'warningTertiary',
|
|
72
92
|
},
|
|
73
93
|
};
|
|
74
94
|
|
|
@@ -96,10 +116,14 @@ var choiceAppearanceStyle = {
|
|
|
96
116
|
},
|
|
97
117
|
ghost: {
|
|
98
118
|
fill: 'none',
|
|
119
|
+
fillItem: 'none',
|
|
120
|
+
fillItemActive: 'none',
|
|
99
121
|
borderColor: '0',
|
|
100
122
|
},
|
|
101
123
|
outlined: {
|
|
102
124
|
fill: 'none',
|
|
125
|
+
fillItem: 'none',
|
|
126
|
+
fillItemActive: 'none',
|
|
103
127
|
},
|
|
104
128
|
solid: {
|
|
105
129
|
borderColor: '0',
|
|
@@ -109,40 +133,21 @@ var choiceAppearanceStyle = {
|
|
|
109
133
|
var choiceAppearanceSuccess = {
|
|
110
134
|
successPrimary: {
|
|
111
135
|
fill: 'successTertiary',
|
|
112
|
-
|
|
136
|
+
fillItem: 'successTertiary',
|
|
137
|
+
fillItemActive: 'successItemSecondary',
|
|
138
|
+
fillItemHover: 'accentItemHover',
|
|
113
139
|
labelTextColor: 'surfaceTextPrimary',
|
|
114
140
|
borderColor: 'successBorderSecondary',
|
|
115
141
|
iconAfterFill: 'successItemSecondary',
|
|
142
|
+
iconAfterFillActive: 'successTertiary',
|
|
116
143
|
iconBeforeFill: 'successItemSecondary',
|
|
144
|
+
iconBeforeFillActive: 'successTertiary',
|
|
145
|
+
iconFill: 'successItemSecondary',
|
|
146
|
+
iconFillActive: 'successTertiary',
|
|
117
147
|
},
|
|
118
148
|
};
|
|
119
149
|
|
|
120
|
-
var
|
|
121
|
-
surfacePrimary: {
|
|
122
|
-
fill: 'surfacePrimary',
|
|
123
|
-
fillItem: 'surfaceItemInverse',
|
|
124
|
-
fillItemActive: 'surfaceItemSecondary',
|
|
125
|
-
fillItemActiveHover: 'surfaceItemTertiary',
|
|
126
|
-
fillItemHover: 'surfaceItemSecondary',
|
|
127
|
-
labelTextActiveColor: 'surfaceTextPrimary',
|
|
128
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
129
|
-
labelTextWrap: 'nowrap',
|
|
130
|
-
borderColor: 'surfaceBorderSecondary',
|
|
131
|
-
iconBeforeFill: 'surfaceItemPrimary',
|
|
132
|
-
iconBeforeFillActive: 'surfaceItemPrimary',
|
|
133
|
-
},
|
|
134
|
-
surfaceSecondary: {
|
|
135
|
-
fill: 'surfaceSecondary',
|
|
136
|
-
fillItem: 'surfacePrimary',
|
|
137
|
-
fillItemActive: 'surfacePrimary',
|
|
138
|
-
fillItemHover: 'surfacePrimary',
|
|
139
|
-
labelTextActiveColor: 'surfaceTextPrimary',
|
|
140
|
-
labelTextColor: 'surfaceTextPrimary',
|
|
141
|
-
labelTextWrap: 'nowrap',
|
|
142
|
-
},
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
var choiceAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, choiceAppearanceError), choiceAppearanceDisabled), choiceAppearanceDefault), choiceAppearanceSuccess), choiceAppearanceRequire), choiceAppearanceStyle), choiceAppearanceSize), choiceAppearanceSurface);
|
|
150
|
+
var choiceAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, choiceAppearanceError), choiceAppearanceDisabled), choiceAppearanceDefault), choiceAppearanceSuccess), choiceAppearanceRequire), choiceAppearanceStyle), choiceAppearanceSize);
|
|
146
151
|
|
|
147
152
|
var choiceConfig = {
|
|
148
153
|
appearance: choiceAppearance,
|
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var luxon = require('luxon');
|
|
8
8
|
var common = require('@itcase/common');
|
|
9
|
-
var DatePicker = require('../../
|
|
9
|
+
var DatePicker = require('../../DatePicker_cjs_C-VbK2J4.js');
|
|
10
10
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
11
11
|
var ChipsGroup = require('../../ChipsGroup_cjs_DdWjvr_S.js');
|
|
12
12
|
require('date-fns/locale');
|
|
@@ -29,7 +29,7 @@ require('react-inlinesvg');
|
|
|
29
29
|
require('../../Link_cjs_DbRGq2Yk.js');
|
|
30
30
|
require('../../Loader_cjs_CCrbD8Em.js');
|
|
31
31
|
require('../../Input_cjs_arr_wxD2.js');
|
|
32
|
-
require('../../
|
|
32
|
+
require('../../Label_cjs_BWbVsB-u.js');
|
|
33
33
|
require('@itcase/icons/default');
|
|
34
34
|
require('lodash/castArray');
|
|
35
35
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var DatePicker = require('../../
|
|
3
|
+
var DatePicker = require('../../DatePicker_cjs_C-VbK2J4.js');
|
|
4
4
|
require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
@@ -28,7 +28,7 @@ require('react-inlinesvg');
|
|
|
28
28
|
require('../../Link_cjs_DbRGq2Yk.js');
|
|
29
29
|
require('../../Loader_cjs_CCrbD8Em.js');
|
|
30
30
|
require('../../Input_cjs_arr_wxD2.js');
|
|
31
|
-
require('../../
|
|
31
|
+
require('../../Label_cjs_BWbVsB-u.js');
|
|
32
32
|
require('@itcase/icons/default');
|
|
33
33
|
|
|
34
34
|
|
|
@@ -10,13 +10,13 @@ var dropdownListMock = {
|
|
|
10
10
|
{
|
|
11
11
|
key: 4,
|
|
12
12
|
label: 'Item 4',
|
|
13
|
-
iconBefore: _default.icons24.Placeholder,
|
|
13
|
+
iconBefore: _default.icons24.Placeholder.Default,
|
|
14
14
|
isActive: false,
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
key: 5,
|
|
18
18
|
label: 'Item 5',
|
|
19
|
-
iconAfter: _default.icons24.Placeholder,
|
|
19
|
+
iconAfter: _default.icons24.Placeholder.Default,
|
|
20
20
|
isActive: false,
|
|
21
21
|
},
|
|
22
22
|
{
|
|
@@ -28,6 +28,7 @@ var menuItemAppearanceAccent = {
|
|
|
28
28
|
fill: 'accentPrimary',
|
|
29
29
|
fillHover: 'accentPrimaryHover',
|
|
30
30
|
labelTextColor: 'accentTextPrimary',
|
|
31
|
+
borderColor: 'accentBorderSecondary',
|
|
31
32
|
iconAfterFillIcon: 'accentItemPrimary',
|
|
32
33
|
iconBeforeFillIcon: 'accentItemPrimary',
|
|
33
34
|
},
|
|
@@ -47,6 +48,7 @@ var menuItemAppearanceError = {
|
|
|
47
48
|
fillHover: 'errorPrimaryHover',
|
|
48
49
|
labelTextColor: 'errorTextPrimary',
|
|
49
50
|
labelTextColorHover: 'errorTextPrimary',
|
|
51
|
+
borderColor: 'errorBorderSecondary',
|
|
50
52
|
iconAfterFillIcon: 'errorItemPrimary',
|
|
51
53
|
iconBeforeFillIcon: 'errorItemPrimary',
|
|
52
54
|
},
|
|
@@ -98,15 +100,17 @@ var menuItemAppearanceSize = {
|
|
|
98
100
|
};
|
|
99
101
|
|
|
100
102
|
var menuItemAppearanceStyle = {
|
|
101
|
-
|
|
103
|
+
full: {
|
|
102
104
|
borderColor: 'none',
|
|
103
105
|
},
|
|
104
|
-
|
|
106
|
+
ghost: {
|
|
105
107
|
fill: 'none',
|
|
108
|
+
borderColor: 'none',
|
|
106
109
|
},
|
|
107
|
-
|
|
108
|
-
ghost: {
|
|
110
|
+
outlined: {
|
|
109
111
|
fill: 'none',
|
|
112
|
+
},
|
|
113
|
+
solid: {
|
|
110
114
|
borderColor: 'none',
|
|
111
115
|
},
|
|
112
116
|
};
|
|
@@ -118,6 +122,7 @@ var menuItemAppearanceSurface = {
|
|
|
118
122
|
fillActiveHover: 'surfaceHover',
|
|
119
123
|
fillHover: 'surfaceHover',
|
|
120
124
|
labelTextColor: 'surfaceTextPrimary',
|
|
125
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
121
126
|
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
122
127
|
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
123
128
|
},
|
|
@@ -153,10 +158,10 @@ function MenuItem(props) {
|
|
|
153
158
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = menuItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
154
159
|
}, {});
|
|
155
160
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
156
|
-
var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelStyle = propsGenerator.labelStyle, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveColorDisabled = propsGenerator.labelTextActiveColorDisabled, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextActiveHoverColorDisabled = propsGenerator.labelTextActiveHoverColorDisabled, labelTextColor = propsGenerator.labelTextColor, labelTextColorDisabled = propsGenerator.labelTextColorDisabled, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextHoverColorDisabled = propsGenerator.labelTextHoverColorDisabled, labelTextSize = propsGenerator.labelTextSize, labelWeight = propsGenerator.labelWeight, labelWrap = propsGenerator.labelWrap, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBadgeAppearance = propsGenerator.iconBadgeAppearance, iconBadgeShape = propsGenerator.iconBadgeShape, iconBadgeSize = propsGenerator.iconBadgeSize, iconBadgeTextColor = propsGenerator.iconBadgeTextColor, iconBadgeTextSize = propsGenerator.iconBadgeTextSize, iconBadgeValue = propsGenerator.iconBadgeValue, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
|
|
161
|
+
var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelStyle = propsGenerator.labelStyle, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveColorDisabled = propsGenerator.labelTextActiveColorDisabled, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextActiveHoverColorDisabled = propsGenerator.labelTextActiveHoverColorDisabled, labelTextColor = propsGenerator.labelTextColor, labelTextColorDisabled = propsGenerator.labelTextColorDisabled, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextHoverColorDisabled = propsGenerator.labelTextHoverColorDisabled, labelTextSize = propsGenerator.labelTextSize, labelWeight = propsGenerator.labelWeight, labelWrap = propsGenerator.labelWrap, borderColorClass = propsGenerator.borderColorClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBadgeAppearance = propsGenerator.iconBadgeAppearance, iconBadgeShape = propsGenerator.iconBadgeShape, iconBadgeSize = propsGenerator.iconBadgeSize, iconBadgeTextColor = propsGenerator.iconBadgeTextColor, iconBadgeTextSize = propsGenerator.iconBadgeTextSize, iconBadgeValue = propsGenerator.iconBadgeValue, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
|
|
157
162
|
// @ts-expect-error
|
|
158
163
|
var menuItem = useStyles.useStyles(props).styles;
|
|
159
|
-
return (jsxRuntime.jsx("div", { className: clsx('menu-item', isActive && 'menu-item_state_active', isDisabled && "menu-item_state_disabled", directionClass && "menu-item_direction_".concat(directionClass), className, sizeClass && "menu-item_size_".concat(sizeClass), !isActive
|
|
164
|
+
return (jsxRuntime.jsx("div", { className: clsx('menu-item', isActive && 'menu-item_state_active', isDisabled && "menu-item_state_disabled", directionClass && "menu-item_direction_".concat(directionClass), className, sizeClass && "menu-item_size_".concat(sizeClass), borderColorClass && "border-color_".concat(borderColorClass), !isActive
|
|
160
165
|
? fillClass && "fill_".concat(fillClass)
|
|
161
166
|
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
162
167
|
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
@@ -6,24 +6,28 @@ var notificationsMock = [
|
|
|
6
6
|
title: 'Text 123',
|
|
7
7
|
desc: 'Text 123',
|
|
8
8
|
status: 'error',
|
|
9
|
+
closeByTime: false,
|
|
9
10
|
},
|
|
10
11
|
{
|
|
11
12
|
key: 2,
|
|
12
13
|
title: 'Text 123',
|
|
13
14
|
desc: 'Text 123',
|
|
14
15
|
status: 'warning',
|
|
16
|
+
closeByTime: false,
|
|
15
17
|
},
|
|
16
18
|
{
|
|
17
19
|
key: 3,
|
|
18
20
|
title: 'Text 123',
|
|
19
21
|
desc: 'Text 123',
|
|
20
22
|
status: 'info',
|
|
23
|
+
closeByTime: false,
|
|
21
24
|
},
|
|
22
25
|
{
|
|
23
26
|
key: 4,
|
|
24
27
|
title: 'Text 123',
|
|
25
28
|
desc: 'Text 123',
|
|
26
29
|
status: 'success',
|
|
30
|
+
closeByTime: false,
|
|
27
31
|
},
|
|
28
32
|
];
|
|
29
33
|
|
|
@@ -29,7 +29,7 @@ var notificationAppearanceDefault = {
|
|
|
29
29
|
fill: 'surfacePrimary',
|
|
30
30
|
fillHover: 'surfacePrimaryHover',
|
|
31
31
|
titleTextColor: 'surfaceTextPrimary',
|
|
32
|
-
titleTextSize: '
|
|
32
|
+
titleTextSize: 'l',
|
|
33
33
|
descTextColor: 'surfaceTextPrimary',
|
|
34
34
|
descTextSize: 'm',
|
|
35
35
|
borderColor: 'surfaceBorderPrimary',
|
|
@@ -46,7 +46,7 @@ var notificationAppearanceError = {
|
|
|
46
46
|
fill: 'errorPrimary',
|
|
47
47
|
fillHover: 'errorPrimaryHover',
|
|
48
48
|
titleTextColor: 'errorTextPrimary',
|
|
49
|
-
titleTextSize: '
|
|
49
|
+
titleTextSize: 'l',
|
|
50
50
|
descTextColor: 'errorTextPrimary',
|
|
51
51
|
descTextSize: 'm',
|
|
52
52
|
borderColor: 'errorBorderPrimary',
|
|
@@ -58,18 +58,35 @@ var notificationAppearanceError = {
|
|
|
58
58
|
},
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
+
var notificationAppearanceInfo = {
|
|
62
|
+
infoPrimary: {
|
|
63
|
+
fill: 'infoPrimary',
|
|
64
|
+
fillHover: 'infoPrimaryHover',
|
|
65
|
+
titleTextColor: 'infoTextPrimary',
|
|
66
|
+
titleTextSize: 'l',
|
|
67
|
+
descTextColor: 'infoTextPrimary',
|
|
68
|
+
descTextSize: 'm',
|
|
69
|
+
borderColor: 'infoBorderPrimary',
|
|
70
|
+
elevation: 8,
|
|
71
|
+
textColor: 'infoTextPrimary',
|
|
72
|
+
iconSize: 20,
|
|
73
|
+
closeIcon: _default.icons20.Action.Close,
|
|
74
|
+
closeIconFillIcon: 'infoItemPrimary',
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
|
|
61
78
|
var notificationAppearanceSize = {};
|
|
62
79
|
|
|
63
80
|
var notificationAppearanceStyle = {
|
|
64
|
-
|
|
65
|
-
ghost: {
|
|
66
|
-
fill: 'none',
|
|
81
|
+
solid: {
|
|
67
82
|
borderColor: 'none',
|
|
68
83
|
},
|
|
69
84
|
outlined: {
|
|
70
85
|
fill: 'none',
|
|
71
86
|
},
|
|
72
|
-
|
|
87
|
+
full: {},
|
|
88
|
+
ghost: {
|
|
89
|
+
fill: 'none',
|
|
73
90
|
borderColor: 'none',
|
|
74
91
|
},
|
|
75
92
|
};
|
|
@@ -79,7 +96,7 @@ var notificationAppearanceSuccess = {
|
|
|
79
96
|
fill: 'successPrimary',
|
|
80
97
|
fillHover: 'successPrimaryHover',
|
|
81
98
|
titleTextColor: 'successTextPrimary',
|
|
82
|
-
titleTextSize: '
|
|
99
|
+
titleTextSize: 'l',
|
|
83
100
|
descTextColor: 'successTextPrimary',
|
|
84
101
|
descTextSize: 'm',
|
|
85
102
|
borderColor: 'successBorderPrimary',
|
|
@@ -96,7 +113,7 @@ var notificationAppearanceWarning = {
|
|
|
96
113
|
fill: 'warningPrimary',
|
|
97
114
|
fillHover: 'warningPrimaryHover',
|
|
98
115
|
titleTextColor: 'warningTextPrimary',
|
|
99
|
-
titleTextSize: '
|
|
116
|
+
titleTextSize: 'l',
|
|
100
117
|
descTextColor: 'warningTextPrimary',
|
|
101
118
|
descTextSize: 'm',
|
|
102
119
|
borderColor: 'surfaceBorderPrimary',
|
|
@@ -108,7 +125,7 @@ var notificationAppearanceWarning = {
|
|
|
108
125
|
},
|
|
109
126
|
};
|
|
110
127
|
|
|
111
|
-
var notificationAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, notificationAppearanceDefault), notificationAppearanceSize), notificationAppearanceStyle), notificationAppearanceError), notificationAppearanceSuccess), notificationAppearanceWarning);
|
|
128
|
+
var notificationAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, notificationAppearanceDefault), notificationAppearanceSize), notificationAppearanceStyle), notificationAppearanceError), notificationAppearanceInfo), notificationAppearanceSuccess), notificationAppearanceWarning);
|
|
112
129
|
|
|
113
130
|
var notificationConfig = {
|
|
114
131
|
appearance: notificationAppearance,
|
|
@@ -133,6 +150,7 @@ function NotificationWrapper(props) {
|
|
|
133
150
|
var notifications = Notifications.useNotifications();
|
|
134
151
|
var hideNotifications = Notifications.useNotificationsAPI().hideNotifications;
|
|
135
152
|
var className = props.className, close = props.close;
|
|
153
|
+
console.log(notifications);
|
|
136
154
|
return (jsxRuntime.jsx("div", { className: clsx('notification', className), children: jsxRuntime.jsx("div", { className: "notification__wrapper", children: notifications.map(function (notification, i) { return (jsxRuntime.jsx(Notification, { id: notification.id, appearance: notification.appearance, title: notification.title, status: notification.status, text: notification.text, close: close, onClickClose: hideNotifications }, i)); }) }) }));
|
|
137
155
|
}
|
|
138
156
|
|