@mailstep/design-system 0.8.15 → 0.8.16-beta.10
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 +12 -6
- package/ui/Blocks/CommonGrid/components/ControlButtons/styles.d.ts +1 -0
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/GridSelect.js +2 -2
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/TextRange.js +1 -1
- package/ui/Blocks/CommonGrid/components/IconList/IconList.d.ts +1 -1
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/styles.d.ts +2 -2
- package/ui/Blocks/CommonGrid/components/Table.d.ts +28 -28
- package/ui/Blocks/CommonGrid/components/Table.js +1 -1
- package/ui/Blocks/CommonGrid/hooks/useAddFilter.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useColumnSizes.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useEvent.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useGridActionTrigger.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useManageColumn.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useRowsKeyControls.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useToggleAllCheckbox.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useUxReset.d.ts +1 -1
- package/ui/Blocks/CommonGrid/store/index.d.ts +15 -15
- package/ui/Blocks/CommonGrid/styles.d.ts +6 -5
- package/ui/Blocks/CommonGrid/styles.js +1 -1
- package/ui/Blocks/CommonGrid/utils/index.d.ts +1 -1
- package/ui/Blocks/Header/components/MenuItems/styles.d.ts +1 -1
- package/ui/Blocks/Header/stories/Header.stories.d.ts +16 -16
- package/ui/Blocks/ImageList/components/AddPhoto/index.js +2 -2
- package/ui/Blocks/ImageList/components/AddPhoto/styles.d.ts +2 -2
- package/ui/Blocks/ImageList/components/CloseButton/styles.d.ts +1 -1
- package/ui/Blocks/ImageList/components/ImageElement/styles.d.ts +1 -1
- package/ui/Blocks/ImageList/styles.d.ts +2 -2
- package/ui/Blocks/LanguageSwitch/styles.d.ts +3 -3
- package/ui/Blocks/LoginPage/stories/LoginPage.stories.js +2 -2
- package/ui/Blocks/LoginPage/styles.d.ts +2 -3
- package/ui/Blocks/Modal/styles.d.ts +7 -7
- package/ui/Blocks/Modal/styles.js +6 -6
- package/ui/Blocks/Scheduler/components/Groups/styles.d.ts +1 -1
- package/ui/Blocks/Scheduler/components/TimeSlots/styles.d.ts +1 -1
- package/ui/Blocks/SideMenu/components/Footer.d.ts +1 -1
- package/ui/Blocks/SideMenu/stories/SideMenu.stories.d.ts +1 -0
- package/ui/Blocks/SideMenu/styles.d.ts +15 -15
- package/ui/Blocks/Stepper/components/StepCircle/styles.d.ts +2 -2
- package/ui/Blocks/Stepper/components/StepItem/styles.d.ts +3 -3
- package/ui/Blocks/Table/stories/Table.stories.d.ts +3 -2
- package/ui/Blocks/Tabs/styles.d.ts +6 -5
- package/ui/Elements/Alert/styles.d.ts +18 -17
- package/ui/Elements/AsyncSelect/stories/AsyncSelect.stories.d.ts +2 -1
- package/ui/Elements/AsyncSelect/stories/AsyncSelect.stories.js +2 -2
- package/ui/Elements/BarChartSymbol/styles.d.ts +2 -2
- package/ui/Elements/BorderedBox/types.d.ts +1 -0
- package/ui/Elements/Button/styles.d.ts +6 -5
- package/ui/Elements/Card/styles.d.ts +2 -2
- package/ui/Elements/Card/types.d.ts +1 -0
- package/ui/Elements/CheckedCircle/storries/CheckedCircle.stories.d.ts +2 -2
- package/ui/Elements/DatePicker/Datetime/components/FooterRow.d.ts +1 -1
- package/ui/Elements/DatePicker/Datetime/views/DaysView.js +1 -1
- package/ui/Elements/DatePicker/styles.d.ts +2 -1
- package/ui/Elements/Icon/Icon.js +6 -6
- package/ui/Elements/Icon/stories/BadgeIcon.stories.d.ts +1 -1
- package/ui/Elements/Label/Label.d.ts +1 -1
- package/ui/Elements/Label/stories/Label.stories.d.ts +1 -1
- package/ui/Elements/Link/stories/Link.stories.d.ts +12 -12
- package/ui/Elements/Logo/Logo.js +2 -2
- package/ui/Elements/Pagination/styled.d.ts +2 -1
- package/ui/Elements/ProgressBar/stories/ProgressBar.stories.d.ts +5 -5
- package/ui/Elements/ProgressBar/styles.d.ts +1 -1
- package/ui/Elements/Select/Select.js +2 -2
- package/ui/Elements/Select/components/CountMultiValue.js +2 -2
- package/ui/Elements/Select/components/SimplifiedOption.d.ts +1 -0
- package/ui/Elements/Select/themes/index.d.ts +1 -1
- package/ui/Elements/Select/themes/selectStyles.d.ts +1 -1
- package/ui/Elements/Select/themes/selectStyles.js +15 -15
- package/ui/Elements/SingleSelect/SingleSelect.js +2 -2
- package/ui/Elements/SpaceAround/types.d.ts +1 -0
- package/ui/Elements/Spinner/styles.d.ts +1 -1
- package/ui/Elements/Tag/types.d.ts +1 -0
- package/ui/Elements/Toast/styles.d.ts +1 -1
- package/ui/Forms/Checkbox/styles.d.ts +2 -1
- package/ui/Forms/Checkbox/styles.js +2 -2
- package/ui/Forms/Input/styles.d.ts +3 -3
- package/ui/Forms/Input/styles.js +2 -2
- package/ui/Forms/TextArea/styles.d.ts +5 -5
- package/ui/ThemeProvider/ThemeProvider.d.ts +2 -1
- package/ui/ThemeProvider/ThemeProvider.js +1 -1
- package/ui/ThemeProvider/themes/dark.d.ts +153 -0
- package/ui/ThemeProvider/themes/dark.js +14 -0
- package/ui/ThemeProvider/themes/default.d.ts +1 -0
- package/ui/ThemeProvider/themes/default.js +2 -1
- package/ui/ThemeProvider/themes/index.d.ts +153 -1
- package/ui/ThemeProvider/themes/index.js +3 -3
- package/ui/ThemeProvider/themes/mailwise.js +1 -1
- package/ui/ThemeProvider/types.d.ts +13 -33
- package/ui/index.es.js +13140 -13747
- package/ui/index.umd.js +446 -445
- package/ui/utils/index.js +1 -1
- package/ui/utils/translations.d.ts +4 -1
- package/ui/utils/translations.js +1 -1
- package/ui/ThemeProvider/themes/light.d.ts +0 -4
- package/ui/ThemeProvider/themes/light.js +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const GroupContainer: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
2
2
|
export declare const GroupItem: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
3
|
-
bg?: string;
|
|
3
|
+
bg?: string | undefined;
|
|
4
4
|
groupsCount: number;
|
|
5
5
|
}, never>;
|
|
6
6
|
export declare const Gap: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
@@ -3,7 +3,7 @@ export declare const TimeRow: import('styled-components').StyledComponent<"div",
|
|
|
3
3
|
disabled: boolean;
|
|
4
4
|
}, never>;
|
|
5
5
|
export declare const EmptyTimeSlot: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
6
|
-
isSlotSelected?: boolean;
|
|
6
|
+
isSlotSelected?: boolean | undefined;
|
|
7
7
|
activeTime: boolean;
|
|
8
8
|
groupsCount: number;
|
|
9
9
|
}, never>;
|
|
@@ -5,7 +5,7 @@ export declare const FooterWrap: import('styled-components').StyledComponent<"di
|
|
|
5
5
|
}, never>;
|
|
6
6
|
export declare const SizeToggle: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
7
7
|
isCompact: boolean;
|
|
8
|
-
$lightMode?: boolean;
|
|
8
|
+
$lightMode?: boolean | undefined;
|
|
9
9
|
}, never>;
|
|
10
10
|
type Props = {
|
|
11
11
|
isCompact: boolean;
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { NavLink } from 'react-router-dom';
|
|
2
2
|
|
|
3
3
|
export declare const Container: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
4
|
-
isLeftMenuOpen?: boolean;
|
|
4
|
+
isLeftMenuOpen?: boolean | undefined;
|
|
5
5
|
}, never>;
|
|
6
6
|
export declare const SubItemsWrap: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
7
7
|
export declare const ItemsSeparator: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
8
8
|
export declare const ItemLabel: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
9
|
-
$isCompact?: boolean;
|
|
10
|
-
isSubitem?: boolean;
|
|
9
|
+
$isCompact?: boolean | undefined;
|
|
10
|
+
isSubitem?: boolean | undefined;
|
|
11
11
|
}, never>;
|
|
12
12
|
export declare const ItemDropdownArrow: import('styled-components').StyledComponent<import('react').FC<import('../..').IconProps>, import('@xstyled/system').Theme, {
|
|
13
|
-
$lightMode?: boolean;
|
|
13
|
+
$lightMode?: boolean | undefined;
|
|
14
14
|
}, never>;
|
|
15
15
|
export declare const TooltipItemLabel: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
16
16
|
export declare const ItemLinkWrap: import('styled-components').StyledComponent<typeof NavLink, import('@xstyled/system').Theme, {
|
|
17
|
-
$isCompact?: boolean;
|
|
18
|
-
$lightMode?: boolean;
|
|
19
|
-
appearance?: "
|
|
17
|
+
$isCompact?: boolean | undefined;
|
|
18
|
+
$lightMode?: boolean | undefined;
|
|
19
|
+
appearance?: "default" | "gray" | undefined;
|
|
20
20
|
}, never>;
|
|
21
21
|
export declare const MenuItemContainer: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
22
|
-
$isCompact?: boolean;
|
|
23
|
-
$lightMode?: boolean;
|
|
24
|
-
hasChildren?: boolean;
|
|
25
|
-
isHovering?: boolean;
|
|
22
|
+
$isCompact?: boolean | undefined;
|
|
23
|
+
$lightMode?: boolean | undefined;
|
|
24
|
+
hasChildren?: boolean | undefined;
|
|
25
|
+
isHovering?: boolean | undefined;
|
|
26
26
|
}, never>;
|
|
27
27
|
export declare const ItemIcon: import('styled-components').StyledComponent<"span", import('@xstyled/system').Theme, {
|
|
28
|
-
$isCompact?: boolean;
|
|
28
|
+
$isCompact?: boolean | undefined;
|
|
29
29
|
}, never>;
|
|
30
30
|
export declare const TooltipWrap: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
31
|
-
$lightMode?: boolean;
|
|
31
|
+
$lightMode?: boolean | undefined;
|
|
32
32
|
}, never>;
|
|
33
33
|
export declare const OverflowWithEllipsis: import('styled-components').StyledComponent<"span", import('@xstyled/system').Theme, {}, never>;
|
|
34
34
|
export declare const TopLevelWrap: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
35
35
|
isCompact: boolean;
|
|
36
|
-
isLeftMenuOpen?: boolean;
|
|
37
|
-
lightMode?: boolean;
|
|
36
|
+
isLeftMenuOpen?: boolean | undefined;
|
|
37
|
+
lightMode?: boolean | undefined;
|
|
38
38
|
}, never>;
|
|
39
39
|
export declare const ScrollWrap: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
40
40
|
export declare const BodyWrap: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const StepItemContainer: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
2
2
|
isActiveStep: boolean;
|
|
3
|
-
isDisabled?: boolean;
|
|
4
|
-
isVisible?: boolean;
|
|
3
|
+
isDisabled?: boolean | undefined;
|
|
4
|
+
isVisible?: boolean | undefined;
|
|
5
5
|
total: number;
|
|
6
|
-
onClick?: () => void;
|
|
6
|
+
onClick?: (() => void) | undefined;
|
|
7
7
|
}, never>;
|
|
8
8
|
export declare const Line: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
9
9
|
isActiveStep: boolean;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const meta: {
|
|
2
3
|
title: string;
|
|
3
4
|
component: import('react').FC<{
|
|
4
5
|
columnDefinitions: import('../types').ColumnDefinitions;
|
|
5
|
-
data?: import('../types').DataRow[] | null;
|
|
6
|
-
onRowClick?: (dataRow: import('../types').DataRow) => void;
|
|
6
|
+
data?: import('../types').DataRow[] | null | undefined;
|
|
7
|
+
onRowClick?: ((dataRow: import('../types').DataRow) => void) | undefined;
|
|
7
8
|
}>;
|
|
8
9
|
tags: string[];
|
|
9
10
|
argTypes: {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledImageBox: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements, "color">) => import('react').ReactElement<any, string>, import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, "color">;
|
|
2
3
|
export declare const StyledTabWrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
3
4
|
export declare const RoundedWrap: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
4
5
|
export declare const Tab: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
5
6
|
active: boolean;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
minWidth?: string | string[];
|
|
7
|
+
disabled?: boolean | undefined;
|
|
8
|
+
minWidth?: string | string[] | undefined;
|
|
8
9
|
}, never>;
|
|
9
10
|
export declare const TabPanel: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
10
|
-
$mb?: string;
|
|
11
|
-
$mt?: string;
|
|
11
|
+
$mb?: string | undefined;
|
|
12
|
+
$mt?: string | undefined;
|
|
12
13
|
}, never>;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledAlert: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements, "color">) => import('react').ReactElement<any, string>, any, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
|
|
3
|
+
$inline?: boolean | undefined;
|
|
3
4
|
$colorFill: string;
|
|
4
5
|
$bgColor: string;
|
|
5
6
|
}, "color">;
|
|
6
|
-
export declare const VerticalSeparator: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements
|
|
7
|
-
$colorFill?: string;
|
|
7
|
+
export declare const VerticalSeparator: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements, "color">) => import('react').ReactElement<any, string>, any, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
|
|
8
|
+
$colorFill?: string | undefined;
|
|
8
9
|
}, "color">;
|
|
9
|
-
export declare const IconWrap: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements
|
|
10
|
+
export declare const IconWrap: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements, "color">) => import('react').ReactElement<any, string>, any, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, "color">;
|
|
10
11
|
export declare const Title: import('styled-components').StyledComponent<"span", any, {}, never>;
|
|
11
12
|
export declare const Text: import('styled-components').StyledComponent<"span", any, {}, never>;
|
|
12
13
|
export declare const LinkWrapper: import('styled-components').StyledComponent<import('react').FC<{
|
|
13
14
|
as?: any;
|
|
14
|
-
children?:
|
|
15
|
-
to?: string | {
|
|
16
|
-
pathname?: string;
|
|
17
|
-
search?: string;
|
|
18
|
-
hash?: string;
|
|
19
|
-
state?: object;
|
|
20
|
-
} |
|
|
21
|
-
target?: string;
|
|
22
|
-
color?: string;
|
|
23
|
-
size?: number | "inherit";
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
onClick?: Function;
|
|
15
|
+
children?: import('react').ReactNode;
|
|
16
|
+
to?: string | Function | {
|
|
17
|
+
pathname?: string | undefined;
|
|
18
|
+
search?: string | undefined;
|
|
19
|
+
hash?: string | undefined;
|
|
20
|
+
state?: object | undefined;
|
|
21
|
+
} | undefined;
|
|
22
|
+
target?: string | undefined;
|
|
23
|
+
color?: string | undefined;
|
|
24
|
+
size?: number | "inherit" | undefined;
|
|
25
|
+
disabled?: boolean | undefined;
|
|
26
|
+
onClick?: Function | undefined;
|
|
26
27
|
}>, any, {
|
|
27
28
|
$colorFill: string;
|
|
28
29
|
}, never>;
|
|
@@ -8,8 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
12
|
-
return g
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
13
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
14
|
function step(op) {
|
|
15
15
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const StyledWrapper: import('styled-components').StyledComponent<"span", import('@xstyled/system').Theme, {}, never>;
|
|
2
3
|
export declare const LoadingIconWrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
3
4
|
$addMarginRight: boolean;
|
|
4
5
|
}, never>;
|
|
5
6
|
export declare const StyledIcon: import('styled-components').StyledComponent<import('react').FC<import('../Icon').IconProps>, import('@xstyled/system').Theme, {
|
|
6
|
-
$addMarginRight?: boolean;
|
|
7
|
-
$addMarginLeft?: boolean;
|
|
7
|
+
$addMarginRight?: boolean | undefined;
|
|
8
|
+
$addMarginLeft?: boolean | undefined;
|
|
8
9
|
}, never>;
|
|
9
10
|
export declare const StyledButton: import('styled-components').StyledComponent<"button", import('@xstyled/system').Theme, {
|
|
10
11
|
disabled: boolean;
|
|
11
12
|
children?: any;
|
|
12
13
|
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
13
|
-
iconPadding?: boolean;
|
|
14
|
-
fullWidth?: boolean;
|
|
15
|
-
height?: string;
|
|
14
|
+
iconPadding?: boolean | undefined;
|
|
15
|
+
fullWidth?: boolean | undefined;
|
|
16
|
+
height?: string | undefined;
|
|
16
17
|
}, never>;
|
|
@@ -2,7 +2,7 @@ import { Display } from './types';
|
|
|
2
2
|
|
|
3
3
|
export declare const StyledCard: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
4
4
|
display: Display;
|
|
5
|
-
bg?: string;
|
|
5
|
+
bg?: string | undefined;
|
|
6
6
|
hasOnClick: boolean;
|
|
7
|
-
maxWidth?: string;
|
|
7
|
+
maxWidth?: string | undefined;
|
|
8
8
|
}, never>;
|
|
@@ -3,8 +3,8 @@ import { StoryObj } from '@storybook/react-webpack5';
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: import('react').FC<{
|
|
6
|
-
checked?: boolean;
|
|
7
|
-
color?: string;
|
|
6
|
+
checked?: boolean | undefined;
|
|
7
|
+
color?: string | undefined;
|
|
8
8
|
}>;
|
|
9
9
|
tags: string[];
|
|
10
10
|
argTypes: {};
|
|
@@ -24,7 +24,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
24
24
|
};
|
|
25
25
|
return __assign.apply(this, arguments);
|
|
26
26
|
};
|
|
27
|
-
import {
|
|
27
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
28
28
|
// @ts-nocheck
|
|
29
29
|
import React from 'react';
|
|
30
30
|
import { DateRepeater } from '../components/DateRepeater';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const DatePickerBase: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements, "color">) => import('react').ReactElement<any, string>, import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, "color">;
|
package/ui/Elements/Icon/Icon.js
CHANGED
|
@@ -146,12 +146,12 @@ export var iconDictionary = {
|
|
|
146
146
|
chevronDown: faChevronDown,
|
|
147
147
|
chevronRight: farChevronRight,
|
|
148
148
|
clock: faClock,
|
|
149
|
-
complaint: faFileAlt,
|
|
149
|
+
complaint: faFileAlt,
|
|
150
150
|
computerMouseScrollwheel: faComputerMouseScrollwheel,
|
|
151
151
|
mailLight: faEnvelopeLight,
|
|
152
152
|
eshop: faStore,
|
|
153
|
-
expedition: faShippingFast,
|
|
154
|
-
equals: faEquals,
|
|
153
|
+
expedition: faShippingFast,
|
|
154
|
+
equals: faEquals,
|
|
155
155
|
fluxCapacitor: faFluxCapacitor,
|
|
156
156
|
wineGlassCrack: faWineGlassCrack,
|
|
157
157
|
paperPlane: faPaperPlane,
|
|
@@ -181,10 +181,10 @@ export var iconDictionary = {
|
|
|
181
181
|
boxChecked: faBoxCircleCheck,
|
|
182
182
|
shelves: faShelves,
|
|
183
183
|
reservation: faHandHoldingBox,
|
|
184
|
-
return: [faShareSquare, 'horizontal'],
|
|
185
|
-
search: faSearch,
|
|
184
|
+
return: [faShareSquare, 'horizontal'],
|
|
185
|
+
search: faSearch,
|
|
186
186
|
supplier: farTriangleExclamation,
|
|
187
|
-
transfer: faExchange,
|
|
187
|
+
transfer: faExchange,
|
|
188
188
|
users: faUsersGear,
|
|
189
189
|
warning: farTriangleExclamation,
|
|
190
190
|
close: fasXmark,
|
|
@@ -11,7 +11,7 @@ declare const meta: {
|
|
|
11
11
|
style?: "normal" | "light" | "solid" | undefined;
|
|
12
12
|
fill?: string | undefined;
|
|
13
13
|
stroke?: string | undefined;
|
|
14
|
-
size?:
|
|
14
|
+
size?: string | number | undefined;
|
|
15
15
|
className?: string | undefined;
|
|
16
16
|
fixedWidth?: boolean | undefined;
|
|
17
17
|
spinning?: boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const Label: import('styled-components').StyledComponent<"label", import('@xstyled/system').Theme, {
|
|
2
|
-
fontSize?: number |
|
|
2
|
+
fontSize?: string | number | undefined;
|
|
3
3
|
}, never>;
|
|
4
4
|
export declare const FieldLabel: import('styled-components').StyledComponent<"label", import('@xstyled/system').Theme, {}, never>;
|
|
@@ -3,7 +3,7 @@ import { StoryObj } from '@storybook/react-webpack5';
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: import('styled-components').StyledComponent<"label", import('@xstyled/system').Theme, {
|
|
6
|
-
fontSize?: number |
|
|
6
|
+
fontSize?: string | number | undefined;
|
|
7
7
|
}, never>;
|
|
8
8
|
tags: string[];
|
|
9
9
|
argTypes: {};
|
|
@@ -4,18 +4,18 @@ declare const meta: {
|
|
|
4
4
|
title: string;
|
|
5
5
|
component: import('react').FC<{
|
|
6
6
|
as?: any;
|
|
7
|
-
children?:
|
|
8
|
-
to?: string | {
|
|
9
|
-
pathname?: string;
|
|
10
|
-
search?: string;
|
|
11
|
-
hash?: string;
|
|
12
|
-
state?: object;
|
|
13
|
-
} |
|
|
14
|
-
target?: string;
|
|
15
|
-
color?: string;
|
|
16
|
-
size?: number | "inherit";
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
onClick?: Function;
|
|
7
|
+
children?: import('react').ReactNode;
|
|
8
|
+
to?: string | Function | {
|
|
9
|
+
pathname?: string | undefined;
|
|
10
|
+
search?: string | undefined;
|
|
11
|
+
hash?: string | undefined;
|
|
12
|
+
state?: object | undefined;
|
|
13
|
+
} | undefined;
|
|
14
|
+
target?: string | undefined;
|
|
15
|
+
color?: string | undefined;
|
|
16
|
+
size?: number | "inherit" | undefined;
|
|
17
|
+
disabled?: boolean | undefined;
|
|
18
|
+
onClick?: Function | undefined;
|
|
19
19
|
}>;
|
|
20
20
|
tags: string[];
|
|
21
21
|
argTypes: {};
|
package/ui/Elements/Logo/Logo.js
CHANGED
|
@@ -41,8 +41,8 @@ import warehouseManager3 from './assets/warehouse/manager3.svg';
|
|
|
41
41
|
import warehouseManager from './assets/warehouse/manager.svg';
|
|
42
42
|
import styled from '@xstyled/styled-components';
|
|
43
43
|
var defaultSizes = {
|
|
44
|
-
small: '30px',
|
|
45
|
-
medium: '46px',
|
|
44
|
+
small: '30px',
|
|
45
|
+
medium: '46px',
|
|
46
46
|
big: '61px' // cca 200px width on full logo
|
|
47
47
|
};
|
|
48
48
|
var variantMap = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Wrapper: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements, "color">) => import('react').ReactElement<any, string>, import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, "color">;
|
|
2
3
|
export declare const Btn: import('styled-components').StyledComponent<"button", import('@xstyled/system').Theme, {
|
|
3
4
|
disabled: boolean;
|
|
4
5
|
}, never>;
|
|
@@ -3,11 +3,11 @@ import { StoryObj } from '@storybook/react-webpack5';
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: import('react').FC<{
|
|
6
|
-
progress?: number;
|
|
7
|
-
status?: "loading" | "finished" |
|
|
8
|
-
errorMessage?: string;
|
|
9
|
-
noText?: boolean;
|
|
10
|
-
variant?: "normal" | "thin";
|
|
6
|
+
progress?: number | undefined;
|
|
7
|
+
status?: "error" | "loading" | "finished" | undefined;
|
|
8
|
+
errorMessage?: string | undefined;
|
|
9
|
+
noText?: boolean | undefined;
|
|
10
|
+
variant?: "normal" | "thin" | undefined;
|
|
11
11
|
}>;
|
|
12
12
|
tags: string[];
|
|
13
13
|
argTypes: {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const StyledProgressBar: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
2
2
|
status: string | null | undefined;
|
|
3
|
-
variant?: "normal" | "thin";
|
|
3
|
+
variant?: "normal" | "thin" | undefined;
|
|
4
4
|
}, never>;
|
|
5
5
|
export declare const Progress: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
6
6
|
progress: number;
|
|
@@ -19,8 +19,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
23
|
-
return g
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -17,7 +17,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
17
17
|
import { components as selectComponents } from 'react-select';
|
|
18
18
|
import styled, { th } from '@xstyled/styled-components';
|
|
19
19
|
// MultiValue container with count of selected options
|
|
20
|
-
var StyledNumber = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background: ", ";\n height: 25px;\n justify-content: center;\n align-items: center;\n display: flex;\n border-radius: md;\n padding: 2px 6px;\n"], ["\n background: ", ";\n height: 25px;\n justify-content: center;\n align-items: center;\n display: flex;\n border-radius: md;\n padding: 2px 6px;\n"])), th.color('lightGray7'));
|
|
20
|
+
var StyledNumber = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n height: 25px;\n justify-content: center;\n align-items: center;\n display: flex;\n border-radius: md;\n padding: 2px 6px;\n"], ["\n background-color: ", ";\n height: 25px;\n justify-content: center;\n align-items: center;\n display: flex;\n border-radius: md;\n padding: 2px 6px;\n"])), th.color('lightGray7'));
|
|
21
21
|
var CountMultiValue = function (props) {
|
|
22
22
|
var _a, _b;
|
|
23
23
|
var shortValues = props.selectProps.shortValues;
|
|
@@ -26,7 +26,7 @@ var CountMultiValue = function (props) {
|
|
|
26
26
|
if (!shortValues) {
|
|
27
27
|
return _jsx(selectComponents.MultiValue, __assign({}, props, { children: props.children }));
|
|
28
28
|
}
|
|
29
|
-
if (!inputVal && ((_a = props.data) === null || _a === void 0 ? void 0 : _a.value)
|
|
29
|
+
if (!inputVal && ((_a = props.data) === null || _a === void 0 ? void 0 : _a.value) === ((_b = selectVal[0]) === null || _b === void 0 ? void 0 : _b.value)) {
|
|
30
30
|
return (_jsxs(_Fragment, { children: [_jsx(selectComponents.MultiValue, __assign({}, props, { children: props.children })), selectVal.length > 1 ? _jsxs(StyledNumber, { children: ["+", selectVal.length - 1] }) : null] }));
|
|
31
31
|
}
|
|
32
32
|
else {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { StylesConfig, SelectComponentsConfig } from 'react-select';
|
|
2
2
|
import { SelectProps } from '../types';
|
|
3
3
|
|
|
4
|
-
export declare const useStylesAndComponents: (style?: SelectProps[
|
|
4
|
+
export declare const useStylesAndComponents: (style?: SelectProps['style'], optionVariant?: SelectProps['optionVariant'], multiLabelVariant?: SelectProps['multiLabelVariant'], containerVariant?: SelectProps['containerVariant'], useSimplifiedOptions?: SelectProps['useSimplifiedOptions'], showSelectAllButton?: SelectProps['showSelectAllButton'], showResetGridButton?: SelectProps['showResetGridButton']) => [SelectComponentsConfig<unknown, boolean, any>, any, StylesConfig];
|
|
@@ -2,5 +2,5 @@ import { SelectProps, StylesConfig, CustomTheme } from '../types';
|
|
|
2
2
|
|
|
3
3
|
export declare const CustomStyles: StylesConfig<State>;
|
|
4
4
|
type ThemeGetter = (theme: any) => CustomTheme;
|
|
5
|
-
export declare const getCustomTheme: (theme: any, optionVariant: Required<SelectProps>[
|
|
5
|
+
export declare const getCustomTheme: (theme: any, optionVariant: Required<SelectProps>['optionVariant'], useFilterSubvariant: boolean) => ThemeGetter;
|
|
6
6
|
export {};
|
|
@@ -18,9 +18,9 @@ export var CustomStyles = {
|
|
|
18
18
|
var colors = theme.colors;
|
|
19
19
|
return __assign(__assign({}, styles), { borderColor: selectProps.isInvalid ? colors.primary : isFocused ? colors.inputTextColor : colors.inputBorderColor, backgroundColor: isDisabled ? colors.menuHoverBackgroundColor : colors.whiteBackgroundColor, boxShadow: theme.focusBoxShadow, borderRadius: theme.borderRadius, '& input': {
|
|
20
20
|
fontWeight: theme.textWeightNormal,
|
|
21
|
-
fontFamily: theme.font
|
|
21
|
+
fontFamily: theme.font
|
|
22
22
|
}, '&:hover': __assign(__assign({}, ((_b = styles['&:hover']) !== null && _b !== void 0 ? _b : {})), { borderColor: colors.inputBorderHoverColor }), fontSize: '14px', minWidth: 'min-content', '.inputIcon': {
|
|
23
|
-
color: isDisabled ? colors.defaultControlColor :
|
|
23
|
+
color: isDisabled ? colors.defaultControlColor : selectProps.value ? colors.inputTextColor : colors.defaultControlColor
|
|
24
24
|
} });
|
|
25
25
|
},
|
|
26
26
|
valueContainer: function (styles, _a) {
|
|
@@ -37,10 +37,10 @@ export var CustomStyles = {
|
|
|
37
37
|
},
|
|
38
38
|
multiValue: function (styles, state) {
|
|
39
39
|
var theme = state.theme;
|
|
40
|
-
return __assign(__assign({}, styles), { color: theme.colors.inputTextColor, fontWeight: theme.textWeightNormal, backgroundColor:
|
|
41
|
-
color: theme.colors.inputTextColor
|
|
40
|
+
return __assign(__assign({}, styles), { color: theme.colors.inputTextColor, fontWeight: theme.textWeightNormal, backgroundColor: theme.colors.lightGray7, borderRadius: '4px', '& svg': {
|
|
41
|
+
color: theme.colors.inputTextColor
|
|
42
42
|
}, ' > div': {
|
|
43
|
-
fontSize: '12px'
|
|
43
|
+
fontSize: '12px'
|
|
44
44
|
} });
|
|
45
45
|
},
|
|
46
46
|
multiValueLabel: function (styles) { return (__assign(__assign({}, styles), { fontSize: 'unset', padding: '5px' })); },
|
|
@@ -87,8 +87,8 @@ export var CustomStyles = {
|
|
|
87
87
|
? theme.colors.hoverToActiveOptionBackground
|
|
88
88
|
: !isDisabled
|
|
89
89
|
? theme.colors.menuHoverBackgroundColor
|
|
90
|
-
: undefined
|
|
91
|
-
}
|
|
90
|
+
: undefined
|
|
91
|
+
}
|
|
92
92
|
};
|
|
93
93
|
},
|
|
94
94
|
menu: function (styles, state) {
|
|
@@ -103,21 +103,21 @@ export var CustomStyles = {
|
|
|
103
103
|
height: '47px',
|
|
104
104
|
backgroundColor: theme.colors.defaultControlColor,
|
|
105
105
|
'&:hover': {
|
|
106
|
-
backgroundColor: theme.colors.dropdownIndicatorColor
|
|
107
|
-
}
|
|
106
|
+
backgroundColor: theme.colors.dropdownIndicatorColor
|
|
107
|
+
}
|
|
108
108
|
}, '::-webkit-scrollbar': {
|
|
109
|
-
width: '10px'
|
|
109
|
+
width: '10px'
|
|
110
110
|
}, '::-webkit-scrollbar-track': {
|
|
111
111
|
backgroundColor: theme.colors.menuHoverBackgroundColor,
|
|
112
|
-
borderRadius: '6px'
|
|
112
|
+
borderRadius: '6px'
|
|
113
113
|
} });
|
|
114
114
|
},
|
|
115
115
|
dropdownIndicator: function (styles, state) {
|
|
116
116
|
var theme = state.theme, isDisabled = state.isDisabled;
|
|
117
117
|
return __assign(__assign({}, styles), { justifyContent: 'center', alignItems: 'center', '& svg': {
|
|
118
|
-
stroke: isDisabled ? theme.colors.dropdownIndicatorColor : theme.colors.inputTextColor
|
|
118
|
+
stroke: isDisabled ? theme.colors.dropdownIndicatorColor : theme.colors.inputTextColor
|
|
119
119
|
}, padding: '0px 5px 0px 0px', '@media (min-width: 1024px)': {
|
|
120
|
-
padding: '0px 10px 0px 1px'
|
|
120
|
+
padding: '0px 10px 0px 1px'
|
|
121
121
|
} });
|
|
122
122
|
},
|
|
123
123
|
clearIndicator: function (styles, state) {
|
|
@@ -125,7 +125,7 @@ export var CustomStyles = {
|
|
|
125
125
|
return __assign(__assign({}, styles), { justifyContent: 'center', alignItems: 'center', padding: theme.narrowIndicators ? '0px 4px 0px 0px' : '0px 4px', color: theme.colors.dropdownIndicatorColor });
|
|
126
126
|
},
|
|
127
127
|
indicatorSeparator: function () { return ({
|
|
128
|
-
display: 'none'
|
|
128
|
+
display: 'none'
|
|
129
129
|
}); }
|
|
130
130
|
};
|
|
131
131
|
export var getCustomTheme = function (theme, optionVariant, useFilterSubvariant) {
|
|
@@ -144,7 +144,7 @@ export var getCustomTheme = function (theme, optionVariant, useFilterSubvariant)
|
|
|
144
144
|
dropdownIndicatorColor: th.color('gray1')({ theme: theme }),
|
|
145
145
|
inputBorderHoverColor: th.color('gray5')({ theme: theme }),
|
|
146
146
|
activeOptionBackground: th.color('red20')({ theme: theme }),
|
|
147
|
-
hoverToActiveOptionBackground: th.color('red30')({ theme: theme })
|
|
147
|
+
hoverToActiveOptionBackground: th.color('red30')({ theme: theme })
|
|
148
148
|
};
|
|
149
149
|
return function (reactSelectTheme) {
|
|
150
150
|
return __assign(__assign({}, reactSelectTheme), { colors: customColors, focusBoxShadow: null, height: '38px', flexWrap: useFilterSubvariant ? 'nowrap' : 'wrap', textWeightNormal: th.fontWeight('normal')({ theme: theme }), optionVariant: optionVariant, borderRadius: th.radius('lg')({ theme: theme }), font: th.font('primary')({ theme: theme }), narrowIndicators: !!useFilterSubvariant });
|
|
@@ -19,8 +19,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
23
|
-
return g
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|