@itcase/ui 1.8.109 → 1.8.111
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_joB9qjwk.js → Avatar_cjs_CQhA8iu9.js} +2 -2
- package/dist/{Avatar_es_C3HGSiHU.js → Avatar_es__NA_FQGM.js} +2 -2
- package/dist/{Button_cjs_mau_55Fl.js → Button_cjs_B2eZhvoC.js} +5 -5
- package/dist/{Button_es_D_IlkeBp.js → Button_es_C8qinRU4.js} +5 -5
- package/dist/{ChipsGroup_cjs_D454M1-p.js → ChipsGroup_cjs_ChJ71i_A.js} +2 -2
- package/dist/{ChipsGroup_es_BKG5mK5N.js → ChipsGroup_es_Dj0Lu5zm.js} +2 -2
- package/dist/{DatePicker_cjs_Bm8nwWKa.js → DatePicker_cjs_CpN9wFK4.js} +5 -5
- package/dist/{DatePicker_es_DAV92A4A.js → DatePicker_es_B6WjNDiN.js} +5 -5
- package/dist/{DropdownItem_cjs_D2hHKA5E.js → DropdownItem_cjs_DUIefLij.js} +2 -2
- package/dist/{DropdownItem_es_D9JBMV70.js → DropdownItem_es_uFi08Joi.js} +2 -2
- package/dist/{Icon_cjs_ZerVip3X.js → Icon_cjs_D-UNVTqI.js} +6 -6
- package/dist/{Icon_es_C76te22j.js → Icon_es_Cstv1LFr.js} +6 -6
- package/dist/{Input_cjs_CFy0tfAO.js → Input_cjs_D18gXu6j.js} +23 -39
- package/dist/{Input_es_l3ry6luZ.js → Input_es_CHuhHbMo.js} +23 -39
- package/dist/{Label_cjs_CaTh_laL.js → Label_cjs_BvS_ANE3.js} +4 -4
- package/dist/{Label_es_CoIII7Ty.js → Label_es_C4Icioi8.js} +4 -4
- package/dist/{Link_cjs_BqT6eVl6.js → Link_cjs_C5UsZUiF.js} +2 -2
- package/dist/{Link_es_BnUIX0QT.js → Link_es_XiqbdwLp.js} +2 -2
- package/dist/{Loader_cjs_c6yF7akz.js → Loader_cjs_Cme6Hi0B.js} +3 -3
- package/dist/{Loader_es_C8ETXkiZ.js → Loader_es_ByhTIMxS.js} +3 -3
- package/dist/{Text_cjs_DpRclhwc.js → Text_cjs_0EINiUq4.js} +7 -4
- package/dist/{Text_es_CtCwsa3V.js → Text_es_CwV9rjFD.js} +7 -4
- package/dist/cjs/components/Accordion.js +3 -3
- package/dist/cjs/components/Avatar.js +4 -4
- package/dist/cjs/components/AvatarStack.js +4 -4
- package/dist/cjs/components/Badge.js +3 -3
- package/dist/cjs/components/Breadcrumbs.js +3 -3
- package/dist/cjs/components/Button.js +5 -5
- package/dist/cjs/components/Cell.js +4 -4
- package/dist/cjs/components/Checkbox.js +2 -2
- package/dist/cjs/components/Chips.js +4 -4
- package/dist/cjs/components/Choice.js +25 -23
- package/dist/cjs/components/Code.js +3 -3
- package/dist/cjs/components/CookiesWarning.js +5 -5
- package/dist/cjs/components/Dadata.js +1 -1
- package/dist/cjs/components/DatePeriod.js +11 -11
- package/dist/cjs/components/DatePicker.js +8 -8
- package/dist/cjs/components/Drawer.js +3 -3
- package/dist/cjs/components/Dropdown.js +4 -4
- package/dist/cjs/components/HeroTitle.js +5 -5
- package/dist/cjs/components/Icon.js +3 -3
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputPassword.js +6 -10
- package/dist/cjs/components/Label.js +4 -4
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/Logo.js +1 -1
- package/dist/cjs/components/MenuItem.js +4 -4
- package/dist/cjs/components/Modal.js +6 -6
- package/dist/cjs/components/ModalSheetBottom.js +5 -5
- package/dist/cjs/components/Notification.js +3 -3
- package/dist/cjs/components/Pagination.js +6 -6
- package/dist/cjs/components/Radio.js +58 -36
- package/dist/cjs/components/Response.js +5 -5
- package/dist/cjs/components/Search.js +5 -5
- package/dist/cjs/components/Segmented.js +12 -11
- package/dist/cjs/components/Select.js +104 -78
- package/dist/cjs/components/Swiper.js +3 -3
- package/dist/cjs/components/Switch.js +2 -2
- package/dist/cjs/components/Tab.js +4 -4
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Textarea.js +31 -26
- package/dist/cjs/components/Tile.js +3 -3
- package/dist/cjs/components/Title.js +3 -3
- package/dist/cjs/components/Tooltip.js +3 -3
- package/dist/cjs/components/Warning.js +3 -3
- package/dist/cjs/hoc/urlWithAssetPrefix.js +17 -0
- package/dist/cjs/hooks/useAppearanceConfig/useAppearanceConfig.js +8 -4
- package/dist/cjs/hooks/useStyles/useStyles.js +0 -1
- package/dist/components/Accordion.js +3 -3
- package/dist/components/Avatar.js +4 -4
- package/dist/components/AvatarStack.js +4 -4
- package/dist/components/Badge.js +3 -3
- package/dist/components/Breadcrumbs.js +3 -3
- package/dist/components/Button.js +5 -5
- package/dist/components/Cell.js +4 -4
- package/dist/components/Checkbox.js +2 -2
- package/dist/components/Chips.js +4 -4
- package/dist/components/Choice.js +25 -23
- package/dist/components/Code.js +3 -3
- package/dist/components/CookiesWarning.js +5 -5
- package/dist/components/Dadata.js +1 -1
- package/dist/components/DatePeriod.js +11 -11
- package/dist/components/DatePicker.js +8 -8
- package/dist/components/Drawer.js +3 -3
- package/dist/components/Dropdown.js +4 -4
- package/dist/components/HeroTitle.js +5 -5
- package/dist/components/Icon.js +3 -3
- package/dist/components/Input.js +1 -1
- package/dist/components/InputPassword.js +6 -10
- package/dist/components/Label.js +4 -4
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Loader.js +2 -2
- package/dist/components/Logo.js +1 -1
- package/dist/components/MenuItem.js +4 -4
- package/dist/components/Modal.js +6 -6
- package/dist/components/ModalSheetBottom.js +5 -5
- package/dist/components/Notification.js +3 -3
- package/dist/components/Pagination.js +6 -6
- package/dist/components/Radio.js +58 -36
- package/dist/components/Response.js +5 -5
- package/dist/components/Search.js +5 -5
- package/dist/components/Segmented.js +12 -11
- package/dist/components/Select.js +104 -78
- package/dist/components/Swiper.js +3 -3
- package/dist/components/Switch.js +2 -2
- package/dist/components/Tab.js +4 -4
- package/dist/components/Text.js +1 -1
- package/dist/components/Textarea.js +31 -26
- package/dist/components/Tile.js +3 -3
- package/dist/components/Title.js +3 -3
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/Warning.js +3 -3
- package/dist/css/components/Choice/Choice.css +34 -23
- package/dist/css/components/Choice/css/__item/choice__item.css +1 -1
- package/dist/css/components/Choice/css/__item/choice__item_size.css +8 -3
- package/dist/css/components/DatePicker/DatePicker.css +18 -18
- package/dist/css/components/Group/Group.css +5 -0
- package/dist/css/components/Input/Input.css +21 -19
- package/dist/css/components/Radio/Radio.css +436 -5
- package/dist/css/components/Segmented/Segmented.css +15 -17
- package/dist/css/components/Segmented/css/__item/segmaented__item.css +12 -0
- package/dist/css/components/Select/Select.css +20 -6
- package/dist/css/components/Select/css/__placeholder/select__placeholder.css +3 -0
- package/dist/css/components/Select/css/__single-value/select__single-value.css +5 -0
- package/dist/css/components/Textarea/Textarea.css +7 -6
- package/dist/css/styles/bundle.css +36 -45
- package/dist/css/styles/fill/fill.css +0 -3
- package/dist/css/styles/text-align/text-align.css +1 -1
- package/dist/css/styles/text-weight/text-weight.css +35 -41
- package/dist/hoc/urlWithAssetPrefix.js +17 -0
- package/dist/hooks/useAppearanceConfig/useAppearanceConfig.js +8 -4
- package/dist/hooks/useStyles/useStyles.js +0 -1
- package/dist/types/components/Choice/appearance/choiceDefault.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +3 -1
- package/dist/types/components/Code/Code.interface.d.ts +1 -0
- package/dist/types/components/Image/Image.d.ts +1 -2
- package/dist/types/components/Input/appearance/inputDefault.d.ts +2 -2
- package/dist/types/components/Input/appearance/inputDisabled.d.ts +1 -0
- package/dist/types/components/Input/appearance/inputRequire.d.ts +1 -0
- package/dist/types/components/Input/appearance/inputShape.d.ts +4 -4
- package/dist/types/components/Input/appearance/inputStyle.d.ts +1 -0
- package/dist/types/components/Logo/Logo.d.ts +2 -2
- package/dist/types/components/Radio/Radio.appearance.d.ts +37 -16
- package/dist/types/components/Radio/appearance/radioDefault.d.ts +7 -4
- package/dist/types/components/Radio/appearance/radioDisabled.d.ts +4 -2
- package/dist/types/components/Radio/appearance/radioError.d.ts +4 -2
- package/dist/types/components/Radio/appearance/radioRequire.d.ts +4 -2
- package/dist/types/components/Radio/appearance/radioShape.d.ts +4 -4
- package/dist/types/components/Radio/appearance/radioStyle.d.ts +10 -0
- package/dist/types/components/Radio/appearance/radioSuccess.d.ts +4 -2
- package/dist/types/components/Response/Response.d.ts +2 -2
- package/dist/types/components/SVGContent/SVGContent.d.ts +1 -2
- package/dist/types/components/Segmented/appearance/segmentedWarning.d.ts +1 -0
- package/dist/types/components/Select/appearance/selectDefault.d.ts +5 -5
- package/dist/types/components/Select/appearance/selectDisabled.d.ts +0 -1
- package/dist/types/components/Select/appearance/selectError.d.ts +16 -8
- package/dist/types/components/Select/appearance/selectRequire.d.ts +16 -8
- package/dist/types/components/Select/appearance/selectShape.d.ts +4 -4
- package/dist/types/components/Select/appearance/selectSize.d.ts +3 -0
- package/dist/types/components/Select/appearance/selectStyle.d.ts +5 -4
- package/dist/types/components/Select/appearance/selectSuccess.d.ts +16 -10
- package/dist/types/components/Textarea/appearance/textareaDefault.d.ts +7 -5
- package/dist/types/components/Textarea/appearance/textareaDisabled.d.ts +2 -2
- package/dist/types/components/Textarea/appearance/textareaError.d.ts +2 -2
- package/dist/types/components/Textarea/appearance/textareaRequire.d.ts +2 -2
- package/dist/types/components/Textarea/appearance/textareaShape.d.ts +4 -4
- package/dist/types/components/Textarea/appearance/textareaStyle.d.ts +4 -2
- package/dist/types/components/Textarea/appearance/textareaSuccess.d.ts +3 -2
- package/dist/types/hoc/urlWithAssetPrefix.d.ts +27 -8
- package/dist/types/hooks/useAppearanceConfig/useAppearanceConfig.d.ts +1 -1
- package/dist/types/types/utils.d.ts +34 -0
- package/package.json +3 -3
package/dist/components/Code.js
CHANGED
|
@@ -140,9 +140,9 @@ var codeConfig = {
|
|
|
140
140
|
},
|
|
141
141
|
};
|
|
142
142
|
function Code(props) {
|
|
143
|
-
var className = props.className, appearance = props.appearance, inputAutoFocus = props.inputAutoFocus,
|
|
144
|
-
var
|
|
145
|
-
var appearanceConfig = useAppearanceConfig(appearance, codeConfig);
|
|
143
|
+
var className = props.className, appearance = props.appearance, _a = props.initialValue, initialValue = _a === void 0 ? '' : _a, isDisabled = props.isDisabled, inputAutoFocus = props.inputAutoFocus, _b = props.inputCount, inputCount = _b === void 0 ? 6 : _b, inputPlaceholder = props.inputPlaceholder, _c = props.inputType, inputType = _c === void 0 ? 'number' : _c, separatorComponent = props.separatorComponent, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
|
|
144
|
+
var _d = useState(initialValue), otp = _d[0], setOtp = _d[1];
|
|
145
|
+
var appearanceConfig = useAppearanceConfig(appearance, codeConfig, isDisabled);
|
|
146
146
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
147
147
|
var inputBorderColorClass = propsGenerator.inputBorderColorClass, inputBorderColorHoverClass = propsGenerator.inputBorderColorHoverClass, inputBorderFocusColorClass = propsGenerator.inputBorderFocusColorClass, inputBorderWidthClass = propsGenerator.inputBorderWidthClass, inputCaretColorClass = propsGenerator.inputCaretColorClass, inputFillClass = propsGenerator.inputFillClass, inputFillHoverClass = propsGenerator.inputFillHoverClass, inputPlaceholderTextColorClass = propsGenerator.inputPlaceholderTextColorClass, inputSizeClass = propsGenerator.inputSizeClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, inputTextWeightClass = propsGenerator.inputTextWeightClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
148
148
|
// NOTE: too many dependencies for "useCallback" and possible too many checks
|
|
@@ -4,8 +4,8 @@ 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 '../
|
|
8
|
-
import { T as Text } from '../
|
|
7
|
+
import { B as Button } from '../Button_es_C8qinRU4.js';
|
|
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';
|
|
11
11
|
import 'lodash/castArray';
|
|
@@ -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_Cstv1LFr.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
|
-
import '../
|
|
29
|
-
import '../
|
|
28
|
+
import '../Link_es_XiqbdwLp.js';
|
|
29
|
+
import '../Loader_es_ByhTIMxS.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_CHuhHbMo.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_B6WjNDiN.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_Dj0Lu5zm.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_C8qinRU4.js';
|
|
25
|
+
import '../Icon_es_Cstv1LFr.js';
|
|
26
26
|
import 'react-inlinesvg';
|
|
27
27
|
import '../hoc/urlWithAssetPrefix.js';
|
|
28
28
|
import '../context/UrlAssetPrefix.js';
|
|
29
|
-
import '../
|
|
30
|
-
import '../
|
|
31
|
-
import '../
|
|
32
|
-
import '../
|
|
33
|
-
import '../
|
|
29
|
+
import '../Link_es_XiqbdwLp.js';
|
|
30
|
+
import '../Text_es_CwV9rjFD.js';
|
|
31
|
+
import '../Loader_es_ByhTIMxS.js';
|
|
32
|
+
import '../Input_es_CHuhHbMo.js';
|
|
33
|
+
import '../Label_es_C4Icioi8.js';
|
|
34
34
|
import '@itcase/icons/default';
|
|
35
35
|
import 'lodash/castArray';
|
|
36
36
|
|
|
@@ -79,8 +79,8 @@ 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, onChangeDatePeriod = props.onChangeDatePeriod, onKeyDown = props.onKeyDown;
|
|
83
|
-
var appearanceConfig = useAppearanceConfig(appearance, datePeriodConfig);
|
|
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;
|
|
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;
|
|
86
86
|
var onClickPeriodChips = useCallback(function (selectedPeriodItem) {
|
|
@@ -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_B6WjNDiN.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_C8qinRU4.js';
|
|
25
|
+
import '../Icon_es_Cstv1LFr.js';
|
|
26
26
|
import 'react-inlinesvg';
|
|
27
27
|
import '../hoc/urlWithAssetPrefix.js';
|
|
28
28
|
import '../context/UrlAssetPrefix.js';
|
|
29
|
-
import '../
|
|
30
|
-
import '../
|
|
31
|
-
import '../
|
|
32
|
-
import '../
|
|
33
|
-
import '../
|
|
29
|
+
import '../Link_es_XiqbdwLp.js';
|
|
30
|
+
import '../Text_es_CwV9rjFD.js';
|
|
31
|
+
import '../Loader_es_ByhTIMxS.js';
|
|
32
|
+
import '../Input_es_CHuhHbMo.js';
|
|
33
|
+
import '../Label_es_C4Icioi8.js';
|
|
34
34
|
import '@itcase/icons/default';
|
|
@@ -3,8 +3,8 @@ 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 '../
|
|
7
|
-
import { T as Text } from '../
|
|
6
|
+
import { I as Icon, b as Title } from '../Icon_es_Cstv1LFr.js';
|
|
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';
|
|
10
10
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
@@ -25,7 +25,7 @@ import '../hooks/useStyles/styleAttributes.js';
|
|
|
25
25
|
import 'react-inlinesvg';
|
|
26
26
|
import '../hoc/urlWithAssetPrefix.js';
|
|
27
27
|
import '../context/UrlAssetPrefix.js';
|
|
28
|
-
import '../
|
|
28
|
+
import '../Link_es_XiqbdwLp.js';
|
|
29
29
|
import 'lodash/castArray';
|
|
30
30
|
|
|
31
31
|
var drawerAppearanceSize = {
|
|
@@ -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_uFi08Joi.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -18,11 +18,11 @@ 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_Cstv1LFr.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../hoc/urlWithAssetPrefix.js';
|
|
24
24
|
import '../context/UrlAssetPrefix.js';
|
|
25
25
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
26
|
-
import '../
|
|
27
|
-
import '../
|
|
26
|
+
import '../Link_es_XiqbdwLp.js';
|
|
27
|
+
import '../Text_es_CwV9rjFD.js';
|
|
28
28
|
import '../Divider_es_CCLBFIx6.js';
|
|
@@ -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_Cstv1LFr.js';
|
|
8
8
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
@@ -22,8 +22,8 @@ import 'lodash/maxBy';
|
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../hoc/urlWithAssetPrefix.js';
|
|
24
24
|
import '../context/UrlAssetPrefix.js';
|
|
25
|
-
import '../
|
|
26
|
-
import '../
|
|
25
|
+
import '../Link_es_XiqbdwLp.js';
|
|
26
|
+
import '../Text_es_CwV9rjFD.js';
|
|
27
27
|
|
|
28
28
|
var heroTitleAppearanceSize = {
|
|
29
29
|
sizeH1: {
|
|
@@ -61,8 +61,8 @@ var heroTitleConfig = {
|
|
|
61
61
|
},
|
|
62
62
|
};
|
|
63
63
|
function HeroTitle(props) {
|
|
64
|
-
var className = props.className, appearance = props.appearance, text = props.text, afterWrapper = props.afterWrapper, beforeWrapper = props.beforeWrapper, dataTour = props.dataTour, _a = props.tag, tag = _a === void 0 ? 'span' : _a, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
|
|
65
|
-
var appearanceConfig = useAppearanceConfig(appearance, heroTitleConfig);
|
|
64
|
+
var className = props.className, appearance = props.appearance, text = props.text, afterWrapper = props.afterWrapper, beforeWrapper = props.beforeWrapper, dataTour = props.dataTour, _a = props.tag, tag = _a === void 0 ? 'span' : _a, before = props.before, after = props.after, isDisabled = props.isDisabled, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
|
|
65
|
+
var appearanceConfig = useAppearanceConfig(appearance, heroTitleConfig, isDisabled);
|
|
66
66
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
67
67
|
var directionClass = propsGenerator.directionClass, size = propsGenerator.size, fillClass = propsGenerator.fillClass, textAlignClass = propsGenerator.textAlignClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorGradientClass = propsGenerator.textColorGradientClass, textColorHoverClass = propsGenerator.textColorHoverClass, textStyleClass = propsGenerator.textStyleClass, textTruncateClass = propsGenerator.textTruncateClass, textWeightClass = propsGenerator.textWeightClass, textWrap = propsGenerator.textWrap, dataTestId = propsGenerator.dataTestId, heightClass = propsGenerator.heightClass, 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, svgFillClass = propsGenerator.svgFillClass, svgFillHoverClass = propsGenerator.svgFillHoverClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, wrapperDirectionClass = propsGenerator.wrapperDirectionClass;
|
|
68
68
|
// @ts-expect-error
|
package/dist/components/Icon.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as Icon, e as iconAppearance, i as iconConfig } from '../
|
|
1
|
+
export { I as Icon, e as iconAppearance, i as iconConfig } from '../Icon_es_Cstv1LFr.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -22,5 +22,5 @@ import '../hooks.js';
|
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
23
|
import '../hooks/useStyles/useStyles.js';
|
|
24
24
|
import 'lodash/maxBy';
|
|
25
|
-
import '../
|
|
26
|
-
import '../
|
|
25
|
+
import '../Link_es_XiqbdwLp.js';
|
|
26
|
+
import '../Text_es_CwV9rjFD.js';
|
package/dist/components/Input.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useState, useMemo, useCallback } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
7
|
+
import { I as Icon } from '../Icon_es_Cstv1LFr.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
10
10
|
import 'lodash/upperFirst';
|
|
@@ -22,8 +22,8 @@ import '../hoc/urlWithAssetPrefix.js';
|
|
|
22
22
|
import '../context/UrlAssetPrefix.js';
|
|
23
23
|
import '../hooks/useStyles/useStyles.js';
|
|
24
24
|
import 'lodash/maxBy';
|
|
25
|
-
import '../
|
|
26
|
-
import '../
|
|
25
|
+
import '../Link_es_XiqbdwLp.js';
|
|
26
|
+
import '../Text_es_CwV9rjFD.js';
|
|
27
27
|
|
|
28
28
|
var inputPasswordAppearanceDefault = {
|
|
29
29
|
defaultPrimary: {
|
|
@@ -213,7 +213,7 @@ var inputPasswordConfig = {
|
|
|
213
213
|
},
|
|
214
214
|
};
|
|
215
215
|
function InputPassword(props) {
|
|
216
|
-
var id = props.id, className = props.className, appearance = props.appearance,
|
|
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
217
|
// state,
|
|
218
218
|
value = props.value, isRevealable = props.isRevealable, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
|
|
219
219
|
var _a = useState(false), isRevealed = _a[0], setIsRevealed = _a[1];
|
|
@@ -224,15 +224,11 @@ function InputPassword(props) {
|
|
|
224
224
|
e.preventDefault();
|
|
225
225
|
setIsRevealed(function (prev) { return !prev; });
|
|
226
226
|
}, [setIsRevealed]);
|
|
227
|
-
|
|
228
|
-
// () => state && inputPasswordConfig.state && inputPasswordConfig.state[state],
|
|
229
|
-
// [state, inputPasswordConfig],
|
|
230
|
-
// )
|
|
231
|
-
var appearanceConfig = useAppearanceConfig(appearance, inputPasswordConfig);
|
|
227
|
+
var appearanceConfig = useAppearanceConfig(appearance, inputPasswordConfig, isDisabled);
|
|
232
228
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
233
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;
|
|
234
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 &&
|
|
235
|
-
"placeholder-text-color_".concat(placeholderTextColorClass), textColorClass && "text-color_".concat(textColorClass)), type: inputType, disabled:
|
|
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 }))] }));
|
|
236
232
|
}
|
|
237
233
|
|
|
238
234
|
export { InputPassword, inputPasswordAppearance, inputPasswordConfig };
|
package/dist/components/Label.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Label, a as labelAppearance, l as labelConfig } from '../
|
|
1
|
+
export { L as Label, a as labelAppearance, l as labelConfig } from '../Label_es_C4Icioi8.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -19,9 +19,9 @@ 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_Cstv1LFr.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
24
|
import '../hoc/urlWithAssetPrefix.js';
|
|
25
25
|
import '../context/UrlAssetPrefix.js';
|
|
26
|
-
import '../
|
|
27
|
-
import '../
|
|
26
|
+
import '../Link_es_XiqbdwLp.js';
|
|
27
|
+
import '../Text_es_CwV9rjFD.js';
|
package/dist/components/Link.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Link, a as LinkWrapper, b as linkAppearance, l as linkConfig } from '../
|
|
1
|
+
export { L as Link, a as LinkWrapper, b as linkAppearance, l as linkConfig } from '../Link_es_XiqbdwLp.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
package/dist/components/List.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceC
|
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
6
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
7
|
-
import { L as Link } from '../
|
|
7
|
+
import { L as Link } from '../Link_es_XiqbdwLp.js';
|
|
8
8
|
import 'react';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../
|
|
1
|
+
export { L as Loader, a as loaderAppearance, l as loaderConfig } from '../Loader_es_ByhTIMxS.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
@@ -19,4 +19,4 @@ 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 '../Text_es_CwV9rjFD.js';
|
package/dist/components/Logo.js
CHANGED
|
@@ -4,7 +4,7 @@ import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
|
|
|
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 { a as LinkWrapper } from '../
|
|
7
|
+
import { a as LinkWrapper } from '../Link_es_XiqbdwLp.js';
|
|
8
8
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import '@itcase/common';
|
|
@@ -4,9 +4,9 @@ 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, T as Tooltip } from '../
|
|
8
|
-
import { L as Link } from '../
|
|
9
|
-
import { T as Text } from '../
|
|
7
|
+
import { I as Icon, T as Tooltip } from '../Icon_es_Cstv1LFr.js';
|
|
8
|
+
import { L as Link } from '../Link_es_XiqbdwLp.js';
|
|
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';
|
|
12
12
|
import 'lodash/castArray';
|
|
@@ -197,7 +197,7 @@ function MenuItem(props) {
|
|
|
197
197
|
(_a = tooltipRef.current) === null || _a === void 0 ? void 0 : _a.closeTooltip();
|
|
198
198
|
}
|
|
199
199
|
}, [showTooltip]);
|
|
200
|
-
var appearanceConfig = useAppearanceConfig(appearance, menuItemConfig);
|
|
200
|
+
var appearanceConfig = useAppearanceConfig(appearance, menuItemConfig, isDisabled);
|
|
201
201
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
202
202
|
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;
|
|
203
203
|
// @ts-expect-error
|
package/dist/components/Modal.js
CHANGED
|
@@ -5,11 +5,11 @@ import ReactDOM from 'react-dom';
|
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { b as Title, I as Icon } from '../
|
|
8
|
+
import { b as Title, I as Icon } from '../Icon_es_Cstv1LFr.js';
|
|
9
9
|
import { O as Overlay } from '../Overlay_es_DF3DAdxS.js';
|
|
10
10
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
11
11
|
import { icons24, icons32, icons40 } from '@itcase/icons/default';
|
|
12
|
-
import { L as Loader } from '../
|
|
12
|
+
import { L as Loader } from '../Loader_es_ByhTIMxS.js';
|
|
13
13
|
import 'lodash/camelCase';
|
|
14
14
|
import 'lodash/castArray';
|
|
15
15
|
import 'lodash/upperFirst';
|
|
@@ -26,8 +26,8 @@ import 'lodash/maxBy';
|
|
|
26
26
|
import 'react-inlinesvg';
|
|
27
27
|
import '../hoc/urlWithAssetPrefix.js';
|
|
28
28
|
import '../context/UrlAssetPrefix.js';
|
|
29
|
-
import '../
|
|
30
|
-
import '../
|
|
29
|
+
import '../Link_es_XiqbdwLp.js';
|
|
30
|
+
import '../Text_es_CwV9rjFD.js';
|
|
31
31
|
|
|
32
32
|
var modalAppearanceShape = {
|
|
33
33
|
circular: {
|
|
@@ -133,7 +133,7 @@ var getOrCreateModalElement = function (modalQuerySelector, className) {
|
|
|
133
133
|
};
|
|
134
134
|
// Modal component that is an abstraction around the portal API.
|
|
135
135
|
var Modal = React.forwardRef(function Modal(props, ref) {
|
|
136
|
-
var id = props.id, dataTestId = props.dataTestId, dataTour = props.dataTour, className = props.className, appearance = props.appearance, title = props.title, contentClassName = props.contentClassName, _a = props.modalQuerySelector, modalQuerySelector = _a === void 0 ? '#modal-global' : _a, _b = props.scroll, scroll = _b === void 0 ? false : _b, _c = props.stickyHeader, stickyHeader = _c === void 0 ? false : _c, _d = props.isCloseOnBlur, isCloseOnBlur = _d === void 0 ? true : _d, _e = props.isOpen, initialIsOpen = _e === void 0 ? false : _e, _f = props.isOverlay, isOverlay = _f === void 0 ? true : _f, _g = props.isScrollOnOpen, isScrollOnOpen = _g === void 0 ? true : _g, _h = props.isSetFocusOnOpen, isSetFocusOnOpen = _h === void 0 ? true : _h, isSkeleton = props.isSkeleton, onClickOverlay = props.onClickOverlay, onCloseModal = props.onCloseModal, onOpenModal = props.onOpenModal, children = props.children;
|
|
136
|
+
var id = props.id, dataTestId = props.dataTestId, dataTour = props.dataTour, className = props.className, appearance = props.appearance, title = props.title, contentClassName = props.contentClassName, _a = props.modalQuerySelector, modalQuerySelector = _a === void 0 ? '#modal-global' : _a, _b = props.scroll, scroll = _b === void 0 ? false : _b, _c = props.stickyHeader, stickyHeader = _c === void 0 ? false : _c, _d = props.isCloseOnBlur, isCloseOnBlur = _d === void 0 ? true : _d, _e = props.isOpen, initialIsOpen = _e === void 0 ? false : _e, _f = props.isOverlay, isOverlay = _f === void 0 ? true : _f, isDisabled = props.isDisabled, _g = props.isScrollOnOpen, isScrollOnOpen = _g === void 0 ? true : _g, _h = props.isSetFocusOnOpen, isSetFocusOnOpen = _h === void 0 ? true : _h, isSkeleton = props.isSkeleton, onClickOverlay = props.onClickOverlay, onCloseModal = props.onCloseModal, onOpenModal = props.onOpenModal, children = props.children;
|
|
137
137
|
// Query DOM element
|
|
138
138
|
var _j = useState(null), modalElement = _j[0], setModalElement = _j[1];
|
|
139
139
|
var _k = useState(initialIsOpen), isOpen = _k[0], setIsOpen = _k[1];
|
|
@@ -215,7 +215,7 @@ var Modal = React.forwardRef(function Modal(props, ref) {
|
|
|
215
215
|
}, [addModalProps, className, modalQuerySelector]);
|
|
216
216
|
// Save ref things
|
|
217
217
|
useImperativeHandle(ref, function () { return ({ modalElement: modalElement, openModal: openModal, closeModal: closeModal, isOpen: isOpen }); }, [isOpen, openModal, closeModal, modalElement]);
|
|
218
|
-
var appearanceConfig = useAppearanceConfig(appearance, modalConfig);
|
|
218
|
+
var appearanceConfig = useAppearanceConfig(appearance, modalConfig, isDisabled);
|
|
219
219
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
220
220
|
var fillClass = propsGenerator.fillClass, titleTextColor = propsGenerator.titleTextColor, titleTextColorHover = propsGenerator.titleTextColorHover, titleTextSize = propsGenerator.titleTextSize, titleTextTruncate = propsGenerator.titleTextTruncate, titleTextWeight = propsGenerator.titleTextWeight, titleTextWidth = propsGenerator.titleTextWidth, titleTextWrap = propsGenerator.titleTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, overlayFill = propsGenerator.overlayFill, overlayOpacity = propsGenerator.overlayOpacity, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, closeIconAppearance = propsGenerator.closeIconAppearance, closeIconAppearanceSize = propsGenerator.closeIconAppearanceSize, closeIconFillSize = propsGenerator.closeIconFillSize, closeIconImage = propsGenerator.closeIconImage, closeIconShape = propsGenerator.closeIconShape, closeIconSize = propsGenerator.closeIconSize;
|
|
221
221
|
// @ts-expect-error
|
|
@@ -5,7 +5,7 @@ import { Sheet } from 'react-modal-sheet';
|
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { b as Title } from '../
|
|
8
|
+
import { b as Title } from '../Icon_es_Cstv1LFr.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
11
11
|
import 'lodash/upperFirst';
|
|
@@ -23,8 +23,8 @@ import 'clsx';
|
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
24
|
import '../hoc/urlWithAssetPrefix.js';
|
|
25
25
|
import '../context/UrlAssetPrefix.js';
|
|
26
|
-
import '../
|
|
27
|
-
import '../
|
|
26
|
+
import '../Link_es_XiqbdwLp.js';
|
|
27
|
+
import '../Text_es_CwV9rjFD.js';
|
|
28
28
|
|
|
29
29
|
var modalSheetBottomAppearance = {
|
|
30
30
|
sizeL: {
|
|
@@ -43,7 +43,7 @@ var modalSheetBottomAppearance = {
|
|
|
43
43
|
var modalSheetBottomConfig = {
|
|
44
44
|
appearance: modalSheetBottomAppearance};
|
|
45
45
|
var ModalSheetBottom = React.forwardRef(function Modal(props, ref) {
|
|
46
|
-
var dataTestId = props.dataTestId, dataTour = props.dataTour, appearance = props.appearance, initialIsOpen = props.initialIsOpen, title = props.title, closeButton = props.closeButton, onCloseModalSheetBottom = props.onCloseModalSheetBottom, onOpenModalSheetBottom = props.onOpenModalSheetBottom, children = props.children;
|
|
46
|
+
var dataTestId = props.dataTestId, dataTour = props.dataTour, appearance = props.appearance, initialIsOpen = props.initialIsOpen, title = props.title, isDisabled = props.isDisabled, closeButton = props.closeButton, onCloseModalSheetBottom = props.onCloseModalSheetBottom, onOpenModalSheetBottom = props.onOpenModalSheetBottom, children = props.children;
|
|
47
47
|
var _a = useState(initialIsOpen), isOpen = _a[0], setIsOpen = _a[1];
|
|
48
48
|
var openModalSheetBottom = useCallback(function () {
|
|
49
49
|
setIsOpen(true);
|
|
@@ -59,7 +59,7 @@ var ModalSheetBottom = React.forwardRef(function Modal(props, ref) {
|
|
|
59
59
|
closeModal: closeModalSheetBottom,
|
|
60
60
|
isOpen: isOpen,
|
|
61
61
|
}); }, [isOpen, openModalSheetBottom, closeModalSheetBottom]);
|
|
62
|
-
var appearanceConfig = useAppearanceConfig(appearance, modalSheetBottomConfig);
|
|
62
|
+
var appearanceConfig = useAppearanceConfig(appearance, modalSheetBottomConfig, isDisabled);
|
|
63
63
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
64
64
|
var titleTextColor = propsGenerator.titleTextColor, titleTextColorHover = propsGenerator.titleTextColorHover, titleTextSize = propsGenerator.titleTextSize, titleTextTruncate = propsGenerator.titleTextTruncate, titleTextWeight = propsGenerator.titleTextWeight, titleTextWidth = propsGenerator.titleTextWidth, titleTextWrap = propsGenerator.titleTextWrap;
|
|
65
65
|
// @ts-expect-error
|
|
@@ -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 { T as Text } from '../
|
|
6
|
+
import { I as Icon } from '../Icon_es_Cstv1LFr.js';
|
|
7
|
+
import { T as Text } from '../Text_es_CwV9rjFD.js';
|
|
8
8
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import { icons20 } from '@itcase/icons/default';
|
|
10
10
|
import { useNotifications, useNotificationsAPI } from '../context/Notifications.js';
|
|
@@ -24,7 +24,7 @@ import 'lodash/maxBy';
|
|
|
24
24
|
import 'react-inlinesvg';
|
|
25
25
|
import '../hoc/urlWithAssetPrefix.js';
|
|
26
26
|
import '../context/UrlAssetPrefix.js';
|
|
27
|
-
import '../
|
|
27
|
+
import '../Link_es_XiqbdwLp.js';
|
|
28
28
|
|
|
29
29
|
var notificationAppearanceDefault = {
|
|
30
30
|
defaultPrimary: {
|
|
@@ -6,9 +6,9 @@ import ReactPaginate from 'react-paginate';
|
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
|
-
import { D as Dropdown, a as DropdownItem } from '../
|
|
10
|
-
import { I as Icon } from '../
|
|
11
|
-
import { T as Text } from '../
|
|
9
|
+
import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_uFi08Joi.js';
|
|
10
|
+
import { I as Icon } from '../Icon_es_Cstv1LFr.js';
|
|
11
|
+
import { T as Text } from '../Text_es_CwV9rjFD.js';
|
|
12
12
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
13
13
|
import { icons14, icons24, icons16 } from '@itcase/icons/default';
|
|
14
14
|
import 'lodash/camelCase';
|
|
@@ -28,7 +28,7 @@ import '../Divider_es_CCLBFIx6.js';
|
|
|
28
28
|
import 'react-inlinesvg';
|
|
29
29
|
import '../hoc/urlWithAssetPrefix.js';
|
|
30
30
|
import '../context/UrlAssetPrefix.js';
|
|
31
|
-
import '../
|
|
31
|
+
import '../Link_es_XiqbdwLp.js';
|
|
32
32
|
|
|
33
33
|
var paginationAppearanceAccent = {
|
|
34
34
|
accent: {
|
|
@@ -201,7 +201,7 @@ var paginationConfig = {
|
|
|
201
201
|
},
|
|
202
202
|
};
|
|
203
203
|
function Pagination(props) {
|
|
204
|
-
var className = props.className, appearance = props.appearance, _a = props.allItemsCount, allItemsCount = _a === void 0 ? 0 : _a, dataTestId = props.dataTestId, dataTour = props.dataTour, _b = props.pageCountArray, pageCountArray = _b === void 0 ? [10, 20, 50, 100] : _b, _c = props.pageCountDesc, pageCountDesc = _c === void 0 ? 'кол-во строк' : _c, pageCountDropdownItemDividerDirection = props.pageCountDropdownItemDividerDirection, _d = props.pageNumber, pageNumber = _d === void 0 ? 0 : _d, _e = props.perPageCount, perPageCount = _e === void 0 ? 0 : _e, isPageCount = props.isPageCount, _f = props.isPageCountDropdownReversed, isPageCountDropdownReversed = _f === void 0 ? false : _f, isPageLabelBuilder = props.isPageLabelBuilder, isSkeleton = props.isSkeleton, onChangePage = props.onChangePage, onChangePerPageCount = props.onChangePerPageCount,
|
|
204
|
+
var className = props.className, appearance = props.appearance, _a = props.allItemsCount, allItemsCount = _a === void 0 ? 0 : _a, dataTestId = props.dataTestId, dataTour = props.dataTour, _b = props.pageCountArray, pageCountArray = _b === void 0 ? [10, 20, 50, 100] : _b, _c = props.pageCountDesc, pageCountDesc = _c === void 0 ? 'кол-во строк' : _c, pageCountDropdownItemDividerDirection = props.pageCountDropdownItemDividerDirection, _d = props.pageNumber, pageNumber = _d === void 0 ? 0 : _d, _e = props.perPageCount, perPageCount = _e === void 0 ? 0 : _e, isPageCount = props.isPageCount, isDisabled = props.isDisabled, _f = props.isPageCountDropdownReversed, isPageCountDropdownReversed = _f === void 0 ? false : _f, isPageLabelBuilder = props.isPageLabelBuilder, isSkeleton = props.isSkeleton, onChangePage = props.onChangePage, onChangePerPageCount = props.onChangePerPageCount,
|
|
205
205
|
/**
|
|
206
206
|
* @deprecated The method should not be used
|
|
207
207
|
*/
|
|
@@ -258,7 +258,7 @@ function Pagination(props) {
|
|
|
258
258
|
}
|
|
259
259
|
return 0;
|
|
260
260
|
}, [pageNumber]);
|
|
261
|
-
var appearanceConfig = useAppearanceConfig(appearance, paginationConfig);
|
|
261
|
+
var appearanceConfig = useAppearanceConfig(appearance, paginationConfig, isDisabled);
|
|
262
262
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
263
263
|
var justifyContentClass = propsGenerator.justifyContentClass, fillActiveClass = propsGenerator.fillActiveClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, fillInputClass = propsGenerator.fillInputClass, fillInputHoverClass = propsGenerator.fillInputHoverClass, textColorClass = propsGenerator.textColorClass, textSizeClass = propsGenerator.textSizeClass, builderIcon = propsGenerator.builderIcon, builderIconFill = propsGenerator.builderIconFill, builderIconFillIcon = propsGenerator.builderIconFillIcon, builderIconFillSize = propsGenerator.builderIconFillSize, builderIconSize = propsGenerator.builderIconSize, marginPagesDisplayed = propsGenerator.marginPagesDisplayed, nextIcon = propsGenerator.nextIcon, nextIconFill = propsGenerator.nextIconFill, nextIconFillIcon = propsGenerator.nextIconFillIcon, nextIconFillSize = propsGenerator.nextIconFillSize, nextIconSize = propsGenerator.nextIconSize, pageCountDescTextColor = propsGenerator.pageCountDescTextColor, pageCountDescTextSize = propsGenerator.pageCountDescTextSize, pageCountDropdownAlignment = propsGenerator.pageCountDropdownAlignment, pageCountDropdownElevation = propsGenerator.pageCountDropdownElevation, pageCountDropdownFill = propsGenerator.pageCountDropdownFill, pageCountDropdownItemDividerFill = propsGenerator.pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize = propsGenerator.pageCountDropdownItemDividerSize, pageCountDropdownItemFill = propsGenerator.pageCountDropdownItemFill, pageCountDropdownItemFillActive = propsGenerator.pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover = propsGenerator.pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover = propsGenerator.pageCountDropdownItemFillHover, pageCountDropdownItemLabelAlign = propsGenerator.pageCountDropdownItemLabelAlign, pageCountDropdownItemLabelColor = propsGenerator.pageCountDropdownItemLabelColor, pageCountDropdownItemLabelColorActive = propsGenerator.pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelColorActiveHover = propsGenerator.pageCountDropdownItemLabelColorActiveHover, pageCountDropdownItemLabelColorHover = propsGenerator.pageCountDropdownItemLabelColorHover, pageCountDropdownItemLabelSize = propsGenerator.pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap = propsGenerator.pageCountDropdownItemLabelWrap, pageCountDropdownItemShowDivider = propsGenerator.pageCountDropdownItemShowDivider, pageCountDropdownItemSize = propsGenerator.pageCountDropdownItemSize, pageCountDropdownItemWidth = propsGenerator.pageCountDropdownItemWidth, pageCountDropdownShape = propsGenerator.pageCountDropdownShape, pageCountInputIcon = propsGenerator.pageCountInputIcon, pageCountInputIconColor = propsGenerator.pageCountInputIconColor, pageCountInputIconFillSize = propsGenerator.pageCountInputIconFillSize, pageCountInputIconSrc = propsGenerator.pageCountInputIconSrc, pageCountInputTextColor = propsGenerator.pageCountInputTextColor, pageCountInputTextSize = propsGenerator.pageCountInputTextSize, pageRangeDisplayed = propsGenerator.pageRangeDisplayed, previousIcon = propsGenerator.previousIcon, previousIconFill = propsGenerator.previousIconFill, previousIconFillIcon = propsGenerator.previousIconFillIcon, previousIconFillSize = propsGenerator.previousIconFillSize, previousIconSize = propsGenerator.previousIconSize, sizeClass = propsGenerator.sizeClass;
|
|
264
264
|
var paginationStyles = useStyles(props).styles;
|