@mailstep/design-system 0.8.29-beta.0 → 0.8.29-beta.1
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/CommonGrid/components/DataCell.js +1 -1
- package/ui/Blocks/CommonGrid/components/FilterRow.js +2 -2
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/GridSelect.js +2 -2
- package/ui/Blocks/CommonGrid/components/HeadCell.js +1 -1
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.js +1 -1
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/utils.js +1 -1
- package/ui/Blocks/CommonGrid/components/MobileFilterModal.js +1 -1
- package/ui/Blocks/CommonGrid/components/PresetsModalBody/index.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/BoolIcon.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/Date.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/DateTime.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/HoverBubble.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/ImageCell.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/RowActionsCell.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/StringJoin.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/ToggleCell.js +1 -1
- package/ui/Blocks/CommonGrid/hooks/useColumnSizes.js +1 -1
- package/ui/Blocks/CommonGrid/hooks/useCreatePreset.js +1 -1
- package/ui/Blocks/CommonGrid/hooks/useGridActionTrigger.js +1 -1
- package/ui/Blocks/CommonGrid/hooks/usePresetFileHandlers.js +1 -1
- package/ui/Blocks/CommonGrid/hooks/useSelectPreset.js +1 -1
- package/ui/Blocks/CommonGrid/store/index.js +2 -2
- package/ui/Blocks/CommonGrid/storybook/utils/utils.js +1 -1
- package/ui/Blocks/CommonGrid/utils/getExtendedExtraControlButtons.js +1 -1
- package/ui/Blocks/Scheduler/components/BookedTimeSlots/index.js +1 -1
- package/ui/Blocks/Stepper/components/StepItem/index.js +1 -1
- package/ui/Elements/DatePicker/DatePicker.js +5 -5
- package/ui/Elements/SingleSelect/SingleSelect.js +2 -2
- package/ui/utils/CreateRgba/createRgba.js +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { getCellSizeProps, getGroupClassNames, getStickyCollClassNames } from ".
|
|
|
2
2
|
import { TextCell } from "./Table.js";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import get from "lodash/fp/get
|
|
5
|
+
import get from "lodash/fp/get";
|
|
6
6
|
//#region packages/ui/Blocks/CommonGrid/components/DataCell.tsx
|
|
7
7
|
const DataCell = ({ column, group, rowData, onRowAction, displayColumnWidth, rowIndex }) => {
|
|
8
8
|
const Wrapper = column.fixedSize ? "div" : TextCell;
|
|
@@ -2,8 +2,8 @@ import { getFilterName } from "../utils/index.js";
|
|
|
2
2
|
import { Row } from "./Table.js";
|
|
3
3
|
import ColumnFilterCell from "./ColumnFilterCell.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import get from "lodash/fp/get
|
|
6
|
-
import throttle from "lodash/throttle
|
|
5
|
+
import get from "lodash/fp/get";
|
|
6
|
+
import throttle from "lodash/throttle";
|
|
7
7
|
//#region packages/ui/Blocks/CommonGrid/components/FilterRow.tsx
|
|
8
8
|
const FilterRow = ({ columns, groups, actionColumn, onChange, filterValues = {}, displayColumnsWidth, filters, comparators, handleUxChange, onAsyncLoadFilterOptions, rowsData, uxState }) => {
|
|
9
9
|
const handleOnChange = throttle(onChange, 500);
|
|
@@ -4,8 +4,8 @@ import { isOptionArray } from "./guards.js";
|
|
|
4
4
|
import { useCallback, useMemo, useState } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { i18n } from "@lingui/core";
|
|
7
|
-
import isArray from "lodash/isArray
|
|
8
|
-
import uniqBy from "lodash/uniqBy
|
|
7
|
+
import isArray from "lodash/isArray";
|
|
8
|
+
import uniqBy from "lodash/uniqBy";
|
|
9
9
|
//#region packages/ui/Blocks/CommonGrid/components/Filters/GridSelect/GridSelect.tsx
|
|
10
10
|
const minColumnWidth = 120;
|
|
11
11
|
const noOptionsMessage = () => null;
|
|
@@ -4,7 +4,7 @@ import ColumnTitle_default from "./ColumnTitle.js";
|
|
|
4
4
|
import Resize from "./Resize.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { useSortable } from "@dnd-kit/sortable";
|
|
7
|
-
import { CSS } from "
|
|
7
|
+
import { CSS } from "@dnd-kit/utilities";
|
|
8
8
|
//#region packages/ui/Blocks/CommonGrid/components/HeadCell.tsx
|
|
9
9
|
const HeadCell = ({ column, isDragDisabled, displayColumnsWidth, onResizeOut, onResizeOver, onResize, sortingValues, onSetSort, group, hasResize, isSortTerminated }) => {
|
|
10
10
|
const { attributes, listeners, setNodeRef, transform, transition } = useSortable({
|
|
@@ -7,7 +7,7 @@ import { useCallback, useState } from "react";
|
|
|
7
7
|
import { x } from "@xstyled/styled-components";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { useSortable } from "@dnd-kit/sortable";
|
|
10
|
-
import { CSS } from "
|
|
10
|
+
import { CSS } from "@dnd-kit/utilities";
|
|
11
11
|
//#region packages/ui/Blocks/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.tsx
|
|
12
12
|
const ManageColumnRow = ({ column, columnsConfigValues, setColumnsConfigOptions, searchedValue }) => {
|
|
13
13
|
const [isSelected, setIsSelected] = useState(columnsConfigValues?.includes(column.name) ?? false);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i18n } from "@lingui/core";
|
|
2
|
-
import isObject from "lodash/isObject
|
|
2
|
+
import isObject from "lodash/isObject";
|
|
3
3
|
//#region packages/ui/Blocks/CommonGrid/components/ManageColumnForm/utils.ts
|
|
4
4
|
const getTranslatedValue = (column) => column && isObject(column?.title) ? "props" in column.title && column.title?.props && i18n._({
|
|
5
5
|
id: column.title?.props?.id ?? "",
|
|
@@ -7,7 +7,7 @@ import { useCallback, useEffect, useState } from "react";
|
|
|
7
7
|
import { x } from "@xstyled/styled-components";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { Trans } from "@lingui/react";
|
|
10
|
-
import get from "lodash/fp/get
|
|
10
|
+
import get from "lodash/fp/get";
|
|
11
11
|
//#region packages/ui/Blocks/CommonGrid/components/MobileFilterModal.tsx
|
|
12
12
|
const MobileFilterModal = ({ isShown, onClose, columns, filters, comparators, filterValues = {}, setFilters, rowsData, uxState, handleUxChange, onAsyncLoadFilterOptions, actionColumn, onClearSettings }) => {
|
|
13
13
|
const filterableColumns = columns.filter((col) => col.filtering && col.title);
|
|
@@ -8,7 +8,7 @@ import { useMemo } from "react";
|
|
|
8
8
|
import { x } from "@xstyled/styled-components";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { Trans } from "@lingui/react";
|
|
11
|
-
import isEmpty from "lodash/isEmpty
|
|
11
|
+
import isEmpty from "lodash/isEmpty";
|
|
12
12
|
//#region packages/ui/Blocks/CommonGrid/components/PresetsModalBody/index.tsx
|
|
13
13
|
const PresetsModalBody = ({ onOpenCreatePresetModal, gridPresets, handleSelectPreset, handleOpenDeletePresetModal, selectedPresetName, handleExportPresets, handleImportButtonClick, handleImportPresets, fileInputRef, filters }) => {
|
|
14
14
|
const presets = useMemo(() => Object.entries(gridPresets || {}), [gridPresets]);
|
|
@@ -4,7 +4,7 @@ import "../../../../Elements/Icon/index.js";
|
|
|
4
4
|
import React from "react";
|
|
5
5
|
import styled$1 from "@xstyled/styled-components";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import get from "lodash/fp/get
|
|
7
|
+
import get from "lodash/fp/get";
|
|
8
8
|
//#region packages/ui/Blocks/CommonGrid/components/gridCells/BoolIcon.tsx
|
|
9
9
|
const Center = styled$1.div`
|
|
10
10
|
display: flex;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { DateTime } from "luxon";
|
|
4
|
-
import get from "lodash/fp/get
|
|
4
|
+
import get from "lodash/fp/get";
|
|
5
5
|
//#region packages/ui/Blocks/CommonGrid/components/gridCells/Date.tsx
|
|
6
6
|
const DateCell = ({ rowData, column }) => {
|
|
7
7
|
const value = get(column.name, rowData);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { DateTime } from "luxon";
|
|
4
|
-
import get from "lodash/fp/get
|
|
4
|
+
import get from "lodash/fp/get";
|
|
5
5
|
//#region packages/ui/Blocks/CommonGrid/components/gridCells/DateTime.tsx
|
|
6
6
|
const defaultProps = { dateTimeFormat: "dd. MM. yyyy HH:mm" };
|
|
7
7
|
const DateTimeCell = ({ rowData, column }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import styled$1 from "@xstyled/styled-components";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import get from "lodash/fp/get
|
|
4
|
+
import get from "lodash/fp/get";
|
|
5
5
|
//#region packages/ui/Blocks/CommonGrid/components/gridCells/HoverBubble.tsx
|
|
6
6
|
const Wrapper = styled$1.div`
|
|
7
7
|
text-align: center;
|
|
@@ -2,7 +2,7 @@ import Image from "../../../../Elements/Image/Image.js";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import styled$1 from "@xstyled/styled-components";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import get from "lodash/fp/get
|
|
5
|
+
import get from "lodash/fp/get";
|
|
6
6
|
//#region packages/ui/Blocks/CommonGrid/components/gridCells/ImageCell.tsx
|
|
7
7
|
const ImageWrapper = styled$1.div`
|
|
8
8
|
${({ onClick }) => onClick ? "cursor: pointer;" : ""}
|
|
@@ -3,7 +3,7 @@ import { IconButtonInCell } from "./IconButtonInCell.js";
|
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
4
|
import { x } from "@xstyled/styled-components";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { isFunction } from "lodash/fp
|
|
6
|
+
import { isFunction } from "lodash/fp";
|
|
7
7
|
//#region packages/ui/Blocks/CommonGrid/components/gridCells/RowActionsCell.tsx
|
|
8
8
|
const RowActionsCell = ({ actionColumnDefinition, rowData, addRowNumbers, rowIndex, checkedRows, withCheckboxes, onUxChange, onRowAction }) => {
|
|
9
9
|
const rowDataId = rowData?.id;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import get from "lodash/fp/get
|
|
3
|
+
import get from "lodash/fp/get";
|
|
4
4
|
//#region packages/ui/Blocks/CommonGrid/components/gridCells/StringJoin.tsx
|
|
5
5
|
const StringJoinCell = ({ rowData, column }) => {
|
|
6
6
|
const values = get(column.name, rowData);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SwitchInCell } from "./SwitchInCell.js";
|
|
2
2
|
import React, { useCallback } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import get from "lodash/fp/get
|
|
4
|
+
import get from "lodash/fp/get";
|
|
5
5
|
//#region packages/ui/Blocks/CommonGrid/components/gridCells/ToggleCell.tsx
|
|
6
6
|
const ToggleCell = ({ rowData, column, onRowAction }) => {
|
|
7
7
|
const inverse = !!column?.passProps?.inverse;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import sum from "lodash/sum
|
|
2
|
+
import sum from "lodash/sum";
|
|
3
3
|
//#region packages/ui/Blocks/CommonGrid/hooks/useColumnSizes.tsx
|
|
4
4
|
const useColumnSizes = (displayColumnsDefinitions, storeColumnsWidth, storeColumnsWidthVariant, setColumnWidth, columnLayout, minColumnWidth = 50) => {
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useModal } from "../../Modal/hooks/useModal.js";
|
|
2
2
|
import { useEvent } from "./useEvent.js";
|
|
3
3
|
import { useCallback, useState } from "react";
|
|
4
|
-
import isEmpty from "lodash/isEmpty
|
|
4
|
+
import isEmpty from "lodash/isEmpty";
|
|
5
5
|
//#region packages/ui/Blocks/CommonGrid/hooks/useCreatePreset.ts
|
|
6
6
|
const useCreatePreset = ({ gridName, filters, onClosePresetsModal, setSelectedPresetName, gridActions }) => {
|
|
7
7
|
const { isOpen: isCreatePresetModalOpen, onOpen: onOpenCreatePresetModal, onClose: onCloseCreatePresetModal } = useModal();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useMemo } from "react";
|
|
2
|
-
import find from "lodash/find
|
|
2
|
+
import find from "lodash/find";
|
|
3
3
|
//#region packages/ui/Blocks/CommonGrid/hooks/useGridActionTrigger.ts
|
|
4
4
|
const useGridActionTrigger = (rowsData, uxState, actionOptions = [], onBatchAction) => {
|
|
5
5
|
const actionRows = useMemo(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useRef } from "react";
|
|
2
2
|
import { i18n } from "@lingui/core";
|
|
3
|
-
import omit from "lodash/omit
|
|
3
|
+
import omit from "lodash/omit";
|
|
4
4
|
//#region packages/ui/Blocks/CommonGrid/hooks/usePresetFileHandlers.ts
|
|
5
5
|
const usePresetFileHandlers = ({ gridName, gridActions, gridSelectors }) => {
|
|
6
6
|
const fileInputRef = useRef(null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useEffect } from "react";
|
|
2
|
-
import isEqual from "lodash/isEqual
|
|
2
|
+
import isEqual from "lodash/isEqual";
|
|
3
3
|
//#region packages/ui/Blocks/CommonGrid/hooks/useSelectPreset.ts
|
|
4
4
|
const useSelectPreset = ({ gridName, gridActions, gridSelectors, setSelectedPresetName, onClosePresetsModal }) => {
|
|
5
5
|
const gridPresets = gridSelectors?.presets;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import migrateState_default from "./migrateState.js";
|
|
2
|
-
import getOr from "lodash/fp/getOr
|
|
3
|
-
import omit from "lodash/omit
|
|
2
|
+
import getOr from "lodash/fp/getOr";
|
|
3
|
+
import omit from "lodash/omit";
|
|
4
4
|
import produce from "immer";
|
|
5
5
|
import { createSelector } from "reselect";
|
|
6
6
|
//#region packages/ui/Blocks/CommonGrid/store/index.ts
|
|
@@ -3,7 +3,7 @@ import CommonGridContainer from "../../CommonGridContainer.js";
|
|
|
3
3
|
import withReduxActions from "../../HoC/withReduxActions.js";
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import faker from "
|
|
6
|
+
import faker from "faker";
|
|
7
7
|
//#region packages/ui/Blocks/CommonGrid/storybook/utils/utils.tsx
|
|
8
8
|
const enumValues = [
|
|
9
9
|
"option A",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Reload } from "../../../Elements/Icon/icons/Reload.js";
|
|
2
2
|
import "../types.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import compact from "lodash/compact
|
|
4
|
+
import compact from "lodash/compact";
|
|
5
5
|
//#region packages/ui/Blocks/CommonGrid/utils/getExtendedExtraControlButtons.tsx
|
|
6
6
|
const getExtendedExtraControlButtons = (extraControlButtons, onReload) => compact([onReload && {
|
|
7
7
|
onClick: onReload,
|
|
@@ -4,7 +4,7 @@ import { convertMinutesToDuration } from "../../utils/convertMinutesToDuration.j
|
|
|
4
4
|
import { Body, BookedTimeSlot, Header } from "./styles.js";
|
|
5
5
|
import { x } from "@xstyled/styled-components";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import get from "lodash/get
|
|
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 }) => {
|
|
10
10
|
return /* @__PURE__ */ jsx(Fragment, { children: bookedTimeSlots.map(({ id, from, to, ...rest }) => {
|
|
@@ -4,7 +4,7 @@ import { ContentWrapper, Line, StepItemContainer } from "./styles.js";
|
|
|
4
4
|
import { x } from "@xstyled/styled-components";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { Trans } from "@lingui/react";
|
|
7
|
-
import isBoolean from "lodash/isBoolean
|
|
7
|
+
import isBoolean from "lodash/isBoolean";
|
|
8
8
|
//#region packages/ui/Blocks/Stepper/components/StepItem/index.tsx
|
|
9
9
|
const StepItem = ({ title, index, disabled, isPrevStepCompleted, activeStep, completed, icon, hasStepNumbering = true, visible = true, total, onClick }) => {
|
|
10
10
|
const isActiveStep = index === activeStep;
|
|
@@ -7,11 +7,11 @@ import React, { useCallback, useContext } from "react";
|
|
|
7
7
|
import { x } from "@xstyled/styled-components";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
import moment from "moment";
|
|
10
|
-
import "moment/dist/locale/cs
|
|
11
|
-
import "moment/dist/locale/el
|
|
12
|
-
import "moment/dist/locale/it
|
|
13
|
-
import "moment/dist/locale/ru
|
|
14
|
-
import "moment/dist/locale/sk
|
|
10
|
+
import "moment/dist/locale/cs";
|
|
11
|
+
import "moment/dist/locale/el";
|
|
12
|
+
import "moment/dist/locale/it";
|
|
13
|
+
import "moment/dist/locale/ru";
|
|
14
|
+
import "moment/dist/locale/sk";
|
|
15
15
|
//#region packages/ui/Elements/DatePicker/DatePicker.tsx
|
|
16
16
|
const defaultDateFormat = "DD.MM.YYYY";
|
|
17
17
|
const DatePicker = ({ name, value, initialViewDate, error, label, disabled, isValidDate, onChange, dateFormat = defaultDateFormat, timeFormat = false, open, secondValue = null, input, icon = true, showInputLabel = false, showCalendarLabel = true, spaceAround = false, className, onClear, onInputChange, ...passProps }) => {
|
|
@@ -3,8 +3,8 @@ import { useCallback, useEffect, useMemo, useState } from "react";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { i18n } from "@lingui/core";
|
|
5
5
|
import { createFilter } from "react-select";
|
|
6
|
-
import { nanoid } from "
|
|
7
|
-
import omit from "lodash/fp/omit
|
|
6
|
+
import { nanoid } from "nanoid";
|
|
7
|
+
import omit from "lodash/fp/omit";
|
|
8
8
|
//#region packages/ui/Elements/SingleSelect/SingleSelect.tsx
|
|
9
9
|
const CREATE = `_create_${nanoid()}_`;
|
|
10
10
|
const defaultFilterOption = createFilter();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import themes from "../../ThemeProvider/themes/index.js";
|
|
2
2
|
import "../../ThemeProvider/index.js";
|
|
3
|
-
import getOr from "lodash/fp/getOr
|
|
3
|
+
import getOr from "lodash/fp/getOr";
|
|
4
4
|
//#region packages/ui/utils/CreateRgba/createRgba.ts
|
|
5
5
|
const createRgba = (color, alpha) => {
|
|
6
6
|
color = getOr(false, `colors[${color}]`, themes.default) || color;
|