widenarrow-ui 0.1.13 → 0.1.14
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/assets/svg/askWideNarrow.d.ts +6 -0
- package/lib/assets/svg/automation.d.ts +6 -0
- package/lib/assets/svg/textAdd.d.ts +6 -0
- package/lib/assets/svg/textReplace.d.ts +6 -0
- package/lib/components/Separator/Separator.d.ts +2 -2
- package/lib/constants.d.ts +4 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.esm.js +424 -392
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +424 -391
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/svg/askWideNarrow.tsx +28 -0
- package/src/assets/svg/automation.tsx +18 -0
- package/src/assets/svg/textAdd.tsx +13 -0
- package/src/assets/svg/textReplace.tsx +18 -0
- package/src/components/Icon/getIconFromConstant.tsx +12 -0
- package/src/components/Separator/Separator.tsx +13 -3
- package/src/components/ToolTip/ToolTip.tsx +1 -1
- package/src/constants.ts +4 -0
- package/src/index.ts +2 -3
package/package.json
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
interface Props {
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const Icon: FC<Props> = ({ className }) => (
|
|
8
|
+
<svg className={className} xmlns="http://www.w3.org/2000/svg" fill="none" width="24px" height="24px" viewBox="0 0 24 24">
|
|
9
|
+
<g clip-path="url(#a)">
|
|
10
|
+
<path d="M13.73 5.196c-.744-2.819-4.014-2.185-4.585 0-2.407-.23-3.323 2.992-2.752 3.335-1.72 0-1.948 2.415-1.72 3.452-1.835.863-1.546 3.968-.072 4.14.073 1.957.763 3.223 1.68 3.223.345 1.955 1.36 2.415 2.286 2.415.923 2.072 2.988 3.568 5.166.46V5.196h-.004Z" />
|
|
11
|
+
<path d="M13.523 22.317c1.949 2.303 4.014 2.186 4.585 0 2.406.23 3.322-2.991 2.751-3.334 1.72 0 1.949-2.416 1.72-3.452 1.733-.497 2.018-3.085.073-4.141-.073-1.956-.764-3.222-1.68-3.222-.345-1.956-1.36-2.416-2.287-2.416-.624-2.438-4.176-3.661-5.165-.46v17.029l.003-.004Z" />
|
|
12
|
+
<path
|
|
13
|
+
fill="#fff"
|
|
14
|
+
fill-rule="evenodd"
|
|
15
|
+
d="M18.925 8.276c-1.103 0-1.221 1.2-1.221 1.2l.014.015s.074-.03.192-.03c.235 0 .633.134.633.978 0 1.408-1.825 6.788-3.076 6.788-.369 0-.471-.282-.471-.593 0-.282.117-.593.161-.741l1.987-5.972h-2.34l-.971 2.993c-.31.934-1.56 4.313-2.59 4.313-.28 0-.354-.267-.354-.46 0-1.23 2.282-4.43 2.282-6.372 0-1.26-.825-1.823-1.973-1.823-.986 0-1.884.385-2.679 1.023-1.207.963-2.12 2.445-2.12 3.853 0 .474.28 1.334 1.12 1.334.824 0 1.368-.83 1.53-1.482a.986.986 0 0 1-.265.044c-.353 0-.544-.237-.544-.667 0-.89 1.221-3.141 2.252-3.141.382 0 .426.355.426.607v.074c0 1.112-2.457 5.083-2.457 6.95 0 .83.353 1.867 1.5 1.867 1.37 0 2.223-1.14 2.723-2.06h.015c-.014.104-.014.208-.014.297 0 .934.574 1.764 1.692 1.764 2.767 0 5.623-6.521 5.623-9.292-.044-.815-.28-1.467-1.075-1.467Z"
|
|
16
|
+
clip-rule="evenodd"
|
|
17
|
+
/>
|
|
18
|
+
</g>
|
|
19
|
+
<path d="M1.6 2.955 4.667 0l2.857 3.173-3.068 2.955zM0 7.27l1.533-1.477L2.96 7.38 1.427 8.855 0 7.27Z" />
|
|
20
|
+
<defs>
|
|
21
|
+
<clipPath id="a">
|
|
22
|
+
<path fill="#fff" d="M2.4 3.31H24V24H2.4z" />
|
|
23
|
+
</clipPath>
|
|
24
|
+
</defs>
|
|
25
|
+
</svg>
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
export default Icon;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
interface Props {
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const Icon: FC<Props> = ({ className }) => (
|
|
8
|
+
<svg className={className} xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="-2 -2 24 24">
|
|
9
|
+
<path
|
|
10
|
+
fill-rule="evenodd"
|
|
11
|
+
d="M17.1593 10.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65c-.03-.24-.24-.42-.49-.42H7.72933c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25L.0693316 6.73c-.13.22-.0699999.49.1200004.64L2.29933 9.02c-.04.32-.07.65-.07.98 0 .33.03.66.07.98L.189332 12.63c-.1900003.15-.2400004.42-.1200004.64L2.06933 16.73c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h3.99997c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65Zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35H9.02933l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74 0-.2.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.38997l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7.14 1.13Z"
|
|
12
|
+
clip-rule="evenodd"
|
|
13
|
+
/>
|
|
14
|
+
<path d="m8 13 5-3-5-3v6Z" />
|
|
15
|
+
</svg>
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
export default Icon;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
interface Props {
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const Icon: FC<Props> = ({ className }) => (
|
|
8
|
+
<svg className={className} width="24px" height="24px" viewBox="0 0 24 24">
|
|
9
|
+
<path d="M16 19.9751v-3h-3v-2h3v-3h2v3h3v2h-3v3h-2Zm-12-1.975v-2h7.075c-.05.35-.0708.6833-.0625 1 .0083.3166.0375.65.0875 1H4Zm0-4v-2h9.65c-.3833.2666-.7292.5666-1.0375.9-.3083.3333-.5792.7-.8125 1.1H4Zm0-4V8.00006h15v2.00004H4Zm0-4.00004v-2h15v2H4Z" />
|
|
10
|
+
</svg>
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
export default Icon;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
interface Props {
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const Icon: FC<Props> = ({ className }) => (
|
|
8
|
+
<svg className={className} fill="none" viewBox="0 0 24 24">
|
|
9
|
+
<path d="M4 18.0001v-2h7.075c-.05.35-.0708.6833-.0625 1 .0083.3166.0375.65.0875 1H4Zm0-4v-2h9.65c-.3833.2666-.7292.5666-1.0375.9-.3083.3333-.5792.7-.8125 1.1H4Zm0-4V8.00006h15v2.00004H4Zm0-4.00004v-2h15v2H4Z" />
|
|
10
|
+
<path
|
|
11
|
+
stroke="#707070"
|
|
12
|
+
stroke-width=".75"
|
|
13
|
+
d="M17 14.2728v1.3636l2-1.8182-2-1.8181v1.3636c-2.21 0-4 1.6273-4 3.6364 0 .7136.23 1.3772.62 1.9363l.73-.6636c-.225-.3773-.35-.8136-.35-1.2727 0-1.5046 1.345-2.7273 3-2.7273Zm3.38.7909-.73.6636c.22.3819.35.8137.35 1.2728 0 1.5045-1.345 2.7272-3 2.7272v-1.3636l-2 1.8182 2 1.8182v-1.3637c2.21 0 4-1.6272 4-3.6363 0-.7137-.23-1.3773-.62-1.9364Z"
|
|
14
|
+
/>
|
|
15
|
+
</svg>
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
export default Icon;
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { IconTypes } from 'src/constants';
|
|
4
4
|
|
|
5
5
|
import AccountSettingsIcon from 'src/assets/svg/accountSettings';
|
|
6
|
+
import AutomationIcon from 'src/assets/svg/automation';
|
|
6
7
|
import AddChart from 'src/assets/svg/addChart';
|
|
7
8
|
import AddFilledIcon from 'src/assets/svg/addOutlined';
|
|
8
9
|
import AddFolder from 'src/assets/svg/addFolder';
|
|
@@ -18,6 +19,7 @@ import ArrowLastPageIcon from 'src/assets/svg/arrowLastPage';
|
|
|
18
19
|
import ArrowLeftIcon from 'src/assets/svg/arrowLeft';
|
|
19
20
|
import ArrowRightIcon from 'src/assets/svg/arrowRight';
|
|
20
21
|
import ArrowUpIcon from 'src/assets/svg/arrowUp';
|
|
22
|
+
import AskWideNarrowIcon from 'src/assets/svg/askWideNarrow';
|
|
21
23
|
import AttachmentIcon from 'src/assets/svg/attachment';
|
|
22
24
|
import BannerIcon from 'src/assets/svg/banner';
|
|
23
25
|
import BenchMarksIcon from 'src/assets/svg/benchmarks';
|
|
@@ -158,6 +160,8 @@ import TaxonomyIcon from 'src/assets/svg/taxonomy';
|
|
|
158
160
|
import TranslateIcon from 'src/assets/svg/translate';
|
|
159
161
|
import TrashIcon from 'src/assets/svg/trash';
|
|
160
162
|
import TrialIcon from 'src/assets/svg/trial';
|
|
163
|
+
import TextAddIcon from 'src/assets/svg/textAdd';
|
|
164
|
+
import TextReplaceIcon from 'src/assets/svg/textReplace';
|
|
161
165
|
import UnfoldLessIcon from 'src/assets/svg/unfoldLess';
|
|
162
166
|
import UnfoldMoreIcon from 'src/assets/svg/unfoldMore';
|
|
163
167
|
import UpIcon from 'src/assets/svg/up';
|
|
@@ -199,6 +203,8 @@ const getIconFromConstant = (icon: string, getIconClassName: (additionalClassNam
|
|
|
199
203
|
// Icons without special classnames
|
|
200
204
|
case IconTypes.CHECK_INDETERMINATE:
|
|
201
205
|
return <CheckIndeterminateIcon className={getIconClassName()} />;
|
|
206
|
+
case IconTypes.AUTOMATION:
|
|
207
|
+
return <AutomationIcon className={getIconClassName()} />;
|
|
202
208
|
case IconTypes.CHEVRON_DOWN:
|
|
203
209
|
return <ChevronIcon className={getIconClassName()} />;
|
|
204
210
|
case IconTypes.CHEVRON_LEFT:
|
|
@@ -231,6 +237,8 @@ const getIconFromConstant = (icon: string, getIconClassName: (additionalClassNam
|
|
|
231
237
|
return <AddSectionAboveIcon className={getIconClassName()} />;
|
|
232
238
|
case IconTypes.ADD_SECTION_BELOW:
|
|
233
239
|
return <AddSectionBelowIcon className={getIconClassName()} />;
|
|
240
|
+
case IconTypes.ASK_WIDE_NARROW:
|
|
241
|
+
return <AskWideNarrowIcon className={getIconClassName()} />;
|
|
234
242
|
case IconTypes.AI:
|
|
235
243
|
return <AiIcon className={getIconClassName()} />;
|
|
236
244
|
case IconTypes.ARROW_DOWN:
|
|
@@ -365,6 +373,10 @@ const getIconFromConstant = (icon: string, getIconClassName: (additionalClassNam
|
|
|
365
373
|
return <FormatTextAlignLeft className={getIconClassName()} />;
|
|
366
374
|
case IconTypes.FORMAT_TEXT_ALIGN_RIGHT:
|
|
367
375
|
return <FormatTextAlignRight className={getIconClassName()} />;
|
|
376
|
+
case IconTypes.TEXT_ADD:
|
|
377
|
+
return <TextAddIcon className={getIconClassName()} />;
|
|
378
|
+
case IconTypes.TEXT_REPLACE:
|
|
379
|
+
return <TextReplaceIcon className={getIconClassName()} />;
|
|
368
380
|
case IconTypes.GRID_MODE:
|
|
369
381
|
return <GridModeIcon className={getIconClassName()} />;
|
|
370
382
|
case IconTypes.HANDLEBAR:
|
|
@@ -3,7 +3,7 @@ import classNames from 'classnames/bind';
|
|
|
3
3
|
import { is } from 'ramda';
|
|
4
4
|
|
|
5
5
|
import { MarginInterface, PaddingInterface } from 'src/types/styling';
|
|
6
|
-
import { SizeTypes } from 'src/constants';
|
|
6
|
+
import { SizeTypes, ColorTypes } from 'src/constants';
|
|
7
7
|
|
|
8
8
|
import styles from './Separator.module.scss';
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ const s = classNames.bind(styles);
|
|
|
11
11
|
|
|
12
12
|
interface Props extends MarginInterface, PaddingInterface {
|
|
13
13
|
className?: string;
|
|
14
|
-
color?:
|
|
14
|
+
color?: `${ColorTypes}`;
|
|
15
15
|
size?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -19,7 +19,17 @@ interface Props {
|
|
|
19
19
|
className?: string;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
const Separator: FC<Props> = ({
|
|
22
|
+
const Separator: FC<Props> = ({
|
|
23
|
+
className,
|
|
24
|
+
marginLeft,
|
|
25
|
+
marginRight,
|
|
26
|
+
marginX,
|
|
27
|
+
paddingRight,
|
|
28
|
+
paddingLeft,
|
|
29
|
+
paddingX,
|
|
30
|
+
size = SizeTypes.MEDIUM,
|
|
31
|
+
color = ColorTypes.GREY_3
|
|
32
|
+
}) => (
|
|
23
33
|
<div
|
|
24
34
|
className={s('container', {
|
|
25
35
|
container_small: size === SizeTypes.SMALL,
|
package/src/constants.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export enum IconTypes {
|
|
2
2
|
ACCOUNT_SETTINGS = 'iconAccountSettings',
|
|
3
|
+
AUTOMATION = 'iconAutomation',
|
|
3
4
|
ADD_CHART = 'iconAddChart',
|
|
4
5
|
ADD_FILLED = 'iconAddFilled',
|
|
5
6
|
ADD_FOLDER = 'iconAddFolder',
|
|
@@ -15,6 +16,7 @@ export enum IconTypes {
|
|
|
15
16
|
ARROW_FORK_RIGHT = 'iconArrowForkRight',
|
|
16
17
|
ARROW_LAST_PAGE = 'iconArrowLastPage',
|
|
17
18
|
ARROW_LEFT = 'iconArrowLeft',
|
|
19
|
+
ASK_WIDE_NARROW = 'iconAskWideNarrow',
|
|
18
20
|
ARROW_RIGHT = 'iconArrowRight',
|
|
19
21
|
ARROW_UP = 'iconArrowUp',
|
|
20
22
|
ATTACHMENT = 'iconAttachment',
|
|
@@ -161,6 +163,8 @@ export enum IconTypes {
|
|
|
161
163
|
TRANSLATE = 'iconTranslate',
|
|
162
164
|
TRASH = 'iconTrash',
|
|
163
165
|
TRIAL = 'iconTrial',
|
|
166
|
+
TEXT_ADD = 'iconTextAdd',
|
|
167
|
+
TEXT_REPLACE = 'iconTextReplace',
|
|
164
168
|
UNFOLD_LESS = 'iconUnfoldLess',
|
|
165
169
|
UNFOLD_MORE = 'iconUnfoldMore',
|
|
166
170
|
UP = 'iconUp',
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import ToolTip from 'src/components/ToolTip/ToolTip';
|
|
2
2
|
import Checkbox from 'src/components/Checkbox/Checkbox';
|
|
3
|
-
|
|
4
|
-
// Done
|
|
5
3
|
import SolidSpinner from 'src/components/SolidSpinner/SolidSpinner';
|
|
6
4
|
import Icon from 'src/components/Icon/Icon';
|
|
7
5
|
import Button from 'src/components/Button/Button';
|
|
@@ -15,6 +13,7 @@ import { ColorTypes, SizeTypes, IconTypes, AppColors, HierarchyTypes } from 'src
|
|
|
15
13
|
|
|
16
14
|
export {
|
|
17
15
|
// Components
|
|
16
|
+
ToolTip,
|
|
18
17
|
Button,
|
|
19
18
|
InlineButton,
|
|
20
19
|
IconButton,
|