@mailstep/design-system 0.6.75-beta.0 → 0.6.75
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/SideMenu/styles.d.ts +1 -1
- package/ui/Elements/Button/styles.d.ts +1 -1
- package/ui/Elements/DatePicker/DatePicker.js +9 -9
- package/ui/Elements/DatePicker/Datetime/components/Timepicker.js +1 -1
- package/ui/Elements/Icon/Icon.d.ts +1 -1
- package/ui/Elements/Icon/Icon.js +62 -72
- package/ui/Elements/Icon/stories/Icon.stories.d.ts +1 -1
- package/ui/Elements/Pagination/styled.d.ts +2 -2
- package/ui/Elements/SingleSelect/SingleSelect.d.ts +1 -1
- package/ui/Elements/SingleSelect/SingleSelect.js +9 -9
- package/ui/Forms/Checkbox/styles.d.ts +1 -1
- package/ui/index.es.js +18224 -17802
- package/ui/index.umd.js +629 -629
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ export declare const ItemLabel: import("styled-components").StyledComponent<"div
|
|
|
9
9
|
$isCompact?: boolean | undefined;
|
|
10
10
|
isSubitem?: boolean | undefined;
|
|
11
11
|
}, never>;
|
|
12
|
-
export declare const ItemDropdownArrow: import("styled-components").StyledComponent<({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning }: import("../..").IconProps) => JSX.Element, import("@xstyled/system").Theme, {
|
|
12
|
+
export declare const ItemDropdownArrow: import("styled-components").StyledComponent<({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning, }: import("../..").IconProps) => JSX.Element, import("@xstyled/system").Theme, {
|
|
13
13
|
$lightMode?: boolean | undefined;
|
|
14
14
|
}, never>;
|
|
15
15
|
export declare const TooltipItemLabel: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {}, never>;
|
|
@@ -3,7 +3,7 @@ export declare const StyledWrapper: import("styled-components").StyledComponent<
|
|
|
3
3
|
export declare const LoadingIconWrapper: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {
|
|
4
4
|
$addMarginRight: boolean;
|
|
5
5
|
}, never>;
|
|
6
|
-
export declare const StyledIcon: import("styled-components").StyledComponent<({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning }: import("../Icon").IconProps) => JSX.Element, import("@xstyled/system").Theme, {
|
|
6
|
+
export declare const StyledIcon: import("styled-components").StyledComponent<({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning, }: import("../Icon").IconProps) => JSX.Element, import("@xstyled/system").Theme, {
|
|
7
7
|
$addMarginRight?: boolean | undefined;
|
|
8
8
|
$addMarginLeft?: boolean | undefined;
|
|
9
9
|
}, never>;
|
|
@@ -21,20 +21,20 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import React, { useCallback, useContext } from 'react';
|
|
24
25
|
import moment from 'moment';
|
|
26
|
+
import Input from '../../Forms/Input';
|
|
27
|
+
import { LanguageContext } from '../../ThemeProvider/ThemeProvider';
|
|
28
|
+
import SpaceAroundWrap from '../SpaceAround';
|
|
29
|
+
import DatetimePicker from './Datetime/DateTime';
|
|
30
|
+
import { x } from '@xstyled/styled-components';
|
|
25
31
|
// @TODO each language has 62kb gziped, please replace moment with different lib
|
|
26
32
|
import 'moment/dist/locale/cs';
|
|
33
|
+
import 'moment/dist/locale/el';
|
|
34
|
+
import 'moment/dist/locale/it';
|
|
27
35
|
import 'moment/dist/locale/ru';
|
|
28
36
|
import 'moment/dist/locale/sk';
|
|
29
|
-
import 'moment/dist/locale/it';
|
|
30
|
-
import 'moment/dist/locale/el';
|
|
31
|
-
import React, { useCallback, useContext } from 'react';
|
|
32
|
-
import DatetimePicker from './Datetime/DateTime';
|
|
33
|
-
import { x } from '@xstyled/styled-components';
|
|
34
37
|
import { DatePickerBase } from './styles';
|
|
35
|
-
import SpaceAroundWrap from '../SpaceAround';
|
|
36
|
-
import Input from '../../Forms/Input';
|
|
37
|
-
import { LanguageContext } from '../../ThemeProvider/ThemeProvider';
|
|
38
38
|
var defaultDateFormat = 'DD.MM.YYYY';
|
|
39
39
|
var DatePicker = function (_a) {
|
|
40
40
|
var name = _a.name, value = _a.value, initialViewDate = _a.initialViewDate, error = _a.error, label = _a.label, disabled = _a.disabled, isValidDate = _a.isValidDate, onChange = _a.onChange, _b = _a.dateFormat, dateFormat = _b === void 0 ? defaultDateFormat : _b, _c = _a.timeFormat, timeFormat = _c === void 0 ? false : _c, open = _a.open, _d = _a.secondValue, secondValue = _d === void 0 ? null : _d, input = _a.input, _e = _a.icon, icon = _e === void 0 ? true : _e, _f = _a.showInputLabel, showInputLabel = _f === void 0 ? false : _f, _g = _a.showCalendarLabel, showCalendarLabel = _g === void 0 ? true : _g, _h = _a.spaceAround, spaceAround = _h === void 0 ? false : _h, className = _a.className, onClear = _a.onClear, onInputChange = _a.onInputChange, passProps = __rest(_a, ["name", "value", "initialViewDate", "error", "label", "disabled", "isValidDate", "onChange", "dateFormat", "timeFormat", "open", "secondValue", "input", "icon", "showInputLabel", "showCalendarLabel", "spaceAround", "className", "onClear", "onInputChange"]);
|
|
@@ -43,7 +43,7 @@ var DatePicker = function (_a) {
|
|
|
43
43
|
var stringValue = isValid ? moment(value, format).format(format) : value;
|
|
44
44
|
var locale = useContext(LanguageContext);
|
|
45
45
|
var handleRenderInput = useCallback(function (_, openCalendar) {
|
|
46
|
-
return (_jsx(Input, { type: "text", icon: icon ? 'calendar' : undefined, name: name, error: error, disabled: disabled, isInvalid: !!error, onChange: onInputChange, label: showInputLabel ? label : undefined, value: stringValue, onFocus: openCalendar, iconOnClick: openCalendar, onClear: onClear }));
|
|
46
|
+
return (_jsx(Input, { type: "text", icon: icon ? 'calendar' : undefined, name: name, error: error, disabled: disabled, isInvalid: !!error, onChange: onInputChange, label: showInputLabel ? label : undefined, value: stringValue, onFocus: openCalendar, iconOnClick: openCalendar, onClear: onClear, autoComplete: "off" }));
|
|
47
47
|
}, [name, stringValue, error, label, showInputLabel, isValid, disabled]);
|
|
48
48
|
var handleRenderView = useCallback(function (_, renderCalendar) {
|
|
49
49
|
if (label && !showInputLabel) {
|
|
@@ -52,6 +52,6 @@ export var Timepicker = function (_a) {
|
|
|
52
52
|
useEffect(function () {
|
|
53
53
|
!!value && setTime('minutes', minutes);
|
|
54
54
|
}, [minutes]);
|
|
55
|
-
return (_jsx("td", { colSpan: 7, children: _jsx(x.div, { display: "flex", flexDirection: "column", alignItems: "flex-start", pt: "1rem", w: "fit-content", children: _jsxs(x.div, { display: "flex", alignItems: "center", children: [_jsxs(x.div, { display: "flex", flexDirection: "column", children: [_jsx(Btn, { disabled: disabled, onClick: increaseHour, children: "\u2039" }), _jsx(Btn, { disabled: disabled, onClick: decreaseHour, children: "\u203A" })] }), _jsxs(TimeWrapper, { children: [_jsx(Hours, { value: hours < 10 ? "0".concat(hours) : hours, disabled: disabled, onChange: onHoursChange }), _jsx(x.div, { mx: "7px", color: "lightGray4", children: "|" }), _jsx(Minutes, { value: minutes < 10 ? "0".concat(minutes) : minutes, disabled: disabled, onChange: onMinutesChange })] }), _jsxs(x.div, { display: "flex", flexDirection: "column", children: [_jsx(Btn, { disabled: disabled, onClick: increaseMinutes, children: "\u2039" }), _jsx(Btn, { disabled: disabled, onClick: decreaseMinutes, children: "\u203A" })] })] }) }) }));
|
|
55
|
+
return (_jsx("td", { colSpan: 7, children: _jsx(x.div, { display: "flex", flexDirection: "column", alignItems: "flex-start", pt: "1rem", w: "fit-content", children: _jsxs(x.div, { display: "flex", alignItems: "center", children: [_jsxs(x.div, { display: "flex", flexDirection: "column", children: [_jsx(Btn, { disabled: disabled, onClick: increaseHour, type: "button", children: "\u2039" }), _jsx(Btn, { disabled: disabled, onClick: decreaseHour, type: "button", children: "\u203A" })] }), _jsxs(TimeWrapper, { children: [_jsx(Hours, { value: hours < 10 ? "0".concat(hours) : hours, disabled: disabled, onChange: onHoursChange }), _jsx(x.div, { mx: "7px", color: "lightGray4", children: "|" }), _jsx(Minutes, { value: minutes < 10 ? "0".concat(minutes) : minutes, disabled: disabled, onChange: onMinutesChange })] }), _jsxs(x.div, { display: "flex", flexDirection: "column", children: [_jsx(Btn, { disabled: disabled, onClick: increaseMinutes, type: "button", children: "\u2039" }), _jsx(Btn, { disabled: disabled, onClick: decreaseMinutes, type: "button", children: "\u203A" })] })] }) }) }));
|
|
56
56
|
};
|
|
57
57
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -4,5 +4,5 @@ import { IconProps } from './types';
|
|
|
4
4
|
export declare const iconDictionary: {
|
|
5
5
|
[name: string]: IconDefinition | [IconDefinition, FlipProp];
|
|
6
6
|
};
|
|
7
|
-
declare const Icon: ({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning }: IconProps) => JSX.Element;
|
|
7
|
+
declare const Icon: ({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning, }: IconProps) => JSX.Element;
|
|
8
8
|
export default Icon;
|
package/ui/Elements/Icon/Icon.js
CHANGED
|
@@ -4,114 +4,109 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
};
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
import React from 'react';
|
|
7
|
+
import styled, { useTheme } from '@xstyled/styled-components';
|
|
8
|
+
import { th } from '@xstyled/styled-components';
|
|
9
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
7
10
|
import { library } from '@fortawesome/fontawesome-svg-core';
|
|
8
|
-
import { faFacebookF } from '@fortawesome/free-brands-svg-icons/faFacebookF';
|
|
9
|
-
import { faInstagram } from '@fortawesome/free-brands-svg-icons/faInstagram';
|
|
10
|
-
import { faLinkedinIn } from '@fortawesome/free-brands-svg-icons/faLinkedinIn';
|
|
11
|
-
import { faTwitter } from '@fortawesome/free-brands-svg-icons/faTwitter';
|
|
12
|
-
import { faYoutube } from '@fortawesome/free-brands-svg-icons/faYoutube';
|
|
13
|
-
import { faTriangleExclamation as fadTriangleExclamation } from '@fortawesome/pro-duotone-svg-icons/faTriangleExclamation';
|
|
14
11
|
import { faCoffee as falCoffee } from '@fortawesome/pro-light-svg-icons/faCoffee';
|
|
15
|
-
import { faHandHoldingBox } from '@fortawesome/pro-light-svg-icons/faHandHoldingBox';
|
|
16
12
|
import { faPaperclip } from '@fortawesome/pro-light-svg-icons/faPaperclip';
|
|
17
13
|
import { faStopwatch } from '@fortawesome/pro-light-svg-icons/faStopwatch';
|
|
14
|
+
import { faHandHoldingBox } from '@fortawesome/pro-light-svg-icons/faHandHoldingBox';
|
|
18
15
|
import { faArrowRightToBracket } from '@fortawesome/pro-regular-svg-icons/faArrowRightToBracket';
|
|
19
16
|
import { faBell } from '@fortawesome/pro-regular-svg-icons/faBell';
|
|
20
|
-
import { faBox as faBoxRegular } from '@fortawesome/pro-regular-svg-icons/faBox';
|
|
21
|
-
import { faCalendar } from '@fortawesome/pro-regular-svg-icons/faCalendar';
|
|
22
|
-
import { faCalendarPlus } from '@fortawesome/pro-regular-svg-icons/faCalendarPlus';
|
|
23
|
-
import { faChevronDown } from '@fortawesome/pro-regular-svg-icons/faChevronDown';
|
|
24
|
-
import { faChevronRight as farChevronRight } from '@fortawesome/pro-regular-svg-icons/faChevronRight';
|
|
25
|
-
import { faChevronUp } from '@fortawesome/pro-regular-svg-icons/faChevronUp';
|
|
26
|
-
import { faCircleArrowDown } from '@fortawesome/pro-regular-svg-icons/faCircleArrowDown';
|
|
27
|
-
import { faCircleArrowRight } from '@fortawesome/pro-regular-svg-icons/faCircleArrowRight';
|
|
28
|
-
import { faCircleQuestion } from '@fortawesome/pro-regular-svg-icons/faCircleQuestion';
|
|
29
|
-
import { faClock } from '@fortawesome/pro-regular-svg-icons/faClock';
|
|
30
17
|
import { faCoffee as farCoffee } from '@fortawesome/pro-regular-svg-icons/faCoffee';
|
|
31
18
|
import { faCommentDots } from '@fortawesome/pro-regular-svg-icons/faCommentDots';
|
|
32
|
-
import { faComments } from '@fortawesome/pro-regular-svg-icons/faComments';
|
|
33
19
|
import { faCopy } from '@fortawesome/pro-regular-svg-icons/faCopy';
|
|
20
|
+
import { faClock } from '@fortawesome/pro-regular-svg-icons/faClock';
|
|
21
|
+
import { faChevronUp } from '@fortawesome/pro-regular-svg-icons/faChevronUp';
|
|
22
|
+
import { faChevronDown } from '@fortawesome/pro-regular-svg-icons/faChevronDown';
|
|
23
|
+
import { faChevronRight as farChevronRight } from '@fortawesome/pro-regular-svg-icons/faChevronRight';
|
|
34
24
|
import { faEllipsisVertical } from '@fortawesome/pro-regular-svg-icons/faEllipsisVertical';
|
|
35
25
|
import { faEnvelope as faEnvelopeLight } from '@fortawesome/pro-regular-svg-icons/faEnvelope';
|
|
36
26
|
import { faEyeSlash } from '@fortawesome/pro-regular-svg-icons/faEyeSlash';
|
|
37
|
-
import { faFaceMeh } from '@fortawesome/pro-regular-svg-icons/faFaceMeh';
|
|
38
27
|
import { faFile } from '@fortawesome/pro-regular-svg-icons/faFile';
|
|
39
28
|
import { faFileAlt } from '@fortawesome/pro-regular-svg-icons/faFileAlt';
|
|
40
|
-
import { faFileLines } from '@fortawesome/pro-regular-svg-icons/faFileLines';
|
|
41
|
-
import { faFileSearch } from '@fortawesome/pro-regular-svg-icons/faFileSearch';
|
|
42
|
-
import { faFilter } from '@fortawesome/pro-regular-svg-icons/faFilter';
|
|
43
29
|
import { faGear } from '@fortawesome/pro-regular-svg-icons/faGear';
|
|
44
|
-
import { faHand } from '@fortawesome/pro-regular-svg-icons/faHand';
|
|
45
|
-
import { faLink } from '@fortawesome/pro-regular-svg-icons/faLink';
|
|
46
|
-
import { faLock } from '@fortawesome/pro-regular-svg-icons/faLock';
|
|
47
|
-
import { faPenToSquare } from '@fortawesome/pro-regular-svg-icons/faPenToSquare';
|
|
48
30
|
import { faShareSquare } from '@fortawesome/pro-regular-svg-icons/faShareSquare';
|
|
31
|
+
import { faTriangleExclamation as farTriangleExclamation } from '@fortawesome/pro-regular-svg-icons/faTriangleExclamation';
|
|
32
|
+
import { faCircleArrowDown } from '@fortawesome/pro-regular-svg-icons/faCircleArrowDown';
|
|
33
|
+
import { faCircleArrowRight } from '@fortawesome/pro-regular-svg-icons/faCircleArrowRight';
|
|
34
|
+
import { faPenToSquare } from '@fortawesome/pro-regular-svg-icons/faPenToSquare';
|
|
35
|
+
import { faLock } from '@fortawesome/pro-regular-svg-icons/faLock';
|
|
36
|
+
import { faCalendar } from '@fortawesome/pro-regular-svg-icons/faCalendar';
|
|
37
|
+
import { faCalendarPlus } from '@fortawesome/pro-regular-svg-icons/faCalendarPlus';
|
|
49
38
|
import { faSquareMinus } from '@fortawesome/pro-regular-svg-icons/faSquareMinus';
|
|
39
|
+
import { faComments } from '@fortawesome/pro-regular-svg-icons/faComments';
|
|
40
|
+
import { faFaceMeh } from '@fortawesome/pro-regular-svg-icons/faFaceMeh';
|
|
41
|
+
import { faHand } from '@fortawesome/pro-regular-svg-icons/faHand';
|
|
42
|
+
import { faLink } from '@fortawesome/pro-regular-svg-icons/faLink';
|
|
43
|
+
import { faFileSearch } from '@fortawesome/pro-regular-svg-icons/faFileSearch';
|
|
44
|
+
import { faFileLines } from '@fortawesome/pro-regular-svg-icons/faFileLines';
|
|
50
45
|
import { faTrashCan } from '@fortawesome/pro-regular-svg-icons/faTrashCan';
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import { faAngleRight } from '@fortawesome/pro-solid-svg-icons/faAngleRight';
|
|
46
|
+
import { faCircleQuestion } from '@fortawesome/pro-regular-svg-icons/faCircleQuestion';
|
|
47
|
+
import { faFilter } from '@fortawesome/pro-regular-svg-icons/faFilter';
|
|
54
48
|
import { faAnglesRight } from '@fortawesome/pro-solid-svg-icons/faAnglesRight';
|
|
55
|
-
import {
|
|
49
|
+
import { faAngleRight } from '@fortawesome/pro-solid-svg-icons/faAngleRight';
|
|
50
|
+
import { faAngleLeft } from '@fortawesome/pro-solid-svg-icons/faAngleLeft';
|
|
56
51
|
import { faArrowLeft } from '@fortawesome/pro-solid-svg-icons/faArrowLeft';
|
|
57
|
-
import { faArrowsRotate } from '@fortawesome/pro-solid-svg-icons/faArrowsRotate';
|
|
58
|
-
import { faBadgeCheck } from '@fortawesome/pro-solid-svg-icons/faBadgeCheck';
|
|
59
52
|
import { faBan } from '@fortawesome/pro-solid-svg-icons/faBan';
|
|
60
|
-
import { faBox } from '@fortawesome/pro-solid-svg-icons/faBox';
|
|
61
|
-
import { faBoxArchive } from '@fortawesome/pro-solid-svg-icons/faBoxArchive';
|
|
62
|
-
import { faBoxCircleCheck } from '@fortawesome/pro-solid-svg-icons/faBoxCircleCheck';
|
|
63
53
|
import { faBoxOpen } from '@fortawesome/pro-solid-svg-icons/faBoxOpen';
|
|
64
|
-
import { faBoxesStacked } from '@fortawesome/pro-solid-svg-icons/faBoxesStacked';
|
|
65
|
-
import { faUpDownLeftRight } from '@fortawesome/pro-solid-svg-icons/faUpDownLeftRight';
|
|
66
|
-
import { faCamera } from '@fortawesome/pro-solid-svg-icons/faCamera';
|
|
67
54
|
import { faCartArrowDown } from '@fortawesome/pro-solid-svg-icons/faCartArrowDown';
|
|
68
|
-
import { faChartLine } from '@fortawesome/pro-solid-svg-icons/faChartLine';
|
|
69
|
-
import { faCheck } from '@fortawesome/pro-solid-svg-icons/faCheck';
|
|
70
|
-
import { faChevronDown as fasChevronDown } from '@fortawesome/pro-solid-svg-icons/faChevronDown';
|
|
71
|
-
import { faChevronLeft } from '@fortawesome/pro-solid-svg-icons/faChevronLeft';
|
|
72
|
-
import { faChevronRight as fasChevronRight } from '@fortawesome/pro-solid-svg-icons/faChevronRight';
|
|
73
|
-
import { faChevronUp as fasChevronUp } from '@fortawesome/pro-solid-svg-icons/faChevronUp';
|
|
74
|
-
import { faCircleCheck } from '@fortawesome/pro-solid-svg-icons/faCircleCheck';
|
|
75
|
-
import { faCircleInfo } from '@fortawesome/pro-solid-svg-icons/faCircleInfo';
|
|
76
|
-
import { faCircleXmark } from '@fortawesome/pro-solid-svg-icons/faCircleXmark';
|
|
77
55
|
import { faCoffee as fasCoffee } from '@fortawesome/pro-solid-svg-icons/faCoffee';
|
|
78
|
-
import { faComputerMouseScrollwheel } from '@fortawesome/pro-solid-svg-icons/faComputerMouseScrollwheel';
|
|
79
|
-
import { faCrop } from '@fortawesome/pro-solid-svg-icons/faCrop';
|
|
80
|
-
import { faCube } from '@fortawesome/pro-solid-svg-icons/faCube';
|
|
81
|
-
import { faEquals } from '@fortawesome/pro-solid-svg-icons/faEquals';
|
|
82
|
-
import { faExchange } from '@fortawesome/pro-solid-svg-icons/faExchange';
|
|
83
56
|
import { faFlag } from '@fortawesome/pro-solid-svg-icons/faFlag';
|
|
84
|
-
import {
|
|
57
|
+
import { faExchange } from '@fortawesome/pro-solid-svg-icons/faExchange';
|
|
58
|
+
import { faEquals } from '@fortawesome/pro-solid-svg-icons/faEquals';
|
|
85
59
|
import { faGreaterThanEqual } from '@fortawesome/pro-solid-svg-icons/faGreaterThanEqual';
|
|
86
60
|
import { faHome } from '@fortawesome/pro-solid-svg-icons/faHome';
|
|
87
61
|
import { faHouseUser } from '@fortawesome/pro-solid-svg-icons/faHouseUser';
|
|
88
62
|
import { faLaptopCode } from '@fortawesome/pro-solid-svg-icons/faLaptopCode';
|
|
89
|
-
import { faLessThanEqual } from '@fortawesome/pro-solid-svg-icons/faLessThanEqual';
|
|
90
|
-
import { faLocationCrosshairs } from '@fortawesome/pro-solid-svg-icons/faLocationCrosshairs';
|
|
91
63
|
import { faLuggageCart } from '@fortawesome/pro-solid-svg-icons/faLuggageCart';
|
|
92
|
-
import {
|
|
64
|
+
import { faLessThanEqual } from '@fortawesome/pro-solid-svg-icons/faLessThanEqual';
|
|
93
65
|
import { faNotEqual } from '@fortawesome/pro-solid-svg-icons/faNotEqual';
|
|
94
|
-
import { faNoteSticky } from '@fortawesome/pro-solid-svg-icons/faNoteSticky';
|
|
95
66
|
import { faPen } from '@fortawesome/pro-solid-svg-icons/faPen';
|
|
96
67
|
import { faPeopleCarry as fasPeopleCarry } from '@fortawesome/pro-solid-svg-icons/faPeopleCarry';
|
|
97
|
-
import { faPlus } from '@fortawesome/pro-solid-svg-icons/faPlus';
|
|
98
68
|
import { faSearch } from '@fortawesome/pro-solid-svg-icons/faSearch';
|
|
99
|
-
import { faShelves } from '@fortawesome/pro-solid-svg-icons/faShelves';
|
|
100
69
|
import { faShippingFast } from '@fortawesome/pro-solid-svg-icons/faShippingFast';
|
|
101
|
-
import { faSquareCheck } from '@fortawesome/pro-solid-svg-icons/faSquareCheck';
|
|
102
70
|
import { faStore } from '@fortawesome/pro-solid-svg-icons/faStore';
|
|
103
71
|
import { faTags } from '@fortawesome/pro-solid-svg-icons/faTags';
|
|
104
|
-
import { faTriangleExclamation } from '@fortawesome/pro-solid-svg-icons/faTriangleExclamation';
|
|
105
72
|
import { faTruck } from '@fortawesome/pro-solid-svg-icons/faTruck';
|
|
106
|
-
import { faTruckRampBox } from '@fortawesome/pro-solid-svg-icons/faTruckRampBox';
|
|
107
73
|
import { faUser } from '@fortawesome/pro-solid-svg-icons/faUser';
|
|
108
74
|
import { faUsersGear } from '@fortawesome/pro-solid-svg-icons/faUsersGear';
|
|
109
75
|
import { faWatch } from '@fortawesome/pro-solid-svg-icons/faWatch';
|
|
110
|
-
import {
|
|
76
|
+
import { faChartLine } from '@fortawesome/pro-solid-svg-icons/faChartLine';
|
|
77
|
+
import { faCheck } from '@fortawesome/pro-solid-svg-icons/faCheck';
|
|
78
|
+
import { faSquareCheck } from '@fortawesome/pro-solid-svg-icons/faSquareCheck';
|
|
111
79
|
import { faXmark as fasXmark } from '@fortawesome/pro-solid-svg-icons/faXmark';
|
|
112
|
-
import {
|
|
113
|
-
import
|
|
114
|
-
import {
|
|
80
|
+
import { faChevronLeft } from '@fortawesome/pro-solid-svg-icons/faChevronLeft';
|
|
81
|
+
import { faNoteSticky } from '@fortawesome/pro-solid-svg-icons/faNoteSticky';
|
|
82
|
+
import { faArrowDownToBracket } from '@fortawesome/pro-solid-svg-icons/faArrowDownToBracket';
|
|
83
|
+
import { faPlus } from '@fortawesome/pro-solid-svg-icons/faPlus';
|
|
84
|
+
import { faMinus } from '@fortawesome/pro-solid-svg-icons/faMinus';
|
|
85
|
+
import { faChevronRight as fasChevronRight } from '@fortawesome/pro-solid-svg-icons/faChevronRight';
|
|
86
|
+
import { faChevronDown as fasChevronDown } from '@fortawesome/pro-solid-svg-icons/faChevronDown';
|
|
87
|
+
import { faChevronUp as fasChevronUp } from '@fortawesome/pro-solid-svg-icons/faChevronUp';
|
|
88
|
+
import { faCircleInfo } from '@fortawesome/pro-solid-svg-icons/faCircleInfo';
|
|
89
|
+
import { faCube } from '@fortawesome/pro-solid-svg-icons/faCube';
|
|
90
|
+
import { faBoxArchive } from '@fortawesome/pro-solid-svg-icons/faBoxArchive';
|
|
91
|
+
import { faLocationCrosshairs } from '@fortawesome/pro-solid-svg-icons/faLocationCrosshairs';
|
|
92
|
+
import { faTruckRampBox } from '@fortawesome/pro-solid-svg-icons/faTruckRampBox';
|
|
93
|
+
import { faGlobe } from '@fortawesome/pro-solid-svg-icons/faGlobe';
|
|
94
|
+
import { faCircleCheck } from '@fortawesome/pro-solid-svg-icons/faCircleCheck';
|
|
95
|
+
import { faCircleXmark } from '@fortawesome/pro-solid-svg-icons/faCircleXmark';
|
|
96
|
+
import { faTriangleExclamation } from '@fortawesome/pro-solid-svg-icons/faTriangleExclamation';
|
|
97
|
+
import { faBadgeCheck } from '@fortawesome/pro-solid-svg-icons/faBadgeCheck';
|
|
98
|
+
import { faWebhook } from '@fortawesome/pro-solid-svg-icons/faWebhook';
|
|
99
|
+
import { faTriangleExclamation as fadTriangleExclamation } from '@fortawesome/pro-duotone-svg-icons/faTriangleExclamation';
|
|
100
|
+
import { faFacebookF } from '@fortawesome/free-brands-svg-icons/faFacebookF';
|
|
101
|
+
import { faTwitter } from '@fortawesome/free-brands-svg-icons/faTwitter';
|
|
102
|
+
import { faYoutube } from '@fortawesome/free-brands-svg-icons/faYoutube';
|
|
103
|
+
import { faLinkedinIn } from '@fortawesome/free-brands-svg-icons/faLinkedinIn';
|
|
104
|
+
import { faInstagram } from '@fortawesome/free-brands-svg-icons/faInstagram';
|
|
105
|
+
import { faBox } from '@fortawesome/pro-solid-svg-icons/faBox';
|
|
106
|
+
import { faBox as faBoxRegular } from '@fortawesome/pro-regular-svg-icons/faBox';
|
|
107
|
+
import { faBoxCircleCheck } from '@fortawesome/pro-solid-svg-icons/faBoxCircleCheck';
|
|
108
|
+
import { faShelves } from '@fortawesome/pro-solid-svg-icons/faShelves';
|
|
109
|
+
import { faBoxesStacked } from '@fortawesome/pro-solid-svg-icons/faBoxesStacked';
|
|
115
110
|
export var iconDictionary = {
|
|
116
111
|
greaterThan: faAngleRight,
|
|
117
112
|
startsWith: faAnglesRight,
|
|
@@ -121,8 +116,6 @@ export var iconDictionary = {
|
|
|
121
116
|
edit: faPenToSquare,
|
|
122
117
|
avatar: faUser,
|
|
123
118
|
arrowLeft: faArrowLeft,
|
|
124
|
-
arrowsRotate: faArrowsRotate,
|
|
125
|
-
upDownLeftRight: faUpDownLeftRight,
|
|
126
119
|
attachment: faPaperclip,
|
|
127
120
|
dashboard: faChartLine,
|
|
128
121
|
chevronUp: faChevronUp,
|
|
@@ -130,7 +123,6 @@ export var iconDictionary = {
|
|
|
130
123
|
chevronRight: farChevronRight,
|
|
131
124
|
clock: faClock,
|
|
132
125
|
complaint: faFileAlt,
|
|
133
|
-
computerMouseScrollwheel: faComputerMouseScrollwheel,
|
|
134
126
|
mailLight: faEnvelopeLight,
|
|
135
127
|
eshop: faStore,
|
|
136
128
|
expedition: faShippingFast,
|
|
@@ -171,8 +163,6 @@ export var iconDictionary = {
|
|
|
171
163
|
import: faCircleArrowDown,
|
|
172
164
|
export: faCircleArrowRight,
|
|
173
165
|
check: faCheck,
|
|
174
|
-
camera: faCamera,
|
|
175
|
-
crop: faCrop,
|
|
176
166
|
squareCheck: faSquareCheck,
|
|
177
167
|
squareMinus: faSquareMinus,
|
|
178
168
|
goLeft: faChevronLeft,
|
|
@@ -226,7 +216,7 @@ library.add(farCoffee, fasCoffee, falCoffee, faHandHoldingBox, faLuggageCart, fa
|
|
|
226
216
|
var iconPrefixMap = {
|
|
227
217
|
normal: 'far',
|
|
228
218
|
light: 'fal',
|
|
229
|
-
solid: 'fas'
|
|
219
|
+
solid: 'fas',
|
|
230
220
|
};
|
|
231
221
|
var FaIconSizing = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n --fa-secondary-color: ", ";\n --fa-secondary-opacity: 1;\n display: ", ";\n"], ["\n ", "\n --fa-secondary-color: ", ";\n --fa-secondary-opacity: 1;\n display: ", ";\n"])), function (_a) {
|
|
232
222
|
var size = _a.size;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { StoryObj } from '@storybook/react';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning }: import("../types").IconProps) => JSX.Element;
|
|
5
|
+
component: ({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning, }: import("../types").IconProps) => JSX.Element;
|
|
6
6
|
tags: string[];
|
|
7
7
|
argTypes: {};
|
|
8
8
|
};
|
|
@@ -3,10 +3,10 @@ export declare const Wrapper: import("styled-components").StyledComponent<(props
|
|
|
3
3
|
export declare const Btn: import("styled-components").StyledComponent<"button", import("@xstyled/system").Theme, {
|
|
4
4
|
disabled: boolean;
|
|
5
5
|
}, never>;
|
|
6
|
-
export declare const ArrowIcon: import("styled-components").StyledComponent<({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning }: import("../Icon").IconProps) => JSX.Element, import("@xstyled/system").Theme, {
|
|
6
|
+
export declare const ArrowIcon: import("styled-components").StyledComponent<({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning, }: import("../Icon").IconProps) => JSX.Element, import("@xstyled/system").Theme, {
|
|
7
7
|
isActive: boolean;
|
|
8
8
|
}, never>;
|
|
9
|
-
export declare const GoIcon: import("styled-components").StyledComponent<({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning }: import("../Icon").IconProps) => JSX.Element, import("@xstyled/system").Theme, {
|
|
9
|
+
export declare const GoIcon: import("styled-components").StyledComponent<({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning, }: import("../Icon").IconProps) => JSX.Element, import("@xstyled/system").Theme, {
|
|
10
10
|
isActive: boolean;
|
|
11
11
|
}, never>;
|
|
12
12
|
export declare const DotsWrapper: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {}, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SelectProps, Option } from '../Select/types';
|
|
2
2
|
type FieldValueType = string | number | (string | number)[] | null;
|
|
3
3
|
export type Props = Omit<SelectProps, 'onChange' | 'loadOptions'> & {
|
|
4
|
-
onChange
|
|
4
|
+
onChange?: (event: {
|
|
5
5
|
target: {
|
|
6
6
|
[key: string]: FieldValueType;
|
|
7
7
|
};
|
|
@@ -56,11 +56,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
56
56
|
};
|
|
57
57
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
58
58
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
59
|
+
import { nanoid } from 'nanoid';
|
|
59
60
|
import { createFilter } from 'react-select';
|
|
60
61
|
import Select from '../Select';
|
|
61
|
-
import omit from 'lodash/fp/omit';
|
|
62
|
-
import { nanoid } from 'nanoid';
|
|
63
62
|
import { i18n } from '@lingui/core';
|
|
63
|
+
import omit from 'lodash/fp/omit';
|
|
64
64
|
var CREATE = "_create_".concat(nanoid(), "_");
|
|
65
65
|
var defaultFilterOption = createFilter();
|
|
66
66
|
var creatableFilterOption = function (option, rawInput) {
|
|
@@ -88,7 +88,7 @@ var SingleSelect = function (props) {
|
|
|
88
88
|
return loadOptions && inputValue.length < asyncLoadMinChars
|
|
89
89
|
? i18n._({
|
|
90
90
|
id: 'components.dropdown.writeMoreChars',
|
|
91
|
-
message: 'Write at least ${asyncLoadMinChars} characters.'
|
|
91
|
+
message: 'Write at least ${asyncLoadMinChars} characters.'
|
|
92
92
|
})
|
|
93
93
|
: i18n._({ id: 'components.dropdown.noOptions', message: 'No options' });
|
|
94
94
|
}, [loadOptions, asyncLoadMinChars]);
|
|
@@ -100,8 +100,8 @@ var SingleSelect = function (props) {
|
|
|
100
100
|
{
|
|
101
101
|
value: CREATE,
|
|
102
102
|
label: "".concat(inputValue, " (").concat(i18n._({ id: 'components.dropdown.newOption', message: 'new value' }), ")"),
|
|
103
|
-
inputValue: inputValue
|
|
104
|
-
}
|
|
103
|
+
inputValue: inputValue
|
|
104
|
+
}
|
|
105
105
|
], false));
|
|
106
106
|
}
|
|
107
107
|
else if (!loadOptions || inputValue.length < asyncLoadMinChars) {
|
|
@@ -159,8 +159,8 @@ var SingleSelect = function (props) {
|
|
|
159
159
|
target: {
|
|
160
160
|
name: name !== null && name !== void 0 ? name : '',
|
|
161
161
|
type: 'change',
|
|
162
|
-
value: value
|
|
163
|
-
}
|
|
162
|
+
value: value
|
|
163
|
+
}
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
166
|
if (onValueChange) {
|
|
@@ -176,8 +176,8 @@ var SingleSelect = function (props) {
|
|
|
176
176
|
target: {
|
|
177
177
|
name: name,
|
|
178
178
|
type: 'blur',
|
|
179
|
-
value: getOptionValue(option)
|
|
180
|
-
}
|
|
179
|
+
value: getOptionValue(option)
|
|
180
|
+
}
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
}, [name, onBlur]);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const FakeInput: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {
|
|
3
3
|
size: string | number;
|
|
4
4
|
}, never>;
|
|
5
|
-
export declare const CheckIcon: import("styled-components").StyledComponent<({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning }: import("../../Elements/Icon").IconProps) => JSX.Element, import("@xstyled/system").Theme, {
|
|
5
|
+
export declare const CheckIcon: import("styled-components").StyledComponent<({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning, }: import("../../Elements/Icon").IconProps) => JSX.Element, import("@xstyled/system").Theme, {
|
|
6
6
|
size: string | number;
|
|
7
7
|
}, never>;
|
|
8
8
|
export declare const CheckboxWrap: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {
|