@draftbit/core 46.7.9-157e2b.2 → 46.7.9-3887c4.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.
Files changed (121) hide show
  1. package/lib/commonjs/components/DatePicker/DatePicker.js +14 -1
  2. package/lib/commonjs/components/DeprecatedFAB.js +3 -21
  3. package/lib/commonjs/components/Divider.js +14 -1
  4. package/lib/commonjs/components/Elevation.js +14 -2
  5. package/lib/commonjs/components/NumberInput.js +10 -10
  6. package/lib/commonjs/components/Picker/Picker.js +10 -3
  7. package/lib/commonjs/components/Picker/PickerComponent.android.js +20 -3
  8. package/lib/commonjs/components/Portal/Portal.js +2 -6
  9. package/lib/commonjs/constants.js +1 -1
  10. package/lib/commonjs/mappings/Accordion.js +1 -0
  11. package/lib/commonjs/mappings/AccordionItem.js +1 -0
  12. package/lib/commonjs/mappings/ActionSheet.js +1 -0
  13. package/lib/commonjs/mappings/ActionSheetCancel.js +1 -0
  14. package/lib/commonjs/mappings/ActionSheetItem.js +1 -0
  15. package/lib/commonjs/mappings/DatePicker.js +8 -2
  16. package/lib/commonjs/mappings/LinearGradient.js +1 -0
  17. package/lib/commonjs/mappings/MapCallout.js +1 -0
  18. package/lib/commonjs/mappings/MapMarker.js +1 -0
  19. package/lib/commonjs/mappings/MapView.js +1 -0
  20. package/lib/commonjs/mappings/Picker.js +5 -0
  21. package/lib/commonjs/mappings/Swiper.js +1 -0
  22. package/lib/commonjs/mappings/SwiperItem.js +2 -1
  23. package/lib/commonjs/mappings/TextArea.js +1 -0
  24. package/lib/commonjs/mappings/TextField.js +1 -0
  25. package/lib/module/components/AnimatedCircularProgress.js +13 -1
  26. package/lib/module/components/CircleImage.js +1 -16
  27. package/lib/module/components/DatePicker/DatePicker.js +15 -2
  28. package/lib/module/components/NumberInput.js +10 -10
  29. package/lib/module/components/Picker/Picker.js +11 -4
  30. package/lib/module/mappings/Accordion.js +2 -1
  31. package/lib/module/mappings/AccordionItem.js +2 -1
  32. package/lib/module/mappings/ActionSheet.js +2 -1
  33. package/lib/module/mappings/ActionSheetCancel.js +2 -1
  34. package/lib/module/mappings/ActionSheetItem.js +2 -1
  35. package/lib/module/mappings/DatePicker.js +9 -3
  36. package/lib/module/mappings/LinearGradient.js +2 -1
  37. package/lib/module/mappings/MapCallout.js +2 -1
  38. package/lib/module/mappings/MapMarker.js +2 -1
  39. package/lib/module/mappings/MapView.js +2 -1
  40. package/lib/module/mappings/Picker.js +6 -1
  41. package/lib/module/mappings/Swiper.js +2 -1
  42. package/lib/module/mappings/SwiperItem.js +3 -2
  43. package/lib/module/mappings/TextArea.js +2 -1
  44. package/lib/module/mappings/TextField.js +1 -0
  45. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +1 -0
  46. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -1
  47. package/lib/typescript/src/components/Picker/Picker.d.ts +1 -0
  48. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -1
  49. package/lib/typescript/src/mappings/Accordion.d.ts +1 -0
  50. package/lib/typescript/src/mappings/Accordion.d.ts.map +1 -1
  51. package/lib/typescript/src/mappings/AccordionItem.d.ts +1 -0
  52. package/lib/typescript/src/mappings/AccordionItem.d.ts.map +1 -1
  53. package/lib/typescript/src/mappings/ActionSheet.d.ts +1 -0
  54. package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -1
  55. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +1 -0
  56. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -1
  57. package/lib/typescript/src/mappings/ActionSheetItem.d.ts +1 -0
  58. package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -1
  59. package/lib/typescript/src/mappings/DatePicker.d.ts +10 -0
  60. package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -1
  61. package/lib/typescript/src/mappings/LinearGradient.d.ts +1 -0
  62. package/lib/typescript/src/mappings/LinearGradient.d.ts.map +1 -1
  63. package/lib/typescript/src/mappings/MapCallout.d.ts +1 -0
  64. package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -1
  65. package/lib/typescript/src/mappings/MapMarker.d.ts +1 -0
  66. package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -1
  67. package/lib/typescript/src/mappings/MapView.d.ts +1 -0
  68. package/lib/typescript/src/mappings/MapView.d.ts.map +1 -1
  69. package/lib/typescript/src/mappings/Picker.d.ts +10 -0
  70. package/lib/typescript/src/mappings/Picker.d.ts.map +1 -1
  71. package/lib/typescript/src/mappings/Swiper.d.ts +1 -0
  72. package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -1
  73. package/lib/typescript/src/mappings/SwiperItem.d.ts +1 -0
  74. package/lib/typescript/src/mappings/SwiperItem.d.ts.map +1 -1
  75. package/lib/typescript/src/mappings/TextArea.d.ts +1 -0
  76. package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -1
  77. package/lib/typescript/src/mappings/TextField.d.ts +1 -1
  78. package/lib/typescript/src/mappings/TextField.d.ts.map +1 -1
  79. package/package.json +3 -3
  80. package/src/components/DatePicker/DatePicker.js +8 -3
  81. package/src/components/DatePicker/DatePicker.tsx +10 -1
  82. package/src/components/NumberInput.js +9 -9
  83. package/src/components/NumberInput.tsx +11 -11
  84. package/src/components/Picker/Picker.js +9 -3
  85. package/src/components/Picker/Picker.tsx +14 -2
  86. package/src/mappings/Accordion.js +10 -1
  87. package/src/mappings/Accordion.ts +10 -0
  88. package/src/mappings/AccordionItem.js +2 -1
  89. package/src/mappings/AccordionItem.ts +2 -0
  90. package/src/mappings/ActionSheet.js +2 -1
  91. package/src/mappings/ActionSheet.ts +7 -1
  92. package/src/mappings/ActionSheetCancel.js +2 -1
  93. package/src/mappings/ActionSheetCancel.ts +2 -0
  94. package/src/mappings/ActionSheetItem.js +2 -1
  95. package/src/mappings/ActionSheetItem.ts +2 -0
  96. package/src/mappings/DatePicker.js +8 -2
  97. package/src/mappings/DatePicker.ts +8 -1
  98. package/src/mappings/LinearGradient.js +6 -1
  99. package/src/mappings/LinearGradient.ts +6 -0
  100. package/src/mappings/MapCallout.js +2 -1
  101. package/src/mappings/MapCallout.ts +2 -0
  102. package/src/mappings/MapMarker.js +2 -1
  103. package/src/mappings/MapMarker.ts +2 -0
  104. package/src/mappings/MapView.js +2 -1
  105. package/src/mappings/MapView.ts +2 -0
  106. package/src/mappings/Picker.js +6 -1
  107. package/src/mappings/Picker.ts +6 -0
  108. package/src/mappings/Swiper.js +10 -1
  109. package/src/mappings/Swiper.ts +10 -0
  110. package/src/mappings/SwiperItem.js +2 -1
  111. package/src/mappings/SwiperItem.ts +5 -1
  112. package/src/mappings/TextArea.js +10 -1
  113. package/src/mappings/TextArea.ts +10 -0
  114. package/src/mappings/TextField.js +9 -0
  115. package/src/mappings/TextField.ts +9 -0
  116. package/lib/commonjs/mappings/expo/Image.js +0 -90
  117. package/lib/module/mappings/expo/Image.js +0 -83
  118. package/lib/typescript/src/mappings/expo/Image.d.ts +0 -155
  119. package/lib/typescript/src/mappings/expo/Image.d.ts.map +0 -1
  120. package/src/mappings/expo/Image.js +0 -107
  121. package/src/mappings/expo/Image.ts +0 -131
@@ -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: pickerVisible,
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,
@@ -1,9 +1,10 @@
1
- import { COMPONENT_TYPES, createNumberProp, createIconProp, createTextProp, createStaticBoolProp, createColorProp } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createNumberProp, createIconProp, createTextProp, createStaticBoolProp, createColorProp, StylesPanelSections } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Accordion",
4
4
  tag: "AccordionGroup",
5
5
  description: "An expandable container containing components",
6
6
  category: COMPONENT_TYPES.container,
7
+ stylesPanelSections: [StylesPanelSections.LayoutSelectedItem, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Borders, StylesPanelSections.Effects],
7
8
  layout: {
8
9
  paddingTop: 8,
9
10
  paddingRight: 8,
@@ -1,9 +1,10 @@
1
- import { COMPONENT_TYPES, createIconProp, createTextProp, createColorProp } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createIconProp, createTextProp, createColorProp, CONTAINER_COMPONENT_STYLES_SECTIONS } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Accordion Item",
4
4
  tag: "AccordionItem",
5
5
  description: "Item to be used in Accordion",
6
6
  category: COMPONENT_TYPES.deprecated,
7
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
7
8
  props: {
8
9
  icon: createIconProp(),
9
10
  label: createTextProp({
@@ -1,9 +1,10 @@
1
- import { COMPONENT_TYPES, createStaticBoolProp, GROUPS } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createStaticBoolProp, GROUPS, StylesPanelSections } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Action Sheet",
4
4
  tag: "ActionSheet",
5
5
  description: "Action Sheet container",
6
6
  category: COMPONENT_TYPES.actionsheet,
7
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins],
7
8
  props: {
8
9
  visible: createStaticBoolProp({
9
10
  group: GROUPS.data,
@@ -1,8 +1,9 @@
1
- import { COMPONENT_TYPES, createActionProp, createColorProp, createTextProp, GROUPS, Triggers } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createActionProp, createColorProp, createTextProp, GROUPS, Triggers, StylesPanelSections } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Action Sheet Cancel",
4
4
  tag: "ActionSheetCancel",
5
5
  description: "Action Sheet cancel",
6
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins],
6
7
  category: COMPONENT_TYPES.actionsheet,
7
8
  triggers: [Triggers.OnPress],
8
9
  props: {
@@ -1,9 +1,10 @@
1
- import { COMPONENT_TYPES, createActionProp, createColorProp, createTextProp, GROUPS, Triggers } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createActionProp, createColorProp, createTextProp, GROUPS, Triggers, StylesPanelSections } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Action Sheet Item",
4
4
  tag: "ActionSheetItem",
5
5
  description: "Action Sheet item",
6
6
  category: COMPONENT_TYPES.actionsheet,
7
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins],
7
8
  triggers: [Triggers.OnPress],
8
9
  layout: {
9
10
  textAlign: "center"
@@ -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
  }];
@@ -1,4 +1,4 @@
1
- import { createColorProp, FORM_TYPES, GROUPS, PROP_TYPES } from "@draftbit/types";
1
+ import { createColorProp, FORM_TYPES, GROUPS, PROP_TYPES, StylesPanelSections } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Linear Gradient",
4
4
  tag: "LinearGradient",
@@ -7,6 +7,7 @@ export const SEED_DATA = {
7
7
  width: "100%",
8
8
  height: "100%"
9
9
  },
10
+ stylesPanelSections: [StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Borders, StylesPanelSections.Effects],
10
11
  props: {
11
12
  endY: {
12
13
  group: GROUPS.basic,
@@ -1,8 +1,9 @@
1
- import { COMPONENT_TYPES, createActionProp, createBoolProp, GROUPS, Triggers } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createActionProp, createBoolProp, GROUPS, Triggers, CONTAINER_COMPONENT_STYLES_SECTIONS } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Map Callout",
4
4
  tag: "MapCallout",
5
5
  packageName: "@draftbit/maps",
6
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
6
7
  description: "An info window to display on top of a marker when it is clicked",
7
8
  category: COMPONENT_TYPES.map,
8
9
  triggers: [Triggers.OnPress],
@@ -1,10 +1,11 @@
1
- import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, CONTAINER_COMPONENT_STYLES_SECTIONS } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Map Marker",
4
4
  tag: "MapMarker",
5
5
  packageName: "@draftbit/maps",
6
6
  description: "A marker to show inside map view",
7
7
  category: COMPONENT_TYPES.map,
8
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
8
9
  layout: {},
9
10
  props: {
10
11
  latitude: createNumberProp({
@@ -1,10 +1,11 @@
1
- import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, FORM_TYPES, PROP_TYPES } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, FORM_TYPES, PROP_TYPES, StylesPanelSections } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Map View",
4
4
  tag: "MapView",
5
5
  packageName: "@draftbit/maps",
6
6
  description: "A map view",
7
7
  category: COMPONENT_TYPES.map,
8
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins],
8
9
  layout: {
9
10
  flex: 1,
10
11
  width: "100%",
@@ -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: {}
@@ -1,9 +1,10 @@
1
- import { COMPONENT_TYPES, createBoolProp, createNumberProp, createTextProp, createColorProp, GROUPS, Triggers, createActionProp } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createBoolProp, createNumberProp, createTextProp, createColorProp, GROUPS, Triggers, createActionProp, StylesPanelSections } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Swiper",
4
4
  tag: "Swiper",
5
5
  description: "Swiper container",
6
6
  category: COMPONENT_TYPES.swiper,
7
+ stylesPanelSections: [StylesPanelSections.LayoutSelectedItem, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Borders, StylesPanelSections.Effects],
7
8
  layout: {
8
9
  height: 300,
9
10
  width: "100%"
@@ -1,8 +1,9 @@
1
- import { COMPONENT_TYPES } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, CONTAINER_COMPONENT_STYLES_SECTIONS } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Swiper Item",
4
4
  tag: "SwiperItem",
5
5
  description: "Swiper item",
6
6
  category: COMPONENT_TYPES.swiper,
7
- props: {}
7
+ props: {},
8
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS
8
9
  };
@@ -1,9 +1,10 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, createDisabledProp } from "@draftbit/types";
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, createDisabledProp, StylesPanelSections } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Text Area",
4
4
  tag: "TextInput",
5
5
  description: "An input field that allows for multiple lines.",
6
6
  category: COMPONENT_TYPES.input,
7
+ stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Borders, StylesPanelSections.Effects],
7
8
  layout: {
8
9
  borderLeftWidth: 1,
9
10
  borderRightWidth: 1,
@@ -273,6 +273,7 @@ export const SEED_DATA = [{
273
273
  preview_image_url: "{CLOUDINARY_URL}/Textfield.png",
274
274
  supports_list_render: false,
275
275
  triggers: SEED_DATA_TRIGGERS,
276
+ stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Borders, StylesPanelSections.Effects],
276
277
  props: {
277
278
  ...SEED_DATA_PROPS,
278
279
  type: {
@@ -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,EAKf,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,M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C;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,GAAG,QAAQ,GACV,cAAc,CAAC;;;;AAsgBjB,wBAAqC"}
@@ -26,6 +26,7 @@ export declare type PickerProps = {
26
26
  placeholderTextColor?: string;
27
27
  rightIconName?: string;
28
28
  type?: "solid" | "underline";
29
+ autoDismissKeyboard?: boolean;
29
30
  theme: Theme;
30
31
  Icon: IconSlot["Icon"];
31
32
  };
@@ -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,EAEV,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;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tB,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"}
@@ -3,6 +3,7 @@ export declare const SEED_DATA: {
3
3
  tag: string;
4
4
  description: string;
5
5
  category: string;
6
+ stylesPanelSections: string[];
6
7
  layout: {
7
8
  paddingTop: number;
8
9
  paddingRight: number;
@@ -1 +1 @@
1
- {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Accordion.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCrB,CAAC"}
1
+ {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Accordion.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDrB,CAAC"}
@@ -3,6 +3,7 @@ export declare const SEED_DATA: {
3
3
  tag: string;
4
4
  description: string;
5
5
  category: string;
6
+ stylesPanelSections: string[];
6
7
  props: {
7
8
  icon: {
8
9
  label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionItem.d.ts","sourceRoot":"","sources":["../../../../src/mappings/AccordionItem.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcrB,CAAC"}
1
+ {"version":3,"file":"AccordionItem.d.ts","sourceRoot":"","sources":["../../../../src/mappings/AccordionItem.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAerB,CAAC"}
@@ -3,6 +3,7 @@ export declare const SEED_DATA: {
3
3
  tag: string;
4
4
  description: string;
5
5
  category: string;
6
+ stylesPanelSections: string[];
6
7
  props: {
7
8
  visible: {
8
9
  label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ActionSheet.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ActionSheet.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;CAWrB,CAAC"}
1
+ {"version":3,"file":"ActionSheet.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ActionSheet.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;CAYrB,CAAC"}
@@ -2,6 +2,7 @@ export declare const SEED_DATA: {
2
2
  name: string;
3
3
  tag: string;
4
4
  description: string;
5
+ stylesPanelSections: string[];
5
6
  category: string;
6
7
  triggers: string[];
7
8
  props: {
@@ -1 +1 @@
1
- {"version":3,"file":"ActionSheetCancel.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ActionSheetCancel.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBrB,CAAC"}
1
+ {"version":3,"file":"ActionSheetCancel.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ActionSheetCancel.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBrB,CAAC"}
@@ -3,6 +3,7 @@ export declare const SEED_DATA: {
3
3
  tag: string;
4
4
  description: string;
5
5
  category: string;
6
+ stylesPanelSections: string[];
6
7
  triggers: string[];
7
8
  layout: {
8
9
  textAlign: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ActionSheetItem.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ActionSheetItem.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBrB,CAAC"}
1
+ {"version":3,"file":"ActionSheetItem.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ActionSheetItem.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBrB,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":"AA+JA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BrB,CAAC"}
1
+ {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../src/mappings/DatePicker.ts"],"names":[],"mappings":"AAiKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCrB,CAAC"}
@@ -6,6 +6,7 @@ export declare const SEED_DATA: {
6
6
  width: string;
7
7
  height: string;
8
8
  };
9
+ stylesPanelSections: string[];
9
10
  props: {
10
11
  endY: {
11
12
  group: string;
@@ -1 +1 @@
1
- {"version":3,"file":"LinearGradient.d.ts","sourceRoot":"","sources":["../../../../src/mappings/LinearGradient.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ErB,CAAC"}
1
+ {"version":3,"file":"LinearGradient.d.ts","sourceRoot":"","sources":["../../../../src/mappings/LinearGradient.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFrB,CAAC"}
@@ -2,6 +2,7 @@ export declare const SEED_DATA: {
2
2
  name: string;
3
3
  tag: string;
4
4
  packageName: string;
5
+ stylesPanelSections: string[];
5
6
  description: string;
6
7
  category: string;
7
8
  triggers: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"MapCallout.d.ts","sourceRoot":"","sources":["../../../../src/mappings/MapCallout.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBrB,CAAC"}
1
+ {"version":3,"file":"MapCallout.d.ts","sourceRoot":"","sources":["../../../../src/mappings/MapCallout.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBrB,CAAC"}
@@ -4,6 +4,7 @@ export declare const SEED_DATA: {
4
4
  packageName: string;
5
5
  description: string;
6
6
  category: string;
7
+ stylesPanelSections: string[];
7
8
  layout: {};
8
9
  props: {
9
10
  latitude: {
@@ -1 +1 @@
1
- {"version":3,"file":"MapMarker.d.ts","sourceRoot":"","sources":["../../../../src/mappings/MapMarker.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CrB,CAAC"}
1
+ {"version":3,"file":"MapMarker.d.ts","sourceRoot":"","sources":["../../../../src/mappings/MapMarker.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CrB,CAAC"}
@@ -4,6 +4,7 @@ export declare const SEED_DATA: {
4
4
  packageName: string;
5
5
  description: string;
6
6
  category: string;
7
+ stylesPanelSections: string[];
7
8
  layout: {
8
9
  flex: number;
9
10
  width: string;
@@ -1 +1 @@
1
- {"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../../src/mappings/MapView.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6IrB,CAAC"}
1
+ {"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../../src/mappings/MapView.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8IrB,CAAC"}
@@ -40,6 +40,16 @@ export declare const SEED_DATA: {
40
40
  formType: string;
41
41
  propType: string;
42
42
  };
43
+ autoDismissKeyboard: {
44
+ label: string;
45
+ description: string;
46
+ formType: string;
47
+ propType: string;
48
+ defaultValue: boolean;
49
+ editable: boolean;
50
+ required: boolean;
51
+ group: string;
52
+ };
43
53
  label: {
44
54
  group: string;
45
55
  label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Picker.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Picker.ts"],"names":[],"mappings":"AA8HA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCrB,CAAC"}
1
+ {"version":3,"file":"Picker.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Picker.ts"],"names":[],"mappings":"AA+HA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCrB,CAAC"}
@@ -3,6 +3,7 @@ export declare const SEED_DATA: {
3
3
  tag: string;
4
4
  description: string;
5
5
  category: string;
6
+ stylesPanelSections: string[];
6
7
  layout: {
7
8
  height: number;
8
9
  width: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Swiper.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Swiper.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DrB,CAAC"}
1
+ {"version":3,"file":"Swiper.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Swiper.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqErB,CAAC"}
@@ -4,5 +4,6 @@ export declare const SEED_DATA: {
4
4
  description: string;
5
5
  category: string;
6
6
  props: {};
7
+ stylesPanelSections: string[];
7
8
  };
8
9
  //# sourceMappingURL=SwiperItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwiperItem.d.ts","sourceRoot":"","sources":["../../../../src/mappings/SwiperItem.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;CAMrB,CAAC"}
1
+ {"version":3,"file":"SwiperItem.d.ts","sourceRoot":"","sources":["../../../../src/mappings/SwiperItem.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;CAOrB,CAAC"}
@@ -3,6 +3,7 @@ export declare const SEED_DATA: {
3
3
  tag: string;
4
4
  description: string;
5
5
  category: string;
6
+ stylesPanelSections: string[];
6
7
  layout: {
7
8
  borderLeftWidth: number;
8
9
  borderRightWidth: number;
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/mappings/TextArea.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuRrB,CAAC"}
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/mappings/TextArea.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgSrB,CAAC"}
@@ -6,6 +6,7 @@ export declare const SEED_DATA: ({
6
6
  preview_image_url: string;
7
7
  supports_list_render: boolean;
8
8
  triggers: string[];
9
+ stylesPanelSections: string[];
9
10
  props: {
10
11
  type: {
11
12
  label: string;
@@ -310,7 +311,6 @@ export declare const SEED_DATA: ({
310
311
  };
311
312
  };
312
313
  layout: {};
313
- stylesPanelSections?: undefined;
314
314
  } | {
315
315
  name: string;
316
316
  tag: string;
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../src/mappings/TextField.ts"],"names":[],"mappings":"AA6TA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyGrB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "46.7.9-157e2b.2+157e2b1",
3
+ "version": "46.7.9-3887c4.2+3887c44",
4
4
  "description": "Core (non-native) Components",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@date-io/date-fns": "^1.3.13",
43
43
  "@draftbit/react-theme-provider": "^2.1.1",
44
- "@draftbit/types": "^46.7.9-157e2b.2+157e2b1",
44
+ "@draftbit/types": "^46.7.9-3887c4.2+3887c44",
45
45
  "@material-ui/core": "^4.11.0",
46
46
  "@material-ui/pickers": "^3.2.10",
47
47
  "@react-native-community/slider": "4.2.3",
@@ -91,5 +91,5 @@
91
91
  ]
92
92
  ]
93
93
  },
94
- "gitHead": "157e2b18fb2aca142c8ba3f448f3e6e36232db26"
94
+ "gitHead": "3887c445e1c88beaf72bbb1f68574c495ee25108"
95
95
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { View, Animated, Text, StyleSheet, I18nManager, TextInput as NativeTextInput, } from "react-native";
2
+ import { View, Animated, Text, StyleSheet, I18nManager, TextInput as NativeTextInput, Keyboard, } from "react-native";
3
3
  import { useSafeAreaInsets } from "react-native-safe-area-context";
4
4
  import dateFormat from "dateformat";
5
5
  import { withTheme } from "../../theming";
@@ -25,7 +25,7 @@ const MONTHS = [
25
25
  "November",
26
26
  "December",
27
27
  ];
28
- const DatePicker = ({ Icon, style, theme: { colors, typography, roundness, disabledOpacity }, date, onDateChange = () => { }, defaultValue, disabled = false, mode = "date", format, type = "underline", leftIconName, rightIconName, leftIconMode = "inset", label, labelSize, labelColor, placeholder, borderColor: inputBorderColor, borderColorActive: inputBorderColorActive, ...props }) => {
28
+ const DatePicker = ({ Icon, style, theme: { colors, typography, roundness, disabledOpacity }, date, onDateChange = () => { }, defaultValue, disabled = false, mode = "date", format, type = "underline", leftIconName, rightIconName, leftIconMode = "inset", label, labelSize, labelColor, placeholder, borderColor: inputBorderColor, borderColorActive: inputBorderColorActive, autoDismissKeyboard = true, ...props }) => {
29
29
  const [value, setValue] = React.useState(date || defaultValue);
30
30
  React.useEffect(() => {
31
31
  if (defaultValue != null) {
@@ -113,6 +113,11 @@ const DatePicker = ({ Icon, style, theme: { colors, typography, roundness, disab
113
113
  clearTimeout(_showPlaceholder());
114
114
  };
115
115
  }, [focused, label, placeholder]);
116
+ React.useEffect(() => {
117
+ if (pickerVisible && autoDismissKeyboard) {
118
+ Keyboard.dismiss();
119
+ }
120
+ }, [pickerVisible, autoDismissKeyboard]);
116
121
  const _handleFocus = () => {
117
122
  if (disabled) {
118
123
  return;
@@ -132,7 +137,7 @@ const DatePicker = ({ Icon, style, theme: { colors, typography, roundness, disab
132
137
  ? labelSize
133
138
  : typography.caption.fontSize;
134
139
  const hasActiveOutline = focused;
135
- let inputTextColor, activeColor, underlineColor, borderColor, placeholderColor, containerStyle, backgroundColor, inputStyle;
140
+ let inputTextColor, activeColor, underlineColor, borderColor = inputBorderColor, placeholderColor, containerStyle, backgroundColor, inputStyle;
136
141
  inputTextColor = colors.strong;
137
142
  if (disabled) {
138
143
  activeColor = colors.light;