@seed-design/figma 1.1.2 → 1.1.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.
- package/lib/codegen/index.d.ts +133 -1
- package/lib/codegen/index.d.ts.map +1 -1
- package/lib/codegen/targets/react/index.cjs +218 -107
- package/lib/codegen/targets/react/index.d.ts.map +1 -1
- package/lib/codegen/targets/react/index.js +218 -107
- package/package.json +2 -2
- package/src/codegen/component-properties.ts +134 -0
- package/src/codegen/targets/react/component/handlers/legacy-text-field.ts +196 -0
- package/src/codegen/targets/react/component/index.ts +8 -0
package/lib/codegen/index.d.ts
CHANGED
|
@@ -2600,6 +2600,138 @@ type InputButtonSuffixProperties = InferComponentDefinition<{
|
|
|
2600
2600
|
};
|
|
2601
2601
|
}>;
|
|
2602
2602
|
type GenericFieldButtonProps = InferComponentDefinition<{}>;
|
|
2603
|
+
type LegacyTextFieldProperties = InferComponentDefinition<{
|
|
2604
|
+
"Show Header#870:0": {
|
|
2605
|
+
type: "BOOLEAN";
|
|
2606
|
+
};
|
|
2607
|
+
"Placeholder#958:0": {
|
|
2608
|
+
type: "TEXT";
|
|
2609
|
+
};
|
|
2610
|
+
"Show Footer#958:25": {
|
|
2611
|
+
type: "BOOLEAN";
|
|
2612
|
+
};
|
|
2613
|
+
"Show Description#958:50": {
|
|
2614
|
+
type: "BOOLEAN";
|
|
2615
|
+
};
|
|
2616
|
+
"Show Character Count#958:75": {
|
|
2617
|
+
type: "BOOLEAN";
|
|
2618
|
+
};
|
|
2619
|
+
"Show Suffix#958:100": {
|
|
2620
|
+
type: "BOOLEAN";
|
|
2621
|
+
};
|
|
2622
|
+
"Show Prefix#958:125": {
|
|
2623
|
+
type: "BOOLEAN";
|
|
2624
|
+
};
|
|
2625
|
+
"Show Indicator#1259:0": {
|
|
2626
|
+
type: "BOOLEAN";
|
|
2627
|
+
};
|
|
2628
|
+
"Show Prefix Text#1267:0": {
|
|
2629
|
+
type: "BOOLEAN";
|
|
2630
|
+
};
|
|
2631
|
+
"Prefix Icon#1267:25": {
|
|
2632
|
+
type: "INSTANCE_SWAP";
|
|
2633
|
+
preferredValues: [];
|
|
2634
|
+
};
|
|
2635
|
+
"Show Prefix Icon#1267:50": {
|
|
2636
|
+
type: "BOOLEAN";
|
|
2637
|
+
};
|
|
2638
|
+
"Show Suffix Icon#1267:75": {
|
|
2639
|
+
type: "BOOLEAN";
|
|
2640
|
+
};
|
|
2641
|
+
"Suffix Icon #1267:100": {
|
|
2642
|
+
type: "INSTANCE_SWAP";
|
|
2643
|
+
preferredValues: [];
|
|
2644
|
+
};
|
|
2645
|
+
"Show Suffix Text#1267:125": {
|
|
2646
|
+
type: "BOOLEAN";
|
|
2647
|
+
};
|
|
2648
|
+
"Filled Text#1304:0": {
|
|
2649
|
+
type: "TEXT";
|
|
2650
|
+
};
|
|
2651
|
+
"Description#12626:5": {
|
|
2652
|
+
type: "TEXT";
|
|
2653
|
+
};
|
|
2654
|
+
"Label#14964:0": {
|
|
2655
|
+
type: "TEXT";
|
|
2656
|
+
};
|
|
2657
|
+
"Max Character Count#15327:27": {
|
|
2658
|
+
type: "TEXT";
|
|
2659
|
+
};
|
|
2660
|
+
"Character Count#15327:64": {
|
|
2661
|
+
type: "TEXT";
|
|
2662
|
+
};
|
|
2663
|
+
"Prefix Text#15327:101": {
|
|
2664
|
+
type: "TEXT";
|
|
2665
|
+
};
|
|
2666
|
+
"Suffix Text#15327:138": {
|
|
2667
|
+
type: "TEXT";
|
|
2668
|
+
};
|
|
2669
|
+
"Indicator#15327:249": {
|
|
2670
|
+
type: "TEXT";
|
|
2671
|
+
};
|
|
2672
|
+
Size: {
|
|
2673
|
+
type: "VARIANT";
|
|
2674
|
+
variantOptions: ["Medium", "Large(Default)"];
|
|
2675
|
+
};
|
|
2676
|
+
State: {
|
|
2677
|
+
type: "VARIANT";
|
|
2678
|
+
variantOptions: ["Enabled", "Focused", "Invalid", "Invalid-Focused", "Disabled", "Read Only"];
|
|
2679
|
+
};
|
|
2680
|
+
Filled: {
|
|
2681
|
+
type: "VARIANT";
|
|
2682
|
+
variantOptions: ["True", "False"];
|
|
2683
|
+
};
|
|
2684
|
+
}>;
|
|
2685
|
+
type LegacyMultilineTextFieldProperties = InferComponentDefinition<{
|
|
2686
|
+
"Show Header#870:0": {
|
|
2687
|
+
type: "BOOLEAN";
|
|
2688
|
+
};
|
|
2689
|
+
"Placeholder#958:0": {
|
|
2690
|
+
type: "TEXT";
|
|
2691
|
+
};
|
|
2692
|
+
"Show Footer#958:25": {
|
|
2693
|
+
type: "BOOLEAN";
|
|
2694
|
+
};
|
|
2695
|
+
"Show Description#958:50": {
|
|
2696
|
+
type: "BOOLEAN";
|
|
2697
|
+
};
|
|
2698
|
+
"Show Character count#958:75": {
|
|
2699
|
+
type: "BOOLEAN";
|
|
2700
|
+
};
|
|
2701
|
+
"Show Indicator#1259:0": {
|
|
2702
|
+
type: "BOOLEAN";
|
|
2703
|
+
};
|
|
2704
|
+
"Filled Text#1304:0": {
|
|
2705
|
+
type: "TEXT";
|
|
2706
|
+
};
|
|
2707
|
+
"Max Character Count#15327:175": {
|
|
2708
|
+
type: "TEXT";
|
|
2709
|
+
};
|
|
2710
|
+
"Description#15327:212": {
|
|
2711
|
+
type: "TEXT";
|
|
2712
|
+
};
|
|
2713
|
+
"Indicator#15327:286": {
|
|
2714
|
+
type: "TEXT";
|
|
2715
|
+
};
|
|
2716
|
+
"Label#15327:323": {
|
|
2717
|
+
type: "TEXT";
|
|
2718
|
+
};
|
|
2719
|
+
"Character Count#15327:360": {
|
|
2720
|
+
type: "TEXT";
|
|
2721
|
+
};
|
|
2722
|
+
Size: {
|
|
2723
|
+
type: "VARIANT";
|
|
2724
|
+
variantOptions: ["Medium", "Large", "XLarge"];
|
|
2725
|
+
};
|
|
2726
|
+
State: {
|
|
2727
|
+
type: "VARIANT";
|
|
2728
|
+
variantOptions: ["Enabled", "Focused", "Invalid", "Invalid-Focused", "Disabled", "Read Only"];
|
|
2729
|
+
};
|
|
2730
|
+
Filled: {
|
|
2731
|
+
type: "VARIANT";
|
|
2732
|
+
variantOptions: ["True", "False"];
|
|
2733
|
+
};
|
|
2734
|
+
}>;
|
|
2603
2735
|
|
|
2604
2736
|
interface CreatePipelineConfig {
|
|
2605
2737
|
shouldInferAutoLayout?: boolean;
|
|
@@ -2753,5 +2885,5 @@ declare namespace index {
|
|
|
2753
2885
|
}
|
|
2754
2886
|
|
|
2755
2887
|
export { cloneElement, createCodeGenerator, createElement, createPropsConverter, createValueResolver, defineComponentHandler, defineElementTransformer, definePropsConverter, index as figma, inferLayout };
|
|
2756
|
-
export type { ActionButtonGhostProperties, ActionButtonProperties, AlertDialogFooterProperties, AlertDialogProperties, AppBarLeftIconButtonProperties, AppBarMainProperties, AppBarProperties, AppBarRightIconButtonProperties, AvatarProperties, AvatarStackProperties, BadgeProperties, BottomSheetProperties, CalloutProperties, CheckboxProperties, CheckmarkProperties, ChipIconSuffixProperties, ChipProperties, ChipTabsTriggerProperties, CodeGeneratorDeps, ComponentHandler, ComponentPropertyDefinition, ContextualFloatingButtonProperties, DividerProperties, ElementNode, ElementTransformer, ErrorStateProperties, FieldButtonProperties, FieldCharacterCountProperties, FieldFooterProperties, FieldHeaderProperties, FieldIndicatorProperties, FloatingActionButtonButtonItemProperties, FloatingActionButtonMenuItemProperties, FloatingActionButtonProperties, GenericFieldButtonProps, HelpBubbleProperties, IdentityPlaceholderProperties, InferComponentDefinition, InferComponentPropertyType, InputButtonPrefixProperties, InputButtonProperties, InputButtonSuffixProperties, ListHeaderProperties, ListItemPrefixIconProperties, ListItemProperties, ListItemSuffixIconProperties, MannerTempBadgeProperties, MannerTempProperties, MenuSheetGroupProperties, MenuSheetItemProperties, MenuSheetProperties, PageBannerButtonProperties, PageBannerProperties, ProgressCircleProperties, PropsConverter, RadioMarkProperties, RadioProperties, ReactionButtonProperties, SegmentedControlItemProperties, SegmentedControlProperties, SelectBoxGroupProperties, SelectBoxProperties, SkeletonProperties, SliderFieldProperties, SliderProperties, SliderTicksProperties, SnackbarProperties, SwitchMarkProperties, SwitchProperties, TabsChipWrapperProperties, TabsLineTriggerFillProperties, TabsLineTriggerHugProperties, TabsLineWrapperProperties, TabsProperties, TagGroupItemProperties, TagGroupProperties, TextInputFieldProperties, TextInputOutlinePrefixProperties, TextInputOutlineProperties, TextInputOutlineSuffixProperties, TextInputUnderlinePrefixProperties, TextInputUnderlineProperties, TextInputUnderlineSuffixProperties, TextareaFieldProperties, TextareaProperties, ToggleButtonProperties, ValueResolver };
|
|
2888
|
+
export type { ActionButtonGhostProperties, ActionButtonProperties, AlertDialogFooterProperties, AlertDialogProperties, AppBarLeftIconButtonProperties, AppBarMainProperties, AppBarProperties, AppBarRightIconButtonProperties, AvatarProperties, AvatarStackProperties, BadgeProperties, BottomSheetProperties, CalloutProperties, CheckboxProperties, CheckmarkProperties, ChipIconSuffixProperties, ChipProperties, ChipTabsTriggerProperties, CodeGeneratorDeps, ComponentHandler, ComponentPropertyDefinition, ContextualFloatingButtonProperties, DividerProperties, ElementNode, ElementTransformer, ErrorStateProperties, FieldButtonProperties, FieldCharacterCountProperties, FieldFooterProperties, FieldHeaderProperties, FieldIndicatorProperties, FloatingActionButtonButtonItemProperties, FloatingActionButtonMenuItemProperties, FloatingActionButtonProperties, GenericFieldButtonProps, HelpBubbleProperties, IdentityPlaceholderProperties, InferComponentDefinition, InferComponentPropertyType, InputButtonPrefixProperties, InputButtonProperties, InputButtonSuffixProperties, LegacyMultilineTextFieldProperties, LegacyTextFieldProperties, ListHeaderProperties, ListItemPrefixIconProperties, ListItemProperties, ListItemSuffixIconProperties, MannerTempBadgeProperties, MannerTempProperties, MenuSheetGroupProperties, MenuSheetItemProperties, MenuSheetProperties, PageBannerButtonProperties, PageBannerProperties, ProgressCircleProperties, PropsConverter, RadioMarkProperties, RadioProperties, ReactionButtonProperties, SegmentedControlItemProperties, SegmentedControlProperties, SelectBoxGroupProperties, SelectBoxProperties, SkeletonProperties, SliderFieldProperties, SliderProperties, SliderTicksProperties, SnackbarProperties, SwitchMarkProperties, SwitchProperties, TabsChipWrapperProperties, TabsLineTriggerFillProperties, TabsLineTriggerHugProperties, TabsLineWrapperProperties, TabsProperties, TagGroupItemProperties, TagGroupProperties, TextInputFieldProperties, TextInputOutlinePrefixProperties, TextInputOutlineProperties, TextInputOutlineSuffixProperties, TextInputUnderlinePrefixProperties, TextInputUnderlineProperties, TextInputUnderlineSuffixProperties, TextareaFieldProperties, TextareaProperties, ToggleButtonProperties, ValueResolver };
|
|
2757
2889
|
//# sourceMappingURL=index.d.ts.map
|