@draftbit/core 47.0.1-d41acb.2 → 47.0.1-e04fa3.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.
- package/lib/commonjs/components/Button.js +3 -3
- package/lib/commonjs/components/Checkbox/Checkbox.js +3 -1
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +2 -1
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +2 -1
- package/lib/commonjs/components/DeprecatedButton.js +27 -3
- package/lib/commonjs/components/DeprecatedFAB.js +2 -1
- package/lib/commonjs/components/Touchable.js +3 -8
- package/lib/commonjs/index.js +25 -89
- package/lib/commonjs/mappings/Button.js +10 -39
- package/lib/commonjs/mappings/NativeBase/AlertDialog.js +102 -0
- package/lib/commonjs/mappings/NativeBase/Button.js +84 -0
- package/lib/commonjs/mappings/NativeBase/DataDisplay.js +61 -0
- package/lib/commonjs/mappings/NativeBase/Feedback.js +74 -0
- package/lib/commonjs/mappings/NativeBase/Layout.js +114 -0
- package/lib/commonjs/mappings/NativeBase/Media.js +49 -0
- package/lib/commonjs/mappings/NativeBase/Menu.js +111 -0
- package/lib/commonjs/mappings/NativeBase/Modal.js +93 -0
- package/lib/commonjs/mappings/NativeBase/Other.js +94 -0
- package/lib/commonjs/mappings/NativeBase/Popover.js +99 -0
- package/lib/commonjs/mappings/NativeBase/Select.js +65 -0
- package/lib/commonjs/mappings/NativeBase/Slider.js +81 -0
- package/lib/commonjs/mappings/Touchable.js +7 -47
- package/lib/module/components/Button.js +3 -3
- package/lib/module/components/Checkbox/Checkbox.js +3 -2
- package/lib/module/components/Checkbox/CheckboxGroupRow.js +3 -2
- package/lib/module/components/Checkbox/CheckboxRow.js +3 -2
- package/lib/module/components/DeprecatedButton.js +28 -4
- package/lib/module/components/DeprecatedFAB.js +3 -2
- package/lib/module/components/Touchable.js +3 -8
- package/lib/module/index.js +121 -32
- package/lib/module/mappings/Button.js +11 -40
- package/lib/module/mappings/NativeBase/AlertDialog.js +95 -0
- package/lib/module/mappings/NativeBase/Button.js +86 -0
- package/lib/module/mappings/NativeBase/DataDisplay.js +54 -0
- package/lib/module/mappings/NativeBase/Feedback.js +67 -0
- package/lib/module/mappings/NativeBase/Layout.js +107 -0
- package/lib/module/mappings/NativeBase/Media.js +42 -0
- package/lib/module/mappings/NativeBase/Menu.js +104 -0
- package/lib/module/mappings/NativeBase/Modal.js +86 -0
- package/lib/module/mappings/NativeBase/Other.js +87 -0
- package/lib/module/mappings/NativeBase/Popover.js +92 -0
- package/lib/module/mappings/NativeBase/Select.js +58 -0
- package/lib/module/mappings/NativeBase/Slider.js +74 -0
- package/lib/module/mappings/Touchable.js +9 -49
- package/lib/typescript/src/components/Button.d.ts.map +1 -1
- package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +2 -2
- package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts.map +1 -1
- package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts.map +1 -1
- package/lib/typescript/src/components/DeprecatedButton.d.ts +2 -2
- package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -1
- package/lib/typescript/src/components/DeprecatedFAB.d.ts +2 -2
- package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -1
- package/lib/typescript/src/components/Touchable.d.ts +2 -7
- package/lib/typescript/src/components/Touchable.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +102 -30
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/mappings/Button.d.ts +4 -113
- package/lib/typescript/src/mappings/Button.d.ts.map +1 -1
- package/lib/typescript/src/mappings/NativeBase/AlertDialog.d.ts +146 -0
- package/lib/typescript/src/mappings/NativeBase/AlertDialog.d.ts.map +1 -0
- package/lib/typescript/src/mappings/NativeBase/Button.d.ts +1 -0
- package/lib/typescript/src/mappings/NativeBase/Button.d.ts.map +1 -0
- package/lib/typescript/src/mappings/NativeBase/DataDisplay.d.ts +96 -0
- package/lib/typescript/src/mappings/NativeBase/DataDisplay.d.ts.map +1 -0
- package/lib/typescript/src/mappings/NativeBase/Feedback.d.ts +2 -0
- package/lib/typescript/src/mappings/NativeBase/Feedback.d.ts.map +1 -0
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +146 -0
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +1 -0
- package/lib/typescript/src/mappings/NativeBase/Media.d.ts +48 -0
- package/lib/typescript/src/mappings/NativeBase/Media.d.ts.map +1 -0
- package/lib/typescript/src/mappings/NativeBase/Menu.d.ts +227 -0
- package/lib/typescript/src/mappings/NativeBase/Menu.d.ts.map +1 -0
- package/lib/typescript/src/mappings/NativeBase/Modal.d.ts +133 -0
- package/lib/typescript/src/mappings/NativeBase/Modal.d.ts.map +1 -0
- package/lib/typescript/src/mappings/NativeBase/Other.d.ts +179 -0
- package/lib/typescript/src/mappings/NativeBase/Other.d.ts.map +1 -0
- package/lib/typescript/src/mappings/NativeBase/Popover.d.ts +136 -0
- package/lib/typescript/src/mappings/NativeBase/Popover.d.ts.map +1 -0
- package/lib/typescript/src/mappings/NativeBase/Select.d.ts +156 -0
- package/lib/typescript/src/mappings/NativeBase/Select.d.ts.map +1 -0
- package/lib/typescript/src/mappings/NativeBase/Slider.d.ts +200 -0
- package/lib/typescript/src/mappings/NativeBase/Slider.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Touchable.d.ts +5 -59
- package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/Button.js +3 -3
- package/src/components/Button.tsx +4 -14
- package/src/components/Checkbox/Checkbox.js +3 -2
- package/src/components/Checkbox/Checkbox.tsx +7 -5
- package/src/components/Checkbox/CheckboxGroupRow.js +3 -2
- package/src/components/Checkbox/CheckboxGroupRow.tsx +3 -3
- package/src/components/Checkbox/CheckboxRow.js +3 -2
- package/src/components/Checkbox/CheckboxRow.tsx +3 -3
- package/src/components/DeprecatedButton.js +16 -4
- package/src/components/DeprecatedButton.tsx +31 -7
- package/src/components/DeprecatedFAB.js +3 -2
- package/src/components/DeprecatedFAB.tsx +5 -5
- package/src/components/Touchable.js +3 -3
- package/src/components/Touchable.tsx +4 -14
- package/src/index.js +112 -32
- package/src/index.tsx +123 -44
- package/src/mappings/Button.js +10 -39
- package/src/mappings/Button.ts +10 -41
- package/src/mappings/NativeBase/AlertDialog.js +112 -0
- package/src/mappings/NativeBase/AlertDialog.ts +128 -0
- package/src/mappings/NativeBase/Button.js +84 -0
- package/src/mappings/NativeBase/Button.ts +83 -0
- package/src/mappings/NativeBase/DataDisplay.js +67 -0
- package/src/mappings/NativeBase/DataDisplay.ts +79 -0
- package/src/mappings/NativeBase/Feedback.js +89 -0
- package/src/mappings/NativeBase/Feedback.ts +100 -0
- package/src/mappings/NativeBase/Layout.js +140 -0
- package/src/mappings/NativeBase/Layout.ts +152 -0
- package/src/mappings/NativeBase/Media.js +56 -0
- package/src/mappings/NativeBase/Media.ts +65 -0
- package/src/mappings/NativeBase/Menu.js +134 -0
- package/src/mappings/NativeBase/Menu.ts +150 -0
- package/src/mappings/NativeBase/Modal.js +103 -0
- package/src/mappings/NativeBase/Modal.ts +118 -0
- package/src/mappings/NativeBase/Other.js +123 -0
- package/src/mappings/NativeBase/Other.ts +139 -0
- package/src/mappings/NativeBase/Popover.js +123 -0
- package/src/mappings/NativeBase/Popover.ts +136 -0
- package/src/mappings/NativeBase/Select.js +71 -0
- package/src/mappings/NativeBase/Select.ts +85 -0
- package/src/mappings/NativeBase/Slider.js +89 -0
- package/src/mappings/NativeBase/Slider.ts +105 -0
- package/src/mappings/Touchable.js +7 -50
- package/src/mappings/Touchable.ts +6 -53
- package/lib/commonjs/components/Pressable.js +0 -37
- package/lib/module/components/Pressable.js +0 -30
- package/lib/typescript/src/components/Pressable.d.ts +0 -16
- package/lib/typescript/src/components/Pressable.d.ts.map +0 -1
- package/src/components/Pressable.js +0 -12
- package/src/components/Pressable.tsx +0 -50
package/src/index.js
CHANGED
|
@@ -2,52 +2,132 @@ export { injectIcon } from "./interfaces/Icon";
|
|
|
2
2
|
export { withTheme, ThemeProvider } from "./theming";
|
|
3
3
|
export { default as Provider } from "./Provider";
|
|
4
4
|
export { default as DefaultTheme } from "./styles/DefaultTheme";
|
|
5
|
-
|
|
5
|
+
/** Replaced By NativeBase
|
|
6
|
+
* export { default as Avatar } from "./components/CircleImage";
|
|
7
|
+
* export { default as Container } from "./components/Container";
|
|
8
|
+
* export { default as FAB } from "./components/FAB";
|
|
9
|
+
* export {
|
|
10
|
+
Center,
|
|
11
|
+
Circle,
|
|
12
|
+
Square,
|
|
13
|
+
Row,
|
|
14
|
+
Stack,
|
|
15
|
+
Spacer,
|
|
16
|
+
} from "./components/Layout";
|
|
17
|
+
*/
|
|
18
|
+
// BASIC
|
|
19
|
+
export { default as ScreenContainer } from "./components/ScreenContainer";
|
|
6
20
|
export { default as Banner } from "./components/Banner";
|
|
21
|
+
// BUTTONS
|
|
7
22
|
export { Button, ButtonSolid, ButtonOutline } from "./components/Button";
|
|
8
|
-
export {
|
|
9
|
-
export { default as AvatarEdit } from "./components/AvatarEdit";
|
|
10
|
-
export { default as Card } from "./components/Card";
|
|
11
|
-
export { default as Carousel } from "./components/Carousel";
|
|
12
|
-
export { Checkbox, CheckboxGroup, CheckboxRow } from "./components/Checkbox";
|
|
13
|
-
export { default as CircleImage } from "./components/CircleImage";
|
|
14
|
-
export { default as Container } from "./components/Container";
|
|
15
|
-
export { default as Divider } from "./components/Divider";
|
|
16
|
-
export { default as FAB } from "./components/FAB";
|
|
17
|
-
export { default as FieldSearchBarFull } from "./components/FieldSearchBarFull";
|
|
23
|
+
export { Link } from "./components/Text";
|
|
18
24
|
export { default as IconButton } from "./components/IconButton";
|
|
19
|
-
export { default as
|
|
20
|
-
export { default as
|
|
25
|
+
export { default as Touchable } from "./components/Touchable";
|
|
26
|
+
export { default as ToggleButton } from "./components/ToggleButton";
|
|
27
|
+
// INPUTS
|
|
28
|
+
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
21
29
|
export { default as NumberInput } from "./components/NumberInput";
|
|
22
|
-
export { default as
|
|
30
|
+
export { default as TextField } from "./components/TextField";
|
|
31
|
+
export { default as FieldSearchBarFull } from "./components/FieldSearchBarFull";
|
|
32
|
+
export { default as Picker } from "./components/Picker/Picker";
|
|
33
|
+
// CONTROLS
|
|
34
|
+
export { Checkbox, CheckboxGroup, CheckboxRow } from "./components/Checkbox";
|
|
35
|
+
export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup, } from "./components/RadioButton/index";
|
|
36
|
+
export { default as Slider } from "./components/Slider";
|
|
37
|
+
export { default as Stepper } from "./components/Stepper";
|
|
23
38
|
export { default as StarRating } from "./components/StarRating";
|
|
24
|
-
export { default as Surface } from "./components/Surface";
|
|
25
39
|
export { default as Switch, SwitchRow } from "./components/Switch";
|
|
26
|
-
|
|
27
|
-
export { default as
|
|
28
|
-
export { default as
|
|
29
|
-
export { default as
|
|
40
|
+
// MEDIA
|
|
41
|
+
export { default as SVG } from "./components/SVG";
|
|
42
|
+
export { default as Image } from "./components/Image";
|
|
43
|
+
// export { default as Avatar } from "./components/CircleImage"; Replaced by NativeBase
|
|
44
|
+
export { default as AvatarEdit } from "./components/AvatarEdit";
|
|
45
|
+
export { default as CircleImage } from "./components/CircleImage";
|
|
46
|
+
// SWIPER
|
|
47
|
+
export { Swiper, SwiperItem } from "./components/Swiper";
|
|
48
|
+
// CONTAINERS
|
|
30
49
|
export { AccordionGroup, AccordionItem } from "./components/Accordion";
|
|
50
|
+
export { default as Surface } from "./components/Surface";
|
|
51
|
+
// ACTIONSHEET
|
|
31
52
|
export { ActionSheet, ActionSheetItem, ActionSheetCancel, } from "./components/ActionSheet";
|
|
32
|
-
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
/* Deprecated: Fix or Delete! */
|
|
36
|
-
export { default as CardBlock } from "./components/CardBlock";
|
|
37
|
-
export { default as CardContainer } from "./components/CardContainer";
|
|
38
|
-
export { default as CardContainerRating } from "./components/CardContainerRating";
|
|
39
|
-
export { default as CardInline } from "./components/CardInline";
|
|
40
|
-
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
53
|
+
// OTHER
|
|
54
|
+
export { default as Carousel } from "./components/Carousel";
|
|
55
|
+
export { default as Divider } from "./components/Divider";
|
|
41
56
|
export { default as HeaderLarge } from "./components/HeaderLarge";
|
|
42
57
|
export { default as HeaderMedium } from "./components/HeaderMedium";
|
|
43
58
|
export { default as HeaderOverline } from "./components/HeaderOverline";
|
|
44
|
-
export { default as Picker } from "./components/Picker/Picker";
|
|
45
59
|
export { default as ProgressBar } from "./components/ProgressBar";
|
|
46
60
|
export { default as ProgressCircle } from "./components/ProgressCircle";
|
|
47
61
|
export { default as RowBodyIcon } from "./components/RowBodyIcon";
|
|
48
62
|
export { default as RowHeadlineImageCaption } from "./components/RowHeadlineImageCaption";
|
|
49
63
|
export { default as RowHeadlineImageIcon } from "./components/RowHeadlineImageIcon";
|
|
50
|
-
export { default as
|
|
51
|
-
export { default as
|
|
64
|
+
export { default as Card } from "./components/Card";
|
|
65
|
+
export { default as CardBlock } from "./components/CardBlock";
|
|
66
|
+
export { default as CardContainer } from "./components/CardContainer";
|
|
67
|
+
export { default as CardContainerRating } from "./components/CardContainerRating";
|
|
68
|
+
export { default as CardInline } from "./components/CardInline";
|
|
52
69
|
export { useAuthState } from "./components/useAuthState";
|
|
53
|
-
|
|
70
|
+
/**
|
|
71
|
+
* NativeBase Components Jan 2023
|
|
72
|
+
*
|
|
73
|
+
* ALERT
|
|
74
|
+
* - AlertDialog
|
|
75
|
+
* - AlertDialog.Header
|
|
76
|
+
* - AlertDialog.Body
|
|
77
|
+
* - AlertDialog.Footer
|
|
78
|
+
* - AlertDialog.Content
|
|
79
|
+
* - AlertDialog.CloseButton
|
|
80
|
+
*
|
|
81
|
+
* FORMS
|
|
82
|
+
* - Button -- COMMENTED OUT
|
|
83
|
+
* - Button.Group -- COMMENTED OUT
|
|
84
|
+
* - Fab
|
|
85
|
+
*
|
|
86
|
+
* DATA DISPLAY
|
|
87
|
+
* - Badge
|
|
88
|
+
* - Divider
|
|
89
|
+
*
|
|
90
|
+
* FEEDBACK
|
|
91
|
+
* - Alert
|
|
92
|
+
* - Alert.Icon
|
|
93
|
+
* - Progress
|
|
94
|
+
*
|
|
95
|
+
* LAYOUT
|
|
96
|
+
* - AspectRatio
|
|
97
|
+
* - Box
|
|
98
|
+
* - Center
|
|
99
|
+
* - Square
|
|
100
|
+
* - Circle
|
|
101
|
+
* - Column
|
|
102
|
+
* - Container
|
|
103
|
+
* - Flex
|
|
104
|
+
* - Spacer
|
|
105
|
+
* - Row
|
|
106
|
+
* - Stack
|
|
107
|
+
* - ZStack
|
|
108
|
+
*
|
|
109
|
+
* MEDIA
|
|
110
|
+
* - Avatar
|
|
111
|
+
* - Avatar.Badge
|
|
112
|
+
* - Avatar.Group
|
|
113
|
+
*
|
|
114
|
+
* MENU
|
|
115
|
+
* - Menu
|
|
116
|
+
* - Menu.Item
|
|
117
|
+
* - Menu.Group
|
|
118
|
+
* - Menu.OptionGroup
|
|
119
|
+
* - Menu.ItemOption
|
|
120
|
+
* - Menu.Trigger
|
|
121
|
+
*
|
|
122
|
+
* MODAL
|
|
123
|
+
* - Modal
|
|
124
|
+
* - Modal.Content
|
|
125
|
+
* - Modal.Header
|
|
126
|
+
* - Modal.Footer
|
|
127
|
+
* - Modal.Body
|
|
128
|
+
* - Modal.CloseButton
|
|
129
|
+
*
|
|
130
|
+
* OTHER
|
|
131
|
+
* - Tooltip
|
|
132
|
+
*
|
|
133
|
+
* */
|
package/src/index.tsx
CHANGED
|
@@ -3,40 +3,11 @@ export { withTheme, ThemeProvider } from "./theming";
|
|
|
3
3
|
export { default as Provider } from "./Provider";
|
|
4
4
|
export { default as DefaultTheme } from "./styles/DefaultTheme";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
export { default as
|
|
8
|
-
export {
|
|
9
|
-
export { default as
|
|
10
|
-
export {
|
|
11
|
-
export { default as Card } from "./components/Card";
|
|
12
|
-
export { default as Carousel } from "./components/Carousel";
|
|
13
|
-
export { Checkbox, CheckboxGroup, CheckboxRow } from "./components/Checkbox";
|
|
14
|
-
export { default as CircleImage } from "./components/CircleImage";
|
|
15
|
-
export { default as Container } from "./components/Container";
|
|
16
|
-
export { default as Divider } from "./components/Divider";
|
|
17
|
-
export { default as FAB } from "./components/FAB";
|
|
18
|
-
export { default as FieldSearchBarFull } from "./components/FieldSearchBarFull";
|
|
19
|
-
export { default as IconButton } from "./components/IconButton";
|
|
20
|
-
export { default as Image } from "./components/Image";
|
|
21
|
-
export { default as SVG } from "./components/SVG";
|
|
22
|
-
export { default as NumberInput } from "./components/NumberInput";
|
|
23
|
-
export { default as ScreenContainer } from "./components/ScreenContainer";
|
|
24
|
-
export { default as StarRating } from "./components/StarRating";
|
|
25
|
-
export { default as Surface } from "./components/Surface";
|
|
26
|
-
export { default as Switch, SwitchRow } from "./components/Switch";
|
|
27
|
-
export { default as TextField } from "./components/TextField";
|
|
28
|
-
export { default as ToggleButton } from "./components/ToggleButton";
|
|
29
|
-
export { default as Touchable } from "./components/Touchable";
|
|
30
|
-
export { default as Pressable } from "./components/Pressable";
|
|
31
|
-
export { AccordionGroup, AccordionItem } from "./components/Accordion";
|
|
32
|
-
export {
|
|
33
|
-
ActionSheet,
|
|
34
|
-
ActionSheetItem,
|
|
35
|
-
ActionSheetCancel,
|
|
36
|
-
} from "./components/ActionSheet";
|
|
37
|
-
export { Swiper, SwiperItem } from "./components/Swiper";
|
|
38
|
-
|
|
39
|
-
export {
|
|
6
|
+
/** Replaced By NativeBase
|
|
7
|
+
* export { default as Avatar } from "./components/CircleImage";
|
|
8
|
+
* export { default as Container } from "./components/Container";
|
|
9
|
+
* export { default as FAB } from "./components/FAB";
|
|
10
|
+
* export {
|
|
40
11
|
Center,
|
|
41
12
|
Circle,
|
|
42
13
|
Square,
|
|
@@ -44,31 +15,139 @@ export {
|
|
|
44
15
|
Stack,
|
|
45
16
|
Spacer,
|
|
46
17
|
} from "./components/Layout";
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
// BASIC
|
|
21
|
+
export { default as ScreenContainer } from "./components/ScreenContainer";
|
|
22
|
+
export { default as Banner } from "./components/Banner";
|
|
23
|
+
|
|
24
|
+
// BUTTONS
|
|
25
|
+
export { Button, ButtonSolid, ButtonOutline } from "./components/Button";
|
|
26
|
+
export { Link } from "./components/Text";
|
|
27
|
+
export { default as IconButton } from "./components/IconButton";
|
|
28
|
+
export { default as Touchable } from "./components/Touchable";
|
|
29
|
+
export { default as ToggleButton } from "./components/ToggleButton";
|
|
47
30
|
|
|
31
|
+
// INPUTS
|
|
32
|
+
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
33
|
+
export { default as NumberInput } from "./components/NumberInput";
|
|
34
|
+
export { default as TextField } from "./components/TextField";
|
|
35
|
+
export { default as FieldSearchBarFull } from "./components/FieldSearchBarFull";
|
|
36
|
+
export { default as Picker } from "./components/Picker/Picker";
|
|
37
|
+
|
|
38
|
+
// CONTROLS
|
|
39
|
+
export { Checkbox, CheckboxGroup, CheckboxRow } from "./components/Checkbox";
|
|
48
40
|
export {
|
|
49
41
|
RadioButton,
|
|
50
42
|
RadioButtonGroup,
|
|
51
43
|
RadioButtonRow,
|
|
52
44
|
RadioButtonFieldGroup,
|
|
53
45
|
} from "./components/RadioButton/index";
|
|
46
|
+
export { default as Slider } from "./components/Slider";
|
|
47
|
+
export { default as Stepper } from "./components/Stepper";
|
|
48
|
+
export { default as StarRating } from "./components/StarRating";
|
|
49
|
+
export { default as Switch, SwitchRow } from "./components/Switch";
|
|
54
50
|
|
|
55
|
-
|
|
56
|
-
export { default as
|
|
57
|
-
export { default as
|
|
58
|
-
export { default as
|
|
59
|
-
export { default as
|
|
60
|
-
export { default as
|
|
51
|
+
// MEDIA
|
|
52
|
+
export { default as SVG } from "./components/SVG";
|
|
53
|
+
export { default as Image } from "./components/Image";
|
|
54
|
+
// export { default as Avatar } from "./components/CircleImage"; Replaced by NativeBase
|
|
55
|
+
export { default as AvatarEdit } from "./components/AvatarEdit";
|
|
56
|
+
export { default as CircleImage } from "./components/CircleImage";
|
|
57
|
+
|
|
58
|
+
// SWIPER
|
|
59
|
+
export { Swiper, SwiperItem } from "./components/Swiper";
|
|
60
|
+
|
|
61
|
+
// CONTAINERS
|
|
62
|
+
export { AccordionGroup, AccordionItem } from "./components/Accordion";
|
|
63
|
+
export { default as Surface } from "./components/Surface";
|
|
64
|
+
|
|
65
|
+
// ACTIONSHEET
|
|
66
|
+
export {
|
|
67
|
+
ActionSheet,
|
|
68
|
+
ActionSheetItem,
|
|
69
|
+
ActionSheetCancel,
|
|
70
|
+
} from "./components/ActionSheet";
|
|
71
|
+
|
|
72
|
+
// OTHER
|
|
73
|
+
export { default as Carousel } from "./components/Carousel";
|
|
74
|
+
export { default as Divider } from "./components/Divider";
|
|
61
75
|
export { default as HeaderLarge } from "./components/HeaderLarge";
|
|
62
76
|
export { default as HeaderMedium } from "./components/HeaderMedium";
|
|
63
77
|
export { default as HeaderOverline } from "./components/HeaderOverline";
|
|
64
|
-
export { default as Picker } from "./components/Picker/Picker";
|
|
65
78
|
export { default as ProgressBar } from "./components/ProgressBar";
|
|
66
79
|
export { default as ProgressCircle } from "./components/ProgressCircle";
|
|
67
80
|
export { default as RowBodyIcon } from "./components/RowBodyIcon";
|
|
68
81
|
export { default as RowHeadlineImageCaption } from "./components/RowHeadlineImageCaption";
|
|
69
82
|
export { default as RowHeadlineImageIcon } from "./components/RowHeadlineImageIcon";
|
|
70
|
-
export { default as
|
|
71
|
-
export { default as
|
|
83
|
+
export { default as Card } from "./components/Card";
|
|
84
|
+
export { default as CardBlock } from "./components/CardBlock";
|
|
85
|
+
export { default as CardContainer } from "./components/CardContainer";
|
|
86
|
+
export { default as CardContainerRating } from "./components/CardContainerRating";
|
|
87
|
+
export { default as CardInline } from "./components/CardInline";
|
|
72
88
|
export { useAuthState } from "./components/useAuthState";
|
|
73
89
|
|
|
74
|
-
|
|
90
|
+
/**
|
|
91
|
+
* NativeBase Components Jan 2023
|
|
92
|
+
*
|
|
93
|
+
* ALERT
|
|
94
|
+
* - AlertDialog
|
|
95
|
+
* - AlertDialog.Header
|
|
96
|
+
* - AlertDialog.Body
|
|
97
|
+
* - AlertDialog.Footer
|
|
98
|
+
* - AlertDialog.Content
|
|
99
|
+
* - AlertDialog.CloseButton
|
|
100
|
+
*
|
|
101
|
+
* FORMS
|
|
102
|
+
* - Button -- COMMENTED OUT
|
|
103
|
+
* - Button.Group -- COMMENTED OUT
|
|
104
|
+
* - Fab
|
|
105
|
+
*
|
|
106
|
+
* DATA DISPLAY
|
|
107
|
+
* - Badge
|
|
108
|
+
* - Divider
|
|
109
|
+
*
|
|
110
|
+
* FEEDBACK
|
|
111
|
+
* - Alert
|
|
112
|
+
* - Alert.Icon
|
|
113
|
+
* - Progress
|
|
114
|
+
*
|
|
115
|
+
* LAYOUT
|
|
116
|
+
* - AspectRatio
|
|
117
|
+
* - Box
|
|
118
|
+
* - Center
|
|
119
|
+
* - Square
|
|
120
|
+
* - Circle
|
|
121
|
+
* - Column
|
|
122
|
+
* - Container
|
|
123
|
+
* - Flex
|
|
124
|
+
* - Spacer
|
|
125
|
+
* - Row
|
|
126
|
+
* - Stack
|
|
127
|
+
* - ZStack
|
|
128
|
+
*
|
|
129
|
+
* MEDIA
|
|
130
|
+
* - Avatar
|
|
131
|
+
* - Avatar.Badge
|
|
132
|
+
* - Avatar.Group
|
|
133
|
+
*
|
|
134
|
+
* MENU
|
|
135
|
+
* - Menu
|
|
136
|
+
* - Menu.Item
|
|
137
|
+
* - Menu.Group
|
|
138
|
+
* - Menu.OptionGroup
|
|
139
|
+
* - Menu.ItemOption
|
|
140
|
+
* - Menu.Trigger
|
|
141
|
+
*
|
|
142
|
+
* MODAL
|
|
143
|
+
* - Modal
|
|
144
|
+
* - Modal.Content
|
|
145
|
+
* - Modal.Header
|
|
146
|
+
* - Modal.Footer
|
|
147
|
+
* - Modal.Body
|
|
148
|
+
* - Modal.CloseButton
|
|
149
|
+
*
|
|
150
|
+
* OTHER
|
|
151
|
+
* - Tooltip
|
|
152
|
+
*
|
|
153
|
+
* */
|
package/src/mappings/Button.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createIconProp, createTextProp, createDisabledProp, createLoadingProp, createActionProp, Triggers, StylesPanelSections,
|
|
2
|
-
const SEED_DATA_TRIGGERS = [Triggers.OnPress
|
|
1
|
+
import { COMPONENT_TYPES, createIconProp, createTextProp, createDisabledProp, createLoadingProp, createActionProp, Triggers, StylesPanelSections, } from "@draftbit/types";
|
|
2
|
+
const SEED_DATA_TRIGGERS = [Triggers.OnPress];
|
|
3
3
|
const SEED_DATA_PROPS = {
|
|
4
4
|
onPress: createActionProp(),
|
|
5
|
-
onLongPress: createActionProp(),
|
|
6
5
|
icon: createIconProp({
|
|
7
6
|
defaultValue: null,
|
|
8
7
|
required: false,
|
|
@@ -14,36 +13,11 @@ const SEED_DATA_PROPS = {
|
|
|
14
13
|
}),
|
|
15
14
|
disabled: createDisabledProp(),
|
|
16
15
|
loading: createLoadingProp(),
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
max: 1,
|
|
23
|
-
step: 0.01,
|
|
24
|
-
precision: 2,
|
|
25
|
-
required: false,
|
|
26
|
-
}),
|
|
27
|
-
disabledOpacity: createStaticNumberProp({
|
|
28
|
-
label: "Disabled Opacity",
|
|
29
|
-
description: "Opacity of the button when disabled.",
|
|
30
|
-
defaultValue: 0.8,
|
|
31
|
-
min: 0,
|
|
32
|
-
max: 1,
|
|
33
|
-
step: 0.01,
|
|
34
|
-
precision: 2,
|
|
35
|
-
required: false,
|
|
36
|
-
}),
|
|
37
|
-
delayLongPress: createStaticNumberProp({
|
|
38
|
-
label: "Delay Long Press",
|
|
39
|
-
description: "Duration (in milliseconds) from onPressIn before onLongPress is called.",
|
|
40
|
-
required: false,
|
|
41
|
-
}),
|
|
42
|
-
hitSlop: createStaticNumberProp({
|
|
43
|
-
label: "Hit Slop",
|
|
44
|
-
description: "Sets additional distance outside of element in which a press can be detected",
|
|
45
|
-
required: false,
|
|
46
|
-
}),
|
|
16
|
+
};
|
|
17
|
+
const LAYOUT = {
|
|
18
|
+
backgroundColor: "transparent",
|
|
19
|
+
borderRadius: 8,
|
|
20
|
+
fontFamily: "system-700",
|
|
47
21
|
};
|
|
48
22
|
export const SEED_DATA = [
|
|
49
23
|
{
|
|
@@ -60,8 +34,7 @@ export const SEED_DATA = [
|
|
|
60
34
|
StylesPanelSections.Effects,
|
|
61
35
|
],
|
|
62
36
|
layout: {
|
|
63
|
-
|
|
64
|
-
fontFamily: "system-700",
|
|
37
|
+
...LAYOUT,
|
|
65
38
|
backgroundColor: "transparent",
|
|
66
39
|
borderWidth: 1,
|
|
67
40
|
textAlign: "center",
|
|
@@ -83,8 +56,7 @@ export const SEED_DATA = [
|
|
|
83
56
|
StylesPanelSections.Effects,
|
|
84
57
|
],
|
|
85
58
|
layout: {
|
|
86
|
-
|
|
87
|
-
fontFamily: "system-700",
|
|
59
|
+
...LAYOUT,
|
|
88
60
|
backgroundColor: "primary",
|
|
89
61
|
textAlign: "center",
|
|
90
62
|
},
|
|
@@ -105,8 +77,7 @@ export const SEED_DATA = [
|
|
|
105
77
|
StylesPanelSections.Effects,
|
|
106
78
|
],
|
|
107
79
|
layout: {
|
|
108
|
-
|
|
109
|
-
fontFamily: "system-700",
|
|
80
|
+
...LAYOUT,
|
|
110
81
|
backgroundColor: "primary",
|
|
111
82
|
textAlign: "center",
|
|
112
83
|
},
|
package/src/mappings/Button.ts
CHANGED
|
@@ -7,13 +7,11 @@ import {
|
|
|
7
7
|
createActionProp,
|
|
8
8
|
Triggers,
|
|
9
9
|
StylesPanelSections,
|
|
10
|
-
createStaticNumberProp,
|
|
11
10
|
} from "@draftbit/types";
|
|
12
11
|
|
|
13
|
-
const SEED_DATA_TRIGGERS = [Triggers.OnPress
|
|
12
|
+
const SEED_DATA_TRIGGERS = [Triggers.OnPress];
|
|
14
13
|
const SEED_DATA_PROPS = {
|
|
15
14
|
onPress: createActionProp(),
|
|
16
|
-
onLongPress: createActionProp(),
|
|
17
15
|
icon: createIconProp({
|
|
18
16
|
defaultValue: null,
|
|
19
17
|
required: false,
|
|
@@ -25,38 +23,12 @@ const SEED_DATA_PROPS = {
|
|
|
25
23
|
}),
|
|
26
24
|
disabled: createDisabledProp(),
|
|
27
25
|
loading: createLoadingProp(),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
step: 0.01,
|
|
35
|
-
precision: 2,
|
|
36
|
-
required: false,
|
|
37
|
-
}),
|
|
38
|
-
disabledOpacity: createStaticNumberProp({
|
|
39
|
-
label: "Disabled Opacity",
|
|
40
|
-
description: "Opacity of the button when disabled.",
|
|
41
|
-
defaultValue: 0.8,
|
|
42
|
-
min: 0,
|
|
43
|
-
max: 1,
|
|
44
|
-
step: 0.01,
|
|
45
|
-
precision: 2,
|
|
46
|
-
required: false,
|
|
47
|
-
}),
|
|
48
|
-
delayLongPress: createStaticNumberProp({
|
|
49
|
-
label: "Delay Long Press",
|
|
50
|
-
description:
|
|
51
|
-
"Duration (in milliseconds) from onPressIn before onLongPress is called.",
|
|
52
|
-
required: false,
|
|
53
|
-
}),
|
|
54
|
-
hitSlop: createStaticNumberProp({
|
|
55
|
-
label: "Hit Slop",
|
|
56
|
-
description:
|
|
57
|
-
"Sets additional distance outside of element in which a press can be detected",
|
|
58
|
-
required: false,
|
|
59
|
-
}),
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const LAYOUT = {
|
|
29
|
+
backgroundColor: "transparent",
|
|
30
|
+
borderRadius: 8,
|
|
31
|
+
fontFamily: "system-700",
|
|
60
32
|
};
|
|
61
33
|
|
|
62
34
|
export const SEED_DATA = [
|
|
@@ -74,8 +46,7 @@ export const SEED_DATA = [
|
|
|
74
46
|
StylesPanelSections.Effects,
|
|
75
47
|
],
|
|
76
48
|
layout: {
|
|
77
|
-
|
|
78
|
-
fontFamily: "system-700",
|
|
49
|
+
...LAYOUT,
|
|
79
50
|
backgroundColor: "transparent",
|
|
80
51
|
borderWidth: 1,
|
|
81
52
|
textAlign: "center",
|
|
@@ -97,8 +68,7 @@ export const SEED_DATA = [
|
|
|
97
68
|
StylesPanelSections.Effects,
|
|
98
69
|
],
|
|
99
70
|
layout: {
|
|
100
|
-
|
|
101
|
-
fontFamily: "system-700",
|
|
71
|
+
...LAYOUT,
|
|
102
72
|
backgroundColor: "primary",
|
|
103
73
|
textAlign: "center",
|
|
104
74
|
},
|
|
@@ -119,8 +89,7 @@ export const SEED_DATA = [
|
|
|
119
89
|
StylesPanelSections.Effects,
|
|
120
90
|
],
|
|
121
91
|
layout: {
|
|
122
|
-
|
|
123
|
-
fontFamily: "system-700",
|
|
92
|
+
...LAYOUT,
|
|
124
93
|
backgroundColor: "primary",
|
|
125
94
|
textAlign: "center",
|
|
126
95
|
},
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, StylesPanelSections, Triggers, createBoolProp, createStaticBoolProp, createTextEnumProp, createActionProp, createStaticNumberProp, } from "@draftbit/types";
|
|
2
|
+
const SHARED_SEED_DATA = {
|
|
3
|
+
category: COMPONENT_TYPES.NBAlert,
|
|
4
|
+
packageName: "native-base",
|
|
5
|
+
stylesPanelSections: [
|
|
6
|
+
StylesPanelSections.LayoutFlexItems,
|
|
7
|
+
StylesPanelSections.LayoutSelectedItem,
|
|
8
|
+
StylesPanelSections.LayoutContent,
|
|
9
|
+
StylesPanelSections.Background,
|
|
10
|
+
StylesPanelSections.Size,
|
|
11
|
+
StylesPanelSections.MarginsAndPaddings,
|
|
12
|
+
StylesPanelSections.Position,
|
|
13
|
+
StylesPanelSections.Borders,
|
|
14
|
+
StylesPanelSections.Effects,
|
|
15
|
+
],
|
|
16
|
+
layout: {},
|
|
17
|
+
};
|
|
18
|
+
export const SEED_DATA = [
|
|
19
|
+
{
|
|
20
|
+
name: "Alert Dialog",
|
|
21
|
+
tag: "AlertDialog",
|
|
22
|
+
description: "AlertDialog is used when a user needs to be interrupted with a mandatory confirmation or call-to-action. AlertDialog composes Modal so you can use all its props.",
|
|
23
|
+
...SHARED_SEED_DATA,
|
|
24
|
+
triggers: [Triggers.OnClose],
|
|
25
|
+
props: {
|
|
26
|
+
/* https://github.com/GeekyAnts/NativeBase/blob/master/src/components/composites/AlertDialog/types.tsx */
|
|
27
|
+
isOpen: createBoolProp({
|
|
28
|
+
label: "Is Open",
|
|
29
|
+
description: "If true, the modal will open. Useful for controllable state behavior.",
|
|
30
|
+
}),
|
|
31
|
+
defaultIsOpen: createStaticBoolProp({
|
|
32
|
+
label: "Default Is Open",
|
|
33
|
+
description: "If true, the modal will be opened by default.",
|
|
34
|
+
}),
|
|
35
|
+
size: createStaticNumberProp({
|
|
36
|
+
label: "Size",
|
|
37
|
+
description: "The size of the AlertDialog",
|
|
38
|
+
}),
|
|
39
|
+
avoidKeyboard: createStaticBoolProp({
|
|
40
|
+
label: "Avoid Keyboard",
|
|
41
|
+
description: "If true and the keyboard is opened, the modal will move up equivalent to the keyboard height.",
|
|
42
|
+
defaultValue: false,
|
|
43
|
+
}),
|
|
44
|
+
closeOnOverlayClick: createStaticBoolProp({
|
|
45
|
+
label: "Close on Overlay Click",
|
|
46
|
+
description: "If true, the modal will close when the overlay is clicked.",
|
|
47
|
+
defaultValue: true,
|
|
48
|
+
}),
|
|
49
|
+
isKeyboardDismissable: createStaticBoolProp({
|
|
50
|
+
label: "Is Keyboard Dismissable",
|
|
51
|
+
description: "If true, the modal will close when the keyboard is dismissed.",
|
|
52
|
+
defaultValue: true,
|
|
53
|
+
}),
|
|
54
|
+
overlayVisible: createStaticBoolProp({
|
|
55
|
+
label: "Overlay Visible",
|
|
56
|
+
description: "If true, the overlay element is visible.",
|
|
57
|
+
defaultValue: true,
|
|
58
|
+
}),
|
|
59
|
+
backdropVisible: createStaticBoolProp({
|
|
60
|
+
label: "Backdrop Visible",
|
|
61
|
+
description: "If true, the backdrop element is visible.",
|
|
62
|
+
defaultValue: true,
|
|
63
|
+
}),
|
|
64
|
+
animationPreset: createTextEnumProp({
|
|
65
|
+
label: "Animation Preset",
|
|
66
|
+
description: "The animation preset to use for the modal.",
|
|
67
|
+
options: ["slide", "fade", "none"],
|
|
68
|
+
defaultValue: "fade",
|
|
69
|
+
}),
|
|
70
|
+
useRNModal: createStaticBoolProp({
|
|
71
|
+
label: "Use RN Modal",
|
|
72
|
+
description: "If true, the modal will use the RN Modal component.",
|
|
73
|
+
}),
|
|
74
|
+
onClose: createActionProp(),
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "Alert Header",
|
|
79
|
+
tag: "AlertDialog.Header",
|
|
80
|
+
description: "Contains the title announced by screen readers.",
|
|
81
|
+
...SHARED_SEED_DATA,
|
|
82
|
+
props: {},
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "Alert Body",
|
|
86
|
+
tag: "AlertDialog.Body",
|
|
87
|
+
description: "Contains the description announced by screen readers.",
|
|
88
|
+
...SHARED_SEED_DATA,
|
|
89
|
+
props: {},
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: "Alert Footer",
|
|
93
|
+
tag: "AlertDialog.Footer",
|
|
94
|
+
description: "Contains the actions of the dialog.",
|
|
95
|
+
...SHARED_SEED_DATA,
|
|
96
|
+
props: {},
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: "Alert Content",
|
|
100
|
+
tag: "AlertDialog.Content",
|
|
101
|
+
description: "The wrapper for the alert dialog's content.",
|
|
102
|
+
...SHARED_SEED_DATA,
|
|
103
|
+
props: {},
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: "Alert Close Button",
|
|
107
|
+
tag: "AlertDialog.CloseButton",
|
|
108
|
+
description: "The button that closes the dialog",
|
|
109
|
+
...SHARED_SEED_DATA,
|
|
110
|
+
props: {},
|
|
111
|
+
},
|
|
112
|
+
];
|