@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../
|
|
1
|
+
export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../Avatar_es_BgN-fbOj.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -17,7 +17,7 @@ import 'react-responsive';
|
|
|
17
17
|
import '../utils/setViewportProperty.js';
|
|
18
18
|
import '../hooks.js';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../
|
|
20
|
+
import '../Icon_es_BrwLifge.js';
|
|
21
21
|
import 'react-inlinesvg';
|
|
22
22
|
import '../hoc/urlWithAssetPrefix.js';
|
|
23
23
|
import '../context/UrlAssetPrefix.js';
|
|
@@ -25,4 +25,4 @@ import '../hooks/useStyles/useStyles.js';
|
|
|
25
25
|
import 'lodash/maxBy';
|
|
26
26
|
import '../Link_es_XiqbdwLp.js';
|
|
27
27
|
import '../Text_es_CwV9rjFD.js';
|
|
28
|
-
import '../
|
|
28
|
+
import '../Image_es_BpMidmve.js';
|
|
@@ -3,7 +3,7 @@ import clsx from 'clsx';
|
|
|
3
3
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { A as Avatar } from '../
|
|
6
|
+
import { A as Avatar } from '../Avatar_es_BgN-fbOj.js';
|
|
7
7
|
import { G as Group } from '../Group_es_DRqIIM9m.js';
|
|
8
8
|
import { T as Text } from '../Text_es_CwV9rjFD.js';
|
|
9
9
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
@@ -21,12 +21,12 @@ import '../utils/setViewportProperty.js';
|
|
|
21
21
|
import '../hooks.js';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
23
|
import 'lodash/maxBy';
|
|
24
|
-
import '../
|
|
24
|
+
import '../Icon_es_BrwLifge.js';
|
|
25
25
|
import 'react-inlinesvg';
|
|
26
26
|
import '../hoc/urlWithAssetPrefix.js';
|
|
27
27
|
import '../context/UrlAssetPrefix.js';
|
|
28
28
|
import '../Link_es_XiqbdwLp.js';
|
|
29
|
-
import '../
|
|
29
|
+
import '../Image_es_BpMidmve.js';
|
|
30
30
|
|
|
31
31
|
var avatarStackAppearanceSize = {
|
|
32
32
|
size16: {
|
package/dist/components/Badge.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Badge, f as badgeAppearance, g as badgeConfig } from '../
|
|
1
|
+
export { B as Badge, f as badgeAppearance, g as badgeConfig } from '../Icon_es_BrwLifge.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
7
|
+
import { I as Icon } from '../Icon_es_BrwLifge.js';
|
|
8
8
|
import { a as LinkWrapper } from '../Link_es_XiqbdwLp.js';
|
|
9
9
|
import { T as Text } from '../Text_es_CwV9rjFD.js';
|
|
10
10
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../
|
|
1
|
+
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_CZss7cXh.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
5
|
-
import '../
|
|
5
|
+
import '../Icon_es_BrwLifge.js';
|
|
6
6
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
7
7
|
import 'react-inlinesvg';
|
|
8
8
|
import '../hoc/urlWithAssetPrefix.js';
|
|
@@ -25,4 +25,4 @@ import '../hooks/useStyles/useStyles.js';
|
|
|
25
25
|
import 'lodash/maxBy';
|
|
26
26
|
import '../Link_es_XiqbdwLp.js';
|
|
27
27
|
import '../Text_es_CwV9rjFD.js';
|
|
28
|
-
import '../
|
|
28
|
+
import '../Loader_es_BUSqFrCd.js';
|
package/dist/components/Cell.js
CHANGED
|
@@ -3,8 +3,8 @@ import clsx from 'clsx';
|
|
|
3
3
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { I as Icon } from '../
|
|
7
|
-
import { L as Label } from '../
|
|
6
|
+
import { I as Icon } from '../Icon_es_BrwLifge.js';
|
|
7
|
+
import { L as Label } from '../Label_es_SULlg9bL.js';
|
|
8
8
|
import { T as Text } from '../Text_es_CwV9rjFD.js';
|
|
9
9
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
10
10
|
import 'react';
|
package/dist/components/Chips.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../
|
|
1
|
+
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_ayPPUwQ7.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
@@ -19,7 +19,7 @@ import '../hooks.js';
|
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
20
|
import '../hooks/useStyles/useStyles.js';
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
|
-
import '../
|
|
22
|
+
import '../Icon_es_BrwLifge.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
24
|
import '../hoc/urlWithAssetPrefix.js';
|
|
25
25
|
import '../context/UrlAssetPrefix.js';
|
|
@@ -4,8 +4,8 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
8
|
-
import { L as Loader } from '../
|
|
7
|
+
import { I as Icon } from '../Icon_es_BrwLifge.js';
|
|
8
|
+
import { L as Loader } from '../Loader_es_BUSqFrCd.js';
|
|
9
9
|
import { T as Text } from '../Text_es_CwV9rjFD.js';
|
|
10
10
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import Cookies from 'js-cookie';
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { B as Button } from '../
|
|
7
|
+
import { B as Button } from '../Button_es_CZss7cXh.js';
|
|
8
8
|
import { T as Text } from '../Text_es_CwV9rjFD.js';
|
|
9
9
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -19,14 +19,14 @@ import 'react-responsive';
|
|
|
19
19
|
import '../utils/setViewportProperty.js';
|
|
20
20
|
import '../hooks.js';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
|
-
import '../
|
|
22
|
+
import '../Icon_es_BrwLifge.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
24
|
import '../hoc/urlWithAssetPrefix.js';
|
|
25
25
|
import '../context/UrlAssetPrefix.js';
|
|
26
26
|
import '../hooks/useStyles/useStyles.js';
|
|
27
27
|
import 'lodash/maxBy';
|
|
28
28
|
import '../Link_es_XiqbdwLp.js';
|
|
29
|
-
import '../
|
|
29
|
+
import '../Loader_es_BUSqFrCd.js';
|
|
30
30
|
|
|
31
31
|
var cookiesWarningAppearanceDefault = {
|
|
32
32
|
defaultPrimary: {
|
|
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { PartySuggestions } from 'react-dadata';
|
|
6
|
-
import { I as Input } from '../
|
|
6
|
+
import { I as Input } from '../Input_es_Cv5nEb_n.js';
|
|
7
7
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
8
8
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
@@ -2,10 +2,10 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { DATE_PERIOD_INTERVALS } from '@itcase/common';
|
|
5
|
-
import { D as DatePickerInput } from '../
|
|
5
|
+
import { D as DatePickerInput } from '../DatePicker_es_DRyCMO0I.js';
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
|
-
import { b as ChipsGroup, C as Chips } from '../
|
|
8
|
+
import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_ayPPUwQ7.js';
|
|
9
9
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
10
10
|
import 'date-fns/locale';
|
|
11
11
|
import 'react-datepicker';
|
|
@@ -21,16 +21,16 @@ import 'react-responsive';
|
|
|
21
21
|
import '../utils/setViewportProperty.js';
|
|
22
22
|
import '../hooks.js';
|
|
23
23
|
import '../hooks/useStyles/styleAttributes.js';
|
|
24
|
-
import '../
|
|
25
|
-
import '../
|
|
24
|
+
import '../Button_es_CZss7cXh.js';
|
|
25
|
+
import '../Icon_es_BrwLifge.js';
|
|
26
26
|
import 'react-inlinesvg';
|
|
27
27
|
import '../hoc/urlWithAssetPrefix.js';
|
|
28
28
|
import '../context/UrlAssetPrefix.js';
|
|
29
29
|
import '../Link_es_XiqbdwLp.js';
|
|
30
30
|
import '../Text_es_CwV9rjFD.js';
|
|
31
|
-
import '../
|
|
32
|
-
import '../
|
|
33
|
-
import '../
|
|
31
|
+
import '../Loader_es_BUSqFrCd.js';
|
|
32
|
+
import '../Input_es_Cv5nEb_n.js';
|
|
33
|
+
import '../Label_es_SULlg9bL.js';
|
|
34
34
|
import '@itcase/icons/default';
|
|
35
35
|
import 'lodash/castArray';
|
|
36
36
|
|
|
@@ -79,7 +79,7 @@ var datePeriodConfig = {
|
|
|
79
79
|
},
|
|
80
80
|
};
|
|
81
81
|
function DatePeriod(props) {
|
|
82
|
-
var
|
|
82
|
+
var appearance = props.appearance, className = props.className, _a = props.datePeriodIntervalsList, datePeriodIntervalsList = _a === void 0 ? Object.values(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;
|
|
83
83
|
var appearanceConfig = useAppearanceConfig(appearance, datePeriodConfig, isDisabled);
|
|
84
84
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
85
85
|
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;
|
|
@@ -108,7 +108,7 @@ function DatePeriod(props) {
|
|
|
108
108
|
// },
|
|
109
109
|
// [onChangeDatePeriod],
|
|
110
110
|
// )
|
|
111
|
-
return (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: jsxs(ChipsGroup, { direction: "horizontal", children: [datePeriodIntervalsList.map(function (datePeriodItem) { return (jsx(Chips, { appearance: "".concat(chipsAppearance, " ").concat(chipsAppearanceSize), label: datePeriodItem.label, shape: chipsShape, isActive: checkIsChipsActive(datePeriodItem), onClick: function () { return onClickPeriodChips(datePeriodItem); } }, datePeriodItem.value)); }), jsx(DatePickerInput, { datePickerProps: {
|
|
111
|
+
return (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: jsxs(ChipsGroup, { direction: "horizontal", children: [datePeriodIntervalsList.map(function (datePeriodItem) { return (jsx(Chips, { appearance: "".concat(chipsAppearance, " ").concat(chipsAppearanceSize), label: datePeriodItem.label, shape: chipsShape, isActive: checkIsChipsActive(datePeriodItem), onClick: function () { return onClickPeriodChips(datePeriodItem); } }, datePeriodItem.value)); }), jsx(DatePickerInput, { className: "date-period__datepicker", datePickerProps: {
|
|
112
112
|
appearance: "".concat(datePickerAppearance, " ").concat(datePickerAppearanceSize),
|
|
113
113
|
dateFormat: 'dd/MM/yyyy',
|
|
114
114
|
monthsShown: monthsShown,
|
|
@@ -118,8 +118,8 @@ function DatePeriod(props) {
|
|
|
118
118
|
isStartDefaultNull: true,
|
|
119
119
|
onKeyDown: onKeyDown,
|
|
120
120
|
}, endValue: datePeriodValueEnd, inputProps: {
|
|
121
|
-
className: "date-period__datepicker-input date-period__datepicker-input_size_".concat(datePickerInputSize),
|
|
122
121
|
appearance: "".concat(datePickerInputAppearance, " ghost"),
|
|
122
|
+
className: "date-period__datepicker-input date-period__datepicker-input_size_".concat(datePickerInputSize),
|
|
123
123
|
fillHover: datePickerInputFillHover,
|
|
124
124
|
textSize: datePickerInputTextSize,
|
|
125
125
|
placeholder: 'Выбрать период',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../
|
|
1
|
+
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_DRyCMO0I.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -21,14 +21,14 @@ import '../hooks.js';
|
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
22
|
import '../hooks/useStyles/useStyles.js';
|
|
23
23
|
import 'lodash/maxBy';
|
|
24
|
-
import '../
|
|
25
|
-
import '../
|
|
24
|
+
import '../Button_es_CZss7cXh.js';
|
|
25
|
+
import '../Icon_es_BrwLifge.js';
|
|
26
26
|
import 'react-inlinesvg';
|
|
27
27
|
import '../hoc/urlWithAssetPrefix.js';
|
|
28
28
|
import '../context/UrlAssetPrefix.js';
|
|
29
29
|
import '../Link_es_XiqbdwLp.js';
|
|
30
30
|
import '../Text_es_CwV9rjFD.js';
|
|
31
|
-
import '../
|
|
32
|
-
import '../
|
|
33
|
-
import '../
|
|
31
|
+
import '../Loader_es_BUSqFrCd.js';
|
|
32
|
+
import '../Input_es_Cv5nEb_n.js';
|
|
33
|
+
import '../Label_es_SULlg9bL.js';
|
|
34
34
|
import '@itcase/icons/default';
|
|
@@ -3,7 +3,7 @@ import { useRef, useEffect } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import ReactDrawer from 'react-modern-drawer';
|
|
5
5
|
import { D as Divider } from '../Divider_es_CCLBFIx6.js';
|
|
6
|
-
import { I as Icon, b as Title } from '../
|
|
6
|
+
import { I as Icon, b as Title } from '../Icon_es_BrwLifge.js';
|
|
7
7
|
import { T as Text } from '../Text_es_CwV9rjFD.js';
|
|
8
8
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
9
9
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../
|
|
1
|
+
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem_es_BXl6lPJx.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -18,7 +18,7 @@ import '../hooks.js';
|
|
|
18
18
|
import '../hooks/useStyles/styleAttributes.js';
|
|
19
19
|
import '../hooks/useStyles/useStyles.js';
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
|
-
import '../
|
|
21
|
+
import '../Icon_es_BrwLifge.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../hoc/urlWithAssetPrefix.js';
|
|
24
24
|
import '../context/UrlAssetPrefix.js';
|
package/dist/components/Grid.js
CHANGED
|
@@ -19,12 +19,12 @@ import '../hooks/useStyles/styleAttributes.js';
|
|
|
19
19
|
import 'lodash/maxBy';
|
|
20
20
|
|
|
21
21
|
function Grid(props) {
|
|
22
|
-
var id = props.id, className = props.className,
|
|
22
|
+
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;
|
|
23
23
|
var propsGenerator = useDevicePropsGenerator(props);
|
|
24
|
-
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;
|
|
24
|
+
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;
|
|
25
25
|
// @ts-expect-error
|
|
26
26
|
var gridStyles = useStyles(props).styles;
|
|
27
|
-
return (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 && jsx("div", { className: "grid__before", children: before }), children, after && jsx("div", { className: "grid__after", children: after })] }));
|
|
27
|
+
return (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 && jsx("div", { className: "grid__before", children: before }), children, after && jsx("div", { className: "grid__after", children: after })] }));
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
function GridItem(props) {
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
7
|
+
import { I as Icon } from '../Icon_es_BrwLifge.js';
|
|
8
8
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
package/dist/components/Icon.js
CHANGED
package/dist/components/Image.js
CHANGED
package/dist/components/Input.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
|
+
import { icons24 } from '@itcase/icons/default';
|
|
2
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
4
|
import { useState, useMemo, useCallback } from 'react';
|
|
4
5
|
import clsx from 'clsx';
|
|
5
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
8
|
+
import { I as Icon } from '../Icon_es_BrwLifge.js';
|
|
8
9
|
import 'lodash/camelCase';
|
|
9
10
|
import 'lodash/castArray';
|
|
10
11
|
import 'lodash/upperFirst';
|
|
@@ -33,8 +34,10 @@ var inputPasswordAppearanceDefault = {
|
|
|
33
34
|
textColor: 'surfaceTextPrimary',
|
|
34
35
|
textColorDisabled: 'surfaceTextDisabled',
|
|
35
36
|
caret: 'secondaryItemSecondary',
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
iconFill: 'surfaceItemQuaternary',
|
|
38
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
39
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
40
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
38
41
|
},
|
|
39
42
|
defaultSecondary: {
|
|
40
43
|
fill: 'surfacePrimary',
|
|
@@ -43,8 +46,9 @@ var inputPasswordAppearanceDefault = {
|
|
|
43
46
|
textColor: 'surfaceTextPrimary',
|
|
44
47
|
textColorDisabled: 'surfaceTextDisabled',
|
|
45
48
|
caret: 'secondaryItemSecondary',
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
iconFill: 'surfaceItemQuaternary',
|
|
50
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
51
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
48
52
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
49
53
|
},
|
|
50
54
|
};
|
|
@@ -55,16 +59,18 @@ var inputPasswordAppearanceDisabled = {
|
|
|
55
59
|
borderColor: 'errorBorderQuaternary',
|
|
56
60
|
borderHover: 'errorBorderQuaternary',
|
|
57
61
|
textColor: 'surfaceTextQuaternary',
|
|
58
|
-
|
|
59
|
-
|
|
62
|
+
iconFill: 'surfaceItemQuaternary',
|
|
63
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
64
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
60
65
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
61
66
|
},
|
|
62
67
|
disabledSecondary: {
|
|
63
68
|
fill: 'surfaceSecondary',
|
|
64
69
|
borderColor: 'surfaceBorderTertiary',
|
|
65
70
|
borderHover: 'surfaceBorderQuaternary',
|
|
66
|
-
|
|
67
|
-
|
|
71
|
+
iconFill: 'surfaceItemQuaternary',
|
|
72
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
73
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
68
74
|
placeholderTextColor: 'surfaceTextSecondary',
|
|
69
75
|
},
|
|
70
76
|
};
|
|
@@ -75,16 +81,18 @@ var inputPasswordAppearanceError = {
|
|
|
75
81
|
borderColor: 'errorBorderQuaternary',
|
|
76
82
|
borderHover: 'errorBorderQuaternary',
|
|
77
83
|
textColor: 'surfaceTextPrimary',
|
|
78
|
-
|
|
79
|
-
|
|
84
|
+
iconFill: 'surfaceItemQuaternary',
|
|
85
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
86
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
80
87
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
81
88
|
},
|
|
82
89
|
errorSecondary: {
|
|
83
90
|
fill: 'errorSecondary',
|
|
84
91
|
borderColor: 'errorBorderTertiary',
|
|
85
92
|
borderHover: 'errorBorderQuaternary',
|
|
86
|
-
|
|
87
|
-
|
|
93
|
+
iconFill: 'surfaceItemQuaternary',
|
|
94
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
95
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
88
96
|
placeholderTextColor: 'errorTextSecondary',
|
|
89
97
|
},
|
|
90
98
|
};
|
|
@@ -95,92 +103,105 @@ var inputPasswordAppearanceRequire = {
|
|
|
95
103
|
borderColor: 'warningBorderQuaternary',
|
|
96
104
|
borderHover: 'warningBorderQuaternary',
|
|
97
105
|
textColor: 'surfaceTextPrimary',
|
|
98
|
-
|
|
99
|
-
|
|
106
|
+
iconFill: 'surfaceItemQuaternary',
|
|
107
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
108
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
100
109
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
101
110
|
},
|
|
102
111
|
requireSecondary: {
|
|
103
112
|
fill: 'surfaceSecondary',
|
|
104
113
|
borderColor: 'surfaceBorderTertiary',
|
|
105
114
|
borderHover: 'surfaceBorderQuaternary',
|
|
106
|
-
|
|
107
|
-
|
|
115
|
+
iconFill: 'surfaceItemQuaternary',
|
|
116
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
117
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
108
118
|
placeholderTextColor: 'surfaceTextSecondary',
|
|
109
119
|
},
|
|
110
120
|
};
|
|
111
121
|
|
|
122
|
+
var inputPasswordAppearanceShape = {
|
|
123
|
+
circular: {
|
|
124
|
+
shape: 'circular',
|
|
125
|
+
},
|
|
126
|
+
rounded: {
|
|
127
|
+
shape: 'rounded',
|
|
128
|
+
},
|
|
129
|
+
roundedXL: {
|
|
130
|
+
shape: 'rounded',
|
|
131
|
+
shapeStrength: '2m',
|
|
132
|
+
},
|
|
133
|
+
roundedL: {
|
|
134
|
+
shape: 'rounded',
|
|
135
|
+
shapeStrength: '1_5m',
|
|
136
|
+
},
|
|
137
|
+
roundedM: {
|
|
138
|
+
shape: 'rounded',
|
|
139
|
+
shapeStrength: '1m',
|
|
140
|
+
},
|
|
141
|
+
roundedS: {
|
|
142
|
+
shape: 'rounded',
|
|
143
|
+
shapeStrength: '0_5m',
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
|
|
112
147
|
var inputPasswordAppearanceSize = {
|
|
113
148
|
sizeXXL: {
|
|
114
149
|
size: 'xxl',
|
|
115
150
|
textSize: 'l',
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
iconBeforeFillSize: '24',
|
|
119
|
-
iconBeforeSize: '24',
|
|
151
|
+
iconFillSize: '24',
|
|
152
|
+
iconSize: '24',
|
|
120
153
|
},
|
|
121
154
|
sizeXL: {
|
|
122
155
|
size: 'xl',
|
|
123
156
|
textSize: 's',
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
iconBeforeFillSize: '24',
|
|
127
|
-
iconBeforeSize: '24',
|
|
157
|
+
iconFillSize: '24',
|
|
158
|
+
iconSize: '24',
|
|
128
159
|
},
|
|
129
160
|
sizeL: {
|
|
130
161
|
size: 'l',
|
|
131
162
|
textSize: 's',
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
iconBeforeFillSize: '24',
|
|
135
|
-
iconBeforeSize: '24',
|
|
163
|
+
iconFillSize: '24',
|
|
164
|
+
iconSize: '24',
|
|
136
165
|
},
|
|
137
166
|
sizeM: {
|
|
138
167
|
size: 'm',
|
|
139
168
|
textSize: 'm',
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
iconBeforeFillSize: '24',
|
|
143
|
-
iconBeforeSize: '24',
|
|
169
|
+
iconFillSize: '24',
|
|
170
|
+
iconSize: '24',
|
|
144
171
|
},
|
|
145
172
|
sizeS: {
|
|
146
173
|
size: 's',
|
|
147
174
|
textSize: 's',
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
iconBeforeFillSize: '24',
|
|
151
|
-
iconBeforeSize: '24',
|
|
175
|
+
iconFillSize: '24',
|
|
176
|
+
iconSize: '24',
|
|
152
177
|
},
|
|
153
178
|
sizeXS: {
|
|
154
179
|
size: 'xs',
|
|
155
180
|
textSize: 's',
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
iconBeforeFillSize: '24',
|
|
159
|
-
iconBeforeSize: '24',
|
|
181
|
+
iconFillSize: '24',
|
|
182
|
+
iconSize: '24',
|
|
160
183
|
},
|
|
161
184
|
sizeXXS: {
|
|
162
185
|
size: 'xxs',
|
|
163
186
|
textSize: 's',
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
iconBeforeFillSize: '24',
|
|
167
|
-
iconBeforeSize: '24',
|
|
187
|
+
iconFillSize: '24',
|
|
188
|
+
iconSize: '24',
|
|
168
189
|
},
|
|
169
190
|
};
|
|
170
191
|
|
|
171
192
|
var inputPasswordAppearanceStyle = {
|
|
172
|
-
|
|
173
|
-
borderColor: '
|
|
174
|
-
},
|
|
175
|
-
ghost: {
|
|
176
|
-
fill: 'none',
|
|
177
|
-
borderColor: '0',
|
|
193
|
+
solid: {
|
|
194
|
+
borderColor: 'none',
|
|
178
195
|
},
|
|
179
196
|
outlined: {
|
|
180
197
|
fill: 'none',
|
|
181
198
|
},
|
|
182
|
-
|
|
183
|
-
borderColor: '
|
|
199
|
+
full: {
|
|
200
|
+
borderColor: 'none',
|
|
201
|
+
},
|
|
202
|
+
ghost: {
|
|
203
|
+
fill: 'none',
|
|
204
|
+
borderColor: 'none',
|
|
184
205
|
},
|
|
185
206
|
};
|
|
186
207
|
|
|
@@ -190,21 +211,23 @@ var inputPasswordAppearanceSuccess = {
|
|
|
190
211
|
borderColor: 'successBorderQuaternary',
|
|
191
212
|
borderHover: 'successBorderQuaternary',
|
|
192
213
|
textColor: 'surfaceTextPrimary',
|
|
193
|
-
|
|
194
|
-
|
|
214
|
+
iconFill: 'surfaceItemQuaternary',
|
|
215
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
216
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
195
217
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
196
218
|
},
|
|
197
219
|
successSecondary: {
|
|
198
220
|
fill: 'surfaceSecondary',
|
|
199
221
|
borderColor: 'surfaceBorderTertiary',
|
|
200
222
|
borderHover: 'surfaceBorderQuaternary',
|
|
201
|
-
|
|
202
|
-
|
|
223
|
+
iconFill: 'surfaceItemQuaternary',
|
|
224
|
+
iconRevealableHide: icons24.View.HideValue,
|
|
225
|
+
iconRevealableShow: icons24.View.ShowValue,
|
|
203
226
|
placeholderTextColor: 'surfaceTextSecondary',
|
|
204
227
|
},
|
|
205
228
|
};
|
|
206
229
|
|
|
207
|
-
var inputPasswordAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, inputPasswordAppearanceSize), inputPasswordAppearanceDisabled), inputPasswordAppearanceRequire), inputPasswordAppearanceStyle), inputPasswordAppearanceError), inputPasswordAppearanceDefault), inputPasswordAppearanceSuccess);
|
|
230
|
+
var inputPasswordAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, inputPasswordAppearanceSize), inputPasswordAppearanceDisabled), inputPasswordAppearanceRequire), inputPasswordAppearanceStyle), inputPasswordAppearanceError), inputPasswordAppearanceDefault), inputPasswordAppearanceSuccess), inputPasswordAppearanceShape);
|
|
208
231
|
|
|
209
232
|
var inputPasswordConfig = {
|
|
210
233
|
appearance: inputPasswordAppearance,
|
|
@@ -213,22 +236,21 @@ var inputPasswordConfig = {
|
|
|
213
236
|
},
|
|
214
237
|
};
|
|
215
238
|
function InputPassword(props) {
|
|
216
|
-
var id = props.id,
|
|
217
|
-
// state,
|
|
218
|
-
value = props.value, isRevealable = props.isRevealable, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
|
|
239
|
+
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;
|
|
219
240
|
var _a = useState(false), isRevealed = _a[0], setIsRevealed = _a[1];
|
|
220
241
|
var inputType = useMemo(function () {
|
|
221
242
|
return isRevealed ? 'text' : 'password';
|
|
222
243
|
}, [isRevealed]);
|
|
223
|
-
var
|
|
224
|
-
|
|
244
|
+
var onClickIconReveal = useCallback(function (event) {
|
|
245
|
+
event.preventDefault();
|
|
225
246
|
setIsRevealed(function (prev) { return !prev; });
|
|
226
|
-
}, [
|
|
247
|
+
}, []);
|
|
227
248
|
var appearanceConfig = useAppearanceConfig(appearance, inputPasswordConfig, isDisabled);
|
|
228
249
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
229
|
-
var fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderWidthClass = propsGenerator.borderWidthClass, textColorClass = propsGenerator.textColorClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, caretClass = propsGenerator.caretClass,
|
|
230
|
-
return (jsxs("div", { className: "input-password", children: [jsx("input", { id: String(id), className: clsx(className, 'input-password__input', (textSizeClass || textColorClass || textWeightClass) && 'text',
|
|
231
|
-
"
|
|
250
|
+
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;
|
|
251
|
+
return (jsxs("div", { className: "input-password", children: [jsx("input", { id: String(id), className: clsx(className, 'input-password__input', (textSizeClass || textColorClass || textWeightClass) && 'text', borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass &&
|
|
252
|
+
"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 &&
|
|
253
|
+
"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 }), jsx(Icon, { className: "input-password__icon", size: iconSize, iconFill: iconFill, iconFillHover: iconFillHover, imageSrc: isRevealed ? imageRevealableHide : imageRevealableShow, shape: iconShape, SvgImage: isRevealed ? iconRevealableHide : iconRevealableShow, onClick: onClickIconReveal })] }));
|
|
232
254
|
}
|
|
233
255
|
|
|
234
256
|
export { InputPassword, inputPasswordAppearance, inputPasswordConfig };
|