@itcase/ui 1.2.29 → 1.2.31
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-TyPbVqR_.js → Badge-BMKD9teI.js} +6 -2
- package/dist/{Badge-BZYBmgBK.js → Badge-DQnTpE4I.js} +6 -2
- package/dist/{Button-avhviao1.js → Button-DS2l65oq.js} +4 -4
- package/dist/{Button-BcOsYgoT.js → Button-x4mnZJoS.js} +3 -3
- package/dist/Divider-3upWnf8a.js +71 -0
- package/dist/Divider-DE2Q5J36.js +68 -0
- package/dist/{DropdownItem-toApJyeB.js → DropdownItem-CT9Dmiub.js} +38 -14
- package/dist/DropdownItem-DzDP45iO.js +179 -0
- package/dist/{Icon-ClsRaxDk.js → Icon-B7BJo5kW.js} +14 -19
- package/dist/{Icon-B2BwTQnP.js → Icon-PoesVPJn.js} +13 -18
- package/dist/{Input-BaicBuyd.js → Input-DXbt_RWB.js} +1 -2
- package/dist/{Input-DbzsXvEf.js → Input-HGM-rzzr.js} +1 -2
- package/dist/{Label-fp2Bus_T.js → Label-BBm19sQ-.js} +3 -6
- package/dist/{Label-BfotYOmD.js → Label-Chm6tl6E.js} +3 -6
- package/dist/{Link-CzC1kU5C.js → Link-CeQuavin.js} +1 -1
- package/dist/Loader-CqEocvjh.js +56 -0
- package/dist/Loader-DRTOGvF1.js +59 -0
- package/dist/{MenuItem-BJ3uGKCH.js → MenuItem-DPJ_9FxW.js} +14 -3
- package/dist/{MenuItem-BEYVY0Vf.js → MenuItem-zHzWXIvQ.js} +15 -4
- package/dist/{Scrollbar-CrGXCZ_F.js → Scrollbar-Bo7z7ELm.js} +10 -13
- package/dist/{Scrollbar-DVlIZzvz.js → Scrollbar-CKbA0jQU.js} +10 -13
- package/dist/{Text-CC0xnhmx.js → Text-1b-Bk7yG.js} +3 -4
- package/dist/{Text-kxGZButz.js → Text-DlSG_p4u.js} +3 -4
- package/dist/{Title-CQ_Fr1hO.js → Title-mkus84Rh.js} +3 -6
- package/dist/{Title-Ze_OL1Co.js → Title-o5ofk8ge.js} +3 -6
- package/dist/{Tooltip-PrwacZFC.js → Tooltip-CNJN2lf5.js} +19 -3
- package/dist/{Tooltip-ccRCMYQM.js → Tooltip-f5EWhsGj.js} +19 -3
- package/dist/appearance/Avatar.js +5 -0
- package/dist/appearance/Code.js +5 -0
- package/dist/appearance/Divider.js +5 -0
- package/dist/appearance/DropdownItem.js +5 -0
- package/dist/appearance/Modal.js +5 -0
- package/dist/appearance/Response.js +95 -21
- package/dist/appearance/SiteMenu.js +5 -0
- package/dist/appearance/Switch.js +5 -0
- package/dist/appearance/Tile.js +5 -0
- package/dist/cjs/appearance/Avatar.js +7 -0
- package/dist/cjs/appearance/Code.js +7 -0
- package/dist/cjs/appearance/Divider.js +7 -0
- package/dist/cjs/appearance/DropdownItem.js +7 -0
- package/dist/cjs/appearance/Modal.js +7 -0
- package/dist/cjs/appearance/Response.js +95 -21
- package/dist/cjs/appearance/SiteMenu.js +7 -0
- package/dist/cjs/appearance/Switch.js +7 -0
- package/dist/cjs/appearance/Tile.js +7 -0
- package/dist/cjs/components/Accordion.js +6 -6
- package/dist/cjs/components/Avatar.js +22 -8
- package/dist/cjs/components/Badge.js +2 -3
- package/dist/cjs/components/Breadcrumbs.js +4 -8
- package/dist/cjs/components/Button.js +7 -8
- package/dist/cjs/components/Caption.js +0 -1
- package/dist/cjs/components/Card.js +3 -12
- package/dist/cjs/components/Cell.js +7 -12
- package/dist/cjs/components/Checkbox.js +1 -5
- package/dist/cjs/components/Chips.js +1 -2
- package/dist/cjs/components/Choice.js +6 -7
- package/dist/cjs/components/Code.js +31 -10
- package/dist/cjs/components/ContextMenu.js +9 -21
- package/dist/cjs/components/CookiesWarning.js +9 -15
- package/dist/cjs/components/DadataHintField.js +1 -2
- package/dist/cjs/components/DatePicker.js +10 -1053
- package/dist/cjs/components/Divider.js +3 -2
- package/dist/cjs/components/Dot.js +1 -3
- package/dist/cjs/components/Dropdown.js +6 -4
- package/dist/cjs/components/Flex.js +0 -1
- package/dist/cjs/components/Grid.js +1 -8
- package/dist/cjs/components/Group.js +0 -1
- package/dist/cjs/components/HTMLContent.js +0 -1
- package/dist/cjs/components/Icon.js +5 -6
- package/dist/cjs/components/Image.js +0 -1
- package/dist/cjs/components/Input.js +1 -2
- package/dist/cjs/components/InputMask.js +7 -9
- package/dist/cjs/components/InputPassword.js +5 -6
- package/dist/cjs/components/Label.js +4 -5
- package/dist/cjs/components/LanguageSelector.js +5 -6
- package/dist/cjs/components/Link.js +0 -1
- package/dist/cjs/components/List.js +0 -1
- package/dist/cjs/components/Loader.js +2 -3
- package/dist/cjs/components/Logo.js +0 -1
- package/dist/cjs/components/Menu.js +2 -3
- package/dist/cjs/components/MenuItem.js +2 -3
- package/dist/cjs/components/Modal.js +27 -7
- package/dist/cjs/components/ModalSheetBottom.js +34 -0
- package/dist/cjs/components/Notification.js +7 -6
- package/dist/cjs/components/Overlay.js +0 -1
- package/dist/cjs/components/Page.js +3 -46
- package/dist/cjs/components/Pagination.js +8 -7
- package/dist/cjs/components/Panel.js +1 -2
- package/dist/cjs/components/Radio.js +1 -3
- package/dist/cjs/components/RangeSlider.js +0 -1
- package/dist/cjs/components/Response.js +20 -15
- package/dist/cjs/components/SVGContent.js +0 -1
- package/dist/cjs/components/ScrollOnDrag.js +0 -1
- package/dist/cjs/components/ScrollToView.js +0 -1
- package/dist/cjs/components/Scrollbar.js +1 -1
- package/dist/cjs/components/Search.js +9 -12
- package/dist/cjs/components/Segmented.js +1 -2
- package/dist/cjs/components/Select.js +7 -7
- package/dist/cjs/components/SiteMenu.js +18 -8
- package/dist/cjs/components/Swiper.js +6 -8
- package/dist/cjs/components/Switch.js +12 -3
- package/dist/cjs/components/Tab.js +4 -4
- package/dist/cjs/components/Text.js +1 -2
- package/dist/cjs/components/Textarea.js +0 -1
- package/dist/cjs/components/Tile.js +22 -6
- package/dist/cjs/components/Title.js +1 -2
- package/dist/cjs/components/Tooltip.js +3 -4
- package/dist/cjs/components/Video.js +0 -1
- package/dist/cjs/components/Wrapper.js +3 -8
- package/dist/cjs/context/Notifications.js +0 -5
- package/dist/cjs/context/UIContext.js +0 -9
- package/dist/cjs/hooks/useDeviceTargetClass.js +0 -1
- package/dist/cjs/hooks/useStyles.js +0 -1
- package/dist/components/Accordion.js +8 -8
- package/dist/components/Avatar.js +23 -10
- package/dist/components/Badge.js +2 -3
- package/dist/components/Breadcrumbs.js +6 -10
- package/dist/components/Button.js +8 -9
- package/dist/components/Caption.js +0 -1
- package/dist/components/Card.js +3 -12
- package/dist/components/Cell.js +8 -13
- package/dist/components/Checkbox.js +1 -5
- package/dist/components/Chips.js +1 -2
- package/dist/components/Choice.js +7 -8
- package/dist/components/Code.js +32 -12
- package/dist/components/ContextMenu.js +10 -22
- package/dist/components/CookiesWarning.js +10 -16
- package/dist/components/DadataHintField.js +2 -3
- package/dist/components/DatePicker.js +11 -1054
- package/dist/components/Divider.js +2 -2
- package/dist/components/Dot.js +1 -3
- package/dist/components/Dropdown.js +7 -6
- package/dist/components/Flex.js +0 -1
- package/dist/components/Grid.js +1 -8
- package/dist/components/Group.js +0 -1
- package/dist/components/HTMLContent.js +0 -1
- package/dist/components/Icon.js +6 -7
- package/dist/components/Image.js +0 -1
- package/dist/components/Input.js +1 -2
- package/dist/components/InputMask.js +7 -9
- package/dist/components/InputPassword.js +6 -7
- package/dist/components/Label.js +4 -5
- package/dist/components/LanguageSelector.js +6 -7
- package/dist/components/Link.js +2 -3
- package/dist/components/List.js +2 -3
- package/dist/components/Loader.js +2 -3
- package/dist/components/Logo.js +2 -3
- package/dist/components/Menu.js +4 -5
- package/dist/components/MenuItem.js +4 -5
- package/dist/components/Modal.js +27 -8
- package/dist/components/ModalSheetBottom.js +32 -0
- package/dist/components/Notification.js +8 -7
- package/dist/components/Overlay.js +0 -1
- package/dist/components/Page.js +3 -46
- package/dist/components/Pagination.js +10 -9
- package/dist/components/Panel.js +1 -2
- package/dist/components/Radio.js +1 -3
- package/dist/components/RangeSlider.js +0 -1
- package/dist/components/Response.js +21 -16
- package/dist/components/SVGContent.js +0 -1
- package/dist/components/ScrollOnDrag.js +1 -2
- package/dist/components/ScrollToView.js +0 -1
- package/dist/components/Scrollbar.js +1 -1
- package/dist/components/Search.js +10 -13
- package/dist/components/Segmented.js +1 -2
- package/dist/components/Select.js +9 -9
- package/dist/components/SiteMenu.js +19 -10
- package/dist/components/Swiper.js +6 -8
- package/dist/components/Switch.js +12 -4
- package/dist/components/Tab.js +6 -6
- package/dist/components/Text.js +1 -2
- package/dist/components/Textarea.js +0 -1
- package/dist/components/Tile.js +22 -7
- package/dist/components/Title.js +1 -2
- package/dist/components/Tooltip.js +3 -4
- package/dist/components/Video.js +0 -1
- package/dist/components/Wrapper.js +3 -8
- package/dist/context/Notifications.js +1 -6
- package/dist/context/UIContext.js +0 -9
- package/dist/css/components/ModalSheetBottom/ModalSheetBottom.css +29 -0
- package/dist/hooks/useDeviceTargetClass.js +0 -1
- package/dist/hooks/useStyles.js +0 -1
- package/dist/stories/Response.stories.js +38 -12
- package/dist/{tslib.es6-w7hdJ3oZ.js → tslib.es6-5FtW-kfi.js} +1 -1
- package/dist/types/appearance/Avatar/index.d.ts +2 -0
- package/dist/types/appearance/Code/index.d.ts +2 -0
- package/dist/types/appearance/Divider/index.d.ts +2 -0
- package/dist/types/appearance/DropdownItem/index.d.ts +2 -0
- package/dist/types/appearance/Modal/index.d.ts +2 -0
- package/dist/types/appearance/SiteMenu/index.d.ts +2 -0
- package/dist/types/appearance/Switch/index.d.ts +2 -0
- package/dist/types/appearance/Tile/index.d.ts +2 -0
- package/dist/types/components/Avatar/Avatar.d.ts +3 -2
- package/dist/types/components/Avatar/Avatar.interface.d.ts +25 -11
- package/dist/types/components/Avatar/index.d.ts +1 -1
- package/dist/types/components/Badge/Badge.d.ts +6 -0
- package/dist/types/components/Breadcrumbs/BreadcrumbsItem.d.ts +0 -5
- package/dist/types/components/Button/Button.interface.d.ts +6 -6
- package/dist/types/components/Card/Card.d.ts +0 -10
- package/dist/types/components/Cell/Cell.d.ts +0 -6
- package/dist/types/components/Checkbox/Checkbox.d.ts +0 -5
- package/dist/types/components/Code/Code.d.ts +6 -8
- package/dist/types/components/Code/Code.interface.d.ts +21 -2
- package/dist/types/components/Code/index.d.ts +1 -1
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +0 -5
- package/dist/types/components/CookiesWarning/CookiesWarning.d.ts +0 -7
- package/dist/types/components/Divider/Divider.d.ts +3 -2
- package/dist/types/components/Divider/Divider.interface.d.ts +11 -0
- package/dist/types/components/Divider/index.d.ts +1 -1
- package/dist/types/components/Dot/Dot.d.ts +0 -3
- package/dist/types/components/Dropdown/Dropdown.d.ts +0 -7
- package/dist/types/components/Dropdown/Dropdown.interface.d.ts +28 -15
- package/dist/types/components/Dropdown/DropdownItem.d.ts +5 -4
- package/dist/types/components/Dropdown/index.d.ts +2 -2
- package/dist/types/components/Grid/Grid.d.ts +0 -5
- package/dist/types/components/Grid/GridRow.d.ts +0 -5
- package/dist/types/components/Label/Label.d.ts +0 -5
- package/dist/types/components/Loader/Loader.interface.d.ts +3 -3
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +2 -2
- package/dist/types/components/Modal/Modal.d.ts +3 -2
- package/dist/types/components/Modal/Modal.interface.d.ts +22 -6
- package/dist/types/components/Modal/index.d.ts +2 -2
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.d.ts +3 -0
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.interface.d.ts +11 -0
- package/dist/types/components/ModalSheetBottom/index.d.ts +1 -0
- package/dist/types/components/Notification/Notification.interface.d.ts +8 -7
- package/dist/types/components/Page/Page.d.ts +3 -0
- package/dist/types/components/Page/Page.interface.d.ts +18 -0
- package/dist/types/components/Page/index.d.ts +1 -42
- package/dist/types/components/Radio/Radio.d.ts +0 -1
- package/dist/types/components/Response/Response.interface.d.ts +4 -4
- package/dist/types/components/Scrollbar/Scrollbar.d.ts +0 -5
- package/dist/types/components/Search/Search.interface.d.ts +9 -9
- package/dist/types/components/SiteMenu/SiteMenu.d.ts +3 -2
- package/dist/types/components/SiteMenu/SiteMenu.interface.d.ts +18 -5
- package/dist/types/components/SiteMenu/index.d.ts +2 -2
- package/dist/types/components/Swiper/Swiper.d.ts +0 -1
- package/dist/types/components/Switch/Switch.d.ts +3 -2
- package/dist/types/components/Switch/Switch.interface.d.ts +17 -4
- package/dist/types/components/Switch/index.d.ts +1 -1
- package/dist/types/components/Text/Text.d.ts +0 -5
- package/dist/types/components/Text/Text.interface.d.ts +1 -1
- package/dist/types/components/Tile/Tile.d.ts +3 -2
- package/dist/types/components/Tile/Tile.interface.d.ts +21 -9
- package/dist/types/components/Tile/index.d.ts +1 -1
- package/dist/types/components/Title/Title.d.ts +0 -5
- package/dist/types/components/Wrapper/Wrapper.d.ts +0 -6
- package/dist/types/context/Notifications.d.ts +0 -7
- package/dist/types/context/UIContext.d.ts +10 -2
- package/dist/types/icons/index.d.ts +2 -2
- package/dist/types/types/componentProps/appearanceKeys.d.ts +1 -1
- package/package.json +29 -32
- package/dist/Divider-BjB5MD6u.js +0 -50
- package/dist/Divider-U5UdY-ef.js +0 -48
- package/dist/DropdownItem-CFkRx8LX.js +0 -156
- package/dist/Loader-CU_5Ydmy.js +0 -53
- package/dist/Loader-Ck59IXGG.js +0 -56
- package/dist/types/constants/componentProps/align.d.ts +0 -2
- package/dist/types/constants/componentProps/alignDirection.d.ts +0 -2
- package/dist/types/constants/componentProps/fill.d.ts +0 -2
- package/dist/types/constants/componentProps/horizontalResizeMode.d.ts +0 -2
- package/dist/types/constants/componentProps/position.d.ts +0 -2
- package/dist/types/constants/componentProps/verticalResizeMode.d.ts +0 -2
- /package/dist/css/{styles → mediaqueries}/mediaqueries.css +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { D as Divider } from '../Divider-
|
|
1
|
+
export { D as Divider, d as dividerConfig } from '../Divider-DE2Q5J36.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
|
+
import '../appearance/Divider.js';
|
|
4
5
|
import '../hooks/useDeviceTargetClass.js';
|
|
5
6
|
import 'react';
|
|
6
7
|
import 'lodash/castArray';
|
|
7
8
|
import 'lodash/camelCase';
|
|
8
9
|
import '../context/UIContext.js';
|
|
9
|
-
import 'prop-types';
|
|
10
10
|
import '../hooks/useMediaQueries.js';
|
|
11
11
|
import 'react-responsive';
|
|
12
12
|
import '../hooks/useStyles.js';
|
package/dist/components/Dot.js
CHANGED
|
@@ -6,7 +6,6 @@ import 'react';
|
|
|
6
6
|
import 'lodash/castArray';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import '../context/UIContext.js';
|
|
9
|
-
import 'prop-types';
|
|
10
9
|
import '../hooks/useMediaQueries.js';
|
|
11
10
|
import 'react-responsive';
|
|
12
11
|
import 'lodash/maxBy';
|
|
@@ -14,7 +13,7 @@ import 'lodash/upperFirst';
|
|
|
14
13
|
import '../hooks/styleAttributes.js';
|
|
15
14
|
|
|
16
15
|
function Dot(props) {
|
|
17
|
-
var
|
|
16
|
+
var children = props.children, className = props.className;
|
|
18
17
|
var borderColorClass = useDeviceTargetClass(props, {
|
|
19
18
|
prefix: 'border-color_',
|
|
20
19
|
propsKey: 'borderColor',
|
|
@@ -39,6 +38,5 @@ function Dot(props) {
|
|
|
39
38
|
var styles = useStyles(props).styles;
|
|
40
39
|
return (jsx("div", { className: clsx(className, 'dot', borderColorClass, borderTypeClass, fillClass, shapeClass, sizeClass), style: styles, children: children }));
|
|
41
40
|
}
|
|
42
|
-
Dot.defaultProps = {};
|
|
43
41
|
|
|
44
42
|
export { Dot };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Dropdown, a as DropdownItem } from '../DropdownItem-
|
|
1
|
+
export { D as Dropdown, a as DropdownItem, d as dropdownItemConfig } from '../DropdownItem-DzDP45iO.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -6,15 +6,16 @@ import '../hooks/useDeviceTargetClass.js';
|
|
|
6
6
|
import 'lodash/castArray';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import '../context/UIContext.js';
|
|
9
|
-
import 'prop-types';
|
|
10
9
|
import '../hooks/useMediaQueries.js';
|
|
11
10
|
import 'react-responsive';
|
|
12
11
|
import '../hooks/useStyles.js';
|
|
13
12
|
import 'lodash/maxBy';
|
|
14
13
|
import 'lodash/upperFirst';
|
|
15
14
|
import '../hooks/styleAttributes.js';
|
|
16
|
-
import '../
|
|
17
|
-
import '../
|
|
18
|
-
import '../
|
|
19
|
-
import '../
|
|
15
|
+
import '../appearance/DropdownItem.js';
|
|
16
|
+
import '../Divider-DE2Q5J36.js';
|
|
17
|
+
import '../appearance/Divider.js';
|
|
18
|
+
import '../Link-CeQuavin.js';
|
|
19
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
20
|
+
import '../Text-DlSG_p4u.js';
|
|
20
21
|
import '../appearance/Text.js';
|
package/dist/components/Flex.js
CHANGED
package/dist/components/Grid.js
CHANGED
|
@@ -6,7 +6,6 @@ import 'react';
|
|
|
6
6
|
import 'lodash/castArray';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import '../context/UIContext.js';
|
|
9
|
-
import 'prop-types';
|
|
10
9
|
import '../hooks/useMediaQueries.js';
|
|
11
10
|
import 'react-responsive';
|
|
12
11
|
import 'lodash/maxBy';
|
|
@@ -14,7 +13,7 @@ import 'lodash/upperFirst';
|
|
|
14
13
|
import '../hooks/styleAttributes.js';
|
|
15
14
|
|
|
16
15
|
function Grid(props) {
|
|
17
|
-
var id = props.id,
|
|
16
|
+
var id = props.id, children = props.children, after = props.after, before = props.before, className = props.className, dataTour = props.dataTour, horizontalResizing = props.horizontalResizing, horizontalScroll = props.horizontalScroll, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, type = props.type, useGridSystem = props.useGridSystem, verticalResizing = props.verticalResizing, onClick = props.onClick;
|
|
18
17
|
var columnsClass = useDeviceTargetClass(props, {
|
|
19
18
|
prefix: 'grid_columns_',
|
|
20
19
|
propsKey: 'columns',
|
|
@@ -59,9 +58,6 @@ function Grid(props) {
|
|
|
59
58
|
var gridStyles = useStyles(props).styles;
|
|
60
59
|
return (jsxs(Tag, { className: clsx(className, 'grid', useGridSystem && "grid_state_system", horizontalScroll && "grid_scroll_horizontal", type && "grid_type_".concat(type), columnsClass, rowsClass, rowGapClass, columnGapClass, alignContentClass, alignItemsClass, borderColorClass, justifyContentClass, justifyItemsClass, fillClass, horizontalResizing && "grid_horizontal-resizing_".concat(horizontalResizing), verticalResizing && "grid_vertical-resizing_".concat(verticalResizing)), "data-tour": dataTour, id: id, style: gridStyles, onClick: onClick, children: [before && jsx("div", { className: "grid__before", children: before }), children, after && jsx("div", { className: "grid__after", children: after })] }));
|
|
61
60
|
}
|
|
62
|
-
Grid.defaultProps = {
|
|
63
|
-
tag: 'div',
|
|
64
|
-
};
|
|
65
61
|
|
|
66
62
|
function GridItem(props) {
|
|
67
63
|
var id = props.id, children = props.children, className = props.className, dataTour = props.dataTour, onClick = props.onClick;
|
|
@@ -156,8 +152,5 @@ function GridRow(props) {
|
|
|
156
152
|
var gridRowStyles = useStyles(props).styles;
|
|
157
153
|
return (jsx(Tag, { className: clsx(className, 'grid__row', fillClass, fillHoverClass, borderColorClass), "data-tour": dataTour, htmlFor: htmlFor, id: id, style: gridRowStyles, onClick: onClick, children: children }));
|
|
158
154
|
}
|
|
159
|
-
GridRow.defaultProps = {
|
|
160
|
-
tag: 'div',
|
|
161
|
-
};
|
|
162
155
|
|
|
163
156
|
export { Grid, GridItem, GridRow };
|
package/dist/components/Group.js
CHANGED
package/dist/components/Icon.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { I as Icon, i as iconConfig } from '../Icon-
|
|
1
|
+
export { I as Icon, i as iconConfig } from '../Icon-B7BJo5kW.js';
|
|
2
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
2
3
|
import 'react/jsx-runtime';
|
|
3
4
|
import 'react';
|
|
4
5
|
import 'clsx';
|
|
@@ -8,18 +9,16 @@ import '../hooks/useDeviceTargetClass.js';
|
|
|
8
9
|
import 'lodash/castArray';
|
|
9
10
|
import 'lodash/camelCase';
|
|
10
11
|
import '../context/UIContext.js';
|
|
11
|
-
import 'prop-types';
|
|
12
12
|
import '../hooks/useMediaQueries.js';
|
|
13
13
|
import 'react-responsive';
|
|
14
14
|
import '../hooks/useStyles.js';
|
|
15
15
|
import 'lodash/maxBy';
|
|
16
16
|
import 'lodash/upperFirst';
|
|
17
17
|
import '../hooks/styleAttributes.js';
|
|
18
|
-
import '../Link-
|
|
19
|
-
import '../
|
|
20
|
-
import '../Tooltip-ccRCMYQM.js';
|
|
18
|
+
import '../Link-CeQuavin.js';
|
|
19
|
+
import '../Tooltip-f5EWhsGj.js';
|
|
21
20
|
import '../appearance/Tooltip.js';
|
|
22
|
-
import '../Text-
|
|
21
|
+
import '../Text-DlSG_p4u.js';
|
|
23
22
|
import '../appearance/Text.js';
|
|
24
|
-
import '../Title-
|
|
23
|
+
import '../Title-mkus84Rh.js';
|
|
25
24
|
import '../appearance/Title.js';
|
package/dist/components/Image.js
CHANGED
package/dist/components/Input.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as Input, i as inputConfig } from '../Input-
|
|
1
|
+
export { I as Input, i as inputConfig } from '../Input-HGM-rzzr.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -7,6 +7,5 @@ import '../hooks/useDeviceTargetClass.js';
|
|
|
7
7
|
import 'lodash/castArray';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
10
|
import '../hooks/useMediaQueries.js';
|
|
12
11
|
import 'react-responsive';
|
|
@@ -5,22 +5,21 @@ import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
|
5
5
|
import 'lodash/castArray';
|
|
6
6
|
import 'lodash/camelCase';
|
|
7
7
|
import '../context/UIContext.js';
|
|
8
|
-
import 'prop-types';
|
|
9
8
|
import '../hooks/useMediaQueries.js';
|
|
10
9
|
import 'react-responsive';
|
|
11
10
|
|
|
12
11
|
var inputMaskConfig = {
|
|
13
|
-
state: undefined,
|
|
14
|
-
setState: function (newComponent) {
|
|
15
|
-
inputMaskConfig.state = newComponent;
|
|
16
|
-
},
|
|
17
12
|
appearance: undefined,
|
|
18
13
|
setAppearance: function (newComponent) {
|
|
19
14
|
inputMaskConfig.appearance = newComponent;
|
|
20
15
|
},
|
|
16
|
+
setState: function (newComponent) {
|
|
17
|
+
inputMaskConfig.state = newComponent;
|
|
18
|
+
},
|
|
19
|
+
state: undefined,
|
|
21
20
|
};
|
|
22
21
|
var Input = React.forwardRef(function Input(props, ref) {
|
|
23
|
-
var
|
|
22
|
+
var id = props.id, isDisabled = props.isDisabled, appearance = props.appearance, className = props.className, dataTestId = props.dataTestId, index = props.index, name = props.name, placeholder = props.placeholder, state = props.state, _a = props.type, type = _a === void 0 ? 'text' : _a, value = props.value, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
|
|
24
23
|
var fillClass = useDeviceTargetClass(props, {
|
|
25
24
|
prefix: 'fill_',
|
|
26
25
|
propsKey: 'fill',
|
|
@@ -127,13 +126,12 @@ var Input = React.forwardRef(function Input(props, ref) {
|
|
|
127
126
|
"text-color_".concat(stateConfig.textColor).replace(/([A-Z])/g, '-$1').toLowerCase())
|
|
128
127
|
: textColorDisabledClass ||
|
|
129
128
|
((stateConfig === null || stateConfig === void 0 ? void 0 : stateConfig.textColor) &&
|
|
130
|
-
"text-color_".concat(stateConfig.textColor).replace(/([A-Z])/g, '-$1').toLowerCase())),
|
|
129
|
+
"text-color_".concat(stateConfig.textColor).replace(/([A-Z])/g, '-$1').toLowerCase())),
|
|
131
130
|
// @ts-expect-error
|
|
132
|
-
ref: ref,
|
|
131
|
+
ref: ref, "data-test-id": dataTestId || (name ? "".concat(name, "Input") : 'input'), disabled: isDisabled, id: String(id), index: index, placeholder: placeholder, type: type, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }));
|
|
133
132
|
});
|
|
134
133
|
Input.defaultProps = {
|
|
135
134
|
size: 'm',
|
|
136
|
-
type: 'text',
|
|
137
135
|
};
|
|
138
136
|
|
|
139
137
|
export { Input, inputMaskConfig };
|
|
@@ -3,26 +3,25 @@ import { useState, useMemo, useCallback } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { InputPasswordAppearance, InputPasswordState } from '../appearance/InputPassword.js';
|
|
5
5
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
6
|
-
import { I as Icon } from '../Icon-
|
|
6
|
+
import { I as Icon } from '../Icon-B7BJo5kW.js';
|
|
7
7
|
import 'lodash/castArray';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
10
|
import '../hooks/useMediaQueries.js';
|
|
12
11
|
import 'react-responsive';
|
|
12
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
13
13
|
import 'react-inlinesvg';
|
|
14
14
|
import '../appearance/Icon.js';
|
|
15
15
|
import '../hooks/useStyles.js';
|
|
16
16
|
import 'lodash/maxBy';
|
|
17
17
|
import 'lodash/upperFirst';
|
|
18
18
|
import '../hooks/styleAttributes.js';
|
|
19
|
-
import '../Link-
|
|
20
|
-
import '../
|
|
21
|
-
import '../Tooltip-ccRCMYQM.js';
|
|
19
|
+
import '../Link-CeQuavin.js';
|
|
20
|
+
import '../Tooltip-f5EWhsGj.js';
|
|
22
21
|
import '../appearance/Tooltip.js';
|
|
23
|
-
import '../Text-
|
|
22
|
+
import '../Text-DlSG_p4u.js';
|
|
24
23
|
import '../appearance/Text.js';
|
|
25
|
-
import '../Title-
|
|
24
|
+
import '../Title-mkus84Rh.js';
|
|
26
25
|
import '../appearance/Title.js';
|
|
27
26
|
|
|
28
27
|
var inputPasswordConfig = {
|
package/dist/components/Label.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Label, l as labelConfig } from '../Label-
|
|
1
|
+
export { L as Label, l as labelConfig } from '../Label-Chm6tl6E.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -7,16 +7,15 @@ import '../hooks/useDeviceTargetClass.js';
|
|
|
7
7
|
import 'lodash/castArray';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
10
|
import '../hooks/useMediaQueries.js';
|
|
12
11
|
import 'react-responsive';
|
|
13
12
|
import '../hooks/useStyles.js';
|
|
14
13
|
import 'lodash/maxBy';
|
|
15
14
|
import 'lodash/upperFirst';
|
|
16
15
|
import '../hooks/styleAttributes.js';
|
|
17
|
-
import '../Text-
|
|
16
|
+
import '../Text-DlSG_p4u.js';
|
|
18
17
|
import '../appearance/Text.js';
|
|
19
|
-
import '../Tooltip-
|
|
18
|
+
import '../Tooltip-f5EWhsGj.js';
|
|
20
19
|
import '../appearance/Tooltip.js';
|
|
21
|
-
import '../Title-
|
|
20
|
+
import '../Title-mkus84Rh.js';
|
|
22
21
|
import '../appearance/Title.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { I as Icon } from '../Icon-
|
|
3
|
+
import { I as Icon } from '../Icon-B7BJo5kW.js';
|
|
4
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
4
5
|
import 'react';
|
|
5
6
|
import 'react-inlinesvg';
|
|
6
7
|
import '../appearance/Icon.js';
|
|
@@ -8,20 +9,18 @@ import '../hooks/useDeviceTargetClass.js';
|
|
|
8
9
|
import 'lodash/castArray';
|
|
9
10
|
import 'lodash/camelCase';
|
|
10
11
|
import '../context/UIContext.js';
|
|
11
|
-
import 'prop-types';
|
|
12
12
|
import '../hooks/useMediaQueries.js';
|
|
13
13
|
import 'react-responsive';
|
|
14
14
|
import '../hooks/useStyles.js';
|
|
15
15
|
import 'lodash/maxBy';
|
|
16
16
|
import 'lodash/upperFirst';
|
|
17
17
|
import '../hooks/styleAttributes.js';
|
|
18
|
-
import '../Link-
|
|
19
|
-
import '../
|
|
20
|
-
import '../Tooltip-ccRCMYQM.js';
|
|
18
|
+
import '../Link-CeQuavin.js';
|
|
19
|
+
import '../Tooltip-f5EWhsGj.js';
|
|
21
20
|
import '../appearance/Tooltip.js';
|
|
22
|
-
import '../Text-
|
|
21
|
+
import '../Text-DlSG_p4u.js';
|
|
23
22
|
import '../appearance/Text.js';
|
|
24
|
-
import '../Title-
|
|
23
|
+
import '../Title-mkus84Rh.js';
|
|
25
24
|
import '../appearance/Title.js';
|
|
26
25
|
|
|
27
26
|
function LanguageSelectorItem(props) {
|
package/dist/components/Link.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { L as Link, a as LinkWrapper, l as linkConfig } from '../Link-
|
|
2
|
-
import '../tslib.es6-
|
|
1
|
+
export { L as Link, a as LinkWrapper, l as linkConfig } from '../Link-CeQuavin.js';
|
|
2
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'clsx';
|
|
@@ -7,7 +7,6 @@ import '../hooks/useDeviceTargetClass.js';
|
|
|
7
7
|
import 'lodash/castArray';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
10
|
import '../hooks/useMediaQueries.js';
|
|
12
11
|
import 'react-responsive';
|
|
13
12
|
import '../hooks/useStyles.js';
|
package/dist/components/List.js
CHANGED
|
@@ -2,18 +2,17 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useStyles } from '../hooks/useStyles.js';
|
|
4
4
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
5
|
-
import { L as Link } from '../Link-
|
|
5
|
+
import { L as Link } from '../Link-CeQuavin.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import 'lodash/maxBy';
|
|
9
9
|
import 'lodash/upperFirst';
|
|
10
10
|
import '../context/UIContext.js';
|
|
11
|
-
import 'prop-types';
|
|
12
11
|
import '../hooks/useMediaQueries.js';
|
|
13
12
|
import 'react-responsive';
|
|
14
13
|
import '../hooks/styleAttributes.js';
|
|
15
14
|
import 'lodash/castArray';
|
|
16
|
-
import '../tslib.es6-
|
|
15
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
17
16
|
|
|
18
17
|
function List(props) {
|
|
19
18
|
var children = props.children, className = props.className, style = props.style, type = props.type;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Loader, l as loaderConfig } from '../Loader-
|
|
1
|
+
export { L as Loader, l as loaderConfig } from '../Loader-CqEocvjh.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../appearance/Loader.js';
|
|
@@ -7,12 +7,11 @@ import 'react';
|
|
|
7
7
|
import 'lodash/castArray';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
10
|
import '../hooks/useMediaQueries.js';
|
|
12
11
|
import 'react-responsive';
|
|
13
12
|
import '../hooks/useStyles.js';
|
|
14
13
|
import 'lodash/maxBy';
|
|
15
14
|
import 'lodash/upperFirst';
|
|
16
15
|
import '../hooks/styleAttributes.js';
|
|
17
|
-
import '../Text-
|
|
16
|
+
import '../Text-DlSG_p4u.js';
|
|
18
17
|
import '../appearance/Text.js';
|
package/dist/components/Logo.js
CHANGED
|
@@ -2,18 +2,17 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
4
4
|
import { useStyles } from '../hooks/useStyles.js';
|
|
5
|
-
import { a as LinkWrapper } from '../Link-
|
|
5
|
+
import { a as LinkWrapper } from '../Link-CeQuavin.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'lodash/castArray';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
10
|
import '../hooks/useMediaQueries.js';
|
|
12
11
|
import 'react-responsive';
|
|
13
12
|
import 'lodash/maxBy';
|
|
14
13
|
import 'lodash/upperFirst';
|
|
15
14
|
import '../hooks/styleAttributes.js';
|
|
16
|
-
import '../tslib.es6-
|
|
15
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
17
16
|
|
|
18
17
|
var logoConfig = {
|
|
19
18
|
appearance: undefined,
|
package/dist/components/Menu.js
CHANGED
|
@@ -2,21 +2,20 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
4
4
|
import { useStyles } from '../hooks/useStyles.js';
|
|
5
|
-
import { M as MenuItem } from '../MenuItem-
|
|
5
|
+
import { M as MenuItem } from '../MenuItem-zHzWXIvQ.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'lodash/castArray';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
10
|
import '../hooks/useMediaQueries.js';
|
|
12
11
|
import 'react-responsive';
|
|
13
12
|
import 'lodash/maxBy';
|
|
14
13
|
import 'lodash/upperFirst';
|
|
15
14
|
import '../hooks/styleAttributes.js';
|
|
16
15
|
import '../appearance/MenuItem.js';
|
|
17
|
-
import '../Link-
|
|
18
|
-
import '../tslib.es6-
|
|
19
|
-
import '../Text-
|
|
16
|
+
import '../Link-CeQuavin.js';
|
|
17
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
18
|
+
import '../Text-DlSG_p4u.js';
|
|
20
19
|
import '../appearance/Text.js';
|
|
21
20
|
|
|
22
21
|
function Menu(props) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { M as MenuItem, m as menuItemConfig } from '../MenuItem-
|
|
1
|
+
export { M as MenuItem, m as menuItemConfig } from '../MenuItem-zHzWXIvQ.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -7,14 +7,13 @@ import '../hooks/useDeviceTargetClass.js';
|
|
|
7
7
|
import 'lodash/castArray';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import '../context/UIContext.js';
|
|
10
|
-
import 'prop-types';
|
|
11
10
|
import '../hooks/useMediaQueries.js';
|
|
12
11
|
import 'react-responsive';
|
|
13
12
|
import '../hooks/useStyles.js';
|
|
14
13
|
import 'lodash/maxBy';
|
|
15
14
|
import 'lodash/upperFirst';
|
|
16
15
|
import '../hooks/styleAttributes.js';
|
|
17
|
-
import '../Link-
|
|
18
|
-
import '../tslib.es6-
|
|
19
|
-
import '../Text-
|
|
16
|
+
import '../Link-CeQuavin.js';
|
|
17
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
18
|
+
import '../Text-DlSG_p4u.js';
|
|
20
19
|
import '../appearance/Text.js';
|
package/dist/components/Modal.js
CHANGED
|
@@ -2,23 +2,29 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import React, { useState, useRef, useCallback, useEffect, useLayoutEffect, useImperativeHandle } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import ReactDOM from 'react-dom';
|
|
5
|
+
import { modalAppearance } from '../appearance/Modal.js';
|
|
5
6
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
6
7
|
import { useStyles } from '../hooks/useStyles.js';
|
|
7
8
|
import { O as Overlay } from '../Overlay-DO5dnSRE.js';
|
|
8
|
-
import { L as Loader } from '../Loader-
|
|
9
|
+
import { L as Loader } from '../Loader-CqEocvjh.js';
|
|
9
10
|
import 'lodash/castArray';
|
|
10
11
|
import 'lodash/camelCase';
|
|
11
12
|
import '../context/UIContext.js';
|
|
12
|
-
import 'prop-types';
|
|
13
13
|
import '../hooks/useMediaQueries.js';
|
|
14
14
|
import 'react-responsive';
|
|
15
15
|
import 'lodash/maxBy';
|
|
16
16
|
import 'lodash/upperFirst';
|
|
17
17
|
import '../hooks/styleAttributes.js';
|
|
18
18
|
import '../appearance/Loader.js';
|
|
19
|
-
import '../Text-
|
|
19
|
+
import '../Text-DlSG_p4u.js';
|
|
20
20
|
import '../appearance/Text.js';
|
|
21
21
|
|
|
22
|
+
var modalConfig = {
|
|
23
|
+
appearance: modalAppearance,
|
|
24
|
+
setAppearance: function (newComponent) {
|
|
25
|
+
modalConfig.appearance = newComponent;
|
|
26
|
+
},
|
|
27
|
+
};
|
|
22
28
|
var getOrCreateModalElement = function (modalQuerySelector, className) {
|
|
23
29
|
var _a;
|
|
24
30
|
if (className === void 0) { className = ''; }
|
|
@@ -41,7 +47,7 @@ var getOrCreateModalElement = function (modalQuerySelector, className) {
|
|
|
41
47
|
};
|
|
42
48
|
// Modal component that is an abstraction around the portal API.
|
|
43
49
|
var Modal = React.forwardRef(function Modal(props, ref) {
|
|
44
|
-
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, 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;
|
|
50
|
+
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;
|
|
45
51
|
// Query DOM element
|
|
46
52
|
var _g = useState(null), modalElement = _g[0], setModalElement = _g[1];
|
|
47
53
|
var _h = useState(initialIsOpen), isOpen = _h[0], setIsOpen = _h[1];
|
|
@@ -55,7 +61,7 @@ var Modal = React.forwardRef(function Modal(props, ref) {
|
|
|
55
61
|
// Scroll to opened modal
|
|
56
62
|
if (isScrollOnOpen) {
|
|
57
63
|
// modalContentRef.current.style.top = `${window.visualViewport.pageTop}px`
|
|
58
|
-
element.scrollIntoView({
|
|
64
|
+
element.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
59
65
|
}
|
|
60
66
|
// "setTimeout" in this implementation is needs for set focus on modal
|
|
61
67
|
// after "onMouseDown" event on button
|
|
@@ -155,13 +161,26 @@ var Modal = React.forwardRef(function Modal(props, ref) {
|
|
|
155
161
|
});
|
|
156
162
|
// @ts-expect-error
|
|
157
163
|
var modalStyles = useStyles(props).styles;
|
|
164
|
+
var appearanceConfig = appearance && modalConfig.appearance && modalConfig.appearance[appearance];
|
|
158
165
|
// Use a portal to render the children into the element
|
|
159
166
|
return (modalElement &&
|
|
160
167
|
ReactDOM.createPortal(
|
|
161
168
|
// Any valid React child: JSX, strings, arrays, etc.
|
|
162
|
-
isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { className: clsx('modal-content', contentClassName, fillClass
|
|
169
|
+
isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { className: clsx('modal-content', contentClassName, fillClass ||
|
|
170
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fill) &&
|
|
171
|
+
"fill_".concat(appearanceConfig.fill).replace(/([A-Z])/g, '-$1').toLowerCase()), shapeClass ||
|
|
172
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.shape) &&
|
|
173
|
+
"modal-shape_".concat(appearanceConfig.shape).replace(/([A-Z])/g, '-$1').toLowerCase()), borderColorClass ||
|
|
174
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.borderColor) &&
|
|
175
|
+
"border-color_".concat(appearanceConfig.borderColor)
|
|
176
|
+
.replace(/([A-Z])/g, '-$1')
|
|
177
|
+
.toLowerCase()), borderWidthClass, borderTypeClass, elevationClass ||
|
|
178
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.elevation) &&
|
|
179
|
+
"elevation_".concat(appearanceConfig.elevation)
|
|
180
|
+
.replace(/([A-Z])/g, '-$1')
|
|
181
|
+
.toLowerCase())), 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),
|
|
163
182
|
// ref={modalOverlayRef}
|
|
164
|
-
fill: overlayFill, opacity: overlayOpacity, fillGradient: overlayFillGradient, isOverlay: isOverlay, onClick: onClickOverlay })] })) : null,
|
|
183
|
+
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,
|
|
165
184
|
// A DOM element
|
|
166
185
|
modalElement));
|
|
167
186
|
});
|
|
@@ -170,4 +189,4 @@ function ModalLoader(props) {
|
|
|
170
189
|
return (jsx("div", { className: "modal-loading", children: jsx("div", { className: "modal-loading__inner", children: jsx(Loader, {}) }) }));
|
|
171
190
|
}
|
|
172
191
|
|
|
173
|
-
export { Modal, ModalLoader };
|
|
192
|
+
export { Modal, ModalLoader, modalConfig };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { _ as __assign } from '../tslib.es6-5FtW-kfi.js';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { Sheet } from 'react-modal-sheet';
|
|
5
|
+
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
6
|
+
import { useStyles } from '../hooks/useStyles.js';
|
|
7
|
+
import 'react';
|
|
8
|
+
import 'lodash/castArray';
|
|
9
|
+
import 'lodash/camelCase';
|
|
10
|
+
import '../context/UIContext.js';
|
|
11
|
+
import '../hooks/useMediaQueries.js';
|
|
12
|
+
import 'react-responsive';
|
|
13
|
+
import 'lodash/maxBy';
|
|
14
|
+
import 'lodash/upperFirst';
|
|
15
|
+
import '../hooks/styleAttributes.js';
|
|
16
|
+
|
|
17
|
+
function ModalSheetBottom(props) {
|
|
18
|
+
var children = props.children, isOpenModal = props.isOpenModal, className = props.className, closeButton = props.closeButton, closeModal = props.closeModal;
|
|
19
|
+
var borderColorClass = useDeviceTargetClass(props, {
|
|
20
|
+
prefix: 'border-color_',
|
|
21
|
+
propsKey: 'borderColor',
|
|
22
|
+
});
|
|
23
|
+
var fillClass = useDeviceTargetClass(props, {
|
|
24
|
+
prefix: 'fill_',
|
|
25
|
+
propsKey: 'fill',
|
|
26
|
+
});
|
|
27
|
+
// @ts-expect-error
|
|
28
|
+
var styles = useStyles(props).styles;
|
|
29
|
+
return (jsxs(Sheet, __assign({ className: clsx(className, 'modal-sheet-bottom', borderColorClass, fillClass), isOpen: isOpenModal, onClose: closeModal }, props, { children: [jsxs(Sheet.Container, { className: clsx(className, 'modal-sheet-bottom__container', borderColorClass, fillClass), style: styles, children: [closeButton ? (jsx("div", { className: clsx('modal-sheet-bottom__close'), onClick: closeModal, children: closeButton })) : (jsx(Sheet.Header, { className: clsx('modal-sheet-bottom__header') })), jsx(Sheet.Content, { className: clsx('modal-sheet-bottom__content'), children: children })] }), jsx(Sheet.Backdrop, { className: clsx('modal-sheet-bottom__backdrop'), onClick: closeModal })] })));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { ModalSheetBottom };
|
|
@@ -3,14 +3,13 @@ import clsx from 'clsx';
|
|
|
3
3
|
import { notificationItemAppearance } from '../appearance/Notification.js';
|
|
4
4
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles.js';
|
|
6
|
-
import { T as Text } from '../Text-
|
|
7
|
-
import { T as Title } from '../Title-
|
|
6
|
+
import { T as Text } from '../Text-DlSG_p4u.js';
|
|
7
|
+
import { T as Title } from '../Title-mkus84Rh.js';
|
|
8
8
|
import { useNotifications, useNotificationsAPI } from '../context/Notifications.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'lodash/castArray';
|
|
11
11
|
import 'lodash/camelCase';
|
|
12
12
|
import '../context/UIContext.js';
|
|
13
|
-
import 'prop-types';
|
|
14
13
|
import '../hooks/useMediaQueries.js';
|
|
15
14
|
import 'react-responsive';
|
|
16
15
|
import 'lodash/maxBy';
|
|
@@ -18,7 +17,7 @@ import 'lodash/upperFirst';
|
|
|
18
17
|
import '../hooks/styleAttributes.js';
|
|
19
18
|
import '../appearance/Text.js';
|
|
20
19
|
import '../appearance/Title.js';
|
|
21
|
-
import '../tslib.es6-
|
|
20
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
22
21
|
import 'uuid';
|
|
23
22
|
|
|
24
23
|
var notificationItemConfig = {
|
|
@@ -38,11 +37,13 @@ function NotificationItem(props) {
|
|
|
38
37
|
propsKey: 'width',
|
|
39
38
|
});
|
|
40
39
|
var appearanceConfig = appearance && notificationItemConfig.appearance && notificationItemConfig.appearance[appearance];
|
|
40
|
+
// @ts-expect-error
|
|
41
41
|
var notificationStyles = useStyles(props).styles;
|
|
42
|
-
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
|
|
42
|
+
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 ||
|
|
43
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.width) &&
|
|
44
|
+
"width_".concat(appearanceConfig.width).replace(/([A-Z])/g, '-$1').toLowerCase()), fillClass ||
|
|
43
45
|
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fill) &&
|
|
44
|
-
"fill_".concat(appearanceConfig.fill).replace(/([A-Z])/g, '-$1').toLowerCase())), "data-tour": dataTour, style: notificationStyles, children: [before, jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsx(Title, { className: "notification__item-title", size: titleTextSize, textColor: titleTextColor ||
|
|
45
|
-
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextColor) && appearanceConfig.titleTextColor), children: title })), text && (jsx(Text, { className: "notification__item-text", size: textSize, textColor: textColor || ((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor) && 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] }));
|
|
46
|
+
"fill_".concat(appearanceConfig.fill).replace(/([A-Z])/g, '-$1').toLowerCase())), "data-tour": dataTour, style: notificationStyles, children: [before, jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (jsx(Title, { 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] }));
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
function NotificationList(props) {
|