@draftbit/core 46.4.4-11985a.2 → 46.4.4-1a94b9.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 (100) hide show
  1. package/lib/commonjs/components/Container.js +5 -17
  2. package/lib/commonjs/components/DatePicker/DatePicker.js +18 -8
  3. package/lib/commonjs/components/Picker/Picker.js +5 -5
  4. package/lib/commonjs/components/Stepper.js +8 -3
  5. package/lib/commonjs/components/Text.js +6 -2
  6. package/lib/commonjs/components/TextField.js +5 -1
  7. package/lib/commonjs/index.js +0 -38
  8. package/lib/commonjs/mappings/DatePicker.js +13 -0
  9. package/lib/commonjs/mappings/Stepper.js +1 -1
  10. package/lib/commonjs/mappings/TextField.js +1 -1
  11. package/lib/commonjs/mappings/TextInput.js +1 -1
  12. package/lib/commonjs/utilities.js +2 -2
  13. package/lib/module/components/Accordion/AccordionItem.js +5 -26
  14. package/lib/module/components/DatePicker/DatePicker.js +25 -15
  15. package/lib/module/components/Image.js +3 -18
  16. package/lib/module/components/Picker/Picker.js +2 -2
  17. package/lib/module/components/Picker/PickerComponent.web.js +5 -23
  18. package/lib/module/components/ScreenContainer.js +5 -22
  19. package/lib/module/components/Stepper.js +7 -3
  20. package/lib/module/components/Text.js +6 -2
  21. package/lib/module/components/TextField.js +5 -1
  22. package/lib/module/constants.js +0 -1
  23. package/lib/module/index.js +0 -1
  24. package/lib/module/mappings/DatePicker.js +14 -1
  25. package/lib/module/mappings/Stepper.js +2 -2
  26. package/lib/module/mappings/TextField.js +1 -1
  27. package/lib/module/mappings/TextInput.js +1 -1
  28. package/lib/module/utilities.js +3 -3
  29. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +4 -0
  30. package/lib/typescript/src/components/Stepper.d.ts +1 -2
  31. package/lib/typescript/src/components/Text.d.ts +2 -1
  32. package/lib/typescript/src/components/TextField.d.ts +2 -1
  33. package/lib/typescript/src/index.d.ts +0 -1
  34. package/lib/typescript/src/mappings/DatePicker.d.ts +42 -0
  35. package/lib/typescript/src/mappings/TextField.d.ts +2 -2
  36. package/lib/typescript/src/mappings/TextInput.d.ts +1 -1
  37. package/lib/typescript/src/utilities.d.ts +3 -3
  38. package/package.json +3 -3
  39. package/src/components/DatePicker/DatePicker.js +14 -8
  40. package/src/components/DatePicker/DatePicker.tsx +23 -7
  41. package/src/components/Picker/Picker.js +1 -1
  42. package/src/components/Picker/Picker.tsx +2 -2
  43. package/src/components/Stepper.js +5 -3
  44. package/src/components/Stepper.tsx +5 -5
  45. package/src/components/Text.js +8 -2
  46. package/src/components/Text.tsx +6 -1
  47. package/src/components/TextField.js +6 -1
  48. package/src/components/TextField.tsx +7 -1
  49. package/src/index.js +0 -1
  50. package/src/index.tsx +0 -9
  51. package/src/mappings/DatePicker.js +21 -1
  52. package/src/mappings/DatePicker.ts +23 -0
  53. package/src/mappings/Stepper.js +5 -2
  54. package/src/mappings/Stepper.ts +5 -1
  55. package/src/mappings/TextField.js +1 -1
  56. package/src/mappings/TextField.ts +1 -1
  57. package/src/mappings/TextInput.js +1 -1
  58. package/src/mappings/TextInput.ts +1 -1
  59. package/src/utilities.js +2 -5
  60. package/src/utilities.ts +2 -13
  61. package/lib/commonjs/components/Table/Table.js +0 -35
  62. package/lib/commonjs/components/Table/TableCell.js +0 -50
  63. package/lib/commonjs/components/Table/TableHeader.js +0 -41
  64. package/lib/commonjs/components/Table/TablePaginator.js +0 -17
  65. package/lib/commonjs/components/Table/TableRow.js +0 -47
  66. package/lib/commonjs/components/Table/TableTitle.js +0 -60
  67. package/lib/commonjs/components/Table/index.js +0 -55
  68. package/lib/commonjs/mappings/Table.js +0 -102
  69. package/lib/module/components/Table/Table.js +0 -23
  70. package/lib/module/components/Table/TableCell.js +0 -37
  71. package/lib/module/components/Table/TableHeader.js +0 -27
  72. package/lib/module/components/Table/TablePaginator.js +0 -6
  73. package/lib/module/components/Table/TableRow.js +0 -33
  74. package/lib/module/components/Table/TableTitle.js +0 -47
  75. package/lib/module/components/Table/index.js +0 -6
  76. package/lib/module/mappings/Table.js +0 -93
  77. package/lib/typescript/src/components/Table/Table.d.ts +0 -8
  78. package/lib/typescript/src/components/Table/TableCell.d.ts +0 -10
  79. package/lib/typescript/src/components/Table/TableHeader.d.ts +0 -12
  80. package/lib/typescript/src/components/Table/TablePaginator.d.ts +0 -3
  81. package/lib/typescript/src/components/Table/TableRow.d.ts +0 -12
  82. package/lib/typescript/src/components/Table/TableTitle.d.ts +0 -12
  83. package/lib/typescript/src/components/Table/index.d.ts +0 -6
  84. package/lib/typescript/src/mappings/Table.d.ts +0 -148
  85. package/src/components/Table/Table.js +0 -10
  86. package/src/components/Table/Table.tsx +0 -22
  87. package/src/components/Table/TableCell.js +0 -21
  88. package/src/components/Table/TableCell.tsx +0 -44
  89. package/src/components/Table/TableHeader.js +0 -11
  90. package/src/components/Table/TableHeader.tsx +0 -28
  91. package/src/components/Table/TablePaginator.js +0 -5
  92. package/src/components/Table/TablePaginator.tsx +0 -10
  93. package/src/components/Table/TableRow.js +0 -16
  94. package/src/components/Table/TableRow.tsx +0 -31
  95. package/src/components/Table/TableTitle.js +0 -28
  96. package/src/components/Table/TableTitle.tsx +0 -58
  97. package/src/components/Table/index.js +0 -6
  98. package/src/components/Table/index.tsx +0 -6
  99. package/src/mappings/Table.js +0 -136
  100. package/src/mappings/Table.ts +0 -144
@@ -1,144 +0,0 @@
1
- import {
2
- COMPONENT_TYPES,
3
- GROUPS,
4
- createBoolProp,
5
- createTextProp,
6
- createNumberProp,
7
- StylesPanelSections,
8
- } from "@draftbit/types";
9
-
10
- export const SEED_DATA = [
11
- {
12
- name: "Table",
13
- tag: "Table",
14
- category: COMPONENT_TYPES.container,
15
- stylesPanelSections: [
16
- StylesPanelSections.Background,
17
- StylesPanelSections.Borders,
18
- StylesPanelSections.Size,
19
- StylesPanelSections.MarginsAndPaddings,
20
- StylesPanelSections.Position,
21
- StylesPanelSections.Effects,
22
- ],
23
- layout: {
24
- width: "100%",
25
- },
26
- props: {},
27
- },
28
- {
29
- name: "Table Row",
30
- tag: "TableRow",
31
- category: COMPONENT_TYPES.container,
32
- stylesPanelSections: [
33
- StylesPanelSections.Background,
34
- StylesPanelSections.Borders,
35
- StylesPanelSections.Size,
36
- StylesPanelSections.MarginsAndPaddings,
37
- StylesPanelSections.Position,
38
- StylesPanelSections.Effects,
39
- ],
40
- layout: {
41
- paddingLeft: 16,
42
- paddingRight: 16,
43
- borderBottomWidth: 1,
44
- borderStyle: "solid",
45
- },
46
- props: {},
47
- },
48
- {
49
- name: "Table Cell",
50
- tag: "TableCell",
51
- category: COMPONENT_TYPES.container,
52
- layout: {
53
- paddingTop: 16,
54
- paddingBottom: 16,
55
- paddingLeft: 8,
56
- paddingRight: 8,
57
- },
58
- stylesPanelSections: [
59
- StylesPanelSections.Typography,
60
- StylesPanelSections.Background,
61
- StylesPanelSections.Borders,
62
- StylesPanelSections.Size,
63
- StylesPanelSections.MarginsAndPaddings,
64
- StylesPanelSections.Position,
65
- StylesPanelSections.Effects,
66
- ],
67
- props: {
68
- numeric: createBoolProp({
69
- label: "Is Numeric Cell?",
70
- description: "Does the cell contain a numeric value?",
71
- group: GROUPS.data,
72
- }),
73
- value: createTextProp({
74
- label: "Cell Value",
75
- description: "Table Cell Value",
76
- group: GROUPS.data,
77
- }),
78
- },
79
- },
80
- {
81
- name: "Table Header",
82
- tag: "TableHeader",
83
- category: COMPONENT_TYPES.container,
84
- stylesPanelSections: [
85
- StylesPanelSections.Background,
86
- StylesPanelSections.Borders,
87
- StylesPanelSections.Size,
88
- StylesPanelSections.MarginsAndPaddings,
89
- StylesPanelSections.Position,
90
- StylesPanelSections.Effects,
91
- ],
92
- layout: {
93
- paddingLeft: 16,
94
- paddingRight: 16,
95
- borderBottomWidth: 1,
96
- borderStyle: "solid",
97
- backgroundColor: "#EFEFEF",
98
- },
99
- props: {},
100
- },
101
- {
102
- name: "Table Title",
103
- tag: "TableTitle",
104
- category: COMPONENT_TYPES.container,
105
- stylesPanelSections: [
106
- StylesPanelSections.Typography,
107
- StylesPanelSections.Background,
108
- StylesPanelSections.Borders,
109
- StylesPanelSections.Size,
110
- StylesPanelSections.MarginsAndPaddings,
111
- StylesPanelSections.Position,
112
- StylesPanelSections.Effects,
113
- ],
114
- layout: {
115
- fontSize: 14,
116
- paddingTop: 16,
117
- paddingBottom: 16,
118
- paddingLeft: 8,
119
- paddingRight: 8,
120
- },
121
- props: {
122
- numeric: createBoolProp({
123
- label: "Is Numeric Cell?",
124
- description: "Does the cell contain a numeric value?",
125
- group: GROUPS.data,
126
- }),
127
- value: createTextProp({
128
- label: "Cell Value",
129
- description: "Table Cell Value",
130
- group: GROUPS.data,
131
- }),
132
- isAscending: createBoolProp({
133
- label: "Is Ascending?",
134
- description: "Does the cell contain a numeric value?",
135
- group: GROUPS.data,
136
- }),
137
- numberOfLines: createNumberProp({
138
- label: "Number of Lines",
139
- description: "Number of Lines",
140
- group: GROUPS.basic,
141
- }),
142
- },
143
- },
144
- ];