@liner-fe/icon 0.1.0 → 0.1.2

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.
Files changed (204) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/assets/add-clock/index.tsx +8 -8
  3. package/assets/add-to-folder/index.tsx +8 -8
  4. package/assets/ai/index.tsx +8 -8
  5. package/assets/airplane/index.tsx +8 -8
  6. package/assets/android/index.tsx +8 -8
  7. package/assets/apple/index.tsx +8 -8
  8. package/assets/arrow-back/index.tsx +8 -8
  9. package/assets/arrow-backward/index.tsx +8 -8
  10. package/assets/arrow-down/index.tsx +8 -8
  11. package/assets/arrow-down-left/index.tsx +8 -8
  12. package/assets/arrow-downward/index.tsx +8 -8
  13. package/assets/arrow-drop-right/index.tsx +8 -8
  14. package/assets/arrow-forward/index.tsx +8 -8
  15. package/assets/arrow-left/index.tsx +8 -8
  16. package/assets/arrow-right/index.tsx +8 -8
  17. package/assets/arrow-turn/index.tsx +8 -8
  18. package/assets/arrow-up/index.tsx +8 -8
  19. package/assets/arrow-up-down/index.tsx +8 -8
  20. package/assets/arrow-up-left/index.tsx +8 -8
  21. package/assets/arrow-up-right/index.tsx +8 -8
  22. package/assets/arrow-upward/index.tsx +8 -8
  23. package/assets/bag/index.tsx +8 -8
  24. package/assets/balance/index.tsx +8 -8
  25. package/assets/bell/index.tsx +8 -8
  26. package/assets/block/index.tsx +8 -8
  27. package/assets/bolt/index.tsx +8 -8
  28. package/assets/book/index.tsx +8 -8
  29. package/assets/bookmark/index.tsx +8 -8
  30. package/assets/bookmark-cancel/index.tsx +8 -8
  31. package/assets/books/index.tsx +8 -8
  32. package/assets/brain/index.tsx +8 -8
  33. package/assets/bulb/index.tsx +8 -8
  34. package/assets/bulb-exclamtionmark/index.tsx +8 -8
  35. package/assets/camera/index.tsx +8 -8
  36. package/assets/car/index.tsx +8 -8
  37. package/assets/casual-shoe/index.tsx +8 -8
  38. package/assets/chart-bar/index.tsx +8 -8
  39. package/assets/chart-line-uptrend/index.tsx +8 -8
  40. package/assets/check-mark/index.tsx +8 -8
  41. package/assets/check-mark-fill/index.tsx +8 -8
  42. package/assets/check-mark-in-circle/index.tsx +8 -8
  43. package/assets/chrome/index.tsx +8 -8
  44. package/assets/clock/index.tsx +8 -8
  45. package/assets/close/index.tsx +8 -8
  46. package/assets/close-fill/index.tsx +8 -8
  47. package/assets/collection-add/index.tsx +8 -8
  48. package/assets/collections/index.tsx +8 -8
  49. package/assets/color-docx/index.tsx +8 -8
  50. package/assets/color-excel/index.tsx +8 -8
  51. package/assets/color-facebook/index.tsx +8 -8
  52. package/assets/color-fire/index.tsx +8 -8
  53. package/assets/color-google/index.tsx +8 -8
  54. package/assets/color-html/index.tsx +8 -8
  55. package/assets/color-liner/index.tsx +8 -8
  56. package/assets/color-liner-variation/index.tsx +8 -8
  57. package/assets/color-link/index.tsx +8 -8
  58. package/assets/color-pdf/index.tsx +8 -8
  59. package/assets/color-powerpoint/index.tsx +8 -8
  60. package/assets/color-txt/index.tsx +8 -8
  61. package/assets/copy/index.tsx +8 -8
  62. package/assets/credit/index.tsx +8 -8
  63. package/assets/credit-add/index.tsx +8 -8
  64. package/assets/creditcard/index.tsx +8 -8
  65. package/assets/dark-mode/index.tsx +8 -8
  66. package/assets/description/index.tsx +8 -8
  67. package/assets/desktop/index.tsx +8 -8
  68. package/assets/desktop-on-cursor/index.tsx +8 -8
  69. package/assets/document/index.tsx +8 -8
  70. package/assets/document-add/index.tsx +8 -8
  71. package/assets/document-check/index.tsx +8 -8
  72. package/assets/document-warning/index.tsx +8 -8
  73. package/assets/double-arrow-backward/index.tsx +8 -8
  74. package/assets/double-arrow-forward/index.tsx +8 -8
  75. package/assets/download/index.tsx +8 -8
  76. package/assets/drop-down/index.tsx +8 -8
  77. package/assets/drop-up/index.tsx +8 -8
  78. package/assets/email/index.tsx +8 -8
  79. package/assets/end/index.tsx +8 -8
  80. package/assets/essay/index.tsx +8 -8
  81. package/assets/exclamationmark/index.tsx +8 -8
  82. package/assets/exclamationmark-fill/index.tsx +8 -8
  83. package/assets/expand/index.tsx +8 -8
  84. package/assets/expand-close/index.tsx +8 -8
  85. package/assets/extend/index.tsx +8 -8
  86. package/assets/facebook/index.tsx +8 -8
  87. package/assets/feedback/index.tsx +8 -8
  88. package/assets/filter/index.tsx +8 -8
  89. package/assets/fire/index.tsx +8 -8
  90. package/assets/flowchart/index.tsx +8 -8
  91. package/assets/focus/index.tsx +8 -8
  92. package/assets/folder/index.tsx +8 -8
  93. package/assets/folder-add/index.tsx +8 -8
  94. package/assets/folder-open/index.tsx +8 -8
  95. package/assets/folder-open-share/index.tsx +8 -8
  96. package/assets/folder-share/index.tsx +8 -8
  97. package/assets/formal-bag/index.tsx +8 -8
  98. package/assets/globe/index.tsx +8 -8
  99. package/assets/google/index.tsx +8 -8
  100. package/assets/google-export/index.tsx +8 -8
  101. package/assets/graduationcap/index.tsx +8 -8
  102. package/assets/help/index.tsx +8 -8
  103. package/assets/hide-all/index.tsx +8 -8
  104. package/assets/highlight-edit/index.tsx +8 -8
  105. package/assets/highlighter/index.tsx +8 -8
  106. package/assets/history/index.tsx +8 -8
  107. package/assets/home/index.tsx +8 -8
  108. package/assets/hourglass/index.tsx +8 -8
  109. package/assets/info/index.tsx +8 -8
  110. package/assets/light/index.tsx +8 -8
  111. package/assets/light-mode/index.tsx +8 -8
  112. package/assets/liner/index.tsx +8 -8
  113. package/assets/link/index.tsx +8 -8
  114. package/assets/list/index.tsx +8 -8
  115. package/assets/literature-review/index.tsx +8 -8
  116. package/assets/location/index.tsx +8 -8
  117. package/assets/lock/index.tsx +8 -8
  118. package/assets/m-new-tab/index.tsx +8 -8
  119. package/assets/magic-pencil/index.tsx +8 -8
  120. package/assets/magic-wand/index.tsx +8 -8
  121. package/assets/make-easy/index.tsx +8 -8
  122. package/assets/members/index.tsx +8 -8
  123. package/assets/memo/index.tsx +8 -8
  124. package/assets/menu/index.tsx +8 -8
  125. package/assets/microscope/index.tsx +8 -8
  126. package/assets/mindmap/index.tsx +8 -8
  127. package/assets/minus/index.tsx +8 -8
  128. package/assets/mobile/index.tsx +8 -8
  129. package/assets/more/index.tsx +8 -8
  130. package/assets/more-horizontal/index.tsx +8 -8
  131. package/assets/more-vertical/index.tsx +8 -8
  132. package/assets/move/index.tsx +8 -8
  133. package/assets/move-to-folder/index.tsx +8 -8
  134. package/assets/new-chrome-extension/index.tsx +8 -8
  135. package/assets/new-tab/index.tsx +8 -8
  136. package/assets/new-thread/index.tsx +8 -8
  137. package/assets/new-thread-folder/index.tsx +8 -8
  138. package/assets/palette/index.tsx +8 -8
  139. package/assets/paperclip/index.tsx +8 -8
  140. package/assets/paragraph/index.tsx +8 -8
  141. package/assets/paraphrase/index.tsx +8 -8
  142. package/assets/pencil/index.tsx +8 -8
  143. package/assets/person/index.tsx +8 -8
  144. package/assets/person-add/index.tsx +8 -8
  145. package/assets/person-fill/index.tsx +8 -8
  146. package/assets/photo/index.tsx +8 -8
  147. package/assets/play-button/index.tsx +8 -8
  148. package/assets/plus/index.tsx +8 -8
  149. package/assets/power/index.tsx +8 -8
  150. package/assets/question-box/index.tsx +8 -8
  151. package/assets/question-message/index.tsx +8 -8
  152. package/assets/quote/index.tsx +8 -8
  153. package/assets/redo/index.tsx +8 -8
  154. package/assets/regenerate/index.tsx +8 -8
  155. package/assets/remove-from-folder/index.tsx +8 -8
  156. package/assets/report/index.tsx +8 -8
  157. package/assets/restaurant/index.tsx +8 -8
  158. package/assets/retry/index.tsx +8 -8
  159. package/assets/rocket/index.tsx +8 -8
  160. package/assets/search/index.tsx +8 -8
  161. package/assets/secret-mode/index.tsx +8 -8
  162. package/assets/send/index.tsx +8 -8
  163. package/assets/setting/index.tsx +8 -8
  164. package/assets/share/index.tsx +8 -8
  165. package/assets/sheet-export/index.tsx +8 -8
  166. package/assets/shield/index.tsx +8 -8
  167. package/assets/shield-person/index.tsx +8 -8
  168. package/assets/shield-usage/index.tsx +8 -8
  169. package/assets/shorten/index.tsx +8 -8
  170. package/assets/show-all/index.tsx +8 -8
  171. package/assets/sign-out/index.tsx +8 -8
  172. package/assets/source/index.tsx +8 -8
  173. package/assets/speaker/index.tsx +8 -8
  174. package/assets/spinner/index.tsx +8 -8
  175. package/assets/stack/index.tsx +8 -8
  176. package/assets/star/index.tsx +8 -8
  177. package/assets/start/index.tsx +8 -8
  178. package/assets/step/index.tsx +8 -8
  179. package/assets/stop/index.tsx +8 -8
  180. package/assets/summarize/index.tsx +8 -8
  181. package/assets/survey/index.tsx +8 -8
  182. package/assets/target/index.tsx +8 -8
  183. package/assets/teams/index.tsx +8 -8
  184. package/assets/text-select/index.tsx +8 -8
  185. package/assets/thumb-down/index.tsx +8 -8
  186. package/assets/thumb-up/index.tsx +8 -8
  187. package/assets/timer/index.tsx +8 -8
  188. package/assets/translate/index.tsx +8 -8
  189. package/assets/trash/index.tsx +8 -8
  190. package/assets/tune/index.tsx +8 -8
  191. package/assets/twitter/index.tsx +8 -8
  192. package/assets/undo/index.tsx +8 -8
  193. package/assets/verification-badge/index.tsx +8 -8
  194. package/assets/view-list/index.tsx +8 -8
  195. package/assets/visibility/index.tsx +8 -8
  196. package/assets/visibility-off/index.tsx +8 -8
  197. package/assets/volume/index.tsx +8 -8
  198. package/assets/volume-up/index.tsx +8 -8
  199. package/assets/zoom-in/index.tsx +8 -8
  200. package/assets/zoom-out/index.tsx +8 -8
  201. package/index.tsx +2 -10
  202. package/lib/index.d.ts +399 -406
  203. package/lib/index.js +1195 -1003
  204. 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
- interface ShareProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
5
+ interface ShareProps extends Omit<SVGProps<SVGSVGElement>, 'fill' | 'name'> {
6
6
  fill?: boolean;
7
7
  thick?: boolean;
8
8
  className?: string;
9
- size?: number
9
+ size?: keyof typeof iconSizeMap;
10
10
  type?: BasicColorType;
11
11
  fillType?: BasicColorType;
12
12
  }
13
13
 
14
14
  export const IconShare = forwardRef<SVGSVGElement, ShareProps>(
15
- ({ fill = false, thick = false, size = 24, type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
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.499 9.62004L34.6261 18.7471L36.7474 16.6257L26.4749 6.35325C25.108 4.98642 22.892 4.98642 21.5251 6.35325L11.2526 16.6257L13.374 18.7471L22.499 9.622V32.9999H25.499V9.62004Z" style={{ fill: `var(--${type})` }}/>
19
19
  <path d="M39.5 38.9999V23.9999H42.5V38.9999C42.5 40.9329 40.933 42.4999 39 42.4999H9C7.067 42.4999 5.5 40.9329 5.5 38.9999V24H8.5V38.9999C8.5 39.2761 8.72386 39.4999 9 39.4999H39C39.2761 39.4999 39.5 39.2761 39.5 38.9999Z" 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.499 9.62004L34.6261 18.7471L36.7474 16.6257L26.4749 6.35325C25.108 4.98642 22.892 4.98642 21.5251 6.35325L11.2526 16.6257L13.374 18.7471L22.499 9.622V32.9999H25.499V9.62004Z" style={{ fill: `var(--${type})` }}/>
25
25
  <path d="M39.5 38.9999V23.9999H42.5V38.9999C42.5 40.9329 40.933 42.4999 39 42.4999H9C7.067 42.4999 5.5 40.9329 5.5 38.9999V24H8.5V38.9999C8.5 39.2761 8.72386 39.4999 9 39.4999H39C39.2761 39.4999 39.5 39.2761 39.5 38.9999Z" 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="M25.999 10.8271L34.2725 19.1006L37.1009 16.2722L26.8284 5.9997C25.2663 4.4376 22.7337 4.4376 21.1716 5.9997L10.8991 16.2722L13.7275 19.1006L21.999 10.8291V32.9999H25.999V10.8271Z" style={{ fill: `var(--${type})` }}/>
31
31
  <path d="M39 38.9999V23.9999H43V38.9999C43 41.2091 41.2091 42.9999 39 42.9999H9C6.79086 42.9999 5 41.2091 5 38.9999V24H9V38.9999H39Z" 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.499 9.62004L34.6261 18.7471L36.7474 16.6257L26.4749 6.35325C25.108 4.98642 22.892 4.98642 21.5251 6.35325L11.2526 16.6257L13.374 18.7471L22.499 9.622V32.9999H25.499V9.62004Z" style={{ fill: `var(--${type})` }}/>
38
38
  <path d="M39.5 38.9999V23.9999H42.5V38.9999C42.5 40.9329 40.933 42.4999 39 42.4999H9C7.067 42.4999 5.5 40.9329 5.5 38.9999V24H8.5V38.9999C8.5 39.2761 8.72386 39.4999 9 39.4999H39C39.2761 39.4999 39.5 39.2761 39.5 38.9999Z" style={{ fill: `var(--${type})` }}/>
39
39
  </svg>
@@ -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
- interface SheetExportProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
5
+ interface SheetExportProps extends Omit<SVGProps<SVGSVGElement>, 'fill' | 'name'> {
6
6
  fill?: boolean;
7
7
  thick?: boolean;
8
8
  className?: string;
9
- size?: number
9
+ size?: keyof typeof iconSizeMap;
10
10
  type?: BasicColorType;
11
11
  fillType?: BasicColorType;
12
12
  }
13
13
 
14
14
  export const IconSheetExport = forwardRef<SVGSVGElement, SheetExportProps>(
15
- ({ fill = false, thick = false, size = 24, type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
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 11C4 9.89543 4.89543 9 6 9H42C43.1046 9 44 9.89543 44 11V21.5H17.5V27.5H26V30.5H17.5V37H26V40H6C4.89543 40 4 39.1046 4 38V11ZM7 27.5V21.5H14.5V27.5H7ZM7 30.5V37H14.5V30.5H7ZM14.5 18.5H7V12H14.5V18.5ZM17.5 18.5H41V12H17.5V18.5Z" style={{ fill: `var(--${type})` }}/>
19
19
  <path d="M41.0446 37.5V29.5805L30.5598 40.0603L28.439 37.9385L38.3822 28H31.5446V25H40.7289C42.5601 25 44.0446 26.4845 44.0446 28.3157V37.5H41.0446Z" 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 fillRule="evenodd" clipRule="evenodd" d="M4 11C4 9.89543 4.89543 9 6 9H42C43.1046 9 44 9.89543 44 11V21.5H17.5V27.5H26V30.5H17.5V37H26V40H6C4.89543 40 4 39.1046 4 38V11ZM7 27.5V21.5H14.5V27.5H7ZM7 30.5V37H14.5V30.5H7ZM14.5 18.5H7V12H14.5V18.5ZM17.5 18.5H41V12H17.5V18.5Z" style={{ fill: `var(--${type})` }}/>
25
25
  <path d="M41.0446 37.5V29.5805L30.5598 40.0603L28.439 37.9385L38.3822 28H31.5446V25H40.7289C42.5601 25 44.0446 26.4845 44.0446 28.3157V37.5H41.0446Z" 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="M4 11C4 9.89543 4.89543 9 6 9H42C43.1046 9 44 9.89543 44 11V22H18V27H26V31H18V36H26V40H6C4.89543 40 4 39.1046 4 38V11ZM8 27V22H14V27H8ZM8 31V36H14V31H8ZM14 18H8V13H14V18ZM18 18H40V13H18V18Z" style={{ fill: `var(--${type})` }}/>
31
31
  <path d="M28.0741 37.5758L37.1894 28.4648H31.537V24.4648H40.1842C42.2916 24.4648 43.9999 26.1732 43.9999 28.2805V37.4873H39.9999V31.3112L30.9018 40.4049L28.0741 37.5758Z" 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="M4 11C4 9.89543 4.89543 9 6 9H42C43.1046 9 44 9.89543 44 11V21.5H17.5V27.5H26V30.5H17.5V37H26V40H6C4.89543 40 4 39.1046 4 38V11ZM7 27.5V21.5H14.5V27.5H7ZM7 30.5V37H14.5V30.5H7ZM14.5 18.5H7V12H14.5V18.5ZM17.5 18.5H41V12H17.5V18.5Z" style={{ fill: `var(--${type})` }}/>
38
38
  <path d="M41.0446 37.5V29.5805L30.5598 40.0603L28.439 37.9385L38.3822 28H31.5446V25H40.7289C42.5601 25 44.0446 26.4845 44.0446 28.3157V37.5H41.0446Z" style={{ fill: `var(--${type})` }}/>
39
39
  </svg>
@@ -1,37 +1,37 @@
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
- interface ShieldProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
5
+ interface ShieldProps extends Omit<SVGProps<SVGSVGElement>, 'fill' | 'name'> {
6
6
  fill?: boolean;
7
7
  thick?: boolean;
8
8
  className?: string;
9
- size?: number
9
+ size?: keyof typeof iconSizeMap;
10
10
  type?: BasicColorType;
11
11
  fillType?: BasicColorType;
12
12
  }
13
13
 
14
14
  export const IconShield = forwardRef<SVGSVGElement, ShieldProps>(
15
- ({ fill = false, thick = false, size = 24, type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
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="M7.29089 9.33562C6.51387 9.63026 6 10.3747 6 11.2057V20.9789C6 29.688 10.5324 37.7695 17.9637 42.3109L22.9571 45.3624C23.5973 45.7536 24.4027 45.7536 25.0429 45.3624L30.0363 42.3109C37.4676 37.7695 42 29.688 42 20.9788V11.2057C42 10.3747 41.4861 9.63026 40.7091 9.33562L24.7091 3.2686C24.2522 3.09536 23.7478 3.09536 23.2909 3.2686L7.29089 9.33562ZM16.6763 20.667L22.0738 26.0645L31.4986 16.6726L34.322 19.506L24.2884 29.5046C23.062 30.7268 21.0775 30.7251 19.8531 29.5007L13.8479 23.4955L16.6763 20.667Z" 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="M7.29089 9.33562C6.51387 9.63026 6 10.3747 6 11.2057V20.9789C6 29.688 10.5324 37.7695 17.9637 42.3109L22.9571 45.3624C23.5973 45.7536 24.4027 45.7536 25.0429 45.3624L30.0363 42.3109C37.4676 37.7695 42 29.688 42 20.9788V11.2057C42 10.3747 41.4861 9.63026 40.7091 9.33562L24.7091 3.2686C24.2522 3.09536 23.7478 3.09536 23.2909 3.2686L7.29089 9.33562ZM16.3224 21.0211L22.0728 26.7715L31.8511 17.0273L33.9687 19.1523L23.9351 29.1509C22.904 30.1784 21.2356 30.177 20.2063 29.1477L14.2011 23.1424L16.3224 21.0211Z" 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="M16.6763 20.667L22.0738 26.0645L31.4986 16.6726L34.322 19.506L24.2884 29.5046C23.062 30.7268 21.0775 30.7251 19.8531 29.5007L13.8479 23.4955L16.6763 20.667Z" style={{ fill: `var(--${type})` }}/>
29
29
  <path fillRule="evenodd" clipRule="evenodd" d="M6 11.2057C6 10.3747 6.51387 9.63026 7.29089 9.33562L23.2909 3.2686C23.7478 3.09536 24.2522 3.09536 24.7091 3.2686L40.7091 9.33562C41.4861 9.63026 42 10.3747 42 11.2057V20.9789C42 29.688 37.4676 37.7695 30.0363 42.3109L25.0429 45.3624C24.4027 45.7536 23.5973 45.7536 22.9571 45.3624L17.9637 42.3109C10.5324 37.7695 6 29.688 6 20.9789V11.2057ZM24 7.27763L38 12.5863V20.9789C38 28.2945 34.1928 35.083 27.9505 38.8978L24 41.3119L20.0495 38.8978C13.8072 35.083 10 28.2945 10 20.9789L10 12.5863L24 7.27763Z" style={{ fill: `var(--${type})` }}/>
30
30
  </svg>
31
31
  ;
32
32
  }
33
33
 
34
- return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
34
+ return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
35
35
  <path d="M16.3224 21.0211L22.0728 26.7715L31.8511 17.0273L33.9687 19.1523L23.9351 29.1509C22.904 30.1784 21.2356 30.177 20.2063 29.1477L14.2011 23.1424L16.3224 21.0211Z" style={{ fill: `var(--${type})` }}/>
36
36
  <path fillRule="evenodd" clipRule="evenodd" d="M6 11.2057C6 10.3747 6.51387 9.63026 7.29089 9.33562L23.2909 3.2686C23.7478 3.09536 24.2522 3.09536 24.7091 3.2686L40.7091 9.33562C41.4861 9.63026 42 10.3747 42 11.2057V20.9789C42 29.688 37.4676 37.7695 30.0363 42.3109L25.0429 45.3624C24.4027 45.7536 23.5973 45.7536 22.9571 45.3624L17.9637 42.3109C10.5324 37.7695 6 29.688 6 20.9789V11.2057ZM24 6.20815L39 11.896V20.9789C39 28.6429 35.0115 35.7546 28.4719 39.751L24 42.4839L19.5281 39.751C12.9885 35.7546 9 28.6429 9 20.9789L9 11.896L24 6.20815Z" style={{ fill: `var(--${type})` }}/>
37
37
  </svg>
@@ -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
- interface ShieldPersonProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
5
+ interface ShieldPersonProps extends Omit<SVGProps<SVGSVGElement>, 'fill' | 'name'> {
6
6
  fill?: boolean;
7
7
  thick?: boolean;
8
8
  className?: string;
9
- size?: number
9
+ size?: keyof typeof iconSizeMap;
10
10
  type?: BasicColorType;
11
11
  fillType?: BasicColorType;
12
12
  }
13
13
 
14
14
  export const IconShieldPerson = forwardRef<SVGSVGElement, ShieldPersonProps>(
15
- ({ fill = false, thick = false, size = 24, type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
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="M31.5 12.5C31.5 16.6422 28.1422 20 24 20C19.8579 20 16.5 16.6422 16.5 12.5C16.5 8.35787 19.8579 5 24 5C28.1422 5 31.5 8.35787 31.5 12.5ZM28.5 12.5C28.5 14.9853 26.4853 17 24 17C21.5147 17 19.5 14.9853 19.5 12.5C19.5 10.0147 21.5147 8 24 8C26.4853 8 28.5 10.0147 28.5 12.5Z" style={{ fill: `var(--${type})` }}/>
19
19
  <path d="M9 35C9 27.8203 14.8203 22 22 22H26C28.6485 22 31.112 22.792 33.1666 24.1521C31.7848 24.3839 30.4904 24.8734 29.3343 25.5694C28.2915 25.2006 27.1692 25 26 25H22C16.4772 25 12 29.4772 12 35V40H25.1994C25.7751 41.1262 26.5392 42.14 27.4501 43H11C9.89543 43 9 42.1046 9 41V35Z" style={{ fill: `var(--${type})` }}/>
20
20
  <path fillRule="evenodd" clipRule="evenodd" d="M28 30.3293C28 29.9922 28.2085 29.6902 28.5237 29.5706L35.0147 27.1094C35.2 27.0391 35.4047 27.0391 35.59 27.1094L42.081 29.5706C42.3962 29.6902 42.6047 29.9922 42.6047 30.3293V34.2941C42.6047 37.8273 40.7659 41.1058 37.7511 42.9482L35.7254 44.1862C35.4657 44.3449 35.139 44.3449 34.8792 44.1862L32.8535 42.9482C29.8387 41.1058 28 37.8273 28 34.2941V30.3293ZM34.4234 36.1488L32.0381 33.7635L30.6239 35.1777L33.5221 38.076C34.0188 38.5726 34.8237 38.5733 35.3212 38.0776L40.0485 33.3668L38.6367 31.9501L34.4234 36.1488Z" 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.5 12.5C31.5 16.6422 28.1422 20 24 20C19.8579 20 16.5 16.6422 16.5 12.5C16.5 8.35787 19.8579 5 24 5C28.1422 5 31.5 8.35787 31.5 12.5ZM28.5 12.5C28.5 14.9853 26.4853 17 24 17C21.5147 17 19.5 14.9853 19.5 12.5C19.5 10.0147 21.5147 8 24 8C26.4853 8 28.5 10.0147 28.5 12.5Z" style={{ fill: `var(--${type})` }}/>
26
26
  <path d="M9 35C9 27.8203 14.8203 22 22 22H26C28.6485 22 31.112 22.792 33.1666 24.1521C31.7848 24.3839 30.4904 24.8734 29.3343 25.5694C28.2915 25.2006 27.1692 25 26 25H22C16.4772 25 12 29.4772 12 35V40H25.1994C25.7751 41.1262 26.5392 42.14 27.4501 43H11C9.89543 43 9 42.1046 9 41V35Z" style={{ fill: `var(--${type})` }}/>
27
27
  <path fillRule="evenodd" clipRule="evenodd" d="M28 30.3293C28 29.9922 28.2085 29.6902 28.5237 29.5706L35.0147 27.1094C35.2 27.0391 35.4047 27.0391 35.59 27.1094L42.081 29.5706C42.3962 29.6902 42.6047 29.9922 42.6047 30.3293V34.2941C42.6047 37.8273 40.7659 41.1058 37.7511 42.9482L35.7254 44.1862C35.4657 44.3449 35.139 44.3449 34.8792 44.1862L32.8535 42.9482C29.8387 41.1058 28 37.8273 28 34.2941V30.3293ZM34.4234 36.1488L32.0381 33.7635L30.6239 35.1777L33.5221 38.076C34.0188 38.5726 34.8237 38.5733 35.3212 38.0776L40.0485 33.3668L38.6367 31.9501L34.4234 36.1488Z" 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="M31.5 12.5C31.5 16.6422 28.1422 20 24 20C19.8579 20 16.5 16.6422 16.5 12.5C16.5 8.35787 19.8579 5 24 5C28.1422 5 31.5 8.35787 31.5 12.5ZM27.5 12.5C27.5 14.433 25.933 16 24 16C22.067 16 20.5 14.433 20.5 12.5C20.5 10.567 22.067 9 24 9C25.933 9 27.5 10.567 27.5 12.5Z" style={{ fill: `var(--${type})` }}/>
33
33
  <path d="M9 35C9 27.8203 14.8203 22 22 22H26C28.6485 22 31.112 22.792 33.1666 24.1521C31.3472 24.4574 29.6792 25.2092 28.2793 26.2911C27.5514 26.1011 26.7875 26 26 26H22C17.0294 26 13 30.0294 13 35V39H24.7499C25.3472 40.5294 26.2768 41.8923 27.4501 43H11C9.89543 43 9 42.1046 9 41V35Z" style={{ fill: `var(--${type})` }}/>
34
34
  <path fillRule="evenodd" clipRule="evenodd" d="M28 30.3293C28 29.9922 28.2085 29.6902 28.5237 29.5706L35.0147 27.1094C35.2 27.0391 35.4047 27.0391 35.59 27.1094L42.081 29.5706C42.3962 29.6902 42.6047 29.9922 42.6047 30.3293V34.2941C42.6047 37.8273 40.7659 41.1058 37.7511 42.9482L35.7254 44.1862C35.4657 44.3449 35.139 44.3449 34.8792 44.1862L32.8535 42.9482C29.8387 41.1058 28 37.8273 28 34.2941V30.3293ZM34.4234 36.1488L32.0381 33.7635L30.6239 35.1777L33.5221 38.076C34.0188 38.5726 34.8237 38.5733 35.3212 38.0776L40.0485 33.3668L38.6367 31.9501L34.4234 36.1488Z" style={{ fill: `var(--${type})` }}/>
@@ -36,7 +36,7 @@ export const IconShieldPerson = forwardRef<SVGSVGElement, ShieldPersonProps>(
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="M31.5 12.5C31.5 16.6422 28.1422 20 24 20C19.8579 20 16.5 16.6422 16.5 12.5C16.5 8.35787 19.8579 5 24 5C28.1422 5 31.5 8.35787 31.5 12.5ZM28.5 12.5C28.5 14.9853 26.4853 17 24 17C21.5147 17 19.5 14.9853 19.5 12.5C19.5 10.0147 21.5147 8 24 8C26.4853 8 28.5 10.0147 28.5 12.5Z" style={{ fill: `var(--${type})` }}/>
41
41
  <path d="M9 35C9 27.8203 14.8203 22 22 22H26C28.6485 22 31.112 22.792 33.1666 24.1521C31.7848 24.3839 30.4904 24.8734 29.3343 25.5694C28.2915 25.2006 27.1692 25 26 25H22C16.4772 25 12 29.4772 12 35V40H25.1994C25.7751 41.1262 26.5392 42.14 27.4501 43H11C9.89543 43 9 42.1046 9 41V35Z" style={{ fill: `var(--${type})` }}/>
42
42
  <path fillRule="evenodd" clipRule="evenodd" d="M28 30.3293C28 29.9922 28.2085 29.6902 28.5237 29.5706L35.0147 27.1094C35.2 27.0391 35.4047 27.0391 35.59 27.1094L42.081 29.5706C42.3962 29.6902 42.6047 29.9922 42.6047 30.3293V34.2941C42.6047 37.8273 40.7659 41.1058 37.7511 42.9482L35.7254 44.1862C35.4657 44.3449 35.139 44.3449 34.8792 44.1862L32.8535 42.9482C29.8387 41.1058 28 37.8273 28 34.2941V30.3293ZM34.4234 36.1488L32.0381 33.7635L30.6239 35.1777L33.5221 38.076C34.0188 38.5726 34.8237 38.5733 35.3212 38.0776L40.0485 33.3668L38.6367 31.9501L34.4234 36.1488Z" style={{ fill: `var(--${type})` }}/>
@@ -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
- interface ShieldUsageProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
5
+ interface ShieldUsageProps extends Omit<SVGProps<SVGSVGElement>, 'fill' | 'name'> {
6
6
  fill?: boolean;
7
7
  thick?: boolean;
8
8
  className?: string;
9
- size?: number
9
+ size?: keyof typeof iconSizeMap;
10
10
  type?: BasicColorType;
11
11
  fillType?: BasicColorType;
12
12
  }
13
13
 
14
14
  export const IconShieldUsage = forwardRef<SVGSVGElement, ShieldUsageProps>(
15
- ({ fill = false, thick = false, size = 24, type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
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 43H26.7819C26.0143 42.1085 25.3811 41.0981 24.9138 40H8V8H40V24.9138C41.0981 25.3811 42.1085 26.0143 43 26.7819V7C43 5.89543 42.1046 5 41 5H7C5.89543 5 5 5.89543 5 7V41C5 42.1046 5.89543 43 7 43Z" style={{ fill: `var(--${type})` }}/>
19
19
  <path d="M14.5 33.5H24.1733C24.3586 32.4433 24.6882 31.4363 25.1409 30.5H14.5V33.5Z" style={{ fill: `var(--${type})` }}/>
20
20
  <path d="M29.8171 25.5H14.5V22.5H33.5V24.1733C32.1814 24.4045 30.9401 24.8604 29.8171 25.5Z" style={{ fill: `var(--${type})` }}/>
@@ -23,7 +23,7 @@ export const IconShieldUsage = forwardRef<SVGSVGElement, ShieldUsageProps>(
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="M7 43H26.7819C26.0143 42.1085 25.3811 41.0981 24.9138 40H8V8H40V24.9138C41.0981 25.3811 42.1085 26.0143 43 26.7819V7C43 5.89543 42.1046 5 41 5H7C5.89543 5 5 5.89543 5 7V41C5 42.1046 5.89543 43 7 43Z" style={{ fill: `var(--${type})` }}/>
28
28
  <path d="M14.5 33.5H24.1733C24.3586 32.4433 24.6882 31.4363 25.1409 30.5H14.5V33.5Z" style={{ fill: `var(--${type})` }}/>
29
29
  <path d="M29.8171 25.5H14.5V22.5H33.5V24.1733C32.1814 24.4045 30.9401 24.8604 29.8171 25.5Z" style={{ fill: `var(--${type})` }}/>
@@ -32,7 +32,7 @@ export const IconShieldUsage = forwardRef<SVGSVGElement, ShieldUsageProps>(
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="M7 43H26.7819C25.7865 41.844 25.0171 40.4878 24.5423 39H9V9H39V24.5423C40.4878 25.0171 41.844 25.7865 43 26.7819V7C43 5.89543 42.1046 5 41 5H7C5.89543 5 5 5.89543 5 7V41C5 42.1046 5.89543 43 7 43Z" style={{ fill: `var(--${type})` }}/>
37
37
  <path d="M14 34H24.0969C24.2836 32.567 24.7341 31.2169 25.398 30H14V34Z" style={{ fill: `var(--${type})` }}/>
38
38
  <path d="M29.0173 26H14V22H34V24.0969C32.1687 24.3355 30.4728 25.0048 29.0173 26Z" style={{ fill: `var(--${type})` }}/>
@@ -42,7 +42,7 @@ export const IconShieldUsage = forwardRef<SVGSVGElement, ShieldUsageProps>(
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="M7 43H26.7819C26.0143 42.1085 25.3811 41.0981 24.9138 40H8V8H40V24.9138C41.0981 25.3811 42.1085 26.0143 43 26.7819V7C43 5.89543 42.1046 5 41 5H7C5.89543 5 5 5.89543 5 7V41C5 42.1046 5.89543 43 7 43Z" style={{ fill: `var(--${type})` }}/>
47
47
  <path d="M14.5 33.5H24.1733C24.3586 32.4433 24.6882 31.4363 25.1409 30.5H14.5V33.5Z" style={{ fill: `var(--${type})` }}/>
48
48
  <path d="M29.8171 25.5H14.5V22.5H33.5V24.1733C32.1814 24.4045 30.9401 24.8604 29.8171 25.5Z" 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
- interface ShortenProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
5
+ interface ShortenProps extends Omit<SVGProps<SVGSVGElement>, 'fill' | 'name'> {
6
6
  fill?: boolean;
7
7
  thick?: boolean;
8
8
  className?: string;
9
- size?: number
9
+ size?: keyof typeof iconSizeMap;
10
10
  type?: BasicColorType;
11
11
  fillType?: BasicColorType;
12
12
  }
13
13
 
14
14
  export const IconShorten = forwardRef<SVGSVGElement, ShortenProps>(
15
- ({ fill = false, thick = false, size = 24, type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
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="M30.6212 22.4991L38.0615 15.0588L35.9402 12.9375L26.981 21.8967C25.8199 23.0577 25.8199 24.9402 26.981 26.1013L35.9402 35.0604L38.0615 32.9391L30.6215 25.4991H46.0673V22.4991H30.6212Z" style={{ fill: `var(--${type})` }}/>
19
19
  <path d="M2 22.4991L17.3801 22.4991L9.94016 15.0592L12.0615 12.9378L21.0206 21.897C22.1817 23.0581 22.1817 24.9405 21.0206 26.1016L12.0615 35.0608L9.94016 32.9395L17.3805 25.4991L2 25.4991V22.4991Z" 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.6212 22.4991L38.0615 15.0588L35.9402 12.9375L26.981 21.8967C25.8199 23.0577 25.8199 24.9402 26.981 26.1013L35.9402 35.0604L38.0615 32.9391L30.6215 25.4991H46.0673V22.4991H30.6212Z" style={{ fill: `var(--${type})` }}/>
25
25
  <path d="M2 22.4991L17.3801 22.4991L9.94016 15.0592L12.0615 12.9378L21.0206 21.897C22.1817 23.0581 22.1817 24.9405 21.0206 26.1016L12.0615 35.0608L9.94016 32.9395L17.3805 25.4991L2 25.4991V22.4991Z" 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="M31.8283 21.9992L38.415 15.4124L35.5866 12.584L26.6275 21.5431C25.2711 22.8995 25.2711 25.0985 26.6275 26.4549L35.5866 35.414L38.415 32.5856L31.8286 25.9992H46.0673V21.9992H31.8283Z" style={{ fill: `var(--${type})` }}/>
31
31
  <path d="M2 21.9992L16.173 21.9992L9.58661 15.4128L12.415 12.5843L21.3742 21.5435C22.7305 22.8998 22.7305 25.0989 21.3742 26.4552L12.415 35.4144L9.58661 32.5859L16.1734 25.9992L2 25.9992V21.9992Z" 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="M30.6212 22.4991L38.0615 15.0588L35.9402 12.9375L26.981 21.8967C25.8199 23.0577 25.8199 24.9402 26.981 26.1013L35.9402 35.0604L38.0615 32.9391L30.6215 25.4991H46.0673V22.4991H30.6212Z" style={{ fill: `var(--${type})` }}/>
38
38
  <path d="M2 22.4991L17.3801 22.4991L9.94016 15.0592L12.0615 12.9378L21.0206 21.897C22.1817 23.0581 22.1817 24.9405 21.0206 26.1016L12.0615 35.0608L9.94016 32.9395L17.3805 25.4991L2 25.4991V22.4991Z" 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
- interface ShowAllProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
5
+ interface ShowAllProps extends Omit<SVGProps<SVGSVGElement>, 'fill' | 'name'> {
6
6
  fill?: boolean;
7
7
  thick?: boolean;
8
8
  className?: string;
9
- size?: number
9
+ size?: keyof typeof iconSizeMap;
10
10
  type?: BasicColorType;
11
11
  fillType?: BasicColorType;
12
12
  }
13
13
 
14
14
  export const IconShowAll = forwardRef<SVGSVGElement, ShowAllProps>(
15
- ({ fill = false, thick = false, size = 24, type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
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="M8 6H17V9L9 9L9 17H6V8C6 6.89543 6.89543 6 8 6Z" style={{ fill: `var(--${type})` }}/>
19
19
  <path d="M6 31V40C6 41.1046 6.89543 42 8 42H17V39H9L9 31H6Z" style={{ fill: `var(--${type})` }}/>
20
20
  <path d="M39 31V39H31V42H40C41.1046 42 42 41.1046 42 40V31H39Z" style={{ fill: `var(--${type})` }}/>
@@ -22,7 +22,7 @@ export const IconShowAll = forwardRef<SVGSVGElement, ShowAllProps>(
22
22
  </svg>
23
23
  ;
24
24
  } else if (fill) {
25
- return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
25
+ return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
26
26
  <path d="M8 6H17V9L9 9L9 17H6V8C6 6.89543 6.89543 6 8 6Z" style={{ fill: `var(--${type})` }}/>
27
27
  <path d="M6 31V40C6 41.1046 6.89543 42 8 42H17V39H9L9 31H6Z" style={{ fill: `var(--${type})` }}/>
28
28
  <path d="M39 31V39H31V42H40C41.1046 42 42 41.1046 42 40V31H39Z" style={{ fill: `var(--${type})` }}/>
@@ -30,7 +30,7 @@ export const IconShowAll = forwardRef<SVGSVGElement, ShowAllProps>(
30
30
  </svg>
31
31
  ;
32
32
  } else if (thick) {
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="M8 6H17V10L10 10L10 17H6V8C6 6.89543 6.89543 6 8 6Z" style={{ fill: `var(--${type})` }}/>
35
35
  <path d="M6 31V40C6 41.1046 6.89543 42 8 42H17V38H10L10 31H6Z" style={{ fill: `var(--${type})` }}/>
36
36
  <path d="M38 31V38H31V42H40C41.1046 42 42 41.1046 42 40V31H38Z" style={{ fill: `var(--${type})` }}/>
@@ -39,7 +39,7 @@ export const IconShowAll = forwardRef<SVGSVGElement, ShowAllProps>(
39
39
  ;
40
40
  }
41
41
 
42
- return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
42
+ return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
43
43
  <path d="M8 6H17V9L9 9L9 17H6V8C6 6.89543 6.89543 6 8 6Z" style={{ fill: `var(--${type})` }}/>
44
44
  <path d="M6 31V40C6 41.1046 6.89543 42 8 42H17V39H9L9 31H6Z" style={{ fill: `var(--${type})` }}/>
45
45
  <path d="M39 31V39H31V42H40C41.1046 42 42 41.1046 42 40V31H39Z" 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
- interface SignOutProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
5
+ interface SignOutProps extends Omit<SVGProps<SVGSVGElement>, 'fill' | 'name'> {
6
6
  fill?: boolean;
7
7
  thick?: boolean;
8
8
  className?: string;
9
- size?: number
9
+ size?: keyof typeof iconSizeMap;
10
10
  type?: BasicColorType;
11
11
  fillType?: BasicColorType;
12
12
  }
13
13
 
14
14
  export const IconSignOut = forwardRef<SVGSVGElement, SignOutProps>(
15
- ({ fill = false, thick = false, size = 24, type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
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="M38.294 25.4131L29.1669 34.5401L31.2883 36.6614L41.5608 26.3889C42.9276 25.0221 42.9276 22.806 41.5608 21.4392L31.2883 11.1667L29.1669 13.288L38.292 22.4131L14.9141 22.4131V25.4131L38.294 25.4131Z" style={{ fill: `var(--${type})` }}/>
19
19
  <path d="M8.91406 39.4141H23.9141V42.4141H8.91406C6.98106 42.4141 5.41406 40.8471 5.41406 38.9141L5.41406 8.91406C5.41406 6.98107 6.98107 5.41406 8.91406 5.41406L23.914 5.41406V8.41406L8.91406 8.41406C8.63792 8.41406 8.41406 8.63792 8.41406 8.91406L8.41406 38.9141C8.41406 39.1902 8.63792 39.4141 8.91406 39.4141Z" 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="M38.294 25.4131L29.1669 34.5401L31.2883 36.6614L41.5608 26.3889C42.9276 25.0221 42.9276 22.806 41.5608 21.4392L31.2883 11.1667L29.1669 13.288L38.292 22.4131L14.9141 22.4131V25.4131L38.294 25.4131Z" style={{ fill: `var(--${type})` }}/>
25
25
  <path d="M8.91406 39.4141H23.9141V42.4141H8.91406C6.98106 42.4141 5.41406 40.8471 5.41406 38.9141L5.41406 8.91406C5.41406 6.98107 6.98107 5.41406 8.91406 5.41406L23.914 5.41406V8.41406L8.91406 8.41406C8.63792 8.41406 8.41406 8.63792 8.41406 8.91406L8.41406 38.9141C8.41406 39.1902 8.63792 39.4141 8.91406 39.4141Z" 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="M37.0869 25.9131L28.8134 34.1866L31.6418 37.015L41.9143 26.7425C43.4764 25.1804 43.4764 22.6477 41.9143 21.0856L31.6418 10.8131L28.8134 13.6416L37.0849 21.9131L14.9141 21.9131V25.9131L37.0869 25.9131Z" style={{ fill: `var(--${type})` }}/>
31
31
  <path d="M8.91406 38.9141H23.9141V42.9141H8.91406C6.70492 42.9141 4.91406 41.1232 4.91406 38.9141L4.91406 8.91406C4.91406 6.70492 6.70492 4.91406 8.91406 4.91406L23.914 4.91406V8.91406L8.91406 8.91406L8.91406 38.9141Z" 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="M38.294 25.4131L29.1669 34.5401L31.2883 36.6614L41.5608 26.3889C42.9276 25.0221 42.9276 22.806 41.5608 21.4392L31.2883 11.1667L29.1669 13.288L38.292 22.4131L14.9141 22.4131V25.4131L38.294 25.4131Z" style={{ fill: `var(--${type})` }}/>
38
38
  <path d="M8.91406 39.4141H23.9141V42.4141H8.91406C6.98106 42.4141 5.41406 40.8471 5.41406 38.9141L5.41406 8.91406C5.41406 6.98107 6.98107 5.41406 8.91406 5.41406L23.914 5.41406V8.41406L8.91406 8.41406C8.63792 8.41406 8.41406 8.63792 8.41406 8.91406L8.41406 38.9141C8.41406 39.1902 8.63792 39.4141 8.91406 39.4141Z" 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
- interface SourceProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
5
+ interface SourceProps extends Omit<SVGProps<SVGSVGElement>, 'fill' | 'name'> {
6
6
  fill?: boolean;
7
7
  thick?: boolean;
8
8
  className?: string;
9
- size?: number
9
+ size?: keyof typeof iconSizeMap;
10
10
  type?: BasicColorType;
11
11
  fillType?: BasicColorType;
12
12
  }
13
13
 
14
14
  export const IconSource = forwardRef<SVGSVGElement, SourceProps>(
15
- ({ fill = false, thick = false, size = 24, type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
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="M16.3401 11.0021C15.8405 11.5017 15.8414 12.3108 16.3379 12.8073L23.0159 19.4852C23.5167 19.9861 24.3301 19.9827 24.8254 19.4874L31.5033 12.8095C32.0029 12.3098 31.9976 11.4964 31.5011 10.9999L24.8232 4.32199C24.3267 3.82552 23.5133 3.82889 23.018 4.32417L16.3401 11.0021ZM23.9217 16.1484L19.6791 11.9058L23.9217 7.66314L28.1643 11.9058L23.9217 16.1484Z" style={{ fill: `var(--${type})` }}/>
19
19
  <path fillRule="evenodd" clipRule="evenodd" d="M28.4987 24.8043C28.0022 24.3079 28.0012 23.4988 28.5008 22.9992L35.1788 16.3212C35.6741 15.826 36.4875 15.8226 36.9839 16.3191L43.6619 22.997C44.1584 23.4935 44.1637 24.3069 43.6641 24.8065L36.9861 31.4845C36.4908 31.9797 35.6774 31.9831 35.1766 31.4823L28.4987 24.8043ZM31.8398 23.9029L36.0825 28.1455L40.3251 23.9029L36.0825 19.6602L31.8398 23.9029Z" style={{ fill: `var(--${type})` }}/>
20
20
  <path fillRule="evenodd" clipRule="evenodd" d="M4.32336 23.0168C3.82373 23.5164 3.8247 24.3254 4.32117 24.8219L10.9991 31.4999C11.5 32.0007 12.3134 31.9973 12.8086 31.502L19.4866 24.8241C19.9862 24.3245 19.9809 23.5111 19.4844 23.0146L12.8065 16.3366C12.31 15.8402 11.4966 15.8435 11.0013 16.3388L4.32336 23.0168ZM11.905 28.1631L7.66233 23.9204L11.905 19.6778L16.1476 23.9204L11.905 28.1631Z" style={{ fill: `var(--${type})` }}/>
@@ -22,7 +22,7 @@ export const IconSource = forwardRef<SVGSVGElement, SourceProps>(
22
22
  </svg>
23
23
  ;
24
24
  } else if (fill) {
25
- return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
25
+ return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
26
26
  <path fillRule="evenodd" clipRule="evenodd" d="M16.3401 11.0021C15.8405 11.5017 15.8414 12.3108 16.3379 12.8073L23.0159 19.4852C23.5167 19.9861 24.3301 19.9827 24.8254 19.4874L31.5033 12.8095C32.0029 12.3098 31.9976 11.4964 31.5011 10.9999L24.8232 4.32199C24.3267 3.82552 23.5133 3.82889 23.018 4.32417L16.3401 11.0021ZM23.9217 16.1484L19.6791 11.9058L23.9217 7.66314L28.1643 11.9058L23.9217 16.1484Z" style={{ fill: `var(--${type})` }}/>
27
27
  <path fillRule="evenodd" clipRule="evenodd" d="M28.4987 24.8043C28.0022 24.3079 28.0012 23.4988 28.5008 22.9992L35.1788 16.3212C35.6741 15.826 36.4875 15.8226 36.9839 16.3191L43.6619 22.997C44.1584 23.4935 44.1637 24.3069 43.6641 24.8065L36.9861 31.4845C36.4908 31.9797 35.6774 31.9831 35.1766 31.4823L28.4987 24.8043ZM31.8398 23.9029L36.0825 28.1455L40.3251 23.9029L36.0825 19.6602L31.8398 23.9029Z" style={{ fill: `var(--${type})` }}/>
28
28
  <path fillRule="evenodd" clipRule="evenodd" d="M4.32336 23.0168C3.82373 23.5164 3.8247 24.3254 4.32117 24.8219L10.9991 31.4999C11.5 32.0007 12.3134 31.9973 12.8086 31.502L19.4866 24.8241C19.9862 24.3245 19.9809 23.5111 19.4844 23.0146L12.8065 16.3366C12.31 15.8402 11.4966 15.8435 11.0013 16.3388L4.32336 23.0168ZM11.905 28.1631L7.66233 23.9204L11.905 19.6778L16.1476 23.9204L11.905 28.1631Z" style={{ fill: `var(--${type})` }}/>
@@ -30,7 +30,7 @@ export const IconSource = forwardRef<SVGSVGElement, SourceProps>(
30
30
  </svg>
31
31
  ;
32
32
  } else if (thick) {
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="M16.3401 11.0021C15.8405 11.5017 15.8414 12.3108 16.3379 12.8073L23.0159 19.4852C23.5167 19.9861 24.3301 19.9827 24.8254 19.4874L31.5033 12.8095C32.0029 12.3098 31.9976 11.4964 31.5011 10.9999L24.8232 4.32199C24.3267 3.82552 23.5133 3.82889 23.018 4.32417L16.3401 11.0021ZM23.9217 14.7342L21.0933 11.9058L23.9217 9.07736L26.7501 11.9058L23.9217 14.7342Z" style={{ fill: `var(--${type})` }}/>
35
35
  <path fillRule="evenodd" clipRule="evenodd" d="M28.4987 24.8043C28.0022 24.3079 28.0012 23.4988 28.5008 22.9992L35.1788 16.3212C35.6741 15.826 36.4875 15.8226 36.9839 16.3191L43.6619 22.997C44.1584 23.4935 44.1637 24.3069 43.6641 24.8065L36.9861 31.4845C36.4908 31.9797 35.6774 31.9831 35.1766 31.4823L28.4987 24.8043ZM33.254 23.9029L36.0825 26.7313L38.9109 23.9029L36.0825 21.0744L33.254 23.9029Z" style={{ fill: `var(--${type})` }}/>
36
36
  <path fillRule="evenodd" clipRule="evenodd" d="M4.32336 23.0168C3.82373 23.5164 3.8247 24.3254 4.32117 24.8219L10.9991 31.4999C11.5 32.0007 12.3134 31.9973 12.8086 31.502L19.4866 24.8241C19.9862 24.3245 19.9809 23.5111 19.4844 23.0146L12.8065 16.3366C12.31 15.8402 11.4966 15.8435 11.0013 16.3388L4.32336 23.0168ZM11.905 26.7489L9.07654 23.9204L11.905 21.092L14.7334 23.9204L11.905 26.7489Z" style={{ fill: `var(--${type})` }}/>
@@ -39,7 +39,7 @@ export const IconSource = forwardRef<SVGSVGElement, SourceProps>(
39
39
  ;
40
40
  }
41
41
 
42
- return <svg width={size} height={size} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
42
+ return <svg width={iconSizeMap[size]} height={iconSizeMap[size]} viewBox="0 0 48 48" fill="none" ref={ref} className={className} {...props}>
43
43
  <path fillRule="evenodd" clipRule="evenodd" d="M16.3401 11.0021C15.8405 11.5017 15.8414 12.3108 16.3379 12.8073L23.0159 19.4852C23.5167 19.9861 24.3301 19.9827 24.8254 19.4874L31.5033 12.8095C32.0029 12.3098 31.9976 11.4964 31.5011 10.9999L24.8232 4.32199C24.3267 3.82552 23.5133 3.82889 23.018 4.32417L16.3401 11.0021ZM23.9217 16.1484L19.6791 11.9058L23.9217 7.66314L28.1643 11.9058L23.9217 16.1484Z" style={{ fill: `var(--${type})` }}/>
44
44
  <path fillRule="evenodd" clipRule="evenodd" d="M28.4987 24.8043C28.0022 24.3079 28.0012 23.4988 28.5008 22.9992L35.1788 16.3212C35.6741 15.826 36.4875 15.8226 36.9839 16.3191L43.6619 22.997C44.1584 23.4935 44.1637 24.3069 43.6641 24.8065L36.9861 31.4845C36.4908 31.9797 35.6774 31.9831 35.1766 31.4823L28.4987 24.8043ZM31.8398 23.9029L36.0825 28.1455L40.3251 23.9029L36.0825 19.6602L31.8398 23.9029Z" style={{ fill: `var(--${type})` }}/>
45
45
  <path fillRule="evenodd" clipRule="evenodd" d="M4.32336 23.0168C3.82373 23.5164 3.8247 24.3254 4.32117 24.8219L10.9991 31.4999C11.5 32.0007 12.3134 31.9973 12.8086 31.502L19.4866 24.8241C19.9862 24.3245 19.9809 23.5111 19.4844 23.0146L12.8065 16.3366C12.31 15.8402 11.4966 15.8435 11.0013 16.3388L4.32336 23.0168ZM11.905 28.1631L7.66233 23.9204L11.905 19.6778L16.1476 23.9204L11.905 28.1631Z" 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
- interface SpeakerProps extends Omit<SVGProps<SVGSVGElement>, 'fill'> {
5
+ interface SpeakerProps extends Omit<SVGProps<SVGSVGElement>, 'fill' | 'name'> {
6
6
  fill?: boolean;
7
7
  thick?: boolean;
8
8
  className?: string;
9
- size?: number
9
+ size?: keyof typeof iconSizeMap;
10
10
  type?: BasicColorType;
11
11
  fillType?: BasicColorType;
12
12
  }
13
13
 
14
14
  export const IconSpeaker = forwardRef<SVGSVGElement, SpeakerProps>(
15
- ({ fill = false, thick = false, size = 24, type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
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="M19.7016 31.9847C19.9136 32.0369 20.1173 32.1219 20.3049 32.2376L33.4578 40.3485C34.8622 41.2145 36.6721 40.2043 36.6721 38.5544V7.11121C36.6721 5.46129 34.8622 4.45103 33.4578 5.31705L19.6295 13.8445C19.2969 14.0496 18.9138 14.1583 18.5231 14.1583H6.10788C4.94373 14.1583 4 15.102 4 16.2661V29.816C4 30.9801 4.94373 31.9238 6.10788 31.9238H9.37793V39.4019C9.37793 41.6111 11.1688 43.4019 13.3779 43.4019H15.7016C17.9107 43.4019 19.7016 41.6111 19.7016 39.4019V31.9847Z" style={{ fill: `var(--${type})` }}/>
19
19
  <path d="M43.0779 23.5265C43.0779 26.9183 41.482 29.9374 39 31.8737V15.1792C41.482 17.1155 43.0779 20.1346 43.0779 23.5265Z" 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="M19.2016 31.9238C19.5913 31.9244 19.9732 32.033 20.3049 32.2376L33.4578 40.3485C34.8622 41.2145 36.6721 40.2043 36.6721 38.5544V7.11121C36.6721 5.46129 34.8622 4.45103 33.4578 5.31705L19.6295 13.8445C19.2969 14.0496 18.9138 14.1583 18.5231 14.1583H6.10788C4.94373 14.1583 4 15.102 4 16.2661V29.816C4 30.9801 4.94373 31.9238 6.10788 31.9238H9.87793V39.4022C9.87793 41.3352 11.4449 42.9022 13.3779 42.9022H15.7016C17.6346 42.9022 19.2016 41.3352 19.2016 39.4022V31.9238Z" style={{ fill: `var(--${type})` }}/>
25
25
  <path d="M43.0779 23.5265C43.0779 26.9183 41.482 29.9374 39 31.8737V15.1792C41.482 17.1155 43.0779 20.1346 43.0779 23.5265Z" 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="M19.7016 31.9847C19.9136 32.0369 20.1173 32.1219 20.3049 32.2376L33.4578 40.3485C34.8622 41.2145 36.6721 40.2043 36.6721 38.5544V7.11121C36.6721 5.46129 34.8622 4.45103 33.4578 5.31705L19.6295 13.8445C19.2969 14.0496 18.9138 14.1583 18.5231 14.1583H6.10788C4.94373 14.1583 4 15.102 4 16.2661V29.816C4 30.9801 4.94373 31.9238 6.10788 31.9238H9.37793V39.4019C9.37793 41.6111 11.1688 43.4019 13.3779 43.4019H15.7016C17.9107 43.4019 19.7016 41.6111 19.7016 39.4019V31.9847ZM8 27.9238H19.1985C20.3308 27.9238 21.4407 28.2386 22.4045 28.8329L32.6721 35.1646V10.501L21.729 17.2492C20.7653 17.8435 19.6553 18.1583 18.5231 18.1583H8V27.9238ZM13.3779 39.4019V32.0005H15.7016V39.4019H13.3779Z" style={{ fill: `var(--${type})` }}/>
31
31
  <path d="M39 31.8737C41.482 29.9374 43.0779 26.9183 43.0779 23.5265C43.0779 20.1346 41.482 17.1155 39 15.1792V31.8737Z" 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="M19.2016 31.9238C19.5913 31.9244 19.9732 32.033 20.3049 32.2376L33.4578 40.3485C34.8622 41.2145 36.6721 40.2043 36.6721 38.5544V7.11121C36.6721 5.46129 34.8622 4.45103 33.4578 5.31705L19.6295 13.8445C19.2969 14.0496 18.9138 14.1583 18.5231 14.1583H6.10788C4.94373 14.1583 4 15.102 4 16.2661V29.816C4 30.9801 4.94373 31.9238 6.10788 31.9238H9.87793V39.4022C9.87793 41.3352 11.4449 42.9022 13.3779 42.9022H15.7016C17.6346 42.9022 19.2016 41.3352 19.2016 39.4022V31.9238ZM7 28.9238H19.1985C20.1454 28.9238 21.0736 29.187 21.8796 29.684L33.6721 36.9561L33.6721 8.70946L21.2041 16.3981C20.3982 16.8951 19.4699 17.1583 18.5231 17.1583H7V28.9238ZM12.8779 39.4022V32H16.2016V39.4022C16.2016 39.6783 15.9777 39.9022 15.7016 39.9022H13.3779C13.1018 39.9022 12.8779 39.6783 12.8779 39.4022Z" style={{ fill: `var(--${type})` }}/>
38
38
  <path d="M39 31.8737C41.482 29.9374 43.0779 26.9183 43.0779 23.5265C43.0779 20.1346 41.482 17.1155 39 15.1792V31.8737Z" style={{ fill: `var(--${type})` }}/>
39
39
  </svg>