@draftbit/core 46.4.4-3bb5e5.2 → 46.4.4-7f27fb.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 (72) hide show
  1. package/lib/commonjs/components/TabView/TabView.js +102 -0
  2. package/lib/commonjs/components/TabView/TabViewItem.js +26 -0
  3. package/lib/commonjs/components/TabView/index.js +23 -0
  4. package/lib/commonjs/index.js +6 -30
  5. package/lib/commonjs/mappings/TabView.js +79 -0
  6. package/lib/commonjs/utilities.js +2 -2
  7. package/lib/module/components/TabView/TabView.js +87 -0
  8. package/lib/module/components/TabView/TabViewItem.js +18 -0
  9. package/lib/module/components/TabView/index.js +2 -0
  10. package/lib/module/components/ToggleButton.js +17 -3
  11. package/lib/module/index.js +1 -1
  12. package/lib/module/mappings/TabView.js +70 -0
  13. package/lib/module/utilities.js +3 -3
  14. package/lib/typescript/src/components/TabView/TabView.d.ts +19 -0
  15. package/lib/typescript/src/components/TabView/TabViewItem.d.ts +10 -0
  16. package/lib/typescript/src/components/TabView/index.d.ts +2 -0
  17. package/lib/typescript/src/index.d.ts +1 -1
  18. package/lib/typescript/src/mappings/TabView.d.ts +111 -0
  19. package/lib/typescript/src/utilities.d.ts +3 -3
  20. package/package.json +6 -4
  21. package/src/components/TabView/TabView.js +34 -0
  22. package/src/components/TabView/TabView.tsx +97 -0
  23. package/src/components/TabView/TabViewItem.js +5 -0
  24. package/src/components/TabView/TabViewItem.tsx +21 -0
  25. package/src/components/TabView/index.js +2 -0
  26. package/src/components/TabView/index.tsx +2 -0
  27. package/src/index.js +1 -1
  28. package/src/index.tsx +1 -9
  29. package/src/mappings/TabView.js +73 -0
  30. package/src/mappings/TabView.ts +80 -0
  31. package/src/utilities.js +2 -5
  32. package/src/utilities.ts +2 -13
  33. package/lib/commonjs/components/Table/Table.js +0 -50
  34. package/lib/commonjs/components/Table/TableCell.js +0 -50
  35. package/lib/commonjs/components/Table/TableHeader.js +0 -41
  36. package/lib/commonjs/components/Table/TablePaginator.js +0 -17
  37. package/lib/commonjs/components/Table/TableRow.js +0 -47
  38. package/lib/commonjs/components/Table/TableTitle.js +0 -60
  39. package/lib/commonjs/components/Table/index.js +0 -55
  40. package/lib/commonjs/mappings/Table.js +0 -103
  41. package/lib/module/components/Table/Table.js +0 -23
  42. package/lib/module/components/Table/TableCell.js +0 -37
  43. package/lib/module/components/Table/TableHeader.js +0 -27
  44. package/lib/module/components/Table/TablePaginator.js +0 -6
  45. package/lib/module/components/Table/TableRow.js +0 -33
  46. package/lib/module/components/Table/TableTitle.js +0 -47
  47. package/lib/module/components/Table/index.js +0 -6
  48. package/lib/module/mappings/Table.js +0 -94
  49. package/lib/typescript/src/components/Table/Table.d.ts +0 -8
  50. package/lib/typescript/src/components/Table/TableCell.d.ts +0 -10
  51. package/lib/typescript/src/components/Table/TableHeader.d.ts +0 -12
  52. package/lib/typescript/src/components/Table/TablePaginator.d.ts +0 -3
  53. package/lib/typescript/src/components/Table/TableRow.d.ts +0 -12
  54. package/lib/typescript/src/components/Table/TableTitle.d.ts +0 -12
  55. package/lib/typescript/src/components/Table/index.d.ts +0 -6
  56. package/lib/typescript/src/mappings/Table.d.ts +0 -153
  57. package/src/components/Table/Table.js +0 -10
  58. package/src/components/Table/Table.tsx +0 -22
  59. package/src/components/Table/TableCell.js +0 -21
  60. package/src/components/Table/TableCell.tsx +0 -44
  61. package/src/components/Table/TableHeader.js +0 -11
  62. package/src/components/Table/TableHeader.tsx +0 -28
  63. package/src/components/Table/TablePaginator.js +0 -5
  64. package/src/components/Table/TablePaginator.tsx +0 -10
  65. package/src/components/Table/TableRow.js +0 -16
  66. package/src/components/Table/TableRow.tsx +0 -31
  67. package/src/components/Table/TableTitle.js +0 -28
  68. package/src/components/Table/TableTitle.tsx +0 -58
  69. package/src/components/Table/index.js +0 -6
  70. package/src/components/Table/index.tsx +0 -6
  71. package/src/mappings/Table.js +0 -137
  72. package/src/mappings/Table.ts +0 -145
@@ -1,145 +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
- fontWeight: "500",
117
- paddingTop: 16,
118
- paddingBottom: 16,
119
- paddingLeft: 8,
120
- paddingRight: 8,
121
- },
122
- props: {
123
- numeric: createBoolProp({
124
- label: "Is Numeric Cell?",
125
- description: "Does the cell contain a numeric value?",
126
- group: GROUPS.data,
127
- }),
128
- value: createTextProp({
129
- label: "Cell Value",
130
- description: "Table Cell Value",
131
- group: GROUPS.data,
132
- }),
133
- isAscending: createBoolProp({
134
- label: "Is Ascending?",
135
- description: "Does the cell contain a numeric value?",
136
- group: GROUPS.data,
137
- }),
138
- numberOfLines: createNumberProp({
139
- label: "Number of Lines",
140
- description: "Number of Lines",
141
- group: GROUPS.basic,
142
- }),
143
- },
144
- },
145
- ];