@itcase/ui 1.8.121 → 1.8.123
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_BKcQuqYV.js → Avatar_cjs_CLJnKU39.js} +3 -3
- package/dist/{Avatar_es_Cpn1PNmO.js → Avatar_es_BgN-fbOj.js} +3 -3
- package/dist/{Button_cjs_3BTD8Mlm.js → Button_cjs_Ce97psFT.js} +5 -5
- package/dist/{Button_es_B_k-SP92.js → Button_es_CZss7cXh.js} +5 -5
- package/dist/{ChipsGroup_cjs_DhoY9YjT.js → ChipsGroup_cjs_C8L3ZeD_.js} +1 -1
- package/dist/{ChipsGroup_es_Dg1GmJ-9.js → ChipsGroup_es_ayPPUwQ7.js} +1 -1
- package/dist/{DatePicker_cjs_BLkZB0S0.js → DatePicker_cjs_BzEtDAb8.js} +4 -4
- package/dist/{DatePicker_es_CKrgRUWu.js → DatePicker_es_DRyCMO0I.js} +4 -4
- package/dist/{DropdownItem_cjs_D3Mcbsxa.js → DropdownItem_cjs_Bhss6lyM.js} +1 -1
- package/dist/{DropdownItem_es_BUs02mjJ.js → DropdownItem_es_BXl6lPJx.js} +1 -1
- package/dist/{Icon_cjs_CUArL1z2.js → Icon_cjs_Cz6IyOkb.js} +2 -2
- package/dist/{Icon_es_CNrc90oI.js → Icon_es_BrwLifge.js} +2 -2
- package/dist/{Image_cjs_B6YlGx8G.js → Image_cjs_DRhhc66R.js} +2 -1
- package/dist/{Image_es_BvYo_cHH.js → Image_es_BpMidmve.js} +2 -1
- package/dist/{Input_cjs_Du73R-wm.js → Input_cjs_DRPK_RHK.js} +3 -3
- package/dist/{Input_es_CiDHjDqJ.js → Input_es_Cv5nEb_n.js} +3 -3
- package/dist/{Label_cjs_BUEGAnsq.js → Label_cjs_DMoaOoHi.js} +1 -1
- package/dist/{Label_es_I01RN9hv.js → Label_es_SULlg9bL.js} +1 -1
- package/dist/{Loader_cjs_Cme6Hi0B.js → Loader_cjs_D3lnxPlI.js} +4 -0
- package/dist/{Loader_es_ByhTIMxS.js → Loader_es_BUSqFrCd.js} +4 -0
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +3 -3
- package/dist/cjs/components/AvatarStack.js +3 -3
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs.js +1 -1
- package/dist/cjs/components/Button.js +3 -3
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice.js +2 -2
- package/dist/cjs/components/CookiesWarning.js +3 -3
- package/dist/cjs/components/Dadata.js +1 -1
- package/dist/cjs/components/DatePeriod.js +10 -10
- package/dist/cjs/components/DatePicker.js +6 -6
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/Grid.js +3 -3
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/Image.js +1 -1
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputPassword.js +89 -67
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/Loader.js +1 -1
- package/dist/cjs/components/MenuItem.js +3 -2
- package/dist/cjs/components/Modal.js +2 -2
- package/dist/cjs/components/ModalSheetBottom.js +1 -1
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +2 -2
- package/dist/cjs/components/Response/img.js +8 -2
- package/dist/cjs/components/Response.js +131 -30
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented.js +6 -6
- package/dist/cjs/components/Select.js +2 -2
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +30 -46
- 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/cjs/components/Warning.js +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +3 -3
- package/dist/components/AvatarStack.js +3 -3
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs.js +1 -1
- package/dist/components/Button.js +3 -3
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice.js +2 -2
- package/dist/components/CookiesWarning.js +3 -3
- package/dist/components/Dadata.js +1 -1
- package/dist/components/DatePeriod.js +10 -10
- package/dist/components/DatePicker.js +6 -6
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/Grid.js +3 -3
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/Image.js +1 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/InputPassword.js +89 -67
- package/dist/components/Label.js +2 -2
- package/dist/components/Loader.js +1 -1
- package/dist/components/MenuItem.js +3 -2
- package/dist/components/Modal.js +2 -2
- package/dist/components/ModalSheetBottom.js +1 -1
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Response/img.js +8 -2
- package/dist/components/Response.js +132 -32
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented.js +6 -6
- package/dist/components/Select.js +2 -2
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +30 -46
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Warning.js +1 -1
- package/dist/css/components/Cell/Cell.css +1 -2
- package/dist/css/components/Checkmark/Checkmark.css +2 -0
- package/dist/css/components/DatePeriod/DatePeriod.css +3 -0
- package/dist/css/components/Input/Input.css +0 -8
- package/dist/css/components/InputPassword/InputPassword.css +34 -43
- package/dist/css/components/MenuItem/MenuItem.css +28 -15
- package/dist/css/components/Tooltip/Tooltip.css +1 -0
- package/dist/types/components/InputPassword/InputPassword.appearance.d.ts +179 -2
- package/dist/types/components/InputPassword/appearance/inputPasswordDefault.d.ts +7 -4
- package/dist/types/components/InputPassword/appearance/inputPasswordDisabled.d.ts +6 -4
- package/dist/types/components/InputPassword/appearance/inputPasswordError.d.ts +6 -4
- package/dist/types/components/InputPassword/appearance/inputPasswordRequire.d.ts +6 -4
- package/dist/types/components/InputPassword/appearance/inputPasswordShape.d.ts +25 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordSize.d.ts +14 -28
- package/dist/types/components/InputPassword/appearance/inputPasswordStyle.d.ts +5 -5
- package/dist/types/components/InputPassword/appearance/inputPasswordSuccess.d.ts +6 -4
- package/dist/types/components/Response/Response.constant.d.ts +76 -0
- package/dist/types/components/Response/appearance/{responceConfirm.d.ts → responseConfirm.d.ts} +1 -0
- package/dist/types/components/Response/appearance/responseDanger.d.ts +1 -0
- package/dist/types/components/Response/appearance/{responceEmpty.d.ts → responseEmpty.d.ts} +1 -0
- package/dist/types/components/Response/appearance/responseError.d.ts +1 -0
- package/dist/types/components/Response/appearance/{responceFail.d.ts → responseFail.d.ts} +1 -0
- package/dist/types/components/Response/appearance/{responceNothingFound.d.ts → responseNothingFound.d.ts} +1 -0
- package/dist/types/components/Response/appearance/{responceRefresh.d.ts → responseRefresh.d.ts} +1 -0
- package/dist/types/components/Response/appearance/responseStyle.d.ts +14 -0
- package/dist/types/components/Response/appearance/responseSuccess.d.ts +1 -0
- package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +1 -0
- package/dist/types/components/Response/appearance/responseWarning.d.ts +1 -0
- package/dist/types/components/Response/img/index.d.ts +2 -0
- package/dist/types/components/Response/index.d.ts +2 -1
- package/dist/types/components/Tab/appearance/tabSize.d.ts +0 -14
- package/dist/types/components/Tab/appearance/tabSurface.d.ts +7 -7
- package/package.json +13 -13
|
@@ -4,10 +4,10 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var common = require('@itcase/common');
|
|
7
|
-
var DatePicker = require('../../
|
|
7
|
+
var DatePicker = require('../../DatePicker_cjs_BzEtDAb8.js');
|
|
8
8
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
9
9
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
|
-
var ChipsGroup = require('../../
|
|
10
|
+
var ChipsGroup = require('../../ChipsGroup_cjs_C8L3ZeD_.js');
|
|
11
11
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
12
12
|
require('date-fns/locale');
|
|
13
13
|
require('react-datepicker');
|
|
@@ -23,16 +23,16 @@ require('react-responsive');
|
|
|
23
23
|
require('../utils/setViewportProperty.js');
|
|
24
24
|
require('../hooks.js');
|
|
25
25
|
require('../hooks/useStyles/styleAttributes.js');
|
|
26
|
-
require('../../
|
|
27
|
-
require('../../
|
|
26
|
+
require('../../Button_cjs_Ce97psFT.js');
|
|
27
|
+
require('../../Icon_cjs_Cz6IyOkb.js');
|
|
28
28
|
require('react-inlinesvg');
|
|
29
29
|
require('../hoc/urlWithAssetPrefix.js');
|
|
30
30
|
require('../context/UrlAssetPrefix.js');
|
|
31
31
|
require('../../Link_cjs_C5UsZUiF.js');
|
|
32
32
|
require('../../Text_cjs_0EINiUq4.js');
|
|
33
|
-
require('../../
|
|
34
|
-
require('../../
|
|
35
|
-
require('../../
|
|
33
|
+
require('../../Loader_cjs_D3lnxPlI.js');
|
|
34
|
+
require('../../Input_cjs_DRPK_RHK.js');
|
|
35
|
+
require('../../Label_cjs_DMoaOoHi.js');
|
|
36
36
|
require('@itcase/icons/default');
|
|
37
37
|
require('lodash/castArray');
|
|
38
38
|
|
|
@@ -81,7 +81,7 @@ var datePeriodConfig = {
|
|
|
81
81
|
},
|
|
82
82
|
};
|
|
83
83
|
function DatePeriod(props) {
|
|
84
|
-
var
|
|
84
|
+
var appearance = props.appearance, className = props.className, _a = props.datePeriodIntervalsList, datePeriodIntervalsList = _a === void 0 ? Object.values(common.DATE_PERIOD_INTERVALS) : _a, datePeriodValueEnd = props.datePeriodValueEnd, datePeriodValueStart = props.datePeriodValueStart, monthsShown = props.monthsShown, isDisabled = props.isDisabled, isSkeleton = props.isSkeleton, onChangeDatePeriod = props.onChangeDatePeriod, onKeyDown = props.onKeyDown;
|
|
85
85
|
var appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, datePeriodConfig, isDisabled);
|
|
86
86
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
87
87
|
var _b = propsGenerator, fillClass = _b.fillClass, chipsAppearance = _b.chipsAppearance, chipsAppearanceSize = _b.chipsAppearanceSize, chipsShape = _b.chipsShape, datePickerAppearance = _b.datePickerAppearance, datePickerAppearanceSize = _b.datePickerAppearanceSize, datePickerInputAppearance = _b.datePickerInputAppearance, datePickerInputFillHover = _b.datePickerInputFillHover, datePickerInputSize = _b.datePickerInputSize, datePickerInputTextSize = _b.datePickerInputTextSize, shapeClass = _b.shapeClass, sizeClass = _b.sizeClass;
|
|
@@ -110,7 +110,7 @@ function DatePeriod(props) {
|
|
|
110
110
|
// },
|
|
111
111
|
// [onChangeDatePeriod],
|
|
112
112
|
// )
|
|
113
|
-
return (jsxRuntime.jsx("div", { className: clsx(className, 'date-period', shapeClass && "date-period_shape_".concat(shapeClass), sizeClass && "date-period_size_".concat(sizeClass), isSkeleton && "date-period_skeleton", fillClass && "fill_".concat(fillClass), 'cursor_type_pointer'), children: jsxRuntime.jsxs(ChipsGroup.ChipsGroup, { direction: "horizontal", children: [datePeriodIntervalsList.map(function (datePeriodItem) { return (jsxRuntime.jsx(ChipsGroup.Chips, { appearance: "".concat(chipsAppearance, " ").concat(chipsAppearanceSize), label: datePeriodItem.label, shape: chipsShape, isActive: checkIsChipsActive(datePeriodItem), onClick: function () { return onClickPeriodChips(datePeriodItem); } }, datePeriodItem.value)); }), jsxRuntime.jsx(DatePicker.DatePickerInput, { datePickerProps: {
|
|
113
|
+
return (jsxRuntime.jsx("div", { className: clsx(className, 'date-period', shapeClass && "date-period_shape_".concat(shapeClass), sizeClass && "date-period_size_".concat(sizeClass), isSkeleton && "date-period_skeleton", fillClass && "fill_".concat(fillClass), 'cursor_type_pointer'), children: jsxRuntime.jsxs(ChipsGroup.ChipsGroup, { direction: "horizontal", children: [datePeriodIntervalsList.map(function (datePeriodItem) { return (jsxRuntime.jsx(ChipsGroup.Chips, { appearance: "".concat(chipsAppearance, " ").concat(chipsAppearanceSize), label: datePeriodItem.label, shape: chipsShape, isActive: checkIsChipsActive(datePeriodItem), onClick: function () { return onClickPeriodChips(datePeriodItem); } }, datePeriodItem.value)); }), jsxRuntime.jsx(DatePicker.DatePickerInput, { className: "date-period__datepicker", datePickerProps: {
|
|
114
114
|
appearance: "".concat(datePickerAppearance, " ").concat(datePickerAppearanceSize),
|
|
115
115
|
dateFormat: 'dd/MM/yyyy',
|
|
116
116
|
monthsShown: monthsShown,
|
|
@@ -120,8 +120,8 @@ function DatePeriod(props) {
|
|
|
120
120
|
isStartDefaultNull: true,
|
|
121
121
|
onKeyDown: onKeyDown,
|
|
122
122
|
}, endValue: datePeriodValueEnd, inputProps: {
|
|
123
|
-
className: "date-period__datepicker-input date-period__datepicker-input_size_".concat(datePickerInputSize),
|
|
124
123
|
appearance: "".concat(datePickerInputAppearance, " ghost"),
|
|
124
|
+
className: "date-period__datepicker-input date-period__datepicker-input_size_".concat(datePickerInputSize),
|
|
125
125
|
fillHover: datePickerInputFillHover,
|
|
126
126
|
textSize: datePickerInputTextSize,
|
|
127
127
|
placeholder: 'Выбрать период',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var DatePicker = require('../../
|
|
3
|
+
var DatePicker = require('../../DatePicker_cjs_BzEtDAb8.js');
|
|
4
4
|
require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
@@ -23,16 +23,16 @@ require('../hooks.js');
|
|
|
23
23
|
require('../hooks/useStyles/styleAttributes.js');
|
|
24
24
|
require('../hooks/useStyles/useStyles.js');
|
|
25
25
|
require('lodash/maxBy');
|
|
26
|
-
require('../../
|
|
27
|
-
require('../../
|
|
26
|
+
require('../../Button_cjs_Ce97psFT.js');
|
|
27
|
+
require('../../Icon_cjs_Cz6IyOkb.js');
|
|
28
28
|
require('react-inlinesvg');
|
|
29
29
|
require('../hoc/urlWithAssetPrefix.js');
|
|
30
30
|
require('../context/UrlAssetPrefix.js');
|
|
31
31
|
require('../../Link_cjs_C5UsZUiF.js');
|
|
32
32
|
require('../../Text_cjs_0EINiUq4.js');
|
|
33
|
-
require('../../
|
|
34
|
-
require('../../
|
|
35
|
-
require('../../
|
|
33
|
+
require('../../Loader_cjs_D3lnxPlI.js');
|
|
34
|
+
require('../../Input_cjs_DRPK_RHK.js');
|
|
35
|
+
require('../../Label_cjs_DMoaOoHi.js');
|
|
36
36
|
require('@itcase/icons/default');
|
|
37
37
|
|
|
38
38
|
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var ReactDrawer = require('react-modern-drawer');
|
|
7
7
|
var Divider = require('../../Divider_cjs_DUYtmwn2.js');
|
|
8
|
-
var Icon = require('../../
|
|
8
|
+
var Icon = require('../../Icon_cjs_Cz6IyOkb.js');
|
|
9
9
|
var Text = require('../../Text_cjs_0EINiUq4.js');
|
|
10
10
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
11
11
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var DropdownItem = require('../../
|
|
3
|
+
var DropdownItem = require('../../DropdownItem_cjs_Bhss6lyM.js');
|
|
4
4
|
require('react/jsx-runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('clsx');
|
|
@@ -20,7 +20,7 @@ require('../hooks.js');
|
|
|
20
20
|
require('../hooks/useStyles/styleAttributes.js');
|
|
21
21
|
require('../hooks/useStyles/useStyles.js');
|
|
22
22
|
require('lodash/maxBy');
|
|
23
|
-
require('../../
|
|
23
|
+
require('../../Icon_cjs_Cz6IyOkb.js');
|
|
24
24
|
require('react-inlinesvg');
|
|
25
25
|
require('../hoc/urlWithAssetPrefix.js');
|
|
26
26
|
require('../context/UrlAssetPrefix.js');
|
|
@@ -21,12 +21,12 @@ require('../hooks/useStyles/styleAttributes.js');
|
|
|
21
21
|
require('lodash/maxBy');
|
|
22
22
|
|
|
23
23
|
function Grid(props) {
|
|
24
|
-
var id = props.id, className = props.className,
|
|
24
|
+
var id = props.id, className = props.className, dataTour = props.dataTour, type = props.type, horizontalResizing = props.horizontalResizing, horizontalScroll = props.horizontalScroll, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, useGridSystem = props.useGridSystem, verticalResizing = props.verticalResizing, before = props.before, after = props.after, onClick = props.onClick, onDoubleClick = props.onDoubleClick, children = props.children;
|
|
25
25
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props);
|
|
26
|
-
var justifyContentClass = propsGenerator.justifyContentClass, justifyItemsClass = propsGenerator.justifyItemsClass, alignContentClass = propsGenerator.alignContentClass, alignItemsClass = propsGenerator.alignItemsClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, columnGapClass = propsGenerator.columnGapClass, columnsClass = propsGenerator.columnsClass, heightClass = propsGenerator.heightClass, rowGapClass = propsGenerator.rowGapClass, rowsClass = propsGenerator.rowsClass, widthClass = propsGenerator.widthClass;
|
|
26
|
+
var justifyContentClass = propsGenerator.justifyContentClass, justifyItemsClass = propsGenerator.justifyItemsClass, alignContentClass = propsGenerator.alignContentClass, alignItemsClass = propsGenerator.alignItemsClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, columnGapClass = propsGenerator.columnGapClass, columnsClass = propsGenerator.columnsClass, heightClass = propsGenerator.heightClass, rowGapClass = propsGenerator.rowGapClass, rowsClass = propsGenerator.rowsClass, widthClass = propsGenerator.widthClass;
|
|
27
27
|
// @ts-expect-error
|
|
28
28
|
var gridStyles = useStyles.useStyles(props).styles;
|
|
29
|
-
return (jsxRuntime.jsxs(Tag, { id: id, className: clsx(className, 'grid', widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), useGridSystem && "grid_state_system", horizontalScroll && "grid_scroll_horizontal", type && "grid_type_".concat(type), columnsClass && "grid_columns_".concat(columnsClass), rowsClass && "grid_rows_".concat(rowsClass), rowGapClass && "grid_row-gap_".concat(rowGapClass), columnGapClass && "grid_column-gap_".concat(columnGapClass), alignContentClass && "grid_align-content_".concat(alignContentClass), alignItemsClass && "grid_align-items_".concat(alignItemsClass), borderColorClass && "border-color_".concat(borderColorClass), justifyContentClass && "grid_justify-content_".concat(justifyContentClass), justifyItemsClass && "grid_justify-items_".concat(justifyItemsClass), fillClass && "fill_".concat(fillClass), horizontalResizing && "grid_horizontal-resizing_".concat(horizontalResizing), verticalResizing && "grid_vertical-resizing_".concat(verticalResizing)), dataTour: dataTour, style: gridStyles, onClick: onClick, onDoubleClick: onDoubleClick, children: [before && jsxRuntime.jsx("div", { className: "grid__before", children: before }), children, after && jsxRuntime.jsx("div", { className: "grid__after", children: after })] }));
|
|
29
|
+
return (jsxRuntime.jsxs(Tag, { id: id, className: clsx(className, 'grid', widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), useGridSystem && "grid_state_system", horizontalScroll && "grid_scroll_horizontal", type && "grid_type_".concat(type), columnsClass && "grid_columns_".concat(columnsClass), rowsClass && "grid_rows_".concat(rowsClass), rowGapClass && "grid_row-gap_".concat(rowGapClass), columnGapClass && "grid_column-gap_".concat(columnGapClass), alignContentClass && "grid_align-content_".concat(alignContentClass), alignItemsClass && "grid_align-items_".concat(alignItemsClass), borderColorClass && "border-color_".concat(borderColorClass), justifyContentClass && "grid_justify-content_".concat(justifyContentClass), justifyItemsClass && "grid_justify-items_".concat(justifyItemsClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), horizontalResizing && "grid_horizontal-resizing_".concat(horizontalResizing), verticalResizing && "grid_vertical-resizing_".concat(verticalResizing)), dataTour: dataTour, style: gridStyles, onClick: onClick, onDoubleClick: onDoubleClick, children: [before && jsxRuntime.jsx("div", { className: "grid__before", children: before }), children, after && jsxRuntime.jsx("div", { className: "grid__after", children: after })] }));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
function GridItem(props) {
|
|
@@ -6,7 +6,7 @@ var clsx = require('clsx');
|
|
|
6
6
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
-
var Icon = require('../../
|
|
9
|
+
var Icon = require('../../Icon_cjs_Cz6IyOkb.js');
|
|
10
10
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
11
11
|
require('lodash/camelCase');
|
|
12
12
|
require('lodash/castArray');
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
4
|
+
var _default = require('@itcase/icons/default');
|
|
4
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
6
|
var React = require('react');
|
|
6
7
|
var clsx = require('clsx');
|
|
7
8
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
8
9
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
|
-
var Icon = require('../../
|
|
10
|
+
var Icon = require('../../Icon_cjs_Cz6IyOkb.js');
|
|
10
11
|
require('lodash/camelCase');
|
|
11
12
|
require('lodash/castArray');
|
|
12
13
|
require('lodash/upperFirst');
|
|
@@ -35,8 +36,10 @@ var inputPasswordAppearanceDefault = {
|
|
|
35
36
|
textColor: 'surfaceTextPrimary',
|
|
36
37
|
textColorDisabled: 'surfaceTextDisabled',
|
|
37
38
|
caret: 'secondaryItemSecondary',
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
iconFill: 'surfaceItemQuaternary',
|
|
40
|
+
iconRevealableHide: _default.icons24.View.HideValue,
|
|
41
|
+
iconRevealableShow: _default.icons24.View.ShowValue,
|
|
42
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
40
43
|
},
|
|
41
44
|
defaultSecondary: {
|
|
42
45
|
fill: 'surfacePrimary',
|
|
@@ -45,8 +48,9 @@ var inputPasswordAppearanceDefault = {
|
|
|
45
48
|
textColor: 'surfaceTextPrimary',
|
|
46
49
|
textColorDisabled: 'surfaceTextDisabled',
|
|
47
50
|
caret: 'secondaryItemSecondary',
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
iconFill: 'surfaceItemQuaternary',
|
|
52
|
+
iconRevealableHide: _default.icons24.View.HideValue,
|
|
53
|
+
iconRevealableShow: _default.icons24.View.ShowValue,
|
|
50
54
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
51
55
|
},
|
|
52
56
|
};
|
|
@@ -57,16 +61,18 @@ var inputPasswordAppearanceDisabled = {
|
|
|
57
61
|
borderColor: 'errorBorderQuaternary',
|
|
58
62
|
borderHover: 'errorBorderQuaternary',
|
|
59
63
|
textColor: 'surfaceTextQuaternary',
|
|
60
|
-
|
|
61
|
-
|
|
64
|
+
iconFill: 'surfaceItemQuaternary',
|
|
65
|
+
iconRevealableHide: _default.icons24.View.HideValue,
|
|
66
|
+
iconRevealableShow: _default.icons24.View.ShowValue,
|
|
62
67
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
63
68
|
},
|
|
64
69
|
disabledSecondary: {
|
|
65
70
|
fill: 'surfaceSecondary',
|
|
66
71
|
borderColor: 'surfaceBorderTertiary',
|
|
67
72
|
borderHover: 'surfaceBorderQuaternary',
|
|
68
|
-
|
|
69
|
-
|
|
73
|
+
iconFill: 'surfaceItemQuaternary',
|
|
74
|
+
iconRevealableHide: _default.icons24.View.HideValue,
|
|
75
|
+
iconRevealableShow: _default.icons24.View.ShowValue,
|
|
70
76
|
placeholderTextColor: 'surfaceTextSecondary',
|
|
71
77
|
},
|
|
72
78
|
};
|
|
@@ -77,16 +83,18 @@ var inputPasswordAppearanceError = {
|
|
|
77
83
|
borderColor: 'errorBorderQuaternary',
|
|
78
84
|
borderHover: 'errorBorderQuaternary',
|
|
79
85
|
textColor: 'surfaceTextPrimary',
|
|
80
|
-
|
|
81
|
-
|
|
86
|
+
iconFill: 'surfaceItemQuaternary',
|
|
87
|
+
iconRevealableHide: _default.icons24.View.HideValue,
|
|
88
|
+
iconRevealableShow: _default.icons24.View.ShowValue,
|
|
82
89
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
83
90
|
},
|
|
84
91
|
errorSecondary: {
|
|
85
92
|
fill: 'errorSecondary',
|
|
86
93
|
borderColor: 'errorBorderTertiary',
|
|
87
94
|
borderHover: 'errorBorderQuaternary',
|
|
88
|
-
|
|
89
|
-
|
|
95
|
+
iconFill: 'surfaceItemQuaternary',
|
|
96
|
+
iconRevealableHide: _default.icons24.View.HideValue,
|
|
97
|
+
iconRevealableShow: _default.icons24.View.ShowValue,
|
|
90
98
|
placeholderTextColor: 'errorTextSecondary',
|
|
91
99
|
},
|
|
92
100
|
};
|
|
@@ -97,92 +105,105 @@ var inputPasswordAppearanceRequire = {
|
|
|
97
105
|
borderColor: 'warningBorderQuaternary',
|
|
98
106
|
borderHover: 'warningBorderQuaternary',
|
|
99
107
|
textColor: 'surfaceTextPrimary',
|
|
100
|
-
|
|
101
|
-
|
|
108
|
+
iconFill: 'surfaceItemQuaternary',
|
|
109
|
+
iconRevealableHide: _default.icons24.View.HideValue,
|
|
110
|
+
iconRevealableShow: _default.icons24.View.ShowValue,
|
|
102
111
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
103
112
|
},
|
|
104
113
|
requireSecondary: {
|
|
105
114
|
fill: 'surfaceSecondary',
|
|
106
115
|
borderColor: 'surfaceBorderTertiary',
|
|
107
116
|
borderHover: 'surfaceBorderQuaternary',
|
|
108
|
-
|
|
109
|
-
|
|
117
|
+
iconFill: 'surfaceItemQuaternary',
|
|
118
|
+
iconRevealableHide: _default.icons24.View.HideValue,
|
|
119
|
+
iconRevealableShow: _default.icons24.View.ShowValue,
|
|
110
120
|
placeholderTextColor: 'surfaceTextSecondary',
|
|
111
121
|
},
|
|
112
122
|
};
|
|
113
123
|
|
|
124
|
+
var inputPasswordAppearanceShape = {
|
|
125
|
+
circular: {
|
|
126
|
+
shape: 'circular',
|
|
127
|
+
},
|
|
128
|
+
rounded: {
|
|
129
|
+
shape: 'rounded',
|
|
130
|
+
},
|
|
131
|
+
roundedXL: {
|
|
132
|
+
shape: 'rounded',
|
|
133
|
+
shapeStrength: '2m',
|
|
134
|
+
},
|
|
135
|
+
roundedL: {
|
|
136
|
+
shape: 'rounded',
|
|
137
|
+
shapeStrength: '1_5m',
|
|
138
|
+
},
|
|
139
|
+
roundedM: {
|
|
140
|
+
shape: 'rounded',
|
|
141
|
+
shapeStrength: '1m',
|
|
142
|
+
},
|
|
143
|
+
roundedS: {
|
|
144
|
+
shape: 'rounded',
|
|
145
|
+
shapeStrength: '0_5m',
|
|
146
|
+
},
|
|
147
|
+
};
|
|
148
|
+
|
|
114
149
|
var inputPasswordAppearanceSize = {
|
|
115
150
|
sizeXXL: {
|
|
116
151
|
size: 'xxl',
|
|
117
152
|
textSize: 'l',
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
iconBeforeFillSize: '24',
|
|
121
|
-
iconBeforeSize: '24',
|
|
153
|
+
iconFillSize: '24',
|
|
154
|
+
iconSize: '24',
|
|
122
155
|
},
|
|
123
156
|
sizeXL: {
|
|
124
157
|
size: 'xl',
|
|
125
158
|
textSize: 's',
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
iconBeforeFillSize: '24',
|
|
129
|
-
iconBeforeSize: '24',
|
|
159
|
+
iconFillSize: '24',
|
|
160
|
+
iconSize: '24',
|
|
130
161
|
},
|
|
131
162
|
sizeL: {
|
|
132
163
|
size: 'l',
|
|
133
164
|
textSize: 's',
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
iconBeforeFillSize: '24',
|
|
137
|
-
iconBeforeSize: '24',
|
|
165
|
+
iconFillSize: '24',
|
|
166
|
+
iconSize: '24',
|
|
138
167
|
},
|
|
139
168
|
sizeM: {
|
|
140
169
|
size: 'm',
|
|
141
170
|
textSize: 'm',
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
iconBeforeFillSize: '24',
|
|
145
|
-
iconBeforeSize: '24',
|
|
171
|
+
iconFillSize: '24',
|
|
172
|
+
iconSize: '24',
|
|
146
173
|
},
|
|
147
174
|
sizeS: {
|
|
148
175
|
size: 's',
|
|
149
176
|
textSize: 's',
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
iconBeforeFillSize: '24',
|
|
153
|
-
iconBeforeSize: '24',
|
|
177
|
+
iconFillSize: '24',
|
|
178
|
+
iconSize: '24',
|
|
154
179
|
},
|
|
155
180
|
sizeXS: {
|
|
156
181
|
size: 'xs',
|
|
157
182
|
textSize: 's',
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
iconBeforeFillSize: '24',
|
|
161
|
-
iconBeforeSize: '24',
|
|
183
|
+
iconFillSize: '24',
|
|
184
|
+
iconSize: '24',
|
|
162
185
|
},
|
|
163
186
|
sizeXXS: {
|
|
164
187
|
size: 'xxs',
|
|
165
188
|
textSize: 's',
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
iconBeforeFillSize: '24',
|
|
169
|
-
iconBeforeSize: '24',
|
|
189
|
+
iconFillSize: '24',
|
|
190
|
+
iconSize: '24',
|
|
170
191
|
},
|
|
171
192
|
};
|
|
172
193
|
|
|
173
194
|
var inputPasswordAppearanceStyle = {
|
|
174
|
-
|
|
175
|
-
borderColor: '
|
|
176
|
-
},
|
|
177
|
-
ghost: {
|
|
178
|
-
fill: 'none',
|
|
179
|
-
borderColor: '0',
|
|
195
|
+
solid: {
|
|
196
|
+
borderColor: 'none',
|
|
180
197
|
},
|
|
181
198
|
outlined: {
|
|
182
199
|
fill: 'none',
|
|
183
200
|
},
|
|
184
|
-
|
|
185
|
-
borderColor: '
|
|
201
|
+
full: {
|
|
202
|
+
borderColor: 'none',
|
|
203
|
+
},
|
|
204
|
+
ghost: {
|
|
205
|
+
fill: 'none',
|
|
206
|
+
borderColor: 'none',
|
|
186
207
|
},
|
|
187
208
|
};
|
|
188
209
|
|
|
@@ -192,21 +213,23 @@ var inputPasswordAppearanceSuccess = {
|
|
|
192
213
|
borderColor: 'successBorderQuaternary',
|
|
193
214
|
borderHover: 'successBorderQuaternary',
|
|
194
215
|
textColor: 'surfaceTextPrimary',
|
|
195
|
-
|
|
196
|
-
|
|
216
|
+
iconFill: 'surfaceItemQuaternary',
|
|
217
|
+
iconRevealableHide: _default.icons24.View.HideValue,
|
|
218
|
+
iconRevealableShow: _default.icons24.View.ShowValue,
|
|
197
219
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
198
220
|
},
|
|
199
221
|
successSecondary: {
|
|
200
222
|
fill: 'surfaceSecondary',
|
|
201
223
|
borderColor: 'surfaceBorderTertiary',
|
|
202
224
|
borderHover: 'surfaceBorderQuaternary',
|
|
203
|
-
|
|
204
|
-
|
|
225
|
+
iconFill: 'surfaceItemQuaternary',
|
|
226
|
+
iconRevealableHide: _default.icons24.View.HideValue,
|
|
227
|
+
iconRevealableShow: _default.icons24.View.ShowValue,
|
|
205
228
|
placeholderTextColor: 'surfaceTextSecondary',
|
|
206
229
|
},
|
|
207
230
|
};
|
|
208
231
|
|
|
209
|
-
var inputPasswordAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, inputPasswordAppearanceSize), inputPasswordAppearanceDisabled), inputPasswordAppearanceRequire), inputPasswordAppearanceStyle), inputPasswordAppearanceError), inputPasswordAppearanceDefault), inputPasswordAppearanceSuccess);
|
|
232
|
+
var inputPasswordAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, inputPasswordAppearanceSize), inputPasswordAppearanceDisabled), inputPasswordAppearanceRequire), inputPasswordAppearanceStyle), inputPasswordAppearanceError), inputPasswordAppearanceDefault), inputPasswordAppearanceSuccess), inputPasswordAppearanceShape);
|
|
210
233
|
|
|
211
234
|
var inputPasswordConfig = {
|
|
212
235
|
appearance: inputPasswordAppearance,
|
|
@@ -215,22 +238,21 @@ var inputPasswordConfig = {
|
|
|
215
238
|
},
|
|
216
239
|
};
|
|
217
240
|
function InputPassword(props) {
|
|
218
|
-
var id = props.id,
|
|
219
|
-
// state,
|
|
220
|
-
value = props.value, isRevealable = props.isRevealable, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
|
|
241
|
+
var id = props.id, appearance = props.appearance, className = props.className, placeholder = props.placeholder, value = props.value, isDisabled = props.isDisabled, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
|
|
221
242
|
var _a = React.useState(false), isRevealed = _a[0], setIsRevealed = _a[1];
|
|
222
243
|
var inputType = React.useMemo(function () {
|
|
223
244
|
return isRevealed ? 'text' : 'password';
|
|
224
245
|
}, [isRevealed]);
|
|
225
|
-
var
|
|
226
|
-
|
|
246
|
+
var onClickIconReveal = React.useCallback(function (event) {
|
|
247
|
+
event.preventDefault();
|
|
227
248
|
setIsRevealed(function (prev) { return !prev; });
|
|
228
|
-
}, [
|
|
249
|
+
}, []);
|
|
229
250
|
var appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, inputPasswordConfig, isDisabled);
|
|
230
251
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
231
|
-
var fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderWidthClass = propsGenerator.borderWidthClass, textColorClass = propsGenerator.textColorClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, caretClass = propsGenerator.caretClass,
|
|
232
|
-
return (jsxRuntime.jsxs("div", { className: "input-password", children: [jsxRuntime.jsx("input", { id: String(id), className: clsx(className, 'input-password__input', (textSizeClass || textColorClass || textWeightClass) && 'text',
|
|
233
|
-
"
|
|
252
|
+
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderWidthClass = propsGenerator.borderWidthClass, textColorClass = propsGenerator.textColorClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, caretClass = propsGenerator.caretClass, iconFill = propsGenerator.iconFill, iconFillHover = propsGenerator.iconFillHover, iconRevealableHide = propsGenerator.iconRevealableHide, iconRevealableShow = propsGenerator.iconRevealableShow, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, imageRevealableHide = propsGenerator.imageRevealableHide, imageRevealableShow = propsGenerator.imageRevealableShow, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
253
|
+
return (jsxRuntime.jsxs("div", { className: "input-password", children: [jsxRuntime.jsx("input", { id: String(id), className: clsx(className, 'input-password__input', (textSizeClass || textColorClass || textWeightClass) && 'text', borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass &&
|
|
254
|
+
"border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), caretClass && "caret-color_".concat(caretClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), placeholderTextColorClass &&
|
|
255
|
+
"placeholder-text-color_".concat(placeholderTextColorClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), sizeClass && "input-password__input_size_".concat(sizeClass), textColorClass && "text-color_".concat(textColorClass), textColorClass && "text-color_".concat(textColorClass), textSizeClass && "text_size_".concat(textSizeClass), textWeightClass && "text-weight_".concat(textWeightClass), widthClass && "width_".concat(widthClass)), type: inputType, disabled: isDisabled, placeholder: placeholder, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }), jsxRuntime.jsx(Icon.Icon, { className: "input-password__icon", size: iconSize, iconFill: iconFill, iconFillHover: iconFillHover, imageSrc: isRevealed ? imageRevealableHide : imageRevealableShow, shape: iconShape, SvgImage: isRevealed ? iconRevealableHide : iconRevealableShow, onClick: onClickIconReveal })] }));
|
|
234
256
|
}
|
|
235
257
|
|
|
236
258
|
exports.InputPassword = InputPassword;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Label = require('../../
|
|
3
|
+
var Label = require('../../Label_cjs_DMoaOoHi.js');
|
|
4
4
|
require('react/jsx-runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('clsx');
|
|
@@ -21,7 +21,7 @@ require('../hooks.js');
|
|
|
21
21
|
require('../hooks/useStyles/styleAttributes.js');
|
|
22
22
|
require('../hooks/useStyles/useStyles.js');
|
|
23
23
|
require('lodash/maxBy');
|
|
24
|
-
require('../../
|
|
24
|
+
require('../../Icon_cjs_Cz6IyOkb.js');
|
|
25
25
|
require('react-inlinesvg');
|
|
26
26
|
require('../hoc/urlWithAssetPrefix.js');
|
|
27
27
|
require('../context/UrlAssetPrefix.js');
|
|
@@ -6,7 +6,7 @@ var clsx = require('clsx');
|
|
|
6
6
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
-
var Icon = require('../../
|
|
9
|
+
var Icon = require('../../Icon_cjs_Cz6IyOkb.js');
|
|
10
10
|
var Link = require('../../Link_cjs_C5UsZUiF.js');
|
|
11
11
|
var Text = require('../../Text_cjs_0EINiUq4.js');
|
|
12
12
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
@@ -204,7 +204,8 @@ function MenuItem(props) {
|
|
|
204
204
|
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, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextColorDisabled = propsGenerator.labelTextColorDisabled, labelTextHoverColor = propsGenerator.labelTextHoverColor, 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, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, tooltipFill = propsGenerator.tooltipFill, tooltipShapeStrength = propsGenerator.tooltipShapeStrength, tooltipText = propsGenerator.tooltipText, tooltipTextColor = propsGenerator.tooltipTextColor, tooltipTitleTextColor = propsGenerator.tooltipTitleTextColor, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
|
|
205
205
|
// @ts-expect-error
|
|
206
206
|
var menuItem = useStyles.useStyles(props).styles;
|
|
207
|
-
return (jsxRuntime.jsxs("div", { className: clsx('menu-item', isActive && 'menu-item_state_active', isDisabled && "menu-item_state_disabled", directionClass && "menu-item_direction_".concat(directionClass), className,
|
|
207
|
+
return (jsxRuntime.jsxs("div", { className: clsx('menu-item', isActive && 'menu-item_state_active', isDisabled && "menu-item_state_disabled", directionClass && "menu-item_direction_".concat(directionClass), className, (iconBefore || iconBeforeSrc || iconAfter || iconAfterSrc) &&
|
|
208
|
+
'menu-item_label-icon', sizeClass && "menu-item_size_".concat(sizeClass), borderColorClass && "border-color_".concat(borderColorClass), !isActive
|
|
208
209
|
? fillClass && "fill_".concat(fillClass)
|
|
209
210
|
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
210
211
|
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
@@ -7,11 +7,11 @@ var ReactDOM = require('react-dom');
|
|
|
7
7
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
9
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
10
|
-
var Icon = require('../../
|
|
10
|
+
var Icon = require('../../Icon_cjs_Cz6IyOkb.js');
|
|
11
11
|
var Overlay = require('../../Overlay_cjs_CcfJYN5o.js');
|
|
12
12
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
13
13
|
var _default = require('@itcase/icons/default');
|
|
14
|
-
var Loader = require('../../
|
|
14
|
+
var Loader = require('../../Loader_cjs_D3lnxPlI.js');
|
|
15
15
|
require('lodash/camelCase');
|
|
16
16
|
require('lodash/castArray');
|
|
17
17
|
require('lodash/upperFirst');
|
|
@@ -8,7 +8,7 @@ var reactModalSheet = require('react-modal-sheet');
|
|
|
8
8
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
9
9
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
11
|
-
var Icon = require('../../
|
|
11
|
+
var Icon = require('../../Icon_cjs_Cz6IyOkb.js');
|
|
12
12
|
require('lodash/camelCase');
|
|
13
13
|
require('lodash/castArray');
|
|
14
14
|
require('lodash/upperFirst');
|
|
@@ -5,7 +5,7 @@ var clsx = require('clsx');
|
|
|
5
5
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
6
6
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
8
|
-
var Icon = require('../../
|
|
8
|
+
var Icon = require('../../Icon_cjs_Cz6IyOkb.js');
|
|
9
9
|
var Text = require('../../Text_cjs_0EINiUq4.js');
|
|
10
10
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
11
11
|
var _default = require('@itcase/icons/default');
|
|
@@ -8,8 +8,8 @@ var ReactPaginate = require('react-paginate');
|
|
|
8
8
|
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
9
9
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
11
|
-
var DropdownItem = require('../../
|
|
12
|
-
var Icon = require('../../
|
|
11
|
+
var DropdownItem = require('../../DropdownItem_cjs_Bhss6lyM.js');
|
|
12
|
+
var Icon = require('../../Icon_cjs_Cz6IyOkb.js');
|
|
13
13
|
var Text = require('../../Text_cjs_0EINiUq4.js');
|
|
14
14
|
var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
15
15
|
var _default = require('@itcase/icons/default');
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var img$
|
|
3
|
+
var img$a = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='180' height='180' rx='90' fill='%23D9D9D9'/%3e%3cpath d='M93.2275 101.842H84.0659C83.8263 99.1898 83.976 96.839 84.515 94.7895C85.1138 92.74 86.2216 90.8111 87.8383 89.0027C89.515 87.1341 91.7904 85.2051 94.6647 83.2159C96.5808 81.8898 97.9581 80.5637 98.7964 79.2375C99.6946 77.9114 100.144 76.4345 100.144 74.807C100.144 72.2753 99.2156 70.1957 97.3593 68.5682C95.503 66.9406 93.0778 66.1269 90.0838 66.1269C87.3892 66.1269 84.7246 66.9105 82.0898 68.4777C79.4551 69.9847 77.0299 72.3959 74.8144 75.7112L67 67.9352C70.0539 64.0774 73.5868 61.1237 77.5988 59.0742C81.6707 57.0247 85.9521 56 90.4431 56C94.5749 56 98.2575 56.8439 101.491 58.5317C104.725 60.1592 107.269 62.3896 109.126 65.2227C111.042 67.9955 112 71.1601 112 74.7166C112 78.0922 111.042 81.1062 109.126 83.7584C107.269 86.4107 104.455 88.8821 100.683 91.1727C97.7485 92.8605 95.7725 94.4881 94.7545 96.0553C93.7365 97.6226 93.2275 99.5515 93.2275 101.842ZM96.1916 115.767C96.1916 117.756 95.4731 119.474 94.0359 120.92C92.5988 122.307 90.8323 123 88.7365 123C86.6407 123 84.8743 122.307 83.4371 120.92C82 119.474 81.2814 117.756 81.2814 115.767C81.2814 113.717 82 111.999 83.4371 110.613C84.8743 109.166 86.6407 108.443 88.7365 108.443C90.8323 108.443 92.5988 109.166 94.0359 110.613C95.4731 111.999 96.1916 113.717 96.1916 115.767Z' fill='%23747474'/%3e%3c/svg%3e";
|
|
4
|
+
|
|
5
|
+
var img$9 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='180' height='180' rx='90' fill='%23E00000'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M85.7155 56.9042L54.1865 115.911C53.0219 118.09 54.5678 121.43 58.4708 121.43H121.529C125.432 121.43 126.978 118.09 125.814 115.911L94.2845 56.9043C93.5012 55.4392 91.8762 54.57 89.9998 54.57C88.1237 54.57 86.4986 55.439 85.7155 56.9042ZM89.9998 48C93.9317 48 98.1142 49.8644 100.253 53.8659L131.782 112.873C135.732 120.266 129.482 128 121.529 128H58.4708C50.5181 128 44.2675 120.266 48.2181 112.873L79.7471 53.866C81.8855 49.8645 86.0683 48 89.9998 48ZM90.0002 74.0886C91.8588 74.0886 93.3658 75.5593 93.3658 77.3736V92.8756C93.3658 94.6897 91.8588 96.1606 90.0002 96.1606C88.1411 96.1606 86.6345 94.6897 86.6345 92.8756V77.3736C86.6345 75.5593 88.1411 74.0886 90.0002 74.0886ZM93.3658 108.377C93.3658 106.563 91.8588 105.092 90.0002 105.092C88.1411 105.092 86.6345 106.563 86.6345 108.377V108.457C86.6345 110.271 88.1411 111.742 90.0002 111.742C91.8588 111.742 93.3658 110.271 93.3658 108.457V108.377Z' fill='white'/%3e%3c/svg%3e";
|
|
6
|
+
|
|
7
|
+
var img$8 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='180' height='180' rx='90' fill='%23D9D9D9'/%3e%3cpath d='M90.5029 123.721C93.8166 123.721 96.5029 126.407 96.5029 129.721V134.749C96.5027 138.063 93.8165 140.749 90.5029 140.749C87.1894 140.749 84.5031 138.063 84.5029 134.749V129.721C84.5029 126.407 87.1892 123.721 90.5029 123.721ZM90.5029 39.252C93.8166 39.252 96.5029 41.9383 96.5029 45.252V104.582C96.5024 107.895 93.8163 110.582 90.5029 110.582C87.1895 110.582 84.5034 107.895 84.5029 104.582V45.252C84.5029 41.9382 87.1892 39.252 90.5029 39.252Z' fill='%23747474'/%3e%3c/svg%3e";
|
|
4
8
|
|
|
5
9
|
var img$7 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='180' height='180' rx='90' fill='%23E00000'/%3e%3cpath d='M90.5029 123.721C93.8166 123.721 96.5029 126.407 96.5029 129.721V134.749C96.5027 138.063 93.8165 140.749 90.5029 140.749C87.1894 140.749 84.5031 138.063 84.5029 134.749V129.721C84.5029 126.407 87.1892 123.721 90.5029 123.721ZM90.5029 39.251C93.8166 39.251 96.5029 41.9383 96.5029 45.252V104.582C96.5024 107.895 93.8163 110.582 90.5029 110.582C87.1895 110.582 84.5034 107.895 84.5029 104.582V45.252C84.5029 41.9382 87.1892 39.251 90.5029 39.251Z' fill='white'/%3e%3c/svg%3e";
|
|
6
10
|
|
|
@@ -22,7 +26,9 @@ var responseIcon = {
|
|
|
22
26
|
Error: img$7,
|
|
23
27
|
Warning: img,
|
|
24
28
|
Success: img$2,
|
|
25
|
-
|
|
29
|
+
Danger: img$9,
|
|
30
|
+
Confirm: img$a,
|
|
31
|
+
Empty: img$8,
|
|
26
32
|
Fail: img$6,
|
|
27
33
|
NothingFound: img$5,
|
|
28
34
|
Refresh: img$4,
|