@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.
Files changed (131) hide show
  1. package/dist/{Avatar_cjs_BKcQuqYV.js → Avatar_cjs_CLJnKU39.js} +3 -3
  2. package/dist/{Avatar_es_Cpn1PNmO.js → Avatar_es_BgN-fbOj.js} +3 -3
  3. package/dist/{Button_cjs_3BTD8Mlm.js → Button_cjs_Ce97psFT.js} +5 -5
  4. package/dist/{Button_es_B_k-SP92.js → Button_es_CZss7cXh.js} +5 -5
  5. package/dist/{ChipsGroup_cjs_DhoY9YjT.js → ChipsGroup_cjs_C8L3ZeD_.js} +1 -1
  6. package/dist/{ChipsGroup_es_Dg1GmJ-9.js → ChipsGroup_es_ayPPUwQ7.js} +1 -1
  7. package/dist/{DatePicker_cjs_BLkZB0S0.js → DatePicker_cjs_BzEtDAb8.js} +4 -4
  8. package/dist/{DatePicker_es_CKrgRUWu.js → DatePicker_es_DRyCMO0I.js} +4 -4
  9. package/dist/{DropdownItem_cjs_D3Mcbsxa.js → DropdownItem_cjs_Bhss6lyM.js} +1 -1
  10. package/dist/{DropdownItem_es_BUs02mjJ.js → DropdownItem_es_BXl6lPJx.js} +1 -1
  11. package/dist/{Icon_cjs_CUArL1z2.js → Icon_cjs_Cz6IyOkb.js} +2 -2
  12. package/dist/{Icon_es_CNrc90oI.js → Icon_es_BrwLifge.js} +2 -2
  13. package/dist/{Image_cjs_B6YlGx8G.js → Image_cjs_DRhhc66R.js} +2 -1
  14. package/dist/{Image_es_BvYo_cHH.js → Image_es_BpMidmve.js} +2 -1
  15. package/dist/{Input_cjs_Du73R-wm.js → Input_cjs_DRPK_RHK.js} +3 -3
  16. package/dist/{Input_es_CiDHjDqJ.js → Input_es_Cv5nEb_n.js} +3 -3
  17. package/dist/{Label_cjs_BUEGAnsq.js → Label_cjs_DMoaOoHi.js} +1 -1
  18. package/dist/{Label_es_I01RN9hv.js → Label_es_SULlg9bL.js} +1 -1
  19. package/dist/{Loader_cjs_Cme6Hi0B.js → Loader_cjs_D3lnxPlI.js} +4 -0
  20. package/dist/{Loader_es_ByhTIMxS.js → Loader_es_BUSqFrCd.js} +4 -0
  21. package/dist/cjs/components/Accordion.js +1 -1
  22. package/dist/cjs/components/Avatar.js +3 -3
  23. package/dist/cjs/components/AvatarStack.js +3 -3
  24. package/dist/cjs/components/Badge.js +1 -1
  25. package/dist/cjs/components/Breadcrumbs.js +1 -1
  26. package/dist/cjs/components/Button.js +3 -3
  27. package/dist/cjs/components/Cell.js +2 -2
  28. package/dist/cjs/components/Chips.js +2 -2
  29. package/dist/cjs/components/Choice.js +2 -2
  30. package/dist/cjs/components/CookiesWarning.js +3 -3
  31. package/dist/cjs/components/Dadata.js +1 -1
  32. package/dist/cjs/components/DatePeriod.js +10 -10
  33. package/dist/cjs/components/DatePicker.js +6 -6
  34. package/dist/cjs/components/Drawer.js +1 -1
  35. package/dist/cjs/components/Dropdown.js +2 -2
  36. package/dist/cjs/components/Grid.js +3 -3
  37. package/dist/cjs/components/HeroTitle.js +1 -1
  38. package/dist/cjs/components/Icon.js +1 -1
  39. package/dist/cjs/components/Image.js +1 -1
  40. package/dist/cjs/components/Input.js +1 -1
  41. package/dist/cjs/components/InputPassword.js +89 -67
  42. package/dist/cjs/components/Label.js +2 -2
  43. package/dist/cjs/components/Loader.js +1 -1
  44. package/dist/cjs/components/MenuItem.js +3 -2
  45. package/dist/cjs/components/Modal.js +2 -2
  46. package/dist/cjs/components/ModalSheetBottom.js +1 -1
  47. package/dist/cjs/components/Notification.js +1 -1
  48. package/dist/cjs/components/Pagination.js +2 -2
  49. package/dist/cjs/components/Response/img.js +8 -2
  50. package/dist/cjs/components/Response.js +131 -30
  51. package/dist/cjs/components/Search.js +1 -1
  52. package/dist/cjs/components/Segmented.js +6 -6
  53. package/dist/cjs/components/Select.js +2 -2
  54. package/dist/cjs/components/Swiper.js +1 -1
  55. package/dist/cjs/components/Tab.js +30 -46
  56. package/dist/cjs/components/Tile.js +1 -1
  57. package/dist/cjs/components/Title.js +1 -1
  58. package/dist/cjs/components/Tooltip.js +1 -1
  59. package/dist/cjs/components/Warning.js +1 -1
  60. package/dist/components/Accordion.js +1 -1
  61. package/dist/components/Avatar.js +3 -3
  62. package/dist/components/AvatarStack.js +3 -3
  63. package/dist/components/Badge.js +1 -1
  64. package/dist/components/Breadcrumbs.js +1 -1
  65. package/dist/components/Button.js +3 -3
  66. package/dist/components/Cell.js +2 -2
  67. package/dist/components/Chips.js +2 -2
  68. package/dist/components/Choice.js +2 -2
  69. package/dist/components/CookiesWarning.js +3 -3
  70. package/dist/components/Dadata.js +1 -1
  71. package/dist/components/DatePeriod.js +10 -10
  72. package/dist/components/DatePicker.js +6 -6
  73. package/dist/components/Drawer.js +1 -1
  74. package/dist/components/Dropdown.js +2 -2
  75. package/dist/components/Grid.js +3 -3
  76. package/dist/components/HeroTitle.js +1 -1
  77. package/dist/components/Icon.js +1 -1
  78. package/dist/components/Image.js +1 -1
  79. package/dist/components/Input.js +1 -1
  80. package/dist/components/InputPassword.js +89 -67
  81. package/dist/components/Label.js +2 -2
  82. package/dist/components/Loader.js +1 -1
  83. package/dist/components/MenuItem.js +3 -2
  84. package/dist/components/Modal.js +2 -2
  85. package/dist/components/ModalSheetBottom.js +1 -1
  86. package/dist/components/Notification.js +1 -1
  87. package/dist/components/Pagination.js +2 -2
  88. package/dist/components/Response/img.js +8 -2
  89. package/dist/components/Response.js +132 -32
  90. package/dist/components/Search.js +1 -1
  91. package/dist/components/Segmented.js +6 -6
  92. package/dist/components/Select.js +2 -2
  93. package/dist/components/Swiper.js +1 -1
  94. package/dist/components/Tab.js +30 -46
  95. package/dist/components/Tile.js +1 -1
  96. package/dist/components/Title.js +1 -1
  97. package/dist/components/Tooltip.js +1 -1
  98. package/dist/components/Warning.js +1 -1
  99. package/dist/css/components/Cell/Cell.css +1 -2
  100. package/dist/css/components/Checkmark/Checkmark.css +2 -0
  101. package/dist/css/components/DatePeriod/DatePeriod.css +3 -0
  102. package/dist/css/components/Input/Input.css +0 -8
  103. package/dist/css/components/InputPassword/InputPassword.css +34 -43
  104. package/dist/css/components/MenuItem/MenuItem.css +28 -15
  105. package/dist/css/components/Tooltip/Tooltip.css +1 -0
  106. package/dist/types/components/InputPassword/InputPassword.appearance.d.ts +179 -2
  107. package/dist/types/components/InputPassword/appearance/inputPasswordDefault.d.ts +7 -4
  108. package/dist/types/components/InputPassword/appearance/inputPasswordDisabled.d.ts +6 -4
  109. package/dist/types/components/InputPassword/appearance/inputPasswordError.d.ts +6 -4
  110. package/dist/types/components/InputPassword/appearance/inputPasswordRequire.d.ts +6 -4
  111. package/dist/types/components/InputPassword/appearance/inputPasswordShape.d.ts +25 -0
  112. package/dist/types/components/InputPassword/appearance/inputPasswordSize.d.ts +14 -28
  113. package/dist/types/components/InputPassword/appearance/inputPasswordStyle.d.ts +5 -5
  114. package/dist/types/components/InputPassword/appearance/inputPasswordSuccess.d.ts +6 -4
  115. package/dist/types/components/Response/Response.constant.d.ts +76 -0
  116. package/dist/types/components/Response/appearance/{responceConfirm.d.ts → responseConfirm.d.ts} +1 -0
  117. package/dist/types/components/Response/appearance/responseDanger.d.ts +1 -0
  118. package/dist/types/components/Response/appearance/{responceEmpty.d.ts → responseEmpty.d.ts} +1 -0
  119. package/dist/types/components/Response/appearance/responseError.d.ts +1 -0
  120. package/dist/types/components/Response/appearance/{responceFail.d.ts → responseFail.d.ts} +1 -0
  121. package/dist/types/components/Response/appearance/{responceNothingFound.d.ts → responseNothingFound.d.ts} +1 -0
  122. package/dist/types/components/Response/appearance/{responceRefresh.d.ts → responseRefresh.d.ts} +1 -0
  123. package/dist/types/components/Response/appearance/responseStyle.d.ts +14 -0
  124. package/dist/types/components/Response/appearance/responseSuccess.d.ts +1 -0
  125. package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +1 -0
  126. package/dist/types/components/Response/appearance/responseWarning.d.ts +1 -0
  127. package/dist/types/components/Response/img/index.d.ts +2 -0
  128. package/dist/types/components/Response/index.d.ts +2 -1
  129. package/dist/types/components/Tab/appearance/tabSize.d.ts +0 -14
  130. package/dist/types/components/Tab/appearance/tabSurface.d.ts +7 -7
  131. package/package.json +13 -13
@@ -1,4 +1,4 @@
1
- export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../Avatar_es_Cpn1PNmO.js';
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 '../Icon_es_CNrc90oI.js';
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 '../Image_es_BvYo_cHH.js';
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 '../Avatar_es_Cpn1PNmO.js';
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 '../Icon_es_CNrc90oI.js';
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 '../Image_es_BvYo_cHH.js';
29
+ import '../Image_es_BpMidmve.js';
30
30
 
31
31
  var avatarStackAppearanceSize = {
32
32
  size16: {
@@ -1,4 +1,4 @@
1
- export { B as Badge, f as badgeAppearance, g as badgeConfig } from '../Icon_es_CNrc90oI.js';
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 '../Icon_es_CNrc90oI.js';
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 '../Button_es_B_k-SP92.js';
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 '../Icon_es_CNrc90oI.js';
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 '../Loader_es_ByhTIMxS.js';
28
+ import '../Loader_es_BUSqFrCd.js';
@@ -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 '../Icon_es_CNrc90oI.js';
7
- import { L as Label } from '../Label_es_I01RN9hv.js';
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';
@@ -1,4 +1,4 @@
1
- export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_Dg1GmJ-9.js';
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 '../Icon_es_CNrc90oI.js';
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 '../Icon_es_CNrc90oI.js';
8
- import { L as Loader } from '../Loader_es_ByhTIMxS.js';
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 '../Button_es_B_k-SP92.js';
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 '../Icon_es_CNrc90oI.js';
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 '../Loader_es_ByhTIMxS.js';
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 '../Input_es_CiDHjDqJ.js';
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 '../DatePicker_es_CKrgRUWu.js';
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 '../ChipsGroup_es_Dg1GmJ-9.js';
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 '../Button_es_B_k-SP92.js';
25
- import '../Icon_es_CNrc90oI.js';
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 '../Loader_es_ByhTIMxS.js';
32
- import '../Input_es_CiDHjDqJ.js';
33
- import '../Label_es_I01RN9hv.js';
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 className = props.className, appearance = props.appearance, _a = props.datePeriodIntervalsList, datePeriodIntervalsList = _a === void 0 ? Object.values(DATE_PERIOD_INTERVALS) : _a, datePeriodValueEnd = props.datePeriodValueEnd, datePeriodValueStart = props.datePeriodValueStart, monthsShown = props.monthsShown, isSkeleton = props.isSkeleton, isDisabled = props.isDisabled, onChangeDatePeriod = props.onChangeDatePeriod, onKeyDown = props.onKeyDown;
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 '../DatePicker_es_CKrgRUWu.js';
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 '../Button_es_B_k-SP92.js';
25
- import '../Icon_es_CNrc90oI.js';
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 '../Loader_es_ByhTIMxS.js';
32
- import '../Input_es_CiDHjDqJ.js';
33
- import '../Label_es_I01RN9hv.js';
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 '../Icon_es_CNrc90oI.js';
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 '../DropdownItem_es_BUs02mjJ.js';
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 '../Icon_es_CNrc90oI.js';
21
+ import '../Icon_es_BrwLifge.js';
22
22
  import 'react-inlinesvg';
23
23
  import '../hoc/urlWithAssetPrefix.js';
24
24
  import '../context/UrlAssetPrefix.js';
@@ -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, type = props.type, dataTour = props.dataTour, 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;
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 '../Icon_es_CNrc90oI.js';
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';
@@ -1,4 +1,4 @@
1
- export { I as Icon, e as iconAppearance, i as iconConfig } from '../Icon_es_CNrc90oI.js';
1
+ export { I as Icon, e as iconAppearance, i as iconConfig } from '../Icon_es_BrwLifge.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -1,4 +1,4 @@
1
- export { I as Image } from '../Image_es_BvYo_cHH.js';
1
+ export { I as Image } from '../Image_es_BpMidmve.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -1,4 +1,4 @@
1
- export { I as Input, a as inputAppearance, i as inputConfig } from '../Input_es_CiDHjDqJ.js';
1
+ export { I as Input, a as inputAppearance, i as inputConfig } from '../Input_es_Cv5nEb_n.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -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 '../Icon_es_CNrc90oI.js';
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
- iconBeforeFill: 'surfaceItemQuaternary',
37
- iconClearFill: 'surfaceItemPrimary',
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
- iconBeforeFill: 'surfaceItemQuaternary',
47
- iconClearFill: 'surfaceItemPrimary',
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
- iconBeforeFill: 'errorItemQuaternary',
59
- iconClearFill: 'errorItemPrimary',
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
- iconBeforeFill: 'surfaceItemQuaternary',
67
- iconClearFill: 'surfaceItemPrimary',
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
- iconBeforeFill: 'errorItemQuaternary',
79
- iconClearFill: 'errorItemPrimary',
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
- iconBeforeFill: 'errorItemQuaternary',
87
- iconClearFill: 'errorItemPrimary',
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
- iconBeforeFill: 'warningItemQuaternary',
99
- iconClearFill: 'warningItemPrimary',
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
- iconBeforeFill: 'surfaceItemQuaternary',
107
- iconClearFill: 'surfaceItemPrimary',
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
- iconAfterFillSize: '24',
117
- iconAfterSize: '24',
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
- iconAfterFillSize: '24',
125
- iconAfterSize: '24',
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
- iconAfterFillSize: '24',
133
- iconAfterSize: '24',
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
- iconAfterFillSize: '24',
141
- iconAfterSize: '24',
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
- iconAfterFillSize: '24',
149
- iconAfterSize: '24',
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
- iconAfterFillSize: '24',
157
- iconAfterSize: '24',
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
- iconAfterFillSize: '24',
165
- iconAfterSize: '24',
166
- iconBeforeFillSize: '24',
167
- iconBeforeSize: '24',
187
+ iconFillSize: '24',
188
+ iconSize: '24',
168
189
  },
169
190
  };
170
191
 
171
192
  var inputPasswordAppearanceStyle = {
172
- full: {
173
- borderColor: '0',
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
- solid: {
183
- borderColor: '0',
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
- iconBeforeFill: 'successItemQuaternary',
194
- iconClearFill: 'successItemPrimary',
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
- iconBeforeFill: 'surfaceItemQuaternary',
202
- iconClearFill: 'surfaceItemPrimary',
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, className = props.className, appearance = props.appearance, isDisabled = props.isDisabled, iconFill = props.iconFill, iconFillHover = props.iconFillHover, iconRevealableHide = props.iconRevealableHide, iconRevealableShow = props.iconRevealableShow, iconShape = props.iconShape, iconSize = props.iconSize, imageRevealableHide = props.imageRevealableHide, imageRevealableShow = props.imageRevealableShow, placeholder = props.placeholder,
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 revealeHandler = useCallback(function (e) {
224
- e.preventDefault();
244
+ var onClickIconReveal = useCallback(function (event) {
245
+ event.preventDefault();
225
246
  setIsRevealed(function (prev) { return !prev; });
226
- }, [setIsRevealed]);
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, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, _b = propsGenerator.sizeClass, sizeClass = _b === void 0 ? 'm' : _b, widthClass = propsGenerator.widthClass;
230
- return (jsxs("div", { className: "input-password", children: [jsx("input", { id: String(id), className: clsx(className, 'input-password__input', (textSizeClass || textColorClass || textWeightClass) && 'text', caretClass && "caret-color_".concat(caretClass), fillClass && "fill_".concat(fillClass), shapeClass && "input-password__input_shape_".concat(shapeClass), textSizeClass && "text_size_".concat(textSizeClass), textWeightClass && "text-weight_".concat(textWeightClass), widthClass && "width_".concat(widthClass), borderWidthClass && "border-width_".concat(borderWidthClass), sizeClass && "input-password__input_size_".concat(sizeClass), borderColorClass && "border-color_".concat(borderColorClass), placeholderTextColorClass &&
231
- "placeholder-text-color_".concat(placeholderTextColorClass), textColorClass && "text-color_".concat(textColorClass)), type: inputType, disabled: isDisabled, placeholder: placeholder, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }), isRevealable && (jsx(Icon, { className: "input-password__icon", size: iconSize, iconFill: iconFill, iconFillHover: iconFillHover, imageSrc: isRevealed ? imageRevealableHide : imageRevealableShow, shape: iconShape, SvgImage: isRevealed ? iconRevealableHide : iconRevealableShow, onClick: revealeHandler }))] }));
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 };