@draftbit/core 43.6.0-alpha.5 → 43.6.1-3d1384.1
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/DeprecatedButton.js +19 -4
- package/lib/commonjs/components/DeprecatedButton.js.map +1 -1
- package/lib/commonjs/components/DeprecatedCardWrapper.js +14 -2
- package/lib/commonjs/components/DeprecatedCardWrapper.js.map +1 -1
- package/lib/commonjs/components/Justification.js +3 -0
- package/lib/commonjs/components/ResizeMode.js +3 -0
- package/lib/commonjs/mappings/MapView.js +11 -4
- package/lib/commonjs/mappings/MapView.js.map +1 -1
- package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -1
- package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -1
- package/lib/commonjs/mappings/View.js +1 -1
- package/lib/commonjs/mappings/View.js.map +1 -1
- package/lib/module/components/Justification.js +1 -1
- package/lib/module/components/ResizeMode.js +1 -1
- package/lib/module/components/Switch.js +21 -10
- package/lib/module/components/Switch.js.map +1 -1
- package/lib/module/mappings/MapView.js +12 -5
- package/lib/module/mappings/MapView.js.map +1 -1
- package/lib/module/mappings/View.js +1 -1
- package/lib/module/mappings/View.js.map +1 -1
- package/lib/typescript/src/mappings/MapView.d.ts +1 -0
- package/lib/typescript/src/mappings/View.d.ts +1 -1
- 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 +112 -0
- 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 +66 -0
- package/src/components/Checkbox/Checkbox.js +63 -0
- 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 +78 -0
- package/src/components/Config.js +63 -0
- package/src/components/Container.js +44 -0
- package/src/components/DatePicker/DatePicker.js +368 -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/DeprecatedButton.js +95 -0
- package/src/components/DeprecatedCardWrapper.js +18 -0
- package/src/components/DeprecatedFAB.js +115 -0
- 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 +56 -0
- package/src/components/Picker/PickerComponent.android.js +68 -0
- package/src/components/Picker/PickerComponent.ios.js +78 -0
- package/src/components/Picker/PickerComponent.web.js +69 -0
- package/src/components/Picker/PickerTypes.js +1 -0
- package/src/components/Portal/Portal.js +35 -0
- package/src/components/Portal/PortalConsumer.js +28 -0
- package/src/components/Portal/PortalHost.js +105 -0
- package/src/components/Portal/PortalManager.js +29 -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/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 +39 -0
- package/src/components/Surface.js +32 -0
- package/src/components/Swiper/Swiper.js +18 -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 +28 -0
- package/src/components/TextField.js +420 -0
- package/src/components/ToggleButton.js +39 -0
- package/src/components/Touchable.js +12 -0
- package/src/components/Touchable.web.js +2 -0
- 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 +51 -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 +22 -0
- package/src/mappings/ActivityIndicator.js +53 -0
- package/src/mappings/AudioPlayer.js +20 -0
- package/src/mappings/AvatarEdit.js +37 -0
- package/src/mappings/Banner.js +32 -0
- package/src/mappings/BlurView.js +41 -0
- package/src/mappings/Button.js +56 -0
- package/src/mappings/Card.js +52 -0
- package/src/mappings/CardBlock.js +122 -0
- package/src/mappings/CardContainer.js +102 -0
- package/src/mappings/CardContainerRating.js +124 -0
- package/src/mappings/CardContainerShortImage.js +118 -0
- package/src/mappings/CardInline.js +51 -0
- package/src/mappings/Carousel.js +18 -0
- package/src/mappings/Checkbox.js +45 -0
- package/src/mappings/CheckboxGroup.js +25 -0
- package/src/mappings/CheckboxRow.js +56 -0
- package/src/mappings/CircleImage.js +24 -0
- package/src/mappings/Container.js +29 -0
- package/src/mappings/CustomCode.js +8 -0
- package/src/mappings/DatePicker.js +146 -0
- package/src/mappings/Divider.js +26 -0
- package/src/mappings/FAB.js +36 -0
- package/src/mappings/Fetch.js +12 -0
- package/src/mappings/FieldSearchBarFull.js +49 -0
- package/src/mappings/FlatList.js +19 -0
- package/src/mappings/HeaderLarge.js +28 -0
- package/src/mappings/HeaderMedium.js +54 -0
- package/src/mappings/HeaderOverline.js +54 -0
- package/src/mappings/Icon.js +25 -0
- package/src/mappings/IconButton.js +30 -0
- package/src/mappings/Image.js +15 -0
- package/src/mappings/ImageBackground.js +28 -0
- package/src/mappings/KeyboardAvoidingView.js +40 -0
- package/src/mappings/KeyboardAwareScrollView.js +43 -0
- package/src/mappings/Layout.js +195 -0
- package/src/mappings/LinearGradient.js +77 -0
- package/src/mappings/MapCallout.js +20 -0
- package/src/mappings/MapMarker.js +47 -0
- package/src/mappings/MapView.js +132 -0
- package/src/mappings/MapView.ts +9 -1
- package/src/mappings/Modal.js +41 -0
- package/src/mappings/Picker.js +137 -0
- package/src/mappings/ProgressBar.js +100 -0
- package/src/mappings/ProgressCircle.js +108 -0
- package/src/mappings/ProgressIndicator.js +180 -0
- package/src/mappings/RadioButton.js +50 -0
- package/src/mappings/RadioButtonGroup.js +16 -0
- package/src/mappings/RadioButtonRow.js +37 -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/SafeAreaView.js +33 -0
- package/src/mappings/ScrollView.js +30 -0
- package/src/mappings/Slider.js +59 -0
- package/src/mappings/StarRating.js +42 -0
- package/src/mappings/Stepper.js +28 -0
- package/src/mappings/Surface.js +13 -0
- package/src/mappings/Swiper.js +60 -0
- package/src/mappings/SwiperItem.js +8 -0
- package/src/mappings/Switch.js +75 -0
- package/src/mappings/Text.js +227 -0
- package/src/mappings/TextArea.js +52 -0
- package/src/mappings/TextField.js +158 -0
- package/src/mappings/TextInput.js +208 -0
- package/src/mappings/ToggleButton.js +45 -0
- package/src/mappings/Touchable.js +12 -0
- package/src/mappings/Video.js +74 -0
- package/src/mappings/View.js +206 -0
- package/src/mappings/View.ts +1 -1
- package/src/mappings/WebView.js +18 -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 +54 -0
|
@@ -25,8 +25,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
27
|
|
|
28
|
-
function _extends() { _extends = Object.assign || 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); }
|
|
29
|
-
|
|
30
28
|
const Button = _ref => {
|
|
31
29
|
let {
|
|
32
30
|
Icon,
|
|
@@ -128,7 +126,7 @@ const Button = _ref => {
|
|
|
128
126
|
alignSelf: "stretch",
|
|
129
127
|
...margins
|
|
130
128
|
}
|
|
131
|
-
}, /*#__PURE__*/React.createElement(_Touchable.default,
|
|
129
|
+
}, /*#__PURE__*/React.createElement(_Touchable.default, { ...rest,
|
|
132
130
|
onPress: onPress,
|
|
133
131
|
accessibilityState: {
|
|
134
132
|
disabled
|
|
@@ -136,7 +134,7 @@ const Button = _ref => {
|
|
|
136
134
|
accessibilityRole: "button",
|
|
137
135
|
disabled: disabled || loading,
|
|
138
136
|
style: [styles.button, buttonStyle, innerStyles]
|
|
139
|
-
}
|
|
137
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
140
138
|
style: styles.content
|
|
141
139
|
}, icon && loading !== true ? /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
142
140
|
style: iconStyle
|
|
@@ -171,5 +169,22 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
171
169
|
|
|
172
170
|
var _default = (0, _theming.withTheme)(Button);
|
|
173
171
|
|
|
172
|
+
exports.default = _default;
|
|
173
|
+
//# sourceMappingURL=DeprecatedButton.js.map
|
|
174
|
+
minWidth: 64,
|
|
175
|
+
borderStyle: "solid"
|
|
176
|
+
},
|
|
177
|
+
content: {
|
|
178
|
+
flexDirection: "row",
|
|
179
|
+
alignItems: "center",
|
|
180
|
+
justifyContent: "center"
|
|
181
|
+
},
|
|
182
|
+
icon: {
|
|
183
|
+
width: _Config.default.buttonIconSize
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
var _default = (0, _theming.withTheme)(Button);
|
|
188
|
+
|
|
174
189
|
exports.default = _default;
|
|
175
190
|
//# sourceMappingURL=DeprecatedButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["DeprecatedButton.
|
|
1
|
+
{"version":3,"sources":["DeprecatedButton.js"],"names":["Button","Icon","icon","disabled","type","loading","labelColor","color","colorOverride","children","onPress","elevation","style","theme","colors","disabledOpacity","roundness","typography","rest","backgroundColor","borderColor","textColor","borderWidth","buttonColor","primary","surface","alpha","rgb","string","StyleSheet","hairlineWidth","buttonStyle","borderRadius","textStyle","textAlign","marginVertical","marginHorizontal","iconStyle","styles","marginLeft","marginRight","width","Config","buttonIconSize","margin","marginEnd","marginTop","marginBottom","innerStyles","flatten","margins","React","createElement","Elevation","alignSelf","Touchable","accessibilityState","accessibilityRole","button","View","content","name","size","ActivityIndicator","Text","numberOfLines","create","minWidth","borderStyle","flexDirection","alignItems","justifyContent"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AACA,MAAMA,MAAM,GAAG,QAAsN;AAAA,MAArN;AAAEC,IAAAA,IAAF;AAAQC,IAAAA,IAAR;AAAcC,IAAAA,QAAQ,GAAG,KAAzB;AAAgCC,IAAAA,IAAI,GAAG,OAAvC;AAAgDC,IAAAA,OAAO,GAAG,KAA1D;AAAiEC,IAAAA,UAAjE;AAA6EC,IAAAA,KAAK,EAAEC,aAApF;AAAmGC,IAAAA,QAAnG;AAA6GC,IAAAA,OAA7G;AAAsHC,IAAAA,SAAS,GAAG,CAAlI;AAAqIC,IAAAA,KAArI;AAA4IC,IAAAA,KAAK,EAAE;AAAEC,MAAAA,MAAF;AAAUC,MAAAA,eAAV;AAA2BC,MAAAA,SAA3B;AAAsCC,MAAAA;AAAtC,KAAnJ;AAAuM,OAAGC;AAA1M,GAAqN;AACjO,MAAIC,eAAJ,EAAqBC,WAArB,EAAkCC,SAAlC,EAA6CC,WAA7C;AACA,QAAMC,WAAW,GAAGf,aAAa,IAAIM,MAAM,CAACU,OAA5C;;AACA,MAAIpB,IAAI,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";\nimport color from \"color\";\nimport Config from \"./Config\";\nimport Touchable from \"./Touchable\";\nimport Elevation from \"./Elevation\";\nimport { withTheme } from \"../theming\";\nconst Button = ({ Icon, icon, disabled = false, type = \"solid\", loading = false, labelColor, color: colorOverride, children, onPress, elevation = 0, style, theme: { colors, disabledOpacity, roundness, typography }, ...rest }) => {\n let backgroundColor, borderColor, textColor, borderWidth;\n const buttonColor = colorOverride || colors.primary;\n if (type === \"solid\") {\n backgroundColor = buttonColor;\n if (disabled) {\n textColor = color(colors.surface).alpha(disabledOpacity).rgb().string();\n }\n else {\n textColor = labelColor || colors.surface;\n }\n }\n else {\n backgroundColor = \"transparent\";\n if (disabled) {\n textColor = color(buttonColor).alpha(disabledOpacity).rgb().string();\n }\n else {\n textColor = labelColor || buttonColor;\n }\n }\n if (type === \"outline\") {\n if (disabled) {\n borderColor = color(buttonColor).alpha(disabledOpacity).rgb().string();\n }\n else {\n borderColor = buttonColor;\n }\n borderWidth = StyleSheet.hairlineWidth;\n }\n else {\n borderColor = \"transparent\";\n borderWidth = 0;\n }\n const buttonStyle = {\n backgroundColor,\n borderColor,\n borderWidth,\n borderRadius: roundness,\n };\n const textStyle = {\n textAlign: \"center\",\n color: textColor,\n marginVertical: 16,\n marginHorizontal: 16,\n };\n const iconStyle = [\n styles.icon,\n {\n marginLeft: 16,\n marginRight: -8,\n width: Config.buttonIconSize,\n },\n ];\n const { margin, marginEnd, marginTop, marginLeft, marginRight, marginBottom, marginHorizontal, marginVertical, ...innerStyles } = StyleSheet.flatten(style || {});\n const margins = {\n margin,\n marginEnd,\n marginTop,\n marginLeft,\n marginRight,\n marginBottom,\n marginHorizontal,\n marginVertical,\n };\n return (React.createElement(Elevation, { style: { elevation, alignSelf: \"stretch\", ...margins } },\n React.createElement(Touchable, { ...rest, onPress: onPress, accessibilityState: { disabled }, accessibilityRole: \"button\", disabled: disabled || loading, style: [styles.button, buttonStyle, innerStyles] },\n React.createElement(View, { style: styles.content },\n icon && loading !== true ? (React.createElement(View, { style: iconStyle },\n React.createElement(Icon, { name: icon, size: Config.buttonIconSize, color: textColor }))) : null,\n loading ? (React.createElement(ActivityIndicator, { size: \"small\", color: textColor, style: iconStyle })) : null,\n React.createElement(Text, { numberOfLines: 1, style: [textStyle, typography.button] }, children)))));\n};\nconst styles = StyleSheet.create({\n button: {\n minWidth: 64,\n borderStyle: \"solid\",\n },\n content: {\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n icon: {\n width: Config.buttonIconSize,\n },\n});\nexport default withTheme(Button);\n"]}
|
|
@@ -13,8 +13,6 @@ var _Touchable = _interopRequireDefault(require("./Touchable"));
|
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
|
-
function _extends() { _extends = Object.assign || 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); }
|
|
17
|
-
|
|
18
16
|
const getWidth = numColumns => {
|
|
19
17
|
switch (numColumns) {
|
|
20
18
|
case 1:
|
|
@@ -37,6 +35,20 @@ const Card = _ref => {
|
|
|
37
35
|
...rest
|
|
38
36
|
} = _ref;
|
|
39
37
|
const width = getWidth(numColumns);
|
|
38
|
+
return /*#__PURE__*/_react.default.createElement(_Touchable.default, {
|
|
39
|
+
disabled: !onPress,
|
|
40
|
+
onPress: onPress,
|
|
41
|
+
style: [style, {
|
|
42
|
+
width
|
|
43
|
+
}],
|
|
44
|
+
...rest
|
|
45
|
+
}, children);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
var _default = (0, _theming.withTheme)(Card);
|
|
49
|
+
|
|
50
|
+
exports.default = _default;
|
|
51
|
+
//# sourceMappingURL=DeprecatedCardWrapper.js.map);
|
|
40
52
|
return /*#__PURE__*/_react.default.createElement(_Touchable.default, _extends({
|
|
41
53
|
disabled: !onPress,
|
|
42
54
|
onPress: onPress,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["DeprecatedCardWrapper.
|
|
1
|
+
{"version":3,"sources":["DeprecatedCardWrapper.js"],"names":["getWidth","numColumns","Card","children","onPress","style","rest","width","React","createElement","Touchable","disabled"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AACA,MAAMA,QAAQ,GAAIC,UAAD,IAAgB;AAC7B,UAAQA,UAAR;AACI,SAAK,CAAL;AACI,aAAO,KAAP;;AACJ,SAAK,CAAL;AACI,aAAO,KAAP;;AACJ;AACI,aAAO,MAAP;AANR;AAQH,CATD;;AAUA,MAAMC,IAAI,GAAG,QAA2D;AAAA,MAA1D;AAAED,IAAAA,UAAU,GAAG,CAAf;AAAkBE,IAAAA,QAAlB;AAA4BC,IAAAA,OAA5B;AAAqCC,IAAAA,KAArC;AAA4C,OAAGC;AAA/C,GAA0D;AACpE,QAAMC,KAAK,GAAGP,QAAQ,CAACC,UAAD,CAAtB;AACA,sBAAQO,eAAMC,aAAN,CAAoBC,kBAApB,EAA+B;AAAEC,IAAAA,QAAQ,EAAE,CAACP,OAAb;AAAsBA,IAAAA,OAAO,EAAEA,OAA/B;AAAwCC,IAAAA,KAAK,EAAE,CAACA,KAAD,EAAQ;AAAEE,MAAAA;AAAF,KAAR,CAA/C;AAAmE,OAAGD;AAAtE,GAA/B,EAA6GH,QAA7G,CAAR;AACH,CAHD;;eAIe,wBAAUD,IAAV,C","sourcesContent":["import React from \"react\";\nimport { withTheme } from \"../theming\";\nimport Touchable from \"./Touchable\";\nconst getWidth = (numColumns) => {\n switch (numColumns) {\n case 1:\n return \"33%\";\n case 2:\n return \"50%\";\n default:\n return \"100%\";\n }\n};\nconst Card = ({ numColumns = 3, children, onPress, style, ...rest }) => {\n const width = getWidth(numColumns);\n return (React.createElement(Touchable, { disabled: !onPress, onPress: onPress, style: [style, { width }], ...rest }, children));\n};\nexport default withTheme(Card);\n"]}
|
|
@@ -52,14 +52,16 @@ const SEED_DATA = {
|
|
|
52
52
|
description: "The latitude delta for the map's initial region",
|
|
53
53
|
required: false,
|
|
54
54
|
precision: 4,
|
|
55
|
-
defaultValue: 1
|
|
55
|
+
defaultValue: 1,
|
|
56
|
+
group: _types.GROUPS.basic
|
|
56
57
|
}),
|
|
57
58
|
longitudeDelta: (0, _types.createNumberProp)({
|
|
58
59
|
label: "Init Longitude Delta",
|
|
59
60
|
description: "The longitude delta for the map's initial region",
|
|
60
61
|
required: false,
|
|
61
62
|
precision: 4,
|
|
62
|
-
defaultValue: 1
|
|
63
|
+
defaultValue: 1,
|
|
64
|
+
group: _types.GROUPS.basic
|
|
63
65
|
}),
|
|
64
66
|
zoom: (0, _types.createNumberProp)({
|
|
65
67
|
label: "Initial Zoom (Web)",
|
|
@@ -67,7 +69,8 @@ const SEED_DATA = {
|
|
|
67
69
|
required: true,
|
|
68
70
|
precision: 0,
|
|
69
71
|
step: 1,
|
|
70
|
-
defaultValue: 8
|
|
72
|
+
defaultValue: 8,
|
|
73
|
+
group: _types.GROUPS.basic
|
|
71
74
|
}),
|
|
72
75
|
mapType: {
|
|
73
76
|
label: "Map Type",
|
|
@@ -119,8 +122,12 @@ const SEED_DATA = {
|
|
|
119
122
|
description: "Color of the loading indicator"
|
|
120
123
|
}),
|
|
121
124
|
loadingBackgroundColor: (0, _types.createColorProp)({
|
|
122
|
-
label: "Loading
|
|
125
|
+
label: "Loading BG Color",
|
|
123
126
|
description: "Color of the background to show while the map is loading"
|
|
127
|
+
}),
|
|
128
|
+
apiKey: (0, _types.createTextProp)({
|
|
129
|
+
defaultValue: process.env.GOOGLE_MAPS_API_KEY,
|
|
130
|
+
editable: false
|
|
124
131
|
})
|
|
125
132
|
}
|
|
126
133
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["MapView.ts"],"names":["SEED_DATA","name","tag","packageName","description","category","COMPONENT_TYPES","media","layout","height","width","props","provider","formType","FORM_TYPES","flatArray","propType","PROP_TYPES","STRING","editable","group","GROUPS","basic","label","required","defaultValue","options","latitude","precision","min","max","longitude","latitudeDelta","longitudeDelta","zoom","step","mapType","zoomEnabled","showsCompass","rotateEnabled","scrollEnabled","loadingEnabled","loadingIndicatorColor","loadingBackgroundColor"],"mappings":";;;;;;;AAAA;;
|
|
1
|
+
{"version":3,"sources":["MapView.ts"],"names":["SEED_DATA","name","tag","packageName","description","category","COMPONENT_TYPES","media","layout","height","width","props","provider","formType","FORM_TYPES","flatArray","propType","PROP_TYPES","STRING","editable","group","GROUPS","basic","label","required","defaultValue","options","latitude","precision","min","max","longitude","latitudeDelta","longitudeDelta","zoom","step","mapType","zoomEnabled","showsCompass","rotateEnabled","scrollEnabled","loadingEnabled","loadingIndicatorColor","loadingBackgroundColor","apiKey","process","env","GOOGLE_MAPS_API_KEY"],"mappings":";;;;;;;AAAA;;AAWO,MAAMA,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,UADiB;AAEvBC,EAAAA,GAAG,EAAE,SAFkB;AAGvBC,EAAAA,WAAW,EAAE,gBAHU;AAIvBC,EAAAA,WAAW,EAAE,YAJU;AAKvBC,EAAAA,QAAQ,EAAEC,uBAAgBC,KALH;AAMvBC,EAAAA,MAAM,EAAE;AACNC,IAAAA,MAAM,EAAE,MADF;AAENC,IAAAA,KAAK,EAAE;AAFD,GANe;AAUvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,QAAQ,EAAE;AACRC,MAAAA,QAAQ,EAAEC,kBAAWC,SADb;AAERC,MAAAA,QAAQ,EAAEC,kBAAWC,MAFb;AAGRC,MAAAA,QAAQ,EAAE,IAHF;AAIRC,MAAAA,KAAK,EAAEC,cAAOC,KAJN;AAKRC,MAAAA,KAAK,EAAE,UALC;AAMRnB,MAAAA,WAAW,EAAE,mBANL;AAORoB,MAAAA,QAAQ,EAAE,KAPF;AAQRC,MAAAA,YAAY,EAAE,IARN;AASRC,MAAAA,OAAO,EAAE,CAAC,QAAD;AATD,KADL;AAYLC,IAAAA,QAAQ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C,MAAAA,YAAY,EAAE;AALc,KAAf,CAtFV;AA6FLe,IAAAA,aAAa,EAAE,2BAAe;AAC5BjB,MAAAA,KAAK,EAAE,gBADqB;AAE5BnB,MAAAA,WAAW,EAAE,2CAFe;AAG5BgB,MAAAA,KAAK,EAAEC,cAAOC,KAHc;AAI5BE,MAAAA,QAAQ,EAAE,KAJkB;AAK5BC,MAAAA,YAAY,EAAE;AALc,KAAf,CA7FV;AAoGLgB,IAAAA,cAAc,EAAE,2BAAe;AAC7BlB,MAAAA,KAAK,EAAE,iBADsB;AAE7BnB,MAAAA,WAAW,EACT,gEAH2B;AAI7BgB,MAAAA,KAAK,EAAEC,cAAOC,KAJe;AAK7BE,MAAAA,QAAQ,EAAE,KALmB;AAM7BC,MAAAA,YAAY,EAAE;AANe,KAAf,CApGX;AA4GLiB,IAAAA,qBAAqB,EAAE,4BAAgB;AACrCnB,MAAAA,KAAK,EAAE,yBAD8B;AAErCnB,MAAAA,WAAW,EAAE;AAFwB,KAAhB,CA5GlB;AAgHLuC,IAAAA,sBAAsB,EAAE,4BAAgB;AACtCpB,MAAAA,KAAK,EAAE,kBAD+B;AAEtCnB,MAAAA,WAAW,EAAE;AAFyB,KAAhB,CAhHnB;AAoHLwC,IAAAA,MAAM,EAAE,2BAAe;AACrBnB,MAAAA,YAAY,EAAEoB,OAAO,CAACC,GAAR,CAAYC,mBADL;AAErB5B,MAAAA,QAAQ,EAAE;AAFW,KAAf;AApHH;AAVgB,CAAlB","sourcesContent":["import {\n COMPONENT_TYPES,\n createBoolProp,\n createColorProp,\n createNumberProp,\n createTextProp,\n GROUPS,\n FORM_TYPES,\n PROP_TYPES,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Map View\",\n tag: \"MapView\",\n packageName: \"@draftbit/maps\",\n description: \"A map view\",\n category: COMPONENT_TYPES.media,\n layout: {\n height: \"100%\",\n width: \"100%\",\n },\n props: {\n provider: {\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n editable: true,\n group: GROUPS.basic,\n label: \"Provider\",\n description: \"The maps provider\",\n required: false,\n defaultValue: null,\n options: [\"google\"],\n },\n latitude: createNumberProp({\n label: \"Initial Latitude\",\n description: \"The longitude for the map's initial region\",\n required: false,\n precision: 6,\n min: -90,\n max: 90,\n defaultValue: 37.40241,\n }),\n longitude: createNumberProp({\n label: \"Initial Longitude\",\n description: \"The longitude for the map's initial region\",\n required: false,\n precision: 6,\n min: -180,\n max: 180,\n defaultValue: -122.12125,\n }),\n latitudeDelta: createNumberProp({\n label: \"Init Latitude Delta\",\n description: \"The latitude delta for the map's initial region\",\n required: false,\n precision: 4,\n defaultValue: 1,\n group: GROUPS.basic,\n }),\n longitudeDelta: createNumberProp({\n label: \"Init Longitude Delta\",\n description: \"The longitude delta for the map's initial region\",\n required: false,\n precision: 4,\n defaultValue: 1,\n group: GROUPS.basic,\n }),\n zoom: createNumberProp({\n label: \"Initial Zoom (Web)\",\n description: \"The initial zoom of the map\",\n required: true,\n precision: 0,\n step: 1,\n defaultValue: 8,\n group: GROUPS.basic,\n }),\n mapType: {\n label: \"Map Type\",\n description: \"The type of map to show\",\n group: GROUPS.basic,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n required: false,\n defaultValue: null,\n options: [\n \"standard\",\n \"satellite\",\n \"hybrid\",\n \"terrain\",\n \"none\",\n \"mutedStandard\",\n ],\n },\n zoomEnabled: createBoolProp({\n label: \"Zoom Enabled\",\n description: \"Whether zooming is enabled (native only)\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n showsCompass: createBoolProp({\n label: \"Shows Compass\",\n description: \"Whether compass is shown\",\n group: GROUPS.basic,\n required: false,\n defaultValue: false,\n }),\n rotateEnabled: createBoolProp({\n label: \"Rotate Enabled\",\n description: \"Whether rotating the map is enabled\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n scrollEnabled: createBoolProp({\n label: \"Scroll Enabled\",\n description: \"Whether scrolling the map view is enabled\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n loadingEnabled: createBoolProp({\n label: \"Loading Enabled\",\n description:\n \"If true a loading indicator will show while the map is loading\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n loadingIndicatorColor: createColorProp({\n label: \"Loading Indicator Color\",\n description: \"Color of the loading indicator\",\n }),\n loadingBackgroundColor: createColorProp({\n label: \"Loading BG Color\",\n description: \"Color of the background to show while the map is loading\",\n }),\n apiKey: createTextProp({\n defaultValue: process.env.GOOGLE_MAPS_API_KEY,\n editable: false,\n }),\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["RadioButtonGroup.
|
|
1
|
+
{"version":3,"sources":["RadioButtonGroup.js"],"names":["SEED_DATA","name","tag","category","COMPONENT_TYPES","input","layout","triggers","Triggers","OnValueChange","props","direction","fieldName","handlerPropName","valuePropName","defaultValue"],"mappings":";;;;;;;AAAA;;AACO,MAAMA,SAAS,GAAG;AACrBC,EAAAA,IAAI,EAAE,oBADe;AAErBC,EAAAA,GAAG,EAAE,kBAFgB;AAGrBC,EAAAA,QAAQ,EAAEC,uBAAgBC,KAHL;AAIrBC,EAAAA,MAAM,EAAE,EAJa;AAKrBC,EAAAA,QAAQ,EAAE,CAACC,gBAASC,aAAV,CALW;AAMrBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,SAAS,EAAE,iCADR;AAEHC,IAAAA,SAAS,EAAE,gCAAoB;AAC3BC,MAAAA,eAAe,EAAE,eADU;AAE3BC,MAAAA,aAAa,EAAE,OAFY;AAG3BC,MAAAA,YAAY,EAAE;AAHa,KAApB;AAFR;AANc,CAAlB","sourcesContent":["import { COMPONENT_TYPES, createFieldNameProp, createDirectionProp, Triggers, } from \"@draftbit/types\";\nexport const SEED_DATA = {\n name: \"Radio Button Group\",\n tag: \"RadioButtonGroup\",\n category: COMPONENT_TYPES.input,\n layout: {},\n triggers: [Triggers.OnValueChange],\n props: {\n direction: createDirectionProp(),\n fieldName: createFieldNameProp({\n handlerPropName: \"onValueChange\",\n valuePropName: \"value\",\n defaultValue: \"radioButtonGroupValue\",\n }),\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["RadioButtonRow.
|
|
1
|
+
{"version":3,"sources":["RadioButtonRow.js"],"names":["SEED_DATA","name","tag","category","COMPONENT_TYPES","input","layout","props","label","description","required","defaultValue","direction","options","value","color","group","GROUPS","basic","unselectedColor"],"mappings":";;;;;;;AAAA;;AACO,MAAMA,SAAS,GAAG;AACrBC,EAAAA,IAAI,EAAE,kBADe;AAErBC,EAAAA,GAAG,EAAE,gBAFgB;AAGrBC,EAAAA,QAAQ,EAAEC,uBAAgBC,KAHL;AAIrBC,EAAAA,MAAM,EAAE,EAJa;AAKrBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,KAAK,EAAE,2BAAe;AAClBA,MAAAA,KAAK,EAAE,OADW;AAElBC,MAAAA,WAAW,EAAE,qCAFK;AAGlBC,MAAAA,QAAQ,EAAE,IAHQ;AAIlBC,MAAAA,YAAY,EAAE;AAJI,KAAf,CADJ;AAOHC,IAAAA,SAAS,EAAE,+BAAmB;AAC1BJ,MAAAA,KAAK,EAAE,WADmB;AAE1BC,MAAAA,WAAW,EAAE,8DAFa;AAG1BI,MAAAA,OAAO,EAAE,CAAC,KAAD,EAAQ,aAAR;AAHiB,KAAnB,CAPR;AAYHC,IAAAA,KAAK,EAAE,2BAAe;AAClBN,MAAAA,KAAK,EAAE,OADW;AAElBC,MAAAA,WAAW,EAAE,2BAFK;AAGlBE,MAAAA,YAAY,EAAE,IAHI;AAIlBD,MAAAA,QAAQ,EAAE;AAJQ,KAAf,CAZJ;AAkBHK,IAAAA,KAAK,EAAE,4BAAgB;AACnBC,MAAAA,KAAK,EAAEC,cAAOC,KADK;AAEnBT,MAAAA,WAAW,EAAE,sBAFM;AAGnBE,MAAAA,YAAY,EAAE;AAHK,KAAhB,CAlBJ;AAuBHQ,IAAAA,eAAe,EAAE,4BAAgB;AAC7BH,MAAAA,KAAK,EAAEC,cAAOC,KADe;AAE7BV,MAAAA,KAAK,EAAE,kBAFsB;AAG7BC,MAAAA,WAAW,EAAE,iCAHgB;AAI7BE,MAAAA,YAAY,EAAE;AAJe,KAAhB;AAvBd;AALc,CAAlB","sourcesContent":["import { createTextProp, createTextEnumProp, COMPONENT_TYPES, createColorProp, GROUPS, } from \"@draftbit/types\";\nexport const SEED_DATA = {\n name: \"Radio Button Row\",\n tag: \"RadioButtonRow\",\n category: COMPONENT_TYPES.input,\n layout: {},\n props: {\n label: createTextProp({\n label: \"Label\",\n description: \"Label to show with the radio button\",\n required: true,\n defaultValue: \"First Option\",\n }),\n direction: createTextEnumProp({\n label: \"Direction\",\n description: \"Whether the checkbox will appear on the left or on the right\",\n options: [\"row\", \"row-reverse\"],\n }),\n value: createTextProp({\n label: \"Value\",\n description: \"Value of the radio button\",\n defaultValue: null,\n required: true,\n }),\n color: createColorProp({\n group: GROUPS.basic,\n description: \"Color for the button\",\n defaultValue: \"primary\",\n }),\n unselectedColor: createColorProp({\n group: GROUPS.basic,\n label: \"Unselected Color\",\n description: \"Unselected Color for the button\",\n defaultValue: \"primary\",\n }),\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["View.ts"],"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","basic","props","accessible","group","GROUPS","accessibility","label","editable","required","formType","FORM_TYPES","boolean","propType","PROP_TYPES","BOOLEAN","defaultValue","accessibilityLabel","string","STRING","accessibilityHint","accessibilityRole","options","flatArray","accessibilityElementsHidden","accessibilityIgnoresInvertColors","accessibilityLiveRegion","importantForAccessibility","hitSlop","advanced","position","OBJECT","pointerEvents","removeClippedSubviews","collapsable","needsOffscreenAlphaCompositing","renderToHardwareTextureAndroid","shouldRasterizeIOS"],"mappings":";;;;;;;AAAA;;AAOO,MAAMA,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,MADiB;A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AAQ,EAAE,IANQ;AAOlBC,MAAAA,QAAQ,EAAE,KAPQ;AAQlBC,MAAAA,QAAQ,EAAEC,kBAAWC,OARH;AASlBC,MAAAA,QAAQ,EAAEC,kBAAWC,OATH;AAUlBC,MAAAA,YAAY,EAAE;AAVI;AAzMf;AALgB,CAAlB","sourcesContent":["import {\n GROUPS,\n COMPONENT_TYPES,\n FORM_TYPES,\n PROP_TYPES,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"View\",\n tag: \"View\",\n description: \"A basic View component\",\n category: COMPONENT_TYPES.basic,\n props: {\n accessible: {\n group: GROUPS.accessibility,\n name: \"accessible\",\n label: \"accessible\",\n description:\n \"When true, indicates that the view is an accessibility element. By default, all the touchable elements are accessible.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n accessibilityLabel: {\n group: GROUPS.accessibility,\n name: \"accessibilityLabel\",\n label: \"accessibilityLabel\",\n description:\n \"Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n editable: true,\n required: false,\n defaultValue: null,\n },\n accessibilityHint: {\n group: GROUPS.accessibility,\n name: \"accessibilityHint\",\n label: \"accessibilityHint\",\n description:\n \"An accessibility hint helps users understand what will happen when they perform an action on the accessibility element when that result is not clear from the accessibility label.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n accessibilityRole: {\n group: GROUPS.accessibility,\n name: \"accessibilityRole\",\n label: \"accessibilityRole\",\n description:\n \"accessibilityRole communicates the purpose of a component to the user of an assistive technology.accessibilityRole can be one of the following:\\n'none' - Used when the element has no role.\\n'button' - Used when the element should be treated as a button.\\n'link' - Used when the element should be treated as a link.\\n'search' - Used when the text field element should also be treated as a search field.\\n'image' - Used when the element should be treated as an image. Can be combined with button or link, for example.\\n'keyboardkey' - Used when the element acts as a keyboard key.\\n'text' - Used when the element should be treated as static text that cannot change.\\n'adjustable' - Used when an element can be \\\"adjusted\\\" (e.g. a slider).\\n'imagebutton' - Used when the element should be treated as a button and is also an image.\\n'header' - Used when an element acts as a header for a content section (e.g. the title of a navigation bar).\\n'summary' - Used when an element can be used to provide a quick summary of current conditions in the app when the app first launches.\\n'alert' - Used when an element contains important text to be presented to the user.\\n'checkbox' - Used when an element represents a checkbox which can be checked, unchecked, or have mixed checked state.\\n'combobox' - Used when an element represents a combo box, which allows the user to select among several choices.\\n'menu' - Used when the component is a menu of choices.\\n'menubar' - Used when a component is a container of multiple menus.\\n'menuitem' - Used to represent an item within a menu.\\n'progressbar' - Used to represent a component which indicates progress of a task.\\n'radio' - Used to represent a radio button.\\n'radiogroup' - Used to represent a group of radio buttons.\\n'scrollbar' - Used to represent a scroll bar.\\n'spinbutton' - Used to represent a button which opens a list of choices.\\n'switch' - Used to represent a switch which can be turned on and off.\\n'tab' - Used to represent a tab.\\n'tablist' - Used to represent a list of tabs.\\n'timer' - Used to represent a timer.\\n'toolbar' - Used to represent a tool bar (a container of action buttons or components).\\n\",\n options: [\n \"none\",\n \"button\",\n \"link\",\n \"search\",\n \"image\",\n \"keyboardkey\",\n \"text\",\n \"adjustable\",\n \"imagebutton\",\n \"header\",\n \"summary\",\n \"alert\",\n \"checkbox\",\n \"combobox\",\n \"menu\",\n \"menubar\",\n \"menuitem\",\n \"progressbar\",\n \"radio\",\n \"radiogroup\",\n \"scrollbar\",\n \"spinbutton\",\n \"switch\",\n \"tab\",\n \"tablist\",\n \"timer\",\n \"toolbar\",\n ],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n accessibilityElementsHidden: {\n group: GROUPS.accessibility,\n name: \"accessibilityElementsHidden\",\n label: \"accessibilityElementsHidden\",\n description:\n \"A value indicating whether the accessibility elements contained within this accessibility element are hidden. Default is false.See the Accessibility guide for more information.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n accessibilityIgnoresInvertColors: {\n group: GROUPS.accessibility,\n name: \"accessibilityIgnoresInvertColors\",\n label: \"accessibilityIgnoresInvertColors\",\n description:\n \"A value indicating this view should or should not be inverted when color inversion is turned on. A value of true will tell the view to not be inverted even if color inversion is turned on.See the Accessibility guide for more information.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n accessibilityLiveRegion: {\n group: GROUPS.accessibility,\n name: \"accessibilityLiveRegion\",\n label: \"accessibilityLiveRegion\",\n description:\n \"Indicates to accessibility services whether the user should be notified when this view changes. Works for Android API >= 19 only. Possible values:\\n'none' - Accessibility services should not announce changes to this view.\\n'polite'- Accessibility services should announce changes to this view.\\n'assertive' - Accessibility services should interrupt ongoing speech to immediately announce changes to this view.\\nSee the Android View docs for reference.\",\n options: [\"none\", \"polite\", \"assertive\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n importantForAccessibility: {\n group: GROUPS.accessibility,\n name: \"importantForAccessibility\",\n label: \"importantForAccessibility\",\n defaultValue: null,\n description:\n \"Controls how view is important for accessibility which is if it fires accessibility events and if it is reported to accessibility services that query the screen. Works for Android only.Possible values:\\n'auto' - The system determines whether the view is important for accessibility - default (recommended).\\n'yes' - The view is important for accessibility.\\n'no' - The view is not important for accessibility.\\n'no-hide-descendants' - The view is not important for accessibility, nor are any of its descendant views.\\nSee the Android importantForAccessibility docs for reference.\",\n options: [\"auto\", \"yes\", \"no\", \"no-hide-descendants\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n },\n hitSlop: {\n group: GROUPS.advanced,\n name: \"hitSlop\",\n label: \"hitSlop\",\n description:\n \"This defines how far a touch event can start away from the view. Typical interface guidelines recommend touch targets that are at least 30 - 40 points/density-independent pixels.For example, if a touchable view has a height of 20 the touchable height can be extended to 40 with hitSlop={{top: 10, bottom: 10, left: 0, right: 0}}\\nThe touch area never extends past the parent view bounds and the Z-index of sibling views always takes precedence if a touch hits two overlapping views.\\n\",\n editable: true,\n required: false,\n formType: FORM_TYPES.position,\n propType: PROP_TYPES.OBJECT,\n defaultValue: null,\n },\n pointerEvents: {\n group: GROUPS.advanced,\n name: \"pointerEvents\",\n label: \"pointerEvents\",\n description:\n \"Controls whether the View can be the target of touch events.\\n'auto': The View can be the target of touch events.\\n'none': The View is never the target of touch events.\\n'box-none': The View is never the target of touch events but its subviews can be. It behaves like if the view had the following classes in CSS:\\n.box-none {\\n pointer-events: none;\\n}\\n.box-none * {\\n pointer-events: auto;\\n}\\n\\n'box-only': The view can be the target of touch events but its subviews cannot be. It behaves like if the view had the following classes in CSS:\\n.box-only {\\n pointer-events: auto;\\n}\\n.box-only * {\\n pointer-events: none;\\n}\\n\\nSince pointerEvents does not affect layout/appearance, and we are already deviating from the spec by adding additional modes, we opt to not include pointerEvents on style. On some platforms, we would need to implement it as a className anyways. Using style or not is an implementation detail of the platform.\\n\",\n options: [\"auto\", \"none\", \"box-none\", \"box-only\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: \"auto\",\n },\n removeClippedSubviews: {\n group: GROUPS.advanced,\n name: \"removeClippedSubviews\",\n label: \"removeClippedSubviews\",\n description:\n \"This is a reserved performance property exposed by RCTView and is useful for scrolling content when there are many subviews, most of which are offscreen. For this property to be effective, it must be applied to a view that contains many subviews that extend outside its bound. The subviews must also have overflow: hidden, as should the containing view (or one of its superviews).\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n collapsable: {\n group: GROUPS.advanced,\n name: \"collapsable\",\n label: \"collapsable\",\n description:\n \"Views that are only used to layout their children or otherwise don't draw anything may be automatically removed from the native hierarchy as an optimization. Set this property to false to disable this optimization and ensure that this View exists in the native view hierarchy.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n needsOffscreenAlphaCompositing: {\n group: GROUPS.advanced,\n name: \"needsOffscreenAlphaCompositing\",\n label: \"needsOffscreenAlphaCompositing\",\n description:\n \"Whether this View needs to rendered offscreen and composited with an alpha in order to preserve 100% correct colors and blending behavior. The default (false) falls back to drawing the component and its children with an alpha applied to the paint used to draw each element instead of rendering the full component offscreen and compositing it back with an alpha value. This default may be noticeable and undesired in the case where the View you are setting an opacity on has multiple overlapping elements (e.g. multiple overlapping Views, or text and a background).Rendering offscreen to preserve correct alpha behavior is extremely expensive and hard to debug for non-native developers, which is why it is not turned on by default. If you do need to enable this property for an animation, consider combining it with renderToHardwareTextureAndroid if the view contents are static (i.e. it doesn't need to be redrawn each frame). If that property is enabled, this View will be rendered off-screen once, saved in a hardware texture, and then composited onto the screen with an alpha each frame without having to switch rendering targets on the GPU.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n renderToHardwareTextureAndroid: {\n group: GROUPS.advanced,\n name: \"renderToHardwareTextureAndroid\",\n label: \"renderToHardwareTextureAndroid\",\n description:\n \"Whether this View should render itself (and all of its children) into a single hardware texture on the GPU.On Android, this is useful for animations and interactions that only modify opacity, rotation, translation, and/or scale: in those cases, the view doesn't have to be redrawn and display lists don't need to be re-executed. The texture can be re-used and re-composited with different parameters. The downside is that this can use up limited video memory, so this prop should be set back to false at the end of the interaction/animation.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n shouldRasterizeIOS: {\n group: GROUPS.advanced,\n name: \"shouldRasterizeIOS\",\n label: \"shouldRasterizeIOS\",\n description:\n \"Whether this View should be rendered as a bitmap before compositing.On iOS, this is useful for animations and interactions that do not modify this component's dimensions nor its children; for example, when translating the position of a static view, rasterization allows the renderer to reuse a cached bitmap of a static view and quickly composite it during each frame.Rasterization incurs an off-screen drawing pass and the bitmap consumes memory. Test and measure when using this property.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n },\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["View.ts"],"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","basic","props","accessible","group","GROUPS","accessibility","label","editable","required","formType","FORM_TYPES","boolean","propType","PROP_TYPES","BOOLEAN","defaultValue","accessibilityLabel","string","STRING","accessibilityHint","accessibilityRole","options","flatArray","accessibilityElementsHidden","accessibilityIgnoresInvertColors","accessibilityLiveRegion","importantForAccessibility","hitSlop","advanced","position","OBJECT","pointerEvents","removeClippedSubviews","collapsable","needsOffscreenAlphaCompositing","renderToHardwareTextureAndroid","shouldRasterizeIOS"],"mappings":";;;;;;;AAAA;;AAOO,MAAMA,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,MADiB;AAEvBC,EAAAA,GAAG,EAAE,MAFkB;AAGvBC,EAAAA,WAAW,EAAE,wBAHU;AAIvBC,EAAAA,QAAQ,EAAEC,uBAAgBC,KAJH;AAKvBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,UAAU,EAAE;AACVC,MAAAA,KAAK,EAAEC,cAAOC,aADJ;AAEVV,MAAAA,IAAI,EAAE,YAFI;AAGVW,MAAAA,KAAK,EAAE,YAHG;AAIVT,MAAAA,WAAW,EACT,wHALQ;AAMVU,MAAAA,QAAQ,EAAE,IANA;AAOVC,MAAAA,QAAQ,EAAE,KAPA;AAQVC,MAAAA,QAAQ,EAAEC,kBAAWC,OARX;AASVC,MAAAA,QAAQ,EAAEC,kBAAWC,OATX;AAUVC,MAAAA,YAAY,EAAE;AAVJ,KADP;AAaLC,IAAAA,kBAAkB,EAAE;AAClBb,MAAAA,KAAK,EAAE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AEC,kBAAWC,OARS;AAS9BC,MAAAA,QAAQ,EAAEC,kBAAWC,OATS;AAU9BC,MAAAA,YAAY,EAAE;AAVgB,KAjL3B;AA6LLoB,IAAAA,8BAA8B,EAAE;AAC9BhC,MAAAA,KAAK,EAAEC,cAAOwB,QADgB;AAE9BjC,MAAAA,IAAI,EAAE,gCAFwB;AAG9BW,MAAAA,KAAK,EAAE,gCAHuB;AAI9BT,MAAAA,WAAW,EACT,+hBAL4B;AAM9BU,MAAAA,QAAQ,EAAE,IANoB;AAO9BC,MAAAA,QAAQ,EAAE,KAPoB;AAQ9BC,MAAAA,QAAQ,EAAEC,kBAAWC,OARS;AAS9BC,MAAAA,QAAQ,EAAEC,kBAAWC,OATS;AAU9BC,MAAAA,YAAY,EAAE;AAVgB,KA7L3B;AAyMLqB,IAAAA,kBAAkB,EAAE;AAClBjC,MAAAA,KAAK,EAAEC,cAAOwB,QADI;AAElBjC,MAAAA,IAAI,EAAE,oBAFY;AAGlBW,MAAAA,KAAK,EAAE,oBAHW;AAIlBT,MAAAA,WAAW,EACT,4eALgB;AAMlBU,MAAAA,QAAQ,EAAE,IANQ;AAOlBC,MAAAA,QAAQ,EAAE,KAPQ;AAQlBC,MAAAA,QAAQ,EAAEC,kBAAWC,OARH;AASlBC,MAAAA,QAAQ,EAAEC,kBAAWC,OATH;AAUlBC,MAAAA,YAAY,EAAE;AAVI;AAzMf;AALgB,CAAlB","sourcesContent":["import {\n GROUPS,\n COMPONENT_TYPES,\n FORM_TYPES,\n PROP_TYPES,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"View\",\n tag: \"View\",\n description: \"A basic View component\",\n category: COMPONENT_TYPES.basic,\n props: {\n accessible: {\n group: GROUPS.accessibility,\n name: \"accessible\",\n label: \"accessible\",\n description:\n \"When true, indicates that the view is an accessibility element. By default, all the touchable elements are accessible.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n accessibilityLabel: {\n group: GROUPS.accessibility,\n name: \"accessibilityLabel\",\n label: \"accessibilityLabel\",\n description:\n \"Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.\",\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n editable: true,\n required: false,\n defaultValue: null,\n },\n accessibilityHint: {\n group: GROUPS.accessibility,\n name: \"accessibilityHint\",\n label: \"accessibilityHint\",\n description:\n \"An accessibility hint helps users understand what will happen when they perform an action on the accessibility element when that result is not clear from the accessibility label.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.string,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n accessibilityRole: {\n group: GROUPS.accessibility,\n name: \"accessibilityRole\",\n label: \"accessibilityRole\",\n description:\n \"accessibilityRole communicates the purpose of a component to the user of an assistive technology.accessibilityRole can be one of the following:\\n'none' - Used when the element has no role.\\n'button' - Used when the element should be treated as a button.\\n'link' - Used when the element should be treated as a link.\\n'search' - Used when the text field element should also be treated as a search field.\\n'image' - Used when the element should be treated as an image. Can be combined with button or link, for example.\\n'keyboardkey' - Used when the element acts as a keyboard key.\\n'text' - Used when the element should be treated as static text that cannot change.\\n'adjustable' - Used when an element can be \\\"adjusted\\\" (e.g. a slider).\\n'imagebutton' - Used when the element should be treated as a button and is also an image.\\n'header' - Used when an element acts as a header for a content section (e.g. the title of a navigation bar).\\n'summary' - Used when an element can be used to provide a quick summary of current conditions in the app when the app first launches.\\n'alert' - Used when an element contains important text to be presented to the user.\\n'checkbox' - Used when an element represents a checkbox which can be checked, unchecked, or have mixed checked state.\\n'combobox' - Used when an element represents a combo box, which allows the user to select among several choices.\\n'menu' - Used when the component is a menu of choices.\\n'menubar' - Used when a component is a container of multiple menus.\\n'menuitem' - Used to represent an item within a menu.\\n'progressbar' - Used to represent a component which indicates progress of a task.\\n'radio' - Used to represent a radio button.\\n'radiogroup' - Used to represent a group of radio buttons.\\n'scrollbar' - Used to represent a scroll bar.\\n'spinbutton' - Used to represent a button which opens a list of choices.\\n'switch' - Used to represent a switch which can be turned on and off.\\n'tab' - Used to represent a tab.\\n'tablist' - Used to represent a list of tabs.\\n'timer' - Used to represent a timer.\\n'toolbar' - Used to represent a tool bar (a container of action buttons or components).\\n\",\n options: [\n \"none\",\n \"button\",\n \"link\",\n \"search\",\n \"image\",\n \"keyboardkey\",\n \"text\",\n \"adjustable\",\n \"imagebutton\",\n \"header\",\n \"summary\",\n \"alert\",\n \"checkbox\",\n \"combobox\",\n \"menu\",\n \"menubar\",\n \"menuitem\",\n \"progressbar\",\n \"radio\",\n \"radiogroup\",\n \"scrollbar\",\n \"spinbutton\",\n \"switch\",\n \"tab\",\n \"tablist\",\n \"timer\",\n \"toolbar\",\n ],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n accessibilityElementsHidden: {\n group: GROUPS.accessibility,\n name: \"accessibilityElementsHidden\",\n label: \"accessibilityElementsHidden\",\n description:\n \"A value indicating whether the accessibility elements contained within this accessibility element are hidden. Default is false.See the Accessibility guide for more information.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n accessibilityIgnoresInvertColors: {\n group: GROUPS.accessibility,\n name: \"accessibilityIgnoresInvertColors\",\n label: \"accessibilityIgnoresInvertColors\",\n description:\n \"A value indicating this view should or should not be inverted when color inversion is turned on. A value of true will tell the view to not be inverted even if color inversion is turned on.See the Accessibility guide for more information.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n accessibilityLiveRegion: {\n group: GROUPS.accessibility,\n name: \"accessibilityLiveRegion\",\n label: \"accessibilityLiveRegion\",\n description:\n \"Indicates to accessibility services whether the user should be notified when this view changes. Works for Android API >= 19 only. Possible values:\\n'none' - Accessibility services should not announce changes to this view.\\n'polite'- Accessibility services should announce changes to this view.\\n'assertive' - Accessibility services should interrupt ongoing speech to immediately announce changes to this view.\\nSee the Android View docs for reference.\",\n options: [\"none\", \"polite\", \"assertive\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n importantForAccessibility: {\n group: GROUPS.accessibility,\n name: \"importantForAccessibility\",\n label: \"importantForAccessibility\",\n defaultValue: null,\n description:\n \"Controls how view is important for accessibility which is if it fires accessibility events and if it is reported to accessibility services that query the screen. Works for Android only.Possible values:\\n'auto' - The system determines whether the view is important for accessibility - default (recommended).\\n'yes' - The view is important for accessibility.\\n'no' - The view is not important for accessibility.\\n'no-hide-descendants' - The view is not important for accessibility, nor are any of its descendant views.\\nSee the Android importantForAccessibility docs for reference.\",\n options: [\"auto\", \"yes\", \"no\", \"no-hide-descendants\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n },\n hitSlop: {\n group: GROUPS.advanced,\n name: \"hitSlop\",\n label: \"hitSlop\",\n description:\n \"This defines how far a touch event can start away from the view. Typical interface guidelines recommend touch targets that are at least 30 - 40 points/density-independent pixels.For example, if a touchable view has a height of 20 the touchable height can be extended to 40 with hitSlop={{top: 10, bottom: 10, left: 0, right: 0}}\\nThe touch area never extends past the parent view bounds and the Z-index of sibling views always takes precedence if a touch hits two overlapping views.\\n\",\n editable: true,\n required: false,\n formType: FORM_TYPES.position,\n propType: PROP_TYPES.OBJECT,\n defaultValue: null,\n },\n pointerEvents: {\n group: GROUPS.advanced,\n name: \"pointerEvents\",\n label: \"pointerEvents\",\n description:\n \"Controls whether the View can be the target of touch events.\\n'auto': The View can be the target of touch events.\\n'none': The View is never the target of touch events.\\n'box-none': The View is never the target of touch events but its subviews can be. It behaves like if the view had the following classes in CSS:\\n.box-none {\\n pointer-events: none;\\n}\\n.box-none * {\\n pointer-events: auto;\\n}\\n\\n'box-only': The view can be the target of touch events but its subviews cannot be. It behaves like if the view had the following classes in CSS:\\n.box-only {\\n pointer-events: auto;\\n}\\n.box-only * {\\n pointer-events: none;\\n}\\n\\nSince pointerEvents does not affect layout/appearance, and we are already deviating from the spec by adding additional modes, we opt to not include pointerEvents on style. On some platforms, we would need to implement it as a className anyways. Using style or not is an implementation detail of the platform.\\n\",\n options: [\"auto\", \"none\", \"box-none\", \"box-only\"],\n editable: true,\n required: false,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n defaultValue: null,\n },\n removeClippedSubviews: {\n group: GROUPS.advanced,\n name: \"removeClippedSubviews\",\n label: \"removeClippedSubviews\",\n description:\n \"This is a reserved performance property exposed by RCTView and is useful for scrolling content when there are many subviews, most of which are offscreen. For this property to be effective, it must be applied to a view that contains many subviews that extend outside its bound. The subviews must also have overflow: hidden, as should the containing view (or one of its superviews).\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n collapsable: {\n group: GROUPS.advanced,\n name: \"collapsable\",\n label: \"collapsable\",\n description:\n \"Views that are only used to layout their children or otherwise don't draw anything may be automatically removed from the native hierarchy as an optimization. Set this property to false to disable this optimization and ensure that this View exists in the native view hierarchy.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n needsOffscreenAlphaCompositing: {\n group: GROUPS.advanced,\n name: \"needsOffscreenAlphaCompositing\",\n label: \"needsOffscreenAlphaCompositing\",\n description:\n \"Whether this View needs to rendered offscreen and composited with an alpha in order to preserve 100% correct colors and blending behavior. The default (false) falls back to drawing the component and its children with an alpha applied to the paint used to draw each element instead of rendering the full component offscreen and compositing it back with an alpha value. This default may be noticeable and undesired in the case where the View you are setting an opacity on has multiple overlapping elements (e.g. multiple overlapping Views, or text and a background).Rendering offscreen to preserve correct alpha behavior is extremely expensive and hard to debug for non-native developers, which is why it is not turned on by default. If you do need to enable this property for an animation, consider combining it with renderToHardwareTextureAndroid if the view contents are static (i.e. it doesn't need to be redrawn each frame). If that property is enabled, this View will be rendered off-screen once, saved in a hardware texture, and then composited onto the screen with an alpha each frame without having to switch rendering targets on the GPU.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n renderToHardwareTextureAndroid: {\n group: GROUPS.advanced,\n name: \"renderToHardwareTextureAndroid\",\n label: \"renderToHardwareTextureAndroid\",\n description:\n \"Whether this View should render itself (and all of its children) into a single hardware texture on the GPU.On Android, this is useful for animations and interactions that only modify opacity, rotation, translation, and/or scale: in those cases, the view doesn't have to be redrawn and display lists don't need to be re-executed. The texture can be re-used and re-composited with different parameters. The downside is that this can use up limited video memory, so this prop should be set back to false at the end of the interaction/animation.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n shouldRasterizeIOS: {\n group: GROUPS.advanced,\n name: \"shouldRasterizeIOS\",\n label: \"shouldRasterizeIOS\",\n description:\n \"Whether this View should be rendered as a bitmap before compositing.On iOS, this is useful for animations and interactions that do not modify this component's dimensions nor its children; for example, when translating the position of a static view, rasterization allows the renderer to reuse a cached bitmap of a static view and quickly composite it during each frame.Rasterization incurs an off-screen drawing pass and the bitmap consumes memory. Test and measure when using this property.\",\n editable: true,\n required: false,\n formType: FORM_TYPES.boolean,\n propType: PROP_TYPES.BOOLEAN,\n defaultValue: null,\n },\n },\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
//# sourceMappingURL=Justification.js.map
|
|
2
|
+
//# sourceMappingURL=Justification.js.mapion.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
//# sourceMappingURL=ResizeMode.js.map
|
|
2
|
+
//# sourceMappingURL=ResizeMode.js.mapode.js.map
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign || 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
|
-
|
|
3
1
|
import * as React from "react";
|
|
4
2
|
import { Switch as NativeSwitch } from "react-native";
|
|
5
3
|
import { withTheme } from "../theming";
|
|
@@ -39,23 +37,24 @@ function Switch(_ref) {
|
|
|
39
37
|
setChecked(Boolean(defaultValue));
|
|
40
38
|
}
|
|
41
39
|
}, [defaultValue, previousDefaultValue]);
|
|
42
|
-
return /*#__PURE__*/React.createElement(NativeSwitch,
|
|
40
|
+
return /*#__PURE__*/React.createElement(NativeSwitch, {
|
|
43
41
|
value: checked,
|
|
44
42
|
disabled: disabled,
|
|
45
43
|
trackColor: {
|
|
46
44
|
false: inactiveTrackThemeColor,
|
|
47
45
|
true: activeTrackThemeColor
|
|
48
46
|
},
|
|
49
|
-
thumbColor: value ? activeThumbThemeColor : inactiveThumbThemeColor
|
|
50
|
-
|
|
47
|
+
thumbColor: value ? activeThumbThemeColor : inactiveThumbThemeColor,
|
|
48
|
+
// @ts-ignore react-native-web only
|
|
51
49
|
activeThumbColor: activeThumbThemeColor,
|
|
52
50
|
ios_backgroundColor: inactiveTrackThemeColor,
|
|
53
51
|
style: style,
|
|
54
52
|
onValueChange: bool => {
|
|
55
53
|
setChecked(bool);
|
|
56
54
|
onValueChange && onValueChange(bool);
|
|
57
|
-
}
|
|
58
|
-
|
|
55
|
+
},
|
|
56
|
+
...rest
|
|
57
|
+
});
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
function Row(_ref2) {
|
|
@@ -85,7 +84,7 @@ function Row(_ref2) {
|
|
|
85
84
|
setChecked(defaultValue);
|
|
86
85
|
}
|
|
87
86
|
}, [defaultValue]);
|
|
88
|
-
return /*#__PURE__*/React.createElement(FormRow,
|
|
87
|
+
return /*#__PURE__*/React.createElement(FormRow, {
|
|
89
88
|
disabled: disabled,
|
|
90
89
|
onPress: () => {
|
|
91
90
|
setChecked(!checked);
|
|
@@ -93,8 +92,9 @@ function Row(_ref2) {
|
|
|
93
92
|
},
|
|
94
93
|
label: label,
|
|
95
94
|
direction: direction,
|
|
96
|
-
style: style
|
|
97
|
-
|
|
95
|
+
style: style,
|
|
96
|
+
...rest
|
|
97
|
+
}, /*#__PURE__*/React.createElement(Switch, {
|
|
98
98
|
theme: theme,
|
|
99
99
|
value: checked,
|
|
100
100
|
disabled: disabled,
|
|
@@ -106,6 +106,17 @@ function Row(_ref2) {
|
|
|
106
106
|
}));
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
+
const SwitchRow = withTheme(Row);
|
|
110
|
+
export { SwitchRow };
|
|
111
|
+
export default withTheme(Switch);
|
|
112
|
+
//# sourceMappingURL=Switch.js.mapueChange: onValueChange,
|
|
113
|
+
activeTrackColor: activeTrackColor,
|
|
114
|
+
inactiveTrackColor: inactiveTrackColor,
|
|
115
|
+
activeThumbColor: activeThumbColor,
|
|
116
|
+
inactiveThumbColor: inactiveThumbColor
|
|
117
|
+
}));
|
|
118
|
+
}
|
|
119
|
+
|
|
109
120
|
const SwitchRow = withTheme(Row);
|
|
110
121
|
export { SwitchRow };
|
|
111
122
|
export default withTheme(Switch);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Switch.
|
|
1
|
+
{"version":3,"sources":["Switch.js"],"names":["React","Switch","NativeSwitch","withTheme","FormRow","RowDirection","usePrevious","value","defaultValue","disabled","onValueChange","activeTrackColor","inactiveTrackColor","activeThumbColor","inactiveThumbColor","theme","style","rest","activeTrackThemeColor","colors","primary","inactiveTrackThemeColor","activeThumbThemeColor","inactiveThumbThemeColor","checked","setChecked","useState","useEffect","previousDefaultValue","Boolean","createElement","trackColor","false","true","thumbColor","ios_backgroundColor","bool","Row","label","direction","onPress","SwitchRow"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,MAAM,IAAIC,YAAnB,QAAwC,cAAxC;AAC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U,CAAClB,KAAD,CAAV;AACH;AACJ,GAJD,EAIG,CAACA,KAAD,CAJH;AAKAP,EAAAA,KAAK,CAAC2B,SAAN,CAAgB,MAAM;AAClB,QAAInB,YAAY,IAAI,IAApB,EAA0B;AACtBiB,MAAAA,UAAU,CAACjB,YAAD,CAAV;AACH;AACJ,GAJD,EAIG,CAACA,YAAD,CAJH;AAKA,sBAAQR,KAAK,CAAC8B,aAAN,CAAoB1B,OAApB,EAA6B;AAAEK,IAAAA,QAAQ,EAAEA,QAAZ;AAAsB+B,IAAAA,OAAO,EAAE,MAAM;AAClEf,MAAAA,UAAU,CAAC,CAACD,OAAF,CAAV;AACAd,MAAAA,aAAa,IAAIA,aAAa,CAAC,CAACc,OAAF,CAA9B;AACH,KAHgC;AAG9Bc,IAAAA,KAAK,EAAEA,KAHuB;AAGhBC,IAAAA,SAAS,EAAEA,SAHK;AAGMvB,IAAAA,KAAK,EAAEA,KAHb;AAGoB,OAAGC;AAHvB,GAA7B,eAIJjB,KAAK,CAAC8B,aAAN,CAAoB7B,MAApB,EAA4B;AAAEc,IAAAA,KAAK,EAAEA,KAAT;AAAgBR,IAAAA,KAAK,EAAEiB,OAAvB;AAAgCf,IAAAA,QAAQ,EAAEA,QAA1C;AAAoDC,IAAAA,aAAa,EAAEA,aAAnE;AAAkFC,IAAAA,gBAAgB,EAAEA,gBAApG;AAAsHC,IAAAA,kBAAkB,EAAEA,kBAA1I;AAA8JC,IAAAA,gBAAgB,EAAEA,gBAAhL;AAAkMC,IAAAA,kBAAkB,EAAEA;AAAtN,GAA5B,CAJI,CAAR;AAKH;;AACD,MAAM2B,SAAS,GAAGtC,SAAS,CAACkC,GAAD,CAA3B;AACA,SAASI,SAAT;AACA,eAAetC,SAAS,CAACF,MAAD,CAAxB","sourcesContent":["import * as React from \"react\";\nimport { Switch as NativeSwitch, } from \"react-native\";\nimport { withTheme } from \"../theming\";\nimport FormRow from \"./FormRow\";\nimport { RowDirection } from \"@draftbit/types\";\nimport { usePrevious } from \"../hooks\";\nfunction Switch({ value, defaultValue, disabled, onValueChange, activeTrackColor, inactiveTrackColor, activeThumbColor, inactiveThumbColor, theme, style, ...rest }) {\n const activeTrackThemeColor = activeTrackColor || theme.colors.primary;\n const inactiveTrackThemeColor = inactiveTrackColor || \"#EEE\";\n const activeThumbThemeColor = activeThumbColor || \"#FFF\";\n const inactiveThumbThemeColor = inactiveThumbColor || \"#FFF\";\n const [checked, setChecked] = React.useState(value || defaultValue);\n React.useEffect(() => {\n if (value != null && value !== checked) {\n setChecked(value);\n }\n }, [value, checked]);\n // This special logic is to handle weird APIs like Airtable that return\n // true or undefined for a boolean\n const previousDefaultValue = usePrevious(defaultValue);\n React.useEffect(() => {\n if (defaultValue !== previousDefaultValue) {\n setChecked(Boolean(defaultValue));\n }\n }, [defaultValue, previousDefaultValue]);\n return (React.createElement(NativeSwitch, { value: checked, disabled: disabled, trackColor: {\n false: inactiveTrackThemeColor,\n true: activeTrackThemeColor,\n }, thumbColor: value ? activeThumbThemeColor : inactiveThumbThemeColor, \n // @ts-ignore react-native-web only\n activeThumbColor: activeThumbThemeColor, ios_backgroundColor: inactiveTrackThemeColor, style: style, onValueChange: (bool) => {\n setChecked(bool);\n onValueChange && onValueChange(bool);\n }, ...rest }));\n}\nfunction Row({ label = \"Label\", direction = RowDirection.Row, style, value, defaultValue, disabled, onValueChange, activeTrackColor, inactiveTrackColor, activeThumbColor, inactiveThumbColor, theme, ...rest }) {\n const [checked, setChecked] = React.useState(value != null ? value : defaultValue);\n React.useEffect(() => {\n if (value != null) {\n setChecked(value);\n }\n }, [value]);\n React.useEffect(() => {\n if (defaultValue != null) {\n setChecked(defaultValue);\n }\n }, [defaultValue]);\n return (React.createElement(FormRow, { disabled: disabled, onPress: () => {\n setChecked(!checked);\n onValueChange && onValueChange(!checked);\n }, label: label, direction: direction, style: style, ...rest },\n React.createElement(Switch, { theme: theme, value: checked, disabled: disabled, onValueChange: onValueChange, activeTrackColor: activeTrackColor, inactiveTrackColor: inactiveTrackColor, activeThumbColor: activeThumbColor, inactiveThumbColor: inactiveThumbColor })));\n}\nconst SwitchRow = withTheme(Row);\nexport { SwitchRow };\nexport default withTheme(Switch);\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, GROUPS, FORM_TYPES, PROP_TYPES } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, FORM_TYPES, PROP_TYPES } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Map View",
|
|
4
4
|
tag: "MapView",
|
|
@@ -44,14 +44,16 @@ export const SEED_DATA = {
|
|
|
44
44
|
description: "The latitude delta for the map's initial region",
|
|
45
45
|
required: false,
|
|
46
46
|
precision: 4,
|
|
47
|
-
defaultValue: 1
|
|
47
|
+
defaultValue: 1,
|
|
48
|
+
group: GROUPS.basic
|
|
48
49
|
}),
|
|
49
50
|
longitudeDelta: createNumberProp({
|
|
50
51
|
label: "Init Longitude Delta",
|
|
51
52
|
description: "The longitude delta for the map's initial region",
|
|
52
53
|
required: false,
|
|
53
54
|
precision: 4,
|
|
54
|
-
defaultValue: 1
|
|
55
|
+
defaultValue: 1,
|
|
56
|
+
group: GROUPS.basic
|
|
55
57
|
}),
|
|
56
58
|
zoom: createNumberProp({
|
|
57
59
|
label: "Initial Zoom (Web)",
|
|
@@ -59,7 +61,8 @@ export const SEED_DATA = {
|
|
|
59
61
|
required: true,
|
|
60
62
|
precision: 0,
|
|
61
63
|
step: 1,
|
|
62
|
-
defaultValue: 8
|
|
64
|
+
defaultValue: 8,
|
|
65
|
+
group: GROUPS.basic
|
|
63
66
|
}),
|
|
64
67
|
mapType: {
|
|
65
68
|
label: "Map Type",
|
|
@@ -111,8 +114,12 @@ export const SEED_DATA = {
|
|
|
111
114
|
description: "Color of the loading indicator"
|
|
112
115
|
}),
|
|
113
116
|
loadingBackgroundColor: createColorProp({
|
|
114
|
-
label: "Loading
|
|
117
|
+
label: "Loading BG Color",
|
|
115
118
|
description: "Color of the background to show while the map is loading"
|
|
119
|
+
}),
|
|
120
|
+
apiKey: createTextProp({
|
|
121
|
+
defaultValue: process.env.GOOGLE_MAPS_API_KEY,
|
|
122
|
+
editable: false
|
|
116
123
|
})
|
|
117
124
|
}
|
|
118
125
|
};
|