@developer_tribe/react-builder 1.2.6 → 1.2.8

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 (112) hide show
  1. package/dist/build-components/BIcon/BIconProps.generated.d.ts +47 -44
  2. package/dist/build-components/BackgroundImage/BackgroundImageProps.generated.d.ts +38 -35
  3. package/dist/build-components/Button/ButtonProps.generated.d.ts +40 -37
  4. package/dist/build-components/Carousel/CarouselProps.generated.d.ts +37 -34
  5. package/dist/build-components/CarouselButtons/CarouselButtonsProps.generated.d.ts +39 -36
  6. package/dist/build-components/CarouselDots/CarouselDotsProps.generated.d.ts +38 -35
  7. package/dist/build-components/CarouselItem/CarouselItemProps.generated.d.ts +37 -34
  8. package/dist/build-components/CarouselProvider/CarouselProviderProps.generated.d.ts +37 -34
  9. package/dist/build-components/Image/ImageProps.generated.d.ts +38 -35
  10. package/dist/build-components/Main/MainProps.generated.d.ts +38 -35
  11. package/dist/build-components/Onboard/OnboardProps.generated.d.ts +37 -34
  12. package/dist/build-components/OnboardButton/OnboardButtonProps.generated.d.ts +43 -40
  13. package/dist/build-components/OnboardButtons/OnboardButtonsProps.generated.d.ts +44 -41
  14. package/dist/build-components/OnboardDot/OnboardDotProps.generated.d.ts +41 -38
  15. package/dist/build-components/OnboardFooter/OnboardFooterProps.generated.d.ts +51 -48
  16. package/dist/build-components/OnboardImage/OnboardImageProps.generated.d.ts +40 -37
  17. package/dist/build-components/OnboardItem/OnboardItemProps.generated.d.ts +38 -35
  18. package/dist/build-components/OnboardProvider/OnboardProviderProps.generated.d.ts +38 -35
  19. package/dist/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.d.ts +44 -41
  20. package/dist/build-components/OnboardTitle/OnboardTitleProps.generated.d.ts +44 -41
  21. package/dist/build-components/PaywallBackground/PaywallBackgroundProps.generated.d.ts +37 -34
  22. package/dist/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.d.ts +47 -44
  23. package/dist/build-components/PaywallOptions/PaywallOptionsProps.generated.d.ts +37 -34
  24. package/dist/build-components/PaywallProvider/PaywallProviderProps.generated.d.ts +37 -34
  25. package/dist/build-components/PaywallSubscribeButton/PaywallSubscribeButtonProps.generated.d.ts +40 -37
  26. package/dist/build-components/RadioButton/RadioButtonProps.generated.d.ts +40 -37
  27. package/dist/build-components/Text/TextProps.generated.d.ts +44 -41
  28. package/dist/build-components/View/ViewProps.generated.d.ts +37 -34
  29. package/dist/build-components/patterns.generated.d.ts +21 -21
  30. package/dist/components/BuilderProvider.d.ts +6 -0
  31. package/dist/hooks/useExtractImageStyle.d.ts +3 -1
  32. package/dist/hooks/useExtractTextStyle.d.ts +1 -1
  33. package/dist/hooks/useExtractViewStyle.d.ts +1 -1
  34. package/dist/index.cjs.js +5 -5
  35. package/dist/index.cjs.js.map +1 -1
  36. package/dist/index.d.ts +1 -0
  37. package/dist/index.esm.js +3 -3
  38. package/dist/index.esm.js.map +1 -1
  39. package/dist/index.native.cjs.js +2 -2
  40. package/dist/index.native.cjs.js.map +1 -1
  41. package/dist/index.native.d.ts +4 -0
  42. package/dist/index.native.esm.js +2 -2
  43. package/dist/index.native.esm.js.map +1 -1
  44. package/dist/utils/extractImageStyle.d.ts +3 -0
  45. package/dist/utils/extractTextStyle/extractTextStyleNative.d.ts +17 -0
  46. package/dist/utils/extractTextStyle.d.ts +2 -0
  47. package/dist/utils/extractViewStyle/extractViewStyleNative.d.ts +12 -0
  48. package/dist/utils/extractViewStyle.d.ts +2 -0
  49. package/dist/utils/patterns.d.ts +2 -1
  50. package/package.json +5 -1
  51. package/scripts/prebuild/utils/createGeneratedProps.js +45 -3
  52. package/src/attributes-editor/LayoutPreviewPicker.tsx +4 -3
  53. package/src/build-components/BIcon/BIcon.tsx +3 -2
  54. package/src/build-components/BIcon/BIconProps.generated.ts +48 -44
  55. package/src/build-components/BackgroundImage/BackgroundImage.tsx +5 -3
  56. package/src/build-components/BackgroundImage/BackgroundImageProps.generated.ts +39 -35
  57. package/src/build-components/BackgroundImage/pattern.json +9 -17
  58. package/src/build-components/Button/Button.tsx +5 -4
  59. package/src/build-components/Button/ButtonProps.generated.ts +41 -37
  60. package/src/build-components/Carousel/CarouselProps.generated.ts +38 -34
  61. package/src/build-components/CarouselButtons/CarouselButtons.tsx +3 -2
  62. package/src/build-components/CarouselButtons/CarouselButtonsProps.generated.ts +40 -36
  63. package/src/build-components/CarouselDots/CarouselDots.tsx +1 -1
  64. package/src/build-components/CarouselDots/CarouselDotsProps.generated.ts +39 -35
  65. package/src/build-components/CarouselItem/CarouselItemProps.generated.ts +38 -34
  66. package/src/build-components/CarouselProvider/CarouselProviderProps.generated.ts +38 -34
  67. package/src/build-components/Image/Image.tsx +3 -2
  68. package/src/build-components/Image/ImageProps.generated.ts +39 -35
  69. package/src/build-components/Image/pattern.json +9 -16
  70. package/src/build-components/Main/Main.tsx +1 -1
  71. package/src/build-components/Main/MainProps.generated.ts +39 -35
  72. package/src/build-components/Onboard/OnboardProps.generated.ts +38 -34
  73. package/src/build-components/OnboardButton/OnboardButton.tsx +6 -5
  74. package/src/build-components/OnboardButton/OnboardButtonProps.generated.ts +44 -40
  75. package/src/build-components/OnboardButtons/OnboardButtons.tsx +4 -4
  76. package/src/build-components/OnboardButtons/OnboardButtonsProps.generated.ts +45 -41
  77. package/src/build-components/OnboardDot/OnboardDot.tsx +5 -4
  78. package/src/build-components/OnboardDot/OnboardDotProps.generated.ts +42 -38
  79. package/src/build-components/OnboardFooter/OnboardFooter.tsx +16 -21
  80. package/src/build-components/OnboardFooter/OnboardFooterProps.generated.ts +52 -48
  81. package/src/build-components/OnboardImage/OnboardImage.tsx +7 -6
  82. package/src/build-components/OnboardImage/OnboardImageProps.generated.ts +41 -37
  83. package/src/build-components/OnboardItem/OnboardItemProps.generated.ts +39 -35
  84. package/src/build-components/OnboardProvider/OnboardProviderProps.generated.ts +39 -35
  85. package/src/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.ts +45 -41
  86. package/src/build-components/OnboardTitle/OnboardTitleProps.generated.ts +45 -41
  87. package/src/build-components/PaywallBackground/PaywallBackgroundProps.generated.ts +38 -34
  88. package/src/build-components/PaywallCloseButton/PaywallCloseButton.tsx +4 -4
  89. package/src/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.ts +48 -44
  90. package/src/build-components/PaywallOptions/PaywallOptionsProps.generated.ts +38 -34
  91. package/src/build-components/PaywallProvider/PaywallProviderProps.generated.ts +38 -34
  92. package/src/build-components/PaywallSubscribeButton/PaywallSubscribeButtonProps.generated.ts +41 -37
  93. package/src/build-components/RadioButton/RadioButton.tsx +4 -3
  94. package/src/build-components/RadioButton/RadioButtonProps.generated.ts +41 -37
  95. package/src/build-components/Text/Text.tsx +3 -5
  96. package/src/build-components/Text/TextProps.generated.ts +45 -41
  97. package/src/build-components/View/ViewProps.generated.ts +38 -34
  98. package/src/build-components/patterns.generated.ts +21 -21
  99. package/src/components/BuilderProvider.tsx +15 -1
  100. package/src/hooks/useExtractImageStyle.ts +15 -4
  101. package/src/hooks/useExtractTextStyle.ts +11 -3
  102. package/src/hooks/useExtractViewStyle.ts +15 -4
  103. package/src/index.native.ts +6 -0
  104. package/src/index.ts +2 -0
  105. package/src/utils/extractImageStyle.ts +34 -5
  106. package/src/utils/extractTextStyle/extractTextStyle.ts +3 -5
  107. package/src/utils/extractTextStyle/extractTextStyleNative.ts +106 -0
  108. package/src/utils/extractTextStyle.ts +2 -0
  109. package/src/utils/extractViewStyle/extractViewStyle.ts +2 -4
  110. package/src/utils/extractViewStyle/extractViewStyleNative.ts +111 -0
  111. package/src/utils/extractViewStyle.ts +2 -0
  112. package/src/utils/patterns.ts +55 -1
@@ -19,44 +19,48 @@ export type JustifyContentOptionType =
19
19
  export type PositionOptionType = 'relative' | 'absolute';
20
20
  export type DisplayOptionType = 'flex' | 'block';
21
21
 
22
+ export interface OnboardItemStyleGenerated {
23
+ scrollable?: boolean;
24
+ flexDirection?: FlexDirectionOptionType;
25
+ alignItems?: AlignItemsOptionType;
26
+ justifyContent?: JustifyContentOptionType;
27
+ gap?: string;
28
+ padding?: string;
29
+ paddingHorizontal?: string;
30
+ paddingVertical?: string;
31
+ paddingTop?: string;
32
+ paddingBottom?: string;
33
+ paddingLeft?: string;
34
+ paddingRight?: string;
35
+ margin?: string;
36
+ marginHorizontal?: string;
37
+ marginVertical?: string;
38
+ marginTop?: string;
39
+ marginBottom?: string;
40
+ marginLeft?: string;
41
+ marginRight?: string;
42
+ backgroundColor?: string;
43
+ borderRadius?: string;
44
+ width?: string;
45
+ minWidth?: string;
46
+ maxWidth?: string;
47
+ height?: string;
48
+ minHeight?: string;
49
+ maxHeight?: string;
50
+ flex?: number;
51
+ position?: PositionOptionType;
52
+ top?: string;
53
+ bottom?: string;
54
+ left?: string;
55
+ right?: string;
56
+ zIndex?: number;
57
+ display?: DisplayOptionType;
58
+ }
59
+
22
60
  export interface OnboardItemPropsGenerated {
23
61
  child: string;
24
62
  attributes: {
25
- style?: Record<string, unknown>;
26
- scrollable?: boolean;
27
- flexDirection?: FlexDirectionOptionType;
28
- alignItems?: AlignItemsOptionType;
29
- justifyContent?: JustifyContentOptionType;
30
- gap?: string;
31
- padding?: string;
32
- paddingHorizontal?: string;
33
- paddingVertical?: string;
34
- paddingTop?: string;
35
- paddingBottom?: string;
36
- paddingLeft?: string;
37
- paddingRight?: string;
38
- margin?: string;
39
- marginVertical?: string;
40
- marginTop?: string;
41
- marginBottom?: string;
42
- marginLeft?: string;
43
- marginRight?: string;
44
- backgroundColor?: string;
45
- borderRadius?: string;
46
- width?: string;
47
- minWidth?: string;
48
- maxWidth?: string;
49
- height?: string;
50
- minHeight?: string;
51
- maxHeight?: string;
52
- flex?: number;
53
- position?: PositionOptionType;
54
- top?: string;
55
- bottom?: string;
56
- left?: string;
57
- right?: string;
58
- zIndex?: number;
59
- display?: DisplayOptionType;
63
+ style?: OnboardItemStyleGenerated;
60
64
  };
61
65
  }
62
66
 
@@ -19,44 +19,48 @@ export type JustifyContentOptionType =
19
19
  export type PositionOptionType = 'relative' | 'absolute';
20
20
  export type ThemeOptionType = 'light' | 'dark' | 'all';
21
21
 
22
+ export interface OnboardProviderStyleGenerated {
23
+ scrollable?: boolean;
24
+ flexDirection?: FlexDirectionOptionType;
25
+ alignItems?: AlignItemsOptionType;
26
+ justifyContent?: JustifyContentOptionType;
27
+ gap?: string;
28
+ padding?: string;
29
+ paddingHorizontal?: string;
30
+ paddingVertical?: string;
31
+ paddingTop?: string;
32
+ paddingBottom?: string;
33
+ paddingLeft?: string;
34
+ paddingRight?: string;
35
+ margin?: string;
36
+ marginHorizontal?: string;
37
+ marginVertical?: string;
38
+ marginTop?: string;
39
+ marginBottom?: string;
40
+ marginLeft?: string;
41
+ marginRight?: string;
42
+ backgroundColor?: string;
43
+ borderRadius?: never;
44
+ width?: string;
45
+ minWidth?: string;
46
+ maxWidth?: string;
47
+ height?: string;
48
+ minHeight?: string;
49
+ maxHeight?: string;
50
+ flex?: number;
51
+ position?: PositionOptionType;
52
+ top?: string;
53
+ bottom?: string;
54
+ left?: string;
55
+ right?: string;
56
+ zIndex?: number;
57
+ theme?: ThemeOptionType;
58
+ }
59
+
22
60
  export interface OnboardProviderPropsGenerated {
23
61
  child: string;
24
62
  attributes: {
25
- style?: Record<string, unknown>;
26
- scrollable?: boolean;
27
- flexDirection?: FlexDirectionOptionType;
28
- alignItems?: AlignItemsOptionType;
29
- justifyContent?: JustifyContentOptionType;
30
- gap?: string;
31
- padding?: string;
32
- paddingHorizontal?: string;
33
- paddingVertical?: string;
34
- paddingTop?: string;
35
- paddingBottom?: string;
36
- paddingLeft?: string;
37
- paddingRight?: string;
38
- margin?: string;
39
- marginVertical?: string;
40
- marginTop?: string;
41
- marginBottom?: string;
42
- marginLeft?: string;
43
- marginRight?: string;
44
- backgroundColor?: string;
45
- borderRadius?: never;
46
- width?: string;
47
- minWidth?: string;
48
- maxWidth?: string;
49
- height?: string;
50
- minHeight?: string;
51
- maxHeight?: string;
52
- flex?: number;
53
- position?: PositionOptionType;
54
- top?: string;
55
- bottom?: string;
56
- left?: string;
57
- right?: string;
58
- zIndex?: number;
59
- theme?: ThemeOptionType;
63
+ style?: OnboardProviderStyleGenerated;
60
64
  };
61
65
  }
62
66
 
@@ -19,50 +19,54 @@ export type JustifyContentOptionType =
19
19
  | 'space-evenly';
20
20
  export type PositionOptionType = 'relative' | 'absolute';
21
21
 
22
+ export interface OnboardSubtitleStyleGenerated {
23
+ color?: string;
24
+ fontSize?: string;
25
+ fontFamily?: string;
26
+ fontWeight?: string;
27
+ textAlign?: TextAlignOptionType;
28
+ adjustsFontSizeToFit?: boolean;
29
+ showEllipsis?: boolean;
30
+ scrollable?: boolean;
31
+ flexDirection?: FlexDirectionOptionType;
32
+ alignItems?: AlignItemsOptionType;
33
+ justifyContent?: JustifyContentOptionType;
34
+ gap?: string;
35
+ padding?: string;
36
+ paddingHorizontal?: string;
37
+ paddingVertical?: string;
38
+ paddingTop?: string;
39
+ paddingBottom?: string;
40
+ paddingLeft?: string;
41
+ paddingRight?: string;
42
+ margin?: string;
43
+ marginHorizontal?: string;
44
+ marginVertical?: string;
45
+ marginTop?: string;
46
+ marginBottom?: string;
47
+ marginLeft?: string;
48
+ marginRight?: string;
49
+ backgroundColor?: string;
50
+ borderRadius?: string;
51
+ width?: string;
52
+ minWidth?: string;
53
+ maxWidth?: string;
54
+ height?: string;
55
+ minHeight?: string;
56
+ maxHeight?: string;
57
+ flex?: number;
58
+ position?: PositionOptionType;
59
+ top?: string;
60
+ bottom?: string;
61
+ left?: string;
62
+ right?: string;
63
+ zIndex?: number;
64
+ }
65
+
22
66
  export interface OnboardSubtitlePropsGenerated {
23
67
  child: string;
24
68
  attributes: {
25
- style?: Record<string, unknown>;
26
- color?: string;
27
- fontSize?: string;
28
- fontFamily?: string;
29
- fontWeight?: string;
30
- textAlign?: TextAlignOptionType;
31
- adjustsFontSizeToFit?: boolean;
32
- showEllipsis?: boolean;
33
- scrollable?: boolean;
34
- flexDirection?: FlexDirectionOptionType;
35
- alignItems?: AlignItemsOptionType;
36
- justifyContent?: JustifyContentOptionType;
37
- gap?: string;
38
- padding?: string;
39
- paddingHorizontal?: string;
40
- paddingVertical?: string;
41
- paddingTop?: string;
42
- paddingBottom?: string;
43
- paddingLeft?: string;
44
- paddingRight?: string;
45
- margin?: string;
46
- marginVertical?: string;
47
- marginTop?: string;
48
- marginBottom?: string;
49
- marginLeft?: string;
50
- marginRight?: string;
51
- backgroundColor?: string;
52
- borderRadius?: string;
53
- width?: string;
54
- minWidth?: string;
55
- maxWidth?: string;
56
- height?: string;
57
- minHeight?: string;
58
- maxHeight?: string;
59
- flex?: number;
60
- position?: PositionOptionType;
61
- top?: string;
62
- bottom?: string;
63
- left?: string;
64
- right?: string;
65
- zIndex?: number;
69
+ style?: OnboardSubtitleStyleGenerated;
66
70
  };
67
71
  }
68
72
 
@@ -19,50 +19,54 @@ export type JustifyContentOptionType =
19
19
  | 'space-evenly';
20
20
  export type PositionOptionType = 'relative' | 'absolute';
21
21
 
22
+ export interface OnboardTitleStyleGenerated {
23
+ color?: string;
24
+ fontSize?: string;
25
+ fontFamily?: string;
26
+ fontWeight?: string;
27
+ textAlign?: TextAlignOptionType;
28
+ adjustsFontSizeToFit?: boolean;
29
+ showEllipsis?: boolean;
30
+ scrollable?: boolean;
31
+ flexDirection?: FlexDirectionOptionType;
32
+ alignItems?: AlignItemsOptionType;
33
+ justifyContent?: JustifyContentOptionType;
34
+ gap?: string;
35
+ padding?: string;
36
+ paddingHorizontal?: string;
37
+ paddingVertical?: string;
38
+ paddingTop?: string;
39
+ paddingBottom?: string;
40
+ paddingLeft?: string;
41
+ paddingRight?: string;
42
+ margin?: string;
43
+ marginHorizontal?: string;
44
+ marginVertical?: string;
45
+ marginTop?: string;
46
+ marginBottom?: string;
47
+ marginLeft?: string;
48
+ marginRight?: string;
49
+ backgroundColor?: string;
50
+ borderRadius?: string;
51
+ width?: string;
52
+ minWidth?: string;
53
+ maxWidth?: string;
54
+ height?: string;
55
+ minHeight?: string;
56
+ maxHeight?: string;
57
+ flex?: number;
58
+ position?: PositionOptionType;
59
+ top?: string;
60
+ bottom?: string;
61
+ left?: string;
62
+ right?: string;
63
+ zIndex?: number;
64
+ }
65
+
22
66
  export interface OnboardTitlePropsGenerated {
23
67
  child: string;
24
68
  attributes: {
25
- style?: Record<string, unknown>;
26
- color?: string;
27
- fontSize?: string;
28
- fontFamily?: string;
29
- fontWeight?: string;
30
- textAlign?: TextAlignOptionType;
31
- adjustsFontSizeToFit?: boolean;
32
- showEllipsis?: boolean;
33
- scrollable?: boolean;
34
- flexDirection?: FlexDirectionOptionType;
35
- alignItems?: AlignItemsOptionType;
36
- justifyContent?: JustifyContentOptionType;
37
- gap?: string;
38
- padding?: string;
39
- paddingHorizontal?: string;
40
- paddingVertical?: string;
41
- paddingTop?: string;
42
- paddingBottom?: string;
43
- paddingLeft?: string;
44
- paddingRight?: string;
45
- margin?: string;
46
- marginVertical?: string;
47
- marginTop?: string;
48
- marginBottom?: string;
49
- marginLeft?: string;
50
- marginRight?: string;
51
- backgroundColor?: string;
52
- borderRadius?: string;
53
- width?: string;
54
- minWidth?: string;
55
- maxWidth?: string;
56
- height?: string;
57
- minHeight?: string;
58
- maxHeight?: string;
59
- flex?: number;
60
- position?: PositionOptionType;
61
- top?: string;
62
- bottom?: string;
63
- left?: string;
64
- right?: string;
65
- zIndex?: number;
69
+ style?: OnboardTitleStyleGenerated;
66
70
  };
67
71
  }
68
72
 
@@ -18,43 +18,47 @@ export type JustifyContentOptionType =
18
18
  | 'space-evenly';
19
19
  export type PositionOptionType = 'relative' | 'absolute';
20
20
 
21
+ export interface PaywallBackgroundStyleGenerated {
22
+ scrollable?: boolean;
23
+ flexDirection?: FlexDirectionOptionType;
24
+ alignItems?: AlignItemsOptionType;
25
+ justifyContent?: JustifyContentOptionType;
26
+ gap?: string;
27
+ padding?: string;
28
+ paddingHorizontal?: string;
29
+ paddingVertical?: string;
30
+ paddingTop?: string;
31
+ paddingBottom?: string;
32
+ paddingLeft?: string;
33
+ paddingRight?: string;
34
+ margin?: string;
35
+ marginHorizontal?: string;
36
+ marginVertical?: string;
37
+ marginTop?: string;
38
+ marginBottom?: string;
39
+ marginLeft?: string;
40
+ marginRight?: string;
41
+ backgroundColor?: string;
42
+ borderRadius?: string;
43
+ width?: string;
44
+ minWidth?: string;
45
+ maxWidth?: string;
46
+ height?: string;
47
+ minHeight?: string;
48
+ maxHeight?: string;
49
+ flex?: number;
50
+ position?: PositionOptionType;
51
+ top?: string;
52
+ bottom?: string;
53
+ left?: string;
54
+ right?: string;
55
+ zIndex?: number;
56
+ }
57
+
21
58
  export interface PaywallBackgroundPropsGenerated {
22
59
  child: string;
23
60
  attributes: {
24
- style?: Record<string, unknown>;
25
- scrollable?: boolean;
26
- flexDirection?: FlexDirectionOptionType;
27
- alignItems?: AlignItemsOptionType;
28
- justifyContent?: JustifyContentOptionType;
29
- gap?: string;
30
- padding?: string;
31
- paddingHorizontal?: string;
32
- paddingVertical?: string;
33
- paddingTop?: string;
34
- paddingBottom?: string;
35
- paddingLeft?: string;
36
- paddingRight?: string;
37
- margin?: string;
38
- marginVertical?: string;
39
- marginTop?: string;
40
- marginBottom?: string;
41
- marginLeft?: string;
42
- marginRight?: string;
43
- backgroundColor?: string;
44
- borderRadius?: string;
45
- width?: string;
46
- minWidth?: string;
47
- maxWidth?: string;
48
- height?: string;
49
- minHeight?: string;
50
- maxHeight?: string;
51
- flex?: number;
52
- position?: PositionOptionType;
53
- top?: string;
54
- bottom?: string;
55
- left?: string;
56
- right?: string;
57
- zIndex?: number;
61
+ style?: PaywallBackgroundStyleGenerated;
58
62
  };
59
63
  }
60
64
 
@@ -33,12 +33,12 @@ function PaywallCloseButton({ node }: PaywallCloseButtonComponentProps) {
33
33
  isSelected ? SELECTED_OUTLINE_STYLE : undefined,
34
34
  );
35
35
 
36
- const iconType = node.attributes?.iconType ?? 'close';
37
- const size =
38
- node.attributes?.size ?? (style.fontSize as number | undefined) ?? 24;
36
+ const styleBag = node.attributes?.style;
37
+ const iconType = styleBag?.iconType ?? 'close';
38
+ const size = styleBag?.size ?? (style.fontSize as number | undefined) ?? 24;
39
39
  const color =
40
40
  (style.color as string | undefined) ??
41
- (node.attributes?.color as string | undefined);
41
+ (styleBag?.color as string | undefined);
42
42
 
43
43
  return (
44
44
  <a
@@ -19,53 +19,57 @@ export type JustifyContentOptionType =
19
19
  | 'space-evenly';
20
20
  export type PositionOptionType = 'relative' | 'absolute';
21
21
 
22
+ export interface PaywallCloseButtonStyleGenerated {
23
+ iconType?: string;
24
+ size?: number;
25
+ strokeWidth?: number;
26
+ color?: string;
27
+ fontSize?: string;
28
+ fontFamily?: string;
29
+ fontWeight?: string;
30
+ textAlign?: TextAlignOptionType;
31
+ adjustsFontSizeToFit?: boolean;
32
+ showEllipsis?: boolean;
33
+ scrollable?: boolean;
34
+ flexDirection?: FlexDirectionOptionType;
35
+ alignItems?: AlignItemsOptionType;
36
+ justifyContent?: JustifyContentOptionType;
37
+ gap?: string;
38
+ padding?: string;
39
+ paddingHorizontal?: string;
40
+ paddingVertical?: string;
41
+ paddingTop?: string;
42
+ paddingBottom?: string;
43
+ paddingLeft?: string;
44
+ paddingRight?: string;
45
+ margin?: string;
46
+ marginHorizontal?: string;
47
+ marginVertical?: string;
48
+ marginTop?: string;
49
+ marginBottom?: string;
50
+ marginLeft?: string;
51
+ marginRight?: string;
52
+ backgroundColor?: string;
53
+ borderRadius?: string;
54
+ width?: string;
55
+ minWidth?: string;
56
+ maxWidth?: string;
57
+ height?: string;
58
+ minHeight?: string;
59
+ maxHeight?: string;
60
+ flex?: number;
61
+ position?: PositionOptionType;
62
+ top?: string;
63
+ bottom?: string;
64
+ left?: string;
65
+ right?: string;
66
+ zIndex?: number;
67
+ }
68
+
22
69
  export interface PaywallCloseButtonPropsGenerated {
23
70
  child: string;
24
71
  attributes: {
25
- style?: Record<string, unknown>;
26
- iconType?: string;
27
- size?: number;
28
- strokeWidth?: number;
29
- color?: string;
30
- fontSize?: string;
31
- fontFamily?: string;
32
- fontWeight?: string;
33
- textAlign?: TextAlignOptionType;
34
- adjustsFontSizeToFit?: boolean;
35
- showEllipsis?: boolean;
36
- scrollable?: boolean;
37
- flexDirection?: FlexDirectionOptionType;
38
- alignItems?: AlignItemsOptionType;
39
- justifyContent?: JustifyContentOptionType;
40
- gap?: string;
41
- padding?: string;
42
- paddingHorizontal?: string;
43
- paddingVertical?: string;
44
- paddingTop?: string;
45
- paddingBottom?: string;
46
- paddingLeft?: string;
47
- paddingRight?: string;
48
- margin?: string;
49
- marginVertical?: string;
50
- marginTop?: string;
51
- marginBottom?: string;
52
- marginLeft?: string;
53
- marginRight?: string;
54
- backgroundColor?: string;
55
- borderRadius?: string;
56
- width?: string;
57
- minWidth?: string;
58
- maxWidth?: string;
59
- height?: string;
60
- minHeight?: string;
61
- maxHeight?: string;
62
- flex?: number;
63
- position?: PositionOptionType;
64
- top?: string;
65
- bottom?: string;
66
- left?: string;
67
- right?: string;
68
- zIndex?: number;
72
+ style?: PaywallCloseButtonStyleGenerated;
69
73
  };
70
74
  }
71
75
 
@@ -18,43 +18,47 @@ export type JustifyContentOptionType =
18
18
  | 'space-evenly';
19
19
  export type PositionOptionType = 'relative' | 'absolute';
20
20
 
21
+ export interface PaywallOptionsStyleGenerated {
22
+ scrollable?: boolean;
23
+ flexDirection?: FlexDirectionOptionType;
24
+ alignItems?: AlignItemsOptionType;
25
+ justifyContent?: JustifyContentOptionType;
26
+ gap?: string;
27
+ padding?: string;
28
+ paddingHorizontal?: string;
29
+ paddingVertical?: string;
30
+ paddingTop?: string;
31
+ paddingBottom?: string;
32
+ paddingLeft?: string;
33
+ paddingRight?: string;
34
+ margin?: string;
35
+ marginHorizontal?: string;
36
+ marginVertical?: string;
37
+ marginTop?: string;
38
+ marginBottom?: string;
39
+ marginLeft?: string;
40
+ marginRight?: string;
41
+ backgroundColor?: string;
42
+ borderRadius?: string;
43
+ width?: string;
44
+ minWidth?: string;
45
+ maxWidth?: string;
46
+ height?: string;
47
+ minHeight?: string;
48
+ maxHeight?: string;
49
+ flex?: number;
50
+ position?: PositionOptionType;
51
+ top?: string;
52
+ bottom?: string;
53
+ left?: string;
54
+ right?: string;
55
+ zIndex?: number;
56
+ }
57
+
21
58
  export interface PaywallOptionsPropsGenerated {
22
59
  child: string;
23
60
  attributes: {
24
- style?: Record<string, unknown>;
25
- scrollable?: boolean;
26
- flexDirection?: FlexDirectionOptionType;
27
- alignItems?: AlignItemsOptionType;
28
- justifyContent?: JustifyContentOptionType;
29
- gap?: string;
30
- padding?: string;
31
- paddingHorizontal?: string;
32
- paddingVertical?: string;
33
- paddingTop?: string;
34
- paddingBottom?: string;
35
- paddingLeft?: string;
36
- paddingRight?: string;
37
- margin?: string;
38
- marginVertical?: string;
39
- marginTop?: string;
40
- marginBottom?: string;
41
- marginLeft?: string;
42
- marginRight?: string;
43
- backgroundColor?: string;
44
- borderRadius?: string;
45
- width?: string;
46
- minWidth?: string;
47
- maxWidth?: string;
48
- height?: string;
49
- minHeight?: string;
50
- maxHeight?: string;
51
- flex?: number;
52
- position?: PositionOptionType;
53
- top?: string;
54
- bottom?: string;
55
- left?: string;
56
- right?: string;
57
- zIndex?: number;
61
+ style?: PaywallOptionsStyleGenerated;
58
62
  };
59
63
  }
60
64