@draftbit/core 46.11.5-6c4be5.2 → 46.11.5-84e8d7.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.
@@ -11,6 +11,7 @@ var _theming = require("../theming");
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
13
  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; }
14
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
14
15
  /* directly copied from https://github.com/callstack/react-native-paper/blob/main/src/components/Surface.tsx#L62 */
15
16
  const Elevation = _ref => {
16
17
  let {
@@ -27,23 +28,11 @@ const Elevation = _ref => {
27
28
  colors
28
29
  } = theme;
29
30
  const borderRadius = radius;
30
- return /*#__PURE__*/React.createElement(_reactNative.Animated.View, {
31
- ...rest,
31
+ return /*#__PURE__*/React.createElement(_reactNative.Animated.View, _extends({}, rest, {
32
32
  style: [{
33
33
  borderRadius,
34
34
  backgroundColor: colors.surface
35
35
  }, elevation ? (0, _shadow.default)(elevation) : null, style]
36
- }, /*#__PURE__*/React.createElement(_reactNative.View, {
37
- style: {
38
- overflow: "hidden",
39
- borderRadius
40
- }
41
- }, children));
42
- };
43
- var _default = (0, _theming.withTheme)(Elevation);
44
- exports.default = _default;
45
- //# sourceMappingURL=Elevation.js.mapolor: colors.surface
46
- }, elevation ? (0, _shadow.default)(elevation) : null, style]
47
36
  }), /*#__PURE__*/React.createElement(_reactNative.View, {
48
37
  style: {
49
38
  overflow: "hidden",
@@ -1 +1 @@
1
- {"version":3,"names":["Elevation","style","theme","children","rest","elevation","borderRadius","radius","StyleSheet","flatten","colors","React","createElement","Animated","View","backgroundColor","surface","shadow","overflow","withTheme"],"sourceRoot":"../../../src","sources":["components/Elevation.js"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AAAuC;AAAA;AAAA;AACvC;AACA,MAAMA,SAAS,GAAG,QAAyC;EAAA,IAAxC;IAAEC,KAAK;IAAEC,KAAK;IAAEC,QAAQ;IAAE,GAAGC;EAAK,CAAC;EAClD,MAAM;IAAEC,SAAS,GAAG,CAAC;IAAEC,YAAY,EAAEC;EAAO,CAAC,GAAGC,uBAAU,CAACC,OAAO,CAACR,KAAK,CAAC,IAAI,CAAC,CAAC;EAC/E,MAAM;IAAES;EAAO,CAAC,GAAGR,KAAK;EACxB,MAAMI,YAAY,GAAGC,MAAM;EAC3B,oBAAQI,KAAK,CAACC,aAAa,CAACC,qBAAQ,CAACC,IAAI,EAAE;IAAE,GAAGV,IAAI;IAAEH,KAAK,EAAE,CACrD;MACIK,YAAY;MACZS,eAAe,EAAEL,MAAM,CAACM;IAC5B,CAAC,EACDX,SAAS,GAAG,IAAAY,eAAM,EAACZ,SAAS,CAAC,GAAG,IAAI,EACpCJ,KAAK;EACP,CAAC,eACHU,KAAK,CAACC,aAAa,CAACE,iBAAI,EAAE;IAAEb,KAAK,EAAE;MAAEiB,QAAQ,EAAE,QAAQ;MAAEZ;IAAa;EAAE,CAAC,EAAEH,QAAQ,CAAC,CAAC;AAC7F,CAAC;AAAC,eACa,IAAAgB,kBAAS,EAACnB,SAAS,CAAC;AAAA"}
1
+ {"version":3,"names":["Elevation","style","theme","children","rest","elevation","borderRadius","radius","StyleSheet","flatten","colors","backgroundColor","surface","shadow","overflow","withTheme"],"sourceRoot":"../../../src","sources":["components/Elevation.tsx"],"mappings":";;;;;;AAAA;AACA;AAQA;AACA;AAAuC;AAAA;AAAA;AAAA;AAQvC;AACA,MAAMA,SAAmD,GAAG,QAKtD;EAAA,IALuD;IAC3DC,KAAK;IACLC,KAAK;IACLC,QAAQ;IACR,GAAGC;EACL,CAAC;EACC,MAAM;IAAEC,SAAS,GAAG,CAAC;IAAEC,YAAY,EAAEC;EAAO,CAAC,GAC3CC,uBAAU,CAACC,OAAO,CAACR,KAAK,CAAC,IAAI,CAAC,CAAC;EACjC,MAAM;IAAES;EAAO,CAAC,GAAGR,KAAK;EACxB,MAAMI,YAAY,GAAGC,MAAM;EAE3B,oBACE,oBAAC,qBAAQ,CAAC,IAAI,eACRH,IAAI;IACR,KAAK,EAAE,CACL;MACEE,YAAY;MACZK,eAAe,EAAED,MAAM,CAACE;IAC1B,CAAC,EACDP,SAAS,GAAG,IAAAQ,eAAM,EAACR,SAAS,CAAC,GAAG,IAAI,EACpCJ,KAAK;EACL,iBAEF,oBAAC,iBAAI;IAAC,KAAK,EAAE;MAAEa,QAAQ,EAAE,QAAQ;MAAER;IAAa;EAAE,GAAEH,QAAQ,CAAQ,CACtD;AAEpB,CAAC;AAAC,eAEa,IAAAY,kBAAS,EAACf,SAAS,CAAC;AAAA"}
@@ -18,9 +18,7 @@ var _utilities = require("../../utilities");
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
20
20
  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; }
21
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
22
21
  const Picker = _ref => {
23
- var _options$find$label, _options$find;
24
22
  let {
25
23
  Icon,
26
24
  style,
@@ -34,6 +32,7 @@ const Picker = _ref => {
34
32
  },
35
33
  ...props
36
34
  } = _ref;
35
+ var _a, _b;
37
36
  const {
38
37
  viewStyles: {
39
38
  borderRadius,
@@ -74,26 +73,24 @@ const Picker = _ref => {
74
73
  };
75
74
 
76
75
  const stylesWithoutMargin = style && (0, _lodash.default)(_reactNative.StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
77
- const selectedLabel = selectedValue && ((_options$find$label = (_options$find = options.find(o => o.value === selectedValue)) === null || _options$find === void 0 ? void 0 : _options$find.label) !== null && _options$find$label !== void 0 ? _options$find$label : selectedValue);
76
+ const selectedLabel = selectedValue && ((_b = (_a = options.find(o => o.value === selectedValue)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : selectedValue);
78
77
  return /*#__PURE__*/React.createElement(_reactNative.View, {
79
78
  style: [styles.container, viewStyles]
80
79
  }, /*#__PURE__*/React.createElement(_Touchable.default, {
81
80
  disabled: disabled,
82
81
  onPress: toggleVisibility
83
- }, /*#__PURE__*/React.createElement(_TextField.default, _extends({}, props, {
82
+ }, /*#__PURE__*/React.createElement(_TextField.default, {
83
+ ...props,
84
84
  value: String(selectedLabel),
85
- placeholder: placeholder
85
+ placeholder: placeholder,
86
86
  // @ts-ignore
87
- ,
88
- ref: textField // cannot determine if ref is of correct type due to component being wrapped in a withTheme()
89
- ,
87
+ ref: textField,
90
88
  disabled: disabled,
91
- pointerEvents: "none"
89
+ pointerEvents: "none",
92
90
  // @ts-expect-error
93
- ,
94
91
  style: stylesWithoutMargin,
95
92
  Icon: Icon
96
- }))), pickerVisible && /*#__PURE__*/React.createElement(_Portal.default, null, /*#__PURE__*/React.createElement(_reactNative.View, {
93
+ })), pickerVisible && /*#__PURE__*/React.createElement(_Portal.default, null, /*#__PURE__*/React.createElement(_reactNative.View, {
97
94
  style: [styles.picker, {
98
95
  backgroundColor: colors.divider
99
96
  }]
@@ -139,4 +136,32 @@ const styles = _reactNative.StyleSheet.create({
139
136
  });
140
137
  var _default = (0, _theming.withTheme)(Picker);
141
138
  exports.default = _default;
139
+ //# sourceMappingURL=PickerComponent.ios.js.mapabel,
140
+ value: o.value,
141
+ key: o.value
142
+ })))))));
143
+ };
144
+ const styles = _reactNative.StyleSheet.create({
145
+ container: {
146
+ alignSelf: "stretch"
147
+ },
148
+ picker: {
149
+ position: "absolute",
150
+ bottom: 0,
151
+ left: 0,
152
+ right: 0,
153
+ flexDirection: "row",
154
+ justifyContent: "center"
155
+ },
156
+ pickerContainer: {
157
+ backgroundColor: "white",
158
+ flexDirection: "column",
159
+ width: "100%"
160
+ },
161
+ closeButton: {
162
+ alignSelf: "flex-end"
163
+ }
164
+ });
165
+ var _default = (0, _theming.withTheme)(Picker);
166
+ exports.default = _default;
142
167
  //# sourceMappingURL=PickerComponent.ios.js.map
@@ -21,19 +21,22 @@ const SEED_DATA = {
21
21
  label: "Top snap position",
22
22
  description: "Top most postion where bottom sheet can snap to. A numerical value that represents distance from the top",
23
23
  defaultValue: "10%",
24
- required: false
24
+ required: false,
25
+ formType: _types.FORM_TYPES.numeric
25
26
  }),
26
27
  middleSnapPosition: (0, _types.createStaticNumberProp)({
27
28
  label: "Middle snap position",
28
29
  description: "Middle postion where bottom sheet can snap to. A numerical value that represents distance from the top",
29
- defaultValue: "10%",
30
- required: false
30
+ defaultValue: "50%",
31
+ required: false,
32
+ formType: _types.FORM_TYPES.numeric
31
33
  }),
32
34
  bottomSnapPosition: (0, _types.createStaticNumberProp)({
33
35
  label: "Bottom snap position",
34
36
  description: "Bottom most postion where bottom sheet can snap to. A numerical value that represents distance from the top",
35
- defaultValue: "10%",
36
- required: false
37
+ defaultValue: "80%",
38
+ required: false,
39
+ formType: _types.FORM_TYPES.numeric
37
40
  }),
38
41
  initialSnapPosition: (0, _types.createTextEnumProp)({
39
42
  label: "Initial snap position",
@@ -1 +1 @@
1
- {"version":3,"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","bottomsheet","stylesPanelSections","CONTAINER_COMPONENT_STYLES_SECTIONS","triggers","Triggers","OnSettle","props","onSettle","createActionProp","label","topSnapPosition","createStaticNumberProp","defaultValue","required","middleSnapPosition","bottomSnapPosition","initialSnapPosition","createTextEnumProp","options","showHandle","createStaticBoolProp","handleColor","createColorProp","topBorderRadius","borderWidth","borderColor","showsVerticalScrollIndicator","bounces","snapPoints","createArrayProp","group","GROUPS","advanced","initialSnapIndex"],"sourceRoot":"../../../src","sources":["mappings/BottomSheet.ts"],"mappings":";;;;;;AAAA;AAaO,MAAMA,SAAS,GAAG;EACvBC,IAAI,EAAE,cAAc;EACpBC,GAAG,EAAE,aAAa;EAClBC,WAAW,EACT,wFAAwF;EAC1FC,QAAQ,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AC;MACtCF,KAAK,EAAE,mBAAmB;MAC1BZ,WAAW,EAAE,8BAA8B;MAC3Ce,YAAY,EAAE,EAAE;MAChBC,QAAQ,EAAE;IACZ,CAAC,CAAC;IACFW,WAAW,EAAE,IAAAb,6BAAsB,EAAC;MAClCF,KAAK,EAAE,cAAc;MACrBZ,WAAW,EAAE,+BAA+B;MAC5Ce,YAAY,EAAE,CAAC;MACfC,QAAQ,EAAE;IACZ,CAAC,CAAC;IACFY,WAAW,EAAE,IAAAH,sBAAe,EAAC;MAC3Bb,KAAK,EAAE,cAAc;MACrBZ,WAAW,EAAE,+BAA+B;MAC5Ce,YAAY,EAAE;IAChB,CAAC,CAAC;IACFc,4BAA4B,EAAE,IAAAN,2BAAoB,EAAC;MACjDX,KAAK,EAAE,gCAAgC;MACvCZ,WAAW,EACT,0EAA0E;MAC5Ee,YAAY,EAAE;IAChB,CAAC,CAAC;IACFe,OAAO,EAAE,IAAAP,2BAAoB,EAAC;MAC5BX,KAAK,EAAE,QAAQ;MACfZ,WAAW,EACT,iKAAiK;MACnKe,YAAY,EAAE;IAChB,CAAC,CAAC;IACFgB,UAAU,EAAE,IAAAC,sBAAe,EAAC;MAC1BpB,KAAK,EAAE,aAAa;MACpBZ,WAAW,EACT,4LAA4L;MAC9Le,YAAY,EAAE,IAAI;MAClBkB,KAAK,EAAEC,aAAM,CAACC;IAChB,CAAC,CAAC;IACFC,gBAAgB,EAAE,IAAAtB,6BAAsB,EAAC;MACvCF,KAAK,EAAE,oBAAoB;MAC3BZ,WAAW,EACT,0FAA0F;MAC5Fe,YAAY,EAAE,IAAI;MAClBC,QAAQ,EAAE,KAAK;MACfiB,KAAK,EAAEC,aAAM,CAACC;IAChB,CAAC;EACH;AACF,CAAC;AAAC"}
1
+ {"version":3,"names":["SEED_DATA","name","tag","description","category","COMPONENT_TYPES","bottomsheet","stylesPanelSections","CONTAINER_COMPONENT_STYLES_SECTIONS","triggers","Triggers","OnSettle","props","onSettle","createActionProp","label","topSnapPosition","createStaticNumberProp","defaultValue","required","formType","FORM_TYPES","numeric","middleSnapPosition","bottomSnapPosition","initialSnapPosition","createTextEnumProp","options","showHandle","createStaticBoolProp","handleColor","createColorProp","topBorderRadius","borderWidth","borderColor","showsVerticalScrollIndicator","bounces","snapPoints","createArrayProp","group","GROUPS","advanced","initialSnapIndex"],"sourceRoot":"../../../src","sources":["mappings/BottomSheet.ts"],"mappings":";;;;;;AAAA;AAcO,MAAMA,SAAS,GAAG;EACvBC,IAAI,EAAE,cAAc;EACpBC,GAAG,EAAE,aAAa;EAClBC,WAAW,EACT,wFAAwF;EAC1FC,QAAQ,EAAEC,sBAAe,CAACC,WAAW;EACrCC,mBAAmB,EAAEC,0CAAmC;EACxDC,QAAQ,EAAE,CAACC,eAAQ,CAACC,QAAQ,CAAC;EAC7BC,KAAK,EAAE;IACLC,QAAQ,EAAE,IAAAC,uBAAgB,EAAC;MACzBC,KAAK,EAAE,WAAW;MAClBZ,WAAW,EAAE;IACf,CAAC,CAAC;IACFa,eAAe,EAAE,IAAAC,6BAAsB,EAAC;MACtCF,KAAK,EAAE,mBAAmB;MAC1BZ,WAAW,EACT,0GAA0G;MAC5Ge,YAAY,EAAE,KAAK;MACnBC,QAAQ,EAAE,KAAK;MACfC,QAAQ,EAAEC,iBAAU,CAACC;IACvB,CAAC,CAAC;IACFC,kBAAkB,EAAE,IAAAN,6BAAsB,EAAC;MACzCF,KAAK,EAAE,sBAAsB;MAC7BZ,WAAW,EACT,wGAAwG;MAC1Ge,YAAY,EAAE,KAAK;MACnBC,QAAQ,EAAE,KAAK;MACfC,QAAQ,EAAEC,iBAAU,CAACC;IACvB,CAAC,CAAC;IACFE,kBAAkB,EAAE,IAAAP,6BAAsB,EAAC;MACzCF,KAAK,EAAE,sBAAsB;MAC7BZ,WAAW,EACT,6GAA6G;MAC/Ge,YAAY,EAAE,KAAK;MACnBC,QAAQ,EAAE,KAAK;MACfC,QAAQ,EAAEC,iBAAU,CAACC;IACvB,CAAC,CAAC;IAC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AC;MAC1BvB,KAAK,EAAE,aAAa;MACpBZ,WAAW,EACT,4LAA4L;MAC9Le,YAAY,EAAE,IAAI;MAClBqB,KAAK,EAAEC,aAAM,CAACC;IAChB,CAAC,CAAC;IACFC,gBAAgB,EAAE,IAAAzB,6BAAsB,EAAC;MACvCF,KAAK,EAAE,oBAAoB;MAC3BZ,WAAW,EACT,0FAA0F;MAC5Fe,YAAY,EAAE,IAAI;MAClBC,QAAQ,EAAE,KAAK;MACfoB,KAAK,EAAEC,aAAM,CAACC;IAChB,CAAC;EACH;AACF,CAAC;AAAC"}
@@ -1,4 +1,4 @@
1
- import { COMPONENT_TYPES, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createColorProp, createStaticNumberProp, createArrayProp, GROUPS, createTextEnumProp } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createColorProp, createStaticNumberProp, createArrayProp, GROUPS, createTextEnumProp, FORM_TYPES } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Bottom Sheet",
4
4
  tag: "BottomSheet",
@@ -15,19 +15,22 @@ export const SEED_DATA = {
15
15
  label: "Top snap position",
16
16
  description: "Top most postion where bottom sheet can snap to. A numerical value that represents distance from the top",
17
17
  defaultValue: "10%",
18
- required: false
18
+ required: false,
19
+ formType: FORM_TYPES.numeric
19
20
  }),
20
21
  middleSnapPosition: createStaticNumberProp({
21
22
  label: "Middle snap position",
22
23
  description: "Middle postion where bottom sheet can snap to. A numerical value that represents distance from the top",
23
- defaultValue: "10%",
24
- required: false
24
+ defaultValue: "50%",
25
+ required: false,
26
+ formType: FORM_TYPES.numeric
25
27
  }),
26
28
  bottomSnapPosition: createStaticNumberProp({
27
29
  label: "Bottom snap position",
28
30
  description: "Bottom most postion where bottom sheet can snap to. A numerical value that represents distance from the top",
29
- defaultValue: "10%",
30
- required: false
31
+ defaultValue: "80%",
32
+ required: false,
33
+ formType: FORM_TYPES.numeric
31
34
  }),
32
35
  initialSnapPosition: createTextEnumProp({
33
36
  label: "Initial snap position",
@@ -1 +1 @@
1
- {"version":3,"names":["COMPONENT_TYPES","createStaticBoolProp","CONTAINER_COMPONENT_STYLES_SECTIONS","Triggers","createActionProp","createColorProp","createStaticNumberProp","createArrayProp","GROUPS","createTextEnumProp","SEED_DATA","name","tag","description","category","bottomsheet","stylesPanelSections","triggers","OnSettle","props","onSettle","label","topSnapPosition","defaultValue","required","middleSnapPosition","bottomSnapPosition","initialSnapPosition","options","showHandle","handleColor","topBorderRadius","borderWidth","borderColor","showsVerticalScrollIndicator","bounces","snapPoints","group","advanced","initialSnapIndex"],"sourceRoot":"../../../src","sources":["mappings/BottomSheet.ts"],"mappings":"AAAA,SACEA,eAAe,EACfC,oBAAoB,EACpBC,mCAAmC,EACnCC,QAAQ,EACRC,gBAAgB,EAChBC,eAAe,EACfC,sBAAsB,EACtBC,eAAe,EACfC,MAAM,EACNC,kBAAkB,QACb,iBAAiB;AAExB,OAAO,MAAMC,SAAS,GAAG;EACvBC,IAAI,EAAE,cAAc;EACpBC,GAAG,EAAE,aAAa;EAClBC,WAAW,EACT,wFAAwF;EAC1FC,QAAQ,EAAEd,eAAe,CAACe,WAAW;EACrCC,mBAAmB,EAAEd,mCAAmC;EACxDe,QAAQ,EAAE,CAACd,QAAQ,CAACe,QAAQ,CAAC;EAC7BC,KAAK,EAAE;IACLC,QAAQ,EAAEhB,gBAAgB,CAAC;MACzBiB,KAAK,EAAE,WAAW;MAClBR,WAAW,EAAE;IACf,CAAC,CAAC;IACFS,eAAe,EAAEhB,sBAAsB,CAAC;MACtCe,KAAK,EAAE,mBAAmB;MAC1BR,WAAW,EACT,0GAA0G;MAC5GU,YAAY,EAAE,KAAK;MACnBC,QAAQ,EAAE;IACZ,CAAC,CAAC;IACFC,kBAAkB,EAAEnB,sBAAsB,CAAC;MACzCe,KAAK,EAAE,sBAAsB;MAC7BR,WAAW,EACT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ChB,CAAC,CAAC;IACFY,OAAO,EAAElC,oBAAoB,CAAC;MAC5BoB,KAAK,EAAE,QAAQ;MACfR,WAAW,EACT,iKAAiK;MACnKU,YAAY,EAAE;IAChB,CAAC,CAAC;IACFa,UAAU,EAAE7B,eAAe,CAAC;MAC1Bc,KAAK,EAAE,aAAa;MACpBR,WAAW,EACT,4LAA4L;MAC9LU,YAAY,EAAE,IAAI;MAClBc,KAAK,EAAE7B,MAAM,CAAC8B;IAChB,CAAC,CAAC;IACFC,gBAAgB,EAAEjC,sBAAsB,CAAC;MACvCe,KAAK,EAAE,oBAAoB;MAC3BR,WAAW,EACT,0FAA0F;MAC5FU,YAAY,EAAE,IAAI;MAClBC,QAAQ,EAAE,KAAK;MACfa,KAAK,EAAE7B,MAAM,CAAC8B;IAChB,CAAC;EACH;AACF,CAAC"}
1
+ {"version":3,"names":["COMPONENT_TYPES","createStaticBoolProp","CONTAINER_COMPONENT_STYLES_SECTIONS","Triggers","createActionProp","createColorProp","createStaticNumberProp","createArrayProp","GROUPS","createTextEnumProp","FORM_TYPES","SEED_DATA","name","tag","description","category","bottomsheet","stylesPanelSections","triggers","OnSettle","props","onSettle","label","topSnapPosition","defaultValue","required","formType","numeric","middleSnapPosition","bottomSnapPosition","initialSnapPosition","options","showHandle","handleColor","topBorderRadius","borderWidth","borderColor","showsVerticalScrollIndicator","bounces","snapPoints","group","advanced","initialSnapIndex"],"sourceRoot":"../../../src","sources":["mappings/BottomSheet.ts"],"mappings":"AAAA,SACEA,eAAe,EACfC,oBAAoB,EACpBC,mCAAmC,EACnCC,QAAQ,EACRC,gBAAgB,EAChBC,eAAe,EACfC,sBAAsB,EACtBC,eAAe,EACfC,MAAM,EACNC,kBAAkB,EAClBC,UAAU,QACL,iBAAiB;AAExB,OAAO,MAAMC,SAAS,GAAG;EACvBC,IAAI,EAAE,cAAc;EACpBC,GAAG,EAAE,aAAa;EAClBC,WAAW,EACT,wFAAwF;EAC1FC,QAAQ,EAAEf,eAAe,CAACg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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+FrB,CAAC"}
1
+ {"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../src/mappings/BottomSheet.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkGrB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "46.11.5-6c4be5.2+6c4be50",
3
+ "version": "46.11.5-84e8d7.2+84e8d77",
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.11.5-6c4be5.2+6c4be50",
44
+ "@draftbit/types": "^46.11.5-84e8d7.2+84e8d77",
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",
@@ -93,5 +93,5 @@
93
93
  "node_modules/",
94
94
  "lib/"
95
95
  ],
96
- "gitHead": "6c4be50eb4cc00d2d9782a962b8e0c9589c6140b"
96
+ "gitHead": "84e8d77e9c28ad2f8ec09375ced773d6c5675e52"
97
97
  }
@@ -1,4 +1,4 @@
1
- import { COMPONENT_TYPES, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createColorProp, createStaticNumberProp, createArrayProp, GROUPS, createTextEnumProp, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createColorProp, createStaticNumberProp, createArrayProp, GROUPS, createTextEnumProp, FORM_TYPES, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Bottom Sheet",
4
4
  tag: "BottomSheet",
@@ -16,18 +16,21 @@ export const SEED_DATA = {
16
16
  description: "Top most postion where bottom sheet can snap to. A numerical value that represents distance from the top",
17
17
  defaultValue: "10%",
18
18
  required: false,
19
+ formType: FORM_TYPES.numeric,
19
20
  }),
20
21
  middleSnapPosition: createStaticNumberProp({
21
22
  label: "Middle snap position",
22
23
  description: "Middle postion where bottom sheet can snap to. A numerical value that represents distance from the top",
23
- defaultValue: "10%",
24
+ defaultValue: "50%",
24
25
  required: false,
26
+ formType: FORM_TYPES.numeric,
25
27
  }),
26
28
  bottomSnapPosition: createStaticNumberProp({
27
29
  label: "Bottom snap position",
28
30
  description: "Bottom most postion where bottom sheet can snap to. A numerical value that represents distance from the top",
29
- defaultValue: "10%",
31
+ defaultValue: "80%",
30
32
  required: false,
33
+ formType: FORM_TYPES.numeric,
31
34
  }),
32
35
  initialSnapPosition: createTextEnumProp({
33
36
  label: "Initial snap position",
@@ -9,6 +9,7 @@ import {
9
9
  createArrayProp,
10
10
  GROUPS,
11
11
  createTextEnumProp,
12
+ FORM_TYPES,
12
13
  } from "@draftbit/types";
13
14
 
14
15
  export const SEED_DATA = {
@@ -30,20 +31,23 @@ export const SEED_DATA = {
30
31
  "Top most postion where bottom sheet can snap to. A numerical value that represents distance from the top",
31
32
  defaultValue: "10%",
32
33
  required: false,
34
+ formType: FORM_TYPES.numeric,
33
35
  }),
34
36
  middleSnapPosition: createStaticNumberProp({
35
37
  label: "Middle snap position",
36
38
  description:
37
39
  "Middle postion where bottom sheet can snap to. A numerical value that represents distance from the top",
38
- defaultValue: "10%",
40
+ defaultValue: "50%",
39
41
  required: false,
42
+ formType: FORM_TYPES.numeric,
40
43
  }),
41
44
  bottomSnapPosition: createStaticNumberProp({
42
45
  label: "Bottom snap position",
43
46
  description:
44
47
  "Bottom most postion where bottom sheet can snap to. A numerical value that represents distance from the top",
45
- defaultValue: "10%",
48
+ defaultValue: "80%",
46
49
  required: false,
50
+ formType: FORM_TYPES.numeric,
47
51
  }),
48
52
  initialSnapPosition: createTextEnumProp({
49
53
  label: "Initial snap position",