@mailstep/design-system 0.6.2-beta.2 → 0.6.2-beta.4
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 +5 -4
- package/ui/Blocks/CommonGrid/CommonGrid.js +12 -12
- package/ui/Blocks/CommonGrid/CommonGridContainer.js +15 -15
- package/ui/Blocks/CommonGrid/HoC/withReduxActions.js +1 -1
- package/ui/Blocks/CommonGrid/StandardButtons.js +1 -1
- package/ui/Blocks/CommonGrid/components/ActionHead/ActionHead.js +4 -4
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownSelect.js +3 -3
- package/ui/Blocks/CommonGrid/components/ActionHead/index.js +1 -1
- package/ui/Blocks/CommonGrid/components/BooleanSelect/BooleanSelect.js +1 -1
- package/ui/Blocks/CommonGrid/components/BooleanSelect/index.js +1 -1
- package/ui/Blocks/CommonGrid/components/ButtonMore/ButtonMore.js +3 -3
- package/ui/Blocks/CommonGrid/components/ButtonMore/index.js +1 -1
- package/ui/Blocks/CommonGrid/components/ColumnFilterCell.js +5 -5
- package/ui/Blocks/CommonGrid/components/ColumnTitle/ColumnTitle.js +1 -1
- package/ui/Blocks/CommonGrid/components/ColumnTitle/index.js +1 -1
- package/ui/Blocks/CommonGrid/components/ColumnTitle.js +1 -1
- package/ui/Blocks/CommonGrid/components/ControlButtons/ControlButtons.js +3 -3
- package/ui/Blocks/CommonGrid/components/ControlButtons/index.js +1 -1
- package/ui/Blocks/CommonGrid/components/DataCell.js +2 -2
- package/ui/Blocks/CommonGrid/components/DataRow.js +9 -9
- package/ui/Blocks/CommonGrid/components/DatePickerRange/DatePickerRange.js +4 -4
- package/ui/Blocks/CommonGrid/components/DatePickerRange/index.js +1 -1
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.js +2 -2
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/index.js +1 -1
- package/ui/Blocks/CommonGrid/components/FilterRow.js +5 -5
- package/ui/Blocks/CommonGrid/components/FloatingButton/FloatingButton.js +2 -2
- package/ui/Blocks/CommonGrid/components/FloatingButton/index.js +1 -1
- package/ui/Blocks/CommonGrid/components/GridSelect/GridSelect.js +2 -2
- package/ui/Blocks/CommonGrid/components/GridSelect/index.js +1 -1
- package/ui/Blocks/CommonGrid/components/GroupRow.js +2 -2
- package/ui/Blocks/CommonGrid/components/HeadCell.js +4 -4
- package/ui/Blocks/CommonGrid/components/HeadRow.js +3 -3
- package/ui/Blocks/CommonGrid/components/IconList/IconList.js +1 -1
- package/ui/Blocks/CommonGrid/components/IconList/index.js +1 -1
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/ManageColumnForm.js +2 -2
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/components/ActionRow.js +3 -3
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/index.js +1 -1
- package/ui/Blocks/CommonGrid/components/NumberRange/NumberRange.js +3 -3
- package/ui/Blocks/CommonGrid/components/NumberRange/index.js +1 -1
- package/ui/Blocks/CommonGrid/components/ReadEditButtonCell/ReadEditButtonCell.js +1 -1
- package/ui/Blocks/CommonGrid/components/ReadEditButtonCell/index.js +1 -1
- package/ui/Blocks/CommonGrid/components/TablePagination/TablePagination.js +2 -2
- package/ui/Blocks/CommonGrid/components/TablePagination/index.js +1 -1
- package/ui/Blocks/CommonGrid/components/TextRange/TextRange.js +3 -3
- package/ui/Blocks/CommonGrid/components/TextRange/index.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/BoolIcon.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/ButtonInCell.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/EnumInCell.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/IconButtonInCell.js +2 -2
- package/ui/Blocks/CommonGrid/components/gridCells/ImageCell.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/LinkInCell.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/RemoveItem.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/RowActionsCell.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/SwitchInCell.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/ToggleCell.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/index.js +14 -14
- package/ui/Blocks/CommonGrid/hooks/useAddFilter.js +1 -1
- package/ui/Blocks/CommonGrid/hooks/useEditReadAsColumn.js +1 -1
- package/ui/Blocks/CommonGrid/index.js +8 -8
- package/ui/Blocks/CommonGrid/store/index.js +1 -1
- package/ui/Blocks/CommonGrid/storybook/stories/complexWithPaginationAndRedux.stories.js +7 -7
- package/ui/Blocks/CommonGrid/storybook/stories/default.stories.js +7 -7
- package/ui/Blocks/CommonGrid/storybook/stories/loading.stories.js +4 -4
- package/ui/Blocks/CommonGrid/storybook/stories/manyColumnsNoScrollLayout.stories.js +4 -4
- package/ui/Blocks/CommonGrid/storybook/stories/manyColumnsNormalLayout.stories.js +4 -4
- package/ui/Blocks/CommonGrid/storybook/stories/styledCommonGrid.stories.js +7 -7
- package/ui/Blocks/CommonGrid/storybook/stories/withCustomGridActions.stories.js +5 -5
- package/ui/Blocks/CommonGrid/storybook/stories/withForcedCheckboxes.stories.js +5 -5
- package/ui/Blocks/CommonGrid/storybook/utils/utils.js +3 -3
- package/ui/Blocks/CommonGrid/storybook/utils/withRedux.js +1 -1
- package/ui/Blocks/CommonGrid/styles.js +2 -2
- package/ui/Blocks/CommonGrid/utils/index.js +5 -5
- package/ui/Blocks/CornerDialog/CornerDialog.js +4 -4
- package/ui/Blocks/CornerDialog/index.js +1 -1
- package/ui/Blocks/CornerDialog/stories/CornerDialog.stories.js +1 -1
- package/ui/Blocks/ImageList/ImageList.js +4 -4
- package/ui/Blocks/ImageList/components/AddPhoto/index.js +2 -2
- package/ui/Blocks/ImageList/components/CloseButton/index.js +2 -2
- package/ui/Blocks/ImageList/components/ImageElement/index.js +3 -3
- package/ui/Blocks/ImageList/components/ImageTag/index.js +2 -2
- package/ui/Blocks/ImageList/index.js +1 -1
- package/ui/Blocks/ImageList/stories/ImageList.stories.js +1 -1
- package/ui/Blocks/LightBox/LightBox.js +3 -3
- package/ui/Blocks/LightBox/hooks/useLightBox.js +1 -1
- package/ui/Blocks/LightBox/index.js +2 -2
- package/ui/Blocks/LightBox/stories/LightBox.stories.js +1 -1
- package/ui/Blocks/Modal/Modal.js +7 -7
- package/ui/Blocks/Modal/index.js +3 -3
- package/ui/Blocks/Modal/stories/Modal.stories.js +1 -1
- package/ui/Blocks/Modal/styles.js +1 -1
- package/ui/Blocks/Popover/index.js +2 -2
- package/ui/Blocks/Tabs/Tabs.js +3 -3
- package/ui/Blocks/Tabs/index.js +3 -3
- package/ui/Blocks/Tabs/stories/Tabs.stories.js +1 -1
- package/ui/Elements/Alert/Alert.js +2 -2
- package/ui/Elements/Alert/index.js +1 -1
- package/ui/Elements/Alert/stories/Alert.stories.js +1 -1
- package/ui/Elements/Alert/styles.js +1 -1
- package/ui/Elements/Avatar/Avatar.js +1 -1
- package/ui/Elements/Avatar/index.js +2 -2
- package/ui/Elements/Avatar/stories/Avatar.stories.js +1 -1
- package/ui/Elements/Badge/index.js +1 -1
- package/ui/Elements/Badge/stories/Badge.stories.js +1 -1
- package/ui/Elements/BorderedBox/index.js +1 -1
- package/ui/Elements/BorderedBox/stories/BorderedBox.stories.js +1 -1
- package/ui/Elements/Button/Button.js +2 -2
- package/ui/Elements/Button/index.js +1 -1
- package/ui/Elements/Button/stories/Button.stories.js +1 -1
- package/ui/Elements/Button/styles.js +1 -1
- package/ui/Elements/Card/Card.js +1 -1
- package/ui/Elements/Card/index.js +2 -2
- package/ui/Elements/Card/stories/Card.stories.js +1 -1
- package/ui/Elements/Card/stories/CardComponent.stories.js +1 -1
- package/ui/Elements/DatePicker/DatePicker.js +5 -5
- package/ui/Elements/DatePicker/Datetime/DateTime.js +3 -3
- package/ui/Elements/DatePicker/Datetime/views/DaysView.js +2 -2
- package/ui/Elements/DatePicker/Datetime/views/MonthsView.js +1 -1
- package/ui/Elements/DatePicker/Datetime/views/YearsView.js +1 -1
- package/ui/Elements/DatePicker/index.js +1 -1
- package/ui/Elements/Dropdown/index.js +1 -1
- package/ui/Elements/Dropdown/stories/Dropdown.stories.js +1 -1
- package/ui/Elements/DropdownMenu/DropdownMenu.js +2 -2
- package/ui/Elements/DropdownMenu/components/MenuItem.js +1 -1
- package/ui/Elements/DropdownMenu/components/MenuList.js +1 -1
- package/ui/Elements/DropdownMenu/index.js +1 -1
- package/ui/Elements/DropdownSelect/DropdownSelect.js +4 -4
- package/ui/Elements/DropdownSelect/index.js +2 -2
- package/ui/Elements/ErrorMessage/ErrorMessage.js +1 -1
- package/ui/Elements/ErrorMessage/index.js +1 -1
- package/ui/Elements/ErrorMessage/stories/ErrorMessage.stories.js +1 -1
- package/ui/Elements/HighlightBox/index.js +1 -1
- package/ui/Elements/Icon/BadgeIcon.js +1 -1
- package/ui/Elements/Icon/icons/index.js +55 -55
- package/ui/Elements/Icon/index.js +3 -3
- package/ui/Elements/Icon/stories/BadgeIcon.stories.js +1 -1
- package/ui/Elements/Icon/stories/Icon.stories.js +1 -1
- package/ui/Elements/Image/index.js +1 -1
- package/ui/Elements/Image/stories/Image.stories.js +1 -1
- package/ui/Elements/Label/index.js +2 -2
- package/ui/Elements/Label/stories/Label.stories.js +1 -1
- package/ui/Elements/Line/index.js +1 -1
- package/ui/Elements/Line/stories/Line.stories.js +1 -1
- package/ui/Elements/Link/Link.js +1 -1
- package/ui/Elements/Link/index.js +1 -1
- package/ui/Elements/Link/stories/Link.stories.js +1 -1
- package/ui/Elements/Logo/index.js +1 -1
- package/ui/Elements/Logo/stories/Logo.stories.js +1 -1
- package/ui/Elements/MultiSelect/MultiSelect.js +1 -1
- package/ui/Elements/MultiSelect/index.js +1 -1
- package/ui/Elements/Pagination/Pagination.js +1 -1
- package/ui/Elements/Pagination/index.js +1 -1
- package/ui/Elements/Pagination/stories/Pagination.stories.js +1 -1
- package/ui/Elements/Pagination/styled.js +1 -1
- package/ui/Elements/ProgressBar/ProgressBar.js +1 -1
- package/ui/Elements/ProgressBar/index.js +1 -1
- package/ui/Elements/ProgressBar/stories/ProgressBar.stories.js +1 -1
- package/ui/Elements/ProgressBar/styles.js +1 -1
- package/ui/Elements/Select/Select.js +5 -5
- package/ui/Elements/Select/index.js +1 -1
- package/ui/Elements/Select/themes/CustomComponents.js +4 -4
- package/ui/Elements/Select/themes/baseStyles.js +1 -1
- package/ui/Elements/Select/themes/formStyles.js +1 -1
- package/ui/Elements/Select/themes/index.js +2 -2
- package/ui/Elements/SimpleLink/index.js +1 -1
- package/ui/Elements/SingleSelect/SingleSelect.js +1 -1
- package/ui/Elements/SingleSelect/index.js +1 -1
- package/ui/Elements/SpaceAround/index.js +1 -1
- package/ui/Elements/SpaceAround/stories/SpaceAround.stories.js +1 -1
- package/ui/Elements/Spinner/Spinner.js +1 -1
- package/ui/Elements/Spinner/index.js +1 -1
- package/ui/Elements/Spinner/stories/Spinner.stories.js +1 -1
- package/ui/Elements/Tag/index.js +2 -2
- package/ui/Elements/Tag/stories/Tag.stories.js +2 -2
- package/ui/Elements/Tag/stories/components/predefinedTags.js +2 -2
- package/ui/Elements/Text/index.js +1 -1
- package/ui/Elements/Text/stories/Text.stories.js +1 -1
- package/ui/Elements/Toast/Toast.js +1 -1
- package/ui/Elements/Toast/index.js +1 -1
- package/ui/Elements/Toggle/Toggle.js +2 -2
- package/ui/Elements/Toggle/index.js +1 -1
- package/ui/Elements/Toggle/stories/Toggle.stories.js +1 -1
- package/ui/Elements/Typography/Typography.js +1 -1
- package/ui/Elements/Typography/index.js +2 -2
- package/ui/Elements/Typography/stories/Typography.stories.js +1 -1
- package/ui/Forms/Checkbox/Checkbox.js +1 -1
- package/ui/Forms/Checkbox/index.js +1 -1
- package/ui/Forms/Checkbox/stories/Checkbox.stories.js +1 -1
- package/ui/Forms/Checkbox/styles.js +1 -1
- package/ui/Forms/Input/Input.js +6 -6
- package/ui/Forms/Input/index.js +1 -1
- package/ui/Forms/Input/stories/Input.stories.js +1 -1
- package/ui/Forms/RadioButton/RadioButton.js +1 -1
- package/ui/Forms/RadioButton/index.js +1 -1
- package/ui/Forms/RadioButton/stories/RadioButton.stories.js +1 -1
- package/ui/Forms/TextArea/TextArea.js +5 -5
- package/ui/Forms/TextArea/index.js +1 -1
- package/ui/ThemeProvider/ThemeProvider.js +1 -1
- package/ui/ThemeProvider/index.js +3 -3
- package/ui/ThemeProvider/themes/index.js +3 -3
- package/ui/index.js +84 -84
- package/ui/index.umd.js +3878 -0
- package/ui/utils/CreateRgba/createRgba.js +1 -1
- package/ui/utils/KeyPress/KeyPress.stories.js +1 -1
- package/ui/utils/KeyPress/index.js +1 -1
- package/ui/utils/index.js +2 -2
- package/ui/index.cjs.js +0 -3878
|
@@ -4,7 +4,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
};
|
|
5
5
|
import styled, { x } from '@xstyled/styled-components';
|
|
6
6
|
import { th } from '@xstyled/system';
|
|
7
|
-
import Icon from '../Icon';
|
|
7
|
+
import Icon from '../Icon/index.js';
|
|
8
8
|
export var Wrapper = styled(x.div)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n\n & > *:not(:last-child) {\n margin-right: 1px;\n @media (min-width: 1024px) {\n margin-right: 4px;\n }\n }\n"], ["\n display: inline-flex;\n align-items: center;\n\n & > *:not(:last-child) {\n margin-right: 1px;\n @media (min-width: 1024px) {\n margin-right: 4px;\n }\n }\n"])));
|
|
9
9
|
export var Btn = styled.button(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: transparent;\n border: none;\n cursor: ", ";\n opacity: ", ";\n"], ["\n background-color: transparent;\n border: none;\n cursor: ", ";\n opacity: ", ";\n"])), function (_a) {
|
|
10
10
|
var disabled = _a.disabled;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { StyledProgressBar, Progress, ProgressDescription } from './styles';
|
|
2
|
+
import { StyledProgressBar, Progress, ProgressDescription } from './styles.js';
|
|
3
3
|
var ProgressBar = function (_a) {
|
|
4
4
|
var _b = _a.progress, progress = _b === void 0 ? 0 : _b, status = _a.status, errorMessage = _a.errorMessage, noText = _a.noText, variant = _a.variant;
|
|
5
5
|
if (progress > 100 || progress < 0)
|
|
@@ -4,7 +4,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
};
|
|
5
5
|
import styled, { keyframes, css } from '@xstyled/styled-components';
|
|
6
6
|
import { th } from '@xstyled/styled-components';
|
|
7
|
-
import { createRgba } from '../../utils';
|
|
7
|
+
import { createRgba } from '../../utils/index.js';
|
|
8
8
|
export var StyledProgressBar = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n display: flex;\n width: 100%;\n min-width: 250px;\n height: ", ";\n color: ", ";\n background-color: ", ";\n justify-content: center;\n border: slim;\n border-color: ", ";\n border-radius: md;\n overflow: hidden;\n"], ["\n position: relative;\n display: flex;\n width: 100%;\n min-width: 250px;\n height: ", ";\n color: ", ";\n background-color: ", ";\n justify-content: center;\n border: slim;\n border-color: ", ";\n border-radius: md;\n overflow: hidden;\n"])), function (props) { return (props.variant === 'thin' ? "12px" : "35px"); }, th('colors.white'), function (props) {
|
|
9
9
|
return props.status === 'finished' ? createRgba(props.theme.colors.success, 0.4) : "".concat(th('colors.red1'));
|
|
10
10
|
}, function (props) { return (props.status === 'finished' ? "".concat(th('colors.success')) : "".concat(th('colors.red1'))); });
|
|
@@ -22,12 +22,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
import { useCallback, useMemo } from 'react';
|
|
25
|
-
import { Wrapper, StyledReactSelect, StyledAsyncSelect } from './styles';
|
|
26
|
-
import { useStylesAndComponents } from './themes';
|
|
25
|
+
import { Wrapper, StyledReactSelect, StyledAsyncSelect } from './styles.js';
|
|
26
|
+
import { useStylesAndComponents } from './themes/index.js';
|
|
27
27
|
import { useTheme } from '@xstyled/styled-components';
|
|
28
|
-
import SpaceAroundWrap from '../SpaceAround';
|
|
29
|
-
import { FieldLabel } from '../Label';
|
|
30
|
-
import { ErrorMessage } from '../ErrorMessage';
|
|
28
|
+
import SpaceAroundWrap from '../SpaceAround/index.js';
|
|
29
|
+
import { FieldLabel } from '../Label/index.js';
|
|
30
|
+
import { ErrorMessage } from '../ErrorMessage/index.js';
|
|
31
31
|
import { i18n } from '@lingui/core';
|
|
32
32
|
var emptyOptions = [];
|
|
33
33
|
var noOptionsMessage = function () { return i18n._({ id: 'select.noOptions', message: 'no options' }); };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Select from './Select';
|
|
1
|
+
import Select from './Select.js';
|
|
2
2
|
export default Select;
|
|
@@ -30,10 +30,10 @@ import { components } from 'react-select';
|
|
|
30
30
|
import styled, { th } from '@xstyled/styled-components';
|
|
31
31
|
import { components as selectComponents } from 'react-select';
|
|
32
32
|
import { Trans } from '@lingui/react';
|
|
33
|
-
import Icon from '../../Icon/Icon';
|
|
34
|
-
import { Paragraph3 } from '../../Typography/Typography';
|
|
35
|
-
import Checkbox from '../../../Forms/Checkbox/Checkbox';
|
|
36
|
-
import Toggle from '../../Toggle/Toggle';
|
|
33
|
+
import Icon from '../../Icon/Icon.js';
|
|
34
|
+
import { Paragraph3 } from '../../Typography/Typography.js';
|
|
35
|
+
import Checkbox from '../../../Forms/Checkbox/Checkbox.js';
|
|
36
|
+
import Toggle from '../../Toggle/Toggle.js';
|
|
37
37
|
// Option for big lists
|
|
38
38
|
var SimplifiedOptionInner = function (props) {
|
|
39
39
|
var styles = props.getStyles('option', props);
|
|
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import createRgba from '../../../utils/CreateRgba/createRgba';
|
|
12
|
+
import createRgba from '../../../utils/CreateRgba/createRgba.js';
|
|
13
13
|
// style object https://react-select.com/styles
|
|
14
14
|
export var baseStylesConfig = {
|
|
15
15
|
control: function (styles, _a) {
|
|
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { baseStylesConfig } from './baseStyles';
|
|
12
|
+
import { baseStylesConfig } from './baseStyles.js';
|
|
13
13
|
import { th } from '@xstyled/system';
|
|
14
14
|
// style object https://react-select.com/styles
|
|
15
15
|
export var CustomStyles = __assign(__assign({}, baseStylesConfig), { control: function (styles, _a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SimplifiedOption, IconValueContainer, CountMultiValue, ChevronOption, DropdownIndicator, CustomInput, ConnectedMenu, } from './CustomComponents';
|
|
2
|
-
import { getCustomTheme as getFormCustomTheme, CustomStyles as FormCustomStyles } from './formStyles';
|
|
1
|
+
import { SimplifiedOption, IconValueContainer, CountMultiValue, ChevronOption, DropdownIndicator, CustomInput, ConnectedMenu, } from './CustomComponents.js';
|
|
2
|
+
import { getCustomTheme as getFormCustomTheme, CustomStyles as FormCustomStyles } from './formStyles.js';
|
|
3
3
|
import { useTheme } from '@xstyled/styled-components';
|
|
4
4
|
import { useMemo } from 'react';
|
|
5
5
|
export var useStylesAndComponents = function (style, optionVariant, multiLabelVariant, containerVariant, useSimplifiedOptions, showSelectAllButton, showResetGridButton) {
|
|
@@ -57,7 +57,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
57
57
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
58
58
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
59
59
|
import { createFilter } from 'react-select';
|
|
60
|
-
import Select from '../Select';
|
|
60
|
+
import Select from '../Select/index.js';
|
|
61
61
|
import omit from 'lodash/fp/omit';
|
|
62
62
|
import { nanoid } from 'nanoid';
|
|
63
63
|
import { i18n } from '@lingui/core';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import SingleSelect from './SingleSelect';
|
|
1
|
+
import SingleSelect from './SingleSelect.js';
|
|
2
2
|
export default SingleSelect;
|
package/ui/Elements/Tag/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Tag from './Tag';
|
|
2
|
-
export { palletes } from './palletes';
|
|
1
|
+
import Tag from './Tag.js';
|
|
2
|
+
export { palletes } from './palletes.js';
|
|
3
3
|
export default Tag;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { x } from '@xstyled/styled-components';
|
|
3
|
-
import Tag from '../../';
|
|
4
|
-
import { palletes } from '../../palletes';
|
|
3
|
+
import Tag from '../../index.js';
|
|
4
|
+
import { palletes } from '../../palletes.js';
|
|
5
5
|
var PredefinedTags = function () {
|
|
6
6
|
return (_jsx(x.div, { display: "flex", flexWrap: "wrap", fontFamily: "monospace", children: Object.keys(palletes).map(function (pallete, i) { return (_jsx(Tag, { color: palletes[pallete].color, textColor: palletes[pallete].textColor, children: pallete })); }) }));
|
|
7
7
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Text from './Text';
|
|
1
|
+
import Text from './Text.js';
|
|
2
2
|
export { Text };
|
|
@@ -5,7 +5,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
5
5
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
6
|
import styled from '@xstyled/styled-components';
|
|
7
7
|
import { th } from '@xstyled/styled-components';
|
|
8
|
-
import { Icon } from '../Icon';
|
|
8
|
+
import { Icon } from '../Icon/index.js';
|
|
9
9
|
var toastTitleMap = {
|
|
10
10
|
info: 'Info',
|
|
11
11
|
success: 'Success',
|
|
@@ -26,8 +26,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
26
26
|
};
|
|
27
27
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
28
|
import styled, { css } from '@xstyled/styled-components';
|
|
29
|
-
import { FieldLabel } from '../Label';
|
|
30
|
-
import { SpaceAroundWrap } from '../SpaceAround';
|
|
29
|
+
import { FieldLabel } from '../Label/index.js';
|
|
30
|
+
import { SpaceAroundWrap } from '../SpaceAround/index.js';
|
|
31
31
|
var StyledSpaceAroundWrap = styled(SpaceAroundWrap)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
32
32
|
var $labelPosition = _a.$labelPosition;
|
|
33
33
|
return ($labelPosition === 'left' ? 'display: flex; align-items: center; margin-top: 1rem' : '');
|
|
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { Text as BaseText } from '../Text';
|
|
13
|
+
import { Text as BaseText } from '../Text/index.js';
|
|
14
14
|
export var Text = function (props) { return _jsx(BaseText, __assign({}, props, { fontWeight: props.variant })); };
|
|
15
15
|
Text.defaultProps = { fontFamily: 'primary' };
|
|
16
16
|
// Paragraphs
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Text } from './Typography';
|
|
2
|
-
export * from './Typography';
|
|
1
|
+
import { Text } from './Typography.js';
|
|
2
|
+
export * from './Typography.js';
|
|
3
3
|
export default Text;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { H1, H2, H3, H4, H5, H6, H7, Paragraph1, Paragraph2, Paragraph3, Paragraph4, Paragraph5 } from '../';
|
|
2
|
+
import { H1, H2, H3, H4, H5, H6, H7, Paragraph1, Paragraph2, Paragraph3, Paragraph4, Paragraph5 } from '../index.js';
|
|
3
3
|
var meta = {
|
|
4
4
|
title: 'Elements/Typography',
|
|
5
5
|
tags: ['autodocs'],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { memo, useId } from 'react';
|
|
3
|
-
import { CheckboxWrap, CheckIcon, FakeInput, Label } from './styles';
|
|
3
|
+
import { CheckboxWrap, CheckIcon, FakeInput, Label } from './styles.js';
|
|
4
4
|
import { th, useTheme } from '@xstyled/styled-components';
|
|
5
5
|
var Checkbox = function (_a) {
|
|
6
6
|
var name = _a.name, label = _a.label, onChange = _a.onChange, checked = _a.checked, defaultChecked = _a.defaultChecked, _b = _a.size, size = _b === void 0 ? 4 : _b, className = _a.className, disabled = _a.disabled, inputRef = _a.inputRef, readOnly = _a.readOnly, _c = _a.minusIcon, minusIcon = _c === void 0 ? false : _c;
|
|
@@ -3,7 +3,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
5
|
import styled, { th } from '@xstyled/styled-components';
|
|
6
|
-
import { Icon } from '../../Elements/Icon';
|
|
6
|
+
import { Icon } from '../../Elements/Icon/index.js';
|
|
7
7
|
export var FakeInput = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n min-width: ", ";\n height: ", ";\n border-radius: md;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ease;\n transform: rotate(0);\n overflow: hidden;\n border: slim;\n border-color: lightGray5;\n\n input[type='checkbox']:not(:disabled):hover + & {\n border-color: gray1;\n }\n\n input[type='checkbox']:disabled + & {\n background-color: white;\n border-color: lightGray7;\n }\n\n input[type='checkbox']:checked:disabled + & {\n background-color: bgLightGray1;\n border-color: bgLightGray1;\n }\n\n input[type='checkbox']:checked:not(:disabled) + & {\n transform: rotate(0deg);\n background-color: red1;\n border-color: red1;\n }\n\n input[type='checkbox']:not(:checked):not(:disabled) + & {\n transform: rotate(90deg);\n background-color: white;\n border-color: lightGray5;\n }\n"], ["\n width: ", ";\n min-width: ", ";\n height: ", ";\n border-radius: md;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ease;\n transform: rotate(0);\n overflow: hidden;\n border: slim;\n border-color: lightGray5;\n\n input[type='checkbox']:not(:disabled):hover + & {\n border-color: gray1;\n }\n\n input[type='checkbox']:disabled + & {\n background-color: white;\n border-color: lightGray7;\n }\n\n input[type='checkbox']:checked:disabled + & {\n background-color: bgLightGray1;\n border-color: bgLightGray1;\n }\n\n input[type='checkbox']:checked:not(:disabled) + & {\n transform: rotate(0deg);\n background-color: red1;\n border-color: red1;\n }\n\n input[type='checkbox']:not(:checked):not(:disabled) + & {\n transform: rotate(90deg);\n background-color: white;\n border-color: lightGray5;\n }\n"])), function (_a) {
|
|
8
8
|
var size = _a.size;
|
|
9
9
|
return size;
|
package/ui/Forms/Input/Input.js
CHANGED
|
@@ -22,12 +22,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
import { useCallback, useEffect, useRef } from 'react';
|
|
25
|
-
import { IconsController, IconWrapper, InputIcon, InputRow, InputWrap, StyledInput, Suffix, Tooltip } from './styles';
|
|
26
|
-
import { FieldLabel } from '../../Elements/Label';
|
|
27
|
-
import { SpaceAroundWrap } from '../../Elements/SpaceAround';
|
|
28
|
-
import { ErrorMessage } from '../../Elements/ErrorMessage';
|
|
29
|
-
import { Icon } from '../../Elements/Icon';
|
|
30
|
-
import { Spinner } from '../../Elements/Spinner';
|
|
25
|
+
import { IconsController, IconWrapper, InputIcon, InputRow, InputWrap, StyledInput, Suffix, Tooltip } from './styles.js';
|
|
26
|
+
import { FieldLabel } from '../../Elements/Label/index.js';
|
|
27
|
+
import { SpaceAroundWrap } from '../../Elements/SpaceAround/index.js';
|
|
28
|
+
import { ErrorMessage } from '../../Elements/ErrorMessage/index.js';
|
|
29
|
+
import { Icon } from '../../Elements/Icon/index.js';
|
|
30
|
+
import { Spinner } from '../../Elements/Spinner/index.js';
|
|
31
31
|
var allowedInputTypes = ['text', 'number', 'password'];
|
|
32
32
|
export var Input = function (_a) {
|
|
33
33
|
var _b = _a.appearance, appearance = _b === void 0 ? 'primary' : _b, type = _a.type, name = _a.name, label = _a.label, value = _a.value, icon = _a.icon, _c = _a.variant, variant = _c === void 0 ? 'default' : _c, disabled = _a.disabled, error = _a.error, _d = _a.isInvalid, isInvalid = _d === void 0 ? undefined : _d, _e = _a.spaceAround, spaceAround = _e === void 0 ? false : _e, inputRef = _a.inputRef, autoComplete = _a.autoComplete, isLoading = _a.isLoading, className = _a.className, suffix = _a.suffix, suffixOnClick = _a.suffixOnClick, errorAppearance = _a.errorAppearance, _f = _a.iconPlacement, iconPlacement = _f === void 0 ? 'left' : _f, iconOnClick = _a.iconOnClick, iconTooltip = _a.iconTooltip, big = _a.big, _g = _a.showArrowsController, showArrowsController = _g === void 0 ? false : _g, onClear = _a.onClear, alwaysShowClear = _a.alwaysShowClear, setNumber = _a.setNumber, onEnter = _a.onEnter, _h = _a.forceFocus, forceFocus = _h === void 0 ? false : _h, _j = _a.autoFocus, autoFocus = _j === void 0 ? false : _j, onBlur = _a.onBlur, _k = _a.asTextArea, asTextArea = _k === void 0 ? false : _k, rest = __rest(_a, ["appearance", "type", "name", "label", "value", "icon", "variant", "disabled", "error", "isInvalid", "spaceAround", "inputRef", "autoComplete", "isLoading", "className", "suffix", "suffixOnClick", "errorAppearance", "iconPlacement", "iconOnClick", "iconTooltip", "big", "showArrowsController", "onClear", "alwaysShowClear", "setNumber", "onEnter", "forceFocus", "autoFocus", "onBlur", "asTextArea"]);
|
package/ui/Forms/Input/index.js
CHANGED
|
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
import { CenterDot, Item, Label, PaintoverLayer, StyledRadio, Wrapper } from './styles';
|
|
24
|
+
import { CenterDot, Item, Label, PaintoverLayer, StyledRadio, Wrapper } from './styles.js';
|
|
25
25
|
import { useId } from 'react';
|
|
26
26
|
var RadioButton = function (_a) {
|
|
27
27
|
var label = _a.label, id = _a.id, name = _a.name, _b = _a.disabled, disabled = _b === void 0 ? false : _b, onChange = _a.onChange, rest = __rest(_a, ["label", "id", "name", "disabled", "onChange"]);
|
|
@@ -21,11 +21,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
import { StyledTextArea, TextAreaWrap, InnerWrap, BorderWrap, IconWrap } from './styles';
|
|
25
|
-
import { SpaceAroundWrap } from '../../Elements/SpaceAround';
|
|
26
|
-
import FaIcon from '../../Elements/Icon/Icon';
|
|
27
|
-
import { FieldLabel } from '../../Elements/Label';
|
|
28
|
-
import ErrorMessage from '../../Elements/ErrorMessage/ErrorMessage';
|
|
24
|
+
import { StyledTextArea, TextAreaWrap, InnerWrap, BorderWrap, IconWrap } from './styles.js';
|
|
25
|
+
import { SpaceAroundWrap } from '../../Elements/SpaceAround/index.js';
|
|
26
|
+
import FaIcon from '../../Elements/Icon/Icon.js';
|
|
27
|
+
import { FieldLabel } from '../../Elements/Label/index.js';
|
|
28
|
+
import ErrorMessage from '../../Elements/ErrorMessage/ErrorMessage.js';
|
|
29
29
|
var TextArea = function (_a) {
|
|
30
30
|
var name = _a.name, label = _a.label, value = _a.value, disabled = _a.disabled, error = _a.error, _b = _a.spaceAround, spaceAround = _b === void 0 ? false : _b, _c = _a.isInvalid, isInvalid = _c === void 0 ? undefined : _c, className = _a.className, resize = _a.resize, icon = _a.icon, _d = _a.rows, rows = _d === void 0 ? 4 : _d, Footer = _a.Footer, rest = __rest(_a, ["name", "label", "value", "disabled", "error", "spaceAround", "isInvalid", "className", "resize", "icon", "rows", "Footer"]);
|
|
31
31
|
var $isInvalid = isInvalid !== undefined ? isInvalid : !!error;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import TextArea from './TextArea';
|
|
1
|
+
import TextArea from './TextArea.js';
|
|
2
2
|
export default TextArea;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ThemeProvider, Preflight } from '@xstyled/styled-components';
|
|
3
|
-
import themes from './themes';
|
|
3
|
+
import themes from './themes/index.js';
|
|
4
4
|
import { createContext } from 'react';
|
|
5
5
|
export var LanguageContext = createContext('en');
|
|
6
6
|
var MailstepThemeProvider = function (_a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import ThemeProvider from './ThemeProvider';
|
|
2
|
-
import themes from './themes';
|
|
3
|
-
export * from './types';
|
|
1
|
+
import ThemeProvider from './ThemeProvider.js';
|
|
2
|
+
import themes from './themes/index.js';
|
|
3
|
+
export * from './types.js';
|
|
4
4
|
export { themes };
|
|
5
5
|
export default ThemeProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import defaultTheme from './default';
|
|
2
|
-
import light from './light';
|
|
3
|
-
import mailwise from './mailwise';
|
|
1
|
+
import defaultTheme from './default.js';
|
|
2
|
+
import light from './light.js';
|
|
3
|
+
import mailwise from './mailwise.js';
|
|
4
4
|
var themes = {
|
|
5
5
|
default: defaultTheme,
|
|
6
6
|
light: light,
|