@liner-fe/icon 0.1.0 → 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 +8 -0
- package/assets/add-clock/index.tsx +7 -7
- package/assets/add-to-folder/index.tsx +7 -7
- package/assets/ai/index.tsx +7 -7
- package/assets/airplane/index.tsx +7 -7
- package/assets/android/index.tsx +7 -7
- package/assets/apple/index.tsx +7 -7
- package/assets/arrow-back/index.tsx +7 -7
- package/assets/arrow-backward/index.tsx +7 -7
- package/assets/arrow-down/index.tsx +7 -7
- package/assets/arrow-down-left/index.tsx +7 -7
- package/assets/arrow-downward/index.tsx +7 -7
- package/assets/arrow-drop-right/index.tsx +7 -7
- package/assets/arrow-forward/index.tsx +7 -7
- package/assets/arrow-left/index.tsx +7 -7
- package/assets/arrow-right/index.tsx +7 -7
- package/assets/arrow-turn/index.tsx +7 -7
- package/assets/arrow-up/index.tsx +7 -7
- package/assets/arrow-up-down/index.tsx +7 -7
- package/assets/arrow-up-left/index.tsx +7 -7
- package/assets/arrow-up-right/index.tsx +7 -7
- package/assets/arrow-upward/index.tsx +7 -7
- package/assets/bag/index.tsx +7 -7
- package/assets/balance/index.tsx +7 -7
- package/assets/bell/index.tsx +7 -7
- package/assets/block/index.tsx +7 -7
- package/assets/bolt/index.tsx +7 -7
- package/assets/book/index.tsx +7 -7
- package/assets/bookmark/index.tsx +7 -7
- package/assets/bookmark-cancel/index.tsx +7 -7
- package/assets/books/index.tsx +7 -7
- package/assets/brain/index.tsx +7 -7
- package/assets/bulb/index.tsx +7 -7
- package/assets/bulb-exclamtionmark/index.tsx +7 -7
- package/assets/camera/index.tsx +7 -7
- package/assets/car/index.tsx +7 -7
- package/assets/casual-shoe/index.tsx +7 -7
- package/assets/chart-bar/index.tsx +7 -7
- package/assets/chart-line-uptrend/index.tsx +7 -7
- package/assets/check-mark/index.tsx +7 -7
- package/assets/check-mark-fill/index.tsx +7 -7
- package/assets/check-mark-in-circle/index.tsx +7 -7
- package/assets/chrome/index.tsx +7 -7
- package/assets/clock/index.tsx +7 -7
- package/assets/close/index.tsx +7 -7
- package/assets/close-fill/index.tsx +7 -7
- package/assets/collection-add/index.tsx +7 -7
- package/assets/collections/index.tsx +7 -7
- package/assets/color-docx/index.tsx +7 -7
- package/assets/color-excel/index.tsx +7 -7
- package/assets/color-facebook/index.tsx +7 -7
- package/assets/color-fire/index.tsx +7 -7
- package/assets/color-google/index.tsx +7 -7
- package/assets/color-html/index.tsx +7 -7
- package/assets/color-liner/index.tsx +7 -7
- package/assets/color-liner-variation/index.tsx +7 -7
- package/assets/color-link/index.tsx +7 -7
- package/assets/color-pdf/index.tsx +7 -7
- package/assets/color-powerpoint/index.tsx +7 -7
- package/assets/color-txt/index.tsx +7 -7
- package/assets/copy/index.tsx +7 -7
- package/assets/credit/index.tsx +7 -7
- package/assets/credit-add/index.tsx +7 -7
- package/assets/creditcard/index.tsx +7 -7
- package/assets/dark-mode/index.tsx +7 -7
- package/assets/description/index.tsx +7 -7
- package/assets/desktop/index.tsx +7 -7
- package/assets/desktop-on-cursor/index.tsx +7 -7
- package/assets/document/index.tsx +7 -7
- package/assets/document-add/index.tsx +7 -7
- package/assets/document-check/index.tsx +7 -7
- package/assets/document-warning/index.tsx +7 -7
- package/assets/double-arrow-backward/index.tsx +7 -7
- package/assets/double-arrow-forward/index.tsx +7 -7
- package/assets/download/index.tsx +7 -7
- package/assets/drop-down/index.tsx +7 -7
- package/assets/drop-up/index.tsx +7 -7
- package/assets/email/index.tsx +7 -7
- package/assets/end/index.tsx +7 -7
- package/assets/essay/index.tsx +7 -7
- package/assets/exclamationmark/index.tsx +7 -7
- package/assets/exclamationmark-fill/index.tsx +7 -7
- package/assets/expand/index.tsx +7 -7
- package/assets/expand-close/index.tsx +7 -7
- package/assets/extend/index.tsx +7 -7
- package/assets/facebook/index.tsx +7 -7
- package/assets/feedback/index.tsx +7 -7
- package/assets/filter/index.tsx +7 -7
- package/assets/fire/index.tsx +7 -7
- package/assets/flowchart/index.tsx +7 -7
- package/assets/focus/index.tsx +7 -7
- package/assets/folder/index.tsx +7 -7
- package/assets/folder-add/index.tsx +7 -7
- package/assets/folder-open/index.tsx +7 -7
- package/assets/folder-open-share/index.tsx +7 -7
- package/assets/folder-share/index.tsx +7 -7
- package/assets/formal-bag/index.tsx +7 -7
- package/assets/globe/index.tsx +7 -7
- package/assets/google/index.tsx +7 -7
- package/assets/google-export/index.tsx +7 -7
- package/assets/graduationcap/index.tsx +7 -7
- package/assets/help/index.tsx +7 -7
- package/assets/hide-all/index.tsx +7 -7
- package/assets/highlight-edit/index.tsx +7 -7
- package/assets/highlighter/index.tsx +7 -7
- package/assets/history/index.tsx +7 -7
- package/assets/home/index.tsx +7 -7
- package/assets/hourglass/index.tsx +7 -7
- package/assets/info/index.tsx +7 -7
- package/assets/light/index.tsx +7 -7
- package/assets/light-mode/index.tsx +7 -7
- package/assets/liner/index.tsx +7 -7
- package/assets/link/index.tsx +7 -7
- package/assets/list/index.tsx +7 -7
- package/assets/literature-review/index.tsx +7 -7
- package/assets/location/index.tsx +7 -7
- package/assets/lock/index.tsx +7 -7
- package/assets/m-new-tab/index.tsx +7 -7
- package/assets/magic-pencil/index.tsx +7 -7
- package/assets/magic-wand/index.tsx +7 -7
- package/assets/make-easy/index.tsx +7 -7
- package/assets/members/index.tsx +7 -7
- package/assets/memo/index.tsx +7 -7
- package/assets/menu/index.tsx +7 -7
- package/assets/microscope/index.tsx +7 -7
- package/assets/mindmap/index.tsx +7 -7
- package/assets/minus/index.tsx +7 -7
- package/assets/mobile/index.tsx +7 -7
- package/assets/more/index.tsx +7 -7
- package/assets/more-horizontal/index.tsx +7 -7
- package/assets/more-vertical/index.tsx +7 -7
- package/assets/move/index.tsx +7 -7
- package/assets/move-to-folder/index.tsx +7 -7
- package/assets/new-chrome-extension/index.tsx +7 -7
- package/assets/new-tab/index.tsx +7 -7
- package/assets/new-thread/index.tsx +7 -7
- package/assets/new-thread-folder/index.tsx +7 -7
- package/assets/palette/index.tsx +7 -7
- package/assets/paperclip/index.tsx +7 -7
- package/assets/paragraph/index.tsx +7 -7
- package/assets/paraphrase/index.tsx +7 -7
- package/assets/pencil/index.tsx +7 -7
- package/assets/person/index.tsx +7 -7
- package/assets/person-add/index.tsx +7 -7
- package/assets/person-fill/index.tsx +7 -7
- package/assets/photo/index.tsx +7 -7
- package/assets/play-button/index.tsx +7 -7
- package/assets/plus/index.tsx +7 -7
- package/assets/power/index.tsx +7 -7
- package/assets/question-box/index.tsx +7 -7
- package/assets/question-message/index.tsx +7 -7
- package/assets/quote/index.tsx +7 -7
- package/assets/redo/index.tsx +7 -7
- package/assets/regenerate/index.tsx +7 -7
- package/assets/remove-from-folder/index.tsx +7 -7
- package/assets/report/index.tsx +7 -7
- package/assets/restaurant/index.tsx +7 -7
- package/assets/retry/index.tsx +7 -7
- package/assets/rocket/index.tsx +7 -7
- package/assets/search/index.tsx +7 -7
- package/assets/secret-mode/index.tsx +7 -7
- package/assets/send/index.tsx +7 -7
- package/assets/setting/index.tsx +7 -7
- package/assets/share/index.tsx +7 -7
- package/assets/sheet-export/index.tsx +7 -7
- package/assets/shield/index.tsx +7 -7
- package/assets/shield-person/index.tsx +7 -7
- package/assets/shield-usage/index.tsx +7 -7
- package/assets/shorten/index.tsx +7 -7
- package/assets/show-all/index.tsx +7 -7
- package/assets/sign-out/index.tsx +7 -7
- package/assets/source/index.tsx +7 -7
- package/assets/speaker/index.tsx +7 -7
- package/assets/spinner/index.tsx +7 -7
- package/assets/stack/index.tsx +7 -7
- package/assets/star/index.tsx +7 -7
- package/assets/start/index.tsx +7 -7
- package/assets/step/index.tsx +7 -7
- package/assets/stop/index.tsx +7 -7
- package/assets/summarize/index.tsx +7 -7
- package/assets/survey/index.tsx +7 -7
- package/assets/target/index.tsx +7 -7
- package/assets/teams/index.tsx +7 -7
- package/assets/text-select/index.tsx +7 -7
- package/assets/thumb-down/index.tsx +7 -7
- package/assets/thumb-up/index.tsx +7 -7
- package/assets/timer/index.tsx +7 -7
- package/assets/translate/index.tsx +7 -7
- package/assets/trash/index.tsx +7 -7
- package/assets/tune/index.tsx +7 -7
- package/assets/twitter/index.tsx +7 -7
- package/assets/undo/index.tsx +7 -7
- package/assets/verification-badge/index.tsx +7 -7
- package/assets/view-list/index.tsx +7 -7
- package/assets/visibility/index.tsx +7 -7
- package/assets/visibility-off/index.tsx +7 -7
- package/assets/volume/index.tsx +7 -7
- package/assets/volume-up/index.tsx +7 -7
- package/assets/zoom-in/index.tsx +7 -7
- package/assets/zoom-out/index.tsx +7 -7
- package/index.tsx +2 -10
- package/lib/index.d.ts +200 -207
- package/lib/index.js +1195 -1003
- package/package.json +1 -1
|
@@ -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
14
|
export const IconTranslate = forwardRef<SVGSVGElement, TranslateProps>(
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
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
14
|
export const IconTrash = forwardRef<SVGSVGElement, TrashProps>(
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
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 IconTrash = 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
14
|
export const IconTune = forwardRef<SVGSVGElement, TuneProps>(
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
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 IconTune = 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 IconTune = 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 IconTune = 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
14
|
export const IconTwitter = forwardRef<SVGSVGElement, TwitterProps>(
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
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
14
|
export const IconUndo = forwardRef<SVGSVGElement, UndoProps>(
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
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
14
|
export const IconVerificationBadge = forwardRef<SVGSVGElement, VerificationBadgeProps>(
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
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
14
|
export const IconViewList = forwardRef<SVGSVGElement, ViewListProps>(
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
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
|
;
|
|
@@ -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 VisibilityProps 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
14
|
export const IconVisibility = forwardRef<SVGSVGElement, VisibilityProps>(
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
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="M29 24C29 26.7614 26.7614 29 24 29C21.2386 29 19 26.7614 19 24C19 21.2386 21.2386 19 24 19C26.7614 19 29 21.2386 29 24Z" style={{ fill: `var(--${type})` }}/>
|
|
19
19
|
<path fillRule="evenodd" clipRule="evenodd" d="M24 38C36.1503 38 46 26 46 24C46 22 36.1503 10 24 10C11.8497 10 2 22 2 24C2 26 11.8497 38 24 38ZM33 24C33 28.9706 28.9706 33 24 33C19.0294 33 15 28.9706 15 24C15 19.0294 19.0294 15 24 15C28.9706 15 33 19.0294 33 24Z" 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 24C30 27.3137 27.3137 30 24 30C20.6863 30 18 27.3137 18 24C18 20.6863 20.6863 18 24 18C27.3137 18 30 20.6863 30 24Z" style={{ fill: `var(--${type})` }}/>
|
|
25
25
|
<path fillRule="evenodd" clipRule="evenodd" d="M24 38C36.1503 38 46 26 46 24C46 22 36.1503 10 24 10C11.8497 10 2 22 2 24C2 26 11.8497 38 24 38ZM33 24C33 28.9706 28.9706 33 24 33C19.0294 33 15 28.9706 15 24C15 19.0294 19.0294 15 24 15C28.9706 15 33 19.0294 33 24Z" 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="M32 24C32 28.4183 28.4183 32 24 32C19.5817 32 16 28.4183 16 24C16 19.5817 19.5817 16 24 16C28.4183 16 32 19.5817 32 24ZM28 24C28 26.2091 26.2091 28 24 28C21.7909 28 20 26.2091 20 24C20 21.7909 21.7909 20 24 20C26.2091 20 28 21.7909 28 24Z" style={{ fill: `var(--${type})` }}/>
|
|
31
31
|
<path fillRule="evenodd" clipRule="evenodd" d="M46 24C46 26 36.1503 38 24 38C11.8497 38 2 26 2 24C2 22 11.8497 10 24 10C36.1503 10 46 22 46 24ZM41.1349 23.4515C41.292 23.6499 41.4304 23.8332 41.5511 24C41.4304 24.1668 41.292 24.3501 41.1349 24.5485C40.2049 25.7232 38.7984 27.2051 37.0268 28.6514C33.4144 31.6003 28.7889 34 24 34C19.2111 34 14.5856 31.6003 10.9732 28.6514C9.20156 27.2051 7.79508 25.7232 6.86507 24.5485C6.70804 24.3501 6.56963 24.1668 6.44888 24C6.56963 23.8332 6.70804 23.6499 6.86507 23.4515C7.79508 22.2768 9.20156 20.7949 10.9732 19.3486C14.5856 16.3997 19.2111 14 24 14C28.7889 14 33.4144 16.3997 37.0268 19.3486C38.7984 20.7949 40.2049 22.2768 41.1349 23.4515Z" 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 fillRule="evenodd" clipRule="evenodd" d="M32 24C32 28.4183 28.4183 32 24 32C19.5817 32 16 28.4183 16 24C16 19.5817 19.5817 16 24 16C28.4183 16 32 19.5817 32 24ZM29 24C29 26.7614 26.7614 29 24 29C21.2386 29 19 26.7614 19 24C19 21.2386 21.2386 19 24 19C26.7614 19 29 21.2386 29 24Z" style={{ fill: `var(--${type})` }}/>
|
|
38
38
|
<path fillRule="evenodd" clipRule="evenodd" d="M46 24C46 26 36.1503 38 24 38C11.8497 38 2 26 2 24C2 22 11.8497 10 24 10C36.1503 10 46 22 46 24ZM43.0785 23.4302L43.0819 23.4216C43.0857 23.4117 43.0863 23.4089 43.0846 23.413C43.0835 23.4158 43.0813 23.4215 43.0785 23.4302ZM41.919 22.8308C42.2832 23.2909 42.5616 23.6856 42.7608 24C42.5616 24.3144 42.2832 24.7091 41.919 25.1692C40.9432 26.4018 39.4856 27.9351 37.6592 29.426C33.9546 32.4502 29.1105 35 24 35C18.8895 35 14.0454 32.4502 10.3408 29.426C8.51443 27.9351 7.05684 26.4018 6.08102 25.1692C5.71684 24.7091 5.43835 24.3144 5.23917 24C5.43835 23.6856 5.71684 23.2909 6.08102 22.8308C7.05684 21.5982 8.51443 20.0649 10.3408 18.574C14.0454 15.5498 18.8895 13 24 13C29.1105 13 33.9546 15.5498 37.6592 18.574C39.4856 20.0649 40.9432 21.5982 41.919 22.8308ZM4.91812 23.4216C4.91179 23.405 4.91434 23.4086 4.92157 23.4302L4.91812 23.4216ZM4.91812 24.5784L4.92157 24.5698C4.91434 24.5914 4.91179 24.595 4.91812 24.5784ZM43.0785 24.5698L43.0819 24.5784C43.0882 24.595 43.0857 24.5914 43.0785 24.5698Z" style={{ fill: `var(--${type})` }}/>
|
|
39
39
|
</svg>
|
|
@@ -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 VisibilityOffProps 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
14
|
export const IconVisibilityOff = forwardRef<SVGSVGElement, VisibilityOffProps>(
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
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="M11.2725 8.44336L8.44409 11.2718L36.7284 39.5561L39.5568 36.7276L11.2725 8.44336Z" style={{ fill: `var(--${type})` }}/>
|
|
19
19
|
<path d="M38.3491 32.6915C43.0339 29.2067 46 25.0978 46 24.0003C46 22.0003 36.1503 10.0003 24 10.0003C21.5361 10.0003 19.1667 10.4938 16.9549 11.2973L21.1264 15.4688C22.0288 15.165 22.9952 15.0003 24 15.0003C28.9706 15.0003 33 19.0297 33 24.0003C33 25.0051 32.8353 25.9715 32.5315 26.8739L38.3491 32.6915Z" style={{ fill: `var(--${type})` }}/>
|
|
20
20
|
<path d="M24.7076 19.05C26.9028 19.361 28.6393 21.0975 28.9503 23.2927L24.7076 19.05Z" style={{ fill: `var(--${type})` }}/>
|
|
@@ -23,7 +23,7 @@ export const IconVisibilityOff = forwardRef<SVGSVGElement, VisibilityOffProps>(
|
|
|
23
23
|
</svg>
|
|
24
24
|
;
|
|
25
25
|
} else if (fill) {
|
|
26
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
26
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
27
27
|
<path d="M11.2725 8.44336L8.44409 11.2718L36.7284 39.5561L39.5568 36.7276L11.2725 8.44336Z" style={{ fill: `var(--${type})` }}/>
|
|
28
28
|
<path d="M37.9408 32.9904C42.8609 29.4455 46 25.1294 46 24.0003C46 22.0003 36.1503 10.0003 24 10.0003C21.3442 10.0003 18.7982 10.5736 16.441 11.4906L20.6108 15.6603C21.6568 15.2347 22.801 15.0003 24 15.0003C28.9706 15.0003 33 19.0297 33 24.0003C33 25.1993 32.7656 26.3435 32.34 27.3895L37.9408 32.9904Z" style={{ fill: `var(--${type})` }}/>
|
|
29
29
|
<path d="M18.0785 23.0275L24.9728 29.9218C24.6562 29.9735 24.3312 30.0003 24 30.0003C20.6863 30.0003 18 27.314 18 24.0003C18 23.6691 18.0268 23.3441 18.0785 23.0275Z" style={{ fill: `var(--${type})` }}/>
|
|
@@ -32,7 +32,7 @@ export const IconVisibilityOff = forwardRef<SVGSVGElement, VisibilityOffProps>(
|
|
|
32
32
|
</svg>
|
|
33
33
|
;
|
|
34
34
|
} else if (thick) {
|
|
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 d="M39.5568 36.7276L36.7284 39.5561L8.44409 11.2718L11.2725 8.44336L39.5568 36.7276Z" style={{ fill: `var(--${type})` }}/>
|
|
37
37
|
<path d="M31.7293 26.0716C31.9059 25.411 32 24.7166 32 24.0003C32 19.582 28.4183 16.0003 24 16.0003C23.2837 16.0003 22.5893 16.0944 21.9287 16.271L31.7293 26.0716Z" style={{ fill: `var(--${type})` }}/>
|
|
38
38
|
<path d="M16 24.0003C16 23.2834 16.0943 22.5884 16.2712 21.9273L21.1164 26.7724C21.1528 26.8103 21.19 26.8475 21.2279 26.8839L26.073 31.7291C25.4119 31.906 24.7169 32.0003 24 32.0003C19.5817 32.0003 16 28.4186 16 24.0003Z" style={{ fill: `var(--${type})` }}/>
|
|
@@ -42,7 +42,7 @@ export const IconVisibilityOff = forwardRef<SVGSVGElement, VisibilityOffProps>(
|
|
|
42
42
|
;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
45
|
+
return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
|
|
46
46
|
<path d="M10.9186 8.79688L39.2028 37.0811L37.0815 39.2025L8.79724 10.9182L10.9186 8.79688Z" style={{ fill: `var(--${type})` }}/>
|
|
47
47
|
<path fillRule="evenodd" clipRule="evenodd" d="M37.5262 33.2832C42.6838 29.687 46 25.1597 46 23.9993C46 21.9993 36.1503 9.99925 24 9.99925C21.1532 9.99925 18.4327 10.658 15.9355 11.6926L18.2597 14.0167C20.1002 13.378 22.0303 12.9993 24 12.9993C29.1105 12.9993 33.9546 15.549 37.6592 18.5732C39.4856 20.0641 40.9432 21.5975 41.919 22.8301C42.2832 23.2901 42.5616 23.6848 42.7608 23.9993C42.5616 24.3137 42.2832 24.7084 41.919 25.1684C40.9432 26.401 39.4856 27.9344 37.6592 29.4253C36.9367 30.0151 36.1709 30.5868 35.3681 31.1252L37.5262 33.2832ZM43.0785 23.4294L43.0819 23.4209C43.0857 23.4109 43.0863 23.4082 43.0846 23.4123L43.0828 23.417L43.0785 23.4294ZM43.0785 24.569L43.0819 24.5776C43.0845 24.5844 43.0855 24.588 43.0855 24.588C43.0855 24.588 43.0846 24.5863 43.0832 24.5825L43.0785 24.569Z" style={{ fill: `var(--${type})` }}/>
|
|
48
48
|
<path fillRule="evenodd" clipRule="evenodd" d="M29.7397 33.982L32.0639 36.3062C29.5669 37.3406 26.8466 37.9993 24 37.9993C11.8497 37.9993 2 25.9993 2 23.9993C2 22.8388 5.31598 18.3118 10.4733 14.7156L12.6314 16.8737C11.8288 17.4119 11.0632 17.9835 10.3408 18.5732C8.51443 20.0641 7.05684 21.5975 6.08102 22.8301C5.71684 23.2901 5.43835 23.6848 5.23917 23.9993C5.43835 24.3137 5.71684 24.7084 6.08102 25.1684C7.05684 26.401 8.51443 27.9344 10.3408 29.4253C14.0454 32.4495 18.8895 34.9993 24 34.9993C25.9695 34.9993 27.8993 34.6206 29.7397 33.982ZM4.91812 23.4209C4.91179 23.4042 4.91434 23.4078 4.92157 23.4295L4.91812 23.4209ZM4.91812 24.5776L4.92157 24.569C4.91434 24.5907 4.91179 24.5943 4.91812 24.5776Z" style={{ fill: `var(--${type})` }}/>
|
package/assets/volume/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 VolumeProps 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
14
|
export const IconVolume = forwardRef<SVGSVGElement, VolumeProps>(
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
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="M11.9692 19.999H7V27.999H11.9708L23 37.4685V10.5281L11.9692 19.999ZM24.6514 38.8864L24.6502 38.8853ZM10.858 16.999L22.6972 6.83409C23.9942 5.72049 26 6.64204 26 8.35152V39.6451C26 41.3546 23.9942 42.2761 22.6972 41.1625L10.8596 30.999H4V16.999H10.858Z" 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="M10.858 16.999L22.6972 6.83409C23.9942 5.72049 26 6.64204 26 8.35152V39.6451C26 41.3546 23.9942 42.2761 22.6972 41.1625L10.8596 30.999H4V16.999H10.858Z" 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="M10.858 16.999L22.6972 6.83409C23.9942 5.72049 26 6.64204 26 8.35152V39.6451C26 41.3546 23.9942 42.2761 22.6972 41.1625L10.8596 30.999H4V16.999H10.858ZM12.3396 20.999H8V26.999H12.3412L22 35.2919V12.7047L12.3396 20.999Z" 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="M11.9692 19.999H7V27.999H11.9708L23 37.4685V10.5281L11.9692 19.999ZM24.6514 38.8864L24.6502 38.8853ZM10.858 16.999L22.6972 6.83409C23.9942 5.72049 26 6.64204 26 8.35152V39.6451C26 41.3546 23.9942 42.2761 22.6972 41.1625L10.8596 30.999H4V16.999H10.858Z" style={{ fill: `var(--${type})` }}/>
|
|
35
35
|
</svg>
|
|
36
36
|
;
|
|
@@ -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 VolumeUpProps 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
14
|
export const IconVolumeUp = forwardRef<SVGSVGElement, VolumeUpProps>(
|
|
15
|
-
({ fill = false, thick = false, size =
|
|
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="M11.9692 19.999H7V27.999H11.9708L23 37.4685V10.5281L11.9692 19.999ZM24.6514 38.8864L24.6502 38.8853ZM10.858 16.999L22.6972 6.83409C23.9942 5.72049 26 6.64204 26 8.35152V39.6451C26 41.3546 23.9942 42.2761 22.6972 41.1625L10.8596 30.999H4V16.999H10.858Z" style={{ fill: `var(--${type})` }}/>
|
|
19
19
|
<path fillRule="evenodd" clipRule="evenodd" d="M32.5 23.9987C32.5 21.7058 31.5398 19.6154 29.9545 18.0743L32.0455 15.9232C34.1718 17.9901 35.5 20.8411 35.5 23.9987C35.5 27.1564 34.1718 30.0074 32.0455 32.0743L29.9545 29.9232C31.5398 28.3821 32.5 26.2917 32.5 23.9987Z" style={{ fill: `var(--${type})` }}/>
|
|
20
20
|
<path fillRule="evenodd" clipRule="evenodd" d="M40.5 23.9987C40.5 19.3177 38.7371 15.0917 35.8979 12.0162L38.1021 9.98125C41.4488 13.6063 43.5 18.5572 43.5 23.9987C43.5 29.4402 41.4488 34.3912 38.1021 38.0162L35.8979 35.9812C38.7371 32.9058 40.5 28.6797 40.5 23.9987Z" 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="M10.858 16.999L22.6972 6.83409C23.9942 5.72049 26 6.64204 26 8.35152V39.6451C26 41.3546 23.9942 42.2761 22.6972 41.1625L10.8596 30.999H4V16.999H10.858Z" style={{ fill: `var(--${type})` }}/>
|
|
26
26
|
<path d="M32 23.9995C32 21.8507 31.1011 19.887 29.606 18.4336L32.3941 15.5654C34.6105 17.72 36 20.6977 36 23.9995C36 27.3013 34.6105 30.279 32.3941 32.4336L29.606 29.5654C31.1011 28.112 32 26.1483 32 23.9995Z" style={{ fill: `var(--${type})` }}/>
|
|
27
27
|
<path d="M35.5305 12.3559C38.2852 15.3398 40 19.445 40 23.9992C40 28.5535 38.2852 32.6587 35.5305 35.6426L38.4696 38.3559C41.9008 34.6392 44 29.5675 44 23.9992C44 18.431 41.9008 13.3592 38.4696 9.64258L35.5305 12.3559Z" 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 fillRule="evenodd" clipRule="evenodd" d="M10.858 16.999L22.6972 6.83409C23.9942 5.72049 26 6.64204 26 8.35152V39.6451C26 41.3546 23.9942 42.2761 22.6972 41.1625L10.8596 30.999H4V16.999H10.858ZM12.3396 20.999H8V26.999H12.3412L22 35.2919V12.7047L12.3396 20.999Z" style={{ fill: `var(--${type})` }}/>
|
|
33
33
|
<path d="M32 23.9995C32 21.8507 31.1011 19.887 29.606 18.4336L32.3941 15.5654C34.6105 17.72 36 20.6977 36 23.9995C36 27.3013 34.6105 30.279 32.3941 32.4336L29.606 29.5654C31.1011 28.112 32 26.1483 32 23.9995Z" style={{ fill: `var(--${type})` }}/>
|
|
34
34
|
<path d="M35.5305 12.3559C38.2852 15.3398 40 19.445 40 23.9992C40 28.5535 38.2852 32.6587 35.5305 35.6426L38.4696 38.3559C41.9008 34.6392 44 29.5675 44 23.9992C44 18.431 41.9008 13.3592 38.4696 9.64258L35.5305 12.3559Z" style={{ fill: `var(--${type})` }}/>
|
|
@@ -36,7 +36,7 @@ export const IconVolumeUp = forwardRef<SVGSVGElement, VolumeUpProps>(
|
|
|
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 fillRule="evenodd" clipRule="evenodd" d="M11.9692 19.999H7V27.999H11.9708L23 37.4685V10.5281L11.9692 19.999ZM24.6514 38.8864L24.6502 38.8853ZM10.858 16.999L22.6972 6.83409C23.9942 5.72049 26 6.64204 26 8.35152V39.6451C26 41.3546 23.9942 42.2761 22.6972 41.1625L10.8596 30.999H4V16.999H10.858Z" style={{ fill: `var(--${type})` }}/>
|
|
41
41
|
<path fillRule="evenodd" clipRule="evenodd" d="M32.5 23.9987C32.5 21.7058 31.5398 19.6154 29.9545 18.0743L32.0455 15.9232C34.1718 17.9901 35.5 20.8411 35.5 23.9987C35.5 27.1564 34.1718 30.0074 32.0455 32.0743L29.9545 29.9232C31.5398 28.3821 32.5 26.2917 32.5 23.9987Z" style={{ fill: `var(--${type})` }}/>
|
|
42
42
|
<path fillRule="evenodd" clipRule="evenodd" d="M40.5 23.9987C40.5 19.3177 38.7371 15.0917 35.8979 12.0162L38.1021 9.98125C41.4488 13.6063 43.5 18.5572 43.5 23.9987C43.5 29.4402 41.4488 34.3912 38.1021 38.0162L35.8979 35.9812C38.7371 32.9058 40.5 28.6797 40.5 23.9987Z" style={{ fill: `var(--${type})` }}/>
|