@itcase/ui 1.8.64 → 1.8.66
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_DOBcPDTn.js → Avatar_cjs_CUv4th9V.js} +1 -1
- package/dist/{Avatar_es_DA6o8oNQ.js → Avatar_es_CZbxsfMv.js} +1 -1
- package/dist/{Button_cjs_CA7J_adG.js → Button_cjs_CF3wei05.js} +1 -1
- package/dist/{Button_es_BSxEly4r.js → Button_es_3cCwdJcQ.js} +1 -1
- package/dist/{ChipsGroup_cjs_DHNbkBEk.js → ChipsGroup_cjs_p5BbbozF.js} +1 -1
- package/dist/{ChipsGroup_es_zirUM0Bc.js → ChipsGroup_es_CSRBUuRU.js} +1 -1
- package/dist/{DatePicker_cjs_BsLBVElQ.js → DatePicker_cjs_C5Scs-GL.js} +3 -3
- package/dist/{DatePicker_es_BotT8lRT.js → DatePicker_es_Cn7l4eD0.js} +3 -3
- package/dist/{DropdownItem_cjs_BF18Ii9Z.js → DropdownItem_cjs_DrRXEbs6.js} +1 -1
- package/dist/{DropdownItem_es_2b-hX4HZ.js → DropdownItem_es_fKHB3LUT.js} +1 -1
- package/dist/{Icon_cjs_D1Ze-oNL.js → Icon_cjs_BdX_3y6P.js} +17 -31
- package/dist/{Icon_es_DrQu8Zp8.js → Icon_es_Xh3eVHNS.js} +17 -31
- package/dist/{Label_cjs_BPu58uG9.js → Label_cjs_DSSetg_A.js} +16 -16
- package/dist/{Label_es_CH68RBo-.js → Label_es_DnTcY7ih.js} +16 -16
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/AvatarStack.js +2 -2
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs.js +1 -1
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Checkmark.js +6 -6
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DatePeriod.js +5 -5
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/MenuItem.js +1 -1
- package/dist/cjs/components/Modal.js +75 -7
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +2 -2
- package/dist/cjs/components/Response.js +2 -2
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented.js +1 -1
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Tile.js +1 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/cjs/components/Warning.js +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +2 -2
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs.js +1 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell.js +2 -2
- package/dist/components/Checkmark.js +6 -6
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice.js +1 -1
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DatePeriod.js +5 -5
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/MenuItem.js +1 -1
- package/dist/components/Modal.js +75 -7
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Response.js +2 -2
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented.js +1 -1
- package/dist/components/Select.js +1 -1
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Warning.js +1 -1
- package/dist/css/components/Label/Label.css +14 -0
- package/dist/css/components/Modal/Modal.css +61 -26
- package/dist/types/components/Label/appearance/{labelDisable.d.ts → labelDisabled.d.ts} +4 -4
- package/dist/types/components/Modal/appearance/modalShape.d.ts +25 -0
- package/dist/types/components/Modal/appearance/modalSize.d.ts +27 -0
- package/dist/types/components/Modal/appearance/modalStyle.d.ts +14 -0
- package/dist/types/components/Modal/appearance/modalSurface.d.ts +2 -1
- package/dist/types/components/Title/appearance/titleSize.d.ts +6 -20
- package/dist/types/components/Title/appearance/titleSurface.d.ts +5 -5
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../
|
|
1
|
+
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem_es_fKHB3LUT.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -17,7 +17,7 @@ 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 '../
|
|
20
|
+
import '../Icon_es_Xh3eVHNS.js';
|
|
21
21
|
import 'react-inlinesvg';
|
|
22
22
|
import '../hoc/urlWithAssetPrefix.js';
|
|
23
23
|
import '../context/UrlAssetPrefix.js';
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
7
|
+
import { I as Icon } from '../Icon_es_Xh3eVHNS.js';
|
|
8
8
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
package/dist/components/Icon.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useState, useMemo, useCallback } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
7
|
+
import { I as Icon } from '../Icon_es_Xh3eVHNS.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
10
10
|
import 'lodash/upperFirst';
|
package/dist/components/Label.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Label, a as labelAppearance, l as labelConfig } from '../
|
|
1
|
+
export { L as Label, a as labelAppearance, l as labelConfig } from '../Label_es_DnTcY7ih.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -18,7 +18,7 @@ import '../utils/setViewportProperty.js';
|
|
|
18
18
|
import '../hooks/useStyles/useStyles.js';
|
|
19
19
|
import 'lodash/maxBy';
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
|
-
import '../
|
|
21
|
+
import '../Icon_es_Xh3eVHNS.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../hoc/urlWithAssetPrefix.js';
|
|
24
24
|
import '../context/UrlAssetPrefix.js';
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon, T as Tooltip } from '../
|
|
7
|
+
import { I as Icon, T as Tooltip } from '../Icon_es_Xh3eVHNS.js';
|
|
8
8
|
import { L as Link } from '../Link_es_BnUIX0QT.js';
|
|
9
9
|
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
10
10
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
package/dist/components/Modal.js
CHANGED
|
@@ -5,9 +5,10 @@ import ReactDOM from 'react-dom';
|
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
+
import { b as Title, I as Icon } from '../Icon_es_Xh3eVHNS.js';
|
|
8
9
|
import { O as Overlay } from '../Overlay_es_BvehRqIP.js';
|
|
9
|
-
import { b as Title } from '../Icon_es_DrQu8Zp8.js';
|
|
10
10
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
11
|
+
import { icons24, icons40 } from '@itcase/icons/default';
|
|
11
12
|
import { L as Loader } from '../Loader_es_DhNCKZ8Y.js';
|
|
12
13
|
import 'lodash/camelCase';
|
|
13
14
|
import 'lodash/castArray';
|
|
@@ -27,14 +28,81 @@ import '../context/UrlAssetPrefix.js';
|
|
|
27
28
|
import '../Link_es_BnUIX0QT.js';
|
|
28
29
|
import '../Text_es_BvmOR4nv.js';
|
|
29
30
|
|
|
31
|
+
var modalAppearanceShape = {
|
|
32
|
+
circular: {
|
|
33
|
+
shape: 'circular',
|
|
34
|
+
},
|
|
35
|
+
rounded: {
|
|
36
|
+
shape: 'rounded',
|
|
37
|
+
},
|
|
38
|
+
roundedS: {
|
|
39
|
+
shape: 'rounded',
|
|
40
|
+
shapeStrength: '0_5m',
|
|
41
|
+
},
|
|
42
|
+
roundedM: {
|
|
43
|
+
shape: 'rounded',
|
|
44
|
+
shapeStrength: '1m',
|
|
45
|
+
},
|
|
46
|
+
roundedL: {
|
|
47
|
+
shape: 'rounded',
|
|
48
|
+
shapeStrength: '1_5m',
|
|
49
|
+
},
|
|
50
|
+
roundedXL: {
|
|
51
|
+
shape: 'rounded',
|
|
52
|
+
shapeStrength: '2m',
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
var modalAppearanceSize = {
|
|
57
|
+
sizeXL: {
|
|
58
|
+
size: 'xl',
|
|
59
|
+
titleTextSize: 'h2',
|
|
60
|
+
closeIconImage: icons40.Action.Close,
|
|
61
|
+
closeIconSize: '40',
|
|
62
|
+
},
|
|
63
|
+
sizeL: {
|
|
64
|
+
size: 'l',
|
|
65
|
+
titleTextSize: 'h3',
|
|
66
|
+
closeIconImage: icons40.Action.Close,
|
|
67
|
+
closeIconSize: '40',
|
|
68
|
+
},
|
|
69
|
+
sizeM: {
|
|
70
|
+
size: 'm',
|
|
71
|
+
titleTextSize: 'h4',
|
|
72
|
+
closeIconImage: icons24.Action.Close,
|
|
73
|
+
closeIconSize: '24',
|
|
74
|
+
},
|
|
75
|
+
sizeS: {
|
|
76
|
+
size: 's',
|
|
77
|
+
titleTextSize: 'h5',
|
|
78
|
+
closeIconImage: icons24.Action.Close,
|
|
79
|
+
closeIconSize: '24',
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
var modalAppearanceStyle = {
|
|
84
|
+
solid: {
|
|
85
|
+
borderColor: 'none',
|
|
86
|
+
},
|
|
87
|
+
outlined: {
|
|
88
|
+
fill: 'none',
|
|
89
|
+
},
|
|
90
|
+
full: {},
|
|
91
|
+
ghost: {
|
|
92
|
+
fill: 'none',
|
|
93
|
+
borderColor: 'none',
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
|
|
30
97
|
var modalAppearanceSurface = {
|
|
31
98
|
surfacePrimary: {
|
|
32
99
|
fill: 'surfacePrimary',
|
|
33
|
-
|
|
100
|
+
borderColor: 'surfaceBorderPrimary',
|
|
101
|
+
closeIconAppearance: 'surfacePrimary solid circular',
|
|
34
102
|
},
|
|
35
103
|
};
|
|
36
104
|
|
|
37
|
-
var modalAppearance = __assign({}, modalAppearanceSurface);
|
|
105
|
+
var modalAppearance = __assign(__assign(__assign(__assign({}, modalAppearanceSurface), modalAppearanceShape), modalAppearanceStyle), modalAppearanceSize);
|
|
38
106
|
|
|
39
107
|
var modalConfig = {
|
|
40
108
|
appearance: modalAppearance,
|
|
@@ -64,7 +132,7 @@ var getOrCreateModalElement = function (modalQuerySelector, className) {
|
|
|
64
132
|
};
|
|
65
133
|
// Modal component that is an abstraction around the portal API.
|
|
66
134
|
var Modal = React.forwardRef(function Modal(props, ref) {
|
|
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,
|
|
135
|
+
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, scroll = props.scroll, _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;
|
|
68
136
|
// Query DOM element
|
|
69
137
|
var _g = useState(null), modalElement = _g[0], setModalElement = _g[1];
|
|
70
138
|
var _h = useState(initialIsOpen), isOpen = _h[0], setIsOpen = _h[1];
|
|
@@ -148,16 +216,16 @@ var Modal = React.forwardRef(function Modal(props, ref) {
|
|
|
148
216
|
useImperativeHandle(ref, function () { return ({ modalElement: modalElement, openModal: openModal, closeModal: closeModal, isOpen: isOpen }); }, [isOpen, openModal, closeModal, modalElement]);
|
|
149
217
|
var appearanceConfig = useAppearanceConfig(appearance, modalConfig);
|
|
150
218
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
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,
|
|
219
|
+
var fillClass = propsGenerator.fillClass, titleTextColor = propsGenerator.titleTextColor, titleTextColorHover = propsGenerator.titleTextColorHover, titleTextSize = propsGenerator.titleTextSize, titleTextTruncate = propsGenerator.titleTextTruncate, titleTextWeight = propsGenerator.titleTextWeight, titleTextWidth = propsGenerator.titleTextWidth, titleTextWrap = propsGenerator.titleTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, overlayFill = propsGenerator.overlayFill, overlayOpacity = propsGenerator.overlayOpacity, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, closeIconAppearance = propsGenerator.closeIconAppearance, closeIconImage = propsGenerator.closeIconImage, closeIconShape = propsGenerator.closeIconShape, closeIconSize = propsGenerator.closeIconSize;
|
|
152
220
|
// @ts-expect-error
|
|
153
221
|
var modalStyles = useStyles(props).styles;
|
|
154
222
|
// Use a portal to render the children into the element
|
|
155
223
|
return (modalElement &&
|
|
156
224
|
ReactDOM.createPortal(
|
|
157
225
|
// Any valid React child: JSX, strings, arrays, etc.
|
|
158
|
-
isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { id: id, className: clsx('
|
|
226
|
+
isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { id: id, className: clsx('modal__content', contentClassName, fillClass && "fill_".concat(fillClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), shapeClass && "shape_".concat(shapeClass), sizeClass && "modal_size_".concat(sizeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), elevationClass && "elevation_".concat(elevationClass), scroll && "modal-scroll_".concat(scroll), isSkeleton && 'modal_skeleton'), dataTestId: dataTestId, dataTour: dataTour, ref: modalContentRef, style: modalStyles, tabIndex: 0, onBlur: isCloseOnBlur && closeModal, children: [(title || closeIconImage) && (jsxs("div", { className: "modal__header", children: [title && (jsx(Title, { className: "modal__title", width: titleTextWidth, size: titleTextSize, textColor: titleTextColor, textColorHover: titleTextColorHover, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), closeIconImage && (jsx("div", { className: "modal__close", onClick: closeModal, children: jsx(Icon, { appearance: closeIconAppearance, SvgImage: closeIconImage, iconSize: closeIconSize, shape: closeIconShape }) }))] })), jsx("div", { className: "modal__content-wrapper", children: children })] }), jsx(Overlay, { className: "modal__overlay",
|
|
159
227
|
// ref={modalOverlayRef}
|
|
160
|
-
fill: overlayFill,
|
|
228
|
+
fill: overlayFill, opacity: overlayOpacity, isOverlay: isOverlay, onClick: onClickOverlay })] })) : null,
|
|
161
229
|
// A DOM element
|
|
162
230
|
modalElement));
|
|
163
231
|
});
|
|
@@ -3,7 +3,7 @@ import clsx from 'clsx';
|
|
|
3
3
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { I as Icon } from '../
|
|
6
|
+
import { I as Icon } from '../Icon_es_Xh3eVHNS.js';
|
|
7
7
|
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
8
8
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import { icons20 } from '@itcase/icons/default';
|
|
@@ -6,8 +6,8 @@ import ReactPaginate from 'react-paginate';
|
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
|
-
import { D as Dropdown, a as DropdownItem } from '../
|
|
10
|
-
import { I as Icon } from '../
|
|
9
|
+
import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_fKHB3LUT.js';
|
|
10
|
+
import { I as Icon } from '../Icon_es_Xh3eVHNS.js';
|
|
11
11
|
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
12
12
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
13
13
|
import { icons14, icons24, icons16 } from '@itcase/icons/default';
|
|
@@ -7,7 +7,7 @@ import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
|
|
|
7
7
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
8
8
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
9
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
10
|
-
import { B as Button } from '../
|
|
10
|
+
import { B as Button } from '../Button_es_3cCwdJcQ.js';
|
|
11
11
|
import { G as Group } from '../Group_es_CruwH8Al.js';
|
|
12
12
|
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
13
13
|
import '@itcase/common';
|
|
@@ -23,7 +23,7 @@ import 'react-responsive';
|
|
|
23
23
|
import '../utils/setViewportProperty.js';
|
|
24
24
|
import 'lodash/maxBy';
|
|
25
25
|
import '../hooks/useStyles/styleAttributes.js';
|
|
26
|
-
import '../
|
|
26
|
+
import '../Icon_es_Xh3eVHNS.js';
|
|
27
27
|
import 'react-inlinesvg';
|
|
28
28
|
import '../Link_es_BnUIX0QT.js';
|
|
29
29
|
import '../Loader_es_DhNCKZ8Y.js';
|
|
@@ -6,7 +6,7 @@ import clsx from 'clsx';
|
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
|
-
import { I as Icon } from '../
|
|
9
|
+
import { I as Icon } from '../Icon_es_Xh3eVHNS.js';
|
|
10
10
|
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
11
11
|
import { S as Scrollbar } from '../Scrollbar_es_CThJeCLF.js';
|
|
12
12
|
import 'lodash/camelCase';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import React, { useRef, useMemo, createRef, useCallback, useEffect } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { I as Icon } from '../
|
|
4
|
+
import { I as Icon } from '../Icon_es_Xh3eVHNS.js';
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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_Xh3eVHNS.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';
|
|
@@ -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_Xh3eVHNS.js';
|
|
8
8
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
package/dist/components/Tab.js
CHANGED
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { B as Badge, I as Icon } from '../
|
|
7
|
+
import { B as Badge, I as Icon } from '../Icon_es_Xh3eVHNS.js';
|
|
8
8
|
import { D as Divider } from '../Divider_es_CiRU0sTz.js';
|
|
9
9
|
import { L as Link } from '../Link_es_BnUIX0QT.js';
|
|
10
10
|
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
package/dist/components/Tile.js
CHANGED
|
@@ -3,7 +3,7 @@ import clsx from 'clsx';
|
|
|
3
3
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { b as Title, B as Badge, I as Icon } from '../
|
|
6
|
+
import { b as Title, B as Badge, I as Icon } from '../Icon_es_Xh3eVHNS.js';
|
|
7
7
|
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
8
8
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'react';
|
package/dist/components/Title.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as Title, d as titleAppearance, c as titleConfig } from '../
|
|
1
|
+
export { b as Title, d as titleAppearance, c as titleConfig } from '../Icon_es_Xh3eVHNS.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../
|
|
1
|
+
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Icon_es_Xh3eVHNS.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useState, Fragment } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { I as Icon } from '../
|
|
4
|
+
import { I as Icon } from '../Icon_es_Xh3eVHNS.js';
|
|
5
5
|
import { T as Text } from '../Text_es_BvmOR4nv.js';
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
&_$(size) {
|
|
42
42
|
padding: var(--label-size-$(size)-padding);
|
|
43
43
|
gap: var(--label-size-$(size)-gap);
|
|
44
|
+
min-height: var(--label-size-$(size)-min-height);
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
}
|
|
@@ -67,10 +68,23 @@ div.label {
|
|
|
67
68
|
:root {
|
|
68
69
|
--label-size-xxl-padding: 10px 10px;
|
|
69
70
|
--label-size-xxl-gap: 8px;
|
|
71
|
+
--label-size-xxl-min-height: 40px;
|
|
72
|
+
|
|
70
73
|
--label-size-xl-padding: 7px 8px;
|
|
74
|
+
--label-size-xl-min-height: 32px;
|
|
75
|
+
|
|
71
76
|
--label-size-l-padding: 4px 6px;
|
|
77
|
+
--label-size-l-min-height: 28px;
|
|
78
|
+
|
|
72
79
|
--label-size-m-padding: 2px 8px;
|
|
80
|
+
--label-size-m-min-height: 24px;
|
|
81
|
+
|
|
73
82
|
--label-size-s-padding: 2px 6px;
|
|
83
|
+
--label-size-s-min-height: 18px;
|
|
84
|
+
|
|
74
85
|
--label-size-xs-padding: 0px 4px;
|
|
86
|
+
--label-size-xs-min-height: 16px;
|
|
87
|
+
|
|
75
88
|
--label-size-xxs-padding: 0px 4px;
|
|
89
|
+
--label-size-xxs-min-height: 12px;
|
|
76
90
|
}
|
|
@@ -8,6 +8,31 @@
|
|
|
8
8
|
left: 0;
|
|
9
9
|
top: 0;
|
|
10
10
|
z-index: 1000000;
|
|
11
|
+
&__content {
|
|
12
|
+
width: 100%;
|
|
13
|
+
min-width: 200px;
|
|
14
|
+
min-height: 200px;
|
|
15
|
+
max-width: var(--modal-max-width);
|
|
16
|
+
position: relative;
|
|
17
|
+
z-index: 100;
|
|
18
|
+
&:focus {
|
|
19
|
+
outline: 0;
|
|
20
|
+
}
|
|
21
|
+
&-wrapper {
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
&__header {
|
|
26
|
+
position: relative;
|
|
27
|
+
display: flex;
|
|
28
|
+
^&__title {
|
|
29
|
+
flex: 1;
|
|
30
|
+
}
|
|
31
|
+
^&__close {
|
|
32
|
+
z-index: 1;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
11
36
|
&__overlay {
|
|
12
37
|
z-index: -1;
|
|
13
38
|
}
|
|
@@ -15,30 +40,22 @@
|
|
|
15
40
|
display: flex;
|
|
16
41
|
}
|
|
17
42
|
}
|
|
18
|
-
.modal
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
outline: 0;
|
|
35
|
-
}
|
|
36
|
-
&__close {
|
|
37
|
-
position: relative;
|
|
38
|
-
z-index: 1;
|
|
39
|
-
}
|
|
40
|
-
&__wrapper {
|
|
41
|
-
width: 100%;
|
|
43
|
+
.modal {
|
|
44
|
+
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
45
|
+
&_size_$(size) {
|
|
46
|
+
min-width: var(--modal-$(size)-min-width);
|
|
47
|
+
min-height: var(--modal-$(size)-min-height);
|
|
48
|
+
padding: var(--modal-$(size)-padding) 0;
|
|
49
|
+
^&__header {
|
|
50
|
+
padding: 0 var(--modal-$(size)-padding);
|
|
51
|
+
gap: var(--modal-$(size)-gap);
|
|
52
|
+
}
|
|
53
|
+
^&__content {
|
|
54
|
+
&-wrapper {
|
|
55
|
+
padding: var(--modal-$(size)-padding) 0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
42
59
|
}
|
|
43
60
|
}
|
|
44
61
|
.modal {
|
|
@@ -58,6 +75,24 @@
|
|
|
58
75
|
}
|
|
59
76
|
}
|
|
60
77
|
:root {
|
|
61
|
-
--modal-
|
|
62
|
-
--modal-
|
|
78
|
+
--modal-max-width: 500px;
|
|
79
|
+
--modal-xl-padding: 24px;
|
|
80
|
+
--modal-xl-gap: 24px;
|
|
81
|
+
--modal-xl-min-width: 500px;
|
|
82
|
+
--modal-xl-min-height: 240px;
|
|
83
|
+
|
|
84
|
+
--modal-l-padding: 24px;
|
|
85
|
+
--modal-l-gap: 24px;
|
|
86
|
+
--modal-l-min-width: 500px;
|
|
87
|
+
--modal-l-min-height: 240px;
|
|
88
|
+
|
|
89
|
+
--modal-m-padding: 24px;
|
|
90
|
+
--modal-m-gap: 24px;
|
|
91
|
+
--modal-m-min-width: 500px;
|
|
92
|
+
--modal-m-min-height: 240px;
|
|
93
|
+
|
|
94
|
+
--modal-s-padding: 24px;
|
|
95
|
+
--modal-s-gap: 24px;
|
|
96
|
+
--modal-s-min-width: 320px;
|
|
97
|
+
--modal-s-min-height: 240px;
|
|
63
98
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
|
|
1
|
+
declare const labelAppearanceDisabled: {
|
|
2
|
+
disabledMutedPrimary: {
|
|
3
3
|
fill: string;
|
|
4
4
|
labelTextColor: string;
|
|
5
5
|
borderColor: string;
|
|
6
6
|
iconAfterFillIcon: string;
|
|
7
7
|
iconBeforeFillIcon: string;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
disabledPrimary: {
|
|
10
10
|
fill: string;
|
|
11
11
|
labelTextColor: string;
|
|
12
12
|
borderColor: string;
|
|
@@ -14,4 +14,4 @@ declare const labelAppearanceDisable: {
|
|
|
14
14
|
iconBeforeFillIcon: string;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
export {
|
|
17
|
+
export { labelAppearanceDisabled };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const modalAppearanceShape: {
|
|
2
|
+
circular: {
|
|
3
|
+
shape: string;
|
|
4
|
+
};
|
|
5
|
+
rounded: {
|
|
6
|
+
shape: string;
|
|
7
|
+
};
|
|
8
|
+
roundedS: {
|
|
9
|
+
shape: string;
|
|
10
|
+
shapeStrength: string;
|
|
11
|
+
};
|
|
12
|
+
roundedM: {
|
|
13
|
+
shape: string;
|
|
14
|
+
shapeStrength: string;
|
|
15
|
+
};
|
|
16
|
+
roundedL: {
|
|
17
|
+
shape: string;
|
|
18
|
+
shapeStrength: string;
|
|
19
|
+
};
|
|
20
|
+
roundedXL: {
|
|
21
|
+
shape: string;
|
|
22
|
+
shapeStrength: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export { modalAppearanceShape };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const modalAppearanceSize: {
|
|
2
|
+
sizeXL: {
|
|
3
|
+
size: string;
|
|
4
|
+
titleTextSize: string;
|
|
5
|
+
closeIconImage: string;
|
|
6
|
+
closeIconSize: string;
|
|
7
|
+
};
|
|
8
|
+
sizeL: {
|
|
9
|
+
size: string;
|
|
10
|
+
titleTextSize: string;
|
|
11
|
+
closeIconImage: string;
|
|
12
|
+
closeIconSize: string;
|
|
13
|
+
};
|
|
14
|
+
sizeM: {
|
|
15
|
+
size: string;
|
|
16
|
+
titleTextSize: string;
|
|
17
|
+
closeIconImage: string;
|
|
18
|
+
closeIconSize: string;
|
|
19
|
+
};
|
|
20
|
+
sizeS: {
|
|
21
|
+
size: string;
|
|
22
|
+
titleTextSize: string;
|
|
23
|
+
closeIconImage: string;
|
|
24
|
+
closeIconSize: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export { modalAppearanceSize };
|
|
@@ -1,55 +1,41 @@
|
|
|
1
1
|
declare const titleAppearanceSize: {
|
|
2
|
-
|
|
2
|
+
h1: {
|
|
3
3
|
size: string;
|
|
4
|
-
labelTextSize: string;
|
|
5
4
|
iconAfterFillSize: string;
|
|
6
5
|
iconAfterSize: string;
|
|
7
6
|
iconBeforeFillSize: string;
|
|
8
7
|
iconBeforeSize: string;
|
|
9
8
|
};
|
|
10
|
-
|
|
9
|
+
h2: {
|
|
11
10
|
size: string;
|
|
12
|
-
labelTextSize: string;
|
|
13
11
|
iconAfterFillSize: string;
|
|
14
12
|
iconAfterSize: string;
|
|
15
13
|
iconBeforeFillSize: string;
|
|
16
14
|
iconBeforeSize: string;
|
|
17
15
|
};
|
|
18
|
-
|
|
16
|
+
h3: {
|
|
19
17
|
size: string;
|
|
20
|
-
labelTextSize: string;
|
|
21
18
|
iconAfterFillSize: string;
|
|
22
19
|
iconAfterSize: string;
|
|
23
20
|
iconBeforeFillSize: string;
|
|
24
21
|
iconBeforeSize: string;
|
|
25
22
|
};
|
|
26
|
-
|
|
23
|
+
h4: {
|
|
27
24
|
size: string;
|
|
28
|
-
labelTextSize: string;
|
|
29
25
|
iconAfterFillSize: string;
|
|
30
26
|
iconAfterSize: string;
|
|
31
27
|
iconBeforeFillSize: string;
|
|
32
28
|
iconBeforeSize: string;
|
|
33
29
|
};
|
|
34
|
-
|
|
30
|
+
h5: {
|
|
35
31
|
size: string;
|
|
36
|
-
labelTextSize: string;
|
|
37
32
|
iconAfterFillSize: string;
|
|
38
33
|
iconAfterSize: string;
|
|
39
34
|
iconBeforeFillSize: string;
|
|
40
35
|
iconBeforeSize: string;
|
|
41
36
|
};
|
|
42
|
-
|
|
37
|
+
h6: {
|
|
43
38
|
size: string;
|
|
44
|
-
labelTextSize: string;
|
|
45
|
-
iconAfterFillSize: string;
|
|
46
|
-
iconAfterSize: string;
|
|
47
|
-
iconBeforeFillSize: string;
|
|
48
|
-
iconBeforeSize: string;
|
|
49
|
-
};
|
|
50
|
-
sizeXXS: {
|
|
51
|
-
size: string;
|
|
52
|
-
labelTextSize: string;
|
|
53
39
|
iconAfterFillSize: string;
|
|
54
40
|
iconAfterSize: string;
|
|
55
41
|
iconBeforeFillSize: string;
|