@draftbit/core 43.4.5-d442fc.1 → 43.4.6-28bb0e.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 (89) hide show
  1. package/lib/commonjs/components/Elevation.js +3 -14
  2. package/lib/commonjs/components/Elevation.js.map +1 -1
  3. package/lib/commonjs/components/FAB.js +19 -5
  4. package/lib/commonjs/components/FAB.js.map +1 -1
  5. package/lib/commonjs/components/FieldSearchBarFull.js.map +1 -1
  6. package/lib/commonjs/components/NumberInput.js +30 -29
  7. package/lib/commonjs/components/NumberInput.js.map +1 -1
  8. package/lib/commonjs/components/RadioButton/RadioButton.js +9 -8
  9. package/lib/commonjs/components/RadioButton/RadioButton.js.map +1 -1
  10. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +13 -12
  11. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js.map +1 -1
  12. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +9 -6
  13. package/lib/commonjs/components/RadioButton/RadioButtonRow.js.map +1 -1
  14. package/lib/commonjs/index.js +0 -14
  15. package/lib/commonjs/index.js.map +1 -1
  16. package/lib/commonjs/mappings/CheckboxRow.js +1 -1
  17. package/lib/commonjs/mappings/CheckboxRow.js.map +1 -1
  18. package/lib/commonjs/mappings/TextInput.js +7 -2
  19. package/lib/commonjs/mappings/TextInput.js.map +1 -1
  20. package/lib/commonjs/utilities.js +13 -0
  21. package/lib/commonjs/utilities.js.map +1 -1
  22. package/lib/module/components/NumberInput.js +26 -25
  23. package/lib/module/components/NumberInput.js.map +1 -1
  24. package/lib/module/components/RadioButton/RadioButton.js +8 -8
  25. package/lib/module/components/RadioButton/RadioButton.js.map +1 -1
  26. package/lib/module/components/RadioButton/RadioButtonGroup.js +12 -12
  27. package/lib/module/components/RadioButton/RadioButtonGroup.js.map +1 -1
  28. package/lib/module/components/RadioButton/RadioButtonRow.js +10 -7
  29. package/lib/module/components/RadioButton/RadioButtonRow.js.map +1 -1
  30. package/lib/module/index.js +0 -1
  31. package/lib/module/index.js.map +1 -1
  32. package/lib/module/mappings/CheckboxRow.js +1 -1
  33. package/lib/module/mappings/CheckboxRow.js.map +1 -1
  34. package/lib/module/mappings/TextInput.js +8 -3
  35. package/lib/module/mappings/TextInput.js.map +1 -1
  36. package/lib/module/utilities.js +10 -0
  37. package/lib/module/utilities.js.map +1 -1
  38. package/lib/typescript/src/components/NumberInput.d.ts +3 -3
  39. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts +2 -2
  40. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts +2 -2
  41. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts +1 -1
  42. package/lib/typescript/src/index.d.ts +0 -1
  43. package/lib/typescript/src/mappings/TextInput.d.ts +38 -38
  44. package/lib/typescript/src/utilities.d.ts +1 -0
  45. package/package.json +2 -4
  46. package/src/components/NumberInput.js +27 -21
  47. package/src/components/NumberInput.tsx +41 -29
  48. package/src/components/RadioButton/RadioButton.js +7 -6
  49. package/src/components/RadioButton/RadioButton.tsx +11 -12
  50. package/src/components/RadioButton/RadioButtonGroup.js +10 -10
  51. package/src/components/RadioButton/RadioButtonGroup.tsx +18 -17
  52. package/src/components/RadioButton/RadioButtonRow.js +8 -5
  53. package/src/components/RadioButton/RadioButtonRow.tsx +12 -10
  54. package/src/index.js +0 -1
  55. package/src/index.tsx +0 -1
  56. package/src/mappings/CheckboxRow.js +1 -1
  57. package/src/mappings/CheckboxRow.ts +1 -1
  58. package/src/mappings/TextInput.js +7 -2
  59. package/src/mappings/TextInput.ts +7 -1
  60. package/src/utilities.js +12 -0
  61. package/src/utilities.ts +11 -0
  62. package/lib/commonjs/components/TabView/TabView.js +0 -103
  63. package/lib/commonjs/components/TabView/TabView.js.map +0 -1
  64. package/lib/commonjs/components/TabView/TabViewItem.js +0 -27
  65. package/lib/commonjs/components/TabView/TabViewItem.js.map +0 -1
  66. package/lib/commonjs/components/TabView/index.js +0 -24
  67. package/lib/commonjs/components/TabView/index.js.map +0 -1
  68. package/lib/commonjs/mappings/TabView.js +0 -80
  69. package/lib/commonjs/mappings/TabView.js.map +0 -1
  70. package/lib/module/components/TabView/TabView.js +0 -88
  71. package/lib/module/components/TabView/TabView.js.map +0 -1
  72. package/lib/module/components/TabView/TabViewItem.js +0 -19
  73. package/lib/module/components/TabView/TabViewItem.js.map +0 -1
  74. package/lib/module/components/TabView/index.js +0 -3
  75. package/lib/module/components/TabView/index.js.map +0 -1
  76. package/lib/module/mappings/TabView.js +0 -71
  77. package/lib/module/mappings/TabView.js.map +0 -1
  78. package/lib/typescript/src/components/TabView/TabView.d.ts +0 -19
  79. package/lib/typescript/src/components/TabView/TabViewItem.d.ts +0 -10
  80. package/lib/typescript/src/components/TabView/index.d.ts +0 -2
  81. package/lib/typescript/src/mappings/TabView.d.ts +0 -111
  82. package/src/components/TabView/TabView.js +0 -33
  83. package/src/components/TabView/TabView.tsx +0 -97
  84. package/src/components/TabView/TabViewItem.js +0 -5
  85. package/src/components/TabView/TabViewItem.tsx +0 -21
  86. package/src/components/TabView/index.js +0 -2
  87. package/src/components/TabView/index.ts +0 -2
  88. package/src/mappings/TabView.js +0 -73
  89. package/src/mappings/TabView.ts +0 -80
@@ -1,80 +0,0 @@
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: "TabView",
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: "TabViewItem",
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
- ];