@draftbit/core 46.10.3-6f5759.2 → 46.10.3-93b2ea.2

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 (74) hide show
  1. package/lib/commonjs/components/Row.js +73 -0
  2. package/lib/commonjs/components/RowBodyIcon.js +45 -0
  3. package/lib/commonjs/components/RowHeadlineImageCaption.js +45 -0
  4. package/lib/commonjs/components/RowHeadlineImageIcon.js +51 -0
  5. package/lib/commonjs/components/TabView/TabView.js +7 -13
  6. package/lib/commonjs/components/Table/Table.js +123 -0
  7. package/lib/commonjs/components/Table/TableCell.js +49 -0
  8. package/lib/commonjs/components/Table/TableCommon.js +30 -0
  9. package/lib/commonjs/components/Table/TableRow.js +61 -0
  10. package/lib/commonjs/components/Table/index.js +27 -0
  11. package/lib/commonjs/index.js +40 -0
  12. package/lib/commonjs/mappings/Table.js +140 -0
  13. package/lib/module/components/Row.js +63 -0
  14. package/lib/module/components/RowBodyIcon.js +35 -0
  15. package/lib/module/components/RowHeadlineImageCaption.js +35 -0
  16. package/lib/module/components/RowHeadlineImageIcon.js +41 -0
  17. package/lib/module/components/Table/Table.js +114 -0
  18. package/lib/module/components/Table/TableCell.js +41 -0
  19. package/lib/module/components/Table/TableCommon.js +21 -0
  20. package/lib/module/components/Table/TableRow.js +53 -0
  21. package/lib/module/components/Table/index.js +3 -0
  22. package/lib/module/index.js +4 -0
  23. package/lib/module/mappings/Table.js +133 -0
  24. package/lib/typescript/src/components/Row.d.ts +21 -0
  25. package/lib/typescript/src/components/Row.d.ts.map +1 -0
  26. package/lib/typescript/src/components/RowBodyIcon.d.ts +16 -0
  27. package/lib/typescript/src/components/RowBodyIcon.d.ts.map +1 -0
  28. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +16 -0
  29. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +1 -0
  30. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +18 -0
  31. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +1 -0
  32. package/lib/typescript/src/components/Table/Table.d.ts +19 -0
  33. package/lib/typescript/src/components/Table/Table.d.ts.map +1 -0
  34. package/lib/typescript/src/components/Table/TableCell.d.ts +9 -0
  35. package/lib/typescript/src/components/Table/TableCell.d.ts.map +1 -0
  36. package/lib/typescript/src/components/Table/TableCommon.d.ts +20 -0
  37. package/lib/typescript/src/components/Table/TableCommon.d.ts.map +1 -0
  38. package/lib/typescript/src/components/Table/TableRow.d.ts +14 -0
  39. package/lib/typescript/src/components/Table/TableRow.d.ts.map +1 -0
  40. package/lib/typescript/src/components/Table/index.d.ts +4 -0
  41. package/lib/typescript/src/components/Table/index.d.ts.map +1 -0
  42. package/lib/typescript/src/index.d.ts +4 -0
  43. package/lib/typescript/src/index.d.ts.map +1 -1
  44. package/lib/typescript/src/mappings/Table.d.ts +337 -0
  45. package/lib/typescript/src/mappings/Table.d.ts.map +1 -0
  46. package/package.json +3 -3
  47. package/src/components/Row.js +48 -0
  48. package/src/components/Row.tsx +108 -0
  49. package/src/components/RowBodyIcon.js +8 -0
  50. package/src/components/RowBodyIcon.tsx +47 -0
  51. package/src/components/RowHeadlineImageCaption.js +12 -0
  52. package/src/components/RowHeadlineImageCaption.tsx +49 -0
  53. package/src/components/RowHeadlineImageIcon.js +14 -0
  54. package/src/components/RowHeadlineImageIcon.tsx +61 -0
  55. package/src/components/Table/Table.js +93 -0
  56. package/src/components/Table/Table.tsx +176 -0
  57. package/src/components/Table/TableCell.js +31 -0
  58. package/src/components/Table/TableCell.tsx +63 -0
  59. package/src/components/Table/TableCommon.js +12 -0
  60. package/src/components/Table/TableCommon.ts +40 -0
  61. package/src/components/Table/TableRow.js +37 -0
  62. package/src/components/Table/TableRow.tsx +77 -0
  63. package/src/components/Table/index.js +3 -0
  64. package/src/components/Table/index.tsx +3 -0
  65. package/src/index.js +4 -0
  66. package/src/index.tsx +5 -0
  67. package/src/mappings/Table.js +150 -0
  68. package/src/mappings/Table.ts +170 -0
  69. package/lib/commonjs/mappings/NativeBase/Layout.js +0 -107
  70. package/lib/module/mappings/NativeBase/Layout.js +0 -100
  71. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +0 -117
  72. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +0 -1
  73. package/src/mappings/NativeBase/Layout.js +0 -112
  74. package/src/mappings/NativeBase/Layout.ts +0 -133
@@ -0,0 +1,150 @@
1
+ import { COMPONENT_TYPES, StylesPanelSections, createColorProp, createStaticBoolProp, createStaticNumberProp, createTextEnumProp, } from "@draftbit/types";
2
+ const SHARED_SEED_DATA_PROPS = {
3
+ borderWidth: createStaticNumberProp({
4
+ label: "Border Width",
5
+ description: "Specifies the width of the border. Passed down to child Table(Row/Cell) components unless overridden",
6
+ required: false,
7
+ defaultValue: null,
8
+ }),
9
+ borderColor: createColorProp({
10
+ label: "Border Color",
11
+ description: "Specifies the color of the border. Passed down to child Table(Row/Cell) components unless overridden",
12
+ defaultValue: null,
13
+ }),
14
+ borderStyle: createTextEnumProp({
15
+ label: "Border Style",
16
+ description: "Specifies the style of the border. Passed down to child Table(Row/Cell) components unless overridden",
17
+ options: ["solid", "dotted", "dashed"],
18
+ defaultValue: null,
19
+ }),
20
+ drawTopBorder: createStaticBoolProp({
21
+ label: "Draw Top Border",
22
+ description: "Whether to draw the top border at this layer of the Table tree or not",
23
+ defaultValue: false,
24
+ }),
25
+ drawBottomBorder: createStaticBoolProp({
26
+ label: "Draw Bottom Border",
27
+ description: "Whether to draw the bottom border at this layer of the Table tree or not",
28
+ defaultValue: false,
29
+ }),
30
+ drawStartBorder: createStaticBoolProp({
31
+ label: "Draw Start Border",
32
+ description: "Whether to draw the start border at this layer of the Table tree or not",
33
+ defaultValue: false,
34
+ }),
35
+ drawEndBorder: createStaticBoolProp({
36
+ label: "Draw End Border",
37
+ description: "Whether to draw the end border at this layer of the Table tree or not",
38
+ defaultValue: false,
39
+ }),
40
+ cellVerticalPadding: createStaticNumberProp({
41
+ label: "Cell Vertical Padding",
42
+ description: "Specifies the vertical padding of the cell. Passed down to TableCell components unless overridden",
43
+ required: false,
44
+ defaultValue: null,
45
+ }),
46
+ cellHorizontalPadding: createStaticNumberProp({
47
+ label: "Cell Horizontal Padding",
48
+ description: "Specifies the horizontal padding of the cell. Passed down to TableCell components unless overridden",
49
+ required: false,
50
+ defaultValue: null,
51
+ }),
52
+ };
53
+ export const SEED_DATA = [
54
+ {
55
+ name: "Table",
56
+ tag: "Table",
57
+ description: "Top level table container",
58
+ category: COMPONENT_TYPES.table,
59
+ stylesPanelSections: [
60
+ StylesPanelSections.Size,
61
+ StylesPanelSections.Margins,
62
+ StylesPanelSections.Position,
63
+ StylesPanelSections.Effects,
64
+ StylesPanelSections.Background,
65
+ StylesPanelSections.LayoutSelectedItem,
66
+ ],
67
+ layout: {
68
+ flex: 1,
69
+ },
70
+ props: {
71
+ ...SHARED_SEED_DATA_PROPS,
72
+ borderWidth: { ...SHARED_SEED_DATA_PROPS.borderWidth, defaultValue: 1 },
73
+ borderColor: {
74
+ ...SHARED_SEED_DATA_PROPS.borderColor,
75
+ defaultValue: "divider",
76
+ },
77
+ borderStyle: {
78
+ ...SHARED_SEED_DATA_PROPS.borderStyle,
79
+ defaultValue: "solid",
80
+ },
81
+ drawTopBorder: {
82
+ ...SHARED_SEED_DATA_PROPS.drawTopBorder,
83
+ defaultValue: true,
84
+ },
85
+ cellVerticalPadding: {
86
+ ...SHARED_SEED_DATA_PROPS.cellVerticalPadding,
87
+ defaultValue: 10,
88
+ },
89
+ cellHorizontalPadding: {
90
+ ...SHARED_SEED_DATA_PROPS.cellHorizontalPadding,
91
+ defaultValue: 10,
92
+ },
93
+ showsVerticalScrollIndicator: createStaticBoolProp({
94
+ label: "Show Vertical Scroll Indicator",
95
+ description: "When true, shows a vertical scroll indicator. The default value is true.",
96
+ defaultValue: true,
97
+ }),
98
+ },
99
+ },
100
+ {
101
+ name: "Table Row",
102
+ tag: "TableRow",
103
+ description: "Table Row container",
104
+ category: COMPONENT_TYPES.table,
105
+ stylesPanelSections: [StylesPanelSections.Background],
106
+ props: {
107
+ ...SHARED_SEED_DATA_PROPS,
108
+ drawStartBorder: {
109
+ ...SHARED_SEED_DATA_PROPS.drawStartBorder,
110
+ defaultValue: true,
111
+ },
112
+ drawBottomBorder: {
113
+ ...SHARED_SEED_DATA_PROPS.drawBottomBorder,
114
+ defaultValue: true,
115
+ },
116
+ isTableHeader: createStaticBoolProp({
117
+ label: "Header",
118
+ description: "Whether this row is a header or not (changes background and sticks while scrolling)",
119
+ defaultValue: false,
120
+ }),
121
+ },
122
+ },
123
+ {
124
+ name: "Table Cell",
125
+ tag: "TableCell",
126
+ description: "Table Cell container",
127
+ category: COMPONENT_TYPES.table,
128
+ stylesPanelSections: [
129
+ StylesPanelSections.LayoutFlexItems,
130
+ StylesPanelSections.LayoutSelectedItem,
131
+ StylesPanelSections.LayoutContent,
132
+ StylesPanelSections.Background,
133
+ StylesPanelSections.Size,
134
+ StylesPanelSections.MarginsAndPaddings,
135
+ StylesPanelSections.Position,
136
+ StylesPanelSections.Effects,
137
+ ],
138
+ layout: {
139
+ flex: 1,
140
+ flexDirection: "row",
141
+ },
142
+ props: {
143
+ ...SHARED_SEED_DATA_PROPS,
144
+ drawEndBorder: {
145
+ ...SHARED_SEED_DATA_PROPS.drawEndBorder,
146
+ defaultValue: true,
147
+ },
148
+ },
149
+ },
150
+ ];
@@ -0,0 +1,170 @@
1
+ import {
2
+ COMPONENT_TYPES,
3
+ StylesPanelSections,
4
+ createColorProp,
5
+ createStaticBoolProp,
6
+ createStaticNumberProp,
7
+ createTextEnumProp,
8
+ } from "@draftbit/types";
9
+
10
+ const SHARED_SEED_DATA_PROPS = {
11
+ borderWidth: createStaticNumberProp({
12
+ label: "Border Width",
13
+ description:
14
+ "Specifies the width of the border. Passed down to child Table(Row/Cell) components unless overridden",
15
+ required: false,
16
+ defaultValue: null,
17
+ }),
18
+ borderColor: createColorProp({
19
+ label: "Border Color",
20
+ description:
21
+ "Specifies the color of the border. Passed down to child Table(Row/Cell) components unless overridden",
22
+ defaultValue: null,
23
+ }),
24
+ borderStyle: createTextEnumProp({
25
+ label: "Border Style",
26
+ description:
27
+ "Specifies the style of the border. Passed down to child Table(Row/Cell) components unless overridden",
28
+ options: ["solid", "dotted", "dashed"],
29
+ defaultValue: null,
30
+ }),
31
+ drawTopBorder: createStaticBoolProp({
32
+ label: "Draw Top Border",
33
+ description:
34
+ "Whether to draw the top border at this layer of the Table tree or not",
35
+ defaultValue: false,
36
+ }),
37
+ drawBottomBorder: createStaticBoolProp({
38
+ label: "Draw Bottom Border",
39
+ description:
40
+ "Whether to draw the bottom border at this layer of the Table tree or not",
41
+ defaultValue: false,
42
+ }),
43
+ drawStartBorder: createStaticBoolProp({
44
+ label: "Draw Start Border",
45
+ description:
46
+ "Whether to draw the start border at this layer of the Table tree or not",
47
+ defaultValue: false,
48
+ }),
49
+ drawEndBorder: createStaticBoolProp({
50
+ label: "Draw End Border",
51
+ description:
52
+ "Whether to draw the end border at this layer of the Table tree or not",
53
+ defaultValue: false,
54
+ }),
55
+ cellVerticalPadding: createStaticNumberProp({
56
+ label: "Cell Vertical Padding",
57
+ description:
58
+ "Specifies the vertical padding of the cell. Passed down to TableCell components unless overridden",
59
+ required: false,
60
+ defaultValue: null,
61
+ }),
62
+ cellHorizontalPadding: createStaticNumberProp({
63
+ label: "Cell Horizontal Padding",
64
+ description:
65
+ "Specifies the horizontal padding of the cell. Passed down to TableCell components unless overridden",
66
+ required: false,
67
+ defaultValue: null,
68
+ }),
69
+ };
70
+
71
+ export const SEED_DATA = [
72
+ {
73
+ name: "Table",
74
+ tag: "Table",
75
+ description: "Top level table container",
76
+ category: COMPONENT_TYPES.table,
77
+ stylesPanelSections: [
78
+ StylesPanelSections.Size,
79
+ StylesPanelSections.Margins,
80
+ StylesPanelSections.Position,
81
+ StylesPanelSections.Effects,
82
+ StylesPanelSections.Background,
83
+ StylesPanelSections.LayoutSelectedItem,
84
+ ],
85
+ layout: {
86
+ flex: 1,
87
+ },
88
+ props: {
89
+ ...SHARED_SEED_DATA_PROPS,
90
+ borderWidth: { ...SHARED_SEED_DATA_PROPS.borderWidth, defaultValue: 1 },
91
+ borderColor: {
92
+ ...SHARED_SEED_DATA_PROPS.borderColor,
93
+ defaultValue: "divider",
94
+ },
95
+ borderStyle: {
96
+ ...SHARED_SEED_DATA_PROPS.borderStyle,
97
+ defaultValue: "solid",
98
+ },
99
+ drawTopBorder: {
100
+ ...SHARED_SEED_DATA_PROPS.drawTopBorder,
101
+ defaultValue: true,
102
+ },
103
+ cellVerticalPadding: {
104
+ ...SHARED_SEED_DATA_PROPS.cellVerticalPadding,
105
+ defaultValue: 10,
106
+ },
107
+ cellHorizontalPadding: {
108
+ ...SHARED_SEED_DATA_PROPS.cellHorizontalPadding,
109
+ defaultValue: 10,
110
+ },
111
+ showsVerticalScrollIndicator: createStaticBoolProp({
112
+ label: "Show Vertical Scroll Indicator",
113
+ description:
114
+ "When true, shows a vertical scroll indicator. The default value is true.",
115
+ defaultValue: true,
116
+ }),
117
+ },
118
+ },
119
+ {
120
+ name: "Table Row",
121
+ tag: "TableRow",
122
+ description: "Table Row container",
123
+ category: COMPONENT_TYPES.table,
124
+ stylesPanelSections: [StylesPanelSections.Background],
125
+ props: {
126
+ ...SHARED_SEED_DATA_PROPS,
127
+ drawStartBorder: {
128
+ ...SHARED_SEED_DATA_PROPS.drawStartBorder,
129
+ defaultValue: true,
130
+ },
131
+ drawBottomBorder: {
132
+ ...SHARED_SEED_DATA_PROPS.drawBottomBorder,
133
+ defaultValue: true,
134
+ },
135
+ isTableHeader: createStaticBoolProp({
136
+ label: "Header",
137
+ description:
138
+ "Whether this row is a header or not (changes background and sticks while scrolling)",
139
+ defaultValue: false,
140
+ }),
141
+ },
142
+ },
143
+ {
144
+ name: "Table Cell",
145
+ tag: "TableCell",
146
+ description: "Table Cell container",
147
+ category: COMPONENT_TYPES.table,
148
+ stylesPanelSections: [
149
+ StylesPanelSections.LayoutFlexItems,
150
+ StylesPanelSections.LayoutSelectedItem,
151
+ StylesPanelSections.LayoutContent,
152
+ StylesPanelSections.Background,
153
+ StylesPanelSections.Size,
154
+ StylesPanelSections.MarginsAndPaddings,
155
+ StylesPanelSections.Position,
156
+ StylesPanelSections.Effects,
157
+ ],
158
+ layout: {
159
+ flex: 1,
160
+ flexDirection: "row",
161
+ },
162
+ props: {
163
+ ...SHARED_SEED_DATA_PROPS,
164
+ drawEndBorder: {
165
+ ...SHARED_SEED_DATA_PROPS.drawEndBorder,
166
+ defaultValue: true,
167
+ },
168
+ },
169
+ },
170
+ ];
@@ -1,107 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SEED_DATA = void 0;
7
- var _types = require("@draftbit/types");
8
- const SHARED_SEED_DATA = {
9
- category: _types.COMPONENT_TYPES.layout,
10
- packageName: "native-base",
11
- stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS
12
- };
13
- const CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX = _types.CONTAINER_COMPONENT_STYLES_SECTIONS.filter(item => item !== _types.StylesPanelSections.LayoutFlexItems && item !== _types.StylesPanelSections.LayoutContent);
14
- const SEED_DATA = [{
15
- name: "Aspect Ratio",
16
- tag: "AspectRatio",
17
- description: "Controls the size of the undefined dimension of a node or child component using an aspect ratio",
18
- ...SHARED_SEED_DATA,
19
- props: {
20
- ratio: (0, _types.createStaticNumberProp)({
21
- label: "Ratio",
22
- description: "The aspect ratio of the container in decimal format (ex: 3/4 -> 1.33)",
23
- defaultValue: 1.33
24
- })
25
- }
26
- }, {
27
- name: "Box",
28
- tag: "Box",
29
- description: "This is a generic component for low level layout needs. It is similar to a div in HTML",
30
- ...SHARED_SEED_DATA
31
- }, {
32
- name: "Center",
33
- tag: "Center",
34
- description: "Center aligns its contents to the center within itself",
35
- ...SHARED_SEED_DATA,
36
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX
37
- }, {
38
- name: "Circle",
39
- tag: "Circle",
40
- description: "Center aligns its contents to the center within itself with a round border radius",
41
- ...SHARED_SEED_DATA,
42
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX
43
- }, {
44
- name: "Container",
45
- tag: "Container",
46
- description: "The Container restricts a content's width according to current breakpoint, while keeping the size fluid",
47
- ...SHARED_SEED_DATA
48
- }, {
49
- name: "Column",
50
- tag: "Column",
51
- description: "Column aligns items vertically",
52
- layout: {
53
- flexDirection: "column"
54
- },
55
- ...SHARED_SEED_DATA
56
- }, {
57
- name: "Row",
58
- tag: "Row",
59
- description: "Column aligns items horizontally",
60
- layout: {
61
- flexDirection: "row"
62
- },
63
- ...SHARED_SEED_DATA
64
- }, {
65
- name: "Spacer",
66
- tag: "Spacer",
67
- description: "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
68
- ...SHARED_SEED_DATA,
69
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX
70
- }, {
71
- name: "Stack",
72
- tag: "Stack",
73
- description: "Stack aligns items vertically or horizontally based on the direction prop",
74
- ...SHARED_SEED_DATA,
75
- props: {
76
- direction: (0, _types.createTextEnumProp)({
77
- label: "Direction",
78
- description: "The direction of the Stack",
79
- options: ["row", "column"],
80
- defaultValue: "column"
81
- }),
82
- reversed: (0, _types.createBoolProp)({
83
- label: "Reversed",
84
- description: "Determines whether to reverse the direction of items"
85
- }),
86
- isDisabled: (0, _types.createBoolProp)({
87
- label: "Disabled",
88
- description: "If true, the Stack will be disabled"
89
- }),
90
- isInvalid: (0, _types.createBoolProp)({
91
- label: "Invalid",
92
- description: "If true, the Stack will be invalid"
93
- })
94
- }
95
- }, {
96
- name: "ZStack",
97
- tag: "ZStack",
98
- description: "ZStack aligns items to the z-axis",
99
- ...SHARED_SEED_DATA,
100
- props: {
101
- reversed: (0, _types.createBoolProp)({
102
- label: "Reversed",
103
- description: "Determines whether to reverse the direction of items"
104
- })
105
- }
106
- }];
107
- exports.SEED_DATA = SEED_DATA;
@@ -1,100 +0,0 @@
1
- import { COMPONENT_TYPES, createTextEnumProp, createBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, createStaticNumberProp, StylesPanelSections } from "@draftbit/types";
2
- const SHARED_SEED_DATA = {
3
- category: COMPONENT_TYPES.layout,
4
- packageName: "native-base",
5
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS
6
- };
7
- const CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX = CONTAINER_COMPONENT_STYLES_SECTIONS.filter(item => item !== StylesPanelSections.LayoutFlexItems && item !== StylesPanelSections.LayoutContent);
8
- export const SEED_DATA = [{
9
- name: "Aspect Ratio",
10
- tag: "AspectRatio",
11
- description: "Controls the size of the undefined dimension of a node or child component using an aspect ratio",
12
- ...SHARED_SEED_DATA,
13
- props: {
14
- ratio: createStaticNumberProp({
15
- label: "Ratio",
16
- description: "The aspect ratio of the container in decimal format (ex: 3/4 -> 1.33)",
17
- defaultValue: 1.33
18
- })
19
- }
20
- }, {
21
- name: "Box",
22
- tag: "Box",
23
- description: "This is a generic component for low level layout needs. It is similar to a div in HTML",
24
- ...SHARED_SEED_DATA
25
- }, {
26
- name: "Center",
27
- tag: "Center",
28
- description: "Center aligns its contents to the center within itself",
29
- ...SHARED_SEED_DATA,
30
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX
31
- }, {
32
- name: "Circle",
33
- tag: "Circle",
34
- description: "Center aligns its contents to the center within itself with a round border radius",
35
- ...SHARED_SEED_DATA,
36
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX
37
- }, {
38
- name: "Container",
39
- tag: "Container",
40
- description: "The Container restricts a content's width according to current breakpoint, while keeping the size fluid",
41
- ...SHARED_SEED_DATA
42
- }, {
43
- name: "Column",
44
- tag: "Column",
45
- description: "Column aligns items vertically",
46
- layout: {
47
- flexDirection: "column"
48
- },
49
- ...SHARED_SEED_DATA
50
- }, {
51
- name: "Row",
52
- tag: "Row",
53
- description: "Column aligns items horizontally",
54
- layout: {
55
- flexDirection: "row"
56
- },
57
- ...SHARED_SEED_DATA
58
- }, {
59
- name: "Spacer",
60
- tag: "Spacer",
61
- description: "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
62
- ...SHARED_SEED_DATA,
63
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX
64
- }, {
65
- name: "Stack",
66
- tag: "Stack",
67
- description: "Stack aligns items vertically or horizontally based on the direction prop",
68
- ...SHARED_SEED_DATA,
69
- props: {
70
- direction: createTextEnumProp({
71
- label: "Direction",
72
- description: "The direction of the Stack",
73
- options: ["row", "column"],
74
- defaultValue: "column"
75
- }),
76
- reversed: createBoolProp({
77
- label: "Reversed",
78
- description: "Determines whether to reverse the direction of items"
79
- }),
80
- isDisabled: createBoolProp({
81
- label: "Disabled",
82
- description: "If true, the Stack will be disabled"
83
- }),
84
- isInvalid: createBoolProp({
85
- label: "Invalid",
86
- description: "If true, the Stack will be invalid"
87
- })
88
- }
89
- }, {
90
- name: "ZStack",
91
- tag: "ZStack",
92
- description: "ZStack aligns items to the z-axis",
93
- ...SHARED_SEED_DATA,
94
- props: {
95
- reversed: createBoolProp({
96
- label: "Reversed",
97
- description: "Determines whether to reverse the direction of items"
98
- })
99
- }
100
- }];
@@ -1,117 +0,0 @@
1
- export declare const SEED_DATA: ({
2
- props: {
3
- ratio: {
4
- label: string;
5
- description: string;
6
- formType: string;
7
- propType: string;
8
- group: string;
9
- defaultValue: null;
10
- editable: boolean;
11
- required: boolean;
12
- step: number;
13
- };
14
- direction?: undefined;
15
- reversed?: undefined;
16
- isDisabled?: undefined;
17
- isInvalid?: undefined;
18
- };
19
- category: string;
20
- packageName: string;
21
- stylesPanelSections: string[];
22
- name: string;
23
- tag: string;
24
- description: string;
25
- } | {
26
- category: string;
27
- packageName: string;
28
- stylesPanelSections: string[];
29
- name: string;
30
- tag: string;
31
- description: string;
32
- } | {
33
- category: string;
34
- packageName: string;
35
- stylesPanelSections: string[];
36
- name: string;
37
- tag: string;
38
- description: string;
39
- layout: {
40
- flexDirection: string;
41
- };
42
- } | {
43
- props: {
44
- direction: {
45
- group: string;
46
- label: string;
47
- description: string;
48
- editable: boolean;
49
- required: boolean;
50
- formType: string;
51
- propType: string;
52
- defaultValue: null;
53
- options: never[];
54
- };
55
- reversed: {
56
- label: string;
57
- description: string;
58
- formType: string;
59
- propType: string;
60
- defaultValue: boolean;
61
- editable: boolean;
62
- required: boolean;
63
- group: string;
64
- };
65
- isDisabled: {
66
- label: string;
67
- description: string;
68
- formType: string;
69
- propType: string;
70
- defaultValue: boolean;
71
- editable: boolean;
72
- required: boolean;
73
- group: string;
74
- };
75
- isInvalid: {
76
- label: string;
77
- description: string;
78
- formType: string;
79
- propType: string;
80
- defaultValue: boolean;
81
- editable: boolean;
82
- required: boolean;
83
- group: string;
84
- };
85
- ratio?: undefined;
86
- };
87
- category: string;
88
- packageName: string;
89
- stylesPanelSections: string[];
90
- name: string;
91
- tag: string;
92
- description: string;
93
- } | {
94
- props: {
95
- reversed: {
96
- label: string;
97
- description: string;
98
- formType: string;
99
- propType: string;
100
- defaultValue: boolean;
101
- editable: boolean;
102
- required: boolean;
103
- group: string;
104
- };
105
- ratio?: undefined;
106
- direction?: undefined;
107
- isDisabled?: undefined;
108
- isInvalid?: undefined;
109
- };
110
- category: string;
111
- packageName: string;
112
- stylesPanelSections: string[];
113
- name: string;
114
- tag: string;
115
- description: string;
116
- })[];
117
- //# sourceMappingURL=Layout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../../../../src/mappings/NativeBase/Layout.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8GrB,CAAC"}