@draftbit/core 47.0.1-df014a.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/index.js +25 -82
- 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/module/components/AvatarEdit.js +4 -15
- package/lib/module/components/CardBlock.js +4 -14
- package/lib/module/components/CircleImage.js +1 -16
- package/lib/module/components/DeprecatedCardWrapper.js +1 -18
- package/lib/module/components/FAB.js +4 -22
- package/lib/module/components/Picker/PickerComponent.ios.js +11 -36
- package/lib/module/components/Picker/PickerComponent.web.js +3 -21
- package/lib/module/components/Switch.js +10 -21
- package/lib/module/components/TextField.js +28 -78
- package/lib/module/components/Touchable.js +1 -18
- package/lib/module/index.js +121 -31
- 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/typescript/src/index.d.ts +102 -29
- package/lib/typescript/src/index.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/package.json +3 -3
- package/src/index.js +112 -31
- package/src/index.tsx +123 -43
- 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/lib/commonjs/mappings/DatePickerModal.js +0 -74
- package/lib/module/mappings/DatePickerModal.js +0 -65
- package/lib/typescript/src/mappings/DatePickerModal.d.ts +0 -153
- package/lib/typescript/src/mappings/DatePickerModal.d.ts.map +0 -1
- package/src/mappings/DatePickerModal.js +0 -73
- package/src/mappings/DatePickerModal.ts +0 -91
|
@@ -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,58 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, createActionProp, StylesPanelSections, Triggers, createBoolProp, createColorProp, createDisabledProp, createTextProp, createIconProp } from "@draftbit/types";
|
|
2
|
+
const SHARED_SEED_DATA = {
|
|
3
|
+
category: COMPONENT_TYPES.NBForms,
|
|
4
|
+
packageName: "native-base",
|
|
5
|
+
doc_link: "https://docs.nativebase.io/select",
|
|
6
|
+
code_link: "https://github.com/GeekyAnts/NativeBase/tree/master/src/components/primitives/Select",
|
|
7
|
+
stylesPanelSections: [StylesPanelSections.LayoutFlexItems, StylesPanelSections.LayoutSelectedItem, StylesPanelSections.LayoutContent, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Borders, StylesPanelSections.Effects],
|
|
8
|
+
layout: {},
|
|
9
|
+
allowChildren: true
|
|
10
|
+
};
|
|
11
|
+
export const SEED_DATA = [{
|
|
12
|
+
name: "Select",
|
|
13
|
+
tag: "Select",
|
|
14
|
+
description: "Select creates a dropdown list of items with the selected item in closed view.",
|
|
15
|
+
...SHARED_SEED_DATA,
|
|
16
|
+
triggers: [Triggers.OnOpen, Triggers.OnClose],
|
|
17
|
+
props: {
|
|
18
|
+
onOpen: createActionProp(),
|
|
19
|
+
onClose: createActionProp(),
|
|
20
|
+
placeholder: createTextProp({
|
|
21
|
+
label: "Placeholder",
|
|
22
|
+
defaultValue: "Select an option"
|
|
23
|
+
}),
|
|
24
|
+
color: createColorProp(),
|
|
25
|
+
placeholderTextColor: createColorProp(),
|
|
26
|
+
isDisabled: createDisabledProp(),
|
|
27
|
+
isHovered: createBoolProp({
|
|
28
|
+
label: "Hovered?",
|
|
29
|
+
description: "Whether the select is hovered"
|
|
30
|
+
}),
|
|
31
|
+
isFocused: createBoolProp({
|
|
32
|
+
label: "Focused?",
|
|
33
|
+
description: "Whether the select is hovered"
|
|
34
|
+
}),
|
|
35
|
+
isFocusVisible: createBoolProp({
|
|
36
|
+
label: "Focus Visible?",
|
|
37
|
+
description: "WIf true, the focus ring of select will be visible."
|
|
38
|
+
}),
|
|
39
|
+
dropdownIcon: createIconProp(),
|
|
40
|
+
dropdownOpenIcon: createIconProp(),
|
|
41
|
+
dropdownCloseIcon: createIconProp()
|
|
42
|
+
}
|
|
43
|
+
}, {
|
|
44
|
+
name: "Select Item",
|
|
45
|
+
tag: "Select.Item",
|
|
46
|
+
description: "An individual item in the menu.",
|
|
47
|
+
...SHARED_SEED_DATA,
|
|
48
|
+
props: {
|
|
49
|
+
label: createTextProp({
|
|
50
|
+
label: "Label",
|
|
51
|
+
description: "The label of the item"
|
|
52
|
+
}),
|
|
53
|
+
value: createTextProp({
|
|
54
|
+
label: "Value",
|
|
55
|
+
description: "The value of the item"
|
|
56
|
+
})
|
|
57
|
+
}
|
|
58
|
+
}];
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, createActionProp, createStaticBoolProp, createTextEnumProp, StylesPanelSections, Triggers, createNumberProp, createStaticNumberProp, createBoolProp, createDisabledProp, createAccessibilityLabelProp } from "@draftbit/types";
|
|
2
|
+
const SHARED_SEED_DATA = {
|
|
3
|
+
category: COMPONENT_TYPES.NBForms,
|
|
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: "Slider",
|
|
11
|
+
tag: "Slider",
|
|
12
|
+
description: "The Slider allows users to select options from a given range of values.",
|
|
13
|
+
...SHARED_SEED_DATA,
|
|
14
|
+
triggers: [Triggers.OnChange, Triggers.OnChangeEnd],
|
|
15
|
+
props: {
|
|
16
|
+
onChange: createActionProp(),
|
|
17
|
+
onChangeEnd: createActionProp(),
|
|
18
|
+
defaultValue: createNumberProp(),
|
|
19
|
+
thumbSize: createStaticNumberProp({
|
|
20
|
+
label: "Thumb Size",
|
|
21
|
+
description: "The size of the slider thumb"
|
|
22
|
+
}),
|
|
23
|
+
sliderTrackHeight: createStaticNumberProp({
|
|
24
|
+
label: "Slider Track Height",
|
|
25
|
+
description: "The height of the slider track"
|
|
26
|
+
}),
|
|
27
|
+
minValue: createStaticNumberProp({
|
|
28
|
+
label: "Min Value"
|
|
29
|
+
}),
|
|
30
|
+
maxValue: createStaticNumberProp({
|
|
31
|
+
label: "Max Value"
|
|
32
|
+
}),
|
|
33
|
+
step: createStaticNumberProp({
|
|
34
|
+
label: "Step"
|
|
35
|
+
}),
|
|
36
|
+
isReadOnly: createBoolProp({
|
|
37
|
+
label: "Read Only",
|
|
38
|
+
description: "Whether the slider is read only",
|
|
39
|
+
defaultValue: false
|
|
40
|
+
}),
|
|
41
|
+
isReversed: createStaticBoolProp({
|
|
42
|
+
label: "Reversed",
|
|
43
|
+
description: "If true, the value will be incremented or decremented in reverse.",
|
|
44
|
+
defaultValue: false
|
|
45
|
+
}),
|
|
46
|
+
orientation: createTextEnumProp({
|
|
47
|
+
label: "Orientation",
|
|
48
|
+
description: "The orientation of the Slider.",
|
|
49
|
+
options: ["horizontal", "vertical"],
|
|
50
|
+
defaultValue: "horizontal"
|
|
51
|
+
}),
|
|
52
|
+
isDisabled: createDisabledProp(),
|
|
53
|
+
accessibilityLabel: createAccessibilityLabelProp()
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
name: "Slider Track",
|
|
57
|
+
tag: "Menu.Item",
|
|
58
|
+
description: "An individual item in the menu.",
|
|
59
|
+
...SHARED_SEED_DATA,
|
|
60
|
+
props: {}
|
|
61
|
+
}, {
|
|
62
|
+
name: "Slider Filled Track",
|
|
63
|
+
tag: "Menu.Group",
|
|
64
|
+
description: "A wrapper to group related menu items.",
|
|
65
|
+
...SHARED_SEED_DATA,
|
|
66
|
+
props: {}
|
|
67
|
+
}, {
|
|
68
|
+
name: "Slider Thumb",
|
|
69
|
+
tag: "Menu.OptionGroup",
|
|
70
|
+
description: "A wrapper for checkable menu items (radio and checkbox).",
|
|
71
|
+
...SHARED_SEED_DATA,
|
|
72
|
+
triggers: [Triggers.OnChange],
|
|
73
|
+
props: {}
|
|
74
|
+
}];
|
|
@@ -2,50 +2,123 @@ 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
|
+
export { default as ScreenContainer } from "./components/ScreenContainer";
|
|
6
19
|
export { default as Banner } from "./components/Banner";
|
|
7
20
|
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";
|
|
21
|
+
export { Link } from "./components/Text";
|
|
18
22
|
export { default as IconButton } from "./components/IconButton";
|
|
19
|
-
export { default as
|
|
20
|
-
export { default as
|
|
23
|
+
export { default as Touchable } from "./components/Touchable";
|
|
24
|
+
export { default as ToggleButton } from "./components/ToggleButton";
|
|
25
|
+
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
21
26
|
export { default as NumberInput } from "./components/NumberInput";
|
|
22
|
-
export { default as
|
|
27
|
+
export { default as TextField } from "./components/TextField";
|
|
28
|
+
export { default as FieldSearchBarFull } from "./components/FieldSearchBarFull";
|
|
29
|
+
export { default as Picker } from "./components/Picker/Picker";
|
|
30
|
+
export { Checkbox, CheckboxGroup, CheckboxRow } from "./components/Checkbox";
|
|
31
|
+
export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup, } from "./components/RadioButton/index";
|
|
32
|
+
export { default as Slider } from "./components/Slider";
|
|
33
|
+
export { default as Stepper } from "./components/Stepper";
|
|
23
34
|
export { default as StarRating } from "./components/StarRating";
|
|
24
|
-
export { default as Surface } from "./components/Surface";
|
|
25
35
|
export { default as Switch, SwitchRow } from "./components/Switch";
|
|
26
|
-
export { default as
|
|
27
|
-
export { default as
|
|
28
|
-
export { default as
|
|
36
|
+
export { default as SVG } from "./components/SVG";
|
|
37
|
+
export { default as Image } from "./components/Image";
|
|
38
|
+
export { default as AvatarEdit } from "./components/AvatarEdit";
|
|
39
|
+
export { default as CircleImage } from "./components/CircleImage";
|
|
40
|
+
export { Swiper, SwiperItem } from "./components/Swiper";
|
|
29
41
|
export { AccordionGroup, AccordionItem } from "./components/Accordion";
|
|
42
|
+
export { default as Surface } from "./components/Surface";
|
|
30
43
|
export { ActionSheet, ActionSheetItem, ActionSheetCancel, } from "./components/ActionSheet";
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup, } from "./components/RadioButton/index";
|
|
34
|
-
export { default as CardBlock } from "./components/CardBlock";
|
|
35
|
-
export { default as CardContainer } from "./components/CardContainer";
|
|
36
|
-
export { default as CardContainerRating } from "./components/CardContainerRating";
|
|
37
|
-
export { default as CardInline } from "./components/CardInline";
|
|
38
|
-
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
44
|
+
export { default as Carousel } from "./components/Carousel";
|
|
45
|
+
export { default as Divider } from "./components/Divider";
|
|
39
46
|
export { default as HeaderLarge } from "./components/HeaderLarge";
|
|
40
47
|
export { default as HeaderMedium } from "./components/HeaderMedium";
|
|
41
48
|
export { default as HeaderOverline } from "./components/HeaderOverline";
|
|
42
|
-
export { default as Picker } from "./components/Picker/Picker";
|
|
43
49
|
export { default as ProgressBar } from "./components/ProgressBar";
|
|
44
50
|
export { default as ProgressCircle } from "./components/ProgressCircle";
|
|
45
51
|
export { default as RowBodyIcon } from "./components/RowBodyIcon";
|
|
46
52
|
export { default as RowHeadlineImageCaption } from "./components/RowHeadlineImageCaption";
|
|
47
53
|
export { default as RowHeadlineImageIcon } from "./components/RowHeadlineImageIcon";
|
|
48
|
-
export { default as
|
|
49
|
-
export { default as
|
|
54
|
+
export { default as Card } from "./components/Card";
|
|
55
|
+
export { default as CardBlock } from "./components/CardBlock";
|
|
56
|
+
export { default as CardContainer } from "./components/CardContainer";
|
|
57
|
+
export { default as CardContainerRating } from "./components/CardContainerRating";
|
|
58
|
+
export { default as CardInline } from "./components/CardInline";
|
|
50
59
|
export { useAuthState } from "./components/useAuthState";
|
|
60
|
+
/**
|
|
61
|
+
* NativeBase Components Jan 2023
|
|
62
|
+
*
|
|
63
|
+
* ALERT
|
|
64
|
+
* - AlertDialog
|
|
65
|
+
* - AlertDialog.Header
|
|
66
|
+
* - AlertDialog.Body
|
|
67
|
+
* - AlertDialog.Footer
|
|
68
|
+
* - AlertDialog.Content
|
|
69
|
+
* - AlertDialog.CloseButton
|
|
70
|
+
*
|
|
71
|
+
* FORMS
|
|
72
|
+
* - Button -- COMMENTED OUT
|
|
73
|
+
* - Button.Group -- COMMENTED OUT
|
|
74
|
+
* - Fab
|
|
75
|
+
*
|
|
76
|
+
* DATA DISPLAY
|
|
77
|
+
* - Badge
|
|
78
|
+
* - Divider
|
|
79
|
+
*
|
|
80
|
+
* FEEDBACK
|
|
81
|
+
* - Alert
|
|
82
|
+
* - Alert.Icon
|
|
83
|
+
* - Progress
|
|
84
|
+
*
|
|
85
|
+
* LAYOUT
|
|
86
|
+
* - AspectRatio
|
|
87
|
+
* - Box
|
|
88
|
+
* - Center
|
|
89
|
+
* - Square
|
|
90
|
+
* - Circle
|
|
91
|
+
* - Column
|
|
92
|
+
* - Container
|
|
93
|
+
* - Flex
|
|
94
|
+
* - Spacer
|
|
95
|
+
* - Row
|
|
96
|
+
* - Stack
|
|
97
|
+
* - ZStack
|
|
98
|
+
*
|
|
99
|
+
* MEDIA
|
|
100
|
+
* - Avatar
|
|
101
|
+
* - Avatar.Badge
|
|
102
|
+
* - Avatar.Group
|
|
103
|
+
*
|
|
104
|
+
* MENU
|
|
105
|
+
* - Menu
|
|
106
|
+
* - Menu.Item
|
|
107
|
+
* - Menu.Group
|
|
108
|
+
* - Menu.OptionGroup
|
|
109
|
+
* - Menu.ItemOption
|
|
110
|
+
* - Menu.Trigger
|
|
111
|
+
*
|
|
112
|
+
* MODAL
|
|
113
|
+
* - Modal
|
|
114
|
+
* - Modal.Content
|
|
115
|
+
* - Modal.Header
|
|
116
|
+
* - Modal.Footer
|
|
117
|
+
* - Modal.Body
|
|
118
|
+
* - Modal.CloseButton
|
|
119
|
+
*
|
|
120
|
+
* OTHER
|
|
121
|
+
* - Tooltip
|
|
122
|
+
*
|
|
123
|
+
* */
|
|
51
124
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEhE;;;;;;;;;;;;GAYG;AAGH,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAA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A2B,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+DK"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
export declare const SEED_DATA: ({
|
|
2
|
+
triggers: string[];
|
|
3
|
+
props: {
|
|
4
|
+
isOpen: {
|
|
5
|
+
label: string;
|
|
6
|
+
description: string;
|
|
7
|
+
formType: string;
|
|
8
|
+
propType: string;
|
|
9
|
+
defaultValue: boolean;
|
|
10
|
+
editable: boolean;
|
|
11
|
+
required: boolean;
|
|
12
|
+
group: string;
|
|
13
|
+
};
|
|
14
|
+
defaultIsOpen: {
|
|
15
|
+
label: string;
|
|
16
|
+
description: string;
|
|
17
|
+
formType: string;
|
|
18
|
+
propType: string;
|
|
19
|
+
defaultValue: boolean;
|
|
20
|
+
editable: boolean;
|
|
21
|
+
required: boolean;
|
|
22
|
+
group: string;
|
|
23
|
+
};
|
|
24
|
+
size: {
|
|
25
|
+
label: string;
|
|
26
|
+
description: string;
|
|
27
|
+
formType: string;
|
|
28
|
+
propType: string;
|
|
29
|
+
group: string;
|
|
30
|
+
defaultValue: null;
|
|
31
|
+
editable: boolean;
|
|
32
|
+
required: boolean;
|
|
33
|
+
step: number;
|
|
34
|
+
};
|
|
35
|
+
avoidKeyboard: {
|
|
36
|
+
label: string;
|
|
37
|
+
description: string;
|
|
38
|
+
formType: string;
|
|
39
|
+
propType: string;
|
|
40
|
+
defaultValue: boolean;
|
|
41
|
+
editable: boolean;
|
|
42
|
+
required: boolean;
|
|
43
|
+
group: string;
|
|
44
|
+
};
|
|
45
|
+
closeOnOverlayClick: {
|
|
46
|
+
label: string;
|
|
47
|
+
description: string;
|
|
48
|
+
formType: string;
|
|
49
|
+
propType: string;
|
|
50
|
+
defaultValue: boolean;
|
|
51
|
+
editable: boolean;
|
|
52
|
+
required: boolean;
|
|
53
|
+
group: string;
|
|
54
|
+
};
|
|
55
|
+
isKeyboardDismissable: {
|
|
56
|
+
label: string;
|
|
57
|
+
description: string;
|
|
58
|
+
formType: string;
|
|
59
|
+
propType: string;
|
|
60
|
+
defaultValue: boolean;
|
|
61
|
+
editable: boolean;
|
|
62
|
+
required: boolean;
|
|
63
|
+
group: string;
|
|
64
|
+
};
|
|
65
|
+
overlayVisible: {
|
|
66
|
+
label: string;
|
|
67
|
+
description: string;
|
|
68
|
+
formType: string;
|
|
69
|
+
propType: string;
|
|
70
|
+
defaultValue: boolean;
|
|
71
|
+
editable: boolean;
|
|
72
|
+
required: boolean;
|
|
73
|
+
group: string;
|
|
74
|
+
};
|
|
75
|
+
backdropVisible: {
|
|
76
|
+
label: string;
|
|
77
|
+
description: string;
|
|
78
|
+
formType: string;
|
|
79
|
+
propType: string;
|
|
80
|
+
defaultValue: boolean;
|
|
81
|
+
editable: boolean;
|
|
82
|
+
required: boolean;
|
|
83
|
+
group: string;
|
|
84
|
+
};
|
|
85
|
+
animationPreset: {
|
|
86
|
+
group: string;
|
|
87
|
+
label: string;
|
|
88
|
+
description: string;
|
|
89
|
+
editable: boolean;
|
|
90
|
+
required: boolean;
|
|
91
|
+
formType: string;
|
|
92
|
+
propType: string;
|
|
93
|
+
defaultValue: null;
|
|
94
|
+
options: never[];
|
|
95
|
+
};
|
|
96
|
+
useRNModal: {
|
|
97
|
+
label: string;
|
|
98
|
+
description: string;
|
|
99
|
+
formType: string;
|
|
100
|
+
propType: string;
|
|
101
|
+
defaultValue: boolean;
|
|
102
|
+
editable: boolean;
|
|
103
|
+
required: boolean;
|
|
104
|
+
group: string;
|
|
105
|
+
};
|
|
106
|
+
onClose: {
|
|
107
|
+
label: string;
|
|
108
|
+
description: string;
|
|
109
|
+
editable: boolean;
|
|
110
|
+
required: boolean;
|
|
111
|
+
formType: string;
|
|
112
|
+
propType: string;
|
|
113
|
+
defaultValue: null;
|
|
114
|
+
group: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
category: string;
|
|
118
|
+
packageName: string;
|
|
119
|
+
stylesPanelSections: string[];
|
|
120
|
+
layout: {};
|
|
121
|
+
name: string;
|
|
122
|
+
tag: string;
|
|
123
|
+
description: string;
|
|
124
|
+
} | {
|
|
125
|
+
props: {
|
|
126
|
+
isOpen?: undefined;
|
|
127
|
+
defaultIsOpen?: undefined;
|
|
128
|
+
size?: undefined;
|
|
129
|
+
avoidKeyboard?: undefined;
|
|
130
|
+
closeOnOverlayClick?: undefined;
|
|
131
|
+
isKeyboardDismissable?: undefined;
|
|
132
|
+
overlayVisible?: undefined;
|
|
133
|
+
backdropVisible?: undefined;
|
|
134
|
+
animationPreset?: undefined;
|
|
135
|
+
useRNModal?: undefined;
|
|
136
|
+
onClose?: undefined;
|
|
137
|
+
};
|
|
138
|
+
category: string;
|
|
139
|
+
packageName: string;
|
|
140
|
+
stylesPanelSections: string[];
|
|
141
|
+
layout: {};
|
|
142
|
+
name: string;
|
|
143
|
+
tag: string;
|
|
144
|
+
description: string;
|
|
145
|
+
})[];
|
|
146
|
+
//# sourceMappingURL=AlertDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertDialog.d.ts","sourceRoot":"","sources":["../../../../../src/mappings/NativeBase/AlertDialog.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmGrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/mappings/NativeBase/Button.ts"],"names":[],"mappings":""}
|