@draftbit/core 47.0.1-2aab54.2 → 47.0.1-411297.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 (80) hide show
  1. package/lib/commonjs/components/Checkbox/CheckboxGroup.js +2 -17
  2. package/lib/commonjs/index.js +82 -25
  3. package/lib/commonjs/mappings/FlashList.js +45 -2
  4. package/lib/commonjs/mappings/FlatList.js +12 -0
  5. package/lib/module/index.js +31 -121
  6. package/lib/module/mappings/FlashList.js +46 -3
  7. package/lib/module/mappings/FlatList.js +13 -1
  8. package/lib/typescript/src/index.d.ts +29 -102
  9. package/lib/typescript/src/index.d.ts.map +1 -1
  10. package/lib/typescript/src/mappings/FlashList.d.ts +112 -2
  11. package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -1
  12. package/lib/typescript/src/mappings/FlatList.d.ts +42 -0
  13. package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -1
  14. package/package.json +3 -3
  15. package/src/index.js +31 -112
  16. package/src/index.tsx +43 -123
  17. package/src/mappings/FlashList.js +77 -31
  18. package/src/mappings/FlashList.ts +82 -30
  19. package/src/mappings/FlatList.js +13 -1
  20. package/src/mappings/FlatList.ts +16 -0
  21. package/lib/commonjs/mappings/NativeBase/AlertDialog.js +0 -93
  22. package/lib/commonjs/mappings/NativeBase/Button.js +0 -84
  23. package/lib/commonjs/mappings/NativeBase/DataDisplay.js +0 -48
  24. package/lib/commonjs/mappings/NativeBase/Feedback.js +0 -74
  25. package/lib/commonjs/mappings/NativeBase/Layout.js +0 -114
  26. package/lib/commonjs/mappings/NativeBase/Media.js +0 -49
  27. package/lib/commonjs/mappings/NativeBase/Menu.js +0 -111
  28. package/lib/commonjs/mappings/NativeBase/Modal.js +0 -93
  29. package/lib/commonjs/mappings/NativeBase/Other.js +0 -94
  30. package/lib/commonjs/mappings/NativeBase/Popover.js +0 -99
  31. package/lib/module/mappings/NativeBase/AlertDialog.js +0 -86
  32. package/lib/module/mappings/NativeBase/Button.js +0 -86
  33. package/lib/module/mappings/NativeBase/DataDisplay.js +0 -41
  34. package/lib/module/mappings/NativeBase/Feedback.js +0 -67
  35. package/lib/module/mappings/NativeBase/Layout.js +0 -107
  36. package/lib/module/mappings/NativeBase/Media.js +0 -42
  37. package/lib/module/mappings/NativeBase/Menu.js +0 -104
  38. package/lib/module/mappings/NativeBase/Modal.js +0 -86
  39. package/lib/module/mappings/NativeBase/Other.js +0 -87
  40. package/lib/module/mappings/NativeBase/Popover.js +0 -92
  41. package/lib/typescript/src/mappings/NativeBase/AlertDialog.d.ts +0 -134
  42. package/lib/typescript/src/mappings/NativeBase/AlertDialog.d.ts.map +0 -1
  43. package/lib/typescript/src/mappings/NativeBase/Button.d.ts +0 -1
  44. package/lib/typescript/src/mappings/NativeBase/Button.d.ts.map +0 -1
  45. package/lib/typescript/src/mappings/NativeBase/DataDisplay.d.ts +0 -70
  46. package/lib/typescript/src/mappings/NativeBase/DataDisplay.d.ts.map +0 -1
  47. package/lib/typescript/src/mappings/NativeBase/Feedback.d.ts +0 -2
  48. package/lib/typescript/src/mappings/NativeBase/Feedback.d.ts.map +0 -1
  49. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +0 -146
  50. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +0 -1
  51. package/lib/typescript/src/mappings/NativeBase/Media.d.ts +0 -48
  52. package/lib/typescript/src/mappings/NativeBase/Media.d.ts.map +0 -1
  53. package/lib/typescript/src/mappings/NativeBase/Menu.d.ts +0 -227
  54. package/lib/typescript/src/mappings/NativeBase/Menu.d.ts.map +0 -1
  55. package/lib/typescript/src/mappings/NativeBase/Modal.d.ts +0 -133
  56. package/lib/typescript/src/mappings/NativeBase/Modal.d.ts.map +0 -1
  57. package/lib/typescript/src/mappings/NativeBase/Other.d.ts +0 -179
  58. package/lib/typescript/src/mappings/NativeBase/Other.d.ts.map +0 -1
  59. package/lib/typescript/src/mappings/NativeBase/Popover.d.ts +0 -136
  60. package/lib/typescript/src/mappings/NativeBase/Popover.d.ts.map +0 -1
  61. package/src/mappings/NativeBase/AlertDialog.js +0 -103
  62. package/src/mappings/NativeBase/AlertDialog.ts +0 -118
  63. package/src/mappings/NativeBase/Button.js +0 -84
  64. package/src/mappings/NativeBase/Button.ts +0 -83
  65. package/src/mappings/NativeBase/DataDisplay.js +0 -54
  66. package/src/mappings/NativeBase/DataDisplay.ts +0 -64
  67. package/src/mappings/NativeBase/Feedback.js +0 -89
  68. package/src/mappings/NativeBase/Feedback.ts +0 -100
  69. package/src/mappings/NativeBase/Layout.js +0 -140
  70. package/src/mappings/NativeBase/Layout.ts +0 -152
  71. package/src/mappings/NativeBase/Media.js +0 -56
  72. package/src/mappings/NativeBase/Media.ts +0 -65
  73. package/src/mappings/NativeBase/Menu.js +0 -134
  74. package/src/mappings/NativeBase/Menu.ts +0 -150
  75. package/src/mappings/NativeBase/Modal.js +0 -103
  76. package/src/mappings/NativeBase/Modal.ts +0 -118
  77. package/src/mappings/NativeBase/Other.js +0 -123
  78. package/src/mappings/NativeBase/Other.ts +0 -139
  79. package/src/mappings/NativeBase/Popover.js +0 -123
  80. package/src/mappings/NativeBase/Popover.ts +0 -136
@@ -1,136 +0,0 @@
1
- import {
2
- COMPONENT_TYPES,
3
- createActionProp,
4
- createBoolProp,
5
- createStaticBoolProp,
6
- createTextEnumProp,
7
- StylesPanelSections,
8
- } from "@draftbit/types";
9
-
10
- const SHARED_SEED_DATA = {
11
- category: COMPONENT_TYPES.NBPopover,
12
- packageName: "native-base",
13
- stylesPanelSections: [
14
- StylesPanelSections.LayoutFlexItems,
15
- StylesPanelSections.LayoutSelectedItem,
16
- StylesPanelSections.LayoutContent,
17
- StylesPanelSections.Background,
18
- StylesPanelSections.Size,
19
- StylesPanelSections.MarginsAndPaddings,
20
- StylesPanelSections.Position,
21
- StylesPanelSections.Borders,
22
- StylesPanelSections.Effects,
23
- ],
24
- layout: {},
25
- triggers: {},
26
- };
27
-
28
- export const SEED_DATA = [
29
- {
30
- name: "Popover",
31
- tag: "Popover",
32
- description:
33
- "Popover floats around a trigger. It is a non-modal dialog used to provide contextual information to the user. It should be paired with a pressable trigger element.",
34
- ...SHARED_SEED_DATA,
35
- allowChildren: true,
36
- props: {
37
- isOpen: createBoolProp({
38
- label: "Is Open",
39
- description:
40
- "If true, the popover is open. Useful for controlling the open state.",
41
- }),
42
- defaultIsOpen: createStaticBoolProp({
43
- label: "Default Is Open",
44
- description: "If true, the popover will be opened by default.",
45
- }),
46
- trapFocus: createStaticBoolProp({
47
- label: "Trap Focus",
48
- description: "Whether popover should trap focus.",
49
- }),
50
- shouldFlip: createStaticBoolProp({
51
- label: "Should Flip",
52
- description:
53
- "Whether popover should flip when it reaches the edge of the screen.",
54
- defaultValue: true,
55
- }),
56
- shouldOverlapWithTrigger: createStaticBoolProp({
57
- label: "Should Overlap With Trigger",
58
- description: "Whether popover should overlap with trigger.",
59
- defaultValue: false,
60
- }),
61
- isKeyboardDismissable: createStaticBoolProp({
62
- label: "Is Keyboard Dismissable",
63
- description:
64
- "If true, the popover will close when the keyboard is dismissed.",
65
- defaultValue: true,
66
- }),
67
- placement: createTextEnumProp({
68
- label: "Placement",
69
- description: "The placement of the popover",
70
- options: [
71
- "bottom",
72
- "top",
73
- "left",
74
- "right",
75
- "top left",
76
- "top right",
77
- "bottom left",
78
- "bottom right",
79
- "right bottom",
80
- "right top",
81
- "left bottom",
82
- "left top",
83
- ],
84
- defaultValue: "bottom left",
85
- }),
86
- useRNModal: createStaticBoolProp({
87
- label: "Use RN Modal",
88
- description: "If true, the popover will use the RN Modal component.",
89
- }),
90
- onOpen: createActionProp(),
91
- onClose: createActionProp(),
92
- },
93
- },
94
- {
95
- name: "Popover Arrow",
96
- tag: "Popover.Arrow",
97
- description: "The popover arrow.",
98
- ...SHARED_SEED_DATA,
99
- props: {},
100
- },
101
- {
102
- name: "Popover Body",
103
- tag: "Popover.Body",
104
- description: "The body of the popover.",
105
- ...SHARED_SEED_DATA,
106
- props: {},
107
- },
108
- {
109
- name: "Popover Content",
110
- tag: "Popover.Content",
111
- description: "The popover itself.",
112
- ...SHARED_SEED_DATA,
113
- props: {},
114
- },
115
- {
116
- name: "Popover Close Button",
117
- tag: "Popover.CloseButton",
118
- description: "The button that closes the popover.",
119
- ...SHARED_SEED_DATA,
120
- props: {},
121
- },
122
- {
123
- name: "Popover Header",
124
- tag: "Popover.Header",
125
- description: "The header of the popover.",
126
- ...SHARED_SEED_DATA,
127
- props: {},
128
- },
129
- {
130
- name: "Popover Trigger",
131
- tag: "Popover.Trigger",
132
- description: "Used to wrap the reference (or trigger) element.",
133
- ...SHARED_SEED_DATA,
134
- props: {},
135
- },
136
- ];