@itcase/ui 1.0.79 → 1.0.81
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/components/Accordion.js +2 -4
- package/dist/components/Avatar.js +6 -5
- package/dist/components/Badge.js +2 -2
- package/dist/components/Breadcrumbs.js +45 -51
- package/dist/components/Button.js +28 -52
- package/dist/components/Cell.js +73 -71
- package/dist/components/Choice.js +1 -1
- package/dist/components/CookiesWarning.js +1 -1
- package/dist/components/DatePicker.js +104 -22
- package/dist/components/Grid.js +207 -207
- package/dist/components/Icon.js +8 -8
- package/dist/components/Label.js +1 -1
- package/dist/components/Link.js +11 -6
- package/dist/components/MenuItem.js +85 -85
- package/dist/components/Modal.js +17 -15
- package/dist/components/Pagination.js +64 -2
- package/dist/components/Search.js +9 -39
- package/dist/components/Segmented.js +18 -4
- package/dist/components/Swiper.js +2 -2
- package/dist/components/Tab.js +9 -9
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/constants/componentProps/size.js +1 -1
- package/dist/constants/componentProps/strokeColor.js +1 -1
- package/dist/constants/componentProps/textColor.js +1 -1
- package/dist/constants/componentProps/textColorActive.js +1 -1
- package/dist/constants/componentProps/textColorHover.js +1 -1
- package/dist/css/components/Avatar/Avatar.css +6 -3
- package/dist/css/components/Choice/Choice.css +3 -3
- package/dist/css/components/Choice/css/__item/choice__item.css +1 -2
- package/dist/css/components/DadataHintField/DadataHintField.css +1 -0
- package/dist/css/components/DatePicker/DatePicker.css +27 -0
- package/dist/css/components/Dropdown/Dropdown.css +9 -0
- package/dist/css/components/MenuItem/MenuItem.css +11 -1
- package/dist/css/components/Notification/Notification.css +36 -23
- package/dist/css/components/Notification/css/__item/notification__item_set_float.css +2 -9
- package/dist/css/components/Notification/css/__item/notification__item_set_form.css +2 -3
- package/dist/css/components/Notification/css/__item/notification__item_set_toast.css +19 -0
- package/dist/css/components/Notification/css/__item/notification__item_set_top.css +0 -1
- package/dist/css/components/Notification/css/__item/notification__item_status.css +3 -3
- package/dist/css/components/Notification/css/__item/notification__item_type_close-button.css +10 -7
- package/dist/css/components/Search/Search.css +7 -7
- package/dist/css/components/Search/css/search-input/search-input.css +7 -7
- package/dist/css/components/Select/Select.css +7 -4
- package/dist/css/components/Select/css/__control/select__control_shape.css +1 -1
- package/dist/css/components/Select/css/__multi-value/select__multi-value.css +5 -2
- package/dist/css/components/Swiper/Swiper.css +2 -2
- package/dist/css/components/Tab/Tab.css +0 -10
- package/dist/css/components/Textarea/Textarea.css +1 -1
- package/package.json +15 -15
|
@@ -49,20 +49,19 @@ const SearchInput = /*#__PURE__*/React__default.default.forwardRef(function Sear
|
|
|
49
49
|
size,
|
|
50
50
|
dataTour,
|
|
51
51
|
iconAfter,
|
|
52
|
-
|
|
52
|
+
iconAfterSrc,
|
|
53
53
|
iconAfterFill,
|
|
54
54
|
iconAfterSize,
|
|
55
55
|
iconAfterStroke,
|
|
56
56
|
iconBefore,
|
|
57
|
-
|
|
57
|
+
iconBeforeSrc,
|
|
58
58
|
iconBeforeFill,
|
|
59
59
|
iconBeforeSize,
|
|
60
60
|
iconBeforeStroke,
|
|
61
61
|
iconClear,
|
|
62
|
-
|
|
62
|
+
iconClearSrc,
|
|
63
63
|
iconClearFill,
|
|
64
64
|
iconClearSize,
|
|
65
|
-
iconClearStroke,
|
|
66
65
|
placeholder,
|
|
67
66
|
type,
|
|
68
67
|
value,
|
|
@@ -166,9 +165,10 @@ const SearchInput = /*#__PURE__*/React__default.default.forwardRef(function Sear
|
|
|
166
165
|
className: clsx__default.default(className, 'search-input', shapeClass, fillClass, widthClass, borderColorClass, borderColorHoverClass, borderWidthClass, borderTypeClass, size && `search-input_size_${size}`, type && `search-input_type_${type}`),
|
|
167
166
|
"data-tour": dataTour,
|
|
168
167
|
style: searchInputStyles
|
|
169
|
-
}, before, iconBefore && /*#__PURE__*/React__default.default.createElement(index.Icon, {
|
|
168
|
+
}, before, (iconBefore || iconBeforeSrc) && /*#__PURE__*/React__default.default.createElement(index.Icon, {
|
|
170
169
|
className: "search-input__icon search-input__icon-before",
|
|
171
170
|
SvgImage: iconBefore,
|
|
171
|
+
imageSrc: iconBeforeSrc,
|
|
172
172
|
size: iconBeforeSize,
|
|
173
173
|
iconFill: iconBeforeFill,
|
|
174
174
|
iconStroke: iconBeforeStroke
|
|
@@ -191,15 +191,17 @@ const SearchInput = /*#__PURE__*/React__default.default.forwardRef(function Sear
|
|
|
191
191
|
textWeight: placeholderWeightClass,
|
|
192
192
|
textStyle: placeholderStyleClass,
|
|
193
193
|
textColor: placeholderColorClass
|
|
194
|
-
}, placeholder || 'Search')),
|
|
194
|
+
}, placeholder || 'Search')), (iconClear || iconClearSrc) && /*#__PURE__*/React__default.default.createElement(index.Icon, {
|
|
195
195
|
className: "search-input__clear",
|
|
196
196
|
SvgImage: iconClear,
|
|
197
|
+
imageSrc: iconClearSrc,
|
|
197
198
|
size: iconClearSize,
|
|
198
199
|
iconFill: iconClearFill,
|
|
199
200
|
onClick: onClickClearIcon
|
|
200
|
-
})), iconAfter && /*#__PURE__*/React__default.default.createElement(index.Icon, {
|
|
201
|
+
})), (iconAfter || iconAfterSrc) && /*#__PURE__*/React__default.default.createElement(index.Icon, {
|
|
201
202
|
className: "search-input__icon search-input__icon-after",
|
|
202
203
|
SvgImage: iconAfter,
|
|
204
|
+
imageSrc: iconAfterSrc,
|
|
203
205
|
size: iconAfterSize,
|
|
204
206
|
iconFill: iconAfterFill,
|
|
205
207
|
iconStroke: iconAfterStroke
|
|
@@ -221,20 +223,16 @@ SearchInput.propTypes = {
|
|
|
221
223
|
fillMobile: PropTypes__default.default.oneOf(fill.default),
|
|
222
224
|
fillTablet: PropTypes__default.default.oneOf(fill.default),
|
|
223
225
|
iconAfter: PropTypes__default.default.any,
|
|
224
|
-
iconAfterBgFill: PropTypes__default.default.any,
|
|
225
226
|
iconAfterFill: PropTypes__default.default.any,
|
|
226
227
|
iconAfterSize: PropTypes__default.default.any,
|
|
227
228
|
iconAfterStroke: PropTypes__default.default.any,
|
|
228
229
|
iconBefore: PropTypes__default.default.any,
|
|
229
|
-
iconBeforeBgFill: PropTypes__default.default.any,
|
|
230
230
|
iconBeforeFill: PropTypes__default.default.any,
|
|
231
231
|
iconBeforeSize: PropTypes__default.default.any,
|
|
232
232
|
iconBeforeStroke: PropTypes__default.default.any,
|
|
233
233
|
iconClear: PropTypes__default.default.any,
|
|
234
|
-
iconClearBgFill: PropTypes__default.default.any,
|
|
235
234
|
iconClearFill: PropTypes__default.default.any,
|
|
236
235
|
iconClearSize: PropTypes__default.default.any,
|
|
237
|
-
iconClearStroke: PropTypes__default.default.any,
|
|
238
236
|
inputTextSize: PropTypes__default.default.string,
|
|
239
237
|
placeholder: PropTypes__default.default.string,
|
|
240
238
|
placeholderTextColor: PropTypes__default.default.string,
|
|
@@ -343,13 +341,6 @@ SearchInput.__docgenInfo = {
|
|
|
343
341
|
},
|
|
344
342
|
"required": false
|
|
345
343
|
},
|
|
346
|
-
"iconAfterBgFill": {
|
|
347
|
-
"description": "",
|
|
348
|
-
"type": {
|
|
349
|
-
"name": "any"
|
|
350
|
-
},
|
|
351
|
-
"required": false
|
|
352
|
-
},
|
|
353
344
|
"iconAfterFill": {
|
|
354
345
|
"description": "",
|
|
355
346
|
"type": {
|
|
@@ -378,13 +369,6 @@ SearchInput.__docgenInfo = {
|
|
|
378
369
|
},
|
|
379
370
|
"required": false
|
|
380
371
|
},
|
|
381
|
-
"iconBeforeBgFill": {
|
|
382
|
-
"description": "",
|
|
383
|
-
"type": {
|
|
384
|
-
"name": "any"
|
|
385
|
-
},
|
|
386
|
-
"required": false
|
|
387
|
-
},
|
|
388
372
|
"iconBeforeFill": {
|
|
389
373
|
"description": "",
|
|
390
374
|
"type": {
|
|
@@ -413,13 +397,6 @@ SearchInput.__docgenInfo = {
|
|
|
413
397
|
},
|
|
414
398
|
"required": false
|
|
415
399
|
},
|
|
416
|
-
"iconClearBgFill": {
|
|
417
|
-
"description": "",
|
|
418
|
-
"type": {
|
|
419
|
-
"name": "any"
|
|
420
|
-
},
|
|
421
|
-
"required": false
|
|
422
|
-
},
|
|
423
400
|
"iconClearFill": {
|
|
424
401
|
"description": "",
|
|
425
402
|
"type": {
|
|
@@ -434,13 +411,6 @@ SearchInput.__docgenInfo = {
|
|
|
434
411
|
},
|
|
435
412
|
"required": false
|
|
436
413
|
},
|
|
437
|
-
"iconClearStroke": {
|
|
438
|
-
"description": "",
|
|
439
|
-
"type": {
|
|
440
|
-
"name": "any"
|
|
441
|
-
},
|
|
442
|
-
"required": false
|
|
443
|
-
},
|
|
444
414
|
"placeholder": {
|
|
445
415
|
"description": "",
|
|
446
416
|
"type": {
|
|
@@ -4,6 +4,7 @@ var React = require('react');
|
|
|
4
4
|
var PropTypes = require('prop-types');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var index = require('./Text.js');
|
|
7
|
+
var fill = require('../constants/componentProps/fill.js');
|
|
7
8
|
var useDeviceTargetClass = require('../hooks/useDeviceTargetClass.js');
|
|
8
9
|
require('../constants/componentProps/textColor.js');
|
|
9
10
|
require('../constants/componentProps/textColorActive.js');
|
|
@@ -88,12 +89,12 @@ const Segmented = /*#__PURE__*/React__default.default.forwardRef((props, ref) =>
|
|
|
88
89
|
propsKey: 'fillHover'
|
|
89
90
|
});
|
|
90
91
|
return /*#__PURE__*/React__default.default.createElement("div", {
|
|
91
|
-
className: clsx__default.default(className, 'segmented', shapeClass, fillClass, widthClass, size && `segmented_size_${size}`, type && `segmented_type_${type}
|
|
92
|
+
className: clsx__default.default(className, 'segmented', shapeClass, fillClass, widthClass, size && `segmented_size_${size}`, type && `segmented_type_${type}`, borderColorClass, borderWidthClass, borderTypeClass),
|
|
92
93
|
ref: controlRef
|
|
93
94
|
}, /*#__PURE__*/React__default.default.createElement("div", {
|
|
94
95
|
className: "segmented__wrapper"
|
|
95
96
|
}, /*#__PURE__*/React__default.default.createElement("div", {
|
|
96
|
-
className: clsx__default.default('segmented__wrapper-inner'
|
|
97
|
+
className: clsx__default.default('segmented__wrapper-inner')
|
|
97
98
|
}, segments?.map((item, i) => /*#__PURE__*/React__default.default.createElement("div", {
|
|
98
99
|
className: clsx__default.default('segmented__item', fillHoverClass, item.value === activeSegment.value && 'segmented__item_active'),
|
|
99
100
|
key: item.value,
|
|
@@ -111,8 +112,8 @@ const Segmented = /*#__PURE__*/React__default.default.forwardRef((props, ref) =>
|
|
|
111
112
|
htmlFor: item.label
|
|
112
113
|
}, /*#__PURE__*/React__default.default.createElement(index.Text, {
|
|
113
114
|
className: "segmented__item-label-text",
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
size: labelTextSize,
|
|
116
|
+
textColor: item.value === activeSegment.value ? labelTextActiveColor : labelTextColor
|
|
116
117
|
}, item.label)))), /*#__PURE__*/React__default.default.createElement("div", {
|
|
117
118
|
className: clsx__default.default('segmented__indicator', indicatorFillClass)
|
|
118
119
|
}, "\xA0"))));
|
|
@@ -122,6 +123,10 @@ Segmented.propTypes = {
|
|
|
122
123
|
activeSegment: PropTypes__default.default.object,
|
|
123
124
|
className: PropTypes__default.default.string,
|
|
124
125
|
fill: PropTypes__default.default.string,
|
|
126
|
+
/**
|
|
127
|
+
* цвет бэкграунда выбранного элемента
|
|
128
|
+
*/
|
|
129
|
+
indicatorFill: PropTypes__default.default.oneOf(fill.default),
|
|
125
130
|
name: PropTypes__default.default.string,
|
|
126
131
|
segments: PropTypes__default.default.array,
|
|
127
132
|
setActiveSegment: PropTypes__default.default.func,
|
|
@@ -160,6 +165,15 @@ Segmented.__docgenInfo = {
|
|
|
160
165
|
},
|
|
161
166
|
"required": false
|
|
162
167
|
},
|
|
168
|
+
"indicatorFill": {
|
|
169
|
+
"description": "\u0446\u0432\u0435\u0442 \u0431\u044D\u043A\u0433\u0440\u0430\u0443\u043D\u0434\u0430 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",
|
|
170
|
+
"type": {
|
|
171
|
+
"name": "enum",
|
|
172
|
+
"computed": true,
|
|
173
|
+
"value": "fillProps"
|
|
174
|
+
},
|
|
175
|
+
"required": false
|
|
176
|
+
},
|
|
163
177
|
"name": {
|
|
164
178
|
"description": "",
|
|
165
179
|
"type": {
|
|
@@ -4664,7 +4664,7 @@ const updateOnVirtualData = swiper => {
|
|
|
4664
4664
|
};
|
|
4665
4665
|
|
|
4666
4666
|
/**
|
|
4667
|
-
* Swiper React 11.0.
|
|
4667
|
+
* Swiper React 11.0.4
|
|
4668
4668
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
4669
4669
|
* https://swiperjs.com
|
|
4670
4670
|
*
|
|
@@ -4672,7 +4672,7 @@ const updateOnVirtualData = swiper => {
|
|
|
4672
4672
|
*
|
|
4673
4673
|
* Released under the MIT License
|
|
4674
4674
|
*
|
|
4675
|
-
* Released on:
|
|
4675
|
+
* Released on: November 9, 2023
|
|
4676
4676
|
*/
|
|
4677
4677
|
|
|
4678
4678
|
|
package/dist/components/Tab.js
CHANGED
|
@@ -139,7 +139,7 @@ function Tab(props) {
|
|
|
139
139
|
styles: tab
|
|
140
140
|
} = useStyles.useStyles(props);
|
|
141
141
|
return /*#__PURE__*/React__default.default.createElement("div", {
|
|
142
|
-
className: clsx__default.default('tab', isActive && 'tab_state_active', isHover && 'tab_state_hover',
|
|
142
|
+
className: clsx__default.default('tab', isActive && 'tab_state_active', isHover && 'tab_state_hover', fillClass || tabConfig.appearance[appearance] && `fill_${tabConfig.appearance[appearance].fillClass}`.replace(/([A-Z])/g, '-$1').toLowerCase(), fillHoverClass || tabConfig.appearance[appearance] && `fill_hover_${tabConfig.appearance[appearance].fillHoverClass}`.replace(/([A-Z])/g, '-$1').toLowerCase(), className, sizeClass, fillActiveClass, fillActiveHoverClass, fillDisabledClass, shapeClass, typeClass, widthClass, set && `tab_set_${set}`, justifyContentClass),
|
|
143
143
|
style: tab,
|
|
144
144
|
onClick: onClick,
|
|
145
145
|
onMouseEnter: onMouseEnter,
|
|
@@ -154,29 +154,29 @@ function Tab(props) {
|
|
|
154
154
|
className: "tab__wrapper"
|
|
155
155
|
}, label && /*#__PURE__*/React__default.default.createElement(index$1.Text, {
|
|
156
156
|
className: "tab__label",
|
|
157
|
-
textColorActive: isActive && labelColorActive || appearance && tabConfig.appearance[appearance].labelColorActive.replace(/([A-Z])/g, '-$1').toLowerCase(),
|
|
157
|
+
textColorActive: isActive && (labelColorActive || tabConfig.appearance[appearance] && tabConfig.appearance[appearance].labelColorActive.replace(/([A-Z])/g, '-$1').toLowerCase()),
|
|
158
158
|
textColorGradient: labelTextGradient,
|
|
159
159
|
size: labelTextSize,
|
|
160
160
|
textWeight: labelTextWeight,
|
|
161
|
-
textColor: labelColor || appearance && tabConfig.appearance[appearance].labelColor.replace(/([A-Z])/g, '-$1').toLowerCase(),
|
|
161
|
+
textColor: labelColor || tabConfig.appearance[appearance] && tabConfig.appearance[appearance].labelColor.replace(/([A-Z])/g, '-$1').toLowerCase(),
|
|
162
162
|
textWrap: labelTextWrap,
|
|
163
163
|
textColorHover: labelTextColorHover,
|
|
164
164
|
textStyle: labelTextStyle
|
|
165
165
|
}, dividerFillActive, " ", label), badgeValue && /*#__PURE__*/React__default.default.createElement(index$2.Badge, {
|
|
166
|
-
size: badgeSize,
|
|
167
166
|
fill: badgeFill,
|
|
167
|
+
size: badgeSize,
|
|
168
168
|
textColor: badgeTextColor,
|
|
169
169
|
textSize: badgeTextSize,
|
|
170
170
|
value: badgeValue
|
|
171
171
|
})), /*#__PURE__*/React__default.default.createElement(index$3.Divider, {
|
|
172
|
-
|
|
173
|
-
fill: dividerFill || appearance && tabConfig.appearance[appearance].dividerFill.replace(/([A-Z])/g, '-$1').toLowerCase(),
|
|
174
|
-
|
|
175
|
-
fillActive: isActive && (dividerFillActive || appearance && tabConfig.appearance[appearance].dividerFillActive.replace(/([A-Z])/g, '-$1').toLowerCase()),
|
|
172
|
+
direction: dividerDirection,
|
|
173
|
+
fill: dividerFill || tabConfig.appearance[appearance] && tabConfig.appearance[appearance].dividerFill.replace(/([A-Z])/g, '-$1').toLowerCase(),
|
|
174
|
+
fillActive: isActive && (dividerFillActive || tabConfig.appearance[appearance] && tabConfig.appearance[appearance].dividerFillActive.replace(/([A-Z])/g, '-$1').toLowerCase()),
|
|
176
175
|
fillActiveHover: dividerFillActiveHover,
|
|
177
176
|
fillDisabled: dividerFillDisabled,
|
|
177
|
+
fillHover: isHover && (dividerFillHover || tabConfig.appearance[appearance] && tabConfig.appearance[appearance].dividerFillHover.replace(/([A-Z])/g, '-$1').toLowerCase()),
|
|
178
178
|
size: dividerSize,
|
|
179
|
-
|
|
179
|
+
width: "fill"
|
|
180
180
|
})), after)));
|
|
181
181
|
}
|
|
182
182
|
Tab.propTypes = {
|
package/dist/components/Text.js
CHANGED
|
@@ -60,7 +60,7 @@ function Text(props) {
|
|
|
60
60
|
propsKey: 'textColor'
|
|
61
61
|
});
|
|
62
62
|
const textColorActiveClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
63
|
-
prefix: 'text-
|
|
63
|
+
prefix: 'text-color_active_',
|
|
64
64
|
propsKey: 'textColorActive'
|
|
65
65
|
});
|
|
66
66
|
const textColorHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
package/dist/components/Tile.js
CHANGED
|
@@ -97,7 +97,7 @@ function Tile(props) {
|
|
|
97
97
|
});
|
|
98
98
|
const borderColorHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
99
99
|
prefix: 'border-color_hover_',
|
|
100
|
-
propsKey: '
|
|
100
|
+
propsKey: 'borderColorHover'
|
|
101
101
|
});
|
|
102
102
|
const borderWidthClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
103
103
|
prefix: 'border-width_',
|
package/dist/components/Title.js
CHANGED
|
@@ -57,7 +57,7 @@ function Title(props) {
|
|
|
57
57
|
propsKey: 'textColor'
|
|
58
58
|
});
|
|
59
59
|
const textColorActiveClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
60
|
-
prefix: 'text-
|
|
60
|
+
prefix: 'text-color_active_',
|
|
61
61
|
propsKey: 'textColorActive'
|
|
62
62
|
});
|
|
63
63
|
const textColorHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const strokeColorProps = [null, '
|
|
3
|
+
const strokeColorProps = [null, 'surfaceItemPrimary', 'surfaceItemSecondary', 'surfaceItemTertiary', 'surfaceItemAccent', 'surfaceItemDisabled', 'accentItemPrimary', 'accentItemSecondary', 'primaryItemPrimary', 'secondaryItemPrimary', 'errorItemPrimary', 'errorItemSecondary', 'successItemPrimary', 'successItemSecondary'];
|
|
4
4
|
|
|
5
5
|
exports.default = strokeColorProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const textColorProps = [null, 'accentTextPrimary', 'accentTextSecondary', 'accentTextTertiary', 'primaryTextPrimary', 'primaryTextSecondary', 'primaryTextTertiary', 'secondaryTextPrimary', 'secondaryTextSecondary', 'secondaryTextTertiary', 'tertiaryTextPrimary', 'tertiaryTextSecondary', 'surfaceTextPrimary', 'surfaceTextSecondary', 'surfaceTextTertiary', 'surfaceTextQuaternary', 'surfaceTextHover', 'surfaceTextFocus', 'surfaceTextActive', 'surfaceTextDisabled', 'errorTextPrimary', 'errorTextSecondary', 'successTextPrimary', 'successTextSecondary'];
|
|
3
|
+
const textColorProps = [null, 'accentTextPrimary', 'accentTextSecondary', 'accentTextTertiary', 'primaryTextPrimary', 'primaryTextSecondary', 'primaryTextTertiary', 'secondaryTextPrimary', 'secondaryTextSecondary', 'secondaryTextTertiary', 'tertiaryTextPrimary', 'tertiaryTextSecondary', 'surfaceTextPrimary', 'surfaceTextAccent', 'surfaceTextSecondary', 'surfaceTextTertiary', 'surfaceTextQuaternary', 'surfaceTextAccent', 'surfaceTextHover', 'surfaceTextFocus', 'surfaceTextActive', 'surfaceTextDisabled', 'errorTextPrimary', 'errorTextSecondary', 'successTextPrimary', 'successTextSecondary'];
|
|
4
4
|
|
|
5
5
|
exports.default = textColorProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const textColorActiveProps = [null, '
|
|
3
|
+
const textColorActiveProps = [null, false, 'accentTextPrimary', 'accentTextSecondary', 'accentTextTertiary', 'primaryTextPrimary', 'primaryTextSecondary', 'primaryTextTertiary', 'secondaryTextPrimary', 'secondaryTextSecondary', 'secondaryTextTertiary', 'tertiaryTextPrimary', 'tertiaryTextSecondary', 'surfaceTextPrimary', 'surfaceTextSecondary', 'surfaceTextTertiary', 'surfaceTextQuaternary', 'surfaceTextHover', 'surfaceTextFocus', 'surfaceTextActive', 'surfaceTextDisabled', 'errorTextPrimary', 'errorTextSecondary', 'successTextPrimary', 'successTextSecondary'];
|
|
4
4
|
|
|
5
5
|
exports.default = textColorActiveProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const textColorHoverProps = [null, '
|
|
3
|
+
const textColorHoverProps = [null, 'accentTextPrimary', 'accentTextSecondary', 'accentTextTertiary', 'primaryTextPrimary', 'primaryTextSecondary', 'primaryTextTertiary', 'secondaryTextPrimary', 'secondaryTextSecondary', 'secondaryTextTertiary', 'tertiaryTextPrimary', 'tertiaryTextSecondary', 'surfaceTextPrimary', 'surfaceTextSecondary', 'surfaceTextTertiary', 'surfaceTextQuaternary', 'surfaceTextHover', 'surfaceTextFocus', 'surfaceTextActive', 'surfaceTextDisabled', 'errorTextPrimary', 'errorTextSecondary', 'successTextPrimary', 'successTextSecondary'];
|
|
4
4
|
|
|
5
5
|
exports.default = textColorHoverProps;
|
|
@@ -37,17 +37,20 @@
|
|
|
37
37
|
.avatar {
|
|
38
38
|
&_shape {
|
|
39
39
|
&_circular {
|
|
40
|
-
^^&__image
|
|
40
|
+
^^&__image,
|
|
41
|
+
^^&__wrapper {
|
|
41
42
|
border-radius: 50%;
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
&_geometric {
|
|
45
|
-
^^&__image
|
|
46
|
+
^^&__image,
|
|
47
|
+
^^&__wrapper {
|
|
46
48
|
border-radius: 0;
|
|
47
49
|
}
|
|
48
50
|
}
|
|
49
51
|
&_rounded {
|
|
50
|
-
^^&__image
|
|
52
|
+
^^&__image,
|
|
53
|
+
^^&__wrapper {
|
|
51
54
|
border-radius: 10px;
|
|
52
55
|
}
|
|
53
56
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
.choice {
|
|
22
22
|
&_size {
|
|
23
|
-
@each $size in tiny, compact, normal {
|
|
23
|
+
@each $size in xs, s, m, l, xl, xxl, tiny, compact, normal, large {
|
|
24
24
|
&_$(size) {
|
|
25
25
|
^^&__item {
|
|
26
26
|
&-label {
|
|
@@ -33,14 +33,13 @@
|
|
|
33
33
|
}
|
|
34
34
|
.choice__item {
|
|
35
35
|
min-width: 30px;
|
|
36
|
-
border-width: 0;
|
|
37
36
|
position: relative;
|
|
38
37
|
display: flex;
|
|
39
38
|
&:hover {
|
|
40
39
|
background: var(--choice-item-background-hover);
|
|
41
40
|
}
|
|
42
41
|
&:not(:last-child) {
|
|
43
|
-
border-right
|
|
42
|
+
border-right: 1px solid var(--choice-border-color);
|
|
44
43
|
}
|
|
45
44
|
&_active {
|
|
46
45
|
background: var(--choice-item-background-active);
|
|
@@ -69,4 +68,5 @@
|
|
|
69
68
|
:root {
|
|
70
69
|
--choice-item-background-hover: var(--color-surface-secondary);
|
|
71
70
|
--choice-item-background-active: var(--color-surface-active);
|
|
71
|
+
--choice-border-color: var(--color-surface-border-tertiary);
|
|
72
72
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
.choice__item {
|
|
2
2
|
min-width: 30px;
|
|
3
|
-
border-width: 0;
|
|
4
3
|
position: relative;
|
|
5
4
|
display: flex;
|
|
6
5
|
&:hover {
|
|
7
6
|
background: var(--choice-item-background-hover);
|
|
8
7
|
}
|
|
9
8
|
&:not(:last-child) {
|
|
10
|
-
border-right
|
|
9
|
+
border-right: 1px solid var(--choice-border-color);
|
|
11
10
|
}
|
|
12
11
|
&_active {
|
|
13
12
|
background: var(--choice-item-background-active);
|
|
@@ -899,6 +899,18 @@
|
|
|
899
899
|
border-radius: var(--date-picker-day-range-end-border-radius) !important;
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
|
+
&-start.react-datepicker__day--range-end {
|
|
903
|
+
border-radius: var(--date-picker-day-range-start-end-border-radius) !important;
|
|
904
|
+
&:hover {
|
|
905
|
+
border-radius: var(--date-picker-day-range-start-end-border-radius) !important;
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
&.react-datepicker__day--selecting-range-start.react-datepicker__day--selecting-range-end {
|
|
909
|
+
border-radius: var(--date-picker-day-range-start-end-border-radius) !important;
|
|
910
|
+
&:hover {
|
|
911
|
+
border-radius: var(--date-picker-day-range-start-end-border-radius) !important;
|
|
912
|
+
}
|
|
913
|
+
}
|
|
902
914
|
}
|
|
903
915
|
&--today {
|
|
904
916
|
background: var(--date-picker-day-today-background);
|
|
@@ -1069,6 +1081,14 @@
|
|
|
1069
1081
|
}
|
|
1070
1082
|
}
|
|
1071
1083
|
&__input {
|
|
1084
|
+
&-container {
|
|
1085
|
+
display: flex;
|
|
1086
|
+
align-items: center;
|
|
1087
|
+
gap: 12px;
|
|
1088
|
+
& .input {
|
|
1089
|
+
min-width: 256px;
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1072
1092
|
&-time-container {
|
|
1073
1093
|
text-align: center;
|
|
1074
1094
|
padding: 4px;
|
|
@@ -1089,6 +1109,12 @@
|
|
|
1089
1109
|
}
|
|
1090
1110
|
}
|
|
1091
1111
|
}
|
|
1112
|
+
&__clear-icon {
|
|
1113
|
+
position: absolute;
|
|
1114
|
+
top: 50%;
|
|
1115
|
+
right: 12px;
|
|
1116
|
+
transform: translateY(-50%);
|
|
1117
|
+
}
|
|
1092
1118
|
&-wrapper {
|
|
1093
1119
|
width: 100%;
|
|
1094
1120
|
^&__input-container {
|
|
@@ -1160,6 +1186,7 @@
|
|
|
1160
1186
|
--date-picker-day-range-border-radius: 0;
|
|
1161
1187
|
--date-picker-day-range-start-border-radius: 12px 0 0 12px;
|
|
1162
1188
|
--date-picker-day-range-end-border-radius: 0 12px 12px 0;
|
|
1189
|
+
--date-picker-day-range-start-end-border-radius: 12px;
|
|
1163
1190
|
--date-picker-day-today-background: var(--color-surface-secondary);
|
|
1164
1191
|
--date-picker-day-today-text-color: var(--color-surface-text-primary);
|
|
1165
1192
|
--date-picker-day-weekend-background: var(--color-surface-primary);
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
.menu-item {
|
|
38
38
|
&_shape {
|
|
39
39
|
&_rounded {
|
|
40
|
-
border-radius: 12px;
|
|
40
|
+
border-radius: var(--menu-item-shape-rounded, 12px);
|
|
41
41
|
}
|
|
42
42
|
&_circular {
|
|
43
43
|
border-radius: 50%;
|
|
@@ -54,3 +54,13 @@
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
+
|
|
58
|
+
:root {
|
|
59
|
+
--menu-item-size-xxs-padding: 0 4px;
|
|
60
|
+
--menu-item-size-xs-padding: 0 4px;
|
|
61
|
+
--menu-item-size-s-padding: 1px 4px;
|
|
62
|
+
--menu-item-size-m-padding: 2px 4px;
|
|
63
|
+
--menu-item-size-l-padding: 4px 6px;
|
|
64
|
+
--menu-item-size-xl-padding: 7px 8px;
|
|
65
|
+
--menu-item-size-xxl-padding: 4px 10px;
|
|
66
|
+
}
|
|
@@ -28,19 +28,12 @@
|
|
|
28
28
|
&_float {
|
|
29
29
|
width: 100%;
|
|
30
30
|
border-radius: 8px;
|
|
31
|
+
padding: 12px 16px;
|
|
32
|
+
@mixin elevation-8;
|
|
31
33
|
^^&-wrapper {
|
|
32
|
-
padding: 12px 16px;
|
|
33
|
-
border-radius: 8px;
|
|
34
|
-
position: relative;
|
|
35
34
|
display: flex;
|
|
36
35
|
flex-direction: column;
|
|
37
36
|
gap: 4px;
|
|
38
|
-
@mixin elevation-8;
|
|
39
|
-
}
|
|
40
|
-
^^&-close {
|
|
41
|
-
position: absolute;
|
|
42
|
-
top: 16px;
|
|
43
|
-
right: 12px;
|
|
44
37
|
}
|
|
45
38
|
}
|
|
46
39
|
}
|
|
@@ -51,7 +44,6 @@
|
|
|
51
44
|
width: 100%;
|
|
52
45
|
^^&-wrapper {
|
|
53
46
|
padding: 12px 0;
|
|
54
|
-
position: relative;
|
|
55
47
|
display: flex;
|
|
56
48
|
flex-direction: column;
|
|
57
49
|
justify-content: center;
|
|
@@ -65,11 +57,29 @@
|
|
|
65
57
|
&_set {
|
|
66
58
|
&_form {
|
|
67
59
|
width: 100%;
|
|
60
|
+
padding: 12px 16px;
|
|
61
|
+
border-radius: 8px;
|
|
68
62
|
^^&-wrapper {
|
|
69
63
|
text-align: left;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
gap: 4px;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
.notification__item {
|
|
72
|
+
&_set {
|
|
73
|
+
&_toast {
|
|
74
|
+
width: 100%;
|
|
75
|
+
background: var(--color-surface-primary);
|
|
76
|
+
padding: 12px 16px;
|
|
77
|
+
border-radius: 8px;
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
gap: 24px;
|
|
81
|
+
@mixin elevation-8;
|
|
82
|
+
^^&-wrapper {
|
|
73
83
|
display: flex;
|
|
74
84
|
flex-direction: column;
|
|
75
85
|
gap: 4px;
|
|
@@ -80,8 +90,8 @@
|
|
|
80
90
|
.notification__item {
|
|
81
91
|
&_status {
|
|
82
92
|
&_success {
|
|
93
|
+
background: var(--color-success-primary);
|
|
83
94
|
^^&-wrapper {
|
|
84
|
-
background: var(--color-success-primary);
|
|
85
95
|
^^^&-title {
|
|
86
96
|
color: var(--color-success-text-secondary);
|
|
87
97
|
}
|
|
@@ -91,8 +101,8 @@
|
|
|
91
101
|
}
|
|
92
102
|
}
|
|
93
103
|
&_error {
|
|
104
|
+
background: var(--color-error-primary);
|
|
94
105
|
^^&-wrapper {
|
|
95
|
-
background: var(--color-error-primary);
|
|
96
106
|
^^^&-title {
|
|
97
107
|
color: var(--color-error-text-secondary);
|
|
98
108
|
}
|
|
@@ -102,8 +112,8 @@
|
|
|
102
112
|
}
|
|
103
113
|
}
|
|
104
114
|
&_warning {
|
|
115
|
+
background: var(--color-primary-primary);
|
|
105
116
|
^^&-wrapper {
|
|
106
|
-
background: var(--color-primary-primary);
|
|
107
117
|
^^^&-title {
|
|
108
118
|
color: var(--color-primary-text-primary);
|
|
109
119
|
}
|
|
@@ -117,13 +127,16 @@
|
|
|
117
127
|
.notification__item {
|
|
118
128
|
&_type {
|
|
119
129
|
&_close-button {
|
|
120
|
-
^^&-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
130
|
+
^^&-wrapper {
|
|
131
|
+
position: relative;
|
|
132
|
+
^^^&-title {
|
|
133
|
+
margin-right: 40px;
|
|
134
|
+
}
|
|
135
|
+
^^^&-close {
|
|
136
|
+
position: absolute;
|
|
137
|
+
top: 0;
|
|
138
|
+
right: 0;
|
|
139
|
+
}
|
|
127
140
|
}
|
|
128
141
|
}
|
|
129
142
|
}
|
|
@@ -3,19 +3,12 @@
|
|
|
3
3
|
&_float {
|
|
4
4
|
width: 100%;
|
|
5
5
|
border-radius: 8px;
|
|
6
|
+
padding: 12px 16px;
|
|
7
|
+
@mixin elevation-8;
|
|
6
8
|
^^&-wrapper {
|
|
7
|
-
padding: 12px 16px;
|
|
8
|
-
border-radius: 8px;
|
|
9
|
-
position: relative;
|
|
10
9
|
display: flex;
|
|
11
10
|
flex-direction: column;
|
|
12
11
|
gap: 4px;
|
|
13
|
-
@mixin elevation-8;
|
|
14
|
-
}
|
|
15
|
-
^^&-close {
|
|
16
|
-
position: absolute;
|
|
17
|
-
top: 16px;
|
|
18
|
-
right: 12px;
|
|
19
12
|
}
|
|
20
13
|
}
|
|
21
14
|
}
|