@draftbit/core 47.0.1-df014a.2 → 47.0.1-e04fa3.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 (95) hide show
  1. package/lib/commonjs/index.js +25 -82
  2. package/lib/commonjs/mappings/NativeBase/AlertDialog.js +102 -0
  3. package/lib/commonjs/mappings/NativeBase/Button.js +84 -0
  4. package/lib/commonjs/mappings/NativeBase/DataDisplay.js +61 -0
  5. package/lib/commonjs/mappings/NativeBase/Feedback.js +74 -0
  6. package/lib/commonjs/mappings/NativeBase/Layout.js +114 -0
  7. package/lib/commonjs/mappings/NativeBase/Media.js +49 -0
  8. package/lib/commonjs/mappings/NativeBase/Menu.js +111 -0
  9. package/lib/commonjs/mappings/NativeBase/Modal.js +93 -0
  10. package/lib/commonjs/mappings/NativeBase/Other.js +94 -0
  11. package/lib/commonjs/mappings/NativeBase/Popover.js +99 -0
  12. package/lib/commonjs/mappings/NativeBase/Select.js +65 -0
  13. package/lib/commonjs/mappings/NativeBase/Slider.js +81 -0
  14. package/lib/module/components/AvatarEdit.js +4 -15
  15. package/lib/module/components/CardBlock.js +4 -14
  16. package/lib/module/components/CircleImage.js +1 -16
  17. package/lib/module/components/DeprecatedCardWrapper.js +1 -18
  18. package/lib/module/components/FAB.js +4 -22
  19. package/lib/module/components/Picker/PickerComponent.ios.js +11 -36
  20. package/lib/module/components/Picker/PickerComponent.web.js +3 -21
  21. package/lib/module/components/Switch.js +10 -21
  22. package/lib/module/components/TextField.js +28 -78
  23. package/lib/module/components/Touchable.js +1 -18
  24. package/lib/module/index.js +121 -31
  25. package/lib/module/mappings/NativeBase/AlertDialog.js +95 -0
  26. package/lib/module/mappings/NativeBase/Button.js +86 -0
  27. package/lib/module/mappings/NativeBase/DataDisplay.js +54 -0
  28. package/lib/module/mappings/NativeBase/Feedback.js +67 -0
  29. package/lib/module/mappings/NativeBase/Layout.js +107 -0
  30. package/lib/module/mappings/NativeBase/Media.js +42 -0
  31. package/lib/module/mappings/NativeBase/Menu.js +104 -0
  32. package/lib/module/mappings/NativeBase/Modal.js +86 -0
  33. package/lib/module/mappings/NativeBase/Other.js +87 -0
  34. package/lib/module/mappings/NativeBase/Popover.js +92 -0
  35. package/lib/module/mappings/NativeBase/Select.js +58 -0
  36. package/lib/module/mappings/NativeBase/Slider.js +74 -0
  37. package/lib/typescript/src/index.d.ts +102 -29
  38. package/lib/typescript/src/index.d.ts.map +1 -1
  39. package/lib/typescript/src/mappings/NativeBase/AlertDialog.d.ts +146 -0
  40. package/lib/typescript/src/mappings/NativeBase/AlertDialog.d.ts.map +1 -0
  41. package/lib/typescript/src/mappings/NativeBase/Button.d.ts +1 -0
  42. package/lib/typescript/src/mappings/NativeBase/Button.d.ts.map +1 -0
  43. package/lib/typescript/src/mappings/NativeBase/DataDisplay.d.ts +96 -0
  44. package/lib/typescript/src/mappings/NativeBase/DataDisplay.d.ts.map +1 -0
  45. package/lib/typescript/src/mappings/NativeBase/Feedback.d.ts +2 -0
  46. package/lib/typescript/src/mappings/NativeBase/Feedback.d.ts.map +1 -0
  47. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +146 -0
  48. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +1 -0
  49. package/lib/typescript/src/mappings/NativeBase/Media.d.ts +48 -0
  50. package/lib/typescript/src/mappings/NativeBase/Media.d.ts.map +1 -0
  51. package/lib/typescript/src/mappings/NativeBase/Menu.d.ts +227 -0
  52. package/lib/typescript/src/mappings/NativeBase/Menu.d.ts.map +1 -0
  53. package/lib/typescript/src/mappings/NativeBase/Modal.d.ts +133 -0
  54. package/lib/typescript/src/mappings/NativeBase/Modal.d.ts.map +1 -0
  55. package/lib/typescript/src/mappings/NativeBase/Other.d.ts +179 -0
  56. package/lib/typescript/src/mappings/NativeBase/Other.d.ts.map +1 -0
  57. package/lib/typescript/src/mappings/NativeBase/Popover.d.ts +136 -0
  58. package/lib/typescript/src/mappings/NativeBase/Popover.d.ts.map +1 -0
  59. package/lib/typescript/src/mappings/NativeBase/Select.d.ts +156 -0
  60. package/lib/typescript/src/mappings/NativeBase/Select.d.ts.map +1 -0
  61. package/lib/typescript/src/mappings/NativeBase/Slider.d.ts +200 -0
  62. package/lib/typescript/src/mappings/NativeBase/Slider.d.ts.map +1 -0
  63. package/package.json +3 -3
  64. package/src/index.js +112 -31
  65. package/src/index.tsx +123 -43
  66. package/src/mappings/NativeBase/AlertDialog.js +112 -0
  67. package/src/mappings/NativeBase/AlertDialog.ts +128 -0
  68. package/src/mappings/NativeBase/Button.js +84 -0
  69. package/src/mappings/NativeBase/Button.ts +83 -0
  70. package/src/mappings/NativeBase/DataDisplay.js +67 -0
  71. package/src/mappings/NativeBase/DataDisplay.ts +79 -0
  72. package/src/mappings/NativeBase/Feedback.js +89 -0
  73. package/src/mappings/NativeBase/Feedback.ts +100 -0
  74. package/src/mappings/NativeBase/Layout.js +140 -0
  75. package/src/mappings/NativeBase/Layout.ts +152 -0
  76. package/src/mappings/NativeBase/Media.js +56 -0
  77. package/src/mappings/NativeBase/Media.ts +65 -0
  78. package/src/mappings/NativeBase/Menu.js +134 -0
  79. package/src/mappings/NativeBase/Menu.ts +150 -0
  80. package/src/mappings/NativeBase/Modal.js +103 -0
  81. package/src/mappings/NativeBase/Modal.ts +118 -0
  82. package/src/mappings/NativeBase/Other.js +123 -0
  83. package/src/mappings/NativeBase/Other.ts +139 -0
  84. package/src/mappings/NativeBase/Popover.js +123 -0
  85. package/src/mappings/NativeBase/Popover.ts +136 -0
  86. package/src/mappings/NativeBase/Select.js +71 -0
  87. package/src/mappings/NativeBase/Select.ts +85 -0
  88. package/src/mappings/NativeBase/Slider.js +89 -0
  89. package/src/mappings/NativeBase/Slider.ts +105 -0
  90. package/lib/commonjs/mappings/DatePickerModal.js +0 -74
  91. package/lib/module/mappings/DatePickerModal.js +0 -65
  92. package/lib/typescript/src/mappings/DatePickerModal.d.ts +0 -153
  93. package/lib/typescript/src/mappings/DatePickerModal.d.ts.map +0 -1
  94. package/src/mappings/DatePickerModal.js +0 -73
  95. package/src/mappings/DatePickerModal.ts +0 -91
@@ -0,0 +1,83 @@
1
+ /* Temporarily Commented Out
2
+
3
+
4
+ import {
5
+ COMPONENT_TYPES,
6
+ StylesPanelSections,
7
+ createTextEnumProp,
8
+ createBoolProp,
9
+ createIconProp,
10
+ } from "@draftbit/types";
11
+
12
+ const SHARED_SEED_DATA = {
13
+ category: COMPONENT_TYPES.NBForms,
14
+ packageName: "native-base",
15
+ stylesPanelSections: [
16
+ StylesPanelSections.LayoutFlexItems,
17
+ StylesPanelSections.LayoutSelectedItem,
18
+ StylesPanelSections.LayoutContent,
19
+ StylesPanelSections.Background,
20
+ StylesPanelSections.Size,
21
+ StylesPanelSections.MarginsAndPaddings,
22
+ StylesPanelSections.Position,
23
+ StylesPanelSections.Borders,
24
+ StylesPanelSections.Effects,
25
+ ],
26
+ layout: {},
27
+ triggers: {},
28
+ };
29
+
30
+ export const SEED_DATA = [
31
+ {
32
+ name: "Button",
33
+ tag: "Button",
34
+ description:
35
+ "The Button component triggers an event or an action. Examples can be submitting forms and deleting a data point.",
36
+ ...SHARED_SEED_DATA,
37
+ props: {
38
+ isLoading: createBoolProp({
39
+ label: "Loading",
40
+ description: "If true, the button will show a spinner.",
41
+ }),
42
+ isDisabled: createBoolProp({
43
+ label: "Disabled",
44
+ description: "If true, the button will be disabled.",
45
+ }),
46
+ leftIcon: createIconProp({
47
+ label: "Left Icon",
48
+ description: "The icon to display on the left side of the button",
49
+ }),
50
+ rightIcon: createIconProp({
51
+ label: "Right Icon",
52
+ description: "The icon to display on the right side of the button",
53
+ }),
54
+ spinnerPlacement: createTextEnumProp({
55
+ label: "Spinner Placement",
56
+ description: "The placement of the spinner",
57
+ options: ["start", "end"],
58
+ defaultValue: "start",
59
+ }),
60
+ },
61
+ },
62
+ {
63
+ name: "Button Group",
64
+ tag: "ButtonGroup",
65
+ description:
66
+ "Used to group buttons whose actions are related, with an option to flush them together.",
67
+ ...SHARED_SEED_DATA,
68
+ allowChildren: true,
69
+ props: {
70
+ direction: createTextEnumProp({
71
+ label: "Direction",
72
+ description: "The direction of the button group",
73
+ options: ["row", "column"],
74
+ defaultValue: "row",
75
+ }),
76
+ isAttached: createBoolProp({
77
+ label: "Attached",
78
+ description: "If true, the buttons will be attached",
79
+ }),
80
+ },
81
+ },
82
+ ];
83
+ */
@@ -0,0 +1,67 @@
1
+ import { COMPONENT_TYPES, StylesPanelSections, createTextEnumProp, createIconProp, createStaticNumberProp, } from "@draftbit/types";
2
+ const SHARED_SEED_DATA = {
3
+ category: COMPONENT_TYPES.NBDataDisplay,
4
+ packageName: "native-base",
5
+ stylesPanelSections: [
6
+ StylesPanelSections.LayoutFlexItems,
7
+ StylesPanelSections.LayoutSelectedItem,
8
+ StylesPanelSections.LayoutContent,
9
+ StylesPanelSections.Background,
10
+ StylesPanelSections.Size,
11
+ StylesPanelSections.MarginsAndPaddings,
12
+ StylesPanelSections.Position,
13
+ StylesPanelSections.Borders,
14
+ StylesPanelSections.Effects,
15
+ ],
16
+ layout: {},
17
+ triggers: {},
18
+ };
19
+ export const SEED_DATA = [
20
+ {
21
+ name: "Badge",
22
+ tag: "Badge",
23
+ doc_link: "https://docs.nativebase.io/badge",
24
+ code_link: "https://github.com/GeekyAnts/NativeBase/tree/master/src/components/composites/Badge",
25
+ description: "Badges allow the highlighting of an item’s status. This provides quick recognition.",
26
+ ...SHARED_SEED_DATA,
27
+ props: {
28
+ /* */
29
+ leftIcon: createIconProp({
30
+ label: "Left Icon",
31
+ description: "The left icon element to use in the button.",
32
+ }),
33
+ rightIcon: createIconProp({
34
+ label: "Right Icon",
35
+ description: "The right icon element to use in the button.",
36
+ }),
37
+ startIcon: createIconProp({
38
+ label: "Start Icon",
39
+ description: "The start icon element to use in the button.",
40
+ }),
41
+ endIcon: createIconProp({
42
+ label: "End Icon",
43
+ description: "The end icon element to use in the button.",
44
+ }),
45
+ },
46
+ },
47
+ {
48
+ name: "Divider",
49
+ tag: "Divider",
50
+ doc_link: "https://docs.nativebase.io/divider",
51
+ code_link: "https://github.com/GeekyAnts/NativeBase/tree/master/src/components/composites/Divider",
52
+ description: "Divider can visually separate content in a given list or group.",
53
+ ...SHARED_SEED_DATA,
54
+ props: {
55
+ orientation: createTextEnumProp({
56
+ label: "Orientation",
57
+ description: "The orientation of the divider",
58
+ options: ["horizontal", "vertical"],
59
+ }),
60
+ thickness: createStaticNumberProp({
61
+ label: "Thickness",
62
+ description: "The thickness of the divider",
63
+ defaultValue: 1,
64
+ }),
65
+ },
66
+ },
67
+ ];
@@ -0,0 +1,79 @@
1
+ import {
2
+ COMPONENT_TYPES,
3
+ StylesPanelSections,
4
+ createTextEnumProp,
5
+ createIconProp,
6
+ createStaticNumberProp,
7
+ } from "@draftbit/types";
8
+
9
+ const SHARED_SEED_DATA = {
10
+ category: COMPONENT_TYPES.NBDataDisplay,
11
+ packageName: "native-base",
12
+ stylesPanelSections: [
13
+ StylesPanelSections.LayoutFlexItems,
14
+ StylesPanelSections.LayoutSelectedItem,
15
+ StylesPanelSections.LayoutContent,
16
+ StylesPanelSections.Background,
17
+ StylesPanelSections.Size,
18
+ StylesPanelSections.MarginsAndPaddings,
19
+ StylesPanelSections.Position,
20
+ StylesPanelSections.Borders,
21
+ StylesPanelSections.Effects,
22
+ ],
23
+ layout: {},
24
+ triggers: {},
25
+ };
26
+
27
+ export const SEED_DATA = [
28
+ {
29
+ name: "Badge",
30
+ tag: "Badge",
31
+ doc_link: "https://docs.nativebase.io/badge",
32
+ code_link:
33
+ "https://github.com/GeekyAnts/NativeBase/tree/master/src/components/composites/Badge",
34
+ description:
35
+ "Badges allow the highlighting of an item’s status. This provides quick recognition.",
36
+ ...SHARED_SEED_DATA,
37
+ props: {
38
+ /* */
39
+ leftIcon: createIconProp({
40
+ label: "Left Icon",
41
+ description: "The left icon element to use in the button.",
42
+ }),
43
+ rightIcon: createIconProp({
44
+ label: "Right Icon",
45
+ description: "The right icon element to use in the button.",
46
+ }),
47
+ startIcon: createIconProp({
48
+ label: "Start Icon",
49
+ description: "The start icon element to use in the button.",
50
+ }),
51
+ endIcon: createIconProp({
52
+ label: "End Icon",
53
+ description: "The end icon element to use in the button.",
54
+ }),
55
+ },
56
+ },
57
+ {
58
+ name: "Divider",
59
+ tag: "Divider",
60
+ doc_link: "https://docs.nativebase.io/divider",
61
+ code_link:
62
+ "https://github.com/GeekyAnts/NativeBase/tree/master/src/components/composites/Divider",
63
+ description:
64
+ "Divider can visually separate content in a given list or group.",
65
+ ...SHARED_SEED_DATA,
66
+ props: {
67
+ orientation: createTextEnumProp({
68
+ label: "Orientation",
69
+ description: "The orientation of the divider",
70
+ options: ["horizontal", "vertical"],
71
+ }),
72
+ thickness: createStaticNumberProp({
73
+ label: "Thickness",
74
+ description: "The thickness of the divider",
75
+ defaultValue: 1,
76
+ }),
77
+ },
78
+ },
79
+ ];
@@ -0,0 +1,89 @@
1
+ import { COMPONENT_TYPES, StylesPanelSections, createTextEnumProp, createNumberProp, createIconProp, } from "@draftbit/types";
2
+ const SHARED_SEED_DATA = {
3
+ category: COMPONENT_TYPES.NBFeedback,
4
+ packageName: "native-base",
5
+ stylesPanelSections: [
6
+ StylesPanelSections.LayoutFlexItems,
7
+ StylesPanelSections.LayoutSelectedItem,
8
+ StylesPanelSections.LayoutContent,
9
+ StylesPanelSections.Background,
10
+ StylesPanelSections.Size,
11
+ StylesPanelSections.MarginsAndPaddings,
12
+ StylesPanelSections.Position,
13
+ StylesPanelSections.Borders,
14
+ StylesPanelSections.Effects,
15
+ ],
16
+ layout: {},
17
+ triggers: {},
18
+ };
19
+ export const SEED_DATA = [
20
+ {
21
+ name: "Alert",
22
+ tag: "Alert",
23
+ description: "Wrapper component. Alerts convey a state that can influence a system, feature, or page.",
24
+ ...SHARED_SEED_DATA,
25
+ props: {
26
+ status: createTextEnumProp({
27
+ label: "Status",
28
+ description: "The status of the alert",
29
+ options: ["success", "warning", "error", "info"],
30
+ defaultValue: "info",
31
+ }),
32
+ variant: createTextEnumProp({
33
+ label: "Variant",
34
+ description: "The variant of the alert style to use.",
35
+ options: [
36
+ "subtle",
37
+ "solid",
38
+ "outline",
39
+ "left-accent",
40
+ "top-accent",
41
+ "outline-light",
42
+ ],
43
+ defaultValue: "subtle",
44
+ }),
45
+ },
46
+ },
47
+ {
48
+ name: "Alert Icon",
49
+ tag: "Alert.Icon",
50
+ description: "The visual icon for the alert that changes based on the status prop.",
51
+ ...SHARED_SEED_DATA,
52
+ props: {
53
+ icon: createIconProp({
54
+ label: "Icon",
55
+ description: "The icon to display",
56
+ }),
57
+ },
58
+ },
59
+ {
60
+ name: "Progress",
61
+ tag: "Progress",
62
+ description: "Progress helps show the progress status for a time-consuming task that consists of several steps.",
63
+ ...SHARED_SEED_DATA,
64
+ props: {
65
+ value: createNumberProp({
66
+ label: "Value",
67
+ description: "The value of the progress bar",
68
+ defaultValue: 0,
69
+ min: 0,
70
+ max: 100,
71
+ }),
72
+ min: createNumberProp({
73
+ label: "Min",
74
+ description: "The minimum value of the progress bar",
75
+ defaultValue: 0,
76
+ min: 0,
77
+ max: 100,
78
+ }),
79
+ max: createNumberProp({
80
+ label: "Max",
81
+ description: "The maximum value of the progress bar",
82
+ defaultValue: 100,
83
+ min: 0,
84
+ max: 100,
85
+ }),
86
+ },
87
+ },
88
+ {},
89
+ ];
@@ -0,0 +1,100 @@
1
+ import {
2
+ COMPONENT_TYPES,
3
+ StylesPanelSections,
4
+ createTextEnumProp,
5
+ createNumberProp,
6
+ createIconProp,
7
+ } from "@draftbit/types";
8
+
9
+ const SHARED_SEED_DATA = {
10
+ category: COMPONENT_TYPES.NBFeedback,
11
+ packageName: "native-base",
12
+ stylesPanelSections: [
13
+ StylesPanelSections.LayoutFlexItems,
14
+ StylesPanelSections.LayoutSelectedItem,
15
+ StylesPanelSections.LayoutContent,
16
+ StylesPanelSections.Background,
17
+ StylesPanelSections.Size,
18
+ StylesPanelSections.MarginsAndPaddings,
19
+ StylesPanelSections.Position,
20
+ StylesPanelSections.Borders,
21
+ StylesPanelSections.Effects,
22
+ ],
23
+ layout: {},
24
+ triggers: {},
25
+ };
26
+
27
+ export const SEED_DATA = [
28
+ {
29
+ name: "Alert",
30
+ tag: "Alert",
31
+ description:
32
+ "Wrapper component. Alerts convey a state that can influence a system, feature, or page.",
33
+ ...SHARED_SEED_DATA,
34
+ props: {
35
+ status: createTextEnumProp({
36
+ label: "Status",
37
+ description: "The status of the alert",
38
+ options: ["success", "warning", "error", "info"],
39
+ defaultValue: "info",
40
+ }),
41
+ variant: createTextEnumProp({
42
+ label: "Variant",
43
+ description: "The variant of the alert style to use.",
44
+ options: [
45
+ "subtle",
46
+ "solid",
47
+ "outline",
48
+ "left-accent",
49
+ "top-accent",
50
+ "outline-light",
51
+ ],
52
+ defaultValue: "subtle",
53
+ }),
54
+ },
55
+ },
56
+ {
57
+ name: "Alert Icon",
58
+ tag: "Alert.Icon",
59
+ description:
60
+ "The visual icon for the alert that changes based on the status prop.",
61
+ ...SHARED_SEED_DATA,
62
+ props: {
63
+ icon: createIconProp({
64
+ label: "Icon",
65
+ description: "The icon to display",
66
+ }),
67
+ },
68
+ },
69
+ {
70
+ name: "Progress",
71
+ tag: "Progress",
72
+ description:
73
+ "Progress helps show the progress status for a time-consuming task that consists of several steps.",
74
+ ...SHARED_SEED_DATA,
75
+ props: {
76
+ value: createNumberProp({
77
+ label: "Value",
78
+ description: "The value of the progress bar",
79
+ defaultValue: 0,
80
+ min: 0,
81
+ max: 100,
82
+ }),
83
+ min: createNumberProp({
84
+ label: "Min",
85
+ description: "The minimum value of the progress bar",
86
+ defaultValue: 0,
87
+ min: 0,
88
+ max: 100,
89
+ }),
90
+ max: createNumberProp({
91
+ label: "Max",
92
+ description: "The maximum value of the progress bar",
93
+ defaultValue: 100,
94
+ min: 0,
95
+ max: 100,
96
+ }),
97
+ },
98
+ },
99
+ {},
100
+ ];
@@ -0,0 +1,140 @@
1
+ import { COMPONENT_TYPES, StylesPanelSections, createTextEnumProp, createBoolProp, } from "@draftbit/types";
2
+ const NB_LAYOUT_PROPS = {
3
+ category: COMPONENT_TYPES.NBLayout,
4
+ packageName: "native-base",
5
+ doc_link: "https://www.npmjs.com/package/@expo/html-elements",
6
+ code_link: "https://github.com/expo/expo/tree/master/packages/html-elements",
7
+ stylesPanelSections: [
8
+ StylesPanelSections.LayoutFlexItems,
9
+ StylesPanelSections.LayoutSelectedItem,
10
+ StylesPanelSections.LayoutContent,
11
+ StylesPanelSections.Background,
12
+ StylesPanelSections.Size,
13
+ StylesPanelSections.MarginsAndPaddings,
14
+ StylesPanelSections.Position,
15
+ StylesPanelSections.Borders,
16
+ StylesPanelSections.Effects,
17
+ ],
18
+ allowChildren: true,
19
+ layout: {},
20
+ triggers: {},
21
+ };
22
+ export const SEED_DATA = [
23
+ {
24
+ name: "Aspect Ratio",
25
+ tag: "AspectRatio",
26
+ description: "AspectRatio controls the size of the undefined dimension of a node or child component.",
27
+ ...NB_LAYOUT_PROPS,
28
+ props: {
29
+ ratio: createTextEnumProp({
30
+ label: "Ratio",
31
+ description: "The aspect ratio of the container",
32
+ options: [
33
+ "1 / 1",
34
+ "4 / 3",
35
+ "3 / 2",
36
+ "16 / 9",
37
+ "2 / 1",
38
+ "3 / 4",
39
+ "2 / 3",
40
+ "9 / 16",
41
+ "1 / 2",
42
+ ],
43
+ defaultValue: "4 / 3",
44
+ }),
45
+ },
46
+ },
47
+ {
48
+ name: "Box",
49
+ tag: "Box",
50
+ description: "This is a generic component for low level layout needs. It is similar to a div in HTML",
51
+ ...NB_LAYOUT_PROPS,
52
+ },
53
+ {
54
+ name: "Center",
55
+ tag: "Center",
56
+ description: "Centers its child",
57
+ ...NB_LAYOUT_PROPS,
58
+ },
59
+ {
60
+ name: "Square",
61
+ tag: "Square",
62
+ description: "Centers its child inside a square",
63
+ ...NB_LAYOUT_PROPS,
64
+ },
65
+ {
66
+ name: "Circle",
67
+ tag: "Circle",
68
+ description: "Centers its child inside a circle",
69
+ ...NB_LAYOUT_PROPS,
70
+ },
71
+ {
72
+ name: "Column",
73
+ tag: "Column",
74
+ description: "Column aligns items vertically",
75
+ ...NB_LAYOUT_PROPS,
76
+ },
77
+ {
78
+ name: "Container",
79
+ tag: "Container",
80
+ description: "The Container restricts a content's width according to current breakpoint, while keeping the size fluid.",
81
+ ...NB_LAYOUT_PROPS,
82
+ },
83
+ {
84
+ name: "Flex",
85
+ tag: "Flex",
86
+ description: "A Box with Flexbox properties. ",
87
+ ...NB_LAYOUT_PROPS,
88
+ },
89
+ {
90
+ name: "Spacer",
91
+ tag: "Spacer",
92
+ description: "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
93
+ ...NB_LAYOUT_PROPS,
94
+ },
95
+ {
96
+ name: "Row",
97
+ tag: "Row",
98
+ description: "Column aligns items horizontally",
99
+ ...NB_LAYOUT_PROPS,
100
+ props: {},
101
+ },
102
+ {
103
+ name: "Stack",
104
+ tag: "Stack",
105
+ description: "Stack aligns items vertically or horizontally based on the direction prop.",
106
+ ...NB_LAYOUT_PROPS,
107
+ props: {
108
+ direction: createTextEnumProp({
109
+ label: "Direction",
110
+ description: "The direction of the Stack",
111
+ options: ["row", "column"],
112
+ defaultValue: "column",
113
+ }),
114
+ reversed: createBoolProp({
115
+ label: "Reversed",
116
+ description: "Determines whether to reverse the direction of items.",
117
+ }),
118
+ isDisabled: createBoolProp({
119
+ label: "Disabled",
120
+ description: "If true, the Stack will be disabled.",
121
+ }),
122
+ isInvalid: createBoolProp({
123
+ label: "Invalid",
124
+ description: "If true, the Stack will be invalid.",
125
+ }),
126
+ },
127
+ },
128
+ {
129
+ name: "ZStack",
130
+ tag: "ZStack",
131
+ description: "ZStack aligns items to the z-axis.",
132
+ ...NB_LAYOUT_PROPS,
133
+ props: {
134
+ reversed: createBoolProp({
135
+ label: "Reversed",
136
+ description: "Determines whether to reverse the direction of items.",
137
+ }),
138
+ },
139
+ },
140
+ ];