@seed-design/figma 1.2.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/lib/codegen/index.cjs +201 -163
  2. package/lib/codegen/index.js +201 -163
  3. package/lib/codegen/targets/react/index.cjs +980 -573
  4. package/lib/codegen/targets/react/index.js +980 -573
  5. package/lib/index.cjs +201 -163
  6. package/lib/index.js +201 -163
  7. package/package.json +2 -2
  8. package/src/codegen/component-properties.ts +34 -6
  9. package/src/codegen/core/infer-layout.test.ts +1 -1
  10. package/src/codegen/targets/react/component/handlers/archive/checkbox.ts +3 -1
  11. package/src/codegen/targets/react/component/handlers/archive/field-button.ts +2 -2
  12. package/src/codegen/targets/react/component/handlers/archive/index.ts +0 -1
  13. package/src/codegen/targets/react/component/handlers/archive/slider.ts +2 -2
  14. package/src/codegen/targets/react/component/handlers/bottom-sheet.ts +4 -6
  15. package/src/codegen/targets/react/component/handlers/checkbox.ts +90 -2
  16. package/src/codegen/targets/react/component/handlers/chip.ts +1 -1
  17. package/src/codegen/targets/react/component/handlers/field-button.ts +10 -17
  18. package/src/codegen/targets/react/component/handlers/field.ts +4 -4
  19. package/src/codegen/targets/react/component/handlers/index.ts +1 -1
  20. package/src/codegen/targets/react/component/handlers/legacy-select-box.ts +1 -1
  21. package/src/codegen/targets/react/component/handlers/list-item.ts +22 -22
  22. package/src/codegen/targets/react/component/handlers/radio-group.ts +98 -20
  23. package/src/codegen/targets/react/component/handlers/select-box.ts +333 -0
  24. package/src/codegen/targets/react/component/handlers/slider.ts +5 -5
  25. package/src/codegen/targets/react/component/handlers/tabs.ts +5 -5
  26. package/src/codegen/targets/react/component/handlers/tag-group.ts +2 -2
  27. package/src/codegen/targets/react/component/handlers/text-field.ts +7 -7
  28. package/src/entities/data/__generated__/component-sets/index.d.ts +199 -161
  29. package/src/entities/data/__generated__/component-sets/index.mjs +199 -161
  30. package/src/entities/data/__generated__/components/index.d.ts +260 -0
  31. package/src/entities/data/__generated__/components/index.mjs +260 -0
package/lib/index.js CHANGED
@@ -22515,36 +22515,6 @@ const privateTemplateChipGroup = {
22515
22515
  }
22516
22516
  }
22517
22517
  };
22518
- const privateComponentFieldFooter = {
22519
- "name": "privateComponentFieldFooter",
22520
- "key": "a2e73c375b787756a11e84c5915f8251c621ee3a",
22521
- "componentPropertyDefinitions": {
22522
- "Text#2770:0": {
22523
- "type": "TEXT"
22524
- },
22525
- "Has Prefix#2778:13": {
22526
- "type": "BOOLEAN"
22527
- },
22528
- "Error Text#32821:0": {
22529
- "type": "TEXT"
22530
- },
22531
- "Type": {
22532
- "type": "VARIANT",
22533
- "variantOptions": [
22534
- "Description",
22535
- "Description With Character Count",
22536
- "Character Count"
22537
- ]
22538
- },
22539
- "Error": {
22540
- "type": "VARIANT",
22541
- "variantOptions": [
22542
- "true",
22543
- "false"
22544
- ]
22545
- }
22546
- }
22547
- };
22548
22518
  const privateComponentFieldFooterCharacterCount = {
22549
22519
  "name": "privateComponentFieldFooterCharacterCount",
22550
22520
  "key": "73f1a9275275c87b563e879e6948318523faf8e4",
@@ -22565,28 +22535,6 @@ const privateComponentFieldFooterCharacterCount = {
22565
22535
  }
22566
22536
  }
22567
22537
  };
22568
- const privateComponentFieldHeader = {
22569
- "name": "privateComponentFieldHeader",
22570
- "key": "8371fe9083cb9bebfb4ee51b0791bfb00a799dd6",
22571
- "componentPropertyDefinitions": {
22572
- "Label#34796:0": {
22573
- "type": "TEXT"
22574
- },
22575
- "Has Indicator#34796:1": {
22576
- "type": "BOOLEAN"
22577
- },
22578
- "Has Suffix#34796:2": {
22579
- "type": "BOOLEAN"
22580
- },
22581
- "Weight": {
22582
- "type": "VARIANT",
22583
- "variantOptions": [
22584
- "Medium",
22585
- "Bold"
22586
- ]
22587
- }
22588
- }
22589
- };
22590
22538
  const privateComponentFieldHeaderIndicator = {
22591
22539
  "name": "privateComponentFieldHeaderIndicator",
22592
22540
  "key": "c3f7843103c1efcc3a8ac365b1175df6d10173e2",
@@ -22617,29 +22565,6 @@ const privateComponentFieldHeaderSuffix = {
22617
22565
  }
22618
22566
  }
22619
22567
  };
22620
- const privateComponentInputButton = {
22621
- "name": "privateComponentInputButton",
22622
- "key": "1220e63a59a31b50eefe5c4ec1a4e516ba70b07b",
22623
- "componentPropertyDefinitions": {
22624
- "Has Prefix#32514:10": {
22625
- "type": "BOOLEAN"
22626
- },
22627
- "Has Suffix#32865:68": {
22628
- "type": "BOOLEAN"
22629
- },
22630
- "State": {
22631
- "type": "VARIANT",
22632
- "variantOptions": [
22633
- "Enabled",
22634
- "Error",
22635
- "Disabled",
22636
- "Read Only",
22637
- "Pressed",
22638
- "Error Pressed"
22639
- ]
22640
- }
22641
- }
22642
- };
22643
22568
  const privateComponentInputButtonPrefix = {
22644
22569
  "name": "privateComponentInputButtonPrefix",
22645
22570
  "key": "c7d12be4056a8171f6857ec4ef15d81bd18d8cae",
@@ -23004,6 +22929,21 @@ const privateComponentSegmentedControlItem = {
23004
22929
  }
23005
22930
  }
23006
22931
  };
22932
+ const privateComponentSelectBoxItemCheckmark = {
22933
+ "name": "privateComponentSelectBoxItemCheckmark",
22934
+ "key": "2d91bde3c21bc38b2b07d8e1b87a03116e96555d",
22935
+ "componentPropertyDefinitions": {
22936
+ "State": {
22937
+ "type": "VARIANT",
22938
+ "variantOptions": [
22939
+ "Enabled",
22940
+ "Pressed",
22941
+ "Selected",
22942
+ "Disabled"
22943
+ ]
22944
+ }
22945
+ }
22946
+ };
23007
22947
  const privateComponentSliderItemHandles = {
23008
22948
  "name": "privateComponentSliderItemHandles",
23009
22949
  "key": "950b33735d6dda594436c876386b921908dedf64",
@@ -23228,33 +23168,6 @@ const privateComponentTabsLine = {
23228
23168
  }
23229
23169
  }
23230
23170
  };
23231
- const privateComponentTextInput = {
23232
- "name": "privateComponentTextInput",
23233
- "key": "1f3e7bd2f1d39a76e304188b5a8b800d7c87aff2",
23234
- "componentPropertyDefinitions": {
23235
- "Has Prefix#32514:10": {
23236
- "type": "BOOLEAN"
23237
- },
23238
- "Loading Text#32734:0": {
23239
- "type": "TEXT"
23240
- },
23241
- "Has Suffix#32865:68": {
23242
- "type": "BOOLEAN"
23243
- },
23244
- "State": {
23245
- "type": "VARIANT",
23246
- "variantOptions": [
23247
- "Enabled",
23248
- "Focused",
23249
- "Error",
23250
- "Error Focused",
23251
- "Disabled",
23252
- "Read Only",
23253
- "AI Loading (Figma Only)"
23254
- ]
23255
- }
23256
- }
23257
- };
23258
23171
  const privateComponentTextInputCardNumberInput = {
23259
23172
  "name": "privateComponentTextInputCardNumberInput",
23260
23173
  "key": "60888e1eba691721f0ec6a41df43c1c075e5beac",
@@ -23408,31 +23321,6 @@ const privateComponentTextInputSuffix = {
23408
23321
  }
23409
23322
  }
23410
23323
  };
23411
- const privateComponentTextarea = {
23412
- "name": "privateComponentTextarea",
23413
- "key": "e20ec5b725e0fdbaca728cecdc72b0c485728b4d",
23414
- "componentPropertyDefinitions": {
23415
- "Auto Size (Figma Only)": {
23416
- "type": "VARIANT",
23417
- "variantOptions": [
23418
- "true",
23419
- "false"
23420
- ]
23421
- },
23422
- "State": {
23423
- "type": "VARIANT",
23424
- "variantOptions": [
23425
- "Enabled",
23426
- "Focused",
23427
- "Error",
23428
- "Error Focused",
23429
- "Disabled",
23430
- "Read Only",
23431
- "AI Loading (Figma Only)"
23432
- ]
23433
- }
23434
- }
23435
- };
23436
23324
  const privateComponentTextareaInput = {
23437
23325
  "name": "privateComponentTextareaInput",
23438
23326
  "key": "a75e057f13d05ee57003a90cc91c74f130b22135",
@@ -23590,30 +23478,6 @@ const privateComponentTopNavigationTitleRight = {
23590
23478
  }
23591
23479
  }
23592
23480
  };
23593
- const privateComponentUnderlineTextInput = {
23594
- "name": "privateComponentUnderlineTextInput",
23595
- "key": "004c8591153865af3fe3efb9c552cd280b9fd31d",
23596
- "componentPropertyDefinitions": {
23597
- "Has Prefix#34125:0": {
23598
- "type": "BOOLEAN"
23599
- },
23600
- "Has Suffix#34125:8": {
23601
- "type": "BOOLEAN"
23602
- },
23603
- "State": {
23604
- "type": "VARIANT",
23605
- "variantOptions": [
23606
- "Enabled",
23607
- "Focused",
23608
- "Error",
23609
- "Error Focused",
23610
- "Disabled",
23611
- "Read Only",
23612
- "AI Loading (Figma Only)"
23613
- ]
23614
- }
23615
- }
23616
- };
23617
23481
  const privateComponentUnderlineTextInputInput = {
23618
23482
  "name": "privateComponentUnderlineTextInputInput",
23619
23483
  "key": "a8a39cf124e7b4c3b873429e81b4278639a7031b",
@@ -24651,8 +24515,8 @@ const componentCheckbox = {
24651
24515
  }
24652
24516
  }
24653
24517
  };
24654
- const templateCheckboxGroupField = {
24655
- "name": "templateCheckboxGroupField",
24518
+ const templateCheckboxField = {
24519
+ "name": "templateCheckboxField",
24656
24520
  "key": "214dd0fc8a3c5bc1e0c90cce29936f1ec6a26c3c",
24657
24521
  "componentPropertyDefinitions": {
24658
24522
  "Show Header#40606:8": {
@@ -25451,8 +25315,8 @@ const componentRadio = {
25451
25315
  }
25452
25316
  }
25453
25317
  };
25454
- const templateRadioGroupField = {
25455
- "name": "templateRadioGroupField",
25318
+ const templateRadioField = {
25319
+ "name": "templateRadioField",
25456
25320
  "key": "a3f159c223e3a0888fc48098c1580793297f82e9",
25457
25321
  "componentPropertyDefinitions": {
25458
25322
  "Show Header#40606:8": {
@@ -25684,6 +25548,27 @@ const componentSegmentedControl = {
25684
25548
  }
25685
25549
  }
25686
25550
  };
25551
+ const templateSelectBoxField = {
25552
+ "name": "templateSelectBoxField",
25553
+ "key": "cddac54129eed15830319d1e30480f42ea80d4d3",
25554
+ "componentPropertyDefinitions": {
25555
+ "Show Header#40606:8": {
25556
+ "type": "BOOLEAN"
25557
+ },
25558
+ "Show Footer#40606:9": {
25559
+ "type": "BOOLEAN"
25560
+ },
25561
+ "State": {
25562
+ "type": "VARIANT",
25563
+ "variantOptions": [
25564
+ "Enabled",
25565
+ "Error",
25566
+ "Disabled",
25567
+ "Read Only"
25568
+ ]
25569
+ }
25570
+ }
25571
+ };
25687
25572
  const componentSelectBoxGroup = {
25688
25573
  "name": "componentSelectBoxGroup",
25689
25574
  "key": "cbf6ddeb6d6f889e983399291ec8b60ee3390177",
@@ -26143,6 +26028,157 @@ const componentUserSelectionFigmaOnly = {
26143
26028
  }
26144
26029
  }
26145
26030
  };
26031
+ const componentFieldFooter = {
26032
+ "name": "componentFieldFooter",
26033
+ "key": "a2e73c375b787756a11e84c5915f8251c621ee3a",
26034
+ "componentPropertyDefinitions": {
26035
+ "Text#2770:0": {
26036
+ "type": "TEXT"
26037
+ },
26038
+ "Has Prefix#2778:13": {
26039
+ "type": "BOOLEAN"
26040
+ },
26041
+ "Error Text#32821:0": {
26042
+ "type": "TEXT"
26043
+ },
26044
+ "Type": {
26045
+ "type": "VARIANT",
26046
+ "variantOptions": [
26047
+ "Description",
26048
+ "Description With Character Count",
26049
+ "Character Count"
26050
+ ]
26051
+ },
26052
+ "Error": {
26053
+ "type": "VARIANT",
26054
+ "variantOptions": [
26055
+ "true",
26056
+ "false"
26057
+ ]
26058
+ }
26059
+ }
26060
+ };
26061
+ const componentFieldHeader = {
26062
+ "name": "componentFieldHeader",
26063
+ "key": "8371fe9083cb9bebfb4ee51b0791bfb00a799dd6",
26064
+ "componentPropertyDefinitions": {
26065
+ "Label#34796:0": {
26066
+ "type": "TEXT"
26067
+ },
26068
+ "Has Indicator#34796:1": {
26069
+ "type": "BOOLEAN"
26070
+ },
26071
+ "Has Suffix#34796:2": {
26072
+ "type": "BOOLEAN"
26073
+ },
26074
+ "Weight": {
26075
+ "type": "VARIANT",
26076
+ "variantOptions": [
26077
+ "Medium",
26078
+ "Bold"
26079
+ ]
26080
+ }
26081
+ }
26082
+ };
26083
+ const componentInputButton = {
26084
+ "name": "componentInputButton",
26085
+ "key": "1220e63a59a31b50eefe5c4ec1a4e516ba70b07b",
26086
+ "componentPropertyDefinitions": {
26087
+ "Has Prefix#32514:10": {
26088
+ "type": "BOOLEAN"
26089
+ },
26090
+ "Has Suffix#32865:68": {
26091
+ "type": "BOOLEAN"
26092
+ },
26093
+ "State": {
26094
+ "type": "VARIANT",
26095
+ "variantOptions": [
26096
+ "Enabled",
26097
+ "Error",
26098
+ "Disabled",
26099
+ "Read Only",
26100
+ "Pressed",
26101
+ "Error Pressed"
26102
+ ]
26103
+ }
26104
+ }
26105
+ };
26106
+ const componentTextInput = {
26107
+ "name": "componentTextInput",
26108
+ "key": "1f3e7bd2f1d39a76e304188b5a8b800d7c87aff2",
26109
+ "componentPropertyDefinitions": {
26110
+ "Has Prefix#32514:10": {
26111
+ "type": "BOOLEAN"
26112
+ },
26113
+ "Loading Text#32734:0": {
26114
+ "type": "TEXT"
26115
+ },
26116
+ "Has Suffix#32865:68": {
26117
+ "type": "BOOLEAN"
26118
+ },
26119
+ "State": {
26120
+ "type": "VARIANT",
26121
+ "variantOptions": [
26122
+ "Enabled",
26123
+ "Focused",
26124
+ "Error",
26125
+ "Error Focused",
26126
+ "Disabled",
26127
+ "Read Only",
26128
+ "AI Loading (Figma Only)"
26129
+ ]
26130
+ }
26131
+ }
26132
+ };
26133
+ const componentTextarea = {
26134
+ "name": "componentTextarea",
26135
+ "key": "e20ec5b725e0fdbaca728cecdc72b0c485728b4d",
26136
+ "componentPropertyDefinitions": {
26137
+ "Auto Size (Figma Only)": {
26138
+ "type": "VARIANT",
26139
+ "variantOptions": [
26140
+ "true",
26141
+ "false"
26142
+ ]
26143
+ },
26144
+ "State": {
26145
+ "type": "VARIANT",
26146
+ "variantOptions": [
26147
+ "Enabled",
26148
+ "Focused",
26149
+ "Error",
26150
+ "Error Focused",
26151
+ "Disabled",
26152
+ "Read Only",
26153
+ "AI Loading (Figma Only)"
26154
+ ]
26155
+ }
26156
+ }
26157
+ };
26158
+ const componentUnderlineTextInput = {
26159
+ "name": "componentUnderlineTextInput",
26160
+ "key": "004c8591153865af3fe3efb9c552cd280b9fd31d",
26161
+ "componentPropertyDefinitions": {
26162
+ "Has Prefix#34125:0": {
26163
+ "type": "BOOLEAN"
26164
+ },
26165
+ "Has Suffix#34125:8": {
26166
+ "type": "BOOLEAN"
26167
+ },
26168
+ "State": {
26169
+ "type": "VARIANT",
26170
+ "variantOptions": [
26171
+ "Enabled",
26172
+ "Focused",
26173
+ "Error",
26174
+ "Error Focused",
26175
+ "Disabled",
26176
+ "Read Only",
26177
+ "AI Loading (Figma Only)"
26178
+ ]
26179
+ }
26180
+ }
26181
+ };
26146
26182
  const componentActionButtonGhostButton = {
26147
26183
  "name": "componentActionButtonGhostButton",
26148
26184
  "key": "0dd8c776368619b13886924cd65974f821887753",
@@ -26445,11 +26481,14 @@ var FIGMA_COMPONENTS = {
26445
26481
  componentDerpecatedTopNavigation: componentDerpecatedTopNavigation,
26446
26482
  componentDivider: componentDivider,
26447
26483
  componentEditorToolbarFigmaOnly: componentEditorToolbarFigmaOnly,
26484
+ componentFieldFooter: componentFieldFooter,
26485
+ componentFieldHeader: componentFieldHeader,
26448
26486
  componentFloatingActionButton: componentFloatingActionButton,
26449
26487
  componentHelpBubble: componentHelpBubble,
26450
26488
  componentIOsLiveAcitivityScreenFigmaOnly: componentIOsLiveAcitivityScreenFigmaOnly,
26451
26489
  componentImageFrame: componentImageFrame,
26452
26490
  componentImageFrameReactionButton: componentImageFrameReactionButton,
26491
+ componentInputButton: componentInputButton,
26453
26492
  componentKakaoTalkBubbleFigmaOnly: componentKakaoTalkBubbleFigmaOnly,
26454
26493
  componentListHeader: componentListHeader,
26455
26494
  componentListItem: componentListItem,
@@ -26487,18 +26526,18 @@ var FIGMA_COMPONENTS = {
26487
26526
  componentSwitchmark: componentSwitchmark,
26488
26527
  componentTabs: componentTabs,
26489
26528
  componentTagGroup: componentTagGroup,
26529
+ componentTextInput: componentTextInput,
26530
+ componentTextarea: componentTextarea,
26490
26531
  componentToggleButton: componentToggleButton,
26491
26532
  componentTopNavigation: componentTopNavigation,
26533
+ componentUnderlineTextInput: componentUnderlineTextInput,
26492
26534
  componentUserSelectionFigmaOnly: componentUserSelectionFigmaOnly,
26493
26535
  privateComponentAlertDialogActions: privateComponentAlertDialogActions,
26494
26536
  privateComponentBottomSheetCloseButton: privateComponentBottomSheetCloseButton,
26495
26537
  privateComponentBottomSheetHandle: privateComponentBottomSheetHandle,
26496
- privateComponentFieldFooter: privateComponentFieldFooter,
26497
26538
  privateComponentFieldFooterCharacterCount: privateComponentFieldFooterCharacterCount,
26498
- privateComponentFieldHeader: privateComponentFieldHeader,
26499
26539
  privateComponentFieldHeaderIndicator: privateComponentFieldHeaderIndicator,
26500
26540
  privateComponentFieldHeaderSuffix: privateComponentFieldHeaderSuffix,
26501
- privateComponentInputButton: privateComponentInputButton,
26502
26541
  privateComponentInputButtonPrefix: privateComponentInputButtonPrefix,
26503
26542
  privateComponentInputButtonSuffix: privateComponentInputButtonSuffix,
26504
26543
  privateComponentInputButtonValue: privateComponentInputButtonValue,
@@ -26513,6 +26552,7 @@ var FIGMA_COMPONENTS = {
26513
26552
  privateComponentRootTopNavigationActionList: privateComponentRootTopNavigationActionList,
26514
26553
  privateComponentRootTopNavigationIconButton: privateComponentRootTopNavigationIconButton,
26515
26554
  privateComponentSegmentedControlItem: privateComponentSegmentedControlItem,
26555
+ privateComponentSelectBoxItemCheckmark: privateComponentSelectBoxItemCheckmark,
26516
26556
  privateComponentSliderItemHandles: privateComponentSliderItemHandles,
26517
26557
  privateComponentSliderItemMarker: privateComponentSliderItemMarker,
26518
26558
  privateComponentSliderItemRange: privateComponentSliderItemRange,
@@ -26522,7 +26562,6 @@ var FIGMA_COMPONENTS = {
26522
26562
  privateComponentTabItemLineHug: privateComponentTabItemLineHug,
26523
26563
  privateComponentTabsChip: privateComponentTabsChip,
26524
26564
  privateComponentTabsLine: privateComponentTabsLine,
26525
- privateComponentTextInput: privateComponentTextInput,
26526
26565
  privateComponentTextInputCardNumberInput: privateComponentTextInputCardNumberInput,
26527
26566
  privateComponentTextInputIdNumberInput: privateComponentTextInputIdNumberInput,
26528
26567
  privateComponentTextInputInput: privateComponentTextInputInput,
@@ -26530,7 +26569,6 @@ var FIGMA_COMPONENTS = {
26530
26569
  privateComponentTextInputInputReadOnly: privateComponentTextInputInputReadOnly,
26531
26570
  privateComponentTextInputPrefix: privateComponentTextInputPrefix,
26532
26571
  privateComponentTextInputSuffix: privateComponentTextInputSuffix,
26533
- privateComponentTextarea: privateComponentTextarea,
26534
26572
  privateComponentTextareaInput: privateComponentTextareaInput,
26535
26573
  privateComponentTextareaInputDisabled: privateComponentTextareaInputDisabled,
26536
26574
  privateComponentTextareaInputReadOnly: privateComponentTextareaInputReadOnly,
@@ -26539,7 +26577,6 @@ var FIGMA_COMPONENTS = {
26539
26577
  privateComponentTopNavigationTitle: privateComponentTopNavigationTitle,
26540
26578
  privateComponentTopNavigationTitleLeft: privateComponentTopNavigationTitleLeft,
26541
26579
  privateComponentTopNavigationTitleRight: privateComponentTopNavigationTitleRight,
26542
- privateComponentUnderlineTextInput: privateComponentUnderlineTextInput,
26543
26580
  privateComponentUnderlineTextInputInput: privateComponentUnderlineTextInputInput,
26544
26581
  privateComponentUnderlineTextInputInputDisabled: privateComponentUnderlineTextInputInputDisabled,
26545
26582
  privateComponentUnderlineTextInputInputReadOnly: privateComponentUnderlineTextInputInputReadOnly,
@@ -26553,13 +26590,14 @@ var FIGMA_COMPONENTS = {
26553
26590
  privateTemplateRootTopNavigationPreset: privateTemplateRootTopNavigationPreset,
26554
26591
  templateButtonGroup: templateButtonGroup,
26555
26592
  templateChatScreenPreset: templateChatScreenPreset,
26556
- templateCheckboxGroupField: templateCheckboxGroupField,
26593
+ templateCheckboxField: templateCheckboxField,
26557
26594
  templateChipGroup: templateChipGroup,
26558
26595
  templateDeprecatedChipGroup: templateDeprecatedChipGroup,
26559
26596
  templateDisclaimer: templateDisclaimer,
26560
26597
  templateFieldButton: templateFieldButton,
26561
- templateRadioGroupField: templateRadioGroupField,
26598
+ templateRadioField: templateRadioField,
26562
26599
  templateResultPage: templateResultPage,
26600
+ templateSelectBoxField: templateSelectBoxField,
26563
26601
  templateSkeletonPreset: templateSkeletonPreset,
26564
26602
  templateSliderField: templateSliderField,
26565
26603
  templateTextField: templateTextField,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-design/figma",
3
- "version": "1.2.1",
3
+ "version": "1.3.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/daangn/seed-design.git",
@@ -39,7 +39,7 @@
39
39
  "sync-entities": "find src/entities/data/__generated__ -mindepth 1 -maxdepth 1 ! -name 'archive' -exec rm -rf {} + 2>/dev/null; bun figma-extractor src/entities/data/__generated__"
40
40
  },
41
41
  "dependencies": {
42
- "@seed-design/css": "1.2.1",
42
+ "@seed-design/css": "1.2.2",
43
43
  "change-case": "^5.4.4",
44
44
  "ts-pattern": "^5.7.0"
45
45
  },
@@ -42,6 +42,10 @@ export type CheckboxProperties = InferComponentDefinition<
42
42
  typeof sets.componentCheckbox.componentPropertyDefinitions
43
43
  >;
44
44
 
45
+ export type CheckboxGroupFieldProperties = InferComponentDefinition<
46
+ typeof sets.templateCheckboxField.componentPropertyDefinitions
47
+ >;
48
+
45
49
  export type CheckmarkProperties = InferComponentDefinition<
46
50
  typeof sets.componentCheckmark.componentPropertyDefinitions
47
51
  >;
@@ -63,7 +67,7 @@ export type DividerProperties = InferComponentDefinition<
63
67
  >;
64
68
 
65
69
  export type FieldHeaderProperties = InferComponentDefinition<
66
- typeof sets.privateComponentFieldHeader.componentPropertyDefinitions
70
+ typeof sets.componentFieldHeader.componentPropertyDefinitions
67
71
  >;
68
72
 
69
73
  export type FieldIndicatorProperties = InferComponentDefinition<
@@ -71,7 +75,7 @@ export type FieldIndicatorProperties = InferComponentDefinition<
71
75
  >;
72
76
 
73
77
  export type FieldFooterProperties = InferComponentDefinition<
74
- typeof sets.privateComponentFieldFooter.componentPropertyDefinitions
78
+ typeof sets.componentFieldFooter.componentPropertyDefinitions
75
79
  >;
76
80
 
77
81
  export type FieldCharacterCountProperties = InferComponentDefinition<
@@ -146,6 +150,10 @@ export type RadioProperties = InferComponentDefinition<
146
150
  typeof sets.componentRadio.componentPropertyDefinitions
147
151
  >;
148
152
 
153
+ export type RadioGroupFieldProperties = InferComponentDefinition<
154
+ typeof sets.templateRadioField.componentPropertyDefinitions
155
+ >;
156
+
149
157
  export type RadiomarkProperties = InferComponentDefinition<
150
158
  typeof sets.componentRadiomark.componentPropertyDefinitions
151
159
  >;
@@ -166,6 +174,26 @@ export type SegmentedControlItemProperties = InferComponentDefinition<
166
174
  typeof sets.privateComponentSegmentedControlItem.componentPropertyDefinitions
167
175
  >;
168
176
 
177
+ export type SelectBoxGroupFieldProperties = InferComponentDefinition<
178
+ typeof sets.templateSelectBoxField.componentPropertyDefinitions
179
+ >;
180
+
181
+ export type SelectBoxGroupProperties = InferComponentDefinition<
182
+ typeof sets.componentSelectBoxGroup.componentPropertyDefinitions
183
+ >;
184
+
185
+ export type SelectBoxHorizontalProperties = InferComponentDefinition<
186
+ typeof sets.componentSelectBoxItemHorizontal.componentPropertyDefinitions
187
+ >;
188
+
189
+ export type SelectBoxVerticalProperties = InferComponentDefinition<
190
+ typeof sets.componentSelectBoxItemVertical.componentPropertyDefinitions
191
+ >;
192
+
193
+ export type SelectBoxPrefixIconProperties = InferComponentDefinition<
194
+ typeof components.componentSelectBoxItemPrefixIcon.componentPropertyDefinitions
195
+ >;
196
+
169
197
  export type SkeletonProperties = InferComponentDefinition<
170
198
  typeof sets.componentSkeleton.componentPropertyDefinitions
171
199
  >;
@@ -251,7 +279,7 @@ export type TextInputFieldProperties = InferComponentDefinition<
251
279
  >;
252
280
 
253
281
  export type TextInputOutlineProperties = InferComponentDefinition<
254
- typeof sets.privateComponentTextInput.componentPropertyDefinitions
282
+ typeof sets.componentTextInput.componentPropertyDefinitions
255
283
  >;
256
284
 
257
285
  export type TextInputOutlinePrefixProperties = InferComponentDefinition<
@@ -271,7 +299,7 @@ export type TextInputUnderlineSuffixProperties = InferComponentDefinition<
271
299
  >;
272
300
 
273
301
  export type TextInputUnderlineProperties = InferComponentDefinition<
274
- typeof sets.privateComponentUnderlineTextInput.componentPropertyDefinitions
302
+ typeof sets.componentUnderlineTextInput.componentPropertyDefinitions
275
303
  >;
276
304
 
277
305
  export type TextareaFieldProperties = InferComponentDefinition<
@@ -279,7 +307,7 @@ export type TextareaFieldProperties = InferComponentDefinition<
279
307
  >;
280
308
 
281
309
  export type TextareaProperties = InferComponentDefinition<
282
- typeof sets.privateComponentTextarea.componentPropertyDefinitions
310
+ typeof sets.componentTextarea.componentPropertyDefinitions
283
311
  >;
284
312
 
285
313
  export type FieldButtonProperties = InferComponentDefinition<
@@ -287,7 +315,7 @@ export type FieldButtonProperties = InferComponentDefinition<
287
315
  >;
288
316
 
289
317
  export type InputButtonProperties = InferComponentDefinition<
290
- typeof sets.privateComponentInputButton.componentPropertyDefinitions
318
+ typeof sets.componentInputButton.componentPropertyDefinitions
291
319
  >;
292
320
 
293
321
  export type InputButtonPrefixProperties = InferComponentDefinition<
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from "vitest";
1
+ import { describe, expect, it } from "bun:test";
2
2
  import { inferLayout } from "./infer-layout";
3
3
  import type { NormalizedFrameTrait } from "@/normalizer";
4
4
 
@@ -36,6 +36,8 @@ export const createCheckboxHandler = (_ctx: ComponentHandlerDeps) =>
36
36
  }),
37
37
  };
38
38
 
39
- return createLocalSnippetElement("Checkbox", commonProps);
39
+ return createLocalSnippetElement("Checkbox", commonProps, undefined, {
40
+ comment: "CheckboxGroup으로 묶어서 사용하는 것을 권장합니다.",
41
+ });
40
42
  },
41
43
  );
@@ -58,11 +58,11 @@ export const createFieldButtonHandler = (ctx: ComponentHandlerDeps) => {
58
58
  });
59
59
 
60
60
  // maxGraphemeCount and required can't be props of FieldButton
61
- const { required: __required, ...headerProps } =
61
+ const { required: _required, ...headerProps } =
62
62
  props["Show Header#40606:8"].value && fieldHeader
63
63
  ? (fieldHeaderHandler.transform(fieldHeader, traverse).props as FieldHeaderProps)
64
64
  : {};
65
- const { maxGraphemeCount: __maxGraphemeCount, ...footerProps } =
65
+ const { maxGraphemeCount: _maxGraphemeCount, ...footerProps } =
66
66
  props["Show Footer#40606:9"].value && fieldFooter
67
67
  ? (fieldFooterHandler.transform(fieldFooter, traverse).props as FieldFooterProps)
68
68
  : {};
@@ -11,7 +11,6 @@ export * from "./checkmark";
11
11
  export * from "./chip";
12
12
  export * from "./contextual-floating-button";
13
13
  export * from "./divider";
14
- export { createFieldHeaderHandler, createFieldFooterHandler } from "./field";
15
14
  export * from "./field-button";
16
15
  export * from "./floating-action-button";
17
16
  export * from "./help-bubble";
@@ -56,11 +56,11 @@ export const createSliderFieldHandler = (ctx: ComponentHandlerDeps) => {
56
56
  const sliderProps = sliderHandler.transform(slider, traverse).props;
57
57
 
58
58
  // maxGraphemeCount and required can't be props of Slider
59
- const { required: __required, ...headerProps } =
59
+ const { required: _required, ...headerProps } =
60
60
  props["Show Header#40606:8"].value && fieldHeader
61
61
  ? (fieldHeaderHandler.transform(fieldHeader, traverse).props as FieldHeaderProps)
62
62
  : {};
63
- const { maxGraphemeCount: __maxGraphemeCount, ...footerProps } =
63
+ const { maxGraphemeCount: _maxGraphemeCount, ...footerProps } =
64
64
  props["Show Footer#40606:9"].value && fieldFooter
65
65
  ? (fieldFooterHandler.transform(fieldFooter, traverse).props as FieldFooterProps)
66
66
  : {};