@draftbit/core 47.0.0 → 47.0.1-50db3c.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/Accordion/AccordionItem.js +23 -4
- package/lib/commonjs/components/Button.js +31 -22
- package/lib/commonjs/components/Checkbox/Checkbox.js +1 -3
- package/lib/commonjs/components/DeprecatedCardWrapper.js +2 -2
- package/lib/commonjs/components/DeprecatedFAB.js +1 -2
- package/lib/commonjs/components/Justification.js +5 -1
- package/lib/commonjs/components/Picker/Picker.js +3 -4
- package/lib/commonjs/components/Picker/PickerComponent.android.js +20 -3
- package/lib/commonjs/components/Picker/PickerComponent.ios.js +2 -2
- package/lib/commonjs/components/Pressable.js +59 -0
- package/lib/commonjs/components/ResizeMode.js +5 -1
- package/lib/commonjs/components/Touchable.js +27 -11
- package/lib/commonjs/constants.js +1 -1
- package/lib/commonjs/mappings/Button.js +21 -10
- package/lib/commonjs/mappings/Pressable.js +52 -0
- package/lib/module/components/Button.js +25 -16
- package/lib/module/components/Checkbox/Checkbox.js +2 -3
- package/lib/module/components/DeprecatedCardWrapper.js +2 -2
- package/lib/module/components/DeprecatedFAB.js +2 -3
- package/lib/module/components/Justification.js +1 -0
- package/lib/module/components/Picker/Picker.js +3 -4
- package/lib/module/components/Picker/PickerComponent.ios.js +1 -1
- package/lib/module/components/Pressable.js +40 -0
- package/lib/module/components/ResizeMode.js +1 -0
- package/lib/module/components/Touchable.js +25 -10
- package/lib/module/mappings/Button.js +22 -11
- package/lib/module/mappings/Pressable.js +45 -0
- package/lib/typescript/src/components/Button.d.ts +2 -0
- 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/DeprecatedCardWrapper.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/Picker/Picker.d.ts.map +1 -1
- package/lib/typescript/src/components/Pressable.d.ts +18 -0
- package/lib/typescript/src/components/Pressable.d.ts.map +1 -0
- package/lib/typescript/src/components/Touchable.d.ts +9 -2
- package/lib/typescript/src/components/Touchable.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/Pressable.d.ts +76 -0
- package/lib/typescript/src/mappings/Pressable.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/Provider.js +9 -0
- package/src/components/Accordion/AccordionGroup.js +44 -0
- package/src/components/Accordion/AccordionItem.js +32 -0
- package/src/components/Accordion/index.js +2 -0
- package/src/components/ActionSheet/ActionSheet.js +45 -0
- package/src/components/ActionSheet/ActionSheetCancel.js +6 -0
- package/src/components/ActionSheet/ActionSheetItem.js +30 -0
- package/src/components/ActionSheet/index.js +3 -0
- package/src/components/AnimatedCircularProgress.js +43 -0
- package/src/components/AspectRatio.js +18 -0
- package/src/components/AvatarEdit.js +30 -0
- package/src/components/Banner.js +109 -0
- package/src/components/Button.js +118 -0
- package/src/components/Button.tsx +49 -18
- package/src/components/Card.js +57 -0
- package/src/components/CardBlock.js +54 -0
- package/src/components/CardContainer.js +69 -0
- package/src/components/CardContainerRating.js +79 -0
- package/src/components/CardContainerShortImage.js +33 -0
- package/src/components/CardInline.js +36 -0
- package/src/components/Carousel.js +68 -0
- package/src/components/Checkbox/Checkbox.js +62 -0
- package/src/components/Checkbox/Checkbox.tsx +5 -7
- package/src/components/Checkbox/CheckboxGroup.js +21 -0
- package/src/components/Checkbox/CheckboxGroupRow.js +77 -0
- package/src/components/Checkbox/CheckboxRow.js +78 -0
- package/src/components/Checkbox/context.js +14 -0
- package/src/components/Checkbox/index.js +3 -0
- package/src/components/CircleImage.js +8 -0
- package/src/components/CircularProgress.js +81 -0
- package/src/components/Config.js +64 -0
- package/src/components/Container.js +43 -0
- package/src/components/DatePicker/DatePicker.js +377 -0
- package/src/components/DatePicker/DatePickerComponent.js +13 -0
- package/src/components/DatePicker/DatePickerComponent.web.js +30 -0
- package/src/components/DatePicker/DatePickerComponentType.js +1 -0
- package/src/components/DeprecatedCardWrapper.js +18 -0
- package/src/components/DeprecatedCardWrapper.tsx +3 -4
- package/src/components/DeprecatedFAB.js +114 -0
- package/src/components/DeprecatedFAB.tsx +5 -5
- package/src/components/Divider.js +13 -0
- package/src/components/Elevation.js +20 -0
- package/src/components/FAB.js +46 -0
- package/src/components/FieldSearchBarFull.js +53 -0
- package/src/components/FormRow.js +19 -0
- package/src/components/Header.js +44 -0
- package/src/components/HeaderLarge.js +7 -0
- package/src/components/HeaderMedium.js +7 -0
- package/src/components/HeaderOverline.js +7 -0
- package/src/components/IconButton.js +35 -0
- package/src/components/Image.js +47 -0
- package/src/components/Justification.js +1 -0
- package/src/components/Layout.js +50 -0
- package/src/components/NumberInput.js +49 -0
- package/src/components/Picker/Picker.js +266 -0
- package/src/components/Picker/Picker.tsx +4 -4
- package/src/components/Picker/PickerComponent.android.js +69 -0
- package/src/components/Picker/PickerComponent.ios.js +79 -0
- package/src/components/Picker/PickerComponent.ios.tsx +1 -1
- package/src/components/Picker/PickerComponent.web.js +70 -0
- package/src/components/Picker/PickerTypes.js +1 -0
- package/src/components/Portal/Portal.js +35 -0
- package/src/components/Portal/PortalConsumer.js +27 -0
- package/src/components/Portal/PortalHost.js +107 -0
- package/src/components/Portal/PortalManager.js +32 -0
- package/src/components/Pressable.js +17 -0
- package/src/components/Pressable.tsx +67 -0
- package/src/components/ProgressBar.js +118 -0
- package/src/components/ProgressCircle.js +13 -0
- package/src/components/ProgressIndicator.js +27 -0
- package/src/components/RadioButton/RadioButton.js +17 -0
- package/src/components/RadioButton/RadioButtonFieldGroup.js +17 -0
- package/src/components/RadioButton/RadioButtonGroup.js +43 -0
- package/src/components/RadioButton/RadioButtonRow.js +76 -0
- package/src/components/RadioButton/context.js +14 -0
- package/src/components/RadioButton/index.js +4 -0
- package/src/components/ResizeMode.js +1 -0
- package/src/components/Row.js +48 -0
- package/src/components/RowBodyIcon.js +8 -0
- package/src/components/RowHeadlineImageCaption.js +12 -0
- package/src/components/RowHeadlineImageIcon.js +14 -0
- package/src/components/SVG.js +13 -0
- package/src/components/ScreenContainer.js +34 -0
- package/src/components/Slider.js +63 -0
- package/src/components/StarRating.js +50 -0
- package/src/components/StepIndicator.js +346 -0
- package/src/components/Stepper.js +41 -0
- package/src/components/Surface.js +32 -0
- package/src/components/Swiper/Swiper.js +29 -0
- package/src/components/Swiper/SwiperItem.js +9 -0
- package/src/components/Swiper/index.js +2 -0
- package/src/components/Switch.js +56 -0
- package/src/components/Text.js +33 -0
- package/src/components/TextField.js +428 -0
- package/src/components/ToggleButton.js +39 -0
- package/src/components/Touchable.js +17 -0
- package/src/components/Touchable.tsx +42 -11
- package/src/components/Typography.js +36 -0
- package/src/components/useAuthState.js +31 -0
- package/src/constants.js +10 -0
- package/src/hooks.js +12 -0
- package/src/index.js +52 -0
- package/src/interfaces/Icon.js +8 -0
- package/src/mappings/Accordion.js +41 -0
- package/src/mappings/AccordionItem.js +16 -0
- package/src/mappings/ActionSheet.js +13 -0
- package/src/mappings/ActionSheetCancel.js +19 -0
- package/src/mappings/ActionSheetItem.js +23 -0
- package/src/mappings/ActivityIndicator.js +58 -0
- package/src/mappings/AudioPlayer.js +57 -0
- package/src/mappings/AvatarEdit.js +38 -0
- package/src/mappings/Banner.js +32 -0
- package/src/mappings/BlurView.js +42 -0
- package/src/mappings/Button.js +98 -0
- package/src/mappings/Button.ts +21 -10
- package/src/mappings/Card.js +52 -0
- package/src/mappings/CardBlock.js +123 -0
- package/src/mappings/CardContainer.js +104 -0
- package/src/mappings/CardContainerRating.js +126 -0
- package/src/mappings/CardContainerShortImage.js +120 -0
- package/src/mappings/CardInline.js +52 -0
- package/src/mappings/Carousel.js +19 -0
- package/src/mappings/Checkbox.js +46 -0
- package/src/mappings/CheckboxGroup.js +26 -0
- package/src/mappings/CheckboxRow.js +61 -0
- package/src/mappings/CircleImage.js +25 -0
- package/src/mappings/Container.js +30 -0
- package/src/mappings/CustomCode.js +8 -0
- package/src/mappings/DatePicker.js +176 -0
- package/src/mappings/Divider.js +27 -0
- package/src/mappings/FAB.js +37 -0
- package/src/mappings/Fetch.js +13 -0
- package/src/mappings/FieldSearchBarFull.js +50 -0
- package/src/mappings/FlashList.js +33 -0
- package/src/mappings/FlatList.js +24 -0
- package/src/mappings/HeaderLarge.js +29 -0
- package/src/mappings/HeaderMedium.js +55 -0
- package/src/mappings/HeaderOverline.js +55 -0
- package/src/mappings/Icon.js +32 -0
- package/src/mappings/IconButton.js +35 -0
- package/src/mappings/Image.js +35 -0
- package/src/mappings/ImageBackground.js +29 -0
- package/src/mappings/KeyboardAvoidingView.js +41 -0
- package/src/mappings/KeyboardAwareScrollView.js +50 -0
- package/src/mappings/Layout.js +200 -0
- package/src/mappings/LinearGradient.js +77 -0
- package/src/mappings/MapCallout.js +21 -0
- package/src/mappings/MapMarker.js +47 -0
- package/src/mappings/MapView.js +139 -0
- package/src/mappings/Modal.js +42 -0
- package/src/mappings/NumberInput.js +254 -0
- package/src/mappings/Picker.js +148 -0
- package/src/mappings/Pressable.js +52 -0
- package/src/mappings/Pressable.ts +63 -0
- package/src/mappings/ProgressBar.js +101 -0
- package/src/mappings/ProgressCircle.js +109 -0
- package/src/mappings/ProgressIndicator.js +181 -0
- package/src/mappings/RadioButton.js +51 -0
- package/src/mappings/RadioButtonGroup.js +17 -0
- package/src/mappings/RadioButtonRow.js +42 -0
- package/src/mappings/RowBodyIcon.js +75 -0
- package/src/mappings/RowHeadlineImageCaption.js +167 -0
- package/src/mappings/RowHeadlineImageIcon.js +99 -0
- package/src/mappings/SVG.js +20 -0
- package/src/mappings/SafeAreaView.js +33 -0
- package/src/mappings/ScrollView.js +31 -0
- package/src/mappings/Slider.js +60 -0
- package/src/mappings/StarRating.js +43 -0
- package/src/mappings/Stepper.js +32 -0
- package/src/mappings/Surface.js +14 -0
- package/src/mappings/Swiper.js +60 -0
- package/src/mappings/SwiperItem.js +8 -0
- package/src/mappings/Switch.js +81 -0
- package/src/mappings/Text.js +251 -0
- package/src/mappings/TextArea.js +274 -0
- package/src/mappings/TextField.js +391 -0
- package/src/mappings/TextInput.js +402 -0
- package/src/mappings/ToggleButton.js +50 -0
- package/src/mappings/Video.js +81 -0
- package/src/mappings/View.js +207 -0
- package/src/mappings/WebView.js +88 -0
- package/src/styles/DarkTheme.js +26 -0
- package/src/styles/DefaultTheme.js +111 -0
- package/src/styles/fonts.js +62 -0
- package/src/styles/overlay.js +60 -0
- package/src/styles/shadow.js +51 -0
- package/src/theming.js +3 -0
- package/src/utilities.js +102 -0
- package/lib/commonjs/components/DeprecatedButton.js +0 -151
- package/lib/commonjs/components/Touchable.web.js +0 -9
- package/lib/commonjs/mappings/Touchable.js +0 -20
- package/lib/module/components/DeprecatedButton.js +0 -141
- package/lib/module/components/Touchable.web.js +0 -2
- package/lib/module/mappings/Touchable.js +0 -13
- package/lib/typescript/src/components/DeprecatedButton.d.ts +0 -54
- package/lib/typescript/src/components/DeprecatedButton.d.ts.map +0 -1
- package/lib/typescript/src/components/Touchable.web.d.ts +0 -3
- package/lib/typescript/src/components/Touchable.web.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Touchable.d.ts +0 -22
- package/lib/typescript/src/mappings/Touchable.d.ts.map +0 -1
- package/src/components/DeprecatedButton.tsx +0 -214
- package/src/components/Touchable.web.tsx +0 -3
- package/src/mappings/Touchable.ts +0 -23
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { View, StyleSheet } from "react-native";
|
|
3
|
+
import { View, StyleSheet, Pressable } from "react-native";
|
|
4
4
|
import { useTheme } from "../../theming";
|
|
5
|
-
import Touchable from "../Touchable";
|
|
6
5
|
import { usePrevious } from "../../hooks";
|
|
7
6
|
const Checkbox = _ref => {
|
|
8
7
|
let {
|
|
@@ -51,7 +50,7 @@ const Checkbox = _ref => {
|
|
|
51
50
|
onUncheck === null || onUncheck === void 0 ? void 0 : onUncheck();
|
|
52
51
|
}
|
|
53
52
|
};
|
|
54
|
-
return /*#__PURE__*/React.createElement(
|
|
53
|
+
return /*#__PURE__*/React.createElement(Pressable, _extends({}, rest, {
|
|
55
54
|
onPress: handlePress,
|
|
56
55
|
disabled: disabled,
|
|
57
56
|
accessibilityState: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { withTheme } from "../theming";
|
|
4
|
-
import
|
|
4
|
+
import { Pressable } from "react-native";
|
|
5
5
|
const getWidth = numColumns => {
|
|
6
6
|
switch (numColumns) {
|
|
7
7
|
case 1:
|
|
@@ -21,7 +21,7 @@ const Card = _ref => {
|
|
|
21
21
|
...rest
|
|
22
22
|
} = _ref;
|
|
23
23
|
const width = getWidth(numColumns);
|
|
24
|
-
return /*#__PURE__*/React.createElement(
|
|
24
|
+
return /*#__PURE__*/React.createElement(Pressable, _extends({
|
|
25
25
|
disabled: !onPress,
|
|
26
26
|
onPress: onPress,
|
|
27
27
|
style: [style, {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { ActivityIndicator, View, StyleSheet } from "react-native";
|
|
3
|
+
import { ActivityIndicator, View, StyleSheet, Pressable } from "react-native";
|
|
4
4
|
import color from "color";
|
|
5
5
|
import Config from "./Config";
|
|
6
6
|
import Text from "./Text";
|
|
7
|
-
import Touchable from "./Touchable";
|
|
8
7
|
import Elevation from "./Elevation";
|
|
9
8
|
import { withTheme } from "../theming";
|
|
10
9
|
const FAB = _ref => {
|
|
@@ -98,7 +97,7 @@ const FAB = _ref => {
|
|
|
98
97
|
style: [{
|
|
99
98
|
elevation
|
|
100
99
|
}, style]
|
|
101
|
-
}, /*#__PURE__*/React.createElement(
|
|
100
|
+
}, /*#__PURE__*/React.createElement(Pressable, _extends({}, rest, {
|
|
102
101
|
onPress: onPress,
|
|
103
102
|
accessibilityState: {
|
|
104
103
|
disabled
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { View, StyleSheet, Text, Platform, Dimensions } from "react-native";
|
|
2
|
+
import { View, StyleSheet, Text, Platform, Dimensions, Pressable } from "react-native";
|
|
3
3
|
import { omit, pickBy, identity, isObject } from "lodash";
|
|
4
4
|
import { SafeAreaView } from "react-native-safe-area-context";
|
|
5
5
|
import { Picker as NativePicker } from "@react-native-picker/picker";
|
|
6
6
|
import { withTheme } from "../../theming";
|
|
7
7
|
import Portal from "../Portal/Portal";
|
|
8
|
-
import Button from "../
|
|
9
|
-
import Touchable from "../Touchable";
|
|
8
|
+
import { Button } from "../Button";
|
|
10
9
|
import { extractStyles, extractBorderAndMarginStyles, borderStyleNames, marginStyleNames } from "../../utilities";
|
|
11
10
|
function normalizeOptions(options) {
|
|
12
11
|
if (options.length === 0) {
|
|
@@ -198,7 +197,7 @@ const Picker = _ref => {
|
|
|
198
197
|
/* marginsContainer */
|
|
199
198
|
React.createElement(View, {
|
|
200
199
|
style: [styles.marginsContainer, marginStyles]
|
|
201
|
-
}, /*#__PURE__*/React.createElement(
|
|
200
|
+
}, /*#__PURE__*/React.createElement(Pressable, {
|
|
202
201
|
disabled: disabled,
|
|
203
202
|
onPress: togglePickerVisible,
|
|
204
203
|
style: styles.touchableContainer
|
|
@@ -6,7 +6,7 @@ import omit from "lodash.omit";
|
|
|
6
6
|
import { Picker as NativePicker } from "@react-native-picker/picker";
|
|
7
7
|
import { withTheme } from "../../theming";
|
|
8
8
|
import Portal from "../Portal/Portal";
|
|
9
|
-
import Button from "../
|
|
9
|
+
import { Button } from "../Button";
|
|
10
10
|
import TextField from "../TextField";
|
|
11
11
|
import Touchable from "../Touchable";
|
|
12
12
|
import { extractStyles } from "../../utilities";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React, { useCallback } from "react";
|
|
3
|
+
import { Pressable as NativePressable } from "react-native";
|
|
4
|
+
export default function Pressable(_ref) {
|
|
5
|
+
let {
|
|
6
|
+
children,
|
|
7
|
+
disabled,
|
|
8
|
+
onPress,
|
|
9
|
+
onLongPress,
|
|
10
|
+
hitSlop,
|
|
11
|
+
delayLongPress,
|
|
12
|
+
activeOpacity,
|
|
13
|
+
disabledOpacity,
|
|
14
|
+
style,
|
|
15
|
+
...props
|
|
16
|
+
} = _ref;
|
|
17
|
+
const getOpacity = useCallback(pressed => {
|
|
18
|
+
if (disabled) {
|
|
19
|
+
return disabledOpacity;
|
|
20
|
+
} else {
|
|
21
|
+
if (pressed) return activeOpacity;else return 1;
|
|
22
|
+
}
|
|
23
|
+
}, [activeOpacity, disabled, disabledOpacity]);
|
|
24
|
+
const _style = useCallback(_ref2 => {
|
|
25
|
+
let {
|
|
26
|
+
pressed
|
|
27
|
+
} = _ref2;
|
|
28
|
+
return [style, {
|
|
29
|
+
opacity: getOpacity(pressed)
|
|
30
|
+
}];
|
|
31
|
+
}, [getOpacity, style]);
|
|
32
|
+
return /*#__PURE__*/React.createElement(NativePressable, _extends({
|
|
33
|
+
onPress: onPress,
|
|
34
|
+
onLongPress: onLongPress,
|
|
35
|
+
disabled: disabled,
|
|
36
|
+
delayLongPress: delayLongPress ? delayLongPress : 500,
|
|
37
|
+
hitSlop: hitSlop ? hitSlop : 8,
|
|
38
|
+
style: _style
|
|
39
|
+
}, props), children);
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,25 +1,40 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
import React from "react";
|
|
2
|
+
import React, { useCallback } from "react";
|
|
3
3
|
import { Pressable } from "react-native";
|
|
4
4
|
export default function Touchable(_ref) {
|
|
5
5
|
let {
|
|
6
6
|
children,
|
|
7
7
|
disabled,
|
|
8
8
|
onPress,
|
|
9
|
+
onLongPress,
|
|
10
|
+
hitSlop,
|
|
11
|
+
delayLongPress,
|
|
12
|
+
activeOpacity,
|
|
13
|
+
disabledOpacity,
|
|
9
14
|
style,
|
|
10
15
|
...props
|
|
11
16
|
} = _ref;
|
|
17
|
+
const getOpacity = useCallback(pressed => {
|
|
18
|
+
if (disabled) {
|
|
19
|
+
return disabledOpacity;
|
|
20
|
+
} else {
|
|
21
|
+
if (pressed) return activeOpacity;else return 1;
|
|
22
|
+
}
|
|
23
|
+
}, [activeOpacity, disabled, disabledOpacity]);
|
|
24
|
+
const _style = useCallback(_ref2 => {
|
|
25
|
+
let {
|
|
26
|
+
pressed
|
|
27
|
+
} = _ref2;
|
|
28
|
+
return [style, {
|
|
29
|
+
opacity: getOpacity(pressed)
|
|
30
|
+
}];
|
|
31
|
+
}, [getOpacity, style]);
|
|
12
32
|
return /*#__PURE__*/React.createElement(Pressable, _extends({
|
|
13
33
|
onPress: onPress,
|
|
34
|
+
onLongPress: onLongPress,
|
|
14
35
|
disabled: disabled,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
pressed
|
|
19
|
-
} = _ref2;
|
|
20
|
-
return [{
|
|
21
|
-
opacity: pressed || disabled ? 0.75 : 1
|
|
22
|
-
}, style];
|
|
23
|
-
}
|
|
36
|
+
delayLongPress: delayLongPress ? delayLongPress : 500,
|
|
37
|
+
hitSlop: hitSlop ? hitSlop : 8,
|
|
38
|
+
style: _style
|
|
24
39
|
}, props), children);
|
|
25
40
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createIconProp, createTextProp, createDisabledProp, createLoadingProp, createActionProp, Triggers, StylesPanelSections } from "@draftbit/types";
|
|
2
|
-
const SEED_DATA_TRIGGERS = [Triggers.OnPress];
|
|
1
|
+
import { COMPONENT_TYPES, createIconProp, createTextProp, createDisabledProp, createLoadingProp, createActionProp, Triggers, StylesPanelSections, createStaticNumberProp } from "@draftbit/types";
|
|
2
|
+
const SEED_DATA_TRIGGERS = [Triggers.OnPress, Triggers.OnLongPress];
|
|
3
3
|
const SEED_DATA_PROPS = {
|
|
4
4
|
onPress: createActionProp(),
|
|
5
|
+
onLongPress: createActionProp(),
|
|
5
6
|
icon: createIconProp({
|
|
6
7
|
defaultValue: null,
|
|
7
8
|
required: false
|
|
@@ -12,12 +13,19 @@ const SEED_DATA_PROPS = {
|
|
|
12
13
|
defaultValue: "Get Started"
|
|
13
14
|
}),
|
|
14
15
|
disabled: createDisabledProp(),
|
|
15
|
-
loading: createLoadingProp()
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
loading: createLoadingProp(),
|
|
17
|
+
activeOpacity: createStaticNumberProp({
|
|
18
|
+
required: false
|
|
19
|
+
}),
|
|
20
|
+
disabledOpacity: createStaticNumberProp({
|
|
21
|
+
required: false
|
|
22
|
+
}),
|
|
23
|
+
delayLongPress: createStaticNumberProp({
|
|
24
|
+
required: false
|
|
25
|
+
}),
|
|
26
|
+
hitSlop: createStaticNumberProp({
|
|
27
|
+
required: false
|
|
28
|
+
})
|
|
21
29
|
};
|
|
22
30
|
export const SEED_DATA = [{
|
|
23
31
|
name: "Button Outline",
|
|
@@ -25,8 +33,9 @@ export const SEED_DATA = [{
|
|
|
25
33
|
category: COMPONENT_TYPES.deprecated,
|
|
26
34
|
stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.Background, StylesPanelSections.Borders, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Effects],
|
|
27
35
|
layout: {
|
|
28
|
-
...LAYOUT,
|
|
29
36
|
backgroundColor: "transparent",
|
|
37
|
+
borderRadius: 8,
|
|
38
|
+
fontFamily: "system-700",
|
|
30
39
|
borderWidth: 1,
|
|
31
40
|
textAlign: "center"
|
|
32
41
|
},
|
|
@@ -38,7 +47,8 @@ export const SEED_DATA = [{
|
|
|
38
47
|
category: COMPONENT_TYPES.deprecated,
|
|
39
48
|
stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.Background, StylesPanelSections.Borders, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Effects],
|
|
40
49
|
layout: {
|
|
41
|
-
|
|
50
|
+
borderRadius: 8,
|
|
51
|
+
fontFamily: "system-700",
|
|
42
52
|
backgroundColor: "primary",
|
|
43
53
|
textAlign: "center"
|
|
44
54
|
},
|
|
@@ -50,7 +60,8 @@ export const SEED_DATA = [{
|
|
|
50
60
|
category: COMPONENT_TYPES.button,
|
|
51
61
|
stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.Background, StylesPanelSections.Borders, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Effects],
|
|
52
62
|
layout: {
|
|
53
|
-
|
|
63
|
+
borderRadius: 8,
|
|
64
|
+
fontFamily: "system-700",
|
|
54
65
|
backgroundColor: "primary",
|
|
55
66
|
textAlign: "center"
|
|
56
67
|
},
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, createActionProp, Triggers, createNumberProp, StylesPanelSections, GROUPS } from "@draftbit/types";
|
|
2
|
+
const SEED_DATA_PROPS = {
|
|
3
|
+
stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins, StylesPanelSections.Borders],
|
|
4
|
+
layout: {},
|
|
5
|
+
triggers: [Triggers.OnPress, Triggers.OnLongPress],
|
|
6
|
+
props: {
|
|
7
|
+
onPress: createActionProp(),
|
|
8
|
+
onLongPress: createActionProp(),
|
|
9
|
+
activeOpacity: createNumberProp({
|
|
10
|
+
label: "Active Opacity",
|
|
11
|
+
description: "The opacity when the button is pressed.",
|
|
12
|
+
defaultValue: 0.8,
|
|
13
|
+
group: GROUPS.basic
|
|
14
|
+
}),
|
|
15
|
+
disabledOpacity: createNumberProp({
|
|
16
|
+
label: "Disabled Opacity",
|
|
17
|
+
description: "The opacity when the button is disabled.",
|
|
18
|
+
defaultValue: 0.8,
|
|
19
|
+
group: GROUPS.basic
|
|
20
|
+
}),
|
|
21
|
+
delayLongPress: createNumberProp({
|
|
22
|
+
label: "Delay Long Press",
|
|
23
|
+
description: "Duration (in milliseconds) from onPressIn before onLongPress is called.",
|
|
24
|
+
group: GROUPS.basic
|
|
25
|
+
}),
|
|
26
|
+
hitSlop: createNumberProp({
|
|
27
|
+
label: "Hit Slop",
|
|
28
|
+
description: "Sets additional distance outside of element in which a press can be detected.",
|
|
29
|
+
group: GROUPS.basic
|
|
30
|
+
})
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export const SEED_DATA = [{
|
|
34
|
+
name: "Touchable",
|
|
35
|
+
tag: "Touchable",
|
|
36
|
+
description: "An interactive view with no styles",
|
|
37
|
+
category: COMPONENT_TYPES.button,
|
|
38
|
+
...SEED_DATA_PROPS
|
|
39
|
+
}, {
|
|
40
|
+
name: "Pressable",
|
|
41
|
+
tag: "Pressable",
|
|
42
|
+
description: "An interactive view with no styles",
|
|
43
|
+
category: COMPONENT_TYPES.deprecated,
|
|
44
|
+
...SEED_DATA_PROPS
|
|
45
|
+
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,0BAA0B,EAG1B,SAAS,EAET,SAAS,EAEV,MAAM,cAAc,CAAC;AA+CtB,oBAAY,SAAS,GAAG,CACtB,KAAK,EAAE,0BAA0B,KAC9B,SAAS,CAAC,SAAS,CAAC,CAAC;AA+G1B,QAAA,MAAM,WAAW,EAAE,GAAsB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB,QAAA,MAAM,MAAM,EAAE,GAAsB,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,CAAC;AAmBlB,QAAA,MAAM,aAAa,EAAE,GAAwB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { StyleProp, ViewStyle, PressableProps } from "react-native";
|
|
3
3
|
import type { IconSlot } from "../../interfaces/Icon";
|
|
4
4
|
export interface CheckboxProps {
|
|
5
5
|
status?: boolean;
|
|
@@ -15,6 +15,6 @@ export interface CheckboxProps {
|
|
|
15
15
|
size?: number;
|
|
16
16
|
style?: StyleProp<ViewStyle>;
|
|
17
17
|
}
|
|
18
|
-
declare const Checkbox: React.FC<CheckboxProps &
|
|
18
|
+
declare const Checkbox: React.FC<CheckboxProps & PressableProps & IconSlot>;
|
|
19
19
|
export default Checkbox;
|
|
20
20
|
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,SAAS,EACT,SAAS,EAET,cAAc,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAItD,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,GAAG,cAAc,GAAG,QAAQ,CAoFjE,CAAC;AAqBF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeprecatedCardWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/DeprecatedCardWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DeprecatedCardWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/DeprecatedCardWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAE3C,aAAK,KAAK,GAAG;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,OAAO,KAAK,CAAC;CACrB,CAAC;;;;AAiCF,wBAA+B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { StyleProp, ViewStyle, PressableProps } from "react-native";
|
|
3
3
|
import type { Theme } from "../styles/DefaultTheme";
|
|
4
4
|
import type { IconSlot } from "../interfaces/Icon";
|
|
5
5
|
/**
|
|
@@ -48,7 +48,7 @@ declare type Props = {
|
|
|
48
48
|
elevation?: number;
|
|
49
49
|
theme: Theme;
|
|
50
50
|
style?: StyleProp<ViewStyle>;
|
|
51
|
-
} &
|
|
51
|
+
} & PressableProps & IconSlot;
|
|
52
52
|
declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
|
|
53
53
|
theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
|
|
54
54
|
}> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<Props>> & React.FC<React.PropsWithChildren<Props>>, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeprecatedFAB.d.ts","sourceRoot":"","sources":["../../../../src/components/DeprecatedFAB.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAIL,
|
|
1
|
+
{"version":3,"file":"DeprecatedFAB.d.ts","sourceRoot":"","sources":["../../../../src/components/DeprecatedFAB.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAIL,SAAS,EACT,SAAS,EAGT,cAAc,EACf,MAAM,cAAc,CAAC;AAOtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,aAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,cAAc,GAChB,QAAQ,CAAC;;;;AAkKX,wBAA8B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Picker.d.ts","sourceRoot":"","sources":["../../../../../src/components/Picker/Picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,SAAS,EACT,SAAS,
|
|
1
|
+
{"version":3,"file":"Picker.d.ts","sourceRoot":"","sources":["../../../../../src/components/Picker/Picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,SAAS,EACT,SAAS,EAGV,MAAM,cAAc,CAAC;AAQtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAQtD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,GAAG;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,YAAY,EAAE,GAAG,MAAM,EAAE,CAAC;IACnC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CACxB,CAAC;;;;AA2aF,wBAAiC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PressableProps, PressableStateCallbackType, StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
declare type Props = {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
style?: ViewStyle;
|
|
7
|
+
onPress?: () => void;
|
|
8
|
+
onLongPress?: () => void;
|
|
9
|
+
delayLongPress?: number;
|
|
10
|
+
hitSlop?: number;
|
|
11
|
+
pressRetentionOffset?: number;
|
|
12
|
+
activeOpacity?: number;
|
|
13
|
+
disabledOpacity?: number;
|
|
14
|
+
} & PressableProps;
|
|
15
|
+
export declare type StyleType = (state: PressableStateCallbackType) => StyleProp<ViewStyle>;
|
|
16
|
+
export default function Pressable({ children, disabled, onPress, onLongPress, hitSlop, delayLongPress, activeOpacity, disabledOpacity, style, ...props }: Props): JSX.Element;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=Pressable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAEL,cAAc,EACd,0BAA0B,EAC1B,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,aAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,cAAc,CAAC;AAEnB,oBAAY,SAAS,GAAG,CACtB,KAAK,EAAE,0BAA0B,KAC9B,SAAS,CAAC,SAAS,CAAC,CAAC;AAE1B,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,WAAW,EACX,OAAO,EACP,cAAc,EACd,aAAa,EACb,eAAe,EACf,KAAK,EACL,GAAG,KAAK,EACT,EAAE,KAAK,eA6BP"}
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { PressableProps, PressableStateCallbackType, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
declare type Props = {
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
style?: ViewStyle;
|
|
7
7
|
onPress?: () => void;
|
|
8
|
+
onLongPress?: () => void;
|
|
9
|
+
delayLongPress?: number;
|
|
10
|
+
hitSlop?: number;
|
|
11
|
+
pressRetentionOffset?: number;
|
|
12
|
+
activeOpacity?: number;
|
|
13
|
+
disabledOpacity?: number;
|
|
8
14
|
} & PressableProps;
|
|
9
|
-
export
|
|
15
|
+
export declare type StyleType = (state: PressableStateCallbackType) => StyleProp<ViewStyle>;
|
|
16
|
+
export default function Touchable({ children, disabled, onPress, onLongPress, hitSlop, delayLongPress, activeOpacity, disabledOpacity, style, ...props }: Props): JSX.Element;
|
|
10
17
|
export {};
|
|
11
18
|
//# sourceMappingURL=Touchable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Touchable.d.ts","sourceRoot":"","sources":["../../../../src/components/Touchable.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Touchable.d.ts","sourceRoot":"","sources":["../../../../src/components/Touchable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAEL,cAAc,EACd,0BAA0B,EAC1B,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,aAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,cAAc,CAAC;AAEnB,oBAAY,SAAS,GAAG,CACtB,KAAK,EAAE,0BAA0B,KAC9B,SAAS,CAAC,SAAS,CAAC,CAAC;AAE1B,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,WAAW,EACX,OAAO,EACP,cAAc,EACd,aAAa,EACb,eAAe,EACf,KAAK,EACL,GAAG,KAAK,EACT,EAAE,KAAK,eA6BP"}
|
|
@@ -5,10 +5,10 @@ export declare const SEED_DATA: ({
|
|
|
5
5
|
stylesPanelSections: string[];
|
|
6
6
|
layout: {
|
|
7
7
|
backgroundColor: string;
|
|
8
|
-
borderWidth: number;
|
|
9
|
-
textAlign: string;
|
|
10
8
|
borderRadius: number;
|
|
11
9
|
fontFamily: string;
|
|
10
|
+
borderWidth: number;
|
|
11
|
+
textAlign: string;
|
|
12
12
|
};
|
|
13
13
|
triggers: string[];
|
|
14
14
|
props: {
|
|
@@ -22,6 +22,16 @@ export declare const SEED_DATA: ({
|
|
|
22
22
|
defaultValue: null;
|
|
23
23
|
group: string;
|
|
24
24
|
};
|
|
25
|
+
onLongPress: {
|
|
26
|
+
label: string;
|
|
27
|
+
description: string;
|
|
28
|
+
editable: boolean;
|
|
29
|
+
required: boolean;
|
|
30
|
+
formType: string;
|
|
31
|
+
propType: string;
|
|
32
|
+
defaultValue: null;
|
|
33
|
+
group: string;
|
|
34
|
+
};
|
|
25
35
|
icon: {
|
|
26
36
|
label: string;
|
|
27
37
|
description: string;
|
|
@@ -53,6 +63,50 @@ export declare const SEED_DATA: ({
|
|
|
53
63
|
propType: string;
|
|
54
64
|
defaultValue: null;
|
|
55
65
|
};
|
|
66
|
+
activeOpacity: {
|
|
67
|
+
label: string;
|
|
68
|
+
description: string;
|
|
69
|
+
formType: string;
|
|
70
|
+
propType: string;
|
|
71
|
+
group: string;
|
|
72
|
+
defaultValue: null;
|
|
73
|
+
editable: boolean;
|
|
74
|
+
required: boolean;
|
|
75
|
+
step: number;
|
|
76
|
+
};
|
|
77
|
+
disabledOpacity: {
|
|
78
|
+
label: string;
|
|
79
|
+
description: string;
|
|
80
|
+
formType: string;
|
|
81
|
+
propType: string;
|
|
82
|
+
group: string;
|
|
83
|
+
defaultValue: null;
|
|
84
|
+
editable: boolean;
|
|
85
|
+
required: boolean;
|
|
86
|
+
step: number;
|
|
87
|
+
};
|
|
88
|
+
delayLongPress: {
|
|
89
|
+
label: string;
|
|
90
|
+
description: string;
|
|
91
|
+
formType: string;
|
|
92
|
+
propType: string;
|
|
93
|
+
group: string;
|
|
94
|
+
defaultValue: null;
|
|
95
|
+
editable: boolean;
|
|
96
|
+
required: boolean;
|
|
97
|
+
step: number;
|
|
98
|
+
};
|
|
99
|
+
hitSlop: {
|
|
100
|
+
label: string;
|
|
101
|
+
description: string;
|
|
102
|
+
formType: string;
|
|
103
|
+
propType: string;
|
|
104
|
+
group: string;
|
|
105
|
+
defaultValue: null;
|
|
106
|
+
editable: boolean;
|
|
107
|
+
required: boolean;
|
|
108
|
+
step: number;
|
|
109
|
+
};
|
|
56
110
|
};
|
|
57
111
|
} | {
|
|
58
112
|
name: string;
|
|
@@ -60,10 +114,11 @@ export declare const SEED_DATA: ({
|
|
|
60
114
|
category: string;
|
|
61
115
|
stylesPanelSections: string[];
|
|
62
116
|
layout: {
|
|
63
|
-
backgroundColor: string;
|
|
64
|
-
textAlign: string;
|
|
65
117
|
borderRadius: number;
|
|
66
118
|
fontFamily: string;
|
|
119
|
+
backgroundColor: string;
|
|
120
|
+
textAlign: string;
|
|
121
|
+
borderWidth?: undefined;
|
|
67
122
|
};
|
|
68
123
|
triggers: string[];
|
|
69
124
|
props: {
|
|
@@ -77,6 +132,16 @@ export declare const SEED_DATA: ({
|
|
|
77
132
|
defaultValue: null;
|
|
78
133
|
group: string;
|
|
79
134
|
};
|
|
135
|
+
onLongPress: {
|
|
136
|
+
label: string;
|
|
137
|
+
description: string;
|
|
138
|
+
editable: boolean;
|
|
139
|
+
required: boolean;
|
|
140
|
+
formType: string;
|
|
141
|
+
propType: string;
|
|
142
|
+
defaultValue: null;
|
|
143
|
+
group: string;
|
|
144
|
+
};
|
|
80
145
|
icon: {
|
|
81
146
|
label: string;
|
|
82
147
|
description: string;
|
|
@@ -108,6 +173,50 @@ export declare const SEED_DATA: ({
|
|
|
108
173
|
propType: string;
|
|
109
174
|
defaultValue: null;
|
|
110
175
|
};
|
|
176
|
+
activeOpacity: {
|
|
177
|
+
label: string;
|
|
178
|
+
description: string;
|
|
179
|
+
formType: string;
|
|
180
|
+
propType: string;
|
|
181
|
+
group: string;
|
|
182
|
+
defaultValue: null;
|
|
183
|
+
editable: boolean;
|
|
184
|
+
required: boolean;
|
|
185
|
+
step: number;
|
|
186
|
+
};
|
|
187
|
+
disabledOpacity: {
|
|
188
|
+
label: string;
|
|
189
|
+
description: string;
|
|
190
|
+
formType: string;
|
|
191
|
+
propType: string;
|
|
192
|
+
group: string;
|
|
193
|
+
defaultValue: null;
|
|
194
|
+
editable: boolean;
|
|
195
|
+
required: boolean;
|
|
196
|
+
step: number;
|
|
197
|
+
};
|
|
198
|
+
delayLongPress: {
|
|
199
|
+
label: string;
|
|
200
|
+
description: string;
|
|
201
|
+
formType: string;
|
|
202
|
+
propType: string;
|
|
203
|
+
group: string;
|
|
204
|
+
defaultValue: null;
|
|
205
|
+
editable: boolean;
|
|
206
|
+
required: boolean;
|
|
207
|
+
step: number;
|
|
208
|
+
};
|
|
209
|
+
hitSlop: {
|
|
210
|
+
label: string;
|
|
211
|
+
description: string;
|
|
212
|
+
formType: string;
|
|
213
|
+
propType: string;
|
|
214
|
+
group: string;
|
|
215
|
+
defaultValue: null;
|
|
216
|
+
editable: boolean;
|
|
217
|
+
required: boolean;
|
|
218
|
+
step: number;
|
|
219
|
+
};
|
|
111
220
|
};
|
|
112
221
|
})[];
|
|
113
222
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Button.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Button.ts"],"names":[],"mappings":"AAyCA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoErB,CAAC"}
|