@draftbit/core 46.7.9-157e2b.2 → 46.7.9-193328.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/DatePicker/DatePicker.js +14 -1
- package/lib/commonjs/components/DeckSwiper/DeckSwiper.js +74 -0
- package/lib/commonjs/components/DeckSwiper/DeckSwiperCard.js +34 -0
- package/lib/commonjs/components/DeckSwiper/index.js +20 -0
- package/lib/commonjs/components/DeprecatedFAB.js +3 -21
- package/lib/commonjs/components/NumberInput.js +10 -10
- package/lib/commonjs/components/Picker/Picker.js +10 -3
- package/lib/commonjs/index.js +13 -0
- package/lib/commonjs/mappings/DatePicker.js +8 -2
- package/lib/commonjs/mappings/DeckSwiper.js +55 -0
- package/lib/commonjs/mappings/DeckSwiperCard.js +23 -0
- package/lib/commonjs/mappings/HtmlElements.js +177 -0
- package/lib/commonjs/mappings/Picker.js +5 -0
- package/lib/module/components/CircleImage.js +1 -16
- package/lib/module/components/DatePicker/DatePicker.js +15 -2
- package/lib/module/components/DeckSwiper/DeckSwiper.js +66 -0
- package/lib/module/components/DeckSwiper/DeckSwiperCard.js +26 -0
- package/lib/module/components/DeckSwiper/index.js +2 -0
- package/lib/module/components/NumberInput.js +10 -10
- package/lib/module/components/Picker/Picker.js +11 -4
- package/lib/module/index.js +1 -0
- package/lib/module/mappings/DatePicker.js +9 -3
- package/lib/module/mappings/DeckSwiper.js +48 -0
- package/lib/module/mappings/DeckSwiperCard.js +16 -0
- package/lib/module/mappings/HtmlElements.js +170 -0
- package/lib/module/mappings/Picker.js +6 -1
- package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +1 -0
- package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts +15 -0
- package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts.map +1 -0
- package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts +13 -0
- package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts.map +1 -0
- package/lib/typescript/src/components/DeckSwiper/index.d.ts +3 -0
- package/lib/typescript/src/components/DeckSwiper/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Picker/Picker.d.ts +1 -0
- package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/mappings/DatePicker.d.ts +10 -0
- package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -1
- package/lib/typescript/src/mappings/DeckSwiper.d.ts +86 -0
- package/lib/typescript/src/mappings/DeckSwiper.d.ts.map +1 -0
- package/lib/typescript/src/mappings/DeckSwiperCard.d.ts +16 -0
- package/lib/typescript/src/mappings/DeckSwiperCard.d.ts.map +1 -0
- package/lib/typescript/src/mappings/HtmlElements.d.ts +77 -0
- package/lib/typescript/src/mappings/HtmlElements.d.ts.map +1 -0
- package/lib/typescript/src/mappings/Picker.d.ts +10 -0
- package/lib/typescript/src/mappings/Picker.d.ts.map +1 -1
- package/package.json +5 -3
- package/src/components/DatePicker/DatePicker.js +8 -3
- package/src/components/DatePicker/DatePicker.tsx +10 -1
- package/src/components/DeckSwiper/DeckSwiper.js +35 -0
- package/src/components/DeckSwiper/DeckSwiper.tsx +94 -0
- package/src/components/DeckSwiper/DeckSwiperCard.js +21 -0
- package/src/components/DeckSwiper/DeckSwiperCard.tsx +41 -0
- package/src/components/DeckSwiper/index.js +2 -0
- package/src/components/DeckSwiper/index.tsx +2 -0
- package/src/components/NumberInput.js +9 -9
- package/src/components/NumberInput.tsx +11 -11
- package/src/components/Picker/Picker.js +9 -3
- package/src/components/Picker/Picker.tsx +14 -2
- package/src/index.js +1 -0
- package/src/index.tsx +2 -0
- package/src/mappings/DatePicker.js +8 -2
- package/src/mappings/DatePicker.ts +8 -1
- package/src/mappings/DeckSwiper.js +48 -0
- package/src/mappings/DeckSwiper.ts +57 -0
- package/src/mappings/DeckSwiperCard.js +16 -0
- package/src/mappings/DeckSwiperCard.ts +20 -0
- package/src/mappings/HtmlElements.js +193 -0
- package/src/mappings/HtmlElements.ts +207 -0
- package/src/mappings/Picker.js +6 -1
- package/src/mappings/Picker.ts +6 -0
- package/lib/commonjs/mappings/expo/Image.js +0 -90
- package/lib/module/mappings/expo/Image.js +0 -83
- package/lib/typescript/src/mappings/expo/Image.d.ts +0 -155
- package/lib/typescript/src/mappings/expo/Image.d.ts.map +0 -1
- package/src/mappings/expo/Image.js +0 -107
- package/src/mappings/expo/Image.ts +0 -131
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StyleSheet, View } from "react-native";
|
|
3
|
+
import DeckSwiperComponent from "react-native-deck-swiper";
|
|
4
|
+
const DeckSwiper = _ref => {
|
|
5
|
+
let {
|
|
6
|
+
onIndexChanged,
|
|
7
|
+
onEndReached,
|
|
8
|
+
startCardIndex = 0,
|
|
9
|
+
infiniteSwiping = false,
|
|
10
|
+
verticalEnabled = true,
|
|
11
|
+
horizontalEnabled = true,
|
|
12
|
+
visibleCardCount = 1,
|
|
13
|
+
style,
|
|
14
|
+
children
|
|
15
|
+
} = _ref;
|
|
16
|
+
const childrenArray = React.useMemo(() => React.Children.toArray(children), [children]);
|
|
17
|
+
|
|
18
|
+
// an array of indices based on children count
|
|
19
|
+
const cardsFillerData = React.useMemo(() => Array.from(Array(childrenArray.length).keys()), [childrenArray]);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* By default react-native-deck-swiper positions everything with absolute position.
|
|
23
|
+
* To overcome this, it is wrapped in a View to be able to add the component in any layout structure.
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* Since all children of that View are absolutley positioned, the View does not have a height and still looks and behaves weird.
|
|
27
|
+
* To fix/mitage this without setting a static height, the first card is rendered in invisible state to take up space.
|
|
28
|
+
* This effectivley makes the default height of the container be the height of the first card.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(View, {
|
|
32
|
+
style: styles.containerHeightFiller
|
|
33
|
+
}, childrenArray.length && childrenArray[0]), /*#__PURE__*/React.createElement(DeckSwiperComponent, {
|
|
34
|
+
cards: cardsFillerData,
|
|
35
|
+
renderCard: (_, i) => /*#__PURE__*/React.createElement(React.Fragment, null, childrenArray[i]),
|
|
36
|
+
keyExtractor: card => card === null || card === void 0 ? void 0 : card.toString(),
|
|
37
|
+
containerStyle: StyleSheet.flatten([styles.cardsContainer, style]),
|
|
38
|
+
cardStyle: styles.card,
|
|
39
|
+
onSwiped: onIndexChanged,
|
|
40
|
+
onSwipedAll: onEndReached,
|
|
41
|
+
cardIndex: startCardIndex,
|
|
42
|
+
infinite: infiniteSwiping,
|
|
43
|
+
verticalSwipe: verticalEnabled,
|
|
44
|
+
horizontalSwipe: horizontalEnabled,
|
|
45
|
+
showSecondCard: visibleCardCount > 1,
|
|
46
|
+
stackSize: visibleCardCount,
|
|
47
|
+
backgroundColor: "transparent",
|
|
48
|
+
cardVerticalMargin: 0,
|
|
49
|
+
cardHorizontalMargin: 0
|
|
50
|
+
}));
|
|
51
|
+
};
|
|
52
|
+
const styles = StyleSheet.create({
|
|
53
|
+
cardsContainer: {
|
|
54
|
+
width: "100%"
|
|
55
|
+
},
|
|
56
|
+
card: {
|
|
57
|
+
left: 0,
|
|
58
|
+
right: 0,
|
|
59
|
+
width: "auto",
|
|
60
|
+
height: "auto"
|
|
61
|
+
},
|
|
62
|
+
containerHeightFiller: {
|
|
63
|
+
opacity: 0.0
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
export default DeckSwiper;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { View, StyleSheet } from "react-native";
|
|
3
|
+
import { withTheme } from "../../theming";
|
|
4
|
+
const DeckSwiperCard = _ref => {
|
|
5
|
+
let {
|
|
6
|
+
style,
|
|
7
|
+
children,
|
|
8
|
+
theme
|
|
9
|
+
} = _ref;
|
|
10
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
11
|
+
style: [styles.card, {
|
|
12
|
+
backgroundColor: theme.colors.background,
|
|
13
|
+
borderColor: theme.colors.divider
|
|
14
|
+
}, style]
|
|
15
|
+
}, children);
|
|
16
|
+
};
|
|
17
|
+
const styles = StyleSheet.create({
|
|
18
|
+
card: {
|
|
19
|
+
flex: 1,
|
|
20
|
+
alignItems: "center",
|
|
21
|
+
justifyContent: "center",
|
|
22
|
+
padding: 20,
|
|
23
|
+
borderWidth: 2
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export default withTheme(DeckSwiperCard);
|
|
@@ -24,17 +24,8 @@ const NumberInput = _ref => {
|
|
|
24
24
|
return valueToFormat.toString();
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
return "
|
|
27
|
+
return "";
|
|
28
28
|
};
|
|
29
|
-
|
|
30
|
-
// set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
|
|
31
|
-
useEffect(() => {
|
|
32
|
-
const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
|
|
33
|
-
if (currentStringNumberValue !== defaultStringNumberValue) {
|
|
34
|
-
setCurrentStringNumberValue(defaultStringNumberValue);
|
|
35
|
-
}
|
|
36
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
37
|
-
}, []);
|
|
38
29
|
const handleChangeText = newValue => {
|
|
39
30
|
const newStringNumberValue = formatValueToStringNumber(newValue);
|
|
40
31
|
const number = parseFloat(newStringNumberValue);
|
|
@@ -50,6 +41,15 @@ const NumberInput = _ref => {
|
|
|
50
41
|
}
|
|
51
42
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
52
43
|
}, [value]);
|
|
44
|
+
|
|
45
|
+
// set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
|
|
48
|
+
if (currentStringNumberValue !== defaultStringNumberValue) {
|
|
49
|
+
setCurrentStringNumberValue(defaultStringNumberValue);
|
|
50
|
+
}
|
|
51
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
52
|
+
}, []);
|
|
53
53
|
return /*#__PURE__*/React.createElement(TextInput, _extends({
|
|
54
54
|
keyboardType: "numeric",
|
|
55
55
|
value: currentStringNumberValue,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { View, StyleSheet, Text, Platform, Dimensions } from "react-native";
|
|
2
|
+
import { View, StyleSheet, Text, Platform, Dimensions, Keyboard } 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";
|
|
@@ -33,6 +33,7 @@ const {
|
|
|
33
33
|
height: deviceHeight
|
|
34
34
|
} = Dimensions.get("screen");
|
|
35
35
|
const isIos = Platform.OS === "ios";
|
|
36
|
+
const isWeb = Platform.OS === "web";
|
|
36
37
|
const unstyledColor = "rgba(165, 173, 183, 1)";
|
|
37
38
|
const disabledColor = "rgb(240, 240, 240)";
|
|
38
39
|
const errorColor = "rgba(255, 69, 100, 1)";
|
|
@@ -56,7 +57,8 @@ const Picker = _ref => {
|
|
|
56
57
|
leftIconName,
|
|
57
58
|
placeholderTextColor = unstyledColor,
|
|
58
59
|
rightIconName,
|
|
59
|
-
type = "solid"
|
|
60
|
+
type = "solid",
|
|
61
|
+
autoDismissKeyboard = true
|
|
60
62
|
} = _ref;
|
|
61
63
|
const androidPickerRef = React.useRef(undefined);
|
|
62
64
|
const [internalValue, setInternalValue] = React.useState(value || defaultValue);
|
|
@@ -80,6 +82,11 @@ const Picker = _ref => {
|
|
|
80
82
|
androidPickerRef === null || androidPickerRef === void 0 ? void 0 : (_androidPickerRef$cur = androidPickerRef.current) === null || _androidPickerRef$cur === void 0 ? void 0 : _androidPickerRef$cur.focus();
|
|
81
83
|
}
|
|
82
84
|
}, [pickerVisible, androidPickerRef]);
|
|
85
|
+
React.useEffect(() => {
|
|
86
|
+
if (pickerVisible && autoDismissKeyboard) {
|
|
87
|
+
Keyboard.dismiss();
|
|
88
|
+
}
|
|
89
|
+
}, [pickerVisible, autoDismissKeyboard]);
|
|
83
90
|
const normalizedOptions = normalizeOptions(options);
|
|
84
91
|
const pickerOptions = placeholder ? [{
|
|
85
92
|
value: placeholder,
|
|
@@ -224,8 +231,8 @@ const Picker = _ref => {
|
|
|
224
231
|
label: option.label,
|
|
225
232
|
value: option.value,
|
|
226
233
|
key: option.value
|
|
227
|
-
})))))) : null, !isIos && pickerVisible ? /*#__PURE__*/React.createElement(NativePicker, {
|
|
228
|
-
enabled:
|
|
234
|
+
})))))) : null, !isIos && (pickerVisible || isWeb) ? /*#__PURE__*/React.createElement(NativePicker, {
|
|
235
|
+
enabled: !disabled,
|
|
229
236
|
selectedValue: internalValue,
|
|
230
237
|
onValueChange: handleValueChange,
|
|
231
238
|
style: styles.nonIosPicker,
|
package/lib/module/index.js
CHANGED
|
@@ -31,6 +31,7 @@ export { ActionSheet, ActionSheetItem, ActionSheetCancel } from "./components/Ac
|
|
|
31
31
|
export { Swiper, SwiperItem } from "./components/Swiper";
|
|
32
32
|
export { Center, Circle, Square, Row, Stack, Spacer } from "./components/Layout";
|
|
33
33
|
export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup } from "./components/RadioButton/index";
|
|
34
|
+
export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
34
35
|
|
|
35
36
|
/* Deprecated: Fix or Delete! */
|
|
36
37
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, GROUPS, Triggers, StylesPanelSections, createNumberProp, createColorProp } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, GROUPS, Triggers, StylesPanelSections, createNumberProp, createColorProp, createStaticBoolProp } from "@draftbit/types";
|
|
2
2
|
const SEED_DATA_PROPS = {
|
|
3
3
|
mode: {
|
|
4
4
|
label: "Mode",
|
|
@@ -31,7 +31,8 @@ const SEED_DATA_PROPS = {
|
|
|
31
31
|
label: "Border Color"
|
|
32
32
|
}),
|
|
33
33
|
borderColorActive: createColorProp({
|
|
34
|
-
label: "Border Color"
|
|
34
|
+
label: "Active Border Color",
|
|
35
|
+
description: "Color of border when date picker is active"
|
|
35
36
|
}),
|
|
36
37
|
format: {
|
|
37
38
|
label: "Format",
|
|
@@ -163,6 +164,11 @@ export const SEED_DATA = [{
|
|
|
163
164
|
editable: true,
|
|
164
165
|
required: true,
|
|
165
166
|
group: GROUPS.basic
|
|
166
|
-
}
|
|
167
|
+
},
|
|
168
|
+
autoDismissKeyboard: createStaticBoolProp({
|
|
169
|
+
label: "Auto dismiss keyboard",
|
|
170
|
+
description: "Automatically dismiss keyboard when DatePicker is opened",
|
|
171
|
+
defaultValue: true
|
|
172
|
+
})
|
|
167
173
|
}
|
|
168
174
|
}];
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, Triggers, createActionProp, createStaticNumberProp, createStaticBoolProp, BLOCK_STYLES_SECTIONS } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Deck Swiper",
|
|
4
|
+
tag: "DeckSwiper",
|
|
5
|
+
description: "Deck swiper container",
|
|
6
|
+
category: COMPONENT_TYPES.swiper,
|
|
7
|
+
stylesPanelSections: BLOCK_STYLES_SECTIONS,
|
|
8
|
+
layout: {
|
|
9
|
+
width: "100%"
|
|
10
|
+
},
|
|
11
|
+
triggers: [Triggers.OnIndexChanged, Triggers.OnEndReached],
|
|
12
|
+
props: {
|
|
13
|
+
onIndexChanged: createActionProp({
|
|
14
|
+
label: "On index changed",
|
|
15
|
+
description: "Action to execute when swipe to new index"
|
|
16
|
+
}),
|
|
17
|
+
onEndReached: createActionProp({
|
|
18
|
+
label: "On end reached",
|
|
19
|
+
description: "Action to execute when end of swiping reached"
|
|
20
|
+
}),
|
|
21
|
+
startCardIndex: createStaticNumberProp({
|
|
22
|
+
label: "Start card index",
|
|
23
|
+
description: "Index of card to start swiping from",
|
|
24
|
+
defaultValue: 0
|
|
25
|
+
}),
|
|
26
|
+
infiniteSwiping: createStaticBoolProp({
|
|
27
|
+
label: "Infinite swiping",
|
|
28
|
+
description: "Whether to infinitley loop through cards or not"
|
|
29
|
+
}),
|
|
30
|
+
verticalEnabled: createStaticBoolProp({
|
|
31
|
+
label: "Vertical swipe enabled",
|
|
32
|
+
description: "Whether cards should be swipeable vertically or not",
|
|
33
|
+
defaultValue: true
|
|
34
|
+
}),
|
|
35
|
+
horizontalEnabled: createStaticBoolProp({
|
|
36
|
+
label: "Horizontal swipe enabled",
|
|
37
|
+
description: "Whether cards should be swipeable horizontally or not",
|
|
38
|
+
defaultValue: true
|
|
39
|
+
}),
|
|
40
|
+
visibleCardCount: createStaticNumberProp({
|
|
41
|
+
label: "Visible card count",
|
|
42
|
+
description: "Number of cards visible behind (and including) the current card",
|
|
43
|
+
defaultValue: 1,
|
|
44
|
+
min: 1,
|
|
45
|
+
step: 1
|
|
46
|
+
})
|
|
47
|
+
}
|
|
48
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, CONTAINER_COMPONENT_STYLES_SECTIONS } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Deck Swiper Card",
|
|
4
|
+
tag: "DeckSwiperCard",
|
|
5
|
+
description: "Single Deck Swiper Card item to be used in DeckSwiper",
|
|
6
|
+
category: COMPONENT_TYPES.swiper,
|
|
7
|
+
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
|
+
layout: {
|
|
9
|
+
flex: 1,
|
|
10
|
+
alignItems: "center",
|
|
11
|
+
justifyContent: "center",
|
|
12
|
+
padding: 20,
|
|
13
|
+
borderWidth: 2
|
|
14
|
+
},
|
|
15
|
+
props: {}
|
|
16
|
+
};
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, createTextProp, FORM_TYPES, PROP_TYPES, GROUPS, StylesPanelSections, Triggers } from "@draftbit/types";
|
|
2
|
+
const SEED_DATA_TRIGGERS = [Triggers.OnValueChange];
|
|
3
|
+
const ELEMENT_SEED_DATA = {
|
|
4
|
+
doc_link: "https://www.npmjs.com/package/@expo/html-elements",
|
|
5
|
+
code_link: "https://github.com/expo/expo/tree/master/packages/html-elements",
|
|
6
|
+
packageName: "@expo/html-elements",
|
|
7
|
+
stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.LayoutSelectedItem, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Effects],
|
|
8
|
+
layout: {
|
|
9
|
+
margin: 0
|
|
10
|
+
},
|
|
11
|
+
triggers: SEED_DATA_TRIGGERS,
|
|
12
|
+
category: COMPONENT_TYPES.webelement
|
|
13
|
+
};
|
|
14
|
+
const HEADING_SEED_DATA = {
|
|
15
|
+
...ELEMENT_SEED_DATA,
|
|
16
|
+
category: COMPONENT_TYPES.text,
|
|
17
|
+
props: {
|
|
18
|
+
accessibilityLabel: {
|
|
19
|
+
group: GROUPS.accessibility,
|
|
20
|
+
name: "accessibilityLabel",
|
|
21
|
+
label: "accessibilityLabel",
|
|
22
|
+
description: "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.",
|
|
23
|
+
editable: true,
|
|
24
|
+
required: false,
|
|
25
|
+
formType: FORM_TYPES.string,
|
|
26
|
+
propType: PROP_TYPES.STRING,
|
|
27
|
+
defaultValue: null
|
|
28
|
+
},
|
|
29
|
+
selectable: {
|
|
30
|
+
group: GROUPS.advanced,
|
|
31
|
+
name: "selectable",
|
|
32
|
+
label: "selectable",
|
|
33
|
+
description: "Lets the user select text, to use the native copy and paste functionality.",
|
|
34
|
+
editable: true,
|
|
35
|
+
required: false,
|
|
36
|
+
formType: FORM_TYPES.boolean,
|
|
37
|
+
propType: PROP_TYPES.BOOLEAN,
|
|
38
|
+
defaultValue: null
|
|
39
|
+
},
|
|
40
|
+
children: {
|
|
41
|
+
group: GROUPS.data,
|
|
42
|
+
label: "Text",
|
|
43
|
+
description: "Text",
|
|
44
|
+
editable: true,
|
|
45
|
+
required: true,
|
|
46
|
+
formType: FORM_TYPES.string,
|
|
47
|
+
propType: PROP_TYPES.STRING,
|
|
48
|
+
defaultValue: "Your Headline Here"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const TEXT_SEED_DATA = {
|
|
53
|
+
...ELEMENT_SEED_DATA,
|
|
54
|
+
category: COMPONENT_TYPES.text,
|
|
55
|
+
props: {
|
|
56
|
+
children: {
|
|
57
|
+
group: GROUPS.data,
|
|
58
|
+
label: "Text",
|
|
59
|
+
description: "Text",
|
|
60
|
+
defaultValue: "Your Text Here",
|
|
61
|
+
editable: true,
|
|
62
|
+
required: true,
|
|
63
|
+
formType: FORM_TYPES.string,
|
|
64
|
+
propType: PROP_TYPES.STRING
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
export const SEED_DATA = [{
|
|
69
|
+
name: "H1",
|
|
70
|
+
tag: "H1",
|
|
71
|
+
...HEADING_SEED_DATA
|
|
72
|
+
}, {
|
|
73
|
+
name: "H2",
|
|
74
|
+
tag: "H2",
|
|
75
|
+
...HEADING_SEED_DATA
|
|
76
|
+
}, {
|
|
77
|
+
name: "H3",
|
|
78
|
+
tag: "H3",
|
|
79
|
+
...HEADING_SEED_DATA
|
|
80
|
+
}, {
|
|
81
|
+
name: "H4",
|
|
82
|
+
tag: "H4",
|
|
83
|
+
...HEADING_SEED_DATA
|
|
84
|
+
}, {
|
|
85
|
+
name: "H5",
|
|
86
|
+
tag: "H5",
|
|
87
|
+
...HEADING_SEED_DATA
|
|
88
|
+
}, {
|
|
89
|
+
name: "H6",
|
|
90
|
+
tag: "H6",
|
|
91
|
+
...HEADING_SEED_DATA
|
|
92
|
+
}, {
|
|
93
|
+
name: "Anchor",
|
|
94
|
+
tag: "A",
|
|
95
|
+
...TEXT_SEED_DATA,
|
|
96
|
+
props: {
|
|
97
|
+
href: createTextProp({
|
|
98
|
+
label: "href",
|
|
99
|
+
description: "Specify the URL",
|
|
100
|
+
defaultValue: ""
|
|
101
|
+
}),
|
|
102
|
+
target: {
|
|
103
|
+
group: GROUPS.basic,
|
|
104
|
+
label: "target",
|
|
105
|
+
description: "decide where link should open",
|
|
106
|
+
formType: FORM_TYPES.flatArray,
|
|
107
|
+
defaultValue: "_blank",
|
|
108
|
+
options: ["_blank", "_self", "_parent", "_top"]
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}, {
|
|
112
|
+
name: "Paragraph",
|
|
113
|
+
tag: "P",
|
|
114
|
+
...TEXT_SEED_DATA,
|
|
115
|
+
props: {
|
|
116
|
+
// NOTE - Keeping the props commented until we figure out a way to use this props from draftbit side.
|
|
117
|
+
// strong: createBoolProp({
|
|
118
|
+
// label: "Strong",
|
|
119
|
+
// description: "Strong",
|
|
120
|
+
// }),
|
|
121
|
+
// strike: createBoolProp({
|
|
122
|
+
// label: "Strike",
|
|
123
|
+
// description: "Strike through",
|
|
124
|
+
// }),
|
|
125
|
+
// italic: createBoolProp({
|
|
126
|
+
// label: "Italic",
|
|
127
|
+
// description: "Italic Fonts",
|
|
128
|
+
// }),
|
|
129
|
+
// bold: createBoolProp({
|
|
130
|
+
// label: "Bold",
|
|
131
|
+
// description: "Bold",
|
|
132
|
+
// }),
|
|
133
|
+
}
|
|
134
|
+
}, {
|
|
135
|
+
name: "Code",
|
|
136
|
+
tag: "Code",
|
|
137
|
+
...TEXT_SEED_DATA
|
|
138
|
+
}, {
|
|
139
|
+
name: "Pre",
|
|
140
|
+
tag: "Pre",
|
|
141
|
+
...TEXT_SEED_DATA
|
|
142
|
+
}, {
|
|
143
|
+
name: "Mark",
|
|
144
|
+
tag: "Mark",
|
|
145
|
+
...TEXT_SEED_DATA
|
|
146
|
+
}, {
|
|
147
|
+
name: "BR",
|
|
148
|
+
tag: "BR",
|
|
149
|
+
...TEXT_SEED_DATA
|
|
150
|
+
}, {
|
|
151
|
+
name: "BlockQuote",
|
|
152
|
+
tag: "BlockQuote",
|
|
153
|
+
...TEXT_SEED_DATA
|
|
154
|
+
}, {
|
|
155
|
+
name: "HR",
|
|
156
|
+
tag: "HR",
|
|
157
|
+
...TEXT_SEED_DATA
|
|
158
|
+
}, {
|
|
159
|
+
name: "Time",
|
|
160
|
+
tag: "Time",
|
|
161
|
+
...ELEMENT_SEED_DATA
|
|
162
|
+
}, {
|
|
163
|
+
name: "UL",
|
|
164
|
+
tag: "UL",
|
|
165
|
+
...ELEMENT_SEED_DATA
|
|
166
|
+
}, {
|
|
167
|
+
name: "LI",
|
|
168
|
+
tag: "LI",
|
|
169
|
+
...ELEMENT_SEED_DATA
|
|
170
|
+
}];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, Triggers, GROUPS, FORM_TYPES, PROP_TYPES, FIELD_NAME, createIconSizeProp, createColorProp, StylesPanelSections } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, Triggers, GROUPS, FORM_TYPES, PROP_TYPES, FIELD_NAME, createIconSizeProp, createColorProp, StylesPanelSections, createStaticBoolProp } from "@draftbit/types";
|
|
2
2
|
const SEED_DATA_PROPS = {
|
|
3
3
|
label: {
|
|
4
4
|
group: GROUPS.data,
|
|
@@ -136,6 +136,11 @@ export const SEED_DATA = [{
|
|
|
136
136
|
}),
|
|
137
137
|
iconColor: createColorProp({
|
|
138
138
|
label: "Icon Color"
|
|
139
|
+
}),
|
|
140
|
+
autoDismissKeyboard: createStaticBoolProp({
|
|
141
|
+
label: "Auto dismiss keyboard",
|
|
142
|
+
description: "Automatically dismiss keyboard when Picker is opened",
|
|
143
|
+
defaultValue: true
|
|
139
144
|
})
|
|
140
145
|
},
|
|
141
146
|
layout: {}
|
|
@@ -23,6 +23,7 @@ declare type Props = {
|
|
|
23
23
|
rightIconName?: string;
|
|
24
24
|
borderColor?: string;
|
|
25
25
|
borderColorActive?: string;
|
|
26
|
+
autoDismissKeyboard?: boolean;
|
|
26
27
|
} & IconSlot & TextInputProps;
|
|
27
28
|
declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
|
|
28
29
|
theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,SAAS,EACT,SAAS,EACT,SAAS,EACT,cAAc,
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,SAAS,EACT,SAAS,EACT,SAAS,EACT,cAAc,EAMf,MAAM,cAAc,CAAC;AAStB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAStD,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/D,KAAK,EAAE,KAAK,CAAC;IAMb,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACpC,IAAI,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,GAAG,QAAQ,GACV,cAAc,CAAC;;;;AAsgBjB,wBAAqC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
export interface DeckSwiperProps {
|
|
4
|
+
onIndexChanged?: (index: number) => void;
|
|
5
|
+
onEndReached?: () => void;
|
|
6
|
+
startCardIndex?: number;
|
|
7
|
+
infiniteSwiping?: boolean;
|
|
8
|
+
verticalEnabled?: boolean;
|
|
9
|
+
horizontalEnabled?: boolean;
|
|
10
|
+
visibleCardCount?: number;
|
|
11
|
+
style?: StyleProp<ViewStyle>;
|
|
12
|
+
}
|
|
13
|
+
declare const DeckSwiper: React.FC<React.PropsWithChildren<DeckSwiperProps>>;
|
|
14
|
+
export default DeckSwiper;
|
|
15
|
+
//# sourceMappingURL=DeckSwiper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeckSwiper.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckSwiper/DeckSwiper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAoB,MAAM,cAAc,CAAC;AAGtE,MAAM,WAAW,eAAe;IAC9B,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,CA6DlE,CAAC;AAiBF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
import type { Theme } from "../../styles/DefaultTheme";
|
|
4
|
+
export interface DeckSwiperCardProps {
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
theme: Theme;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<DeckSwiperCardProps, "theme"> & {
|
|
10
|
+
theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
|
|
11
|
+
}> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<DeckSwiperCardProps> & React.FC<DeckSwiperCardProps>, {}>;
|
|
12
|
+
export default _default;
|
|
13
|
+
//# sourceMappingURL=DeckSwiperCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeckSwiperCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckSwiper/DeckSwiperCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAoB,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGvD,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC;CACd;;;;AA+BD,wBAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckSwiper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -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;AAStB,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,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CACxB,CAAC;;;;AA2aF,wBAAiC"}
|
|
@@ -31,6 +31,7 @@ export { ActionSheet, ActionSheetItem, ActionSheetCancel, } from "./components/A
|
|
|
31
31
|
export { Swiper, SwiperItem } from "./components/Swiper";
|
|
32
32
|
export { Center, Circle, Square, Row, Stack, Spacer, } from "./components/Layout";
|
|
33
33
|
export { RadioButton, RadioButtonGroup, RadioButtonRow, RadioButtonFieldGroup, } from "./components/RadioButton/index";
|
|
34
|
+
export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
34
35
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
35
36
|
export { default as Picker } from "./components/Picker/Picker";
|
|
36
37
|
export { default as ProgressBar } from "./components/ProgressBar";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,E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BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -18,6 +18,16 @@ export declare const SEED_DATA: {
|
|
|
18
18
|
required: boolean;
|
|
19
19
|
group: string;
|
|
20
20
|
};
|
|
21
|
+
autoDismissKeyboard: {
|
|
22
|
+
label: string;
|
|
23
|
+
description: string;
|
|
24
|
+
formType: string;
|
|
25
|
+
propType: string;
|
|
26
|
+
defaultValue: boolean;
|
|
27
|
+
editable: boolean;
|
|
28
|
+
required: boolean;
|
|
29
|
+
group: string;
|
|
30
|
+
};
|
|
21
31
|
mode: {
|
|
22
32
|
label: string;
|
|
23
33
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../src/mappings/DatePicker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../src/mappings/DatePicker.ts"],"names":[],"mappings":"AAiKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCrB,CAAC"}
|