@liner-fe/icon 0.0.55 → 0.1.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/CHANGELOG.md +14 -0
- package/assets/add-clock/index.tsx +8 -8
- package/assets/add-to-folder/index.tsx +8 -8
- package/assets/ai/index.tsx +8 -8
- package/assets/airplane/index.tsx +8 -8
- package/assets/android/index.tsx +8 -8
- package/assets/apple/index.tsx +8 -8
- package/assets/arrow-back/index.tsx +8 -8
- package/assets/arrow-backward/index.tsx +8 -8
- package/assets/arrow-down/index.tsx +8 -8
- package/assets/arrow-down-left/index.tsx +8 -8
- package/assets/arrow-downward/index.tsx +8 -8
- package/assets/arrow-drop-right/index.tsx +8 -8
- package/assets/arrow-forward/index.tsx +8 -8
- package/assets/arrow-left/index.tsx +8 -8
- package/assets/arrow-right/index.tsx +8 -8
- package/assets/arrow-turn/index.tsx +8 -8
- package/assets/arrow-up/index.tsx +8 -8
- package/assets/arrow-up-down/index.tsx +8 -8
- package/assets/arrow-up-left/index.tsx +8 -8
- package/assets/arrow-up-right/index.tsx +8 -8
- package/assets/arrow-upward/index.tsx +8 -8
- package/assets/bag/index.tsx +8 -8
- package/assets/balance/index.tsx +8 -8
- package/assets/bell/index.tsx +8 -8
- package/assets/block/index.tsx +8 -8
- package/assets/bolt/index.tsx +8 -8
- package/assets/book/index.tsx +8 -8
- package/assets/bookmark/index.tsx +8 -8
- package/assets/bookmark-cancel/index.tsx +8 -8
- package/assets/books/index.tsx +8 -8
- package/assets/brain/index.tsx +8 -8
- package/assets/bulb/index.tsx +8 -8
- package/assets/bulb-exclamtionmark/index.tsx +8 -8
- package/assets/camera/index.tsx +8 -8
- package/assets/car/index.tsx +8 -8
- package/assets/casual-shoe/index.tsx +8 -8
- package/assets/chart-bar/index.tsx +8 -8
- package/assets/chart-line-uptrend/index.tsx +8 -8
- package/assets/check-mark/index.tsx +8 -8
- package/assets/check-mark-fill/index.tsx +8 -8
- package/assets/check-mark-in-circle/index.tsx +8 -8
- package/assets/chrome/index.tsx +8 -8
- package/assets/clock/index.tsx +8 -8
- package/assets/close/index.tsx +8 -8
- package/assets/close-fill/index.tsx +8 -8
- package/assets/collection-add/index.tsx +8 -8
- package/assets/collections/index.tsx +8 -8
- package/assets/color-docx/index.tsx +8 -8
- package/assets/color-excel/index.tsx +8 -8
- package/assets/color-facebook/index.tsx +8 -8
- package/assets/color-fire/index.tsx +8 -8
- package/assets/color-google/index.tsx +8 -8
- package/assets/color-html/index.tsx +8 -8
- package/assets/color-liner/index.tsx +8 -8
- package/assets/color-liner-variation/index.tsx +8 -8
- package/assets/color-link/index.tsx +8 -8
- package/assets/color-pdf/index.tsx +8 -8
- package/assets/color-powerpoint/index.tsx +8 -8
- package/assets/color-txt/index.tsx +8 -8
- package/assets/copy/index.tsx +8 -8
- package/assets/credit/index.tsx +8 -8
- package/assets/credit-add/index.tsx +8 -8
- package/assets/creditcard/index.tsx +8 -8
- package/assets/dark-mode/index.tsx +8 -8
- package/assets/description/index.tsx +8 -8
- package/assets/desktop/index.tsx +8 -8
- package/assets/desktop-on-cursor/index.tsx +8 -8
- package/assets/document/index.tsx +8 -8
- package/assets/document-add/index.tsx +8 -8
- package/assets/document-check/index.tsx +8 -8
- package/assets/document-warning/index.tsx +8 -8
- package/assets/double-arrow-backward/index.tsx +8 -8
- package/assets/double-arrow-forward/index.tsx +8 -8
- package/assets/download/index.tsx +8 -8
- package/assets/drop-down/index.tsx +8 -8
- package/assets/drop-up/index.tsx +8 -8
- package/assets/email/index.tsx +8 -8
- package/assets/end/index.tsx +8 -8
- package/assets/essay/index.tsx +8 -8
- package/assets/exclamationmark/index.tsx +8 -8
- package/assets/exclamationmark-fill/index.tsx +8 -8
- package/assets/expand/index.tsx +8 -8
- package/assets/expand-close/index.tsx +8 -8
- package/assets/extend/index.tsx +8 -8
- package/assets/facebook/index.tsx +8 -8
- package/assets/feedback/index.tsx +8 -8
- package/assets/filter/index.tsx +8 -8
- package/assets/fire/index.tsx +8 -8
- package/assets/flowchart/index.tsx +8 -8
- package/assets/focus/index.tsx +8 -8
- package/assets/folder/index.tsx +8 -8
- package/assets/folder-add/index.tsx +8 -8
- package/assets/folder-open/index.tsx +8 -8
- package/assets/folder-open-share/index.tsx +8 -8
- package/assets/folder-share/index.tsx +8 -8
- package/assets/formal-bag/index.tsx +8 -8
- package/assets/globe/index.tsx +8 -8
- package/assets/google/index.tsx +8 -8
- package/assets/google-export/index.tsx +8 -8
- package/assets/graduationcap/index.tsx +8 -8
- package/assets/help/index.tsx +8 -8
- package/assets/hide-all/index.tsx +8 -8
- package/assets/highlight-edit/index.tsx +8 -8
- package/assets/highlighter/index.tsx +8 -8
- package/assets/history/index.tsx +8 -8
- package/assets/home/index.tsx +8 -8
- package/assets/hourglass/index.tsx +8 -8
- package/assets/info/index.tsx +8 -8
- package/assets/light/index.tsx +8 -8
- package/assets/light-mode/index.tsx +8 -8
- package/assets/liner/index.tsx +8 -8
- package/assets/link/index.tsx +8 -8
- package/assets/list/index.tsx +8 -8
- package/assets/literature-review/index.tsx +8 -8
- package/assets/location/index.tsx +8 -8
- package/assets/lock/index.tsx +8 -8
- package/assets/m-new-tab/index.tsx +8 -8
- package/assets/magic-pencil/index.tsx +8 -8
- package/assets/magic-wand/index.tsx +8 -8
- package/assets/make-easy/index.tsx +8 -8
- package/assets/members/index.tsx +8 -8
- package/assets/memo/index.tsx +8 -8
- package/assets/menu/index.tsx +8 -8
- package/assets/microscope/index.tsx +8 -8
- package/assets/mindmap/index.tsx +8 -8
- package/assets/minus/index.tsx +8 -8
- package/assets/mobile/index.tsx +8 -8
- package/assets/more/index.tsx +8 -8
- package/assets/more-horizontal/index.tsx +8 -8
- package/assets/more-vertical/index.tsx +8 -8
- package/assets/move/index.tsx +8 -8
- package/assets/move-to-folder/index.tsx +8 -8
- package/assets/new-chrome-extension/index.tsx +8 -8
- package/assets/new-tab/index.tsx +8 -8
- package/assets/new-thread/index.tsx +8 -8
- package/assets/new-thread-folder/index.tsx +8 -8
- package/assets/palette/index.tsx +8 -8
- package/assets/paperclip/index.tsx +8 -8
- package/assets/paragraph/index.tsx +8 -8
- package/assets/paraphrase/index.tsx +8 -8
- package/assets/pencil/index.tsx +8 -8
- package/assets/person/index.tsx +8 -8
- package/assets/person-add/index.tsx +8 -8
- package/assets/person-fill/index.tsx +8 -8
- package/assets/photo/index.tsx +8 -8
- package/assets/play-button/index.tsx +8 -8
- package/assets/plus/index.tsx +8 -8
- package/assets/power/index.tsx +8 -8
- package/assets/question-box/index.tsx +8 -8
- package/assets/question-message/index.tsx +8 -8
- package/assets/quote/index.tsx +8 -8
- package/assets/redo/index.tsx +8 -8
- package/assets/regenerate/index.tsx +8 -8
- package/assets/remove-from-folder/index.tsx +8 -8
- package/assets/report/index.tsx +8 -8
- package/assets/restaurant/index.tsx +8 -8
- package/assets/retry/index.tsx +8 -8
- package/assets/rocket/index.tsx +8 -8
- package/assets/search/index.tsx +8 -8
- package/assets/secret-mode/index.tsx +8 -8
- package/assets/send/index.tsx +8 -8
- package/assets/setting/index.tsx +8 -8
- package/assets/share/index.tsx +8 -8
- package/assets/sheet-export/index.tsx +8 -8
- package/assets/shield/index.tsx +8 -8
- package/assets/shield-person/index.tsx +8 -8
- package/assets/shield-usage/index.tsx +8 -8
- package/assets/shorten/index.tsx +8 -8
- package/assets/show-all/index.tsx +8 -8
- package/assets/sign-out/index.tsx +8 -8
- package/assets/source/index.tsx +8 -8
- package/assets/speaker/index.tsx +8 -8
- package/assets/spinner/index.tsx +8 -8
- package/assets/stack/index.tsx +8 -8
- package/assets/star/index.tsx +8 -8
- package/assets/start/index.tsx +8 -8
- package/assets/step/index.tsx +8 -8
- package/assets/stop/index.tsx +8 -8
- package/assets/summarize/index.tsx +8 -8
- package/assets/survey/index.tsx +8 -8
- package/assets/target/index.tsx +8 -8
- package/assets/teams/index.tsx +8 -8
- package/assets/text-select/index.tsx +8 -8
- package/assets/thumb-down/index.tsx +8 -8
- package/assets/thumb-up/index.tsx +8 -8
- package/assets/timer/index.tsx +8 -8
- package/assets/translate/index.tsx +8 -8
- package/assets/trash/index.tsx +8 -8
- package/assets/tune/index.tsx +8 -8
- package/assets/twitter/index.tsx +8 -8
- package/assets/undo/index.tsx +8 -8
- package/assets/verification-badge/index.tsx +8 -8
- package/assets/view-list/index.tsx +8 -8
- package/assets/visibility/index.tsx +8 -8
- package/assets/visibility-off/index.tsx +8 -8
- package/assets/volume/index.tsx +8 -8
- package/assets/volume-up/index.tsx +8 -8
- package/assets/zoom-in/index.tsx +8 -8
- package/assets/zoom-out/index.tsx +8 -8
- package/index.tsx +599 -410
- package/lib/index.d.ts +1992 -9
- package/lib/index.js +1793 -1404
- package/package.json +5 -3
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
import { BasicColorType } from '@liner-fe/design-token-primitive';
|
|
2
|
+
import { BasicColorType, iconSizeMap } from '@liner-fe/design-token-primitive';
|
|
3
3
|
import { SVGProps } from 'react';
|
|
4
4
|
|
|
5
5
|
interface TextSelectProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
|
|
6
6
|
fill?: boolean;
|
|
7
7
|
thick?: boolean;
|
|
8
8
|
className?: string;
|
|
9
|
-
size?:
|
|
9
|
+
size?: keyof typeof iconSizeMap;
|
|
10
10
|
type?: BasicColorType;
|
|
11
11
|
fillType?: BasicColorType;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export const
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
14
|
+
export const IconTextSelect = forwardRef<SVGSVGElement, TextSelectProps>(
|
|
15
|
+
({ fill = false, thick = false, size = 'm', type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
|
|
16
16
|
if (fill && thick) {
|
|
17
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
17
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
18
18
|
<path d="M25.5 18.5H30V15.5H18V18.5H22.5V31H25.5V18.5Z" style={{ fill: `var(--${type})` }}/>
|
|
19
19
|
<path fillRule="evenodd" clipRule="evenodd" d="M9.5 0C7.84315 0 6.5 1.34315 6.5 3C6.5 4.11042 7.1033 5.07994 8 5.59865L8 37C8 38.1046 8.89543 39 10 39H37V40.4013C36.1033 40.9201 35.5 41.8896 35.5 43C35.5 44.6569 36.8431 46 38.5 46C40.1569 46 41.5 44.6569 41.5 43C41.5 41.8896 40.8967 40.9201 40 40.4013V9C40 7.89543 39.1046 7 38 7H11V5.59865C11.8967 5.07994 12.5 4.11042 12.5 3C12.5 1.34315 11.1569 0 9.5 0ZM11 10V36H37V10H11Z" style={{ fill: `var(--${type})` }}/>
|
|
20
20
|
</svg>
|
|
21
21
|
;
|
|
22
22
|
} else if (fill) {
|
|
23
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
23
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
24
24
|
<path d="M25.5 18.5H30V15.5H18V18.5H22.5V31H25.5V18.5Z" style={{ fill: `var(--${type})` }}/>
|
|
25
25
|
<path fillRule="evenodd" clipRule="evenodd" d="M9.5 0C7.84315 0 6.5 1.34315 6.5 3C6.5 4.11042 7.1033 5.07994 8 5.59865L8 37C8 38.1046 8.89543 39 10 39H37V40.4013C36.1033 40.9201 35.5 41.8896 35.5 43C35.5 44.6569 36.8431 46 38.5 46C40.1569 46 41.5 44.6569 41.5 43C41.5 41.8896 40.8967 40.9201 40 40.4013V9C40 7.89543 39.1046 7 38 7H11V5.59865C11.8967 5.07994 12.5 4.11042 12.5 3C12.5 1.34315 11.1569 0 9.5 0ZM11 10V36H37V10H11Z" style={{ fill: `var(--${type})` }}/>
|
|
26
26
|
</svg>
|
|
27
27
|
;
|
|
28
28
|
} else if (thick) {
|
|
29
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
29
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
30
30
|
<path d="M26 19H30V15H18V19H22V31H26V19Z" style={{ fill: `var(--${type})` }}/>
|
|
31
31
|
<path fillRule="evenodd" clipRule="evenodd" d="M10 0C8.34315 -1.78814e-07 7 1.34315 7 3C7 3.8885 7.38625 4.68679 8 5.23611L8 37C8 38.1046 8.89543 39 10 39H36V40.7639C35.3862 41.3132 35 42.1115 35 43C35 44.6569 36.3431 46 38 46C39.6569 46 41 44.6569 41 43C41 42.1115 40.6138 41.3132 40 40.7639V9C40 7.89543 39.1046 7 38 7H12V5.23611C12.6137 4.68679 13 3.8885 13 3C13 1.34315 11.6569 1.19209e-07 10 0ZM12 11V35H36V11H12Z" style={{ fill: `var(--${type})` }}/>
|
|
32
32
|
</svg>
|
|
33
33
|
;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
36
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
37
37
|
<path d="M25.5 18.5H30V15.5H18V18.5H22.5V31H25.5V18.5Z" style={{ fill: `var(--${type})` }}/>
|
|
38
38
|
<path fillRule="evenodd" clipRule="evenodd" d="M9.5 0C7.84315 0 6.5 1.34315 6.5 3C6.5 4.11042 7.1033 5.07994 8 5.59865L8 37C8 38.1046 8.89543 39 10 39H37V40.4013C36.1033 40.9201 35.5 41.8896 35.5 43C35.5 44.6569 36.8431 46 38.5 46C40.1569 46 41.5 44.6569 41.5 43C41.5 41.8896 40.8967 40.9201 40 40.4013V9C40 7.89543 39.1046 7 38 7H11V5.59865C11.8967 5.07994 12.5 4.11042 12.5 3C12.5 1.34315 11.1569 0 9.5 0ZM11 10V36H37V10H11Z" style={{ fill: `var(--${type})` }}/>
|
|
39
39
|
</svg>
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
import { BasicColorType } from '@liner-fe/design-token-primitive';
|
|
2
|
+
import { BasicColorType, iconSizeMap } from '@liner-fe/design-token-primitive';
|
|
3
3
|
import { SVGProps } from 'react';
|
|
4
4
|
|
|
5
5
|
interface ThumbDownProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
|
|
6
6
|
fill?: boolean;
|
|
7
7
|
thick?: boolean;
|
|
8
8
|
className?: string;
|
|
9
|
-
size?:
|
|
9
|
+
size?: keyof typeof iconSizeMap;
|
|
10
10
|
type?: BasicColorType;
|
|
11
11
|
fillType?: BasicColorType;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export const
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
14
|
+
export const IconThumbDown = forwardRef<SVGSVGElement, ThumbDownProps>(
|
|
15
|
+
({ fill = false, thick = false, size = 'm', type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
|
|
16
16
|
if (fill && thick) {
|
|
17
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
17
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
18
18
|
<path d="M31.9999 4L9.19411 4C8.21643 4 7.38205 4.70683 7.22132 5.6712L3.77612 26.3424C3.36976 28.7805 5.24993 31 7.72169 31H18.4999L17.1268 39.9247C16.7972 42.0675 18.4551 44 20.6231 44C21.5007 44 22.3384 43.6333 22.9336 42.9884L31.9999 33.1666L31.9999 4Z" style={{ fill: `var(--${type})` }}/>
|
|
19
19
|
<path d="M35.9999 31L41.9999 31C43.1044 31 43.9999 30.1046 43.9999 29L43.9999 6.00001C43.9999 4.89544 43.1044 4.00001 41.9999 4.00001L35.9999 4V31Z" style={{ fill: `var(--${type})` }}/>
|
|
20
20
|
</svg>
|
|
21
21
|
;
|
|
22
22
|
} else if (fill) {
|
|
23
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
23
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
24
24
|
<path d="M32.4999 4L9.19411 4C8.21643 4 7.38205 4.70683 7.22132 5.6712L3.77612 26.3424C3.36976 28.7805 5.24993 31 7.72169 31H18.4999L17.1268 39.9247C16.7972 42.0675 18.4551 44 20.6231 44C21.5007 44 22.3384 43.6333 22.9336 42.9884L32.4999 32.625L32.4999 4Z" style={{ fill: `var(--${type})` }}/>
|
|
25
25
|
<path d="M35.4999 31L41.9999 31C43.1044 31 43.9999 30.1046 43.9999 29L43.9999 6.00001C43.9999 4.89544 43.1044 4.00001 41.9999 4.00001L35.4999 4L35.4999 31Z" style={{ fill: `var(--${type})` }}/>
|
|
26
26
|
</svg>
|
|
27
27
|
;
|
|
28
28
|
} else if (thick) {
|
|
29
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
29
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
30
30
|
<path fillRule="evenodd" clipRule="evenodd" d="M14.4691 37.7018L15.5001 31H7.72194C5.25018 31 3.37001 28.7805 3.77636 26.3424L7.22156 5.6712C7.38229 4.70683 8.21667 4 9.19435 4L42.0001 4.00001C43.1047 4.00001 44.0001 4.89544 44.0001 6.00001L44.0001 29C44.0001 30.1046 43.1047 31 42.0001 31L34.0001 31L23.4432 42.4366C22.5233 43.4332 21.2287 44 19.8724 44C16.5218 44 13.9596 41.0134 14.4691 37.7018ZM30.0001 29.4361L30.0001 8.00001L10.8886 8L7.72194 27H20.1625L18.4225 38.31C18.2858 39.1986 18.9734 40 19.8724 40C20.1123 40 20.3413 39.8998 20.504 39.7235L30.0001 29.4361ZM34.0001 27L40.0001 27L40.0001 8.00001L34.0001 8.00001L34.0001 27Z" style={{ fill: `var(--${type})` }}/>
|
|
31
31
|
</svg>
|
|
32
32
|
;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
35
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
36
36
|
<path fillRule="evenodd" clipRule="evenodd" d="M14.4691 37.7018L15.5001 31H7.72194C5.25018 31 3.37001 28.7805 3.77636 26.3424L7.22156 5.6712C7.38229 4.70683 8.21667 4 9.19435 4L42.0001 4.00001C43.1047 4.00001 44.0001 4.89544 44.0001 6.00001L44.0001 29C44.0001 30.1046 43.1047 31 42.0001 31L34.0001 31L23.4432 42.4366C22.5233 43.4332 21.2287 44 19.8724 44C16.5218 44 13.9596 41.0134 14.4691 37.7018ZM31.0001 29.8271L31.0001 7.00001L10.0415 7L6.73554 26.8356C6.63396 27.4451 7.104 28 7.72194 28H18.9969L17.4342 38.1579C17.2043 39.6523 18.3605 41 19.8724 41C20.3914 41 20.8868 40.7831 21.2388 40.4018L31.0001 29.8271ZM34.0001 28L41.0001 28L41.0001 7.00001L34.0001 7.00001L34.0001 28Z" style={{ fill: `var(--${type})` }}/>
|
|
37
37
|
</svg>
|
|
38
38
|
;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
import { BasicColorType } from '@liner-fe/design-token-primitive';
|
|
2
|
+
import { BasicColorType, iconSizeMap } from '@liner-fe/design-token-primitive';
|
|
3
3
|
import { SVGProps } from 'react';
|
|
4
4
|
|
|
5
5
|
interface ThumbUpProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
|
|
6
6
|
fill?: boolean;
|
|
7
7
|
thick?: boolean;
|
|
8
8
|
className?: string;
|
|
9
|
-
size?:
|
|
9
|
+
size?: keyof typeof iconSizeMap;
|
|
10
10
|
type?: BasicColorType;
|
|
11
11
|
fillType?: BasicColorType;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export const
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
14
|
+
export const IconThumbUp = forwardRef<SVGSVGElement, ThumbUpProps>(
|
|
15
|
+
({ fill = false, thick = false, size = 'm', type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
|
|
16
16
|
if (fill && thick) {
|
|
17
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
17
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
18
18
|
<path d="M27.3767 4C29.5448 4 31.2027 5.9325 30.873 8.07534L29.5 17H40.2782C42.7499 17 44.6301 19.2195 44.2237 21.6576L40.7785 42.3288C40.6178 43.2932 39.7834 44 38.8057 44L16 44L16 14.8333L25.0662 5.01161C25.6615 4.36675 26.4991 4 27.3767 4Z" style={{ fill: `var(--${type})` }}/>
|
|
19
19
|
<path d="M12 17L12 44H6C4.89543 44 4 43.1046 4 42V19C4 17.8954 4.89543 17 6 17H12Z" style={{ fill: `var(--${type})` }}/>
|
|
20
20
|
</svg>
|
|
21
21
|
;
|
|
22
22
|
} else if (fill) {
|
|
23
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
23
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
24
24
|
<path d="M30.873 8.07534C31.2027 5.9325 29.5448 4 27.3767 4C26.4991 4 25.6615 4.36675 25.0662 5.01161L15.5 15.375L15.5 44L38.8057 44C39.7834 44 40.6178 43.2932 40.7785 42.3288L44.2237 21.6576C44.6301 19.2195 42.7499 17 40.2782 17H29.5L30.873 8.07534Z" style={{ fill: `var(--${type})` }}/>
|
|
25
25
|
<path d="M12.5 44L12.5 17H6C4.89543 17 4 17.8954 4 19V42C4 43.1046 4.89543 44 6 44H12.5Z" style={{ fill: `var(--${type})` }}/>
|
|
26
26
|
</svg>
|
|
27
27
|
;
|
|
28
28
|
} else if (thick) {
|
|
29
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
29
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
30
30
|
<path fillRule="evenodd" clipRule="evenodd" d="M33.531 10.2983L32.5 17H40.2782C42.7499 17 44.6301 19.2195 44.2237 21.6576L40.7785 42.3288C40.6178 43.2932 39.7834 44 38.8057 44L6 44C4.89543 44 4 43.1046 4 42V19C4 17.8954 4.89543 17 6 17H14L24.5569 5.5634C25.4768 4.5668 26.7714 4 28.1276 4C31.4783 4 34.0405 6.98659 33.531 10.2983ZM18 18.5639L27.4961 8.27652C27.6588 8.10025 27.8878 8 28.1276 8C29.0267 8 29.7143 8.8014 29.5776 9.69002L27.8376 21H40.2782L37.1115 40L18 40V18.5639ZM14 21H8V40H14V21Z" style={{ fill: `var(--${type})` }}/>
|
|
31
31
|
</svg>
|
|
32
32
|
;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
35
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
36
36
|
<path fillRule="evenodd" clipRule="evenodd" d="M33.531 10.2983L32.5 17H40.2782C42.7499 17 44.6301 19.2195 44.2237 21.6576L40.7785 42.3288C40.6178 43.2932 39.7834 44 38.8057 44L6 44C4.89543 44 4 43.1046 4 42V19C4 17.8954 4.89543 17 6 17H14L24.5569 5.5634C25.4768 4.5668 26.7714 4 28.1276 4C31.4783 4 34.0405 6.98659 33.531 10.2983ZM17 18.173L26.7613 7.59824C27.1133 7.21689 27.6087 7 28.1276 7C29.6396 7 30.7958 8.3477 30.5659 9.84208L29.0032 20H40.2782C40.8961 20 41.3661 20.5549 41.2646 21.1644L37.9586 41L17 41V18.173ZM14 20L7 20V41H14V20Z" style={{ fill: `var(--${type})` }}/>
|
|
37
37
|
</svg>
|
|
38
38
|
;
|
package/assets/timer/index.tsx
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
import { BasicColorType } from '@liner-fe/design-token-primitive';
|
|
2
|
+
import { BasicColorType, iconSizeMap } from '@liner-fe/design-token-primitive';
|
|
3
3
|
import { SVGProps } from 'react';
|
|
4
4
|
|
|
5
5
|
interface TimerProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
|
|
6
6
|
fill?: boolean;
|
|
7
7
|
thick?: boolean;
|
|
8
8
|
className?: string;
|
|
9
|
-
size?:
|
|
9
|
+
size?: keyof typeof iconSizeMap;
|
|
10
10
|
type?: BasicColorType;
|
|
11
11
|
fillType?: BasicColorType;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export const
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
14
|
+
export const IconTimer = forwardRef<SVGSVGElement, TimerProps>(
|
|
15
|
+
({ fill = false, thick = false, size = 'm', type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
|
|
16
16
|
if (fill && thick) {
|
|
17
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
17
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
18
18
|
<path d="M18 5.5H30V2.5H18V5.5Z" style={{ fill: `var(--${type})` }}/>
|
|
19
19
|
<path d="M25.5 26V15H22.5V26H25.5Z" style={{ fill: `var(--${type})` }}/>
|
|
20
20
|
<path fillRule="evenodd" clipRule="evenodd" d="M42 26C42 35.9411 33.9411 44 24 44C14.0589 44 6 35.9411 6 26C6 16.0589 14.0589 8 24 8C28.4306 8 32.4873 9.60075 35.6233 12.2555L37.9393 9.93945L40.0606 12.0608L37.7446 14.3768C40.3993 17.5128 42 21.5695 42 26ZM39 26C39 34.2843 32.2843 41 24 41C15.7157 41 9 34.2843 9 26C9 17.7157 15.7157 11 24 11C32.2843 11 39 17.7157 39 26Z" style={{ fill: `var(--${type})` }}/>
|
|
21
21
|
</svg>
|
|
22
22
|
;
|
|
23
23
|
} else if (fill) {
|
|
24
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
24
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
25
25
|
<path d="M18 5.5H30V2.5H18V5.5Z" style={{ fill: `var(--${type})` }}/>
|
|
26
26
|
<path d="M25.5 26V15H22.5V26H25.5Z" style={{ fill: `var(--${type})` }}/>
|
|
27
27
|
<path fillRule="evenodd" clipRule="evenodd" d="M42 26C42 35.9411 33.9411 44 24 44C14.0589 44 6 35.9411 6 26C6 16.0589 14.0589 8 24 8C28.4306 8 32.4873 9.60075 35.6233 12.2555L37.9393 9.93945L40.0606 12.0608L37.7446 14.3768C40.3993 17.5128 42 21.5695 42 26ZM39 26C39 34.2843 32.2843 41 24 41C15.7157 41 9 34.2843 9 26C9 17.7157 15.7157 11 24 11C32.2843 11 39 17.7157 39 26Z" style={{ fill: `var(--${type})` }}/>
|
|
28
28
|
</svg>
|
|
29
29
|
;
|
|
30
30
|
} else if (thick) {
|
|
31
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
31
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
32
32
|
<path d="M18 6H30V2H18V6Z" style={{ fill: `var(--${type})` }}/>
|
|
33
33
|
<path d="M26 26V15H22V26H26Z" style={{ fill: `var(--${type})` }}/>
|
|
34
34
|
<path fillRule="evenodd" clipRule="evenodd" d="M42 26C42 35.9411 33.9411 44 24 44C14.0589 44 6 35.9411 6 26C6 16.0589 14.0589 8 24 8C28.2501 8 32.1561 9.47298 35.2355 11.9363L37.5858 9.58594L40.4142 12.4144L38.0639 14.7647C40.5271 17.8441 42 21.75 42 26ZM38 26C38 33.732 31.732 40 24 40C16.268 40 10 33.732 10 26C10 18.268 16.268 12 24 12C31.732 12 38 18.268 38 26Z" style={{ fill: `var(--${type})` }}/>
|
|
@@ -36,7 +36,7 @@ export const Timer = forwardRef<SVGSVGElement, TimerProps>(
|
|
|
36
36
|
;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
39
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
40
40
|
<path d="M18 5.5H30V2.5H18V5.5Z" style={{ fill: `var(--${type})` }}/>
|
|
41
41
|
<path d="M25.5 26V15H22.5V26H25.5Z" style={{ fill: `var(--${type})` }}/>
|
|
42
42
|
<path fillRule="evenodd" clipRule="evenodd" d="M42 26C42 35.9411 33.9411 44 24 44C14.0589 44 6 35.9411 6 26C6 16.0589 14.0589 8 24 8C28.4306 8 32.4873 9.60075 35.6233 12.2555L37.9393 9.93945L40.0606 12.0608L37.7446 14.3768C40.3993 17.5128 42 21.5695 42 26ZM39 26C39 34.2843 32.2843 41 24 41C15.7157 41 9 34.2843 9 26C9 17.7157 15.7157 11 24 11C32.2843 11 39 17.7157 39 26Z" style={{ fill: `var(--${type})` }}/>
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
import { BasicColorType } from '@liner-fe/design-token-primitive';
|
|
2
|
+
import { BasicColorType, iconSizeMap } from '@liner-fe/design-token-primitive';
|
|
3
3
|
import { SVGProps } from 'react';
|
|
4
4
|
|
|
5
5
|
interface TranslateProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
|
|
6
6
|
fill?: boolean;
|
|
7
7
|
thick?: boolean;
|
|
8
8
|
className?: string;
|
|
9
|
-
size?:
|
|
9
|
+
size?: keyof typeof iconSizeMap;
|
|
10
10
|
type?: BasicColorType;
|
|
11
11
|
fillType?: BasicColorType;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export const
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
14
|
+
export const IconTranslate = forwardRef<SVGSVGElement, TranslateProps>(
|
|
15
|
+
({ fill = false, thick = false, size = 'm', type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
|
|
16
16
|
if (fill && thick) {
|
|
17
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
17
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
18
18
|
<path d="M20.5 4V8.5H34V11.5H28.0794C28.0666 11.5338 28.0534 11.5682 28.0399 11.6034C27.7508 12.3514 27.2852 13.4124 26.5644 14.7231C25.4406 16.7663 23.6994 19.4109 21.0461 22.4186C21.2144 22.5912 21.3859 22.7649 21.5607 22.9396C23.4869 24.8659 25.6832 26.5816 27.6805 27.9751L26.5949 30.87C24.338 29.3359 21.7294 27.351 19.4393 25.0609C19.2907 24.9123 19.1443 24.7644 19 24.6171C18.8557 24.7644 18.7093 24.9123 18.5607 25.0609C15.7993 27.8223 12.5769 30.1381 10.0702 31.7535C8.81182 32.5644 7.72247 33.2061 6.9453 33.6463C6.5565 33.8665 6.24524 34.0367 6.02932 34.1527C5.92135 34.2108 5.83717 34.2553 5.779 34.2858L5.71152 34.321L5.69293 34.3307L5.68751 34.3335L5.68578 34.3343C5.68578 34.3343 5.6847 34.3349 5.00003 33.0003C4.31535 31.6656 4.31506 31.6658 4.31506 31.6658L4.31759 31.6645L4.33009 31.658L4.38508 31.6293C4.43479 31.6032 4.5102 31.5634 4.60912 31.5102C4.807 31.4038 5.09873 31.2444 5.46673 31.036C6.20315 30.6189 7.24262 30.0067 8.44511 29.2318C10.8601 27.6754 13.8878 25.4912 16.4394 22.9396C16.6141 22.7649 16.7856 22.5912 16.9539 22.4186C14.3006 19.4109 12.5594 16.7663 11.4357 14.7231C11.3943 14.6479 11.3538 14.5736 11.3141 14.5H14.7736C15.7522 16.1047 17.1165 18.0404 19 20.2017C21.3908 17.4583 22.9452 15.0783 23.9357 13.2774C24.3083 12.5999 24.6015 12.0036 24.8297 11.5H4V8.5H17.5V4H20.5Z" style={{ fill: `var(--${type})` }}/>
|
|
19
19
|
<path fillRule="evenodd" clipRule="evenodd" d="M28.5396 38.5L26.4771 44H23.2731L32.0955 20.4736H34.9044L43.7268 44H40.5228L38.4603 38.5H28.5396ZM29.6646 35.5L33.5 25.2723L37.3353 35.5H29.6646Z" style={{ fill: `var(--${type})` }}/>
|
|
20
20
|
</svg>
|
|
21
21
|
;
|
|
22
22
|
} else if (fill) {
|
|
23
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
23
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
24
24
|
<path d="M20.5 4V8.5H34V11.5H28.0794C28.0666 11.5338 28.0534 11.5682 28.0399 11.6034C27.7508 12.3514 27.2852 13.4124 26.5644 14.7231C25.4406 16.7663 23.6994 19.4109 21.0461 22.4186C21.2144 22.5912 21.3859 22.7649 21.5607 22.9396C23.4869 24.8659 25.6832 26.5816 27.6805 27.9751L26.5949 30.87C24.338 29.3359 21.7294 27.351 19.4393 25.0609C19.2907 24.9123 19.1443 24.7644 19 24.6171C18.8557 24.7644 18.7093 24.9123 18.5607 25.0609C15.7993 27.8223 12.5769 30.1381 10.0702 31.7535C8.81182 32.5644 7.72247 33.2061 6.9453 33.6463C6.5565 33.8665 6.24524 34.0367 6.02932 34.1527C5.92135 34.2108 5.83717 34.2553 5.779 34.2858L5.71152 34.321L5.69293 34.3307L5.68751 34.3335L5.68578 34.3343C5.68578 34.3343 5.6847 34.3349 5.00003 33.0003C4.31535 31.6656 4.31506 31.6658 4.31506 31.6658L4.31759 31.6645L4.33009 31.658L4.38508 31.6293C4.43479 31.6032 4.5102 31.5634 4.60912 31.5102C4.807 31.4038 5.09873 31.2444 5.46673 31.036C6.20315 30.6189 7.24262 30.0067 8.44511 29.2318C10.8601 27.6754 13.8878 25.4912 16.4394 22.9396C16.6141 22.7649 16.7856 22.5912 16.9539 22.4186C14.3006 19.4109 12.5594 16.7663 11.4357 14.7231C11.3943 14.6479 11.3538 14.5736 11.3141 14.5H14.7736C15.7522 16.1047 17.1165 18.0404 19 20.2017C21.3908 17.4583 22.9452 15.0783 23.9357 13.2774C24.3083 12.5999 24.6015 12.0036 24.8297 11.5H4V8.5H17.5V4H20.5Z" style={{ fill: `var(--${type})` }}/>
|
|
25
25
|
<path fillRule="evenodd" clipRule="evenodd" d="M28.5396 38.5L26.4771 44H23.2731L32.0955 20.4736H34.9044L43.7268 44H40.5228L38.4603 38.5H28.5396ZM29.6646 35.5L33.5 25.2723L37.3353 35.5H29.6646Z" style={{ fill: `var(--${type})` }}/>
|
|
26
26
|
</svg>
|
|
27
27
|
;
|
|
28
28
|
} else if (thick) {
|
|
29
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
29
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
30
30
|
<path d="M21 4V8H34V12H28.4209C28.1211 12.7497 27.668 13.7535 27.0024 14.9637C25.9052 16.9586 24.2342 19.5075 21.7277 22.3983C21.7895 22.4606 21.8516 22.5231 21.9142 22.5857C23.2558 23.9272 24.7334 25.1681 26.1843 26.2687L24.723 30.1654C22.8651 28.8154 20.881 27.2093 19.0858 25.4141L19 25.3281L18.9142 25.4141C16.1178 28.2105 12.863 30.5481 10.341 32.1734C9.0733 32.9903 7.97565 33.6369 7.19168 34.081C6.79942 34.3032 6.4849 34.4751 6.26598 34.5928C6.15649 34.6516 6.07085 34.6969 6.01128 34.7282L5.94172 34.7645L5.92211 34.7746L5.91421 34.7787C5.91421 34.7787 5.91289 34.7794 4.99998 32.9999C4.08708 31.2204 4.08667 31.2206 4.08667 31.2206L4.08832 31.2197L4.09981 31.2138L4.15271 31.1862C4.20101 31.1608 4.27497 31.1217 4.37238 31.0694C4.56725 30.9646 4.85573 30.807 5.22026 30.6005C5.94989 30.1873 6.98105 29.58 8.17422 28.8111C10.574 27.2646 13.5692 25.1023 16.0858 22.5857C16.1484 22.5231 16.2105 22.4606 16.2723 22.3983C13.781 19.525 12.115 16.9894 11.0175 15H15.6783C16.5212 16.3047 17.6077 17.7994 19 19.4352C21.1546 16.9038 22.5768 14.7101 23.4976 13.036C23.7017 12.6648 23.8814 12.3188 24.0391 12H4V8H17V4H21Z" style={{ fill: `var(--${type})` }}/>
|
|
31
31
|
<path fillRule="evenodd" clipRule="evenodd" d="M28.886 39L27.011 44H22.739L31.6273 20.2979H35.3726L44.2609 44H39.9889L38.1139 39H28.886ZM30.386 35L33.5 26.6961L36.6139 35H30.386Z" style={{ fill: `var(--${type})` }}/>
|
|
32
32
|
</svg>
|
|
33
33
|
;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
36
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
37
37
|
<path d="M20.5 4V8.5H34V11.5H28.0794C28.0666 11.5338 28.0534 11.5682 28.0399 11.6034C27.7508 12.3514 27.2852 13.4124 26.5644 14.7231C25.4406 16.7663 23.6994 19.4109 21.0461 22.4186C21.2144 22.5912 21.3859 22.7649 21.5607 22.9396C23.4869 24.8659 25.6832 26.5816 27.6805 27.9751L26.5949 30.87C24.338 29.3359 21.7294 27.351 19.4393 25.0609C19.2907 24.9123 19.1443 24.7644 19 24.6171C18.8557 24.7644 18.7093 24.9123 18.5607 25.0609C15.7993 27.8223 12.5769 30.1381 10.0702 31.7535C8.81182 32.5644 7.72247 33.2061 6.9453 33.6463C6.5565 33.8665 6.24524 34.0367 6.02932 34.1527C5.92135 34.2108 5.83717 34.2553 5.779 34.2858L5.71152 34.321L5.69293 34.3307L5.68751 34.3335L5.68578 34.3343C5.68578 34.3343 5.6847 34.3349 5.00003 33.0003C4.31535 31.6656 4.31506 31.6658 4.31506 31.6658L4.31759 31.6645L4.33009 31.658L4.38508 31.6293C4.43479 31.6032 4.5102 31.5634 4.60912 31.5102C4.807 31.4038 5.09873 31.2444 5.46673 31.036C6.20315 30.6189 7.24262 30.0067 8.44511 29.2318C10.8601 27.6754 13.8878 25.4912 16.4394 22.9396C16.6141 22.7649 16.7856 22.5912 16.9539 22.4186C14.3006 19.4109 12.5594 16.7663 11.4357 14.7231C11.3943 14.6479 11.3538 14.5736 11.3141 14.5H14.7736C15.7522 16.1047 17.1165 18.0404 19 20.2017C21.3908 17.4583 22.9452 15.0783 23.9357 13.2774C24.3083 12.5999 24.6015 12.0036 24.8297 11.5H4V8.5H17.5V4H20.5Z" style={{ fill: `var(--${type})` }}/>
|
|
38
38
|
<path fillRule="evenodd" clipRule="evenodd" d="M28.5396 38.5L26.4771 44H23.2731L32.0955 20.4736H34.9044L43.7268 44H40.5228L38.4603 38.5H28.5396ZM29.6646 35.5L33.5 25.2723L37.3353 35.5H29.6646Z" style={{ fill: `var(--${type})` }}/>
|
|
39
39
|
</svg>
|
package/assets/trash/index.tsx
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
import { BasicColorType } from '@liner-fe/design-token-primitive';
|
|
2
|
+
import { BasicColorType, iconSizeMap } from '@liner-fe/design-token-primitive';
|
|
3
3
|
import { SVGProps } from 'react';
|
|
4
4
|
|
|
5
5
|
interface TrashProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
|
|
6
6
|
fill?: boolean;
|
|
7
7
|
thick?: boolean;
|
|
8
8
|
className?: string;
|
|
9
|
-
size?:
|
|
9
|
+
size?: keyof typeof iconSizeMap;
|
|
10
10
|
type?: BasicColorType;
|
|
11
11
|
fillType?: BasicColorType;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export const
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
14
|
+
export const IconTrash = forwardRef<SVGSVGElement, TrashProps>(
|
|
15
|
+
({ fill = false, thick = false, size = 'm', type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
|
|
16
16
|
if (fill && thick) {
|
|
17
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
17
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
18
18
|
<path d="M21.5 18.5L21.5 36.5H18.5L18.5 18.5H21.5Z" style={{ fill: `var(--${type})` }}/>
|
|
19
19
|
<path d="M29.5 36.5V18.5H26.5V36.5H29.5Z" style={{ fill: `var(--${type})` }}/>
|
|
20
20
|
<path fillRule="evenodd" clipRule="evenodd" d="M31 11V6C31 4.89543 30.1046 4 29 4H19C17.8954 4 17 4.89543 17 6V11H6.5V14H9.27274L11.8347 42.1811C11.9283 43.2112 12.792 44 13.8264 44H34.1736C35.208 44 36.0717 43.2112 36.1654 42.1811L38.7273 14H41.5V11H31ZM20 7V11H28V7H20ZM35.7149 14H12.2851L14.7397 41H33.2604L35.7149 14Z" style={{ fill: `var(--${type})` }}/>
|
|
21
21
|
</svg>
|
|
22
22
|
;
|
|
23
23
|
} else if (fill) {
|
|
24
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
24
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
25
25
|
<path fillRule="evenodd" clipRule="evenodd" d="M31 11V6C31 4.89543 30.1046 4 29 4H19C17.8954 4 17 4.89543 17 6V11H6V15H9.36364L11.8347 42.1811C11.9283 43.2112 12.792 44 13.8264 44H34.1736C35.208 44 36.0717 43.2112 36.1654 42.1811L38.6364 15H42V11H31ZM21 8V11H27V8H21ZM21 36.5L21 18.5H18V36.5H21ZM30 36.5V18.5H27V36.5H30Z" style={{ fill: `var(--${type})` }}/>
|
|
26
26
|
</svg>
|
|
27
27
|
;
|
|
28
28
|
} else if (thick) {
|
|
29
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
29
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
30
30
|
<path d="M22 18V37H18L18 18H22Z" style={{ fill: `var(--${type})` }}/>
|
|
31
31
|
<path d="M30 37V18H26V37H30Z" style={{ fill: `var(--${type})` }}/>
|
|
32
32
|
<path fillRule="evenodd" clipRule="evenodd" d="M31 11V6C31 4.89543 30.1046 4 29 4H19C17.8954 4 17 4.89543 17 6V11H6V15H9.36364L11.8347 42.1811C11.9283 43.2112 12.792 44 13.8264 44H34.1736C35.208 44 36.0717 43.2112 36.1654 42.1811L38.6364 15H42V11H31ZM21 8V11H27V8H21ZM34.6199 15H13.3801L15.6529 40H32.3471L34.6199 15Z" style={{ fill: `var(--${type})` }}/>
|
|
@@ -34,7 +34,7 @@ export const Trash = forwardRef<SVGSVGElement, TrashProps>(
|
|
|
34
34
|
;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
37
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
38
38
|
<path d="M21.5 18.5L21.5 36.5H18.5L18.5 18.5H21.5Z" style={{ fill: `var(--${type})` }}/>
|
|
39
39
|
<path d="M29.5 36.5V18.5H26.5V36.5H29.5Z" style={{ fill: `var(--${type})` }}/>
|
|
40
40
|
<path fillRule="evenodd" clipRule="evenodd" d="M31 11V6C31 4.89543 30.1046 4 29 4H19C17.8954 4 17 4.89543 17 6V11H6.5V14H9.27274L11.8347 42.1811C11.9283 43.2112 12.792 44 13.8264 44H34.1736C35.208 44 36.0717 43.2112 36.1654 42.1811L38.7273 14H41.5V11H31ZM20 7V11H28V7H20ZM35.7149 14H12.2851L14.7397 41H33.2604L35.7149 14Z" style={{ fill: `var(--${type})` }}/>
|
package/assets/tune/index.tsx
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
import { BasicColorType } from '@liner-fe/design-token-primitive';
|
|
2
|
+
import { BasicColorType, iconSizeMap } from '@liner-fe/design-token-primitive';
|
|
3
3
|
import { SVGProps } from 'react';
|
|
4
4
|
|
|
5
5
|
interface TuneProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
|
|
6
6
|
fill?: boolean;
|
|
7
7
|
thick?: boolean;
|
|
8
8
|
className?: string;
|
|
9
|
-
size?:
|
|
9
|
+
size?: keyof typeof iconSizeMap;
|
|
10
10
|
type?: BasicColorType;
|
|
11
11
|
fillType?: BasicColorType;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export const
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
14
|
+
export const IconTune = forwardRef<SVGSVGElement, TuneProps>(
|
|
15
|
+
({ fill = false, thick = false, size = 'm', type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
|
|
16
16
|
if (fill && thick) {
|
|
17
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
17
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
18
18
|
<path d="M34.5 9.5V5H31.5V17H34.5V12.5H41V9.5H34.5Z" style={{ fill: `var(--${type})` }}/>
|
|
19
19
|
<path d="M7 9.5H27V12.5H7V9.5Z" style={{ fill: `var(--${type})` }}/>
|
|
20
20
|
<path d="M17.5 18L17.5 30H14.5V25.5H7V22.5H14.5V18H17.5Z" style={{ fill: `var(--${type})` }}/>
|
|
@@ -24,7 +24,7 @@ export const Tune = forwardRef<SVGSVGElement, TuneProps>(
|
|
|
24
24
|
</svg>
|
|
25
25
|
;
|
|
26
26
|
} else if (fill) {
|
|
27
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
27
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
28
28
|
<path d="M34.5 9.5V5H31.5V17H34.5V12.5H41V9.5H34.5Z" style={{ fill: `var(--${type})` }}/>
|
|
29
29
|
<path d="M7 9.5H27V12.5H7V9.5Z" style={{ fill: `var(--${type})` }}/>
|
|
30
30
|
<path d="M17.5 18L17.5 30H14.5V25.5H7V22.5H14.5V18H17.5Z" style={{ fill: `var(--${type})` }}/>
|
|
@@ -34,7 +34,7 @@ export const Tune = forwardRef<SVGSVGElement, TuneProps>(
|
|
|
34
34
|
</svg>
|
|
35
35
|
;
|
|
36
36
|
} else if (thick) {
|
|
37
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
37
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
38
38
|
<path d="M35 9V5H31V17H35V13H41V9H35Z" style={{ fill: `var(--${type})` }}/>
|
|
39
39
|
<path d="M7 9H27V13H7V9Z" style={{ fill: `var(--${type})` }}/>
|
|
40
40
|
<path d="M18 18L18 30H14V26H7V22H14V18H18Z" style={{ fill: `var(--${type})` }}/>
|
|
@@ -45,7 +45,7 @@ export const Tune = forwardRef<SVGSVGElement, TuneProps>(
|
|
|
45
45
|
;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
48
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
49
49
|
<path d="M34.5 9.5V5H31.5V17H34.5V12.5H41V9.5H34.5Z" style={{ fill: `var(--${type})` }}/>
|
|
50
50
|
<path d="M7 9.5H27V12.5H7V9.5Z" style={{ fill: `var(--${type})` }}/>
|
|
51
51
|
<path d="M17.5 18L17.5 30H14.5V25.5H7V22.5H14.5V18H17.5Z" style={{ fill: `var(--${type})` }}/>
|
package/assets/twitter/index.tsx
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
import { BasicColorType } from '@liner-fe/design-token-primitive';
|
|
2
|
+
import { BasicColorType, iconSizeMap } from '@liner-fe/design-token-primitive';
|
|
3
3
|
import { SVGProps } from 'react';
|
|
4
4
|
|
|
5
5
|
interface TwitterProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
|
|
6
6
|
fill?: boolean;
|
|
7
7
|
thick?: boolean;
|
|
8
8
|
className?: string;
|
|
9
|
-
size?:
|
|
9
|
+
size?: keyof typeof iconSizeMap;
|
|
10
10
|
type?: BasicColorType;
|
|
11
11
|
fillType?: BasicColorType;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export const
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
14
|
+
export const IconTwitter = forwardRef<SVGSVGElement, TwitterProps>(
|
|
15
|
+
({ fill = false, thick = false, size = 'm', type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
|
|
16
16
|
if (fill && thick) {
|
|
17
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
17
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
18
18
|
<path d="M7.08537 7L20.5998 25.7554L7 41H10.0625L21.9657 27.6492L31.5854 41H42L27.7279 21.1925L40.3834 7H37.3262L26.362 19.2932L17.5053 7H7.08537ZM11.5884 9.33681H16.3742L37.5023 38.6577H32.7165L11.5884 9.33681Z" style={{ fill: `var(--${type})` }}/>
|
|
19
19
|
</svg>
|
|
20
20
|
;
|
|
21
21
|
} else if (fill) {
|
|
22
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
22
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
23
23
|
<path d="M7.08537 7L20.5998 25.7554L7 41H10.0625L21.9657 27.6492L31.5854 41H42L27.7279 21.1925L40.3834 7H37.3262L26.362 19.2932L17.5053 7H7.08537ZM11.5884 9.33681H16.3742L37.5023 38.6577H32.7165L11.5884 9.33681Z" style={{ fill: `var(--${type})` }}/>
|
|
24
24
|
</svg>
|
|
25
25
|
;
|
|
26
26
|
} else if (thick) {
|
|
27
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
27
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
28
28
|
<path d="M7.08537 7L20.5998 25.7554L7 41H10.0625L21.9657 27.6492L31.5854 41H42L27.7279 21.1925L40.3834 7H37.3262L26.362 19.2932L17.5053 7H7.08537ZM11.5884 9.33681H16.3742L37.5023 38.6577H32.7165L11.5884 9.33681Z" style={{ fill: `var(--${type})` }}/>
|
|
29
29
|
</svg>
|
|
30
30
|
;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
33
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
34
34
|
<path d="M7.08537 7L20.5998 25.7554L7 41H10.0625L21.9657 27.6492L31.5854 41H42L27.7279 21.1925L40.3834 7H37.3262L26.362 19.2932L17.5053 7H7.08537ZM11.5884 9.33681H16.3742L37.5023 38.6577H32.7165L11.5884 9.33681Z" style={{ fill: `var(--${type})` }}/>
|
|
35
35
|
</svg>
|
|
36
36
|
;
|
package/assets/undo/index.tsx
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
import { BasicColorType } from '@liner-fe/design-token-primitive';
|
|
2
|
+
import { BasicColorType, iconSizeMap } from '@liner-fe/design-token-primitive';
|
|
3
3
|
import { SVGProps } from 'react';
|
|
4
4
|
|
|
5
5
|
interface UndoProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
|
|
6
6
|
fill?: boolean;
|
|
7
7
|
thick?: boolean;
|
|
8
8
|
className?: string;
|
|
9
|
-
size?:
|
|
9
|
+
size?: keyof typeof iconSizeMap;
|
|
10
10
|
type?: BasicColorType;
|
|
11
11
|
fillType?: BasicColorType;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export const
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
14
|
+
export const IconUndo = forwardRef<SVGSVGElement, UndoProps>(
|
|
15
|
+
({ fill = false, thick = false, size = 'm', type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
|
|
16
16
|
if (fill && thick) {
|
|
17
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
17
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
18
18
|
<path d="M6.8708 15.9592L15.83 7L17.9513 9.12132L10.5123 16.5603H30.3916C37.019 16.5603 42.3916 21.9329 42.3916 28.5603C42.3916 35.1877 37.019 40.5603 30.3916 40.5603H9.42334V37.5603H30.3916C35.3622 37.5603 39.3916 33.5309 39.3916 28.5603C39.3916 23.5898 35.3622 19.5603 30.3916 19.5603H10.51L17.9513 27.0016L15.83 29.1229L6.8708 20.1638C5.70973 19.0027 5.70973 17.1202 6.8708 15.9592Z" style={{ fill: `var(--${type})` }}/>
|
|
19
19
|
</svg>
|
|
20
20
|
;
|
|
21
21
|
} else if (fill) {
|
|
22
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
22
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
23
23
|
<path d="M6.8708 15.9592L15.83 7L17.9513 9.12132L10.5123 16.5603H30.3916C37.019 16.5603 42.3916 21.9329 42.3916 28.5603C42.3916 35.1877 37.019 40.5603 30.3916 40.5603H9.42334V37.5603H30.3916C35.3622 37.5603 39.3916 33.5309 39.3916 28.5603C39.3916 23.5898 35.3622 19.5603 30.3916 19.5603H10.51L17.9513 27.0016L15.83 29.1229L6.8708 20.1638C5.70973 19.0027 5.70973 17.1202 6.8708 15.9592Z" style={{ fill: `var(--${type})` }}/>
|
|
24
24
|
</svg>
|
|
25
25
|
;
|
|
26
26
|
} else if (thick) {
|
|
27
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
27
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
28
28
|
<path d="M6.01725 15.9592L14.9764 7L17.8048 9.82843L11.2194 16.4139H29.8916C36.7952 16.4139 42.3916 22.0103 42.3916 28.9139C42.3916 35.8174 36.7952 41.4139 29.8916 41.4139H8.42334V37.4139H29.8916C34.586 37.4139 38.3916 33.6083 38.3916 28.9139C38.3916 24.2195 34.586 20.4139 29.8916 20.4139H11.2171L17.8048 27.0016L14.9764 29.83L6.01725 20.8709C4.66092 19.5145 4.66092 17.3155 6.01725 15.9592Z" style={{ fill: `var(--${type})` }}/>
|
|
29
29
|
</svg>
|
|
30
30
|
;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
33
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
34
34
|
<path d="M6.8708 15.9592L15.83 7L17.9513 9.12132L10.5123 16.5603H30.3916C37.019 16.5603 42.3916 21.9329 42.3916 28.5603C42.3916 35.1877 37.019 40.5603 30.3916 40.5603H9.42334V37.5603H30.3916C35.3622 37.5603 39.3916 33.5309 39.3916 28.5603C39.3916 23.5898 35.3622 19.5603 30.3916 19.5603H10.51L17.9513 27.0016L15.83 29.1229L6.8708 20.1638C5.70973 19.0027 5.70973 17.1202 6.8708 15.9592Z" style={{ fill: `var(--${type})` }}/>
|
|
35
35
|
</svg>
|
|
36
36
|
;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
import { BasicColorType } from '@liner-fe/design-token-primitive';
|
|
2
|
+
import { BasicColorType, iconSizeMap } from '@liner-fe/design-token-primitive';
|
|
3
3
|
import { SVGProps } from 'react';
|
|
4
4
|
|
|
5
5
|
interface VerificationBadgeProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
|
|
6
6
|
fill?: boolean;
|
|
7
7
|
thick?: boolean;
|
|
8
8
|
className?: string;
|
|
9
|
-
size?:
|
|
9
|
+
size?: keyof typeof iconSizeMap;
|
|
10
10
|
type?: BasicColorType;
|
|
11
11
|
fillType?: BasicColorType;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export const
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
14
|
+
export const IconVerificationBadge = forwardRef<SVGSVGElement, VerificationBadgeProps>(
|
|
15
|
+
({ fill = false, thick = false, size = 'm', type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
|
|
16
16
|
if (fill && thick) {
|
|
17
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
17
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
18
18
|
<path fillRule="evenodd" clipRule="evenodd" d="M35.2528 9.61038L31.3875 3.10156L24.4346 6.09533L17.4817 3.10156L13.6164 9.61038L6.23169 11.2752L6.93037 18.8129L1.93457 24.5003L6.93037 30.1878L6.23169 37.7255L13.6164 39.3903L17.4817 45.8991L24.4346 42.9053L31.3874 45.8991L35.2528 39.3903L42.6375 37.7255L41.9388 30.1878L46.9346 24.5003L41.9388 18.8129L42.6375 11.2752L35.2528 9.61038ZM22.6152 27.52L16.4289 21.3337L13.6005 24.1621L19.7868 30.3484C21.3469 31.9086 23.8758 31.9108 25.4387 30.3534L36.1191 19.7102L33.2956 16.8768L22.6152 27.52Z" style={{ fill: `var(--${type})` }}/>
|
|
19
19
|
</svg>
|
|
20
20
|
;
|
|
21
21
|
} else if (fill) {
|
|
22
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
22
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
23
23
|
<path fillRule="evenodd" clipRule="evenodd" d="M35.2523 9.61038L31.387 3.10156L24.4341 6.09533L17.4812 3.10156L13.6159 9.61038L6.2312 11.2752L6.92989 18.8129L1.93408 24.5003L6.92989 30.1878L6.2312 37.7255L13.6159 39.3903L17.4812 45.8991L24.4341 42.9053L31.387 45.8991L35.2523 39.3903L42.637 37.7255L41.9383 30.1878L46.9341 24.5003L41.9383 18.8129L42.637 11.2752L35.2523 9.61038ZM22.2615 27.8736L16.0752 21.6873L13.9539 23.8086L20.1402 29.9949C21.5053 31.36 23.7181 31.362 25.0856 29.9992L35.766 19.356L33.6484 17.231L22.968 27.8742C22.7726 28.0689 22.4565 28.0686 22.2615 27.8736Z" style={{ fill: `var(--${type})` }}/>
|
|
24
24
|
</svg>
|
|
25
25
|
;
|
|
26
26
|
} else if (thick) {
|
|
27
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
27
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
28
28
|
<path fillRule="evenodd" clipRule="evenodd" d="M35.2523 9.61038L31.387 3.10156L24.4341 6.09533L17.4812 3.10156L13.6159 9.61038L6.2312 11.2752L6.92989 18.8129L1.93408 24.5003L6.92989 30.1878L6.2312 37.7255L13.6159 39.3903L17.4812 45.8991L24.4341 42.9053L31.387 45.8991L35.2523 39.3903L42.637 37.7255L41.9383 30.1878L46.9341 24.5003L41.9383 18.8129L42.637 11.2752L35.2523 9.61038ZM22.2615 27.8736L16.0752 21.6873L13.9539 23.8086L20.1402 29.9949C21.5053 31.36 23.7181 31.362 25.0856 29.9992L35.766 19.356L33.6484 17.231L22.968 27.8742C22.7726 28.0689 22.4565 28.0686 22.2615 27.8736Z" style={{ fill: `var(--${type})` }}/>
|
|
29
29
|
</svg>
|
|
30
30
|
;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
33
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
34
34
|
<path fillRule="evenodd" clipRule="evenodd" d="M35.2523 9.61038L31.387 3.10156L24.4341 6.09533L17.4812 3.10156L13.6159 9.61038L6.2312 11.2752L6.92989 18.8129L1.93408 24.5003L6.92989 30.1878L6.2312 37.7255L13.6159 39.3903L17.4812 45.8991L24.4341 42.9053L31.387 45.8991L35.2523 39.3903L42.637 37.7255L41.9383 30.1878L46.9341 24.5003L41.9383 18.8129L42.637 11.2752L35.2523 9.61038ZM22.2615 27.8736L16.0752 21.6873L13.9539 23.8086L20.1402 29.9949C21.5053 31.36 23.7181 31.362 25.0856 29.9992L35.766 19.356L33.6484 17.231L22.968 27.8742C22.7726 28.0689 22.4565 28.0686 22.2615 27.8736Z" style={{ fill: `var(--${type})` }}/>
|
|
35
35
|
</svg>
|
|
36
36
|
;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
import { BasicColorType } from '@liner-fe/design-token-primitive';
|
|
2
|
+
import { BasicColorType, iconSizeMap } from '@liner-fe/design-token-primitive';
|
|
3
3
|
import { SVGProps } from 'react';
|
|
4
4
|
|
|
5
5
|
interface ViewListProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
|
|
6
6
|
fill?: boolean;
|
|
7
7
|
thick?: boolean;
|
|
8
8
|
className?: string;
|
|
9
|
-
size?:
|
|
9
|
+
size?: keyof typeof iconSizeMap;
|
|
10
10
|
type?: BasicColorType;
|
|
11
11
|
fillType?: BasicColorType;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export const
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
14
|
+
export const IconViewList = forwardRef<SVGSVGElement, ViewListProps>(
|
|
15
|
+
({ fill = false, thick = false, size = 'm', type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
|
|
16
16
|
if (fill && thick) {
|
|
17
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
17
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
18
18
|
<path fillRule="evenodd" clipRule="evenodd" d="M4 10.5C4 9.39543 4.89543 8.5 6 8.5H42C43.1046 8.5 44 9.39543 44 10.5V37.5C44 38.6046 43.1046 39.5 42 39.5H6C4.89543 39.5 4 38.6046 4 37.5V10.5ZM7 18L7 11.5H14.5V18L7 18ZM7 21L7 27H14.5V21L7 21ZM7 30L7 36.5H14.5V30H7ZM17.5 36.5H41V30L17.5 30V36.5ZM41 27V21L17.5 21V27L41 27ZM41 18V11.5H17.5V18L41 18Z" style={{ fill: `var(--${type})` }}/>
|
|
19
19
|
</svg>
|
|
20
20
|
;
|
|
21
21
|
} else if (fill) {
|
|
22
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
22
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
23
23
|
<path fillRule="evenodd" clipRule="evenodd" d="M4 10.5C4 9.39543 4.89543 8.5 6 8.5H42C43.1046 8.5 44 9.39543 44 10.5V37.5C44 38.6046 43.1046 39.5 42 39.5H6C4.89543 39.5 4 38.6046 4 37.5V10.5ZM7 18L7 11.5H14.5V18L7 18ZM7 21L7 27H14.5V21L7 21ZM7 30L7 36.5H14.5V30H7ZM17.5 36.5H41V30L17.5 30V36.5ZM41 27V21L17.5 21V27L41 27ZM41 18V11.5H17.5V18L41 18Z" style={{ fill: `var(--${type})` }}/>
|
|
24
24
|
</svg>
|
|
25
25
|
;
|
|
26
26
|
} else if (thick) {
|
|
27
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
27
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
28
28
|
<path fillRule="evenodd" clipRule="evenodd" d="M4 10.5C4 9.39543 4.89543 8.5 6 8.5H42C43.1046 8.5 44 9.39543 44 10.5V37.5C44 38.6046 43.1046 39.5 42 39.5H6C4.89543 39.5 4 38.6046 4 37.5V10.5ZM8 17.5V12.5H14V17.5L8 17.5ZM8 21.5V26.5H14V21.5L8 21.5ZM8 30.5V35.5H14V30.5H8ZM18 35.5H40V30.5L18 30.5V35.5ZM40 26.5V21.5L18 21.5V26.5L40 26.5ZM40 17.5V12.5H18V17.5L40 17.5Z" style={{ fill: `var(--${type})` }}/>
|
|
29
29
|
</svg>
|
|
30
30
|
;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
33
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
34
34
|
<path fillRule="evenodd" clipRule="evenodd" d="M4 10.5C4 9.39543 4.89543 8.5 6 8.5H42C43.1046 8.5 44 9.39543 44 10.5V37.5C44 38.6046 43.1046 39.5 42 39.5H6C4.89543 39.5 4 38.6046 4 37.5V10.5ZM7 18L7 11.5H14.5V18L7 18ZM7 21L7 27H14.5V21L7 21ZM7 30L7 36.5H14.5V30H7ZM17.5 36.5H41V30L17.5 30V36.5ZM41 27V21L17.5 21V27L41 27ZM41 18V11.5H17.5V18L41 18Z" style={{ fill: `var(--${type})` }}/>
|
|
35
35
|
</svg>
|
|
36
36
|
;
|