@draftbit/core 47.0.1-17098e.2 → 47.0.1-2aab54.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 (141) hide show
  1. package/lib/commonjs/components/Button.js +15 -27
  2. package/lib/commonjs/components/Checkbox/Checkbox.js +3 -1
  3. package/lib/commonjs/components/Checkbox/CheckboxGroup.js +17 -2
  4. package/lib/commonjs/components/DeprecatedButton.js +151 -0
  5. package/lib/commonjs/components/DeprecatedCardWrapper.js +2 -2
  6. package/lib/commonjs/components/DeprecatedFAB.js +2 -1
  7. package/lib/commonjs/components/Picker/Picker.js +4 -3
  8. package/lib/commonjs/components/Picker/PickerComponent.ios.js +2 -2
  9. package/lib/commonjs/components/Touchable.js +11 -27
  10. package/lib/commonjs/components/Touchable.web.js +9 -0
  11. package/lib/commonjs/index.js +25 -82
  12. package/lib/commonjs/mappings/Button.js +10 -14
  13. package/lib/commonjs/mappings/NativeBase/AlertDialog.js +93 -0
  14. package/lib/commonjs/mappings/NativeBase/Button.js +84 -0
  15. package/lib/commonjs/mappings/NativeBase/DataDisplay.js +48 -0
  16. package/lib/commonjs/mappings/NativeBase/Feedback.js +74 -0
  17. package/lib/commonjs/mappings/NativeBase/Layout.js +114 -0
  18. package/lib/commonjs/mappings/NativeBase/Media.js +49 -0
  19. package/lib/commonjs/mappings/NativeBase/Menu.js +111 -0
  20. package/lib/commonjs/mappings/NativeBase/Modal.js +93 -0
  21. package/lib/commonjs/mappings/NativeBase/Other.js +94 -0
  22. package/lib/commonjs/mappings/NativeBase/Popover.js +99 -0
  23. package/lib/commonjs/mappings/Touchable.js +20 -0
  24. package/lib/module/components/Button.js +9 -21
  25. package/lib/module/components/Checkbox/Checkbox.js +3 -2
  26. package/lib/module/components/DeprecatedButton.js +141 -0
  27. package/lib/module/components/DeprecatedCardWrapper.js +2 -2
  28. package/lib/module/components/DeprecatedFAB.js +3 -2
  29. package/lib/module/components/Picker/Picker.js +4 -3
  30. package/lib/module/components/Picker/PickerComponent.ios.js +1 -1
  31. package/lib/module/components/Touchable.js +10 -25
  32. package/lib/module/components/Touchable.web.js +2 -0
  33. package/lib/module/index.js +121 -31
  34. package/lib/module/mappings/Button.js +11 -15
  35. package/lib/module/mappings/NativeBase/AlertDialog.js +86 -0
  36. package/lib/module/mappings/NativeBase/Button.js +86 -0
  37. package/lib/module/mappings/NativeBase/DataDisplay.js +41 -0
  38. package/lib/module/mappings/NativeBase/Feedback.js +67 -0
  39. package/lib/module/mappings/NativeBase/Layout.js +107 -0
  40. package/lib/module/mappings/NativeBase/Media.js +42 -0
  41. package/lib/module/mappings/NativeBase/Menu.js +104 -0
  42. package/lib/module/mappings/NativeBase/Modal.js +86 -0
  43. package/lib/module/mappings/NativeBase/Other.js +87 -0
  44. package/lib/module/mappings/NativeBase/Popover.js +92 -0
  45. package/lib/module/mappings/Touchable.js +13 -0
  46. package/lib/typescript/src/components/Button.d.ts +0 -2
  47. package/lib/typescript/src/components/Button.d.ts.map +1 -1
  48. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +2 -2
  49. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -1
  50. package/lib/typescript/src/components/DeprecatedButton.d.ts +54 -0
  51. package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -0
  52. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +1 -1
  53. package/lib/typescript/src/components/DeprecatedFAB.d.ts +2 -2
  54. package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -1
  55. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -1
  56. package/lib/typescript/src/components/Touchable.d.ts +2 -9
  57. package/lib/typescript/src/components/Touchable.d.ts.map +1 -1
  58. package/lib/typescript/src/components/Touchable.web.d.ts +3 -0
  59. package/lib/typescript/src/components/Touchable.web.d.ts.map +1 -0
  60. package/lib/typescript/src/index.d.ts +102 -29
  61. package/lib/typescript/src/index.d.ts.map +1 -1
  62. package/lib/typescript/src/mappings/Button.d.ts +2 -224
  63. package/lib/typescript/src/mappings/Button.d.ts.map +1 -1
  64. package/lib/typescript/src/mappings/NativeBase/AlertDialog.d.ts +134 -0
  65. package/lib/typescript/src/mappings/NativeBase/AlertDialog.d.ts.map +1 -0
  66. package/lib/typescript/src/mappings/NativeBase/Button.d.ts +1 -0
  67. package/lib/typescript/src/mappings/NativeBase/Button.d.ts.map +1 -0
  68. package/lib/typescript/src/mappings/{Pressable.d.ts → NativeBase/DataDisplay.d.ts} +34 -40
  69. package/lib/typescript/src/mappings/NativeBase/DataDisplay.d.ts.map +1 -0
  70. package/lib/typescript/src/mappings/NativeBase/Feedback.d.ts +2 -0
  71. package/lib/typescript/src/mappings/NativeBase/Feedback.d.ts.map +1 -0
  72. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +146 -0
  73. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +1 -0
  74. package/lib/typescript/src/mappings/NativeBase/Media.d.ts +48 -0
  75. package/lib/typescript/src/mappings/NativeBase/Media.d.ts.map +1 -0
  76. package/lib/typescript/src/mappings/NativeBase/Menu.d.ts +227 -0
  77. package/lib/typescript/src/mappings/NativeBase/Menu.d.ts.map +1 -0
  78. package/lib/typescript/src/mappings/NativeBase/Modal.d.ts +133 -0
  79. package/lib/typescript/src/mappings/NativeBase/Modal.d.ts.map +1 -0
  80. package/lib/typescript/src/mappings/NativeBase/Other.d.ts +179 -0
  81. package/lib/typescript/src/mappings/NativeBase/Other.d.ts.map +1 -0
  82. package/lib/typescript/src/mappings/NativeBase/Popover.d.ts +136 -0
  83. package/lib/typescript/src/mappings/NativeBase/Popover.d.ts.map +1 -0
  84. package/lib/typescript/src/mappings/Touchable.d.ts +22 -0
  85. package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -0
  86. package/package.json +3 -3
  87. package/src/components/Button.js +11 -18
  88. package/src/components/Button.tsx +11 -45
  89. package/src/components/Checkbox/Checkbox.js +3 -2
  90. package/src/components/Checkbox/Checkbox.tsx +7 -5
  91. package/src/components/DeprecatedButton.js +95 -0
  92. package/src/components/DeprecatedButton.tsx +214 -0
  93. package/src/components/DeprecatedCardWrapper.js +2 -2
  94. package/src/components/DeprecatedCardWrapper.tsx +4 -3
  95. package/src/components/DeprecatedFAB.js +3 -2
  96. package/src/components/DeprecatedFAB.tsx +5 -5
  97. package/src/components/Picker/Picker.js +4 -3
  98. package/src/components/Picker/Picker.tsx +4 -4
  99. package/src/components/Picker/PickerComponent.ios.js +1 -1
  100. package/src/components/Picker/PickerComponent.ios.tsx +1 -1
  101. package/src/components/Touchable.js +11 -16
  102. package/src/components/Touchable.tsx +11 -42
  103. package/src/components/Touchable.web.js +2 -0
  104. package/src/components/Touchable.web.tsx +3 -0
  105. package/src/index.js +112 -31
  106. package/src/index.tsx +123 -43
  107. package/src/mappings/Button.js +10 -14
  108. package/src/mappings/Button.ts +10 -14
  109. package/src/mappings/NativeBase/AlertDialog.js +103 -0
  110. package/src/mappings/NativeBase/AlertDialog.ts +118 -0
  111. package/src/mappings/NativeBase/Button.js +84 -0
  112. package/src/mappings/NativeBase/Button.ts +83 -0
  113. package/src/mappings/NativeBase/DataDisplay.js +54 -0
  114. package/src/mappings/NativeBase/DataDisplay.ts +64 -0
  115. package/src/mappings/NativeBase/Feedback.js +89 -0
  116. package/src/mappings/NativeBase/Feedback.ts +100 -0
  117. package/src/mappings/NativeBase/Layout.js +140 -0
  118. package/src/mappings/NativeBase/Layout.ts +152 -0
  119. package/src/mappings/NativeBase/Media.js +56 -0
  120. package/src/mappings/NativeBase/Media.ts +65 -0
  121. package/src/mappings/NativeBase/Menu.js +134 -0
  122. package/src/mappings/NativeBase/Menu.ts +150 -0
  123. package/src/mappings/NativeBase/Modal.js +103 -0
  124. package/src/mappings/NativeBase/Modal.ts +118 -0
  125. package/src/mappings/NativeBase/Other.js +123 -0
  126. package/src/mappings/NativeBase/Other.ts +139 -0
  127. package/src/mappings/NativeBase/Popover.js +123 -0
  128. package/src/mappings/NativeBase/Popover.ts +136 -0
  129. package/src/mappings/Touchable.js +17 -0
  130. package/src/mappings/Touchable.ts +23 -0
  131. package/lib/commonjs/components/Pressable.js +0 -48
  132. package/lib/commonjs/mappings/Pressable.js +0 -52
  133. package/lib/module/components/Pressable.js +0 -40
  134. package/lib/module/mappings/Pressable.js +0 -45
  135. package/lib/typescript/src/components/Pressable.d.ts +0 -18
  136. package/lib/typescript/src/components/Pressable.d.ts.map +0 -1
  137. package/lib/typescript/src/mappings/Pressable.d.ts.map +0 -1
  138. package/src/components/Pressable.js +0 -17
  139. package/src/components/Pressable.tsx +0 -67
  140. package/src/mappings/Pressable.js +0 -52
  141. package/src/mappings/Pressable.ts +0 -63
@@ -0,0 +1,104 @@
1
+ import { COMPONENT_TYPES, createActionProp, createStaticBoolProp, createTextEnumProp, StylesPanelSections, Triggers, createStaticNumberProp, createDisabledProp, createTextProp } from "@draftbit/types";
2
+ const SHARED_SEED_DATA = {
3
+ category: COMPONENT_TYPES.NBMenu,
4
+ packageName: "native-base",
5
+ stylesPanelSections: [StylesPanelSections.LayoutFlexItems, StylesPanelSections.LayoutSelectedItem, StylesPanelSections.LayoutContent, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Borders, StylesPanelSections.Effects],
6
+ layout: {},
7
+ allowChildren: true
8
+ };
9
+ export const SEED_DATA = [{
10
+ name: "Menu",
11
+ tag: "Menu",
12
+ description: "Menu generates a dropdown menu along with the menu button design pattern.",
13
+ ...SHARED_SEED_DATA,
14
+ triggers: [Triggers.OnOpen, Triggers.OnClose],
15
+ props: {
16
+ onOpen: createActionProp(),
17
+ onClose: createActionProp(),
18
+ closeOnSelect: createStaticBoolProp({
19
+ label: "Close on Select",
20
+ description: "Close the menu when an item is selected",
21
+ defaultValue: true
22
+ }),
23
+ defaultIsOpen: createStaticBoolProp({
24
+ label: "Default Is Open",
25
+ description: "Whether the menu is open by default",
26
+ defaultValue: false
27
+ }),
28
+ placement: createTextEnumProp({
29
+ label: "Placement",
30
+ description: "The placement of the menu",
31
+ options: ["bottom", "top", "left", "right", "top left", "top right", "bottom left", "bottom right", "right bottom", "right top", "left bottom", "left top"],
32
+ defaultValue: "bottom left"
33
+ }),
34
+ offset: createStaticNumberProp({
35
+ label: "Offset",
36
+ description: "The distance applied along the main axis between the trigger and the menu."
37
+ }),
38
+ crossOffset: createStaticNumberProp({
39
+ label: "Cross Offset",
40
+ description: "The distance applied along the cross axis between the trigger and the menu."
41
+ }),
42
+ shouldFlip: createStaticBoolProp({
43
+ label: "Should Flip",
44
+ description: "Whether popover should flip when it reaches the edge of the screen.",
45
+ defaultValue: true
46
+ })
47
+ }
48
+ }, {
49
+ name: "Menu Item",
50
+ tag: "Menu.Item",
51
+ description: "An individual item in the menu.",
52
+ ...SHARED_SEED_DATA,
53
+ props: {
54
+ isDisabled: createDisabledProp(),
55
+ textValue: createTextProp({
56
+ label: "Text Value",
57
+ description: "The text value available for the typeahead menu feature."
58
+ })
59
+ }
60
+ }, {
61
+ name: "Menu Group",
62
+ tag: "Menu.Group",
63
+ description: "A wrapper to group related menu items.",
64
+ ...SHARED_SEED_DATA,
65
+ props: {
66
+ title: createTextProp({
67
+ label: "Title",
68
+ description: "The title of the menu group."
69
+ })
70
+ }
71
+ }, {
72
+ name: "Menu Option Group",
73
+ tag: "Menu.OptionGroup",
74
+ description: "A wrapper for checkable menu items (radio and checkbox).",
75
+ ...SHARED_SEED_DATA,
76
+ triggers: [Triggers.OnChange],
77
+ props: {
78
+ type: createTextEnumProp({
79
+ label: "Type",
80
+ description: "The type of the menu option group.",
81
+ options: ["checkbox", "radio"],
82
+ defaultValue: "checkbox"
83
+ }),
84
+ onChange: createActionProp()
85
+ }
86
+ }, {
87
+ name: "Menu Item Option",
88
+ tag: "Menu.ItemOption",
89
+ description: "The checkable menu item to be used with Menu Option Group.",
90
+ ...SHARED_SEED_DATA,
91
+ props: {
92
+ isDisabled: createDisabledProp(),
93
+ textValue: createTextProp({
94
+ label: "Text Value",
95
+ description: "The text value available for the typeahead menu feature."
96
+ })
97
+ }
98
+ }, {
99
+ name: "Menu Trigger",
100
+ tag: "Menu.Trigger",
101
+ description: "Used to wrap the reference (or trigger) element.",
102
+ ...SHARED_SEED_DATA,
103
+ props: {}
104
+ }];
@@ -0,0 +1,86 @@
1
+ import { COMPONENT_TYPES, createActionProp, createBoolProp, createStaticBoolProp, createTextEnumProp, StylesPanelSections, Triggers } from "@draftbit/types";
2
+ const SHARED_SEED_DATA = {
3
+ category: COMPONENT_TYPES.NBModal,
4
+ packageName: "native-base",
5
+ stylesPanelSections: [StylesPanelSections.LayoutFlexItems, StylesPanelSections.LayoutSelectedItem, StylesPanelSections.LayoutContent, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Borders, StylesPanelSections.Effects]
6
+ };
7
+ export const SEED_DATA = [{
8
+ name: "Modal",
9
+ tag: "Modal",
10
+ description: "A Modal is an overlay on the primary window or another dialog window. Content behind the modal dialog remains inert and users cannot interact with it.",
11
+ ...SHARED_SEED_DATA,
12
+ layout: {},
13
+ triggers: [Triggers.OnClose, Triggers.OnOpen],
14
+ props: {
15
+ isOpen: createBoolProp({
16
+ label: "Is Open",
17
+ description: "If true, the modal will open. Useful for controllable state behavior."
18
+ }),
19
+ defaultIsOpen: createStaticBoolProp({
20
+ label: "Default Is Open",
21
+ description: "If true, the modal will be opened by default."
22
+ }),
23
+ avoidKeyboard: createStaticBoolProp({
24
+ label: "Avoid Keyboard",
25
+ description: "If true and the keyboard is opened, the modal will move up equivalent to the keyboard height.",
26
+ defaultValue: false
27
+ }),
28
+ closeOnOverlayClick: createStaticBoolProp({
29
+ label: "Close on Overlay Click",
30
+ description: "If true, the modal will close when the overlay is clicked.",
31
+ defaultValue: true
32
+ }),
33
+ isKeyboardDismissable: createStaticBoolProp({
34
+ label: "Is Keyboard Dismissable",
35
+ description: "If true, the modal will close when the keyboard is dismissed.",
36
+ defaultValue: true
37
+ }),
38
+ backdropVisible: createStaticBoolProp({
39
+ label: "Backdrop Visible",
40
+ description: "If true, the backdrop element is visible.",
41
+ defaultValue: true
42
+ }),
43
+ animationPreset: createTextEnumProp({
44
+ label: "Animation Preset",
45
+ description: "The animation preset to use for the modal.",
46
+ options: ["slide", "fade", "none"],
47
+ defaultValue: "fade"
48
+ }),
49
+ useRNModal: createStaticBoolProp({
50
+ label: "Use RN Modal",
51
+ description: "If true, the modal will use the RN Modal component."
52
+ }),
53
+ onOpen: createActionProp(),
54
+ onClose: createActionProp()
55
+ }
56
+ }, {
57
+ name: "Modal Content",
58
+ tag: "Modal.Content",
59
+ description: "The container for the modal dialog's content.",
60
+ ...SHARED_SEED_DATA,
61
+ props: {}
62
+ }, {
63
+ name: "Modal Header",
64
+ tag: "Modal.Header",
65
+ description: "The header that labels the modal dialog.",
66
+ ...SHARED_SEED_DATA,
67
+ props: {}
68
+ }, {
69
+ name: "Modal Footer",
70
+ tag: "Modal.Footer",
71
+ description: "The footer that houses the modal actions.",
72
+ ...SHARED_SEED_DATA,
73
+ props: {}
74
+ }, {
75
+ name: "Modal Body",
76
+ tag: "Modal.Body",
77
+ description: "A wrapper that houses the modal's main content",
78
+ ...SHARED_SEED_DATA,
79
+ props: {}
80
+ }, {
81
+ name: "Modal Close Button",
82
+ tag: "Modal.CloseButton",
83
+ description: "The button that closes the modal.",
84
+ ...SHARED_SEED_DATA,
85
+ props: {}
86
+ }];
@@ -0,0 +1,87 @@
1
+ import { COMPONENT_TYPES, StylesPanelSections, createTextEnumProp, createTextProp, createIconProp, createBoolProp, createDisabledProp, createStaticNumberProp, createStaticBoolProp, Triggers, createActionProp } from "@draftbit/types";
2
+ export const SEED_DATA = [{
3
+ name: "FAB",
4
+ tag: "Fab",
5
+ description: "A floating action button (FAB) is a circular icon button that hovers over content to execute a primary action in the application.",
6
+ category: COMPONENT_TYPES.NBForms,
7
+ packageName: "native-base",
8
+ doc_link: "https://www.npmjs.com/package/@expo/html-elements",
9
+ code_link: "https://github.com/expo/expo/tree/master/packages/html-elements",
10
+ stylesPanelSections: [StylesPanelSections.LayoutFlexItems, StylesPanelSections.LayoutSelectedItem, StylesPanelSections.LayoutContent, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Borders, StylesPanelSections.Effects],
11
+ layout: {},
12
+ triggers: {},
13
+ props: {
14
+ placement: createTextEnumProp({
15
+ label: "Placement",
16
+ description: "The placement of the Fab relative to the device.",
17
+ options: ["bottom-right", "top-right", "top-left", "bottom-left"],
18
+ defaultValue: "bottom-right"
19
+ }),
20
+ label: createTextProp({
21
+ label: "Label",
22
+ description: "The Text to be displayed in Fab."
23
+ }),
24
+ icon: createIconProp({
25
+ label: "Icon",
26
+ description: "Icon to be displayed in Fab. "
27
+ })
28
+ }
29
+ }, {
30
+ name: "Tooltip",
31
+ tag: "Tooltip",
32
+ description: "A tooltip provides a brief, informative message when a user interacts with an element. Methods of tooltip initiation include: through a mouse-hover gesture or a keyboard-hover gesture.",
33
+ category: COMPONENT_TYPES.NBOther,
34
+ packageName: "native-base",
35
+ allowChildren: true,
36
+ stylesPanelSections: [StylesPanelSections.LayoutFlexItems, StylesPanelSections.LayoutSelectedItem, StylesPanelSections.LayoutContent, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Borders, StylesPanelSections.Effects],
37
+ layout: {},
38
+ triggers: [Triggers.OnOpen, Triggers.OnClose],
39
+ props: {
40
+ label: createTextProp({
41
+ label: "Label",
42
+ description: "The Text to be displayed in Tooltip."
43
+ }),
44
+ isOpen: createBoolProp({
45
+ label: "Is Open",
46
+ description: "Whether the tooltip is open or not."
47
+ }),
48
+ isDisabled: createDisabledProp(),
49
+ defaultIsOpen: createStaticBoolProp({
50
+ label: "Default Is Open",
51
+ description: "Whether the tooltip is open by default",
52
+ defaultValue: false
53
+ }),
54
+ onOpen: createActionProp(),
55
+ onClose: createActionProp(),
56
+ openDelay: createStaticNumberProp({
57
+ label: "Open Delay",
58
+ description: "Delay in ms before tooltip opens",
59
+ defaultValue: 0
60
+ }),
61
+ closeDelay: createStaticNumberProp({
62
+ label: "Close Delay",
63
+ description: "Delay in ms before tooltip closes",
64
+ defaultValue: 0
65
+ }),
66
+ placement: createTextEnumProp({
67
+ label: "Placement",
68
+ description: "The placement of the menu",
69
+ options: ["bottom", "top", "left", "right", "top left", "top right", "bottom left", "bottom right", "right bottom", "right top", "left bottom", "left top"],
70
+ defaultValue: "bottom"
71
+ }),
72
+ arrowSize: createStaticNumberProp({
73
+ label: "Arrow Size",
74
+ description: "The size of the arrow",
75
+ defaultValue: 12
76
+ }),
77
+ hasArrow: createStaticBoolProp({
78
+ label: "Has Arrow",
79
+ description: "Whether the tooltip has an arrow",
80
+ defaultValue: false
81
+ }),
82
+ offset: createStaticNumberProp({
83
+ label: "Offset",
84
+ description: "The distance between the triggere and the tooltip."
85
+ })
86
+ }
87
+ }];
@@ -0,0 +1,92 @@
1
+ import { COMPONENT_TYPES, createActionProp, createBoolProp, createStaticBoolProp, createTextEnumProp, StylesPanelSections } from "@draftbit/types";
2
+ const SHARED_SEED_DATA = {
3
+ category: COMPONENT_TYPES.NBPopover,
4
+ packageName: "native-base",
5
+ stylesPanelSections: [StylesPanelSections.LayoutFlexItems, StylesPanelSections.LayoutSelectedItem, StylesPanelSections.LayoutContent, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Borders, StylesPanelSections.Effects],
6
+ layout: {},
7
+ triggers: {}
8
+ };
9
+ export const SEED_DATA = [{
10
+ name: "Popover",
11
+ tag: "Popover",
12
+ description: "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.",
13
+ ...SHARED_SEED_DATA,
14
+ allowChildren: true,
15
+ props: {
16
+ isOpen: createBoolProp({
17
+ label: "Is Open",
18
+ description: "If true, the popover is open. Useful for controlling the open state."
19
+ }),
20
+ defaultIsOpen: createStaticBoolProp({
21
+ label: "Default Is Open",
22
+ description: "If true, the popover will be opened by default."
23
+ }),
24
+ trapFocus: createStaticBoolProp({
25
+ label: "Trap Focus",
26
+ description: "Whether popover should trap focus."
27
+ }),
28
+ shouldFlip: createStaticBoolProp({
29
+ label: "Should Flip",
30
+ description: "Whether popover should flip when it reaches the edge of the screen.",
31
+ defaultValue: true
32
+ }),
33
+ shouldOverlapWithTrigger: createStaticBoolProp({
34
+ label: "Should Overlap With Trigger",
35
+ description: "Whether popover should overlap with trigger.",
36
+ defaultValue: false
37
+ }),
38
+ isKeyboardDismissable: createStaticBoolProp({
39
+ label: "Is Keyboard Dismissable",
40
+ description: "If true, the popover will close when the keyboard is dismissed.",
41
+ defaultValue: true
42
+ }),
43
+ placement: createTextEnumProp({
44
+ label: "Placement",
45
+ description: "The placement of the popover",
46
+ options: ["bottom", "top", "left", "right", "top left", "top right", "bottom left", "bottom right", "right bottom", "right top", "left bottom", "left top"],
47
+ defaultValue: "bottom left"
48
+ }),
49
+ useRNModal: createStaticBoolProp({
50
+ label: "Use RN Modal",
51
+ description: "If true, the popover will use the RN Modal component."
52
+ }),
53
+ onOpen: createActionProp(),
54
+ onClose: createActionProp()
55
+ }
56
+ }, {
57
+ name: "Popover Arrow",
58
+ tag: "Popover.Arrow",
59
+ description: "The popover arrow.",
60
+ ...SHARED_SEED_DATA,
61
+ props: {}
62
+ }, {
63
+ name: "Popover Body",
64
+ tag: "Popover.Body",
65
+ description: "The body of the popover.",
66
+ ...SHARED_SEED_DATA,
67
+ props: {}
68
+ }, {
69
+ name: "Popover Content",
70
+ tag: "Popover.Content",
71
+ description: "The popover itself.",
72
+ ...SHARED_SEED_DATA,
73
+ props: {}
74
+ }, {
75
+ name: "Popover Close Button",
76
+ tag: "Popover.CloseButton",
77
+ description: "The button that closes the popover.",
78
+ ...SHARED_SEED_DATA,
79
+ props: {}
80
+ }, {
81
+ name: "Popover Header",
82
+ tag: "Popover.Header",
83
+ description: "The header of the popover.",
84
+ ...SHARED_SEED_DATA,
85
+ props: {}
86
+ }, {
87
+ name: "Popover Trigger",
88
+ tag: "Popover.Trigger",
89
+ description: "Used to wrap the reference (or trigger) element.",
90
+ ...SHARED_SEED_DATA,
91
+ props: {}
92
+ }];
@@ -0,0 +1,13 @@
1
+ import { COMPONENT_TYPES, createActionProp, Triggers, StylesPanelSections } from "@draftbit/types";
2
+ export const SEED_DATA = {
3
+ name: "Touchable",
4
+ tag: "Touchable",
5
+ description: "Simple button with no styles",
6
+ category: COMPONENT_TYPES.button,
7
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins, StylesPanelSections.Borders],
8
+ layout: {},
9
+ triggers: [Triggers.OnPress],
10
+ props: {
11
+ onPress: createActionProp()
12
+ }
13
+ };
@@ -1,5 +1,3 @@
1
- import { PressableStateCallbackType, StyleProp, ViewStyle } from "react-native";
2
- export declare type StyleType = (state: PressableStateCallbackType) => StyleProp<ViewStyle>;
3
1
  declare const ButtonSolid: any;
4
2
  export { ButtonSolid };
5
3
  declare const Button: any;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,0BAA0B,EAG1B,SAAS,EAET,SAAS,EAEV,MAAM,cAAc,CAAC;AA+CtB,oBAAY,SAAS,GAAG,CACtB,KAAK,EAAE,0BAA0B,KAC9B,SAAS,CAAC,SAAS,CAAC,CAAC;AA+G1B,QAAA,MAAM,WAAW,EAAE,GAAsB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB,QAAA,MAAM,MAAM,EAAE,GAAsB,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,CAAC;AAmBlB,QAAA,MAAM,aAAa,EAAE,GAAwB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button.tsx"],"names":[],"mappings":"AA0IA,QAAA,MAAM,WAAW,EAAE,GAAsB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB,QAAA,MAAM,MAAM,EAAE,GAAsB,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,CAAC;AAmBlB,QAAA,MAAM,aAAa,EAAE,GAAwB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { StyleProp, ViewStyle, PressableProps } from "react-native";
2
+ import { TouchableHighlightProps, StyleProp, ViewStyle } from "react-native";
3
3
  import type { IconSlot } from "../../interfaces/Icon";
4
4
  export interface CheckboxProps {
5
5
  status?: boolean;
@@ -15,6 +15,6 @@ export interface CheckboxProps {
15
15
  size?: number;
16
16
  style?: StyleProp<ViewStyle>;
17
17
  }
18
- declare const Checkbox: React.FC<CheckboxProps & PressableProps & IconSlot>;
18
+ declare const Checkbox: React.FC<CheckboxProps & TouchableHighlightProps & IconSlot>;
19
19
  export default Checkbox;
20
20
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,SAAS,EACT,SAAS,EAET,cAAc,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAItD,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,IA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E,KAAK,CAAC,EAAE,CACtB,aAAa,GAAG,uBAAuB,GAAG,QAAQ,CAqFnD,CAAC;AAqBF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,54 @@
1
+ import * as React from "react";
2
+ import { TouchableHighlightProps, StyleProp, ViewStyle } from "react-native";
3
+ import type { Theme } from "../styles/DefaultTheme";
4
+ import type { IconSlot } from "../interfaces/Icon";
5
+ /**
6
+ * A button is component that the user can press to trigger an action.
7
+ *
8
+ * <div class="screenshots">
9
+ * <figure>
10
+ * <img src="screenshots/button-1.png" />
11
+ * <figcaption>Text button</figcaption>
12
+ * </figure>
13
+ * <figure>
14
+ * <img src="screenshots/button-2.png" />
15
+ * <figcaption>Outlined button</figcaption>
16
+ * </figure>
17
+ * <figure>
18
+ * <img src="screenshots/button-3.png" />
19
+ * <figcaption>Contained button</figcaption>
20
+ * </figure>
21
+ * </div>
22
+ *
23
+ * ## Usage
24
+ * ```js
25
+ * import * as React from 'react';
26
+ * import { Button } from '@draftbit/ui';
27
+ *
28
+ * const MyComponent = () => (
29
+ * <Button icon="add-a-photo" type="solid" onPress={() => console.log('Pressed')}>
30
+ * Press me
31
+ * </Button>
32
+ * );
33
+ *
34
+ * export default MyComponent;
35
+ * ```
36
+ */
37
+ declare type Props = {
38
+ disabled?: boolean;
39
+ type?: "solid" | "outline" | "text";
40
+ loading?: boolean;
41
+ icon?: string;
42
+ labelColor?: string;
43
+ color?: string;
44
+ children?: React.ReactNode;
45
+ onPress: () => void;
46
+ elevation?: number;
47
+ style?: StyleProp<ViewStyle>;
48
+ theme: Theme;
49
+ } & TouchableHighlightProps & IconSlot;
50
+ declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
51
+ theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
52
+ }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<Props>> & React.FC<React.PropsWithChildren<Props>>, {}>;
53
+ export default _default;
54
+ //# sourceMappingURL=DeprecatedButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeprecatedButton.d.ts","sourceRoot":"","sources":["../../../../src/components/DeprecatedButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,uBAAuB,EACvB,SAAS,EACT,SAAS,EAEV,MAAM,cAAc,CAAC;AAOtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,aAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,uBAAuB,GACzB,QAAQ,CAAC;;;;AAmJX,wBAAiC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DeprecatedCardWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/DeprecatedCardWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAE3C,aAAK,KAAK,GAAG;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,OAAO,KAAK,CAAC;CACrB,CAAC;;;;AAiCF,wBAA+B"}
1
+ {"version":3,"file":"DeprecatedCardWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/DeprecatedCardWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAE3C,aAAK,KAAK,GAAG;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,OAAO,KAAK,CAAC;CACrB,CAAC;;;;AAiCF,wBAA+B"}
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { StyleProp, ViewStyle, PressableProps } from "react-native";
2
+ import { TouchableHighlightProps, StyleProp, ViewStyle } from "react-native";
3
3
  import type { Theme } from "../styles/DefaultTheme";
4
4
  import type { IconSlot } from "../interfaces/Icon";
5
5
  /**
@@ -48,7 +48,7 @@ declare type Props = {
48
48
  elevation?: number;
49
49
  theme: Theme;
50
50
  style?: StyleProp<ViewStyle>;
51
- } & PressableProps & IconSlot;
51
+ } & TouchableHighlightProps & IconSlot;
52
52
  declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
53
53
  theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
54
54
  }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<Props>> & React.FC<React.PropsWithChildren<Props>>, {}>;
@@ -1 +1 @@
1
- {"version":3,"file":"DeprecatedFAB.d.ts","sourceRoot":"","sources":["../../../../src/components/DeprecatedFAB.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAIL,SAAS,EACT,SAAS,EAGT,cAAc,EACf,MAAM,cAAc,CAAC;AAOtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,aAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,cAAc,GAChB,QAAQ,CAAC;;;;AAkKX,wBAA8B"}
1
+ {"version":3,"file":"DeprecatedFAB.d.ts","sourceRoot":"","sources":["../../../../src/components/DeprecatedFAB.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAIL,uBAAuB,EACvB,SAAS,EACT,SAAS,EAEV,MAAM,cAAc,CAAC;AAQtB,OAAO,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ACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,GAAG;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,YAAY,EAAE,GAAG,MAAM,EAAE,CAAC;IACnC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CACxB,CAAC;;;;AA2aF,wBAAiC"}
@@ -1,18 +1,11 @@
1
1
  import React from "react";
2
- import { PressableProps, PressableStateCallbackType, StyleProp, ViewStyle } from "react-native";
2
+ import { ViewStyle, PressableProps } from "react-native";
3
3
  declare type Props = {
4
4
  disabled?: boolean;
5
5
  children: React.ReactNode;
6
6
  style?: ViewStyle;
7
7
  onPress?: () => void;
8
- onLongPress?: () => void;
9
- delayLongPress?: number;
10
- hitSlop?: number;
11
- pressRetentionOffset?: number;
12
- activeOpacity?: number;
13
- disabledOpacity?: number;
14
8
  } & PressableProps;
15
- export declare type StyleType = (state: PressableStateCallbackType) => StyleProp<ViewStyle>;
16
- export default function Touchable({ children, disabled, onPress, onLongPress, hitSlop, delayLongPress, activeOpacity, disabledOpacity, style, ...props }: Props): JSX.Element;
9
+ export default function Touchable({ children, disabled, onPress, style, ...props }: Props): JSX.Element;
17
10
  export {};
18
11
  //# sourceMappingURL=Touchable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Touchable.d.ts","sourceRoot":"","sources":["../../../../src/components/Touchable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAEL,cAAc,EACd,0BAA0B,EAC1B,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,aAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,cAAc,CAAC;AAEnB,oBAAY,SAAS,GAAG,CACtB,KAAK,EAAE,0BAA0B,KAC9B,SAAS,CAAC,SAAS,CAAC,CAAC;AAE1B,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,WAAW,EACX,OAAO,EACP,cAAc,EACd,aAAa,EACb,eAAe,EACf,KAAK,EACL,GAAG,KAAK,EACT,EAAE,KAAK,eA6BP"}
1
+ {"version":3,"file":"Touchable.d.ts","sourceRoot":"","sources":["../../../../src/components/Touchable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAa,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEpE,aAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,GAAG,cAAc,CAAC;AAEnB,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,KAAK,EACL,GAAG,KAAK,EACT,EAAE,KAAK,eAmBP"}
@@ -0,0 +1,3 @@
1
+ import { TouchableOpacity } from "react-native";
2
+ export default TouchableOpacity;
3
+ //# sourceMappingURL=Touchable.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Touchable.web.d.ts","sourceRoot":"","sources":["../../../../src/components/Touchable.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,eAAe,gBAAgB,CAAC"}