@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
@@ -1,112 +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 &&
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
- },
23
- {
24
- name: "Box",
25
- tag: "Box",
26
- description: "This is a generic component for low level layout needs. It is similar to a div in HTML",
27
- ...SHARED_SEED_DATA,
28
- },
29
- {
30
- name: "Center",
31
- tag: "Center",
32
- description: "Center aligns its contents to the center within itself",
33
- ...SHARED_SEED_DATA,
34
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX,
35
- },
36
- {
37
- name: "Circle",
38
- tag: "Circle",
39
- description: "Center aligns its contents to the center within itself with a round border radius",
40
- ...SHARED_SEED_DATA,
41
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX,
42
- },
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
- {
50
- name: "Column",
51
- tag: "Column",
52
- description: "Column aligns items vertically",
53
- layout: {
54
- flexDirection: "column",
55
- },
56
- ...SHARED_SEED_DATA,
57
- },
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
- {
68
- name: "Spacer",
69
- tag: "Spacer",
70
- description: "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
71
- ...SHARED_SEED_DATA,
72
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX,
73
- },
74
- {
75
- name: "Stack",
76
- tag: "Stack",
77
- description: "Stack aligns items vertically or horizontally based on the direction prop",
78
- ...SHARED_SEED_DATA,
79
- props: {
80
- direction: createTextEnumProp({
81
- label: "Direction",
82
- description: "The direction of the Stack",
83
- options: ["row", "column"],
84
- defaultValue: "column",
85
- }),
86
- reversed: createBoolProp({
87
- label: "Reversed",
88
- description: "Determines whether to reverse the direction of items",
89
- }),
90
- isDisabled: createBoolProp({
91
- label: "Disabled",
92
- description: "If true, the Stack will be disabled",
93
- }),
94
- isInvalid: createBoolProp({
95
- label: "Invalid",
96
- description: "If true, the Stack will be invalid",
97
- }),
98
- },
99
- },
100
- {
101
- name: "ZStack",
102
- tag: "ZStack",
103
- description: "ZStack aligns items to the z-axis",
104
- ...SHARED_SEED_DATA,
105
- props: {
106
- reversed: createBoolProp({
107
- label: "Reversed",
108
- description: "Determines whether to reverse the direction of items",
109
- }),
110
- },
111
- },
112
- ];
@@ -1,133 +0,0 @@
1
- import {
2
- COMPONENT_TYPES,
3
- createTextEnumProp,
4
- createBoolProp,
5
- CONTAINER_COMPONENT_STYLES_SECTIONS,
6
- createStaticNumberProp,
7
- StylesPanelSections,
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
- },
39
- {
40
- name: "Box",
41
- tag: "Box",
42
- description:
43
- "This is a generic component for low level layout needs. It is similar to a div in HTML",
44
- ...SHARED_SEED_DATA,
45
- },
46
- {
47
- name: "Center",
48
- tag: "Center",
49
- description: "Center aligns its contents to the center within itself",
50
- ...SHARED_SEED_DATA,
51
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX,
52
- },
53
- {
54
- name: "Circle",
55
- tag: "Circle",
56
- description:
57
- "Center aligns its contents to the center within itself with a round border radius",
58
- ...SHARED_SEED_DATA,
59
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX,
60
- },
61
- {
62
- name: "Container",
63
- tag: "Container",
64
- description:
65
- "The Container restricts a content's width according to current breakpoint, while keeping the size fluid",
66
- ...SHARED_SEED_DATA,
67
- },
68
- {
69
- name: "Column",
70
- tag: "Column",
71
- description: "Column aligns items vertically",
72
- layout: {
73
- flexDirection: "column",
74
- },
75
- ...SHARED_SEED_DATA,
76
- },
77
- {
78
- name: "Row",
79
- tag: "Row",
80
- description: "Column aligns items horizontally",
81
- layout: {
82
- flexDirection: "row",
83
- },
84
- ...SHARED_SEED_DATA,
85
- },
86
- {
87
- name: "Spacer",
88
- tag: "Spacer",
89
- description:
90
- "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
91
- ...SHARED_SEED_DATA,
92
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX,
93
- },
94
- {
95
- name: "Stack",
96
- tag: "Stack",
97
- description:
98
- "Stack aligns items vertically or horizontally based on the direction prop",
99
- ...SHARED_SEED_DATA,
100
- props: {
101
- direction: createTextEnumProp({
102
- label: "Direction",
103
- description: "The direction of the Stack",
104
- options: ["row", "column"],
105
- defaultValue: "column",
106
- }),
107
- reversed: createBoolProp({
108
- label: "Reversed",
109
- description: "Determines whether to reverse the direction of items",
110
- }),
111
- isDisabled: createBoolProp({
112
- label: "Disabled",
113
- description: "If true, the Stack will be disabled",
114
- }),
115
- isInvalid: createBoolProp({
116
- label: "Invalid",
117
- description: "If true, the Stack will be invalid",
118
- }),
119
- },
120
- },
121
- {
122
- name: "ZStack",
123
- tag: "ZStack",
124
- description: "ZStack aligns items to the z-axis",
125
- ...SHARED_SEED_DATA,
126
- props: {
127
- reversed: createBoolProp({
128
- label: "Reversed",
129
- description: "Determines whether to reverse the direction of items",
130
- }),
131
- },
132
- },
133
- ];