@draftbit/core 46.4.4-d73221.2 → 46.4.4-d93fe1.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 (34) hide show
  1. package/lib/commonjs/components/Container.js +17 -5
  2. package/lib/commonjs/components/ProgressBar.js +23 -7
  3. package/lib/commonjs/components/TabView/TabView.js +102 -0
  4. package/lib/commonjs/components/TabView/TabViewItem.js +26 -0
  5. package/lib/commonjs/components/TabView/index.js +23 -0
  6. package/lib/commonjs/index.js +14 -0
  7. package/lib/commonjs/mappings/TabView.js +79 -0
  8. package/lib/module/components/Banner.js +4 -24
  9. package/lib/module/components/DatePicker/DatePicker.js +8 -7
  10. package/lib/module/components/Elevation.js +4 -15
  11. package/lib/module/components/Image.js +3 -18
  12. package/lib/module/components/StepIndicator.js +16 -33
  13. package/lib/module/components/TabView/TabView.js +87 -0
  14. package/lib/module/components/TabView/TabViewItem.js +18 -0
  15. package/lib/module/components/TabView/index.js +2 -0
  16. package/lib/module/components/ToggleButton.js +17 -3
  17. package/lib/module/index.js +1 -0
  18. package/lib/module/mappings/TabView.js +70 -0
  19. package/lib/typescript/src/components/TabView/TabView.d.ts +19 -0
  20. package/lib/typescript/src/components/TabView/TabViewItem.d.ts +10 -0
  21. package/lib/typescript/src/components/TabView/index.d.ts +2 -0
  22. package/lib/typescript/src/index.d.ts +1 -0
  23. package/lib/typescript/src/mappings/TabView.d.ts +111 -0
  24. package/package.json +6 -4
  25. package/src/components/TabView/TabView.js +34 -0
  26. package/src/components/TabView/TabView.tsx +97 -0
  27. package/src/components/TabView/TabViewItem.js +5 -0
  28. package/src/components/TabView/TabViewItem.tsx +21 -0
  29. package/src/components/TabView/index.js +2 -0
  30. package/src/components/TabView/index.tsx +2 -0
  31. package/src/index.js +1 -0
  32. package/src/index.tsx +1 -0
  33. package/src/mappings/TabView.js +73 -0
  34. package/src/mappings/TabView.ts +80 -0
@@ -0,0 +1,80 @@
1
+ import {
2
+ COMPONENT_TYPES,
3
+ createTextProp,
4
+ createTextEnumProp,
5
+ createBoolProp,
6
+ createColorProp,
7
+ } from "@draftbit/types";
8
+
9
+ export const SEED_DATA = [
10
+ {
11
+ name: "Tab View",
12
+ tag: "TabView",
13
+ category: COMPONENT_TYPES.container,
14
+ layout: {},
15
+ props: {
16
+ tabBarPosition: createTextEnumProp({
17
+ label: "Tab Bar Position",
18
+ description: "Tab Bar Position",
19
+ options: ["top", "bottom"],
20
+ defaultValue: "top",
21
+ }),
22
+ keyboardDismissMode: createTextEnumProp({
23
+ label: "Keyboard Dismiss Mode",
24
+ description: "Keyboard Dismiss Mode",
25
+ options: ["auto", "on-drag", "none"],
26
+ defaultValue: "auto",
27
+ }),
28
+ swipeEnabled: createBoolProp({
29
+ label: "Swipe Enabled",
30
+ description: "Swipe Enabled",
31
+ defaultValue: true,
32
+ }),
33
+ scrollEnabled: createBoolProp({
34
+ label: "Scroll Enabled",
35
+ description: "Scroll Enabled",
36
+ defaultValue: true,
37
+ }),
38
+ activeColor: createColorProp({
39
+ label: "Active Color",
40
+ description: "Active Color",
41
+ defaultValue: "primary",
42
+ }),
43
+ inactiveColor: createColorProp({
44
+ label: "Inactive Color",
45
+ description: "Inactive Color",
46
+ defaultValue: null,
47
+ }),
48
+ pressColor: createColorProp({
49
+ label: "Press Color",
50
+ description: "Press Color",
51
+ defaultValue: null,
52
+ }),
53
+ indicatorColor: createColorProp({
54
+ label: "Indicator Color",
55
+ description: "Indicator Color",
56
+ defaultValue: null,
57
+ }),
58
+ },
59
+ },
60
+ {
61
+ name: "Tab View Item",
62
+ tag: "TabViewItem",
63
+ category: COMPONENT_TYPES.container,
64
+ layout: {},
65
+ props: {
66
+ title: createTextProp({
67
+ label: "Title",
68
+ description: "Tab Title",
69
+ }),
70
+ id: createTextProp({
71
+ label: "Id",
72
+ description: "Tab Id",
73
+ }),
74
+ accessibilityLabel: createTextProp({
75
+ label: "Accessibility Label",
76
+ description: "Accessibility Label",
77
+ }),
78
+ },
79
+ },
80
+ ];