@seed-design/figma 0.1.8 → 0.1.10
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 +192 -141
- package/lib/codegen/index.d.ts +75 -36
- package/lib/codegen/index.d.ts.map +1 -1
- package/lib/codegen/index.js +192 -141
- package/lib/codegen/targets/react/index.cjs +301 -232
- package/lib/codegen/targets/react/index.d.ts +3 -2
- package/lib/codegen/targets/react/index.d.ts.map +1 -1
- package/lib/codegen/targets/react/index.js +301 -232
- package/lib/index.cjs +193 -141
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +193 -141
- package/package.json +2 -2
- package/src/codegen/component-properties.ts +8 -0
- package/src/codegen/targets/figma/props.ts +1 -1
- package/src/codegen/targets/react/component/handlers/avatar-stack.ts +17 -12
- package/src/codegen/targets/react/component/handlers/checkbox.ts +3 -5
- package/src/codegen/targets/react/component/handlers/chip.ts +35 -14
- package/src/codegen/targets/react/component/handlers/identity-placeholder.ts +4 -2
- package/src/codegen/targets/react/component/handlers/manner-temp.ts +1 -1
- package/src/codegen/targets/react/component/handlers/progress-circle.ts +1 -1
- package/src/codegen/targets/react/component/handlers/reaction-button.ts +3 -5
- package/src/codegen/targets/react/component/handlers/select-box.ts +6 -8
- package/src/codegen/targets/react/component/handlers/switch.ts +4 -11
- package/src/codegen/targets/react/component/handlers/toggle-button.ts +3 -5
- package/src/codegen/targets/react/instance.ts +15 -1
- package/src/codegen/targets/react/props.ts +6 -5
- package/src/entities/data/__generated__/component-sets/checkbox.d.ts +9 -7
- package/src/entities/data/__generated__/component-sets/checkbox.mjs +9 -7
- package/src/entities/data/__generated__/component-sets/checkmark.d.ts +9 -7
- package/src/entities/data/__generated__/component-sets/checkmark.mjs +9 -7
- package/src/entities/data/__generated__/component-sets/chip.d.ts +11 -7
- package/src/entities/data/__generated__/component-sets/chip.mjs +11 -7
- package/src/entities/data/__generated__/component-sets/index.d.ts +1 -0
- package/src/entities/data/__generated__/component-sets/index.mjs +1 -0
- package/src/entities/data/__generated__/component-sets/progress-circle.d.ts +1 -1
- package/src/entities/data/__generated__/component-sets/progress-circle.mjs +1 -1
- package/src/entities/data/__generated__/component-sets/radio-mark.d.ts +4 -10
- package/src/entities/data/__generated__/component-sets/radio-mark.mjs +4 -10
- package/src/entities/data/__generated__/component-sets/radio.d.ts +8 -4
- package/src/entities/data/__generated__/component-sets/radio.mjs +8 -4
- package/src/entities/data/__generated__/component-sets/reaction-button.d.ts +8 -5
- package/src/entities/data/__generated__/component-sets/reaction-button.mjs +8 -5
- package/src/entities/data/__generated__/component-sets/select-box.d.ts +8 -3
- package/src/entities/data/__generated__/component-sets/select-box.mjs +8 -3
- package/src/entities/data/__generated__/component-sets/superscript-child.d.ts +18 -0
- package/src/entities/data/__generated__/component-sets/superscript-child.mjs +18 -0
- package/src/entities/data/__generated__/component-sets/switch.d.ts +21 -7
- package/src/entities/data/__generated__/component-sets/switch.mjs +21 -7
- package/src/entities/data/__generated__/component-sets/toggle-button.d.ts +8 -5
- package/src/entities/data/__generated__/component-sets/toggle-button.mjs +8 -5
- package/src/normalizer/from-plugin.ts +1 -0
- package/src/normalizer/types.ts +2 -0
|
@@ -682,7 +682,7 @@ function createValueResolver({ variableService, variableNameFormatter, styleServ
|
|
|
682
682
|
function createContainerLayoutPropsConverter(valueResolver) {
|
|
683
683
|
return createPropsConverter({
|
|
684
684
|
handlers: {
|
|
685
|
-
direction: ({ layoutMode })=>match(layoutMode).with("HORIZONTAL", ()=>"row").with("VERTICAL", ()=>"column").with("NONE", ()=>undefined).with(undefined, ()=>undefined).exhaustive(),
|
|
685
|
+
direction: ({ layoutMode })=>match(layoutMode).with("HORIZONTAL", ()=>"row").with("VERTICAL", ()=>"column").with("GRID", ()=>undefined).with("NONE", ()=>undefined).with(undefined, ()=>undefined).exhaustive(),
|
|
686
686
|
justify: ({ primaryAxisAlignItems })=>match(primaryAxisAlignItems).with("MIN", ()=>"flex-start").with("CENTER", ()=>"center").with("MAX", ()=>"flex-end").with("SPACE_BETWEEN", ()=>"space-between").with(undefined, ()=>undefined).exhaustive(),
|
|
687
687
|
align: ({ counterAxisAlignItems, children })=>{
|
|
688
688
|
const isStretch = children.every((child)=>{
|
|
@@ -745,7 +745,7 @@ function createContainerLayoutPropsConverter(valueResolver) {
|
|
|
745
745
|
function createSelfLayoutPropsConverter(valueResolver) {
|
|
746
746
|
return createPropsConverter({
|
|
747
747
|
handlers: {
|
|
748
|
-
|
|
748
|
+
flexGrow: ({ layoutGrow })=>layoutGrow === 1 ? true : layoutGrow,
|
|
749
749
|
alignSelf: ({ layoutAlign })=>match(layoutAlign).with("STRETCH", ()=>"stretch").with("INHERIT", ()=>undefined).with("MIN", ()=>undefined) // Deprecated in Figma
|
|
750
750
|
.with("CENTER", ()=>undefined) // Deprecated in Figma
|
|
751
751
|
.with("MAX", ()=>undefined) // Deprecated in Figma
|
|
@@ -758,7 +758,7 @@ function createSelfLayoutPropsConverter(valueResolver) {
|
|
|
758
758
|
maxWidth: (node)=>node.layoutSizingHorizontal === "HUG" ? valueResolver.getFormattedValue.maxWidth(node) : undefined
|
|
759
759
|
},
|
|
760
760
|
defaults: {
|
|
761
|
-
|
|
761
|
+
flexGrow: 0
|
|
762
762
|
}
|
|
763
763
|
});
|
|
764
764
|
}
|
|
@@ -865,7 +865,7 @@ function createVectorChildrenFillPropsConverter(valueResolver) {
|
|
|
865
865
|
function createStrokePropsConverter(valueResolver) {
|
|
866
866
|
return definePropsConverter((node)=>{
|
|
867
867
|
const borderColor = valueResolver.getFormattedValue.stroke(node);
|
|
868
|
-
const borderWidth = borderColor ? node.strokeWeight : undefined;
|
|
868
|
+
const borderWidth = borderColor && node.strokeWeight ? `${node.strokeWeight}` : undefined;
|
|
869
869
|
return {
|
|
870
870
|
borderColor,
|
|
871
871
|
borderWidth
|
|
@@ -987,7 +987,18 @@ function createInstanceTransformer({ iconHandler, propsConverters, componentHand
|
|
|
987
987
|
}
|
|
988
988
|
const componentHandler = componentSetKey ? componentHandlers[componentSetKey] : componentHandlers[componentKey];
|
|
989
989
|
if (componentHandler) {
|
|
990
|
-
|
|
990
|
+
const handled = componentHandler.transform(node, traverse);
|
|
991
|
+
if (node.overrides && node.overrides.length > 0) {
|
|
992
|
+
const overriddenFields = node.overrides.flatMap(({ overriddenFields })=>overriddenFields);
|
|
993
|
+
return {
|
|
994
|
+
...handled,
|
|
995
|
+
meta: {
|
|
996
|
+
...handled.meta,
|
|
997
|
+
comment: `${handled.meta.comment ? `${handled.meta.comment} ` : ""}오버라이드된 필드: ${overriddenFields.join(", ")}`
|
|
998
|
+
}
|
|
999
|
+
};
|
|
1000
|
+
}
|
|
1001
|
+
return handled;
|
|
991
1002
|
}
|
|
992
1003
|
return frameTransformer(node, traverse);
|
|
993
1004
|
});
|
|
@@ -1009,7 +1020,7 @@ function createTextTransformer({ propsConverters }) {
|
|
|
1009
1020
|
});
|
|
1010
1021
|
}
|
|
1011
1022
|
|
|
1012
|
-
const metadata$
|
|
1023
|
+
const metadata$L = {
|
|
1013
1024
|
"name": "🔵 [Template] Button Group",
|
|
1014
1025
|
"key": "29109a34197f2eb5d390b1d9ebba270979a7b302",
|
|
1015
1026
|
"componentPropertyDefinitions": {
|
|
@@ -1037,7 +1048,7 @@ const metadata$K = {
|
|
|
1037
1048
|
}
|
|
1038
1049
|
};
|
|
1039
1050
|
|
|
1040
|
-
const metadata$
|
|
1051
|
+
const metadata$K = {
|
|
1041
1052
|
"name": "🔵 [Template] Chip Group",
|
|
1042
1053
|
"key": "5b1155aae0f90d1bce6a7499f53a547e88ec3b86",
|
|
1043
1054
|
"componentPropertyDefinitions": {
|
|
@@ -1067,7 +1078,7 @@ const metadata$J = {
|
|
|
1067
1078
|
}
|
|
1068
1079
|
};
|
|
1069
1080
|
|
|
1070
|
-
const metadata$
|
|
1081
|
+
const metadata$J = {
|
|
1071
1082
|
"name": "🔵 [Template] Completion",
|
|
1072
1083
|
"key": "d91c789c66c2da665d820318f1a4d8671946eb79",
|
|
1073
1084
|
"componentPropertyDefinitions": {
|
|
@@ -1096,7 +1107,7 @@ const metadata$I = {
|
|
|
1096
1107
|
}
|
|
1097
1108
|
};
|
|
1098
1109
|
|
|
1099
|
-
const metadata$
|
|
1110
|
+
const metadata$I = {
|
|
1100
1111
|
"name": "🔵 [Template] Error State",
|
|
1101
1112
|
"key": "39b4ecd0b5b4d35f4dc5791765ca04aa062a5172",
|
|
1102
1113
|
"componentPropertyDefinitions": {
|
|
@@ -1129,7 +1140,7 @@ const metadata$H = {
|
|
|
1129
1140
|
}
|
|
1130
1141
|
};
|
|
1131
1142
|
|
|
1132
|
-
const metadata$
|
|
1143
|
+
const metadata$H = {
|
|
1133
1144
|
"name": "🔵 [Template] Select Box Group",
|
|
1134
1145
|
"key": "a3d58bb8540600878742cdcf2608a4b3851667ec",
|
|
1135
1146
|
"componentPropertyDefinitions": {
|
|
@@ -1154,7 +1165,7 @@ const metadata$G = {
|
|
|
1154
1165
|
}
|
|
1155
1166
|
};
|
|
1156
1167
|
|
|
1157
|
-
const metadata$
|
|
1168
|
+
const metadata$G = {
|
|
1158
1169
|
"name": "🔵 [Template] Top Navigation",
|
|
1159
1170
|
"key": "74f045c1972dc31d0fddd0a0027537b6779cd0e8",
|
|
1160
1171
|
"componentPropertyDefinitions": {
|
|
@@ -1182,7 +1193,7 @@ const metadata$F = {
|
|
|
1182
1193
|
}
|
|
1183
1194
|
};
|
|
1184
1195
|
|
|
1185
|
-
const metadata$
|
|
1196
|
+
const metadata$F = {
|
|
1186
1197
|
"name": "🟢 Action Button",
|
|
1187
1198
|
"key": "450ede9d0bf42fc6ef14345c77e6e407d6d5ee89",
|
|
1188
1199
|
"componentPropertyDefinitions": {
|
|
@@ -1242,7 +1253,7 @@ const metadata$E = {
|
|
|
1242
1253
|
}
|
|
1243
1254
|
};
|
|
1244
1255
|
|
|
1245
|
-
const metadata$
|
|
1256
|
+
const metadata$E = {
|
|
1246
1257
|
"name": "🟢 Alert Dialog",
|
|
1247
1258
|
"key": "e0c89524a554ca1bf95c016b7255f29e257624aa",
|
|
1248
1259
|
"componentPropertyDefinitions": {
|
|
@@ -1269,7 +1280,7 @@ const metadata$D = {
|
|
|
1269
1280
|
}
|
|
1270
1281
|
};
|
|
1271
1282
|
|
|
1272
|
-
const metadata$
|
|
1283
|
+
const metadata$D = {
|
|
1273
1284
|
"name": "🟢 Avatar",
|
|
1274
1285
|
"key": "4a8853c3068c08b69b13e71dd42ce186e968697e",
|
|
1275
1286
|
"componentPropertyDefinitions": {
|
|
@@ -1301,7 +1312,7 @@ const metadata$C = {
|
|
|
1301
1312
|
}
|
|
1302
1313
|
};
|
|
1303
1314
|
|
|
1304
|
-
const metadata$
|
|
1315
|
+
const metadata$C = {
|
|
1305
1316
|
"name": "🟢 Avatar Stack",
|
|
1306
1317
|
"key": "e8e91e01000d878742c55cd6e44b6786460440f7",
|
|
1307
1318
|
"componentPropertyDefinitions": {
|
|
@@ -1321,7 +1332,7 @@ const metadata$B = {
|
|
|
1321
1332
|
}
|
|
1322
1333
|
};
|
|
1323
1334
|
|
|
1324
|
-
const metadata$
|
|
1335
|
+
const metadata$B = {
|
|
1325
1336
|
"name": "🟢 Badge",
|
|
1326
1337
|
"key": "04609a35d47a1a0ef4904b3c25f79451892a85a1",
|
|
1327
1338
|
"componentPropertyDefinitions": {
|
|
@@ -1356,7 +1367,7 @@ const metadata$A = {
|
|
|
1356
1367
|
}
|
|
1357
1368
|
};
|
|
1358
1369
|
|
|
1359
|
-
const metadata$
|
|
1370
|
+
const metadata$A = {
|
|
1360
1371
|
"name": "🟢 Bottom Navigation / Global",
|
|
1361
1372
|
"key": "983650a4dff639b38bf68ff6004efc8ec4fb5c20",
|
|
1362
1373
|
"componentPropertyDefinitions": {
|
|
@@ -1380,7 +1391,7 @@ const metadata$z = {
|
|
|
1380
1391
|
}
|
|
1381
1392
|
};
|
|
1382
1393
|
|
|
1383
|
-
const metadata$
|
|
1394
|
+
const metadata$z = {
|
|
1384
1395
|
"name": "🟢 Bottom Navigation / KR",
|
|
1385
1396
|
"key": "accc7cea2d0250cdfbf0197ce00a677c6b9e0dae",
|
|
1386
1397
|
"componentPropertyDefinitions": {
|
|
@@ -1397,7 +1408,7 @@ const metadata$y = {
|
|
|
1397
1408
|
}
|
|
1398
1409
|
};
|
|
1399
1410
|
|
|
1400
|
-
const metadata$
|
|
1411
|
+
const metadata$y = {
|
|
1401
1412
|
"name": "🟢 Bottom Sheet",
|
|
1402
1413
|
"key": "16bafa5d1155896fe18fb6f52f904f5cd2048686",
|
|
1403
1414
|
"componentPropertyDefinitions": {
|
|
@@ -1461,7 +1472,7 @@ const metadata$x = {
|
|
|
1461
1472
|
}
|
|
1462
1473
|
};
|
|
1463
1474
|
|
|
1464
|
-
const metadata$
|
|
1475
|
+
const metadata$x = {
|
|
1465
1476
|
"name": "🟢 Callout",
|
|
1466
1477
|
"key": "ec46d38baac3c367c4a5ffa47a2110d51ba0a4fe",
|
|
1467
1478
|
"componentPropertyDefinitions": {
|
|
@@ -1510,7 +1521,7 @@ const metadata$w = {
|
|
|
1510
1521
|
}
|
|
1511
1522
|
};
|
|
1512
1523
|
|
|
1513
|
-
const metadata$
|
|
1524
|
+
const metadata$w = {
|
|
1514
1525
|
"name": "🟢 Checkbox",
|
|
1515
1526
|
"key": "94a2f6957a86f8ae3b8c7ca200dfcd5e29f6075b",
|
|
1516
1527
|
"componentPropertyDefinitions": {
|
|
@@ -1538,24 +1549,26 @@ const metadata$v = {
|
|
|
1538
1549
|
"Stronger"
|
|
1539
1550
|
]
|
|
1540
1551
|
},
|
|
1552
|
+
"Selected": {
|
|
1553
|
+
"type": "VARIANT",
|
|
1554
|
+
"variantOptions": [
|
|
1555
|
+
"True",
|
|
1556
|
+
"False",
|
|
1557
|
+
"Indeterminate"
|
|
1558
|
+
]
|
|
1559
|
+
},
|
|
1541
1560
|
"State": {
|
|
1542
1561
|
"type": "VARIANT",
|
|
1543
1562
|
"variantOptions": [
|
|
1544
1563
|
"Enabled",
|
|
1545
1564
|
"Pressed",
|
|
1546
|
-
"Disabled"
|
|
1547
|
-
"Selected",
|
|
1548
|
-
"Selected-Pressed",
|
|
1549
|
-
"Selected-Disabled",
|
|
1550
|
-
"Indeterminate",
|
|
1551
|
-
"Indeterminate-Pressed",
|
|
1552
|
-
"Indeterminate-Disabled"
|
|
1565
|
+
"Disabled"
|
|
1553
1566
|
]
|
|
1554
1567
|
}
|
|
1555
1568
|
}
|
|
1556
1569
|
};
|
|
1557
1570
|
|
|
1558
|
-
const metadata$
|
|
1571
|
+
const metadata$v = {
|
|
1559
1572
|
"name": "🟢 Checkmark",
|
|
1560
1573
|
"key": "fae60fb392f55bde60de1dbccb2f453320068805",
|
|
1561
1574
|
"componentPropertyDefinitions": {
|
|
@@ -1573,24 +1586,26 @@ const metadata$u = {
|
|
|
1573
1586
|
"Large"
|
|
1574
1587
|
]
|
|
1575
1588
|
},
|
|
1589
|
+
"Selected": {
|
|
1590
|
+
"type": "VARIANT",
|
|
1591
|
+
"variantOptions": [
|
|
1592
|
+
"True",
|
|
1593
|
+
"False",
|
|
1594
|
+
"Indeterminate"
|
|
1595
|
+
]
|
|
1596
|
+
},
|
|
1576
1597
|
"State": {
|
|
1577
1598
|
"type": "VARIANT",
|
|
1578
1599
|
"variantOptions": [
|
|
1579
1600
|
"Enabled",
|
|
1580
1601
|
"Pressed",
|
|
1581
|
-
"
|
|
1582
|
-
"Selected-Pressed",
|
|
1583
|
-
"Indeterminate",
|
|
1584
|
-
"Indeterminate-Pressed",
|
|
1585
|
-
"Disabled",
|
|
1586
|
-
"Disabled-Selected",
|
|
1587
|
-
"Disabled-Indeterminate"
|
|
1602
|
+
"Disabled"
|
|
1588
1603
|
]
|
|
1589
1604
|
}
|
|
1590
1605
|
}
|
|
1591
1606
|
};
|
|
1592
1607
|
|
|
1593
|
-
const metadata$
|
|
1608
|
+
const metadata$u = {
|
|
1594
1609
|
"name": "🟢 Chip",
|
|
1595
1610
|
"key": "8156ef08d9aaa2b0de1cc4a113ec0c9d0586f831",
|
|
1596
1611
|
"componentPropertyDefinitions": {
|
|
@@ -1628,6 +1643,10 @@ const metadata$t = {
|
|
|
1628
1643
|
{
|
|
1629
1644
|
"type": "COMPONENT_SET",
|
|
1630
1645
|
"key": "df43b92004c850e7c6d2869e7a4ba1ef9a2d7db6"
|
|
1646
|
+
},
|
|
1647
|
+
{
|
|
1648
|
+
"type": "COMPONENT_SET",
|
|
1649
|
+
"key": "19923052d4152393ecdc6e2f5853ea0359849127"
|
|
1631
1650
|
}
|
|
1632
1651
|
]
|
|
1633
1652
|
},
|
|
@@ -1650,19 +1669,19 @@ const metadata$t = {
|
|
|
1650
1669
|
"Small"
|
|
1651
1670
|
]
|
|
1652
1671
|
},
|
|
1653
|
-
"
|
|
1672
|
+
"Selected": {
|
|
1654
1673
|
"type": "VARIANT",
|
|
1655
1674
|
"variantOptions": [
|
|
1656
|
-
"
|
|
1657
|
-
"
|
|
1658
|
-
"Disabled"
|
|
1675
|
+
"False",
|
|
1676
|
+
"True"
|
|
1659
1677
|
]
|
|
1660
1678
|
},
|
|
1661
|
-
"
|
|
1679
|
+
"State": {
|
|
1662
1680
|
"type": "VARIANT",
|
|
1663
1681
|
"variantOptions": [
|
|
1664
|
-
"
|
|
1665
|
-
"
|
|
1682
|
+
"Enabled",
|
|
1683
|
+
"Pressed",
|
|
1684
|
+
"Disabled"
|
|
1666
1685
|
]
|
|
1667
1686
|
},
|
|
1668
1687
|
"Prefix Type": {
|
|
@@ -1677,7 +1696,7 @@ const metadata$t = {
|
|
|
1677
1696
|
}
|
|
1678
1697
|
};
|
|
1679
1698
|
|
|
1680
|
-
const metadata$
|
|
1699
|
+
const metadata$t = {
|
|
1681
1700
|
"name": "🟢 Chlid",
|
|
1682
1701
|
"key": "aa9ffdd60fbfdea42f0d11162cd64f4b4389ddcc",
|
|
1683
1702
|
"componentPropertyDefinitions": {
|
|
@@ -1692,7 +1711,7 @@ const metadata$s = {
|
|
|
1692
1711
|
}
|
|
1693
1712
|
};
|
|
1694
1713
|
|
|
1695
|
-
const metadata$
|
|
1714
|
+
const metadata$s = {
|
|
1696
1715
|
"name": "🟢 Contextual Floating Button",
|
|
1697
1716
|
"key": "032f3fddaad0aa3fa5a7f680768c1f5d02fb463f",
|
|
1698
1717
|
"componentPropertyDefinitions": {
|
|
@@ -1729,7 +1748,7 @@ const metadata$r = {
|
|
|
1729
1748
|
}
|
|
1730
1749
|
};
|
|
1731
1750
|
|
|
1732
|
-
const metadata$
|
|
1751
|
+
const metadata$r = {
|
|
1733
1752
|
"name": "🟢 Divider",
|
|
1734
1753
|
"key": "848e953725f757ea1a79e1fecc0b608a035032d3",
|
|
1735
1754
|
"componentPropertyDefinitions": {
|
|
@@ -1743,7 +1762,7 @@ const metadata$q = {
|
|
|
1743
1762
|
}
|
|
1744
1763
|
};
|
|
1745
1764
|
|
|
1746
|
-
const metadata$
|
|
1765
|
+
const metadata$q = {
|
|
1747
1766
|
"name": "🟢 Floating Action Button",
|
|
1748
1767
|
"key": "65f9e7eede627b893fb8ff94ed9a7d0db900c464",
|
|
1749
1768
|
"componentPropertyDefinitions": {
|
|
@@ -1757,7 +1776,7 @@ const metadata$p = {
|
|
|
1757
1776
|
}
|
|
1758
1777
|
};
|
|
1759
1778
|
|
|
1760
|
-
const metadata$
|
|
1779
|
+
const metadata$p = {
|
|
1761
1780
|
"name": "🟢 Help Bubble",
|
|
1762
1781
|
"key": "804b327c091278a40d5891939eaed90bb2889659",
|
|
1763
1782
|
"componentPropertyDefinitions": {
|
|
@@ -1790,7 +1809,7 @@ const metadata$o = {
|
|
|
1790
1809
|
}
|
|
1791
1810
|
};
|
|
1792
1811
|
|
|
1793
|
-
const metadata$
|
|
1812
|
+
const metadata$o = {
|
|
1794
1813
|
"name": "🟢 Inline Banner",
|
|
1795
1814
|
"key": "ce587d0f21754af05240cb32a4880227cb0ea1e1",
|
|
1796
1815
|
"componentPropertyDefinitions": {
|
|
@@ -1831,7 +1850,7 @@ const metadata$n = {
|
|
|
1831
1850
|
}
|
|
1832
1851
|
};
|
|
1833
1852
|
|
|
1834
|
-
const metadata$
|
|
1853
|
+
const metadata$n = {
|
|
1835
1854
|
"name": "🟢 Main Tab Navigation / Global",
|
|
1836
1855
|
"key": "a694a1da14a5c1d7d5c66bc78218c0c61fb388ab",
|
|
1837
1856
|
"componentPropertyDefinitions": {
|
|
@@ -1858,7 +1877,7 @@ const metadata$m = {
|
|
|
1858
1877
|
}
|
|
1859
1878
|
};
|
|
1860
1879
|
|
|
1861
|
-
const metadata$
|
|
1880
|
+
const metadata$m = {
|
|
1862
1881
|
"name": "🟢 Main Tab Navigation / KR",
|
|
1863
1882
|
"key": "41d3601e6b4c632a56cdc8fad485a76c026fdd8e",
|
|
1864
1883
|
"componentPropertyDefinitions": {
|
|
@@ -1882,7 +1901,7 @@ const metadata$l = {
|
|
|
1882
1901
|
}
|
|
1883
1902
|
};
|
|
1884
1903
|
|
|
1885
|
-
const metadata$
|
|
1904
|
+
const metadata$l = {
|
|
1886
1905
|
"name": "🟢 Manner Temp",
|
|
1887
1906
|
"key": "37c0a35f73a730fdfba7929cea91a7590fc93733",
|
|
1888
1907
|
"componentPropertyDefinitions": {
|
|
@@ -1900,7 +1919,7 @@ const metadata$k = {
|
|
|
1900
1919
|
}
|
|
1901
1920
|
};
|
|
1902
1921
|
|
|
1903
|
-
const metadata$
|
|
1922
|
+
const metadata$k = {
|
|
1904
1923
|
"name": "🟢 Manner Temp Badge",
|
|
1905
1924
|
"key": "3ef9a84d4d80046ff9a581136bd56269554a6e00",
|
|
1906
1925
|
"componentPropertyDefinitions": {
|
|
@@ -1918,7 +1937,7 @@ const metadata$j = {
|
|
|
1918
1937
|
}
|
|
1919
1938
|
};
|
|
1920
1939
|
|
|
1921
|
-
const metadata$
|
|
1940
|
+
const metadata$j = {
|
|
1922
1941
|
"name": "🟢 Menu Sheet",
|
|
1923
1942
|
"key": "cd4cf8a850bf3de87b79080b36b421a649bf3fcb",
|
|
1924
1943
|
"componentPropertyDefinitions": {
|
|
@@ -1955,7 +1974,7 @@ const metadata$i = {
|
|
|
1955
1974
|
}
|
|
1956
1975
|
};
|
|
1957
1976
|
|
|
1958
|
-
const metadata$
|
|
1977
|
+
const metadata$i = {
|
|
1959
1978
|
"name": "🟢 Multiline Text Field",
|
|
1960
1979
|
"key": "88b2399c930c85f9ce2972163a078bc684b84bbe",
|
|
1961
1980
|
"componentPropertyDefinitions": {
|
|
@@ -2024,7 +2043,7 @@ const metadata$h = {
|
|
|
2024
2043
|
}
|
|
2025
2044
|
};
|
|
2026
2045
|
|
|
2027
|
-
const metadata$
|
|
2046
|
+
const metadata$h = {
|
|
2028
2047
|
"name": "🟢 Progress Circle",
|
|
2029
2048
|
"key": "6e6779a372cab2485a0e25529bc4dbc9932a7346",
|
|
2030
2049
|
"componentPropertyDefinitions": {
|
|
@@ -2041,7 +2060,7 @@ const metadata$g = {
|
|
|
2041
2060
|
"Neutral",
|
|
2042
2061
|
"Brand",
|
|
2043
2062
|
"Static White",
|
|
2044
|
-
"Custom"
|
|
2063
|
+
"Custom(inherit)"
|
|
2045
2064
|
]
|
|
2046
2065
|
},
|
|
2047
2066
|
"Value": {
|
|
@@ -2057,7 +2076,7 @@ const metadata$g = {
|
|
|
2057
2076
|
}
|
|
2058
2077
|
};
|
|
2059
2078
|
|
|
2060
|
-
const metadata$
|
|
2079
|
+
const metadata$g = {
|
|
2061
2080
|
"name": "🟢 Radio",
|
|
2062
2081
|
"key": "ac72d9e5ab04a1d59eaf77dffd380fd6e491ecf8",
|
|
2063
2082
|
"componentPropertyDefinitions": {
|
|
@@ -2071,21 +2090,25 @@ const metadata$f = {
|
|
|
2071
2090
|
"Large"
|
|
2072
2091
|
]
|
|
2073
2092
|
},
|
|
2093
|
+
"Selected": {
|
|
2094
|
+
"type": "VARIANT",
|
|
2095
|
+
"variantOptions": [
|
|
2096
|
+
"True",
|
|
2097
|
+
"False"
|
|
2098
|
+
]
|
|
2099
|
+
},
|
|
2074
2100
|
"State": {
|
|
2075
2101
|
"type": "VARIANT",
|
|
2076
2102
|
"variantOptions": [
|
|
2077
2103
|
"Enabled",
|
|
2078
2104
|
"Pressed",
|
|
2079
|
-
"Disabled"
|
|
2080
|
-
"Selected",
|
|
2081
|
-
"Selected-Pressed",
|
|
2082
|
-
"Selected-Disabled"
|
|
2105
|
+
"Disabled"
|
|
2083
2106
|
]
|
|
2084
2107
|
}
|
|
2085
2108
|
}
|
|
2086
2109
|
};
|
|
2087
2110
|
|
|
2088
|
-
const metadata$
|
|
2111
|
+
const metadata$f = {
|
|
2089
2112
|
"name": "🟢 Radio Mark",
|
|
2090
2113
|
"key": "832d696d6e9566610968cd70f128f500ec009d6a",
|
|
2091
2114
|
"componentPropertyDefinitions": {
|
|
@@ -2103,24 +2126,18 @@ const metadata$e = {
|
|
|
2103
2126
|
"False"
|
|
2104
2127
|
]
|
|
2105
2128
|
},
|
|
2106
|
-
"
|
|
2107
|
-
"type": "VARIANT",
|
|
2108
|
-
"variantOptions": [
|
|
2109
|
-
"True",
|
|
2110
|
-
"False"
|
|
2111
|
-
]
|
|
2112
|
-
},
|
|
2113
|
-
"Disabled": {
|
|
2129
|
+
"State": {
|
|
2114
2130
|
"type": "VARIANT",
|
|
2115
2131
|
"variantOptions": [
|
|
2116
|
-
"
|
|
2117
|
-
"
|
|
2132
|
+
"Enabled",
|
|
2133
|
+
"Pressed",
|
|
2134
|
+
"Disabled"
|
|
2118
2135
|
]
|
|
2119
2136
|
}
|
|
2120
2137
|
}
|
|
2121
2138
|
};
|
|
2122
2139
|
|
|
2123
|
-
const metadata$
|
|
2140
|
+
const metadata$e = {
|
|
2124
2141
|
"name": "🟢 Range Slider",
|
|
2125
2142
|
"key": "64fc49184979e0be40aa367ca98868601eb7dad5",
|
|
2126
2143
|
"componentPropertyDefinitions": {
|
|
@@ -2152,7 +2169,7 @@ const metadata$d = {
|
|
|
2152
2169
|
}
|
|
2153
2170
|
};
|
|
2154
2171
|
|
|
2155
|
-
const metadata$
|
|
2172
|
+
const metadata$d = {
|
|
2156
2173
|
"name": "🟢 Reaction Button",
|
|
2157
2174
|
"key": "ec43e4e881f7048e95601f8b58c01a0905a174e0",
|
|
2158
2175
|
"componentPropertyDefinitions": {
|
|
@@ -2176,23 +2193,26 @@ const metadata$c = {
|
|
|
2176
2193
|
"Small"
|
|
2177
2194
|
]
|
|
2178
2195
|
},
|
|
2196
|
+
"Selected": {
|
|
2197
|
+
"type": "VARIANT",
|
|
2198
|
+
"variantOptions": [
|
|
2199
|
+
"True",
|
|
2200
|
+
"False"
|
|
2201
|
+
]
|
|
2202
|
+
},
|
|
2179
2203
|
"State": {
|
|
2180
2204
|
"type": "VARIANT",
|
|
2181
2205
|
"variantOptions": [
|
|
2182
2206
|
"Enabled",
|
|
2183
2207
|
"Pressed",
|
|
2184
2208
|
"Loading",
|
|
2185
|
-
"
|
|
2186
|
-
"Selected-Pressed",
|
|
2187
|
-
"Selected-Loading",
|
|
2188
|
-
"Disabled",
|
|
2189
|
-
"Disabled-Selected"
|
|
2209
|
+
"Disabled"
|
|
2190
2210
|
]
|
|
2191
2211
|
}
|
|
2192
2212
|
}
|
|
2193
2213
|
};
|
|
2194
2214
|
|
|
2195
|
-
const metadata$
|
|
2215
|
+
const metadata$c = {
|
|
2196
2216
|
"name": "🟢 Resizable.Icon",
|
|
2197
2217
|
"key": "1f74eedb6fb186fd201d6ad5b2dbcd46a2bddf3e",
|
|
2198
2218
|
"componentPropertyDefinitions": {
|
|
@@ -2211,7 +2231,7 @@ const metadata$b = {
|
|
|
2211
2231
|
}
|
|
2212
2232
|
};
|
|
2213
2233
|
|
|
2214
|
-
const metadata$
|
|
2234
|
+
const metadata$b = {
|
|
2215
2235
|
"name": "🟢 ResizableChild",
|
|
2216
2236
|
"key": "df43b92004c850e7c6d2869e7a4ba1ef9a2d7db6",
|
|
2217
2237
|
"componentPropertyDefinitions": {
|
|
@@ -2230,7 +2250,7 @@ const metadata$a = {
|
|
|
2230
2250
|
}
|
|
2231
2251
|
};
|
|
2232
2252
|
|
|
2233
|
-
const metadata$
|
|
2253
|
+
const metadata$a = {
|
|
2234
2254
|
"name": "🟢 Segmented Control",
|
|
2235
2255
|
"key": "3ad7133ba52755867f42f9232375f75639e00d58",
|
|
2236
2256
|
"componentPropertyDefinitions": {
|
|
@@ -2254,7 +2274,7 @@ const metadata$9 = {
|
|
|
2254
2274
|
}
|
|
2255
2275
|
};
|
|
2256
2276
|
|
|
2257
|
-
const metadata$
|
|
2277
|
+
const metadata$9 = {
|
|
2258
2278
|
"name": "🟢 Select Box",
|
|
2259
2279
|
"key": "38722ffeb4c966256a709155e8ddac50c93d7c60",
|
|
2260
2280
|
"componentPropertyDefinitions": {
|
|
@@ -2274,19 +2294,24 @@ const metadata$8 = {
|
|
|
2274
2294
|
"Radio"
|
|
2275
2295
|
]
|
|
2276
2296
|
},
|
|
2297
|
+
"Selected": {
|
|
2298
|
+
"type": "VARIANT",
|
|
2299
|
+
"variantOptions": [
|
|
2300
|
+
"True",
|
|
2301
|
+
"False"
|
|
2302
|
+
]
|
|
2303
|
+
},
|
|
2277
2304
|
"State": {
|
|
2278
2305
|
"type": "VARIANT",
|
|
2279
2306
|
"variantOptions": [
|
|
2280
2307
|
"Enabled",
|
|
2281
|
-
"Pressed"
|
|
2282
|
-
"Selected",
|
|
2283
|
-
"Selected-Pressed"
|
|
2308
|
+
"Pressed"
|
|
2284
2309
|
]
|
|
2285
2310
|
}
|
|
2286
2311
|
}
|
|
2287
2312
|
};
|
|
2288
2313
|
|
|
2289
|
-
const metadata$
|
|
2314
|
+
const metadata$8 = {
|
|
2290
2315
|
"name": "🟢 Skeleton",
|
|
2291
2316
|
"key": "ef22c3288722fbfa64a5ab73df397ade88f8e05a",
|
|
2292
2317
|
"componentPropertyDefinitions": {
|
|
@@ -2309,7 +2334,7 @@ const metadata$7 = {
|
|
|
2309
2334
|
}
|
|
2310
2335
|
};
|
|
2311
2336
|
|
|
2312
|
-
const metadata$
|
|
2337
|
+
const metadata$7 = {
|
|
2313
2338
|
"name": "🟢 Slider",
|
|
2314
2339
|
"key": "aee027230a478315e380704c4523141e67e464ee",
|
|
2315
2340
|
"componentPropertyDefinitions": {
|
|
@@ -2341,7 +2366,7 @@ const metadata$6 = {
|
|
|
2341
2366
|
}
|
|
2342
2367
|
};
|
|
2343
2368
|
|
|
2344
|
-
const metadata$
|
|
2369
|
+
const metadata$6 = {
|
|
2345
2370
|
"name": "🟢 Snackbar",
|
|
2346
2371
|
"key": "81b17fb8c7d731a19cf8d36a8605559d41414eca",
|
|
2347
2372
|
"componentPropertyDefinitions": {
|
|
@@ -2365,27 +2390,60 @@ const metadata$5 = {
|
|
|
2365
2390
|
}
|
|
2366
2391
|
};
|
|
2367
2392
|
|
|
2393
|
+
const metadata$5 = {
|
|
2394
|
+
"name": "🟢 SuperscriptChild",
|
|
2395
|
+
"key": "19923052d4152393ecdc6e2f5853ea0359849127",
|
|
2396
|
+
"componentPropertyDefinitions": {
|
|
2397
|
+
"Icon#37641:0": {
|
|
2398
|
+
"type": "INSTANCE_SWAP",
|
|
2399
|
+
"preferredValues": []
|
|
2400
|
+
},
|
|
2401
|
+
"Type": {
|
|
2402
|
+
"type": "VARIANT",
|
|
2403
|
+
"variantOptions": [
|
|
2404
|
+
"Icon",
|
|
2405
|
+
"Notification Badge",
|
|
2406
|
+
"Custom"
|
|
2407
|
+
]
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
};
|
|
2411
|
+
|
|
2368
2412
|
const metadata$4 = {
|
|
2369
2413
|
"name": "🟢 Switch",
|
|
2370
|
-
"key": "
|
|
2414
|
+
"key": "65e0e7ba1a0c13b42e5fd0ceb17d5f756128dd6b",
|
|
2371
2415
|
"componentPropertyDefinitions": {
|
|
2372
|
-
"Label#
|
|
2416
|
+
"Label#36578:0": {
|
|
2373
2417
|
"type": "TEXT"
|
|
2374
2418
|
},
|
|
2375
2419
|
"Size": {
|
|
2376
2420
|
"type": "VARIANT",
|
|
2377
2421
|
"variantOptions": [
|
|
2378
|
-
"
|
|
2379
|
-
"
|
|
2422
|
+
"16",
|
|
2423
|
+
"24",
|
|
2424
|
+
"32"
|
|
2425
|
+
]
|
|
2426
|
+
},
|
|
2427
|
+
"Selected": {
|
|
2428
|
+
"type": "VARIANT",
|
|
2429
|
+
"variantOptions": [
|
|
2430
|
+
"True",
|
|
2431
|
+
"False"
|
|
2380
2432
|
]
|
|
2381
2433
|
},
|
|
2382
2434
|
"State": {
|
|
2383
2435
|
"type": "VARIANT",
|
|
2384
2436
|
"variantOptions": [
|
|
2385
2437
|
"Enabled",
|
|
2386
|
-
"
|
|
2387
|
-
|
|
2388
|
-
|
|
2438
|
+
"Disabled"
|
|
2439
|
+
]
|
|
2440
|
+
},
|
|
2441
|
+
"Label Layout(Figma Only)": {
|
|
2442
|
+
"type": "VARIANT",
|
|
2443
|
+
"variantOptions": [
|
|
2444
|
+
"None",
|
|
2445
|
+
"Right",
|
|
2446
|
+
"Left"
|
|
2389
2447
|
]
|
|
2390
2448
|
}
|
|
2391
2449
|
}
|
|
@@ -2540,17 +2598,20 @@ const metadata$1 = {
|
|
|
2540
2598
|
"Brand Solid"
|
|
2541
2599
|
]
|
|
2542
2600
|
},
|
|
2601
|
+
"Selected": {
|
|
2602
|
+
"type": "VARIANT",
|
|
2603
|
+
"variantOptions": [
|
|
2604
|
+
"True",
|
|
2605
|
+
"False"
|
|
2606
|
+
]
|
|
2607
|
+
},
|
|
2543
2608
|
"State": {
|
|
2544
2609
|
"type": "VARIANT",
|
|
2545
2610
|
"variantOptions": [
|
|
2546
2611
|
"Enabled",
|
|
2547
2612
|
"Pressed",
|
|
2548
2613
|
"Loading",
|
|
2549
|
-
"
|
|
2550
|
-
"Selected-Pressed",
|
|
2551
|
-
"Selected-Loading",
|
|
2552
|
-
"Disabled",
|
|
2553
|
-
"Disabled-Selected"
|
|
2614
|
+
"Disabled"
|
|
2554
2615
|
]
|
|
2555
2616
|
}
|
|
2556
2617
|
}
|
|
@@ -2601,50 +2662,51 @@ const metadata = {
|
|
|
2601
2662
|
|
|
2602
2663
|
var FIGMA_COMPONENTS = {
|
|
2603
2664
|
__proto__: null,
|
|
2604
|
-
actionButton: metadata$
|
|
2605
|
-
alertDialog: metadata$
|
|
2606
|
-
avatar: metadata$
|
|
2607
|
-
avatarStack: metadata$
|
|
2608
|
-
badge: metadata$
|
|
2609
|
-
bottomNavigationGlobal: metadata$
|
|
2610
|
-
bottomNavigationKr: metadata$
|
|
2611
|
-
bottomSheet: metadata$
|
|
2612
|
-
callout: metadata$
|
|
2613
|
-
checkbox: metadata$
|
|
2614
|
-
checkmark: metadata$
|
|
2615
|
-
chip: metadata$
|
|
2616
|
-
chlid: metadata$
|
|
2617
|
-
contextualFloatingButton: metadata$
|
|
2618
|
-
divider: metadata$
|
|
2619
|
-
floatingActionButton: metadata$
|
|
2620
|
-
helpBubble: metadata$
|
|
2621
|
-
inlineBanner: metadata$
|
|
2622
|
-
mainTabNavigationGlobal: metadata$
|
|
2623
|
-
mainTabNavigationKr: metadata$
|
|
2624
|
-
mannerTemp: metadata$
|
|
2625
|
-
mannerTempBadge: metadata$
|
|
2626
|
-
menuSheet: metadata$
|
|
2627
|
-
multilineTextField: metadata$
|
|
2628
|
-
progressCircle: metadata$
|
|
2629
|
-
radio: metadata$
|
|
2630
|
-
radioMark: metadata$
|
|
2631
|
-
rangeSlider: metadata$
|
|
2632
|
-
reactionButton: metadata$
|
|
2633
|
-
resizableChild: metadata$
|
|
2634
|
-
resizableIcon: metadata$
|
|
2635
|
-
segmentedControl: metadata$
|
|
2636
|
-
selectBox: metadata$
|
|
2637
|
-
skeleton: metadata$
|
|
2638
|
-
slider: metadata$
|
|
2639
|
-
snackbar: metadata$
|
|
2665
|
+
actionButton: metadata$F,
|
|
2666
|
+
alertDialog: metadata$E,
|
|
2667
|
+
avatar: metadata$D,
|
|
2668
|
+
avatarStack: metadata$C,
|
|
2669
|
+
badge: metadata$B,
|
|
2670
|
+
bottomNavigationGlobal: metadata$A,
|
|
2671
|
+
bottomNavigationKr: metadata$z,
|
|
2672
|
+
bottomSheet: metadata$y,
|
|
2673
|
+
callout: metadata$x,
|
|
2674
|
+
checkbox: metadata$w,
|
|
2675
|
+
checkmark: metadata$v,
|
|
2676
|
+
chip: metadata$u,
|
|
2677
|
+
chlid: metadata$t,
|
|
2678
|
+
contextualFloatingButton: metadata$s,
|
|
2679
|
+
divider: metadata$r,
|
|
2680
|
+
floatingActionButton: metadata$q,
|
|
2681
|
+
helpBubble: metadata$p,
|
|
2682
|
+
inlineBanner: metadata$o,
|
|
2683
|
+
mainTabNavigationGlobal: metadata$n,
|
|
2684
|
+
mainTabNavigationKr: metadata$m,
|
|
2685
|
+
mannerTemp: metadata$l,
|
|
2686
|
+
mannerTempBadge: metadata$k,
|
|
2687
|
+
menuSheet: metadata$j,
|
|
2688
|
+
multilineTextField: metadata$i,
|
|
2689
|
+
progressCircle: metadata$h,
|
|
2690
|
+
radio: metadata$g,
|
|
2691
|
+
radioMark: metadata$f,
|
|
2692
|
+
rangeSlider: metadata$e,
|
|
2693
|
+
reactionButton: metadata$d,
|
|
2694
|
+
resizableChild: metadata$b,
|
|
2695
|
+
resizableIcon: metadata$c,
|
|
2696
|
+
segmentedControl: metadata$a,
|
|
2697
|
+
selectBox: metadata$9,
|
|
2698
|
+
skeleton: metadata$8,
|
|
2699
|
+
slider: metadata$7,
|
|
2700
|
+
snackbar: metadata$6,
|
|
2701
|
+
superscriptChild: metadata$5,
|
|
2640
2702
|
switch: metadata$4,
|
|
2641
2703
|
tabs: metadata$3,
|
|
2642
|
-
templateButtonGroup: metadata$
|
|
2643
|
-
templateChipGroup: metadata$
|
|
2644
|
-
templateCompletion: metadata$
|
|
2645
|
-
templateErrorState: metadata$
|
|
2646
|
-
templateSelectBoxGroup: metadata$
|
|
2647
|
-
templateTopNavigation: metadata$
|
|
2704
|
+
templateButtonGroup: metadata$L,
|
|
2705
|
+
templateChipGroup: metadata$K,
|
|
2706
|
+
templateCompletion: metadata$J,
|
|
2707
|
+
templateErrorState: metadata$I,
|
|
2708
|
+
templateSelectBoxGroup: metadata$H,
|
|
2709
|
+
templateTopNavigation: metadata$G,
|
|
2648
2710
|
textField: metadata$2,
|
|
2649
2711
|
toggleButton: metadata$1,
|
|
2650
2712
|
topNavigation: metadata
|
|
@@ -2668,8 +2730,8 @@ function handleSizeProp(size) {
|
|
|
2668
2730
|
}
|
|
2669
2731
|
}
|
|
2670
2732
|
|
|
2671
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
2672
|
-
const createActionButtonHandler = (ctx)=>defineComponentHandler(metadata$
|
|
2733
|
+
const { createLocalSnippetElement: createLocalSnippetElement$q } = createLocalSnippetHelper("action-button");
|
|
2734
|
+
const createActionButtonHandler = (ctx)=>defineComponentHandler(metadata$F.key, ({ componentProperties: props })=>{
|
|
2673
2735
|
const states = props.State.value.split("-");
|
|
2674
2736
|
const { layout, children } = match(props.Layout.value).with("Icon Only", ()=>({
|
|
2675
2737
|
layout: "iconOnly",
|
|
@@ -2709,7 +2771,7 @@ const createActionButtonHandler = (ctx)=>defineComponentHandler(metadata$E.key,
|
|
|
2709
2771
|
variant: camelCase(props.Variant.value),
|
|
2710
2772
|
layout
|
|
2711
2773
|
};
|
|
2712
|
-
return createLocalSnippetElement$
|
|
2774
|
+
return createLocalSnippetElement$q("ActionButton", commonProps, children);
|
|
2713
2775
|
});
|
|
2714
2776
|
const ACTION_BUTTON_GHOST_BUTTON_KEY = "ea69291fb4d76217419f3d9613ae16aadafb56a5";
|
|
2715
2777
|
const createActionButtonGhostHandler = (ctx)=>defineComponentHandler(ACTION_BUTTON_GHOST_BUTTON_KEY, ({ componentProperties: props })=>{
|
|
@@ -2756,26 +2818,26 @@ const createActionButtonGhostHandler = (ctx)=>defineComponentHandler(ACTION_BUTT
|
|
|
2756
2818
|
bleedY: "asPadding"
|
|
2757
2819
|
}
|
|
2758
2820
|
};
|
|
2759
|
-
return createLocalSnippetElement$
|
|
2821
|
+
return createLocalSnippetElement$q("ActionButton", commonProps, children);
|
|
2760
2822
|
});
|
|
2761
2823
|
|
|
2762
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
2824
|
+
const { createLocalSnippetElement: createLocalSnippetElement$p } = createLocalSnippetHelper("alert-dialog");
|
|
2763
2825
|
const { createLocalSnippetElement: createLocalSnippetElementTrigger$3 } = createLocalSnippetHelper("action-button");
|
|
2764
2826
|
const ALERT_DIALOG_FOOTER_KEY = "00b1b131d67edf2875a7a1df8dfa88098d7c04be";
|
|
2765
|
-
const createAlertDialogHandler = (_ctx)=>defineComponentHandler(metadata$
|
|
2827
|
+
const createAlertDialogHandler = (_ctx)=>defineComponentHandler(metadata$E.key, (node, traverse)=>{
|
|
2766
2828
|
const props = node.componentProperties;
|
|
2767
|
-
const alertDialogHeader = createLocalSnippetElement$
|
|
2829
|
+
const alertDialogHeader = createLocalSnippetElement$p("AlertDialogHeader", undefined, [
|
|
2768
2830
|
...props["Show Title#20361:14"].value ? [
|
|
2769
|
-
createLocalSnippetElement$
|
|
2831
|
+
createLocalSnippetElement$p("AlertDialogTitle", undefined, props["Title Text#20361:0"].value)
|
|
2770
2832
|
] : [],
|
|
2771
|
-
createLocalSnippetElement$
|
|
2833
|
+
createLocalSnippetElement$p("AlertDialogDescription", undefined, props["Description Text#20361:7"].value)
|
|
2772
2834
|
]);
|
|
2773
2835
|
const footerNodes = findAllInstances({
|
|
2774
2836
|
node,
|
|
2775
2837
|
key: ALERT_DIALOG_FOOTER_KEY
|
|
2776
2838
|
});
|
|
2777
2839
|
if (footerNodes.length === 0 || footerNodes.length > 1) {
|
|
2778
|
-
return createLocalSnippetElement$
|
|
2840
|
+
return createLocalSnippetElement$p("AlertDialog", undefined, alertDialogHeader, {
|
|
2779
2841
|
comment: "Footer 영역을 확인해주세요."
|
|
2780
2842
|
});
|
|
2781
2843
|
}
|
|
@@ -2783,21 +2845,21 @@ const createAlertDialogHandler = (_ctx)=>defineComponentHandler(metadata$D.key,
|
|
|
2783
2845
|
const footerNodeProps = traverse(footerNode)?.props;
|
|
2784
2846
|
const buttons = footerNode.children.map(traverse);
|
|
2785
2847
|
const alertDialogFooterChildren = match(footerNode.componentProperties.Type.value).with("Single", ()=>buttons).with("Neutral", "Critical", ()=>createSeedReactElement("ResponsivePair", footerNodeProps, buttons)).with("Neutral (Overflow)", "Critical (Overflow)", "Nonpreferred", ()=>createSeedReactElement("VStack", footerNodeProps, buttons)).exhaustive();
|
|
2786
|
-
const alertDialogFooter = createLocalSnippetElement$
|
|
2787
|
-
return createLocalSnippetElement$
|
|
2848
|
+
const alertDialogFooter = createLocalSnippetElement$p("AlertDialogFooter", undefined, alertDialogFooterChildren);
|
|
2849
|
+
return createLocalSnippetElement$p("AlertDialogRoot", {
|
|
2788
2850
|
open: true
|
|
2789
2851
|
}, [
|
|
2790
|
-
createLocalSnippetElement$
|
|
2852
|
+
createLocalSnippetElement$p("AlertDialogTrigger", {
|
|
2791
2853
|
asChild: true
|
|
2792
2854
|
}, createLocalSnippetElementTrigger$3("ActionButton", {}, "AlertDialog 열기")),
|
|
2793
|
-
createLocalSnippetElement$
|
|
2855
|
+
createLocalSnippetElement$p("AlertDialogContent", undefined, [
|
|
2794
2856
|
alertDialogHeader,
|
|
2795
2857
|
alertDialogFooter
|
|
2796
2858
|
])
|
|
2797
2859
|
]);
|
|
2798
2860
|
});
|
|
2799
2861
|
|
|
2800
|
-
const { createLocalSnippetElement: createLocalSnippetElement$
|
|
2862
|
+
const { createLocalSnippetElement: createLocalSnippetElement$o } = createLocalSnippetHelper("app-bar");
|
|
2801
2863
|
const APP_BAR_TITLE_KEY = "d2cc4f615b2b44098be89448ad1c573f94af0355";
|
|
2802
2864
|
const APP_BAR_LEFT_ICON_BUTTON_KEY = "5a953f7bafc0df744777517458396e9f6c915825";
|
|
2803
2865
|
const APP_BAR_RIGHT_ICON_BUTTON_KEY = "c08db793288077e53bd45ef11aa419a835e88fce";
|
|
@@ -2814,12 +2876,12 @@ const createAppBarMainHandler = (_ctx)=>{
|
|
|
2814
2876
|
subtitle: undefined
|
|
2815
2877
|
})).exhaustive();
|
|
2816
2878
|
if (title) {
|
|
2817
|
-
return createLocalSnippetElement$
|
|
2879
|
+
return createLocalSnippetElement$o("AppBarMain", {
|
|
2818
2880
|
title,
|
|
2819
2881
|
subtitle
|
|
2820
2882
|
});
|
|
2821
2883
|
}
|
|
2822
|
-
return createLocalSnippetElement$
|
|
2884
|
+
return createLocalSnippetElement$o("AppBarMain", undefined, undefined, {
|
|
2823
2885
|
comment: "AppBarMain 내부를 직접 작성해주세요."
|
|
2824
2886
|
});
|
|
2825
2887
|
});
|
|
@@ -2846,33 +2908,33 @@ const createAppBarHandler = (ctx)=>{
|
|
|
2846
2908
|
return appBarMainHandler.transform(mainNode, traverse);
|
|
2847
2909
|
})();
|
|
2848
2910
|
const leftChildren = match(props.Left.value).with("None", ()=>undefined).with("Back", ()=>[
|
|
2849
|
-
createLocalSnippetElement$
|
|
2911
|
+
createLocalSnippetElement$o("AppBarBackButton")
|
|
2850
2912
|
]).with("Close", ()=>[
|
|
2851
|
-
createLocalSnippetElement$
|
|
2913
|
+
createLocalSnippetElement$o("AppBarCloseButton")
|
|
2852
2914
|
]).with("Custom", ()=>{
|
|
2853
2915
|
const buttons = findAllInstances({
|
|
2854
2916
|
node,
|
|
2855
2917
|
key: APP_BAR_LEFT_ICON_BUTTON_KEY
|
|
2856
2918
|
});
|
|
2857
2919
|
if (buttons.length > 0) {
|
|
2858
|
-
return buttons.map((button)=>createLocalSnippetElement$
|
|
2920
|
+
return buttons.map((button)=>createLocalSnippetElement$o("AppBarIconButton", undefined, ctx.iconHandler.transform(button.componentProperties["Icon#33580:0"]), {
|
|
2859
2921
|
comment: "AppBarIconButton에 aria-label 속성을 추가해주세요."
|
|
2860
2922
|
}));
|
|
2861
2923
|
}
|
|
2862
2924
|
return undefined;
|
|
2863
2925
|
}).exhaustive();
|
|
2864
|
-
const left = leftChildren && leftChildren.length > 0 ? createLocalSnippetElement$
|
|
2926
|
+
const left = leftChildren && leftChildren.length > 0 ? createLocalSnippetElement$o("AppBarLeft", {}, leftChildren) : undefined;
|
|
2865
2927
|
const rightChildren = match(props.Right.value).with("None", ()=>undefined).with("1 Icon Button", "2 Icon Button", "3 Icon Button", ()=>{
|
|
2866
2928
|
const buttons = findAllInstances({
|
|
2867
2929
|
node,
|
|
2868
2930
|
key: APP_BAR_RIGHT_ICON_BUTTON_KEY
|
|
2869
2931
|
});
|
|
2870
|
-
return buttons.map((button)=>createLocalSnippetElement$
|
|
2932
|
+
return buttons.map((button)=>createLocalSnippetElement$o("AppBarIconButton", undefined, ctx.iconHandler.transform(button.componentProperties["Icon#6406:3"]), {
|
|
2871
2933
|
comment: "AppBarIconButton에 aria-label 속성을 추가해주세요."
|
|
2872
2934
|
}));
|
|
2873
2935
|
}).with("Text Button", ()=>undefined).exhaustive();
|
|
2874
|
-
const right = rightChildren && rightChildren.length > 0 ? createLocalSnippetElement$
|
|
2875
|
-
return createLocalSnippetElement$
|
|
2936
|
+
const right = rightChildren && rightChildren.length > 0 ? createLocalSnippetElement$o("AppBarRight", {}, rightChildren) : undefined;
|
|
2937
|
+
return createLocalSnippetElement$o("AppBar", {
|
|
2876
2938
|
theme,
|
|
2877
2939
|
tone
|
|
2878
2940
|
}, [
|
|
@@ -2886,17 +2948,18 @@ const createAppBarHandler = (ctx)=>{
|
|
|
2886
2948
|
};
|
|
2887
2949
|
|
|
2888
2950
|
const IDENTITY_PLACEHOLDER_KEY = "b3563b6f16ba4cfe4240c9b33eef7edad4c304eb";
|
|
2951
|
+
const { createLocalSnippetElement: createLocalSnippetElement$n } = createLocalSnippetHelper("identity-placeholder");
|
|
2889
2952
|
const createIdentityPlaceholderHandler = (_ctx)=>defineComponentHandler(IDENTITY_PLACEHOLDER_KEY, ({ componentProperties: props })=>{
|
|
2890
2953
|
const commonProps = {
|
|
2891
2954
|
identity: camelCase(props.Identity.value)
|
|
2892
2955
|
};
|
|
2893
|
-
return
|
|
2956
|
+
return createLocalSnippetElement$n("IdentityPlaceholder", commonProps);
|
|
2894
2957
|
});
|
|
2895
2958
|
|
|
2896
2959
|
const { createLocalSnippetElement: createLocalSnippetElement$m } = createLocalSnippetHelper("avatar");
|
|
2897
2960
|
const createAvatarHandler = (ctx)=>{
|
|
2898
2961
|
const identityPlaceholderHandler = createIdentityPlaceholderHandler();
|
|
2899
|
-
return defineComponentHandler(metadata$
|
|
2962
|
+
return defineComponentHandler(metadata$D.key, (node, traverse)=>{
|
|
2900
2963
|
const [placeholder] = findAllInstances({
|
|
2901
2964
|
node,
|
|
2902
2965
|
key: identityPlaceholderHandler.key
|
|
@@ -2931,7 +2994,7 @@ const createAvatarHandler = (ctx)=>{
|
|
|
2931
2994
|
const { createLocalSnippetElement: createLocalSnippetElement$l } = createLocalSnippetHelper("avatar");
|
|
2932
2995
|
const createAvatarStackHandler = (ctx)=>{
|
|
2933
2996
|
const avatarHandler = createAvatarHandler();
|
|
2934
|
-
return defineComponentHandler(metadata$
|
|
2997
|
+
return defineComponentHandler(metadata$C.key, (node, traverse)=>{
|
|
2935
2998
|
const avatarNodes = findAllInstances({
|
|
2936
2999
|
node,
|
|
2937
3000
|
key: avatarHandler.key
|
|
@@ -2940,12 +3003,12 @@ const createAvatarStackHandler = (ctx)=>{
|
|
|
2940
3003
|
const commonProps = {
|
|
2941
3004
|
size: props.Size.value
|
|
2942
3005
|
};
|
|
2943
|
-
const avatarStackChildren = avatarNodes.map(avatarHandler.transform);
|
|
3006
|
+
const avatarStackChildren = avatarNodes.map((avatarNode)=>avatarHandler.transform(avatarNode, traverse));
|
|
2944
3007
|
return createLocalSnippetElement$l("AvatarStack", commonProps, avatarStackChildren);
|
|
2945
3008
|
});
|
|
2946
3009
|
};
|
|
2947
3010
|
|
|
2948
|
-
const createBadgeHandler = (_ctx)=>defineComponentHandler(metadata$
|
|
3011
|
+
const createBadgeHandler = (_ctx)=>defineComponentHandler(metadata$B.key, ({ componentProperties: props })=>{
|
|
2949
3012
|
const commonProps = {
|
|
2950
3013
|
size: handleSizeProp(props.Size.value),
|
|
2951
3014
|
tone: camelCase(props.Tone.value),
|
|
@@ -2959,7 +3022,7 @@ const { createLocalSnippetElement: createLocalSnippetElementTrigger$2 } = create
|
|
|
2959
3022
|
// TODO: Bottom Action Bar (WIP) handler의 키. 해당 컴포넌트(템플릿) 핸들러 작성 시 handler.transform()으로 대체
|
|
2960
3023
|
const BOTTOM_SHEET_FOOTER_KEY = "de6c65d34cc4a01c18c9a7c0ded34635170ca11f";
|
|
2961
3024
|
const BOTTOM_SHEET_BODY_KEY = "aa9ffdd60fbfdea42f0d11162cd64f4b4389ddcc";
|
|
2962
|
-
const createBottomSheetHandler = (_ctx)=>defineComponentHandler(metadata$
|
|
3025
|
+
const createBottomSheetHandler = (_ctx)=>defineComponentHandler(metadata$y.key, (node, traverse)=>{
|
|
2963
3026
|
const props = node.componentProperties;
|
|
2964
3027
|
const headerAlign = match(props["Header Layout"].value).with("Bottom Left", "Top Left", ()=>"left").with("Bottom Center", "Top Center", ()=>"center").with("None", ()=>undefined).exhaustive();
|
|
2965
3028
|
const contentProps = {
|
|
@@ -2996,7 +3059,7 @@ const createBottomSheetHandler = (_ctx)=>defineComponentHandler(metadata$x.key,
|
|
|
2996
3059
|
});
|
|
2997
3060
|
|
|
2998
3061
|
const { createLocalSnippetElement: createLocalSnippetElement$j } = createLocalSnippetHelper("callout");
|
|
2999
|
-
const createCalloutHandler = (ctx)=>defineComponentHandler(metadata$
|
|
3062
|
+
const createCalloutHandler = (ctx)=>defineComponentHandler(metadata$x.key, ({ componentProperties: props, children })=>{
|
|
3000
3063
|
const tag = match(props.Interaction.value).with("Display", ()=>"Callout").with("Actionable", ()=>"ActionableCallout").with("Dismissible", ()=>"DismissibleCallout").exhaustive();
|
|
3001
3064
|
const textNode = children.find((child)=>child.type === "TEXT");
|
|
3002
3065
|
if (!textNode) {
|
|
@@ -3056,21 +3119,20 @@ const createCalloutHandler = (ctx)=>defineComponentHandler(metadata$w.key, ({ co
|
|
|
3056
3119
|
});
|
|
3057
3120
|
|
|
3058
3121
|
const { createLocalSnippetElement: createLocalSnippetElement$i } = createLocalSnippetHelper("checkbox");
|
|
3059
|
-
const createCheckboxHandler = (_ctx)=>defineComponentHandler(metadata$
|
|
3060
|
-
const states = props.State.value.split("-");
|
|
3122
|
+
const createCheckboxHandler = (_ctx)=>defineComponentHandler(metadata$w.key, ({ componentProperties: props })=>{
|
|
3061
3123
|
const commonProps = {
|
|
3062
3124
|
label: props["Label#49990:0"].value,
|
|
3063
3125
|
weight: camelCase(props.Weight.value),
|
|
3064
3126
|
variant: camelCase(props.Shape.value),
|
|
3065
3127
|
size: handleSizeProp(props.Size.value),
|
|
3066
|
-
...
|
|
3128
|
+
...props.Selected.value === "True" && {
|
|
3067
3129
|
defaultChecked: true
|
|
3068
3130
|
},
|
|
3069
|
-
...
|
|
3131
|
+
...props.Selected.value === "Indeterminate" && {
|
|
3070
3132
|
defaultChecked: true,
|
|
3071
3133
|
indeterminate: true
|
|
3072
3134
|
},
|
|
3073
|
-
...
|
|
3135
|
+
...props.State.value === "Disabled" && {
|
|
3074
3136
|
disabled: true
|
|
3075
3137
|
}
|
|
3076
3138
|
};
|
|
@@ -3078,40 +3140,54 @@ const createCheckboxHandler = (_ctx)=>defineComponentHandler(metadata$v.key, ({
|
|
|
3078
3140
|
});
|
|
3079
3141
|
|
|
3080
3142
|
const { createLocalSnippetElement: createLocalSnippetElement$h } = createLocalSnippetHelper("chip");
|
|
3143
|
+
const CHIP_ICON_SUFFIX_KEY = "27343e0e5ab2c66948e9b10fde03d58b5e037212";
|
|
3144
|
+
const createChipIconSuffixHandler = (ctx)=>{
|
|
3145
|
+
return defineComponentHandler(CHIP_ICON_SUFFIX_KEY, ({ componentProperties })=>{
|
|
3146
|
+
return createLocalSnippetElement$h("Chip.SuffixIcon", undefined, createSeedReactElement("Icon", {
|
|
3147
|
+
svg: ctx.iconHandler.transform(componentProperties["Icon#33203:0"])
|
|
3148
|
+
}));
|
|
3149
|
+
});
|
|
3150
|
+
};
|
|
3081
3151
|
const createChipHandler = (ctx)=>{
|
|
3082
3152
|
const avatarHandler = createAvatarHandler();
|
|
3083
|
-
|
|
3153
|
+
const iconSuffixHandler = createChipIconSuffixHandler(ctx);
|
|
3154
|
+
return defineComponentHandler(metadata$u.key, (node, traverse)=>{
|
|
3084
3155
|
const props = node.componentProperties;
|
|
3085
|
-
const
|
|
3086
|
-
|
|
3156
|
+
const prefix = match(props["Prefix Type"].value).with("None", "Image", ()=>undefined).with("Icon", ()=>createLocalSnippetElement$h("Chip.PrefixIcon", undefined, createSeedReactElement("Icon", {
|
|
3157
|
+
svg: ctx.iconHandler.transform(props["Prefix Icon#8722:0"])
|
|
3158
|
+
}))).with("Avatar", ()=>{
|
|
3087
3159
|
const [avatar] = findAllInstances({
|
|
3088
3160
|
node,
|
|
3089
|
-
key: metadata$
|
|
3161
|
+
key: metadata$D.key
|
|
3090
3162
|
});
|
|
3091
3163
|
if (!avatar) return undefined;
|
|
3092
3164
|
return createLocalSnippetElement$h("Chip.PrefixAvatar", undefined, avatarHandler.transform(avatar, traverse));
|
|
3093
3165
|
}).exhaustive();
|
|
3094
|
-
const
|
|
3166
|
+
const label = createLocalSnippetElement$h("Chip.Label", undefined, props["Label#7185:0"].value);
|
|
3167
|
+
const [suffixIcon] = findAllInstances({
|
|
3168
|
+
node,
|
|
3169
|
+
key: CHIP_ICON_SUFFIX_KEY
|
|
3170
|
+
});
|
|
3095
3171
|
const commonProps = {
|
|
3096
3172
|
variant: camelCase(props.Variant.value),
|
|
3097
3173
|
size: handleSizeProp(props.Size.value),
|
|
3098
3174
|
layout: props["Label#7185:0"].value ? "withText" : "iconOnly",
|
|
3099
|
-
...
|
|
3175
|
+
...props.State.value === "Disabled" && {
|
|
3100
3176
|
disabled: true
|
|
3101
3177
|
}
|
|
3102
3178
|
};
|
|
3103
3179
|
return createLocalSnippetElement$h("Chip.Button", commonProps, [
|
|
3104
3180
|
prefix,
|
|
3105
|
-
|
|
3106
|
-
|
|
3181
|
+
label,
|
|
3182
|
+
suffixIcon ? iconSuffixHandler.transform(suffixIcon, traverse) : undefined
|
|
3107
3183
|
], {
|
|
3108
|
-
comment: "목적에 따라 Chip.Toggle, Chip.RadioItem
|
|
3184
|
+
comment: "목적에 따라 Chip.Toggle, Chip.RadioItem 등으로 바꿔 사용하세요."
|
|
3109
3185
|
});
|
|
3110
3186
|
});
|
|
3111
3187
|
};
|
|
3112
3188
|
|
|
3113
3189
|
const { createLocalSnippetElement: createLocalSnippetElement$g } = createLocalSnippetHelper("contextual-floating-button");
|
|
3114
|
-
const createContextualFloatingButtonHandler = (ctx)=>defineComponentHandler(metadata$
|
|
3190
|
+
const createContextualFloatingButtonHandler = (ctx)=>defineComponentHandler(metadata$s.key, ({ componentProperties: props })=>{
|
|
3115
3191
|
const states = props.State.value.split("-");
|
|
3116
3192
|
const { layout, children } = match(props.Layout.value).with("Icon Only", ()=>({
|
|
3117
3193
|
layout: "iconOnly",
|
|
@@ -3142,7 +3218,7 @@ const createContextualFloatingButtonHandler = (ctx)=>defineComponentHandler(meta
|
|
|
3142
3218
|
return createLocalSnippetElement$g("ContextualFloatingButton", commonProps, children);
|
|
3143
3219
|
});
|
|
3144
3220
|
|
|
3145
|
-
const createDividerHandler = (_ctx)=>defineComponentHandler(metadata$
|
|
3221
|
+
const createDividerHandler = (_ctx)=>defineComponentHandler(metadata$r.key, ({ componentProperties: props })=>{
|
|
3146
3222
|
const { color } = match(props.Tone.value).with("Neutral", ()=>({
|
|
3147
3223
|
color: "stroke.neutral"
|
|
3148
3224
|
})).with("Neutral Muted", ()=>({
|
|
@@ -3156,7 +3232,7 @@ const createDividerHandler = (_ctx)=>defineComponentHandler(metadata$q.key, ({ c
|
|
|
3156
3232
|
const { createLocalSnippetElement: createLocalSnippetElement$f } = createLocalSnippetHelper("error-state");
|
|
3157
3233
|
const createErrorStateHandler = (ctx)=>{
|
|
3158
3234
|
const actionButtonHandler = createActionButtonHandler(ctx);
|
|
3159
|
-
return defineComponentHandler(metadata$
|
|
3235
|
+
return defineComponentHandler(metadata$I.key, (node, traverse)=>{
|
|
3160
3236
|
const props = node.componentProperties;
|
|
3161
3237
|
const [actionButtonNode] = findAllInstances({
|
|
3162
3238
|
node,
|
|
@@ -3184,7 +3260,7 @@ const createErrorStateHandler = (ctx)=>{
|
|
|
3184
3260
|
const { createLocalSnippetElement: createLocalSnippetElement$e } = createLocalSnippetHelper("floating-action-button");
|
|
3185
3261
|
const BUTTON_TYPE_KEY = "8cecc85275115d653579d4c3156567ebf19f7b27";
|
|
3186
3262
|
const MENU_TYPE_KEY = "400124347392c15473f9cd2d8a6aedb64f3baf36";
|
|
3187
|
-
const createFloatingActionButtonHandler = (ctx)=>defineComponentHandler(metadata$
|
|
3263
|
+
const createFloatingActionButtonHandler = (ctx)=>defineComponentHandler(metadata$q.key, (node)=>{
|
|
3188
3264
|
const [button] = findAllInstances({
|
|
3189
3265
|
node,
|
|
3190
3266
|
key: BUTTON_TYPE_KEY
|
|
@@ -3210,7 +3286,7 @@ const createFloatingActionButtonHandler = (ctx)=>defineComponentHandler(metadata
|
|
|
3210
3286
|
|
|
3211
3287
|
const { createLocalSnippetElement: createLocalSnippetElement$d } = createLocalSnippetHelper("help-bubble");
|
|
3212
3288
|
const { createLocalSnippetElement: createLocalSnippetElementTrigger$1 } = createLocalSnippetHelper("action-button");
|
|
3213
|
-
const createHelpBubbleHandler = (_ctx)=>defineComponentHandler(metadata$
|
|
3289
|
+
const createHelpBubbleHandler = (_ctx)=>defineComponentHandler(metadata$p.key, ({ componentProperties: props })=>{
|
|
3214
3290
|
const placement = (()=>{
|
|
3215
3291
|
switch(props.Placement.value){
|
|
3216
3292
|
case "Bottom-Left":
|
|
@@ -3251,7 +3327,7 @@ const createHelpBubbleHandler = (_ctx)=>defineComponentHandler(metadata$o.key, (
|
|
|
3251
3327
|
});
|
|
3252
3328
|
|
|
3253
3329
|
const { createLocalSnippetElement: createLocalSnippetElement$c } = createLocalSnippetHelper("inline-banner");
|
|
3254
|
-
const createInlineBannerHandler = (ctx)=>defineComponentHandler(metadata$
|
|
3330
|
+
const createInlineBannerHandler = (ctx)=>defineComponentHandler(metadata$o.key, (node)=>{
|
|
3255
3331
|
const { componentProperties: props } = node;
|
|
3256
3332
|
const tag = match(props.Interaction.value).with("Default", ()=>"InlineBanner").with("Actionable", ()=>"ActionableInlineBanner").with("Dismissible", ()=>"DismissibleInlineBanner").with("Link", ()=>"InlineBanner").exhaustive();
|
|
3257
3333
|
const textNode = findOne(node, (child)=>child.type === "TEXT" && child.name === "Label");
|
|
@@ -3294,7 +3370,7 @@ const createInlineBannerHandler = (ctx)=>defineComponentHandler(metadata$n.key,
|
|
|
3294
3370
|
});
|
|
3295
3371
|
|
|
3296
3372
|
const { createLocalSnippetElement: createLocalSnippetElement$b } = createLocalSnippetHelper("manner-temp-badge");
|
|
3297
|
-
const createMannerTempBadgeHandler = (_ctx)=>defineComponentHandler(metadata$
|
|
3373
|
+
const createMannerTempBadgeHandler = (_ctx)=>defineComponentHandler(metadata$k.key, ({ children })=>{
|
|
3298
3374
|
const textNode = children.find((child)=>child.type === "TEXT");
|
|
3299
3375
|
const commonProps = {
|
|
3300
3376
|
temperature: Number(textNode?.characters.replace(/[^\d.-]/g, "") ?? "-1")
|
|
@@ -3302,8 +3378,8 @@ const createMannerTempBadgeHandler = (_ctx)=>defineComponentHandler(metadata$j.k
|
|
|
3302
3378
|
return createLocalSnippetElement$b("MannerTempBadge", commonProps);
|
|
3303
3379
|
});
|
|
3304
3380
|
|
|
3305
|
-
const { createLocalSnippetElement: createLocalSnippetElement$a } = createLocalSnippetHelper("manner-temp
|
|
3306
|
-
const createMannerTempHandler = (_ctx)=>defineComponentHandler(metadata$
|
|
3381
|
+
const { createLocalSnippetElement: createLocalSnippetElement$a } = createLocalSnippetHelper("manner-temp");
|
|
3382
|
+
const createMannerTempHandler = (_ctx)=>defineComponentHandler(metadata$l.key, ({ children })=>{
|
|
3307
3383
|
const textNode = children.find((child)=>child.type === "TEXT");
|
|
3308
3384
|
const commonProps = {
|
|
3309
3385
|
temperature: Number(textNode?.characters.replace(/[^\d.-]/g, "") ?? "-1")
|
|
@@ -3343,7 +3419,7 @@ const createMenuSheetGroupHandler = (ctx)=>{
|
|
|
3343
3419
|
};
|
|
3344
3420
|
const createMenuSheetHandler = (ctx)=>{
|
|
3345
3421
|
const menuSheetGroupHandler = createMenuSheetGroupHandler(ctx);
|
|
3346
|
-
return defineComponentHandler(metadata$
|
|
3422
|
+
return defineComponentHandler(metadata$j.key, (node, traverse)=>{
|
|
3347
3423
|
const { componentProperties: props } = node;
|
|
3348
3424
|
const groups = findAllInstances({
|
|
3349
3425
|
node,
|
|
@@ -3375,7 +3451,7 @@ const createMenuSheetHandler = (ctx)=>{
|
|
|
3375
3451
|
};
|
|
3376
3452
|
|
|
3377
3453
|
const { createLocalSnippetElement: createLocalSnippetElement$8 } = createLocalSnippetHelper("text-field");
|
|
3378
|
-
const createMultilineTextFieldHandler = (_ctx)=>defineComponentHandler(metadata$
|
|
3454
|
+
const createMultilineTextFieldHandler = (_ctx)=>defineComponentHandler(metadata$i.key, ({ componentProperties: props })=>{
|
|
3379
3455
|
const { Size: { value: size }, State: { value: state }, Filled: { value: filled }, "Show Header#870:0": { value: showHeader }, "Label#15327:323": { value: label }, "Show Indicator#1259:0": { value: showIndicator }, "Indicator#15327:286": { value: indicator }, "Placeholder#958:0": { value: placeholder }, "Filled Text#1304:0": { value: defaultValue }, "Show Footer#958:25": { value: showFooter }, "Show Description#958:50": { value: showDescription }, "Description#15327:212": { value: description }, "Show Character count#958:75": { value: showCharacterCount }, "Character Count#15327:360": { value: _characterCount }, "Max Character Count#15327:175": { value: maxCharacterCount } } = props;
|
|
3380
3456
|
const states = state.split("-");
|
|
3381
3457
|
const commonProps = {
|
|
@@ -3421,7 +3497,7 @@ const createMultilineTextFieldHandler = (_ctx)=>defineComponentHandler(metadata$
|
|
|
3421
3497
|
});
|
|
3422
3498
|
|
|
3423
3499
|
const { createLocalSnippetElement: createLocalSnippetElement$7 } = createLocalSnippetHelper("progress-circle");
|
|
3424
|
-
const createProgressCircleHandler = (_ctx)=>defineComponentHandler(metadata$
|
|
3500
|
+
const createProgressCircleHandler = (_ctx)=>defineComponentHandler(metadata$h.key, ({ componentProperties: props })=>{
|
|
3425
3501
|
const { value, minValue, maxValue } = match(props.Value.value).with("Indeterminate", ()=>({
|
|
3426
3502
|
value: undefined,
|
|
3427
3503
|
minValue: undefined,
|
|
@@ -3448,7 +3524,7 @@ const createProgressCircleHandler = (_ctx)=>defineComponentHandler(metadata$g.ke
|
|
|
3448
3524
|
minValue,
|
|
3449
3525
|
maxValue,
|
|
3450
3526
|
size: props.Size.value,
|
|
3451
|
-
...props.Tone.value !== "Custom" && {
|
|
3527
|
+
...props.Tone.value !== "Custom(inherit)" && {
|
|
3452
3528
|
tone: camelCase(props.Tone.value)
|
|
3453
3529
|
}
|
|
3454
3530
|
};
|
|
@@ -3456,17 +3532,16 @@ const createProgressCircleHandler = (_ctx)=>defineComponentHandler(metadata$g.ke
|
|
|
3456
3532
|
});
|
|
3457
3533
|
|
|
3458
3534
|
const { createLocalSnippetElement: createLocalSnippetElement$6 } = createLocalSnippetHelper("reaction-button");
|
|
3459
|
-
const createReactionButtonHandler = (ctx)=>defineComponentHandler(metadata$
|
|
3460
|
-
const states = props.State.value.split("-");
|
|
3535
|
+
const createReactionButtonHandler = (ctx)=>defineComponentHandler(metadata$d.key, ({ componentProperties: props })=>{
|
|
3461
3536
|
const commonProps = {
|
|
3462
3537
|
size: handleSizeProp(props.Size.value),
|
|
3463
|
-
...
|
|
3538
|
+
...props.State.value === "Loading" && {
|
|
3464
3539
|
loading: true
|
|
3465
3540
|
},
|
|
3466
|
-
...
|
|
3541
|
+
...props.State.value === "Disabled" && {
|
|
3467
3542
|
disabled: true
|
|
3468
3543
|
},
|
|
3469
|
-
...
|
|
3544
|
+
...props.Selected.value === "True" && {
|
|
3470
3545
|
defaultPressed: true
|
|
3471
3546
|
}
|
|
3472
3547
|
};
|
|
@@ -3493,7 +3568,7 @@ const createSegmentedControlItemHandler = (_ctx)=>defineComponentHandler(SEGMENT
|
|
|
3493
3568
|
});
|
|
3494
3569
|
const createSegmentedControlHandler = (ctx)=>{
|
|
3495
3570
|
const segmentedControlItemHandler = createSegmentedControlItemHandler();
|
|
3496
|
-
return defineComponentHandler(metadata$
|
|
3571
|
+
return defineComponentHandler(metadata$a.key, (node, traverse)=>{
|
|
3497
3572
|
const segments = findAllInstances({
|
|
3498
3573
|
node,
|
|
3499
3574
|
key: segmentedControlItemHandler.key
|
|
@@ -3512,18 +3587,17 @@ const createSegmentedControlHandler = (ctx)=>{
|
|
|
3512
3587
|
};
|
|
3513
3588
|
|
|
3514
3589
|
const { createLocalSnippetElement: createLocalSnippetElement$4 } = createLocalSnippetHelper("select-box");
|
|
3515
|
-
const createSelectBoxHandler = (_ctx)=>defineComponentHandler(metadata$
|
|
3516
|
-
const tag = match(props.Control.value).with("Checkbox", ()=>"CheckSelectBox").with("Radio", ()=>"
|
|
3517
|
-
const states = props.State.value.split("-");
|
|
3590
|
+
const createSelectBoxHandler = (_ctx)=>defineComponentHandler(metadata$9.key, ({ componentProperties: props })=>{
|
|
3591
|
+
const tag = match(props.Control.value).with("Checkbox", ()=>"CheckSelectBox").with("Radio", ()=>"RadioSelectBoxItem").exhaustive();
|
|
3518
3592
|
const commonProps = {
|
|
3519
3593
|
label: props["Label#3635:0"].value,
|
|
3520
3594
|
...props["Show Description#3033:0"].value && {
|
|
3521
3595
|
description: props["Description #3033:5"].value
|
|
3522
3596
|
},
|
|
3523
|
-
...tag === "
|
|
3597
|
+
...tag === "RadioSelectBoxItem" && {
|
|
3524
3598
|
value: props["Label#3635:0"].value
|
|
3525
3599
|
},
|
|
3526
|
-
...tag === "CheckSelectBox" &&
|
|
3600
|
+
...tag === "CheckSelectBox" && props.Selected.value === "True" && {
|
|
3527
3601
|
defaultChecked: true
|
|
3528
3602
|
}
|
|
3529
3603
|
};
|
|
@@ -3531,14 +3605,14 @@ const createSelectBoxHandler = (_ctx)=>defineComponentHandler(metadata$8.key, ({
|
|
|
3531
3605
|
});
|
|
3532
3606
|
const createSelectBoxGroupHandler = (ctx)=>{
|
|
3533
3607
|
const selectBoxHandler = createSelectBoxHandler();
|
|
3534
|
-
return defineComponentHandler(metadata$
|
|
3608
|
+
return defineComponentHandler(metadata$H.key, (node, traverse)=>{
|
|
3535
3609
|
const props = node.componentProperties;
|
|
3536
|
-
const tag = match(props.Control.value).with("Checkbox", ()=>"CheckSelectBoxGroup").with("Radio", ()=>"
|
|
3610
|
+
const tag = match(props.Control.value).with("Checkbox", ()=>"CheckSelectBoxGroup").with("Radio", ()=>"RadioSelectBoxRoot").exhaustive();
|
|
3537
3611
|
const selectBoxes = findAllInstances({
|
|
3538
3612
|
node,
|
|
3539
3613
|
key: selectBoxHandler.key
|
|
3540
3614
|
});
|
|
3541
|
-
const selectedSelectBox = selectBoxes.find((selectBox)=>selectBox.componentProperties.
|
|
3615
|
+
const selectedSelectBox = selectBoxes.find((selectBox)=>selectBox.componentProperties.Selected.value === "True");
|
|
3542
3616
|
// traverse the container like it's a frame
|
|
3543
3617
|
const vStackProps = traverse({
|
|
3544
3618
|
...node,
|
|
@@ -3546,7 +3620,7 @@ const createSelectBoxGroupHandler = (ctx)=>{
|
|
|
3546
3620
|
})?.props;
|
|
3547
3621
|
const stack = createSeedReactElement("VStack", vStackProps, selectBoxes.map((box)=>selectBoxHandler.transform(box, traverse)));
|
|
3548
3622
|
const commonProps = {
|
|
3549
|
-
...tag === "
|
|
3623
|
+
...tag === "RadioSelectBoxRoot" && {
|
|
3550
3624
|
defaultValue: selectedSelectBox?.componentProperties["Label#3635:0"].value
|
|
3551
3625
|
}
|
|
3552
3626
|
};
|
|
@@ -3554,7 +3628,7 @@ const createSelectBoxGroupHandler = (ctx)=>{
|
|
|
3554
3628
|
});
|
|
3555
3629
|
};
|
|
3556
3630
|
|
|
3557
|
-
const createSkeletonHandler = (ctx)=>defineComponentHandler(metadata$
|
|
3631
|
+
const createSkeletonHandler = (ctx)=>defineComponentHandler(metadata$8.key, (node)=>{
|
|
3558
3632
|
const { componentProperties: props, layoutSizingHorizontal, layoutSizingVertical } = node;
|
|
3559
3633
|
const commonProps = {
|
|
3560
3634
|
radius: camelCase(props.Radius.value),
|
|
@@ -3565,7 +3639,7 @@ const createSkeletonHandler = (ctx)=>defineComponentHandler(metadata$7.key, (nod
|
|
|
3565
3639
|
});
|
|
3566
3640
|
|
|
3567
3641
|
const { createLocalSnippetElement: createLocalSnippetElement$3 } = createLocalSnippetHelper("snackbar");
|
|
3568
|
-
const createSnackbarHandler = (_ctx)=>defineComponentHandler(metadata$
|
|
3642
|
+
const createSnackbarHandler = (_ctx)=>defineComponentHandler(metadata$6.key, ({ componentProperties: props })=>{
|
|
3569
3643
|
const commonProps = {
|
|
3570
3644
|
message: props["Message#1528:4"].value,
|
|
3571
3645
|
variant: camelCase(props.Variant.value),
|
|
@@ -3579,17 +3653,13 @@ const createSnackbarHandler = (_ctx)=>defineComponentHandler(metadata$5.key, ({
|
|
|
3579
3653
|
|
|
3580
3654
|
const { createLocalSnippetElement: createLocalSnippetElement$2 } = createLocalSnippetHelper("switch");
|
|
3581
3655
|
const createSwitchHandler = (_ctx)=>defineComponentHandler(metadata$4.key, ({ componentProperties: props })=>{
|
|
3582
|
-
const states = props.State.value.split("-");
|
|
3583
|
-
const size = handleSizeProp(props.Size.value);
|
|
3584
3656
|
const commonProps = {
|
|
3585
|
-
size,
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
},
|
|
3589
|
-
...states.includes("Selected") && {
|
|
3657
|
+
size: props.Size.value,
|
|
3658
|
+
label: props["Label#36578:0"].value,
|
|
3659
|
+
...props.Selected.value === "True" && {
|
|
3590
3660
|
defaultChecked: true
|
|
3591
3661
|
},
|
|
3592
|
-
...
|
|
3662
|
+
...props.State.value === "Disabled" && {
|
|
3593
3663
|
disabled: true
|
|
3594
3664
|
}
|
|
3595
3665
|
};
|
|
@@ -3657,17 +3727,16 @@ const createTextFieldHandler = (ctx)=>defineComponentHandler(metadata$2.key, ({
|
|
|
3657
3727
|
|
|
3658
3728
|
const { createLocalSnippetElement } = createLocalSnippetHelper("toggle-button");
|
|
3659
3729
|
const createToggleButtonHandler = (ctx)=>defineComponentHandler(metadata$1.key, ({ componentProperties: props })=>{
|
|
3660
|
-
const states = props.State.value.split("-");
|
|
3661
3730
|
const commonProps = {
|
|
3662
3731
|
variant: camelCase(props.Variant.value),
|
|
3663
3732
|
size: handleSizeProp(props.Size.value),
|
|
3664
|
-
...
|
|
3733
|
+
...props.Selected.value === "True" && {
|
|
3665
3734
|
defaultPressed: true
|
|
3666
3735
|
},
|
|
3667
|
-
...
|
|
3736
|
+
...props.State.value === "Disabled" && {
|
|
3668
3737
|
disabled: true
|
|
3669
3738
|
},
|
|
3670
|
-
...
|
|
3739
|
+
...props.State.value === "Loading" && {
|
|
3671
3740
|
loading: true
|
|
3672
3741
|
}
|
|
3673
3742
|
};
|