@itcase/ui 1.8.43 → 1.8.45
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_BbeDJ-No.js → Avatar_cjs_Bp8wjwGw.js} +8 -10
- package/dist/{Avatar_es_B1Ao9Im_.js → Avatar_es_BIKf0hNV.js} +7 -9
- package/dist/{Button_cjs_Bzx1GdT5.js → Button_cjs_Chn18eOU.js} +104 -10
- package/dist/{Button_es_DhCLxWhq.js → Button_es_XnWb2XF3.js} +103 -9
- package/dist/{ChipsGroup_cjs_p99H-9a8.js → ChipsGroup_cjs_Deoz_rju.js} +9 -9
- package/dist/{ChipsGroup_es_CWq3TR_1.js → ChipsGroup_es_C1Qi_5A1.js} +8 -8
- package/dist/{DatePicker_cjs_Cq8vqj3E.js → DatePicker_cjs_B24qHiks.js} +13 -16
- package/dist/{DatePicker_es_DYs71cnU.js → DatePicker_es_BuC8mEcK.js} +10 -13
- package/dist/{Divider_cjs_BmCJj3TN.js → Divider_cjs_rxMMBfLC.js} +3 -5
- package/dist/{Divider_es_kY-30pft.js → Divider_es_CiRU0sTz.js} +3 -5
- package/dist/{DropdownItem_cjs_B1gGciTB.js → DropdownItem_cjs_DuqySfbd.js} +6 -8
- package/dist/{DropdownItem_es_JVT4f6Nb.js → DropdownItem_es_BBxfR35q.js} +5 -7
- package/dist/{Group_cjs_Cwt0gWk4.js → Group_cjs_CDLfU5D2.js} +5 -8
- package/dist/{Group_es_CYW2Hquh.js → Group_es_DSZxyI1e.js} +5 -8
- package/dist/{Tooltip_cjs_BBwH8sjA.js → Icon_cjs_DRZih-pc.js} +588 -599
- package/dist/{Tooltip_es_Y2aoFQW7.js → Icon_es_k9bHSLyL.js} +588 -599
- package/dist/{Input_cjs_CPmXkQGd.js → Input_cjs_BGLd0EQu.js} +3 -5
- package/dist/{Input_es_D9Y1Rj5Y.js → Input_es_D2mNCqiH.js} +3 -5
- package/dist/{Label_cjs_Mb8j2bLu.js → Label_cjs_D70CHJDE.js} +6 -8
- package/dist/{Label_es_CIDBUVgO.js → Label_es_HXrap3A4.js} +5 -7
- package/dist/{Link_cjs_DbRGq2Yk.js → Link_cjs_BqT6eVl6.js} +2 -4
- package/dist/{Link_es_DxtZLeKY.js → Link_es_BnUIX0QT.js} +2 -4
- package/dist/{Loader_cjs_Ca4i0sER.js → Loader_cjs_BShrE-Nb.js} +5 -7
- package/dist/{Loader_es_GYOr0UTX.js → Loader_es_BDb87cdb.js} +5 -7
- package/dist/{Overlay_cjs_CFOtnzDU.js → Overlay_cjs_BMrkRg7M.js} +3 -5
- package/dist/{Overlay_es_DczPjVL9.js → Overlay_es_D_izIIUB.js} +3 -5
- package/dist/{Text_cjs_C9fOm0nd.js → Text_cjs_BlNeIm_v.js} +5 -7
- package/dist/{Text_es_BfLRfj-5.js → Text_es_Ffjr5J1k.js} +5 -7
- package/dist/cjs/components/Accordion.js +7 -9
- package/dist/cjs/components/Avatar.js +9 -8
- package/dist/cjs/components/AvatarStack.js +8 -10
- package/dist/cjs/components/Badge.js +11 -10
- package/dist/cjs/components/Breadcrumbs.js +6 -8
- package/dist/cjs/components/Button.js +11 -10
- package/dist/cjs/components/Cell.js +8 -10
- package/dist/cjs/components/Checkbox.js +4 -6
- package/dist/cjs/components/Checkmark.js +3 -5
- package/dist/cjs/components/Chips.js +4 -4
- package/dist/cjs/components/Choice.js +9 -11
- package/dist/cjs/components/Code.js +3 -5
- package/dist/cjs/components/CookiesWarning.js +12 -14
- package/dist/cjs/components/Dadata.js +2 -1
- package/dist/cjs/components/DatePeriod.js +12 -15
- package/dist/cjs/components/DatePicker.js +9 -8
- package/dist/cjs/components/Divider.js +4 -3
- package/dist/cjs/components/Drawer.js +13 -15
- package/dist/cjs/components/Dropdown.js +6 -5
- package/dist/cjs/components/Group.js +3 -2
- package/dist/cjs/components/HeroTitle.js +7 -9
- package/dist/cjs/components/Icon.js +11 -10
- package/dist/cjs/components/Input.js +3 -2
- package/dist/cjs/components/InputPassword.js +9 -11
- package/dist/cjs/components/Label.js +6 -5
- package/dist/cjs/components/Link.js +2 -1
- package/dist/cjs/components/List.js +4 -6
- package/dist/cjs/components/Loader.js +5 -4
- package/dist/cjs/components/Logo.js +4 -6
- package/dist/cjs/components/MenuItem.js +31 -10
- package/dist/cjs/components/Modal.js +10 -12
- package/dist/cjs/components/Notification.js +7 -9
- package/dist/cjs/components/Overlay.js +4 -3
- package/dist/cjs/components/Pagination.js +10 -12
- package/dist/cjs/components/Radio.js +4 -6
- package/dist/cjs/components/Response.js +8 -10
- package/dist/cjs/components/Search.js +7 -9
- package/dist/cjs/components/Segmented.js +12 -14
- package/dist/cjs/components/Select.js +15 -22
- package/dist/cjs/components/Swiper.js +5 -4
- package/dist/cjs/components/Switch.js +4 -6
- package/dist/cjs/components/Tab.js +8 -10
- package/dist/cjs/components/Text.js +4 -3
- package/dist/cjs/components/Textarea.js +3 -5
- package/dist/cjs/components/Tile.js +7 -9
- package/dist/cjs/components/Title.js +11 -10
- package/dist/cjs/components/Tooltip.js +11 -10
- package/dist/cjs/components/Warning.js +168 -0
- package/dist/cjs/hooks/useAppearanceConfig/useAppearanceConfig.js +4 -6
- package/dist/components/Accordion.js +6 -8
- package/dist/components/Avatar.js +9 -8
- package/dist/components/AvatarStack.js +8 -10
- package/dist/components/Badge.js +8 -7
- package/dist/components/Breadcrumbs.js +5 -7
- package/dist/components/Button.js +11 -10
- package/dist/components/Cell.js +7 -9
- package/dist/components/Checkbox.js +4 -6
- package/dist/components/Checkmark.js +3 -5
- package/dist/components/Chips.js +4 -4
- package/dist/components/Choice.js +7 -9
- package/dist/components/Code.js +3 -5
- package/dist/components/CookiesWarning.js +12 -14
- package/dist/components/Dadata.js +2 -1
- package/dist/components/DatePeriod.js +12 -15
- package/dist/components/DatePicker.js +9 -8
- package/dist/components/Divider.js +4 -3
- package/dist/components/Drawer.js +12 -14
- package/dist/components/Dropdown.js +6 -5
- package/dist/components/Group.js +3 -2
- package/dist/components/HeroTitle.js +6 -8
- package/dist/components/Icon.js +8 -7
- package/dist/components/Input.js +3 -2
- package/dist/components/InputPassword.js +8 -10
- package/dist/components/Label.js +6 -5
- package/dist/components/Link.js +2 -1
- package/dist/components/List.js +4 -6
- package/dist/components/Loader.js +5 -4
- package/dist/components/Logo.js +4 -6
- package/dist/components/MenuItem.js +29 -8
- package/dist/components/Modal.js +9 -11
- package/dist/components/Notification.js +6 -8
- package/dist/components/Overlay.js +4 -3
- package/dist/components/Pagination.js +8 -10
- package/dist/components/Radio.js +4 -6
- package/dist/components/Response.js +8 -10
- package/dist/components/Search.js +5 -7
- package/dist/components/Segmented.js +10 -12
- package/dist/components/Select.js +11 -18
- package/dist/components/Swiper.js +4 -3
- package/dist/components/Switch.js +4 -6
- package/dist/components/Tab.js +7 -9
- package/dist/components/Text.js +4 -3
- package/dist/components/Textarea.js +3 -5
- package/dist/components/Tile.js +6 -8
- package/dist/components/Title.js +8 -7
- package/dist/components/Tooltip.js +8 -7
- package/dist/components/Warning.js +164 -0
- package/dist/css/components/MenuItem/MenuItem.css +2 -2
- package/dist/css/components/Warning/Warning.css +52 -0
- package/dist/hooks/useAppearanceConfig/useAppearanceConfig.js +4 -6
- package/dist/stories/Overview.mdx +6 -6
- package/dist/stories/Playground.mdx +5 -5
- package/dist/types/components/Button/appearance/buttonAccent.d.ts +11 -0
- package/dist/types/components/Button/appearance/buttonDanger.d.ts +11 -0
- package/dist/types/components/Button/appearance/buttonError.d.ts +11 -0
- package/dist/types/components/Button/appearance/buttonInfo.d.ts +11 -0
- package/dist/types/components/Button/appearance/buttonPrimary.d.ts +10 -0
- package/dist/types/components/Button/appearance/buttonSecondary.d.ts +10 -0
- package/dist/types/components/Button/appearance/buttonSuccess.d.ts +11 -0
- package/dist/types/components/Button/appearance/buttonSurface.d.ts +10 -0
- package/dist/types/components/Button/appearance/buttonWarning.d.ts +11 -0
- package/dist/types/components/CookiesWarning/CookiesWarning.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemAccent.d.ts +8 -0
- package/dist/types/components/MenuItem/appearance/menuItemError.d.ts +7 -0
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +8 -0
- package/dist/types/components/Warning/Warning.appearance.d.ts +101 -0
- package/dist/types/components/Warning/Warning.d.ts +4 -0
- package/dist/types/components/Warning/Warning.interface.d.ts +41 -0
- package/dist/types/components/Warning/appearance/warningAccent.d.ts +23 -0
- package/dist/types/components/Warning/appearance/warningError.d.ts +23 -0
- package/dist/types/components/Warning/appearance/warningInfo.d.ts +23 -0
- package/dist/types/components/Warning/appearance/warningSize.d.ts +11 -0
- package/dist/types/components/Warning/appearance/warningStyle.d.ts +14 -0
- package/dist/types/components/Warning/appearance/warningWarning.d.ts +23 -0
- package/dist/types/components/Warning/index.d.ts +2 -0
- package/dist/types/hooks/useAppearanceConfig/useAppearanceConfig.d.ts +1 -3
- package/package.json +3 -3
package/dist/components/Logo.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
1
|
import { jsx } from 'react/jsx-runtime';
|
|
3
2
|
import clsx from 'clsx';
|
|
4
3
|
import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
|
|
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_BnUIX0QT.js';
|
|
8
|
+
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
8
9
|
import 'react';
|
|
9
10
|
import '@itcase/common';
|
|
10
11
|
import '../context/UrlAssetPrefix.js';
|
|
@@ -28,10 +29,7 @@ var logoConfig = {
|
|
|
28
29
|
};
|
|
29
30
|
var Logo = urlWithAssetPrefix(function Logo(props) {
|
|
30
31
|
var className = props.className, appearance = props.appearance, size = props.size, href = props.href, link = props.link, mode = props.mode;
|
|
31
|
-
var appearanceConfig = appearance
|
|
32
|
-
var _a;
|
|
33
|
-
return (__assign(__assign({}, resultConfig), (_a = logoConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
34
|
-
}, {});
|
|
32
|
+
var appearanceConfig = useAppearanceConfig(appearance, logoConfig);
|
|
35
33
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
36
34
|
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, alignItemsClass = propsGenerator.alignItemsClass, src = propsGenerator.src, title = propsGenerator.title, alt = propsGenerator.alt, widthClass = propsGenerator.widthClass;
|
|
37
35
|
// @ts-expect-error
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import clsx from 'clsx';
|
|
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_k9bHSLyL.js';
|
|
8
|
+
import { L as Link } from '../Link_es_BnUIX0QT.js';
|
|
9
|
+
import { T as Text } from '../Text_es_Ffjr5J1k.js';
|
|
10
|
+
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
10
11
|
import 'lodash/camelCase';
|
|
11
12
|
import 'lodash/castArray';
|
|
12
13
|
import 'lodash/upperFirst';
|
|
@@ -24,6 +25,14 @@ import '../hoc/urlWithAssetPrefix.js';
|
|
|
24
25
|
import '../context/UrlAssetPrefix.js';
|
|
25
26
|
|
|
26
27
|
var menuItemAppearanceAccent = {
|
|
28
|
+
accentMutedPrimary: {
|
|
29
|
+
fill: 'accentTertiary',
|
|
30
|
+
fillHover: 'accentTertiaryHover',
|
|
31
|
+
labelTextColor: 'accentTextQuaternary',
|
|
32
|
+
borderColor: 'accentBorderSecondary',
|
|
33
|
+
iconAfterFillIcon: 'accentItemQuaternary',
|
|
34
|
+
iconBeforeFillIcon: 'accentItemQuaternary',
|
|
35
|
+
},
|
|
27
36
|
accentPrimary: {
|
|
28
37
|
fill: 'accentPrimary',
|
|
29
38
|
fillHover: 'accentPrimaryHover',
|
|
@@ -43,6 +52,13 @@ var menuItemAppearanceAccent = {
|
|
|
43
52
|
};
|
|
44
53
|
|
|
45
54
|
var menuItemAppearanceError = {
|
|
55
|
+
errorMutedPrimary: {
|
|
56
|
+
fill: 'errorDisabled',
|
|
57
|
+
labelTextColor: 'errorTextQuaternary',
|
|
58
|
+
labelTextColorHover: 'errorTextQuaternary',
|
|
59
|
+
iconAfterFillIcon: 'errorItemQuaternary',
|
|
60
|
+
iconBeforeFillIcon: 'errorItemQuaternary',
|
|
61
|
+
},
|
|
46
62
|
errorPrimary: {
|
|
47
63
|
fill: 'errorPrimary',
|
|
48
64
|
fillHover: 'errorPrimaryHover',
|
|
@@ -114,6 +130,14 @@ var menuItemAppearanceStyle = {
|
|
|
114
130
|
};
|
|
115
131
|
|
|
116
132
|
var menuItemAppearanceSurface = {
|
|
133
|
+
surfaceMutedPrimary: {
|
|
134
|
+
fill: 'surfaceSecondary',
|
|
135
|
+
fillActive: 'surfacePrimary',
|
|
136
|
+
fillActiveHover: 'surfaceHover',
|
|
137
|
+
labelTextColor: 'surfaceTextQuaternary',
|
|
138
|
+
iconAfterFillIcon: 'surfaceItemQuaternary',
|
|
139
|
+
iconBeforeFillIcon: 'surfaceItemQuaternary',
|
|
140
|
+
},
|
|
117
141
|
surfacePrimary: {
|
|
118
142
|
fill: 'surfacePrimary',
|
|
119
143
|
fillActive: 'surfaceHover',
|
|
@@ -156,10 +180,7 @@ var menuItemConfig = {
|
|
|
156
180
|
};
|
|
157
181
|
function MenuItem(props) {
|
|
158
182
|
var className = props.className, appearance = props.appearance, label = props.label, isDisabled = props.isDisabled, href = props.href, link = props.link, LinkComponent = props.LinkComponent, rel = props.rel, target = props.target, underline = props.underline, before = props.before, after = props.after, isActive = props.isActive, onClick = props.onClick, onMouseEnter = props.onMouseEnter, children = props.children;
|
|
159
|
-
var appearanceConfig = appearance
|
|
160
|
-
var _a;
|
|
161
|
-
return (__assign(__assign({}, resultConfig), (_a = menuItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
162
|
-
}, {});
|
|
183
|
+
var appearanceConfig = useAppearanceConfig(appearance, menuItemConfig);
|
|
163
184
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
164
185
|
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, labelTextActiveColorDisabled = propsGenerator.labelTextActiveColorDisabled, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextActiveHoverColorDisabled = propsGenerator.labelTextActiveHoverColorDisabled, labelTextColor = propsGenerator.labelTextColor, labelTextColorDisabled = propsGenerator.labelTextColorDisabled, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextHoverColorDisabled = propsGenerator.labelTextHoverColorDisabled, 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, tooltipAppearance = propsGenerator.tooltipAppearance, tooltipFill = propsGenerator.tooltipFill, tooltipShapeStrength = propsGenerator.tooltipShapeStrength, tooltipText = propsGenerator.tooltipText, tooltipTextColor = propsGenerator.tooltipTextColor, tooltipTitleTextColor = propsGenerator.tooltipTitleTextColor, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, isSkeleton = propsGenerator.isSkeleton;
|
|
165
186
|
// @ts-expect-error
|
package/dist/components/Modal.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
2
|
import React, { useState, useRef, useCallback, useEffect, useLayoutEffect, useImperativeHandle } from 'react';
|
|
4
3
|
import clsx from 'clsx';
|
|
5
4
|
import ReactDOM from 'react-dom';
|
|
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 { O as Overlay } from '../
|
|
9
|
-
import { b as Title } from '../
|
|
10
|
-
import {
|
|
8
|
+
import { O as Overlay } from '../Overlay_es_D_izIIUB.js';
|
|
9
|
+
import { b as Title } from '../Icon_es_k9bHSLyL.js';
|
|
10
|
+
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
11
|
+
import { L as Loader } from '../Loader_es_BDb87cdb.js';
|
|
11
12
|
import 'lodash/camelCase';
|
|
12
13
|
import 'lodash/castArray';
|
|
13
14
|
import 'lodash/upperFirst';
|
|
@@ -20,11 +21,11 @@ import 'react-responsive';
|
|
|
20
21
|
import '../utils/setViewportProperty.js';
|
|
21
22
|
import 'lodash/maxBy';
|
|
22
23
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
|
-
import '../Text_es_BfLRfj-5.js';
|
|
24
24
|
import 'react-inlinesvg';
|
|
25
25
|
import '../hoc/urlWithAssetPrefix.js';
|
|
26
26
|
import '../context/UrlAssetPrefix.js';
|
|
27
|
-
import '../
|
|
27
|
+
import '../Link_es_BnUIX0QT.js';
|
|
28
|
+
import '../Text_es_Ffjr5J1k.js';
|
|
28
29
|
|
|
29
30
|
var modalAppearanceSurface = {
|
|
30
31
|
surfacePrimary: {
|
|
@@ -63,7 +64,7 @@ var getOrCreateModalElement = function (modalQuerySelector, className) {
|
|
|
63
64
|
};
|
|
64
65
|
// Modal component that is an abstraction around the portal API.
|
|
65
66
|
var Modal = React.forwardRef(function Modal(props, ref) {
|
|
66
|
-
var id = props.id, className = props.className, appearance = props.appearance, title = props.title, contentClassName = props.contentClassName, dataTestId = props.dataTestId, dataTour = props.dataTour, _a = props.modalQuerySelector, modalQuerySelector = _a === void 0 ? '#modal-global' : _a, overlayClassName = props.overlayClassName, closeButton = props.closeButton, _b = props.isCloseOnBlur, isCloseOnBlur = _b === void 0 ? true : _b, _c = props.isOpen, initialIsOpen = _c === void 0 ? false : _c, _d = props.isOverlay, isOverlay = _d === void 0 ? true : _d, _e = props.isScrollOnOpen, isScrollOnOpen = _e === void 0 ? true : _e, _f = props.isSetFocusOnOpen, isSetFocusOnOpen = _f === void 0 ? true : _f, isSkeleton = props.isSkeleton, onClickOverlay = props.onClickOverlay, onCloseModal = props.onCloseModal, onOpenModal = props.onOpenModal,
|
|
67
|
+
var id = props.id, className = props.className, appearance = props.appearance, title = props.title, contentClassName = props.contentClassName, dataTestId = props.dataTestId, dataTour = props.dataTour, _a = props.modalQuerySelector, modalQuerySelector = _a === void 0 ? '#modal-global' : _a, overlayClassName = props.overlayClassName, scroll = props.scroll, closeButton = props.closeButton, _b = props.isCloseOnBlur, isCloseOnBlur = _b === void 0 ? true : _b, _c = props.isOpen, initialIsOpen = _c === void 0 ? false : _c, _d = props.isOverlay, isOverlay = _d === void 0 ? true : _d, _e = props.isScrollOnOpen, isScrollOnOpen = _e === void 0 ? true : _e, _f = props.isSetFocusOnOpen, isSetFocusOnOpen = _f === void 0 ? true : _f, isSkeleton = props.isSkeleton, onClickOverlay = props.onClickOverlay, onCloseModal = props.onCloseModal, onOpenModal = props.onOpenModal, children = props.children;
|
|
67
68
|
// Query DOM element
|
|
68
69
|
var _g = useState(null), modalElement = _g[0], setModalElement = _g[1];
|
|
69
70
|
var _h = useState(initialIsOpen), isOpen = _h[0], setIsOpen = _h[1];
|
|
@@ -145,10 +146,7 @@ var Modal = React.forwardRef(function Modal(props, ref) {
|
|
|
145
146
|
}, [addModalProps, className, modalQuerySelector]);
|
|
146
147
|
// Save ref things
|
|
147
148
|
useImperativeHandle(ref, function () { return ({ modalElement: modalElement, openModal: openModal, closeModal: closeModal, isOpen: isOpen }); }, [isOpen, openModal, closeModal, modalElement]);
|
|
148
|
-
var appearanceConfig = appearance
|
|
149
|
-
var _a;
|
|
150
|
-
return (__assign(__assign({}, resultConfig), (_a = modalConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
151
|
-
}, {});
|
|
149
|
+
var appearanceConfig = useAppearanceConfig(appearance, modalConfig);
|
|
152
150
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
153
151
|
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, overlayFillGradient = propsGenerator.overlayFillGradient, overlayOpacity = propsGenerator.overlayOpacity, shapeClass = propsGenerator.shapeClass;
|
|
154
152
|
// @ts-expect-error
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
2
|
import clsx from 'clsx';
|
|
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_k9bHSLyL.js';
|
|
7
|
+
import { T as Text } from '../Text_es_Ffjr5J1k.js';
|
|
8
|
+
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
8
9
|
import { icons20 } from '@itcase/icons/default';
|
|
9
10
|
import { useNotifications, useNotificationsAPI } from '../context/Notifications.js';
|
|
10
11
|
import '../context/UIContext.js';
|
|
@@ -22,7 +23,7 @@ import '../hooks/useStyles/styleAttributes.js';
|
|
|
22
23
|
import 'react-inlinesvg';
|
|
23
24
|
import '../hoc/urlWithAssetPrefix.js';
|
|
24
25
|
import '../context/UrlAssetPrefix.js';
|
|
25
|
-
import '../
|
|
26
|
+
import '../Link_es_BnUIX0QT.js';
|
|
26
27
|
|
|
27
28
|
var notificationAppearanceDefault = {
|
|
28
29
|
defaultPrimary: {
|
|
@@ -130,10 +131,7 @@ var notificationConfig = {
|
|
|
130
131
|
};
|
|
131
132
|
function Notification(props) {
|
|
132
133
|
var id = props.id, className = props.className, appearance = props.appearance, title = props.title, desc = props.desc, dataTestId = props.dataTestId, dataTour = props.dataTour, before = props.before, after = props.after, close = props.close, isSkeleton = props.isSkeleton, onClickClose = props.onClickClose;
|
|
133
|
-
var appearanceConfig = appearance
|
|
134
|
-
var _a;
|
|
135
|
-
return (__assign(__assign({}, resultConfig), (_a = notificationConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
136
|
-
}, {});
|
|
134
|
+
var appearanceConfig = useAppearanceConfig(appearance, notificationConfig);
|
|
137
135
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
138
136
|
var fillClass = propsGenerator.fillClass, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, elevationClass = propsGenerator.elevationClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass, closeIcon = propsGenerator.closeIcon, closeIconFill = propsGenerator.closeIconFill, closeIconFillIcon = propsGenerator.closeIconFillIcon, closeIconFillSize = propsGenerator.closeIconFillSize, closeIconShape = propsGenerator.closeIconShape, closeIconSize = propsGenerator.closeIconSize, closeIconSrc = propsGenerator.closeIconSrc;
|
|
139
137
|
// @ts-expect-error
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export { O as Overlay, a as overlayAppearance, o as overlayConfig } from '../
|
|
2
|
-
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
1
|
+
export { O as Overlay, a as overlayAppearance, o as overlayConfig } from '../Overlay_es_D_izIIUB.js';
|
|
3
2
|
import 'react/jsx-runtime';
|
|
4
3
|
import 'clsx';
|
|
5
|
-
import '../hooks/
|
|
4
|
+
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
5
|
+
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
6
6
|
import 'react';
|
|
7
|
+
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
8
|
import 'lodash/camelCase';
|
|
8
9
|
import 'lodash/castArray';
|
|
9
10
|
import 'lodash/upperFirst';
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
2
|
import { useMemo, useState, useCallback } from 'react';
|
|
4
3
|
import clsx from 'clsx';
|
|
5
4
|
import ceil from 'lodash/ceil';
|
|
6
5
|
import ReactPaginate from 'react-paginate';
|
|
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_BBxfR35q.js';
|
|
10
|
+
import { I as Icon } from '../Icon_es_k9bHSLyL.js';
|
|
11
|
+
import { T as Text } from '../Text_es_Ffjr5J1k.js';
|
|
12
|
+
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
12
13
|
import { icons14, icons24, icons16 } from '@itcase/icons/default';
|
|
13
14
|
import 'lodash/camelCase';
|
|
14
15
|
import 'lodash/castArray';
|
|
@@ -22,11 +23,11 @@ import 'react-responsive';
|
|
|
22
23
|
import '../utils/setViewportProperty.js';
|
|
23
24
|
import 'lodash/maxBy';
|
|
24
25
|
import '../hooks/useStyles/styleAttributes.js';
|
|
25
|
-
import '../
|
|
26
|
+
import '../Divider_es_CiRU0sTz.js';
|
|
26
27
|
import 'react-inlinesvg';
|
|
27
28
|
import '../hoc/urlWithAssetPrefix.js';
|
|
28
29
|
import '../context/UrlAssetPrefix.js';
|
|
29
|
-
import '../
|
|
30
|
+
import '../Link_es_BnUIX0QT.js';
|
|
30
31
|
|
|
31
32
|
var paginationAppearanceAccent = {
|
|
32
33
|
accent: {
|
|
@@ -256,10 +257,7 @@ function Pagination(props) {
|
|
|
256
257
|
}
|
|
257
258
|
return 0;
|
|
258
259
|
}, [pageNumber]);
|
|
259
|
-
var appearanceConfig = appearance
|
|
260
|
-
var _a;
|
|
261
|
-
return (__assign(__assign({}, resultConfig), (_a = paginationConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
262
|
-
}, {});
|
|
260
|
+
var appearanceConfig = useAppearanceConfig(appearance, paginationConfig);
|
|
263
261
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
264
262
|
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;
|
|
265
263
|
var paginationStyles = useStyles(props).styles;
|
package/dist/components/Radio.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
2
|
import clsx from 'clsx';
|
|
3
|
+
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
|
-
import { T as Text } from '../
|
|
5
|
+
import { T as Text } from '../Text_es_Ffjr5J1k.js';
|
|
6
|
+
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
6
7
|
import 'react';
|
|
7
8
|
import 'lodash/camelCase';
|
|
8
9
|
import 'lodash/castArray';
|
|
@@ -120,10 +121,7 @@ var radioConfig = {
|
|
|
120
121
|
};
|
|
121
122
|
function Radio(props) {
|
|
122
123
|
var id = props.id, className = props.className, appearance = props.appearance, label = props.label, desc = props.desc, isDisabled = props.isDisabled, checked = props.checked, _a = props.tag, Tag = _a === void 0 ? 'label' : _a, isSkeleton = props.isSkeleton, onChange = props.onChange;
|
|
123
|
-
var appearanceConfig = appearance
|
|
124
|
-
var _a;
|
|
125
|
-
return (__assign(__assign({}, resultConfig), (_a = radioConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
126
|
-
}, {});
|
|
124
|
+
var appearanceConfig = useAppearanceConfig(appearance, radioConfig);
|
|
127
125
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
128
126
|
var fillCheckmarkClass = propsGenerator.fillCheckmarkClass, fillClass = propsGenerator.fillClass, fillRadioActiveClass = propsGenerator.fillRadioActiveClass, fillRadioActiveHoverClass = propsGenerator.fillRadioActiveHoverClass, fillRadioClass = propsGenerator.fillRadioClass, fillRadioHoverClass = propsGenerator.fillRadioHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, descTextWeight = propsGenerator.descTextWeight, borderColorClass = propsGenerator.borderColorClass, borderColorRadioActiveClass = propsGenerator.borderColorRadioActiveClass, borderColorRadioActiveHoverClass = propsGenerator.borderColorRadioActiveHoverClass, borderColorRadioClass = propsGenerator.borderColorRadioClass, borderColorRadioHoverClass = propsGenerator.borderColorRadioHoverClass, _b = propsGenerator.shapeClass, shapeClass = _b === void 0 ? 'circular' : _b, sizeClass = propsGenerator.sizeClass;
|
|
129
127
|
return (jsxs(Tag, { className: clsx(className, 'radio', fillClass && "fill_".concat(fillClass), borderColorClass && "border-color_".concat(borderColorClass), isSkeleton && 'radio_skeleton', sizeClass && "radio_size_".concat(sizeClass)), htmlFor: id, children: [jsxs("div", { className: "radio__item", children: [jsx("input", { id: id, className: "radio__input", type: "radio", disabled: isDisabled && 'disabled', checked: checked, onChange: onChange }), jsx("div", { className: clsx('radio__state', !checked
|
|
@@ -4,11 +4,12 @@ import { useMemo } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import SVG from 'react-inlinesvg';
|
|
6
6
|
import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
|
|
7
|
+
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
8
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
9
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
|
-
import { B as Button } from '../
|
|
10
|
-
import { G as Group } from '../
|
|
11
|
-
import { T as Text } from '../
|
|
10
|
+
import { B as Button } from '../Button_es_XnWb2XF3.js';
|
|
11
|
+
import { G as Group } from '../Group_es_DSZxyI1e.js';
|
|
12
|
+
import { T as Text } from '../Text_es_Ffjr5J1k.js';
|
|
12
13
|
import '@itcase/common';
|
|
13
14
|
import '../context/UrlAssetPrefix.js';
|
|
14
15
|
import 'lodash/camelCase';
|
|
@@ -22,9 +23,9 @@ import 'react-responsive';
|
|
|
22
23
|
import '../utils/setViewportProperty.js';
|
|
23
24
|
import 'lodash/maxBy';
|
|
24
25
|
import '../hooks/useStyles/styleAttributes.js';
|
|
25
|
-
import '../
|
|
26
|
-
import '../
|
|
27
|
-
import '../
|
|
26
|
+
import '../Icon_es_k9bHSLyL.js';
|
|
27
|
+
import '../Link_es_BnUIX0QT.js';
|
|
28
|
+
import '../Loader_es_BDb87cdb.js';
|
|
28
29
|
|
|
29
30
|
var responseAppearanceConfirm = {
|
|
30
31
|
confirm: {
|
|
@@ -146,10 +147,7 @@ var responseConfig = {
|
|
|
146
147
|
};
|
|
147
148
|
var Response = urlWithAssetPrefix(function Response(props) {
|
|
148
149
|
var className = props.className, appearance = props.appearance, width = props.width, height = props.height, title = props.title, desc = props.desc, primaryButton = props.primaryButton, onClickSecondaryButton = props.onClickSecondaryButton, secondaryButton = props.secondaryButton, before = props.before, after = props.after, isSkeleton = props.isSkeleton;
|
|
149
|
-
var appearanceConfig = appearance
|
|
150
|
-
var _a;
|
|
151
|
-
return (__assign(__assign({}, resultConfig), (_a = responseConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
152
|
-
}, {});
|
|
150
|
+
var appearanceConfig = useAppearanceConfig(appearance, responseConfig);
|
|
153
151
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
154
152
|
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, onClickPrimaryButton = propsGenerator.onClickPrimaryButton, 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, dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, imageSrc = propsGenerator.imageSrc, shapeClass = propsGenerator.shapeClass, svgFillClass = propsGenerator.svgFillClass, SvgImage = propsGenerator.SvgImage, svgPathFillClass = propsGenerator.svgPathFillClass, svgSrc = propsGenerator.svgSrc;
|
|
155
153
|
// TODO: use Icon instead?
|
|
@@ -3,10 +3,11 @@ import { icons16, icons24 } from '@itcase/icons/default';
|
|
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
4
|
import React, { useCallback } from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
|
+
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { I as Icon } from '../
|
|
9
|
-
import { T as Text } from '../
|
|
9
|
+
import { I as Icon } from '../Icon_es_k9bHSLyL.js';
|
|
10
|
+
import { T as Text } from '../Text_es_Ffjr5J1k.js';
|
|
10
11
|
import { S as Scrollbar } from '../Scrollbar_es_CThJeCLF.js';
|
|
11
12
|
import 'lodash/camelCase';
|
|
12
13
|
import 'lodash/castArray';
|
|
@@ -23,7 +24,7 @@ import '../hooks/useStyles/styleAttributes.js';
|
|
|
23
24
|
import 'react-inlinesvg';
|
|
24
25
|
import '../hoc/urlWithAssetPrefix.js';
|
|
25
26
|
import '../context/UrlAssetPrefix.js';
|
|
26
|
-
import '../
|
|
27
|
+
import '../Link_es_BnUIX0QT.js';
|
|
27
28
|
import 'react-scrollbars-custom';
|
|
28
29
|
|
|
29
30
|
var searchAppearanceDefault = {
|
|
@@ -173,10 +174,7 @@ var SearchInput = React.forwardRef(function SearchInput(props, ref) {
|
|
|
173
174
|
onClickClean();
|
|
174
175
|
}
|
|
175
176
|
}, [onChange, onClickClean]);
|
|
176
|
-
var appearanceConfig = appearance
|
|
177
|
-
var _a;
|
|
178
|
-
return (__assign(__assign({}, resultConfig), (_a = searchInputConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
179
|
-
}, {});
|
|
177
|
+
var appearanceConfig = useAppearanceConfig(appearance, searchInputConfig);
|
|
180
178
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
181
179
|
var size = propsGenerator.size, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, iconClear = propsGenerator.iconClear, iconClearFill = propsGenerator.iconClearFill, iconClearSize = propsGenerator.iconClearSize, iconClearSrc = propsGenerator.iconClearSrc, inputFillClass = propsGenerator.inputFillClass, inputShapeClass = propsGenerator.inputShapeClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, inputTextStyleClass = propsGenerator.inputTextStyleClass, inputTextWeightClass = propsGenerator.inputTextWeightClass, placeholderTextColor = propsGenerator.placeholderTextColor, placeholderTextSize = propsGenerator.placeholderTextSize, placeholderTextStyle = propsGenerator.placeholderTextStyle, placeholderTextWeight = propsGenerator.placeholderTextWeight, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass;
|
|
182
180
|
var searchInputStyles = useStyles(props).styles;
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
2
|
import React, { useRef, useMemo, createRef, useCallback, useEffect } from 'react';
|
|
4
3
|
import clsx from 'clsx';
|
|
5
|
-
import { I as Icon } from '../
|
|
4
|
+
import { I as Icon } from '../Icon_es_k9bHSLyL.js';
|
|
5
|
+
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { T as Text } from '../
|
|
7
|
+
import { T as Text } from '../Text_es_Ffjr5J1k.js';
|
|
8
|
+
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
|
+
import 'react-inlinesvg';
|
|
10
|
+
import '../hoc/urlWithAssetPrefix.js';
|
|
11
|
+
import '@itcase/common';
|
|
12
|
+
import '../context/UrlAssetPrefix.js';
|
|
8
13
|
import '../hooks/useStyles/useStyles.js';
|
|
9
14
|
import 'lodash/camelCase';
|
|
10
15
|
import 'lodash/maxBy';
|
|
11
16
|
import 'lodash/upperFirst';
|
|
12
17
|
import '../context/Notifications.js';
|
|
13
18
|
import 'uuid';
|
|
14
|
-
import '@itcase/common';
|
|
15
19
|
import '../context/UIContext.js';
|
|
16
20
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
17
21
|
import 'react-responsive';
|
|
18
22
|
import '../utils/setViewportProperty.js';
|
|
19
23
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '
|
|
21
|
-
import '../hoc/urlWithAssetPrefix.js';
|
|
22
|
-
import '../context/UrlAssetPrefix.js';
|
|
23
|
-
import '../Link_es_DxtZLeKY.js';
|
|
24
|
+
import '../Link_es_BnUIX0QT.js';
|
|
24
25
|
import 'lodash/castArray';
|
|
25
26
|
|
|
26
27
|
var segmentedAppearanceDefault = {
|
|
@@ -205,10 +206,7 @@ var Segmented = React.forwardRef(function (props) {
|
|
|
205
206
|
// controlRef.current.style.setProperty('--segmented-active-x-pos', `${offsetLeft - 2}px`)
|
|
206
207
|
(_b = controlRef.current) === null || _b === void 0 ? void 0 : _b.style.setProperty('--segmented-active-x-pos', "".concat(offsetLeft, "px"));
|
|
207
208
|
}, [activeSegment, segmentsRefs]);
|
|
208
|
-
var appearanceConfig = appearance
|
|
209
|
-
var _a;
|
|
210
|
-
return (__assign(__assign({}, resultConfig), (_a = segmentedConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
211
|
-
}, {});
|
|
209
|
+
var appearanceConfig = useAppearanceConfig(appearance, segmentedConfig);
|
|
212
210
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
213
211
|
var fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconFillDisabled = propsGenerator.iconFillDisabled, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, indicatorFillClass = propsGenerator.indicatorFillClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
214
212
|
return (jsx("div", { className: clsx(className, 'segmented', shapeClass && "segmented_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), widthClass && "segmented_width_".concat(widthClass), sizeClass && "segmented_size_".concat(sizeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), isSkeleton && "segmented_skeleton"), ref: controlRef, children: jsx("div", { className: "segmented__wrapper", children: jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments === null || segments === void 0 ? void 0 : segments.map(function (item) {
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import Select, { components } from 'react-select';
|
|
4
|
-
import { I as Icon, B as Badge } from '../
|
|
4
|
+
import { I as Icon, B as Badge } from '../Icon_es_k9bHSLyL.js';
|
|
5
5
|
import React, { useRef, useCallback, useEffect, useMemo } from 'react';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import CreatableSelect from 'react-select/creatable';
|
|
8
|
+
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
8
9
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
|
-
import { T as Text } from '../
|
|
10
|
-
import { G as Group } from '../
|
|
11
|
-
import { D as Divider } from '../
|
|
10
|
+
import { T as Text } from '../Text_es_Ffjr5J1k.js';
|
|
11
|
+
import { G as Group } from '../Group_es_DSZxyI1e.js';
|
|
12
|
+
import { D as Divider } from '../Divider_es_CiRU0sTz.js';
|
|
13
|
+
import 'react-inlinesvg';
|
|
14
|
+
import '../hoc/urlWithAssetPrefix.js';
|
|
15
|
+
import '@itcase/common';
|
|
16
|
+
import '../context/UrlAssetPrefix.js';
|
|
12
17
|
import '../hooks/useStyles/useStyles.js';
|
|
13
18
|
import 'lodash/camelCase';
|
|
14
19
|
import 'lodash/maxBy';
|
|
15
20
|
import 'lodash/upperFirst';
|
|
16
21
|
import '../context/Notifications.js';
|
|
17
22
|
import 'uuid';
|
|
18
|
-
import '@itcase/common';
|
|
19
23
|
import '../context/UIContext.js';
|
|
20
24
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
21
25
|
import 'react-responsive';
|
|
22
26
|
import '../utils/setViewportProperty.js';
|
|
23
27
|
import '../hooks/useStyles/styleAttributes.js';
|
|
24
|
-
import '
|
|
25
|
-
import '../hoc/urlWithAssetPrefix.js';
|
|
26
|
-
import '../context/UrlAssetPrefix.js';
|
|
27
|
-
import '../Link_es_DxtZLeKY.js';
|
|
28
|
+
import '../Link_es_BnUIX0QT.js';
|
|
28
29
|
import 'lodash/castArray';
|
|
29
30
|
|
|
30
31
|
// interface ClearIndicatorProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>>
|
|
@@ -217,15 +218,7 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
|
217
218
|
},
|
|
218
219
|
});
|
|
219
220
|
}, [minWidth, width]);
|
|
220
|
-
var appearanceConfig =
|
|
221
|
-
if (appearance) {
|
|
222
|
-
return appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
223
|
-
var _a;
|
|
224
|
-
return (__assign(__assign({}, resultConfig), (_a = selectConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
225
|
-
}, {});
|
|
226
|
-
}
|
|
227
|
-
return {};
|
|
228
|
-
}, [appearance]);
|
|
221
|
+
var appearanceConfig = useAppearanceConfig(appearance, selectConfig);
|
|
229
222
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
230
223
|
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, widthClass = propsGenerator.widthClass;
|
|
231
224
|
return (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), widthClass && "select_width_".concat(widthClass)), elevation: elevation, isDisabled: isDisabled, badgeAppearance: badgeAppearance, badgeSize: badgeSize, badgeTextSize: badgeTextSize, classNamePrefix: "select", clearIcon: clearIcon, clearIconFill: clearIconFill, components: {
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { b as Title } from '../
|
|
7
|
+
import { b as Title } from '../Icon_es_k9bHSLyL.js';
|
|
8
8
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
@@ -18,11 +18,12 @@ import 'react-responsive';
|
|
|
18
18
|
import '../utils/setViewportProperty.js';
|
|
19
19
|
import 'lodash/maxBy';
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
|
-
import '../Text_es_BfLRfj-5.js';
|
|
22
21
|
import 'react-inlinesvg';
|
|
23
22
|
import '../hoc/urlWithAssetPrefix.js';
|
|
24
23
|
import '../context/UrlAssetPrefix.js';
|
|
25
|
-
import '../
|
|
24
|
+
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
25
|
+
import '../Link_es_BnUIX0QT.js';
|
|
26
|
+
import '../Text_es_Ffjr5J1k.js';
|
|
26
27
|
|
|
27
28
|
function Swiper(props) {
|
|
28
29
|
var id = props.id, className = props.className, direction = props.direction, title = props.title, titleAfter = props.titleAfter, titleSize = props.titleSize, titleTextColor = props.titleTextColor, titleWeight = props.titleWeight, setNextBtnDisabled = props.setNextBtnDisabled, setPrevBtnDisabled = props.setPrevBtnDisabled, _a = props.activeSlideIndex, activeSlideIndex = _a === void 0 ? 0 : _a, allowTouchMove = props.allowTouchMove, autoHeight = props.autoHeight, breakpoints = props.breakpoints, forwardedRef = props.forwardedRef, // https://github.com/vercel/next.js/issues/4957
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import clsx from 'clsx';
|
|
4
|
+
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { T as Text } from '../
|
|
6
|
+
import { T as Text } from '../Text_es_Ffjr5J1k.js';
|
|
7
|
+
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
7
8
|
import 'lodash/camelCase';
|
|
8
9
|
import 'lodash/castArray';
|
|
9
10
|
import 'lodash/upperFirst';
|
|
@@ -117,10 +118,7 @@ var switchConfig = {
|
|
|
117
118
|
};
|
|
118
119
|
var Switch = React.forwardRef(function Switch(props, ref) {
|
|
119
120
|
var id = props.id, className = props.className, appearance = props.appearance, _a = props.align, align = _a === void 0 ? 'left' : _a, title = props.title, desc = props.desc, disabled = props.disabled, checked = props.checked, isActive = props.isActive, onChange = props.onChange;
|
|
120
|
-
var appearanceConfig = appearance
|
|
121
|
-
var _a;
|
|
122
|
-
return (__assign(__assign({}, resultConfig), (_a = switchConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
123
|
-
}, {});
|
|
121
|
+
var appearanceConfig = useAppearanceConfig(appearance, switchConfig);
|
|
124
122
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
125
123
|
var size = propsGenerator.size, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, fillToggleActiveClass = propsGenerator.fillToggleActiveClass, fillToggleActiveHoverClass = propsGenerator.fillToggleActiveHoverClass, fillToggleClass = propsGenerator.fillToggleClass, fillToggleHoverClass = propsGenerator.fillToggleHoverClass, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize;
|
|
126
124
|
return (jsxs("div", { className: clsx('switch', className, align && "switch_align_".concat(align), size && "switch_size_".concat(size)), children: [title && (jsx(Text, { className: clsx('switch__title'), size: titleTextSize, textColor: titleTextColor, children: title })), desc && (jsx(Text, { className: clsx('switch__desc'), size: descTextSize, textColor: descTextColor, children: desc })), jsxs("div", { className: 'switch__item', children: [jsx("input", { id: id, className: "switch__checkbox", type: "checkbox", disabled: disabled, checked: checked || isActive,
|
package/dist/components/Tab.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import clsx from 'clsx';
|
|
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 { B as Badge, I as Icon } from '../
|
|
8
|
-
import { D as Divider } from '../
|
|
9
|
-
import { L as Link } from '../
|
|
10
|
-
import { T as Text } from '../
|
|
7
|
+
import { B as Badge, I as Icon } from '../Icon_es_k9bHSLyL.js';
|
|
8
|
+
import { D as Divider } from '../Divider_es_CiRU0sTz.js';
|
|
9
|
+
import { L as Link } from '../Link_es_BnUIX0QT.js';
|
|
10
|
+
import { T as Text } from '../Text_es_Ffjr5J1k.js';
|
|
11
|
+
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
11
12
|
import 'lodash/camelCase';
|
|
12
13
|
import 'lodash/castArray';
|
|
13
14
|
import 'lodash/upperFirst';
|
|
@@ -196,10 +197,7 @@ var tabConfig = {
|
|
|
196
197
|
};
|
|
197
198
|
function Tab(props) {
|
|
198
199
|
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, target = props.target, before = props.before, after = props.after, _b = props.isActive, isActive = _b === void 0 ? false : _b, isSkeleton = props.isSkeleton, onClick = props.onClick, onMouseEnter = props.onMouseEnter, children = props.children;
|
|
199
|
-
var appearanceConfig = appearance
|
|
200
|
-
var _a;
|
|
201
|
-
return (__assign(__assign({}, resultConfig), (_a = tabConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
202
|
-
}, {});
|
|
200
|
+
var appearanceConfig = useAppearanceConfig(appearance, tabConfig);
|
|
203
201
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
204
202
|
var justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextAlign = propsGenerator.labelTextAlign, labelTextColor = propsGenerator.labelTextColor, labelTextColorActive = propsGenerator.labelTextColorActive, labelTextColorActiveHover = propsGenerator.labelTextColorActiveHover, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextStyle = propsGenerator.labelTextStyle, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorActiveClass = propsGenerator.borderColorActiveClass, borderColorActiveHoverClass = propsGenerator.borderColorActiveHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, dividerFillDisabled = propsGenerator.dividerFillDisabled, badgeAppearance = propsGenerator.badgeAppearance, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, dividerFill = propsGenerator.dividerFill, dividerFillActive = propsGenerator.dividerFillActive, dividerFillActiveHover = propsGenerator.dividerFillActiveHover, dividerFillHover = propsGenerator.dividerFillHover, dividerSize = propsGenerator.dividerSize, icon = propsGenerator.icon, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, linkFill = propsGenerator.linkFill, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
205
203
|
// @ts-expect-error
|
package/dist/components/Text.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export { T as Text, a as textAppearance, t as textConfig } from '../
|
|
2
|
-
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
1
|
+
export { T as Text, a as textAppearance, t as textConfig } from '../Text_es_Ffjr5J1k.js';
|
|
3
2
|
import 'react/jsx-runtime';
|
|
4
3
|
import 'clsx';
|
|
5
|
-
import '../hooks/
|
|
4
|
+
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
5
|
+
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
6
6
|
import 'react';
|
|
7
|
+
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
8
|
import 'lodash/camelCase';
|
|
8
9
|
import 'lodash/castArray';
|
|
9
10
|
import 'lodash/upperFirst';
|