@draftbit/core 46.10.3-0bad1e.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 (75) hide show
  1. package/lib/commonjs/components/FAB.js +4 -18
  2. package/lib/commonjs/components/Row.js +73 -0
  3. package/lib/commonjs/components/RowBodyIcon.js +45 -0
  4. package/lib/commonjs/components/RowHeadlineImageCaption.js +45 -0
  5. package/lib/commonjs/components/RowHeadlineImageIcon.js +51 -0
  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/constants.js +1 -1
  12. package/lib/commonjs/index.js +40 -0
  13. package/lib/commonjs/mappings/Table.js +140 -0
  14. package/lib/module/components/Row.js +63 -0
  15. package/lib/module/components/RowBodyIcon.js +35 -0
  16. package/lib/module/components/RowHeadlineImageCaption.js +35 -0
  17. package/lib/module/components/RowHeadlineImageIcon.js +41 -0
  18. package/lib/module/components/Table/Table.js +114 -0
  19. package/lib/module/components/Table/TableCell.js +41 -0
  20. package/lib/module/components/Table/TableCommon.js +21 -0
  21. package/lib/module/components/Table/TableRow.js +53 -0
  22. package/lib/module/components/Table/index.js +3 -0
  23. package/lib/module/index.js +4 -0
  24. package/lib/module/mappings/Table.js +133 -0
  25. package/lib/typescript/src/components/Row.d.ts +21 -0
  26. package/lib/typescript/src/components/Row.d.ts.map +1 -0
  27. package/lib/typescript/src/components/RowBodyIcon.d.ts +16 -0
  28. package/lib/typescript/src/components/RowBodyIcon.d.ts.map +1 -0
  29. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +16 -0
  30. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +1 -0
  31. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +18 -0
  32. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +1 -0
  33. package/lib/typescript/src/components/Table/Table.d.ts +19 -0
  34. package/lib/typescript/src/components/Table/Table.d.ts.map +1 -0
  35. package/lib/typescript/src/components/Table/TableCell.d.ts +9 -0
  36. package/lib/typescript/src/components/Table/TableCell.d.ts.map +1 -0
  37. package/lib/typescript/src/components/Table/TableCommon.d.ts +20 -0
  38. package/lib/typescript/src/components/Table/TableCommon.d.ts.map +1 -0
  39. package/lib/typescript/src/components/Table/TableRow.d.ts +14 -0
  40. package/lib/typescript/src/components/Table/TableRow.d.ts.map +1 -0
  41. package/lib/typescript/src/components/Table/index.d.ts +4 -0
  42. package/lib/typescript/src/components/Table/index.d.ts.map +1 -0
  43. package/lib/typescript/src/index.d.ts +4 -0
  44. package/lib/typescript/src/index.d.ts.map +1 -1
  45. package/lib/typescript/src/mappings/Table.d.ts +337 -0
  46. package/lib/typescript/src/mappings/Table.d.ts.map +1 -0
  47. package/package.json +3 -3
  48. package/src/components/Row.js +48 -0
  49. package/src/components/Row.tsx +108 -0
  50. package/src/components/RowBodyIcon.js +8 -0
  51. package/src/components/RowBodyIcon.tsx +47 -0
  52. package/src/components/RowHeadlineImageCaption.js +12 -0
  53. package/src/components/RowHeadlineImageCaption.tsx +49 -0
  54. package/src/components/RowHeadlineImageIcon.js +14 -0
  55. package/src/components/RowHeadlineImageIcon.tsx +61 -0
  56. package/src/components/Table/Table.js +93 -0
  57. package/src/components/Table/Table.tsx +176 -0
  58. package/src/components/Table/TableCell.js +31 -0
  59. package/src/components/Table/TableCell.tsx +63 -0
  60. package/src/components/Table/TableCommon.js +12 -0
  61. package/src/components/Table/TableCommon.ts +40 -0
  62. package/src/components/Table/TableRow.js +37 -0
  63. package/src/components/Table/TableRow.tsx +77 -0
  64. package/src/components/Table/index.js +3 -0
  65. package/src/components/Table/index.tsx +3 -0
  66. package/src/index.js +4 -0
  67. package/src/index.tsx +5 -0
  68. package/src/mappings/Table.js +150 -0
  69. package/src/mappings/Table.ts +170 -0
  70. package/lib/commonjs/mappings/NativeBase/Layout.js +0 -97
  71. package/lib/module/mappings/NativeBase/Layout.js +0 -90
  72. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +0 -107
  73. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +0 -1
  74. package/src/mappings/NativeBase/Layout.js +0 -101
  75. package/src/mappings/NativeBase/Layout.ts +0 -116
@@ -1,101 +0,0 @@
1
- import { COMPONENT_TYPES, createTextEnumProp, createBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, createStaticNumberProp, } 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
- export const SEED_DATA = [
8
- {
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
- {
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
- {
28
- name: "Center",
29
- tag: "Center",
30
- description: "Center aligns its contents to the center within itself",
31
- ...SHARED_SEED_DATA,
32
- },
33
- {
34
- name: "Circle",
35
- tag: "Circle",
36
- description: "Center aligns its contents to the center within itself with a round border radius",
37
- ...SHARED_SEED_DATA,
38
- },
39
- {
40
- name: "Container",
41
- tag: "Container",
42
- description: "The Container restricts a content's width according to current breakpoint, while keeping the size fluid",
43
- ...SHARED_SEED_DATA,
44
- },
45
- {
46
- name: "Column",
47
- tag: "Column",
48
- description: "Column aligns items vertically",
49
- ...SHARED_SEED_DATA,
50
- },
51
- {
52
- name: "Row",
53
- tag: "Row",
54
- description: "Column aligns items horizontally",
55
- ...SHARED_SEED_DATA,
56
- },
57
- {
58
- name: "Spacer",
59
- tag: "Spacer",
60
- description: "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
61
- ...SHARED_SEED_DATA,
62
- },
63
- {
64
- name: "Stack",
65
- tag: "Stack",
66
- description: "Stack aligns items vertically or horizontally based on the direction prop",
67
- ...SHARED_SEED_DATA,
68
- props: {
69
- direction: createTextEnumProp({
70
- label: "Direction",
71
- description: "The direction of the Stack",
72
- options: ["row", "column"],
73
- defaultValue: "column",
74
- }),
75
- reversed: createBoolProp({
76
- label: "Reversed",
77
- description: "Determines whether to reverse the direction of items",
78
- }),
79
- isDisabled: createBoolProp({
80
- label: "Disabled",
81
- description: "If true, the Stack will be disabled",
82
- }),
83
- isInvalid: createBoolProp({
84
- label: "Invalid",
85
- description: "If true, the Stack will be invalid",
86
- }),
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
- },
101
- ];
@@ -1,116 +0,0 @@
1
- import {
2
- COMPONENT_TYPES,
3
- createTextEnumProp,
4
- createBoolProp,
5
- CONTAINER_COMPONENT_STYLES_SECTIONS,
6
- createStaticNumberProp,
7
- } from "@draftbit/types";
8
-
9
- const SHARED_SEED_DATA = {
10
- category: COMPONENT_TYPES.layout,
11
- packageName: "native-base",
12
- stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
13
- };
14
-
15
- export const SEED_DATA = [
16
- {
17
- name: "Aspect Ratio",
18
- tag: "AspectRatio",
19
- description:
20
- "Controls the size of the undefined dimension of a node or child component using an aspect ratio",
21
- ...SHARED_SEED_DATA,
22
- props: {
23
- ratio: createStaticNumberProp({
24
- label: "Ratio",
25
- description:
26
- "The aspect ratio of the container in decimal format (ex: 3/4 -> 1.33)",
27
- defaultValue: 1.33,
28
- }),
29
- },
30
- },
31
- {
32
- name: "Box",
33
- tag: "Box",
34
- description:
35
- "This is a generic component for low level layout needs. It is similar to a div in HTML",
36
- ...SHARED_SEED_DATA,
37
- },
38
- {
39
- name: "Center",
40
- tag: "Center",
41
- description: "Center aligns its contents to the center within itself",
42
- ...SHARED_SEED_DATA,
43
- },
44
- {
45
- name: "Circle",
46
- tag: "Circle",
47
- description:
48
- "Center aligns its contents to the center within itself with a round border radius",
49
- ...SHARED_SEED_DATA,
50
- },
51
- {
52
- name: "Container",
53
- tag: "Container",
54
- description:
55
- "The Container restricts a content's width according to current breakpoint, while keeping the size fluid",
56
- ...SHARED_SEED_DATA,
57
- },
58
- {
59
- name: "Column",
60
- tag: "Column",
61
- description: "Column aligns items vertically",
62
- ...SHARED_SEED_DATA,
63
- },
64
- {
65
- name: "Row",
66
- tag: "Row",
67
- description: "Column aligns items horizontally",
68
- ...SHARED_SEED_DATA,
69
- },
70
- {
71
- name: "Spacer",
72
- tag: "Spacer",
73
- description:
74
- "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
75
- ...SHARED_SEED_DATA,
76
- },
77
- {
78
- name: "Stack",
79
- tag: "Stack",
80
- description:
81
- "Stack aligns items vertically or horizontally based on the direction prop",
82
- ...SHARED_SEED_DATA,
83
- props: {
84
- direction: createTextEnumProp({
85
- label: "Direction",
86
- description: "The direction of the Stack",
87
- options: ["row", "column"],
88
- defaultValue: "column",
89
- }),
90
- reversed: createBoolProp({
91
- label: "Reversed",
92
- description: "Determines whether to reverse the direction of items",
93
- }),
94
- isDisabled: createBoolProp({
95
- label: "Disabled",
96
- description: "If true, the Stack will be disabled",
97
- }),
98
- isInvalid: createBoolProp({
99
- label: "Invalid",
100
- description: "If true, the Stack will be invalid",
101
- }),
102
- },
103
- },
104
- {
105
- name: "ZStack",
106
- tag: "ZStack",
107
- description: "ZStack aligns items to the z-axis",
108
- ...SHARED_SEED_DATA,
109
- props: {
110
- reversed: createBoolProp({
111
- label: "Reversed",
112
- description: "Determines whether to reverse the direction of items",
113
- }),
114
- },
115
- },
116
- ];