@wireapp/react-ui-kit 9.17.9 → 9.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Form/Button.js +1 -15
- package/lib/Form/Button.styles.js +157 -110
- package/lib/Form/ButtonLink.d.ts.map +1 -1
- package/lib/Form/ButtonLink.js +5 -16
- package/lib/Form/Checkbox.js +75 -45
- package/lib/Form/CodeInput.js +17 -6
- package/lib/Form/DropFileInput.js +5 -14
- package/lib/Form/ErrorMessage.js +8 -19
- package/lib/Form/Form.d.ts.map +1 -1
- package/lib/Form/Form.js +2 -2
- package/lib/Form/IndicatorRangeInput.js +6 -19
- package/lib/Form/IndicatorRangeInput.styles.js +36 -6
- package/lib/Form/Input.js +21 -18
- package/lib/Form/InputBlock.d.ts +1 -1
- package/lib/Form/InputBlock.d.ts.map +1 -1
- package/lib/Form/InputBlock.js +1 -1
- package/lib/Form/InputLabel.js +6 -20
- package/lib/Form/InputSubmitCombo.js +22 -25
- package/lib/Form/RangeInput.d.ts +0 -1
- package/lib/Form/RangeInput.d.ts.map +1 -1
- package/lib/Form/RangeInput.js +2 -14
- package/lib/Form/RangeInput.styles.js +26 -14
- package/lib/Form/RoundIconButton.js +14 -16
- package/lib/Form/Select.d.ts.map +1 -1
- package/lib/Form/Select.js +9 -16
- package/lib/Form/SelectComponents.d.ts.map +1 -1
- package/lib/Form/SelectComponents.js +21 -35
- package/lib/Form/SelectStyles.js +164 -82
- package/lib/Form/TextArea.js +11 -4
- package/lib/Form/Tooltip.js +2 -14
- package/lib/GlobalStyle.d.ts +0 -1
- package/lib/GlobalStyle.d.ts.map +1 -1
- package/lib/GlobalStyle.js +17 -3
- package/lib/Icon/AddPeopleIcon.js +1 -15
- package/lib/Icon/ArchiveIcon.js +1 -1
- package/lib/Icon/ArrowDown.js +1 -15
- package/lib/Icon/ArrowIcon.js +1 -15
- package/lib/Icon/AttachmentIcon.js +1 -1
- package/lib/Icon/AudioVideoIcon.js +1 -1
- package/lib/Icon/BlockIcon.js +1 -1
- package/lib/Icon/Brand/AndroidIcon.js +1 -1
- package/lib/Icon/Brand/AppleIcon.js +1 -1
- package/lib/Icon/Brand/ChromeIcon.js +1 -1
- package/lib/Icon/Brand/FacebookIcon.js +1 -1
- package/lib/Icon/Brand/GitHubIcon.js +1 -1
- package/lib/Icon/Brand/LinkedInIcon.js +1 -1
- package/lib/Icon/Brand/LinuxIcon.js +1 -1
- package/lib/Icon/Brand/MicrosoftIcon.js +1 -1
- package/lib/Icon/Brand/TwitterIcon.js +1 -1
- package/lib/Icon/CallIcon.js +1 -1
- package/lib/Icon/CamIcon.js +1 -1
- package/lib/Icon/CameraIcon.js +1 -15
- package/lib/Icon/CertificateExpired.js +1 -1
- package/lib/Icon/CertificateRevoked.js +1 -1
- package/lib/Icon/CheckIcon.js +1 -1
- package/lib/Icon/CheckRoundIcon.js +1 -1
- package/lib/Icon/ChevronIcon.js +1 -15
- package/lib/Icon/CircleCloseIcon.js +1 -1
- package/lib/Icon/CloseIcon.js +1 -1
- package/lib/Icon/CopyIcon.js +1 -1
- package/lib/Icon/DeviceIcon.js +1 -1
- package/lib/Icon/DownloadIcon.js +1 -1
- package/lib/Icon/EditDocumentIcon.js +1 -15
- package/lib/Icon/EditIcon.js +1 -1
- package/lib/Icon/EnterIcon.js +1 -1
- package/lib/Icon/ErrorIcon.js +1 -1
- package/lib/Icon/ExpiresSoon.js +1 -1
- package/lib/Icon/FileIcon.js +1 -1
- package/lib/Icon/GifIcon.js +1 -1
- package/lib/Icon/GridIcon.js +1 -15
- package/lib/Icon/GroupIcon.js +1 -1
- package/lib/Icon/HangupIcon.js +1 -1
- package/lib/Icon/HideIcon.js +1 -1
- package/lib/Icon/ImageIcon.js +1 -1
- package/lib/Icon/InfoIcon.js +1 -1
- package/lib/Icon/InviteIcon.js +1 -1
- package/lib/Icon/LeaveIcon.js +1 -1
- package/lib/Icon/LinkIcon.js +1 -15
- package/lib/Icon/ListIcon.js +1 -1
- package/lib/Icon/LockIcon.js +1 -1
- package/lib/Icon/MLSVerified.js +1 -1
- package/lib/Icon/MessageIcon.js +1 -1
- package/lib/Icon/MinusIcon.js +1 -1
- package/lib/Icon/MoreIcon.js +1 -1
- package/lib/Icon/MuteIcon.js +1 -1
- package/lib/Icon/NotificationIcon.js +1 -1
- package/lib/Icon/NotificationOffIcon.js +1 -1
- package/lib/Icon/OptionsIcon.js +1 -1
- package/lib/Icon/OutlineCheck.d.ts +3 -0
- package/lib/Icon/OutlineCheck.d.ts.map +1 -0
- package/lib/Icon/OutlineCheck.js +25 -0
- package/lib/Icon/PeopleIcon.js +1 -15
- package/lib/Icon/PingIcon.js +1 -1
- package/lib/Icon/PlaneIcon.js +1 -1
- package/lib/Icon/PlusIcon.js +1 -1
- package/lib/Icon/ProfileIcon.js +1 -1
- package/lib/Icon/ProteusVerified.js +1 -1
- package/lib/Icon/RecordBoldIcon.js +4 -18
- package/lib/Icon/RecordIcon.js +1 -1
- package/lib/Icon/RecordPendingIcon.js +1 -1
- package/lib/Icon/ReloadIcon.js +1 -1
- package/lib/Icon/SVGIcon.js +2 -14
- package/lib/Icon/ScreenshareIcon.js +1 -1
- package/lib/Icon/SearchIcon.js +1 -1
- package/lib/Icon/ServicesIcon.js +1 -1
- package/lib/Icon/SettingsIcon.js +1 -1
- package/lib/Icon/ShowIcon.js +1 -1
- package/lib/Icon/SignIcon.js +1 -1
- package/lib/Icon/SpeakerIcon.js +1 -1
- package/lib/Icon/StarIcon.js +1 -1
- package/lib/Icon/SupportIcon.js +1 -1
- package/lib/Icon/TeamIcon.js +1 -1
- package/lib/Icon/TimedIcon.js +1 -1
- package/lib/Icon/TrashCrossIcon.js +1 -1
- package/lib/Icon/TrashIcon.js +1 -1
- package/lib/Icon/TriangleIcon.js +1 -15
- package/lib/Icon/UploadIcon.js +1 -1
- package/lib/Icon/VerificationShieldIcon.js +1 -4
- package/lib/Icon/WireIcon.js +1 -1
- package/lib/Icon/index.d.ts +1 -0
- package/lib/Icon/index.d.ts.map +1 -1
- package/lib/Icon/index.js +1 -0
- package/lib/Identity/Animation.js +62 -88
- package/lib/Identity/Avatar.js +2 -2
- package/lib/Identity/AvatarGrid.js +4 -16
- package/lib/Identity/Logo.js +1 -15
- package/lib/Identity/colors-v2.js +25 -3
- package/lib/Identity/colors.js +11 -2
- package/lib/Layout/Box.d.ts +1 -1
- package/lib/Layout/Box.d.ts.map +1 -1
- package/lib/Layout/Box.js +1 -1
- package/lib/Layout/Column.d.ts +1 -1
- package/lib/Layout/Column.d.ts.map +1 -1
- package/lib/Layout/Column.js +2 -2
- package/lib/Layout/Container.js +6 -20
- package/lib/Layout/Content.d.ts +1 -1
- package/lib/Layout/Content.d.ts.map +1 -1
- package/lib/Layout/Content.js +1 -1
- package/lib/Layout/FlexBox.js +1 -1
- package/lib/Layout/Footer.d.ts.map +1 -1
- package/lib/Layout/Footer.js +1 -1
- package/lib/Layout/Header.d.ts +1 -1
- package/lib/Layout/Header.d.ts.map +1 -1
- package/lib/Layout/Header.js +1 -1
- package/lib/Layout/MatchMedia.js +8 -8
- package/lib/Layout/Spacer.js +1 -2
- package/lib/Layout/StyledApp.js +2 -16
- package/lib/Layout/headerMenu/HeaderMenu.js +2 -14
- package/lib/Layout/headerMenu/HeaderSubMenu.d.ts +1 -1
- package/lib/Layout/headerMenu/HeaderSubMenu.d.ts.map +1 -1
- package/lib/Layout/headerMenu/HeaderSubMenu.js +4 -16
- package/lib/Layout/headerMenu/MenuContent.js +14 -2
- package/lib/Layout/headerMenu/MenuItems.js +1 -1
- package/lib/Layout/headerMenu/MenuLink.js +28 -35
- package/lib/Layout/headerMenu/MenuOpenButton.js +1 -1
- package/lib/Layout/headerMenu/MenuScrollableItems.js +1 -1
- package/lib/Layout/headerMenu/MenuSubLink.js +15 -5
- package/lib/Menu/MenuModal.d.ts.map +1 -1
- package/lib/Menu/MenuModal.js +28 -35
- package/lib/Menu/TabBar.d.ts +1 -1
- package/lib/Menu/TabBar.d.ts.map +1 -1
- package/lib/Menu/TabBar.js +13 -22
- package/lib/Misc/ButtonGroup.js +38 -35
- package/lib/Misc/IconButton.js +63 -50
- package/lib/Misc/IsInViewport.js +2 -14
- package/lib/Misc/Loading.js +3 -15
- package/lib/Misc/Pagination.js +2 -14
- package/lib/Misc/Pill.js +1 -1
- package/lib/Misc/childrenWithDefaultProps.d.ts.map +1 -1
- package/lib/Misc/childrenWithDefaultProps.js +1 -1
- package/lib/Modal/Modal.js +11 -22
- package/lib/Modal/Overlay.d.ts +2 -2
- package/lib/Modal/Overlay.d.ts.map +1 -1
- package/lib/Modal/Overlay.js +5 -19
- package/lib/Text/Heading.js +49 -45
- package/lib/Text/Label.d.ts.map +1 -1
- package/lib/Text/Label.js +13 -23
- package/lib/Text/Line.js +1 -1
- package/lib/Text/Link.js +26 -31
- package/lib/Text/Paragraph.js +15 -23
- package/lib/Text/Text.js +6 -6
- package/lib/Text/TextLink.d.ts.map +1 -1
- package/lib/Text/TextLink.js +4 -16
- package/lib/Text/Title.js +5 -16
- package/lib/Theme/Theme.js +1 -1
- package/lib/mediaQueries.js +1 -1
- package/lib/util.js +1 -1
- package/package.json +3 -3
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.IndicatorsContainer = exports.ValueContainer = exports.renderValue = exports.Menu = exports.CustomOption = exports.DropdownIndicator = exports.isGroup = exports.SelectContainer = void 0;
|
|
15
4
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
@@ -37,7 +26,7 @@ const ArrowDown_1 = require("../Icon/ArrowDown");
|
|
|
37
26
|
const enums_1 = require("../types/enums");
|
|
38
27
|
// SelectContainer
|
|
39
28
|
const SelectContainer = (props) => {
|
|
40
|
-
return ((0, jsx_runtime_1.jsx)(react_select_1.components.SelectContainer,
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)(react_select_1.components.SelectContainer, { ...props, children: (0, jsx_runtime_1.jsx)("div", { tabIndex: enums_1.TabIndex.FOCUSABLE, children: props.children }) }));
|
|
41
30
|
};
|
|
42
31
|
exports.SelectContainer = SelectContainer;
|
|
43
32
|
const isGroup = (options) => {
|
|
@@ -46,39 +35,40 @@ const isGroup = (options) => {
|
|
|
46
35
|
exports.isGroup = isGroup;
|
|
47
36
|
const DropdownIndicator = (props) => {
|
|
48
37
|
const { menuIsOpen } = props.selectProps;
|
|
49
|
-
return ((0, jsx_runtime_1.jsx)(react_select_1.components.DropdownIndicator,
|
|
38
|
+
return ((0, jsx_runtime_1.jsx)(react_select_1.components.DropdownIndicator, { ...props, children: (0, jsx_runtime_1.jsx)(ArrowDown_1.ArrowDown, { css: { ...(menuIsOpen ? { transform: 'rotateX(180deg)', marginTop: 2 } : { marginTop: 4 }) } }) }));
|
|
50
39
|
};
|
|
51
40
|
exports.DropdownIndicator = DropdownIndicator;
|
|
52
41
|
// eslint-disable-next-line react/display-name
|
|
53
42
|
const CustomOption = (dataUieName) => (props) => {
|
|
54
|
-
var _a;
|
|
55
43
|
const { children, data, isMulti, isSelected, options } = props;
|
|
56
|
-
return ((0, jsx_runtime_1.jsx)(react_select_1.components.Option,
|
|
57
|
-
|
|
58
|
-
|
|
44
|
+
return ((0, jsx_runtime_1.jsx)(react_select_1.components.Option, { ...props, children: (0, jsx_runtime_1.jsxs)("div", { css: {
|
|
45
|
+
...((isMulti || exports.isGroup) && {
|
|
46
|
+
display: 'grid',
|
|
47
|
+
gridTemplateAreas: `"checkbox label"
|
|
59
48
|
". description"`,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
49
|
+
gridTemplateColumns: '22px 1fr',
|
|
50
|
+
columnGap: exports.isGroup ? '5px' : '10px',
|
|
51
|
+
}),
|
|
52
|
+
}, ...(dataUieName && {
|
|
53
|
+
'data-uie-name': `option-${dataUieName}`,
|
|
54
|
+
'data-uie-value': options.find(option => option.label === children)?.value,
|
|
55
|
+
'data-uie-selected': isSelected,
|
|
56
|
+
}), children: [isMulti && ((0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: isSelected, onChange: () => null, css: { gridArea: 'checkbox', width: 22, height: 22, cursor: 'pointer', placeSelf: 'center' } })), (0, exports.isGroup)(options) && (
|
|
67
57
|
//includes a checkmark character if it is selected and a group
|
|
68
58
|
(0, jsx_runtime_1.jsx)("div", { css: { width: 22, height: 22, cursor: 'pointer', placeSelf: 'center' }, children: isSelected ? (0, jsx_runtime_1.jsx)(Icon_1.CheckIcon, {}) : null })), (0, jsx_runtime_1.jsx)("div", { css: { gridArea: 'label', overflowWrap: 'break-word', overflow: 'hidden' }, children: children }), data && data.description && ((0, jsx_runtime_1.jsx)("p", { css: (theme) => ({
|
|
69
59
|
marginBottom: 0,
|
|
70
60
|
fontSize: theme.fontSizes.medium,
|
|
71
61
|
color: isSelected ? theme.Select.focusedDescriptionColor : theme.Input.labelColor,
|
|
72
62
|
gridArea: 'description',
|
|
73
|
-
}), children: data.description }))] })
|
|
63
|
+
}), children: data.description }))] }) }));
|
|
74
64
|
};
|
|
75
65
|
exports.CustomOption = CustomOption;
|
|
76
66
|
// eslint-disable-next-line react/display-name
|
|
77
67
|
const Menu = (dataUieName) => (props) => {
|
|
78
68
|
const { children } = props;
|
|
79
|
-
return ((0, jsx_runtime_1.jsx)(react_select_1.components.Menu,
|
|
80
|
-
|
|
81
|
-
|
|
69
|
+
return ((0, jsx_runtime_1.jsx)(react_select_1.components.Menu, { ...props, children: (0, jsx_runtime_1.jsx)("div", { ...(dataUieName && {
|
|
70
|
+
'data-uie-name': `dropdown-${dataUieName}`,
|
|
71
|
+
}), children: children }) }));
|
|
82
72
|
};
|
|
83
73
|
exports.Menu = Menu;
|
|
84
74
|
const renderValue = value => {
|
|
@@ -96,15 +86,11 @@ const renderValue = value => {
|
|
|
96
86
|
return value;
|
|
97
87
|
};
|
|
98
88
|
exports.renderValue = renderValue;
|
|
99
|
-
const ValueContainer = (
|
|
100
|
-
var { children } = _a, restProps = __rest(_a, ["children"]);
|
|
101
|
-
return ((0, jsx_runtime_1.jsxs)(react_select_1.components.ValueContainer, Object.assign({}, restProps, { children: [(0, exports.renderValue)(children[0]), " ", children[1]] })));
|
|
102
|
-
};
|
|
89
|
+
const ValueContainer = ({ children, ...restProps }) => ((0, jsx_runtime_1.jsxs)(react_select_1.components.ValueContainer, { ...restProps, children: [(0, exports.renderValue)(children[0]), " ", children[1]] }));
|
|
103
90
|
exports.ValueContainer = ValueContainer;
|
|
104
|
-
const IndicatorsContainer = (
|
|
105
|
-
var { children } = _a, restProps = __rest(_a, ["children"]);
|
|
91
|
+
const IndicatorsContainer = ({ children, ...restProps }) => {
|
|
106
92
|
const value = restProps.getValue();
|
|
107
93
|
const displaySelectedOptionsCount = Array.isArray(value) && value.length > 1;
|
|
108
|
-
return ((0, jsx_runtime_1.jsxs)(react_select_1.components.IndicatorsContainer,
|
|
94
|
+
return ((0, jsx_runtime_1.jsxs)(react_select_1.components.IndicatorsContainer, { ...restProps, children: [displaySelectedOptionsCount && (0, jsx_runtime_1.jsxs)("div", { css: { fontWeight: 600 }, children: ["(+", value.length - 1, ")"] }), children] }));
|
|
109
95
|
};
|
|
110
96
|
exports.IndicatorsContainer = IndicatorsContainer;
|
package/lib/Form/SelectStyles.js
CHANGED
|
@@ -25,25 +25,36 @@ const customStyles = ({ theme, markInvalid = false, menuPosition = 'absolute' })
|
|
|
25
25
|
indicatorSeparator: () => ({
|
|
26
26
|
display: 'none',
|
|
27
27
|
}),
|
|
28
|
-
indicatorsContainer: provided => (
|
|
28
|
+
indicatorsContainer: provided => ({
|
|
29
|
+
...provided,
|
|
30
|
+
}),
|
|
29
31
|
container: (_, { isDisabled, selectProps, options }) => {
|
|
30
32
|
const { menuIsOpen } = selectProps;
|
|
31
33
|
const isSelectDisabled = selectProps.isDisabled;
|
|
32
34
|
return {
|
|
33
|
-
'& > div > div[class$="-Control"]':
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
'& > div > div[class$="-Control"]': {
|
|
36
|
+
...(0, Input_1.inputStyle)(theme, { disabled: isSelectDisabled, markInvalid }),
|
|
37
|
+
borderRadius: 12,
|
|
38
|
+
minHeight: 48,
|
|
39
|
+
...(isDisabled && {
|
|
40
|
+
backgroundColor: theme.Input.backgroundColorDisabled,
|
|
41
|
+
color: theme.Select.disabledColor,
|
|
42
|
+
cursor: 'default',
|
|
43
|
+
}),
|
|
44
|
+
...(markInvalid && {
|
|
45
|
+
boxShadow: `0 0 0 1px ${theme.general.dangerColor}`,
|
|
46
|
+
}),
|
|
47
|
+
...(menuIsOpen && {
|
|
42
48
|
boxShadow: `0 0 0 1px ${theme.general.primaryColor}`,
|
|
43
|
-
|
|
44
|
-
|
|
49
|
+
'&:hover': {
|
|
50
|
+
boxShadow: `0 0 0 1px ${theme.general.primaryColor}`,
|
|
51
|
+
},
|
|
52
|
+
}),
|
|
53
|
+
cursor: !isSelectDisabled && 'pointer',
|
|
54
|
+
'&:focus:visible, active': {
|
|
45
55
|
boxShadow: !isSelectDisabled && `0 0 0 1px ${theme.general.primaryColor}`,
|
|
46
|
-
}
|
|
56
|
+
},
|
|
57
|
+
},
|
|
47
58
|
'& > div': (0, SelectComponents_1.isGroup)(options)
|
|
48
59
|
? {
|
|
49
60
|
display: 'inline',
|
|
@@ -62,86 +73,157 @@ const customStyles = ({ theme, markInvalid = false, menuPosition = 'absolute' })
|
|
|
62
73
|
},
|
|
63
74
|
};
|
|
64
75
|
},
|
|
65
|
-
control: (_provided, { options }) => (
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
76
|
+
control: (_provided, { options }) => ({
|
|
77
|
+
display: 'flex',
|
|
78
|
+
alignItems: 'center',
|
|
79
|
+
appearance: 'none',
|
|
80
|
+
padding: '0 8px 0 16px',
|
|
81
|
+
height: 'auto',
|
|
82
|
+
minHeight: '48px',
|
|
83
|
+
...((0, SelectComponents_1.isGroup)(options) && {
|
|
84
|
+
position: 'absolute',
|
|
85
|
+
zIndex: -9999,
|
|
86
|
+
}),
|
|
87
|
+
}),
|
|
69
88
|
dropdownIndicator: (provided, selectProps) => {
|
|
70
89
|
const isSelectDisabled = selectProps.isDisabled;
|
|
71
|
-
return
|
|
90
|
+
return {
|
|
91
|
+
...provided,
|
|
92
|
+
'& > svg': {
|
|
72
93
|
fill: isSelectDisabled && theme.Input.placeholderColor,
|
|
73
|
-
}
|
|
94
|
+
},
|
|
95
|
+
};
|
|
74
96
|
},
|
|
75
|
-
group: provided => (
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
minWidth: '400px',
|
|
79
|
-
}))),
|
|
80
|
-
menuList: provided => (Object.assign(Object.assign({}, provided), { borderRadius: 0, paddingBottom: 0, paddingTop: 0, maxHeight: 400 })),
|
|
81
|
-
option: (provided, { isMulti, isDisabled, isFocused, isSelected, options, data }) => (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, provided), { backgroundColor: theme.Input.backgroundColor, color: theme.general.color, padding: (0, SelectComponents_1.isGroup)(options) ? '6px 16px' : '10px 18px', cursor: isDisabled ? 'not-allowed' : 'pointer', fontSize: theme.fontSizes.base, fontWeight: isSelected && (0, SelectComponents_1.isGroup)(options) ? 600 : 400, lineHeight: '1.5rem' }), (isSelected &&
|
|
82
|
-
!isDisabled &&
|
|
83
|
-
!isMulti && {
|
|
84
|
-
background: theme.general.primaryColor,
|
|
85
|
-
borderColor: theme.general.primaryColor,
|
|
86
|
-
color: theme.Select.contrastTextColor,
|
|
87
|
-
'&:hover': {
|
|
88
|
-
backgroundColor: theme.Select.selectedActiveBg,
|
|
89
|
-
},
|
|
90
|
-
'&:active': {
|
|
91
|
-
backgroundColor: theme.general.primaryColor,
|
|
92
|
-
boxShadow: `inset 0 0 0 1px ${theme.Select.selectedActiveBg}`,
|
|
93
|
-
color: theme.general.contrastColor,
|
|
94
|
-
},
|
|
95
|
-
})), (isFocused &&
|
|
96
|
-
!isDisabled &&
|
|
97
|
-
!isSelected && {
|
|
98
|
-
backgroundColor: theme.Select.optionHoverBg,
|
|
99
|
-
borderColor: theme.Select.optionHoverBg,
|
|
100
|
-
color: theme.general.color,
|
|
101
|
-
'&:active': {
|
|
102
|
-
background: theme.Select.optionHoverBg,
|
|
103
|
-
boxShadow: `inset 0 0 0 1px ${theme.Select.selectedActiveBg}`,
|
|
104
|
-
color: theme.general.color,
|
|
105
|
-
},
|
|
106
|
-
})), (isMulti &&
|
|
107
|
-
isSelected && {
|
|
97
|
+
group: provided => ({
|
|
98
|
+
...provided,
|
|
99
|
+
padding: 0,
|
|
108
100
|
backgroundColor: theme.Input.backgroundColor,
|
|
109
|
-
|
|
101
|
+
}),
|
|
102
|
+
groupHeading: provided => ({
|
|
103
|
+
...provided,
|
|
104
|
+
display: 'flex',
|
|
105
|
+
fontSize: theme.fontSizes.small,
|
|
106
|
+
lineHeight: '14px',
|
|
107
|
+
color: theme.Select.disabledColor,
|
|
108
|
+
padding: '8px 16px 6px 16px',
|
|
109
|
+
}),
|
|
110
|
+
menu: (provided, { options }) => ({
|
|
111
|
+
...provided,
|
|
112
|
+
boxShadow: `0 0 0 1px ${theme.general.primaryColor}, 0 4px 11px hsl(0deg 0% 0% / 10%)`,
|
|
113
|
+
borderRadius: 12,
|
|
114
|
+
marginBottom: 0,
|
|
115
|
+
marginTop: 4,
|
|
116
|
+
overflowY: 'overlay',
|
|
117
|
+
position: menuPosition,
|
|
118
|
+
...((0, SelectComponents_1.isGroup)(options) && {
|
|
119
|
+
minWidth: '400px',
|
|
120
|
+
}),
|
|
121
|
+
}),
|
|
122
|
+
menuList: provided => ({
|
|
123
|
+
...provided,
|
|
124
|
+
borderRadius: 0,
|
|
125
|
+
paddingBottom: 0,
|
|
126
|
+
paddingTop: 0,
|
|
127
|
+
maxHeight: 400,
|
|
128
|
+
}),
|
|
129
|
+
option: (provided, { isMulti, isDisabled, isFocused, isSelected, options, data }) => ({
|
|
130
|
+
...provided,
|
|
131
|
+
backgroundColor: theme.Input.backgroundColor,
|
|
132
|
+
color: theme.general.color,
|
|
133
|
+
padding: (0, SelectComponents_1.isGroup)(options) ? '6px 16px' : '10px 18px',
|
|
134
|
+
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
135
|
+
fontSize: theme.fontSizes.base,
|
|
136
|
+
fontWeight: isSelected && (0, SelectComponents_1.isGroup)(options) ? 600 : 400,
|
|
137
|
+
lineHeight: '1.5rem',
|
|
138
|
+
...(isSelected &&
|
|
139
|
+
!isDisabled &&
|
|
140
|
+
!isMulti && {
|
|
141
|
+
background: theme.general.primaryColor,
|
|
142
|
+
borderColor: theme.general.primaryColor,
|
|
143
|
+
color: theme.Select.contrastTextColor,
|
|
144
|
+
'&:hover': {
|
|
145
|
+
backgroundColor: theme.Select.selectedActiveBg,
|
|
146
|
+
},
|
|
147
|
+
'&:active': {
|
|
148
|
+
backgroundColor: theme.general.primaryColor,
|
|
149
|
+
boxShadow: `inset 0 0 0 1px ${theme.Select.selectedActiveBg}`,
|
|
150
|
+
color: theme.general.contrastColor,
|
|
151
|
+
},
|
|
152
|
+
}),
|
|
153
|
+
...(isFocused &&
|
|
154
|
+
!isDisabled &&
|
|
155
|
+
!isSelected && {
|
|
110
156
|
backgroundColor: theme.Select.optionHoverBg,
|
|
111
|
-
|
|
112
|
-
'&:active': {
|
|
113
|
-
background: theme.Select.optionHoverBg,
|
|
114
|
-
boxShadow: `inset 0 0 0 1px ${theme.Select.selectedActiveBg}`,
|
|
157
|
+
borderColor: theme.Select.optionHoverBg,
|
|
115
158
|
color: theme.general.color,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
159
|
+
'&:active': {
|
|
160
|
+
background: theme.Select.optionHoverBg,
|
|
161
|
+
boxShadow: `inset 0 0 0 1px ${theme.Select.selectedActiveBg}`,
|
|
162
|
+
color: theme.general.color,
|
|
163
|
+
},
|
|
164
|
+
}),
|
|
165
|
+
...(isMulti &&
|
|
166
|
+
isSelected && {
|
|
167
|
+
backgroundColor: theme.Input.backgroundColor,
|
|
168
|
+
'&:hover': {
|
|
169
|
+
backgroundColor: theme.Select.optionHoverBg,
|
|
170
|
+
},
|
|
171
|
+
'&:active': {
|
|
172
|
+
background: theme.Select.optionHoverBg,
|
|
173
|
+
boxShadow: `inset 0 0 0 1px ${theme.Select.selectedActiveBg}`,
|
|
174
|
+
color: theme.general.color,
|
|
175
|
+
},
|
|
176
|
+
}),
|
|
177
|
+
...(isDisabled && {
|
|
178
|
+
backgroundColor: theme.Input.backgroundColorDisabled,
|
|
119
179
|
color: theme.Select.disabledColor,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
180
|
+
'&:hover, &:active, &:focus': {
|
|
181
|
+
backgroundColor: theme.Select.borderColor,
|
|
182
|
+
color: theme.Select.disabledColor,
|
|
183
|
+
},
|
|
184
|
+
...(isFocused && {
|
|
185
|
+
backgroundColor: theme.Select.borderColor,
|
|
186
|
+
color: theme.Select.disabledColor,
|
|
187
|
+
}),
|
|
188
|
+
}),
|
|
189
|
+
...((0, SelectComponents_1.isGroup)(options) && {
|
|
190
|
+
'div > svg': {
|
|
191
|
+
fill: theme.general.contrastColor,
|
|
192
|
+
},
|
|
193
|
+
}),
|
|
194
|
+
...(!(0, SelectComponents_1.isGroup)(options) && {
|
|
195
|
+
'&:not(:last-of-type)': {
|
|
196
|
+
borderBottom: `1px solid ${theme.Select.borderColor}`,
|
|
197
|
+
},
|
|
198
|
+
}),
|
|
199
|
+
...(!(0, SelectComponents_1.isGroup)(options) && {
|
|
200
|
+
'&:first-of-type': {
|
|
201
|
+
borderRadius: '0',
|
|
202
|
+
},
|
|
203
|
+
}),
|
|
204
|
+
...((0, SelectComponents_1.isGroup)(options) && {
|
|
205
|
+
textAlign: 'left',
|
|
206
|
+
}),
|
|
207
|
+
'&:last-of-type': {
|
|
208
|
+
...(!(0, SelectComponents_1.isGroup)(options) && { borderRadius: '0' }),
|
|
209
|
+
...((0, SelectComponents_1.isGroup)(options) &&
|
|
210
|
+
!options[options.length - 1].options.includes(data) && {
|
|
211
|
+
borderBottom: `1px solid ${theme.Select.borderColor}`,
|
|
212
|
+
}),
|
|
134
213
|
},
|
|
135
|
-
})
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
214
|
+
}),
|
|
215
|
+
valueContainer: provided => ({
|
|
216
|
+
...provided,
|
|
217
|
+
padding: 0,
|
|
218
|
+
width: '100%',
|
|
219
|
+
display: 'grid',
|
|
220
|
+
}),
|
|
142
221
|
singleValue: (provided, selectProps) => {
|
|
143
222
|
const isSelectDisabled = selectProps.isDisabled;
|
|
144
|
-
return
|
|
223
|
+
return {
|
|
224
|
+
...provided,
|
|
225
|
+
color: isSelectDisabled ? theme.Input.placeholderColor : theme.general.color,
|
|
226
|
+
};
|
|
145
227
|
},
|
|
146
228
|
});
|
|
147
229
|
exports.customStyles = customStyles;
|
package/lib/Form/TextArea.js
CHANGED
|
@@ -53,9 +53,16 @@ const textAreaStyle = (theme, { markInvalid = false, placeholderTextTransform =
|
|
|
53
53
|
textTransform: placeholderTextTransform,
|
|
54
54
|
};
|
|
55
55
|
return {
|
|
56
|
-
'&::-moz-placeholder':
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
'&::-moz-placeholder': {
|
|
57
|
+
...placeholderStyle,
|
|
58
|
+
opacity: 1,
|
|
59
|
+
},
|
|
60
|
+
'&::-ms-input-placeholder': {
|
|
61
|
+
...placeholderStyle,
|
|
62
|
+
},
|
|
63
|
+
'&::-webkit-input-placeholder': {
|
|
64
|
+
...placeholderStyle,
|
|
65
|
+
},
|
|
59
66
|
'&:focus': {
|
|
60
67
|
boxShadow: `0 0 0 1px ${Identity_1.COLOR.BLUE}`,
|
|
61
68
|
},
|
|
@@ -82,5 +89,5 @@ const textAreaStyle = (theme, { markInvalid = false, placeholderTextTransform =
|
|
|
82
89
|
exports.textAreaStyle = textAreaStyle;
|
|
83
90
|
exports.TEXTAREA_CLASSNAME = 'textarea';
|
|
84
91
|
const filterTextAreaProps = (props) => (0, util_1.filterProps)(props, ['markInvalid', 'placeholderTextTransform']);
|
|
85
|
-
exports.TextArea = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)("textarea",
|
|
92
|
+
exports.TextArea = React.forwardRef((props, ref) => ((0, jsx_runtime_1.jsx)("textarea", { className: exports.TEXTAREA_CLASSNAME, css: (theme) => (0, exports.textAreaStyle)(theme, props), ref: ref, ...filterTextAreaProps(props) })));
|
|
86
93
|
exports.TextArea.displayName = 'TextArea';
|
package/lib/Form/Tooltip.js
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.Tooltip = void 0;
|
|
15
4
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
@@ -108,8 +97,7 @@ const PortalComponent = ({ children, bounding, selector = '#wire-app' }) => {
|
|
|
108
97
|
return (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsxs)("div", { ref: tooltipRef, className: "tooltip", css: (theme) => tooltipStyle(theme), "data-position": isTouchingTop ? 'bottom' : 'top', children: [(0, jsx_runtime_1.jsx)("div", { ref: tooltipArrowRef, className: "tooltip-arrow" }), (0, jsx_runtime_1.jsx)("div", { className: "tooltip-content", "data-testid": "tooltip-content", children: children })] }), targetElement);
|
|
109
98
|
};
|
|
110
99
|
const filterTooltipProps = (props) => (0, util_1.filterProps)(props, ['body']);
|
|
111
|
-
const Tooltip = (
|
|
112
|
-
var { children } = _a, props = __rest(_a, ["children"]);
|
|
100
|
+
const Tooltip = ({ children, ...props }) => {
|
|
113
101
|
const [isHovered, setIsHovered] = (0, react_1.useState)(false);
|
|
114
102
|
const boundingRectRef = (0, react_1.useRef)();
|
|
115
103
|
const filteredProps = filterTooltipProps(props);
|
|
@@ -120,6 +108,6 @@ const Tooltip = (_a) => {
|
|
|
120
108
|
boundingRectRef.current = boundingRect;
|
|
121
109
|
};
|
|
122
110
|
const onElementLeave = () => setIsHovered(false);
|
|
123
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
111
|
+
return ((0, jsx_runtime_1.jsxs)("div", { role: "presentation", ...filteredProps, "data-testid": "tooltip-wrapper", onMouseEnter: onElementEnter, onMouseLeave: onElementLeave, onFocus: onElementEnter, onBlur: onElementLeave, ...props, children: [children, isHovered && ((0, jsx_runtime_1.jsx)(PortalComponent, { bounding: boundingRectRef.current, selector: selector, children: body }))] }));
|
|
124
112
|
};
|
|
125
113
|
exports.Tooltip = Tooltip;
|
package/lib/GlobalStyle.d.ts
CHANGED
package/lib/GlobalStyle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalStyle.d.ts","sourceRoot":"","sources":["../src/GlobalStyle.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GlobalStyle.d.ts","sourceRoot":"","sources":["../src/GlobalStyle.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAC,KAAK,EAAC,MAAM,UAAU,CAAC;AA8C/B,eAAO,MAAM,WAAW;WAA+B,KAAK;;;EAU1D,CAAC"}
|
package/lib/GlobalStyle.js
CHANGED
|
@@ -33,9 +33,23 @@ const getGlobalStyles = (theme) => ({
|
|
|
33
33
|
'b, strong': {
|
|
34
34
|
fontWeight: 600,
|
|
35
35
|
},
|
|
36
|
-
body:
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
body: {
|
|
37
|
+
...GlobalCssVariables_1.GlobalCssVariables.accentColors(),
|
|
38
|
+
MozOsxFontSmoothing: 'grayscale',
|
|
39
|
+
WebkitFontSmoothing: 'antialiased',
|
|
40
|
+
background: theme.general.backgroundColor,
|
|
41
|
+
color: theme.general.color,
|
|
42
|
+
display: 'flex',
|
|
43
|
+
flexDirection: 'column',
|
|
44
|
+
minHeight: '100vh',
|
|
45
|
+
transition: 'background 0.15s',
|
|
46
|
+
},
|
|
47
|
+
'body, body.theme-default': {
|
|
48
|
+
...GlobalCssVariables_1.GlobalCssVariables.light(),
|
|
49
|
+
},
|
|
50
|
+
'body.theme-dark': {
|
|
51
|
+
...GlobalCssVariables_1.GlobalCssVariables.dark(),
|
|
52
|
+
},
|
|
39
53
|
html: {
|
|
40
54
|
background: theme.general.backgroundColor,
|
|
41
55
|
transition: 'background 0.15s',
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.AddPeopleIcon = void 0;
|
|
15
4
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
@@ -32,8 +21,5 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
|
32
21
|
*
|
|
33
22
|
*/
|
|
34
23
|
const SVGIcon_1 = require("./SVGIcon");
|
|
35
|
-
const AddPeopleIcon = (
|
|
36
|
-
var props = __rest(_a, []);
|
|
37
|
-
return ((0, jsx_runtime_1.jsx)(SVGIcon_1.SVGIcon, Object.assign({ realWidth: 16, realHeight: 16 }, props, { children: (0, jsx_runtime_1.jsx)("path", { d: "M12 2V0h2v2h2v2h-2v2h-2V4h-2V2h2zm-2.6 8.6c1.4 0 2.6 1.1 2.6 2.5v1.1a12.8 12.8 0 0 1-12 0v-1c0-1.5 1.2-2.6 2.6-2.6h.3a6 6 0 0 0 6.2 0h.3zM6 8.9A3.4 3.4 0 1 1 6 2a3.4 3.4 0 0 1 0 6.9z" }) })));
|
|
38
|
-
};
|
|
24
|
+
const AddPeopleIcon = ({ ...props }) => ((0, jsx_runtime_1.jsx)(SVGIcon_1.SVGIcon, { realWidth: 16, realHeight: 16, ...props, children: (0, jsx_runtime_1.jsx)("path", { d: "M12 2V0h2v2h2v2h-2v2h-2V4h-2V2h2zm-2.6 8.6c1.4 0 2.6 1.1 2.6 2.5v1.1a12.8 12.8 0 0 1-12 0v-1c0-1.5 1.2-2.6 2.6-2.6h.3a6 6 0 0 0 6.2 0h.3zM6 8.9A3.4 3.4 0 1 1 6 2a3.4 3.4 0 0 1 0 6.9z" }) }));
|
|
39
25
|
exports.AddPeopleIcon = AddPeopleIcon;
|
package/lib/Icon/ArchiveIcon.js
CHANGED
|
@@ -21,5 +21,5 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
23
|
const SVGIcon_1 = require("./SVGIcon");
|
|
24
|
-
const ArchiveIcon = (props) => ((0, jsx_runtime_1.jsx)(SVGIcon_1.SVGIcon,
|
|
24
|
+
const ArchiveIcon = (props) => ((0, jsx_runtime_1.jsx)(SVGIcon_1.SVGIcon, { realWidth: 16, realHeight: 16, ...props, children: (0, jsx_runtime_1.jsx)("path", { d: "M1 7h14v7a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7zm6 2a1 1 0 1 0 0 2h2a1 1 0 0 0 0-2H7zM2.5 0h11c.8 0 1.2 0 1.5.3.3.1.6.4.7.7.2.3.3.7.3 1.5V4c0 .6-.4 1-1 1H1a1 1 0 0 1-1-1V2.5C0 1.7 0 1.3.3 1 .4.7.7.4 1 .3c.3-.2.7-.3 1.5-.3z" }) }));
|
|
25
25
|
exports.ArchiveIcon = ArchiveIcon;
|
package/lib/Icon/ArrowDown.js
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.ArrowDown = void 0;
|
|
15
4
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
@@ -32,8 +21,5 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
|
32
21
|
*
|
|
33
22
|
*/
|
|
34
23
|
const SVGIcon_1 = require("./SVGIcon");
|
|
35
|
-
const ArrowDown = (
|
|
36
|
-
var props = __rest(_a, []);
|
|
37
|
-
return ((0, jsx_runtime_1.jsx)(SVGIcon_1.SVGIcon, Object.assign({ realWidth: 16, realHeight: 16 }, props, { children: (0, jsx_runtime_1.jsx)("path", { d: "M7.99963 12.5711L15.6565 4.91421L14.2423 3.5L7.99963 9.74264L1.75699 3.5L0.342773 4.91421L7.99963 12.5711Z" }) })));
|
|
38
|
-
};
|
|
24
|
+
const ArrowDown = ({ ...props }) => ((0, jsx_runtime_1.jsx)(SVGIcon_1.SVGIcon, { realWidth: 16, realHeight: 16, ...props, children: (0, jsx_runtime_1.jsx)("path", { d: "M7.99963 12.5711L15.6565 4.91421L14.2423 3.5L7.99963 9.74264L1.75699 3.5L0.342773 4.91421L7.99963 12.5711Z" }) }));
|
|
39
25
|
exports.ArrowDown = ArrowDown;
|
package/lib/Icon/ArrowIcon.js
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.ArrowIcon = exports.rotation = void 0;
|
|
15
4
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
@@ -38,8 +27,5 @@ exports.rotation = {
|
|
|
38
27
|
left: 180,
|
|
39
28
|
up: 270,
|
|
40
29
|
};
|
|
41
|
-
const ArrowIcon = (
|
|
42
|
-
var { direction = 'right' } = _a, props = __rest(_a, ["direction"]);
|
|
43
|
-
return ((0, jsx_runtime_1.jsx)(SVGIcon_1.SVGIcon, Object.assign({ realWidth: 16, realHeight: 16 }, props, { children: (0, jsx_runtime_1.jsx)("path", { transform: `rotate(${exports.rotation[direction]} 8 8)`, d: "M5.8 1.5L7.3 0l8 8-8 8-1.5-1.5L11.3 9H.7V7h10.6" }) })));
|
|
44
|
-
};
|
|
30
|
+
const ArrowIcon = ({ direction = 'right', ...props }) => ((0, jsx_runtime_1.jsx)(SVGIcon_1.SVGIcon, { realWidth: 16, realHeight: 16, ...props, children: (0, jsx_runtime_1.jsx)("path", { transform: `rotate(${exports.rotation[direction]} 8 8)`, d: "M5.8 1.5L7.3 0l8 8-8 8-1.5-1.5L11.3 9H.7V7h10.6" }) }));
|
|
45
31
|
exports.ArrowIcon = ArrowIcon;
|
|
@@ -21,5 +21,5 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
23
|
const SVGIcon_1 = require("./SVGIcon");
|
|
24
|
-
const AttachmentIcon = (props) => ((0, jsx_runtime_1.jsx)(SVGIcon_1.SVGIcon,
|
|
24
|
+
const AttachmentIcon = (props) => ((0, jsx_runtime_1.jsx)(SVGIcon_1.SVGIcon, { realWidth: 14, realHeight: 16, ...props, children: (0, jsx_runtime_1.jsx)("path", { d: "M1.6 7.7l4.8-4.8A3.3 3.3 0 0 1 11 3a3.4 3.4 0 0 1 0 4.8L9.8 9.1l-4.4 4.4a2 2 0 0 1-2.8 0 2 2 0 0 1 0-2.7L4 9.4 8.4 5c.2-.2.5-.2.7 0 .2.2.2.5 0 .6l-4.8 4.8a1 1 0 0 0 0 1.4c.4.4 1 .4 1.4 0L10.4 7c1-1 1-2.5 0-3.4-1-1-2.4-1-3.3 0L2.6 8 1.3 9.4a3.9 3.9 0 0 0 0 5.5c1.5 1.5 4 1.5 5.4 0l4.4-4.5 1.4-1.3c2-2.1 2-5.5 0-7.5a5.3 5.3 0 0 0-7.5 0L.3 6.3a1 1 0 0 0 0 1.4c.4.4 1 .4 1.3 0z" }) }));
|
|
25
25
|
exports.AttachmentIcon = AttachmentIcon;
|
|
@@ -21,5 +21,5 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
23
|
const SVGIcon_1 = require("./SVGIcon");
|
|
24
|
-
const AudioVideoIcon = (props) => ((0, jsx_runtime_1.jsx)(SVGIcon_1.SVGIcon,
|
|
24
|
+
const AudioVideoIcon = (props) => ((0, jsx_runtime_1.jsx)(SVGIcon_1.SVGIcon, { realWidth: 16, realHeight: 16, ...props, children: (0, jsx_runtime_1.jsx)("path", { d: "M0 1c0-.6.4-1 1-1h14c.6 0 1 .4 1 1v11c0 .6-.4 1-1 1H1a1 1 0 0 1-1-1V1zm5 13h6v2H5v-2zm-3-4v1h3v-1H2zm0-2v1h3V8H2zm0-2v1h3V6H2zm0-2v1h3V4H2zm4.5 6v1h3v-1h-3zm0-2v1h3V8h-3zm4.5 2v1h3v-1h-3zm0-2v1h3V8h-3zm0-2v1h3V6h-3z" }) }));
|
|
25
25
|
exports.AudioVideoIcon = AudioVideoIcon;
|
package/lib/Icon/BlockIcon.js
CHANGED
|
@@ -21,5 +21,5 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
23
|
const SVGIcon_1 = require("./SVGIcon");
|
|
24
|
-
const BlockIcon = (props) => ((0, jsx_runtime_1.jsx)(SVGIcon_1.SVGIcon,
|
|
24
|
+
const BlockIcon = (props) => ((0, jsx_runtime_1.jsx)(SVGIcon_1.SVGIcon, { realWidth: 16, realHeight: 16, ...props, children: (0, jsx_runtime_1.jsx)("path", { d: "M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm4.9-11.48l-.2.19-8.18 8.18a6 6 0 0 0 8.37-8.37zm-1.42-1.41a6 6 0 0 0-8.37 8.37l8.18-8.19.19-.18z" }) }));
|
|
25
25
|
exports.BlockIcon = BlockIcon;
|
|
@@ -21,5 +21,5 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
23
|
const SVGIcon_1 = require("../SVGIcon");
|
|
24
|
-
const AndroidIcon = (props) => ((0, jsx_runtime_1.jsx)(SVGIcon_1.SVGIcon,
|
|
24
|
+
const AndroidIcon = (props) => ((0, jsx_runtime_1.jsx)(SVGIcon_1.SVGIcon, { realWidth: 32, realHeight: 32, ...props, children: (0, jsx_runtime_1.jsx)("path", { d: "M4.04 10.35c-1.133 0-2.04.886-2.04 1.971v8.268c0 1.094.916 1.971 2.04 1.971 1.131 0 2.038-.886 2.038-1.971V12.32c0-1.085-.916-1.971-2.039-1.971zm16.465-7.425L21.933.406a.276.276 0 0 0-.108-.373c-.134-.07-.314-.026-.386.112L20.002 2.69a10.133 10.133 0 0 0-4.006-.816 10.04 10.04 0 0 0-3.989.807L10.57.145a.297.297 0 0 0-.386-.112.277.277 0 0 0-.117.373l1.428 2.519C8.692 4.323 6.797 6.98 6.797 10.037h18.397c0-3.057-1.886-5.714-4.689-7.112zm-8.696 3.89a.76.76 0 0 1-.772-.747.76.76 0 0 1 .772-.747c.423 0 .773.34.773.747a.754.754 0 0 1-.773.747zm8.382 0a.76.76 0 0 1-.773-.747.76.76 0 0 1 .773-.747c.422 0 .772.34.772.747a.772.772 0 0 1-.772.747zM6.869 10.723v12.818c0 1.164.97 2.11 2.183 2.11h1.482v4.378c0 1.085.916 1.971 2.039 1.971 1.132 0 2.04-.886 2.04-1.98v-4.377h2.757v4.377c0 1.086.916 1.971 2.039 1.971 1.132 0 2.04-.885 2.04-1.971v-4.377h1.49c1.204 0 2.183-.938 2.183-2.11V10.714l-18.253.01zM30 12.321c0-1.094-.916-1.971-2.04-1.971-1.131 0-2.038.886-2.038 1.971v8.268c0 1.094.916 1.971 2.039 1.971 1.132 0 2.039-.886 2.039-1.971V12.32z", fillRule: "evenodd" }) }));
|
|
25
25
|
exports.AndroidIcon = AndroidIcon;
|
|
@@ -21,5 +21,5 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
23
|
const SVGIcon_1 = require("../SVGIcon");
|
|
24
|
-
const AppleIcon = (props) => ((0, jsx_runtime_1.jsx)(SVGIcon_1.SVGIcon,
|
|
24
|
+
const AppleIcon = (props) => ((0, jsx_runtime_1.jsx)(SVGIcon_1.SVGIcon, { realWidth: 32, realHeight: 32, ...props, children: (0, jsx_runtime_1.jsx)("path", { d: "M24.716 17.018c.041 4.845 4.233 6.447 4.284 6.464-.025.113-.656 2.312-2.228 4.545-1.313 1.965-2.689 3.887-4.873 3.922-2.122.049-2.836-1.25-5.27-1.25-2.457 0-3.217 1.215-5.252 1.299-2.081.077-3.67-2.098-5.031-4.046-2.72-3.978-4.837-11.21-1.998-16.13 1.375-2.413 3.883-3.967 6.564-4.009 2.083-.042 4.016 1.409 5.296 1.409 1.255 0 3.645-1.736 6.11-1.476 1.03.03 3.964.407 5.857 3.17-.153.092-3.495 2.059-3.459 6.102zM20.707 5.129c-1.142 1.35-2.97 2.382-4.75 2.249-.233-1.821.67-3.758 1.679-4.94C18.777 1.098 20.759.07 22.343 0c.208 1.893-.54 3.758-1.636 5.129z", fillRule: "evenodd" }) }));
|
|
25
25
|
exports.AppleIcon = AppleIcon;
|