@mailstep/design-system 0.4.5 → 0.4.7
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/README.md +0 -6
- package/package.json +9 -9
- package/ui/Blocks/ImageList/ImageList.js +1 -1
- package/ui/Blocks/ImageList/components/AddPhoto/index.js +1 -1
- package/ui/Blocks/ImageList/components/ImageElement/index.js +1 -1
- package/ui/Blocks/LightBox/LightBox.js +3 -3
- package/ui/Blocks/LightBox/styles.d.ts +0 -1
- package/ui/Blocks/LightBox/styles.js +2 -3
- package/ui/Blocks/LightBox/types.d.ts +0 -3
- package/ui/Blocks/Modal/Modal.js +5 -6
- package/ui/Blocks/Modal/stories/Modal.stories.d.ts +5 -8
- package/ui/Blocks/Modal/stories/Modal.stories.js +18 -36
- package/ui/Blocks/Modal/styles.d.ts +6 -6
- package/ui/Blocks/Modal/styles.js +26 -53
- package/ui/Blocks/Modal/types.d.ts +5 -4
- package/ui/Blocks/Modal/utils.d.ts +2 -1
- package/ui/Blocks/Modal/utils.js +4 -0
- package/ui/Elements/Icon/icons/Expeditions.js +1 -1
- package/ui/Elements/Icon/icons/MenuItems.js +1 -1
- package/ui/Elements/Icon/icons/Return.js +1 -1
- package/ui/Elements/Icon/icons/index.d.ts +0 -14
- package/ui/Elements/Icon/icons/index.js +0 -14
- package/ui/Elements/Icon/stories/BadgeIcon.stories.d.ts +1 -1
- package/ui/Elements/Tag/index.d.ts +0 -1
- package/ui/ThemeProvider/themes/default.d.ts +1 -0
- package/ui/ThemeProvider/themes/default.js +2 -1
- package/ui/ThemeProvider/themes/index.d.ts +6 -1
- package/ui/ThemeProvider/themes/mailwise.d.ts +5 -1
- package/ui/ThemeProvider/themes/mailwise.js +10 -6
- package/ui/index.es.js +4095 -4288
- package/ui/index.umd.js +288 -300
- package/ui/Blocks/ImageList/stories/ImageList.stories.d.ts +0 -13
- package/ui/Blocks/ImageList/stories/ImageList.stories.js +0 -41
- package/ui/Blocks/LightBox/stories/LightBox.stories.d.ts +0 -11
- package/ui/Blocks/LightBox/stories/LightBox.stories.js +0 -20
- package/ui/Elements/Icon/icons/Calendar.d.ts +0 -3
- package/ui/Elements/Icon/icons/Calendar.js +0 -13
- package/ui/Elements/Icon/icons/Cancel.d.ts +0 -3
- package/ui/Elements/Icon/icons/Cancel.js +0 -13
- package/ui/Elements/Icon/icons/CheckedBox.d.ts +0 -3
- package/ui/Elements/Icon/icons/CheckedBox.js +0 -13
- package/ui/Elements/Icon/icons/Consolidation.d.ts +0 -3
- package/ui/Elements/Icon/icons/Consolidation.js +0 -13
- package/ui/Elements/Icon/icons/Dispatch.d.ts +0 -3
- package/ui/Elements/Icon/icons/Dispatch.js +0 -13
- package/ui/Elements/Icon/icons/EmptyRack.d.ts +0 -3
- package/ui/Elements/Icon/icons/EmptyRack.js +0 -2
- package/ui/Elements/Icon/icons/Gift.d.ts +0 -3
- package/ui/Elements/Icon/icons/Gift.js +0 -13
- package/ui/Elements/Icon/icons/Info.d.ts +0 -3
- package/ui/Elements/Icon/icons/Info.js +0 -13
- package/ui/Elements/Icon/icons/Location.d.ts +0 -3
- package/ui/Elements/Icon/icons/Location.js +0 -13
- package/ui/Elements/Icon/icons/MakePhoto.d.ts +0 -3
- package/ui/Elements/Icon/icons/MakePhoto.js +0 -13
- package/ui/Elements/Icon/icons/Print.d.ts +0 -3
- package/ui/Elements/Icon/icons/Print.js +0 -13
- package/ui/Elements/Icon/icons/ThreeDots.d.ts +0 -3
- package/ui/Elements/Icon/icons/ThreeDots.js +0 -13
- package/ui/Elements/Icon/icons/TwoBoxes.d.ts +0 -3
- package/ui/Elements/Icon/icons/TwoBoxes.js +0 -13
- package/ui/Elements/Icon/icons/TwoCheckedBoxes.d.ts +0 -3
- package/ui/Elements/Icon/icons/TwoCheckedBoxes.js +0 -2
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailstep/design-system",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./ui/index.js",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"@fortawesome/pro-regular-svg-icons": "^6.0.0",
|
|
29
29
|
"@fortawesome/pro-solid-svg-icons": "^6.3.0",
|
|
30
30
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
31
|
-
"@storybook/addon-controls": "7.
|
|
32
|
-
"@storybook/addon-essentials": "7.
|
|
33
|
-
"@storybook/addon-interactions": "7.
|
|
34
|
-
"@storybook/addon-links": "7.
|
|
35
|
-
"@storybook/blocks": "7.
|
|
36
|
-
"@storybook/react": "7.
|
|
37
|
-
"@storybook/react-webpack5": "7.
|
|
31
|
+
"@storybook/addon-controls": "7.5.2",
|
|
32
|
+
"@storybook/addon-essentials": "7.5.2",
|
|
33
|
+
"@storybook/addon-interactions": "7.5.2",
|
|
34
|
+
"@storybook/addon-links": "7.5.2",
|
|
35
|
+
"@storybook/blocks": "7.5.2",
|
|
36
|
+
"@storybook/react": "7.5.2",
|
|
37
|
+
"@storybook/react-webpack5": "7.5.2",
|
|
38
38
|
"@storybook/testing-library": "0.2.2",
|
|
39
39
|
"@svgr/rollup": "^8.0.1",
|
|
40
40
|
"@types/node": "^20.1.7",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"react-script": "^2.0.5",
|
|
58
58
|
"react-toastify": "^9.1.3",
|
|
59
59
|
"react-use-draggable-scroll": "^0.4.7",
|
|
60
|
-
"storybook": "7.
|
|
60
|
+
"storybook": "7.5.2",
|
|
61
61
|
"string-width": "6.1.0",
|
|
62
62
|
"styled-components": "^5.3.10",
|
|
63
63
|
"swiper": "^11.0.3",
|
|
@@ -24,6 +24,6 @@ export var ImageList = function (_a) {
|
|
|
24
24
|
var _b = useLightBox(), isLightBoxOpen = _b.isLightBoxOpen, onCloseLightBox = _b.onCloseLightBox, onOpenLightBox = _b.onOpenLightBox, lightBoxData = _b.lightBoxData;
|
|
25
25
|
return (_jsxs(x.div, { display: "flex", alignItems: "flex-end", children: [_jsx(AddPhoto, { onImageUpload: onImageUpload, isDisabled: isDisabled }), images && (_jsx(ImageListContainer, __assign({ ref: ref }, events, { children: images.map(function (item, index) {
|
|
26
26
|
var _a, _b;
|
|
27
|
-
return (_jsx(ImageElement, { imageUrl: (_a = item.smallUrl) !== null && _a !== void 0 ? _a : item.url, onImageRemove: onImageRemove === null || onImageRemove === void 0 ? void 0 : onImageRemove(item.id), onOpenLightBox: onOpenLightBox(index), isDisabled: isDisabled
|
|
27
|
+
return (_jsx(ImageElement, { imageUrl: (_a = item.smallUrl) !== null && _a !== void 0 ? _a : item.url, onImageRemove: onImageRemove === null || onImageRemove === void 0 ? void 0 : onImageRemove(item.id), onOpenLightBox: onOpenLightBox(index), isDisabled: isDisabled }, (_b = item.id) !== null && _b !== void 0 ? _b : index));
|
|
28
28
|
}) }))), _jsx(LightBox, { initialSlide: lightBoxData === null || lightBoxData === void 0 ? void 0 : lightBoxData.initialSlide, isLightBoxOpen: isLightBoxOpen, onCloseLightBox: onCloseLightBox, lightBoxAction: lightBoxAction, lightBoxActionTitle: lightBoxActionTitle, images: images })] }));
|
|
29
29
|
};
|
|
@@ -64,5 +64,5 @@ export var AddPhoto = function (_a) {
|
|
|
64
64
|
}, [onImageUpload]);
|
|
65
65
|
if (!onImageUpload)
|
|
66
66
|
return null;
|
|
67
|
-
return (_jsxs(Container, { isDisabled: isDisabled, children: [_jsx(HiddenInput, { disabled: isDisabled, onChange: handleImageUpload, type: "file", accept: "image
|
|
67
|
+
return (_jsxs(Container, { isDisabled: isDisabled, children: [_jsx(HiddenInput, { disabled: isDisabled, onChange: handleImageUpload, type: "file", accept: "image/*" }), _jsx(AddPhotoIcon, { width: "36", height: "36" })] }));
|
|
68
68
|
};
|
|
@@ -7,5 +7,5 @@ export var ImageElement = function (_a) {
|
|
|
7
7
|
var label = _a.label, onImageRemove = _a.onImageRemove, isDisabled = _a.isDisabled, onOpenLightBox = _a.onOpenLightBox, imageUrl = _a.imageUrl;
|
|
8
8
|
if (!imageUrl)
|
|
9
9
|
return null;
|
|
10
|
-
return (_jsxs(x.div, { position: "relative", pr: "15px", pt: "15px", w: "100px",
|
|
10
|
+
return (_jsxs(x.div, { position: "relative", pr: "15px", pt: "15px", w: "100px", children: [_jsx(Image, { src: imageUrl, alt: "", width: "85px", height: "85px", onClick: onOpenLightBox }), onImageRemove && _jsx(CloseButton, { onImageRemove: onImageRemove, isDisabled: isDisabled }), _jsx(ImageTag, { label: label })] }));
|
|
11
11
|
};
|
|
@@ -2,13 +2,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Button } from '../../Elements/Button';
|
|
3
3
|
import Modal from '../Modal';
|
|
4
4
|
import { Swiper, SwiperSlide } from 'swiper/react';
|
|
5
|
-
import { Container, Image, ButtonContainer
|
|
5
|
+
import { Container, Image, ButtonContainer } from './styles';
|
|
6
6
|
export var LightBox = function (_a) {
|
|
7
7
|
var isLightBoxOpen = _a.isLightBoxOpen, onCloseLightBox = _a.onCloseLightBox, lightBoxAction = _a.lightBoxAction, lightBoxActionTitle = _a.lightBoxActionTitle, images = _a.images, _b = _a.initialSlide, initialSlide = _b === void 0 ? 0 : _b;
|
|
8
8
|
if (!(images === null || images === void 0 ? void 0 : images.length))
|
|
9
9
|
return null;
|
|
10
|
-
return (_jsx(Modal, { isShown: isLightBoxOpen, onClose: onCloseLightBox,
|
|
10
|
+
return (_jsx(Modal, { isShown: isLightBoxOpen, onClose: onCloseLightBox, mobileFullscreen: true, miniCloseBtn: true, withCloseIcon: true, children: _jsx(Swiper, { initialSlide: initialSlide, slidesPerView: 1, autoHeight: true, children: images.map(function (item) {
|
|
11
11
|
var _a;
|
|
12
|
-
return (_jsx(SwiperSlide, { children: _jsxs(Container, { children: [_jsx(Image, { src: (_a = item.originalUrl) !== null && _a !== void 0 ? _a : item.url, loading: "lazy", alt: "" }),
|
|
12
|
+
return (_jsx(SwiperSlide, { children: _jsxs(Container, { children: [_jsx(Image, { src: (_a = item.originalUrl) !== null && _a !== void 0 ? _a : item.url, loading: "lazy", alt: "" }), !!item.withLightBoxAction && lightBoxAction && lightBoxActionTitle && (_jsx(ButtonContainer, { children: _jsx(Button, { onClick: lightBoxAction(item.id), appearance: "primaryLight", children: lightBoxActionTitle }) }))] }) }, item.id));
|
|
13
13
|
}) }) }));
|
|
14
14
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare const Container: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {}, never>;
|
|
2
2
|
export declare const Image: import("styled-components").StyledComponent<"img", import("@xstyled/system").Theme, {}, never>;
|
|
3
3
|
export declare const ButtonContainer: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {}, never>;
|
|
4
|
-
export declare const Description: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {}, never>;
|
|
@@ -3,8 +3,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
5
|
import styled from '@xstyled/styled-components';
|
|
6
|
-
export var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n position: relative;\n
|
|
6
|
+
export var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n position: relative;\n"], ["\n width: 100%;\n height: 100%;\n position: relative;\n"])));
|
|
7
7
|
export var Image = styled.img(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n"], ["\n width: 100%;\n height: 100%;\n"])));
|
|
8
8
|
export var ButtonContainer = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 100%;\n display: flex;\n justify-content: center;\n position: absolute;\n bottom: -60px;\n"], ["\n width: 100%;\n display: flex;\n justify-content: center;\n position: absolute;\n bottom: -60px;\n"])));
|
|
9
|
-
|
|
10
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
9
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -10,11 +10,8 @@ export type UseLightBoxHookType = () => {
|
|
|
10
10
|
export interface ImageData {
|
|
11
11
|
id: string;
|
|
12
12
|
url?: string;
|
|
13
|
-
label?: string;
|
|
14
|
-
date?: string;
|
|
15
13
|
smallUrl?: string;
|
|
16
14
|
originalUrl?: string;
|
|
17
|
-
description?: string | null;
|
|
18
15
|
withLightBoxAction?: boolean;
|
|
19
16
|
}
|
|
20
17
|
export interface LightBoxProps {
|
package/ui/Blocks/Modal/Modal.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { memo, useCallback, useMemo, useEffect } from 'react';
|
|
3
|
-
import { Icon
|
|
4
|
-
import {
|
|
5
|
-
import { DialogOverlay, DialogWindow, HeaderContainer, ButtonsContainer, ContentContainer, TitleContainer, CloseButton, } from './styles';
|
|
3
|
+
import { Icon } from '../../Elements/Icon';
|
|
4
|
+
import { DialogOverlay, DialogWindow, HeaderContainer, ButtonsContainer, ContentContainer, TitleContainer, CloseButton, H4, } from './styles';
|
|
6
5
|
import { x } from '@xstyled/styled-components';
|
|
7
6
|
import { Button } from '../../Elements/Button';
|
|
8
7
|
import { Portal } from '../../Elements/Portal';
|
|
9
8
|
import { useClickOutside } from './hooks/useClickOutside';
|
|
10
|
-
import { widthMap } from './utils';
|
|
9
|
+
import { topSpaceMap, widthMap } from './utils';
|
|
11
10
|
export var Modal = memo(function (_a) {
|
|
12
|
-
var children = _a.children, _b = _a.isShown, isShown = _b === void 0 ? true : _b, onCancel = _a.onCancel, title = _a.title, titleIcon = _a.titleIcon, onConfirm = _a.onConfirm, confirmLabel = _a.confirmLabel, cancelLabel = _a.cancelLabel, isLoading = _a.isLoading, isConfirmDisabled = _a.isConfirmDisabled, _c = _a.width, width = _c === void 0 ? 'narrow' : _c,
|
|
11
|
+
var children = _a.children, _b = _a.isShown, isShown = _b === void 0 ? true : _b, onCancel = _a.onCancel, title = _a.title, titleIcon = _a.titleIcon, onConfirm = _a.onConfirm, confirmLabel = _a.confirmLabel, cancelLabel = _a.cancelLabel, isLoading = _a.isLoading, isConfirmDisabled = _a.isConfirmDisabled, _c = _a.width, width = _c === void 0 ? 'narrow' : _c, _d = _a.topSpace, topSpace = _d === void 0 ? 'default' : _d, onClose = _a.onClose, _e = _a.hasFooter, hasFooter = _e === void 0 ? true : _e, _f = _a.hasHeader, hasHeader = _f === void 0 ? true : _f, _g = _a.whiteBg, whiteBg = _g === void 0 ? false : _g, _h = _a.miniCloseBtn, miniCloseBtn = _h === void 0 ? false : _h, _j = _a.ignoreClickOutside, ignoreClickOutside = _j === void 0 ? false : _j, _k = _a.closeEverywhere, closeEverywhere = _k === void 0 ? false : _k, _l = _a.withCloseIcon, withCloseIcon = _l === void 0 ? true : _l, _m = _a.mobileFullscreen, mobileFullscreen = _m === void 0 ? false : _m, overlayColor = _a.overlayColor, minWidth = _a.minWidth, minHeight = _a.minHeight, maxWidth = _a.maxWidth, maxHeight = _a.maxHeight;
|
|
13
12
|
var closeDialog = useCallback(function () {
|
|
14
13
|
if (onClose) {
|
|
15
14
|
onClose();
|
|
@@ -32,5 +31,5 @@ export var Modal = memo(function (_a) {
|
|
|
32
31
|
if (!isShown) {
|
|
33
32
|
return null;
|
|
34
33
|
}
|
|
35
|
-
return (_jsx(Portal, { children: _jsx(DialogOverlay, { backgroundColor: overlayColor, children: _jsxs(DialogWindow, { ref: dialogRef, style: dialogStyle, "$
|
|
34
|
+
return (_jsx(Portal, { children: _jsx(DialogOverlay, { backgroundColor: overlayColor, children: _jsxs(DialogWindow, { ref: dialogRef, style: dialogStyle, "$whiteBg": whiteBg, "data-cy": "dialogWindow", onClick: closeEverywhere ? closeDialog : undefined, "$minWidth": minWidth, "$minHeight": minHeight, "$maxWidth": maxWidth, "$maxHeight": maxHeight, "$mobileFullscreen": mobileFullscreen, children: [title && hasHeader && (_jsx(HeaderContainer, { topSpace: topSpaceMap[topSpace], children: _jsxs(TitleContainer, { children: [titleIcon && (_jsx(x.div, { as: "span", className: "icon", children: typeof titleIcon === 'string' ? _jsx(Icon, { icon: titleIcon, fill: "blue2" }) : titleIcon })), _jsx(H4, { children: title })] }) })), _jsx(ContentContainer, { topSpace: topSpaceMap[topSpace], "$mobileFullscreen": mobileFullscreen, children: children }), hasFooter && (onCancel || onConfirm) && (_jsxs(ButtonsContainer, { children: [onCancel && (_jsx(Button, { type: "button", onClick: onCancel, isLoading: isLoading, "data-cy": "cancelBtn", appearance: "primaryLight", children: cancelLabel ? cancelLabel : 'Cancel' })), onConfirm && (_jsx(Button, { type: "button", onClick: onDialogConfirmClick, isLoading: isLoading, disabled: isConfirmDisabled, "data-cy": "submitBtn", children: confirmLabel ? confirmLabel : 'Submit' }))] })), hasHeader && !closeEverywhere && withCloseIcon && (_jsx(CloseButton, { onClick: closeDialog, "data-cy": "dialogCloseBtn", children: _jsx(Icon, { icon: "close", size: miniCloseBtn ? '20px' : '26px' }) }))] }) }) }));
|
|
36
35
|
});
|
|
@@ -2,21 +2,18 @@
|
|
|
2
2
|
import { StoryObj } from '@storybook/react';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: import("react").FC<import("
|
|
5
|
+
component: import("react").FC<import("..").ModalProps>;
|
|
6
6
|
tags: string[];
|
|
7
7
|
argTypes: {};
|
|
8
8
|
};
|
|
9
9
|
export default meta;
|
|
10
10
|
type Story = StoryObj<typeof meta>;
|
|
11
|
-
export declare const Default: Story;
|
|
12
|
-
export declare const Compact: Story;
|
|
13
|
-
export declare const MobileFullscreen: Story;
|
|
14
|
-
export declare const ModalTopPosition: Story;
|
|
15
11
|
export declare const ModalWithCloseAndConfirmBtns: Story;
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
12
|
+
export declare const MobileNotificationModal: Story;
|
|
13
|
+
export declare const ModalWithIcon: Story;
|
|
18
14
|
export declare const ModalLoading: Story;
|
|
19
|
-
export declare const
|
|
15
|
+
export declare const ModalWithWhiteBg: Story;
|
|
16
|
+
export declare const ModalWithoutCloseIcon: Story;
|
|
20
17
|
export declare const ModalWithoutHeader: Story;
|
|
21
18
|
export declare const ModalWithoutFooter: Story;
|
|
22
19
|
export declare const ModalWithoutHeaderAndFooter: Story;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import Modal from '../';
|
|
2
|
+
import { Modal } from '../Modal';
|
|
3
3
|
var meta = {
|
|
4
4
|
title: 'Blocks/Modal',
|
|
5
5
|
component: Modal,
|
|
@@ -7,52 +7,26 @@ var meta = {
|
|
|
7
7
|
argTypes: {},
|
|
8
8
|
};
|
|
9
9
|
export default meta;
|
|
10
|
-
export var Default = {
|
|
11
|
-
args: {
|
|
12
|
-
title: 'Modal default version',
|
|
13
|
-
children: _jsx(_Fragment, { children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed condimentum id eros ac consequat." }),
|
|
14
|
-
variant: 'default',
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
export var Compact = {
|
|
18
|
-
args: {
|
|
19
|
-
title: 'Modal title',
|
|
20
|
-
children: _jsx(_Fragment, { children: "Modal compact version" }),
|
|
21
|
-
variant: 'compact',
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
export var MobileFullscreen = {
|
|
25
|
-
args: {
|
|
26
|
-
children: _jsx(_Fragment, { children: "Mobile full screen version without title" }),
|
|
27
|
-
variant: 'mobileFullscreen',
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
export var ModalTopPosition = {
|
|
31
|
-
args: {
|
|
32
|
-
title: 'Modal default version',
|
|
33
|
-
children: _jsx(_Fragment, { children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed condimentum id eros ac consequat." }),
|
|
34
|
-
variant: 'default',
|
|
35
|
-
top: '0'
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
10
|
export var ModalWithCloseAndConfirmBtns = {
|
|
39
11
|
args: {
|
|
40
|
-
children: _jsx(_Fragment, { children: "Modal with
|
|
12
|
+
children: _jsx(_Fragment, { children: "Modal Content with Cancel and Submit buttons" }),
|
|
41
13
|
title: 'Modal title',
|
|
42
14
|
width: 'narrow',
|
|
15
|
+
onClose: function () { return console.log('Close'); },
|
|
16
|
+
onConfirm: function () { return console.log('Submit'); },
|
|
43
17
|
},
|
|
44
18
|
};
|
|
45
|
-
export var
|
|
19
|
+
export var MobileNotificationModal = {
|
|
46
20
|
args: {
|
|
47
|
-
title: 'Note',
|
|
48
21
|
children: (_jsx(_Fragment, { children: "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aspernatur explicabo harum, inventore natus qui repellendus suscipit vitae. Alias aliquam earum et ipsa labore, laboriosam maxime numquam odio recusandae, repellat, voluptas." })),
|
|
22
|
+
title: 'Poznamka',
|
|
49
23
|
width: 'narrow',
|
|
50
24
|
withCloseIcon: false,
|
|
51
25
|
onClose: function () { return console.log('Close'); },
|
|
52
26
|
onConfirm: undefined,
|
|
53
27
|
},
|
|
54
28
|
};
|
|
55
|
-
export var
|
|
29
|
+
export var ModalWithIcon = {
|
|
56
30
|
args: {
|
|
57
31
|
children: _jsx(_Fragment, { children: "Modal with icon" }),
|
|
58
32
|
title: 'Modal title',
|
|
@@ -68,17 +42,25 @@ export var ModalLoading = {
|
|
|
68
42
|
isLoading: true,
|
|
69
43
|
},
|
|
70
44
|
};
|
|
71
|
-
export var
|
|
45
|
+
export var ModalWithWhiteBg = {
|
|
72
46
|
args: {
|
|
73
47
|
children: _jsx(_Fragment, { children: "Modal with white background" }),
|
|
74
48
|
title: 'Modal title',
|
|
75
49
|
width: 'narrow',
|
|
76
|
-
|
|
50
|
+
whiteBg: true,
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
export var ModalWithoutCloseIcon = {
|
|
54
|
+
args: {
|
|
55
|
+
children: _jsx(_Fragment, { children: "Modal without close icon" }),
|
|
56
|
+
title: 'Modal title',
|
|
57
|
+
width: 'narrow',
|
|
58
|
+
withCloseIcon: false,
|
|
77
59
|
},
|
|
78
60
|
};
|
|
79
61
|
export var ModalWithoutHeader = {
|
|
80
62
|
args: {
|
|
81
|
-
children: _jsx(_Fragment, { children: "
|
|
63
|
+
children: _jsx(_Fragment, { children: "Modal without header" }),
|
|
82
64
|
title: 'Modal title',
|
|
83
65
|
width: 'narrow',
|
|
84
66
|
hasHeader: false,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { Variant } from './types';
|
|
2
1
|
export declare const DialogOverlay: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {
|
|
3
2
|
backgroundColor?: string | undefined;
|
|
4
3
|
}, never>;
|
|
5
4
|
export declare const DialogWindow: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {
|
|
6
|
-
$
|
|
5
|
+
$whiteBg?: boolean | undefined;
|
|
7
6
|
$minWidth?: string | undefined;
|
|
8
7
|
$minHeight?: string | undefined;
|
|
9
8
|
$maxWidth?: string | undefined;
|
|
10
9
|
$maxHeight?: string | undefined;
|
|
11
|
-
|
|
12
|
-
top?: string | undefined;
|
|
10
|
+
$mobileFullscreen: boolean;
|
|
13
11
|
}, never>;
|
|
14
12
|
export declare const HeaderContainer: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {
|
|
15
|
-
|
|
13
|
+
topSpace: string;
|
|
16
14
|
}, never>;
|
|
17
15
|
export declare const ContentContainer: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {
|
|
18
|
-
|
|
16
|
+
topSpace: string;
|
|
17
|
+
$mobileFullscreen: boolean;
|
|
19
18
|
}, never>;
|
|
20
19
|
export declare const TitleContainer: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {}, never>;
|
|
20
|
+
export declare const H4: import("styled-components").StyledComponent<"h4", import("@xstyled/system").Theme, {}, never>;
|
|
21
21
|
export declare const ButtonsContainer: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {}, never>;
|
|
22
22
|
export declare const CloseButton: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {}, never>;
|
|
@@ -2,71 +2,44 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
2
2
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
|
-
import styled, {
|
|
5
|
+
import styled, { th } from '@xstyled/styled-components';
|
|
6
6
|
import { createRgba } from '../../utils';
|
|
7
|
-
var
|
|
8
|
-
(function (Component) {
|
|
9
|
-
Component["Header"] = "header";
|
|
10
|
-
Component["DialogWindow"] = "dialogWindow";
|
|
11
|
-
Component["ContentContainer"] = "contentContainer";
|
|
12
|
-
Component["Title"] = "title";
|
|
13
|
-
})(Component || (Component = {}));
|
|
14
|
-
var variantStyles = function (component, variant) {
|
|
15
|
-
if (variant === void 0) { variant = 'default'; }
|
|
16
|
-
return ({
|
|
17
|
-
header: {
|
|
18
|
-
default: css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 20px;\n border-bottom: 1px solid ", ";\n @media (min-width: 576px) {\n padding: 30px;\n border-bottom: 0;\n }\n "], ["\n padding: 20px;\n border-bottom: 1px solid ", ";\n @media (min-width: 576px) {\n padding: 30px;\n border-bottom: 0;\n }\n "])), th.color('lightGray6')),
|
|
19
|
-
compact: css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding: 20px 20px;\n border-bottom: 1px solid ", ";\n "], ["\n padding: 20px 20px;\n border-bottom: 1px solid ", ";\n "])), th.color('lightGray6')),
|
|
20
|
-
mobileFullscreen: css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding: 20px;\n "], ["\n padding: 20px;\n "]))),
|
|
21
|
-
},
|
|
22
|
-
dialogWindow: {
|
|
23
|
-
default: css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 10px;\n max-width: calc(100% - 32px);\n "], ["\n border-radius: 10px;\n max-width: calc(100% - 32px);\n "]))),
|
|
24
|
-
compact: css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border-radius: 10px;\n max-width: calc(100% - 32px);\n "], ["\n border-radius: 10px;\n max-width: calc(100% - 32px);\n "]))),
|
|
25
|
-
mobileFullscreen: css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n border-radius: 0;\n max-width: 100% !important;\n "], ["\n border-radius: 0;\n max-width: 100% !important;\n "]))),
|
|
26
|
-
},
|
|
27
|
-
contentContainer: {
|
|
28
|
-
default: css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n padding: 20px 20px 15px;\n @media (min-width: 576px) {\n padding: 30px;\n }\n "], ["\n padding: 20px 20px 15px;\n @media (min-width: 576px) {\n padding: 30px;\n }\n "]))),
|
|
29
|
-
compact: css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n padding: 20px 20px 15px;\n "], ["\n padding: 20px 20px 15px;\n "]))),
|
|
30
|
-
mobileFullscreen: css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n padding: 0;\n "], ["\n padding: 0;\n "]))),
|
|
31
|
-
},
|
|
32
|
-
title: {},
|
|
33
|
-
}[component][variant]);
|
|
34
|
-
};
|
|
35
|
-
export var DialogOverlay = styled.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n position: fixed;\n z-index: 9;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n overflow: auto;\n background-color: ", ";\n text-align: center;\n\n @media print {\n position: absolute !important;\n left: 0 !important;\n top: 0 !important;\n height: auto !important;\n visibility: hidden;\n }\n\n @media (max-width: 576px) {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 16px 0;\n }\n"], ["\n position: fixed;\n z-index: 9;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n overflow: auto;\n background-color: ", ";\n text-align: center;\n\n @media print {\n position: absolute !important;\n left: 0 !important;\n top: 0 !important;\n height: auto !important;\n visibility: hidden;\n }\n\n @media (max-width: 576px) {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 16px 0;\n }\n"])), function (_a) {
|
|
7
|
+
export var DialogOverlay = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: fixed; /* Stay in place */\n z-index: 5;\n left: 0;\n top: 0;\n width: 100%; /* Full width */\n height: 100%; /* Full height */\n overflow: auto; /* Enable scroll if needed */\n background-color: ", ";\n text-align: center;\n @media print {\n position: absolute !important;\n left: 0 !important;\n top: 0 !important;\n height: auto !important;\n visibility: hidden;\n }\n @media (max-width: 576px) {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 16px 0;\n }\n"], ["\n position: fixed; /* Stay in place */\n z-index: 5;\n left: 0;\n top: 0;\n width: 100%; /* Full width */\n height: 100%; /* Full height */\n overflow: auto; /* Enable scroll if needed */\n background-color: ", ";\n text-align: center;\n @media print {\n position: absolute !important;\n left: 0 !important;\n top: 0 !important;\n height: auto !important;\n visibility: hidden;\n }\n @media (max-width: 576px) {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 16px 0;\n }\n"])), function (_a) {
|
|
36
8
|
var _b = _a.backgroundColor, backgroundColor = _b === void 0 ? 'blue2' : _b;
|
|
37
9
|
return createRgba(backgroundColor, 0.6);
|
|
38
10
|
});
|
|
39
|
-
export var DialogWindow = styled.div(
|
|
40
|
-
var $
|
|
41
|
-
return $
|
|
11
|
+
export var DialogWindow = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n margin: 100px auto 0 auto; /* Location of the box */\n padding: 0;\n border: 0;\n border-radius: 1rem;\n box-shadow: dialogShadow;\n min-width: ", ";\n max-width: ", ";\n min-height: ", ";\n max-height: ", ";\n display: inline-block;\n position: relative;\n text-align: left;\n @media print {\n background-color: #fff;\n margin: 0;\n visibility: visible;\n overflow: visible;\n box-shadow: none;\n max-width: 100%;\n }\n\n @media (max-width: 576px) {\n margin: auto;\n ", ";\n }\n"], ["\n background-color: ", ";\n margin: 100px auto 0 auto; /* Location of the box */\n padding: 0;\n border: 0;\n border-radius: 1rem;\n box-shadow: dialogShadow;\n min-width: ", ";\n max-width: ", ";\n min-height: ", ";\n max-height: ", ";\n display: inline-block;\n position: relative;\n text-align: left;\n @media print {\n background-color: #fff;\n margin: 0;\n visibility: visible;\n overflow: visible;\n box-shadow: none;\n max-width: 100%;\n }\n\n @media (max-width: 576px) {\n margin: auto;\n ", ";\n }\n"])), function (_a) {
|
|
12
|
+
var $whiteBg = _a.$whiteBg;
|
|
13
|
+
return ($whiteBg ? th.color('white') : '#fefefe');
|
|
42
14
|
}, function (_a) {
|
|
43
15
|
var $minWidth = _a.$minWidth;
|
|
44
16
|
return $minWidth || '10%';
|
|
17
|
+
}, function (_a) {
|
|
18
|
+
var $maxWidth = _a.$maxWidth;
|
|
19
|
+
return $maxWidth || 'calc(100% - 32px)';
|
|
45
20
|
}, function (_a) {
|
|
46
21
|
var $minHeight = _a.$minHeight;
|
|
47
22
|
return $minHeight || 'auto';
|
|
48
23
|
}, function (_a) {
|
|
49
24
|
var $maxHeight = _a.$maxHeight;
|
|
50
|
-
return $maxHeight || '
|
|
51
|
-
}, function (_a) {
|
|
52
|
-
var variant = _a.variant;
|
|
53
|
-
return variantStyles(Component.DialogWindow, variant);
|
|
25
|
+
return $maxHeight || 'auto';
|
|
54
26
|
}, function (_a) {
|
|
55
|
-
var $
|
|
56
|
-
return $
|
|
57
|
-
}, function (_a) {
|
|
58
|
-
var _b = _a.top, top = _b === void 0 ? '100px' : _b;
|
|
59
|
-
return top;
|
|
27
|
+
var $mobileFullscreen = _a.$mobileFullscreen;
|
|
28
|
+
return $mobileFullscreen && 'border-radius: 0; max-width: 100% !important;';
|
|
60
29
|
});
|
|
61
|
-
export var HeaderContainer = styled.div(
|
|
62
|
-
var
|
|
63
|
-
return
|
|
64
|
-
});
|
|
65
|
-
export var ContentContainer = styled.div(
|
|
66
|
-
var
|
|
67
|
-
return
|
|
30
|
+
export var HeaderContainer = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n padding: 30px;\n padding-bottom: ", ";\n\n @media (max-width: 576px) {\n padding: 18px;\n border-bottom: 1px solid ", ";\n }\n"], ["\n display: flex;\n justify-content: space-between;\n padding: 30px;\n padding-bottom: ", ";\n\n @media (max-width: 576px) {\n padding: 18px;\n border-bottom: 1px solid ", ";\n }\n"])), function (_a) {
|
|
31
|
+
var topSpace = _a.topSpace;
|
|
32
|
+
return topSpace;
|
|
33
|
+
}, th.color('lightGray6'));
|
|
34
|
+
export var ContentContainer = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n padding: 30px;\n padding-top: ", ";\n\n @media (max-width: 576px) {\n padding: ", ";\n font-size: 16px;\n line-height: 1.4;\n }\n"], ["\n padding: 30px;\n padding-top: ", ";\n\n @media (max-width: 576px) {\n padding: ", ";\n font-size: 16px;\n line-height: 1.4;\n }\n"])), function (_a) {
|
|
35
|
+
var topSpace = _a.topSpace;
|
|
36
|
+
return topSpace;
|
|
37
|
+
}, function (_a) {
|
|
38
|
+
var $mobileFullscreen = _a.$mobileFullscreen;
|
|
39
|
+
return ($mobileFullscreen ? '0' : '18px');
|
|
68
40
|
});
|
|
69
|
-
export var TitleContainer = styled.div(
|
|
70
|
-
export var
|
|
71
|
-
export var
|
|
72
|
-
var
|
|
41
|
+
export var TitleContainer = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n flex-flow: row;\n align-items: center;\n > div:first-of-type {\n margin-right: 0.5em;\n display: block;\n }\n\n .icon {\n font-size: 24px;\n margin-right: 15px;\n display: flex;\n\n @media (max-width: 576px) {\n font-size: 18px;\n margin-right: 12px;\n }\n }\n"], ["\n display: flex;\n flex-flow: row;\n align-items: center;\n > div:first-of-type {\n margin-right: 0.5em;\n display: block;\n }\n\n .icon {\n font-size: 24px;\n margin-right: 15px;\n display: flex;\n\n @media (max-width: 576px) {\n font-size: 18px;\n margin-right: 12px;\n }\n }\n"])));
|
|
42
|
+
export var H4 = styled.h4(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n color: typoPrimary;\n margin: 0;\n font-size: 24px;\n line-height: 28px;\n font-weight: 700;\n\n @media (max-width: 576px) {\n font-size: 18px;\n line-height: 18px;\n }\n"], ["\n color: typoPrimary;\n margin: 0;\n font-size: 24px;\n line-height: 28px;\n font-weight: 700;\n\n @media (max-width: 576px) {\n font-size: 18px;\n line-height: 18px;\n }\n"])));
|
|
43
|
+
export var ButtonsContainer = styled.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n padding: 1.5rem;\n text-align: right;\n > * {\n margin: 0 0.5em;\n }\n\n @media (max-width: 576px) {\n display: flex;\n justify-content: space-around;\n padding: 32px 18px 18px;\n\n > * {\n margin: 0;\n }\n }\n"], ["\n padding: 1.5rem;\n text-align: right;\n > * {\n margin: 0 0.5em;\n }\n\n @media (max-width: 576px) {\n display: flex;\n justify-content: space-around;\n padding: 32px 18px 18px;\n\n > * {\n margin: 0;\n }\n }\n"])));
|
|
44
|
+
export var CloseButton = styled.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n z-index: 1;\n top: 32px;\n right: 24px;\n\n @media (max-width: 576px) {\n padding: 0;\n width: 32px;\n height: 32px;\n background-color: bgLightGray1;\n border-radius: 50%;\n top: 12px;\n right: 12px;\n }\n"], ["\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n z-index: 1;\n top: 32px;\n right: 24px;\n\n @media (max-width: 576px) {\n padding: 0;\n width: 32px;\n height: 32px;\n background-color: bgLightGray1;\n border-radius: 50%;\n top: 12px;\n right: 12px;\n }\n"])));
|
|
45
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MutableRefObject } from 'react';
|
|
2
|
-
export type
|
|
2
|
+
export type TopSpace = 'default' | 'medium';
|
|
3
3
|
export type Width = 'wide' | 'mediumLarge' | 'medium' | 'narrow' | 'auto';
|
|
4
4
|
export interface ModalProps {
|
|
5
5
|
isShown?: boolean;
|
|
@@ -16,7 +16,8 @@ export interface ModalProps {
|
|
|
16
16
|
hasFooter?: boolean;
|
|
17
17
|
hasHeader?: boolean;
|
|
18
18
|
width?: Width;
|
|
19
|
-
|
|
19
|
+
whiteBg?: boolean;
|
|
20
|
+
miniCloseBtn?: boolean;
|
|
20
21
|
ignoreClickOutside?: boolean;
|
|
21
22
|
closeEverywhere?: boolean;
|
|
22
23
|
withCloseIcon?: boolean;
|
|
@@ -25,8 +26,8 @@ export interface ModalProps {
|
|
|
25
26
|
minHeight?: string;
|
|
26
27
|
maxWidth?: string;
|
|
27
28
|
maxHeight?: string;
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
topSpace?: TopSpace;
|
|
30
|
+
mobileFullscreen?: boolean;
|
|
30
31
|
}
|
|
31
32
|
export type ModalData = Record<string, any>;
|
|
32
33
|
export type ControlProps<T = ModalData> = {
|
package/ui/Blocks/Modal/utils.js
CHANGED
|
@@ -10,4 +10,4 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
export var Expeditions = function (props) { return (_jsxs("svg", __assign({ width: "22", height: "22", viewBox: "0 0 22 22", fill: "none", stroke: "#A3B3C1" }, props, { children: [_jsx("path", { d: "
|
|
13
|
+
export var Expeditions = function (props) { return (_jsxs("svg", __assign({ width: "22", height: "22", viewBox: "0 0 22 22", fill: "none", stroke: "#A3B3C1" }, props, { children: [_jsx("path", { d: "M11.1603 15.0024C11.1603 16.1027 10.2683 16.9946 9.16807 16.9946C8.0678 16.9946 7.17585 16.1027 7.17585 15.0024C7.17585 13.9021 8.0678 13.0102 9.16807 13.0102C10.2683 13.0102 11.1603 13.9021 11.1603 15.0024Z", strokeWidth: "1.35" }), _jsx("path", { d: "M18.4952 15.0024C18.4952 16.1027 17.6033 16.9946 16.503 16.9946C15.4028 16.9946 14.5108 16.1027 14.5108 15.0024C14.5108 13.9021 15.4028 13.0102 16.503 13.0102C17.6033 13.0102 18.4952 13.9021 18.4952 15.0024Z", strokeWidth: "1.35" }), _jsx("line", { x1: "10.9655", y1: "14.0546", x2: "14.2389", y2: "14.0546", strokeWidth: "1.35" }), _jsx("path", { d: "M4.41858 13.5637C4.04579 13.5637 3.74358 13.8659 3.74358 14.2387C3.74358 14.6115 4.04579 14.9137 4.41858 14.9137L4.41858 13.5637ZM4.41858 14.9137L7.0373 14.9137L7.0373 13.5637L4.41858 13.5637L4.41858 14.9137Z", strokeWidth: "0" }), _jsx("line", { x1: "18.1671", y1: "14.0546", x2: "20.7858", y2: "14.0546", strokeWidth: "1.35" }), _jsx("path", { d: "M5.83411 2.99166C5.46131 2.99166 5.15911 3.29386 5.15911 3.66666C5.15911 4.03945 5.46131 4.34166 5.83411 4.34166V2.99166ZM17.6841 5.36216L17.0804 5.66403L17.6841 5.36216ZM20.6937 10.4888L21.2208 10.0671L20.6937 10.4888ZM21.5122 15.0023V10.8978H20.1622V15.0023H21.5122ZM21.2208 10.0671L20.0307 8.57942L18.9765 9.42276L20.1667 10.9104L21.2208 10.0671ZM20.1073 8.69922L18.2879 5.06029L17.0804 5.66403L18.8999 9.30296L20.1073 8.69922ZM17.0986 4.32527H13.8358V5.67526H17.0986V4.32527ZM14.5108 5.00027V4.32134H13.1608V5.00027H14.5108ZM13.1811 2.99166H5.83411V4.34166H13.1811V2.99166ZM13.1608 5.00027V8.34641H14.5108V5.00027H13.1608ZM14.4904 9.67609H19.5036V8.32609H14.4904V9.67609ZM13.1608 8.34641C13.1608 9.08077 13.7561 9.67609 14.4904 9.67609V8.32609C14.492 8.32609 14.4952 8.32654 14.4986 8.32796C14.5015 8.3292 14.5035 8.33069 14.5048 8.33204C14.5062 8.33339 14.5076 8.33537 14.5089 8.33829C14.5103 8.34166 14.5108 8.34485 14.5108 8.34641H13.1608ZM14.5108 4.32134C14.5108 3.58698 13.9154 2.99166 13.1811 2.99166V4.34166C13.1795 4.34166 13.1763 4.34121 13.173 4.33978C13.17 4.33855 13.1681 4.33705 13.1667 4.33571C13.1654 4.33436 13.1639 4.33237 13.1626 4.32945C13.1612 4.32608 13.1608 4.3229 13.1608 4.32134H14.5108ZM18.2879 5.06029C18.0626 4.60982 17.6022 4.32527 17.0986 4.32527V5.67526C17.0909 5.67526 17.0838 5.67092 17.0804 5.66403L18.2879 5.06029ZM21.5122 10.8978C21.5122 10.5958 21.4094 10.3029 21.2208 10.0671L20.1667 10.9104C20.1638 10.9068 20.1622 10.9024 20.1622 10.8978H21.5122Z", strokeWidth: "0" }), _jsx("path", { d: "M9.16811 5.66718H3.16687", strokeWidth: "1.35", strokeLinecap: "round" }), _jsx("path", { d: "M7.83461 8.33435H1.83337", strokeWidth: "1.35", strokeLinecap: "round" }), _jsx("path", { d: "M8.50148 11.0016H2.50024", strokeWidth: "1.35", strokeLinecap: "round" })] }))); };
|
|
@@ -10,4 +10,4 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
export var MenuItems = function (props) { return (_jsxs("svg", __assign({ width: "24", height: "24", viewBox: "0 0 24 24", fill: "#
|
|
13
|
+
export var MenuItems = function (props) { return (_jsxs("svg", __assign({ width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "#A3B3C1" }, props, { children: [_jsx("rect", { x: "24", y: "24", width: "24", height: "24", rx: "5.4", transform: "rotate(180 24 24)" }), _jsx("g", { "clip-path": "url(#clip0_306_574)", children: _jsx("path", { d: "M16.95 12.124L9.72446 12.124M9.72446 12.124L12.8211 9.59512M9.72446 12.124L12.8211 14.653", strokeWidth: "0.9", strokeLinecap: "round" }) }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_306_574", children: _jsx("rect", { width: "13.2", height: "13.2", fill: "white", transform: "matrix(-1 0 0 -1 18.6 18.6)" }) }) })] }))); };
|
|
@@ -10,4 +10,4 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
export var Return = function (props) { return (_jsxs("svg", __assign({ width: "22", height: "22", viewBox: "0 0 22 22", fill: "none"
|
|
13
|
+
export var Return = function (props) { return (_jsxs("svg", __assign({ width: "22", height: "22", viewBox: "0 0 22 22", fill: "none" }, props, { children: [_jsx("g", { clipPath: "url(#clip0_7_1619)", children: _jsx("path", { d: "M21.5599 11C21.5599 16.8227 16.8227 21.56 10.9999 21.56C5.1772 21.56 0.439941 16.8227 0.439941 11C0.439941 10.6352 0.735181 10.34 1.09994 10.34C1.4647 10.34 1.75994 10.6352 1.75994 11C1.75994 16.095 5.90496 20.24 10.9999 20.24C16.0949 20.24 20.2399 16.095 20.2399 11C20.2399 5.90502 16.0949 1.76 10.9999 1.76C8.54408 1.76 6.26422 2.71458 4.5491 4.4H7.03994C7.4047 4.4 7.69994 4.69524 7.69994 5.06C7.69994 5.42476 7.4047 5.72 7.03994 5.72H3.07994C2.71518 5.72 2.41994 5.42476 2.41994 5.06V1.1C2.41994 0.735242 2.71518 0.440002 3.07994 0.440002C3.4447 0.440002 3.73994 0.735242 3.73994 1.1V3.35148C5.68716 1.49292 8.24576 0.440002 10.9999 0.440002C16.8227 0.440002 21.5599 5.17726 21.5599 11ZM16.9399 8.36V14.3C16.9399 14.5752 16.7692 14.8214 16.512 14.9182L11.232 16.8982C11.1572 16.9259 11.0785 16.94 10.9999 16.94C10.9214 16.94 10.8426 16.9259 10.7678 16.8982L5.48784 14.9182C5.23066 14.8214 5.05994 14.5752 5.05994 14.3V8.36C5.05994 8.08478 5.23066 7.8386 5.48784 7.7418L10.7678 5.7618C10.9174 5.70636 11.0824 5.70636 11.2318 5.7618L16.5118 7.7418C16.7692 7.8386 16.9399 8.08478 16.9399 8.36ZM7.5994 8.36L10.9999 9.6349L14.4005 8.36L10.9999 7.0851L7.5994 8.36ZM6.37994 13.8424L10.3399 15.3274V10.7976L6.37994 9.3126V13.8424ZM15.6199 13.8424V9.3126L11.6599 10.7976V15.3274L15.6199 13.8424Z", strokeWidth: "0" }) }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_7_1619", children: _jsx("rect", { width: "22", height: "22", fill: "white" }) }) })] }))); };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { Cancel } from './Cancel';
|
|
2
1
|
export { FlagUSA } from './FlagUSA';
|
|
3
2
|
export { FlagCZ } from './FlagCZ';
|
|
4
3
|
export { FlagEL } from './FlagEL';
|
|
@@ -32,16 +31,3 @@ export { Link } from './Link';
|
|
|
32
31
|
export { OpenBox } from './OpenBox';
|
|
33
32
|
export { Box } from './Box';
|
|
34
33
|
export { Rack } from './Rack';
|
|
35
|
-
export { CheckedBox } from './CheckedBox';
|
|
36
|
-
export { Consolidation } from './Consolidation';
|
|
37
|
-
export { Dispatch } from './Dispatch';
|
|
38
|
-
export { EmptyRack } from './EmptyRack';
|
|
39
|
-
export { Gift } from './Gift';
|
|
40
|
-
export { Info } from './Info';
|
|
41
|
-
export { Location } from './Location';
|
|
42
|
-
export { MakePhoto } from './MakePhoto';
|
|
43
|
-
export { Print } from './Print';
|
|
44
|
-
export { TwoBoxes } from './TwoBoxes';
|
|
45
|
-
export { TwoCheckedBoxes } from './TwoCheckedBoxes';
|
|
46
|
-
export { ThreeDots } from './ThreeDots';
|
|
47
|
-
export { Calendar } from './Calendar';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { Cancel } from './Cancel';
|
|
2
1
|
export { FlagUSA } from './FlagUSA';
|
|
3
2
|
export { FlagCZ } from './FlagCZ';
|
|
4
3
|
export { FlagEL } from './FlagEL';
|
|
@@ -32,16 +31,3 @@ export { Link } from './Link';
|
|
|
32
31
|
export { OpenBox } from './OpenBox';
|
|
33
32
|
export { Box } from './Box';
|
|
34
33
|
export { Rack } from './Rack';
|
|
35
|
-
export { CheckedBox } from './CheckedBox';
|
|
36
|
-
export { Consolidation } from './Consolidation';
|
|
37
|
-
export { Dispatch } from './Dispatch';
|
|
38
|
-
export { EmptyRack } from './EmptyRack';
|
|
39
|
-
export { Gift } from './Gift';
|
|
40
|
-
export { Info } from './Info';
|
|
41
|
-
export { Location } from './Location';
|
|
42
|
-
export { MakePhoto } from './MakePhoto';
|
|
43
|
-
export { Print } from './Print';
|
|
44
|
-
export { TwoBoxes } from './TwoBoxes';
|
|
45
|
-
export { TwoCheckedBoxes } from './TwoCheckedBoxes';
|
|
46
|
-
export { ThreeDots } from './ThreeDots';
|
|
47
|
-
export { Calendar } from './Calendar';
|
|
@@ -5,7 +5,7 @@ declare const meta: {
|
|
|
5
5
|
component: ({ badge, ...iconProps }: {
|
|
6
6
|
badge: "warning";
|
|
7
7
|
} & import("..").IconProps) => JSX.Element;
|
|
8
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-
|
|
8
|
+
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
9
9
|
badge: "warning";
|
|
10
10
|
icon: string;
|
|
11
11
|
style?: "normal" | "light" | "solid" | undefined;
|