@itcase/ui 1.6.0 → 1.7.0
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/{Badge-ydSHGXSG.js → Badge-BE28NFES.js} +4 -4
- package/dist/{Badge-JXM0G_0I.js → Badge-C_6Iofu7.js} +4 -4
- package/dist/{Button-BmSyIDb_.js → Button-Df425Vot.js} +6 -6
- package/dist/{Button-DCtRrkgc.js → Button-sYpJIJPv.js} +6 -6
- package/dist/{Divider-D8hUUrwe.js → Divider-BQIfjvPR.js} +2 -2
- package/dist/{Divider-DhXzYcNF.js → Divider-CUFKsm-9.js} +2 -2
- package/dist/{DropdownItem-B2yfeMxS.js → DropdownItem-CdAS1E-G.js} +4 -4
- package/dist/{DropdownItem-Cr7XLcHZ.js → DropdownItem-f29l8dds.js} +4 -4
- package/dist/{Group-OkygpKiJ.js → Group-D5nvxHx0.js} +2 -2
- package/dist/{Group-BVlu5z77.js → Group-NYDjw1CD.js} +2 -2
- package/dist/{Icon-BOEOspTF.js → Icon-BzIdIgGY.js} +1 -1
- package/dist/{Icon-DU2T-nfY.js → Icon-dS-it4rs.js} +1 -1
- package/dist/{Input-e0kLrbs6.js → Input-C_HeI9UK.js} +2 -2
- package/dist/{Input-ChiH90mV.js → Input-v52BiIsb.js} +2 -2
- package/dist/{Label-CP8IAPOM.js → Label-DsNZ-asS.js} +4 -4
- package/dist/{Label-CfE08vBy.js → Label-brG78nLi.js} +4 -4
- package/dist/{Loader-CRN4MAbm.js → Loader-BnhUh-g6.js} +3 -3
- package/dist/{Loader-rzo8nnRI.js → Loader-CZVsMYl6.js} +3 -3
- package/dist/{Overlay-CRIofShk.js → Overlay-Be9UCtR9.js} +2 -2
- package/dist/{Overlay-CZFSerUl.js → Overlay-BoIJ-g58.js} +2 -2
- package/dist/{Text-CEcBg-F5.js → Text-DwIx33-P.js} +2 -2
- package/dist/{Text-CI2prtf6.js → Text-aaWArShm.js} +2 -2
- package/dist/{Title-CaXw1KBQ.js → Title--_epIXkC.js} +2 -2
- package/dist/{Title-C4xUtigh.js → Title-ByfOyy-n.js} +2 -2
- package/dist/{Tooltip-EOu0a93a.js → Tooltip-DP32J5V6.js} +4 -4
- package/dist/{Tooltip-Lhx-Fefx.js → Tooltip-hznDyLwa.js} +4 -4
- package/dist/cjs/components/Accordion.js +9 -9
- package/dist/cjs/components/Avatar.js +6 -6
- package/dist/cjs/components/Badge.js +5 -5
- package/dist/cjs/components/Breadcrumbs.js +4 -4
- package/dist/cjs/components/Button.js +6 -6
- package/dist/cjs/components/Cell.js +7 -7
- package/dist/cjs/components/Checkbox.js +3 -3
- package/dist/cjs/components/Checkmark.js +2 -2
- package/dist/cjs/components/Chips.js +6 -6
- package/dist/cjs/components/Choice.js +7 -7
- package/dist/cjs/components/Code.js +2 -2
- package/dist/cjs/components/CookiesWarning.js +7 -7
- package/dist/cjs/components/DadataHintField.js +1 -1
- package/dist/cjs/components/DatePicker.js +10 -10
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/HeroTitle.js +2 -2
- package/dist/cjs/components/Icon.js +4 -4
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputMask.js +2 -2
- package/dist/cjs/components/InputPassword.js +6 -6
- package/dist/cjs/components/Label.js +4 -4
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/Logo.js +2 -2
- package/dist/cjs/components/MenuItem.js +3 -3
- package/dist/cjs/components/Modal.js +6 -6
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Overlay.js +1 -1
- package/dist/cjs/components/Pagination.js +8 -8
- package/dist/cjs/components/Panel.js +4 -4
- package/dist/cjs/components/Radio.js +3 -3
- package/dist/cjs/components/Response.js +9 -9
- package/dist/cjs/components/Search.js +6 -6
- package/dist/cjs/components/Segmented.js +3 -3
- package/dist/cjs/components/Select.js +17 -12
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Switch.js +3 -3
- package/dist/cjs/components/Tab.js +8 -8
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Textarea.js +2 -2
- package/dist/cjs/components/Tile.js +7 -7
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +3 -3
- package/dist/components/Accordion.js +9 -9
- package/dist/components/Avatar.js +6 -6
- package/dist/components/Badge.js +5 -5
- package/dist/components/Breadcrumbs.js +4 -4
- package/dist/components/Button.js +6 -6
- package/dist/components/Cell.js +7 -7
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/Checkmark.js +2 -2
- package/dist/components/Chips.js +6 -6
- package/dist/components/Choice.js +7 -7
- package/dist/components/Code.js +2 -2
- package/dist/components/CookiesWarning.js +7 -7
- package/dist/components/DadataHintField.js +1 -1
- package/dist/components/DatePicker.js +10 -10
- package/dist/components/Divider.js +1 -1
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/Group.js +1 -1
- package/dist/components/HeroTitle.js +2 -2
- package/dist/components/Icon.js +4 -4
- package/dist/components/Input.js +1 -1
- package/dist/components/InputMask.js +2 -2
- package/dist/components/InputPassword.js +6 -6
- package/dist/components/Label.js +4 -4
- package/dist/components/Loader.js +2 -2
- package/dist/components/Logo.js +2 -2
- package/dist/components/MenuItem.js +3 -3
- package/dist/components/Modal.js +6 -6
- package/dist/components/Notification.js +1 -1
- package/dist/components/Overlay.js +1 -1
- package/dist/components/Pagination.js +8 -8
- package/dist/components/Panel.js +4 -4
- package/dist/components/Radio.js +3 -3
- package/dist/components/Response.js +9 -9
- package/dist/components/Search.js +6 -6
- package/dist/components/Segmented.js +3 -3
- package/dist/components/Select.js +17 -12
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Switch.js +3 -3
- package/dist/components/Tab.js +8 -8
- package/dist/components/Text.js +1 -1
- package/dist/components/Textarea.js +2 -2
- package/dist/components/Tile.js +7 -7
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +3 -3
- package/dist/types/components/Select/index.d.ts +15 -15
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var clsx = require('clsx');
|
|
5
5
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
6
6
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
7
|
-
var Text = require('../../Text-
|
|
7
|
+
var Text = require('../../Text-DwIx33-P.js');
|
|
8
8
|
var Notifications = require('../context/Notifications.js');
|
|
9
9
|
require('../context/UIContext.js');
|
|
10
10
|
require('../../tslib.es6-CCZ3TN_7.js');
|
|
@@ -7,9 +7,9 @@ var clsx = require('clsx');
|
|
|
7
7
|
var ceil = require('lodash/ceil');
|
|
8
8
|
var ReactPaginate = require('react-paginate');
|
|
9
9
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
|
-
var DropdownItem = require('../../DropdownItem-
|
|
11
|
-
var Icon = require('../../Icon-
|
|
12
|
-
var Text = require('../../Text-
|
|
10
|
+
var DropdownItem = require('../../DropdownItem-CdAS1E-G.js');
|
|
11
|
+
var Icon = require('../../Icon-dS-it4rs.js');
|
|
12
|
+
var Text = require('../../Text-DwIx33-P.js');
|
|
13
13
|
require('lodash/camelCase');
|
|
14
14
|
require('lodash/castArray');
|
|
15
15
|
require('lodash/upperFirst');
|
|
@@ -23,11 +23,11 @@ require('../utils/setViewportProperty.js');
|
|
|
23
23
|
require('../hooks/useStyles/useStyles.js');
|
|
24
24
|
require('lodash/maxBy');
|
|
25
25
|
require('../hooks/useStyles/styleAttributes.js');
|
|
26
|
-
require('../../Divider-
|
|
26
|
+
require('../../Divider-BQIfjvPR.js');
|
|
27
27
|
require('react-inlinesvg');
|
|
28
28
|
require('../../Link-UmzWKcxT.js');
|
|
29
|
-
require('../../Tooltip-
|
|
30
|
-
require('../../Title-
|
|
29
|
+
require('../../Tooltip-hznDyLwa.js');
|
|
30
|
+
require('../../Title-ByfOyy-n.js');
|
|
31
31
|
|
|
32
32
|
var paginationAppearance = {
|
|
33
33
|
default: {
|
|
@@ -128,9 +128,9 @@ function Pagination(props) {
|
|
|
128
128
|
}
|
|
129
129
|
return 0;
|
|
130
130
|
}, [pageNumber]);
|
|
131
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
131
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
132
132
|
var _a;
|
|
133
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
133
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = paginationConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
134
134
|
}, {});
|
|
135
135
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
136
136
|
var justifyContentClass = propsGenerator.justifyContentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, gapClass = propsGenerator.gapClass;
|
|
@@ -6,8 +6,8 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
-
var Group = require('../../Group-
|
|
10
|
-
var Text = require('../../Text-
|
|
9
|
+
var Group = require('../../Group-NYDjw1CD.js');
|
|
10
|
+
var Text = require('../../Text-DwIx33-P.js');
|
|
11
11
|
require('lodash/camelCase');
|
|
12
12
|
require('lodash/castArray');
|
|
13
13
|
require('lodash/upperFirst');
|
|
@@ -29,9 +29,9 @@ var panelConfig = {
|
|
|
29
29
|
};
|
|
30
30
|
var Panel = React.forwardRef(function Panel(props, ref) {
|
|
31
31
|
var className = props.className, appearance = props.appearance, title = props.title, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextWeight = props.titleTextWeight, desc = props.desc, descTextColor = props.descTextColor, descTextSize = props.descTextSize, descTextWeight = props.descTextWeight, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, htmlFor = props.htmlFor, verticalScroll = props.verticalScroll, set = props.set, children = props.children;
|
|
32
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
32
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
33
33
|
var _a;
|
|
34
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
34
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = panelConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
35
35
|
}, {});
|
|
36
36
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
37
37
|
var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, alignContentClass = propsGenerator.alignContentClass, alignItemsClass = propsGenerator.alignItemsClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, heightClass = propsGenerator.heightClass, positionClass = propsGenerator.positionClass, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
@@ -4,7 +4,7 @@ var tslib_es6 = require('../../tslib.es6-CCZ3TN_7.js');
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
|
-
var Text = require('../../Text-
|
|
7
|
+
var Text = require('../../Text-DwIx33-P.js');
|
|
8
8
|
require('react');
|
|
9
9
|
require('lodash/camelCase');
|
|
10
10
|
require('lodash/castArray');
|
|
@@ -51,9 +51,9 @@ var radioConfig = {
|
|
|
51
51
|
};
|
|
52
52
|
function Radio(props) {
|
|
53
53
|
var id = props.id, className = props.className, appearance = props.appearance, label = props.label, labelTextColor = props.labelTextColor, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, desc = props.desc, descTextColor = props.descTextColor, descTextSize = props.descTextSize, descTextWeight = props.descTextWeight, disabled = props.disabled, isDisabled = props.isDisabled, checked = props.checked, _a = props.tag, Tag = _a === void 0 ? 'label' : _a, onChange = props.onChange;
|
|
54
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
54
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
55
55
|
var _a;
|
|
56
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
56
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = radioConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
57
57
|
}, {});
|
|
58
58
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
59
59
|
var fillClass = propsGenerator.fillClass, _b = propsGenerator.shapeClass, shapeClass = _b === void 0 ? 'circular' : _b, stateBorderColorClass = propsGenerator.stateBorderColorClass, stateBorderWidthClass = propsGenerator.stateBorderWidthClass, stateCheckmarkFillClass = propsGenerator.stateCheckmarkFillClass, stateShapeClass = propsGenerator.stateShapeClass;
|
|
@@ -7,9 +7,9 @@ var clsx = require('clsx');
|
|
|
7
7
|
var SVG = require('react-inlinesvg');
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
9
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
10
|
-
var Button = require('../../Button-
|
|
11
|
-
var Group = require('../../Group-
|
|
12
|
-
var Text = require('../../Text-
|
|
10
|
+
var Button = require('../../Button-Df425Vot.js');
|
|
11
|
+
var Group = require('../../Group-NYDjw1CD.js');
|
|
12
|
+
var Text = require('../../Text-DwIx33-P.js');
|
|
13
13
|
require('lodash/camelCase');
|
|
14
14
|
require('lodash/castArray');
|
|
15
15
|
require('lodash/upperFirst');
|
|
@@ -22,11 +22,11 @@ require('react-responsive');
|
|
|
22
22
|
require('../utils/setViewportProperty.js');
|
|
23
23
|
require('lodash/maxBy');
|
|
24
24
|
require('../hooks/useStyles/styleAttributes.js');
|
|
25
|
-
require('../../Icon-
|
|
25
|
+
require('../../Icon-dS-it4rs.js');
|
|
26
26
|
require('../../Link-UmzWKcxT.js');
|
|
27
|
-
require('../../Tooltip-
|
|
28
|
-
require('../../Title-
|
|
29
|
-
require('../../Loader-
|
|
27
|
+
require('../../Tooltip-hznDyLwa.js');
|
|
28
|
+
require('../../Title-ByfOyy-n.js');
|
|
29
|
+
require('../../Loader-CZVsMYl6.js');
|
|
30
30
|
|
|
31
31
|
var img$6 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M93.2275 101.842H84.0659C83.8263 99.1898 83.976 96.839 84.515 94.7895C85.1138 92.74 86.2216 90.8111 87.8383 89.0027C89.515 87.1341 91.7904 85.2051 94.6647 83.2159C96.5808 81.8898 97.9581 80.5637 98.7964 79.2375C99.6946 77.9114 100.144 76.4345 100.144 74.807C100.144 72.2753 99.2156 70.1957 97.3593 68.5682C95.503 66.9406 93.0778 66.1269 90.0838 66.1269C87.3892 66.1269 84.7246 66.9105 82.0898 68.4777C79.4551 69.9847 77.0299 72.3959 74.8144 75.7112L67 67.9352C70.0539 64.0774 73.5868 61.1237 77.5988 59.0742C81.6707 57.0247 85.9521 56 90.4431 56C94.5749 56 98.2575 56.8439 101.491 58.5317C104.725 60.1592 107.269 62.3896 109.126 65.2227C111.042 67.9955 112 71.1601 112 74.7166C112 78.0922 111.042 81.1062 109.126 83.7584C107.269 86.4107 104.455 88.8821 100.683 91.1727C97.7485 92.8605 95.7725 94.4881 94.7545 96.0553C93.7365 97.6226 93.2275 99.5515 93.2275 101.842ZM96.1916 115.767C96.1916 117.756 95.4731 119.474 94.0359 120.92C92.5988 122.307 90.8323 123 88.7365 123C86.6407 123 84.8743 122.307 83.4371 120.92C82 119.474 81.2814 117.756 81.2814 115.767C81.2814 113.717 82 111.999 83.4371 110.613C84.8743 109.166 86.6407 108.443 88.7365 108.443C90.8323 108.443 92.5988 109.166 94.0359 110.613C95.4731 111.999 96.1916 113.717 96.1916 115.767Z' fill='%23747474'/%3e%3c/svg%3e";
|
|
32
32
|
|
|
@@ -231,9 +231,9 @@ var responseConfig = {
|
|
|
231
231
|
};
|
|
232
232
|
function Response(props) {
|
|
233
233
|
var className = props.className, appearance = props.appearance, width = props.width, height = props.height, title = props.title, desc = props.desc, primaryButton = props.primaryButton, secondaryButton = props.secondaryButton, onClickSecondaryButton = props.onClickSecondaryButton, before = props.before, after = props.after;
|
|
234
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
234
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
235
235
|
var _a;
|
|
236
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
236
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = responseConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
237
237
|
}, {});
|
|
238
238
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
239
239
|
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, descTextWeight = propsGenerator.descTextWeight, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textAlignClass = propsGenerator.textAlignClass, primaryButtonAfter = propsGenerator.primaryButtonAfter, primaryButtonAppearance = propsGenerator.primaryButtonAppearance, primaryButtonBefore = propsGenerator.primaryButtonBefore, primaryButtonFill = propsGenerator.primaryButtonFill, primaryButtonFillHover = propsGenerator.primaryButtonFillHover, primaryButtonLabel = propsGenerator.primaryButtonLabel, primaryButtonLabelTextColor = propsGenerator.primaryButtonLabelTextColor, primaryButtonLabelTextSize = propsGenerator.primaryButtonLabelTextSize, primaryButtonShape = propsGenerator.primaryButtonShape, primaryButtonSize = propsGenerator.primaryButtonSize, primaryButtonWidth = propsGenerator.primaryButtonWidth, secondaryButtonAfter = propsGenerator.secondaryButtonAfter, secondaryButtonAppearance = propsGenerator.secondaryButtonAppearance, secondaryButtonBefore = propsGenerator.secondaryButtonBefore, secondaryButtonFill = propsGenerator.secondaryButtonFill, secondaryButtonFillHover = propsGenerator.secondaryButtonFillHover, secondaryButtonLabel = propsGenerator.secondaryButtonLabel, secondaryButtonLabelTextColor = propsGenerator.secondaryButtonLabelTextColor, secondaryButtonLabelTextSize = propsGenerator.secondaryButtonLabelTextSize, secondaryButtonShape = propsGenerator.secondaryButtonShape, secondaryButtonSize = propsGenerator.secondaryButtonSize, secondaryButtonWidth = propsGenerator.secondaryButtonWidth, onClickPrimaryButton = propsGenerator.onClickPrimaryButton, dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, imageSrc = propsGenerator.imageSrc, shapeClass = propsGenerator.shapeClass, svgFillClass = propsGenerator.svgFillClass, SvgImage = propsGenerator.SvgImage, svgPathFillClass = propsGenerator.svgPathFillClass, svgSrc = propsGenerator.svgSrc;
|
|
@@ -6,8 +6,8 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
-
var Icon = require('../../Icon-
|
|
10
|
-
var Text = require('../../Text-
|
|
9
|
+
var Icon = require('../../Icon-dS-it4rs.js');
|
|
10
|
+
var Text = require('../../Text-DwIx33-P.js');
|
|
11
11
|
var Scrollbar = require('../../Scrollbar-DcKOfcNp.js');
|
|
12
12
|
require('lodash/camelCase');
|
|
13
13
|
require('lodash/castArray');
|
|
@@ -23,8 +23,8 @@ require('lodash/maxBy');
|
|
|
23
23
|
require('../hooks/useStyles/styleAttributes.js');
|
|
24
24
|
require('react-inlinesvg');
|
|
25
25
|
require('../../Link-UmzWKcxT.js');
|
|
26
|
-
require('../../Tooltip-
|
|
27
|
-
require('../../Title-
|
|
26
|
+
require('../../Tooltip-hznDyLwa.js');
|
|
27
|
+
require('../../Title-ByfOyy-n.js');
|
|
28
28
|
require('react-scrollbars-custom');
|
|
29
29
|
|
|
30
30
|
var searchAppearance = {
|
|
@@ -55,9 +55,9 @@ var SearchInput = React.forwardRef(function SearchInput(props, ref) {
|
|
|
55
55
|
onClickClean();
|
|
56
56
|
}
|
|
57
57
|
}, [onChange, onClickClean]);
|
|
58
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
58
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
59
59
|
var _a;
|
|
60
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
60
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = searchInputConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
61
61
|
}, {});
|
|
62
62
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
63
63
|
var fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderHoverClass = propsGenerator.borderHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, inputFillClass = propsGenerator.inputFillClass, inputShapeClass = propsGenerator.inputShapeClass, inputTextColorClass = propsGenerator.inputTextColorClass, _c = propsGenerator.inputTextSizeClass, inputTextSizeClass = _c === void 0 ? 'm' : _c, inputTextStyleClass = propsGenerator.inputTextStyleClass, inputTextWeightClass = propsGenerator.inputTextWeightClass, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass;
|
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
|
-
var Text = require('../../Text-
|
|
8
|
+
var Text = require('../../Text-DwIx33-P.js');
|
|
9
9
|
require('lodash/camelCase');
|
|
10
10
|
require('lodash/castArray');
|
|
11
11
|
require('lodash/upperFirst');
|
|
@@ -72,9 +72,9 @@ var Segmented = React.forwardRef(function (props) {
|
|
|
72
72
|
// controlRef.current.style.setProperty('--segmented-active-x-pos', `${offsetLeft - 2}px`)
|
|
73
73
|
(_b = controlRef.current) === null || _b === void 0 ? void 0 : _b.style.setProperty('--segmented-active-x-pos', "".concat(offsetLeft, "px"));
|
|
74
74
|
}, [activeSegment, segmentsRefs]);
|
|
75
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
75
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
76
76
|
var _a;
|
|
77
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
77
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = segmentedConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
78
78
|
}, {});
|
|
79
79
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
80
80
|
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWrap = propsGenerator.labelTextWrap, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, indicatorFillClass = propsGenerator.indicatorFillClass, inputBorderColorClass = propsGenerator.inputBorderColorClass, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass;
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var tslib_es6 = require('../../tslib.es6-CCZ3TN_7.js');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var Select = require('react-select');
|
|
6
|
-
var Icon = require('../../Icon-
|
|
6
|
+
var Icon = require('../../Icon-dS-it4rs.js');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var clsx = require('clsx');
|
|
9
9
|
var CreatableSelect = require('react-select/creatable');
|
|
10
10
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
11
|
-
var Text = require('../../Text-
|
|
12
|
-
var Badge = require('../../Badge-
|
|
13
|
-
var Group = require('../../Group-
|
|
14
|
-
var Divider = require('../../Divider-
|
|
11
|
+
var Text = require('../../Text-DwIx33-P.js');
|
|
12
|
+
var Badge = require('../../Badge-C_6Iofu7.js');
|
|
13
|
+
var Group = require('../../Group-NYDjw1CD.js');
|
|
14
|
+
var Divider = require('../../Divider-BQIfjvPR.js');
|
|
15
15
|
require('react-inlinesvg');
|
|
16
16
|
require('../hooks/useStyles/useStyles.js');
|
|
17
17
|
require('lodash/camelCase');
|
|
@@ -26,8 +26,8 @@ require('react-responsive');
|
|
|
26
26
|
require('../utils/setViewportProperty.js');
|
|
27
27
|
require('../hooks/useStyles/styleAttributes.js');
|
|
28
28
|
require('../../Link-UmzWKcxT.js');
|
|
29
|
-
require('../../Tooltip-
|
|
30
|
-
require('../../Title-
|
|
29
|
+
require('../../Tooltip-hznDyLwa.js');
|
|
30
|
+
require('../../Title-ByfOyy-n.js');
|
|
31
31
|
require('lodash/castArray');
|
|
32
32
|
|
|
33
33
|
// interface ClearIndicatorProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>>
|
|
@@ -159,7 +159,7 @@ var selectConfig = {
|
|
|
159
159
|
},
|
|
160
160
|
};
|
|
161
161
|
var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
162
|
-
var className = props.className,
|
|
162
|
+
var className = props.className, _a = props.appearance, appearance = _a === void 0 ? '' : _a, width = props.width, minWidth = props.minWidth, initialValue = props.initialValue, isDisabled = props.isDisabled, badgeAppearance = props.badgeAppearance, badgeSize = props.badgeSize, clearIcon = props.clearIcon, defaultValue = props.defaultValue, dividerDirection = props.dividerDirection, dividerSize = props.dividerSize, dropdownIcon = props.dropdownIcon, filterOption = props.filterOption, hideSelectedOptions = props.hideSelectedOptions, hideValueContainer = props.hideValueContainer, inputAfter = props.inputAfter, inputBefore = props.inputBefore, instanceId = props.instanceId, loadingMessage = props.loadingMessage, menuAfter = props.menuAfter, menuBefore = props.menuBefore, menuIsOpen = props.menuIsOpen, menuItemSize = props.menuItemSize, noOptionsSearchText = props.noOptionsSearchText, noOptionsText = props.noOptionsText, optionAfter = props.optionAfter, optionBefore = props.optionBefore, options = props.options, optionSelected = props.optionSelected, placeholder = props.placeholder, showBadge = props.showBadge, showDivider = props.showDivider, value = props.value, before = props.before, after = props.after, openMenuOnClick = props.openMenuOnClick, closeMenuOnSelect = props.closeMenuOnSelect, isClearable = props.isClearable, isCreatable = props.isCreatable, isLoading = props.isLoading, isMulti = props.isMulti, isSearchable = props.isSearchable, set = props.set, onChange = props.onChange, onInputChange = props.onInputChange;
|
|
163
163
|
var defaultRef = React.useRef(null);
|
|
164
164
|
var selectRef = ref || defaultRef;
|
|
165
165
|
// React-select wait function as "loadingMessage" property
|
|
@@ -209,10 +209,15 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
|
209
209
|
},
|
|
210
210
|
});
|
|
211
211
|
}, [minWidth, width]);
|
|
212
|
-
var appearanceConfig =
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
212
|
+
var appearanceConfig = React.useMemo(function () {
|
|
213
|
+
if (appearance) {
|
|
214
|
+
return appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
215
|
+
var _a;
|
|
216
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = selectConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
217
|
+
}, {});
|
|
218
|
+
}
|
|
219
|
+
return {};
|
|
220
|
+
}, [appearance]);
|
|
216
221
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
217
222
|
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, elevation = propsGenerator.elevation, badgeTextSize = propsGenerator.badgeTextSize, clearIconFill = propsGenerator.clearIconFill, dividerFill = propsGenerator.dividerFill, dropdownFillHover = propsGenerator.dropdownFillHover, dropdownIconFill = propsGenerator.dropdownIconFill, dropdownIconShape = propsGenerator.dropdownIconShape, headingFillClass = propsGenerator.headingFillClass, headingFillHoverClass = propsGenerator.headingFillHoverClass, headingTextColorClass = propsGenerator.headingTextColorClass, headingTextSizeClass = propsGenerator.headingTextSizeClass, headingTextWeightClass = propsGenerator.headingTextWeightClass, inputBorderColorClass = propsGenerator.inputBorderColorClass, inputBorderColorHoverClass = propsGenerator.inputBorderColorHoverClass, inputCaretColorClass = propsGenerator.inputCaretColorClass, inputFillClass = propsGenerator.inputFillClass, inputShapeClass = propsGenerator.inputShapeClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, multipleItemFill = propsGenerator.multipleItemFill, multipleItemFillHover = propsGenerator.multipleItemFillHover, multipleItemIcon = propsGenerator.multipleItemIcon, multipleItemIconFill = propsGenerator.multipleItemIconFill, multipleItemTextColorClass = propsGenerator.multipleItemTextColorClass, multipleItemTextSizeClass = propsGenerator.multipleItemTextSizeClass, noOptionsTextColorClass = propsGenerator.noOptionsTextColorClass, noOptionsTextSizeClass = propsGenerator.noOptionsTextSizeClass, optionBorderClass = propsGenerator.optionBorderClass, optionBorderTypeClass = propsGenerator.optionBorderTypeClass, optionFillClass = propsGenerator.optionFillClass, optionFillHoverClass = propsGenerator.optionFillHoverClass, optionShapeClass = propsGenerator.optionShapeClass, optionTextColorClass = propsGenerator.optionTextColorClass, optionTextSizeClass = propsGenerator.optionTextSizeClass, placeholderTextColor = propsGenerator.placeholderTextColor, placeholderTextSize = propsGenerator.placeholderTextSize, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass;
|
|
218
223
|
return (jsxRuntime.jsx(SelectComponent, { className: clsx(className, 'select', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "select_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), sizeClass && "select_size_".concat(sizeClass), hideValueContainer && 'select_state_hide-value-container', set && "select_set_".concat(set)), elevation: elevation, isDisabled: isDisabled, badgeAppearance: badgeAppearance, badgeSize: badgeSize, badgeTextSize: badgeTextSize, classNamePrefix: "select", clearIcon: clearIcon, clearIconFill: clearIconFill, components: {
|
|
@@ -6,7 +6,7 @@ var clsx = require('clsx');
|
|
|
6
6
|
var react = require('swiper/react');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
-
var Title = require('../../Title-
|
|
9
|
+
var Title = require('../../Title-ByfOyy-n.js');
|
|
10
10
|
require('../../tslib.es6-CCZ3TN_7.js');
|
|
11
11
|
require('lodash/camelCase');
|
|
12
12
|
require('lodash/castArray');
|
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
|
-
var Text = require('../../Text-
|
|
8
|
+
var Text = require('../../Text-DwIx33-P.js');
|
|
9
9
|
require('lodash/camelCase');
|
|
10
10
|
require('lodash/castArray');
|
|
11
11
|
require('lodash/upperFirst');
|
|
@@ -32,9 +32,9 @@ var switchConfig = {
|
|
|
32
32
|
};
|
|
33
33
|
var Switch = React.forwardRef(function Switch(props, ref) {
|
|
34
34
|
var id = props.id, className = props.className, appearance = props.appearance, _a = props.align, align = _a === void 0 ? 'left' : _a, size = props.size, title = props.title, desc = props.desc, disabled = props.disabled, checked = props.checked, onChange = props.onChange;
|
|
35
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
35
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
36
36
|
var _a;
|
|
37
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
37
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = segmentedConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
38
38
|
}, {});
|
|
39
39
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
40
40
|
var titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize;
|
|
@@ -6,10 +6,10 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
-
var Badge = require('../../Badge-
|
|
10
|
-
var Divider = require('../../Divider-
|
|
9
|
+
var Badge = require('../../Badge-C_6Iofu7.js');
|
|
10
|
+
var Divider = require('../../Divider-BQIfjvPR.js');
|
|
11
11
|
var Link = require('../../Link-UmzWKcxT.js');
|
|
12
|
-
var Text = require('../../Text-
|
|
12
|
+
var Text = require('../../Text-DwIx33-P.js');
|
|
13
13
|
require('lodash/camelCase');
|
|
14
14
|
require('lodash/castArray');
|
|
15
15
|
require('lodash/upperFirst');
|
|
@@ -22,10 +22,10 @@ require('react-responsive');
|
|
|
22
22
|
require('../utils/setViewportProperty.js');
|
|
23
23
|
require('lodash/maxBy');
|
|
24
24
|
require('../hooks/useStyles/styleAttributes.js');
|
|
25
|
-
require('../../Icon-
|
|
25
|
+
require('../../Icon-dS-it4rs.js');
|
|
26
26
|
require('react-inlinesvg');
|
|
27
|
-
require('../../Tooltip-
|
|
28
|
-
require('../../Title-
|
|
27
|
+
require('../../Tooltip-hznDyLwa.js');
|
|
28
|
+
require('../../Title-ByfOyy-n.js');
|
|
29
29
|
|
|
30
30
|
var tabAppearance = {
|
|
31
31
|
accent: {
|
|
@@ -134,9 +134,9 @@ var tabConfig = {
|
|
|
134
134
|
};
|
|
135
135
|
function Tab(props) {
|
|
136
136
|
var className = props.className, appearance = props.appearance, label = props.label, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, badgeValue = props.badgeValue, dataTour = props.dataTour, href = props.href, link = props.link, rel = props.rel, reset = props.reset, target = props.target, before = props.before, after = props.after, _b = props.isActive, isActive = _b === void 0 ? false : _b, _c = props.isHover, isHover = _c === void 0 ? false : _c, set = props.set, onClick = props.onClick, onMouseEnter = props.onMouseEnter, children = props.children;
|
|
137
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
137
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
138
138
|
var _a;
|
|
139
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
139
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = tabConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
140
140
|
}, {});
|
|
141
141
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
142
142
|
var justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, labelColor = propsGenerator.labelColor, labelColorActive = propsGenerator.labelColorActive, labelColorDisabled = propsGenerator.labelColorDisabled, labelTextAlign = propsGenerator.labelTextAlign, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextGradient = propsGenerator.labelTextGradient, labelTextSize = propsGenerator.labelTextSize, labelTextStyle = propsGenerator.labelTextStyle, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, dividerFillDisabled = propsGenerator.dividerFillDisabled, badgeAppearance = propsGenerator.badgeAppearance, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, dividerDirection = propsGenerator.dividerDirection, dividerFill = propsGenerator.dividerFill, dividerFillActive = propsGenerator.dividerFillActive, dividerFillActiveHover = propsGenerator.dividerFillActiveHover, dividerFillHover = propsGenerator.dividerFillHover, dividerSize = propsGenerator.dividerSize, linkFill = propsGenerator.linkFill, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass;
|
|
@@ -89,9 +89,9 @@ function Textarea(props) {
|
|
|
89
89
|
// () => state && textareaConfig.state && textareaConfig.state[state],
|
|
90
90
|
// [state, textareaConfig],
|
|
91
91
|
// )
|
|
92
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
92
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
93
93
|
var _a;
|
|
94
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
94
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = textareaConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
95
95
|
}, {});
|
|
96
96
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
97
97
|
var fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderHoverClass = propsGenerator.borderHoverClass, textColorClass = propsGenerator.textColorClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, _a = propsGenerator.sizeClass, sizeClass = _a === void 0 ? 'm' : _a, widthClass = propsGenerator.widthClass;
|
|
@@ -5,9 +5,9 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
8
|
-
var Badge = require('../../Badge-
|
|
9
|
-
var Text = require('../../Text-
|
|
10
|
-
var Title = require('../../Title-
|
|
8
|
+
var Badge = require('../../Badge-C_6Iofu7.js');
|
|
9
|
+
var Text = require('../../Text-DwIx33-P.js');
|
|
10
|
+
var Title = require('../../Title-ByfOyy-n.js');
|
|
11
11
|
require('react');
|
|
12
12
|
require('lodash/camelCase');
|
|
13
13
|
require('lodash/castArray');
|
|
@@ -21,10 +21,10 @@ require('react-responsive');
|
|
|
21
21
|
require('../utils/setViewportProperty.js');
|
|
22
22
|
require('lodash/maxBy');
|
|
23
23
|
require('../hooks/useStyles/styleAttributes.js');
|
|
24
|
-
require('../../Icon-
|
|
24
|
+
require('../../Icon-dS-it4rs.js');
|
|
25
25
|
require('react-inlinesvg');
|
|
26
26
|
require('../../Link-UmzWKcxT.js');
|
|
27
|
-
require('../../Tooltip-
|
|
27
|
+
require('../../Tooltip-hznDyLwa.js');
|
|
28
28
|
|
|
29
29
|
var tileAppearance = {
|
|
30
30
|
dev: {},
|
|
@@ -38,9 +38,9 @@ var tileConfig = {
|
|
|
38
38
|
};
|
|
39
39
|
function Tile(props) {
|
|
40
40
|
var className = props.className, type = props.type, appearance = props.appearance, direction = props.direction, size = props.size, title = props.title, text = props.text, badge = props.badge, badgeAppearance = props.badgeAppearance, reverse = props.reverse, before = props.before, after = props.after, onClick = props.onClick, children = props.children;
|
|
41
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
41
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
42
42
|
var _a;
|
|
43
|
-
return (tslib_es6.__assign(tslib_es6.__assign({},
|
|
43
|
+
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = tileConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
44
44
|
}, {});
|
|
45
45
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
46
46
|
var alignClass = propsGenerator.alignClass, _a = propsGenerator.alignDirectionClass, alignDirectionClass = _a === void 0 ? 'vertical' : _a, fillClass = propsGenerator.fillClass, titleTextAlign = propsGenerator.titleTextAlign, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, titleTextWrap = propsGenerator.titleTextWrap, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textColor = propsGenerator.textColor, textSize = propsGenerator.textSize, textWrap = propsGenerator.textWrap, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, shapeClass = propsGenerator.shapeClass;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Tooltip = require('../../Tooltip-
|
|
3
|
+
var Tooltip = require('../../Tooltip-hznDyLwa.js');
|
|
4
4
|
require('../../tslib.es6-CCZ3TN_7.js');
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
@@ -19,8 +19,8 @@ require('../utils/setViewportProperty.js');
|
|
|
19
19
|
require('../hooks/useStyles/useStyles.js');
|
|
20
20
|
require('lodash/maxBy');
|
|
21
21
|
require('../hooks/useStyles/styleAttributes.js');
|
|
22
|
-
require('../../Text-
|
|
23
|
-
require('../../Title-
|
|
22
|
+
require('../../Text-DwIx33-P.js');
|
|
23
|
+
require('../../Title-ByfOyy-n.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -6,9 +6,9 @@ import castArray from 'lodash/castArray';
|
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
8
|
import { icon16 } from '@itcase/icons/default';
|
|
9
|
-
import { D as Divider } from '../Divider-
|
|
10
|
-
import { I as Icon } from '../Icon-
|
|
11
|
-
import { T as Text } from '../Text-
|
|
9
|
+
import { D as Divider } from '../Divider-CUFKsm-9.js';
|
|
10
|
+
import { I as Icon } from '../Icon-BzIdIgGY.js';
|
|
11
|
+
import { T as Text } from '../Text-aaWArShm.js';
|
|
12
12
|
import 'lodash/camelCase';
|
|
13
13
|
import 'lodash/upperFirst';
|
|
14
14
|
import '../context/Notifications.js';
|
|
@@ -22,8 +22,8 @@ import 'lodash/maxBy';
|
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
24
|
import '../Link-aBsZ1d0Q.js';
|
|
25
|
-
import '../Tooltip-
|
|
26
|
-
import '../Title
|
|
25
|
+
import '../Tooltip-DP32J5V6.js';
|
|
26
|
+
import '../Title--_epIXkC.js';
|
|
27
27
|
|
|
28
28
|
var accordionAppearance = {
|
|
29
29
|
dev: {},
|
|
@@ -50,9 +50,9 @@ function AccordionItem(props) {
|
|
|
50
50
|
};
|
|
51
51
|
onClick && onClick(thisItemData);
|
|
52
52
|
}, [id, title, content, isExpanded, onClick]);
|
|
53
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
53
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
54
54
|
var _a;
|
|
55
|
-
return (__assign(__assign({},
|
|
55
|
+
return (__assign(__assign({}, resultConfig), (_a = accordionItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
56
56
|
}, {});
|
|
57
57
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
58
58
|
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, titleBorderColorClass = propsGenerator.titleBorderColorClass, titleFillClass = propsGenerator.titleFillClass, titleFillHoverClass = propsGenerator.titleFillHoverClass, borderColorClass = propsGenerator.borderColorClass, contentBorderColorClass = propsGenerator.contentBorderColorClass, contentFillClass = propsGenerator.contentFillClass, contentFillHoverClass = propsGenerator.contentFillHoverClass, shapeClass = propsGenerator.shapeClass;
|
|
@@ -116,9 +116,9 @@ function Accordion(props) {
|
|
|
116
116
|
}
|
|
117
117
|
return [];
|
|
118
118
|
}, [children, items, expandedItems, onClickAccordionItem]);
|
|
119
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
119
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
120
120
|
var _a;
|
|
121
|
-
return (__assign(__assign({},
|
|
121
|
+
return (__assign(__assign({}, resultConfig), (_a = accordionConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
122
122
|
}, {});
|
|
123
123
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
124
124
|
var directionClass = propsGenerator.directionClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass;
|
|
@@ -3,9 +3,9 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { I as Icon } from '../Icon-
|
|
6
|
+
import { I as Icon } from '../Icon-BzIdIgGY.js';
|
|
7
7
|
import { I as Image } from '../Image-CSzHhlA1.js';
|
|
8
|
-
import { T as Text } from '../Text-
|
|
8
|
+
import { T as Text } from '../Text-aaWArShm.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
11
11
|
import 'lodash/upperFirst';
|
|
@@ -21,8 +21,8 @@ import '../hooks/useStyles/useStyles.js';
|
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
23
|
import '../Link-aBsZ1d0Q.js';
|
|
24
|
-
import '../Tooltip-
|
|
25
|
-
import '../Title
|
|
24
|
+
import '../Tooltip-DP32J5V6.js';
|
|
25
|
+
import '../Title--_epIXkC.js';
|
|
26
26
|
|
|
27
27
|
var avatarAppearance = {
|
|
28
28
|
dev: {},
|
|
@@ -41,9 +41,9 @@ function Avatar(props) {
|
|
|
41
41
|
var secondChar = ((secondName === null || secondName === void 0 ? void 0 : secondName[0]) || '').toUpperCase();
|
|
42
42
|
return "".concat(firstChar).concat(secondChar);
|
|
43
43
|
}, [firstName, secondName]);
|
|
44
|
-
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (
|
|
44
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
45
45
|
var _a;
|
|
46
|
-
return (__assign(__assign({},
|
|
46
|
+
return (__assign(__assign({}, resultConfig), (_a = avatarConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
47
47
|
}, {});
|
|
48
48
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
49
49
|
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, _d = propsGenerator.textColor, textColor = _d === void 0 ? 'surfaceTextTertiary' : _d, _e = propsGenerator.textSize, textSize = _e === void 0 ? 'l' : _e, _f = propsGenerator.textWeight, textWeight = _f === void 0 ? '600' : _f, iconFill = propsGenerator.iconFill, iconFillHover = propsGenerator.iconFillHover, iconFillSize = propsGenerator.iconFillSize, iconItemFill = propsGenerator.iconItemFill, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, shapeClass = propsGenerator.shapeClass;
|
package/dist/components/Badge.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Badge, b as badgeAppearance, a as badgeConfig } from '../Badge-
|
|
1
|
+
export { B as Badge, b as badgeAppearance, a as badgeConfig } from '../Badge-BE28NFES.js';
|
|
2
2
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'clsx';
|
|
@@ -17,9 +17,9 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
import '../hooks/useStyles/useStyles.js';
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../Icon-
|
|
20
|
+
import '../Icon-BzIdIgGY.js';
|
|
21
21
|
import 'react-inlinesvg';
|
|
22
22
|
import '../Link-aBsZ1d0Q.js';
|
|
23
|
-
import '../Tooltip-
|
|
24
|
-
import '../Text-
|
|
25
|
-
import '../Title
|
|
23
|
+
import '../Tooltip-DP32J5V6.js';
|
|
24
|
+
import '../Text-aaWArShm.js';
|
|
25
|
+
import '../Title--_epIXkC.js';
|
|
@@ -5,9 +5,9 @@ import clsx from 'clsx';
|
|
|
5
5
|
import camelCase from 'lodash/camelCase';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { I as Icon } from '../Icon-
|
|
8
|
+
import { I as Icon } from '../Icon-BzIdIgGY.js';
|
|
9
9
|
import { a as LinkWrapper } from '../Link-aBsZ1d0Q.js';
|
|
10
|
-
import { T as Text } from '../Text-
|
|
10
|
+
import { T as Text } from '../Text-aaWArShm.js';
|
|
11
11
|
import 'lodash/castArray';
|
|
12
12
|
import 'lodash/upperFirst';
|
|
13
13
|
import '../context/Notifications.js';
|
|
@@ -20,8 +20,8 @@ import '../utils/setViewportProperty.js';
|
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
|
-
import '../Tooltip-
|
|
24
|
-
import '../Title
|
|
23
|
+
import '../Tooltip-DP32J5V6.js';
|
|
24
|
+
import '../Title--_epIXkC.js';
|
|
25
25
|
|
|
26
26
|
function BreadcrumbsItem(props) {
|
|
27
27
|
var className = props.className, text = props.text, textColor = props.textColor, textColorHover = props.textColorHover, textSize = props.textSize, cursor = props.cursor, href = props.href, iconAfter = props.iconAfter, iconAfterBgFill = props.iconAfterBgFill, iconAfterFill = props.iconAfterFill, iconAfterSize = props.iconAfterSize, _a = props.set, set = _a === void 0 ? 'default' : _a, onClick = props.onClick, children = props.children;
|