@seed-design/codemod 0.0.0-alpha-20241021032759 → 0.0.0-alpha-20241022061413
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/README.md +37 -28
- package/bin/index.mjs +10 -7
- package/bin/transforms/migrate-icons.mjs +1 -0
- package/package.json +5 -2
- package/bin/migrate-icons.mjs +0 -1
package/README.md
CHANGED
@@ -2,21 +2,51 @@
|
|
2
2
|
|
3
3
|
코드 마이그레이션 도구
|
4
4
|
|
5
|
-
|
5
|
+
```shell
|
6
|
+
npx @seed-design/codemod --list
|
7
|
+
```
|
6
8
|
|
7
9
|
```shell
|
8
|
-
npx @seed-design/codemod <transform>
|
10
|
+
npx @seed-design/codemod <transform> <...경로> <옵션>
|
9
11
|
```
|
10
12
|
|
13
|
+
## 옵션
|
14
|
+
|
15
|
+
- `--list`
|
16
|
+
- 사용 가능한 transform 목록을 보여줘요.
|
17
|
+
- `--log`
|
18
|
+
- 로그를 파일로 저장해요.
|
19
|
+
- `./`에 `combined.log`와 `error.log` 파일이 생성돼요.
|
20
|
+
- `--parser`
|
21
|
+
- jscodeshift가 사용할 파서를 지정해요
|
22
|
+
- `babel` | `babylon` | `flow` | `ts` | `tsx`
|
23
|
+
- 기본값: `tsx`
|
24
|
+
- 예시: `--parser=babel`
|
25
|
+
- [`--extensions`](https://jscodeshift.com/run/cli/#--extensionsext)
|
26
|
+
- 변환할 파일 확장자를 지정해요.
|
27
|
+
- 지정하지 않으면 `<경로>` 안의 `js,jsx,ts,tsx` 파일을 변환해요.
|
28
|
+
- `d.ts`는 제외돼요.
|
29
|
+
- 예시: `--extensions="ts,tsx"`
|
30
|
+
- [`--ignore-config`](https://jscodeshift.com/run/cli/#--ignore-configfile)
|
31
|
+
- 변환하지 않을 파일 패턴이 정의된 파일을 지정해요.
|
32
|
+
- 예시: `--ignore-config=".gitignore"`
|
33
|
+
|
11
34
|
## 지원하는 Transforms
|
12
35
|
|
13
|
-
###
|
36
|
+
### migrate-icons
|
37
|
+
|
38
|
+
```shell
|
39
|
+
npx @seed-design/codemod migrate-icons <...경로> <옵션>
|
40
|
+
```
|
41
|
+
|
42
|
+
```shell
|
43
|
+
npx @seed-design/codemod migrate-icons src/ui --extensions=ts,tsx
|
44
|
+
```
|
14
45
|
|
15
46
|
- 기존 아이콘 React 패키지를 참조하는 코드를 [새 패키지](https://github.com/daangn/seed-icon-v3/blob/main/packages/react/README.md)를 참조하도록 변환해요.
|
16
47
|
- `@seed-design/icon` 또는 `@seed-design/react-icon` import source를 @daangn/react-icon으로 변환해요
|
17
48
|
- 아이콘 이름 변경에 따른 코드 수정을 수행해요
|
18
49
|
- 예시: `IconStoryRegular` → `IconTriangleRightChatbubbleLeftLine`,
|
19
|
-
- 실행 이후 두 개의 로그 파일을 생성해요. (`combined.log`, `error.log`)
|
20
50
|
|
21
51
|
> [!IMPORTANT]
|
22
52
|
>
|
@@ -24,31 +54,10 @@ npx @seed-design/codemod <transform> <경로> <옵션>
|
|
24
54
|
|
25
55
|
> [!CAUTION]
|
26
56
|
>
|
57
|
+
> - [import assertion](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-3.html#import-attributes) 등 deprecated된 문법이 있으면 파서에 따라 파싱 오류가 표시될 수 있어요.
|
27
58
|
> - 코드 변환 이후 몇 가지 사항을 직접 확인해야 해요. 자세한 내용은 [Notion 페이지](https://www.notion.so/daangn/12128c3a9f8f8063b569c897116c8f40)를 참고해주세요.
|
28
|
-
>
|
29
|
-
> -
|
30
|
-
|
31
|
-
#### 사용
|
32
|
-
|
33
|
-
```shell
|
34
|
-
npx @seed-design/codemod migrate-icons <경로> <옵션>
|
35
|
-
```
|
36
|
-
|
37
|
-
```shell
|
38
|
-
npx @seed-design/codemod migrate-icons src/ui --extensions=ts,tsx
|
39
|
-
```
|
40
|
-
|
41
|
-
- `src/ui` 디렉토리 내의 `ts, tsx` 파일에 마이그레이션을 수행해요.
|
42
|
-
|
43
|
-
#### 지원하는 옵션
|
44
|
-
|
45
|
-
- [`--extensions`](https://jscodeshift.com/run/cli/#--extensionsext)
|
46
|
-
- 변환할 파일 확장자를 지정해요.
|
47
|
-
- 지정하지 않으면 `<경로>` 안의 `js,jsx,ts,tsx` 파일을 변환해요.
|
48
|
-
- 예시: `--extensions="ts,tsx"`
|
49
|
-
- [`--ignore-config`](https://jscodeshift.com/run/cli/#--ignore-configfile)
|
50
|
-
- 변환하지 않을 파일 패턴이 정의된 파일을 지정해요.
|
51
|
-
- 예시: `--ignore-config=".gitignore"`
|
59
|
+
> - 기존 아이콘 198개 중 5개 아이콘은, 신규 아이콘팩에 대응되는 아이콘이 있지만, 대응되는 아이콘이 적절한지 확인해야 해요.
|
60
|
+
> - `--log` flag를 사용하면, 5개 아이콘이 사용된 경우 `error.log`에 기록돼요.
|
52
61
|
|
53
62
|
## 테스트
|
54
63
|
|
package/bin/index.mjs
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
import{cac as
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
2
|
+
import{cac as h}from"cac";import{execaNode as u}from"execa";import{createRequire as $}from"module";import{dirname as j,resolve as c}from"path";import b from"picocolors";var m=b.bold("@seed-design/codemod");import P from"fs";import{z as s}from"zod";var d=c(j(import.meta.filename),"transforms"),p=h(),v=$(import.meta.url),y=s.object({list:s.boolean().optional(),log:s.boolean().optional(),parser:s.enum(["babel","babylon","flow","ts","tsx"]).optional(),extensions:s.string().optional(),ignoreConfig:s.string().optional()});p.command("[transformName] [...paths]","\uCF54\uB4DC \uBCC0\uD658 (codemod)").option("-l, --list","\uC0AC\uC6A9 \uAC00\uB2A5\uD55C transform \uBAA9\uB85D\uC744 \uBCF4\uC5EC\uC918\uC694").option("--log","\uB85C\uADF8\uB97C \uD30C\uC77C\uB85C \uC800\uC7A5\uD574\uC694").option("-p, --parser <parser>","jscodeshift\uAC00 \uC0AC\uC6A9\uD560 \uD30C\uC11C\uB97C \uC9C0\uC815\uD574\uC694 (babel|babylon|flow|ts|tsx)",{default:"tsx"}).option("--extensions <extensions>","\uBCC0\uD658\uD560 \uD30C\uC77C \uD655\uC7A5\uC790").option("--ignore-config <ignoreConfig>","Ignore config").example(" $ npx @seed-design/codemod migrate-icons src/ui").action(async(o,e,r)=>{let t=y.parse(r),n=T();t.list&&(a(n),process.exit(0)),o||(console.error("transform \uC774\uB984\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694"),a(n),process.exit(1)),n.includes(o)||(console.error(`\uC774\uB984\uC774 ${o}\uC778 transform\uC774 \uC5C6\uC5B4\uC694`),a(n),process.exit(1)),e.length===0&&(console.error("\uD30C\uC77C \uACBD\uB85C\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694"),process.exit(1));let i=c(d,`${o}.mjs`);console.log(m,`${e.join(", ")}\uC5D0 ${o} transform\uC744 \uC2E4\uD589\uD574\uC694.`),await O(i,e,t)});p.help();p.parse();async function O(o,e,r){let t=v.resolve("jscodeshift/bin/jscodeshift"),{log:n,parser:i,extensions:f,ignoreConfig:l}=r,g=e.map(x=>c(process.cwd(),x)).join(" ");await u({stdout:"inherit",env:{LOG:`${n}`}})`
|
3
|
+
${t} ${g}
|
4
|
+
-t ${o}
|
5
|
+
--parser=${i}
|
6
|
+
--ignore-pattern=**/*.d.ts
|
7
|
+
${f?`--extensions=${f}`:""}
|
8
|
+
${l?`--ignore-config=${l}`:""}`}function T(){return P.readdirSync(d).filter(o=>o.endsWith(".mjs")||o.endsWith(".js")||o.endsWith(".cjs")).map(o=>o.split(".").slice(0,-1).join("."))}function a(o){console.log(`
|
9
|
+
\uC0AC\uC6A9 \uAC00\uB2A5\uD55C transform \uBAA9\uB85D:
|
10
|
+
`,o.join(`
|
11
|
+
`))}
|
@@ -0,0 +1 @@
|
|
1
|
+
import N from"jscodeshift";import b from"picocolors";var p=b.bold("@seed-design/codemod");function T({importDeclarations:o,match:a,logger:c,filePath:n}){o.replaceWith(r=>{let e=r.node.source.value,t=r.node.specifiers,F=r.node.importKind,s=r.node.comments,L=(()=>{if(typeof e!="string")return e;let{startsWith:i,replaceWith:l}=a.source.find(({startsWith:w})=>e.startsWith(w)),u=(l?e.replace(i,l):e).split("/");return u.map((w,g)=>g!==u.length-1||!(w in a.identifier)?w:a.identifier[w]).join("/")})();c?.debug(`${n}: source ${e} -> ${L}`);let I=t.map(i=>{switch(i.type){case"ImportSpecifier":{let l=i.imported.name;if(!(l in a.identifier)||a.identifier[l]===null)return c?.error(`${n}: imported specifier ${l}\uC5D0 \uB300\uD55C \uBCC0\uD658 \uC815\uBCF4 \uC5C6\uC74C`),i;let{newName:m,isActionRequired:u}=a.identifier[l];if(m===l)return i;if(c?.debug(`${n}: imported name ${l} -> ${m}`),u){let g=`${n}: ${l}\uC744 ${m}\uB85C \uBCC0\uACBD\uD588\uC9C0\uB9CC, \uBCC0\uACBD\uB41C \uC544\uC774\uCF58\uC774 \uC801\uC808\uD55C\uC9C0 \uD655\uC778\uC774 \uD544\uC694\uD574\uC694`;console.warn(p,g),c?.warn(g)}let w=N.identifier(m);return N.importSpecifier(w,i.local)}case"ImportDefaultSpecifier":return i;case"ImportNamespaceSpecifier":return i}}).filter((i,l,m)=>{if(i.type!=="ImportSpecifier")return!0;let u=i.imported.name;return m.findIndex(d=>d.imported.name===u)===l}),h=N.importDeclaration(I,N.literal(L),F);return h.comments=s,h})}function k({identifiers:o,identifierMatch:a,logger:c,filePath:n}){o.replaceWith(r=>{let e=r.node.name;if(!(e in a))return N.identifier(e);if(a[e]===null)return c?.error(`${n}: identifier ${e}\uC5D0 \uB300\uD55C \uBCC0\uD658 \uC815\uBCF4 \uC5C6\uC74C`),console.error(p,`${n}: identifier ${e}\uC5D0 \uB300\uD55C \uBCC0\uD658 \uC815\uBCF4 \uC5C6\uC74C`),N.identifier(e);let{newName:t}=a[e];return c?.debug(`${n}: identifier ${e} -> ${t}`),N.identifier(t)})}import{createLogger as P,format as R,transports as S}from"winston";var f={IconAddThin:{newName:"IconPlusLine"},IconAddRegular:{newName:"IconPlusLine"},IconAddFill:{newName:"IconPlusFill"},IconAddCircleThin:{newName:"IconPlusCircleLine"},IconAddCircleRegular:{newName:"IconPlusCircleLine"},IconAddCircleFill:{newName:"IconPlusCircleFill"},IconAebThin:{newName:"IconCarFrontUpsideWave2ReversedUpLine"},IconAebRegular:{newName:"IconCarFrontUpsideWave2ReversedUpLine"},IconAebFill:{newName:"IconCarFrontUpsideWave2ReversedUpFill"},IconAiThin:{newName:"IconSparkle2Line"},IconAiRegular:{newName:"IconSparkle2Line"},IconAiFill:{newName:"IconSparkle2Fill"},IconAndroidShareThin:{newName:"IconAndroidshareLine"},IconAndroidShareRegular:{newName:"IconAndroidshareLine"},IconAndroidShareFill:{newName:"IconAndroidshareFill"},IconArrowThin:{newName:"IconArrowUpRightLine"},IconArrowRegular:{newName:"IconArrowUpRightLine"},IconArrowFill:{newName:"IconArrowUpRightFill"},IconArrowDownwardThin:{newName:"IconArrowDownLine"},IconArrowDownwardRegular:{newName:"IconArrowDownLine"},IconArrowDownwardFill:{newName:"IconArrowDownFill"},IconArrowDropDownThin:{newName:"IconTriangleDownSmallLine"},IconArrowDropDownRegular:{newName:"IconTriangleDownSmallLine"},IconArrowDropDownFill:{newName:"IconTriangleDownSmallFill"},IconArrowDropUpThin:{newName:"IconTriangleUpSmallLine"},IconArrowDropUpRegular:{newName:"IconTriangleUpSmallLine"},IconArrowDropUpFill:{newName:"IconTriangleUpSmallFill"},IconArrowUpwardThin:{newName:"IconArrowUpLine"},IconArrowUpwardRegular:{newName:"IconArrowUpLine"},IconArrowUpwardFill:{newName:"IconArrowUpFill"},IconArticleThin:{newName:"IconArticleLine"},IconArticleRegular:{newName:"IconArticleLine"},IconArticleFill:{newName:"IconArticleFill"},IconBackwardThin:{newName:"IconArrowLeftLine"},IconBackwardRegular:{newName:"IconArrowLeftLine"},IconBackwardFill:{newName:"IconArrowLeftFill"},IconBillThin:{newName:"IconReceiptLine"},IconBillRegular:{newName:"IconReceiptLine"},IconBillFill:{newName:"IconReceiptFill"},IconBoldThin:{newName:"IconTUppercaseSerifLine",isActionRequired:!0},IconBoldRegular:{newName:"IconTUppercaseSerifLine",isActionRequired:!0},IconBoldFill:{newName:"IconTUppercaseSerifFill",isActionRequired:!0},IconBookmarkThin:{newName:"IconBookmarkLine"},IconBookmarkRegular:{newName:"IconBookmarkLine"},IconBookmarkFill:{newName:"IconBookmarkFill"},IconBookmarkListThin:{newName:"IconHorizline3VerticalStarLine"},IconBookmarkListRegular:{newName:"IconHorizline3VerticalStarLine"},IconBookmarkListFill:{newName:"IconHorizline3VerticalStarFill"},IconCalendarThin:{newName:"IconCalendarLine"},IconCalendarRegular:{newName:"IconCalendarLine"},IconCalendarFill:{newName:"IconCalendarFill"},IconCallThin:{newName:"IconPhoneLine"},IconCallRegular:{newName:"IconPhoneLine"},IconCallFill:{newName:"IconPhoneFill"},IconCallDeclinedThin:{newName:"IconPhoneXmarkLine"},IconCallDeclinedRegular:{newName:"IconPhoneXmarkLine"},IconCallDeclinedFill:{newName:"IconPhoneXmarkFill"},IconCameraThin:{newName:"IconCameraLine"},IconCameraRegular:{newName:"IconCameraLine"},IconCameraFill:{newName:"IconCameraFill"},IconCarThin:{newName:"IconCarFrontsideLine"},IconCarRegular:{newName:"IconCarFrontsideLine"},IconCarFill:{newName:"IconCarFrontsideFill"},IconCarAroundViewThin:{newName:"IconArrowClockwiseOvalLine"},IconCarAroundViewRegular:{newName:"IconArrowClockwiseOvalLine"},IconCarAroundViewFill:{newName:"IconArrowClockwiseOvalFill"},IconCarBlindSpotThin:{newName:"IconCarRearUpsideWave2ReversedDownLeftLine"},IconCarBlindSpotRegular:{newName:"IconCarRearUpsideWave2ReversedDownLeftLine"},IconCarBlindSpotFill:{newName:"IconCarRearUpsideWave2ReversedDownLeftFill"},IconCarCruiseControlThin:{newName:"IconSpeedometerLine"},IconCarCruiseControlRegular:{newName:"IconSpeedometerLine"},IconCarCruiseControlFill:{newName:"IconSpeedometerFill"},IconCarEpbThin:{newName:"IconEpbLine"},IconCarEpbRegular:{newName:"IconEpbLine"},IconCarEpbFill:{newName:"IconEpbFill"},IconCarHeatedSeatThin:{newName:"IconSeatLeftHeatwave2Line"},IconCarHeatedSeatRegular:{newName:"IconSeatLeftHeatwave2Line"},IconCarHeatedSeatFill:{newName:"IconSeatLeftHeatwave2Fill"},IconCarHeatedSteeringWheelThin:{newName:"IconSteeringwheelHeatwave2Line"},IconCarHeatedSteeringWheelRegular:{newName:"IconSteeringwheelHeatwave2Line"},IconCarHeatedSteeringWheelFill:{newName:"IconSteeringwheelHeatwave2Fill"},IconCarLdwsThin:{newName:"IconRoadlaneLine"},IconCarLdwsRegular:{newName:"IconRoadlaneLine"},IconCarLdwsFill:{newName:"IconRoadlaneFill"},IconCarLeatherSeatThin:{newName:"IconSeatLeftLine"},IconCarLeatherSeatRegular:{newName:"IconSeatLeftLine"},IconCarLeatherSeatFill:{newName:"IconSeatLeftFill"},IconCarNavigationThin:{newName:"IconCompassLine"},IconCarNavigationRegular:{newName:"IconCompassLine"},IconCarNavigationFill:{newName:"IconCompassFill"},IconCarPowerTrunkThin:{newName:"IconCarRearTrunkOpenLeftsideLine"},IconCarPowerTrunkRegular:{newName:"IconCarRearTrunkOpenLeftsideLine"},IconCarPowerTrunkFill:{newName:"IconCarRearTrunkOpenLeftsideFill"},IconCarRearCameraThin:{newName:"IconCarRearUpsideSectorDownLine"},IconCarRearCameraRegular:{newName:"IconCarRearUpsideSectorDownLine"},IconCarRearCameraFill:{newName:"IconCarRearUpsideSectorDownFill"},IconCarRearSensorThin:{newName:"IconCarRearUpsideWave2ReversedDownLine"},IconCarRearSensorRegular:{newName:"IconCarRearUpsideWave2ReversedDownLine"},IconCarRearSensorFill:{newName:"IconCarRearUpsideWave2ReversedDownFill"},IconCarSmartKeyThin:{newName:"IconSmartkeyLine"},IconCarSmartKeyRegular:{newName:"IconSmartkeyLine"},IconCarSmartKeyFill:{newName:"IconSmartkeyFill"},IconCarVentilationSeatThin:{newName:"IconSeatLeftFanLine"},IconCarVentilationSeatRegular:{newName:"IconSeatLeftFanLine"},IconCarVentilationSeatFill:{newName:"IconSeatLeftFanFill"},IconCartThin:{newName:"IconCartLine"},IconCartRegular:{newName:"IconCartLine"},IconCartFill:{newName:"IconCartFill"},IconCertificationThin:{newName:"IconCrosshairLine"},IconCertificationRegular:{newName:"IconCrosshairLine"},IconCertificationFill:{newName:"IconCrosshairFill"},IconChallengeThin:{newName:"IconFlagHillLine"},IconChallengeRegular:{newName:"IconFlagHillLine"},IconChallengeFill:{newName:"IconFlagHillFill"},IconChartThin:{newName:"IconBarchartSquareLine"},IconChartRegular:{newName:"IconBarchartSquareLine"},IconChartFill:{newName:"IconBarchartSquareFill"},IconChatBubbleCheckThin:{newName:"IconCheckmarkChatbubbleLeftLine"},IconChatBubbleCheckRegular:{newName:"IconCheckmarkChatbubbleLeftLine"},IconChatBubbleCheckFill:{newName:"IconCheckmarkChatbubbleLeftFill"},IconChattingThin:{newName:"IconDot3HorizontalChatbubbleLeftLine"},IconChattingRegular:{newName:"IconDot3HorizontalChatbubbleLeftLine"},IconChattingFill:{newName:"IconDot3HorizontalChatbubbleLeftFill"},IconChattingSendThin:{newName:"IconPaperplaneLine"},IconChattingSendRegular:{newName:"IconPaperplaneLine"},IconChattingSendFill:{newName:"IconPaperplaneFill"},IconCheckThin:{newName:"IconCheckmarkLine"},IconCheckRegular:{newName:"IconCheckmarkLine"},IconCheckFill:{newName:"IconCheckmarkFill"},IconCheckFlowerThin:{newName:"IconCheckmarkFlowerLine"},IconCheckFlowerRegular:{newName:"IconCheckmarkFlowerLine"},IconCheckFlowerFill:{newName:"IconCheckmarkFlowerFill"},IconChevronLeftThin:{newName:"IconChevronLeftLine"},IconChevronLeftRegular:{newName:"IconChevronLeftLine"},IconChevronLeftFill:{newName:"IconChevronLeftFill"},IconChevronRightThin:{newName:"IconChevronRightLine"},IconChevronRightRegular:{newName:"IconChevronRightLine"},IconChevronRightFill:{newName:"IconChevronRightFill"},IconClickThin:{newName:"IconHandPointUpLine"},IconClickRegular:{newName:"IconHandPointUpLine"},IconClickFill:{newName:"IconHandPointUpFill"},IconClockThin:{newName:"IconClockLine"},IconClockRegular:{newName:"IconClockLine"},IconClockFill:{newName:"IconClockFill"},IconCloseThin:{newName:"IconXmarkLine"},IconCloseRegular:{newName:"IconXmarkLine"},IconCloseFill:{newName:"IconXmarkFill"},IconCobuyingThin:{newName:"IconShoppingbag2StackedLine",isActionRequired:!0},IconCobuyingRegular:{newName:"IconShoppingbag2StackedLine",isActionRequired:!0},IconCobuyingFill:{newName:"IconShoppingbag2StackedFill",isActionRequired:!0},IconCommunityThin:{newName:"IconPostLine"},IconCommunityRegular:{newName:"IconPostLine"},IconCommunityFill:{newName:"IconPostFill"},IconCondoThin:{newName:"IconBuilding2Line"},IconCondoRegular:{newName:"IconBuilding2Line"},IconCondoFill:{newName:"IconBuilding2Fill"},IconConfirmationThin:{newName:"IconCheckmarkShieldLine"},IconConfirmationRegular:{newName:"IconCheckmarkShieldLine"},IconConfirmationFill:{newName:"IconCheckmarkShieldFill"},IconConfirmationPayThin:{newName:"IconWonShieldLine"},IconConfirmationPayRegular:{newName:"IconWonShieldLine"},IconConfirmationPayFill:{newName:"IconWonShieldFill"},IconConfirmationProfileThin:{newName:"IconPersonShieldLine"},IconConfirmationProfileRegular:{newName:"IconPersonShieldLine"},IconConfirmationProfileFill:{newName:"IconPersonShieldFill"},IconContentsThin:{newName:"IconGridHeartLine"},IconContentsRegular:{newName:"IconGridHeartLine"},IconContentsFill:{newName:"IconGridHeartFill"},IconConvertThin:{newName:"IconArrowRightArrowLeftLine"},IconConvertRegular:{newName:"IconArrowRightArrowLeftLine"},IconConvertFill:{newName:"IconArrowRightArrowLeftFill"},IconCopyThin:{newName:"IconSquare2StackedLine"},IconCopyRegular:{newName:"IconSquare2StackedLine"},IconCopyFill:{newName:"IconSquare2StackedFill"},IconCouponThin:{newName:"IconCouponLine"},IconCouponRegular:{newName:"IconCouponLine"},IconCouponFill:{newName:"IconCouponFill"},IconCouponDownloadDoneThin:{newName:"IconCheckmarkHorizlineLine"},IconCouponDownloadDoneRegular:{newName:"IconCheckmarkHorizlineLine"},IconCouponDownloadDoneFill:{newName:"IconCheckmarkHorizlineFill"},IconCouponUsedThin:{newName:"IconCheckmarkCouponLine"},IconCouponUsedRegular:{newName:"IconCheckmarkCouponLine"},IconCouponUsedFill:{newName:"IconCheckmarkCouponFill"},IconDeleteKeyboardThin:{newName:"IconBackspacekeyLine"},IconDeleteKeyboardRegular:{newName:"IconBackspacekeyLine"},IconDeleteKeyboardFill:{newName:"IconBackspacekeyFill"},IconDeliveryThin:{newName:"IconTruckLine",isActionRequired:!0},IconDeliveryRegular:{newName:"IconTruckLine",isActionRequired:!0},IconDeliveryFill:{newName:"IconTruckFill",isActionRequired:!0},IconDirectionThin:{newName:"IconArrowRightAngledLine"},IconDirectionRegular:{newName:"IconArrowRightAngledLine"},IconDirectionFill:{newName:"IconArrowRightAngledFill"},IconDownloadThin:{newName:"IconArrowDownHorizlineLine"},IconDownloadRegular:{newName:"IconArrowDownHorizlineLine"},IconDownloadFill:{newName:"IconArrowDownHorizlineFill"},IconEditThin:{newName:"IconEraserHorizlineLine"},IconEditRegular:{newName:"IconEraserHorizlineLine"},IconEditFill:{newName:"IconEraserHorizlineFill"},IconEmoticonThin:{newName:"IconFaceSmileCircleLine"},IconEmoticonRegular:{newName:"IconFaceSmileCircleLine"},IconEmoticonFill:{newName:"IconFaceSmileCircleFill"},IconEmoticonBadThin:{newName:"IconFaceSadCircleLine"},IconEmoticonBadRegular:{newName:"IconFaceSadCircleLine"},IconEmoticonBadFill:{newName:"IconFaceSadCircleFill"},IconExpandThin:{newName:"IconArrowUpRightArrowDownLeftLine"},IconExpandRegular:{newName:"IconArrowUpRightArrowDownLeftLine"},IconExpandFill:{newName:"IconArrowUpRightArrowDownLeftFill"},IconExpandLessThin:{newName:"IconChevronUpLine"},IconExpandLessRegular:{newName:"IconChevronUpLine"},IconExpandLessFill:{newName:"IconChevronUpFill"},IconExpandMoreThin:{newName:"IconChevronDownLine"},IconExpandMoreRegular:{newName:"IconChevronDownLine"},IconExpandMoreFill:{newName:"IconChevronDownFill"},IconFileThin:{newName:"IconPaperclipLine"},IconFileRegular:{newName:"IconPaperclipLine"},IconFileFill:{newName:"IconPaperclipFill"},IconFilter02Thin:{newName:"IconSlider2HorizontalLine"},IconFilter02Regular:{newName:"IconSlider2HorizontalLine"},IconFilter02Fill:{newName:"IconSlider2HorizontalFill"},IconForwardThin:{newName:"IconArrowRightLine"},IconForwardRegular:{newName:"IconArrowRightLine"},IconForwardFill:{newName:"IconArrowRightFill"},IconGenderThin:{newName:"IconMalesymbolFemalesymbolLine"},IconGenderRegular:{newName:"IconMalesymbolFemalesymbolLine"},IconGenderFill:{newName:"IconMalesymbolFemalesymbolFill"},IconGlobalThin:{newName:"IconGlobeLine"},IconGlobalRegular:{newName:"IconGlobeLine"},IconGlobalFill:{newName:"IconGlobeFill"},IconGpsThin:{newName:"IconCrosshairLine"},IconGpsRegular:{newName:"IconCrosshairLine"},IconGpsFill:{newName:"IconCrosshairFill"},IconGpsEnableThin:{newName:"IconCrosshairQuestionmarkLine"},IconGpsEnableRegular:{newName:"IconCrosshairQuestionmarkLine"},IconGpsEnableFill:{newName:"IconCrosshairQuestionmarkFill"},IconGpsEnable2Thin:{newName:"IconCrosshairQuestionmarkLine"},IconGpsEnable2Regular:{newName:"IconCrosshairQuestionmarkLine"},IconGpsEnable2Fill:{newName:"IconCrosshairQuestionmarkFill"},IconGroupchatKingThin:{newName:"IconCrownLine"},IconGroupchatKingRegular:{newName:"IconCrownLine"},IconGroupchatKingFill:{newName:"IconCrownFill"},IconHandleThin:{newName:"IconHorizline3VerticalTightLine"},IconHandleRegular:{newName:"IconHorizline3VerticalTightLine"},IconHandleFill:{newName:"IconHorizline3VerticalTightFill"},IconHashtagThin:{newName:"IconHashLine"},IconHashtagRegular:{newName:"IconHashLine"},IconHashtagFill:{newName:"IconHashFill"},IconHeadphoneThin:{newName:"IconHeadsetLine"},IconHeadphoneRegular:{newName:"IconHeadsetLine"},IconHeadphoneFill:{newName:"IconHeadsetFill"},IconHeartThin:{newName:"IconHeartLine"},IconHeartRegular:{newName:"IconHeartLine"},IconHeartFill:{newName:"IconHeartFill"},IconHelpThin:{newName:"IconQuestionmarkCircleLine"},IconHelpRegular:{newName:"IconQuestionmarkCircleLine"},IconHelpFill:{newName:"IconQuestionmarkCircleFill"},IconHelpcenterThin:{newName:"IconHeadsetLine"},IconHelpcenterRegular:{newName:"IconHeadsetLine"},IconHelpcenterFill:{newName:"IconHeadsetFill"},IconHelperThin:{newName:"IconHeadsetLine"},IconHelperRegular:{newName:"IconHeadsetLine"},IconHelperFill:{newName:"IconHeadsetFill"},IconHomeThin:{newName:"IconHouseLine"},IconHomeRegular:{newName:"IconHouseLine"},IconHomeFill:{newName:"IconHouseFill"},IconHouseThin:{newName:"IconWindow4HouseLine"},IconHouseRegular:{newName:"IconWindow4HouseLine"},IconHouseFill:{newName:"IconWindow4HouseFill"},IconHousekeepingBookThin:{newName:"IconBookLine"},IconHousekeepingBookRegular:{newName:"IconBookLine"},IconHousekeepingBookFill:{newName:"IconBookFill"},IconImportThin:{newName:"IconDocumentArrowLeftLine"},IconImportRegular:{newName:"IconDocumentArrowLeftLine"},IconImportFill:{newName:"IconDocumentArrowLeftFill"},IconInfoThin:{newName:"IconILowercaseSerifCircleLine"},IconInfoRegular:{newName:"IconILowercaseSerifCircleLine"},IconInfoFill:{newName:"IconILowercaseSerifCircleFill"},IconInterestThin:{newName:"IconHorizline3VerticalStarLine"},IconInterestRegular:{newName:"IconHorizline3VerticalStarLine"},IconInterestFill:{newName:"IconHorizline3VerticalStarFill"},IconInterestListThin:{newName:"IconStarLine"},IconInterestListRegular:{newName:"IconStarLine"},IconInterestListFill:{newName:"IconStarFill"},IconInviteThin:{newName:"IconEnvelopeLine"},IconInviteRegular:{newName:"IconEnvelopeLine"},IconInviteFill:{newName:"IconEnvelopeFill"},IconInviteFriendThin:{newName:"IconPersonPlusLine"},IconInviteFriendRegular:{newName:"IconPersonPlusLine"},IconInviteFriendFill:{newName:"IconPersonPlusFill"},IconIosShareThin:{newName:"IconArrowUpBracketDownLine"},IconIosShareRegular:{newName:"IconArrowUpBracketDownLine"},IconIosShareFill:{newName:"IconArrowUpBracketDownFill"},IconJobsThin:{newName:"IconPersonMagnifyingglassLine"},IconJobsRegular:{newName:"IconPersonMagnifyingglassLine"},IconJobsFill:{newName:"IconPersonMagnifyingglassFill"},IconKeyboardHidingThin:{newName:"IconKeyboardChevronDownLine"},IconKeyboardHidingRegular:{newName:"IconKeyboardChevronDownLine"},IconKeyboardHidingFill:{newName:"IconKeyboardChevronDownFill"},IconKeywordThin:{newName:"IconTagLine"},IconKeywordRegular:{newName:"IconTagLine"},IconKeywordFill:{newName:"IconTagFill"},IconLaptopThin:{newName:"IconLaptopLine"},IconLaptopRegular:{newName:"IconLaptopLine"},IconLaptopFill:{newName:"IconLaptopFill"},IconLeafThin:{newName:"IconLeafLine"},IconLeafRegular:{newName:"IconLeafLine"},IconLeafFill:{newName:"IconLeafFill"},IconListThin:{newName:"IconDothorizline3VerticalLine"},IconListRegular:{newName:"IconDothorizline3VerticalLine"},IconListFill:{newName:"IconDothorizline3VerticalFill"},IconListCardThin:{newName:"IconHorizrectangleHorizline2VerticalLine"},IconListCardRegular:{newName:"IconHorizrectangleHorizline2VerticalLine"},IconListCardFill:{newName:"IconHorizrectangleHorizline2VerticalFill"},IconListCheckThin:{newName:"IconDocumentCheckmarkLine"},IconListCheckRegular:{newName:"IconDocumentCheckmarkLine"},IconListCheckFill:{newName:"IconDocumentCheckmarkFill"},IconListSelectThin:{newName:"IconHorizline3VerticalCheckmarkLine"},IconListSelectRegular:{newName:"IconHorizline3VerticalCheckmarkLine"},IconListSelectFill:{newName:"IconHorizline3VerticalCheckmarkFill"},IconListThumbnailThin:{newName:"IconSquareline2VerticalLine"},IconListThumbnailRegular:{newName:"IconSquareline2VerticalLine"},IconListThumbnailFill:{newName:"IconSquareline2VerticalFill"},IconLocationThin:{newName:"IconLocationpinLine"},IconLocationRegular:{newName:"IconLocationpinLine"},IconLocationFill:{newName:"IconLocationpinFill"},IconLockThin:{newName:"IconLockLine"},IconLockRegular:{newName:"IconLockLine"},IconLockFill:{newName:"IconLockFill"},IconLoudspeakerThin:{newName:"IconMegaphoneLine"},IconLoudspeakerRegular:{newName:"IconMegaphoneLine"},IconLoudspeakerFill:{newName:"IconMegaphoneFill"},IconMapThin:{newName:"IconMapLocationpinLine"},IconMapRegular:{newName:"IconMapLocationpinLine"},IconMapFill:{newName:"IconMapLocationpinFill"},IconMarketThin:{newName:"IconStoreLine"},IconMarketRegular:{newName:"IconStoreLine"},IconMarketFill:{newName:"IconStoreFill"},IconMarketCheckThin:{newName:"IconStoreCheckmarkLine"},IconMarketCheckRegular:{newName:"IconStoreCheckmarkLine"},IconMarketCheckFill:{newName:"IconStoreCheckmarkFill"},IconMarketWriteThin:{newName:"IconStorePenLine"},IconMarketWriteRegular:{newName:"IconStorePenLine"},IconMarketWriteFill:{newName:"IconStorePenFill"},IconMentionThin:{newName:"IconAtLine"},IconMentionRegular:{newName:"IconAtLine"},IconMentionFill:{newName:"IconAtFill"},IconMenuThin:{newName:"IconHorizline3VerticalLine"},IconMenuRegular:{newName:"IconHorizline3VerticalLine"},IconMenuFill:{newName:"IconHorizline3VerticalFill"},IconMicThin:{newName:"IconMicrophoneLine"},IconMicRegular:{newName:"IconMicrophoneLine"},IconMicFill:{newName:"IconMicrophoneFill"},IconMicOffThin:{newName:"IconMicrophoneSlashLine"},IconMicOffRegular:{newName:"IconMicrophoneSlashLine"},IconMicOffFill:{newName:"IconMicrophoneSlashFill"},IconMissionThin:{newName:"IconBookOpenLine"},IconMissionRegular:{newName:"IconBookOpenLine"},IconMissionFill:{newName:"IconBookOpenFill"},IconMobileThin:{newName:"IconMobileLine"},IconMobileRegular:{newName:"IconMobileLine"},IconMobileFill:{newName:"IconMobileFill"},IconMoneySendThin:{newName:"IconWonCircleArrowRightLine"},IconMoneySendRegular:{newName:"IconWonCircleArrowRightLine"},IconMoneySendFill:{newName:"IconWonCircleArrowRightFill"},IconMoneyWonThin:{newName:"IconWonCircleLine"},IconMoneyWonRegular:{newName:"IconWonCircleLine"},IconMoneyWonFill:{newName:"IconWonCircleFill"},IconMoonThin:{newName:"IconMoonLine"},IconMoonRegular:{newName:"IconMoonLine"},IconMoonFill:{newName:"IconMoonFill"},IconMoreHorizThin:{newName:"IconDot3HorizontalLine"},IconMoreHorizRegular:{newName:"IconDot3HorizontalLine"},IconMoreHorizFill:{newName:"IconDot3HorizontalFill"},IconMoreVertThin:{newName:"IconDot3VerticalLine"},IconMoreVertRegular:{newName:"IconDot3VerticalLine"},IconMoreVertFill:{newName:"IconDot3VerticalFill"},IconMyThin:{newName:"IconPersonLine"},IconMyRegular:{newName:"IconPersonLine"},IconMyFill:{newName:"IconPersonFill"},IconMyProfileThin:{newName:"IconPersonCircleLine"},IconMyProfileRegular:{newName:"IconPersonCircleLine"},IconMyProfileFill:{newName:"IconPersonCircleFill"},IconNearMeThin:{newName:"IconLocationpinLine"},IconNearMeRegular:{newName:"IconLocationpinLine"},IconNearMeFill:{newName:"IconLocationpinFill"},IconNewtopicThin:{newName:"IconNUppercaseCircleLine"},IconNewtopicRegular:{newName:"IconNUppercaseCircleLine"},IconNewtopicFill:{newName:"IconNUppercaseCircleFill"},IconNoteThin:{newName:"IconDocumentLine"},IconNoteRegular:{newName:"IconDocumentLine"},IconNoteFill:{newName:"IconDocumentFill"},IconNotificationThin:{newName:"IconBellLine"},IconNotificationRegular:{newName:"IconBellLine"},IconNotificationFill:{newName:"IconBellFill"},IconNotificationFallThin:{newName:"IconArrowDownLine"},IconNotificationFallRegular:{newName:"IconArrowDownLine"},IconNotificationFallFill:{newName:"IconArrowDownFill"},IconNotificationOffThin:{newName:"IconBellSlashLine"},IconNotificationOffRegular:{newName:"IconBellSlashLine"},IconNotificationOffFill:{newName:"IconBellSlashFill"},IconOrderThin:{newName:"IconCheckmarkClipboardLine"},IconOrderRegular:{newName:"IconCheckmarkClipboardLine"},IconOrderFill:{newName:"IconCheckmarkClipboardFill"},IconPauseThin:{newName:"IconVertrectangle2HorizontalLine"},IconPauseRegular:{newName:"IconVertrectangle2HorizontalLine"},IconPauseFill:{newName:"IconVertrectangle2HorizontalFill"},IconPaymentThin:{newName:"IconCardLine"},IconPaymentRegular:{newName:"IconCardLine"},IconPaymentFill:{newName:"IconCardFill"},IconPercentThin:{newName:"IconPercentLine"},IconPercentRegular:{newName:"IconPercentLine"},IconPercentFill:{newName:"IconPercentFill"},IconPhotoThin:{newName:"IconPictureLine"},IconPhotoRegular:{newName:"IconPictureLine"},IconPhotoFill:{newName:"IconPictureFill"},IconPhotoEditThin:{newName:"IconWandLine"},IconPhotoEditRegular:{newName:"IconWandLine"},IconPhotoEditFill:{newName:"IconWandFill"},IconPhotoEditCropThin:{newName:"IconCropmarkLine"},IconPhotoEditCropRegular:{newName:"IconCropmarkLine"},IconPhotoEditCropFill:{newName:"IconCropmarkFill"},IconPhotoEditDrawThin:{newName:"IconScribbleLine"},IconPhotoEditDrawRegular:{newName:"IconScribbleLine"},IconPhotoEditDrawFill:{newName:"IconScribbleFill"},IconPhotoEditRotateThin:{newName:"IconArrow2ClockwiseCircularLine"},IconPhotoEditRotateRegular:{newName:"IconArrow2ClockwiseCircularLine"},IconPhotoEditRotateFill:{newName:"IconArrow2ClockwiseCircularFill"},IconPhotoSeveralThin:{newName:"IconPicture2StackedLine"},IconPhotoSeveralRegular:{newName:"IconPicture2StackedLine"},IconPhotoSeveralFill:{newName:"IconPicture2StackedFill"},IconPlayThin:{newName:"IconTriangleRightLine"},IconPlayRegular:{newName:"IconTriangleRightLine"},IconPlayFill:{newName:"IconTriangleRightFill"},IconPollThin:{newName:"IconBarchartSquareLine"},IconPollRegular:{newName:"IconBarchartSquareLine"},IconPollFill:{newName:"IconBarchartSquareFill"},IconPriceWonThin:{newName:"IconWonLine"},IconPriceWonRegular:{newName:"IconWonLine"},IconPriceWonFill:{newName:"IconWonFill"},IconProductThin:{newName:"IconShoppingbagLine"},IconProductRegular:{newName:"IconShoppingbagLine"},IconProductFill:{newName:"IconShoppingbagFill"},IconProfileThin:{newName:"IconPersonLine"},IconProfileRegular:{newName:"IconPersonLine"},IconProfileFill:{newName:"IconPersonFill"},IconProfileBadgeThin:{newName:"IconCheckmarkBadgeLine"},IconProfileBadgeRegular:{newName:"IconCheckmarkBadgeLine"},IconProfileBadgeFill:{newName:"IconCheckmarkBadgeFill"},IconProhibitionThin:{newName:"IconSlashCircleLine"},IconProhibitionRegular:{newName:"IconSlashCircleLine"},IconProhibitionFill:{newName:"IconSlashCircleFill"},IconPushpinThin:{newName:"IconPushpinLine"},IconPushpinRegular:{newName:"IconPushpinLine"},IconPushpinFill:{newName:"IconPushpinFill"},IconQuestionCheckThin:{newName:"IconQuestionmarkSquareLine"},IconQuestionCheckRegular:{newName:"IconQuestionmarkSquareLine"},IconQuestionCheckFill:{newName:"IconQuestionmarkSquareFill"},IconRedoThin:{newName:"IconArrowUturnRightLine"},IconRedoRegular:{newName:"IconArrowUturnRightLine"},IconRedoFill:{newName:"IconArrowUturnRightFill"},IconRefundThin:{newName:"IconWonArrowClockwiseCircularLine"},IconRefundRegular:{newName:"IconWonArrowClockwiseCircularLine"},IconRefundFill:{newName:"IconWonArrowClockwiseCircularFill"},IconRemoveCircleThin:{newName:"IconXmarkCircleLine"},IconRemoveCircleRegular:{newName:"IconXmarkCircleLine"},IconRemoveCircleFill:{newName:"IconXmarkCircleFill"},IconReplyThin:{newName:"IconHorizline2VerticalChatbubbleRightLine"},IconReplyRegular:{newName:"IconHorizline2VerticalChatbubbleRightLine"},IconReplyFill:{newName:"IconHorizline2VerticalChatbubbleRightFill"},IconReplyMissionThin:{newName:"IconHorizline2VerticalChatbubbleRightLine"},IconReplyMissionRegular:{newName:"IconHorizline2VerticalChatbubbleRightLine"},IconReplyMissionFill:{newName:"IconHorizline2VerticalChatbubbleRightFill"},IconReplyReThin:{newName:"IconCornerDownLeftLine"},IconReplyReRegular:{newName:"IconCornerDownLeftLine"},IconReplyReFill:{newName:"IconCornerDownLeftFill"},IconReportThin:{newName:"IconFlagLine"},IconReportRegular:{newName:"IconFlagLine"},IconReportFill:{newName:"IconFlagFill"},IconReservationThin:{newName:"IconCheckmarkCalendarLine"},IconReservationRegular:{newName:"IconCheckmarkCalendarLine"},IconReservationFill:{newName:"IconCheckmarkCalendarFill"},IconRestaurantThin:{newName:"IconForkSpoonLine"},IconRestaurantRegular:{newName:"IconForkSpoonLine"},IconRestaurantFill:{newName:"IconForkSpoonFill"},IconRetryThin:{newName:"IconArrowClockwiseCircularLine"},IconRetryRegular:{newName:"IconArrowClockwiseCircularLine"},IconRetryFill:{newName:"IconArrowClockwiseCircularFill"},IconReviewStarThin:{newName:"IconStarLine"},IconReviewStarRegular:{newName:"IconStarLine"},IconReviewStarFill:{newName:"IconStarFill"},IconScannerThin:{newName:"IconHorizlineViewfinderLine"},IconScannerRegular:{newName:"IconHorizlineViewfinderLine"},IconScannerFill:{newName:"IconHorizlineViewfinderFill"},IconSearchThin:{newName:"IconMagnifyingglassLine"},IconSearchRegular:{newName:"IconMagnifyingglassLine"},IconSearchFill:{newName:"IconMagnifyingglassFill"},IconSearchDocThin:{newName:"IconDocumentMagnifyingglassLine"},IconSearchDocRegular:{newName:"IconDocumentMagnifyingglassLine"},IconSearchDocFill:{newName:"IconDocumentMagnifyingglassFill"},IconSellThin:{newName:"IconPlusSquareLine"},IconSellRegular:{newName:"IconPlusSquareLine"},IconSellFill:{newName:"IconPlusSquareFill"},IconSettingThin:{newName:"IconGearLine"},IconSettingRegular:{newName:"IconGearLine"},IconSettingFill:{newName:"IconGearFill"},IconSignoutThin:{newName:"IconBracketLeftArrowRightLine"},IconSignoutRegular:{newName:"IconBracketLeftArrowRightLine"},IconSignoutFill:{newName:"IconBracketLeftArrowRightFill"},IconSortThin:{newName:"IconArrowUpArrowDownLine"},IconSortRegular:{newName:"IconArrowUpArrowDownLine"},IconSortFill:{newName:"IconArrowUpArrowDownFill"},IconStoryThin:{newName:"IconTriangleRightChatbubbleLeftLine"},IconStoryRegular:{newName:"IconTriangleRightChatbubbleLeftLine"},IconStoryFill:{newName:"IconTriangleRightChatbubbleLeftFill"},IconStoryArticleThin:{newName:"IconDocumentPenLine"},IconStoryArticleRegular:{newName:"IconDocumentPenLine"},IconStoryArticleFill:{newName:"IconDocumentPenFill"},IconSubtractCircleThin:{newName:"IconMinusCircleLine"},IconSubtractCircleRegular:{newName:"IconMinusCircleLine"},IconSubtractCircleFill:{newName:"IconMinusCircleFill"},IconSubtractionThin:{newName:"IconMinusLine"},IconSubtractionRegular:{newName:"IconMinusLine"},IconSubtractionFill:{newName:"IconMinusFill"},IconSuggestThin:{newName:"IconLightbulbDot5Line",isActionRequired:!0},IconSuggestRegular:{newName:"IconLightbulbDot5Line",isActionRequired:!0},IconSuggestFill:{newName:"IconLightbulbDot5Fill",isActionRequired:!0},IconSunThin:{newName:"IconSunLine"},IconSunRegular:{newName:"IconSunLine"},IconSunFill:{newName:"IconSunFill"},IconTalkingdownThin:{newName:"IconQuotationmark2RightLine"},IconTalkingdownRegular:{newName:"IconQuotationmark2RightLine"},IconTalkingdownFill:{newName:"IconQuotationmark2RightFill"},IconTalkingupThin:{newName:"IconQuotationmark2LeftLine"},IconTalkingupRegular:{newName:"IconQuotationmark2LeftLine"},IconTalkingupFill:{newName:"IconQuotationmark2LeftFill"},IconTextThin:{newName:"IconTUppercaseSerifLine"},IconTextRegular:{newName:"IconTUppercaseSerifLine"},IconTextFill:{newName:"IconTUppercaseSerifFill"},IconThumbDownThin:{newName:"IconThumbDownLine"},IconThumbDownRegular:{newName:"IconThumbDownLine"},IconThumbDownFill:{newName:"IconThumbDownFill"},IconThumbUpThin:{newName:"IconThumbUpLine"},IconThumbUpRegular:{newName:"IconThumbUpLine"},IconThumbUpFill:{newName:"IconThumbUpFill"},IconToolboxThin:{newName:"IconToolboxLine"},IconToolboxRegular:{newName:"IconToolboxLine"},IconToolboxFill:{newName:"IconToolboxFill"},IconTranslateThin:{newName:"IconTranslationLine"},IconTranslateRegular:{newName:"IconTranslationLine"},IconTranslateFill:{newName:"IconTranslationFill"},IconTrashThin:{newName:"IconTrashcanLine"},IconTrashRegular:{newName:"IconTrashcanLine"},IconTrashFill:{newName:"IconTrashcanFill"},IconUndoThin:{newName:"IconArrowUturnLeftLine"},IconUndoRegular:{newName:"IconArrowUturnLeftLine"},IconUndoFill:{newName:"IconArrowUturnLeftFill"},IconUserGroupThin:{newName:"IconPerson2Line"},IconUserGroupRegular:{newName:"IconPerson2Line"},IconUserGroupFill:{newName:"IconPerson2Fill"},IconVideoThin:{newName:"IconCamcorderLine"},IconVideoRegular:{newName:"IconCamcorderLine"},IconVideoFill:{newName:"IconCamcorderFill"},IconViewCountThin:{newName:"IconEyeLine"},IconViewCountRegular:{newName:"IconEyeLine"},IconViewCountFill:{newName:"IconEyeFill"},IconViewCountOffThin:{newName:"IconEyeSlashLine"},IconViewCountOffRegular:{newName:"IconEyeSlashLine"},IconViewCountOffFill:{newName:"IconEyeSlashFill"},IconVolumeOffThin:{newName:"IconSpeakerSlashLine"},IconVolumeOffRegular:{newName:"IconSpeakerSlashLine"},IconVolumeOffFill:{newName:"IconSpeakerSlashFill"},IconVolumeOnThin:{newName:"IconSpeakerWave2Line"},IconVolumeOnRegular:{newName:"IconSpeakerWave2Line"},IconVolumeOnFill:{newName:"IconSpeakerWave2Fill"},IconVoteThin:{newName:"IconCheckmarkBallotboxLine"},IconVoteRegular:{newName:"IconCheckmarkBallotboxLine"},IconVoteFill:{newName:"IconCheckmarkBallotboxFill"},IconVoucherThin:{newName:"IconGiftLine"},IconVoucherRegular:{newName:"IconGiftLine"},IconVoucherFill:{newName:"IconGiftFill"},IconWalkThin:{newName:"IconFigureWalkLine"},IconWalkRegular:{newName:"IconFigureWalkLine"},IconWalkFill:{newName:"IconFigureWalkFill"},IconWarningThin:{newName:"IconExclamationmarkCircleLine"},IconWarningRegular:{newName:"IconExclamationmarkCircleLine"},IconWarningFill:{newName:"IconExclamationmarkCircleFill"},IconWriteThin:{newName:"IconPenHorizlineLine"},IconWriteRegular:{newName:"IconPenHorizlineLine"},IconWriteFill:{newName:"IconPenHorizlineFill"},IconWriteFrequentUseThin:{newName:"IconDocumentPlusLine"},IconWriteFrequentUseRegular:{newName:"IconDocumentPlusLine"},IconWriteFrequentUseFill:{newName:"IconDocumentPlusFill"},IconWriteStoryThin:{newName:"IconHorizline2VerticalChatbubbleRightLine",isActionRequired:!0},IconWriteStoryRegular:{newName:"IconHorizline2VerticalChatbubbleRightLine",isActionRequired:!0},IconWriteStoryFill:{newName:"IconHorizline2VerticalChatbubbleRightFill",isActionRequired:!0}};var A={source:[{startsWith:"@seed-design/icon",replaceWith:"@daangn/react-icon"},{startsWith:"@seed-design/react-icon",replaceWith:"@daangn/react-icon"}],identifier:f},H=(o,a,{match:c=A})=>{let n=process.env.LOG==="true"?P({level:"info",format:R.combine(R.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),R.printf(({level:I,message:h,timestamp:i})=>`${i} [${I.toUpperCase()}]: ${h}`)),transports:[new S.File({filename:"migrate-icons-combined.log",level:"debug"}),new S.File({filename:"migrate-icons-warnings.log",level:"warn"})]}):void 0;n?.debug(`${o.path}: \uD655\uC778 \uC2DC\uC791`);let r=a.jscodeshift,e=r(o.source),t=()=>e.find(r.Program).get("body",0).node,F=t(),s=e.find(r.ImportDeclaration,{source:{value:I=>typeof I!="string"?!1:c.source.some(({startsWith:h})=>I.startsWith(h))}});if(s.length===0)return n?.debug(`${o.path}: \uC774 \uD30C\uC77C\uC5D0\uB294 import\uBB38 \uC5C6\uC74C`),o.source;n?.debug(`${o.path}: import\uBB38 ${s.length}\uAC1C \uBC1C\uACAC`),T({importDeclarations:s,match:c,logger:n,filePath:o.path}),n?.debug(`${o.path}: import\uBB38 \uBCC0\uD658 \uC644\uB8CC`),n?.debug(`${o.path}: identifier \uBCC0\uD658 \uC2DC\uC791`);let L=e.find(r.Identifier,{name:I=>Object.keys(c.identifier).includes(I)});n?.debug(`${o.path}: identifier ${L.length}\uAC1C \uBC1C\uACAC`),k({identifiers:L,identifierMatch:c.identifier,logger:n,filePath:o.path}),n?.debug(`${o.path}: identifier \uBCC0\uD658 \uC644\uB8CC`);let C=t();return F!==C&&(C.comments=F.comments),n?.debug(`${o.path}: \uD655\uC778 \uC644\uB8CC`),e.toSource()},E=H;export{E as default};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@seed-design/codemod",
|
3
|
-
"version": "0.0.0-alpha-
|
3
|
+
"version": "0.0.0-alpha-20241022061413",
|
4
4
|
"type": "module",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -14,6 +14,7 @@
|
|
14
14
|
],
|
15
15
|
"scripts": {
|
16
16
|
"prepack": "yarn build",
|
17
|
+
"dev": "node ./dev.mjs",
|
17
18
|
"build": "node ./build.mjs",
|
18
19
|
"test": "yarn vitest"
|
19
20
|
},
|
@@ -21,7 +22,9 @@
|
|
21
22
|
"cac": "^6.7.14",
|
22
23
|
"execa": "^9.4.1",
|
23
24
|
"jscodeshift": "^17.0.0",
|
24
|
-
"
|
25
|
+
"picocolors": "^1.1.1",
|
26
|
+
"winston": "^3.15.0",
|
27
|
+
"zod": "^3.23.8"
|
25
28
|
},
|
26
29
|
"devDependencies": {
|
27
30
|
"@daangn/react-icon": "alpha",
|
package/bin/migrate-icons.mjs
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
import t from"jscodeshift";import{format as m,transports as T}from"winston";var k="@seed-design/codemod - ",w={level:"info",format:m.combine(m.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),m.printf(({level:o,message:i,timestamp:c})=>`${c} [${o.toUpperCase()}]: ${i}`)),transports:[new T.File({filename:"combined.log",level:"debug"}),new T.File({filename:"error.log",level:"error"})]};function f({importDeclarations:o,match:i,logger:c,filePath:e}){o.replaceWith(r=>{let n=r.node.source.value,a=r.node.specifiers,C=r.node.importKind,L=r.node.comments,s=(()=>{if(typeof n!="string")return n;let{startsWith:l,replaceWith:I}=i.source.find(({startsWith:g})=>n.startsWith(g)),F=(I?n.replace(l,I):n).split("/");return F.map((g,P)=>P!==F.length-1||!(g in i.identifier)?g:i.identifier[g]).join("/")})();c.debug(`${e}: source ${n} -> ${s}`);let h=a.map(l=>{switch(l.type){case"ImportSpecifier":{let I=l.imported.name;if(!(I in i.identifier)||i.identifier[I]===null)return c.error(`${e}: imported specifier ${I}\uC5D0 \uB300\uD55C \uBCC0\uD658 \uC815\uBCF4 \uC5C6\uC74C`),l;let u=i.identifier[I];if(u===I)return l;c.debug(`${e}: imported name ${I} -> ${u}`);let d=t.identifier(u);return t.importSpecifier(d,l.local)}case"ImportDefaultSpecifier":return l;case"ImportNamespaceSpecifier":return l}}).filter((l,I,u)=>{if(l.type!=="ImportSpecifier")return!0;let F=l.imported.name;return u.findIndex(d=>d.imported.name===F)===I}),p=t.importDeclaration(h,t.literal(s),C);return p.comments=L,p})}function S({identifiers:o,identifierMatch:i,logger:c,filePath:e}){o.replaceWith(r=>{let n=r.node.name;if(!(n in i))return t.identifier(n);if(i[n]===null)return c.error(`${e}: identifier ${n}\uC5D0 \uB300\uD55C \uBCC0\uD658 \uC815\uBCF4 \uC5C6\uC74C`),console.error(k,`${e}: identifier ${n}\uC5D0 \uB300\uD55C \uBCC0\uD658 \uC815\uBCF4 \uC5C6\uC74C`),t.identifier(n);let a=i[n];return c.debug(`${e}: identifier ${n} -> ${a}`),t.identifier(a)})}import{createLogger as H}from"winston";var b={IconAddThin:"IconPlusLine",IconAddRegular:"IconPlusLine",IconAddFill:"IconPlusFill",IconAddCircleThin:"IconPlusCircleLine",IconAddCircleRegular:"IconPlusCircleLine",IconAddCircleFill:"IconPlusCircleFill",IconAebThin:"IconCarFrontUpsideWave2ReversedUpLine",IconAebRegular:"IconCarFrontUpsideWave2ReversedUpLine",IconAebFill:"IconCarFrontUpsideWave2ReversedUpFill",IconAiThin:"IconSparkle2Line",IconAiRegular:"IconSparkle2Line",IconAiFill:"IconSparkle2Fill",IconAndroidShareThin:"IconAndroidshareLine",IconAndroidShareRegular:"IconAndroidshareLine",IconAndroidShareFill:"IconAndroidshareFill",IconArrowThin:"IconArrowUpRightLine",IconArrowRegular:"IconArrowUpRightLine",IconArrowFill:"IconArrowUpRightFill",IconArrowDownwardThin:"IconArrowDownLine",IconArrowDownwardRegular:"IconArrowDownLine",IconArrowDownwardFill:"IconArrowDownFill",IconArrowDropDownThin:"IconTriangleDownSmallLine",IconArrowDropDownRegular:"IconTriangleDownSmallLine",IconArrowDropDownFill:"IconTriangleDownSmallFill",IconArrowDropUpThin:"IconTriangleUpSmallLine",IconArrowDropUpRegular:"IconTriangleUpSmallLine",IconArrowDropUpFill:"IconTriangleUpSmallFill",IconArrowUpwardThin:"IconArrowUpLine",IconArrowUpwardRegular:"IconArrowUpLine",IconArrowUpwardFill:"IconArrowUpFill",IconArticleThin:"IconArticleLine",IconArticleRegular:"IconArticleLine",IconArticleFill:"IconArticleFill",IconBackwardThin:"IconArrowLeftLine",IconBackwardRegular:"IconArrowLeftLine",IconBackwardFill:"IconArrowLeftFill",IconBillThin:"IconReceiptLine",IconBillRegular:"IconReceiptLine",IconBillFill:"IconReceiptFill",IconBoldThin:null,IconBoldRegular:null,IconBoldFill:null,IconBookmarkThin:"IconBookmarkLine",IconBookmarkRegular:"IconBookmarkLine",IconBookmarkFill:"IconBookmarkFill",IconBookmarkListThin:"IconHorizline3VerticalStarLine",IconBookmarkListRegular:"IconHorizline3VerticalStarLine",IconBookmarkListFill:"IconHorizline3VerticalStarFill",IconCalendarThin:"IconCalendarLine",IconCalendarRegular:"IconCalendarLine",IconCalendarFill:"IconCalendarFill",IconCallThin:"IconPhoneLine",IconCallRegular:"IconPhoneLine",IconCallFill:"IconPhoneFill",IconCallDeclinedThin:"IconPhoneXmarkLine",IconCallDeclinedRegular:"IconPhoneXmarkLine",IconCallDeclinedFill:"IconPhoneXmarkFill",IconCameraThin:"IconCameraLine",IconCameraRegular:"IconCameraLine",IconCameraFill:"IconCameraFill",IconCarThin:"IconCarFrontsideLine",IconCarRegular:"IconCarFrontsideLine",IconCarFill:"IconCarFrontsideFill",IconCarAroundViewThin:"IconArrowClockwiseOvalLine",IconCarAroundViewRegular:"IconArrowClockwiseOvalLine",IconCarAroundViewFill:"IconArrowClockwiseOvalFill",IconCarBlindSpotThin:"IconCarRearUpsideWave2ReversedDownLeftLine",IconCarBlindSpotRegular:"IconCarRearUpsideWave2ReversedDownLeftLine",IconCarBlindSpotFill:"IconCarRearUpsideWave2ReversedDownLeftFill",IconCarCruiseControlThin:"IconSpeedometerLine",IconCarCruiseControlRegular:"IconSpeedometerLine",IconCarCruiseControlFill:"IconSpeedometerFill",IconCarEpbThin:"IconEpbLine",IconCarEpbRegular:"IconEpbLine",IconCarEpbFill:"IconEpbFill",IconCarHeatedSeatThin:"IconSeatLeftHeatwave2Line",IconCarHeatedSeatRegular:"IconSeatLeftHeatwave2Line",IconCarHeatedSeatFill:"IconSeatLeftHeatwave2Fill",IconCarHeatedSteeringWheelThin:"IconSteeringwheelHeatwave2Line",IconCarHeatedSteeringWheelRegular:"IconSteeringwheelHeatwave2Line",IconCarHeatedSteeringWheelFill:"IconSteeringwheelHeatwave2Fill",IconCarLdwsThin:"IconRoadlaneLine",IconCarLdwsRegular:"IconRoadlaneLine",IconCarLdwsFill:"IconRoadlaneFill",IconCarLeatherSeatThin:"IconSeatLeftLine",IconCarLeatherSeatRegular:"IconSeatLeftLine",IconCarLeatherSeatFill:"IconSeatLeftFill",IconCarNavigationThin:"IconCompassLine",IconCarNavigationRegular:"IconCompassLine",IconCarNavigationFill:"IconCompassFill",IconCarPowerTrunkThin:"IconCarRearTrunkOpenLeftsideLine",IconCarPowerTrunkRegular:"IconCarRearTrunkOpenLeftsideLine",IconCarPowerTrunkFill:"IconCarRearTrunkOpenLeftsideFill",IconCarRearCameraThin:"IconCarRearUpsideSectorDownLine",IconCarRearCameraRegular:"IconCarRearUpsideSectorDownLine",IconCarRearCameraFill:"IconCarRearUpsideSectorDownFill",IconCarRearSensorThin:"IconCarRearUpsideWave2ReversedDownLine",IconCarRearSensorRegular:"IconCarRearUpsideWave2ReversedDownLine",IconCarRearSensorFill:"IconCarRearUpsideWave2ReversedDownFill",IconCarSmartKeyThin:"IconSmartkeyLine",IconCarSmartKeyRegular:"IconSmartkeyLine",IconCarSmartKeyFill:"IconSmartkeyFill",IconCarVentilationSeatThin:"IconSeatLeftFanLine",IconCarVentilationSeatRegular:"IconSeatLeftFanLine",IconCarVentilationSeatFill:"IconSeatLeftFanFill",IconCartThin:"IconCartLine",IconCartRegular:"IconCartLine",IconCartFill:"IconCartFill",IconCertificationThin:"IconCrosshairLine",IconCertificationRegular:"IconCrosshairLine",IconCertificationFill:"IconCrosshairFill",IconChallengeThin:"IconFlagHillLine",IconChallengeRegular:"IconFlagHillLine",IconChallengeFill:"IconFlagHillFill",IconChartThin:"IconBarchartSquareLine",IconChartRegular:"IconBarchartSquareLine",IconChartFill:"IconBarchartSquareFill",IconChatBubbleCheckThin:"IconCheckmarkChatbubbleLeftLine",IconChatBubbleCheckRegular:"IconCheckmarkChatbubbleLeftLine",IconChatBubbleCheckFill:"IconCheckmarkChatbubbleLeftFill",IconChattingThin:"IconDot3HorizontalChatbubbleLeftLine",IconChattingRegular:"IconDot3HorizontalChatbubbleLeftLine",IconChattingFill:"IconDot3HorizontalChatbubbleLeftFill",IconChattingSendThin:"IconPaperplaneLine",IconChattingSendRegular:"IconPaperplaneLine",IconChattingSendFill:"IconPaperplaneFill",IconCheckThin:"IconCheckmarkLine",IconCheckRegular:"IconCheckmarkLine",IconCheckFill:"IconCheckmarkFill",IconCheckFlowerThin:"IconCheckmarkFlowerLine",IconCheckFlowerRegular:"IconCheckmarkFlowerLine",IconCheckFlowerFill:"IconCheckmarkFlowerFill",IconChevronLeftThin:"IconChevronLeftLine",IconChevronLeftRegular:"IconChevronLeftLine",IconChevronLeftFill:"IconChevronLeftFill",IconChevronRightThin:"IconChevronRightLine",IconChevronRightRegular:"IconChevronRightLine",IconChevronRightFill:"IconChevronRightFill",IconClickThin:"IconHandPointUpLine",IconClickRegular:"IconHandPointUpLine",IconClickFill:"IconHandPointUpFill",IconClockThin:"IconClockLine",IconClockRegular:"IconClockLine",IconClockFill:"IconClockFill",IconCloseThin:"IconXmarkLine",IconCloseRegular:"IconXmarkLine",IconCloseFill:"IconXmarkFill",IconCobuyingThin:null,IconCobuyingRegular:null,IconCobuyingFill:null,IconCommunityThin:"IconPostLine",IconCommunityRegular:"IconPostLine",IconCommunityFill:"IconPostFill",IconCondoThin:"IconBuilding2Line",IconCondoRegular:"IconBuilding2Line",IconCondoFill:"IconBuilding2Fill",IconConfirmationThin:"IconCheckmarkShieldLine",IconConfirmationRegular:"IconCheckmarkShieldLine",IconConfirmationFill:"IconCheckmarkShieldFill",IconConfirmationPayThin:"IconWonShieldLine",IconConfirmationPayRegular:"IconWonShieldLine",IconConfirmationPayFill:"IconWonShieldFill",IconConfirmationProfileThin:"IconPersonShieldLine",IconConfirmationProfileRegular:"IconPersonShieldLine",IconConfirmationProfileFill:"IconPersonShieldFill",IconContentsThin:"IconGridHeartLine",IconContentsRegular:"IconGridHeartLine",IconContentsFill:"IconGridHeartFill",IconConvertThin:"IconArrowRightArrowLeftLine",IconConvertRegular:"IconArrowRightArrowLeftLine",IconConvertFill:"IconArrowRightArrowLeftFill",IconCopyThin:"IconSquare2StackedLine",IconCopyRegular:"IconSquare2StackedLine",IconCopyFill:"IconSquare2StackedFill",IconCouponThin:"IconCouponLine",IconCouponRegular:"IconCouponLine",IconCouponFill:"IconCouponFill",IconCouponDownloadDoneThin:"IconCheckmarkHorizlineLine",IconCouponDownloadDoneRegular:"IconCheckmarkHorizlineLine",IconCouponDownloadDoneFill:"IconCheckmarkHorizlineFill",IconCouponUsedThin:"IconCheckmarkCouponLine",IconCouponUsedRegular:"IconCheckmarkCouponLine",IconCouponUsedFill:"IconCheckmarkCouponFill",IconDeleteKeyboardThin:"IconBackspacekeyLine",IconDeleteKeyboardRegular:"IconBackspacekeyLine",IconDeleteKeyboardFill:"IconBackspacekeyFill",IconDeliveryThin:null,IconDeliveryRegular:null,IconDeliveryFill:null,IconDirectionThin:"IconArrowRightAngledLine",IconDirectionRegular:"IconArrowRightAngledLine",IconDirectionFill:"IconArrowRightAngledFill",IconDownloadThin:"IconArrowDownHorizlineLine",IconDownloadRegular:"IconArrowDownHorizlineLine",IconDownloadFill:"IconArrowDownHorizlineFill",IconEditThin:"IconEraserHorizlineLine",IconEditRegular:"IconEraserHorizlineLine",IconEditFill:"IconEraserHorizlineFill",IconEmoticonThin:"IconFaceSmileCircleLine",IconEmoticonRegular:"IconFaceSmileCircleLine",IconEmoticonFill:"IconFaceSmileCircleFill",IconEmoticonBadThin:"IconFaceSadCircleLine",IconEmoticonBadRegular:"IconFaceSadCircleLine",IconEmoticonBadFill:"IconFaceSadCircleFill",IconExpandThin:"IconArrowUpRightArrowDownLeftLine",IconExpandRegular:"IconArrowUpRightArrowDownLeftLine",IconExpandFill:"IconArrowUpRightArrowDownLeftFill",IconExpandLessThin:"IconChevronUpLine",IconExpandLessRegular:"IconChevronUpLine",IconExpandLessFill:"IconChevronUpFill",IconExpandMoreThin:"IconChevronDownLine",IconExpandMoreRegular:"IconChevronDownLine",IconExpandMoreFill:"IconChevronDownFill",IconFileThin:"IconPaperclipLine",IconFileRegular:"IconPaperclipLine",IconFileFill:"IconPaperclipFill",IconFilter02Thin:"IconSlider2HorizontalLine",IconFilter02Regular:"IconSlider2HorizontalLine",IconFilter02Fill:"IconSlider2HorizontalFill",IconForwardThin:"IconArrowRightLine",IconForwardRegular:"IconArrowRightLine",IconForwardFill:"IconArrowRightFill",IconGenderThin:"IconMalesymbolFemalesymbolLine",IconGenderRegular:"IconMalesymbolFemalesymbolLine",IconGenderFill:"IconMalesymbolFemalesymbolFill",IconGlobalThin:"IconGlobeLine",IconGlobalRegular:"IconGlobeLine",IconGlobalFill:"IconGlobeFill",IconGpsThin:"IconCrosshairLine",IconGpsRegular:"IconCrosshairLine",IconGpsFill:"IconCrosshairFill",IconGpsEnableThin:"IconCrosshairQuestionmarkLine",IconGpsEnableRegular:"IconCrosshairQuestionmarkLine",IconGpsEnableFill:"IconCrosshairQuestionmarkFill",IconGpsEnable2Thin:"IconCrosshairQuestionmarkLine",IconGpsEnable2Regular:"IconCrosshairQuestionmarkLine",IconGpsEnable2Fill:"IconCrosshairQuestionmarkFill",IconGroupchatKingThin:"IconCrownLine",IconGroupchatKingRegular:"IconCrownLine",IconGroupchatKingFill:"IconCrownFill",IconHandleThin:"IconHorizline3VerticalTightLine",IconHandleRegular:"IconHorizline3VerticalTightLine",IconHandleFill:"IconHorizline3VerticalTightFill",IconHashtagThin:"IconHashLine",IconHashtagRegular:"IconHashLine",IconHashtagFill:"IconHashFill",IconHeadphoneThin:"IconHeadsetLine",IconHeadphoneRegular:"IconHeadsetLine",IconHeadphoneFill:"IconHeadsetFill",IconHeartThin:"IconHeartLine",IconHeartRegular:"IconHeartLine",IconHeartFill:"IconHeartFill",IconHelpThin:"IconQuestionmarkCircleLine",IconHelpRegular:"IconQuestionmarkCircleLine",IconHelpFill:"IconQuestionmarkCircleFill",IconHelpcenterThin:"IconHeadsetLine",IconHelpcenterRegular:"IconHeadsetLine",IconHelpcenterFill:"IconHeadsetFill",IconHelperThin:"IconHeadsetLine",IconHelperRegular:"IconHeadsetLine",IconHelperFill:"IconHeadsetFill",IconHomeThin:"IconHouseLine",IconHomeRegular:"IconHouseLine",IconHomeFill:"IconHouseFill",IconHouseThin:"IconWindow4HouseLine",IconHouseRegular:"IconWindow4HouseLine",IconHouseFill:"IconWindow4HouseFill",IconHousekeepingBookThin:"IconBookLine",IconHousekeepingBookRegular:"IconBookLine",IconHousekeepingBookFill:"IconBookFill",IconImportThin:"IconDocumentArrowLeftLine",IconImportRegular:"IconDocumentArrowLeftLine",IconImportFill:"IconDocumentArrowLeftFill",IconInfoThin:"IconILowercaseSerifCircleLine",IconInfoRegular:"IconILowercaseSerifCircleLine",IconInfoFill:"IconILowercaseSerifCircleFill",IconInterestThin:"IconHorizline3VerticalStarLine",IconInterestRegular:"IconHorizline3VerticalStarLine",IconInterestFill:"IconHorizline3VerticalStarFill",IconInterestListThin:"IconStarLine",IconInterestListRegular:"IconStarLine",IconInterestListFill:"IconStarFill",IconInviteThin:"IconEnvelopeLine",IconInviteRegular:"IconEnvelopeLine",IconInviteFill:"IconEnvelopeFill",IconInviteFriendThin:"IconPersonPlusLine",IconInviteFriendRegular:"IconPersonPlusLine",IconInviteFriendFill:"IconPersonPlusFill",IconIosShareThin:"IconArrowUpBracketDownLine",IconIosShareRegular:"IconArrowUpBracketDownLine",IconIosShareFill:"IconArrowUpBracketDownFill",IconJobsThin:"IconPersonMagnifyingglassLine",IconJobsRegular:"IconPersonMagnifyingglassLine",IconJobsFill:"IconPersonMagnifyingglassFill",IconKeyboardHidingThin:"IconKeyboardChevronDownLine",IconKeyboardHidingRegular:"IconKeyboardChevronDownLine",IconKeyboardHidingFill:"IconKeyboardChevronDownFill",IconKeywordThin:"IconTagLine",IconKeywordRegular:"IconTagLine",IconKeywordFill:"IconTagFill",IconLaptopThin:"IconLaptopLine",IconLaptopRegular:"IconLaptopLine",IconLaptopFill:"IconLaptopFill",IconLeafThin:"IconLeafLine",IconLeafRegular:"IconLeafLine",IconLeafFill:"IconLeafFill",IconListThin:"IconDothorizline3VerticalLine",IconListRegular:"IconDothorizline3VerticalLine",IconListFill:"IconDothorizline3VerticalFill",IconListCardThin:"IconHorizrectangleHorizline2VerticalLine",IconListCardRegular:"IconHorizrectangleHorizline2VerticalLine",IconListCardFill:"IconHorizrectangleHorizline2VerticalFill",IconListCheckThin:"IconDocumentCheckmarkLine",IconListCheckRegular:"IconDocumentCheckmarkLine",IconListCheckFill:"IconDocumentCheckmarkFill",IconListSelectThin:"IconHorizline3VerticalCheckmarkLine",IconListSelectRegular:"IconHorizline3VerticalCheckmarkLine",IconListSelectFill:"IconHorizline3VerticalCheckmarkFill",IconListThumbnailThin:"IconSquareline2VerticalLine",IconListThumbnailRegular:"IconSquareline2VerticalLine",IconListThumbnailFill:"IconSquareline2VerticalFill",IconLocationThin:"IconLocationpinLine",IconLocationRegular:"IconLocationpinLine",IconLocationFill:"IconLocationpinFill",IconLockThin:"IconLockLine",IconLockRegular:"IconLockLine",IconLockFill:"IconLockFill",IconLoudspeakerThin:"IconMegaphoneLine",IconLoudspeakerRegular:"IconMegaphoneLine",IconLoudspeakerFill:"IconMegaphoneFill",IconMapThin:"IconMapLocationpinLine",IconMapRegular:"IconMapLocationpinLine",IconMapFill:"IconMapLocationpinFill",IconMarketThin:"IconStoreLine",IconMarketRegular:"IconStoreLine",IconMarketFill:"IconStoreFill",IconMarketCheckThin:"IconStoreCheckmarkLine",IconMarketCheckRegular:"IconStoreCheckmarkLine",IconMarketCheckFill:"IconStoreCheckmarkFill",IconMarketWriteThin:"IconStorePenLine",IconMarketWriteRegular:"IconStorePenLine",IconMarketWriteFill:"IconStorePenFill",IconMentionThin:"IconAtLine",IconMentionRegular:"IconAtLine",IconMentionFill:"IconAtFill",IconMenuThin:"IconHorizline3VerticalLine",IconMenuRegular:"IconHorizline3VerticalLine",IconMenuFill:"IconHorizline3VerticalFill",IconMicThin:"IconMicrophoneLine",IconMicRegular:"IconMicrophoneLine",IconMicFill:"IconMicrophoneFill",IconMicOffThin:"IconMicrophoneSlashLine",IconMicOffRegular:"IconMicrophoneSlashLine",IconMicOffFill:"IconMicrophoneSlashFill",IconMissionThin:"IconBookOpenLine",IconMissionRegular:"IconBookOpenLine",IconMissionFill:"IconBookOpenFill",IconMobileThin:"IconMobileLine",IconMobileRegular:"IconMobileLine",IconMobileFill:"IconMobileFill",IconMoneySendThin:"IconWonCircleArrowRightLine",IconMoneySendRegular:"IconWonCircleArrowRightLine",IconMoneySendFill:"IconWonCircleArrowRightFill",IconMoneyWonThin:"IconWonCircleLine",IconMoneyWonRegular:"IconWonCircleLine",IconMoneyWonFill:"IconWonCircleFill",IconMoonThin:"IconMoonLine",IconMoonRegular:"IconMoonLine",IconMoonFill:"IconMoonFill",IconMoreHorizThin:"IconDot3HorizontalLine",IconMoreHorizRegular:"IconDot3HorizontalLine",IconMoreHorizFill:"IconDot3HorizontalFill",IconMoreVertThin:"IconDot3VerticalLine",IconMoreVertRegular:"IconDot3VerticalLine",IconMoreVertFill:"IconDot3VerticalFill",IconMyThin:"IconPersonLine",IconMyRegular:"IconPersonLine",IconMyFill:"IconPersonFill",IconMyProfileThin:"IconPersonCircleLine",IconMyProfileRegular:"IconPersonCircleLine",IconMyProfileFill:"IconPersonCircleFill",IconNearMeThin:"IconLocationpinLine",IconNearMeRegular:"IconLocationpinLine",IconNearMeFill:"IconLocationpinFill",IconNewtopicThin:"IconNUppercaseCircleLine",IconNewtopicRegular:"IconNUppercaseCircleLine",IconNewtopicFill:"IconNUppercaseCircleFill",IconNoteThin:"IconDocumentLine",IconNoteRegular:"IconDocumentLine",IconNoteFill:"IconDocumentFill",IconNotificationThin:"IconBellLine",IconNotificationRegular:"IconBellLine",IconNotificationFill:"IconBellFill",IconNotificationFallThin:"IconArrowDownLine",IconNotificationFallRegular:"IconArrowDownLine",IconNotificationFallFill:"IconArrowDownFill",IconNotificationOffThin:"IconBellSlashLine",IconNotificationOffRegular:"IconBellSlashLine",IconNotificationOffFill:"IconBellSlashFill",IconOrderThin:"IconCheckmarkClipboardLine",IconOrderRegular:"IconCheckmarkClipboardLine",IconOrderFill:"IconCheckmarkClipboardFill",IconPauseThin:"IconVertrectangle2HorizontalLine",IconPauseRegular:"IconVertrectangle2HorizontalLine",IconPauseFill:"IconVertrectangle2HorizontalFill",IconPaymentThin:"IconCardLine",IconPaymentRegular:"IconCardLine",IconPaymentFill:"IconCardFill",IconPercentThin:"IconPercentLine",IconPercentRegular:"IconPercentLine",IconPercentFill:"IconPercentFill",IconPhotoThin:"IconPictureLine",IconPhotoRegular:"IconPictureLine",IconPhotoFill:"IconPictureFill",IconPhotoEditThin:"IconWandLine",IconPhotoEditRegular:"IconWandLine",IconPhotoEditFill:"IconWandFill",IconPhotoEditCropThin:"IconCropmarkLine",IconPhotoEditCropRegular:"IconCropmarkLine",IconPhotoEditCropFill:"IconCropmarkFill",IconPhotoEditDrawThin:"IconScribbleLine",IconPhotoEditDrawRegular:"IconScribbleLine",IconPhotoEditDrawFill:"IconScribbleFill",IconPhotoEditRotateThin:"IconArrow2ClockwiseCircularLine",IconPhotoEditRotateRegular:"IconArrow2ClockwiseCircularLine",IconPhotoEditRotateFill:"IconArrow2ClockwiseCircularFill",IconPhotoSeveralThin:"IconPicture2StackedLine",IconPhotoSeveralRegular:"IconPicture2StackedLine",IconPhotoSeveralFill:"IconPicture2StackedFill",IconPlayThin:"IconTriangleRightLine",IconPlayRegular:"IconTriangleRightLine",IconPlayFill:"IconTriangleRightFill",IconPollThin:"IconBarchartSquareLine",IconPollRegular:"IconBarchartSquareLine",IconPollFill:"IconBarchartSquareFill",IconPriceWonThin:"IconWonLine",IconPriceWonRegular:"IconWonLine",IconPriceWonFill:"IconWonFill",IconProductThin:"IconShoppingbagLine",IconProductRegular:"IconShoppingbagLine",IconProductFill:"IconShoppingbagFill",IconProfileThin:"IconPersonLine",IconProfileRegular:"IconPersonLine",IconProfileFill:"IconPersonFill",IconProfileBadgeThin:"IconCheckmarkBadgeLine",IconProfileBadgeRegular:"IconCheckmarkBadgeLine",IconProfileBadgeFill:"IconCheckmarkBadgeFill",IconProhibitionThin:"IconSlashCircleLine",IconProhibitionRegular:"IconSlashCircleLine",IconProhibitionFill:"IconSlashCircleFill",IconPushpinThin:"IconPushpinLine",IconPushpinRegular:"IconPushpinLine",IconPushpinFill:"IconPushpinFill",IconQuestionCheckThin:"IconQuestionmarkSquareLine",IconQuestionCheckRegular:"IconQuestionmarkSquareLine",IconQuestionCheckFill:"IconQuestionmarkSquareFill",IconRedoThin:"IconArrowUturnRightLine",IconRedoRegular:"IconArrowUturnRightLine",IconRedoFill:"IconArrowUturnRightFill",IconRefundThin:"IconWonArrowClockwiseCircularLine",IconRefundRegular:"IconWonArrowClockwiseCircularLine",IconRefundFill:"IconWonArrowClockwiseCircularFill",IconRemoveCircleThin:"IconXmarkCircleLine",IconRemoveCircleRegular:"IconXmarkCircleLine",IconRemoveCircleFill:"IconXmarkCircleFill",IconReplyThin:"IconHorizline2VerticalChatbubbleRightLine",IconReplyRegular:"IconHorizline2VerticalChatbubbleRightLine",IconReplyFill:"IconHorizline2VerticalChatbubbleRightFill",IconReplyMissionThin:"IconHorizline2VerticalChatbubbleRightLine",IconReplyMissionRegular:"IconHorizline2VerticalChatbubbleRightLine",IconReplyMissionFill:"IconHorizline2VerticalChatbubbleRightFill",IconReplyReThin:"IconCornerDownLeftLine",IconReplyReRegular:"IconCornerDownLeftLine",IconReplyReFill:"IconCornerDownLeftFill",IconReportThin:"IconFlagLine",IconReportRegular:"IconFlagLine",IconReportFill:"IconFlagFill",IconReservationThin:"IconCheckmarkCalendarLine",IconReservationRegular:"IconCheckmarkCalendarLine",IconReservationFill:"IconCheckmarkCalendarFill",IconRestaurantThin:"IconForkSpoonLine",IconRestaurantRegular:"IconForkSpoonLine",IconRestaurantFill:"IconForkSpoonFill",IconRetryThin:"IconArrowClockwiseCircularLine",IconRetryRegular:"IconArrowClockwiseCircularLine",IconRetryFill:"IconArrowClockwiseCircularFill",IconReviewStarThin:"IconStarLine",IconReviewStarRegular:"IconStarLine",IconReviewStarFill:"IconStarFill",IconScannerThin:"IconHorizlineViewfinderLine",IconScannerRegular:"IconHorizlineViewfinderLine",IconScannerFill:"IconHorizlineViewfinderFill",IconSearchThin:"IconMagnifyingglassLine",IconSearchRegular:"IconMagnifyingglassLine",IconSearchFill:"IconMagnifyingglassFill",IconSearchDocThin:"IconDocumentMagnifyingglassLine",IconSearchDocRegular:"IconDocumentMagnifyingglassLine",IconSearchDocFill:"IconDocumentMagnifyingglassFill",IconSellThin:"IconPlusSquareLine",IconSellRegular:"IconPlusSquareLine",IconSellFill:"IconPlusSquareFill",IconSettingThin:"IconGearLine",IconSettingRegular:"IconGearLine",IconSettingFill:"IconGearFill",IconSignoutThin:"IconBracketLeftArrowRightLine",IconSignoutRegular:"IconBracketLeftArrowRightLine",IconSignoutFill:"IconBracketLeftArrowRightFill",IconSortThin:"IconArrowUpArrowDownLine",IconSortRegular:"IconArrowUpArrowDownLine",IconSortFill:"IconArrowUpArrowDownFill",IconStoryThin:"IconTriangleRightChatbubbleLeftLine",IconStoryRegular:"IconTriangleRightChatbubbleLeftLine",IconStoryFill:"IconTriangleRightChatbubbleLeftFill",IconStoryArticleThin:"IconDocumentPenLine",IconStoryArticleRegular:"IconDocumentPenLine",IconStoryArticleFill:"IconDocumentPenFill",IconSubtractCircleThin:"IconMinusCircleLine",IconSubtractCircleRegular:"IconMinusCircleLine",IconSubtractCircleFill:"IconMinusCircleFill",IconSubtractionThin:"IconMinusLine",IconSubtractionRegular:"IconMinusLine",IconSubtractionFill:"IconMinusFill",IconSuggestThin:null,IconSuggestRegular:null,IconSuggestFill:null,IconSunThin:"IconSunLine",IconSunRegular:"IconSunLine",IconSunFill:"IconSunFill",IconTalkingdownThin:"IconQuotationmark2RightLine",IconTalkingdownRegular:"IconQuotationmark2RightLine",IconTalkingdownFill:"IconQuotationmark2RightFill",IconTalkingupThin:"IconQuotationmark2LeftLine",IconTalkingupRegular:"IconQuotationmark2LeftLine",IconTalkingupFill:"IconQuotationmark2LeftFill",IconTextThin:"IconTUppercaseSerifLine",IconTextRegular:"IconTUppercaseSerifLine",IconTextFill:"IconTUppercaseSerifFill",IconThumbDownThin:"IconThumbDownLine",IconThumbDownRegular:"IconThumbDownLine",IconThumbDownFill:"IconThumbDownFill",IconThumbUpThin:"IconThumbUpLine",IconThumbUpRegular:"IconThumbUpLine",IconThumbUpFill:"IconThumbUpFill",IconToolboxThin:"IconToolboxLine",IconToolboxRegular:"IconToolboxLine",IconToolboxFill:"IconToolboxFill",IconTranslateThin:"IconTranslationLine",IconTranslateRegular:"IconTranslationLine",IconTranslateFill:"IconTranslationFill",IconTrashThin:"IconTrashcanLine",IconTrashRegular:"IconTrashcanLine",IconTrashFill:"IconTrashcanFill",IconUndoThin:"IconArrowUturnLeftLine",IconUndoRegular:"IconArrowUturnLeftLine",IconUndoFill:"IconArrowUturnLeftFill",IconUserGroupThin:"IconPerson2Line",IconUserGroupRegular:"IconPerson2Line",IconUserGroupFill:"IconPerson2Fill",IconVideoThin:"IconCamcorderLine",IconVideoRegular:"IconCamcorderLine",IconVideoFill:"IconCamcorderFill",IconViewCountThin:"IconEyeLine",IconViewCountRegular:"IconEyeLine",IconViewCountFill:"IconEyeFill",IconViewCountOffThin:"IconEyeSlashLine",IconViewCountOffRegular:"IconEyeSlashLine",IconViewCountOffFill:"IconEyeSlashFill",IconVolumeOffThin:"IconSpeakerSlashLine",IconVolumeOffRegular:"IconSpeakerSlashLine",IconVolumeOffFill:"IconSpeakerSlashFill",IconVolumeOnThin:"IconSpeakerWave2Line",IconVolumeOnRegular:"IconSpeakerWave2Line",IconVolumeOnFill:"IconSpeakerWave2Fill",IconVoteThin:"IconCheckmarkBallotboxLine",IconVoteRegular:"IconCheckmarkBallotboxLine",IconVoteFill:"IconCheckmarkBallotboxFill",IconVoucherThin:"IconGiftLine",IconVoucherRegular:"IconGiftLine",IconVoucherFill:"IconGiftFill",IconWalkThin:"IconFigureWalkLine",IconWalkRegular:"IconFigureWalkLine",IconWalkFill:"IconFigureWalkFill",IconWarningThin:"IconExclamationmarkCircleLine",IconWarningRegular:"IconExclamationmarkCircleLine",IconWarningFill:"IconExclamationmarkCircleFill",IconWriteThin:"IconPenHorizlineLine",IconWriteRegular:"IconPenHorizlineLine",IconWriteFill:"IconPenHorizlineFill",IconWriteFrequentUseThin:"IconDocumentPlusLine",IconWriteFrequentUseRegular:"IconDocumentPlusLine",IconWriteFrequentUseFill:"IconDocumentPlusFill",IconWriteStoryThin:null,IconWriteStoryRegular:null,IconWriteStoryFill:null};var D={source:[{startsWith:"@seed-design/icon",replaceWith:"@daangn/react-icon"},{startsWith:"@seed-design/react-icon",replaceWith:"@daangn/react-icon"}],identifier:b},A=(o,i,{match:c=D})=>{let e=H(w);e.debug(`${o.path}: \uD655\uC778 \uC2DC\uC791`);let r=i.jscodeshift,n=r(o.source),a=()=>n.find(r.Program).get("body",0).node,C=a(),L=n.find(r.ImportDeclaration,{source:{value:h=>typeof h!="string"?!1:c.source.some(({startsWith:p})=>h.startsWith(p))}});if(L.length===0)return e.debug(`${o.path}: \uC774 \uD30C\uC77C\uC5D0\uB294 import\uBB38 \uC5C6\uC74C`),o.source;e.debug(`${o.path}: import\uBB38 ${L.length}\uAC1C \uBC1C\uACAC`),f({importDeclarations:L,match:c,logger:e,filePath:o.path}),e.debug(`${o.path}: import\uBB38 \uBCC0\uD658 \uC644\uB8CC`),e.debug(`${o.path}: identifier \uBCC0\uD658 \uC2DC\uC791`);let s=n.find(r.Identifier,{name:h=>Object.keys(c.identifier).includes(h)});e.debug(`${o.path}: identifier ${s.length}\uAC1C \uBC1C\uACAC`),S({identifiers:s,identifierMatch:c.identifier,logger:e,filePath:o.path}),e.debug(`${o.path}: identifier \uBCC0\uD658 \uC644\uB8CC`);let R=a();return C!==R&&(R.comments=C.comments),e.debug(`${o.path}: \uD655\uC778 \uC644\uB8CC`),n.toSource()},G=A;export{G as default};
|