@itcase/ui 1.8.32 → 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_BYh1Dsto.js → DatePicker_cjs_C-VbK2J4.js} +9 -9
- package/dist/{DatePicker_es_DEAcYDTL.js → DatePicker_es_CIEHQyHC.js} +9 -9
- package/dist/{Input_cjs_BAVggtkk.js → Input_cjs_arr_wxD2.js} +21 -20
- package/dist/{Input_es_CNduH28G.js → Input_es_BW6cZThr.js} +21 -20
- 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/Breadcrumbs/stories/__mock__.js +7 -15
- 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/Code.js +31 -42
- package/dist/cjs/components/Dadata.js +1 -1
- package/dist/cjs/components/DatePeriod.js +3 -3
- package/dist/cjs/components/DatePicker.js +3 -3
- package/dist/cjs/components/Dropdown/stories/__mock__.js +2 -2
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/Label.js +1 -1
- package/dist/cjs/components/MenuItem.js +14 -7
- package/dist/cjs/components/Notification/stories/__mock__.js +4 -0
- package/dist/cjs/components/Notification.js +27 -9
- package/dist/cjs/components/Pagination.js +101 -20
- package/dist/cjs/components/Search.js +15 -14
- package/dist/cjs/components/Segmented/stories/__mock__.js +38 -0
- package/dist/cjs/components/Segmented.js +13 -10
- package/dist/cjs/components/Tab/stories/__mock__.js +6 -1
- package/dist/cjs/context/Notifications.js +6 -6
- package/dist/components/Breadcrumbs/stories/__mock__.js +7 -15
- 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/Code.js +31 -42
- package/dist/components/Dadata.js +1 -1
- package/dist/components/DatePeriod.js +3 -3
- package/dist/components/DatePicker.js +3 -3
- package/dist/components/Dropdown/stories/__mock__.js +2 -2
- package/dist/components/Input.js +1 -1
- package/dist/components/Label.js +1 -1
- package/dist/components/MenuItem.js +14 -7
- package/dist/components/Notification/stories/__mock__.js +4 -0
- package/dist/components/Notification.js +27 -9
- package/dist/components/Pagination.js +103 -22
- package/dist/components/Search.js +15 -14
- package/dist/components/Segmented/stories/__mock__.js +36 -0
- package/dist/components/Segmented.js +13 -10
- package/dist/components/Tab/stories/__mock__.js +6 -1
- package/dist/context/Notifications.js +6 -6
- package/dist/css/components/Input/Input.css +6 -0
- package/dist/css/components/Notification/Notification.css +23 -0
- package/dist/css/components/Pagination/Pagination.css +19 -6
- package/dist/css/components/Search/Search.css +0 -1
- package/dist/css/components/Search/css/search-input/search-input.css +0 -1
- package/dist/css/components/Segmented/Segmented.css +24 -0
- package/dist/css/components/Tab/Tab.css +4 -0
- package/dist/css/styles/border-color/border-color_hover.css +3 -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/Breadcrumbs/stories/__mock__/index.d.ts +1 -0
- 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/Code/appearance/codeDisabled.d.ts +7 -11
- package/dist/types/components/Code/appearance/codeRequire.d.ts +7 -15
- package/dist/types/components/Code/appearance/codeStyle.d.ts +9 -9
- package/dist/types/components/Code/appearance/codeSuccess.d.ts +8 -7
- package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +1 -1
- package/dist/types/components/DatePicker/appearance/datePickerStyle.d.ts +1 -1
- package/dist/types/components/Input/appearance/inputDefault.d.ts +2 -2
- package/dist/types/components/Input/appearance/inputDisabled.d.ts +2 -2
- package/dist/types/components/Input/appearance/inputError.d.ts +2 -2
- package/dist/types/components/Input/appearance/inputRequire.d.ts +2 -2
- package/dist/types/components/Input/appearance/inputStyle.d.ts +7 -6
- package/dist/types/components/Input/appearance/inputSuccess.d.ts +2 -2
- 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 +3 -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/paginationAccent.d.ts +21 -0
- package/dist/types/components/Pagination/appearance/paginationSize.d.ts +57 -0
- package/dist/types/components/Pagination/appearance/paginationStyle.d.ts +14 -0
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +2 -15
- package/dist/types/components/Search/appearance/searchDefault.d.ts +1 -1
- package/dist/types/components/Search/appearance/searchDisabled.d.ts +1 -1
- package/dist/types/components/Search/appearance/searchError.d.ts +1 -1
- package/dist/types/components/Search/appearance/searchRequire.d.ts +1 -1
- package/dist/types/components/Search/appearance/searchStyle.d.ts +8 -7
- package/dist/types/components/Search/appearance/searchSuccess.d.ts +1 -1
- 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
|
@@ -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,
|
|
@@ -30,17 +30,13 @@ var codeAppearanceDefault = {
|
|
|
30
30
|
|
|
31
31
|
var codeAppearanceDisabled = {
|
|
32
32
|
disabledPrimary: {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
fill: 'surfaceSecondary',
|
|
41
|
-
borderColor: 'surfaceBorderTertiary',
|
|
42
|
-
borderHover: 'surfaceBorderQuaternary',
|
|
43
|
-
placeholderTextColor: 'surfaceTextSecondary',
|
|
33
|
+
inputBorderColor: 'surfaceBorderDisabled',
|
|
34
|
+
inputBorderColorHover: 'surfaceBorderDisabled',
|
|
35
|
+
inputCaretColor: 'surfaceItemPrimary',
|
|
36
|
+
inputFill: 'surfaceDisabled',
|
|
37
|
+
inputFillHover: 'surfaceDisabled',
|
|
38
|
+
inputPlaceholderTextColor: 'surfaceTextQuaternary',
|
|
39
|
+
inputTextColor: 'surfaceTextPrimary',
|
|
44
40
|
},
|
|
45
41
|
};
|
|
46
42
|
|
|
@@ -58,21 +54,13 @@ var codeAppearanceError = {
|
|
|
58
54
|
|
|
59
55
|
var codeAppearanceRequire = {
|
|
60
56
|
requirePrimary: {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
requireSecondary: {
|
|
70
|
-
fill: 'surfaceSecondary',
|
|
71
|
-
borderColor: 'surfaceBorderTertiary',
|
|
72
|
-
borderHover: 'surfaceBorderQuaternary',
|
|
73
|
-
iconBeforeFill: 'surfaceItemQuaternary',
|
|
74
|
-
iconClearFill: 'surfaceItemPrimary',
|
|
75
|
-
placeholderTextColor: 'surfaceTextSecondary',
|
|
57
|
+
inputBorderColor: 'warningBorderSecondary',
|
|
58
|
+
inputBorderColorHover: 'warningBorderSecondary',
|
|
59
|
+
inputCaretColor: 'surfaceItemPrimary',
|
|
60
|
+
inputFill: 'warningTertiary',
|
|
61
|
+
inputFillHover: 'warningTertiary',
|
|
62
|
+
inputPlaceholderTextColor: 'surfaceTextQuaternary',
|
|
63
|
+
inputTextColor: 'surfaceTextPrimary',
|
|
76
64
|
},
|
|
77
65
|
};
|
|
78
66
|
|
|
@@ -90,29 +78,30 @@ var codeAppearanceSize = {
|
|
|
90
78
|
};
|
|
91
79
|
|
|
92
80
|
var codeAppearanceStyle = {
|
|
93
|
-
solid: {
|
|
94
|
-
borderColor: 'none',
|
|
95
|
-
},
|
|
96
|
-
outlined: {
|
|
97
|
-
fill: 'none',
|
|
98
|
-
},
|
|
99
81
|
full: {
|
|
100
|
-
|
|
82
|
+
inputBorderColor: 'none',
|
|
101
83
|
},
|
|
102
84
|
ghost: {
|
|
103
|
-
|
|
104
|
-
|
|
85
|
+
inputBorderColor: 'none',
|
|
86
|
+
inputFill: 'none',
|
|
87
|
+
},
|
|
88
|
+
outlined: {
|
|
89
|
+
inputFill: 'none',
|
|
90
|
+
},
|
|
91
|
+
solid: {
|
|
92
|
+
inputBorderColor: 'none',
|
|
105
93
|
},
|
|
106
94
|
};
|
|
107
95
|
|
|
108
96
|
var codeAppearanceSuccess = {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
97
|
+
successPrimary: {
|
|
98
|
+
inputBorderColor: 'successBorderSecondary',
|
|
99
|
+
inputBorderColorHover: 'successBorderSecondary',
|
|
100
|
+
inputCaretColor: 'surfaceItemPrimary',
|
|
101
|
+
inputFill: 'successTertiary',
|
|
102
|
+
inputFillHover: 'successTertiary',
|
|
103
|
+
inputPlaceholderTextColor: 'surfaceTextQuaternary',
|
|
104
|
+
inputTextColor: 'surfaceTextPrimary',
|
|
116
105
|
},
|
|
117
106
|
};
|
|
118
107
|
|
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var reactDadata = require('react-dadata');
|
|
8
|
-
var Input = require('../../
|
|
8
|
+
var Input = require('../../Input_cjs_arr_wxD2.js');
|
|
9
9
|
require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
require('lodash/camelCase');
|
|
11
11
|
require('lodash/castArray');
|
|
@@ -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');
|
|
@@ -28,8 +28,8 @@ require('../../Text_cjs_C9fOm0nd.js');
|
|
|
28
28
|
require('react-inlinesvg');
|
|
29
29
|
require('../../Link_cjs_DbRGq2Yk.js');
|
|
30
30
|
require('../../Loader_cjs_CCrbD8Em.js');
|
|
31
|
-
require('../../
|
|
32
|
-
require('../../
|
|
31
|
+
require('../../Input_cjs_arr_wxD2.js');
|
|
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');
|
|
@@ -27,8 +27,8 @@ require('../../Text_cjs_C9fOm0nd.js');
|
|
|
27
27
|
require('react-inlinesvg');
|
|
28
28
|
require('../../Link_cjs_DbRGq2Yk.js');
|
|
29
29
|
require('../../Loader_cjs_CCrbD8Em.js');
|
|
30
|
-
require('../../
|
|
31
|
-
require('../../
|
|
30
|
+
require('../../Input_cjs_arr_wxD2.js');
|
|
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
|
};
|
|
@@ -114,8 +118,11 @@ var menuItemAppearanceStyle = {
|
|
|
114
118
|
var menuItemAppearanceSurface = {
|
|
115
119
|
surfacePrimary: {
|
|
116
120
|
fill: 'surfacePrimary',
|
|
117
|
-
|
|
121
|
+
fillActive: 'surfaceHover',
|
|
122
|
+
fillActiveHover: 'surfaceHover',
|
|
123
|
+
fillHover: 'surfaceHover',
|
|
118
124
|
labelTextColor: 'surfaceTextPrimary',
|
|
125
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
119
126
|
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
120
127
|
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
121
128
|
},
|
|
@@ -151,10 +158,10 @@ function MenuItem(props) {
|
|
|
151
158
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = menuItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
152
159
|
}, {});
|
|
153
160
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
154
|
-
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;
|
|
155
162
|
// @ts-expect-error
|
|
156
163
|
var menuItem = useStyles.useStyles(props).styles;
|
|
157
|
-
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
|
|
158
165
|
? fillClass && "fill_".concat(fillClass)
|
|
159
166
|
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
160
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
|
|