@draftbit/core 48.4.8-fb2b2b.2 → 48.4.9-3aa6b7.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 (78) hide show
  1. package/lib/commonjs/components/Picker/Picker.js +1 -1
  2. package/lib/commonjs/components/Picker/PickerInputContainer.js +1 -0
  3. package/lib/commonjs/components/PinInput/PinInput.js +1 -1
  4. package/lib/commonjs/components/SectionList/SectionList.js +1 -1
  5. package/lib/commonjs/components/TextField.js +1 -1
  6. package/lib/commonjs/utilities.js +1 -1
  7. package/lib/typescript/src/components/Picker/Picker.d.ts +3 -35
  8. package/lib/typescript/src/components/Picker/Picker.js +69 -244
  9. package/lib/typescript/src/components/Picker/Picker.js.map +1 -1
  10. package/lib/typescript/src/components/Picker/PickerCommon.d.ts +27 -0
  11. package/lib/typescript/src/components/Picker/PickerCommon.js +2 -0
  12. package/lib/typescript/src/components/Picker/PickerCommon.js.map +1 -0
  13. package/lib/typescript/src/components/Picker/PickerInputContainer.d.ts +9 -0
  14. package/lib/typescript/src/components/Picker/PickerInputContainer.js +26 -0
  15. package/lib/typescript/src/components/Picker/PickerInputContainer.js.map +1 -0
  16. package/lib/typescript/src/components/PinInput/PinInput.d.ts +2 -6
  17. package/lib/typescript/src/components/PinInput/PinInput.js +16 -15
  18. package/lib/typescript/src/components/PinInput/PinInput.js.map +1 -1
  19. package/lib/typescript/src/components/SectionList/SectionList.d.ts +2 -1
  20. package/lib/typescript/src/components/SectionList/SectionList.js +13 -3
  21. package/lib/typescript/src/components/SectionList/SectionList.js.map +1 -1
  22. package/lib/typescript/src/components/TextField.d.ts +3 -3
  23. package/lib/typescript/src/components/TextField.js +9 -6
  24. package/lib/typescript/src/components/TextField.js.map +1 -1
  25. package/lib/typescript/src/utilities.d.ts +4 -0
  26. package/lib/typescript/src/utilities.js +15 -1
  27. package/lib/typescript/src/utilities.js.map +1 -1
  28. package/lib/typescript/tsconfig.tsbuildinfo +1 -1
  29. package/package.json +5 -3
  30. package/src/components/Picker/Picker.js +69 -244
  31. package/src/components/Picker/Picker.js.map +1 -1
  32. package/src/components/Picker/Picker.tsx +111 -441
  33. package/src/components/Picker/PickerCommon.js +2 -0
  34. package/src/components/Picker/PickerCommon.js.map +1 -0
  35. package/src/components/Picker/PickerCommon.ts +30 -0
  36. package/src/components/Picker/PickerInputContainer.js +26 -0
  37. package/src/components/Picker/PickerInputContainer.js.map +1 -0
  38. package/src/components/Picker/PickerInputContainer.tsx +74 -0
  39. package/src/components/PinInput/PinInput.js +16 -15
  40. package/src/components/PinInput/PinInput.js.map +1 -1
  41. package/src/components/PinInput/PinInput.tsx +20 -26
  42. package/src/components/SectionList/SectionList.js +13 -3
  43. package/src/components/SectionList/SectionList.js.map +1 -1
  44. package/src/components/SectionList/SectionList.tsx +15 -0
  45. package/src/components/TextField.js +9 -6
  46. package/src/components/TextField.js.map +1 -1
  47. package/src/components/TextField.tsx +14 -8
  48. package/src/utilities.js +15 -1
  49. package/src/utilities.js.map +1 -1
  50. package/src/utilities.ts +22 -1
  51. package/lib/commonjs/components/Picker/PickerComponent.android.js +0 -1
  52. package/lib/commonjs/components/Picker/PickerComponent.ios.js +0 -1
  53. package/lib/commonjs/components/Picker/PickerComponent.web.js +0 -1
  54. package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts +0 -6
  55. package/lib/typescript/src/components/Picker/PickerComponent.android.js +0 -70
  56. package/lib/typescript/src/components/Picker/PickerComponent.android.js.map +0 -1
  57. package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts +0 -7
  58. package/lib/typescript/src/components/Picker/PickerComponent.ios.js +0 -80
  59. package/lib/typescript/src/components/Picker/PickerComponent.ios.js.map +0 -1
  60. package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts +0 -6
  61. package/lib/typescript/src/components/Picker/PickerComponent.web.js +0 -71
  62. package/lib/typescript/src/components/Picker/PickerComponent.web.js.map +0 -1
  63. package/lib/typescript/src/components/Picker/PickerTypes.d.ts +0 -18
  64. package/lib/typescript/src/components/Picker/PickerTypes.js +0 -2
  65. package/lib/typescript/src/components/Picker/PickerTypes.js.map +0 -1
  66. package/src/components/Picker/PickerComponent.android.js +0 -70
  67. package/src/components/Picker/PickerComponent.android.js.map +0 -1
  68. package/src/components/Picker/PickerComponent.android.tsx +0 -116
  69. package/src/components/Picker/PickerComponent.ios.js +0 -80
  70. package/src/components/Picker/PickerComponent.ios.js.map +0 -1
  71. package/src/components/Picker/PickerComponent.ios.tsx +0 -142
  72. package/src/components/Picker/PickerComponent.web.js +0 -71
  73. package/src/components/Picker/PickerComponent.web.js.map +0 -1
  74. package/src/components/Picker/PickerComponent.web.tsx +0 -117
  75. package/src/components/Picker/PickerTypes.js +0 -2
  76. package/src/components/Picker/PickerTypes.js.map +0 -1
  77. package/src/components/Picker/PickerTypes.ts +0 -18
  78. /package/lib/commonjs/components/Picker/{PickerTypes.js → PickerCommon.js} +0 -0
@@ -1 +0,0 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var React=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _reactNativeSafeAreaContext=require("react-native-safe-area-context");var _lodash=_interopRequireDefault(require("lodash.omit"));var _picker=require("@react-native-picker/picker");var _theming=require("../../theming");var _Portal=_interopRequireDefault(require("../Portal/Portal"));var _DeprecatedButton=_interopRequireDefault(require("../../deprecated-components/DeprecatedButton"));var _TextField=_interopRequireDefault(require("../TextField"));var _Touchable=_interopRequireDefault(require("../Touchable"));var _utilities=require("../../utilities");var _jsxRuntime=require("react/jsx-runtime");var _excluded=["Icon","style","options","placeholder","selectedValue","disabled","onValueChange","theme"],_excluded2=["borderRadius","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderColor","backgroundColor","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/Picker/PickerComponent.ios.tsx";function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}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;}var Picker=function Picker(_ref){var _options$find$label,_options$find;var Icon=_ref.Icon,style=_ref.style,options=_ref.options,placeholder=_ref.placeholder,selectedValue=_ref.selectedValue,_ref$disabled=_ref.disabled,disabled=_ref$disabled===void 0?false:_ref$disabled,_ref$onValueChange=_ref.onValueChange,onValueChange=_ref$onValueChange===void 0?function(){}:_ref$onValueChange,colors=_ref.theme.colors,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);var _extractStyles=(0,_utilities.extractStyles)(style),_extractStyles$viewSt=_extractStyles.viewStyles,borderRadius=_extractStyles$viewSt.borderRadius,borderWidth=_extractStyles$viewSt.borderWidth,borderTopWidth=_extractStyles$viewSt.borderTopWidth,borderRightWidth=_extractStyles$viewSt.borderRightWidth,borderBottomWidth=_extractStyles$viewSt.borderBottomWidth,borderLeftWidth=_extractStyles$viewSt.borderLeftWidth,borderColor=_extractStyles$viewSt.borderColor,backgroundColor=_extractStyles$viewSt.backgroundColor,padding=_extractStyles$viewSt.padding,paddingTop=_extractStyles$viewSt.paddingTop,paddingRight=_extractStyles$viewSt.paddingRight,paddingBottom=_extractStyles$viewSt.paddingBottom,paddingLeft=_extractStyles$viewSt.paddingLeft,viewStyles=(0,_objectWithoutProperties2.default)(_extractStyles$viewSt,_excluded2);var textField=React.useRef(undefined);var _React$useState=React.useState(false),_React$useState2=(0,_slicedToArray2.default)(_React$useState,2),pickerVisible=_React$useState2[0],setIsPickerVisible=_React$useState2[1];var toggleVisibility=function toggleVisibility(){setIsPickerVisible(!pickerVisible);textField.current.toggleFocus();};var stylesWithoutMargin=style&&(0,_lodash.default)(_reactNative.StyleSheet.flatten(style),["margin","marginTop","marginRight","marginBottom","marginLeft"]);var selectedLabel=selectedValue&&((_options$find$label=(_options$find=options.find(function(o){return o.value===selectedValue;}))==null?void 0:_options$find.label)!=null?_options$find$label:selectedValue);return(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[styles.container,viewStyles],children:[(0,_jsxRuntime.jsx)(_Touchable.default,{disabled:disabled,onPress:toggleVisibility,children:(0,_jsxRuntime.jsx)(_TextField.default,Object.assign({},props,{value:String(selectedLabel),placeholder:placeholder,ref:textField,disabled:disabled,pointerEvents:"none",style:stylesWithoutMargin,Icon:Icon}))}),pickerVisible&&(0,_jsxRuntime.jsx)(_Portal.default,{children:(0,_jsxRuntime.jsx)(_reactNative.View,{style:[styles.picker,{backgroundColor:colors.divider}],children:(0,_jsxRuntime.jsxs)(_reactNativeSafeAreaContext.SafeAreaView,{style:styles.pickerContainer,children:[(0,_jsxRuntime.jsx)(_DeprecatedButton.default,{Icon:Icon,type:"text",onPress:toggleVisibility,style:styles.closeButton,children:"Close"}),(0,_jsxRuntime.jsx)(_picker.Picker,{style:{backgroundColor:"white"},selectedValue:selectedValue,onValueChange:onValueChange,children:options.map(function(o){return(0,_jsxRuntime.jsx)(_picker.Picker.Item,{label:o.label,value:o.value},o.value);})})]})})})]});};var styles=_reactNative.StyleSheet.create({container:{alignSelf:"stretch"},picker:{position:"absolute",bottom:0,left:0,right:0,flexDirection:"row",justifyContent:"center"},pickerContainer:{backgroundColor:"white",flexDirection:"column",width:"100%"},closeButton:{alignSelf:"flex-end"}});var _default=(0,_theming.withTheme)(Picker);exports.default=_default;
@@ -1 +0,0 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var React=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _picker=require("@react-native-picker/picker");var _lodash=_interopRequireDefault(require("lodash.omit"));var _theming=require("../../theming");var _utilities=require("../../utilities");var _TextField=_interopRequireDefault(require("../TextField"));var _Touchable=_interopRequireDefault(require("../Touchable"));var _jsxRuntime=require("react/jsx-runtime");var _excluded=["style","options","placeholder","selectedValue","disabled","onValueChange"],_excluded2=["borderRadius","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderColor","backgroundColor","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/Picker/PickerComponent.web.tsx";function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}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;}var Picker=function Picker(_ref){var _options$find$label,_options$find;var style=_ref.style,options=_ref.options,placeholder=_ref.placeholder,selectedValue=_ref.selectedValue,_ref$disabled=_ref.disabled,disabled=_ref$disabled===void 0?false:_ref$disabled,_ref$onValueChange=_ref.onValueChange,onValueChangeOverride=_ref$onValueChange===void 0?function(){}:_ref$onValueChange,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);var _extractStyles=(0,_utilities.extractStyles)(style),_extractStyles$viewSt=_extractStyles.viewStyles,borderRadius=_extractStyles$viewSt.borderRadius,borderWidth=_extractStyles$viewSt.borderWidth,borderTopWidth=_extractStyles$viewSt.borderTopWidth,borderRightWidth=_extractStyles$viewSt.borderRightWidth,borderBottomWidth=_extractStyles$viewSt.borderBottomWidth,borderLeftWidth=_extractStyles$viewSt.borderLeftWidth,borderColor=_extractStyles$viewSt.borderColor,backgroundColor=_extractStyles$viewSt.backgroundColor,padding=_extractStyles$viewSt.padding,paddingTop=_extractStyles$viewSt.paddingTop,paddingRight=_extractStyles$viewSt.paddingRight,paddingBottom=_extractStyles$viewSt.paddingBottom,paddingLeft=_extractStyles$viewSt.paddingLeft,viewStyles=(0,_objectWithoutProperties2.default)(_extractStyles$viewSt,_excluded2);var textField=React.useRef(undefined);var onValueChange=function onValueChange(itemValue,itemIndex){toggleFocus();onValueChangeOverride(itemValue,itemIndex);};var toggleFocus=function toggleFocus(){if(!disabled){textField.current.toggleFocus();}};var stylesWithoutMargin=style&&(0,_lodash.default)(_reactNative.StyleSheet.flatten(style),["margin","marginTop","marginRight","marginBottom","marginLeft"]);var selectedLabel=selectedValue&&((_options$find$label=(_options$find=options.find(function(o){return o.value===selectedValue;}))==null?void 0:_options$find.label)!=null?_options$find$label:selectedValue);return(0,_jsxRuntime.jsx)(_Touchable.default,{disabled:disabled,onPress:toggleFocus,style:[styles.container,viewStyles],children:(0,_jsxRuntime.jsxs)(_reactNative.View,{children:[(0,_jsxRuntime.jsx)(_picker.Picker,{enabled:!disabled,selectedValue:selectedValue,onValueChange:onValueChange,style:{flex:1,opacity:0,position:"absolute",top:0,left:0,right:0,bottom:0,width:"100%"},children:options.map(function(o){return(0,_jsxRuntime.jsx)(_picker.Picker.Item,{label:o.label,value:o.value},o.value);})}),(0,_jsxRuntime.jsx)(_reactNative.View,{pointerEvents:"none",children:(0,_jsxRuntime.jsx)(_TextField.default,Object.assign({},props,{value:selectedLabel,placeholder:placeholder,ref:textField,disabled:disabled,style:stylesWithoutMargin}))})]})});};var styles=_reactNative.StyleSheet.create({container:{alignSelf:"stretch"}});var _default=(0,_theming.withTheme)(Picker);exports.default=_default;
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- import { PickerComponentProps } from "./PickerTypes";
3
- declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<PickerComponentProps, "theme"> & {
4
- theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
5
- }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<PickerComponentProps> & React.FC<PickerComponentProps>, {}>;
6
- export default _default;
@@ -1,70 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import omit from "lodash.omit";
4
- import { withTheme } from "../../theming";
5
- import { Picker as NativePicker } from "@react-native-picker/picker";
6
- import { extractStyles } from "../../utilities";
7
- import TextField from "../TextField";
8
- import Touchable from "../Touchable";
9
- const Picker = ({ style, options, placeholder, selectedValue, disabled = false, onValueChange: onValueChangeOverride = () => { }, ...props }) => {
10
- var _a, _b;
11
- const { viewStyles: { borderRadius, // eslint-disable-line @typescript-eslint/no-unused-vars
12
- borderWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
13
- borderTopWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
14
- borderRightWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
15
- borderBottomWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
16
- borderLeftWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
17
- borderColor, // eslint-disable-line @typescript-eslint/no-unused-vars
18
- backgroundColor, // eslint-disable-line @typescript-eslint/no-unused-vars
19
- padding, // eslint-disable-line @typescript-eslint/no-unused-vars
20
- paddingTop, // eslint-disable-line @typescript-eslint/no-unused-vars
21
- paddingRight, // eslint-disable-line @typescript-eslint/no-unused-vars
22
- paddingBottom, // eslint-disable-line @typescript-eslint/no-unused-vars
23
- paddingLeft, // eslint-disable-line @typescript-eslint/no-unused-vars
24
- ...viewStyles }, } = extractStyles(style);
25
- const textField = React.useRef(undefined);
26
- const onValueChange = (itemValue, itemIndex) => {
27
- toggleFocus();
28
- onValueChangeOverride(itemValue, itemIndex);
29
- };
30
- const toggleFocus = () => {
31
- if (!disabled) {
32
- // @ts-ignore
33
- textField.current.toggleFocus(); // cannot determine if method exists due to component being wrapped in a withTheme()
34
- }
35
- };
36
- const stylesWithoutMargin = style &&
37
- omit(StyleSheet.flatten(style), [
38
- "margin",
39
- "marginTop",
40
- "marginRight",
41
- "marginBottom",
42
- "marginLeft",
43
- ]);
44
- const selectedLabel = selectedValue &&
45
- ((_b = (_a = options.find((o) => o.value === selectedValue)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : selectedValue);
46
- return (React.createElement(Touchable, { disabled: disabled, onPress: toggleFocus, style: [styles.container, viewStyles] },
47
- React.createElement(View, null,
48
- React.createElement(NativePicker, { enabled: !disabled, selectedValue: selectedValue, onValueChange: onValueChange, style: {
49
- opacity: 0,
50
- position: "absolute",
51
- top: 0,
52
- left: 0,
53
- right: 0,
54
- bottom: 0,
55
- width: "100%",
56
- } }, options.map((o) => (React.createElement(NativePicker.Item, { label: o.label, value: o.value, key: o.value })))),
57
- React.createElement(View, { pointerEvents: "none" },
58
- React.createElement(TextField, { ...props, value: selectedLabel, placeholder: placeholder,
59
- // @ts-ignore
60
- ref: textField, disabled: disabled,
61
- // @ts-expect-error
62
- style: stylesWithoutMargin })))));
63
- };
64
- const styles = StyleSheet.create({
65
- container: {
66
- alignSelf: "stretch",
67
- },
68
- });
69
- export default withTheme(Picker);
70
- //# sourceMappingURL=PickerComponent.android.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PickerComponent.android.js","sourceRoot":"","sources":["../../../../../src/components/Picker/PickerComponent.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,SAAS,MAAM,cAAc,CAAC;AAGrC,MAAM,MAAM,GAAmC,CAAC,EAC9C,KAAK,EACL,OAAO,EACP,WAAW,EACX,aAAa,EACb,QAAQ,GAAG,KAAK,EAChB,aAAa,EAAE,qBAAqB,GAAG,GAAG,EAAE,GAAE,CAAC,EAC/C,GAAG,KAAK,EACT,EAAE,EAAE;;IACH,MAAM,EACJ,UAAU,EAAE,EACV,YAAY,EAAE,wDAAwD;IACtE,WAAW,EAAE,wDAAwD;IACrE,cAAc,EAAE,wDAAwD;IACxE,gBAAgB,EAAE,wDAAwD;IAC1E,iBAAiB,EAAE,wDAAwD;IAC3E,eAAe,EAAE,wDAAwD;IACzE,WAAW,EAAE,wDAAwD;IACrE,eAAe,EAAE,wDAAwD;IACzE,OAAO,EAAE,wD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AAU;oBACpB,GAAG,EAAE,CAAC;oBACN,IAAI,EAAE,CAAC;oBACP,KAAK,EAAE,CAAC;oBACR,MAAM,EAAE,CAAC;oBACT,KAAK,EAAE,MAAM;iBACd,IAEA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAClB,oBAAC,YAAY,CAAC,IAAI,IAAC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,GAAI,CACpE,CAAC,CACW;YACf,oBAAC,IAAI,IAAC,aAAa,EAAC,MAAM;gBACxB,oBAAC,SAAS,OACJ,KAAK,EACT,KAAK,EAAE,aAAa,EACpB,WAAW,EAAE,WAAW;oBACxB,aAAa;oBACb,GAAG,EAAE,SAAS,EACd,QAAQ,EAAE,QAAQ;oBAClB,mBAAmB;oBACnB,KAAK,EAAE,mBAAmB,GAC1B,CACG,CACF,CACG,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,SAAS,EAAE,SAAS;KACrB;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,MAAM,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- import { PickerComponentProps } from "./PickerTypes";
3
- import type { IconSlot } from "../../interfaces/Icon";
4
- declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<PickerComponentProps & IconSlot, "theme"> & {
5
- theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
6
- }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<PickerComponentProps & IconSlot> & React.FC<PickerComponentProps & IconSlot>, {}>;
7
- export default _default;
@@ -1,80 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import { SafeAreaView } from "react-native-safe-area-context";
4
- import omit from "lodash.omit";
5
- import { Picker as NativePicker } from "@react-native-picker/picker";
6
- import { withTheme } from "../../theming";
7
- import Portal from "../Portal/Portal";
8
- import Button from "../../deprecated-components/DeprecatedButton";
9
- import TextField from "../TextField";
10
- import Touchable from "../Touchable";
11
- import { extractStyles } from "../../utilities";
12
- const Picker = ({ Icon, style, options, placeholder, selectedValue, disabled = false, onValueChange = () => { }, theme: { colors }, ...props }) => {
13
- var _a, _b;
14
- const { viewStyles: { borderRadius, // eslint-disable-line @typescript-eslint/no-unused-vars
15
- borderWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
16
- borderTopWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
17
- borderRightWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
18
- borderBottomWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
19
- borderLeftWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
20
- borderColor, // eslint-disable-line @typescript-eslint/no-unused-vars
21
- backgroundColor, // eslint-disable-line @typescript-eslint/no-unused-vars
22
- padding, // eslint-disable-line @typescript-eslint/no-unused-vars
23
- paddingTop, // eslint-disable-line @typescript-eslint/no-unused-vars
24
- paddingRight, // eslint-disable-line @typescript-eslint/no-unused-vars
25
- paddingBottom, // eslint-disable-line @typescript-eslint/no-unused-vars
26
- paddingLeft, // eslint-disable-line @typescript-eslint/no-unused-vars
27
- ...viewStyles }, } = extractStyles(style);
28
- const textField = React.useRef(undefined);
29
- const [pickerVisible, setIsPickerVisible] = React.useState(false);
30
- const toggleVisibility = () => {
31
- setIsPickerVisible(!pickerVisible);
32
- // @ts-ignore
33
- textField.current.toggleFocus(); // cannot determine if method exists due to component being wrapped in a withTheme()
34
- };
35
- const stylesWithoutMargin = style &&
36
- omit(StyleSheet.flatten(style), [
37
- "margin",
38
- "marginTop",
39
- "marginRight",
40
- "marginBottom",
41
- "marginLeft",
42
- ]);
43
- const selectedLabel = selectedValue &&
44
- ((_b = (_a = options.find((o) => o.value === selectedValue)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : selectedValue);
45
- return (React.createElement(View, { style: [styles.container, viewStyles] },
46
- React.createElement(Touchable, { disabled: disabled, onPress: toggleVisibility },
47
- React.createElement(TextField, { ...props, value: String(selectedLabel), placeholder: placeholder,
48
- // @ts-ignore
49
- ref: textField, disabled: disabled, pointerEvents: "none",
50
- // @ts-expect-error
51
- style: stylesWithoutMargin, Icon: Icon })),
52
- pickerVisible && (React.createElement(Portal, null,
53
- React.createElement(View, { style: [styles.picker, { backgroundColor: colors.divider }] },
54
- React.createElement(SafeAreaView, { style: styles.pickerContainer },
55
- React.createElement(Button, { Icon: Icon, type: "text", onPress: toggleVisibility, style: styles.closeButton }, "Close"),
56
- React.createElement(NativePicker, { style: { backgroundColor: "white" }, selectedValue: selectedValue, onValueChange: onValueChange }, options.map((o) => (React.createElement(NativePicker.Item, { label: o.label, value: o.value, key: o.value }))))))))));
57
- };
58
- const styles = StyleSheet.create({
59
- container: {
60
- alignSelf: "stretch",
61
- },
62
- picker: {
63
- position: "absolute",
64
- bottom: 0,
65
- left: 0,
66
- right: 0,
67
- flexDirection: "row",
68
- justifyContent: "center",
69
- },
70
- pickerContainer: {
71
- backgroundColor: "white",
72
- flexDirection: "column",
73
- width: "100%",
74
- },
75
- closeButton: {
76
- alignSelf: "flex-end",
77
- },
78
- });
79
- export default withTheme(Picker);
80
- //# sourceMappingURL=PickerComponent.ios.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PickerComponent.ios.js","sourceRoot":"","sources":["../../../../../src/components/Picker/PickerComponent.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,IAAI,MAAM,aAAa,CAAC;AAE/B,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,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Aa,EAAE,aAAa,EAC5B,aAAa,EAAE,aAAa,IAE3B,OAAO,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CACvB,oBAAC,YAAY,CAAC,IAAI,IAChB,KAAK,EAAE,CAAC,CAAC,KAAK,EACd,KAAK,EAAE,CAAC,CAAC,KAAK,EACd,GAAG,EAAE,CAAC,CAAC,KAAK,GACZ,CACH,CAAC,CACW,CACF,CACV,CACA,CACV,CACI,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,SAAS,EAAE,SAAS;KACrB;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,UAAU;QACpB,MAAM,EAAE,CAAC;QACT,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,CAAC;QACR,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,QAAQ;KACzB;IACD,eAAe,EAAE;QACf,eAAe,EAAE,OAAO;QACxB,aAAa,EAAE,QAAQ;QACvB,KAAK,EAAE,MAAM;KACd;IACD,WAAW,EAAE;QACX,SAAS,EAAE,UAAU;KACtB;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,MAAM,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- import { PickerComponentProps } from "./PickerTypes";
3
- declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<PickerComponentProps, "theme"> & {
4
- theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
5
- }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<PickerComponentProps> & React.FC<PickerComponentProps>, {}>;
6
- export default _default;
@@ -1,71 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import { Picker as NativePicker } from "@react-native-picker/picker";
4
- import omit from "lodash.omit";
5
- import { withTheme } from "../../theming";
6
- import { extractStyles } from "../../utilities";
7
- import TextField from "../TextField";
8
- import Touchable from "../Touchable";
9
- const Picker = ({ style, options, placeholder, selectedValue, disabled = false, onValueChange: onValueChangeOverride = () => { }, ...props }) => {
10
- var _a, _b;
11
- const { viewStyles: { borderRadius, // eslint-disable-line @typescript-eslint/no-unused-vars
12
- borderWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
13
- borderTopWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
14
- borderRightWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
15
- borderBottomWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
16
- borderLeftWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
17
- borderColor, // eslint-disable-line @typescript-eslint/no-unused-vars
18
- backgroundColor, // eslint-disable-line @typescript-eslint/no-unused-vars
19
- padding, // eslint-disable-line @typescript-eslint/no-unused-vars
20
- paddingTop, // eslint-disable-line @typescript-eslint/no-unused-vars
21
- paddingRight, // eslint-disable-line @typescript-eslint/no-unused-vars
22
- paddingBottom, // eslint-disable-line @typescript-eslint/no-unused-vars
23
- paddingLeft, // eslint-disable-line @typescript-eslint/no-unused-vars
24
- ...viewStyles }, } = extractStyles(style);
25
- const textField = React.useRef(undefined);
26
- const onValueChange = (itemValue, itemIndex) => {
27
- toggleFocus();
28
- onValueChangeOverride(itemValue, itemIndex);
29
- };
30
- const toggleFocus = () => {
31
- if (!disabled) {
32
- // @ts-ignore
33
- textField.current.toggleFocus(); // cannot determine if method exists due to component being wrapped in a withTheme()
34
- }
35
- };
36
- const stylesWithoutMargin = style &&
37
- omit(StyleSheet.flatten(style), [
38
- "margin",
39
- "marginTop",
40
- "marginRight",
41
- "marginBottom",
42
- "marginLeft",
43
- ]);
44
- const selectedLabel = selectedValue &&
45
- ((_b = (_a = options.find((o) => o.value === selectedValue)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : selectedValue);
46
- return (React.createElement(Touchable, { disabled: disabled, onPress: toggleFocus, style: [styles.container, viewStyles] },
47
- React.createElement(View, null,
48
- React.createElement(NativePicker, { enabled: !disabled, selectedValue: selectedValue, onValueChange: onValueChange, style: {
49
- flex: 1,
50
- opacity: 0,
51
- position: "absolute",
52
- top: 0,
53
- left: 0,
54
- right: 0,
55
- bottom: 0,
56
- width: "100%",
57
- } }, options.map((o) => (React.createElement(NativePicker.Item, { label: o.label, value: o.value, key: o.value })))),
58
- React.createElement(View, { pointerEvents: "none" },
59
- React.createElement(TextField, { ...props, value: selectedLabel, placeholder: placeholder,
60
- // @ts-ignore
61
- ref: textField, disabled: disabled,
62
- // @ts-expect-error
63
- style: stylesWithoutMargin })))));
64
- };
65
- const styles = StyleSheet.create({
66
- container: {
67
- alignSelf: "stretch",
68
- },
69
- });
70
- export default withTheme(Picker);
71
- //# sourceMappingURL=PickerComponent.web.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PickerComponent.web.js","sourceRoot":"","sources":["../../../../../src/components/Picker/PickerComponent.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,SAAS,MAAM,cAAc,CAAC;AAGrC,MAAM,MAAM,GAAmC,CAAC,EAC9C,KAAK,EACL,OAAO,EACP,WAAW,EACX,aAAa,EACb,QAAQ,GAAG,KAAK,EAChB,aAAa,EAAE,qBAAqB,GAAG,GAAG,EAAE,GAAE,CAAC,EAC/C,GAAG,KAAK,EACT,EAAE,EAAE;;IACH,MAAM,EACJ,UAAU,EAAE,EACV,YAAY,EAAE,wDAAwD;IACtE,WAAW,E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,EAAE,UAAU,CAAC;QAErC,oBAAC,IAAI;YACH,oBAAC,YAAY,IACX,OAAO,EAAE,CAAC,QAAQ,EAClB,aAAa,EAAE,aAAa,EAC5B,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE;oBACL,IAAI,EAAE,CAAC;oBACP,OAAO,EAAE,CAAC;oBACV,QAAQ,EAAE,UAAU;oBACpB,GAAG,EAAE,CAAC;oBACN,IAAI,EAAE,CAAC;oBACP,KAAK,EAAE,CAAC;oBACR,MAAM,EAAE,CAAC;oBACT,KAAK,EAAE,MAAM;iBACd,IAEA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAClB,oBAAC,YAAY,CAAC,IAAI,IAAC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,GAAI,CACpE,CAAC,CACW;YACf,oBAAC,IAAI,IAAC,aAAa,EAAC,MAAM;gBACxB,oBAAC,SAAS,OACJ,KAAK,EACT,KAAK,EAAE,aAAa,EACpB,WAAW,EAAE,WAAW;oBACxB,aAAa;oBACb,GAAG,EAAE,SAAS,EACd,QAAQ,EAAE,QAAQ;oBAClB,mBAAmB;oBACnB,KAAK,EAAE,mBAAmB,GAC1B,CACG,CACF,CACG,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,SAAS,EAAE,SAAS;KACrB;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,MAAM,CAAC,CAAC"}
@@ -1,18 +0,0 @@
1
- import { ViewStyle } from "react-native";
2
- import { StyleProp } from "react-native";
3
- import { Props as TextFieldProps } from "../TextField";
4
- export interface PickerOption {
5
- value: string;
6
- label: string;
7
- }
8
- export interface PickerComponentProps extends TextFieldProps {
9
- style?: StyleProp<ViewStyle> & {
10
- height?: number;
11
- };
12
- options: PickerOption[];
13
- placeholder?: string;
14
- selectedValue: string;
15
- disabled?: boolean;
16
- onValueChange?: (value: string, index: number) => void;
17
- defaultValue?: string;
18
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=PickerTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PickerTypes.js","sourceRoot":"","sources":["../../../../../src/components/Picker/PickerTypes.ts"],"names":[],"mappings":""}
@@ -1,70 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import omit from "lodash.omit";
4
- import { withTheme } from "../../theming";
5
- import { Picker as NativePicker } from "@react-native-picker/picker";
6
- import { extractStyles } from "../../utilities";
7
- import TextField from "../TextField";
8
- import Touchable from "../Touchable";
9
- const Picker = ({ style, options, placeholder, selectedValue, disabled = false, onValueChange: onValueChangeOverride = () => { }, ...props }) => {
10
- var _a, _b;
11
- const { viewStyles: { borderRadius, // eslint-disable-line @typescript-eslint/no-unused-vars
12
- borderWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
13
- borderTopWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
14
- borderRightWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
15
- borderBottomWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
16
- borderLeftWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
17
- borderColor, // eslint-disable-line @typescript-eslint/no-unused-vars
18
- backgroundColor, // eslint-disable-line @typescript-eslint/no-unused-vars
19
- padding, // eslint-disable-line @typescript-eslint/no-unused-vars
20
- paddingTop, // eslint-disable-line @typescript-eslint/no-unused-vars
21
- paddingRight, // eslint-disable-line @typescript-eslint/no-unused-vars
22
- paddingBottom, // eslint-disable-line @typescript-eslint/no-unused-vars
23
- paddingLeft, // eslint-disable-line @typescript-eslint/no-unused-vars
24
- ...viewStyles }, } = extractStyles(style);
25
- const textField = React.useRef(undefined);
26
- const onValueChange = (itemValue, itemIndex) => {
27
- toggleFocus();
28
- onValueChangeOverride(itemValue, itemIndex);
29
- };
30
- const toggleFocus = () => {
31
- if (!disabled) {
32
- // @ts-ignore
33
- textField.current.toggleFocus(); // cannot determine if method exists due to component being wrapped in a withTheme()
34
- }
35
- };
36
- const stylesWithoutMargin = style &&
37
- omit(StyleSheet.flatten(style), [
38
- "margin",
39
- "marginTop",
40
- "marginRight",
41
- "marginBottom",
42
- "marginLeft",
43
- ]);
44
- const selectedLabel = selectedValue &&
45
- ((_b = (_a = options.find((o) => o.value === selectedValue)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : selectedValue);
46
- return (React.createElement(Touchable, { disabled: disabled, onPress: toggleFocus, style: [styles.container, viewStyles] },
47
- React.createElement(View, null,
48
- React.createElement(NativePicker, { enabled: !disabled, selectedValue: selectedValue, onValueChange: onValueChange, style: {
49
- opacity: 0,
50
- position: "absolute",
51
- top: 0,
52
- left: 0,
53
- right: 0,
54
- bottom: 0,
55
- width: "100%",
56
- } }, options.map((o) => (React.createElement(NativePicker.Item, { label: o.label, value: o.value, key: o.value })))),
57
- React.createElement(View, { pointerEvents: "none" },
58
- React.createElement(TextField, { ...props, value: selectedLabel, placeholder: placeholder,
59
- // @ts-ignore
60
- ref: textField, disabled: disabled,
61
- // @ts-expect-error
62
- style: stylesWithoutMargin })))));
63
- };
64
- const styles = StyleSheet.create({
65
- container: {
66
- alignSelf: "stretch",
67
- },
68
- });
69
- export default withTheme(Picker);
70
- //# sourceMappingURL=PickerComponent.android.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PickerComponent.android.js","sourceRoot":"","sources":["PickerComponent.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM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AC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,SAAS,EAAE,SAAS;KACrB;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,MAAM,CAAC,CAAC"}
@@ -1,116 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import omit from "lodash.omit";
4
- import { withTheme } from "../../theming";
5
- import { Picker as NativePicker } from "@react-native-picker/picker";
6
- import { extractStyles } from "../../utilities";
7
-
8
- import TextField from "../TextField";
9
- import Touchable from "../Touchable";
10
- import { PickerComponentProps } from "./PickerTypes";
11
-
12
- const Picker: React.FC<PickerComponentProps> = ({
13
- style,
14
- options,
15
- placeholder,
16
- selectedValue,
17
- disabled = false,
18
- onValueChange: onValueChangeOverride = () => {},
19
- ...props
20
- }) => {
21
- const {
22
- viewStyles: {
23
- borderRadius, // eslint-disable-line @typescript-eslint/no-unused-vars
24
- borderWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
25
- borderTopWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
26
- borderRightWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
27
- borderBottomWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
28
- borderLeftWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
29
- borderColor, // eslint-disable-line @typescript-eslint/no-unused-vars
30
- backgroundColor, // eslint-disable-line @typescript-eslint/no-unused-vars
31
- padding, // eslint-disable-line @typescript-eslint/no-unused-vars
32
- paddingTop, // eslint-disable-line @typescript-eslint/no-unused-vars
33
- paddingRight, // eslint-disable-line @typescript-eslint/no-unused-vars
34
- paddingBottom, // eslint-disable-line @typescript-eslint/no-unused-vars
35
- paddingLeft, // eslint-disable-line @typescript-eslint/no-unused-vars
36
- ...viewStyles
37
- },
38
- } = extractStyles(style);
39
-
40
- const textField = React.useRef<typeof TextField | undefined>(undefined);
41
-
42
- const onValueChange = (itemValue: string, itemIndex: number) => {
43
- toggleFocus();
44
- onValueChangeOverride(itemValue, itemIndex);
45
- };
46
-
47
- const toggleFocus = () => {
48
- if (!disabled) {
49
- // @ts-ignore
50
- textField.current.toggleFocus(); // cannot determine if method exists due to component being wrapped in a withTheme()
51
- }
52
- };
53
-
54
- const stylesWithoutMargin =
55
- style &&
56
- omit(StyleSheet.flatten(style), [
57
- "margin",
58
- "marginTop",
59
- "marginRight",
60
- "marginBottom",
61
- "marginLeft",
62
- ]);
63
-
64
- const selectedLabel =
65
- selectedValue &&
66
- (options.find((o) => o.value === selectedValue)?.label ?? selectedValue);
67
-
68
- return (
69
- <Touchable
70
- disabled={disabled}
71
- onPress={toggleFocus}
72
- style={[styles.container, viewStyles]}
73
- >
74
- <View>
75
- <NativePicker
76
- enabled={!disabled}
77
- selectedValue={selectedValue}
78
- onValueChange={onValueChange}
79
- style={{
80
- opacity: 0,
81
- position: "absolute",
82
- top: 0,
83
- left: 0,
84
- right: 0,
85
- bottom: 0,
86
- width: "100%",
87
- }}
88
- >
89
- {options.map((o) => (
90
- <NativePicker.Item label={o.label} value={o.value} key={o.value} />
91
- ))}
92
- </NativePicker>
93
- <View pointerEvents="none">
94
- <TextField
95
- {...props}
96
- value={selectedLabel}
97
- placeholder={placeholder}
98
- // @ts-ignore
99
- ref={textField} // cannot determine if ref is of correct type due to component being wrapped in a withTheme()
100
- disabled={disabled}
101
- // @ts-expect-error
102
- style={stylesWithoutMargin}
103
- />
104
- </View>
105
- </View>
106
- </Touchable>
107
- );
108
- };
109
-
110
- const styles = StyleSheet.create({
111
- container: {
112
- alignSelf: "stretch",
113
- },
114
- });
115
-
116
- export default withTheme(Picker);
@@ -1,80 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import { SafeAreaView } from "react-native-safe-area-context";
4
- import omit from "lodash.omit";
5
- import { Picker as NativePicker } from "@react-native-picker/picker";
6
- import { withTheme } from "../../theming";
7
- import Portal from "../Portal/Portal";
8
- import Button from "../../deprecated-components/DeprecatedButton";
9
- import TextField from "../TextField";
10
- import Touchable from "../Touchable";
11
- import { extractStyles } from "../../utilities";
12
- const Picker = ({ Icon, style, options, placeholder, selectedValue, disabled = false, onValueChange = () => { }, theme: { colors }, ...props }) => {
13
- var _a, _b;
14
- const { viewStyles: { borderRadius, // eslint-disable-line @typescript-eslint/no-unused-vars
15
- borderWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
16
- borderTopWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
17
- borderRightWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
18
- borderBottomWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
19
- borderLeftWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
20
- borderColor, // eslint-disable-line @typescript-eslint/no-unused-vars
21
- backgroundColor, // eslint-disable-line @typescript-eslint/no-unused-vars
22
- padding, // eslint-disable-line @typescript-eslint/no-unused-vars
23
- paddingTop, // eslint-disable-line @typescript-eslint/no-unused-vars
24
- paddingRight, // eslint-disable-line @typescript-eslint/no-unused-vars
25
- paddingBottom, // eslint-disable-line @typescript-eslint/no-unused-vars
26
- paddingLeft, // eslint-disable-line @typescript-eslint/no-unused-vars
27
- ...viewStyles }, } = extractStyles(style);
28
- const textField = React.useRef(undefined);
29
- const [pickerVisible, setIsPickerVisible] = React.useState(false);
30
- const toggleVisibility = () => {
31
- setIsPickerVisible(!pickerVisible);
32
- // @ts-ignore
33
- textField.current.toggleFocus(); // cannot determine if method exists due to component being wrapped in a withTheme()
34
- };
35
- const stylesWithoutMargin = style &&
36
- omit(StyleSheet.flatten(style), [
37
- "margin",
38
- "marginTop",
39
- "marginRight",
40
- "marginBottom",
41
- "marginLeft",
42
- ]);
43
- const selectedLabel = selectedValue &&
44
- ((_b = (_a = options.find((o) => o.value === selectedValue)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : selectedValue);
45
- return (React.createElement(View, { style: [styles.container, viewStyles] },
46
- React.createElement(Touchable, { disabled: disabled, onPress: toggleVisibility },
47
- React.createElement(TextField, { ...props, value: String(selectedLabel), placeholder: placeholder,
48
- // @ts-ignore
49
- ref: textField, disabled: disabled, pointerEvents: "none",
50
- // @ts-expect-error
51
- style: stylesWithoutMargin, Icon: Icon })),
52
- pickerVisible && (React.createElement(Portal, null,
53
- React.createElement(View, { style: [styles.picker, { backgroundColor: colors.divider }] },
54
- React.createElement(SafeAreaView, { style: styles.pickerContainer },
55
- React.createElement(Button, { Icon: Icon, type: "text", onPress: toggleVisibility, style: styles.closeButton }, "Close"),
56
- React.createElement(NativePicker, { style: { backgroundColor: "white" }, selectedValue: selectedValue, onValueChange: onValueChange }, options.map((o) => (React.createElement(NativePicker.Item, { label: o.label, value: o.value, key: o.value }))))))))));
57
- };
58
- const styles = StyleSheet.create({
59
- container: {
60
- alignSelf: "stretch",
61
- },
62
- picker: {
63
- position: "absolute",
64
- bottom: 0,
65
- left: 0,
66
- right: 0,
67
- flexDirection: "row",
68
- justifyContent: "center",
69
- },
70
- pickerContainer: {
71
- backgroundColor: "white",
72
- flexDirection: "column",
73
- width: "100%",
74
- },
75
- closeButton: {
76
- alignSelf: "flex-end",
77
- },
78
- });
79
- export default withTheme(Picker);
80
- //# sourceMappingURL=PickerComponent.ios.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PickerComponent.ios.js","sourceRoot":"","sources":["PickerComponent.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,IAAI,MAAM,aAAa,CAAC;AAE/B,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,MAAM,MAAM,kBAAkB,CAAC;AACtC,OAAO,MAAM,MAAM,8CAA8C,C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