@mailstep/design-system 0.13.0-beta.1 → 0.13.0-beta.2
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/package.json +1 -1
- package/ui/Blocks/Header/components/UserMenu/index.js +1 -1
- package/ui/Blocks/HidePrint/HidePrint.js +1 -1
- package/ui/Blocks/ImageList/ImageList.js +1 -1
- package/ui/Blocks/LoginPage/LoginPage.js +1 -1
- package/ui/Blocks/LoginPage/components/LoginForm.js +1 -1
- package/ui/Blocks/LoginPage/components/SocialLinks.js +1 -1
- package/ui/Blocks/Modal/Modal.js +1 -1
- package/ui/Blocks/Popover/index.js +1 -1
- package/ui/Blocks/Scheduler/components/BookedTimeSlots/index.js +1 -1
- package/ui/Blocks/Scheduler/components/DateChanger/index.js +1 -1
- package/ui/Blocks/SideMenu/components/Footer.js +1 -1
- package/ui/Blocks/SideMenu/components/HamburgerMenu.js +4 -4
- package/ui/Blocks/SideMenu/components/SubitemTooltip.js +1 -1
- package/ui/Blocks/Stepper/components/StepItem/index.js +1 -1
- package/ui/Elements/Alert/Alert.js +1 -1
- package/ui/Elements/Alert/styles.js +10 -10
- package/ui/Elements/Badge/Badge.js +1 -1
- package/ui/Elements/BarChartSymbol/BarChartSymbol.js +1 -1
- package/ui/Elements/BorderedBox/BorderedBox.js +1 -1
- package/ui/Elements/DatePicker/DatePicker.js +1 -1
- package/ui/Elements/DatePicker/Datetime/components/DateRepeater.js +1 -1
- package/ui/Elements/DatePicker/Datetime/components/Timepicker/Timepicker.js +1 -1
- package/ui/Elements/Dropdown/Dropdown.js +1 -1
- package/ui/Elements/DropdownMenu/DropdownMenu.js +1 -1
- package/ui/Elements/DropdownMenu/components/DefaultItem.js +1 -1
- package/ui/Elements/DropdownMenu/components/MenuItem.js +1 -1
- package/ui/Elements/DropdownSelect/DropdownSelect.js +1 -1
- package/ui/Elements/ErrorMessage/ErrorMessage.js +1 -1
- package/ui/Elements/HighlightBox/HighlightBox.js +1 -1
- package/ui/Elements/Icon/BadgeIcon.js +1 -1
- package/ui/Elements/Icon/Icon.js +1 -1
- package/ui/Elements/Line/Line.js +1 -1
- package/ui/Elements/Link/Link.js +1 -1
- package/ui/Elements/Logo/Logo.js +1 -1
- package/ui/Elements/Select/Select.js +1 -1
- package/ui/Elements/Select/components/CountMultiValue.js +1 -1
- package/ui/Elements/Select/components/DropdownIndicator.js +1 -1
- package/ui/Elements/Select/components/IconValueContainer.js +1 -1
- package/ui/Elements/Select/components/SelectAll.js +1 -1
- package/ui/Elements/SpaceAround/SpaceAround.js +1 -1
- package/ui/Elements/Tag/stories/components/predefinedTags.js +1 -1
- package/ui/Elements/Text/Text.js +1 -1
- package/ui/Elements/Toast/Toast.js +1 -1
- package/ui/Elements/Toggle/Toggle.js +1 -1
- package/ui/Elements/Tooltip/Tooltip.js +1 -1
- package/ui/Modules/CommonGrid/CommonGrid.d.ts +1 -1
- package/ui/Modules/CommonGrid/CommonGrid.js +7 -5
- package/ui/Modules/CommonGrid/CommonGridContainer.js +4 -4
- package/ui/Modules/CommonGrid/components/ActionHead/ActionHead.js +1 -1
- package/ui/Modules/CommonGrid/components/ActionHead/components/ActionDropdownMenu.js +1 -1
- package/ui/Modules/CommonGrid/components/ActionHead/components/ActionDropdownSelect.js +1 -1
- package/ui/Modules/CommonGrid/components/ButtonMore/ButtonMore.js +1 -1
- package/ui/Modules/CommonGrid/components/ColumnFilterCell.js +3 -2
- package/ui/Modules/CommonGrid/components/ColumnTitle/ColumnTitle.js +1 -1
- package/ui/Modules/CommonGrid/components/ColumnTitle.js +1 -1
- package/ui/Modules/CommonGrid/components/ControlButtons/ControlButtons.js +1 -1
- package/ui/Modules/CommonGrid/components/DropdownButton/DropdownButton.js +1 -1
- package/ui/Modules/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.js +1 -1
- package/ui/Modules/CommonGrid/components/FilterDropdown.js +1 -1
- package/ui/Modules/CommonGrid/components/FilterRow.d.ts +1 -0
- package/ui/Modules/CommonGrid/components/FilterRow.js +6 -1
- package/ui/Modules/CommonGrid/components/Filters/ActionsFilter/ActionsFilter.js +1 -1
- package/ui/Modules/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.js +1 -1
- package/ui/Modules/CommonGrid/components/FloatingButton/FloatingButton.js +1 -1
- package/ui/Modules/CommonGrid/components/GridInfo/index.js +1 -1
- package/ui/Modules/CommonGrid/components/HeadCell.js +1 -0
- package/ui/Modules/CommonGrid/components/HeadRow.d.ts +1 -0
- package/ui/Modules/CommonGrid/components/HeadRow.js +11 -6
- package/ui/Modules/CommonGrid/components/IconList/IconList.js +1 -1
- package/ui/Modules/CommonGrid/components/ManageColumnForm/ManageColumnForm.js +1 -1
- package/ui/Modules/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.js +1 -1
- package/ui/Modules/CommonGrid/components/MobileFilterModal.js +1 -1
- package/ui/Modules/CommonGrid/components/MobileSortModal.js +1 -1
- package/ui/Modules/CommonGrid/components/OversizedScroll.js +1 -1
- package/ui/Modules/CommonGrid/components/PresetsModalBody/index.js +1 -1
- package/ui/Modules/CommonGrid/components/QuickFilter/QuickFilter.js +1 -1
- package/ui/Modules/CommonGrid/components/Resize.js +1 -1
- package/ui/Modules/CommonGrid/components/TablePagination/TablePagination.js +1 -1
- package/ui/Modules/CommonGrid/components/gridCells/BoolIcon.js +1 -1
- package/ui/Modules/CommonGrid/components/gridCells/EnumInCell.js +1 -1
- package/ui/Modules/CommonGrid/components/gridCells/HoverBubble.js +1 -1
- package/ui/Modules/CommonGrid/components/gridCells/IconButtonInCell.js +1 -1
- package/ui/Modules/CommonGrid/components/gridCells/ImageCell.js +1 -1
- package/ui/Modules/CommonGrid/components/gridCells/RemoveItem.js +1 -1
- package/ui/Modules/CommonGrid/components/gridCells/RowActionsCell.js +1 -1
- package/ui/Modules/CommonGrid/styles.d.ts +1 -1
- package/ui/Modules/Dashboard/components/Layout/components/ItemConfig/ItemConfigControls.js +1 -1
- package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/components/LabelsLine.js +1 -1
- package/ui/Modules/Dashboard/components/Widgets/PieChart/PieChart.js +1 -1
- package/ui/Modules/Dashboard/errors/ErrorMessage.js +1 -1
- package/ui/ThemeProvider/ThemeProvider.js +1 -1
- package/ui/index.js +1 -1
package/package.json
CHANGED
|
@@ -6,8 +6,8 @@ import { UserInfoBlock } from "./components/UserInfo/index.js";
|
|
|
6
6
|
import { useLogout } from "./hooks/useLogout.js";
|
|
7
7
|
import { DropdownContentWrap, Line } from "./styles.js";
|
|
8
8
|
import { useRef } from "react";
|
|
9
|
-
import { th, useTheme } from "@xstyled/styled-components";
|
|
10
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { th, useTheme } from "@xstyled/styled-components";
|
|
11
11
|
import { Trans } from "@lingui/react";
|
|
12
12
|
//#region packages/ui/Blocks/Header/components/UserMenu/index.tsx
|
|
13
13
|
const UserMenu = ({ user, onLogout, hasUserMenu, userMenuOverride, withInitials, withChevron, withName, ignoreClickOutsideClosest }) => {
|
|
@@ -7,8 +7,8 @@ import { useControls } from "./hooks/useControls.js";
|
|
|
7
7
|
import { useOnElementClick } from "./hooks/useOnElementClick.js";
|
|
8
8
|
import { Control, ImageListContainer } from "./styles.js";
|
|
9
9
|
import { useRef } from "react";
|
|
10
|
-
import { x } from "@xstyled/styled-components";
|
|
11
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { x } from "@xstyled/styled-components";
|
|
12
12
|
import { useDraggable } from "react-use-draggable-scroll";
|
|
13
13
|
//#region packages/ui/Blocks/ImageList/ImageList.tsx
|
|
14
14
|
const ImageList = ({ onImageUpload, onImageRemove, onImageClick, lightBoxAction, lightBoxActionTitle, images, isDisabled, selectable, max }) => {
|
|
@@ -5,8 +5,8 @@ import { LoginForm } from "./components/LoginForm.js";
|
|
|
5
5
|
import "./utils/links.js";
|
|
6
6
|
import { SocialLinks } from "./components/SocialLinks.js";
|
|
7
7
|
import { CardBodyWithLanguage, LanguageBox, LogoWrapper, MailTo, MainLogo, Version, Wrapper } from "./styles.js";
|
|
8
|
-
import { x } from "@xstyled/styled-components";
|
|
9
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { x } from "@xstyled/styled-components";
|
|
10
10
|
import { Trans } from "@lingui/react";
|
|
11
11
|
//#region packages/ui/Blocks/LoginPage/LoginPage.tsx
|
|
12
12
|
const Login = ({ onSubmit, activeLanguage, onLanguageChange, children, brand, brandVariant, isSubmitting, isSubmitDisabled, withDistributionCenterSelect, distributionCenterOptions, selectedDistributionCenter, onChangeDistributionCenter, languageItems, version, backgroundImage, admin, hasSupport = true, hasSocialLinks = true, withPassword = true, withLogin = true, loginLabel, passwordLabel, formHeader }) => {
|
|
@@ -2,8 +2,8 @@ import Button from "../../../Elements/Button/Button.js";
|
|
|
2
2
|
import SingleSelect from "../../../Elements/SingleSelect/SingleSelect.js";
|
|
3
3
|
import { Input } from "../../../Forms/Input/Input.js";
|
|
4
4
|
import { useCallback, useState } from "react";
|
|
5
|
-
import styled$1, { x } from "@xstyled/styled-components";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import styled$1, { x } from "@xstyled/styled-components";
|
|
7
7
|
import { i18n } from "@lingui/core";
|
|
8
8
|
import { Trans } from "@lingui/react";
|
|
9
9
|
//#region packages/ui/Blocks/LoginPage/components/LoginForm.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Icon from "../../../Elements/Icon/Icon.js";
|
|
2
2
|
import { FACEBOOK_LINK, INSTAGRAM_LINK, LINKEDIN_LINK, TWITTER_LINK } from "../utils/links.js";
|
|
3
|
-
import styled$1, { th } from "@xstyled/styled-components";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import styled$1, { th } from "@xstyled/styled-components";
|
|
5
5
|
import { Trans } from "@lingui/react";
|
|
6
6
|
//#region packages/ui/Blocks/LoginPage/components/SocialLinks.tsx
|
|
7
7
|
const SocialLinksWrapper = styled$1.div`
|
package/ui/Blocks/Modal/Modal.js
CHANGED
|
@@ -9,8 +9,8 @@ import { Portal } from "../../Elements/Portal/index.js";
|
|
|
9
9
|
import { ButtonsContainer, ButtonsWrapper, CloseButton, ContentContainer, DialogOverlay, DialogWindow, HeaderContainer, TitleContainer } from "./styles.js";
|
|
10
10
|
import { widthMap } from "./utils.js";
|
|
11
11
|
import { memo, useCallback, useEffect, useMemo } from "react";
|
|
12
|
-
import { x } from "@xstyled/styled-components";
|
|
13
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { x } from "@xstyled/styled-components";
|
|
14
14
|
//#region packages/ui/Blocks/Modal/Modal.tsx
|
|
15
15
|
const Modal = memo(({ children, isShown = true, onExtraAction, onCancel, title, titleIcon, onConfirm, confirmLabel, cancelLabel, extraActionLabel, isLoading, isConfirmDisabled, width = "narrow", onClose, hasFooter = true, hasHeader = true, background, ignoreClickOutside = false, closeEverywhere = false, withCloseIcon = true, overlayColor, minWidth, minHeight, maxWidth, maxHeight, variant = "compact", top, name }) => {
|
|
16
16
|
const closeDialog = useCallback(() => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useClickOutside } from "../Modal/hooks/useClickOutside.js";
|
|
2
2
|
import { Portal } from "../../Elements/Portal/index.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import styled$1 from "@xstyled/styled-components";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import styled$1 from "@xstyled/styled-components";
|
|
6
6
|
import { Popper } from "react-popper";
|
|
7
7
|
//#region packages/ui/Blocks/Popover/index.tsx
|
|
8
8
|
const PopoverWrapper = styled$1.div`
|
|
@@ -2,8 +2,8 @@ import { getMinutesFromTime } from "../../utils/getMinutesFromTime.js";
|
|
|
2
2
|
import { convertDateToTime } from "../../utils/convertDateToTime.js";
|
|
3
3
|
import { convertMinutesToDuration } from "../../utils/convertMinutesToDuration.js";
|
|
4
4
|
import { Body, BookedTimeSlot, Header } from "./styles.js";
|
|
5
|
-
import { x } from "@xstyled/styled-components";
|
|
6
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { x } from "@xstyled/styled-components";
|
|
7
7
|
import get from "lodash/get";
|
|
8
8
|
//#region packages/ui/Blocks/Scheduler/components/BookedTimeSlots/index.tsx
|
|
9
9
|
const BookedTimeSlots = ({ bookedTimeSlots, timeSlotDefinitions, handleTimeSlotClick, time }) => {
|
|
@@ -7,8 +7,8 @@ import Popover from "../../../Popover/index.js";
|
|
|
7
7
|
import { formatDate } from "../../utils/formatDate.js";
|
|
8
8
|
import { ArrowContainer, DateChangerContainer } from "./styles.js";
|
|
9
9
|
import { useContext, useRef } from "react";
|
|
10
|
-
import { x } from "@xstyled/styled-components";
|
|
11
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { x } from "@xstyled/styled-components";
|
|
12
12
|
//#region packages/ui/Blocks/Scheduler/components/DateChanger/index.tsx
|
|
13
13
|
const DateChanger = ({ isLoading, date, handleChangeDate, closeDatePicker, handleNextDay, handlePrevDay, toggleDatepicker, isDatepickerOpen }) => {
|
|
14
14
|
const ref = useRef(null);
|
|
@@ -2,8 +2,8 @@ import { MenuItems } from "../../../Elements/Icon/icons/MenuItems.js";
|
|
|
2
2
|
import { Paragraph4 } from "../../../Elements/Typography/Typography.js";
|
|
3
3
|
import "../../../Elements/Typography/index.js";
|
|
4
4
|
import { useCallback } from "react";
|
|
5
|
-
import styled$1, { css } from "@xstyled/styled-components";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import styled$1, { css } from "@xstyled/styled-components";
|
|
7
7
|
import { th as th$1 } from "@xstyled/system";
|
|
8
8
|
import { Trans } from "@lingui/react";
|
|
9
9
|
//#region packages/ui/Blocks/SideMenu/components/Footer.tsx
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HamburgerMenu } from "../../../Elements/Icon/icons/HamburgerMenu.js";
|
|
2
2
|
import { MobileCancel } from "../../../Elements/Icon/icons/MobileCancel.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import
|
|
4
|
+
import styled from "styled-components";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { css, useTheme as useTheme$1, x } from "@xstyled/styled-components";
|
|
6
7
|
import { th as th$1 } from "@xstyled/system";
|
|
7
|
-
import styled$2 from "styled-components";
|
|
8
8
|
//#region packages/ui/Blocks/SideMenu/components/HamburgerMenu.tsx
|
|
9
|
-
const HamburgerMenuWrapper = styled
|
|
9
|
+
const HamburgerMenuWrapper = styled(x.div)`
|
|
10
10
|
width: 36px;
|
|
11
11
|
height: 36px;
|
|
12
12
|
border-radius: 70px;
|
|
@@ -36,7 +36,7 @@ const HamburgerMenuWrapper = styled$2(x.div)`
|
|
|
36
36
|
}
|
|
37
37
|
`;
|
|
38
38
|
const HamburgerMenuButton = ({ isLeftMenuOpen, onClick }) => {
|
|
39
|
-
const theme = useTheme();
|
|
39
|
+
const theme = useTheme$1();
|
|
40
40
|
const neutralColor = th$1.color("neutral20")({ theme });
|
|
41
41
|
return /* @__PURE__ */ jsx(HamburgerMenuWrapper, {
|
|
42
42
|
mr: "8px",
|
|
@@ -2,8 +2,8 @@ import { H6 } from "../../../Elements/Typography/Typography.js";
|
|
|
2
2
|
import { Portal } from "../../../Elements/Portal/index.js";
|
|
3
3
|
import { ItemLinkWrap, TooltipItemLabel, TooltipWrap } from "../styles.js";
|
|
4
4
|
import { useMemo } from "react";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import styled from "styled-components";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { Popper } from "react-popper";
|
|
8
8
|
//#region packages/ui/Blocks/SideMenu/components/SubitemTooltip.tsx
|
|
9
9
|
const TooltipItem = ({ title, link = "", lightMode }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { H7, Paragraph2 } from "../../../../Elements/Typography/Typography.js";
|
|
2
2
|
import { StepCircle } from "../StepCircle/index.js";
|
|
3
3
|
import { ContentWrapper, Line, StepItemContainer } from "./styles.js";
|
|
4
|
-
import { x } from "@xstyled/styled-components";
|
|
5
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { x } from "@xstyled/styled-components";
|
|
6
6
|
import { Trans } from "@lingui/react";
|
|
7
7
|
import isBoolean from "lodash/isBoolean";
|
|
8
8
|
//#region packages/ui/Blocks/Stepper/components/StepItem/index.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Icon from "../Icon/Icon.js";
|
|
2
2
|
import "../Icon/index.js";
|
|
3
3
|
import { ActionButton, CloseBtn, Description, IconWrap, LinkWrapper, StyledAlert, Text, Title, VerticalSeparator } from "./styles.js";
|
|
4
|
-
import { th, useTheme, x } from "@xstyled/styled-components";
|
|
5
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { th, useTheme, x } from "@xstyled/styled-components";
|
|
6
6
|
//#region packages/ui/Elements/Alert/Alert.tsx
|
|
7
7
|
const alertBackgroundColor = {
|
|
8
8
|
success: "green10",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Link from "../Link/Link.js";
|
|
2
2
|
import "../Link/index.js";
|
|
3
|
+
import styled from "styled-components";
|
|
3
4
|
import { th, x } from "@xstyled/styled-components";
|
|
4
|
-
import styled$2 from "styled-components";
|
|
5
5
|
//#region packages/ui/Elements/Alert/styles.ts
|
|
6
|
-
const StyledAlert = styled
|
|
6
|
+
const StyledAlert = styled(x.div)`
|
|
7
7
|
width: calc(100vw - 20px);
|
|
8
8
|
display: flex;
|
|
9
9
|
min-height: 48px;
|
|
@@ -24,32 +24,32 @@ const StyledAlert = styled$2(x.div)`
|
|
|
24
24
|
width: 100%;
|
|
25
25
|
}
|
|
26
26
|
`;
|
|
27
|
-
const VerticalSeparator = styled
|
|
27
|
+
const VerticalSeparator = styled(x.div)`
|
|
28
28
|
width: 4px;
|
|
29
29
|
height: 36px;
|
|
30
30
|
border-radius: 94px;
|
|
31
31
|
background-color: ${({ $colorFill }) => $colorFill};
|
|
32
32
|
`;
|
|
33
|
-
const IconWrap = styled
|
|
33
|
+
const IconWrap = styled(x.div)`
|
|
34
34
|
margin: 0 13px 0 9px;
|
|
35
35
|
`;
|
|
36
|
-
const Title = styled
|
|
36
|
+
const Title = styled.span`
|
|
37
37
|
font-size: 14px;
|
|
38
38
|
line-height: 18px;
|
|
39
39
|
font-weight: 600;
|
|
40
40
|
`;
|
|
41
|
-
const Text = styled
|
|
41
|
+
const Text = styled.span`
|
|
42
42
|
font-size: 14px;
|
|
43
43
|
line-height: 20px;
|
|
44
44
|
font-weight: 400;
|
|
45
45
|
`;
|
|
46
|
-
const LinkWrapper = styled
|
|
46
|
+
const LinkWrapper = styled(Link)`
|
|
47
47
|
font-size: 14px;
|
|
48
48
|
font-weight: 600;
|
|
49
49
|
color: ${({ $colorFill }) => $colorFill};
|
|
50
50
|
margin-right: 10px;
|
|
51
51
|
`;
|
|
52
|
-
const ActionButton = styled
|
|
52
|
+
const ActionButton = styled.button`
|
|
53
53
|
margin-right: 10px;
|
|
54
54
|
font-size: 14px;
|
|
55
55
|
font-weight: 600;
|
|
@@ -58,7 +58,7 @@ const ActionButton = styled$2.button`
|
|
|
58
58
|
background-color: transparent;
|
|
59
59
|
cursor: pointer;
|
|
60
60
|
`;
|
|
61
|
-
const CloseBtn = styled
|
|
61
|
+
const CloseBtn = styled.button`
|
|
62
62
|
height: 30px;
|
|
63
63
|
width: 30px;
|
|
64
64
|
display: flex;
|
|
@@ -71,7 +71,7 @@ const CloseBtn = styled$2.button`
|
|
|
71
71
|
cursor: pointer;
|
|
72
72
|
}
|
|
73
73
|
`;
|
|
74
|
-
const Description = styled
|
|
74
|
+
const Description = styled.div`
|
|
75
75
|
position: absolute;
|
|
76
76
|
top: 3px;
|
|
77
77
|
right: 8px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
import styled$1, { css, th, useTheme } from "@xstyled/styled-components";
|
|
3
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import styled$1, { css, th, useTheme } from "@xstyled/styled-components";
|
|
4
4
|
//#region packages/ui/Elements/Badge/Badge.tsx
|
|
5
5
|
const Circle = styled$1.div`
|
|
6
6
|
min-width: 12px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Bar } from "./styles.js";
|
|
2
|
-
import { x } from "@xstyled/styled-components";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { x } from "@xstyled/styled-components";
|
|
4
4
|
//#region packages/ui/Elements/BarChartSymbol/BarChartSymbol.tsx
|
|
5
5
|
const BarChartSymbol = ({ total = 3, height = 14, minHeight = 7, selected = 3, gap = 2, width = 3, color }) => {
|
|
6
6
|
return /* @__PURE__ */ jsx(x.div, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import styled$1, { x } from "@xstyled/styled-components";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import styled$1, { x } from "@xstyled/styled-components";
|
|
4
4
|
//#region packages/ui/Elements/BorderedBox/BorderedBox.tsx
|
|
5
5
|
const StyledBox = styled$1(x.div)`
|
|
6
6
|
display: flex;
|
|
@@ -5,8 +5,8 @@ import { DatePickerInput } from "./components/DatePickerInput/DatePickerInput.js
|
|
|
5
5
|
import "./components/DatePickerInput/index.js";
|
|
6
6
|
import { DatePickerBase } from "./styles.js";
|
|
7
7
|
import React, { useCallback, useContext } from "react";
|
|
8
|
-
import { x } from "@xstyled/styled-components";
|
|
9
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { x } from "@xstyled/styled-components";
|
|
10
10
|
import "moment/dist/locale/cs";
|
|
11
11
|
import "moment/dist/locale/el";
|
|
12
12
|
import "moment/dist/locale/it";
|
|
@@ -4,8 +4,8 @@ import { DatePickerRepeatTrans } from "../../utils/constants.js";
|
|
|
4
4
|
import { FooterRow } from "./FooterRow.js";
|
|
5
5
|
import { FooterRowLabel } from "./FooterRowLabel.js";
|
|
6
6
|
import { useCallback } from "react";
|
|
7
|
-
import { x } from "@xstyled/styled-components";
|
|
8
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { x } from "@xstyled/styled-components";
|
|
9
9
|
import { i18n } from "@lingui/core";
|
|
10
10
|
//#region packages/ui/Elements/DatePicker/Datetime/components/DateRepeater.tsx
|
|
11
11
|
const DateRepeater = ({ onChangeOthers, others, reset }) => {
|
|
@@ -7,8 +7,8 @@ import { padTime } from "./utils/padTime.js";
|
|
|
7
7
|
import { parseTimeField } from "./utils/parseTimeField.js";
|
|
8
8
|
import { sanitizeTimeField } from "./utils/sanitizeTimeField.js";
|
|
9
9
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
10
|
-
import { x } from "@xstyled/styled-components";
|
|
11
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { x } from "@xstyled/styled-components";
|
|
12
12
|
import { i18n } from "@lingui/core";
|
|
13
13
|
//#region packages/ui/Elements/DatePicker/Datetime/components/Timepicker/Timepicker.tsx
|
|
14
14
|
const Timepicker = ({ setTime, value, disabled }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import styled$1, { th } from "@xstyled/styled-components";
|
|
3
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import styled$1, { th } from "@xstyled/styled-components";
|
|
4
4
|
//#region packages/ui/Elements/Dropdown/Dropdown.tsx
|
|
5
5
|
const ArrowInnerB = styled$1.div``;
|
|
6
6
|
const ArrowInnerA = styled$1.div``;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import MenuItem from "./components/DefaultItem.js";
|
|
2
2
|
import MenuList from "./components/MenuList.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import styled$1 from "@xstyled/styled-components";
|
|
5
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import styled$1 from "@xstyled/styled-components";
|
|
6
6
|
//#region packages/ui/Elements/DropdownMenu/DropdownMenu.tsx
|
|
7
7
|
const StyledDropdownWrap = styled$1.div`
|
|
8
8
|
width: fit-content;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import styled$1, { css } from "@xstyled/styled-components";
|
|
3
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import styled$1, { css } from "@xstyled/styled-components";
|
|
4
4
|
//#region packages/ui/Elements/DropdownMenu/components/DefaultItem.tsx
|
|
5
5
|
const StyledListItem = styled$1.li`
|
|
6
6
|
padding: 8px 10px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Link from "../../Link/Link.js";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
|
-
import styled$1, { css } from "@xstyled/styled-components";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import styled$1, { css } from "@xstyled/styled-components";
|
|
5
5
|
import { useLocation } from "react-router";
|
|
6
6
|
//#region packages/ui/Elements/DropdownMenu/components/MenuItem.tsx
|
|
7
7
|
const StyledLink = styled$1(Link)`
|
|
@@ -4,8 +4,8 @@ import { DropdownMenu } from "../DropdownMenu/DropdownMenu.js";
|
|
|
4
4
|
import "../DropdownMenu/index.js";
|
|
5
5
|
import Popover from "../../Blocks/Popover/index.js";
|
|
6
6
|
import React, { useCallback, useRef } from "react";
|
|
7
|
-
import styled$1 from "@xstyled/styled-components";
|
|
8
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import styled$1 from "@xstyled/styled-components";
|
|
9
9
|
//#region packages/ui/Elements/DropdownSelect/DropdownSelect.tsx
|
|
10
10
|
const ArrowIcon = styled$1(Icon)`
|
|
11
11
|
flex-shrink: 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import styled$1, { css, th } from "@xstyled/styled-components";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import styled$1, { css, th } from "@xstyled/styled-components";
|
|
4
4
|
//#region packages/ui/Elements/ErrorMessage/ErrorMessage.tsx
|
|
5
5
|
const tooltip = css`
|
|
6
6
|
span {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import styled$1, { useTheme } from "@xstyled/styled-components";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import styled$1, { useTheme } from "@xstyled/styled-components";
|
|
4
4
|
import { th as th$1 } from "@xstyled/system";
|
|
5
5
|
//#region packages/ui/Elements/HighlightBox/HighlightBox.tsx
|
|
6
6
|
const StyledHighlightBox = styled$1.div`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Icon from "./Icon.js";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import styled$1 from "@xstyled/styled-components";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import styled$1 from "@xstyled/styled-components";
|
|
5
5
|
//#region packages/ui/Elements/Icon/BadgeIcon.tsx
|
|
6
6
|
const Badge = styled$1(Icon)`
|
|
7
7
|
display: inline-table;
|
package/ui/Elements/Icon/Icon.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { icons_exports } from "./icons/index.js";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { library } from "@fortawesome/fontawesome-svg-core";
|
|
4
5
|
import { faFacebookF } from "@fortawesome/free-brands-svg-icons/faFacebookF";
|
|
5
6
|
import { faInstagram } from "@fortawesome/free-brands-svg-icons/faInstagram";
|
|
@@ -115,7 +116,6 @@ import { faWineGlassCrack } from "@fortawesome/pro-solid-svg-icons/faWineGlassCr
|
|
|
115
116
|
import { faXmark } from "@fortawesome/pro-solid-svg-icons/faXmark";
|
|
116
117
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
117
118
|
import styled$1, { th, useTheme } from "@xstyled/styled-components";
|
|
118
|
-
import { jsx } from "react/jsx-runtime";
|
|
119
119
|
//#region packages/ui/Elements/Icon/Icon.tsx
|
|
120
120
|
const iconDictionary = {
|
|
121
121
|
greaterThan: faAngleRight,
|
package/ui/Elements/Line/Line.js
CHANGED
package/ui/Elements/Link/Link.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createRgba } from "../../utils/CreateRgba/createRgba.js";
|
|
2
2
|
import "../../utils/index.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import styled$1, { css, th, useTheme } from "@xstyled/styled-components";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import styled$1, { css, th, useTheme } from "@xstyled/styled-components";
|
|
6
6
|
import { NavLink } from "react-router-dom";
|
|
7
7
|
//#region packages/ui/Elements/Link/Link.tsx
|
|
8
8
|
const StyledLink = styled$1(NavLink)`
|
package/ui/Elements/Logo/Logo.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import styled$1 from "@xstyled/styled-components";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import styled$1 from "@xstyled/styled-components";
|
|
4
4
|
import logoBlackImage from "./assets/mailship/logo_black.png";
|
|
5
5
|
import logoMImage from "./assets/mailship/logo_m.png";
|
|
6
6
|
import logoWhiteImage from "./assets/mailship/logo_white.png";
|
|
@@ -6,8 +6,8 @@ import SpaceAround_default from "../SpaceAround/index.js";
|
|
|
6
6
|
import { StyledAsyncSelect, StyledReactSelect, Wrapper } from "./styles.js";
|
|
7
7
|
import { useStylesAndComponents } from "./themes/index.js";
|
|
8
8
|
import { useCallback, useMemo, useRef } from "react";
|
|
9
|
-
import { useTheme } from "@xstyled/styled-components";
|
|
10
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { useTheme } from "@xstyled/styled-components";
|
|
11
11
|
import { i18n } from "@lingui/core";
|
|
12
12
|
//#region packages/ui/Elements/Select/Select.tsx
|
|
13
13
|
const emptyOptions = [];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import styled$1, { th } from "@xstyled/styled-components";
|
|
2
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styled$1, { th } from "@xstyled/styled-components";
|
|
3
3
|
import { components } from "react-select";
|
|
4
4
|
//#region packages/ui/Elements/Select/components/CountMultiValue.tsx
|
|
5
5
|
const StyledNumber = styled$1.div`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ArrowDown } from "../../Icon/icons/ArrowDown.js";
|
|
2
2
|
import { ArrowUp } from "../../Icon/icons/ArrowUp.js";
|
|
3
|
-
import styled$1 from "@xstyled/styled-components";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import styled$1 from "@xstyled/styled-components";
|
|
5
5
|
import { components } from "react-select";
|
|
6
6
|
//#region packages/ui/Elements/Select/components/DropdownIndicator.tsx
|
|
7
7
|
const ChevronDiv = styled$1.div`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Icon from "../../Icon/Icon.js";
|
|
2
|
-
import styled$1 from "@xstyled/styled-components";
|
|
3
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import styled$1 from "@xstyled/styled-components";
|
|
4
4
|
import { components } from "react-select";
|
|
5
5
|
//#region packages/ui/Elements/Select/components/IconValueContainer.tsx
|
|
6
6
|
const IconDiv = styled$1.div`
|
|
@@ -2,8 +2,8 @@ import Checkbox_default from "../../../Forms/Checkbox/Checkbox.js";
|
|
|
2
2
|
import Toggle from "../../Toggle/Toggle.js";
|
|
3
3
|
import SelectedIndicator from "./SelectedIndicator.js";
|
|
4
4
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
5
|
-
import styled$1, { th } from "@xstyled/styled-components";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import styled$1, { th } from "@xstyled/styled-components";
|
|
7
7
|
import { Trans } from "@lingui/react";
|
|
8
8
|
//#region packages/ui/Elements/Select/components/SelectAll.tsx
|
|
9
9
|
const SelectAllWrap = styled$1.div`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import styled$1, { css, th, useTheme, x } from "@xstyled/styled-components";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import styled$1, { css, th, useTheme, x } from "@xstyled/styled-components";
|
|
4
4
|
//#region packages/ui/Elements/SpaceAround/SpaceAround.tsx
|
|
5
5
|
const Wrapper = styled$1(x.div)`
|
|
6
6
|
width: ${({ $marginLeft, $marginRight }) => `calc(100% - ${$marginLeft || "0px"} - ${$marginRight || "0px"})`};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Tag from "../../Tag.js";
|
|
2
2
|
import { palettes } from "../../palettes.js";
|
|
3
|
-
import { x } from "@xstyled/styled-components";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { x } from "@xstyled/styled-components";
|
|
5
5
|
//#region packages/ui/Elements/Tag/stories/components/predefinedTags.tsx
|
|
6
6
|
const PredefinedTags = () => {
|
|
7
7
|
return /* @__PURE__ */ jsx(x.div, {
|
package/ui/Elements/Text/Text.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import { x } from "@xstyled/styled-components";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { x } from "@xstyled/styled-components";
|
|
4
4
|
//#region packages/ui/Elements/Text/Text.tsx
|
|
5
5
|
const Text = ({ as = "span", ...props }) => /* @__PURE__ */ jsx(x.div, {
|
|
6
6
|
as,
|
|
@@ -3,8 +3,8 @@ import "../Icon/index.js";
|
|
|
3
3
|
import { toastIconFill, toastIconMap, toastTitleMap } from "./constants.js";
|
|
4
4
|
import { CloseWrapper, Container, ContentWrapper, Text, Title } from "./styles.js";
|
|
5
5
|
import { useEffect } from "react";
|
|
6
|
-
import { x } from "@xstyled/styled-components";
|
|
7
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { x } from "@xstyled/styled-components";
|
|
8
8
|
//#region packages/ui/Elements/Toast/Toast.tsx
|
|
9
9
|
const Toast = ({ closeToast, title, text, type, autoClose }) => {
|
|
10
10
|
const icon = toastIconMap[type];
|
|
@@ -3,8 +3,8 @@ import "../Label/index.js";
|
|
|
3
3
|
import SpaceAroundWrap from "../SpaceAround/SpaceAround.js";
|
|
4
4
|
import "../SpaceAround/index.js";
|
|
5
5
|
import "react";
|
|
6
|
-
import styled$1, { css } from "@xstyled/styled-components";
|
|
7
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import styled$1, { css } from "@xstyled/styled-components";
|
|
8
8
|
//#region packages/ui/Elements/Toggle/Toggle.tsx
|
|
9
9
|
const isHorizontal = (position) => !!position && ["left", "right"].includes(position);
|
|
10
10
|
const StyledSpaceAroundWrap = styled$1(SpaceAroundWrap)`
|
|
@@ -2,8 +2,8 @@ import { Paragraph4 } from "../Typography/Typography.js";
|
|
|
2
2
|
import "../Typography/index.js";
|
|
3
3
|
import Popover from "../../Blocks/Popover/index.js";
|
|
4
4
|
import { useRef, useState } from "react";
|
|
5
|
-
import styled$1 from "@xstyled/styled-components";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import styled$1 from "@xstyled/styled-components";
|
|
7
7
|
//#region packages/ui/Elements/Tooltip/Tooltip.tsx
|
|
8
8
|
const Container = styled$1.div`
|
|
9
9
|
width: fit-content;
|
|
@@ -7,7 +7,7 @@ type Props = CommonGridProps & {
|
|
|
7
7
|
displayColumnsDefinitions: ColumnDefinition[];
|
|
8
8
|
hasGroups: boolean;
|
|
9
9
|
hasFilters: boolean;
|
|
10
|
-
|
|
10
|
+
onSetActiveColumn?: (columnName: string) => void;
|
|
11
11
|
};
|
|
12
12
|
declare const CommonGrid: FC<Props>;
|
|
13
13
|
export default CommonGrid;
|
|
@@ -11,14 +11,14 @@ import useRowsKeyControls from "./hooks/useRowsKeyControls.js";
|
|
|
11
11
|
import useUxReset from "./hooks/useUxReset.js";
|
|
12
12
|
import { initialState } from "./store/index.js";
|
|
13
13
|
import { useCallback, useMemo } from "react";
|
|
14
|
-
import { x } from "@xstyled/styled-components";
|
|
15
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { x } from "@xstyled/styled-components";
|
|
16
16
|
//#region packages/ui/Modules/CommonGrid/CommonGrid.tsx
|
|
17
17
|
const rowsStyles = { outline: "none" };
|
|
18
18
|
const defaultVoidFunction = (...args) => null;
|
|
19
19
|
const defaultUxState = initialState.uxState;
|
|
20
20
|
const defaultColumnsWidth = {};
|
|
21
|
-
const CommonGrid = ({ filters, comparators, handleDragEnd, gridSelectors, gridActions, isLoading, rowsData, hasColouredRows, actionColumnDefinition, allowRowSelect, allowRowSelectOnAction, onRowAction, onRowClick, onAsyncLoadFilterOptions, columnLayout = "normal", displayColumnsDefinitions, className, minColumnWidth, errorMessage, floatingButtonProps, hasGroups, hasFilters, isSortTerminated
|
|
21
|
+
const CommonGrid = ({ filters, comparators, handleDragEnd, gridSelectors, gridActions, isLoading, rowsData, hasColouredRows, actionColumnDefinition, allowRowSelect, allowRowSelectOnAction, onRowAction, onRowClick, onAsyncLoadFilterOptions, onSetActiveColumn, columnLayout = "normal", displayColumnsDefinitions, className, minColumnWidth, errorMessage, floatingButtonProps, hasGroups, hasFilters, isSortTerminated }) => {
|
|
22
22
|
const { uxState = defaultUxState, columnsWidth = defaultColumnsWidth, columnsWidthVariant, page = 1, filter, sorting, rowsPerPage = 10 } = gridSelectors;
|
|
23
23
|
const { clearUxState, handleUxChange, addFilter = defaultVoidFunction, addSorting = defaultVoidFunction, setColumnWidth = defaultVoidFunction } = gridActions;
|
|
24
24
|
const handleRowsKeyDown = useRowsKeyControls(rowsData, uxState, handleUxChange);
|
|
@@ -61,7 +61,8 @@ const CommonGrid = ({ filters, comparators, handleDragEnd, gridSelectors, gridAc
|
|
|
61
61
|
handleResizeDrag,
|
|
62
62
|
groups,
|
|
63
63
|
handleDragEnd,
|
|
64
|
-
isSortTerminated
|
|
64
|
+
isSortTerminated,
|
|
65
|
+
onCellClick: onSetActiveColumn
|
|
65
66
|
}),
|
|
66
67
|
hasFilters && /* @__PURE__ */ jsx(FilterRow, {
|
|
67
68
|
filters,
|
|
@@ -75,7 +76,8 @@ const CommonGrid = ({ filters, comparators, handleDragEnd, gridSelectors, gridAc
|
|
|
75
76
|
rowsData,
|
|
76
77
|
uxState,
|
|
77
78
|
handleUxChange,
|
|
78
|
-
onAsyncLoadFilterOptions
|
|
79
|
+
onAsyncLoadFilterOptions,
|
|
80
|
+
onCellClick: onSetActiveColumn
|
|
79
81
|
})
|
|
80
82
|
]
|
|
81
83
|
}), /* @__PURE__ */ jsx("div", {
|
|
@@ -94,7 +96,7 @@ const CommonGrid = ({ filters, comparators, handleDragEnd, gridSelectors, gridAc
|
|
|
94
96
|
onRowAction,
|
|
95
97
|
onUxChange: handleUxChange,
|
|
96
98
|
onRowClick,
|
|
97
|
-
onCellClick,
|
|
99
|
+
onCellClick: onSetActiveColumn,
|
|
98
100
|
columns: displayColumnsDefinitions,
|
|
99
101
|
displayColumnsWidth,
|
|
100
102
|
groups
|