@mailstep/design-system 0.13.3 → 0.13.5
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 +14 -7
- package/ui/Blocks/ImageList/components/AddPhoto/index.d.ts +0 -1
- package/ui/Blocks/ImageList/components/AddPhoto/index.js +5 -9
- package/ui/Blocks/ImageList/components/AddPhoto/styles.d.ts +1 -4
- package/ui/Blocks/ImageList/components/AddPhoto/styles.js +2 -2
- package/ui/Blocks/ImageList/components/CloseButton/index.js +2 -2
- package/ui/Blocks/ImageList/components/CloseButton/styles.js +12 -7
- package/ui/Blocks/ImageList/components/ImageElement/index.d.ts +2 -0
- package/ui/Blocks/ImageList/components/ImageElement/index.js +9 -7
- package/ui/Blocks/ImageList/components/ImageElement/styles.d.ts +3 -5
- package/ui/Blocks/ImageList/components/ImageElement/styles.js +23 -15
- package/ui/Blocks/ImageList/styles.d.ts +0 -1
- package/ui/Blocks/ImageList/styles.js +1 -1
- package/ui/Blocks/ImageList/types.d.ts +3 -0
- package/ui/Blocks/LightBox/LightBox.js +38 -20
- package/ui/Blocks/LightBox/components/DownloadButton/index.d.ts +8 -0
- package/ui/Blocks/LightBox/components/DownloadButton/index.js +21 -0
- package/ui/Blocks/LightBox/components/DownloadButton/styles.d.ts +3 -0
- package/ui/Blocks/LightBox/components/DownloadButton/styles.js +22 -0
- package/ui/Blocks/LightBox/hooks/useImageDownload.d.ts +10 -0
- package/ui/Blocks/LightBox/hooks/useImageDownload.js +19 -0
- package/ui/Blocks/LightBox/styles.d.ts +1 -0
- package/ui/Blocks/LightBox/styles.js +6 -1
- package/ui/Blocks/LightBox/types.d.ts +4 -0
- package/ui/Blocks/LightBox/utils/downloadImage.d.ts +7 -0
- package/ui/Blocks/LightBox/utils/downloadImage.js +21 -0
- package/ui/Blocks/LightBox/utils/getImageFileName.d.ts +7 -0
- package/ui/Blocks/LightBox/utils/getImageFileName.js +8 -0
- package/ui/Blocks/LoginPage/LoginPage.js +1 -1
- package/ui/Blocks/LoginPage/components/LoginForm.js +3 -3
- package/ui/Blocks/LoginPage/components/SocialLinks.js +1 -1
- package/ui/Blocks/Modal/Modal.js +2 -2
- package/ui/Blocks/Modal/index.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 +2 -2
- 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/AsyncSelect/AsyncSelect.js +1 -1
- 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/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 +2 -2
- 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 +3 -3
- package/ui/Elements/Tooltip/Tooltip.js +1 -1
- package/ui/Forms/DatePicker/DatePicker.js +2 -2
- package/ui/Forms/DatePicker/Datetime/components/DateRepeater.js +1 -1
- package/ui/Forms/DatePicker/Datetime/components/Timepicker/Timepicker.js +1 -1
- package/ui/Forms/Input/Input.js +4 -4
- package/ui/Forms/TextArea/TextArea.js +2 -2
- package/ui/Modules/CommonGrid/CommonGrid.js +2 -2
- package/ui/Modules/CommonGrid/CommonGridContainer.js +2 -2
- package/ui/Modules/CommonGrid/components/ActionHead/ActionHead.js +2 -2
- 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 +2 -2
- package/ui/Modules/CommonGrid/components/ColumnFilterCell.js +1 -1
- 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 +2 -2
- package/ui/Modules/CommonGrid/components/DropdownButton/DropdownButton.js +2 -2
- package/ui/Modules/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.js +1 -1
- package/ui/Modules/CommonGrid/components/FilterDropdown.js +1 -1
- package/ui/Modules/CommonGrid/components/Filters/ActionsFilter/ActionsFilter.js +2 -2
- package/ui/Modules/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.d.ts +6 -4
- package/ui/Modules/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.js +10 -15
- package/ui/Modules/CommonGrid/components/Filters/DatePickerRange/index.d.ts +1 -0
- 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/IconList/IconList.js +1 -1
- package/ui/Modules/CommonGrid/components/ManageColumnForm/ManageColumnForm.js +1 -1
- package/ui/Modules/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.js +2 -2
- package/ui/Modules/CommonGrid/components/MobileFilterModal.js +2 -2
- package/ui/Modules/CommonGrid/components/MobileSortModal.js +2 -2
- 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 +2 -2
- 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/Date.js +1 -1
- package/ui/Modules/CommonGrid/components/gridCells/DateTime.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/hooks/useCreatePreset.js +1 -1
- package/ui/Modules/CommonGrid/hooks/usePresetFileHandlers.js +1 -1
- package/ui/Modules/CommonGrid/hooks/useQuickFilter.js +2 -2
- package/ui/Modules/CommonGrid/index.d.ts +7 -5
- package/ui/Modules/CommonGrid/index.js +5 -4
- package/ui/Modules/CommonGrid/store/index.js +2 -2
- package/ui/Modules/CommonGrid/storybook/utils/utils.js +1 -1
- package/ui/Modules/CommonGrid/storybook/utils/withRedux.js +1 -1
- package/ui/Modules/CommonGrid/utils/index.js +1 -1
- package/ui/Modules/Dashboard/Hoc/storybook/withReduxProvider.js +2 -2
- package/ui/Modules/Dashboard/components/Config/components/InputConfig.js +1 -1
- package/ui/Modules/Dashboard/components/Dashboard/Dashboard.js +1 -1
- package/ui/Modules/Dashboard/components/Dashboard/DashboardContainer.js +1 -1
- package/ui/Modules/Dashboard/components/Dashboard/components/HandleChange.js +1 -1
- package/ui/Modules/Dashboard/components/Layout/LayoutContainer.js +1 -1
- package/ui/Modules/Dashboard/components/Layout/components/Item/ItemContainer.js +1 -1
- package/ui/Modules/Dashboard/components/Layout/components/ItemConfig/ItemConfigControls.js +1 -1
- package/ui/Modules/Dashboard/components/Picker/PickerContainer.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/components/Widgets/Table/hooks/useSort.js +1 -1
- package/ui/Modules/Dashboard/errors/ErrorMessage.js +1 -1
- package/ui/ThemeProvider/ThemeProvider.js +1 -1
- package/ui/index.js +22 -21
|
@@ -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 { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import styled$1, { th } from "@xstyled/styled-components";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
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
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import { useClickOutside } from "./hooks/useClickOutside.js";
|
|
1
2
|
import { Cancel } from "../../Elements/Icon/icons/Cancel.js";
|
|
2
3
|
import Icon from "../../Elements/Icon/Icon.js";
|
|
3
4
|
import "../../Elements/Icon/index.js";
|
|
4
5
|
import Button_default from "../../Elements/Button/index.js";
|
|
5
|
-
import { useClickOutside } from "./hooks/useClickOutside.js";
|
|
6
6
|
import { H2, H5 } from "../../Elements/Typography/Typography.js";
|
|
7
7
|
import "../../Elements/Typography/index.js";
|
|
8
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 { jsx, jsxs } from "react/jsx-runtime";
|
|
13
12
|
import { x } from "@xstyled/styled-components";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
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(() => {
|
package/ui/Blocks/Modal/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useModal } from "./hooks/useModal.js";
|
|
2
1
|
import { useClickOutside } from "./hooks/useClickOutside.js";
|
|
2
|
+
import { useModal } from "./hooks/useModal.js";
|
|
3
3
|
import { Modal } from "./Modal.js";
|
|
4
4
|
//#region packages/ui/Blocks/Modal/index.ts
|
|
5
5
|
var Modal_default = Modal;
|
|
@@ -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 { jsx } from "react/jsx-runtime";
|
|
5
4
|
import styled$1 from "@xstyled/styled-components";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
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 { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
5
|
import { x } from "@xstyled/styled-components";
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
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 }) => {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { LanguageContext } from "../../../../ThemeProvider/ThemeProvider.js";
|
|
1
2
|
import { ArrowDown } from "../../../../Elements/Icon/icons/ArrowDown.js";
|
|
2
3
|
import "../../../../Elements/Icon/index.js";
|
|
3
4
|
import { Spinner } from "../../../../Elements/Spinner/Spinner.js";
|
|
4
|
-
import { LanguageContext } from "../../../../ThemeProvider/ThemeProvider.js";
|
|
5
5
|
import DatePicker_default from "../../../../Forms/DatePicker/index.js";
|
|
6
6
|
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 { jsx, jsxs } from "react/jsx-runtime";
|
|
11
10
|
import { x } from "@xstyled/styled-components";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
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 { jsx, jsxs } from "react/jsx-runtime";
|
|
6
5
|
import styled$1, { css } from "@xstyled/styled-components";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
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 { css, useTheme, x } from "@xstyled/styled-components";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import { css, useTheme as useTheme$1, x } from "@xstyled/styled-components";
|
|
7
6
|
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(x.div)`
|
|
9
|
+
const HamburgerMenuWrapper = styled$2(x.div)`
|
|
10
10
|
width: 36px;
|
|
11
11
|
height: 36px;
|
|
12
12
|
border-radius: 70px;
|
|
@@ -36,7 +36,7 @@ const HamburgerMenuWrapper = styled(x.div)`
|
|
|
36
36
|
}
|
|
37
37
|
`;
|
|
38
38
|
const HamburgerMenuButton = ({ isLeftMenuOpen, onClick }) => {
|
|
39
|
-
const theme = useTheme
|
|
39
|
+
const theme = useTheme();
|
|
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 styled from "styled-components";
|
|
6
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import styled from "styled-components";
|
|
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 { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { x } from "@xstyled/styled-components";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
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 { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { th, useTheme, x } from "@xstyled/styled-components";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
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";
|
|
4
3
|
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(x.div)`
|
|
6
|
+
const StyledAlert = styled$2(x.div)`
|
|
7
7
|
width: calc(100vw - 20px);
|
|
8
8
|
display: flex;
|
|
9
9
|
min-height: 48px;
|
|
@@ -24,32 +24,32 @@ const StyledAlert = styled(x.div)`
|
|
|
24
24
|
width: 100%;
|
|
25
25
|
}
|
|
26
26
|
`;
|
|
27
|
-
const VerticalSeparator = styled(x.div)`
|
|
27
|
+
const VerticalSeparator = styled$2(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(x.div)`
|
|
33
|
+
const IconWrap = styled$2(x.div)`
|
|
34
34
|
margin: 0 13px 0 9px;
|
|
35
35
|
`;
|
|
36
|
-
const Title = styled.span`
|
|
36
|
+
const Title = styled$2.span`
|
|
37
37
|
font-size: 14px;
|
|
38
38
|
line-height: 18px;
|
|
39
39
|
font-weight: 600;
|
|
40
40
|
`;
|
|
41
|
-
const Text = styled.span`
|
|
41
|
+
const Text = styled$2.span`
|
|
42
42
|
font-size: 14px;
|
|
43
43
|
line-height: 20px;
|
|
44
44
|
font-weight: 400;
|
|
45
45
|
`;
|
|
46
|
-
const LinkWrapper = styled(Link)`
|
|
46
|
+
const LinkWrapper = styled$2(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.button`
|
|
52
|
+
const ActionButton = styled$2.button`
|
|
53
53
|
margin-right: 10px;
|
|
54
54
|
font-size: 14px;
|
|
55
55
|
font-weight: 600;
|
|
@@ -58,7 +58,7 @@ const ActionButton = styled.button`
|
|
|
58
58
|
background-color: transparent;
|
|
59
59
|
cursor: pointer;
|
|
60
60
|
`;
|
|
61
|
-
const CloseBtn = styled.button`
|
|
61
|
+
const CloseBtn = styled$2.button`
|
|
62
62
|
height: 30px;
|
|
63
63
|
width: 30px;
|
|
64
64
|
display: flex;
|
|
@@ -71,7 +71,7 @@ const CloseBtn = styled.button`
|
|
|
71
71
|
cursor: pointer;
|
|
72
72
|
}
|
|
73
73
|
`;
|
|
74
|
-
const Description = styled.div`
|
|
74
|
+
const Description = styled$2.div`
|
|
75
75
|
position: absolute;
|
|
76
76
|
top: 3px;
|
|
77
77
|
right: 8px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import SpaceAround_default from "../SpaceAround/index.js";
|
|
1
2
|
import ErrorMessage from "../ErrorMessage/ErrorMessage.js";
|
|
2
3
|
import { FieldLabel } from "../Label/Label.js";
|
|
3
4
|
import "../Label/index.js";
|
|
4
|
-
import SpaceAround_default from "../SpaceAround/index.js";
|
|
5
5
|
import { StyledAsyncSelect, Wrapper } from "../Select/styles.js";
|
|
6
6
|
import { useStylesAndComponents } from "../Select/themes/index.js";
|
|
7
7
|
import "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
2
|
import styled$1, { css, th, useTheme } from "@xstyled/styled-components";
|
|
3
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
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 { jsx } from "react/jsx-runtime";
|
|
3
2
|
import { x } from "@xstyled/styled-components";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
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 { jsx } from "react/jsx-runtime";
|
|
3
2
|
import styled$1, { x } from "@xstyled/styled-components";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region packages/ui/Elements/BorderedBox/BorderedBox.tsx
|
|
5
5
|
const StyledBox = styled$1(x.div)`
|
|
6
6
|
display: flex;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
2
|
import styled$1, { th } from "@xstyled/styled-components";
|
|
3
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
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 { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import styled$1 from "@xstyled/styled-components";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
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 { jsx, jsxs } from "react/jsx-runtime";
|
|
3
2
|
import styled$1, { css } from "@xstyled/styled-components";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
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 { jsx } from "react/jsx-runtime";
|
|
4
3
|
import styled$1, { css } from "@xstyled/styled-components";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
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 { jsx, jsxs } from "react/jsx-runtime";
|
|
8
7
|
import styled$1 from "@xstyled/styled-components";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
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 { jsx } from "react/jsx-runtime";
|
|
3
2
|
import styled$1, { useTheme } from "@xstyled/styled-components";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
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 { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import styled$1 from "@xstyled/styled-components";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
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 styled$1, { th, useTheme } from "@xstyled/styled-components";
|
|
3
4
|
import { jsx } from "react/jsx-runtime";
|
|
4
5
|
import { library } from "@fortawesome/fontawesome-svg-core";
|
|
5
6
|
import { faFacebookF } from "@fortawesome/free-brands-svg-icons/faFacebookF";
|
|
@@ -115,7 +116,6 @@ import { faWebhook } from "@fortawesome/pro-solid-svg-icons/faWebhook";
|
|
|
115
116
|
import { faWineGlassCrack } from "@fortawesome/pro-solid-svg-icons/faWineGlassCrack";
|
|
116
117
|
import { faXmark } from "@fortawesome/pro-solid-svg-icons/faXmark";
|
|
117
118
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
118
|
-
import styled$1, { th, useTheme } from "@xstyled/styled-components";
|
|
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 { jsx } from "react/jsx-runtime";
|
|
5
4
|
import styled$1, { css, th, useTheme } from "@xstyled/styled-components";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
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 { jsx } from "react/jsx-runtime";
|
|
3
2
|
import styled$1 from "@xstyled/styled-components";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
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";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import SpaceAround_default from "../SpaceAround/index.js";
|
|
1
2
|
import ErrorMessage from "../ErrorMessage/ErrorMessage.js";
|
|
2
3
|
import "../ErrorMessage/index.js";
|
|
3
4
|
import { FieldLabel } from "../Label/Label.js";
|
|
4
5
|
import "../Label/index.js";
|
|
5
|
-
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 { jsx, jsxs } from "react/jsx-runtime";
|
|
10
9
|
import { useTheme } from "@xstyled/styled-components";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
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 { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
1
|
import styled$1, { th } from "@xstyled/styled-components";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
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 { jsx } from "react/jsx-runtime";
|
|
4
3
|
import styled$1 from "@xstyled/styled-components";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
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 { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
2
|
import styled$1 from "@xstyled/styled-components";
|
|
3
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
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 { jsx, jsxs } from "react/jsx-runtime";
|
|
6
5
|
import styled$1, { th } from "@xstyled/styled-components";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
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 { jsx } from "react/jsx-runtime";
|
|
3
2
|
import styled$1, { css, th, useTheme, x } from "@xstyled/styled-components";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
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 { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { x } from "@xstyled/styled-components";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
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 { jsx } from "react/jsx-runtime";
|
|
3
2
|
import { x } from "@xstyled/styled-components";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
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 { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import { x } from "@xstyled/styled-components";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region packages/ui/Elements/Toast/Toast.tsx
|
|
9
9
|
const Toast = ({ closeToast, title, text, type, autoClose }) => {
|
|
10
10
|
const icon = toastIconMap[type];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FieldLabel } from "../Label/Label.js";
|
|
2
|
-
import "../Label/index.js";
|
|
3
1
|
import SpaceAroundWrap from "../SpaceAround/SpaceAround.js";
|
|
4
2
|
import "../SpaceAround/index.js";
|
|
3
|
+
import { FieldLabel } from "../Label/Label.js";
|
|
4
|
+
import "../Label/index.js";
|
|
5
5
|
import "react";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import styled$1, { css } from "@xstyled/styled-components";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
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 { jsx, jsxs } from "react/jsx-runtime";
|
|
6
5
|
import styled$1 from "@xstyled/styled-components";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region packages/ui/Elements/Tooltip/Tooltip.tsx
|
|
8
8
|
const Container = styled$1.div`
|
|
9
9
|
width: fit-content;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { LanguageContext } from "../../ThemeProvider/ThemeProvider.js";
|
|
2
1
|
import SpaceAround_default from "../../Elements/SpaceAround/index.js";
|
|
2
|
+
import { LanguageContext } from "../../ThemeProvider/ThemeProvider.js";
|
|
3
3
|
import Datetime from "./Datetime/DateTime.js";
|
|
4
4
|
import { DatePickerInput } from "./components/DatePickerInput/DatePickerInput.js";
|
|
5
5
|
import "./components/DatePickerInput/index.js";
|
|
6
6
|
import { getInputFormat } from "./utils/getInputFormat.js";
|
|
7
7
|
import { DatePickerBase } from "./styles.js";
|
|
8
8
|
import React, { useCallback, useContext } from "react";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
9
|
import { x } from "@xstyled/styled-components";
|
|
10
|
+
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
import "moment/dist/locale/cs";
|
|
12
12
|
import "moment/dist/locale/el";
|
|
13
13
|
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 { jsx, jsxs } from "react/jsx-runtime";
|
|
8
7
|
import { x } from "@xstyled/styled-components";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { i18n } from "@lingui/core";
|
|
10
10
|
//#region packages/ui/Forms/DatePicker/Datetime/components/DateRepeater.tsx
|
|
11
11
|
const DateRepeater = ({ onChangeOthers, others, reset }) => {
|
|
@@ -9,8 +9,8 @@ import { parseTimeField } from "./utils/parseTimeField.js";
|
|
|
9
9
|
import { sanitizeTimeField } from "./utils/sanitizeTimeField.js";
|
|
10
10
|
import "./utils/index.js";
|
|
11
11
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
12
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
12
|
import { x } from "@xstyled/styled-components";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { i18n } from "@lingui/core";
|
|
15
15
|
//#region packages/ui/Forms/DatePicker/Datetime/components/Timepicker/Timepicker.tsx
|
|
16
16
|
const Timepicker = ({ setTime, value, disabled }) => {
|
package/ui/Forms/Input/Input.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import SpaceAroundWrap from "../../Elements/SpaceAround/SpaceAround.js";
|
|
2
|
+
import "../../Elements/SpaceAround/index.js";
|
|
1
3
|
import Icon from "../../Elements/Icon/Icon.js";
|
|
2
4
|
import "../../Elements/Icon/index.js";
|
|
3
|
-
import { Spinner } from "../../Elements/Spinner/Spinner.js";
|
|
4
|
-
import "../../Elements/Spinner/index.js";
|
|
5
5
|
import ErrorMessage from "../../Elements/ErrorMessage/ErrorMessage.js";
|
|
6
6
|
import "../../Elements/ErrorMessage/index.js";
|
|
7
7
|
import { FieldLabel } from "../../Elements/Label/Label.js";
|
|
8
8
|
import "../../Elements/Label/index.js";
|
|
9
|
-
import
|
|
10
|
-
import "../../Elements/
|
|
9
|
+
import { Spinner } from "../../Elements/Spinner/Spinner.js";
|
|
10
|
+
import "../../Elements/Spinner/index.js";
|
|
11
11
|
import { ClearableInputIcon, IconWrapper, IconsController, InputIcon, InputRow, InputWrap, StyledInput, Suffix, Tooltip } from "./styles.js";
|
|
12
12
|
import { useCallback, useEffect, useRef } from "react";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import SpaceAroundWrap from "../../Elements/SpaceAround/SpaceAround.js";
|
|
2
|
+
import "../../Elements/SpaceAround/index.js";
|
|
1
3
|
import Icon from "../../Elements/Icon/Icon.js";
|
|
2
4
|
import ErrorMessage from "../../Elements/ErrorMessage/ErrorMessage.js";
|
|
3
5
|
import { FieldLabel } from "../../Elements/Label/Label.js";
|
|
4
6
|
import "../../Elements/Label/index.js";
|
|
5
|
-
import SpaceAroundWrap from "../../Elements/SpaceAround/SpaceAround.js";
|
|
6
|
-
import "../../Elements/SpaceAround/index.js";
|
|
7
7
|
import { BorderWrap, IconWrap, InnerWrap, StyledTextArea, TextAreaWrap } from "./styles.js";
|
|
8
8
|
import "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { initialState } from "./store/index.js";
|
|
1
2
|
import { getGroups } from "./utils/index.js";
|
|
2
3
|
import DataRow from "./components/DataRow.js";
|
|
3
4
|
import FilterRow from "./components/FilterRow.js";
|
|
@@ -9,10 +10,9 @@ import OversizedScroll from "./components/OversizedScroll.js";
|
|
|
9
10
|
import useColumnSizes from "./hooks/useColumnSizes.js";
|
|
10
11
|
import useRowsKeyControls from "./hooks/useRowsKeyControls.js";
|
|
11
12
|
import useUxReset from "./hooks/useUxReset.js";
|
|
12
|
-
import { initialState } from "./store/index.js";
|
|
13
13
|
import { useCallback, useMemo } from "react";
|
|
14
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
14
|
import { x } from "@xstyled/styled-components";
|
|
15
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
//#region packages/ui/Modules/CommonGrid/CommonGrid.tsx
|
|
17
17
|
const rowsStyles = { outline: "none" };
|
|
18
18
|
const defaultVoidFunction = (...args) => null;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { getFilters } from "./utils/index.js";
|
|
1
2
|
import HidePrint from "../../Blocks/HidePrint/HidePrint.js";
|
|
2
3
|
import { useModal } from "../../Blocks/Modal/hooks/useModal.js";
|
|
3
4
|
import Pagination from "../../Elements/Pagination/Pagination.js";
|
|
4
5
|
import "../../Elements/Pagination/index.js";
|
|
5
6
|
import { useCheckDeviceWidth } from "../../utils/CheckDeviceWidth/checkDeviceWidth.js";
|
|
6
7
|
import ActionHead_default from "./components/ActionHead/index.js";
|
|
7
|
-
import { getFilters } from "./utils/index.js";
|
|
8
8
|
import { clearShareParams } from "./utils/shareUrl/clearShareParams.js";
|
|
9
9
|
import "./utils/shareUrl/index.js";
|
|
10
10
|
import ControlButtons_default from "./components/ControlButtons/index.js";
|
|
@@ -25,8 +25,8 @@ import { getRowsPerPage } from "./utils/getRowsPerPage.js";
|
|
|
25
25
|
import { hasSortTerminated } from "./utils/hasSortTerminated.js";
|
|
26
26
|
import { BottomWrapper, CommonGridWithStyles, CommonGridWrap, ContentContainer, StyledButtonStrip } from "./styles.js";
|
|
27
27
|
import { useCallback, useMemo, useRef, useState } from "react";
|
|
28
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
29
28
|
import { x } from "@xstyled/styled-components";
|
|
29
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
30
30
|
//#region packages/ui/Modules/CommonGrid/CommonGridContainer.tsx
|
|
31
31
|
const CommonGridContainer = (props) => {
|
|
32
32
|
const { optimizeFilters = false, extraControlButtons, onBatchAction, processCheckedValues, processCheckedValuesTitle, hideControlButtons, quickFilter, floatingButtonProps, queryRowsParam, customPaginationHandler, autoHeight = true, gridName, withPresets = true, withManageColumnButton = true, withPagination = true, withAggregation = true, withShare = true, allowSortingOnlyUnderTotalRows, onReload, ...passDownProps } = props;
|