@draftbit/core 43.4.11-143169.1 → 43.4.11-2f015a.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Accordion/AccordionGroup.js +2 -2
- package/lib/commonjs/components/Accordion/AccordionGroup.js.map +1 -1
- package/lib/commonjs/components/Accordion/AccordionItem.js +5 -21
- package/lib/commonjs/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/commonjs/components/AvatarEdit.js +5 -17
- package/lib/commonjs/components/AvatarEdit.js.map +1 -1
- package/lib/commonjs/components/DatePicker/DatePicker.js +2 -9
- package/lib/commonjs/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/commonjs/components/Elevation.js +14 -3
- package/lib/commonjs/components/Elevation.js.map +1 -1
- package/lib/commonjs/components/FieldSearchBarFull.js.map +1 -1
- package/lib/commonjs/components/TextField.js +8 -5
- package/lib/commonjs/components/TextField.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/mappings/HeaderLarge.js.map +1 -1
- package/lib/commonjs/mappings/Image.js.map +1 -1
- package/lib/commonjs/mappings/KeyboardAwareScrollView.js +48 -0
- package/lib/commonjs/mappings/KeyboardAwareScrollView.js.map +1 -0
- package/lib/commonjs/mappings/MapCallout.js.map +1 -1
- package/lib/commonjs/mappings/RowBodyIcon.js.map +1 -1
- package/lib/commonjs/mappings/RowHeadlineImageCaption.js.map +1 -1
- package/lib/commonjs/mappings/RowHeadlineImageIcon.js.map +1 -1
- package/lib/module/components/Accordion/AccordionGroup.js +2 -2
- package/lib/module/components/Accordion/AccordionGroup.js.map +1 -1
- package/lib/module/components/DatePicker/DatePicker.js +3 -9
- package/lib/module/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/module/components/TextField.js +8 -5
- package/lib/module/components/TextField.js.map +1 -1
- package/lib/module/mappings/KeyboardAwareScrollView.js +39 -0
- package/lib/module/mappings/KeyboardAwareScrollView.js.map +1 -0
- package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +82 -0
- package/package.json +2 -2
- package/src/components/Accordion/AccordionGroup.js +1 -1
- package/src/components/Accordion/AccordionGroup.tsx +1 -1
- package/src/components/DatePicker/DatePicker.js +2 -4
- package/src/components/DatePicker/DatePicker.tsx +1 -14
- package/src/components/TextField.js +5 -4
- package/src/components/TextField.tsx +6 -5
- package/src/mappings/KeyboardAwareScrollView.js +38 -0
- package/src/mappings/KeyboardAwareScrollView.ts +48 -0
|
@@ -359,6 +359,7 @@ class TextField extends React.Component<Props, State> {
|
|
|
359
359
|
: leftIconMode === "outset"
|
|
360
360
|
? 16
|
|
361
361
|
: 0,
|
|
362
|
+
marginLeft: leftIconMode === "inset" && type === "solid" ? 16 : 0,
|
|
362
363
|
};
|
|
363
364
|
|
|
364
365
|
const labelStyle = {
|
|
@@ -536,13 +537,13 @@ class TextField extends React.Component<Props, State> {
|
|
|
536
537
|
) : null}
|
|
537
538
|
|
|
538
539
|
{leftIconName && leftIconMode === "inset" ? (
|
|
539
|
-
<
|
|
540
|
-
{...leftIconProps}
|
|
540
|
+
<View
|
|
541
541
|
style={{
|
|
542
|
-
|
|
543
|
-
marginLeft: type === "solid" ? 16 : 0,
|
|
542
|
+
justifyContent: type === "solid" ? "center" : undefined,
|
|
544
543
|
}}
|
|
545
|
-
|
|
544
|
+
>
|
|
545
|
+
<Icon {...leftIconProps} style={leftIconStyle} />
|
|
546
|
+
</View>
|
|
546
547
|
) : null}
|
|
547
548
|
|
|
548
549
|
{render({
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { COMPONENT_TYPES, createStaticBoolProp, createStaticNumberProp, } from "@draftbit/types";
|
|
2
|
+
export const SEED_DATA = {
|
|
3
|
+
name: "Keyboard Aware Scroll View",
|
|
4
|
+
tag: "KeyboardAwareScrollView",
|
|
5
|
+
description: "View that moves pushes the content when virtual keyboard is open.",
|
|
6
|
+
category: COMPONENT_TYPES.layout,
|
|
7
|
+
layout: {},
|
|
8
|
+
props: {
|
|
9
|
+
viewIsInsideTabBar: createStaticBoolProp({
|
|
10
|
+
label: "View Is Inside TabBar",
|
|
11
|
+
description: "Adds an extra offset that represents the TabBarIOS height.",
|
|
12
|
+
}),
|
|
13
|
+
enableAutomaticScroll: createStaticBoolProp({
|
|
14
|
+
label: "Enable Automatic Scroll",
|
|
15
|
+
description: "When focus in TextInput will scroll the position, default is enabled",
|
|
16
|
+
}),
|
|
17
|
+
extraHeight: createStaticNumberProp({
|
|
18
|
+
label: "Extra Height",
|
|
19
|
+
description: "Adds an extra offset when focusing the TextInputs",
|
|
20
|
+
}),
|
|
21
|
+
extraScrollHeight: createStaticNumberProp({
|
|
22
|
+
label: "Extra Scroll Height",
|
|
23
|
+
description: "Adds an extra offset to the keyboard. Useful if you want to stick elements above the keyboard",
|
|
24
|
+
}),
|
|
25
|
+
enableResetScrollToCoords: createStaticBoolProp({
|
|
26
|
+
label: "Enable Reset Scroll To Coordinates",
|
|
27
|
+
description: "Lets the user enable or disable automatic resetScrollToCoords",
|
|
28
|
+
}),
|
|
29
|
+
keyboardOpeningTime: createStaticNumberProp({
|
|
30
|
+
label: "Keyboard Opening Time",
|
|
31
|
+
description: "Sets the delay time before scrolling to new position, default is 250",
|
|
32
|
+
}),
|
|
33
|
+
enableOnAndroid: createStaticBoolProp({
|
|
34
|
+
label: "Enable On Android",
|
|
35
|
+
description: "Enable Android Support",
|
|
36
|
+
}),
|
|
37
|
+
},
|
|
38
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
COMPONENT_TYPES,
|
|
3
|
+
createStaticBoolProp,
|
|
4
|
+
createStaticNumberProp,
|
|
5
|
+
} from "@draftbit/types";
|
|
6
|
+
|
|
7
|
+
export const SEED_DATA = {
|
|
8
|
+
name: "Keyboard Aware Scroll View",
|
|
9
|
+
tag: "KeyboardAwareScrollView",
|
|
10
|
+
description:
|
|
11
|
+
"View that moves pushes the content when virtual keyboard is open.",
|
|
12
|
+
category: COMPONENT_TYPES.layout,
|
|
13
|
+
layout: {},
|
|
14
|
+
props: {
|
|
15
|
+
viewIsInsideTabBar: createStaticBoolProp({
|
|
16
|
+
label: "View Is Inside TabBar",
|
|
17
|
+
description: "Adds an extra offset that represents the TabBarIOS height.",
|
|
18
|
+
}),
|
|
19
|
+
enableAutomaticScroll: createStaticBoolProp({
|
|
20
|
+
label: "Enable Automatic Scroll",
|
|
21
|
+
description:
|
|
22
|
+
"When focus in TextInput will scroll the position, default is enabled",
|
|
23
|
+
}),
|
|
24
|
+
extraHeight: createStaticNumberProp({
|
|
25
|
+
label: "Extra Height",
|
|
26
|
+
description: "Adds an extra offset when focusing the TextInputs",
|
|
27
|
+
}),
|
|
28
|
+
extraScrollHeight: createStaticNumberProp({
|
|
29
|
+
label: "Extra Scroll Height",
|
|
30
|
+
description:
|
|
31
|
+
"Adds an extra offset to the keyboard. Useful if you want to stick elements above the keyboard",
|
|
32
|
+
}),
|
|
33
|
+
enableResetScrollToCoords: createStaticBoolProp({
|
|
34
|
+
label: "Enable Reset Scroll To Coordinates",
|
|
35
|
+
description:
|
|
36
|
+
"Lets the user enable or disable automatic resetScrollToCoords",
|
|
37
|
+
}),
|
|
38
|
+
keyboardOpeningTime: createStaticNumberProp({
|
|
39
|
+
label: "Keyboard Opening Time",
|
|
40
|
+
description:
|
|
41
|
+
"Sets the delay time before scrolling to new position, default is 250",
|
|
42
|
+
}),
|
|
43
|
+
enableOnAndroid: createStaticBoolProp({
|
|
44
|
+
label: "Enable On Android",
|
|
45
|
+
description: "Enable Android Support",
|
|
46
|
+
}),
|
|
47
|
+
},
|
|
48
|
+
};
|