@draftbit/core 47.0.1-e04fa3.2 → 47.1.0
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 +1 -3
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +1 -2
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +1 -2
- package/lib/commonjs/components/DeprecatedButton.js +3 -27
- package/lib/commonjs/components/DeprecatedFAB.js +1 -2
- package/lib/commonjs/components/Justification.js +1 -5
- package/lib/commonjs/components/Pressable.js +37 -0
- package/lib/commonjs/components/ResizeMode.js +1 -5
- package/lib/commonjs/components/Swiper/Swiper.js +2 -0
- package/lib/commonjs/components/Touchable.js +8 -3
- package/lib/commonjs/index.js +89 -25
- package/lib/commonjs/mappings/Button.js +39 -10
- package/lib/commonjs/mappings/FlashList.js +45 -2
- package/lib/commonjs/mappings/FlatList.js +12 -0
- package/lib/commonjs/mappings/Swiper.js +2 -0
- package/lib/commonjs/mappings/Touchable.js +47 -7
- package/lib/module/components/Button.js +3 -3
- package/lib/module/components/Checkbox/Checkbox.js +2 -3
- package/lib/module/components/Checkbox/CheckboxGroupRow.js +2 -3
- package/lib/module/components/Checkbox/CheckboxRow.js +2 -3
- package/lib/module/components/DeprecatedButton.js +4 -28
- package/lib/module/components/DeprecatedFAB.js +2 -3
- package/lib/module/components/Justification.js +0 -1
- package/lib/module/components/Pressable.js +30 -0
- package/lib/module/components/ResizeMode.js +0 -1
- package/lib/module/components/Swiper/Swiper.js +2 -0
- package/lib/module/components/Touchable.js +8 -3
- package/lib/module/index.js +32 -121
- package/lib/module/mappings/Button.js +40 -11
- package/lib/module/mappings/FlashList.js +46 -3
- package/lib/module/mappings/FlatList.js +13 -1
- package/lib/module/mappings/Swiper.js +3 -1
- package/lib/module/mappings/Touchable.js +49 -9
- 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/Pressable.d.ts +10 -0
- package/lib/typescript/src/components/Pressable.d.ts.map +1 -0
- package/lib/typescript/src/components/Swiper/Swiper.d.ts +2 -1
- package/lib/typescript/src/components/Swiper/Swiper.d.ts.map +1 -1
- package/lib/typescript/src/components/Touchable.d.ts +5 -6
- package/lib/typescript/src/components/Touchable.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +30 -102
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/mappings/Button.d.ts +113 -4
- package/lib/typescript/src/mappings/Button.d.ts.map +1 -1
- package/lib/typescript/src/mappings/FlashList.d.ts +112 -2
- package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -1
- package/lib/typescript/src/mappings/FlatList.d.ts +42 -0
- package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -1
- package/lib/typescript/src/mappings/Swiper.d.ts +11 -0
- package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -1
- package/lib/typescript/src/mappings/Touchable.d.ts +59 -5
- package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/Button.tsx +14 -4
- package/src/components/Checkbox/Checkbox.tsx +5 -7
- package/src/components/Checkbox/CheckboxGroupRow.tsx +3 -3
- package/src/components/Checkbox/CheckboxRow.tsx +3 -3
- package/src/components/DeprecatedButton.tsx +7 -31
- package/src/components/DeprecatedFAB.tsx +5 -5
- package/src/components/Pressable.tsx +44 -0
- package/src/components/Swiper/Swiper.tsx +3 -0
- package/src/components/Touchable.tsx +11 -7
- package/src/index.tsx +44 -123
- package/src/mappings/Button.ts +41 -10
- package/src/mappings/FlashList.ts +82 -30
- package/src/mappings/FlatList.ts +16 -0
- package/src/mappings/Swiper.ts +4 -0
- package/src/mappings/Touchable.ts +53 -6
- package/lib/commonjs/mappings/NativeBase/AlertDialog.js +0 -102
- package/lib/commonjs/mappings/NativeBase/Button.js +0 -84
- package/lib/commonjs/mappings/NativeBase/DataDisplay.js +0 -61
- package/lib/commonjs/mappings/NativeBase/Feedback.js +0 -74
- package/lib/commonjs/mappings/NativeBase/Layout.js +0 -114
- package/lib/commonjs/mappings/NativeBase/Media.js +0 -49
- package/lib/commonjs/mappings/NativeBase/Menu.js +0 -111
- package/lib/commonjs/mappings/NativeBase/Modal.js +0 -93
- package/lib/commonjs/mappings/NativeBase/Other.js +0 -94
- package/lib/commonjs/mappings/NativeBase/Popover.js +0 -99
- package/lib/commonjs/mappings/NativeBase/Select.js +0 -65
- package/lib/commonjs/mappings/NativeBase/Slider.js +0 -81
- package/lib/module/mappings/NativeBase/AlertDialog.js +0 -95
- package/lib/module/mappings/NativeBase/Button.js +0 -86
- package/lib/module/mappings/NativeBase/DataDisplay.js +0 -54
- package/lib/module/mappings/NativeBase/Feedback.js +0 -67
- package/lib/module/mappings/NativeBase/Layout.js +0 -107
- package/lib/module/mappings/NativeBase/Media.js +0 -42
- package/lib/module/mappings/NativeBase/Menu.js +0 -104
- package/lib/module/mappings/NativeBase/Modal.js +0 -86
- package/lib/module/mappings/NativeBase/Other.js +0 -87
- package/lib/module/mappings/NativeBase/Popover.js +0 -92
- package/lib/module/mappings/NativeBase/Select.js +0 -58
- package/lib/module/mappings/NativeBase/Slider.js +0 -74
- package/lib/typescript/src/mappings/NativeBase/AlertDialog.d.ts +0 -146
- package/lib/typescript/src/mappings/NativeBase/AlertDialog.d.ts.map +0 -1
- package/lib/typescript/src/mappings/NativeBase/Button.d.ts +0 -1
- package/lib/typescript/src/mappings/NativeBase/Button.d.ts.map +0 -1
- package/lib/typescript/src/mappings/NativeBase/DataDisplay.d.ts +0 -96
- package/lib/typescript/src/mappings/NativeBase/DataDisplay.d.ts.map +0 -1
- package/lib/typescript/src/mappings/NativeBase/Feedback.d.ts +0 -2
- package/lib/typescript/src/mappings/NativeBase/Feedback.d.ts.map +0 -1
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +0 -146
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +0 -1
- package/lib/typescript/src/mappings/NativeBase/Media.d.ts +0 -48
- package/lib/typescript/src/mappings/NativeBase/Media.d.ts.map +0 -1
- package/lib/typescript/src/mappings/NativeBase/Menu.d.ts +0 -227
- package/lib/typescript/src/mappings/NativeBase/Menu.d.ts.map +0 -1
- package/lib/typescript/src/mappings/NativeBase/Modal.d.ts +0 -133
- package/lib/typescript/src/mappings/NativeBase/Modal.d.ts.map +0 -1
- package/lib/typescript/src/mappings/NativeBase/Other.d.ts +0 -179
- package/lib/typescript/src/mappings/NativeBase/Other.d.ts.map +0 -1
- package/lib/typescript/src/mappings/NativeBase/Popover.d.ts +0 -136
- package/lib/typescript/src/mappings/NativeBase/Popover.d.ts.map +0 -1
- package/lib/typescript/src/mappings/NativeBase/Select.d.ts +0 -156
- package/lib/typescript/src/mappings/NativeBase/Select.d.ts.map +0 -1
- package/lib/typescript/src/mappings/NativeBase/Slider.d.ts +0 -200
- package/lib/typescript/src/mappings/NativeBase/Slider.d.ts.map +0 -1
- package/src/Provider.js +0 -9
- package/src/components/Accordion/AccordionGroup.js +0 -44
- package/src/components/Accordion/AccordionItem.js +0 -32
- package/src/components/Accordion/index.js +0 -2
- package/src/components/ActionSheet/ActionSheet.js +0 -45
- package/src/components/ActionSheet/ActionSheetCancel.js +0 -6
- package/src/components/ActionSheet/ActionSheetItem.js +0 -30
- package/src/components/ActionSheet/index.js +0 -3
- package/src/components/AnimatedCircularProgress.js +0 -43
- package/src/components/AspectRatio.js +0 -18
- package/src/components/AvatarEdit.js +0 -30
- package/src/components/Banner.js +0 -109
- package/src/components/Button.js +0 -114
- package/src/components/Card.js +0 -57
- package/src/components/CardBlock.js +0 -54
- package/src/components/CardContainer.js +0 -69
- package/src/components/CardContainerRating.js +0 -79
- package/src/components/CardContainerShortImage.js +0 -33
- package/src/components/CardInline.js +0 -36
- package/src/components/Carousel.js +0 -68
- package/src/components/Checkbox/Checkbox.js +0 -63
- package/src/components/Checkbox/CheckboxGroup.js +0 -21
- package/src/components/Checkbox/CheckboxGroupRow.js +0 -77
- package/src/components/Checkbox/CheckboxRow.js +0 -78
- package/src/components/Checkbox/context.js +0 -14
- package/src/components/Checkbox/index.js +0 -3
- package/src/components/CircleImage.js +0 -8
- package/src/components/CircularProgress.js +0 -81
- package/src/components/Config.js +0 -64
- package/src/components/Container.js +0 -43
- package/src/components/DatePicker/DatePicker.js +0 -377
- package/src/components/DatePicker/DatePickerComponent.js +0 -13
- package/src/components/DatePicker/DatePickerComponent.web.js +0 -30
- package/src/components/DatePicker/DatePickerComponentType.js +0 -1
- package/src/components/DeprecatedButton.js +0 -95
- package/src/components/DeprecatedCardWrapper.js +0 -18
- package/src/components/DeprecatedFAB.js +0 -115
- package/src/components/Divider.js +0 -13
- package/src/components/Elevation.js +0 -20
- package/src/components/FAB.js +0 -46
- package/src/components/FieldSearchBarFull.js +0 -53
- package/src/components/FormRow.js +0 -19
- package/src/components/Header.js +0 -44
- package/src/components/HeaderLarge.js +0 -7
- package/src/components/HeaderMedium.js +0 -7
- package/src/components/HeaderOverline.js +0 -7
- package/src/components/IconButton.js +0 -35
- package/src/components/Image.js +0 -47
- package/src/components/Justification.js +0 -1
- package/src/components/Layout.js +0 -50
- package/src/components/NumberInput.js +0 -49
- package/src/components/Picker/Picker.js +0 -267
- package/src/components/Picker/PickerComponent.android.js +0 -69
- package/src/components/Picker/PickerComponent.ios.js +0 -79
- package/src/components/Picker/PickerComponent.web.js +0 -70
- package/src/components/Picker/PickerTypes.js +0 -1
- package/src/components/Portal/Portal.js +0 -35
- package/src/components/Portal/PortalConsumer.js +0 -27
- package/src/components/Portal/PortalHost.js +0 -107
- package/src/components/Portal/PortalManager.js +0 -32
- package/src/components/ProgressBar.js +0 -118
- package/src/components/ProgressCircle.js +0 -13
- package/src/components/ProgressIndicator.js +0 -27
- package/src/components/RadioButton/RadioButton.js +0 -17
- package/src/components/RadioButton/RadioButtonFieldGroup.js +0 -17
- package/src/components/RadioButton/RadioButtonGroup.js +0 -43
- package/src/components/RadioButton/RadioButtonRow.js +0 -76
- package/src/components/RadioButton/context.js +0 -14
- package/src/components/RadioButton/index.js +0 -4
- package/src/components/ResizeMode.js +0 -1
- package/src/components/Row.js +0 -48
- package/src/components/RowBodyIcon.js +0 -8
- package/src/components/RowHeadlineImageCaption.js +0 -12
- package/src/components/RowHeadlineImageIcon.js +0 -14
- package/src/components/SVG.js +0 -13
- package/src/components/ScreenContainer.js +0 -34
- package/src/components/Slider.js +0 -63
- package/src/components/StarRating.js +0 -50
- package/src/components/StepIndicator.js +0 -346
- package/src/components/Stepper.js +0 -41
- package/src/components/Surface.js +0 -32
- package/src/components/Swiper/Swiper.js +0 -29
- package/src/components/Swiper/SwiperItem.js +0 -9
- package/src/components/Swiper/index.js +0 -2
- package/src/components/Switch.js +0 -56
- package/src/components/Text.js +0 -33
- package/src/components/TextField.js +0 -428
- package/src/components/ToggleButton.js +0 -39
- package/src/components/Touchable.js +0 -12
- package/src/components/Touchable.web.js +0 -2
- package/src/components/Typography.js +0 -36
- package/src/components/useAuthState.js +0 -31
- package/src/constants.js +0 -10
- package/src/hooks.js +0 -12
- package/src/index.js +0 -133
- package/src/interfaces/Icon.js +0 -8
- package/src/mappings/Accordion.js +0 -41
- package/src/mappings/AccordionItem.js +0 -16
- package/src/mappings/ActionSheet.js +0 -13
- package/src/mappings/ActionSheetCancel.js +0 -19
- package/src/mappings/ActionSheetItem.js +0 -23
- package/src/mappings/ActivityIndicator.js +0 -58
- package/src/mappings/AudioPlayer.js +0 -57
- package/src/mappings/AvatarEdit.js +0 -38
- package/src/mappings/Banner.js +0 -32
- package/src/mappings/BlurView.js +0 -42
- package/src/mappings/Button.js +0 -87
- package/src/mappings/Card.js +0 -52
- package/src/mappings/CardBlock.js +0 -123
- package/src/mappings/CardContainer.js +0 -104
- package/src/mappings/CardContainerRating.js +0 -126
- package/src/mappings/CardContainerShortImage.js +0 -120
- package/src/mappings/CardInline.js +0 -52
- package/src/mappings/Carousel.js +0 -19
- package/src/mappings/Checkbox.js +0 -46
- package/src/mappings/CheckboxGroup.js +0 -26
- package/src/mappings/CheckboxRow.js +0 -61
- package/src/mappings/CircleImage.js +0 -25
- package/src/mappings/Container.js +0 -30
- package/src/mappings/CustomCode.js +0 -8
- package/src/mappings/DatePicker.js +0 -176
- package/src/mappings/Divider.js +0 -27
- package/src/mappings/FAB.js +0 -37
- package/src/mappings/Fetch.js +0 -13
- package/src/mappings/FieldSearchBarFull.js +0 -50
- package/src/mappings/FlashList.js +0 -33
- package/src/mappings/FlatList.js +0 -24
- package/src/mappings/HeaderLarge.js +0 -29
- package/src/mappings/HeaderMedium.js +0 -55
- package/src/mappings/HeaderOverline.js +0 -55
- package/src/mappings/Icon.js +0 -32
- package/src/mappings/IconButton.js +0 -35
- package/src/mappings/Image.js +0 -35
- package/src/mappings/ImageBackground.js +0 -29
- package/src/mappings/KeyboardAvoidingView.js +0 -41
- package/src/mappings/KeyboardAwareScrollView.js +0 -50
- package/src/mappings/Layout.js +0 -200
- package/src/mappings/LinearGradient.js +0 -77
- package/src/mappings/MapCallout.js +0 -21
- package/src/mappings/MapMarker.js +0 -47
- package/src/mappings/MapView.js +0 -139
- package/src/mappings/Modal.js +0 -42
- package/src/mappings/NativeBase/AlertDialog.js +0 -112
- package/src/mappings/NativeBase/AlertDialog.ts +0 -128
- package/src/mappings/NativeBase/Button.js +0 -84
- package/src/mappings/NativeBase/Button.ts +0 -83
- package/src/mappings/NativeBase/DataDisplay.js +0 -67
- package/src/mappings/NativeBase/DataDisplay.ts +0 -79
- package/src/mappings/NativeBase/Feedback.js +0 -89
- package/src/mappings/NativeBase/Feedback.ts +0 -100
- package/src/mappings/NativeBase/Layout.js +0 -140
- package/src/mappings/NativeBase/Layout.ts +0 -152
- package/src/mappings/NativeBase/Media.js +0 -56
- package/src/mappings/NativeBase/Media.ts +0 -65
- package/src/mappings/NativeBase/Menu.js +0 -134
- package/src/mappings/NativeBase/Menu.ts +0 -150
- package/src/mappings/NativeBase/Modal.js +0 -103
- package/src/mappings/NativeBase/Modal.ts +0 -118
- package/src/mappings/NativeBase/Other.js +0 -123
- package/src/mappings/NativeBase/Other.ts +0 -139
- package/src/mappings/NativeBase/Popover.js +0 -123
- package/src/mappings/NativeBase/Popover.ts +0 -136
- package/src/mappings/NativeBase/Select.js +0 -71
- package/src/mappings/NativeBase/Select.ts +0 -85
- package/src/mappings/NativeBase/Slider.js +0 -89
- package/src/mappings/NativeBase/Slider.ts +0 -105
- package/src/mappings/NumberInput.js +0 -254
- package/src/mappings/Picker.js +0 -148
- package/src/mappings/ProgressBar.js +0 -101
- package/src/mappings/ProgressCircle.js +0 -109
- package/src/mappings/ProgressIndicator.js +0 -181
- package/src/mappings/RadioButton.js +0 -51
- package/src/mappings/RadioButtonGroup.js +0 -17
- package/src/mappings/RadioButtonRow.js +0 -42
- package/src/mappings/RowBodyIcon.js +0 -75
- package/src/mappings/RowHeadlineImageCaption.js +0 -167
- package/src/mappings/RowHeadlineImageIcon.js +0 -99
- package/src/mappings/SVG.js +0 -20
- package/src/mappings/SafeAreaView.js +0 -33
- package/src/mappings/ScrollView.js +0 -31
- package/src/mappings/Slider.js +0 -60
- package/src/mappings/StarRating.js +0 -43
- package/src/mappings/Stepper.js +0 -32
- package/src/mappings/Surface.js +0 -14
- package/src/mappings/Swiper.js +0 -60
- package/src/mappings/SwiperItem.js +0 -8
- package/src/mappings/Switch.js +0 -81
- package/src/mappings/Text.js +0 -251
- package/src/mappings/TextArea.js +0 -274
- package/src/mappings/TextField.js +0 -391
- package/src/mappings/TextInput.js +0 -402
- package/src/mappings/ToggleButton.js +0 -50
- package/src/mappings/Touchable.js +0 -17
- package/src/mappings/Video.js +0 -81
- package/src/mappings/View.js +0 -207
- package/src/mappings/WebView.js +0 -88
- package/src/styles/DarkTheme.js +0 -26
- package/src/styles/DefaultTheme.js +0 -111
- package/src/styles/fonts.js +0 -62
- package/src/styles/overlay.js +0 -60
- package/src/styles/shadow.js +0 -51
- package/src/theming.js +0 -3
- package/src/utilities.js +0 -102
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
COMPONENT_TYPES,
|
|
3
|
-
createActionProp,
|
|
4
|
-
createStaticBoolProp,
|
|
5
|
-
createTextEnumProp,
|
|
6
|
-
StylesPanelSections,
|
|
7
|
-
Triggers,
|
|
8
|
-
createStaticNumberProp,
|
|
9
|
-
createDisabledProp,
|
|
10
|
-
createTextProp,
|
|
11
|
-
} from "@draftbit/types";
|
|
12
|
-
|
|
13
|
-
const SHARED_SEED_DATA = {
|
|
14
|
-
category: COMPONENT_TYPES.NBMenu,
|
|
15
|
-
packageName: "native-base",
|
|
16
|
-
stylesPanelSections: [
|
|
17
|
-
StylesPanelSections.LayoutFlexItems,
|
|
18
|
-
StylesPanelSections.LayoutSelectedItem,
|
|
19
|
-
StylesPanelSections.LayoutContent,
|
|
20
|
-
StylesPanelSections.Background,
|
|
21
|
-
StylesPanelSections.Size,
|
|
22
|
-
StylesPanelSections.MarginsAndPaddings,
|
|
23
|
-
StylesPanelSections.Position,
|
|
24
|
-
StylesPanelSections.Borders,
|
|
25
|
-
StylesPanelSections.Effects,
|
|
26
|
-
],
|
|
27
|
-
layout: {},
|
|
28
|
-
allowChildren: true,
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export const SEED_DATA = [
|
|
32
|
-
{
|
|
33
|
-
name: "Menu",
|
|
34
|
-
tag: "Menu",
|
|
35
|
-
description:
|
|
36
|
-
"Menu generates a dropdown menu along with the menu button design pattern.",
|
|
37
|
-
...SHARED_SEED_DATA,
|
|
38
|
-
triggers: [Triggers.OnOpen, Triggers.OnClose],
|
|
39
|
-
props: {
|
|
40
|
-
onOpen: createActionProp(),
|
|
41
|
-
onClose: createActionProp(),
|
|
42
|
-
closeOnSelect: createStaticBoolProp({
|
|
43
|
-
label: "Close on Select",
|
|
44
|
-
description: "Close the menu when an item is selected",
|
|
45
|
-
defaultValue: true,
|
|
46
|
-
}),
|
|
47
|
-
defaultIsOpen: createStaticBoolProp({
|
|
48
|
-
label: "Default Is Open",
|
|
49
|
-
description: "Whether the menu is open by default",
|
|
50
|
-
defaultValue: false,
|
|
51
|
-
}),
|
|
52
|
-
placement: createTextEnumProp({
|
|
53
|
-
label: "Placement",
|
|
54
|
-
description: "The placement of the menu",
|
|
55
|
-
options: [
|
|
56
|
-
"bottom",
|
|
57
|
-
"top",
|
|
58
|
-
"left",
|
|
59
|
-
"right",
|
|
60
|
-
"top left",
|
|
61
|
-
"top right",
|
|
62
|
-
"bottom left",
|
|
63
|
-
"bottom right",
|
|
64
|
-
"right bottom",
|
|
65
|
-
"right top",
|
|
66
|
-
"left bottom",
|
|
67
|
-
"left top",
|
|
68
|
-
],
|
|
69
|
-
defaultValue: "bottom left",
|
|
70
|
-
}),
|
|
71
|
-
offset: createStaticNumberProp({
|
|
72
|
-
label: "Offset",
|
|
73
|
-
description:
|
|
74
|
-
"The distance applied along the main axis between the trigger and the menu.",
|
|
75
|
-
}),
|
|
76
|
-
crossOffset: createStaticNumberProp({
|
|
77
|
-
label: "Cross Offset",
|
|
78
|
-
description:
|
|
79
|
-
"The distance applied along the cross axis between the trigger and the menu.",
|
|
80
|
-
}),
|
|
81
|
-
shouldFlip: createStaticBoolProp({
|
|
82
|
-
label: "Should Flip",
|
|
83
|
-
description:
|
|
84
|
-
"Whether popover should flip when it reaches the edge of the screen.",
|
|
85
|
-
defaultValue: true,
|
|
86
|
-
}),
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
name: "Menu Item",
|
|
91
|
-
tag: "Menu.Item",
|
|
92
|
-
description: "An individual item in the menu.",
|
|
93
|
-
...SHARED_SEED_DATA,
|
|
94
|
-
props: {
|
|
95
|
-
isDisabled: createDisabledProp(),
|
|
96
|
-
textValue: createTextProp({
|
|
97
|
-
label: "Text Value",
|
|
98
|
-
description: "The text value available for the typeahead menu feature.",
|
|
99
|
-
}),
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
name: "Menu Group",
|
|
104
|
-
tag: "Menu.Group",
|
|
105
|
-
description: "A wrapper to group related menu items.",
|
|
106
|
-
...SHARED_SEED_DATA,
|
|
107
|
-
props: {
|
|
108
|
-
title: createTextProp({
|
|
109
|
-
label: "Title",
|
|
110
|
-
description: "The title of the menu group.",
|
|
111
|
-
}),
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
name: "Menu Option Group",
|
|
116
|
-
tag: "Menu.OptionGroup",
|
|
117
|
-
description: "A wrapper for checkable menu items (radio and checkbox).",
|
|
118
|
-
...SHARED_SEED_DATA,
|
|
119
|
-
triggers: [Triggers.OnChange],
|
|
120
|
-
props: {
|
|
121
|
-
type: createTextEnumProp({
|
|
122
|
-
label: "Type",
|
|
123
|
-
description: "The type of the menu option group.",
|
|
124
|
-
options: ["checkbox", "radio"],
|
|
125
|
-
defaultValue: "checkbox",
|
|
126
|
-
}),
|
|
127
|
-
onChange: createActionProp(),
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
name: "Menu Item Option",
|
|
132
|
-
tag: "Menu.ItemOption",
|
|
133
|
-
description: "The checkable menu item to be used with Menu Option Group.",
|
|
134
|
-
...SHARED_SEED_DATA,
|
|
135
|
-
props: {
|
|
136
|
-
isDisabled: createDisabledProp(),
|
|
137
|
-
textValue: createTextProp({
|
|
138
|
-
label: "Text Value",
|
|
139
|
-
description: "The text value available for the typeahead menu feature.",
|
|
140
|
-
}),
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
name: "Menu Trigger",
|
|
145
|
-
tag: "Menu.Trigger",
|
|
146
|
-
description: "Used to wrap the reference (or trigger) element.",
|
|
147
|
-
...SHARED_SEED_DATA,
|
|
148
|
-
props: {},
|
|
149
|
-
},
|
|
150
|
-
];
|
|
@@ -1,103 +0,0 @@
|
|
|
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: [
|
|
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
|
-
};
|
|
17
|
-
export const SEED_DATA = [
|
|
18
|
-
{
|
|
19
|
-
name: "Modal",
|
|
20
|
-
tag: "Modal",
|
|
21
|
-
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.",
|
|
22
|
-
...SHARED_SEED_DATA,
|
|
23
|
-
layout: {},
|
|
24
|
-
triggers: [Triggers.OnClose, Triggers.OnOpen],
|
|
25
|
-
props: {
|
|
26
|
-
isOpen: createBoolProp({
|
|
27
|
-
label: "Is Open",
|
|
28
|
-
description: "If true, the modal will open. Useful for controllable state behavior.",
|
|
29
|
-
}),
|
|
30
|
-
defaultIsOpen: createStaticBoolProp({
|
|
31
|
-
label: "Default Is Open",
|
|
32
|
-
description: "If true, the modal will be opened by default.",
|
|
33
|
-
}),
|
|
34
|
-
avoidKeyboard: createStaticBoolProp({
|
|
35
|
-
label: "Avoid Keyboard",
|
|
36
|
-
description: "If true and the keyboard is opened, the modal will move up equivalent to the keyboard height.",
|
|
37
|
-
defaultValue: false,
|
|
38
|
-
}),
|
|
39
|
-
closeOnOverlayClick: createStaticBoolProp({
|
|
40
|
-
label: "Close on Overlay Click",
|
|
41
|
-
description: "If true, the modal will close when the overlay is clicked.",
|
|
42
|
-
defaultValue: true,
|
|
43
|
-
}),
|
|
44
|
-
isKeyboardDismissable: createStaticBoolProp({
|
|
45
|
-
label: "Is Keyboard Dismissable",
|
|
46
|
-
description: "If true, the modal will close when the keyboard is dismissed.",
|
|
47
|
-
defaultValue: true,
|
|
48
|
-
}),
|
|
49
|
-
backdropVisible: createStaticBoolProp({
|
|
50
|
-
label: "Backdrop Visible",
|
|
51
|
-
description: "If true, the backdrop element is visible.",
|
|
52
|
-
defaultValue: true,
|
|
53
|
-
}),
|
|
54
|
-
animationPreset: createTextEnumProp({
|
|
55
|
-
label: "Animation Preset",
|
|
56
|
-
description: "The animation preset to use for the modal.",
|
|
57
|
-
options: ["slide", "fade", "none"],
|
|
58
|
-
defaultValue: "fade",
|
|
59
|
-
}),
|
|
60
|
-
useRNModal: createStaticBoolProp({
|
|
61
|
-
label: "Use RN Modal",
|
|
62
|
-
description: "If true, the modal will use the RN Modal component.",
|
|
63
|
-
}),
|
|
64
|
-
onOpen: createActionProp(),
|
|
65
|
-
onClose: createActionProp(),
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
name: "Modal Content",
|
|
70
|
-
tag: "Modal.Content",
|
|
71
|
-
description: "The container for the modal dialog's content.",
|
|
72
|
-
...SHARED_SEED_DATA,
|
|
73
|
-
props: {},
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
name: "Modal Header",
|
|
77
|
-
tag: "Modal.Header",
|
|
78
|
-
description: "The header that labels the modal dialog.",
|
|
79
|
-
...SHARED_SEED_DATA,
|
|
80
|
-
props: {},
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
name: "Modal Footer",
|
|
84
|
-
tag: "Modal.Footer",
|
|
85
|
-
description: "The footer that houses the modal actions.",
|
|
86
|
-
...SHARED_SEED_DATA,
|
|
87
|
-
props: {},
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
name: "Modal Body",
|
|
91
|
-
tag: "Modal.Body",
|
|
92
|
-
description: "A wrapper that houses the modal's main content",
|
|
93
|
-
...SHARED_SEED_DATA,
|
|
94
|
-
props: {},
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
name: "Modal Close Button",
|
|
98
|
-
tag: "Modal.CloseButton",
|
|
99
|
-
description: "The button that closes the modal.",
|
|
100
|
-
...SHARED_SEED_DATA,
|
|
101
|
-
props: {},
|
|
102
|
-
},
|
|
103
|
-
];
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
COMPONENT_TYPES,
|
|
3
|
-
createActionProp,
|
|
4
|
-
createBoolProp,
|
|
5
|
-
createStaticBoolProp,
|
|
6
|
-
createTextEnumProp,
|
|
7
|
-
StylesPanelSections,
|
|
8
|
-
Triggers,
|
|
9
|
-
} from "@draftbit/types";
|
|
10
|
-
|
|
11
|
-
const SHARED_SEED_DATA = {
|
|
12
|
-
category: COMPONENT_TYPES.NBModal,
|
|
13
|
-
packageName: "native-base",
|
|
14
|
-
stylesPanelSections: [
|
|
15
|
-
StylesPanelSections.LayoutFlexItems,
|
|
16
|
-
StylesPanelSections.LayoutSelectedItem,
|
|
17
|
-
StylesPanelSections.LayoutContent,
|
|
18
|
-
StylesPanelSections.Background,
|
|
19
|
-
StylesPanelSections.Size,
|
|
20
|
-
StylesPanelSections.MarginsAndPaddings,
|
|
21
|
-
StylesPanelSections.Position,
|
|
22
|
-
StylesPanelSections.Borders,
|
|
23
|
-
StylesPanelSections.Effects,
|
|
24
|
-
],
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const SEED_DATA = [
|
|
28
|
-
{
|
|
29
|
-
name: "Modal",
|
|
30
|
-
tag: "Modal",
|
|
31
|
-
description:
|
|
32
|
-
"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.",
|
|
33
|
-
...SHARED_SEED_DATA,
|
|
34
|
-
layout: {},
|
|
35
|
-
triggers: [Triggers.OnClose, Triggers.OnOpen],
|
|
36
|
-
props: {
|
|
37
|
-
isOpen: createBoolProp({
|
|
38
|
-
label: "Is Open",
|
|
39
|
-
description:
|
|
40
|
-
"If true, the modal will open. Useful for controllable state behavior.",
|
|
41
|
-
}),
|
|
42
|
-
defaultIsOpen: createStaticBoolProp({
|
|
43
|
-
label: "Default Is Open",
|
|
44
|
-
description: "If true, the modal will be opened by default.",
|
|
45
|
-
}),
|
|
46
|
-
avoidKeyboard: createStaticBoolProp({
|
|
47
|
-
label: "Avoid Keyboard",
|
|
48
|
-
description:
|
|
49
|
-
"If true and the keyboard is opened, the modal will move up equivalent to the keyboard height.",
|
|
50
|
-
defaultValue: false,
|
|
51
|
-
}),
|
|
52
|
-
closeOnOverlayClick: createStaticBoolProp({
|
|
53
|
-
label: "Close on Overlay Click",
|
|
54
|
-
description:
|
|
55
|
-
"If true, the modal will close when the overlay is clicked.",
|
|
56
|
-
defaultValue: true,
|
|
57
|
-
}),
|
|
58
|
-
isKeyboardDismissable: createStaticBoolProp({
|
|
59
|
-
label: "Is Keyboard Dismissable",
|
|
60
|
-
description:
|
|
61
|
-
"If true, the modal will close when the keyboard is dismissed.",
|
|
62
|
-
defaultValue: true,
|
|
63
|
-
}),
|
|
64
|
-
backdropVisible: createStaticBoolProp({
|
|
65
|
-
label: "Backdrop Visible",
|
|
66
|
-
description: "If true, the backdrop element is visible.",
|
|
67
|
-
defaultValue: true,
|
|
68
|
-
}),
|
|
69
|
-
animationPreset: createTextEnumProp({
|
|
70
|
-
label: "Animation Preset",
|
|
71
|
-
description: "The animation preset to use for the modal.",
|
|
72
|
-
options: ["slide", "fade", "none"],
|
|
73
|
-
defaultValue: "fade",
|
|
74
|
-
}),
|
|
75
|
-
useRNModal: createStaticBoolProp({
|
|
76
|
-
label: "Use RN Modal",
|
|
77
|
-
description: "If true, the modal will use the RN Modal component.",
|
|
78
|
-
}),
|
|
79
|
-
onOpen: createActionProp(),
|
|
80
|
-
onClose: createActionProp(),
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
name: "Modal Content",
|
|
85
|
-
tag: "Modal.Content",
|
|
86
|
-
description: "The container for the modal dialog's content.",
|
|
87
|
-
...SHARED_SEED_DATA,
|
|
88
|
-
props: {},
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name: "Modal Header",
|
|
92
|
-
tag: "Modal.Header",
|
|
93
|
-
description: "The header that labels the modal dialog.",
|
|
94
|
-
...SHARED_SEED_DATA,
|
|
95
|
-
props: {},
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: "Modal Footer",
|
|
99
|
-
tag: "Modal.Footer",
|
|
100
|
-
description: "The footer that houses the modal actions.",
|
|
101
|
-
...SHARED_SEED_DATA,
|
|
102
|
-
props: {},
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
name: "Modal Body",
|
|
106
|
-
tag: "Modal.Body",
|
|
107
|
-
description: "A wrapper that houses the modal's main content",
|
|
108
|
-
...SHARED_SEED_DATA,
|
|
109
|
-
props: {},
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
name: "Modal Close Button",
|
|
113
|
-
tag: "Modal.CloseButton",
|
|
114
|
-
description: "The button that closes the modal.",
|
|
115
|
-
...SHARED_SEED_DATA,
|
|
116
|
-
props: {},
|
|
117
|
-
},
|
|
118
|
-
];
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, StylesPanelSections, createTextEnumProp, createTextProp, createIconProp, createBoolProp, createDisabledProp, createStaticNumberProp, createStaticBoolProp, Triggers, createActionProp, } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = [
|
|
3
|
-
{
|
|
4
|
-
name: "FAB",
|
|
5
|
-
tag: "Fab",
|
|
6
|
-
description: "A floating action button (FAB) is a circular icon button that hovers over content to execute a primary action in the application.",
|
|
7
|
-
category: COMPONENT_TYPES.NBForms,
|
|
8
|
-
packageName: "native-base",
|
|
9
|
-
doc_link: "https://www.npmjs.com/package/@expo/html-elements",
|
|
10
|
-
code_link: "https://github.com/expo/expo/tree/master/packages/html-elements",
|
|
11
|
-
stylesPanelSections: [
|
|
12
|
-
StylesPanelSections.LayoutFlexItems,
|
|
13
|
-
StylesPanelSections.LayoutSelectedItem,
|
|
14
|
-
StylesPanelSections.LayoutContent,
|
|
15
|
-
StylesPanelSections.Background,
|
|
16
|
-
StylesPanelSections.Size,
|
|
17
|
-
StylesPanelSections.MarginsAndPaddings,
|
|
18
|
-
StylesPanelSections.Position,
|
|
19
|
-
StylesPanelSections.Borders,
|
|
20
|
-
StylesPanelSections.Effects,
|
|
21
|
-
],
|
|
22
|
-
layout: {},
|
|
23
|
-
triggers: {},
|
|
24
|
-
props: {
|
|
25
|
-
placement: createTextEnumProp({
|
|
26
|
-
label: "Placement",
|
|
27
|
-
description: "The placement of the Fab relative to the device.",
|
|
28
|
-
options: ["bottom-right", "top-right", "top-left", "bottom-left"],
|
|
29
|
-
defaultValue: "bottom-right",
|
|
30
|
-
}),
|
|
31
|
-
label: createTextProp({
|
|
32
|
-
label: "Label",
|
|
33
|
-
description: "The Text to be displayed in Fab.",
|
|
34
|
-
}),
|
|
35
|
-
icon: createIconProp({
|
|
36
|
-
label: "Icon",
|
|
37
|
-
description: "Icon to be displayed in Fab. ",
|
|
38
|
-
}),
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
name: "Tooltip",
|
|
43
|
-
tag: "Tooltip",
|
|
44
|
-
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.",
|
|
45
|
-
category: COMPONENT_TYPES.NBOther,
|
|
46
|
-
packageName: "native-base",
|
|
47
|
-
allowChildren: true,
|
|
48
|
-
stylesPanelSections: [
|
|
49
|
-
StylesPanelSections.LayoutFlexItems,
|
|
50
|
-
StylesPanelSections.LayoutSelectedItem,
|
|
51
|
-
StylesPanelSections.LayoutContent,
|
|
52
|
-
StylesPanelSections.Background,
|
|
53
|
-
StylesPanelSections.Size,
|
|
54
|
-
StylesPanelSections.MarginsAndPaddings,
|
|
55
|
-
StylesPanelSections.Position,
|
|
56
|
-
StylesPanelSections.Borders,
|
|
57
|
-
StylesPanelSections.Effects,
|
|
58
|
-
],
|
|
59
|
-
layout: {},
|
|
60
|
-
triggers: [Triggers.OnOpen, Triggers.OnClose],
|
|
61
|
-
props: {
|
|
62
|
-
label: createTextProp({
|
|
63
|
-
label: "Label",
|
|
64
|
-
description: "The Text to be displayed in Tooltip.",
|
|
65
|
-
}),
|
|
66
|
-
isOpen: createBoolProp({
|
|
67
|
-
label: "Is Open",
|
|
68
|
-
description: "Whether the tooltip is open or not.",
|
|
69
|
-
}),
|
|
70
|
-
isDisabled: createDisabledProp(),
|
|
71
|
-
defaultIsOpen: createStaticBoolProp({
|
|
72
|
-
label: "Default Is Open",
|
|
73
|
-
description: "Whether the tooltip is open by default",
|
|
74
|
-
defaultValue: false,
|
|
75
|
-
}),
|
|
76
|
-
onOpen: createActionProp(),
|
|
77
|
-
onClose: createActionProp(),
|
|
78
|
-
openDelay: createStaticNumberProp({
|
|
79
|
-
label: "Open Delay",
|
|
80
|
-
description: "Delay in ms before tooltip opens",
|
|
81
|
-
defaultValue: 0,
|
|
82
|
-
}),
|
|
83
|
-
closeDelay: createStaticNumberProp({
|
|
84
|
-
label: "Close Delay",
|
|
85
|
-
description: "Delay in ms before tooltip closes",
|
|
86
|
-
defaultValue: 0,
|
|
87
|
-
}),
|
|
88
|
-
placement: createTextEnumProp({
|
|
89
|
-
label: "Placement",
|
|
90
|
-
description: "The placement of the menu",
|
|
91
|
-
options: [
|
|
92
|
-
"bottom",
|
|
93
|
-
"top",
|
|
94
|
-
"left",
|
|
95
|
-
"right",
|
|
96
|
-
"top left",
|
|
97
|
-
"top right",
|
|
98
|
-
"bottom left",
|
|
99
|
-
"bottom right",
|
|
100
|
-
"right bottom",
|
|
101
|
-
"right top",
|
|
102
|
-
"left bottom",
|
|
103
|
-
"left top",
|
|
104
|
-
],
|
|
105
|
-
defaultValue: "bottom",
|
|
106
|
-
}),
|
|
107
|
-
arrowSize: createStaticNumberProp({
|
|
108
|
-
label: "Arrow Size",
|
|
109
|
-
description: "The size of the arrow",
|
|
110
|
-
defaultValue: 12,
|
|
111
|
-
}),
|
|
112
|
-
hasArrow: createStaticBoolProp({
|
|
113
|
-
label: "Has Arrow",
|
|
114
|
-
description: "Whether the tooltip has an arrow",
|
|
115
|
-
defaultValue: false,
|
|
116
|
-
}),
|
|
117
|
-
offset: createStaticNumberProp({
|
|
118
|
-
label: "Offset",
|
|
119
|
-
description: "The distance between the triggere and the tooltip.",
|
|
120
|
-
}),
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
];
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
COMPONENT_TYPES,
|
|
3
|
-
StylesPanelSections,
|
|
4
|
-
createTextEnumProp,
|
|
5
|
-
createTextProp,
|
|
6
|
-
createIconProp,
|
|
7
|
-
createBoolProp,
|
|
8
|
-
createDisabledProp,
|
|
9
|
-
createStaticNumberProp,
|
|
10
|
-
createStaticBoolProp,
|
|
11
|
-
Triggers,
|
|
12
|
-
createActionProp,
|
|
13
|
-
} from "@draftbit/types";
|
|
14
|
-
|
|
15
|
-
export const SEED_DATA = [
|
|
16
|
-
{
|
|
17
|
-
name: "FAB",
|
|
18
|
-
tag: "Fab",
|
|
19
|
-
description:
|
|
20
|
-
"A floating action button (FAB) is a circular icon button that hovers over content to execute a primary action in the application.",
|
|
21
|
-
category: COMPONENT_TYPES.NBForms,
|
|
22
|
-
packageName: "native-base",
|
|
23
|
-
doc_link: "https://www.npmjs.com/package/@expo/html-elements",
|
|
24
|
-
code_link:
|
|
25
|
-
"https://github.com/expo/expo/tree/master/packages/html-elements",
|
|
26
|
-
stylesPanelSections: [
|
|
27
|
-
StylesPanelSections.LayoutFlexItems,
|
|
28
|
-
StylesPanelSections.LayoutSelectedItem,
|
|
29
|
-
StylesPanelSections.LayoutContent,
|
|
30
|
-
StylesPanelSections.Background,
|
|
31
|
-
StylesPanelSections.Size,
|
|
32
|
-
StylesPanelSections.MarginsAndPaddings,
|
|
33
|
-
StylesPanelSections.Position,
|
|
34
|
-
StylesPanelSections.Borders,
|
|
35
|
-
StylesPanelSections.Effects,
|
|
36
|
-
],
|
|
37
|
-
layout: {},
|
|
38
|
-
triggers: {},
|
|
39
|
-
props: {
|
|
40
|
-
placement: createTextEnumProp({
|
|
41
|
-
label: "Placement",
|
|
42
|
-
description: "The placement of the Fab relative to the device.",
|
|
43
|
-
options: ["bottom-right", "top-right", "top-left", "bottom-left"],
|
|
44
|
-
defaultValue: "bottom-right",
|
|
45
|
-
}),
|
|
46
|
-
label: createTextProp({
|
|
47
|
-
label: "Label",
|
|
48
|
-
description: "The Text to be displayed in Fab.",
|
|
49
|
-
}),
|
|
50
|
-
icon: createIconProp({
|
|
51
|
-
label: "Icon",
|
|
52
|
-
description: "Icon to be displayed in Fab. ",
|
|
53
|
-
}),
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: "Tooltip",
|
|
58
|
-
tag: "Tooltip",
|
|
59
|
-
description:
|
|
60
|
-
"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.",
|
|
61
|
-
category: COMPONENT_TYPES.NBOther,
|
|
62
|
-
packageName: "native-base",
|
|
63
|
-
allowChildren: true,
|
|
64
|
-
stylesPanelSections: [
|
|
65
|
-
StylesPanelSections.LayoutFlexItems,
|
|
66
|
-
StylesPanelSections.LayoutSelectedItem,
|
|
67
|
-
StylesPanelSections.LayoutContent,
|
|
68
|
-
StylesPanelSections.Background,
|
|
69
|
-
StylesPanelSections.Size,
|
|
70
|
-
StylesPanelSections.MarginsAndPaddings,
|
|
71
|
-
StylesPanelSections.Position,
|
|
72
|
-
StylesPanelSections.Borders,
|
|
73
|
-
StylesPanelSections.Effects,
|
|
74
|
-
],
|
|
75
|
-
layout: {},
|
|
76
|
-
triggers: [Triggers.OnOpen, Triggers.OnClose],
|
|
77
|
-
props: {
|
|
78
|
-
label: createTextProp({
|
|
79
|
-
label: "Label",
|
|
80
|
-
description: "The Text to be displayed in Tooltip.",
|
|
81
|
-
}),
|
|
82
|
-
isOpen: createBoolProp({
|
|
83
|
-
label: "Is Open",
|
|
84
|
-
description: "Whether the tooltip is open or not.",
|
|
85
|
-
}),
|
|
86
|
-
isDisabled: createDisabledProp(),
|
|
87
|
-
defaultIsOpen: createStaticBoolProp({
|
|
88
|
-
label: "Default Is Open",
|
|
89
|
-
description: "Whether the tooltip is open by default",
|
|
90
|
-
defaultValue: false,
|
|
91
|
-
}),
|
|
92
|
-
onOpen: createActionProp(),
|
|
93
|
-
onClose: createActionProp(),
|
|
94
|
-
openDelay: createStaticNumberProp({
|
|
95
|
-
label: "Open Delay",
|
|
96
|
-
description: "Delay in ms before tooltip opens",
|
|
97
|
-
defaultValue: 0,
|
|
98
|
-
}),
|
|
99
|
-
closeDelay: createStaticNumberProp({
|
|
100
|
-
label: "Close Delay",
|
|
101
|
-
description: "Delay in ms before tooltip closes",
|
|
102
|
-
defaultValue: 0,
|
|
103
|
-
}),
|
|
104
|
-
placement: createTextEnumProp({
|
|
105
|
-
label: "Placement",
|
|
106
|
-
description: "The placement of the menu",
|
|
107
|
-
options: [
|
|
108
|
-
"bottom",
|
|
109
|
-
"top",
|
|
110
|
-
"left",
|
|
111
|
-
"right",
|
|
112
|
-
"top left",
|
|
113
|
-
"top right",
|
|
114
|
-
"bottom left",
|
|
115
|
-
"bottom right",
|
|
116
|
-
"right bottom",
|
|
117
|
-
"right top",
|
|
118
|
-
"left bottom",
|
|
119
|
-
"left top",
|
|
120
|
-
],
|
|
121
|
-
defaultValue: "bottom",
|
|
122
|
-
}),
|
|
123
|
-
arrowSize: createStaticNumberProp({
|
|
124
|
-
label: "Arrow Size",
|
|
125
|
-
description: "The size of the arrow",
|
|
126
|
-
defaultValue: 12,
|
|
127
|
-
}),
|
|
128
|
-
hasArrow: createStaticBoolProp({
|
|
129
|
-
label: "Has Arrow",
|
|
130
|
-
description: "Whether the tooltip has an arrow",
|
|
131
|
-
defaultValue: false,
|
|
132
|
-
}),
|
|
133
|
-
offset: createStaticNumberProp({
|
|
134
|
-
label: "Offset",
|
|
135
|
-
description: "The distance between the triggere and the tooltip.",
|
|
136
|
-
}),
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
];
|