@draftbit/core 46.10.3-106fd0.2 → 46.10.3-1ab4b6.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 (56) hide show
  1. package/lib/commonjs/components/Checkbox/CheckboxGroup.js +17 -2
  2. package/lib/commonjs/components/Shadow.js +15 -2
  3. package/lib/commonjs/components/Table/Table.js +11 -10
  4. package/lib/commonjs/components/Table/TableCell.js +3 -3
  5. package/lib/commonjs/components/Table/TableCommon.js +30 -0
  6. package/lib/commonjs/components/Table/TableRow.js +4 -4
  7. package/lib/commonjs/components/Table/index.js +3 -27
  8. package/lib/commonjs/constants.js +1 -1
  9. package/lib/commonjs/mappings/Layout.js +85 -177
  10. package/lib/module/components/AspectRatio.js +1 -18
  11. package/lib/module/components/Checkbox/CheckboxGroup.js +2 -16
  12. package/lib/module/components/Checkbox/context.js +1 -1
  13. package/lib/module/components/CircleImage.js +1 -16
  14. package/lib/module/components/DeprecatedButton.js +3 -21
  15. package/lib/module/components/IconButton.js +4 -21
  16. package/lib/module/components/Pressable.js +2 -15
  17. package/lib/module/components/Shadow.js +2 -15
  18. package/lib/module/components/Table/Table.js +7 -7
  19. package/lib/module/components/Table/TableCell.js +1 -1
  20. package/lib/module/components/Table/TableCommon.js +21 -0
  21. package/lib/module/components/Table/TableRow.js +3 -2
  22. package/lib/module/components/Table/index.js +1 -22
  23. package/lib/module/components/ToggleButton.js +2 -16
  24. package/lib/module/constants.js +0 -1
  25. package/lib/module/mappings/Layout.js +86 -178
  26. package/lib/typescript/src/components/Table/Table.d.ts +7 -2
  27. package/lib/typescript/src/components/Table/Table.d.ts.map +1 -1
  28. package/lib/typescript/src/components/Table/TableCell.d.ts +1 -1
  29. package/lib/typescript/src/components/Table/TableCell.d.ts.map +1 -1
  30. package/lib/typescript/src/components/Table/TableCommon.d.ts +20 -0
  31. package/lib/typescript/src/components/Table/TableCommon.d.ts.map +1 -0
  32. package/lib/typescript/src/components/Table/TableRow.d.ts +1 -1
  33. package/lib/typescript/src/components/Table/TableRow.d.ts.map +1 -1
  34. package/lib/typescript/src/components/Table/index.d.ts +1 -19
  35. package/lib/typescript/src/components/Table/index.d.ts.map +1 -1
  36. package/lib/typescript/src/mappings/Layout.d.ts +72 -108
  37. package/lib/typescript/src/mappings/Layout.d.ts.map +1 -1
  38. package/package.json +3 -3
  39. package/src/components/Table/Table.js +4 -2
  40. package/src/components/Table/Table.tsx +9 -3
  41. package/src/components/Table/TableCell.js +1 -1
  42. package/src/components/Table/TableCell.tsx +5 -1
  43. package/src/components/Table/TableCommon.js +12 -0
  44. package/src/components/Table/TableCommon.ts +40 -0
  45. package/src/components/Table/TableRow.js +1 -1
  46. package/src/components/Table/TableRow.tsx +1 -1
  47. package/src/components/Table/index.js +1 -13
  48. package/src/components/Table/index.tsx +1 -42
  49. package/src/mappings/Layout.js +100 -176
  50. package/src/mappings/Layout.ts +116 -178
  51. package/lib/commonjs/mappings/NativeBase/Layout.js +0 -108
  52. package/lib/module/mappings/NativeBase/Layout.js +0 -101
  53. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +0 -133
  54. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +0 -1
  55. package/src/mappings/NativeBase/Layout.js +0 -124
  56. package/src/mappings/NativeBase/Layout.ts +0 -145
@@ -1,108 +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
- stylesPanelSections: [_types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.Margins, _types.StylesPanelSections.Position, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Effects]
27
- }, {
28
- name: "Box",
29
- tag: "Box",
30
- description: "This is a generic component for low level layout needs. It is similar to a div in HTML",
31
- ...SHARED_SEED_DATA
32
- }, {
33
- name: "Center",
34
- tag: "Center",
35
- description: "Center aligns its contents to the center within itself",
36
- ...SHARED_SEED_DATA,
37
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX
38
- }, {
39
- name: "Circle",
40
- tag: "Circle",
41
- description: "Center aligns its contents to the center within itself with a round border radius",
42
- ...SHARED_SEED_DATA,
43
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX
44
- }, {
45
- name: "Container",
46
- tag: "Container",
47
- description: "The Container restricts a content's width according to current breakpoint, while keeping the size fluid",
48
- props: {
49
- centerContent: (0, _types.createStaticBoolProp)({
50
- label: "Center content",
51
- description: "Center child elements based on their content width",
52
- defaultValue: true
53
- })
54
- },
55
- ...SHARED_SEED_DATA
56
- }, {
57
- name: "Column",
58
- tag: "Column",
59
- description: "Column aligns items vertically",
60
- layout: {
61
- flexDirection: "column"
62
- },
63
- ...SHARED_SEED_DATA
64
- }, {
65
- name: "Row",
66
- tag: "Row",
67
- description: "Column aligns items horizontally",
68
- layout: {
69
- flexDirection: "row"
70
- },
71
- ...SHARED_SEED_DATA
72
- }, {
73
- name: "Spacer",
74
- tag: "Spacer",
75
- description: "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
76
- layout: {
77
- flex: 1
78
- },
79
- ...SHARED_SEED_DATA,
80
- stylesPanelSections: [_types.StylesPanelSections.LayoutSelectedItem, _types.StylesPanelSections.Background, _types.StylesPanelSections.Margins]
81
- }, {
82
- name: "Stack",
83
- tag: "Stack",
84
- description: "Stack aligns items vertically or horizontally based on the direction prop",
85
- ...SHARED_SEED_DATA,
86
- props: {
87
- isDisabled: (0, _types.createBoolProp)({
88
- label: "Disabled",
89
- description: "If true, the Stack will be disabled"
90
- }),
91
- isInvalid: (0, _types.createBoolProp)({
92
- label: "Invalid",
93
- description: "If true, the Stack will be invalid"
94
- })
95
- }
96
- }, {
97
- name: "ZStack",
98
- tag: "ZStack",
99
- description: "ZStack aligns items to the z-axis",
100
- ...SHARED_SEED_DATA,
101
- props: {
102
- reversed: (0, _types.createBoolProp)({
103
- label: "Reversed",
104
- description: "Determines whether to reverse the direction of items"
105
- })
106
- }
107
- }];
108
- exports.SEED_DATA = SEED_DATA;
@@ -1,101 +0,0 @@
1
- import { COMPONENT_TYPES, createBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, createStaticNumberProp, StylesPanelSections, createStaticBoolProp } 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
- stylesPanelSections: [StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.Margins, StylesPanelSections.Position, StylesPanelSections.Borders, StylesPanelSections.Effects]
21
- }, {
22
- name: "Box",
23
- tag: "Box",
24
- description: "This is a generic component for low level layout needs. It is similar to a div in HTML",
25
- ...SHARED_SEED_DATA
26
- }, {
27
- name: "Center",
28
- tag: "Center",
29
- description: "Center aligns its contents to the center within itself",
30
- ...SHARED_SEED_DATA,
31
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX
32
- }, {
33
- name: "Circle",
34
- tag: "Circle",
35
- description: "Center aligns its contents to the center within itself with a round border radius",
36
- ...SHARED_SEED_DATA,
37
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX
38
- }, {
39
- name: "Container",
40
- tag: "Container",
41
- description: "The Container restricts a content's width according to current breakpoint, while keeping the size fluid",
42
- props: {
43
- centerContent: createStaticBoolProp({
44
- label: "Center content",
45
- description: "Center child elements based on their content width",
46
- defaultValue: true
47
- })
48
- },
49
- ...SHARED_SEED_DATA
50
- }, {
51
- name: "Column",
52
- tag: "Column",
53
- description: "Column aligns items vertically",
54
- layout: {
55
- flexDirection: "column"
56
- },
57
- ...SHARED_SEED_DATA
58
- }, {
59
- name: "Row",
60
- tag: "Row",
61
- description: "Column aligns items horizontally",
62
- layout: {
63
- flexDirection: "row"
64
- },
65
- ...SHARED_SEED_DATA
66
- }, {
67
- name: "Spacer",
68
- tag: "Spacer",
69
- description: "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
70
- layout: {
71
- flex: 1
72
- },
73
- ...SHARED_SEED_DATA,
74
- stylesPanelSections: [StylesPanelSections.LayoutSelectedItem, StylesPanelSections.Background, StylesPanelSections.Margins]
75
- }, {
76
- name: "Stack",
77
- tag: "Stack",
78
- description: "Stack aligns items vertically or horizontally based on the direction prop",
79
- ...SHARED_SEED_DATA,
80
- props: {
81
- isDisabled: createBoolProp({
82
- label: "Disabled",
83
- description: "If true, the Stack will be disabled"
84
- }),
85
- isInvalid: createBoolProp({
86
- label: "Invalid",
87
- description: "If true, the Stack will be invalid"
88
- })
89
- }
90
- }, {
91
- name: "ZStack",
92
- tag: "ZStack",
93
- description: "ZStack aligns items to the z-axis",
94
- ...SHARED_SEED_DATA,
95
- props: {
96
- reversed: createBoolProp({
97
- label: "Reversed",
98
- description: "Determines whether to reverse the direction of items"
99
- })
100
- }
101
- }];
@@ -1,133 +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
- centerContent?: undefined;
15
- isDisabled?: undefined;
16
- isInvalid?: undefined;
17
- reversed?: undefined;
18
- };
19
- stylesPanelSections: string[];
20
- category: string;
21
- packageName: 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
- props: {
40
- centerContent: {
41
- label: string;
42
- description: string;
43
- formType: string;
44
- propType: string;
45
- defaultValue: boolean;
46
- editable: boolean;
47
- required: boolean;
48
- group: string;
49
- };
50
- ratio?: undefined;
51
- isDisabled?: undefined;
52
- isInvalid?: undefined;
53
- reversed?: undefined;
54
- };
55
- } | {
56
- category: string;
57
- packageName: string;
58
- stylesPanelSections: string[];
59
- name: string;
60
- tag: string;
61
- description: string;
62
- layout: {
63
- flexDirection: string;
64
- flex?: undefined;
65
- };
66
- } | {
67
- stylesPanelSections: string[];
68
- category: string;
69
- packageName: string;
70
- name: string;
71
- tag: string;
72
- description: string;
73
- layout: {
74
- flex: number;
75
- flexDirection?: undefined;
76
- };
77
- } | {
78
- props: {
79
- isDisabled: {
80
- label: string;
81
- description: string;
82
- formType: string;
83
- propType: string;
84
- defaultValue: boolean;
85
- editable: boolean;
86
- required: boolean;
87
- group: string;
88
- };
89
- isInvalid: {
90
- label: string;
91
- description: string;
92
- formType: string;
93
- propType: string;
94
- defaultValue: boolean;
95
- editable: boolean;
96
- required: boolean;
97
- group: string;
98
- };
99
- ratio?: undefined;
100
- centerContent?: undefined;
101
- reversed?: undefined;
102
- };
103
- category: string;
104
- packageName: string;
105
- stylesPanelSections: string[];
106
- name: string;
107
- tag: string;
108
- description: string;
109
- } | {
110
- props: {
111
- reversed: {
112
- label: string;
113
- description: string;
114
- formType: string;
115
- propType: string;
116
- defaultValue: boolean;
117
- editable: boolean;
118
- required: boolean;
119
- group: string;
120
- };
121
- ratio?: undefined;
122
- centerContent?: undefined;
123
- isDisabled?: undefined;
124
- isInvalid?: undefined;
125
- };
126
- category: string;
127
- packageName: string;
128
- stylesPanelSections: string[];
129
- name: string;
130
- tag: string;
131
- description: string;
132
- })[];
133
- //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0HrB,CAAC"}
@@ -1,124 +0,0 @@
1
- import { COMPONENT_TYPES, createBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, createStaticNumberProp, StylesPanelSections, createStaticBoolProp, } 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 &&
8
- item !== StylesPanelSections.LayoutContent);
9
- export const SEED_DATA = [
10
- {
11
- name: "Aspect Ratio",
12
- tag: "AspectRatio",
13
- description: "Controls the size of the undefined dimension of a node or child component using an aspect ratio",
14
- ...SHARED_SEED_DATA,
15
- props: {
16
- ratio: createStaticNumberProp({
17
- label: "Ratio",
18
- description: "The aspect ratio of the container in decimal format (ex: 3/4 -> 1.33)",
19
- defaultValue: 1.33,
20
- }),
21
- },
22
- stylesPanelSections: [
23
- StylesPanelSections.Background,
24
- StylesPanelSections.Size,
25
- StylesPanelSections.Margins,
26
- StylesPanelSections.Position,
27
- StylesPanelSections.Borders,
28
- StylesPanelSections.Effects,
29
- ],
30
- },
31
- {
32
- name: "Box",
33
- tag: "Box",
34
- description: "This is a generic component for low level layout needs. It is similar to a div in HTML",
35
- ...SHARED_SEED_DATA,
36
- },
37
- {
38
- name: "Center",
39
- tag: "Center",
40
- description: "Center aligns its contents to the center within itself",
41
- ...SHARED_SEED_DATA,
42
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX,
43
- },
44
- {
45
- name: "Circle",
46
- tag: "Circle",
47
- description: "Center aligns its contents to the center within itself with a round border radius",
48
- ...SHARED_SEED_DATA,
49
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX,
50
- },
51
- {
52
- name: "Container",
53
- tag: "Container",
54
- description: "The Container restricts a content's width according to current breakpoint, while keeping the size fluid",
55
- props: {
56
- centerContent: createStaticBoolProp({
57
- label: "Center content",
58
- description: "Center child elements based on their content width",
59
- defaultValue: true,
60
- }),
61
- },
62
- ...SHARED_SEED_DATA,
63
- },
64
- {
65
- name: "Column",
66
- tag: "Column",
67
- description: "Column aligns items vertically",
68
- layout: {
69
- flexDirection: "column",
70
- },
71
- ...SHARED_SEED_DATA,
72
- },
73
- {
74
- name: "Row",
75
- tag: "Row",
76
- description: "Column aligns items horizontally",
77
- layout: {
78
- flexDirection: "row",
79
- },
80
- ...SHARED_SEED_DATA,
81
- },
82
- {
83
- name: "Spacer",
84
- tag: "Spacer",
85
- description: "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
86
- layout: {
87
- flex: 1,
88
- },
89
- ...SHARED_SEED_DATA,
90
- stylesPanelSections: [
91
- StylesPanelSections.LayoutSelectedItem,
92
- StylesPanelSections.Background,
93
- StylesPanelSections.Margins,
94
- ],
95
- },
96
- {
97
- name: "Stack",
98
- tag: "Stack",
99
- description: "Stack aligns items vertically or horizontally based on the direction prop",
100
- ...SHARED_SEED_DATA,
101
- props: {
102
- isDisabled: createBoolProp({
103
- label: "Disabled",
104
- description: "If true, the Stack will be disabled",
105
- }),
106
- isInvalid: createBoolProp({
107
- label: "Invalid",
108
- description: "If true, the Stack will be invalid",
109
- }),
110
- },
111
- },
112
- {
113
- name: "ZStack",
114
- tag: "ZStack",
115
- description: "ZStack aligns items to the z-axis",
116
- ...SHARED_SEED_DATA,
117
- props: {
118
- reversed: createBoolProp({
119
- label: "Reversed",
120
- description: "Determines whether to reverse the direction of items",
121
- }),
122
- },
123
- },
124
- ];
@@ -1,145 +0,0 @@
1
- import {
2
- COMPONENT_TYPES,
3
- createBoolProp,
4
- CONTAINER_COMPONENT_STYLES_SECTIONS,
5
- createStaticNumberProp,
6
- StylesPanelSections,
7
- createStaticBoolProp,
8
- } from "@draftbit/types";
9
-
10
- const SHARED_SEED_DATA = {
11
- category: COMPONENT_TYPES.layout,
12
- packageName: "native-base",
13
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
14
- };
15
-
16
- const CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX =
17
- CONTAINER_COMPONENT_STYLES_SECTIONS.filter(
18
- (item) =>
19
- item !== StylesPanelSections.LayoutFlexItems &&
20
- item !== StylesPanelSections.LayoutContent
21
- );
22
-
23
- export const SEED_DATA = [
24
- {
25
- name: "Aspect Ratio",
26
- tag: "AspectRatio",
27
- description:
28
- "Controls the size of the undefined dimension of a node or child component using an aspect ratio",
29
- ...SHARED_SEED_DATA,
30
- props: {
31
- ratio: createStaticNumberProp({
32
- label: "Ratio",
33
- description:
34
- "The aspect ratio of the container in decimal format (ex: 3/4 -> 1.33)",
35
- defaultValue: 1.33,
36
- }),
37
- },
38
- stylesPanelSections: [
39
- StylesPanelSections.Background,
40
- StylesPanelSections.Size,
41
- StylesPanelSections.Margins,
42
- StylesPanelSections.Position,
43
- StylesPanelSections.Borders,
44
- StylesPanelSections.Effects,
45
- ],
46
- },
47
- {
48
- name: "Box",
49
- tag: "Box",
50
- description:
51
- "This is a generic component for low level layout needs. It is similar to a div in HTML",
52
- ...SHARED_SEED_DATA,
53
- },
54
- {
55
- name: "Center",
56
- tag: "Center",
57
- description: "Center aligns its contents to the center within itself",
58
- ...SHARED_SEED_DATA,
59
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX,
60
- },
61
- {
62
- name: "Circle",
63
- tag: "Circle",
64
- description:
65
- "Center aligns its contents to the center within itself with a round border radius",
66
- ...SHARED_SEED_DATA,
67
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX,
68
- },
69
- {
70
- name: "Container",
71
- tag: "Container",
72
- description:
73
- "The Container restricts a content's width according to current breakpoint, while keeping the size fluid",
74
- props: {
75
- centerContent: createStaticBoolProp({
76
- label: "Center content",
77
- description: "Center child elements based on their content width",
78
- defaultValue: true,
79
- }),
80
- },
81
- ...SHARED_SEED_DATA,
82
- },
83
- {
84
- name: "Column",
85
- tag: "Column",
86
- description: "Column aligns items vertically",
87
- layout: {
88
- flexDirection: "column",
89
- },
90
- ...SHARED_SEED_DATA,
91
- },
92
- {
93
- name: "Row",
94
- tag: "Row",
95
- description: "Column aligns items horizontally",
96
- layout: {
97
- flexDirection: "row",
98
- },
99
- ...SHARED_SEED_DATA,
100
- },
101
- {
102
- name: "Spacer",
103
- tag: "Spacer",
104
- description:
105
- "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
106
- layout: {
107
- flex: 1,
108
- },
109
- ...SHARED_SEED_DATA,
110
- stylesPanelSections: [
111
- StylesPanelSections.LayoutSelectedItem,
112
- StylesPanelSections.Background,
113
- StylesPanelSections.Margins,
114
- ],
115
- },
116
- {
117
- name: "Stack",
118
- tag: "Stack",
119
- description:
120
- "Stack aligns items vertically or horizontally based on the direction prop",
121
- ...SHARED_SEED_DATA,
122
- props: {
123
- isDisabled: createBoolProp({
124
- label: "Disabled",
125
- description: "If true, the Stack will be disabled",
126
- }),
127
- isInvalid: createBoolProp({
128
- label: "Invalid",
129
- description: "If true, the Stack will be invalid",
130
- }),
131
- },
132
- },
133
- {
134
- name: "ZStack",
135
- tag: "ZStack",
136
- description: "ZStack aligns items to the z-axis",
137
- ...SHARED_SEED_DATA,
138
- props: {
139
- reversed: createBoolProp({
140
- label: "Reversed",
141
- description: "Determines whether to reverse the direction of items",
142
- }),
143
- },
144
- },
145
- ];