@draftbit/core 43.2.3-ab8de6.0 → 43.2.3-bd5c77.0

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 (115) hide show
  1. package/lib/commonjs/components/Accordion/AccordionItem.js +5 -21
  2. package/lib/commonjs/components/Accordion/AccordionItem.js.map +1 -1
  3. package/lib/commonjs/components/ActionSheet/ActionSheet.js.map +1 -1
  4. package/lib/commonjs/components/DeprecatedButton.js +4 -19
  5. package/lib/commonjs/components/DeprecatedButton.js.map +1 -1
  6. package/lib/commonjs/components/DeprecatedCardWrapper.js +14 -2
  7. package/lib/commonjs/components/DeprecatedCardWrapper.js.map +1 -1
  8. package/lib/commonjs/components/DeprecatedFAB.js +4 -20
  9. package/lib/commonjs/components/DeprecatedFAB.js.map +1 -1
  10. package/lib/commonjs/components/Picker/PickerComponent.android.js +6 -20
  11. package/lib/commonjs/components/Picker/PickerComponent.android.js.map +1 -1
  12. package/lib/commonjs/components/ProgressCircle.js.map +1 -1
  13. package/lib/commonjs/components/TabView/TabView.js +103 -0
  14. package/lib/commonjs/components/TabView/TabView.js.map +1 -0
  15. package/lib/commonjs/components/TabView/TabViewItem.js +27 -0
  16. package/lib/commonjs/components/TabView/TabViewItem.js.map +1 -0
  17. package/lib/commonjs/components/TabView/index.js +24 -0
  18. package/lib/commonjs/components/TabView/index.js.map +1 -0
  19. package/lib/commonjs/index.js +6 -30
  20. package/lib/commonjs/index.js.map +1 -1
  21. package/lib/commonjs/mappings/Card.js +1 -3
  22. package/lib/commonjs/mappings/Card.js.map +1 -1
  23. package/lib/commonjs/mappings/ImageBackground.js.map +1 -1
  24. package/lib/commonjs/mappings/Layout.js.map +1 -1
  25. package/lib/commonjs/mappings/TabView.js +80 -0
  26. package/lib/commonjs/mappings/TabView.js.map +1 -0
  27. package/lib/commonjs/utilities.js +2 -8
  28. package/lib/commonjs/utilities.js.map +1 -1
  29. package/lib/module/components/ProgressIndicator.js.map +1 -1
  30. package/lib/module/components/TabView/TabView.js +88 -0
  31. package/lib/module/components/TabView/TabView.js.map +1 -0
  32. package/lib/module/components/TabView/TabViewItem.js +19 -0
  33. package/lib/module/components/TabView/TabViewItem.js.map +1 -0
  34. package/lib/module/components/TabView/index.js +3 -0
  35. package/lib/module/components/TabView/index.js.map +1 -0
  36. package/lib/module/index.js +1 -1
  37. package/lib/module/index.js.map +1 -1
  38. package/lib/module/mappings/ActionSheetCancel.js.map +1 -1
  39. package/lib/module/mappings/TabView.js +71 -0
  40. package/lib/module/mappings/TabView.js.map +1 -0
  41. package/lib/module/utilities.js +2 -4
  42. package/lib/module/utilities.js.map +1 -1
  43. package/lib/typescript/src/components/TabView/TabView.d.ts +19 -0
  44. package/lib/typescript/src/components/TabView/TabViewItem.d.ts +10 -0
  45. package/lib/typescript/src/components/TabView/index.d.ts +2 -0
  46. package/lib/typescript/src/index.d.ts +1 -1
  47. package/lib/typescript/src/mappings/TabView.d.ts +111 -0
  48. package/lib/typescript/src/utilities.d.ts +3 -4
  49. package/package.json +4 -2
  50. package/src/components/TabView/TabView.js +33 -0
  51. package/src/components/TabView/TabView.tsx +97 -0
  52. package/src/components/TabView/TabViewItem.js +5 -0
  53. package/src/components/TabView/TabViewItem.tsx +21 -0
  54. package/src/components/TabView/index.js +2 -0
  55. package/src/components/TabView/index.ts +2 -0
  56. package/src/index.js +1 -1
  57. package/src/index.tsx +1 -9
  58. package/src/mappings/TabView.js +73 -0
  59. package/src/mappings/TabView.ts +80 -0
  60. package/src/utilities.js +1 -6
  61. package/src/utilities.ts +1 -6
  62. package/lib/commonjs/components/Table/index.js +0 -56
  63. package/lib/commonjs/components/Table/index.js.map +0 -1
  64. package/lib/commonjs/components/Table/table.js +0 -36
  65. package/lib/commonjs/components/Table/table.js.map +0 -1
  66. package/lib/commonjs/components/Table/tableCell.js +0 -44
  67. package/lib/commonjs/components/Table/tableCell.js.map +0 -1
  68. package/lib/commonjs/components/Table/tableHeader.js +0 -56
  69. package/lib/commonjs/components/Table/tableHeader.js.map +0 -1
  70. package/lib/commonjs/components/Table/tablePaginator.js +0 -18
  71. package/lib/commonjs/components/Table/tablePaginator.js.map +0 -1
  72. package/lib/commonjs/components/Table/tableRow.js +0 -48
  73. package/lib/commonjs/components/Table/tableRow.js.map +0 -1
  74. package/lib/commonjs/components/Table/tableTitle.js +0 -61
  75. package/lib/commonjs/components/Table/tableTitle.js.map +0 -1
  76. package/lib/commonjs/mappings/Table.js +0 -99
  77. package/lib/commonjs/mappings/Table.js.map +0 -1
  78. package/lib/module/components/Table/index.js +0 -7
  79. package/lib/module/components/Table/index.js.map +0 -1
  80. package/lib/module/components/Table/table.js +0 -24
  81. package/lib/module/components/Table/table.js.map +0 -1
  82. package/lib/module/components/Table/tableCell.js +0 -32
  83. package/lib/module/components/Table/tableCell.js.map +0 -1
  84. package/lib/module/components/Table/tableHeader.js +0 -28
  85. package/lib/module/components/Table/tableHeader.js.map +0 -1
  86. package/lib/module/components/Table/tablePaginator.js +0 -7
  87. package/lib/module/components/Table/tablePaginator.js.map +0 -1
  88. package/lib/module/components/Table/tableRow.js +0 -34
  89. package/lib/module/components/Table/tableRow.js.map +0 -1
  90. package/lib/module/components/Table/tableTitle.js +0 -48
  91. package/lib/module/components/Table/tableTitle.js.map +0 -1
  92. package/lib/module/mappings/Table.js +0 -90
  93. package/lib/module/mappings/Table.js.map +0 -1
  94. package/lib/typescript/src/components/Table/index.d.ts +0 -6
  95. package/lib/typescript/src/components/Table/table.d.ts +0 -8
  96. package/lib/typescript/src/components/Table/tableCell.d.ts +0 -10
  97. package/lib/typescript/src/components/Table/tableHeader.d.ts +0 -12
  98. package/lib/typescript/src/components/Table/tablePaginator.d.ts +0 -3
  99. package/lib/typescript/src/components/Table/tableRow.d.ts +0 -12
  100. package/lib/typescript/src/components/Table/tableTitle.d.ts +0 -12
  101. package/src/components/Table/index.js +0 -6
  102. package/src/components/Table/index.tsx +0 -6
  103. package/src/components/Table/table.js +0 -10
  104. package/src/components/Table/table.tsx +0 -22
  105. package/src/components/Table/tableCell.js +0 -17
  106. package/src/components/Table/tableCell.tsx +0 -37
  107. package/src/components/Table/tableHeader.js +0 -11
  108. package/src/components/Table/tableHeader.tsx +0 -28
  109. package/src/components/Table/tablePaginator.js +0 -5
  110. package/src/components/Table/tablePaginator.tsx +0 -10
  111. package/src/components/Table/tableRow.js +0 -16
  112. package/src/components/Table/tableRow.tsx +0 -31
  113. package/src/components/Table/tableTitle.js +0 -28
  114. package/src/components/Table/tableTitle.tsx +0 -59
  115. package/src/mappings/Table.js +0 -102
@@ -1,59 +0,0 @@
1
- import React from "react";
2
- import { View, Text, StyleProp, ViewStyle, StyleSheet } from "react-native";
3
- import { extractStyles } from "../../utilities";
4
-
5
- export interface TableCellProps {
6
- children: React.ReactNode;
7
- numeric?: boolean;
8
- isAscending: boolean;
9
- numberOfLines?: number;
10
- title?: string;
11
- style?: StyleProp<ViewStyle>;
12
- }
13
-
14
- const TableTitle = ({
15
- children,
16
- style,
17
- numeric = false,
18
- isAscending = false,
19
- numberOfLines = 1,
20
- title,
21
- ...rest
22
- }: TableCellProps) => {
23
- const { textStyles, viewStyles } = extractStyles(style);
24
-
25
- return (
26
- <View
27
- {...rest}
28
- style={[styles.wrapper, numeric && styles.right, viewStyles]}
29
- >
30
- <Text
31
- style={[isAscending ? styles.sorted : { color: "gray" }, textStyles]}
32
- numberOfLines={numberOfLines}
33
- >
34
- {children}
35
- {title}
36
- </Text>
37
- </View>
38
- );
39
- };
40
-
41
- const styles = StyleSheet.create({
42
- wrapper: {
43
- flex: 1,
44
- display: "flex",
45
- flexDirection: "row",
46
- },
47
- right: {
48
- justifyContent: "flex-end",
49
- },
50
- sorted: {
51
- // marginLeft: 8,
52
- },
53
- icon: {
54
- height: 24,
55
- justifyContent: "center",
56
- },
57
- });
58
-
59
- export default TableTitle;
@@ -1,102 +0,0 @@
1
- import {
2
- COMPONENT_TYPES,
3
- GROUPS,
4
- createBoolProp,
5
- createTextProp,
6
- createNumberProp,
7
- } from "@draftbit/types";
8
-
9
- export const SEED_DATA = [
10
- {
11
- name: "Table",
12
- tag: "Table",
13
- category: COMPONENT_TYPES.container,
14
- layout: {
15
- width: "100%",
16
- },
17
- props: {},
18
- },
19
- {
20
- name: "Table Row",
21
- tag: "TableRow",
22
- category: COMPONENT_TYPES.container,
23
- layout: {
24
- paddingLeft: 16,
25
- paddingRight: 16,
26
- borderBottomWidth: 1,
27
- borderStyle: "solid",
28
- },
29
- props: {},
30
- },
31
- {
32
- name: "Table Cell",
33
- tag: "TableCell",
34
- category: COMPONENT_TYPES.container,
35
- layout: {
36
- paddingTop: 16,
37
- paddingBottom: 16,
38
- paddingLeft: 8,
39
- paddingRight: 8,
40
- },
41
- props: {
42
- numeric: createBoolProp({
43
- label: "Is Numeric Cell?",
44
- description: "Does the cell contain a numeric value?",
45
- group: GROUPS.data,
46
- }),
47
- value: createTextProp({
48
- label: "Cell Value",
49
- description: "Table Cell Value",
50
- group: GROUPS.data,
51
- }),
52
- },
53
- },
54
- {
55
- name: "Table Header",
56
- tag: "TableHeader",
57
- category: COMPONENT_TYPES.container,
58
- layout: {
59
- paddingLeft: 16,
60
- paddingRight: 16,
61
- borderBottomWidth: 1,
62
- borderStyle: "solid",
63
- backgroundColor: "#EFEFEF",
64
- },
65
- props: {},
66
- },
67
- {
68
- name: "Table Title",
69
- tag: "TableTitle",
70
- category: COMPONENT_TYPES.container,
71
- layout: {
72
- fontSize: 14,
73
- fontWeight: "500",
74
- paddingTop: 16,
75
- paddingBottom: 16,
76
- paddingLeft: 8,
77
- paddingRight: 8,
78
- },
79
- props: {
80
- numeric: createBoolProp({
81
- label: "Is Numeric Cell?",
82
- description: "Does the cell contain a numeric value?",
83
- group: GROUPS.data,
84
- }),
85
- value: createTextProp({
86
- label: "Cell Value",
87
- description: "Table Cell Value",
88
- group: GROUPS.data,
89
- }),
90
- isAscending: createBoolProp({
91
- label: "Is Ascending?",
92
- description: "Does the cell contain a numeric value?",
93
- group: GROUPS.data,
94
- }),
95
- numberOfLines: createNumberProp({
96
- label: "Number of Lines",
97
- description: "Number of Lines",
98
- group: GROUPS.basic,
99
- }),
100
- },
101
- },
102
- ];