@seed-design/figma 0.1.13 β 0.1.14
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 +81 -58
- package/lib/codegen/index.d.ts +84 -55
- package/lib/codegen/index.d.ts.map +1 -1
- package/lib/codegen/index.js +81 -58
- package/lib/codegen/targets/react/index.cjs +127 -76
- package/lib/codegen/targets/react/index.d.ts.map +1 -1
- package/lib/codegen/targets/react/index.js +127 -76
- package/lib/index.cjs +81 -58
- package/lib/index.js +81 -58
- package/package.json +2 -2
- package/src/codegen/component-properties.ts +9 -2
- package/src/codegen/targets/react/component/handlers/page-banner.ts +101 -0
- package/src/codegen/targets/react/component/index.ts +2 -2
- package/src/entities/data/__generated__/component-sets/avatar-stack.d.ts +2 -1
- package/src/entities/data/__generated__/component-sets/avatar-stack.mjs +2 -1
- package/src/entities/data/__generated__/component-sets/avatar.d.ts +2 -1
- package/src/entities/data/__generated__/component-sets/avatar.mjs +2 -1
- package/src/entities/data/__generated__/component-sets/badge.d.ts +4 -3
- package/src/entities/data/__generated__/component-sets/badge.mjs +4 -3
- package/src/entities/data/__generated__/component-sets/divider.d.ts +10 -0
- package/src/entities/data/__generated__/component-sets/divider.mjs +10 -0
- package/src/entities/data/__generated__/component-sets/index.d.ts +1 -1
- package/src/entities/data/__generated__/component-sets/index.mjs +1 -1
- package/src/entities/data/__generated__/component-sets/page-banner.d.ts +50 -0
- package/src/entities/data/__generated__/component-sets/page-banner.mjs +50 -0
- package/src/codegen/targets/react/component/handlers/inline-banner.ts +0 -75
package/lib/codegen/index.js
CHANGED
|
@@ -7904,7 +7904,8 @@ const metadata$D = {
|
|
|
7904
7904
|
"48",
|
|
7905
7905
|
"64",
|
|
7906
7906
|
"80",
|
|
7907
|
-
"96"
|
|
7907
|
+
"96",
|
|
7908
|
+
"108"
|
|
7908
7909
|
]
|
|
7909
7910
|
},
|
|
7910
7911
|
"Badge": {
|
|
@@ -7933,7 +7934,8 @@ const metadata$C = {
|
|
|
7933
7934
|
"48",
|
|
7934
7935
|
"64",
|
|
7935
7936
|
"80",
|
|
7936
|
-
"96"
|
|
7937
|
+
"96",
|
|
7938
|
+
"108"
|
|
7937
7939
|
]
|
|
7938
7940
|
}
|
|
7939
7941
|
}
|
|
@@ -7960,15 +7962,16 @@ const metadata$B = {
|
|
|
7960
7962
|
"Brand",
|
|
7961
7963
|
"Informative",
|
|
7962
7964
|
"Positive",
|
|
7963
|
-
"Critical"
|
|
7965
|
+
"Critical",
|
|
7966
|
+
"Warning"
|
|
7964
7967
|
]
|
|
7965
7968
|
},
|
|
7966
7969
|
"Variant": {
|
|
7967
7970
|
"type": "VARIANT",
|
|
7968
7971
|
"variantOptions": [
|
|
7969
|
-
"Solid",
|
|
7970
7972
|
"Weak",
|
|
7971
|
-
"Outline"
|
|
7973
|
+
"Outline",
|
|
7974
|
+
"Solid"
|
|
7972
7975
|
]
|
|
7973
7976
|
}
|
|
7974
7977
|
}
|
|
@@ -8359,12 +8362,22 @@ const metadata$r = {
|
|
|
8359
8362
|
"name": "π’ Divider",
|
|
8360
8363
|
"key": "848e953725f757ea1a79e1fecc0b608a035032d3",
|
|
8361
8364
|
"componentPropertyDefinitions": {
|
|
8365
|
+
"Inset (Figma-Only)#36435:0": {
|
|
8366
|
+
"type": "BOOLEAN"
|
|
8367
|
+
},
|
|
8362
8368
|
"Tone": {
|
|
8363
8369
|
"type": "VARIANT",
|
|
8364
8370
|
"variantOptions": [
|
|
8365
8371
|
"Neutral",
|
|
8366
8372
|
"Neutral Muted"
|
|
8367
8373
|
]
|
|
8374
|
+
},
|
|
8375
|
+
"Orientation": {
|
|
8376
|
+
"type": "VARIANT",
|
|
8377
|
+
"variantOptions": [
|
|
8378
|
+
"Vertical",
|
|
8379
|
+
"Horizontal"
|
|
8380
|
+
]
|
|
8368
8381
|
}
|
|
8369
8382
|
}
|
|
8370
8383
|
};
|
|
@@ -8417,47 +8430,6 @@ const metadata$p = {
|
|
|
8417
8430
|
};
|
|
8418
8431
|
|
|
8419
8432
|
const metadata$o = {
|
|
8420
|
-
"name": "π’ Inline Banner",
|
|
8421
|
-
"key": "ce587d0f21754af05240cb32a4880227cb0ea1e1",
|
|
8422
|
-
"componentPropertyDefinitions": {
|
|
8423
|
-
"Link Label#1547:81": {
|
|
8424
|
-
"type": "TEXT"
|
|
8425
|
-
},
|
|
8426
|
-
"Show Icon#11840:27": {
|
|
8427
|
-
"type": "BOOLEAN"
|
|
8428
|
-
},
|
|
8429
|
-
"Interaction": {
|
|
8430
|
-
"type": "VARIANT",
|
|
8431
|
-
"variantOptions": [
|
|
8432
|
-
"Default",
|
|
8433
|
-
"Link",
|
|
8434
|
-
"Actionable",
|
|
8435
|
-
"Dismissible"
|
|
8436
|
-
]
|
|
8437
|
-
},
|
|
8438
|
-
"Variant": {
|
|
8439
|
-
"type": "VARIANT",
|
|
8440
|
-
"variantOptions": [
|
|
8441
|
-
"Neutral Weak",
|
|
8442
|
-
"Informative Weak",
|
|
8443
|
-
"Positive Weak",
|
|
8444
|
-
"Warning Solid",
|
|
8445
|
-
"Warning Weak",
|
|
8446
|
-
"Critical Solid",
|
|
8447
|
-
"Critical Weak"
|
|
8448
|
-
]
|
|
8449
|
-
},
|
|
8450
|
-
"Show Title": {
|
|
8451
|
-
"type": "VARIANT",
|
|
8452
|
-
"variantOptions": [
|
|
8453
|
-
"True",
|
|
8454
|
-
"False"
|
|
8455
|
-
]
|
|
8456
|
-
}
|
|
8457
|
-
}
|
|
8458
|
-
};
|
|
8459
|
-
|
|
8460
|
-
const metadata$n = {
|
|
8461
8433
|
"name": "π’ Main Tab Navigation / Global",
|
|
8462
8434
|
"key": "a694a1da14a5c1d7d5c66bc78218c0c61fb388ab",
|
|
8463
8435
|
"componentPropertyDefinitions": {
|
|
@@ -8484,7 +8456,7 @@ const metadata$n = {
|
|
|
8484
8456
|
}
|
|
8485
8457
|
};
|
|
8486
8458
|
|
|
8487
|
-
const metadata$
|
|
8459
|
+
const metadata$n = {
|
|
8488
8460
|
"name": "π’ Main Tab Navigation / KR",
|
|
8489
8461
|
"key": "41d3601e6b4c632a56cdc8fad485a76c026fdd8e",
|
|
8490
8462
|
"componentPropertyDefinitions": {
|
|
@@ -8508,7 +8480,7 @@ const metadata$m = {
|
|
|
8508
8480
|
}
|
|
8509
8481
|
};
|
|
8510
8482
|
|
|
8511
|
-
const metadata$
|
|
8483
|
+
const metadata$m = {
|
|
8512
8484
|
"name": "π’ Manner Temp",
|
|
8513
8485
|
"key": "37c0a35f73a730fdfba7929cea91a7590fc93733",
|
|
8514
8486
|
"componentPropertyDefinitions": {
|
|
@@ -8526,7 +8498,7 @@ const metadata$l = {
|
|
|
8526
8498
|
}
|
|
8527
8499
|
};
|
|
8528
8500
|
|
|
8529
|
-
const metadata$
|
|
8501
|
+
const metadata$l = {
|
|
8530
8502
|
"name": "π’ Manner Temp Badge",
|
|
8531
8503
|
"key": "3ef9a84d4d80046ff9a581136bd56269554a6e00",
|
|
8532
8504
|
"componentPropertyDefinitions": {
|
|
@@ -8544,7 +8516,7 @@ const metadata$k = {
|
|
|
8544
8516
|
}
|
|
8545
8517
|
};
|
|
8546
8518
|
|
|
8547
|
-
const metadata$
|
|
8519
|
+
const metadata$k = {
|
|
8548
8520
|
"name": "π’ Menu Sheet",
|
|
8549
8521
|
"key": "cd4cf8a850bf3de87b79080b36b421a649bf3fcb",
|
|
8550
8522
|
"componentPropertyDefinitions": {
|
|
@@ -8581,7 +8553,7 @@ const metadata$j = {
|
|
|
8581
8553
|
}
|
|
8582
8554
|
};
|
|
8583
8555
|
|
|
8584
|
-
const metadata$
|
|
8556
|
+
const metadata$j = {
|
|
8585
8557
|
"name": "π’ Multiline Text Field",
|
|
8586
8558
|
"key": "88b2399c930c85f9ce2972163a078bc684b84bbe",
|
|
8587
8559
|
"componentPropertyDefinitions": {
|
|
@@ -8650,6 +8622,57 @@ const metadata$i = {
|
|
|
8650
8622
|
}
|
|
8651
8623
|
};
|
|
8652
8624
|
|
|
8625
|
+
const metadata$i = {
|
|
8626
|
+
"name": "π’ Page Banner",
|
|
8627
|
+
"key": "ce587d0f21754af05240cb32a4880227cb0ea1e1",
|
|
8628
|
+
"componentPropertyDefinitions": {
|
|
8629
|
+
"Show Prefix Icon#11840:27": {
|
|
8630
|
+
"type": "BOOLEAN"
|
|
8631
|
+
},
|
|
8632
|
+
"Prefix Icon#35433:45": {
|
|
8633
|
+
"type": "INSTANCE_SWAP",
|
|
8634
|
+
"preferredValues": []
|
|
8635
|
+
},
|
|
8636
|
+
"Pressed#36736:0": {
|
|
8637
|
+
"type": "BOOLEAN"
|
|
8638
|
+
},
|
|
8639
|
+
"Interaction": {
|
|
8640
|
+
"type": "VARIANT",
|
|
8641
|
+
"variantOptions": [
|
|
8642
|
+
"Display",
|
|
8643
|
+
"Actionable",
|
|
8644
|
+
"Dismissible",
|
|
8645
|
+
"With Action",
|
|
8646
|
+
"Custom"
|
|
8647
|
+
]
|
|
8648
|
+
},
|
|
8649
|
+
"Tone": {
|
|
8650
|
+
"type": "VARIANT",
|
|
8651
|
+
"variantOptions": [
|
|
8652
|
+
"Neutral",
|
|
8653
|
+
"Informative",
|
|
8654
|
+
"Positive",
|
|
8655
|
+
"Warning",
|
|
8656
|
+
"Critical"
|
|
8657
|
+
]
|
|
8658
|
+
},
|
|
8659
|
+
"Variant": {
|
|
8660
|
+
"type": "VARIANT",
|
|
8661
|
+
"variantOptions": [
|
|
8662
|
+
"Weak",
|
|
8663
|
+
"Solid"
|
|
8664
|
+
]
|
|
8665
|
+
},
|
|
8666
|
+
"Show Title": {
|
|
8667
|
+
"type": "VARIANT",
|
|
8668
|
+
"variantOptions": [
|
|
8669
|
+
"False",
|
|
8670
|
+
"True"
|
|
8671
|
+
]
|
|
8672
|
+
}
|
|
8673
|
+
}
|
|
8674
|
+
};
|
|
8675
|
+
|
|
8653
8676
|
const metadata$h = {
|
|
8654
8677
|
"name": "π’ Progress Circle",
|
|
8655
8678
|
"key": "6e6779a372cab2485a0e25529bc4dbc9932a7346",
|
|
@@ -9286,13 +9309,13 @@ var FIGMA_COMPONENTS = {
|
|
|
9286
9309
|
divider: metadata$r,
|
|
9287
9310
|
floatingActionButton: metadata$q,
|
|
9288
9311
|
helpBubble: metadata$p,
|
|
9289
|
-
|
|
9290
|
-
|
|
9291
|
-
|
|
9292
|
-
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
|
|
9312
|
+
mainTabNavigationGlobal: metadata$o,
|
|
9313
|
+
mainTabNavigationKr: metadata$n,
|
|
9314
|
+
mannerTemp: metadata$m,
|
|
9315
|
+
mannerTempBadge: metadata$l,
|
|
9316
|
+
menuSheet: metadata$k,
|
|
9317
|
+
multilineTextField: metadata$j,
|
|
9318
|
+
pageBanner: metadata$i,
|
|
9296
9319
|
progressCircle: metadata$h,
|
|
9297
9320
|
radio: metadata$g,
|
|
9298
9321
|
radioMark: metadata$f,
|
|
@@ -1303,7 +1303,8 @@ const metadata$D = {
|
|
|
1303
1303
|
"48",
|
|
1304
1304
|
"64",
|
|
1305
1305
|
"80",
|
|
1306
|
-
"96"
|
|
1306
|
+
"96",
|
|
1307
|
+
"108"
|
|
1307
1308
|
]
|
|
1308
1309
|
},
|
|
1309
1310
|
"Badge": {
|
|
@@ -1332,7 +1333,8 @@ const metadata$C = {
|
|
|
1332
1333
|
"48",
|
|
1333
1334
|
"64",
|
|
1334
1335
|
"80",
|
|
1335
|
-
"96"
|
|
1336
|
+
"96",
|
|
1337
|
+
"108"
|
|
1336
1338
|
]
|
|
1337
1339
|
}
|
|
1338
1340
|
}
|
|
@@ -1359,15 +1361,16 @@ const metadata$B = {
|
|
|
1359
1361
|
"Brand",
|
|
1360
1362
|
"Informative",
|
|
1361
1363
|
"Positive",
|
|
1362
|
-
"Critical"
|
|
1364
|
+
"Critical",
|
|
1365
|
+
"Warning"
|
|
1363
1366
|
]
|
|
1364
1367
|
},
|
|
1365
1368
|
"Variant": {
|
|
1366
1369
|
"type": "VARIANT",
|
|
1367
1370
|
"variantOptions": [
|
|
1368
|
-
"Solid",
|
|
1369
1371
|
"Weak",
|
|
1370
|
-
"Outline"
|
|
1372
|
+
"Outline",
|
|
1373
|
+
"Solid"
|
|
1371
1374
|
]
|
|
1372
1375
|
}
|
|
1373
1376
|
}
|
|
@@ -1758,12 +1761,22 @@ const metadata$r = {
|
|
|
1758
1761
|
"name": "π’ Divider",
|
|
1759
1762
|
"key": "848e953725f757ea1a79e1fecc0b608a035032d3",
|
|
1760
1763
|
"componentPropertyDefinitions": {
|
|
1764
|
+
"Inset (Figma-Only)#36435:0": {
|
|
1765
|
+
"type": "BOOLEAN"
|
|
1766
|
+
},
|
|
1761
1767
|
"Tone": {
|
|
1762
1768
|
"type": "VARIANT",
|
|
1763
1769
|
"variantOptions": [
|
|
1764
1770
|
"Neutral",
|
|
1765
1771
|
"Neutral Muted"
|
|
1766
1772
|
]
|
|
1773
|
+
},
|
|
1774
|
+
"Orientation": {
|
|
1775
|
+
"type": "VARIANT",
|
|
1776
|
+
"variantOptions": [
|
|
1777
|
+
"Vertical",
|
|
1778
|
+
"Horizontal"
|
|
1779
|
+
]
|
|
1767
1780
|
}
|
|
1768
1781
|
}
|
|
1769
1782
|
};
|
|
@@ -1816,47 +1829,6 @@ const metadata$p = {
|
|
|
1816
1829
|
};
|
|
1817
1830
|
|
|
1818
1831
|
const metadata$o = {
|
|
1819
|
-
"name": "π’ Inline Banner",
|
|
1820
|
-
"key": "ce587d0f21754af05240cb32a4880227cb0ea1e1",
|
|
1821
|
-
"componentPropertyDefinitions": {
|
|
1822
|
-
"Link Label#1547:81": {
|
|
1823
|
-
"type": "TEXT"
|
|
1824
|
-
},
|
|
1825
|
-
"Show Icon#11840:27": {
|
|
1826
|
-
"type": "BOOLEAN"
|
|
1827
|
-
},
|
|
1828
|
-
"Interaction": {
|
|
1829
|
-
"type": "VARIANT",
|
|
1830
|
-
"variantOptions": [
|
|
1831
|
-
"Default",
|
|
1832
|
-
"Link",
|
|
1833
|
-
"Actionable",
|
|
1834
|
-
"Dismissible"
|
|
1835
|
-
]
|
|
1836
|
-
},
|
|
1837
|
-
"Variant": {
|
|
1838
|
-
"type": "VARIANT",
|
|
1839
|
-
"variantOptions": [
|
|
1840
|
-
"Neutral Weak",
|
|
1841
|
-
"Informative Weak",
|
|
1842
|
-
"Positive Weak",
|
|
1843
|
-
"Warning Solid",
|
|
1844
|
-
"Warning Weak",
|
|
1845
|
-
"Critical Solid",
|
|
1846
|
-
"Critical Weak"
|
|
1847
|
-
]
|
|
1848
|
-
},
|
|
1849
|
-
"Show Title": {
|
|
1850
|
-
"type": "VARIANT",
|
|
1851
|
-
"variantOptions": [
|
|
1852
|
-
"True",
|
|
1853
|
-
"False"
|
|
1854
|
-
]
|
|
1855
|
-
}
|
|
1856
|
-
}
|
|
1857
|
-
};
|
|
1858
|
-
|
|
1859
|
-
const metadata$n = {
|
|
1860
1832
|
"name": "π’ Main Tab Navigation / Global",
|
|
1861
1833
|
"key": "a694a1da14a5c1d7d5c66bc78218c0c61fb388ab",
|
|
1862
1834
|
"componentPropertyDefinitions": {
|
|
@@ -1883,7 +1855,7 @@ const metadata$n = {
|
|
|
1883
1855
|
}
|
|
1884
1856
|
};
|
|
1885
1857
|
|
|
1886
|
-
const metadata$
|
|
1858
|
+
const metadata$n = {
|
|
1887
1859
|
"name": "π’ Main Tab Navigation / KR",
|
|
1888
1860
|
"key": "41d3601e6b4c632a56cdc8fad485a76c026fdd8e",
|
|
1889
1861
|
"componentPropertyDefinitions": {
|
|
@@ -1907,7 +1879,7 @@ const metadata$m = {
|
|
|
1907
1879
|
}
|
|
1908
1880
|
};
|
|
1909
1881
|
|
|
1910
|
-
const metadata$
|
|
1882
|
+
const metadata$m = {
|
|
1911
1883
|
"name": "π’ Manner Temp",
|
|
1912
1884
|
"key": "37c0a35f73a730fdfba7929cea91a7590fc93733",
|
|
1913
1885
|
"componentPropertyDefinitions": {
|
|
@@ -1925,7 +1897,7 @@ const metadata$l = {
|
|
|
1925
1897
|
}
|
|
1926
1898
|
};
|
|
1927
1899
|
|
|
1928
|
-
const metadata$
|
|
1900
|
+
const metadata$l = {
|
|
1929
1901
|
"name": "π’ Manner Temp Badge",
|
|
1930
1902
|
"key": "3ef9a84d4d80046ff9a581136bd56269554a6e00",
|
|
1931
1903
|
"componentPropertyDefinitions": {
|
|
@@ -1943,7 +1915,7 @@ const metadata$k = {
|
|
|
1943
1915
|
}
|
|
1944
1916
|
};
|
|
1945
1917
|
|
|
1946
|
-
const metadata$
|
|
1918
|
+
const metadata$k = {
|
|
1947
1919
|
"name": "π’ Menu Sheet",
|
|
1948
1920
|
"key": "cd4cf8a850bf3de87b79080b36b421a649bf3fcb",
|
|
1949
1921
|
"componentPropertyDefinitions": {
|
|
@@ -1980,7 +1952,7 @@ const metadata$j = {
|
|
|
1980
1952
|
}
|
|
1981
1953
|
};
|
|
1982
1954
|
|
|
1983
|
-
const metadata$
|
|
1955
|
+
const metadata$j = {
|
|
1984
1956
|
"name": "π’ Multiline Text Field",
|
|
1985
1957
|
"key": "88b2399c930c85f9ce2972163a078bc684b84bbe",
|
|
1986
1958
|
"componentPropertyDefinitions": {
|
|
@@ -2049,6 +2021,57 @@ const metadata$i = {
|
|
|
2049
2021
|
}
|
|
2050
2022
|
};
|
|
2051
2023
|
|
|
2024
|
+
const metadata$i = {
|
|
2025
|
+
"name": "π’ Page Banner",
|
|
2026
|
+
"key": "ce587d0f21754af05240cb32a4880227cb0ea1e1",
|
|
2027
|
+
"componentPropertyDefinitions": {
|
|
2028
|
+
"Show Prefix Icon#11840:27": {
|
|
2029
|
+
"type": "BOOLEAN"
|
|
2030
|
+
},
|
|
2031
|
+
"Prefix Icon#35433:45": {
|
|
2032
|
+
"type": "INSTANCE_SWAP",
|
|
2033
|
+
"preferredValues": []
|
|
2034
|
+
},
|
|
2035
|
+
"Pressed#36736:0": {
|
|
2036
|
+
"type": "BOOLEAN"
|
|
2037
|
+
},
|
|
2038
|
+
"Interaction": {
|
|
2039
|
+
"type": "VARIANT",
|
|
2040
|
+
"variantOptions": [
|
|
2041
|
+
"Display",
|
|
2042
|
+
"Actionable",
|
|
2043
|
+
"Dismissible",
|
|
2044
|
+
"With Action",
|
|
2045
|
+
"Custom"
|
|
2046
|
+
]
|
|
2047
|
+
},
|
|
2048
|
+
"Tone": {
|
|
2049
|
+
"type": "VARIANT",
|
|
2050
|
+
"variantOptions": [
|
|
2051
|
+
"Neutral",
|
|
2052
|
+
"Informative",
|
|
2053
|
+
"Positive",
|
|
2054
|
+
"Warning",
|
|
2055
|
+
"Critical"
|
|
2056
|
+
]
|
|
2057
|
+
},
|
|
2058
|
+
"Variant": {
|
|
2059
|
+
"type": "VARIANT",
|
|
2060
|
+
"variantOptions": [
|
|
2061
|
+
"Weak",
|
|
2062
|
+
"Solid"
|
|
2063
|
+
]
|
|
2064
|
+
},
|
|
2065
|
+
"Show Title": {
|
|
2066
|
+
"type": "VARIANT",
|
|
2067
|
+
"variantOptions": [
|
|
2068
|
+
"False",
|
|
2069
|
+
"True"
|
|
2070
|
+
]
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2073
|
+
};
|
|
2074
|
+
|
|
2052
2075
|
const metadata$h = {
|
|
2053
2076
|
"name": "π’ Progress Circle",
|
|
2054
2077
|
"key": "6e6779a372cab2485a0e25529bc4dbc9932a7346",
|
|
@@ -2685,13 +2708,13 @@ var FIGMA_COMPONENTS = {
|
|
|
2685
2708
|
divider: metadata$r,
|
|
2686
2709
|
floatingActionButton: metadata$q,
|
|
2687
2710
|
helpBubble: metadata$p,
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2711
|
+
mainTabNavigationGlobal: metadata$o,
|
|
2712
|
+
mainTabNavigationKr: metadata$n,
|
|
2713
|
+
mannerTemp: metadata$m,
|
|
2714
|
+
mannerTempBadge: metadata$l,
|
|
2715
|
+
menuSheet: metadata$k,
|
|
2716
|
+
multilineTextField: metadata$j,
|
|
2717
|
+
pageBanner: metadata$i,
|
|
2695
2718
|
progressCircle: metadata$h,
|
|
2696
2719
|
radio: metadata$g,
|
|
2697
2720
|
radioMark: metadata$f,
|
|
@@ -3332,11 +3355,39 @@ const createHelpBubbleHandler = (_ctx)=>defineComponentHandler(metadata$p.key, (
|
|
|
3332
3355
|
return createLocalSnippetElement$d("HelpBubbleTrigger", commonProps, createLocalSnippetElementTrigger$1("ActionButton", {}, "HelpBubble μ΄κΈ°"));
|
|
3333
3356
|
});
|
|
3334
3357
|
|
|
3335
|
-
const { createLocalSnippetElement: createLocalSnippetElement$c } = createLocalSnippetHelper("
|
|
3336
|
-
const
|
|
3358
|
+
const { createLocalSnippetElement: createLocalSnippetElement$c } = createLocalSnippetHelper("page-banner");
|
|
3359
|
+
const SUFFIX_BUTTON_KEY = "7dce4e1242761ccd8e5da42278fc2d870918039c";
|
|
3360
|
+
const createPageBannerButtonHandler = (_ctx)=>defineComponentHandler(SUFFIX_BUTTON_KEY, (node)=>{
|
|
3361
|
+
return createElement("PageBannerButton", undefined, node.componentProperties["Label#39890:0"].value);
|
|
3362
|
+
});
|
|
3363
|
+
const createPageBannerHandler = (ctx)=>{
|
|
3364
|
+
const buttonHandler = createPageBannerButtonHandler();
|
|
3365
|
+
return defineComponentHandler(metadata$i.key, (node, traverse)=>{
|
|
3337
3366
|
const { componentProperties: props } = node;
|
|
3338
|
-
const tag = tsPattern.match(props.Interaction.value).with("
|
|
3339
|
-
|
|
3367
|
+
const { tag, suffix } = tsPattern.match(props.Interaction.value).with("Actionable", ()=>({
|
|
3368
|
+
tag: "ActionablePageBanner",
|
|
3369
|
+
suffix: undefined
|
|
3370
|
+
})).with("Dismissible", ()=>({
|
|
3371
|
+
tag: "DismissiblePageBanner",
|
|
3372
|
+
suffix: undefined
|
|
3373
|
+
})).with("Display", ()=>({
|
|
3374
|
+
tag: "PageBanner",
|
|
3375
|
+
suffix: undefined
|
|
3376
|
+
})).with("With Action", ()=>{
|
|
3377
|
+
const [buttonNode] = findAllInstances({
|
|
3378
|
+
node,
|
|
3379
|
+
key: SUFFIX_BUTTON_KEY
|
|
3380
|
+
});
|
|
3381
|
+
const suffix = buttonNode ? buttonHandler.transform(buttonNode, traverse) : undefined;
|
|
3382
|
+
return {
|
|
3383
|
+
tag: "PageBanner",
|
|
3384
|
+
suffix
|
|
3385
|
+
};
|
|
3386
|
+
}).with("Custom", ()=>({
|
|
3387
|
+
tag: "PageBanner",
|
|
3388
|
+
suffix: createElement("div", undefined, "Custom Content")
|
|
3389
|
+
})).exhaustive();
|
|
3390
|
+
const textNode = findOne(node, (child)=>child.type === "TEXT" && child.name === "Text");
|
|
3340
3391
|
if (!textNode) {
|
|
3341
3392
|
return createLocalSnippetElement$c(tag, undefined, undefined, {
|
|
3342
3393
|
comment: "λ΄μ©μ μ 곡ν΄μ£ΌμΈμ."
|
|
@@ -3359,24 +3410,24 @@ const createInlineBannerHandler = (ctx)=>defineComponentHandler(metadata$o.key,
|
|
|
3359
3410
|
}
|
|
3360
3411
|
}
|
|
3361
3412
|
const iconNode = findOne(node, (child)=>child.type === "INSTANCE" && child.name === "icon");
|
|
3362
|
-
const
|
|
3363
|
-
const prefixIcon =
|
|
3413
|
+
const showPrefixIcon = props["Show Prefix Icon#11840:27"].value && iconNode;
|
|
3414
|
+
const prefixIcon = showPrefixIcon ? ctx.iconHandler.transform(iconNode) : undefined;
|
|
3364
3415
|
const commonProps = {
|
|
3365
|
-
variant: changeCase.camelCase(props.Variant.value),
|
|
3366
3416
|
title,
|
|
3367
3417
|
description,
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3418
|
+
prefixIcon,
|
|
3419
|
+
tone: changeCase.camelCase(props.Tone.value),
|
|
3420
|
+
variant: changeCase.camelCase(props.Variant.value),
|
|
3421
|
+
...suffix && {
|
|
3422
|
+
suffix
|
|
3423
|
+
}
|
|
3374
3424
|
};
|
|
3375
3425
|
return createLocalSnippetElement$c(tag, commonProps);
|
|
3376
3426
|
});
|
|
3427
|
+
};
|
|
3377
3428
|
|
|
3378
3429
|
const { createLocalSnippetElement: createLocalSnippetElement$b } = createLocalSnippetHelper("manner-temp-badge");
|
|
3379
|
-
const createMannerTempBadgeHandler = (_ctx)=>defineComponentHandler(metadata$
|
|
3430
|
+
const createMannerTempBadgeHandler = (_ctx)=>defineComponentHandler(metadata$l.key, ({ children })=>{
|
|
3380
3431
|
const textNode = children.find((child)=>child.type === "TEXT");
|
|
3381
3432
|
const commonProps = {
|
|
3382
3433
|
temperature: Number(textNode?.characters.replace(/[^\d.-]/g, "") ?? "-1")
|
|
@@ -3385,7 +3436,7 @@ const createMannerTempBadgeHandler = (_ctx)=>defineComponentHandler(metadata$k.k
|
|
|
3385
3436
|
});
|
|
3386
3437
|
|
|
3387
3438
|
const { createLocalSnippetElement: createLocalSnippetElement$a } = createLocalSnippetHelper("manner-temp");
|
|
3388
|
-
const createMannerTempHandler = (_ctx)=>defineComponentHandler(metadata$
|
|
3439
|
+
const createMannerTempHandler = (_ctx)=>defineComponentHandler(metadata$m.key, ({ children })=>{
|
|
3389
3440
|
const textNode = children.find((child)=>child.type === "TEXT");
|
|
3390
3441
|
const commonProps = {
|
|
3391
3442
|
temperature: Number(textNode?.characters.replace(/[^\d.-]/g, "") ?? "-1")
|
|
@@ -3425,7 +3476,7 @@ const createMenuSheetGroupHandler = (ctx)=>{
|
|
|
3425
3476
|
};
|
|
3426
3477
|
const createMenuSheetHandler = (ctx)=>{
|
|
3427
3478
|
const menuSheetGroupHandler = createMenuSheetGroupHandler(ctx);
|
|
3428
|
-
return defineComponentHandler(metadata$
|
|
3479
|
+
return defineComponentHandler(metadata$k.key, (node, traverse)=>{
|
|
3429
3480
|
const { componentProperties: props } = node;
|
|
3430
3481
|
const groups = findAllInstances({
|
|
3431
3482
|
node,
|
|
@@ -3457,7 +3508,7 @@ const createMenuSheetHandler = (ctx)=>{
|
|
|
3457
3508
|
};
|
|
3458
3509
|
|
|
3459
3510
|
const { createLocalSnippetElement: createLocalSnippetElement$8 } = createLocalSnippetHelper("text-field");
|
|
3460
|
-
const createMultilineTextFieldHandler = (_ctx)=>defineComponentHandler(metadata$
|
|
3511
|
+
const createMultilineTextFieldHandler = (_ctx)=>defineComponentHandler(metadata$j.key, ({ componentProperties: props })=>{
|
|
3461
3512
|
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;
|
|
3462
3513
|
const states = state.split("-");
|
|
3463
3514
|
const commonProps = {
|
|
@@ -3778,7 +3829,7 @@ const unboundSeedComponentHandlers = [
|
|
|
3778
3829
|
createFloatingActionButtonHandler,
|
|
3779
3830
|
createHelpBubbleHandler,
|
|
3780
3831
|
createIdentityPlaceholderHandler,
|
|
3781
|
-
|
|
3832
|
+
createPageBannerHandler,
|
|
3782
3833
|
createMannerTempBadgeHandler,
|
|
3783
3834
|
createMannerTempHandler,
|
|
3784
3835
|
createMenuSheetHandler,
|