@itcase/ui 1.8.36 → 1.8.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Avatar_cjs_DBoMi2WA.js → Avatar_cjs_nMPCDjk8.js} +1 -1
- package/dist/{Avatar_es_DHREqfOD.js → Avatar_es_B73a6TzA.js} +1 -1
- package/dist/{Button_cjs_djJUZATX.js → Button_cjs_plv5-qcj.js} +10 -1
- package/dist/{Button_es_X1DzVhok.js → Button_es_BigB2Wz6.js} +10 -1
- package/dist/{ChipsGroup_cjs_5xsEchPo.js → ChipsGroup_cjs_DrOhD-Fc.js} +2 -4
- package/dist/{ChipsGroup_es_4TOkv-fm.js → ChipsGroup_es_B9m4l0wN.js} +2 -4
- package/dist/{DatePicker_cjs_DffhgUnQ.js → DatePicker_cjs_DKoF73mp.js} +17 -17
- package/dist/{DatePicker_es_GmkagjKf.js → DatePicker_es_CdEYxtwj.js} +17 -17
- package/dist/{DropdownItem_cjs_DxBpJAi9.js → DropdownItem_cjs_DQvByLbN.js} +1 -1
- package/dist/{DropdownItem_es_Loneq6M7.js → DropdownItem_es_KppIfto7.js} +1 -1
- package/dist/{Label_cjs_C88e2CIP.js → Label_cjs_BGJfyrOL.js} +50 -48
- package/dist/{Label_es_Bn2aRjLl.js → Label_es_C4Px7b-N.js} +50 -48
- package/dist/{Tooltip_cjs_oS1iOamX.js → Tooltip_cjs_DHduWa-v.js} +72 -68
- package/dist/{Tooltip_es_LV5ZNg3B.js → Tooltip_es_ltCY-w4M.js} +72 -68
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/AvatarStack.js +2 -2
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs/stories/__mock__.js +32 -48
- package/dist/cjs/components/Breadcrumbs.js +38 -120
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips/stories/__mock__.js +2 -2
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice.js +16 -14
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DatePeriod.js +25 -21
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown/stories/__mock__.js +103 -33
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/MenuItem.js +7 -9
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Notification.js +3 -9
- package/dist/cjs/components/Pagination.js +2 -2
- package/dist/cjs/components/Response.js +2 -2
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented/stories/__mock__.js +11 -11
- package/dist/cjs/components/Segmented.js +28 -25
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Switch.js +0 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Tile.js +1 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +2 -2
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs/stories/__mock__.js +33 -48
- package/dist/components/Breadcrumbs.js +38 -120
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips/stories/__mock__.js +2 -2
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice.js +16 -14
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DatePeriod.js +25 -21
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown/stories/__mock__.js +101 -34
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/MenuItem.js +7 -9
- package/dist/components/Modal.js +1 -1
- package/dist/components/Notification.js +3 -9
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Response.js +2 -2
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented/stories/__mock__.js +8 -8
- package/dist/components/Segmented.js +28 -25
- package/dist/components/Select.js +1 -1
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Switch.js +0 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/css/components/Breadcrumbs/Breadcrumbs.css +24 -0
- package/dist/css/components/Icon/Icon.css +24 -0
- package/dist/css/components/MenuItem/MenuItem.css +31 -0
- package/dist/css/components/Notification/Notification.css +0 -48
- package/dist/css/components/Segmented/Segmented.css +16 -7
- package/dist/css/components/Segmented/css/__item/segmaented__item.css +2 -5
- package/dist/stories/BreadcrumbsPlsyground.mdx +1 -1
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsAccent.d.ts +2 -12
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSize.d.ts +7 -14
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsStyle.d.ts +1 -3
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSurface.d.ts +11 -8
- package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +6 -32
- package/dist/types/components/Button/appearance/buttonSurface.d.ts +9 -0
- package/dist/types/components/Chips/appearance/chipsStyle.d.ts +1 -3
- package/dist/types/components/Choice/appearance/choiceDefault.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +1 -1
- package/dist/types/components/Choice/appearance/choiceError.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceRequire.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceStyle.d.ts +1 -3
- package/dist/types/components/Choice/appearance/choiceSuccess.d.ts +1 -0
- package/dist/types/components/Dropdown/stories/__mock__/index.d.ts +87 -44
- package/dist/types/components/Icon/appearance/iconAccent.d.ts +2 -4
- package/dist/types/components/Icon/appearance/iconDanger.d.ts +2 -4
- package/dist/types/components/Icon/appearance/iconDisabled.d.ts +12 -0
- package/dist/types/components/Icon/appearance/iconError.d.ts +4 -4
- package/dist/types/components/Icon/appearance/iconInfo.d.ts +7 -4
- package/dist/types/components/Icon/appearance/iconPrimary.d.ts +4 -2
- package/dist/types/components/Icon/appearance/iconSecondary.d.ts +2 -2
- package/dist/types/components/Icon/appearance/iconStyle.d.ts +4 -6
- package/dist/types/components/Icon/appearance/iconSuccess.d.ts +0 -2
- package/dist/types/components/Icon/appearance/iconSurface.d.ts +0 -5
- package/dist/types/components/Icon/appearance/iconWarning.d.ts +4 -4
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +1 -0
- package/dist/types/components/Label/appearance/labelSurface.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +4 -6
- package/dist/types/components/Notification/appearance/notificationDefault.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationError.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationInfo.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationSuccess.d.ts +0 -1
- package/dist/types/components/Notification/appearance/notificationWarning.d.ts +0 -1
- package/dist/types/components/Segmented/appearance/segmentedDefault.d.ts +1 -1
- package/dist/types/components/Segmented/appearance/segmentedDisabled.d.ts +2 -2
- package/dist/types/components/Segmented/appearance/segmentedError.d.ts +3 -1
- package/dist/types/components/Segmented/appearance/segmentedStyle.d.ts +3 -5
- package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +3 -2
- package/dist/types/components/Segmented/appearance/segmentedWarning.d.ts +2 -1
- package/dist/types/components/Segmented/stories/__mock__/index.d.ts +5 -5
- package/package.json +7 -7
- package/dist/css/components/Notification/css/__item/notification__item_status.css +0 -48
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsDanger.d.ts +0 -7
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsError.d.ts +0 -9
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsInfo.d.ts +0 -17
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsPrimary.d.ts +0 -8
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSecondary.d.ts +0 -8
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsSuccess.d.ts +0 -9
- package/dist/types/components/Breadcrumbs/appearance/breadcrumbsWarning.d.ts +0 -9
|
@@ -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 useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
|
-
var Tooltip = require('./
|
|
8
|
+
var Tooltip = require('./Tooltip_cjs_DHduWa-v.js');
|
|
9
9
|
var Image = require('./Image_cjs_CCWqbNn4.js');
|
|
10
10
|
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { I as Icon, B as Badge } from './
|
|
6
|
+
import { I as Icon, B as Badge } from './Tooltip_es_ltCY-w4M.js';
|
|
7
7
|
import { I as Image } from './Image_es_DZUVp0FS.js';
|
|
8
8
|
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
|
-
var Tooltip = require('./
|
|
7
|
+
var Tooltip = require('./Tooltip_cjs_DHduWa-v.js');
|
|
8
8
|
var Link = require('./Link_cjs_DbRGq2Yk.js');
|
|
9
9
|
var Loader = require('./Loader_cjs_Ca4i0sER.js');
|
|
10
10
|
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
@@ -302,6 +302,15 @@ var buttonAppearanceSurface = {
|
|
|
302
302
|
iconFillIcon: 'surfaceItemPrimary',
|
|
303
303
|
loaderAppearance: 'surfacePrimary',
|
|
304
304
|
},
|
|
305
|
+
surfaceQuaternary: {
|
|
306
|
+
fill: 'surfaceTertiary',
|
|
307
|
+
fillHover: 'surfaceTertiaryHover',
|
|
308
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
309
|
+
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
310
|
+
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
311
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
312
|
+
loaderAppearance: 'surfacePrimary',
|
|
313
|
+
},
|
|
305
314
|
};
|
|
306
315
|
|
|
307
316
|
var buttonAppearanceWarning = {
|
|
@@ -2,7 +2,7 @@ import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
|
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { I as Icon } from './
|
|
5
|
+
import { I as Icon } from './Tooltip_es_ltCY-w4M.js';
|
|
6
6
|
import { a as LinkWrapper } from './Link_es_DxtZLeKY.js';
|
|
7
7
|
import { L as Loader } from './Loader_es_GYOr0UTX.js';
|
|
8
8
|
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
@@ -300,6 +300,15 @@ var buttonAppearanceSurface = {
|
|
|
300
300
|
iconFillIcon: 'surfaceItemPrimary',
|
|
301
301
|
loaderAppearance: 'surfacePrimary',
|
|
302
302
|
},
|
|
303
|
+
surfaceQuaternary: {
|
|
304
|
+
fill: 'surfaceTertiary',
|
|
305
|
+
fillHover: 'surfaceTertiaryHover',
|
|
306
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
307
|
+
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
308
|
+
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
309
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
310
|
+
loaderAppearance: 'surfacePrimary',
|
|
311
|
+
},
|
|
303
312
|
};
|
|
304
313
|
|
|
305
314
|
var buttonAppearanceWarning = {
|
|
@@ -6,7 +6,7 @@ var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
9
|
-
var Tooltip = require('./
|
|
9
|
+
var Tooltip = require('./Tooltip_cjs_DHduWa-v.js');
|
|
10
10
|
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
11
11
|
|
|
12
12
|
var chipsAppearanceAccent = {
|
|
@@ -180,9 +180,7 @@ var chipsAppearanceStyle = {
|
|
|
180
180
|
outlined: {
|
|
181
181
|
fill: 'none',
|
|
182
182
|
},
|
|
183
|
-
full: {
|
|
184
|
-
borderColor: 'none',
|
|
185
|
-
},
|
|
183
|
+
full: {},
|
|
186
184
|
ghost: {
|
|
187
185
|
fill: 'none',
|
|
188
186
|
borderColor: 'none',
|
|
@@ -4,7 +4,7 @@ import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
|
|
|
4
4
|
import { useMemo } from 'react';
|
|
5
5
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon, B as Badge } from './
|
|
7
|
+
import { I as Icon, B as Badge } from './Tooltip_es_ltCY-w4M.js';
|
|
8
8
|
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
9
9
|
|
|
10
10
|
var chipsAppearanceAccent = {
|
|
@@ -178,9 +178,7 @@ var chipsAppearanceStyle = {
|
|
|
178
178
|
outlined: {
|
|
179
179
|
fill: 'none',
|
|
180
180
|
},
|
|
181
|
-
full: {
|
|
182
|
-
borderColor: 'none',
|
|
183
|
-
},
|
|
181
|
+
full: {},
|
|
184
182
|
ghost: {
|
|
185
183
|
fill: 'none',
|
|
186
184
|
borderColor: 'none',
|
|
@@ -8,10 +8,10 @@ var locale = require('date-fns/locale');
|
|
|
8
8
|
var DatePicker = require('react-datepicker');
|
|
9
9
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
11
|
-
var Button = require('./
|
|
12
|
-
var Tooltip = require('./
|
|
11
|
+
var Button = require('./Button_cjs_plv5-qcj.js');
|
|
12
|
+
var Tooltip = require('./Tooltip_cjs_DHduWa-v.js');
|
|
13
13
|
var Input = require('./Input_cjs_CPmXkQGd.js');
|
|
14
|
-
var Label = require('./
|
|
14
|
+
var Label = require('./Label_cjs_BGJfyrOL.js');
|
|
15
15
|
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
16
16
|
var _default = require('@itcase/icons/default');
|
|
17
17
|
|
|
@@ -100,35 +100,35 @@ function DatePickerInput(props) {
|
|
|
100
100
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(datePickerProps, appearanceConfig);
|
|
101
101
|
var daySize = propsGenerator.daySize, dayTextColor = propsGenerator.dayTextColor, dayTextShape = propsGenerator.dayTextShape, dayTextSize = propsGenerator.dayTextSize, iconFill = propsGenerator.iconFill, iconFillHover = propsGenerator.iconFillHover, iconFillSize = propsGenerator.iconFillSize, iconItemFill = propsGenerator.iconItemFill, iconLeft = propsGenerator.iconLeft, iconRight = propsGenerator.iconRight, iconShape = propsGenerator.iconShape, monthTextColor = propsGenerator.monthTextColor, monthTextSize = propsGenerator.monthTextSize, monthTextWeight = propsGenerator.monthTextWeight, popper = propsGenerator.popper, popperPlacement = propsGenerator.popperPlacement, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, yearTextColor = propsGenerator.yearTextColor, yearTextSize = propsGenerator.yearTextSize, yearTextWeight = propsGenerator.yearTextWeight, isClearable = propsGenerator.isClearable;
|
|
102
102
|
var _d = React.useMemo(function () {
|
|
103
|
-
var
|
|
103
|
+
var dateStart;
|
|
104
104
|
if (value) {
|
|
105
105
|
if (typeof value === 'string') {
|
|
106
|
-
|
|
106
|
+
dateStart = new Date(value);
|
|
107
107
|
}
|
|
108
108
|
else {
|
|
109
|
-
|
|
109
|
+
dateStart = value;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
else {
|
|
113
|
-
|
|
113
|
+
dateStart = undefined;
|
|
114
114
|
}
|
|
115
|
-
var
|
|
115
|
+
var dateEnd;
|
|
116
116
|
if (endValue) {
|
|
117
117
|
if (typeof endValue === 'string') {
|
|
118
|
-
|
|
118
|
+
dateEnd = new Date(endValue);
|
|
119
119
|
}
|
|
120
120
|
else {
|
|
121
|
-
|
|
121
|
+
dateEnd = endValue;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
else {
|
|
125
|
-
|
|
125
|
+
dateEnd = undefined;
|
|
126
126
|
}
|
|
127
|
-
return [
|
|
128
|
-
}, [value, endValue]),
|
|
129
|
-
var handleChange = React.useCallback(function (
|
|
130
|
-
var
|
|
131
|
-
onChange(
|
|
127
|
+
return [dateStart, dateEnd];
|
|
128
|
+
}, [value, endValue]), dateStart = _d[0], dateEnd = _d[1];
|
|
129
|
+
var handleChange = React.useCallback(function (valuesList) {
|
|
130
|
+
var newDateStart = valuesList[0], newDateEnd = valuesList[1];
|
|
131
|
+
onChange(newDateStart, newDateEnd);
|
|
132
132
|
}, [onChange]);
|
|
133
133
|
var renderDayContents = React.useCallback(function (day, date) {
|
|
134
134
|
return (jsxRuntime.jsx(Button.Button, { className: "react-datepicker__day-button", size: daySize, label: date.getDate().toString(), labelTextColor: dayTextColor, labelTextSize: dayTextSize, shape: dayTextShape }));
|
|
@@ -152,7 +152,7 @@ function DatePickerInput(props) {
|
|
|
152
152
|
yearTextWeight,
|
|
153
153
|
]);
|
|
154
154
|
var datePickerStyles = useStyles.useStyles(props).styles;
|
|
155
|
-
return (jsxRuntime.jsx("div", { className: clsx(className, 'datepicker', monthsShown && 'datepicker_multiple-months', customTimeInput && 'datepicker_button', sizeClass && "datepicker_size_".concat(sizeClass), widthClass && "datepicker_width_".concat(widthClass)), style: datePickerStyles, children: jsxRuntime.jsx(DatePicker, tslib_es6.__assign({ minDate: disablePastDays ? new Date() : undefined, customInput: jsxRuntime.jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: isClearable }), endDate: selectsRange ?
|
|
155
|
+
return (jsxRuntime.jsx("div", { className: clsx(className, 'datepicker', monthsShown && 'datepicker_multiple-months', customTimeInput && 'datepicker_button', sizeClass && "datepicker_size_".concat(sizeClass), widthClass && "datepicker_width_".concat(widthClass)), style: datePickerStyles, children: jsxRuntime.jsx(DatePicker, tslib_es6.__assign({ minDate: disablePastDays ? new Date() : undefined, customInput: jsxRuntime.jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: isClearable }), endDate: selectsRange ? dateEnd : undefined, locale: locale.ru, popperClassName: popper && "react-datepicker-popper-".concat(popper), popperPlacement: popperPlacement, ref: datepickerRef, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: dateStart, startDate: dateStart, onChange: selectsRange ? handleChange : onChange }, datePickerProps, {
|
|
156
156
|
// Important for use custom clear button
|
|
157
157
|
isClearable: false })) }));
|
|
158
158
|
}
|
|
@@ -6,10 +6,10 @@ import { ru } from 'date-fns/locale';
|
|
|
6
6
|
import DatePicker from 'react-datepicker';
|
|
7
7
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
9
|
-
import { B as Button } from './
|
|
10
|
-
import { I as Icon } from './
|
|
9
|
+
import { B as Button } from './Button_es_BigB2Wz6.js';
|
|
10
|
+
import { I as Icon } from './Tooltip_es_ltCY-w4M.js';
|
|
11
11
|
import { I as Input } from './Input_es_D9Y1Rj5Y.js';
|
|
12
|
-
import { L as Label } from './
|
|
12
|
+
import { L as Label } from './Label_es_C4Px7b-N.js';
|
|
13
13
|
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
14
14
|
import { icons14 } from '@itcase/icons/default';
|
|
15
15
|
|
|
@@ -98,35 +98,35 @@ function DatePickerInput(props) {
|
|
|
98
98
|
var propsGenerator = useDevicePropsGenerator(datePickerProps, appearanceConfig);
|
|
99
99
|
var daySize = propsGenerator.daySize, dayTextColor = propsGenerator.dayTextColor, dayTextShape = propsGenerator.dayTextShape, dayTextSize = propsGenerator.dayTextSize, iconFill = propsGenerator.iconFill, iconFillHover = propsGenerator.iconFillHover, iconFillSize = propsGenerator.iconFillSize, iconItemFill = propsGenerator.iconItemFill, iconLeft = propsGenerator.iconLeft, iconRight = propsGenerator.iconRight, iconShape = propsGenerator.iconShape, monthTextColor = propsGenerator.monthTextColor, monthTextSize = propsGenerator.monthTextSize, monthTextWeight = propsGenerator.monthTextWeight, popper = propsGenerator.popper, popperPlacement = propsGenerator.popperPlacement, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, yearTextColor = propsGenerator.yearTextColor, yearTextSize = propsGenerator.yearTextSize, yearTextWeight = propsGenerator.yearTextWeight, isClearable = propsGenerator.isClearable;
|
|
100
100
|
var _d = useMemo(function () {
|
|
101
|
-
var
|
|
101
|
+
var dateStart;
|
|
102
102
|
if (value) {
|
|
103
103
|
if (typeof value === 'string') {
|
|
104
|
-
|
|
104
|
+
dateStart = new Date(value);
|
|
105
105
|
}
|
|
106
106
|
else {
|
|
107
|
-
|
|
107
|
+
dateStart = value;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
else {
|
|
111
|
-
|
|
111
|
+
dateStart = undefined;
|
|
112
112
|
}
|
|
113
|
-
var
|
|
113
|
+
var dateEnd;
|
|
114
114
|
if (endValue) {
|
|
115
115
|
if (typeof endValue === 'string') {
|
|
116
|
-
|
|
116
|
+
dateEnd = new Date(endValue);
|
|
117
117
|
}
|
|
118
118
|
else {
|
|
119
|
-
|
|
119
|
+
dateEnd = endValue;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
else {
|
|
123
|
-
|
|
123
|
+
dateEnd = undefined;
|
|
124
124
|
}
|
|
125
|
-
return [
|
|
126
|
-
}, [value, endValue]),
|
|
127
|
-
var handleChange = useCallback(function (
|
|
128
|
-
var
|
|
129
|
-
onChange(
|
|
125
|
+
return [dateStart, dateEnd];
|
|
126
|
+
}, [value, endValue]), dateStart = _d[0], dateEnd = _d[1];
|
|
127
|
+
var handleChange = useCallback(function (valuesList) {
|
|
128
|
+
var newDateStart = valuesList[0], newDateEnd = valuesList[1];
|
|
129
|
+
onChange(newDateStart, newDateEnd);
|
|
130
130
|
}, [onChange]);
|
|
131
131
|
var renderDayContents = useCallback(function (day, date) {
|
|
132
132
|
return (jsx(Button, { className: "react-datepicker__day-button", size: daySize, label: date.getDate().toString(), labelTextColor: dayTextColor, labelTextSize: dayTextSize, shape: dayTextShape }));
|
|
@@ -150,7 +150,7 @@ function DatePickerInput(props) {
|
|
|
150
150
|
yearTextWeight,
|
|
151
151
|
]);
|
|
152
152
|
var datePickerStyles = useStyles(props).styles;
|
|
153
|
-
return (jsx("div", { className: clsx(className, 'datepicker', monthsShown && 'datepicker_multiple-months', customTimeInput && 'datepicker_button', sizeClass && "datepicker_size_".concat(sizeClass), widthClass && "datepicker_width_".concat(widthClass)), style: datePickerStyles, children: jsx(DatePicker, __assign({ minDate: disablePastDays ? new Date() : undefined, customInput: jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: isClearable }), endDate: selectsRange ?
|
|
153
|
+
return (jsx("div", { className: clsx(className, 'datepicker', monthsShown && 'datepicker_multiple-months', customTimeInput && 'datepicker_button', sizeClass && "datepicker_size_".concat(sizeClass), widthClass && "datepicker_width_".concat(widthClass)), style: datePickerStyles, children: jsx(DatePicker, __assign({ minDate: disablePastDays ? new Date() : undefined, customInput: jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: isClearable }), endDate: selectsRange ? dateEnd : undefined, locale: ru, popperClassName: popper && "react-datepicker-popper-".concat(popper), popperPlacement: popperPlacement, ref: datepickerRef, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: dateStart, startDate: dateStart, onChange: selectsRange ? handleChange : onChange }, datePickerProps, {
|
|
154
154
|
// Important for use custom clear button
|
|
155
155
|
isClearable: false })) }));
|
|
156
156
|
}
|
|
@@ -7,7 +7,7 @@ var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDe
|
|
|
7
7
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
8
8
|
var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
|
|
9
9
|
var Divider = require('./Divider_cjs_BmCJj3TN.js');
|
|
10
|
-
var Tooltip = require('./
|
|
10
|
+
var Tooltip = require('./Tooltip_cjs_DHduWa-v.js');
|
|
11
11
|
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
12
12
|
|
|
13
13
|
function Dropdown(props) {
|
|
@@ -5,7 +5,7 @@ import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevi
|
|
|
5
5
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
6
6
|
import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
|
|
7
7
|
import { D as Divider } from './Divider_es_kY-30pft.js';
|
|
8
|
-
import { I as Icon } from './
|
|
8
|
+
import { I as Icon } from './Tooltip_es_ltCY-w4M.js';
|
|
9
9
|
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
10
10
|
|
|
11
11
|
function Dropdown(props) {
|
|
@@ -6,16 +6,16 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
9
|
-
var Tooltip = require('./
|
|
9
|
+
var Tooltip = require('./Tooltip_cjs_DHduWa-v.js');
|
|
10
10
|
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
11
11
|
|
|
12
12
|
var labelAppearanceAccent = {
|
|
13
13
|
accentMutedPrimary: {
|
|
14
|
-
fill: '
|
|
15
|
-
labelTextColor: '
|
|
16
|
-
borderColor: '
|
|
17
|
-
iconAfterFillIcon: '
|
|
18
|
-
iconBeforeFillIcon: '
|
|
14
|
+
fill: 'accentTertiary',
|
|
15
|
+
labelTextColor: 'accentTextQuaternary',
|
|
16
|
+
borderColor: 'accentBorderSecondary',
|
|
17
|
+
iconAfterFillIcon: 'accentItemQuaternary',
|
|
18
|
+
iconBeforeFillIcon: 'accentItemQuaternary',
|
|
19
19
|
},
|
|
20
20
|
accentPrimary: {
|
|
21
21
|
fill: 'accentPrimary',
|
|
@@ -32,11 +32,11 @@ var labelAppearanceAccent = {
|
|
|
32
32
|
|
|
33
33
|
var labelAppearanceDanger = {
|
|
34
34
|
dangerMutedPrimary: {
|
|
35
|
-
fill: '
|
|
36
|
-
labelTextColor: '
|
|
37
|
-
borderColor: '
|
|
38
|
-
iconAfterFillIcon: '
|
|
39
|
-
iconBeforeFillIcon: '
|
|
35
|
+
fill: 'dangerTertiary',
|
|
36
|
+
labelTextColor: 'dangerTextQuaternary',
|
|
37
|
+
borderColor: 'dangerBorderQuaternary',
|
|
38
|
+
iconAfterFillIcon: 'dangerItemQuaternary',
|
|
39
|
+
iconBeforeFillIcon: 'dangerItemQuaternary',
|
|
40
40
|
},
|
|
41
41
|
dangerPrimary: {
|
|
42
42
|
fill: 'dangerPrimary',
|
|
@@ -49,7 +49,7 @@ var labelAppearanceDanger = {
|
|
|
49
49
|
|
|
50
50
|
var labelAppearanceDisable = {
|
|
51
51
|
disableMutedPrimary: {
|
|
52
|
-
fill: '
|
|
52
|
+
fill: 'disableMuted',
|
|
53
53
|
labelTextColor: 'disableMutedTextPrimary',
|
|
54
54
|
borderColor: 'disableMutedBorderSecondary',
|
|
55
55
|
iconAfterFillIcon: 'disableMutedItemPrimary',
|
|
@@ -66,11 +66,11 @@ var labelAppearanceDisable = {
|
|
|
66
66
|
|
|
67
67
|
var labelAppearanceError = {
|
|
68
68
|
errorMutedPrimary: {
|
|
69
|
-
fill: '
|
|
70
|
-
labelTextColor: '
|
|
71
|
-
borderColor: '
|
|
72
|
-
iconAfterFillIcon: '
|
|
73
|
-
iconBeforeFillIcon: '
|
|
69
|
+
fill: 'errorDisabled',
|
|
70
|
+
labelTextColor: 'errorTextQuaternary',
|
|
71
|
+
borderColor: 'errorBorderSecondary',
|
|
72
|
+
iconAfterFillIcon: 'errorItemQuaternary',
|
|
73
|
+
iconBeforeFillIcon: 'errorItemQuaternary',
|
|
74
74
|
},
|
|
75
75
|
errorPrimary: {
|
|
76
76
|
fill: 'errorPrimary',
|
|
@@ -84,7 +84,7 @@ var labelAppearanceError = {
|
|
|
84
84
|
|
|
85
85
|
var labelAppearanceInfo = {
|
|
86
86
|
infoMutedPrimary: {
|
|
87
|
-
fill: '
|
|
87
|
+
fill: 'infoMuted',
|
|
88
88
|
labelTextColor: 'infoMutedTextPrimary',
|
|
89
89
|
borderColor: 'infoMutedBorderSecondary',
|
|
90
90
|
iconAfterFillIcon: 'infoMutedItemPrimary',
|
|
@@ -108,28 +108,29 @@ var labelAppearanceInfo = {
|
|
|
108
108
|
|
|
109
109
|
var labelAppearancePrimary = {
|
|
110
110
|
primaryMutedPrimary: {
|
|
111
|
-
fill: '
|
|
112
|
-
labelTextColor: '
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
111
|
+
fill: 'primaryDisabled',
|
|
112
|
+
labelTextColor: 'primaryTextSecondary',
|
|
113
|
+
labelTextColorHover: 'primaryTextSecondary',
|
|
114
|
+
borderColor: 'primaryBorderTertiary',
|
|
115
|
+
iconAfterFillIcon: 'primaryItemSecondary',
|
|
116
|
+
iconBeforeFillIcon: 'primaryItemSecondary',
|
|
116
117
|
},
|
|
117
118
|
primaryPrimary: {
|
|
118
|
-
fill: '
|
|
119
|
-
labelTextColor: '
|
|
120
|
-
borderColor: '
|
|
121
|
-
iconAfterFillIcon: '
|
|
122
|
-
iconBeforeFillIcon: '
|
|
119
|
+
fill: 'primaryDisabled',
|
|
120
|
+
labelTextColor: 'primaryTextSecondary',
|
|
121
|
+
borderColor: 'primaryBorderTertiary',
|
|
122
|
+
iconAfterFillIcon: 'primaryItemSecondary',
|
|
123
|
+
iconBeforeFillIcon: 'primaryItemSecondary',
|
|
123
124
|
},
|
|
124
125
|
};
|
|
125
126
|
|
|
126
127
|
var labelAppearanceSecondary = {
|
|
127
128
|
secondaryMutedPrimary: {
|
|
128
|
-
fill: '
|
|
129
|
-
labelTextColor: '
|
|
130
|
-
borderColor: '
|
|
131
|
-
iconAfterFillIcon: '
|
|
132
|
-
iconBeforeFillIcon: '
|
|
129
|
+
fill: 'secondaryDisabled',
|
|
130
|
+
labelTextColor: 'secondaryTextQuaternary',
|
|
131
|
+
borderColor: 'secondaryBorderDisabled',
|
|
132
|
+
iconAfterFillIcon: 'secondaryItemQuaternary',
|
|
133
|
+
iconBeforeFillIcon: 'secondaryItemQuaternary',
|
|
133
134
|
},
|
|
134
135
|
secondaryPrimary: {
|
|
135
136
|
fill: 'secondaryPrimary',
|
|
@@ -215,11 +216,11 @@ var labelAppearanceStyle = {
|
|
|
215
216
|
|
|
216
217
|
var labelAppearanceSuccess = {
|
|
217
218
|
successMutedPrimary: {
|
|
218
|
-
fill: '
|
|
219
|
-
labelTextColor: '
|
|
220
|
-
borderColor: '
|
|
221
|
-
iconAfterFillIcon: '
|
|
222
|
-
iconBeforeFillIcon: '
|
|
219
|
+
fill: 'successTertiary',
|
|
220
|
+
labelTextColor: 'successTextQuaternary',
|
|
221
|
+
borderColor: 'successBorderQuaternary',
|
|
222
|
+
iconAfterFillIcon: 'successItemQuaternary',
|
|
223
|
+
iconBeforeFillIcon: 'successItemQuaternary',
|
|
223
224
|
},
|
|
224
225
|
successPrimary: {
|
|
225
226
|
fill: 'successPrimary',
|
|
@@ -233,11 +234,12 @@ var labelAppearanceSuccess = {
|
|
|
233
234
|
|
|
234
235
|
var labelAppearanceSurface = {
|
|
235
236
|
surfaceMutedPrimary: {
|
|
236
|
-
fill: '
|
|
237
|
-
labelTextColor: '
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
237
|
+
fill: 'surfaceSecondary',
|
|
238
|
+
labelTextColor: 'surfaceTextQuaternary',
|
|
239
|
+
labelTextColorHover: 'surfaceTextQuaternary',
|
|
240
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
241
|
+
iconAfterFillIcon: 'surfaceItemQuaternary',
|
|
242
|
+
iconBeforeFillIcon: 'surfaceItemQuaternary',
|
|
241
243
|
},
|
|
242
244
|
surfacePrimary: {
|
|
243
245
|
fill: 'surfacePrimary',
|
|
@@ -262,11 +264,11 @@ var labelAppearanceSurface = {
|
|
|
262
264
|
|
|
263
265
|
var labelAppearanceWarning = {
|
|
264
266
|
warningMutedPrimary: {
|
|
265
|
-
fill: '
|
|
266
|
-
labelTextColor: '
|
|
267
|
-
borderColor: '
|
|
268
|
-
iconAfterFillIcon: '
|
|
269
|
-
iconBeforeFillIcon: '
|
|
267
|
+
fill: 'warningTertiary',
|
|
268
|
+
labelTextColor: 'warningTextSecondary',
|
|
269
|
+
borderColor: 'warningBorderSecondary',
|
|
270
|
+
iconAfterFillIcon: 'warningItemSecondary',
|
|
271
|
+
iconBeforeFillIcon: 'warningItemSecondary',
|
|
270
272
|
},
|
|
271
273
|
warningPrimary: {
|
|
272
274
|
fill: 'warningPrimary',
|
|
@@ -4,16 +4,16 @@ import { useRef, useCallback } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon, T as Tooltip } from './
|
|
7
|
+
import { I as Icon, T as Tooltip } from './Tooltip_es_ltCY-w4M.js';
|
|
8
8
|
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
9
9
|
|
|
10
10
|
var labelAppearanceAccent = {
|
|
11
11
|
accentMutedPrimary: {
|
|
12
|
-
fill: '
|
|
13
|
-
labelTextColor: '
|
|
14
|
-
borderColor: '
|
|
15
|
-
iconAfterFillIcon: '
|
|
16
|
-
iconBeforeFillIcon: '
|
|
12
|
+
fill: 'accentTertiary',
|
|
13
|
+
labelTextColor: 'accentTextQuaternary',
|
|
14
|
+
borderColor: 'accentBorderSecondary',
|
|
15
|
+
iconAfterFillIcon: 'accentItemQuaternary',
|
|
16
|
+
iconBeforeFillIcon: 'accentItemQuaternary',
|
|
17
17
|
},
|
|
18
18
|
accentPrimary: {
|
|
19
19
|
fill: 'accentPrimary',
|
|
@@ -30,11 +30,11 @@ var labelAppearanceAccent = {
|
|
|
30
30
|
|
|
31
31
|
var labelAppearanceDanger = {
|
|
32
32
|
dangerMutedPrimary: {
|
|
33
|
-
fill: '
|
|
34
|
-
labelTextColor: '
|
|
35
|
-
borderColor: '
|
|
36
|
-
iconAfterFillIcon: '
|
|
37
|
-
iconBeforeFillIcon: '
|
|
33
|
+
fill: 'dangerTertiary',
|
|
34
|
+
labelTextColor: 'dangerTextQuaternary',
|
|
35
|
+
borderColor: 'dangerBorderQuaternary',
|
|
36
|
+
iconAfterFillIcon: 'dangerItemQuaternary',
|
|
37
|
+
iconBeforeFillIcon: 'dangerItemQuaternary',
|
|
38
38
|
},
|
|
39
39
|
dangerPrimary: {
|
|
40
40
|
fill: 'dangerPrimary',
|
|
@@ -47,7 +47,7 @@ var labelAppearanceDanger = {
|
|
|
47
47
|
|
|
48
48
|
var labelAppearanceDisable = {
|
|
49
49
|
disableMutedPrimary: {
|
|
50
|
-
fill: '
|
|
50
|
+
fill: 'disableMuted',
|
|
51
51
|
labelTextColor: 'disableMutedTextPrimary',
|
|
52
52
|
borderColor: 'disableMutedBorderSecondary',
|
|
53
53
|
iconAfterFillIcon: 'disableMutedItemPrimary',
|
|
@@ -64,11 +64,11 @@ var labelAppearanceDisable = {
|
|
|
64
64
|
|
|
65
65
|
var labelAppearanceError = {
|
|
66
66
|
errorMutedPrimary: {
|
|
67
|
-
fill: '
|
|
68
|
-
labelTextColor: '
|
|
69
|
-
borderColor: '
|
|
70
|
-
iconAfterFillIcon: '
|
|
71
|
-
iconBeforeFillIcon: '
|
|
67
|
+
fill: 'errorDisabled',
|
|
68
|
+
labelTextColor: 'errorTextQuaternary',
|
|
69
|
+
borderColor: 'errorBorderSecondary',
|
|
70
|
+
iconAfterFillIcon: 'errorItemQuaternary',
|
|
71
|
+
iconBeforeFillIcon: 'errorItemQuaternary',
|
|
72
72
|
},
|
|
73
73
|
errorPrimary: {
|
|
74
74
|
fill: 'errorPrimary',
|
|
@@ -82,7 +82,7 @@ var labelAppearanceError = {
|
|
|
82
82
|
|
|
83
83
|
var labelAppearanceInfo = {
|
|
84
84
|
infoMutedPrimary: {
|
|
85
|
-
fill: '
|
|
85
|
+
fill: 'infoMuted',
|
|
86
86
|
labelTextColor: 'infoMutedTextPrimary',
|
|
87
87
|
borderColor: 'infoMutedBorderSecondary',
|
|
88
88
|
iconAfterFillIcon: 'infoMutedItemPrimary',
|
|
@@ -106,28 +106,29 @@ var labelAppearanceInfo = {
|
|
|
106
106
|
|
|
107
107
|
var labelAppearancePrimary = {
|
|
108
108
|
primaryMutedPrimary: {
|
|
109
|
-
fill: '
|
|
110
|
-
labelTextColor: '
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
109
|
+
fill: 'primaryDisabled',
|
|
110
|
+
labelTextColor: 'primaryTextSecondary',
|
|
111
|
+
labelTextColorHover: 'primaryTextSecondary',
|
|
112
|
+
borderColor: 'primaryBorderTertiary',
|
|
113
|
+
iconAfterFillIcon: 'primaryItemSecondary',
|
|
114
|
+
iconBeforeFillIcon: 'primaryItemSecondary',
|
|
114
115
|
},
|
|
115
116
|
primaryPrimary: {
|
|
116
|
-
fill: '
|
|
117
|
-
labelTextColor: '
|
|
118
|
-
borderColor: '
|
|
119
|
-
iconAfterFillIcon: '
|
|
120
|
-
iconBeforeFillIcon: '
|
|
117
|
+
fill: 'primaryDisabled',
|
|
118
|
+
labelTextColor: 'primaryTextSecondary',
|
|
119
|
+
borderColor: 'primaryBorderTertiary',
|
|
120
|
+
iconAfterFillIcon: 'primaryItemSecondary',
|
|
121
|
+
iconBeforeFillIcon: 'primaryItemSecondary',
|
|
121
122
|
},
|
|
122
123
|
};
|
|
123
124
|
|
|
124
125
|
var labelAppearanceSecondary = {
|
|
125
126
|
secondaryMutedPrimary: {
|
|
126
|
-
fill: '
|
|
127
|
-
labelTextColor: '
|
|
128
|
-
borderColor: '
|
|
129
|
-
iconAfterFillIcon: '
|
|
130
|
-
iconBeforeFillIcon: '
|
|
127
|
+
fill: 'secondaryDisabled',
|
|
128
|
+
labelTextColor: 'secondaryTextQuaternary',
|
|
129
|
+
borderColor: 'secondaryBorderDisabled',
|
|
130
|
+
iconAfterFillIcon: 'secondaryItemQuaternary',
|
|
131
|
+
iconBeforeFillIcon: 'secondaryItemQuaternary',
|
|
131
132
|
},
|
|
132
133
|
secondaryPrimary: {
|
|
133
134
|
fill: 'secondaryPrimary',
|
|
@@ -213,11 +214,11 @@ var labelAppearanceStyle = {
|
|
|
213
214
|
|
|
214
215
|
var labelAppearanceSuccess = {
|
|
215
216
|
successMutedPrimary: {
|
|
216
|
-
fill: '
|
|
217
|
-
labelTextColor: '
|
|
218
|
-
borderColor: '
|
|
219
|
-
iconAfterFillIcon: '
|
|
220
|
-
iconBeforeFillIcon: '
|
|
217
|
+
fill: 'successTertiary',
|
|
218
|
+
labelTextColor: 'successTextQuaternary',
|
|
219
|
+
borderColor: 'successBorderQuaternary',
|
|
220
|
+
iconAfterFillIcon: 'successItemQuaternary',
|
|
221
|
+
iconBeforeFillIcon: 'successItemQuaternary',
|
|
221
222
|
},
|
|
222
223
|
successPrimary: {
|
|
223
224
|
fill: 'successPrimary',
|
|
@@ -231,11 +232,12 @@ var labelAppearanceSuccess = {
|
|
|
231
232
|
|
|
232
233
|
var labelAppearanceSurface = {
|
|
233
234
|
surfaceMutedPrimary: {
|
|
234
|
-
fill: '
|
|
235
|
-
labelTextColor: '
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
235
|
+
fill: 'surfaceSecondary',
|
|
236
|
+
labelTextColor: 'surfaceTextQuaternary',
|
|
237
|
+
labelTextColorHover: 'surfaceTextQuaternary',
|
|
238
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
239
|
+
iconAfterFillIcon: 'surfaceItemQuaternary',
|
|
240
|
+
iconBeforeFillIcon: 'surfaceItemQuaternary',
|
|
239
241
|
},
|
|
240
242
|
surfacePrimary: {
|
|
241
243
|
fill: 'surfacePrimary',
|
|
@@ -260,11 +262,11 @@ var labelAppearanceSurface = {
|
|
|
260
262
|
|
|
261
263
|
var labelAppearanceWarning = {
|
|
262
264
|
warningMutedPrimary: {
|
|
263
|
-
fill: '
|
|
264
|
-
labelTextColor: '
|
|
265
|
-
borderColor: '
|
|
266
|
-
iconAfterFillIcon: '
|
|
267
|
-
iconBeforeFillIcon: '
|
|
265
|
+
fill: 'warningTertiary',
|
|
266
|
+
labelTextColor: 'warningTextSecondary',
|
|
267
|
+
borderColor: 'warningBorderSecondary',
|
|
268
|
+
iconAfterFillIcon: 'warningItemSecondary',
|
|
269
|
+
iconBeforeFillIcon: 'warningItemSecondary',
|
|
268
270
|
},
|
|
269
271
|
warningPrimary: {
|
|
270
272
|
fill: 'warningPrimary',
|