@itcase/ui 1.3.27 → 1.3.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Badge-CcaG-4ly.js → Badge-5gtVywXB.js} +4 -6
- package/dist/{Badge-CoHPvO35.js → Badge-DhOJoJgc.js} +4 -6
- package/dist/{Button-BFX_EEum.js → Button-BSnodY9v.js} +2 -2
- package/dist/{Button-BSzqA8CB.js → Button-Kcw2DdY0.js} +2 -2
- package/dist/{Group-BQ4Ic0jX.js → Group-BY8OkVsS.js} +1 -1
- package/dist/{Group-DT1ukQCn.js → Group-c3ZkPu8e.js} +1 -1
- package/dist/{Icon-BZa8B7te.js → Icon-BdHr6E6M.js} +1 -1
- package/dist/{Icon-B_bS-o4g.js → Icon-pUvizy3W.js} +1 -1
- package/dist/{Label-HKRKV3mn.js → Label-CBwPiUuf.js} +1 -1
- package/dist/{Label-DQyB2ThM.js → Label-DgyUhGTQ.js} +1 -1
- package/dist/{Overlay-DcGWchjp.js → Overlay-B9nOIfLe.js} +2 -2
- package/dist/{Overlay-CCx7yAPc.js → Overlay-Yf9EEclM.js} +2 -2
- package/dist/{Title-DBaHcpvB.js → Title-BfKF5WvZ.js} +2 -2
- package/dist/{Title-CHgrIarR.js → Title-C7Qv9WfS.js} +2 -2
- package/dist/{Tooltip-1Jbub0K6.js → Tooltip-AodzD-7D.js} +1 -1
- package/dist/{Tooltip-CNua1g76.js → Tooltip-BDEyAnd-.js} +1 -1
- package/dist/cjs/components/Accordion.js +3 -3
- package/dist/cjs/components/Avatar.js +3 -3
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs.js +3 -3
- package/dist/cjs/components/Button.js +4 -4
- package/dist/cjs/components/Cell.js +4 -4
- package/dist/cjs/components/Choice.js +3 -3
- package/dist/cjs/components/CookiesWarning.js +5 -5
- package/dist/cjs/components/DatePicker.js +5 -5
- package/dist/cjs/components/Drawer.js +2 -2
- package/dist/cjs/components/Flex.js +4 -4
- package/dist/cjs/components/Grid.js +4 -4
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/Icon.js +3 -3
- package/dist/cjs/components/InputPassword.js +3 -3
- package/dist/cjs/components/Label.js +3 -3
- package/dist/cjs/components/Modal.js +3 -3
- package/dist/cjs/components/ModalSheetBottom.js +2 -2
- package/dist/cjs/components/Notification.js +2 -2
- package/dist/cjs/components/Overlay.js +1 -1
- package/dist/cjs/components/Pagination.js +3 -3
- package/dist/cjs/components/Panel.js +1 -1
- package/dist/cjs/components/Response.js +7 -7
- package/dist/cjs/components/Search.js +3 -3
- package/dist/cjs/components/Select.js +5 -5
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Tile.js +4 -4
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +2 -2
- package/dist/components/Accordion.js +3 -3
- package/dist/components/Avatar.js +3 -3
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs.js +3 -3
- package/dist/components/Button.js +4 -4
- package/dist/components/Cell.js +4 -4
- package/dist/components/Choice.js +3 -3
- package/dist/components/CookiesWarning.js +5 -5
- package/dist/components/DatePicker.js +5 -5
- package/dist/components/Drawer.js +2 -2
- package/dist/components/Flex.js +4 -4
- package/dist/components/Grid.js +4 -4
- package/dist/components/Group.js +1 -1
- package/dist/components/Icon.js +3 -3
- package/dist/components/InputPassword.js +3 -3
- package/dist/components/Label.js +3 -3
- package/dist/components/Modal.js +3 -3
- package/dist/components/ModalSheetBottom.js +2 -2
- package/dist/components/Notification.js +2 -2
- package/dist/components/Overlay.js +1 -1
- package/dist/components/Pagination.js +3 -3
- package/dist/components/Panel.js +1 -1
- package/dist/components/Response.js +7 -7
- package/dist/components/Search.js +3 -3
- package/dist/components/Select.js +5 -5
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Tile.js +4 -4
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +2 -2
- package/package.json +1 -3
- package/dist/cjs/components/Caption.js +0 -28
- package/dist/cjs/components/SiteMenu.js +0 -87
- package/dist/cjs/components/Wrapper.js +0 -28
- package/dist/components/Caption.js +0 -26
- package/dist/components/SiteMenu.js +0 -82
- package/dist/components/Wrapper.js +0 -26
- package/dist/css/components/Caption/Caption.css +0 -22
- package/dist/css/components/SiteMenu/SiteMenu.css +0 -37
- package/dist/css/components/Wrapper/Wrapper.css +0 -36
- package/dist/types/components/Caption/Caption.d.ts +0 -3
- package/dist/types/components/Caption/Caption.interface.d.ts +0 -22
- package/dist/types/components/Caption/index.d.ts +0 -1
- package/dist/types/components/SiteMenu/SiteMenu.appearance.d.ts +0 -2
- package/dist/types/components/SiteMenu/SiteMenu.d.ts +0 -4
- package/dist/types/components/SiteMenu/SiteMenu.interface.d.ts +0 -39
- package/dist/types/components/SiteMenu/SiteMenuButton.d.ts +0 -3
- package/dist/types/components/SiteMenu/index.d.ts +0 -4
- package/dist/types/components/Wrapper/Wrapper.d.ts +0 -3
- package/dist/types/components/Wrapper/Wrapper.interface.d.ts +0 -21
- package/dist/types/components/Wrapper/index.d.ts +0 -1
package/dist/components/Grid.js
CHANGED
|
@@ -26,19 +26,19 @@ function Grid(props) {
|
|
|
26
26
|
function GridItem(props) {
|
|
27
27
|
var id = props.id, children = props.children, className = props.className, dataTour = props.dataTour, style = props.style, onClick = props.onClick;
|
|
28
28
|
var classGenerator = useDeviceTargetClassGenerator(props);
|
|
29
|
-
var alignSelfClass = classGenerator.alignSelfClass, columnEndClass = classGenerator.columnEndClass, columnGapClass = classGenerator.columnGapClass, columnSpanClass = classGenerator.columnSpanClass, columnStartClass = classGenerator.columnStartClass, directionClass = classGenerator.directionClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, gapClass = classGenerator.gapClass, heightClass = classGenerator.heightClass, justifySelfClass = classGenerator.justifySelfClass, orderClass = classGenerator.orderClass, rowEndClass = classGenerator.rowEndClass, rowGapClass = classGenerator.rowGapClass, rowSpanClass = classGenerator.rowSpanClass, rowStartClass = classGenerator.rowStartClass, widthClass = classGenerator.widthClass;
|
|
29
|
+
var alignSelfClass = classGenerator.alignSelfClass, columnEndClass = classGenerator.columnEndClass, dataTestId = classGenerator.dataTestId, dataTour = classGenerator.dataTour, columnGapClass = classGenerator.columnGapClass, columnSpanClass = classGenerator.columnSpanClass, columnStartClass = classGenerator.columnStartClass, directionClass = classGenerator.directionClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, gapClass = classGenerator.gapClass, heightClass = classGenerator.heightClass, justifySelfClass = classGenerator.justifySelfClass, orderClass = classGenerator.orderClass, rowEndClass = classGenerator.rowEndClass, rowGapClass = classGenerator.rowGapClass, rowSpanClass = classGenerator.rowSpanClass, rowStartClass = classGenerator.rowStartClass, widthClass = classGenerator.widthClass;
|
|
30
30
|
// @ts-expect-error
|
|
31
31
|
var gridItemStyles = useStyles(props).styles;
|
|
32
|
-
return (jsx("div", { className: clsx(className, 'grid__item', orderClass && "order_".concat(orderClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), alignSelfClass && "grid__item_align-self_".concat(alignSelfClass), justifySelfClass && "grid__item_justify-self_".concat(justifySelfClass), columnStartClass && "grid__item_column-start_".concat(columnStartClass), columnEndClass && "grid__item_column-end_".concat(columnEndClass), columnSpanClass && "grid__item_column-span_".concat(columnSpanClass), rowStartClass && "grid__item_row-start_".concat(rowStartClass), rowEndClass && "grid__item_row-end_".concat(rowEndClass), rowSpanClass && "grid__item_row-span_".concat(rowSpanClass), directionClass && "direction_".concat(directionClass), gapClass && "gap_".concat(gapClass), widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), rowGapClass && "row-gap_".concat(rowGapClass), columnGapClass && "column-gap_".concat(columnGapClass)), "data-tour": dataTour, id: id, style: Object.assign({}, gridItemStyles, style), onClick: onClick, children: children }));
|
|
32
|
+
return (jsx("div", { className: clsx(className, 'grid__item', orderClass && "order_".concat(orderClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), alignSelfClass && "grid__item_align-self_".concat(alignSelfClass), justifySelfClass && "grid__item_justify-self_".concat(justifySelfClass), columnStartClass && "grid__item_column-start_".concat(columnStartClass), columnEndClass && "grid__item_column-end_".concat(columnEndClass), columnSpanClass && "grid__item_column-span_".concat(columnSpanClass), rowStartClass && "grid__item_row-start_".concat(rowStartClass), rowEndClass && "grid__item_row-end_".concat(rowEndClass), rowSpanClass && "grid__item_row-span_".concat(rowSpanClass), directionClass && "direction_".concat(directionClass), gapClass && "gap_".concat(gapClass), widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), rowGapClass && "row-gap_".concat(rowGapClass), columnGapClass && "column-gap_".concat(columnGapClass)), "data-testid": dataTestId, "data-tour": dataTour, id: id, style: Object.assign({}, gridItemStyles, style), onClick: onClick, children: children }));
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
function GridRow(props) {
|
|
36
|
-
var id = props.id, children = props.children, className = props.className, dataTour = props.dataTour, htmlFor = props.htmlFor, style = props.style, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, onClick = props.onClick;
|
|
36
|
+
var id = props.id, dataTestId = props.dataTestId, children = props.children, className = props.className, dataTour = props.dataTour, htmlFor = props.htmlFor, style = props.style, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, onClick = props.onClick;
|
|
37
37
|
var classGenerator = useDeviceTargetClassGenerator(props);
|
|
38
38
|
var borderColorClass = classGenerator.borderColorClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass;
|
|
39
39
|
// @ts-expect-error
|
|
40
40
|
var gridRowStyles = useStyles(props).styles;
|
|
41
|
-
return (jsx(Tag, { className: clsx(className, 'grid__row', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), borderColorClass && "border-color_".concat(borderColorClass)), "data-tour": dataTour, htmlFor: htmlFor, id: id, style: Object.assign({}, gridRowStyles, style), onClick: onClick, children: children }));
|
|
41
|
+
return (jsx(Tag, { className: clsx(className, 'grid__row', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), borderColorClass && "border-color_".concat(borderColorClass)), "data-testid": dataTestId, "data-tour": dataTour, htmlFor: htmlFor, id: id, style: Object.assign({}, gridRowStyles, style), onClick: onClick, children: children }));
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export { Grid, GridItem, GridRow };
|
package/dist/components/Group.js
CHANGED
package/dist/components/Icon.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as Icon, a as iconAppearance, i as iconConfig } from '../Icon-
|
|
1
|
+
export { I as Icon, a as iconAppearance, i as iconConfig } from '../Icon-BdHr6E6M.js';
|
|
2
2
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -16,6 +16,6 @@ import 'lodash/maxBy';
|
|
|
16
16
|
import 'lodash/upperFirst';
|
|
17
17
|
import '../hooks/styleAttributes.js';
|
|
18
18
|
import '../Link-DN2LhPjD.js';
|
|
19
|
-
import '../Tooltip-
|
|
19
|
+
import '../Tooltip-AodzD-7D.js';
|
|
20
20
|
import '../Text-JayJa3hj.js';
|
|
21
|
-
import '../Title-
|
|
21
|
+
import '../Title-C7Qv9WfS.js';
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useState, useMemo, useCallback } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
5
|
-
import { I as Icon } from '../Icon-
|
|
5
|
+
import { I as Icon } from '../Icon-BdHr6E6M.js';
|
|
6
6
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/castArray';
|
|
@@ -16,9 +16,9 @@ import 'lodash/maxBy';
|
|
|
16
16
|
import 'lodash/upperFirst';
|
|
17
17
|
import '../hooks/styleAttributes.js';
|
|
18
18
|
import '../Link-DN2LhPjD.js';
|
|
19
|
-
import '../Tooltip-
|
|
19
|
+
import '../Tooltip-AodzD-7D.js';
|
|
20
20
|
import '../Text-JayJa3hj.js';
|
|
21
|
-
import '../Title-
|
|
21
|
+
import '../Title-C7Qv9WfS.js';
|
|
22
22
|
|
|
23
23
|
var InputPasswordAppearance = {
|
|
24
24
|
dev: {
|
package/dist/components/Label.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Label, a as labelAppearance, l as labelConfig } from '../Label-
|
|
1
|
+
export { L as Label, a as labelAppearance, l as labelConfig } from '../Label-DgyUhGTQ.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -15,5 +15,5 @@ import 'lodash/maxBy';
|
|
|
15
15
|
import 'lodash/upperFirst';
|
|
16
16
|
import '../hooks/styleAttributes.js';
|
|
17
17
|
import '../Text-JayJa3hj.js';
|
|
18
|
-
import '../Tooltip-
|
|
19
|
-
import '../Title-
|
|
18
|
+
import '../Tooltip-AodzD-7D.js';
|
|
19
|
+
import '../Title-C7Qv9WfS.js';
|
package/dist/components/Modal.js
CHANGED
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import ReactDOM from 'react-dom';
|
|
5
5
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles.js';
|
|
7
|
-
import { O as Overlay } from '../Overlay-
|
|
7
|
+
import { O as Overlay } from '../Overlay-B9nOIfLe.js';
|
|
8
8
|
import { L as Loader } from '../Loader-K_DJmah6.js';
|
|
9
9
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -50,7 +50,7 @@ var getOrCreateModalElement = function (modalQuerySelector, className) {
|
|
|
50
50
|
};
|
|
51
51
|
// Modal component that is an abstraction around the portal API.
|
|
52
52
|
var Modal = React.forwardRef(function Modal(props, ref) {
|
|
53
|
-
var id = props.id, children = props.children, _a = props.isCloseOnBlur, isCloseOnBlur = _a === void 0 ? true : _a, _b = props.isOpen, initialIsOpen = _b === void 0 ? false : _b, _c = props.isOverlay, isOverlay = _c === void 0 ? true : _c, _d = props.isScrollOnOpen, isScrollOnOpen = _d === void 0 ? true : _d, _e = props.isSetFocusOnOpen, isSetFocusOnOpen = _e === void 0 ? true : _e, appearance = props.appearance, className = props.className, closeButton = props.closeButton, contentClassName = props.contentClassName, _f = props.modalQuerySelector, modalQuerySelector = _f === void 0 ? '#modal-global' : _f, overlayClassName = props.overlayClassName, overlayFill = props.overlayFill, overlayFillGradient = props.overlayFillGradient, overlayOpacity = props.overlayOpacity, onClickOverlay = props.onClickOverlay, onCloseModal = props.onCloseModal, onOpenModal = props.onOpenModal;
|
|
53
|
+
var id = props.id, children = props.children, _a = props.isCloseOnBlur, isCloseOnBlur = _a === void 0 ? true : _a, _b = props.isOpen, initialIsOpen = _b === void 0 ? false : _b, _c = props.isOverlay, isOverlay = _c === void 0 ? true : _c, _d = props.isScrollOnOpen, isScrollOnOpen = _d === void 0 ? true : _d, _e = props.isSetFocusOnOpen, isSetFocusOnOpen = _e === void 0 ? true : _e, appearance = props.appearance, className = props.className, closeButton = props.closeButton, contentClassName = props.contentClassName, _f = props.modalQuerySelector, modalQuerySelector = _f === void 0 ? '#modal-global' : _f, overlayClassName = props.overlayClassName, overlayFill = props.overlayFill, overlayFillGradient = props.overlayFillGradient, overlayOpacity = props.overlayOpacity, dataTestId = props.dataTestId, dataTour = props.dataTour, onClickOverlay = props.onClickOverlay, onCloseModal = props.onCloseModal, onOpenModal = props.onOpenModal;
|
|
54
54
|
// Query DOM element
|
|
55
55
|
var _g = useState(null), modalElement = _g[0], setModalElement = _g[1];
|
|
56
56
|
var _h = useState(initialIsOpen), isOpen = _h[0], setIsOpen = _h[1];
|
|
@@ -147,7 +147,7 @@ var Modal = React.forwardRef(function Modal(props, ref) {
|
|
|
147
147
|
return (modalElement &&
|
|
148
148
|
ReactDOM.createPortal(
|
|
149
149
|
// Any valid React child: JSX, strings, arrays, etc.
|
|
150
|
-
isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { className: clsx('modal-content', contentClassName, fillClass && "fill_".concat(fillClass), shapeClass && "modal-shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), elevationClass && "elevation_".concat(elevationClass)), ref: modalContentRef, id: id, style: modalStyles, tabIndex: 0, onBlur: isCloseOnBlur ? closeModal : undefined, children: [closeButton && (jsx("div", { className: "modal-content__close", onClick: closeModal, children: closeButton })), jsx("div", { className: "modal-content__wrapper", children: children })] }), jsx(Overlay, { className: clsx('modal__overlay', 'overlay_type_modal', overlayClassName),
|
|
150
|
+
isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { className: clsx('modal-content', contentClassName, fillClass && "fill_".concat(fillClass), shapeClass && "modal-shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), elevationClass && "elevation_".concat(elevationClass)), "data-testid": dataTestId, "data-tour": dataTour, ref: modalContentRef, id: id, style: modalStyles, tabIndex: 0, onBlur: isCloseOnBlur ? closeModal : undefined, children: [closeButton && (jsx("div", { className: "modal-content__close", onClick: closeModal, children: closeButton })), jsx("div", { className: "modal-content__wrapper", children: children })] }), jsx(Overlay, { className: clsx('modal__overlay', 'overlay_type_modal', overlayClassName),
|
|
151
151
|
// ref={modalOverlayRef}
|
|
152
152
|
fill: overlayFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.overlayFill), opacity: overlayOpacity || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.overlayOpacity), fillGradient: overlayFillGradient || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.overlayFillGradient), isOverlay: isOverlay || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.isOverlay), onClick: onClickOverlay })] })) : null,
|
|
153
153
|
// A DOM element
|
|
@@ -13,10 +13,10 @@ import '../utils/setViewportProperty.js';
|
|
|
13
13
|
import '../hooks/styleAttributes.js';
|
|
14
14
|
|
|
15
15
|
function ModalSheetBottom(props) {
|
|
16
|
-
var children = props.children, isOpenModal = props.isOpenModal, closeButton = props.closeButton, closeModal = props.closeModal;
|
|
16
|
+
var children = props.children, dataTestId = props.dataTestId, dataTour = props.dataTour, isOpenModal = props.isOpenModal, closeButton = props.closeButton, closeModal = props.closeModal;
|
|
17
17
|
// @ts-expect-error
|
|
18
18
|
var styles = useStyles(props).styles;
|
|
19
|
-
return (jsxs(Sheet, __assign({ className: "modal-sheet-bottom", isOpen: isOpenModal, onClose: closeModal }, props, { children: [jsxs(Sheet.Container, { className: "modal-sheet-bottom__container", style: styles, children: [closeButton ? (jsx("div", { className: "modal-sheet-bottom__header", children: jsx("div", { className: "modal-sheet-bottom__close", onClick: closeModal, children: closeButton }) })) : (jsx(Sheet.Header, { className: "modal-sheet-bottom__header" })), jsx(Sheet.Content, { className: "modal-sheet-bottom__content", children: children })] }), jsx(Sheet.Backdrop, { className: "modal-sheet-bottom__backdrop", onClick: closeModal })] })));
|
|
19
|
+
return (jsxs(Sheet, __assign({ "data-testid": dataTestId, "data-tour": dataTour, className: "modal-sheet-bottom", isOpen: isOpenModal, onClose: closeModal }, props, { children: [jsxs(Sheet.Container, { className: "modal-sheet-bottom__container", style: styles, children: [closeButton ? (jsx("div", { className: "modal-sheet-bottom__header", children: jsx("div", { className: "modal-sheet-bottom__close", onClick: closeModal, children: closeButton }) })) : (jsx(Sheet.Header, { className: "modal-sheet-bottom__header" })), jsx(Sheet.Content, { className: "modal-sheet-bottom__content", children: children })] }), jsx(Sheet.Backdrop, { className: "modal-sheet-bottom__backdrop", onClick: closeModal })] })));
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export { ModalSheetBottom };
|
|
@@ -57,13 +57,13 @@ var notificationItemConfig = {
|
|
|
57
57
|
},
|
|
58
58
|
};
|
|
59
59
|
function NotificationItem(props) {
|
|
60
|
-
var id = props.id, after = props.after, appearance = props.appearance, before = props.before, className = props.className, closeButton = props.closeButton, dataTour = props.dataTour, set = props.set, size = props.size, status = props.status, text = props.text, textColor = props.textColor, _a = props.textSize, textSize = _a === void 0 ? 's' : _a, title = props.title, titleTextColor = props.titleTextColor, _b = props.titleTextSize, titleTextSize = _b === void 0 ? 'm' : _b, onClickClose = props.onClickClose;
|
|
60
|
+
var id = props.id, after = props.after, appearance = props.appearance, before = props.before, className = props.className, closeButton = props.closeButton, dataTour = props.dataTour, dataTestId = props.dataTestId, set = props.set, size = props.size, status = props.status, text = props.text, textColor = props.textColor, _a = props.textSize, textSize = _a === void 0 ? 's' : _a, title = props.title, titleTextColor = props.titleTextColor, _b = props.titleTextSize, titleTextSize = _b === void 0 ? 'm' : _b, onClickClose = props.onClickClose;
|
|
61
61
|
var appearanceConfig = notificationItemConfig.appearance && notificationItemConfig.appearance[appearance];
|
|
62
62
|
var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
63
63
|
var fillClass = classGenerator.fillClass, widthClass = classGenerator.widthClass;
|
|
64
64
|
// @ts-expect-error
|
|
65
65
|
var notificationStyles = useStyles(props).styles;
|
|
66
|
-
return (jsxs("div", { className: clsx('notification__item', status && "notification__item_status_".concat(status), set && "notification__item_set_".concat(set), size && "notification__item_set_".concat(size), closeButton && 'notification__item_type_close-button', widthClass && "width_".concat(widthClass), fillClass && "fill_".concat(fillClass)), "data-tour": dataTour, style: notificationStyles, children: [before, jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsx(Text, { className: "notification__item-title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextSize), textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextColor), children: title })), text && (jsx(Text, { className: "notification__item-text", size: textSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textSize), textColor: textColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor), children: text })), closeButton && (jsx("div", { className: clsx('notification__item-close', onClickClose && 'cursor_type_pointer'), onClick: function () { return onClickClose && onClickClose(id); }, children: closeButton }))] }), after] }));
|
|
66
|
+
return (jsxs("div", { className: clsx('notification__item', status && "notification__item_status_".concat(status), set && "notification__item_set_".concat(set), size && "notification__item_set_".concat(size), closeButton && 'notification__item_type_close-button', widthClass && "width_".concat(widthClass), fillClass && "fill_".concat(fillClass)), "data-testid": dataTestId, "data-tour": dataTour, style: notificationStyles, children: [before, jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsx(Text, { className: "notification__item-title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextSize), textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextColor), children: title })), text && (jsx(Text, { className: "notification__item-text", size: textSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textSize), textColor: textColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor), children: text })), closeButton && (jsx("div", { className: clsx('notification__item-close', onClickClose && 'cursor_type_pointer'), onClick: function () { return onClickClose && onClickClose(id); }, children: closeButton }))] }), after] }));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
function NotificationList(props) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { O as Overlay, a as overlayAppearance, o as overlayConfig } from '../Overlay-
|
|
1
|
+
export { O as Overlay, a as overlayAppearance, o as overlayConfig } from '../Overlay-B9nOIfLe.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useDeviceTargetClassGenerator.js';
|
|
@@ -5,7 +5,7 @@ import ceil from 'lodash/ceil';
|
|
|
5
5
|
import ReactPaginate from 'react-paginate';
|
|
6
6
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
7
7
|
import { D as Dropdown, a as DropdownItem } from '../DropdownItem-Bq-oPnWX.js';
|
|
8
|
-
import { I as Icon } from '../Icon-
|
|
8
|
+
import { I as Icon } from '../Icon-BdHr6E6M.js';
|
|
9
9
|
import { T as Text } from '../Text-JayJa3hj.js';
|
|
10
10
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
@@ -21,8 +21,8 @@ import '../hooks/styleAttributes.js';
|
|
|
21
21
|
import '../Divider-DBvDCUqP.js';
|
|
22
22
|
import '../Link-DN2LhPjD.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
|
-
import '../Tooltip-
|
|
25
|
-
import '../Title-
|
|
24
|
+
import '../Tooltip-AodzD-7D.js';
|
|
25
|
+
import '../Title-C7Qv9WfS.js';
|
|
26
26
|
|
|
27
27
|
var paginationAppearance = {
|
|
28
28
|
default: {
|
package/dist/components/Panel.js
CHANGED
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles.js';
|
|
6
|
-
import { G as Group } from '../Group-
|
|
6
|
+
import { G as Group } from '../Group-c3ZkPu8e.js';
|
|
7
7
|
import { T as Text } from '../Text-JayJa3hj.js';
|
|
8
8
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
@@ -5,8 +5,8 @@ import clsx from 'clsx';
|
|
|
5
5
|
import SVG from 'react-inlinesvg';
|
|
6
6
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles.js';
|
|
8
|
-
import { B as Button } from '../Button-
|
|
9
|
-
import { G as Group } from '../Group-
|
|
8
|
+
import { B as Button } from '../Button-Kcw2DdY0.js';
|
|
9
|
+
import { G as Group } from '../Group-c3ZkPu8e.js';
|
|
10
10
|
import { T as Text } from '../Text-JayJa3hj.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
12
12
|
import 'lodash/castArray';
|
|
@@ -17,10 +17,10 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
import 'lodash/maxBy';
|
|
18
18
|
import 'lodash/upperFirst';
|
|
19
19
|
import '../hooks/styleAttributes.js';
|
|
20
|
-
import '../Icon-
|
|
20
|
+
import '../Icon-BdHr6E6M.js';
|
|
21
21
|
import '../Link-DN2LhPjD.js';
|
|
22
|
-
import '../Tooltip-
|
|
23
|
-
import '../Title-
|
|
22
|
+
import '../Tooltip-AodzD-7D.js';
|
|
23
|
+
import '../Title-C7Qv9WfS.js';
|
|
24
24
|
import '../Loader-K_DJmah6.js';
|
|
25
25
|
|
|
26
26
|
var img$7 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M85.7155 56.9042L54.1865 115.911C53.0219 118.09 54.5678 121.43 58.4708 121.43H121.529C125.432 121.43 126.978 118.09 125.814 115.911L94.2845 56.9043C93.5012 55.4392 91.8762 54.57 89.9998 54.57C88.1237 54.57 86.4986 55.439 85.7155 56.9042ZM89.9998 48C93.9317 48 98.1142 49.8644 100.253 53.8659L131.782 112.873C135.732 120.266 129.482 128 121.529 128H58.4708C50.5181 128 44.2675 120.266 48.2181 112.873L79.7471 53.866C81.8855 49.8645 86.0683 48 89.9998 48ZM90.0002 74.0886C91.8588 74.0886 93.3658 75.5593 93.3658 77.3736V92.8756C93.3658 94.6897 91.8588 96.1606 90.0002 96.1606C88.1411 96.1606 86.6345 94.6897 86.6345 92.8756V77.3736C86.6345 75.5593 88.1411 74.0886 90.0002 74.0886ZM93.3658 108.377C93.3658 106.563 91.8588 105.092 90.0002 105.092C88.1411 105.092 86.6345 106.563 86.6345 108.377V108.457C86.6345 110.271 88.1411 111.742 90.0002 111.742C91.8588 111.742 93.3658 110.271 93.3658 108.457V108.377Z' fill='%23747474'/%3e%3c/svg%3e";
|
|
@@ -247,7 +247,7 @@ function Response(props) {
|
|
|
247
247
|
// @ts-expect-error
|
|
248
248
|
var appearanceConfig = responseConfig.appearance && responseConfig.appearance[appearance];
|
|
249
249
|
var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
250
|
-
var borderColorClass = classGenerator.borderColorClass, borderColorHoverClass = classGenerator.borderColorHoverClass, borderTypeClass = classGenerator.borderTypeClass, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, shapeClass = classGenerator.shapeClass, svgFillClass = classGenerator.svgFillClass, svgPathFillClass = classGenerator.svgPathFillClass, textAlignClass = classGenerator.textAlignClass;
|
|
250
|
+
var borderColorClass = classGenerator.borderColorClass, borderColorHoverClass = classGenerator.borderColorHoverClass, borderTypeClass = classGenerator.borderTypeClass, dataTestId = classGenerator.dataTestId, dataTour = classGenerator.dataTour, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, shapeClass = classGenerator.shapeClass, svgFillClass = classGenerator.svgFillClass, svgPathFillClass = classGenerator.svgPathFillClass, textAlignClass = classGenerator.textAlignClass;
|
|
251
251
|
var ImageComponent = useMemo(function () {
|
|
252
252
|
var src = imageSrc || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.imageSrc) || svgSrc || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.svgSrc);
|
|
253
253
|
var Image = SvgImage || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.SvgImage);
|
|
@@ -276,7 +276,7 @@ function Response(props) {
|
|
|
276
276
|
}, [imageSrc, appearanceConfig, SvgImage, width, height, svgFillClass]);
|
|
277
277
|
// @ts-expect-error
|
|
278
278
|
var _a = useStyles(props), responseStyles = _a.styles, wrapperStyles = _a.wrapper;
|
|
279
|
-
return (jsxs("div", { className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), set && "response_set_".concat(set)), style: responseStyles, children: [before, jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [jsx("div", { className: clsx('response__image', svgFillClass && "svg_fill_".concat(svgFillClass), svgPathFillClass && "svg_path_fill_".concat(svgPathFillClass)), children: ImageComponent }), jsxs(Group, { className: clsx('response__desc', textAlignClass && "text-align_".concat(textAlignClass)), width: "fill", children: [title && (jsx(Text, { className: "response__title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextSize) || 'xxl', textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextColor), textWeight: titleTextWeight || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextWeight) || '400', children: title })), message && (jsx(Text, { className: "response__message", size: messageTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.messageTextSize) || 'm', textColor: messageTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.messageTextColor), textWeight: messageTextWeight || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.messageTextWeight), children: message }))] })] }), (primaryButtonLabel ||
|
|
279
|
+
return (jsxs("div", { className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), set && "response_set_".concat(set)), "data-testid": dataTestId, "data-tour": dataTour, style: responseStyles, children: [before, jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [jsx("div", { className: clsx('response__image', svgFillClass && "svg_fill_".concat(svgFillClass), svgPathFillClass && "svg_path_fill_".concat(svgPathFillClass)), children: ImageComponent }), jsxs(Group, { className: clsx('response__desc', textAlignClass && "text-align_".concat(textAlignClass)), width: "fill", children: [title && (jsx(Text, { className: "response__title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextSize) || 'xxl', textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextColor), textWeight: titleTextWeight || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextWeight) || '400', children: title })), message && (jsx(Text, { className: "response__message", size: messageTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.messageTextSize) || 'm', textColor: messageTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.messageTextColor), textWeight: messageTextWeight || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.messageTextWeight), children: message }))] })] }), (primaryButtonLabel ||
|
|
280
280
|
primaryButton ||
|
|
281
281
|
secondaryButtonLabel ||
|
|
282
282
|
secondaryButton ||
|
|
@@ -3,7 +3,7 @@ import React, { useCallback } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles.js';
|
|
6
|
-
import { I as Icon } from '../Icon-
|
|
6
|
+
import { I as Icon } from '../Icon-BdHr6E6M.js';
|
|
7
7
|
import { T as Text } from '../Text-JayJa3hj.js';
|
|
8
8
|
import { S as Scrollbar } from '../Scrollbar-Bo7z7ELm.js';
|
|
9
9
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
@@ -18,8 +18,8 @@ import 'lodash/upperFirst';
|
|
|
18
18
|
import '../hooks/styleAttributes.js';
|
|
19
19
|
import 'react-inlinesvg';
|
|
20
20
|
import '../Link-DN2LhPjD.js';
|
|
21
|
-
import '../Tooltip-
|
|
22
|
-
import '../Title-
|
|
21
|
+
import '../Tooltip-AodzD-7D.js';
|
|
22
|
+
import '../Title-C7Qv9WfS.js';
|
|
23
23
|
import 'react-scrollbars-custom';
|
|
24
24
|
|
|
25
25
|
var searchAppearance = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { _ as __assign } from '../tslib.es6-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 } from '../Icon-
|
|
4
|
+
import { I as Icon } from '../Icon-BdHr6E6M.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
8
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
9
9
|
import { T as Text } from '../Text-JayJa3hj.js';
|
|
10
|
-
import { B as Badge } from '../Badge-
|
|
11
|
-
import { G as Group } from '../Group-
|
|
10
|
+
import { B as Badge } from '../Badge-5gtVywXB.js';
|
|
11
|
+
import { G as Group } from '../Group-c3ZkPu8e.js';
|
|
12
12
|
import { D as Divider } from '../Divider-DBvDCUqP.js';
|
|
13
13
|
import 'react-inlinesvg';
|
|
14
14
|
import '../hooks/useStyles.js';
|
|
@@ -21,8 +21,8 @@ import 'react-responsive';
|
|
|
21
21
|
import '../utils/setViewportProperty.js';
|
|
22
22
|
import '../hooks/styleAttributes.js';
|
|
23
23
|
import '../Link-DN2LhPjD.js';
|
|
24
|
-
import '../Tooltip-
|
|
25
|
-
import '../Title-
|
|
24
|
+
import '../Tooltip-AodzD-7D.js';
|
|
25
|
+
import '../Title-C7Qv9WfS.js';
|
|
26
26
|
import 'lodash/castArray';
|
|
27
27
|
|
|
28
28
|
// interface ClearIndicatorProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>>
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
|
|
5
5
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles.js';
|
|
7
|
-
import { T as Title } from '../Title-
|
|
7
|
+
import { T as Title } from '../Title-C7Qv9WfS.js';
|
|
8
8
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
package/dist/components/Tab.js
CHANGED
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles.js';
|
|
6
|
-
import { B as Badge } from '../Badge-
|
|
6
|
+
import { B as Badge } from '../Badge-5gtVywXB.js';
|
|
7
7
|
import { D as Divider } from '../Divider-DBvDCUqP.js';
|
|
8
8
|
import { a as Link } from '../Link-DN2LhPjD.js';
|
|
9
9
|
import { T as Text } from '../Text-JayJa3hj.js';
|
package/dist/components/Tile.js
CHANGED
|
@@ -2,9 +2,9 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
4
4
|
import { useStyles } from '../hooks/useStyles.js';
|
|
5
|
-
import { B as Badge } from '../Badge-
|
|
5
|
+
import { B as Badge } from '../Badge-5gtVywXB.js';
|
|
6
6
|
import { T as Text } from '../Text-JayJa3hj.js';
|
|
7
|
-
import { T as Title } from '../Title-
|
|
7
|
+
import { T as Title } from '../Title-C7Qv9WfS.js';
|
|
8
8
|
import '../tslib.es6-Bwu1Cn-t.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -32,10 +32,10 @@ function Tile(props) {
|
|
|
32
32
|
// @ts-expect-error
|
|
33
33
|
var appearanceConfig = tileConfig.appearance && tileConfig.appearance[appearance];
|
|
34
34
|
var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
35
|
-
var alignClass = classGenerator.alignClass, alignDirectionClass = classGenerator.alignDirectionClass, borderColorClass = classGenerator.borderColorClass, borderColorHoverClass = classGenerator.borderColorHoverClass, borderTypeClass = classGenerator.borderTypeClass, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, shapeClass = classGenerator.shapeClass;
|
|
35
|
+
var alignClass = classGenerator.alignClass, alignDirectionClass = classGenerator.alignDirectionClass, borderColorClass = classGenerator.borderColorClass, borderColorHoverClass = classGenerator.borderColorHoverClass, borderTypeClass = classGenerator.borderTypeClass, dataTestId = classGenerator.dataTestId, dataTour = classGenerator.dataTour, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, shapeClass = classGenerator.shapeClass;
|
|
36
36
|
// @ts-expect-error
|
|
37
37
|
var tileStyles = useStyles(props).styles;
|
|
38
|
-
return (jsx("div", { className: clsx('tile', className, fillClass && "fill_".concat(fillClass), shapeClass && "tile_shape_".concat(shapeClass), alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), direction && "direction_".concat(direction), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), reverse && 'tile_reverse', size && "tile_size_".concat(size), type && "tile_type_".concat(type), badge && "tile_state_badge"), style: tileStyles, onClick: onClick, children: jsxs("div", { className: clsx('tile__wrapper', alignClass, alignDirectionClass), children: [before, title && (jsx(Title, { className: "tile__title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextSize), textAlign: titleTextAlign, textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextColor), textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), text && (jsx(Text, { className: "tile__text", size: textSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textSize), textColor: textColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor), textWrap: textWrap, children: text })), badge && (jsx(Badge, { className: "tile__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, value: badge })), children, after] }) }));
|
|
38
|
+
return (jsx("div", { className: clsx('tile', className, fillClass && "fill_".concat(fillClass), shapeClass && "tile_shape_".concat(shapeClass), alignClass && "align_".concat(alignClass), alignDirectionClass && "align_".concat(alignDirectionClass), direction && "direction_".concat(direction), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), reverse && 'tile_reverse', size && "tile_size_".concat(size), type && "tile_type_".concat(type), badge && "tile_state_badge"), style: tileStyles, onClick: onClick, "data-testid": dataTestId, "data-tour": dataTour, children: jsxs("div", { className: clsx('tile__wrapper', alignClass, alignDirectionClass), children: [before, title && (jsx(Title, { className: "tile__title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextSize), textAlign: titleTextAlign, textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextColor), textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), text && (jsx(Text, { className: "tile__text", size: textSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textSize), textColor: textColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor), textWrap: textWrap, children: text })), badge && (jsx(Badge, { className: "tile__badge", appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, value: badge })), children, after] }) }));
|
|
39
39
|
}
|
|
40
40
|
Tile.defaultProps = {
|
|
41
41
|
alignDirection: 'vertical',
|
package/dist/components/Title.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip-
|
|
1
|
+
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip-AodzD-7D.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -15,4 +15,4 @@ import 'lodash/maxBy';
|
|
|
15
15
|
import 'lodash/upperFirst';
|
|
16
16
|
import '../hooks/styleAttributes.js';
|
|
17
17
|
import '../Text-JayJa3hj.js';
|
|
18
|
-
import '../Title-
|
|
18
|
+
import '../Title-C7Qv9WfS.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.29",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -121,8 +121,6 @@
|
|
|
121
121
|
},
|
|
122
122
|
"devDependencies": {
|
|
123
123
|
"@babel/core": "^7.26.9",
|
|
124
|
-
"@babel/eslint-parser": "^7.26.8",
|
|
125
|
-
"@babel/eslint-plugin": "^7.25.9",
|
|
126
124
|
"@babel/preset-env": "^7.26.9",
|
|
127
125
|
"@babel/preset-react": "^7.26.3",
|
|
128
126
|
"@commitlint/cli": "^19.7.1",
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var clsx = require('clsx');
|
|
5
|
-
var useDeviceTargetClassGenerator = require('../hooks/useDeviceTargetClassGenerator.js');
|
|
6
|
-
var useStyles = require('../hooks/useStyles.js');
|
|
7
|
-
require('../../tslib.es6-CCZ3TN_7.js');
|
|
8
|
-
require('react');
|
|
9
|
-
require('lodash/camelCase');
|
|
10
|
-
require('lodash/castArray');
|
|
11
|
-
require('../context/UIContext.js');
|
|
12
|
-
require('../hooks/useMediaQueries.js');
|
|
13
|
-
require('react-responsive');
|
|
14
|
-
require('../utils/setViewportProperty.js');
|
|
15
|
-
require('lodash/maxBy');
|
|
16
|
-
require('lodash/upperFirst');
|
|
17
|
-
require('../hooks/styleAttributes.js');
|
|
18
|
-
|
|
19
|
-
function Caption(props) {
|
|
20
|
-
var children = props.children, className = props.className;
|
|
21
|
-
var classGenerator = useDeviceTargetClassGenerator.useDeviceTargetClassGenerator(props);
|
|
22
|
-
var fillClass = classGenerator.fillClass, fillGradientClass = classGenerator.fillGradientClass, positionClass = classGenerator.positionClass;
|
|
23
|
-
// @ts-expect-error
|
|
24
|
-
var captionStyles = useStyles.useStyles(props).styles;
|
|
25
|
-
return (jsxRuntime.jsx("div", { className: clsx(className, 'caption', positionClass && "caption_position_".concat(positionClass), fillClass && "fill_".concat(fillClass), fillGradientClass && "fill-gradient_".concat(fillGradientClass)), style: captionStyles, children: children }));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
exports.Caption = Caption;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var clsx = require('clsx');
|
|
6
|
-
var UIContext = require('../context/UIContext.js');
|
|
7
|
-
var useDeviceTargetClassGenerator = require('../hooks/useDeviceTargetClassGenerator.js');
|
|
8
|
-
var Icon = require('../../Icon-B_bS-o4g.js');
|
|
9
|
-
var Text = require('../../Text-Beslj4Ns.js');
|
|
10
|
-
require('../hooks/useMediaQueries.js');
|
|
11
|
-
require('react-responsive');
|
|
12
|
-
require('../utils/setViewportProperty.js');
|
|
13
|
-
require('../../tslib.es6-CCZ3TN_7.js');
|
|
14
|
-
require('lodash/camelCase');
|
|
15
|
-
require('lodash/castArray');
|
|
16
|
-
require('react-inlinesvg');
|
|
17
|
-
require('../hooks/useStyles.js');
|
|
18
|
-
require('lodash/maxBy');
|
|
19
|
-
require('lodash/upperFirst');
|
|
20
|
-
require('../hooks/styleAttributes.js');
|
|
21
|
-
require('../../Link-CxWmYMyL.js');
|
|
22
|
-
require('../../Tooltip-CNua1g76.js');
|
|
23
|
-
require('../../Title-DBaHcpvB.js');
|
|
24
|
-
|
|
25
|
-
var siteMenuAppearance = {
|
|
26
|
-
dev: {},
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
var siteMenuConfig = {
|
|
30
|
-
appearance: siteMenuAppearance,
|
|
31
|
-
setAppearance: function (newComponent) {
|
|
32
|
-
siteMenuConfig.appearance = newComponent;
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
function SiteMenu(props) {
|
|
36
|
-
var children = props.children, appearance = props.appearance, className = props.className, closeText = props.closeText, closeTextColor = props.closeTextColor, closeTextColorHover = props.closeTextColorHover, closeTextSize = props.closeTextSize, iconClose = props.iconClose, iconCloseBgFill = props.iconCloseBgFill, iconCloseFill = props.iconCloseFill, iconCloseSize = props.iconCloseSize, onClose = props.onClose;
|
|
37
|
-
var _a = UIContext.useSiteMenuContext(), isSiteMenuOpen = _a.isSiteMenuOpen, setIsSiteMenuOpen = _a.setIsSiteMenuOpen;
|
|
38
|
-
var onClickClose = React.useCallback(
|
|
39
|
-
// @ts-expect-error
|
|
40
|
-
function (event) {
|
|
41
|
-
// @ts-expect-error
|
|
42
|
-
setIsSiteMenuOpen(false);
|
|
43
|
-
// @ts-expect-error
|
|
44
|
-
onClose && onClose(event);
|
|
45
|
-
}, [onClose]);
|
|
46
|
-
// TODO: dont delete!
|
|
47
|
-
// const onClickHeaderLink = useCallback((event) => {
|
|
48
|
-
// // simulate a click on a link
|
|
49
|
-
// event.stopPropagation()
|
|
50
|
-
// event.preventDefault()
|
|
51
|
-
// // save anchor in history
|
|
52
|
-
// history.pushState(
|
|
53
|
-
// location.href,
|
|
54
|
-
// event.target.getAttribute('href'),
|
|
55
|
-
// `${location.origin}/${event.target.getAttribute('href')}`
|
|
56
|
-
// )
|
|
57
|
-
// // scroll to anchor
|
|
58
|
-
// document.querySelector(event.target.getAttribute('href')).scrollIntoView({
|
|
59
|
-
// behavior: 'smooth',
|
|
60
|
-
// })
|
|
61
|
-
// }, [])
|
|
62
|
-
// @ts-expect-error
|
|
63
|
-
var appearanceConfig = siteMenuConfig.appearance && siteMenuConfig.appearance[appearance];
|
|
64
|
-
var classGenerator = useDeviceTargetClassGenerator.useDeviceTargetClassGenerator(props, appearanceConfig);
|
|
65
|
-
var fillClass = classGenerator.fillClass;
|
|
66
|
-
return (jsxRuntime.jsx("div", { className: clsx(className, 'site-menu', fillClass && "fill_".concat(fillClass), isSiteMenuOpen && 'site-menu_state_visible', !isSiteMenuOpen && 'site-menu_state_hidden'), children: jsxRuntime.jsxs("div", { className: "site-menu__wrapper", children: [jsxRuntime.jsx("div", { className: "site-menu__close", children: iconClose ? (jsxRuntime.jsx(Icon.Icon, { fill: iconCloseFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconCloseFill), bgFill: iconCloseBgFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconCloseBgFill), size: iconCloseSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconCloseSize), SvgImage: iconClose || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconClose), onClick: onClickClose })) : (jsxRuntime.jsx(Text.Text, { size: closeTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.closeTextSize), textColor: closeTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.closeTextColor), textColorHover: closeTextColorHover || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.closeTextColorHover),
|
|
67
|
-
// @ts-expect-error
|
|
68
|
-
onClick: onClickClose, children: closeText })) }), jsxRuntime.jsx("div", { className: "site-menu__items", children: children })] }) }));
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function SiteMenuButton(props) {
|
|
72
|
-
var children = props.children, className = props.className, text = props.text, onClick = props.onClick;
|
|
73
|
-
var setIsSiteMenuOpen = UIContext.useSiteMenuContext().setIsSiteMenuOpen;
|
|
74
|
-
// @ts-expect-error
|
|
75
|
-
var onClickButton = React.useCallback(function (event) {
|
|
76
|
-
// @ts-expect-error
|
|
77
|
-
setIsSiteMenuOpen(true);
|
|
78
|
-
// @ts-expect-error
|
|
79
|
-
onClick && onClick(event);
|
|
80
|
-
}, []);
|
|
81
|
-
return (jsxRuntime.jsx("div", { className: clsx(className, 'site-menu__button'), onClick: onClickButton, children: children || text }));
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
exports.SiteMenu = SiteMenu;
|
|
85
|
-
exports.SiteMenuButton = SiteMenuButton;
|
|
86
|
-
exports.siteMenuAppearance = siteMenuAppearance;
|
|
87
|
-
exports.siteMenuConfig = siteMenuConfig;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var clsx = require('clsx');
|
|
5
|
-
var useDeviceTargetClassGenerator = require('../hooks/useDeviceTargetClassGenerator.js');
|
|
6
|
-
var useStyles = require('../hooks/useStyles.js');
|
|
7
|
-
require('../../tslib.es6-CCZ3TN_7.js');
|
|
8
|
-
require('react');
|
|
9
|
-
require('lodash/camelCase');
|
|
10
|
-
require('lodash/castArray');
|
|
11
|
-
require('../context/UIContext.js');
|
|
12
|
-
require('../hooks/useMediaQueries.js');
|
|
13
|
-
require('react-responsive');
|
|
14
|
-
require('../utils/setViewportProperty.js');
|
|
15
|
-
require('lodash/maxBy');
|
|
16
|
-
require('lodash/upperFirst');
|
|
17
|
-
require('../hooks/styleAttributes.js');
|
|
18
|
-
|
|
19
|
-
function Wrapper(props) {
|
|
20
|
-
var id = props.id, children = props.children, after = props.after, before = props.before, _a = props.className, className = _a === void 0 ? 'wrapper' : _a, _b = props.tag, Tag = _b === void 0 ? 'div' : _b, type = props.type;
|
|
21
|
-
var classGenerator = useDeviceTargetClassGenerator.useDeviceTargetClassGenerator(props);
|
|
22
|
-
var alignClass = classGenerator.alignClass, alignDirectionClass = classGenerator.alignDirectionClass, fillClass = classGenerator.fillClass, horizontalResizingClass = classGenerator.horizontalResizingClass, positionClass = classGenerator.positionClass, verticalResizingClass = classGenerator.verticalResizingClass, wrapperPositionClass = classGenerator.wrapperPositionClass;
|
|
23
|
-
// @ts-expect-error
|
|
24
|
-
var _c = useStyles.useStyles(props), innerStyles = _c.inner, wrapperStyles = _c.styles;
|
|
25
|
-
return (jsxRuntime.jsx(Tag, { className: clsx(className, type && "".concat(className, "_type_").concat(type), fillClass && "fill_".concat(fillClass), horizontalResizingClass && "wrapper_resize-horizontal_".concat(horizontalResizingClass), verticalResizingClass && "wrapper_resize-vertical_".concat(verticalResizingClass), positionClass && "position_".concat(positionClass)), id: id, style: wrapperStyles, children: jsxRuntime.jsxs("div", { className: clsx("".concat(className, "__inner"), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), wrapperPositionClass && "position_".concat(wrapperPositionClass)), style: innerStyles, children: [before, children, after] }) }));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
exports.Wrapper = Wrapper;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import { useDeviceTargetClassGenerator } from '../hooks/useDeviceTargetClassGenerator.js';
|
|
4
|
-
import { useStyles } from '../hooks/useStyles.js';
|
|
5
|
-
import '../tslib.es6-Bwu1Cn-t.js';
|
|
6
|
-
import 'react';
|
|
7
|
-
import 'lodash/camelCase';
|
|
8
|
-
import 'lodash/castArray';
|
|
9
|
-
import '../context/UIContext.js';
|
|
10
|
-
import '../hooks/useMediaQueries.js';
|
|
11
|
-
import 'react-responsive';
|
|
12
|
-
import '../utils/setViewportProperty.js';
|
|
13
|
-
import 'lodash/maxBy';
|
|
14
|
-
import 'lodash/upperFirst';
|
|
15
|
-
import '../hooks/styleAttributes.js';
|
|
16
|
-
|
|
17
|
-
function Caption(props) {
|
|
18
|
-
var children = props.children, className = props.className;
|
|
19
|
-
var classGenerator = useDeviceTargetClassGenerator(props);
|
|
20
|
-
var fillClass = classGenerator.fillClass, fillGradientClass = classGenerator.fillGradientClass, positionClass = classGenerator.positionClass;
|
|
21
|
-
// @ts-expect-error
|
|
22
|
-
var captionStyles = useStyles(props).styles;
|
|
23
|
-
return (jsx("div", { className: clsx(className, 'caption', positionClass && "caption_position_".concat(positionClass), fillClass && "fill_".concat(fillClass), fillGradientClass && "fill-gradient_".concat(fillGradientClass)), style: captionStyles, children: children }));
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { Caption };
|