@seed-design/figma 1.3.5 → 1.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/codegen/index.cjs +65 -1
- package/lib/codegen/index.js +65 -1
- package/lib/codegen/targets/react/index.cjs +275 -166
- package/lib/codegen/targets/react/index.js +275 -166
- package/lib/index.cjs +93 -1
- package/lib/index.js +93 -1
- package/package.json +3 -3
- package/src/codegen/component-properties.ts +4 -0
- package/src/codegen/targets/react/component/handlers/avatar.ts +5 -5
- package/src/codegen/targets/react/component/handlers/content-placeholder.ts +20 -0
- package/src/codegen/targets/react/component/handlers/image-frame.ts +14 -1
- package/src/codegen/targets/react/component/handlers/index.ts +1 -0
- package/src/entities/data/__generated__/component-sets/index.d.ts +66 -2
- package/src/entities/data/__generated__/component-sets/index.mjs +65 -1
- package/src/entities/data/__generated__/components/index.d.ts +5 -5
- package/src/entities/data/__generated__/components/index.mjs +5 -5
- package/src/entities/data/__generated__/icons/index.mjs +28 -0
|
@@ -3209,7 +3209,7 @@ function handleSizeProp(size) {
|
|
|
3209
3209
|
}
|
|
3210
3210
|
}
|
|
3211
3211
|
|
|
3212
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
3212
|
+
const { createLocalSnippetElement: createLocalSnippetElement$19 } = createLocalSnippetHelper("action-button");
|
|
3213
3213
|
const createActionButtonHandler$1 = (ctx)=>defineComponentHandler(actionButton.key, ({ componentProperties: props })=>{
|
|
3214
3214
|
const states = props.State.value.split("-");
|
|
3215
3215
|
const { layout, children } = tsPattern.match(props.Layout.value).with("Icon Only", ()=>({
|
|
@@ -3250,7 +3250,7 @@ const createActionButtonHandler$1 = (ctx)=>defineComponentHandler(actionButton.k
|
|
|
3250
3250
|
variant: changeCase.camelCase(props.Variant.value),
|
|
3251
3251
|
layout
|
|
3252
3252
|
};
|
|
3253
|
-
return createLocalSnippetElement$
|
|
3253
|
+
return createLocalSnippetElement$19("ActionButton", commonProps, children);
|
|
3254
3254
|
});
|
|
3255
3255
|
const ACTION_BUTTON_GHOST_BUTTON_KEY = "ea69291fb4d76217419f3d9613ae16aadafb56a5";
|
|
3256
3256
|
const createActionButtonGhostHandler$1 = (ctx)=>defineComponentHandler(ACTION_BUTTON_GHOST_BUTTON_KEY, (node)=>{
|
|
@@ -3308,10 +3308,10 @@ const createActionButtonGhostHandler$1 = (ctx)=>defineComponentHandler(ACTION_BU
|
|
|
3308
3308
|
bleedY: "asPadding"
|
|
3309
3309
|
}
|
|
3310
3310
|
};
|
|
3311
|
-
return createLocalSnippetElement$
|
|
3311
|
+
return createLocalSnippetElement$19("ActionButton", commonProps, children);
|
|
3312
3312
|
});
|
|
3313
3313
|
|
|
3314
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
3314
|
+
const { createLocalSnippetElement: createLocalSnippetElement$18 } = createLocalSnippetHelper("alert-dialog");
|
|
3315
3315
|
const { createLocalSnippetElement: createLocalSnippetElementTrigger$7 } = createLocalSnippetHelper("action-button");
|
|
3316
3316
|
const ALERT_DIALOG_FOOTER_KEY = "00b1b131d67edf2875a7a1df8dfa88098d7c04be";
|
|
3317
3317
|
const createAlertDialogHandler$1 = (ctx)=>{
|
|
@@ -3319,18 +3319,18 @@ const createAlertDialogHandler$1 = (ctx)=>{
|
|
|
3319
3319
|
const actionButtonGhostHandler = createActionButtonGhostHandler$1(ctx);
|
|
3320
3320
|
return defineComponentHandler(alertDialog.key, (node, traverse)=>{
|
|
3321
3321
|
const props = node.componentProperties;
|
|
3322
|
-
const alertDialogHeader = createLocalSnippetElement$
|
|
3322
|
+
const alertDialogHeader = createLocalSnippetElement$18("AlertDialogHeader", undefined, [
|
|
3323
3323
|
...props["Show Title#20361:14"].value ? [
|
|
3324
|
-
createLocalSnippetElement$
|
|
3324
|
+
createLocalSnippetElement$18("AlertDialogTitle", undefined, props["Title Text#20361:0"].value)
|
|
3325
3325
|
] : [],
|
|
3326
|
-
createLocalSnippetElement$
|
|
3326
|
+
createLocalSnippetElement$18("AlertDialogDescription", undefined, props["Description Text#20361:7"].value)
|
|
3327
3327
|
]);
|
|
3328
3328
|
const footerNodes = findAllInstances({
|
|
3329
3329
|
node,
|
|
3330
3330
|
key: ALERT_DIALOG_FOOTER_KEY
|
|
3331
3331
|
});
|
|
3332
3332
|
if (footerNodes.length === 0 || footerNodes.length > 1) {
|
|
3333
|
-
return createLocalSnippetElement$
|
|
3333
|
+
return createLocalSnippetElement$18("AlertDialog", undefined, alertDialogHeader, {
|
|
3334
3334
|
comment: "Footer 영역을 확인해주세요."
|
|
3335
3335
|
});
|
|
3336
3336
|
}
|
|
@@ -3361,14 +3361,14 @@ const createAlertDialogHandler$1 = (ctx)=>{
|
|
|
3361
3361
|
];
|
|
3362
3362
|
return createSeedReactElement("VStack", footerNodeProps, buttons);
|
|
3363
3363
|
}).exhaustive();
|
|
3364
|
-
const alertDialogFooter = createLocalSnippetElement$
|
|
3365
|
-
return createLocalSnippetElement$
|
|
3364
|
+
const alertDialogFooter = createLocalSnippetElement$18("AlertDialogFooter", undefined, alertDialogFooterChildren);
|
|
3365
|
+
return createLocalSnippetElement$18("AlertDialogRoot", {
|
|
3366
3366
|
open: true
|
|
3367
3367
|
}, [
|
|
3368
|
-
createLocalSnippetElement$
|
|
3368
|
+
createLocalSnippetElement$18("AlertDialogTrigger", {
|
|
3369
3369
|
asChild: true
|
|
3370
3370
|
}, createLocalSnippetElementTrigger$7("ActionButton", {}, "AlertDialog 열기")),
|
|
3371
|
-
createLocalSnippetElement$
|
|
3371
|
+
createLocalSnippetElement$18("AlertDialogContent", undefined, [
|
|
3372
3372
|
alertDialogHeader,
|
|
3373
3373
|
alertDialogFooter
|
|
3374
3374
|
])
|
|
@@ -3376,7 +3376,7 @@ const createAlertDialogHandler$1 = (ctx)=>{
|
|
|
3376
3376
|
});
|
|
3377
3377
|
};
|
|
3378
3378
|
|
|
3379
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
3379
|
+
const { createLocalSnippetElement: createLocalSnippetElement$17 } = createLocalSnippetHelper("app-bar");
|
|
3380
3380
|
const APP_BAR_TITLE_KEY = "d2cc4f615b2b44098be89448ad1c573f94af0355";
|
|
3381
3381
|
const APP_BAR_LEFT_ICON_BUTTON_KEY = "5a953f7bafc0df744777517458396e9f6c915825";
|
|
3382
3382
|
const APP_BAR_RIGHT_ICON_BUTTON_KEY = "c08db793288077e53bd45ef11aa419a835e88fce";
|
|
@@ -3393,12 +3393,12 @@ const createAppBarMainHandler$1 = (_ctx)=>{
|
|
|
3393
3393
|
subtitle: undefined
|
|
3394
3394
|
})).exhaustive();
|
|
3395
3395
|
if (title) {
|
|
3396
|
-
return createLocalSnippetElement$
|
|
3396
|
+
return createLocalSnippetElement$17("AppBarMain", {
|
|
3397
3397
|
title,
|
|
3398
3398
|
subtitle
|
|
3399
3399
|
});
|
|
3400
3400
|
}
|
|
3401
|
-
return createLocalSnippetElement$
|
|
3401
|
+
return createLocalSnippetElement$17("AppBarMain", undefined, undefined, {
|
|
3402
3402
|
comment: "AppBarMain 내부를 직접 작성해주세요."
|
|
3403
3403
|
});
|
|
3404
3404
|
});
|
|
@@ -3425,33 +3425,33 @@ const createAppBarHandler$1 = (ctx)=>{
|
|
|
3425
3425
|
return appBarMainHandler.transform(mainNode, traverse);
|
|
3426
3426
|
})();
|
|
3427
3427
|
const leftChildren = tsPattern.match(props.Left.value).with("None", ()=>undefined).with("Back", ()=>[
|
|
3428
|
-
createLocalSnippetElement$
|
|
3428
|
+
createLocalSnippetElement$17("AppBarBackButton")
|
|
3429
3429
|
]).with("Close", ()=>[
|
|
3430
|
-
createLocalSnippetElement$
|
|
3430
|
+
createLocalSnippetElement$17("AppBarCloseButton")
|
|
3431
3431
|
]).with("Custom", ()=>{
|
|
3432
3432
|
const buttons = findAllInstances({
|
|
3433
3433
|
node,
|
|
3434
3434
|
key: APP_BAR_LEFT_ICON_BUTTON_KEY
|
|
3435
3435
|
});
|
|
3436
3436
|
if (buttons.length > 0) {
|
|
3437
|
-
return buttons.map((button)=>createLocalSnippetElement$
|
|
3437
|
+
return buttons.map((button)=>createLocalSnippetElement$17("AppBarIconButton", undefined, ctx.iconHandler.transform(button.componentProperties["Icon#33580:0"]), {
|
|
3438
3438
|
comment: "AppBarIconButton에 aria-label 속성을 추가해주세요."
|
|
3439
3439
|
}));
|
|
3440
3440
|
}
|
|
3441
3441
|
return undefined;
|
|
3442
3442
|
}).exhaustive();
|
|
3443
|
-
const left = leftChildren && leftChildren.length > 0 ? createLocalSnippetElement$
|
|
3443
|
+
const left = leftChildren && leftChildren.length > 0 ? createLocalSnippetElement$17("AppBarLeft", {}, leftChildren) : undefined;
|
|
3444
3444
|
const rightChildren = tsPattern.match(props.Right.value).with("None", ()=>undefined).with("1 Icon Button", "2 Icon Button", "3 Icon Button", ()=>{
|
|
3445
3445
|
const buttons = findAllInstances({
|
|
3446
3446
|
node,
|
|
3447
3447
|
key: APP_BAR_RIGHT_ICON_BUTTON_KEY
|
|
3448
3448
|
});
|
|
3449
|
-
return buttons.map((button)=>createLocalSnippetElement$
|
|
3449
|
+
return buttons.map((button)=>createLocalSnippetElement$17("AppBarIconButton", undefined, ctx.iconHandler.transform(button.componentProperties["Icon#6406:3"]), {
|
|
3450
3450
|
comment: "AppBarIconButton에 aria-label 속성을 추가해주세요."
|
|
3451
3451
|
}));
|
|
3452
3452
|
}).with("Text Button", ()=>undefined).exhaustive();
|
|
3453
|
-
const right = rightChildren && rightChildren.length > 0 ? createLocalSnippetElement$
|
|
3454
|
-
return createLocalSnippetElement$
|
|
3453
|
+
const right = rightChildren && rightChildren.length > 0 ? createLocalSnippetElement$17("AppBarRight", {}, rightChildren) : undefined;
|
|
3454
|
+
return createLocalSnippetElement$17("AppBar", {
|
|
3455
3455
|
theme,
|
|
3456
3456
|
tone
|
|
3457
3457
|
}, [
|
|
@@ -3465,15 +3465,15 @@ const createAppBarHandler$1 = (ctx)=>{
|
|
|
3465
3465
|
};
|
|
3466
3466
|
|
|
3467
3467
|
const IDENTITY_PLACEHOLDER_KEY = "b3563b6f16ba4cfe4240c9b33eef7edad4c304eb";
|
|
3468
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
3468
|
+
const { createLocalSnippetElement: createLocalSnippetElement$16 } = createLocalSnippetHelper("identity-placeholder");
|
|
3469
3469
|
const createIdentityPlaceholderHandler$1 = (_ctx)=>defineComponentHandler(IDENTITY_PLACEHOLDER_KEY, ({ componentProperties: props })=>{
|
|
3470
3470
|
const commonProps = {
|
|
3471
3471
|
identity: changeCase.camelCase(props.Identity.value)
|
|
3472
3472
|
};
|
|
3473
|
-
return createLocalSnippetElement$
|
|
3473
|
+
return createLocalSnippetElement$16("IdentityPlaceholder", commonProps);
|
|
3474
3474
|
});
|
|
3475
3475
|
|
|
3476
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
3476
|
+
const { createLocalSnippetElement: createLocalSnippetElement$15 } = createLocalSnippetHelper("avatar");
|
|
3477
3477
|
const createAvatarHandler$1 = (ctx)=>{
|
|
3478
3478
|
const identityPlaceholderHandler = createIdentityPlaceholderHandler$1();
|
|
3479
3479
|
return defineComponentHandler(avatar.key, (node, traverse)=>{
|
|
@@ -3496,7 +3496,7 @@ const createAvatarHandler$1 = (ctx)=>{
|
|
|
3496
3496
|
},
|
|
3497
3497
|
size: props.Size.value
|
|
3498
3498
|
};
|
|
3499
|
-
return createLocalSnippetElement$
|
|
3499
|
+
return createLocalSnippetElement$15("Avatar", commonProps, props["Badge"].value === "None" ? undefined : createLocalSnippetElement$15("AvatarBadge", {
|
|
3500
3500
|
asChild: true
|
|
3501
3501
|
}, createElement("img", {
|
|
3502
3502
|
src: "https://placehold.co/20x20"
|
|
@@ -3508,7 +3508,7 @@ const createAvatarHandler$1 = (ctx)=>{
|
|
|
3508
3508
|
});
|
|
3509
3509
|
};
|
|
3510
3510
|
|
|
3511
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
3511
|
+
const { createLocalSnippetElement: createLocalSnippetElement$14 } = createLocalSnippetHelper("avatar");
|
|
3512
3512
|
const createAvatarStackHandler$1 = (ctx)=>{
|
|
3513
3513
|
const avatarHandler = createAvatarHandler$1();
|
|
3514
3514
|
return defineComponentHandler(avatarStack.key, (node, traverse)=>{
|
|
@@ -3521,7 +3521,7 @@ const createAvatarStackHandler$1 = (ctx)=>{
|
|
|
3521
3521
|
size: props.Size.value
|
|
3522
3522
|
};
|
|
3523
3523
|
const avatarStackChildren = avatarNodes.map((avatarNode)=>avatarHandler.transform(avatarNode, traverse));
|
|
3524
|
-
return createLocalSnippetElement$
|
|
3524
|
+
return createLocalSnippetElement$14("AvatarStack", commonProps, avatarStackChildren);
|
|
3525
3525
|
});
|
|
3526
3526
|
};
|
|
3527
3527
|
|
|
@@ -3534,7 +3534,7 @@ const createBadgeHandler$1 = (_ctx)=>defineComponentHandler(badge.key, ({ compon
|
|
|
3534
3534
|
return createSeedReactElement("Badge", commonProps, props["Label#1584:0"].value);
|
|
3535
3535
|
});
|
|
3536
3536
|
|
|
3537
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
3537
|
+
const { createLocalSnippetElement: createLocalSnippetElement$13 } = createLocalSnippetHelper("bottom-sheet");
|
|
3538
3538
|
const { createLocalSnippetElement: createLocalSnippetElementTrigger$6 } = createLocalSnippetHelper("action-button");
|
|
3539
3539
|
// TODO: Bottom Action Bar (WIP) handler의 키. 해당 컴포넌트(템플릿) 핸들러 작성 시 handler.transform()으로 대체
|
|
3540
3540
|
const BOTTOM_SHEET_FOOTER_KEY = "de6c65d34cc4a01c18c9a7c0ded34635170ca11f";
|
|
@@ -3554,32 +3554,32 @@ const createBottomSheetHandler$1 = (_ctx)=>defineComponentHandler(bottomSheet.ke
|
|
|
3554
3554
|
node,
|
|
3555
3555
|
key: BOTTOM_SHEET_BODY_KEY
|
|
3556
3556
|
});
|
|
3557
|
-
const bottomSheetBody = bodyNodes.length === 1 ? createLocalSnippetElement$
|
|
3557
|
+
const bottomSheetBody = bodyNodes.length === 1 ? createLocalSnippetElement$13("BottomSheetBody", {}, bodyNodes[0].children.map(traverse)) : createLocalSnippetElement$13("BottomSheetBody", {}, createElement("div", undefined, "No content available"));
|
|
3558
3558
|
const footerNodes = findAllInstances({
|
|
3559
3559
|
node,
|
|
3560
3560
|
key: BOTTOM_SHEET_FOOTER_KEY
|
|
3561
3561
|
});
|
|
3562
|
-
const bottomSheetFooter = props["Show Footer#25162:14"].value && footerNodes.length === 1 ? createLocalSnippetElement$
|
|
3563
|
-
return createLocalSnippetElement$
|
|
3562
|
+
const bottomSheetFooter = props["Show Footer#25162:14"].value && footerNodes.length === 1 ? createLocalSnippetElement$13("BottomSheetFooter", {}, footerNodes[0].children.map(traverse)) : undefined;
|
|
3563
|
+
return createLocalSnippetElement$13("BottomSheetRoot", {
|
|
3564
3564
|
defaultOpen: true,
|
|
3565
3565
|
headerAlign
|
|
3566
3566
|
}, [
|
|
3567
|
-
createLocalSnippetElement$
|
|
3567
|
+
createLocalSnippetElement$13("BottomSheetTrigger", {
|
|
3568
3568
|
asChild: true
|
|
3569
3569
|
}, createLocalSnippetElementTrigger$6("ActionButton", {}, "BottomSheet 열기")),
|
|
3570
|
-
createLocalSnippetElement$
|
|
3570
|
+
createLocalSnippetElement$13("BottomSheetContent", contentProps, [
|
|
3571
3571
|
bottomSheetBody,
|
|
3572
3572
|
bottomSheetFooter
|
|
3573
3573
|
])
|
|
3574
3574
|
]);
|
|
3575
3575
|
});
|
|
3576
3576
|
|
|
3577
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
3577
|
+
const { createLocalSnippetElement: createLocalSnippetElement$12 } = createLocalSnippetHelper("callout");
|
|
3578
3578
|
const createCalloutHandler$1 = (ctx)=>defineComponentHandler(callout.key, ({ componentProperties: props, children })=>{
|
|
3579
3579
|
const tag = tsPattern.match(props.Interaction.value).with("Display", ()=>"Callout").with("Actionable", ()=>"ActionableCallout").with("Dismissible", ()=>"DismissibleCallout").exhaustive();
|
|
3580
3580
|
const textNode = children.find((child)=>child.type === "TEXT");
|
|
3581
3581
|
if (!textNode) {
|
|
3582
|
-
return createLocalSnippetElement$
|
|
3582
|
+
return createLocalSnippetElement$12(tag, undefined, undefined, {
|
|
3583
3583
|
comment: "내용을 제공해주세요."
|
|
3584
3584
|
});
|
|
3585
3585
|
}
|
|
@@ -3631,10 +3631,10 @@ const createCalloutHandler$1 = (ctx)=>defineComponentHandler(callout.key, ({ com
|
|
|
3631
3631
|
prefixIcon: ctx.iconHandler.transform(props["Prefix Icon#35087:0"])
|
|
3632
3632
|
}
|
|
3633
3633
|
};
|
|
3634
|
-
return createLocalSnippetElement$
|
|
3634
|
+
return createLocalSnippetElement$12(tag, commonProps);
|
|
3635
3635
|
});
|
|
3636
3636
|
|
|
3637
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
3637
|
+
const { createLocalSnippetElement: createLocalSnippetElement$11 } = createLocalSnippetHelper("checkbox");
|
|
3638
3638
|
const createCheckboxHandler$1 = (_ctx)=>defineComponentHandler(checkbox.key, ({ componentProperties: props })=>{
|
|
3639
3639
|
const tone = tsPattern.match(props.Tone.value).with("Neutral", ()=>"neutral").with("🚫[Deprecated]Brand", ()=>"brand").exhaustive();
|
|
3640
3640
|
const commonProps = {
|
|
@@ -3654,12 +3654,12 @@ const createCheckboxHandler$1 = (_ctx)=>defineComponentHandler(checkbox.key, ({
|
|
|
3654
3654
|
disabled: true
|
|
3655
3655
|
}
|
|
3656
3656
|
};
|
|
3657
|
-
return createLocalSnippetElement$
|
|
3657
|
+
return createLocalSnippetElement$11("Checkbox", commonProps, undefined, {
|
|
3658
3658
|
comment: "CheckboxGroup으로 묶어서 사용하는 것을 권장합니다."
|
|
3659
3659
|
});
|
|
3660
3660
|
});
|
|
3661
3661
|
|
|
3662
|
-
const { createLocalSnippetElement: createLocalSnippetElement
|
|
3662
|
+
const { createLocalSnippetElement: createLocalSnippetElement$10 } = createLocalSnippetHelper("checkbox");
|
|
3663
3663
|
const createCheckmarkHandler$1 = (_ctx)=>defineComponentHandler(checkmark.key, ({ componentProperties: props })=>{
|
|
3664
3664
|
const tone = tsPattern.match(props.Tone.value).with("Neutral", ()=>"neutral").with("🚫[Deprecated]Brand", ()=>"brand").exhaustive();
|
|
3665
3665
|
const commonProps = {
|
|
@@ -3667,14 +3667,14 @@ const createCheckmarkHandler$1 = (_ctx)=>defineComponentHandler(checkmark.key, (
|
|
|
3667
3667
|
variant: changeCase.camelCase(props.Shape.value),
|
|
3668
3668
|
size: handleSizeProp(props.Size.value)
|
|
3669
3669
|
};
|
|
3670
|
-
return createLocalSnippetElement
|
|
3670
|
+
return createLocalSnippetElement$10("Checkmark", commonProps);
|
|
3671
3671
|
});
|
|
3672
3672
|
|
|
3673
|
-
const { createLocalSnippetElement: createLocalSnippetElement
|
|
3673
|
+
const { createLocalSnippetElement: createLocalSnippetElement$$ } = createLocalSnippetHelper("chip");
|
|
3674
3674
|
const CHIP_ICON_SUFFIX_KEY = "27343e0e5ab2c66948e9b10fde03d58b5e037212";
|
|
3675
3675
|
const createChipIconSuffixHandler$1 = (ctx)=>{
|
|
3676
3676
|
return defineComponentHandler(CHIP_ICON_SUFFIX_KEY, ({ componentProperties })=>{
|
|
3677
|
-
return createLocalSnippetElement
|
|
3677
|
+
return createLocalSnippetElement$$("Chip.SuffixIcon", undefined, createSeedReactElement("Icon", {
|
|
3678
3678
|
svg: ctx.iconHandler.transform(componentProperties["Icon#33203:0"])
|
|
3679
3679
|
}));
|
|
3680
3680
|
});
|
|
@@ -3684,7 +3684,7 @@ const createChipHandler$1 = (ctx)=>{
|
|
|
3684
3684
|
const iconSuffixHandler = createChipIconSuffixHandler$1(ctx);
|
|
3685
3685
|
return defineComponentHandler(chip.key, (node, traverse)=>{
|
|
3686
3686
|
const props = node.componentProperties;
|
|
3687
|
-
const prefix = tsPattern.match(props["Prefix Type"].value).with("None", "Image", ()=>undefined).with("Icon", ()=>createLocalSnippetElement
|
|
3687
|
+
const prefix = tsPattern.match(props["Prefix Type"].value).with("None", "Image", ()=>undefined).with("Icon", ()=>createLocalSnippetElement$$("Chip.PrefixIcon", undefined, createSeedReactElement("Icon", {
|
|
3688
3688
|
svg: ctx.iconHandler.transform(props["Prefix Icon#8722:0"])
|
|
3689
3689
|
}))).with("Avatar", ()=>{
|
|
3690
3690
|
const [avatar$1] = findAllInstances({
|
|
@@ -3692,9 +3692,9 @@ const createChipHandler$1 = (ctx)=>{
|
|
|
3692
3692
|
key: avatar.key
|
|
3693
3693
|
});
|
|
3694
3694
|
if (!avatar$1) return undefined;
|
|
3695
|
-
return createLocalSnippetElement
|
|
3695
|
+
return createLocalSnippetElement$$("Chip.PrefixAvatar", undefined, avatarHandler.transform(avatar$1, traverse));
|
|
3696
3696
|
}).exhaustive();
|
|
3697
|
-
const label = createLocalSnippetElement
|
|
3697
|
+
const label = createLocalSnippetElement$$("Chip.Label", undefined, props["Label#7185:0"].value);
|
|
3698
3698
|
const [suffixIcon] = findAllInstances({
|
|
3699
3699
|
node,
|
|
3700
3700
|
key: CHIP_ICON_SUFFIX_KEY
|
|
@@ -3710,7 +3710,7 @@ const createChipHandler$1 = (ctx)=>{
|
|
|
3710
3710
|
disabled: true
|
|
3711
3711
|
}
|
|
3712
3712
|
};
|
|
3713
|
-
return createLocalSnippetElement
|
|
3713
|
+
return createLocalSnippetElement$$("Chip.Toggle", commonProps, [
|
|
3714
3714
|
prefix,
|
|
3715
3715
|
label,
|
|
3716
3716
|
suffixIcon ? iconSuffixHandler.transform(suffixIcon, traverse) : undefined
|
|
@@ -3720,7 +3720,7 @@ const createChipHandler$1 = (ctx)=>{
|
|
|
3720
3720
|
});
|
|
3721
3721
|
};
|
|
3722
3722
|
|
|
3723
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
3723
|
+
const { createLocalSnippetElement: createLocalSnippetElement$_ } = createLocalSnippetHelper("contextual-floating-button");
|
|
3724
3724
|
const createContextualFloatingButtonHandler$1 = (ctx)=>defineComponentHandler(contextualFloatingButton.key, ({ componentProperties: props })=>{
|
|
3725
3725
|
const states = props.State.value.split("-");
|
|
3726
3726
|
const { layout, children } = tsPattern.match(props.Layout.value).with("Icon Only", ()=>({
|
|
@@ -3749,7 +3749,7 @@ const createContextualFloatingButtonHandler$1 = (ctx)=>defineComponentHandler(co
|
|
|
3749
3749
|
variant: tsPattern.match(props.Variant.value).with("Solid", ()=>"solid").with("Layer", ()=>"layer").exhaustive(),
|
|
3750
3750
|
layout
|
|
3751
3751
|
};
|
|
3752
|
-
return createLocalSnippetElement$
|
|
3752
|
+
return createLocalSnippetElement$_("ContextualFloatingButton", commonProps, children);
|
|
3753
3753
|
});
|
|
3754
3754
|
|
|
3755
3755
|
const createDividerHandler$1 = (_ctx)=>defineComponentHandler(divider.key, ({ componentProperties: props })=>{
|
|
@@ -3874,7 +3874,7 @@ const FIELD_KEYS = {
|
|
|
3874
3874
|
});
|
|
3875
3875
|
};
|
|
3876
3876
|
|
|
3877
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
3877
|
+
const { createLocalSnippetElement: createLocalSnippetElement$Z } = createLocalSnippetHelper("field-button");
|
|
3878
3878
|
const INPUT_BUTTON_KEY = "965bdecb58755af9a08d60cc3c8d2d33b42e15f0";
|
|
3879
3879
|
const INPUT_BUTTON_PREFIX_KEY = "12b40c736a098298c64ba16de85702b4b460d1f1";
|
|
3880
3880
|
const INPUT_BUTTON_SUFFIX_KEY = "5dda27af9f4afafa471925c17acf97d81912877a";
|
|
@@ -3933,11 +3933,11 @@ const createFieldButtonHandler$1 = (ctx)=>{
|
|
|
3933
3933
|
// these can be fragile but better than having 9 different handlers
|
|
3934
3934
|
const placeholder = findOne(node, (node)=>node.type === "TEXT" && node.name.toLowerCase().includes("placeholder"));
|
|
3935
3935
|
const value = findOne(node, (node)=>node.type === "TEXT" && node.name.toLowerCase().includes("value"));
|
|
3936
|
-
return createLocalSnippetElement$
|
|
3936
|
+
return createLocalSnippetElement$Z("FieldButton", {
|
|
3937
3937
|
...headerProps,
|
|
3938
3938
|
...footerProps,
|
|
3939
3939
|
...commonProps
|
|
3940
|
-
}, props["Has Value"].value === "True" && value ? createLocalSnippetElement$
|
|
3940
|
+
}, props["Has Value"].value === "True" && value ? createLocalSnippetElement$Z("FieldButtonValue", undefined, value.characters) : placeholder ? createLocalSnippetElement$Z("FieldButtonPlaceholder", undefined, placeholder.characters) : undefined, {
|
|
3941
3941
|
comment: "buttonProps를 통해 aria-label을 제공하세요."
|
|
3942
3942
|
});
|
|
3943
3943
|
});
|
|
@@ -3984,7 +3984,7 @@ const createAddressFieldHandler$1 = (ctx)=>{
|
|
|
3984
3984
|
});
|
|
3985
3985
|
};
|
|
3986
3986
|
|
|
3987
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
3987
|
+
const { createLocalSnippetElement: createLocalSnippetElement$Y } = createLocalSnippetHelper("floating-action-button");
|
|
3988
3988
|
const BUTTON_TYPE_KEY = "8cecc85275115d653579d4c3156567ebf19f7b27";
|
|
3989
3989
|
const MENU_TYPE_KEY = "400124347392c15473f9cd2d8a6aedb64f3baf36";
|
|
3990
3990
|
const createFloatingActionButtonHandler$1 = (ctx)=>defineComponentHandler(floatingActionButton.key, (node)=>{
|
|
@@ -4008,10 +4008,10 @@ const createFloatingActionButtonHandler$1 = (ctx)=>defineComponentHandler(floati
|
|
|
4008
4008
|
label: menu.componentProperties["Label#29766:9"].value
|
|
4009
4009
|
};
|
|
4010
4010
|
})();
|
|
4011
|
-
return createLocalSnippetElement$
|
|
4011
|
+
return createLocalSnippetElement$Y("FloatingActionButton", commonProps);
|
|
4012
4012
|
});
|
|
4013
4013
|
|
|
4014
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
4014
|
+
const { createLocalSnippetElement: createLocalSnippetElement$X } = createLocalSnippetHelper("help-bubble");
|
|
4015
4015
|
const { createLocalSnippetElement: createLocalSnippetElementTrigger$5 } = createLocalSnippetHelper("action-button");
|
|
4016
4016
|
const createHelpBubbleHandler$1 = (_ctx)=>defineComponentHandler(helpBubble.key, ({ componentProperties: props })=>{
|
|
4017
4017
|
const placement = (()=>{
|
|
@@ -4051,12 +4051,12 @@ const createHelpBubbleHandler$1 = (_ctx)=>defineComponentHandler(helpBubble.key,
|
|
|
4051
4051
|
showCloseButton: props["Show Close Button#40538:0"].value,
|
|
4052
4052
|
placement
|
|
4053
4053
|
};
|
|
4054
|
-
return createLocalSnippetElement$
|
|
4054
|
+
return createLocalSnippetElement$X("HelpBubbleTrigger", commonProps, createLocalSnippetElementTrigger$5("ActionButton", {}, "HelpBubble 열기"), {
|
|
4055
4055
|
comment: "필요에 따라 HelpBubbleAnchor로 변경하여 사용하세요."
|
|
4056
4056
|
});
|
|
4057
4057
|
});
|
|
4058
4058
|
|
|
4059
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
4059
|
+
const { createLocalSnippetElement: createLocalSnippetElement$W } = createLocalSnippetHelper("select-box");
|
|
4060
4060
|
const LEGACY_SELECT_BOX_KEY = "38722ffeb4c966256a709155e8ddac50c93d7c60";
|
|
4061
4061
|
const LEGACY_SELECT_BOX_GROUP_KEY = "a3d58bb8540600878742cdcf2608a4b3851667ec";
|
|
4062
4062
|
const createLegacySelectBoxHandler$1 = (_ctx)=>defineComponentHandler(LEGACY_SELECT_BOX_KEY, ({ componentProperties: props })=>{
|
|
@@ -4073,7 +4073,7 @@ const createLegacySelectBoxHandler$1 = (_ctx)=>defineComponentHandler(LEGACY_SEL
|
|
|
4073
4073
|
defaultChecked: true
|
|
4074
4074
|
}
|
|
4075
4075
|
};
|
|
4076
|
-
return createLocalSnippetElement$
|
|
4076
|
+
return createLocalSnippetElement$W(tag, commonProps, undefined, {
|
|
4077
4077
|
comment: "이 Figma 컴포넌트는 @seed-design/react@1.2보다 낮은 버전의 SelectBox입니다. 신규 컴포넌트로 교체할 수 있습니다."
|
|
4078
4078
|
});
|
|
4079
4079
|
});
|
|
@@ -4098,13 +4098,13 @@ const createLegacySelectBoxGroupHandler$1 = (ctx)=>{
|
|
|
4098
4098
|
defaultValue: selectedSelectBox?.componentProperties["Label#3635:0"].value
|
|
4099
4099
|
}
|
|
4100
4100
|
};
|
|
4101
|
-
return createLocalSnippetElement$
|
|
4101
|
+
return createLocalSnippetElement$W(tag, commonProps, stack, {
|
|
4102
4102
|
comment: "이 Figma 컴포넌트는 @seed-design/react@1.2보다 낮은 버전의 SelectBox입니다. 신규 컴포넌트로 교체할 수 있습니다."
|
|
4103
4103
|
});
|
|
4104
4104
|
});
|
|
4105
4105
|
};
|
|
4106
4106
|
|
|
4107
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
4107
|
+
const { createLocalSnippetElement: createLocalSnippetElement$V } = createLocalSnippetHelper("text-field");
|
|
4108
4108
|
const LEGACY_TEXT_FIELD_KEY = "c49873c37a639f0dffdea4efd0eb43760d66c141";
|
|
4109
4109
|
const LEGACY_MULTILINE_TEXT_FIELD_KEY = "88b2399c930c85f9ce2972163a078bc684b84bbe";
|
|
4110
4110
|
const createLegacyTextFieldHandler$1 = (ctx)=>defineComponentHandler(LEGACY_TEXT_FIELD_KEY, ({ componentProperties: props })=>{
|
|
@@ -4161,8 +4161,8 @@ const createLegacyTextFieldHandler$1 = (ctx)=>defineComponentHandler(LEGACY_TEXT
|
|
|
4161
4161
|
const inputProps = {
|
|
4162
4162
|
placeholder
|
|
4163
4163
|
};
|
|
4164
|
-
const TextFieldChildren = createLocalSnippetElement$
|
|
4165
|
-
return createLocalSnippetElement$
|
|
4164
|
+
const TextFieldChildren = createLocalSnippetElement$V("TextFieldInput", inputProps);
|
|
4165
|
+
return createLocalSnippetElement$V("TextField", commonProps, TextFieldChildren, {
|
|
4166
4166
|
comment: "이 Figma 컴포넌트는 @seed-design/react@1.1보다 낮은 버전의 TextField입니다. 신규 컴포넌트로 교체할 수 있습니다."
|
|
4167
4167
|
});
|
|
4168
4168
|
});
|
|
@@ -4207,21 +4207,21 @@ const createLegacyMultilineTextFieldHandler$1 = (_ctx)=>defineComponentHandler(L
|
|
|
4207
4207
|
const inputProps = {
|
|
4208
4208
|
placeholder
|
|
4209
4209
|
};
|
|
4210
|
-
const TextFieldChildren = createLocalSnippetElement$
|
|
4211
|
-
return createLocalSnippetElement$
|
|
4210
|
+
const TextFieldChildren = createLocalSnippetElement$V("TextFieldTextarea", inputProps);
|
|
4211
|
+
return createLocalSnippetElement$V("TextField", commonProps, TextFieldChildren, {
|
|
4212
4212
|
comment: "이 Figma 컴포넌트는 @seed-design/react@1.1보다 낮은 버전의 TextField입니다. 신규 컴포넌트로 교체할 수 있습니다."
|
|
4213
4213
|
});
|
|
4214
4214
|
});
|
|
4215
4215
|
|
|
4216
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
4216
|
+
const { createLocalSnippetElement: createLocalSnippetElement$U } = createLocalSnippetHelper("list-header");
|
|
4217
4217
|
const createListHeaderHandler$1 = (_ctx)=>defineComponentHandler(listHeader.key, ({ componentProperties: props })=>{
|
|
4218
4218
|
const commonProps = {
|
|
4219
4219
|
variant: changeCase.camelCase(props["Variant"].value)
|
|
4220
4220
|
};
|
|
4221
|
-
return createLocalSnippetElement$
|
|
4221
|
+
return createLocalSnippetElement$U("ListHeader", commonProps, props["Title#28588:0"].value);
|
|
4222
4222
|
});
|
|
4223
4223
|
|
|
4224
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
4224
|
+
const { createLocalSnippetElement: createLocalSnippetElement$T } = createLocalSnippetHelper("list");
|
|
4225
4225
|
const PREFIX_KEYS$2 = {
|
|
4226
4226
|
checkmark: "f24c9ef42ef08df79483fbae0fa7d9037e566748",
|
|
4227
4227
|
radiomark: "5a77ad37a2291989dfe77c44ddee9aa39e447f90",
|
|
@@ -4331,37 +4331,37 @@ const createListItemHandler$1 = (ctx)=>defineComponentHandler(listItem.key, (nod
|
|
|
4331
4331
|
}
|
|
4332
4332
|
};
|
|
4333
4333
|
const comment = tsPattern.match(tag).with("ListItem", ()=>"목적에 따라 ListButtonItem이나 ListLinkItem으로 바꿔 사용하세요.").with("ListCheckItem", ()=>`<List as="fieldset">과 함께 사용하세요.`).with("ListRadioItem", ()=>"<RadioGroup.Root>와 함께 사용하세요.").otherwise(()=>undefined);
|
|
4334
|
-
const list = createLocalSnippetElement$
|
|
4334
|
+
const list = createLocalSnippetElement$T(tag, commonProps, undefined, {
|
|
4335
4335
|
comment
|
|
4336
4336
|
});
|
|
4337
4337
|
if (props["Divider#28441:0"].value) {
|
|
4338
4338
|
return createElement("", {}, [
|
|
4339
4339
|
list,
|
|
4340
|
-
createLocalSnippetElement$
|
|
4340
|
+
createLocalSnippetElement$T("ListDivider")
|
|
4341
4341
|
]);
|
|
4342
4342
|
}
|
|
4343
4343
|
return list;
|
|
4344
4344
|
});
|
|
4345
4345
|
|
|
4346
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
4346
|
+
const { createLocalSnippetElement: createLocalSnippetElement$S } = createLocalSnippetHelper("manner-temp");
|
|
4347
4347
|
const createMannerTempHandler$1 = (_ctx)=>defineComponentHandler(mannerTemp.key, ({ children })=>{
|
|
4348
4348
|
const textNode = children.find((child)=>child.type === "TEXT");
|
|
4349
4349
|
const commonProps = {
|
|
4350
4350
|
temperature: Number(textNode?.characters.replace(/[^\d.-]/g, "") ?? "-1")
|
|
4351
4351
|
};
|
|
4352
|
-
return createLocalSnippetElement$
|
|
4352
|
+
return createLocalSnippetElement$S("MannerTemp", commonProps);
|
|
4353
4353
|
});
|
|
4354
4354
|
|
|
4355
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
4355
|
+
const { createLocalSnippetElement: createLocalSnippetElement$R } = createLocalSnippetHelper("manner-temp-badge");
|
|
4356
4356
|
const createMannerTempBadgeHandler$1 = (_ctx)=>defineComponentHandler(mannerTempBadge.key, ({ children })=>{
|
|
4357
4357
|
const textNode = children.find((child)=>child.type === "TEXT");
|
|
4358
4358
|
const commonProps = {
|
|
4359
4359
|
temperature: Number(textNode?.characters.replace(/[^\d.-]/g, "") ?? "-1")
|
|
4360
4360
|
};
|
|
4361
|
-
return createLocalSnippetElement$
|
|
4361
|
+
return createLocalSnippetElement$R("MannerTempBadge", commonProps);
|
|
4362
4362
|
});
|
|
4363
4363
|
|
|
4364
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
4364
|
+
const { createLocalSnippetElement: createLocalSnippetElement$Q } = createLocalSnippetHelper("menu-sheet");
|
|
4365
4365
|
const { createLocalSnippetElement: createLocalSnippetElementTrigger$4 } = createLocalSnippetHelper("action-button");
|
|
4366
4366
|
const MENU_SHEET_ITEM_KEY = "057083e95466da59051119eec0b41d4ad5a07f8f";
|
|
4367
4367
|
const createMenuSheetItemHandler$1 = (ctx)=>defineComponentHandler(MENU_SHEET_ITEM_KEY, ({ componentProperties: props })=>{
|
|
@@ -4379,7 +4379,7 @@ const createMenuSheetItemHandler$1 = (ctx)=>defineComponentHandler(MENU_SHEET_IT
|
|
|
4379
4379
|
description: props["Sub Text#51411:0"].value
|
|
4380
4380
|
}
|
|
4381
4381
|
};
|
|
4382
|
-
return createLocalSnippetElement$
|
|
4382
|
+
return createLocalSnippetElement$Q("MenuSheetItem", commonProps);
|
|
4383
4383
|
});
|
|
4384
4384
|
const MENU_SHEET_GROUP_KEY = "2a504a1c6b7810d5e652862dcba2cb7048f9eb16";
|
|
4385
4385
|
const createMenuSheetGroupHandler$1 = (ctx)=>{
|
|
@@ -4390,7 +4390,7 @@ const createMenuSheetGroupHandler$1 = (ctx)=>{
|
|
|
4390
4390
|
key: menuSheetItemHandler.key
|
|
4391
4391
|
});
|
|
4392
4392
|
const contentChildren = items.map((item)=>menuSheetItemHandler.transform(item, traverse));
|
|
4393
|
-
return createLocalSnippetElement$
|
|
4393
|
+
return createLocalSnippetElement$Q("MenuSheetGroup", undefined, contentChildren);
|
|
4394
4394
|
});
|
|
4395
4395
|
};
|
|
4396
4396
|
const createMenuSheetHandler$1 = (ctx)=>{
|
|
@@ -4409,24 +4409,24 @@ const createMenuSheetHandler$1 = (ctx)=>{
|
|
|
4409
4409
|
})).with("Text Only", ()=>({
|
|
4410
4410
|
labelAlign: "center"
|
|
4411
4411
|
})).exhaustive();
|
|
4412
|
-
const content = createLocalSnippetElement$
|
|
4412
|
+
const content = createLocalSnippetElement$Q("MenuSheetContent", {
|
|
4413
4413
|
title,
|
|
4414
4414
|
description,
|
|
4415
4415
|
labelAlign
|
|
4416
4416
|
}, contentChildren, {
|
|
4417
4417
|
comment: title ? undefined : "title을 제공하지 않는 경우 aria-label이나 aria-labelledby 중 하나를 제공해야 합니다."
|
|
4418
4418
|
});
|
|
4419
|
-
const trigger = createLocalSnippetElement$
|
|
4419
|
+
const trigger = createLocalSnippetElement$Q("MenuSheetTrigger", {
|
|
4420
4420
|
asChild: true
|
|
4421
4421
|
}, createLocalSnippetElementTrigger$4("ActionButton", {}, "MenuSheet 열기"));
|
|
4422
|
-
return createLocalSnippetElement$
|
|
4422
|
+
return createLocalSnippetElement$Q("MenuSheet", undefined, [
|
|
4423
4423
|
trigger,
|
|
4424
4424
|
content
|
|
4425
4425
|
]);
|
|
4426
4426
|
});
|
|
4427
4427
|
};
|
|
4428
4428
|
|
|
4429
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
4429
|
+
const { createLocalSnippetElement: createLocalSnippetElement$P } = createLocalSnippetHelper("page-banner");
|
|
4430
4430
|
const SUFFIX_BUTTON_KEY = "7dce4e1242761ccd8e5da42278fc2d870918039c";
|
|
4431
4431
|
const createPageBannerButtonHandler$1 = (_ctx)=>defineComponentHandler(SUFFIX_BUTTON_KEY, (node)=>{
|
|
4432
4432
|
return createElement("PageBannerButton", undefined, node.componentProperties["Label#39890:0"].value);
|
|
@@ -4460,7 +4460,7 @@ const createPageBannerHandler$1 = (ctx)=>{
|
|
|
4460
4460
|
})).exhaustive();
|
|
4461
4461
|
const textNode = findOne(node, (child)=>child.type === "TEXT" && child.name === "Text");
|
|
4462
4462
|
if (!textNode) {
|
|
4463
|
-
return createLocalSnippetElement$
|
|
4463
|
+
return createLocalSnippetElement$P(tag, undefined, undefined, {
|
|
4464
4464
|
comment: "내용을 제공해주세요."
|
|
4465
4465
|
});
|
|
4466
4466
|
}
|
|
@@ -4493,11 +4493,11 @@ const createPageBannerHandler$1 = (ctx)=>{
|
|
|
4493
4493
|
suffix
|
|
4494
4494
|
}
|
|
4495
4495
|
};
|
|
4496
|
-
return createLocalSnippetElement$
|
|
4496
|
+
return createLocalSnippetElement$P(tag, commonProps);
|
|
4497
4497
|
});
|
|
4498
4498
|
};
|
|
4499
4499
|
|
|
4500
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
4500
|
+
const { createLocalSnippetElement: createLocalSnippetElement$O } = createLocalSnippetHelper("progress-circle");
|
|
4501
4501
|
const createProgressCircleHandler$1 = (_ctx)=>defineComponentHandler(progressCircle.key, ({ componentProperties: props })=>{
|
|
4502
4502
|
const { value, minValue, maxValue } = tsPattern.match(props.Value.value).with("Indeterminate", ()=>({
|
|
4503
4503
|
value: undefined,
|
|
@@ -4529,10 +4529,10 @@ const createProgressCircleHandler$1 = (_ctx)=>defineComponentHandler(progressCir
|
|
|
4529
4529
|
tone: changeCase.camelCase(props.Tone.value)
|
|
4530
4530
|
}
|
|
4531
4531
|
};
|
|
4532
|
-
return createLocalSnippetElement$
|
|
4532
|
+
return createLocalSnippetElement$O("ProgressCircle", commonProps);
|
|
4533
4533
|
});
|
|
4534
4534
|
|
|
4535
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
4535
|
+
const { createLocalSnippetElement: createLocalSnippetElement$N } = createLocalSnippetHelper("radio-group");
|
|
4536
4536
|
const createRadioGroupItemHandler$1 = (_ctx)=>defineComponentHandler(radio.key, ({ componentProperties: props })=>{
|
|
4537
4537
|
const tone = tsPattern.match(props.Tone.value).with("Neutral", ()=>"neutral").with("🚫[Deprecated]Brand", ()=>"brand").exhaustive();
|
|
4538
4538
|
const commonProps = {
|
|
@@ -4545,20 +4545,20 @@ const createRadioGroupItemHandler$1 = (_ctx)=>defineComponentHandler(radio.key,
|
|
|
4545
4545
|
tone,
|
|
4546
4546
|
weight: changeCase.camelCase(props.Weight.value)
|
|
4547
4547
|
};
|
|
4548
|
-
return createLocalSnippetElement$
|
|
4548
|
+
return createLocalSnippetElement$N("RadioGroupItem", commonProps);
|
|
4549
4549
|
});
|
|
4550
4550
|
|
|
4551
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
4551
|
+
const { createLocalSnippetElement: createLocalSnippetElement$M } = createLocalSnippetHelper("radio-group");
|
|
4552
4552
|
const createRadiomarkHandler$1 = (_ctx)=>defineComponentHandler(radiomark.key, ({ componentProperties: props })=>{
|
|
4553
4553
|
const tone = tsPattern.match(props.Tone.value).with("Neutral", ()=>"neutral").with("🚫[Deprecated]Brand", ()=>"brand").exhaustive();
|
|
4554
4554
|
const commonProps = {
|
|
4555
4555
|
tone,
|
|
4556
4556
|
size: handleSizeProp(props.Size.value)
|
|
4557
4557
|
};
|
|
4558
|
-
return createLocalSnippetElement$
|
|
4558
|
+
return createLocalSnippetElement$M("Radiomark", commonProps);
|
|
4559
4559
|
});
|
|
4560
4560
|
|
|
4561
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
4561
|
+
const { createLocalSnippetElement: createLocalSnippetElement$L } = createLocalSnippetHelper("reaction-button");
|
|
4562
4562
|
const createReactionButtonHandler$1 = (ctx)=>defineComponentHandler(reactionButton.key, ({ componentProperties: props })=>{
|
|
4563
4563
|
const commonProps = {
|
|
4564
4564
|
size: handleSizeProp(props.Size.value),
|
|
@@ -4572,7 +4572,7 @@ const createReactionButtonHandler$1 = (ctx)=>defineComponentHandler(reactionButt
|
|
|
4572
4572
|
defaultPressed: true
|
|
4573
4573
|
}
|
|
4574
4574
|
};
|
|
4575
|
-
return createLocalSnippetElement$
|
|
4575
|
+
return createLocalSnippetElement$L("ReactionButton", commonProps, [
|
|
4576
4576
|
createSeedReactElement("PrefixIcon", {
|
|
4577
4577
|
svg: ctx.iconHandler.transform(props["Icon#12379:0"])
|
|
4578
4578
|
}),
|
|
@@ -4581,7 +4581,7 @@ const createReactionButtonHandler$1 = (ctx)=>defineComponentHandler(reactionButt
|
|
|
4581
4581
|
]);
|
|
4582
4582
|
});
|
|
4583
4583
|
|
|
4584
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
4584
|
+
const { createLocalSnippetElement: createLocalSnippetElement$K } = createLocalSnippetHelper("result-section");
|
|
4585
4585
|
const createResultSectionHandler$1 = (ctx)=>{
|
|
4586
4586
|
const actionButtonHandler = createActionButtonHandler$1(ctx);
|
|
4587
4587
|
const ghostButtonHandler = createActionButtonGhostHandler$1(ctx);
|
|
@@ -4619,11 +4619,11 @@ const createResultSectionHandler$1 = (ctx)=>{
|
|
|
4619
4619
|
}
|
|
4620
4620
|
}
|
|
4621
4621
|
};
|
|
4622
|
-
return createLocalSnippetElement$
|
|
4622
|
+
return createLocalSnippetElement$K("ResultSection", commonProps);
|
|
4623
4623
|
});
|
|
4624
4624
|
};
|
|
4625
4625
|
|
|
4626
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
4626
|
+
const { createLocalSnippetElement: createLocalSnippetElement$J } = createLocalSnippetHelper("segmented-control");
|
|
4627
4627
|
const SEGMENTED_CONTROL_ITEM_KEY = "9a7ba0d4c041ddbce84ee48881788434fd6bccc8";
|
|
4628
4628
|
const createSegmentedControlItemHandler$1 = (_ctx)=>defineComponentHandler(SEGMENTED_CONTROL_ITEM_KEY, ({ componentProperties: props })=>{
|
|
4629
4629
|
const states = props.State.value.split("-");
|
|
@@ -4633,7 +4633,7 @@ const createSegmentedControlItemHandler$1 = (_ctx)=>defineComponentHandler(SEGME
|
|
|
4633
4633
|
disabled: true
|
|
4634
4634
|
}
|
|
4635
4635
|
};
|
|
4636
|
-
return createLocalSnippetElement$
|
|
4636
|
+
return createLocalSnippetElement$J("SegmentedControlItem", commonProps, props["Label#11366:15"].value);
|
|
4637
4637
|
});
|
|
4638
4638
|
const createSegmentedControlHandler$1 = (ctx)=>{
|
|
4639
4639
|
const segmentedControlItemHandler = createSegmentedControlItemHandler$1();
|
|
@@ -4649,7 +4649,7 @@ const createSegmentedControlHandler$1 = (ctx)=>{
|
|
|
4649
4649
|
defaultValue: selectedSegment.componentProperties["Label#11366:15"].value
|
|
4650
4650
|
}
|
|
4651
4651
|
};
|
|
4652
|
-
return createLocalSnippetElement$
|
|
4652
|
+
return createLocalSnippetElement$J("SegmentedControl", commonProps, segmentedControlChildren, {
|
|
4653
4653
|
comment: "aria-label이나 aria-labelledby 중 하나를 제공해야 합니다."
|
|
4654
4654
|
});
|
|
4655
4655
|
});
|
|
@@ -4665,7 +4665,7 @@ const createSkeletonHandler$1 = (ctx)=>defineComponentHandler(skeleton.key, (nod
|
|
|
4665
4665
|
return createSeedReactElement("Skeleton", commonProps);
|
|
4666
4666
|
});
|
|
4667
4667
|
|
|
4668
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
4668
|
+
const { createLocalSnippetElement: createLocalSnippetElement$I } = createLocalSnippetHelper("slider");
|
|
4669
4669
|
const SLIDER_TICK_KEY = "ace432ffb7a2af13bce549b19c932ac5f96a9a78";
|
|
4670
4670
|
function getSliderComment$1(props) {
|
|
4671
4671
|
return [
|
|
@@ -4701,7 +4701,7 @@ const createSliderFieldHandler$1 = (ctx)=>{
|
|
|
4701
4701
|
...headerProps,
|
|
4702
4702
|
...footerProps
|
|
4703
4703
|
};
|
|
4704
|
-
return createLocalSnippetElement$
|
|
4704
|
+
return createLocalSnippetElement$I("Slider", commonProps, undefined, {
|
|
4705
4705
|
comment: getSliderComment$1(commonProps)
|
|
4706
4706
|
});
|
|
4707
4707
|
});
|
|
@@ -4743,13 +4743,13 @@ const createSliderHandler$1 = (_ctx)=>{
|
|
|
4743
4743
|
disabled: true
|
|
4744
4744
|
}
|
|
4745
4745
|
};
|
|
4746
|
-
return createLocalSnippetElement$
|
|
4746
|
+
return createLocalSnippetElement$I("Slider", commonProps, undefined, {
|
|
4747
4747
|
comment: getSliderComment$1(commonProps)
|
|
4748
4748
|
});
|
|
4749
4749
|
});
|
|
4750
4750
|
};
|
|
4751
4751
|
|
|
4752
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
4752
|
+
const { createLocalSnippetElement: createLocalSnippetElement$H } = createLocalSnippetHelper("snackbar");
|
|
4753
4753
|
const createSnackbarHandler$1 = (_ctx)=>defineComponentHandler(snackbar.key, ({ componentProperties: props })=>{
|
|
4754
4754
|
const commonProps = {
|
|
4755
4755
|
message: props["Message#1528:4"].value,
|
|
@@ -4759,10 +4759,10 @@ const createSnackbarHandler$1 = (_ctx)=>defineComponentHandler(snackbar.key, ({
|
|
|
4759
4759
|
}
|
|
4760
4760
|
};
|
|
4761
4761
|
// TODO: adapter.create({ render })
|
|
4762
|
-
return createLocalSnippetElement$
|
|
4762
|
+
return createLocalSnippetElement$H("Snackbar", commonProps);
|
|
4763
4763
|
});
|
|
4764
4764
|
|
|
4765
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
4765
|
+
const { createLocalSnippetElement: createLocalSnippetElement$G } = createLocalSnippetHelper("switch");
|
|
4766
4766
|
const createSwitchHandler$1 = (_ctx)=>defineComponentHandler(_switch.key, ({ componentProperties: props })=>{
|
|
4767
4767
|
const tone = tsPattern.match(props.Tone.value).with("Neutral", ()=>"neutral").with("🚫[Deprecated] Brand", ()=>"brand").exhaustive();
|
|
4768
4768
|
const commonProps = {
|
|
@@ -4770,9 +4770,9 @@ const createSwitchHandler$1 = (_ctx)=>defineComponentHandler(_switch.key, ({ com
|
|
|
4770
4770
|
size: props.Size.value
|
|
4771
4771
|
};
|
|
4772
4772
|
if (props["Layout(Figma Only)"].value === "🚫[Switch Mark 사용] Switch Only") {
|
|
4773
|
-
return createLocalSnippetElement$
|
|
4773
|
+
return createLocalSnippetElement$G("Switchmark", commonProps);
|
|
4774
4774
|
}
|
|
4775
|
-
return createLocalSnippetElement$
|
|
4775
|
+
return createLocalSnippetElement$G("Switch", {
|
|
4776
4776
|
...commonProps,
|
|
4777
4777
|
label: props["Label#36578:0"].value,
|
|
4778
4778
|
...props.Selected.value === "True" && {
|
|
@@ -4784,14 +4784,14 @@ const createSwitchHandler$1 = (_ctx)=>defineComponentHandler(_switch.key, ({ com
|
|
|
4784
4784
|
});
|
|
4785
4785
|
});
|
|
4786
4786
|
|
|
4787
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
4787
|
+
const { createLocalSnippetElement: createLocalSnippetElement$F } = createLocalSnippetHelper("switch");
|
|
4788
4788
|
const createSwitchmarkHandler$1 = (_ctx)=>defineComponentHandler(switchmark.key, ({ componentProperties: props })=>{
|
|
4789
4789
|
const tone = tsPattern.match(props.Tone.value).with("Neutral", ()=>"neutral").with("🚫[Deprecated] Brand", ()=>"brand").exhaustive();
|
|
4790
4790
|
const commonProps = {
|
|
4791
4791
|
tone,
|
|
4792
4792
|
size: props.Size.value
|
|
4793
4793
|
};
|
|
4794
|
-
return createLocalSnippetElement$
|
|
4794
|
+
return createLocalSnippetElement$F("Switchmark", commonProps);
|
|
4795
4795
|
});
|
|
4796
4796
|
|
|
4797
4797
|
const { createLocalSnippetElement: createTabsLocalSnippetElement$1 } = createLocalSnippetHelper("tabs");
|
|
@@ -5003,7 +5003,7 @@ const createChipTabsTriggerHandler$1 = (_ctx)=>defineComponentHandler(CHIP_TRIGG
|
|
|
5003
5003
|
return createChipTabsLocalSnippetElement$1("ChipTabsTrigger", commonProps);
|
|
5004
5004
|
});
|
|
5005
5005
|
|
|
5006
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
5006
|
+
const { createLocalSnippetElement: createLocalSnippetElement$E } = createLocalSnippetHelper("tag-group");
|
|
5007
5007
|
const createTagGroupHandler$1 = (ctx)=>{
|
|
5008
5008
|
const itemHandler = createTagGroupItemHandler$1(ctx);
|
|
5009
5009
|
return defineComponentHandler(tagGroup.key, (node, traverse)=>{
|
|
@@ -5013,7 +5013,7 @@ const createTagGroupHandler$1 = (ctx)=>{
|
|
|
5013
5013
|
});
|
|
5014
5014
|
const items = itemNodes.map((itemNode)=>itemHandler.transform(itemNode, traverse));
|
|
5015
5015
|
if (items.length === 0) {
|
|
5016
|
-
return createLocalSnippetElement$
|
|
5016
|
+
return createLocalSnippetElement$E("TagGroupRoot");
|
|
5017
5017
|
}
|
|
5018
5018
|
// if size/weight/tone are all the same among item[n].props, lift them up to TagGroupRoot
|
|
5019
5019
|
const consistent = {
|
|
@@ -5021,7 +5021,7 @@ const createTagGroupHandler$1 = (ctx)=>{
|
|
|
5021
5021
|
weight: items.map((item)=>item.props.weight).every((weight)=>weight === items[0].props.weight),
|
|
5022
5022
|
tone: items.map((item)=>item.props.tone).every((tone)=>tone === items[0].props.tone)
|
|
5023
5023
|
};
|
|
5024
|
-
return createLocalSnippetElement$
|
|
5024
|
+
return createLocalSnippetElement$E("TagGroupRoot", {
|
|
5025
5025
|
// lift up consistent props
|
|
5026
5026
|
...consistent.size && {
|
|
5027
5027
|
size: items[0].props.size
|
|
@@ -5049,7 +5049,7 @@ const createTagGroupHandler$1 = (ctx)=>{
|
|
|
5049
5049
|
const TAG_GROUP_ITEM_KEY = "a7bbc318919053f96be00e509469f6294d6bb6bb";
|
|
5050
5050
|
const createTagGroupItemHandler$1 = (ctx)=>defineComponentHandler(TAG_GROUP_ITEM_KEY, ({ componentProperties: props })=>{
|
|
5051
5051
|
const size = tsPattern.match(props.Size.value).with("t2(12pt)", ()=>"t2").with("t3(13pt)", ()=>"t3").with("t4(14pt)", ()=>"t4").exhaustive();
|
|
5052
|
-
return createLocalSnippetElement$
|
|
5052
|
+
return createLocalSnippetElement$E("TagGroupItem", {
|
|
5053
5053
|
size,
|
|
5054
5054
|
weight: changeCase.camelCase(props["Weight"].value),
|
|
5055
5055
|
tone: changeCase.camelCase(props["Tone"].value),
|
|
@@ -5063,7 +5063,7 @@ const createTagGroupItemHandler$1 = (ctx)=>defineComponentHandler(TAG_GROUP_ITEM
|
|
|
5063
5063
|
});
|
|
5064
5064
|
});
|
|
5065
5065
|
|
|
5066
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
5066
|
+
const { createLocalSnippetElement: createLocalSnippetElement$D } = createLocalSnippetHelper("text-field");
|
|
5067
5067
|
const TEXT_INPUT_OUTLINE_KEY = "22eebd645d310c086d9f5f69d8f179ff5c7cf7ca";
|
|
5068
5068
|
const TEXT_INPUT_OUTLINE_PREFIX_KEY = "1ab174dd51bc42a5efe530f52f1dd02255c50b18";
|
|
5069
5069
|
const TEXT_INPUT_OUTLINE_SUFFIX_KEY = "555fee288d9053760e301791665bbac31d19c43f";
|
|
@@ -5175,13 +5175,13 @@ const createTextInputFieldHandler$1 = (ctx)=>{
|
|
|
5175
5175
|
placeholder: placeholder.characters
|
|
5176
5176
|
}
|
|
5177
5177
|
};
|
|
5178
|
-
return createLocalSnippetElement$
|
|
5178
|
+
return createLocalSnippetElement$D("TextField", {
|
|
5179
5179
|
...fieldProps,
|
|
5180
5180
|
...commonProps,
|
|
5181
5181
|
...value && {
|
|
5182
5182
|
defaultValue: value.characters
|
|
5183
5183
|
}
|
|
5184
|
-
}, createLocalSnippetElement$
|
|
5184
|
+
}, createLocalSnippetElement$D("TextFieldInput", inputProps));
|
|
5185
5185
|
});
|
|
5186
5186
|
};
|
|
5187
5187
|
const createTextareaFieldHandler$1 = (ctx)=>{
|
|
@@ -5224,14 +5224,14 @@ const createTextareaFieldHandler$1 = (ctx)=>{
|
|
|
5224
5224
|
defaultValue: value.characters
|
|
5225
5225
|
}
|
|
5226
5226
|
};
|
|
5227
|
-
return createLocalSnippetElement$
|
|
5227
|
+
return createLocalSnippetElement$D("TextField", {
|
|
5228
5228
|
...fieldProps,
|
|
5229
5229
|
...commonProps
|
|
5230
|
-
}, createLocalSnippetElement$
|
|
5230
|
+
}, createLocalSnippetElement$D("TextFieldTextarea", inputProps));
|
|
5231
5231
|
});
|
|
5232
5232
|
};
|
|
5233
5233
|
|
|
5234
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
5234
|
+
const { createLocalSnippetElement: createLocalSnippetElement$C } = createLocalSnippetHelper("toggle-button");
|
|
5235
5235
|
const createToggleButtonHandler$1 = (ctx)=>defineComponentHandler(toggleButton.key, ({ componentProperties: props })=>{
|
|
5236
5236
|
const commonProps = {
|
|
5237
5237
|
variant: changeCase.camelCase(props.Variant.value),
|
|
@@ -5246,7 +5246,7 @@ const createToggleButtonHandler$1 = (ctx)=>defineComponentHandler(toggleButton.k
|
|
|
5246
5246
|
loading: true
|
|
5247
5247
|
}
|
|
5248
5248
|
};
|
|
5249
|
-
return createLocalSnippetElement$
|
|
5249
|
+
return createLocalSnippetElement$C("ToggleButton", commonProps, [
|
|
5250
5250
|
props["Show Prefix Icon#6122:392"].value ? createSeedReactElement("PrefixIcon", {
|
|
5251
5251
|
svg: ctx.iconHandler.transform(props["Prefix Icon#6122:98"])
|
|
5252
5252
|
}) : undefined,
|
|
@@ -5475,6 +5475,29 @@ const privateTemplateChipGroup = {
|
|
|
5475
5475
|
}
|
|
5476
5476
|
}
|
|
5477
5477
|
};
|
|
5478
|
+
const privateComponentContentPlaceholder = {
|
|
5479
|
+
"name": "privateComponentContentPlaceholder",
|
|
5480
|
+
"key": "49e110c31e4a7e6e9872d369f889dc48c0f5cef4",
|
|
5481
|
+
"componentPropertyDefinitions": {
|
|
5482
|
+
"Type": {
|
|
5483
|
+
"type": "VARIANT",
|
|
5484
|
+
"variantOptions": [
|
|
5485
|
+
"Default",
|
|
5486
|
+
"Coupon",
|
|
5487
|
+
"Realty",
|
|
5488
|
+
"Car",
|
|
5489
|
+
"Jobs",
|
|
5490
|
+
"Buy-sell",
|
|
5491
|
+
"Business",
|
|
5492
|
+
"Post",
|
|
5493
|
+
"Group",
|
|
5494
|
+
"Image",
|
|
5495
|
+
"Food",
|
|
5496
|
+
"Commerce"
|
|
5497
|
+
]
|
|
5498
|
+
}
|
|
5499
|
+
}
|
|
5500
|
+
};
|
|
5478
5501
|
const privateComponentFieldFooterCharacterCount = {
|
|
5479
5502
|
"name": "privateComponentFieldFooterCharacterCount",
|
|
5480
5503
|
"key": "73f1a9275275c87b563e879e6948318523faf8e4",
|
|
@@ -5538,6 +5561,19 @@ const privateComponentIdentityPlaceholder = {
|
|
|
5538
5561
|
}
|
|
5539
5562
|
}
|
|
5540
5563
|
};
|
|
5564
|
+
const privateComponentIdentityPlaceholderStatic = {
|
|
5565
|
+
"name": "privateComponentIdentityPlaceholderStatic",
|
|
5566
|
+
"key": "628e8010084e94e426edf97021ddaadff1c9e008",
|
|
5567
|
+
"componentPropertyDefinitions": {
|
|
5568
|
+
"Identity": {
|
|
5569
|
+
"type": "VARIANT",
|
|
5570
|
+
"variantOptions": [
|
|
5571
|
+
"Person",
|
|
5572
|
+
"Business"
|
|
5573
|
+
]
|
|
5574
|
+
}
|
|
5575
|
+
}
|
|
5576
|
+
};
|
|
5541
5577
|
const privateComponentInputButtonPrefix = {
|
|
5542
5578
|
"name": "privateComponentInputButtonPrefix",
|
|
5543
5579
|
"key": "c7d12be4056a8171f6857ec4ef15d81bd18d8cae",
|
|
@@ -7196,6 +7232,30 @@ const componentAvatar = {
|
|
|
7196
7232
|
}
|
|
7197
7233
|
}
|
|
7198
7234
|
};
|
|
7235
|
+
const templateAvatarPreset = {
|
|
7236
|
+
"name": "templateAvatarPreset",
|
|
7237
|
+
"key": "42eefce6a1ab0d45780d2be5346d8ec5f6bace6e",
|
|
7238
|
+
"componentPropertyDefinitions": {
|
|
7239
|
+
"Image": {
|
|
7240
|
+
"type": "VARIANT",
|
|
7241
|
+
"variantOptions": [
|
|
7242
|
+
"001",
|
|
7243
|
+
"002",
|
|
7244
|
+
"003",
|
|
7245
|
+
"004",
|
|
7246
|
+
"005",
|
|
7247
|
+
"006",
|
|
7248
|
+
"007",
|
|
7249
|
+
"008",
|
|
7250
|
+
"009",
|
|
7251
|
+
"010",
|
|
7252
|
+
"011",
|
|
7253
|
+
"012",
|
|
7254
|
+
"013"
|
|
7255
|
+
]
|
|
7256
|
+
}
|
|
7257
|
+
}
|
|
7258
|
+
};
|
|
7199
7259
|
const componentAvatarStack = {
|
|
7200
7260
|
"name": "componentAvatarStack",
|
|
7201
7261
|
"key": "99d74f36d2989b450cc0c7f15eb6495888bb1cec",
|
|
@@ -7430,7 +7490,8 @@ const templateChatScreenPreset = {
|
|
|
7430
7490
|
"비즈프로필(고객 뷰)",
|
|
7431
7491
|
"비즈프로필 (사장님 뷰)",
|
|
7432
7492
|
"알바 (구인자 뷰)",
|
|
7433
|
-
"알바 (구직자 뷰)"
|
|
7493
|
+
"알바 (구직자 뷰)",
|
|
7494
|
+
"Service11"
|
|
7434
7495
|
]
|
|
7435
7496
|
}
|
|
7436
7497
|
}
|
|
@@ -9507,10 +9568,12 @@ var FIGMA_COMPONENTS = {
|
|
|
9507
9568
|
privateComponentAlertDialogActions: privateComponentAlertDialogActions,
|
|
9508
9569
|
privateComponentBottomSheetCloseButton: privateComponentBottomSheetCloseButton,
|
|
9509
9570
|
privateComponentBottomSheetHandle: privateComponentBottomSheetHandle,
|
|
9571
|
+
privateComponentContentPlaceholder: privateComponentContentPlaceholder,
|
|
9510
9572
|
privateComponentFieldFooterCharacterCount: privateComponentFieldFooterCharacterCount,
|
|
9511
9573
|
privateComponentFieldHeaderIndicator: privateComponentFieldHeaderIndicator,
|
|
9512
9574
|
privateComponentFieldHeaderSuffix: privateComponentFieldHeaderSuffix,
|
|
9513
9575
|
privateComponentIdentityPlaceholder: privateComponentIdentityPlaceholder,
|
|
9576
|
+
privateComponentIdentityPlaceholderStatic: privateComponentIdentityPlaceholderStatic,
|
|
9514
9577
|
privateComponentInputButtonPrefix: privateComponentInputButtonPrefix,
|
|
9515
9578
|
privateComponentInputButtonSuffix: privateComponentInputButtonSuffix,
|
|
9516
9579
|
privateComponentInputButtonValue: privateComponentInputButtonValue,
|
|
@@ -9561,6 +9624,7 @@ var FIGMA_COMPONENTS = {
|
|
|
9561
9624
|
privateTemplatePhoneNumberField: privateTemplatePhoneNumberField,
|
|
9562
9625
|
privateTemplatePinField: privateTemplatePinField,
|
|
9563
9626
|
privateTemplateRootTopNavigationPreset: privateTemplateRootTopNavigationPreset,
|
|
9627
|
+
templateAvatarPreset: templateAvatarPreset,
|
|
9564
9628
|
templateButtonGroup: templateButtonGroup,
|
|
9565
9629
|
templateChatScreenPreset: templateChatScreenPreset,
|
|
9566
9630
|
templateCheckboxField: templateCheckboxField,
|
|
@@ -9578,7 +9642,7 @@ var FIGMA_COMPONENTS = {
|
|
|
9578
9642
|
templateTopNavigationPreset: templateTopNavigationPreset
|
|
9579
9643
|
};
|
|
9580
9644
|
|
|
9581
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
9645
|
+
const { createLocalSnippetElement: createLocalSnippetElement$B } = createLocalSnippetHelper("action-button");
|
|
9582
9646
|
const createActionButtonHandler = (ctx)=>defineComponentHandler(componentActionButton.key, ({ componentProperties: props, layoutGrow })=>{
|
|
9583
9647
|
const states = props.State.value.split("-");
|
|
9584
9648
|
const { layout, children } = tsPattern.match(props.Layout.value).with("Icon Only", ()=>({
|
|
@@ -9622,7 +9686,7 @@ const createActionButtonHandler = (ctx)=>defineComponentHandler(componentActionB
|
|
|
9622
9686
|
flexGrow: true
|
|
9623
9687
|
}
|
|
9624
9688
|
};
|
|
9625
|
-
return createLocalSnippetElement$
|
|
9689
|
+
return createLocalSnippetElement$B("ActionButton", commonProps, children);
|
|
9626
9690
|
});
|
|
9627
9691
|
const createActionButtonGhostHandler = (ctx)=>defineComponentHandler(componentActionButtonGhostButton.key, (node)=>{
|
|
9628
9692
|
const props = node.componentProperties;
|
|
@@ -9682,28 +9746,28 @@ const createActionButtonGhostHandler = (ctx)=>defineComponentHandler(componentAc
|
|
|
9682
9746
|
flexGrow: true
|
|
9683
9747
|
}
|
|
9684
9748
|
};
|
|
9685
|
-
return createLocalSnippetElement$
|
|
9749
|
+
return createLocalSnippetElement$B("ActionButton", commonProps, children);
|
|
9686
9750
|
});
|
|
9687
9751
|
|
|
9688
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
9752
|
+
const { createLocalSnippetElement: createLocalSnippetElement$A } = createLocalSnippetHelper("alert-dialog");
|
|
9689
9753
|
const { createLocalSnippetElement: createLocalSnippetElementTrigger$3 } = createLocalSnippetHelper("action-button");
|
|
9690
9754
|
const createAlertDialogHandler = (ctx)=>{
|
|
9691
9755
|
const actionButtonHandler = createActionButtonHandler(ctx);
|
|
9692
9756
|
const actionButtonGhostHandler = createActionButtonGhostHandler(ctx);
|
|
9693
9757
|
return defineComponentHandler(componentAlertDialog.key, (node, traverse)=>{
|
|
9694
9758
|
const props = node.componentProperties;
|
|
9695
|
-
const alertDialogHeader = createLocalSnippetElement$
|
|
9759
|
+
const alertDialogHeader = createLocalSnippetElement$A("AlertDialogHeader", undefined, [
|
|
9696
9760
|
...props["Show Title#20361:14"].value ? [
|
|
9697
|
-
createLocalSnippetElement$
|
|
9761
|
+
createLocalSnippetElement$A("AlertDialogTitle", undefined, props["Title Text#20361:0"].value)
|
|
9698
9762
|
] : [],
|
|
9699
|
-
createLocalSnippetElement$
|
|
9763
|
+
createLocalSnippetElement$A("AlertDialogDescription", undefined, props["Description Text#20361:7"].value)
|
|
9700
9764
|
]);
|
|
9701
9765
|
const footerNodes = findAllInstances({
|
|
9702
9766
|
node,
|
|
9703
9767
|
key: privateComponentAlertDialogActions.key
|
|
9704
9768
|
});
|
|
9705
9769
|
if (footerNodes.length === 0 || footerNodes.length > 1) {
|
|
9706
|
-
return createLocalSnippetElement$
|
|
9770
|
+
return createLocalSnippetElement$A("AlertDialog", undefined, alertDialogHeader, {
|
|
9707
9771
|
comment: "Footer 영역을 확인해주세요."
|
|
9708
9772
|
});
|
|
9709
9773
|
}
|
|
@@ -9734,14 +9798,14 @@ const createAlertDialogHandler = (ctx)=>{
|
|
|
9734
9798
|
];
|
|
9735
9799
|
return createSeedReactElement("VStack", footerNodeProps, buttons);
|
|
9736
9800
|
}).exhaustive();
|
|
9737
|
-
const alertDialogFooter = createLocalSnippetElement$
|
|
9738
|
-
return createLocalSnippetElement$
|
|
9801
|
+
const alertDialogFooter = createLocalSnippetElement$A("AlertDialogFooter", undefined, alertDialogFooterChildren);
|
|
9802
|
+
return createLocalSnippetElement$A("AlertDialogRoot", {
|
|
9739
9803
|
open: true
|
|
9740
9804
|
}, [
|
|
9741
|
-
createLocalSnippetElement$
|
|
9805
|
+
createLocalSnippetElement$A("AlertDialogTrigger", {
|
|
9742
9806
|
asChild: true
|
|
9743
9807
|
}, createLocalSnippetElementTrigger$3("ActionButton", {}, "AlertDialog 열기")),
|
|
9744
|
-
createLocalSnippetElement$
|
|
9808
|
+
createLocalSnippetElement$A("AlertDialogContent", undefined, [
|
|
9745
9809
|
alertDialogHeader,
|
|
9746
9810
|
alertDialogFooter
|
|
9747
9811
|
])
|
|
@@ -9824,7 +9888,7 @@ const componentSelectBoxItemPrefixImage = {
|
|
|
9824
9888
|
"key": "d4a3d2da63f6da1552f5d8f947105390248c9018"
|
|
9825
9889
|
};
|
|
9826
9890
|
|
|
9827
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
9891
|
+
const { createLocalSnippetElement: createLocalSnippetElement$z } = createLocalSnippetHelper("app-bar");
|
|
9828
9892
|
const createAppBarMainHandler = (_ctx)=>{
|
|
9829
9893
|
return defineComponentHandler(privateComponentTopNavigationTitle.key, ({ componentProperties: props })=>{
|
|
9830
9894
|
const { title, subtitle } = tsPattern.match(props.Type.value).with("Title", ()=>({
|
|
@@ -9838,12 +9902,12 @@ const createAppBarMainHandler = (_ctx)=>{
|
|
|
9838
9902
|
subtitle: undefined
|
|
9839
9903
|
})).exhaustive();
|
|
9840
9904
|
if (title) {
|
|
9841
|
-
return createLocalSnippetElement$
|
|
9905
|
+
return createLocalSnippetElement$z("AppBarMain", {
|
|
9842
9906
|
title,
|
|
9843
9907
|
subtitle
|
|
9844
9908
|
});
|
|
9845
9909
|
}
|
|
9846
|
-
return createLocalSnippetElement$
|
|
9910
|
+
return createLocalSnippetElement$z("AppBarMain", undefined, undefined, {
|
|
9847
9911
|
comment: "AppBarMain 내부를 직접 작성해주세요."
|
|
9848
9912
|
});
|
|
9849
9913
|
});
|
|
@@ -9870,33 +9934,33 @@ const createAppBarHandler = (ctx)=>{
|
|
|
9870
9934
|
return appBarMainHandler.transform(mainNode, traverse);
|
|
9871
9935
|
})();
|
|
9872
9936
|
const leftChildren = tsPattern.match(props.Left.value).with("None", ()=>undefined).with("Back", ()=>[
|
|
9873
|
-
createLocalSnippetElement$
|
|
9937
|
+
createLocalSnippetElement$z("AppBarBackButton")
|
|
9874
9938
|
]).with("Close", ()=>[
|
|
9875
|
-
createLocalSnippetElement$
|
|
9939
|
+
createLocalSnippetElement$z("AppBarCloseButton")
|
|
9876
9940
|
]).with("Custom", ()=>{
|
|
9877
9941
|
const buttons = findAllInstances({
|
|
9878
9942
|
node,
|
|
9879
9943
|
key: privateComponentTopNavigationLeftIconButton.key
|
|
9880
9944
|
});
|
|
9881
9945
|
if (buttons.length > 0) {
|
|
9882
|
-
return buttons.map((button)=>createLocalSnippetElement$
|
|
9946
|
+
return buttons.map((button)=>createLocalSnippetElement$z("AppBarIconButton", undefined, ctx.iconHandler.transform(button.componentProperties["Icon#33580:0"]), {
|
|
9883
9947
|
comment: "AppBarIconButton에 aria-label 속성을 추가해주세요."
|
|
9884
9948
|
}));
|
|
9885
9949
|
}
|
|
9886
9950
|
return undefined;
|
|
9887
9951
|
}).exhaustive();
|
|
9888
|
-
const left = leftChildren && leftChildren.length > 0 ? createLocalSnippetElement$
|
|
9952
|
+
const left = leftChildren && leftChildren.length > 0 ? createLocalSnippetElement$z("AppBarLeft", {}, leftChildren) : undefined;
|
|
9889
9953
|
const rightChildren = tsPattern.match(props.Right.value).with("None", ()=>undefined).with("1 Icon Button", "2 Icon Button", "3 Icon Button", ()=>{
|
|
9890
9954
|
const buttons = findAllInstances({
|
|
9891
9955
|
node,
|
|
9892
9956
|
key: privateComponentTopNavigationRightIconButton.key
|
|
9893
9957
|
});
|
|
9894
|
-
return buttons.map((button)=>createLocalSnippetElement$
|
|
9958
|
+
return buttons.map((button)=>createLocalSnippetElement$z("AppBarIconButton", undefined, ctx.iconHandler.transform(button.componentProperties["Icon#6406:3"]), {
|
|
9895
9959
|
comment: "AppBarIconButton에 aria-label 속성을 추가해주세요."
|
|
9896
9960
|
}));
|
|
9897
9961
|
}).with("Text Button", ()=>undefined).exhaustive();
|
|
9898
|
-
const right = rightChildren && rightChildren.length > 0 ? createLocalSnippetElement$
|
|
9899
|
-
return createLocalSnippetElement$
|
|
9962
|
+
const right = rightChildren && rightChildren.length > 0 ? createLocalSnippetElement$z("AppBarRight", {}, rightChildren) : undefined;
|
|
9963
|
+
return createLocalSnippetElement$z("AppBar", {
|
|
9900
9964
|
theme,
|
|
9901
9965
|
tone
|
|
9902
9966
|
}, [
|
|
@@ -9916,21 +9980,21 @@ const createAppBarPresetHandler = (ctx)=>{
|
|
|
9916
9980
|
key: componentTopNavigation.key
|
|
9917
9981
|
});
|
|
9918
9982
|
if (!appBarNode) {
|
|
9919
|
-
return createLocalSnippetElement$
|
|
9983
|
+
return createLocalSnippetElement$z("AppBar");
|
|
9920
9984
|
}
|
|
9921
9985
|
return appBarHandler.transform(appBarNode, traverse);
|
|
9922
9986
|
});
|
|
9923
9987
|
};
|
|
9924
9988
|
|
|
9925
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
9989
|
+
const { createLocalSnippetElement: createLocalSnippetElement$y } = createLocalSnippetHelper("identity-placeholder");
|
|
9926
9990
|
const createIdentityPlaceholderHandler = (_ctx)=>defineComponentHandler(privateComponentIdentityPlaceholder.key, ({ componentProperties: props })=>{
|
|
9927
9991
|
const commonProps = {
|
|
9928
9992
|
identity: changeCase.camelCase(props.Identity.value)
|
|
9929
9993
|
};
|
|
9930
|
-
return createLocalSnippetElement$
|
|
9994
|
+
return createLocalSnippetElement$y("IdentityPlaceholder", commonProps);
|
|
9931
9995
|
});
|
|
9932
9996
|
|
|
9933
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
9997
|
+
const { createLocalSnippetElement: createLocalSnippetElement$x } = createLocalSnippetHelper("avatar");
|
|
9934
9998
|
const createAvatarHandler = (ctx)=>{
|
|
9935
9999
|
const identityPlaceholderHandler = createIdentityPlaceholderHandler();
|
|
9936
10000
|
return defineComponentHandler(componentAvatar.key, (node, traverse)=>{
|
|
@@ -9953,7 +10017,7 @@ const createAvatarHandler = (ctx)=>{
|
|
|
9953
10017
|
},
|
|
9954
10018
|
size: props.Size.value
|
|
9955
10019
|
};
|
|
9956
|
-
return createLocalSnippetElement$
|
|
10020
|
+
return createLocalSnippetElement$x("Avatar", commonProps, props["Badge"].value === "None" ? undefined : createLocalSnippetElement$x("AvatarBadge", {
|
|
9957
10021
|
asChild: true
|
|
9958
10022
|
}, createElement("img", {
|
|
9959
10023
|
src: "https://placehold.co/20x20"
|
|
@@ -9965,7 +10029,7 @@ const createAvatarHandler = (ctx)=>{
|
|
|
9965
10029
|
});
|
|
9966
10030
|
};
|
|
9967
10031
|
|
|
9968
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
10032
|
+
const { createLocalSnippetElement: createLocalSnippetElement$w } = createLocalSnippetHelper("avatar");
|
|
9969
10033
|
const createAvatarStackHandler = (ctx)=>{
|
|
9970
10034
|
const avatarHandler = createAvatarHandler();
|
|
9971
10035
|
return defineComponentHandler(componentAvatarStack.key, (node, traverse)=>{
|
|
@@ -9978,7 +10042,7 @@ const createAvatarStackHandler = (ctx)=>{
|
|
|
9978
10042
|
size: props.Size.value
|
|
9979
10043
|
};
|
|
9980
10044
|
const avatarStackChildren = avatarNodes.map((avatarNode)=>avatarHandler.transform(avatarNode, traverse));
|
|
9981
|
-
return createLocalSnippetElement$
|
|
10045
|
+
return createLocalSnippetElement$w("AvatarStack", commonProps, avatarStackChildren);
|
|
9982
10046
|
});
|
|
9983
10047
|
};
|
|
9984
10048
|
|
|
@@ -9991,7 +10055,7 @@ const createBadgeHandler = (_ctx)=>defineComponentHandler(componentBadge.key, ({
|
|
|
9991
10055
|
return createSeedReactElement("Badge", commonProps, props["Label#1584:0"].value);
|
|
9992
10056
|
});
|
|
9993
10057
|
|
|
9994
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
10058
|
+
const { createLocalSnippetElement: createLocalSnippetElement$v } = createLocalSnippetHelper("bottom-sheet");
|
|
9995
10059
|
const { createLocalSnippetElement: createLocalSnippetElementTrigger$2 } = createLocalSnippetHelper("action-button");
|
|
9996
10060
|
const createBottomSheetHandler = (_ctx)=>defineComponentHandler(componentBottomSheet.key, (node, traverse)=>{
|
|
9997
10061
|
const props = node.componentProperties;
|
|
@@ -10008,33 +10072,33 @@ const createBottomSheetHandler = (_ctx)=>defineComponentHandler(componentBottomS
|
|
|
10008
10072
|
node,
|
|
10009
10073
|
key: props["Contents#25320:0"].componentKey
|
|
10010
10074
|
});
|
|
10011
|
-
const bottomSheetBody = bodyNodes.length === 1 ? createLocalSnippetElement$
|
|
10075
|
+
const bottomSheetBody = bodyNodes.length === 1 ? createLocalSnippetElement$v("BottomSheetBody", {}, bodyNodes[0].children.map(traverse)) : createLocalSnippetElement$v("BottomSheetBody", {}, createElement("div", undefined, "No content available"));
|
|
10012
10076
|
const footerNodes = findAllInstances({
|
|
10013
10077
|
node,
|
|
10014
10078
|
// TODO: Bottom Action Bar (WIP) handler의 키. 해당 컴포넌트(템플릿) 핸들러 작성 시 handler.transform()으로 대체
|
|
10015
10079
|
key: componentBottomActionBarFigmaOnly.key
|
|
10016
10080
|
});
|
|
10017
|
-
const bottomSheetFooter = props["Show Footer#25162:14"].value && footerNodes.length === 1 ? createLocalSnippetElement$
|
|
10018
|
-
return createLocalSnippetElement$
|
|
10081
|
+
const bottomSheetFooter = props["Show Footer#25162:14"].value && footerNodes.length === 1 ? createLocalSnippetElement$v("BottomSheetFooter", {}, footerNodes[0].children.map(traverse)) : undefined;
|
|
10082
|
+
return createLocalSnippetElement$v("BottomSheetRoot", {
|
|
10019
10083
|
defaultOpen: true,
|
|
10020
10084
|
headerAlign
|
|
10021
10085
|
}, [
|
|
10022
|
-
createLocalSnippetElement$
|
|
10086
|
+
createLocalSnippetElement$v("BottomSheetTrigger", {
|
|
10023
10087
|
asChild: true
|
|
10024
10088
|
}, createLocalSnippetElementTrigger$2("ActionButton", {}, "BottomSheet 열기")),
|
|
10025
|
-
createLocalSnippetElement$
|
|
10089
|
+
createLocalSnippetElement$v("BottomSheetContent", contentProps, [
|
|
10026
10090
|
bottomSheetBody,
|
|
10027
10091
|
bottomSheetFooter
|
|
10028
10092
|
])
|
|
10029
10093
|
]);
|
|
10030
10094
|
});
|
|
10031
10095
|
|
|
10032
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
10096
|
+
const { createLocalSnippetElement: createLocalSnippetElement$u } = createLocalSnippetHelper("callout");
|
|
10033
10097
|
const createCalloutHandler = (ctx)=>defineComponentHandler(componentCallout.key, ({ componentProperties: props, children })=>{
|
|
10034
10098
|
const tag = tsPattern.match(props.Interaction.value).with("Display", ()=>"Callout").with("Actionable", ()=>"ActionableCallout").with("Dismissible", ()=>"DismissibleCallout").exhaustive();
|
|
10035
10099
|
const textNode = children.find((child)=>child.type === "TEXT");
|
|
10036
10100
|
if (!textNode) {
|
|
10037
|
-
return createLocalSnippetElement$
|
|
10101
|
+
return createLocalSnippetElement$u(tag, undefined, undefined, {
|
|
10038
10102
|
comment: "내용을 제공해주세요."
|
|
10039
10103
|
});
|
|
10040
10104
|
}
|
|
@@ -10086,7 +10150,7 @@ const createCalloutHandler = (ctx)=>defineComponentHandler(componentCallout.key,
|
|
|
10086
10150
|
prefixIcon: ctx.iconHandler.transform(props["Prefix Icon#35087:0"])
|
|
10087
10151
|
}
|
|
10088
10152
|
};
|
|
10089
|
-
return createLocalSnippetElement$
|
|
10153
|
+
return createLocalSnippetElement$u(tag, commonProps);
|
|
10090
10154
|
});
|
|
10091
10155
|
|
|
10092
10156
|
/**
|
|
@@ -10177,7 +10241,7 @@ const createCalloutHandler = (ctx)=>defineComponentHandler(componentCallout.key,
|
|
|
10177
10241
|
});
|
|
10178
10242
|
};
|
|
10179
10243
|
|
|
10180
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
10244
|
+
const { createLocalSnippetElement: createLocalSnippetElement$t } = createLocalSnippetHelper("checkbox");
|
|
10181
10245
|
const createCheckboxHandler = (_ctx)=>defineComponentHandler(componentCheckbox.key, ({ componentProperties: props })=>{
|
|
10182
10246
|
const tone = tsPattern.match(props.Tone.value).with("Neutral", ()=>"neutral").with("🚫[Deprecated]Brand", ()=>"brand").exhaustive();
|
|
10183
10247
|
const commonProps = {
|
|
@@ -10197,7 +10261,7 @@ const createCheckboxHandler = (_ctx)=>defineComponentHandler(componentCheckbox.k
|
|
|
10197
10261
|
disabled: true
|
|
10198
10262
|
}
|
|
10199
10263
|
};
|
|
10200
|
-
return createLocalSnippetElement$
|
|
10264
|
+
return createLocalSnippetElement$t("Checkbox", commonProps, undefined, {
|
|
10201
10265
|
comment: "CheckboxGroup으로 묶어서 사용하는 것을 권장합니다."
|
|
10202
10266
|
});
|
|
10203
10267
|
});
|
|
@@ -10226,7 +10290,7 @@ const createCheckboxGroupFieldHandler = (ctx)=>{
|
|
|
10226
10290
|
...headerProps,
|
|
10227
10291
|
...footerProps
|
|
10228
10292
|
};
|
|
10229
|
-
return createLocalSnippetElement$
|
|
10293
|
+
return createLocalSnippetElement$t("CheckboxGroup", commonProps, items.map((item)=>{
|
|
10230
10294
|
const result = checkboxHandler.transform(item, traverse);
|
|
10231
10295
|
return {
|
|
10232
10296
|
...result,
|
|
@@ -10245,7 +10309,7 @@ const createCheckboxGroupFieldHandler = (ctx)=>{
|
|
|
10245
10309
|
});
|
|
10246
10310
|
};
|
|
10247
10311
|
|
|
10248
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
10312
|
+
const { createLocalSnippetElement: createLocalSnippetElement$s } = createLocalSnippetHelper("checkbox");
|
|
10249
10313
|
const createCheckmarkHandler = (_ctx)=>defineComponentHandler(componentCheckmark.key, ({ componentProperties: props })=>{
|
|
10250
10314
|
const tone = tsPattern.match(props.Tone.value).with("Neutral", ()=>"neutral").with("🚫[Deprecated]Brand", ()=>"brand").exhaustive();
|
|
10251
10315
|
const commonProps = {
|
|
@@ -10253,13 +10317,13 @@ const createCheckmarkHandler = (_ctx)=>defineComponentHandler(componentCheckmark
|
|
|
10253
10317
|
variant: changeCase.camelCase(props.Shape.value),
|
|
10254
10318
|
size: handleSizeProp(props.Size.value)
|
|
10255
10319
|
};
|
|
10256
|
-
return createLocalSnippetElement$
|
|
10320
|
+
return createLocalSnippetElement$s("Checkmark", commonProps);
|
|
10257
10321
|
});
|
|
10258
10322
|
|
|
10259
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
10323
|
+
const { createLocalSnippetElement: createLocalSnippetElement$r } = createLocalSnippetHelper("chip");
|
|
10260
10324
|
const createChipIconSuffixHandler = (ctx)=>{
|
|
10261
10325
|
return defineComponentHandler(componentChipSuffixIcon.key, ({ componentProperties })=>{
|
|
10262
|
-
return createLocalSnippetElement$
|
|
10326
|
+
return createLocalSnippetElement$r("Chip.SuffixIcon", undefined, createSeedReactElement("Icon", {
|
|
10263
10327
|
svg: ctx.iconHandler.transform(componentProperties["Icon#33203:0"])
|
|
10264
10328
|
}));
|
|
10265
10329
|
});
|
|
@@ -10269,7 +10333,7 @@ const createChipHandler = (ctx)=>{
|
|
|
10269
10333
|
const iconSuffixHandler = createChipIconSuffixHandler(ctx);
|
|
10270
10334
|
return defineComponentHandler(componentChip.key, (node, traverse)=>{
|
|
10271
10335
|
const props = node.componentProperties;
|
|
10272
|
-
const prefix = tsPattern.match(props["Prefix Type"].value).with("None", "Image", ()=>undefined).with("Icon", ()=>createLocalSnippetElement$
|
|
10336
|
+
const prefix = tsPattern.match(props["Prefix Type"].value).with("None", "Image", ()=>undefined).with("Icon", ()=>createLocalSnippetElement$r("Chip.PrefixIcon", undefined, createSeedReactElement("Icon", {
|
|
10273
10337
|
svg: ctx.iconHandler.transform(props["Prefix Icon#8722:0"])
|
|
10274
10338
|
}))).with("Avatar", ()=>{
|
|
10275
10339
|
const [avatar] = findAllInstances({
|
|
@@ -10277,9 +10341,9 @@ const createChipHandler = (ctx)=>{
|
|
|
10277
10341
|
key: avatarHandler.key
|
|
10278
10342
|
});
|
|
10279
10343
|
if (!avatar) return undefined;
|
|
10280
|
-
return createLocalSnippetElement$
|
|
10344
|
+
return createLocalSnippetElement$r("Chip.PrefixAvatar", undefined, avatarHandler.transform(avatar, traverse));
|
|
10281
10345
|
}).exhaustive();
|
|
10282
|
-
const label = createLocalSnippetElement$
|
|
10346
|
+
const label = createLocalSnippetElement$r("Chip.Label", undefined, props["Label#7185:0"].value);
|
|
10283
10347
|
const [suffixIcon] = findAllInstances({
|
|
10284
10348
|
node,
|
|
10285
10349
|
key: componentChipSuffixIcon.key
|
|
@@ -10295,7 +10359,7 @@ const createChipHandler = (ctx)=>{
|
|
|
10295
10359
|
disabled: true
|
|
10296
10360
|
}
|
|
10297
10361
|
};
|
|
10298
|
-
return createLocalSnippetElement$
|
|
10362
|
+
return createLocalSnippetElement$r("Chip.Toggle", commonProps, [
|
|
10299
10363
|
prefix,
|
|
10300
10364
|
label,
|
|
10301
10365
|
suffixIcon ? iconSuffixHandler.transform(suffixIcon, traverse) : undefined
|
|
@@ -10305,6 +10369,14 @@ const createChipHandler = (ctx)=>{
|
|
|
10305
10369
|
});
|
|
10306
10370
|
};
|
|
10307
10371
|
|
|
10372
|
+
const { createLocalSnippetElement: createLocalSnippetElement$q } = createLocalSnippetHelper("content-placeholder");
|
|
10373
|
+
const createContentPlaceholderHandler = (_ctx)=>defineComponentHandler(privateComponentContentPlaceholder.key, ({ componentProperties: props })=>{
|
|
10374
|
+
const commonProps = {
|
|
10375
|
+
type: changeCase.camelCase(props.Type.value)
|
|
10376
|
+
};
|
|
10377
|
+
return createLocalSnippetElement$q("ContentPlaceholder", commonProps);
|
|
10378
|
+
});
|
|
10379
|
+
|
|
10308
10380
|
const { createLocalSnippetElement: createLocalSnippetElement$p } = createLocalSnippetHelper("contextual-floating-button");
|
|
10309
10381
|
const createContextualFloatingButtonHandler = (ctx)=>defineComponentHandler(componentContextualFloatingButton.key, ({ componentProperties: props })=>{
|
|
10310
10382
|
const states = props.State.value.split("-");
|
|
@@ -10585,8 +10657,13 @@ const createImageFrameIconHandler = (ctx)=>{
|
|
|
10585
10657
|
});
|
|
10586
10658
|
};
|
|
10587
10659
|
const createImageFrameHandler = (ctx)=>{
|
|
10660
|
+
const contentPlaceholderHandler = createContentPlaceholderHandler();
|
|
10588
10661
|
return defineComponentHandler(componentImageFrame.key, (node, traverse)=>{
|
|
10589
10662
|
const props = node.componentProperties;
|
|
10663
|
+
const [placeholder] = findAllInstances({
|
|
10664
|
+
node,
|
|
10665
|
+
key: contentPlaceholderHandler.key
|
|
10666
|
+
});
|
|
10590
10667
|
const floaters = [];
|
|
10591
10668
|
for (const { showKey, placement } of CORNER_CONFIGS){
|
|
10592
10669
|
if (!props[showKey].value) continue;
|
|
@@ -10606,6 +10683,9 @@ const createImageFrameHandler = (ctx)=>{
|
|
|
10606
10683
|
...props.Rounded.value === "True" && {
|
|
10607
10684
|
borderRadius: ctx.valueResolver.getFormattedValue.topLeftRadius(node)
|
|
10608
10685
|
},
|
|
10686
|
+
...placeholder && {
|
|
10687
|
+
fallback: contentPlaceholderHandler.transform(placeholder, traverse)
|
|
10688
|
+
},
|
|
10609
10689
|
...node.layoutGrow === 1 ? {
|
|
10610
10690
|
flexGrow: true
|
|
10611
10691
|
} : node.layoutAlign === "STRETCH" ? {
|
|
@@ -12088,6 +12168,7 @@ var currentHandlers = {
|
|
|
12088
12168
|
createCheckboxHandler: createCheckboxHandler,
|
|
12089
12169
|
createCheckmarkHandler: createCheckmarkHandler,
|
|
12090
12170
|
createChipHandler: createChipHandler,
|
|
12171
|
+
createContentPlaceholderHandler: createContentPlaceholderHandler,
|
|
12091
12172
|
createContextualFloatingButtonHandler: createContextualFloatingButtonHandler,
|
|
12092
12173
|
createDatePickerFieldHandler: createDatePickerFieldHandler,
|
|
12093
12174
|
createDividerHandler: createDividerHandler,
|
|
@@ -13993,6 +14074,16 @@ const FIGMA_ICONS = {
|
|
|
13993
14074
|
"type": "monochrome",
|
|
13994
14075
|
"weight": "Line"
|
|
13995
14076
|
},
|
|
14077
|
+
"dc015c59783f44e084809cc62404a93493842bb2": {
|
|
14078
|
+
"name": "icon_map",
|
|
14079
|
+
"type": "monochrome",
|
|
14080
|
+
"weight": "Fill"
|
|
14081
|
+
},
|
|
14082
|
+
"3724666f033ddb53644d75d196f55c076cd7ae12": {
|
|
14083
|
+
"name": "icon_map",
|
|
14084
|
+
"type": "monochrome",
|
|
14085
|
+
"weight": "Line"
|
|
14086
|
+
},
|
|
13996
14087
|
"07663395a21fd95087d677438538d8f61403c842": {
|
|
13997
14088
|
"name": "icon_map_locationpin",
|
|
13998
14089
|
"type": "monochrome",
|
|
@@ -14833,6 +14924,16 @@ const FIGMA_ICONS = {
|
|
|
14833
14924
|
"type": "monochrome",
|
|
14834
14925
|
"weight": "Line"
|
|
14835
14926
|
},
|
|
14927
|
+
"223debab61daa1aafd381a078e32b18f46ccbd59": {
|
|
14928
|
+
"name": "icon_square_splited_vertical_left",
|
|
14929
|
+
"type": "monochrome",
|
|
14930
|
+
"weight": "Fill"
|
|
14931
|
+
},
|
|
14932
|
+
"3e9e65a307d3ce3135bf5db67ca987a791294a70": {
|
|
14933
|
+
"name": "icon_square_splited_vertical_left",
|
|
14934
|
+
"type": "monochrome",
|
|
14935
|
+
"weight": "Line"
|
|
14936
|
+
},
|
|
14836
14937
|
"dba88cf915454127856088f2523c40ff5f4d21df": {
|
|
14837
14938
|
"name": "icon_square2_stacked",
|
|
14838
14939
|
"type": "monochrome",
|
|
@@ -15419,6 +15520,10 @@ const FIGMA_ICONS = {
|
|
|
15419
15520
|
"name": "icon_car_frontside",
|
|
15420
15521
|
"type": "multicolor"
|
|
15421
15522
|
},
|
|
15523
|
+
"3591ea6c06e913f34881b9a873f8d7de8db47aa0": {
|
|
15524
|
+
"name": "icon_car_frontside_bubble",
|
|
15525
|
+
"type": "multicolor"
|
|
15526
|
+
},
|
|
15422
15527
|
"dce1bb113c685af444682183176ec0cb583d114f": {
|
|
15423
15528
|
"name": "icon_card",
|
|
15424
15529
|
"type": "multicolor"
|
|
@@ -15627,6 +15732,10 @@ const FIGMA_ICONS = {
|
|
|
15627
15732
|
"name": "icon_tshirt_bubble2",
|
|
15628
15733
|
"type": "multicolor"
|
|
15629
15734
|
},
|
|
15735
|
+
"054c908bd177d6ff85ff90b7ab3887fa17a6c3fb": {
|
|
15736
|
+
"name": "icon_vertrectangle_tiltedstacked",
|
|
15737
|
+
"type": "multicolor"
|
|
15738
|
+
},
|
|
15630
15739
|
"ab66ee11be5539d340a87f1e9ca021fef1db3ef8": {
|
|
15631
15740
|
"name": "icon_vest_horizstripe",
|
|
15632
15741
|
"type": "multicolor"
|