@reillymc/react-native-components 0.11.4 → 0.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +1 -1
  2. package/lib/components/avatar/Avatar.js +1 -1
  3. package/lib/components/container/FloatingContainer.js +1 -1
  4. package/lib/components/container/FloatingContainer.web.js +1 -1
  5. package/lib/components/input/DropdownInputBase.js +1 -1
  6. package/lib/components/input/InputBase.js +1 -1
  7. package/lib/components/input/NumberInput.js +1 -1
  8. package/lib/components/input/NumberInputBase.js +1 -1
  9. package/lib/components/input/RatingInput.js +1 -1
  10. package/lib/components/listItem/ListItem.js +1 -1
  11. package/lib/components/menu/MenuItem.js +1 -1
  12. package/lib/components/swipe/SwipeableContainer.js +1 -1
  13. package/lib/components/tag/Tag.js +1 -1
  14. package/lib/components/text/HighlightedText.js +1 -1
  15. package/lib/components/toast/Toast.js +1 -1
  16. package/lib/hooks/index.js +1 -1
  17. package/lib/hooks/useForwardedRef.js +1 -1
  18. package/lib/hooks/useThemedStyles.js +1 -1
  19. package/lib/providers/ThemeProvider.js +1 -1
  20. package/lib/theme/theme.js +1 -1
  21. package/lib/types/components/alert/AlertIndicator.d.ts +2 -2
  22. package/lib/types/components/alert/AlertIndicator.d.ts.map +1 -1
  23. package/lib/types/components/avatar/Avatar.d.ts +3 -3
  24. package/lib/types/components/avatar/Avatar.d.ts.map +1 -1
  25. package/lib/types/components/container/FloatingContainer.d.ts +5 -6
  26. package/lib/types/components/container/FloatingContainer.d.ts.map +1 -1
  27. package/lib/types/components/container/FloatingContainer.web.d.ts +2 -15
  28. package/lib/types/components/container/FloatingContainer.web.d.ts.map +1 -1
  29. package/lib/types/components/container/Panel.d.ts +4 -4
  30. package/lib/types/components/container/Panel.d.ts.map +1 -1
  31. package/lib/types/components/input/DropdownInputBase.d.ts.map +1 -1
  32. package/lib/types/components/input/NumberInput.d.ts +1 -1
  33. package/lib/types/components/input/NumberInput.d.ts.map +1 -1
  34. package/lib/types/components/input/NumberInputBase.d.ts +1 -1
  35. package/lib/types/components/input/NumberInputBase.d.ts.map +1 -1
  36. package/lib/types/components/input/RatingInput.d.ts.map +1 -1
  37. package/lib/types/components/listItem/ListItem.d.ts.map +1 -1
  38. package/lib/types/components/menu/MenuItem.d.ts.map +1 -1
  39. package/lib/types/components/swipe/SwipeableContainer.d.ts.map +1 -1
  40. package/lib/types/components/tag/Tag.d.ts.map +1 -1
  41. package/lib/types/components/text/HighlightedText.d.ts +2 -6
  42. package/lib/types/components/text/HighlightedText.d.ts.map +1 -1
  43. package/lib/types/components/toast/Toast.d.ts +4 -4
  44. package/lib/types/components/toast/Toast.d.ts.map +1 -1
  45. package/lib/types/hooks/index.d.ts +0 -1
  46. package/lib/types/hooks/index.d.ts.map +1 -1
  47. package/lib/types/hooks/useForwardedRef.d.ts +2 -2
  48. package/lib/types/hooks/useForwardedRef.d.ts.map +1 -1
  49. package/lib/types/hooks/useThemedStyles.d.ts +1 -0
  50. package/lib/types/hooks/useThemedStyles.d.ts.map +1 -1
  51. package/lib/types/providers/ThemeProvider.d.ts +1 -1
  52. package/lib/types/providers/ThemeProvider.d.ts.map +1 -1
  53. package/lib/types/theme/theme.d.ts.map +1 -1
  54. package/package.json +3 -2
  55. package/lib/hooks/useKeyboardHeight.js +0 -1
  56. package/lib/types/hooks/useKeyboardHeight.d.ts +0 -4
  57. package/lib/types/hooks/useKeyboardHeight.d.ts.map +0 -1
package/README.md CHANGED
@@ -20,7 +20,7 @@ See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the
20
20
 
21
21
  ## Publishing
22
22
 
23
- This package is published to github npm packages and requires [authentication](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-to-github-packages).
23
+ This package is published to npm.
24
24
 
25
25
  New package versions are published automatically via the [publish](.github/workflows/publish.yml) GitHub workflow. A [pre-commit hook](.git/hooks/pre-commit) increments the patch version each commit automatically, while minor/major branches are created manually.
26
26
 
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/avatar/Avatar.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{Image,StyleSheet,View}from"react-native";import{useThemedStyles}from"../../hooks";import{Text}from"../text";import{jsx as _jsx,Fragment as _Fragment,jsxs as _jsxs}from"react/jsx-runtime";var getBackgroundColor=(colors,firstName,lastName)=>{var hash=(firstName||lastName||"").split("").reduce((acc,char)=>acc+char.charCodeAt(0),0)%colors.length;return colors[hash]??colors[0]??{background:"#fff",foreground:"#000"};};export var Avatar=t0=>{var $=_c(35);var t1=t0.firstName,t2=t0.lastName,imageUri=t0.imageUri,t3=t0.size,action=t0.action,style=t0.style,containerStyle=t0.containerStyle;var firstName=t1===undefined?"":t1;var lastName=t2===undefined?"":t2;var size=t3===undefined?"regular":t3;var t4;if($[0]!==style){t4={avatar:style};$[0]=style;$[1]=t4;}else{t4=$[1];}var t5;if($[2]!==firstName||$[3]!==lastName||$[4]!==size){t5={size,firstName,lastName};$[2]=firstName;$[3]=lastName;$[4]=size;$[5]=t5;}else{t5=$[5];}var t6;if($[6]!==t4||$[7]!==t5){t6={styles:t4,props:t5};$[6]=t4;$[7]=t5;$[8]=t6;}else{t6=$[8];}var _useThemedStyles=useThemedStyles("avatar",createStyles,t6),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t7;if($[9]!==firstName){t7=firstName.charAt(0);$[9]=firstName;$[10]=t7;}else{t7=$[10];}var t8;if($[11]!==lastName){t8=lastName.charAt(0);$[11]=lastName;$[12]=t8;}else{t8=$[12];}var t9=`${t7}${t8}`;var t10;if($[13]!==t9){t10=t9.toUpperCase();$[13]=t9;$[14]=t10;}else{t10=$[14];}var initials=t10;var t11;if($[15]!==containerStyle||$[16]!==styles.container){t11=[styles.container,containerStyle];$[15]=containerStyle;$[16]=styles.container;$[17]=t11;}else{t11=$[17];}var t12;if($[18]!==firstName||$[19]!==imageUri||$[20]!==initials||$[21]!==lastName||$[22]!==size||$[23]!==styles.image||$[24]!==styles.initials||$[25]!==styles.label){t12=imageUri?_jsx(Image,{source:{uri:imageUri},style:styles.image}):_jsxs(_Fragment,{children:[_jsx(Text,{style:styles.initials,children:initials}),size==="large"&&_jsx(Text,{numberOfLines:3,style:[styles.label],children:`${firstName} ${lastName}`})]});$[18]=firstName;$[19]=imageUri;$[20]=initials;$[21]=lastName;$[22]=size;$[23]=styles.image;$[24]=styles.initials;$[25]=styles.label;$[26]=t12;}else{t12=$[26];}var t13;if($[27]!==action||$[28]!==size||$[29]!==styles.action){t13=action&&size!=="small"&&_jsx(View,{style:styles.action,children:action});$[27]=action;$[28]=size;$[29]=styles.action;$[30]=t13;}else{t13=$[30];}var t14;if($[31]!==t11||$[32]!==t12||$[33]!==t13){t14=_jsxs(View,{style:t11,children:[t12,t13]});$[31]=t11;$[32]=t12;$[33]=t13;$[34]=t14;}else{t14=$[34];}return t14;};Avatar.displayName="Avatar";var createStyles=({styles:{avatar},theme:{spacing}},{size="regular",firstName,lastName})=>{var _getBackgroundColor=getBackgroundColor(avatar.colors,firstName,lastName),background=_getBackgroundColor.background,foreground=_getBackgroundColor.foreground;var styles=StyleSheet.create({container:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:background,height:avatar.size[size],width:avatar.size[size],borderRadius:avatar.size[size]/2},image:{height:avatar.size[size],width:avatar.size[size],borderRadius:avatar.size[size]/2},initials:{fontWeight:avatar.initials.fontWeight,fontSize:avatar.initials.fontSize[size],color:foreground},label:{fontSize:avatar.label.fontSize,fontWeight:avatar.label.fontWeight,paddingHorizontal:spacing.small,textAlign:"center",color:foreground},action:{position:"absolute",top:-spacing.tiny,end:-spacing.small}});return styles;};
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/avatar/Avatar.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{Image,StyleSheet,View}from"react-native";import{useThemedStyles}from"../../hooks";import{Text}from"../text";import{jsx as _jsx,Fragment as _Fragment,jsxs as _jsxs}from"react/jsx-runtime";var getBackgroundColor=(colors,firstName,lastName)=>{var name=firstName||lastName||"";var hash=0;for(var i=0;i<name.length;i++){hash=(hash+name.charCodeAt(i))%colors.length;}return colors[hash]??colors[0]??{background:"#fff",foreground:"#000"};};export var Avatar=t0=>{var $=_c(35);var t1=t0.firstName,t2=t0.lastName,imageUri=t0.imageUri,t3=t0.size,action=t0.action,style=t0.style,containerStyle=t0.containerStyle;var firstName=t1===undefined?"":t1;var lastName=t2===undefined?"":t2;var size=t3===undefined?"regular":t3;var t4;if($[0]!==style){t4={avatar:style};$[0]=style;$[1]=t4;}else{t4=$[1];}var t5;if($[2]!==firstName||$[3]!==lastName||$[4]!==size){t5={size,firstName,lastName};$[2]=firstName;$[3]=lastName;$[4]=size;$[5]=t5;}else{t5=$[5];}var t6;if($[6]!==t4||$[7]!==t5){t6={styles:t4,props:t5};$[6]=t4;$[7]=t5;$[8]=t6;}else{t6=$[8];}var _useThemedStyles=useThemedStyles("avatar",createStyles,t6),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t7;if($[9]!==firstName){t7=firstName.charAt(0);$[9]=firstName;$[10]=t7;}else{t7=$[10];}var t8;if($[11]!==lastName){t8=lastName.charAt(0);$[11]=lastName;$[12]=t8;}else{t8=$[12];}var t9=`${t7}${t8}`;var t10;if($[13]!==t9){t10=t9.toUpperCase();$[13]=t9;$[14]=t10;}else{t10=$[14];}var initials=t10;var t11;if($[15]!==containerStyle||$[16]!==styles.container){t11=[styles.container,containerStyle];$[15]=containerStyle;$[16]=styles.container;$[17]=t11;}else{t11=$[17];}var t12;if($[18]!==firstName||$[19]!==imageUri||$[20]!==initials||$[21]!==lastName||$[22]!==size||$[23]!==styles.image||$[24]!==styles.initials||$[25]!==styles.label){t12=imageUri?_jsx(Image,{source:{uri:imageUri},style:styles.image}):_jsxs(_Fragment,{children:[_jsx(Text,{style:styles.initials,children:initials}),size==="large"&&_jsx(Text,{numberOfLines:3,style:[styles.label],children:`${firstName} ${lastName}`})]});$[18]=firstName;$[19]=imageUri;$[20]=initials;$[21]=lastName;$[22]=size;$[23]=styles.image;$[24]=styles.initials;$[25]=styles.label;$[26]=t12;}else{t12=$[26];}var t13;if($[27]!==action||$[28]!==size||$[29]!==styles.action){t13=action&&size!=="small"&&_jsx(View,{style:styles.action,children:action});$[27]=action;$[28]=size;$[29]=styles.action;$[30]=t13;}else{t13=$[30];}var t14;if($[31]!==t11||$[32]!==t12||$[33]!==t13){t14=_jsxs(View,{style:t11,children:[t12,t13]});$[31]=t11;$[32]=t12;$[33]=t13;$[34]=t14;}else{t14=$[34];}return t14;};Avatar.displayName="Avatar";var createStyles=({styles:{avatar},theme:{spacing}},{size="regular",firstName,lastName})=>{var _getBackgroundColor=getBackgroundColor(avatar.colors,firstName,lastName),background=_getBackgroundColor.background,foreground=_getBackgroundColor.foreground;var styles=StyleSheet.create({container:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:background,height:avatar.size[size],width:avatar.size[size],borderRadius:avatar.size[size]/2},image:{height:avatar.size[size],width:avatar.size[size],borderRadius:avatar.size[size]/2},initials:{fontWeight:avatar.initials.fontWeight,fontSize:avatar.initials.fontSize[size],color:foreground},label:{fontSize:avatar.label.fontSize,fontWeight:avatar.label.fontWeight,paddingHorizontal:spacing.small,textAlign:"center",color:foreground},action:{position:"absolute",top:-spacing.tiny,end:-spacing.small}});return styles;};
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/container/FloatingContainer.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{useCallback,useRef,useState}from"react";import{KeyboardAvoidingView,StyleSheet,useWindowDimensions,View}from"react-native";import{FullWindowOverlay}from"react-native-screens";import{useThemedStyles}from"../../hooks";import{jsx as _jsx}from"react/jsx-runtime";export var FloatingContainer=t0=>{var $=_c(19);var parentRef=t0.parentRef,show=t0.show,t1=t0.position,containerStyle=t0.containerStyle,children=t0.children;var position=t1===undefined?"auto":t1;var containerRef=useRef(null);var _useState=useState(),_useState2=_slicedToArray(_useState,2),layout=_useState2[0],setLayout=_useState2[1];var t2;if($[0]!==layout){t2={props:{layout}};$[0]=layout;$[1]=t2;}else{t2=$[1];}var _useThemedStyles=useThemedStyles("floatingContainer",createStyles,t2),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var _useWindowDimensions=useWindowDimensions(),screenHeight=_useWindowDimensions.height;var _useState3=useState(screenHeight),_useState4=_slicedToArray(_useState3,2),visibleAreaHeight=_useState4[0],setVisibleAreaHeight=_useState4[1];var t3;if($[2]===Symbol.for("react.memo_cache_sentinel")){t3=e=>{setVisibleAreaHeight(e.nativeEvent.layout.height);};$[2]=t3;}else{t3=$[2];}var onVisibleAreaLayout=t3;var t4;if($[3]!==parentRef||$[4]!==position||$[5]!==visibleAreaHeight){t4=e_0=>{parentRef.current?.measureInWindow((parentX,parentY,parentWidth,parentHeight)=>{var panelHeight=e_0.nativeEvent.layout.height;var parentBottom=parentY+parentHeight;var availableBelow=visibleAreaHeight-parentBottom;var inverted=position==="above"||availableBelow<panelHeight;setLayout({parentY,parentHeight,inverted,visibleAreaHeight,parentX,parentWidth});});};$[3]=parentRef;$[4]=position;$[5]=visibleAreaHeight;$[6]=t4;}else{t4=$[6];}var onPanelLayout=t4;var t5;if($[7]!==styles.keyboardView){t5=[styles.keyboardView];$[7]=styles.keyboardView;$[8]=t5;}else{t5=$[8];}var t6;if($[9]!==children||$[10]!==containerStyle||$[11]!==layout||$[12]!==onPanelLayout||$[13]!==show||$[14]!==styles.container){t6=show&&_jsx(View,{ref:containerRef,onLayout:onPanelLayout,pointerEvents:"box-none",style:[styles.container,containerStyle],children:typeof children==="function"?children(layout??{inverted:false}):children});$[9]=children;$[10]=containerStyle;$[11]=layout;$[12]=onPanelLayout;$[13]=show;$[14]=styles.container;$[15]=t6;}else{t6=$[15];}var t7;if($[16]!==t5||$[17]!==t6){t7=_jsx(FullWindowOverlay,{children:_jsx(KeyboardAvoidingView,{behavior:"height",style:t5,pointerEvents:"box-none",onLayout:onVisibleAreaLayout,children:t6})});$[16]=t5;$[17]=t6;$[18]=t7;}else{t7=$[18];}return t7;};var createStyles=({styles:{floatingContainer}},{layout})=>StyleSheet.create({keyboardView:StyleSheet.absoluteFill,container:layout?{position:"absolute",zIndex:10,left:layout.parentX,width:layout.parentWidth,overflow:"hidden",top:layout.inverted?undefined:layout.parentY+layout.parentHeight,bottom:layout.inverted?layout.visibleAreaHeight-layout.parentY:undefined,marginTop:floatingContainer.parentMargin,marginBottom:floatingContainer.parentMargin}:{opacity:0}});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/container/FloatingContainer.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{useRef,useState}from"react";import{I18nManager,KeyboardAvoidingView,Platform,StyleSheet,useWindowDimensions,View}from"react-native";import{useSafeAreaInsets}from"react-native-safe-area-context";import{FullWindowOverlay}from"react-native-screens";import{useThemedStyles}from"../../hooks";import{jsx as _jsx}from"react/jsx-runtime";var EMPTY_PANEL_LAYOUT={parentY:0,parentHeight:0,inverted:false,visibleAreaHeight:0};export var FloatingContainer=t0=>{var $=_c(20);var parentRef=t0.parentRef,show=t0.show,t1=t0.position,containerStyle=t0.containerStyle,children=t0.children;var position=t1===undefined?"auto":t1;var containerRef=useRef(null);var _useState=useState(),_useState2=_slicedToArray(_useState,2),layout=_useState2[0],setLayout=_useState2[1];var t2;if($[0]!==layout){t2={props:{layout}};$[0]=layout;$[1]=t2;}else{t2=$[1];}var _useThemedStyles=useThemedStyles("floatingContainer",createStyles,t2),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var _useWindowDimensions=useWindowDimensions(),screenHeight=_useWindowDimensions.height,screenWidth=_useWindowDimensions.width;var _useSafeAreaInsets=useSafeAreaInsets(),top=_useSafeAreaInsets.top;var _useState3=useState(screenHeight),_useState4=_slicedToArray(_useState3,2),visibleAreaHeight=_useState4[0],setVisibleAreaHeight=_useState4[1];var t3;if($[2]===Symbol.for("react.memo_cache_sentinel")){t3=e=>{setVisibleAreaHeight(e.nativeEvent.layout.height);};$[2]=t3;}else{t3=$[2];}var onVisibleAreaLayout=t3;var t4;if($[3]!==parentRef||$[4]!==position||$[5]!==top||$[6]!==visibleAreaHeight){t4=e_0=>{parentRef.current?.measureInWindow((parentX,parentY,parentWidth,parentHeight)=>{var panelHeight=e_0.nativeEvent.layout.height;var parentBottom=parentY+parentHeight;var availableBelow=visibleAreaHeight-top-parentBottom;var inverted=position==="above"||availableBelow<panelHeight;setLayout({parentY,parentHeight,inverted,visibleAreaHeight,parentX,parentWidth});});};$[3]=parentRef;$[4]=position;$[5]=top;$[6]=visibleAreaHeight;$[7]=t4;}else{t4=$[7];}var onPanelLayout=t4;var panelX=layout?.parentX!==undefined&&layout.parentWidth!==undefined?I18nManager.isRTL?screenWidth-layout.parentX-layout.parentWidth:layout.parentX:layout?.parentX;var t5;if($[8]===Symbol.for("react.memo_cache_sentinel")){t5=Platform.select({ios:"padding"});$[8]=t5;}else{t5=$[8];}var t6;if($[9]!==children||$[10]!==containerStyle||$[11]!==layout||$[12]!==onPanelLayout||$[13]!==panelX||$[14]!==show||$[15]!==styles.container){t6=show&&_jsx(View,{ref:containerRef,onLayout:onPanelLayout,style:[styles.container,panelX!==undefined&&{left:panelX},containerStyle],children:typeof children==="function"?children(layout??EMPTY_PANEL_LAYOUT):children});$[9]=children;$[10]=containerStyle;$[11]=layout;$[12]=onPanelLayout;$[13]=panelX;$[14]=show;$[15]=styles.container;$[16]=t6;}else{t6=$[16];}var t7;if($[17]!==styles.keyboardView||$[18]!==t6){t7=_jsx(FullWindowOverlay,{children:_jsx(KeyboardAvoidingView,{behavior:t5,style:styles.keyboardView,onLayout:onVisibleAreaLayout,children:t6})});$[17]=styles.keyboardView;$[18]=t6;$[19]=t7;}else{t7=$[19];}return t7;};var createStyles=({styles:{floatingContainer}},{layout})=>StyleSheet.create({keyboardView:{...StyleSheet.absoluteFill,pointerEvents:"box-none"},container:layout?{position:"absolute",zIndex:10,width:layout.parentWidth,overflow:"hidden",top:layout.inverted?undefined:layout.parentY+layout.parentHeight,bottom:layout.inverted?layout.visibleAreaHeight-layout.parentY:undefined,marginTop:floatingContainer.parentMargin,marginBottom:floatingContainer.parentMargin}:{opacity:0,pointerEvents:"box-none"}});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/container/FloatingContainer.web.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{useRef,useState}from"react";import{StyleSheet,useWindowDimensions,View}from"react-native";import{useSafeAreaInsets}from"react-native-safe-area-context";import{usePersistentKeyboardHeight,useThemedStyles}from"../../hooks";import{jsx as _jsx}from"react/jsx-runtime";var EMPTY_LAYOUT={inverted:false,parentHeight:0};export var FloatingContainer=t0=>{var $=_c(17);var parentRef=t0.parentRef,containerStyle=t0.containerStyle,children=t0.children;var containerRef=useRef(null);var _useState=useState(),_useState2=_slicedToArray(_useState,2),layout=_useState2[0],setLayout=_useState2[1];var t1;if($[0]!==layout){t1={props:{layout}};$[0]=layout;$[1]=t1;}else{t1=$[1];}var _useThemedStyles=useThemedStyles("floatingContainer",createStyles,t1),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var _useWindowDimensions=useWindowDimensions(),screenHeight=_useWindowDimensions.height;var _useSafeAreaInsets=useSafeAreaInsets(),top=_useSafeAreaInsets.top;var _usePersistentKeyboar=usePersistentKeyboardHeight(),keyboardHeight=_usePersistentKeyboar.keyboardHeight;var t2;if($[2]!==keyboardHeight||$[3]!==parentRef||$[4]!==screenHeight||$[5]!==top){t2=e=>{parentRef.current?.measureInWindow((_ix,parentY,_iw,parentHeight)=>{var panelHeight=e.nativeEvent.layout.height;var size=parentY+parentHeight+panelHeight;var screenMaxHeight=screenHeight-keyboardHeight-top;setLayout({parentHeight,inverted:size>screenMaxHeight});});};$[2]=keyboardHeight;$[3]=parentRef;$[4]=screenHeight;$[5]=top;$[6]=t2;}else{t2=$[6];}var onLayout=t2;var t3;if($[7]!==containerStyle||$[8]!==styles.container){t3=[styles.container,containerStyle];$[7]=containerStyle;$[8]=styles.container;$[9]=t3;}else{t3=$[9];}var t4;if($[10]!==children||$[11]!==layout){t4=typeof children==="function"?children(layout??EMPTY_LAYOUT):children;$[10]=children;$[11]=layout;$[12]=t4;}else{t4=$[12];}var t5;if($[13]!==onLayout||$[14]!==t3||$[15]!==t4){t5=_jsx(View,{ref:containerRef,style:t3,onLayout:onLayout,children:t4});$[13]=onLayout;$[14]=t3;$[15]=t4;$[16]=t5;}else{t5=$[16];}return t5;};var createStyles=({styles:{floatingContainer}},{layout})=>StyleSheet.create({container:{position:"absolute",bottom:layout?.inverted?layout.parentHeight:undefined,opacity:layout?1:0,zIndex:10,width:"100%",overflow:"hidden",top:layout?.inverted?undefined:layout?.parentHeight,marginTop:layout?.inverted?undefined:floatingContainer.parentMargin,marginBottom:layout?.inverted?floatingContainer.parentMargin:undefined}});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/container/FloatingContainer.web.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{useRef,useState}from"react";import{StyleSheet,useWindowDimensions,View}from"react-native";import{useSafeAreaInsets}from"react-native-safe-area-context";import{usePersistentKeyboardHeight,useThemedStyles}from"../../hooks";import{jsx as _jsx}from"react/jsx-runtime";var EMPTY_PANEL_LAYOUT={parentY:0,parentHeight:0,inverted:false,visibleAreaHeight:0};export var FloatingContainer=t0=>{var $=_c(19);var parentRef=t0.parentRef,show=t0.show,t1=t0.position,containerStyle=t0.containerStyle,children=t0.children;var position=t1===undefined?"auto":t1;var containerRef=useRef(null);var _useState=useState(),_useState2=_slicedToArray(_useState,2),layout=_useState2[0],setLayout=_useState2[1];var t2;if($[0]!==layout){t2={props:{layout}};$[0]=layout;$[1]=t2;}else{t2=$[1];}var _useThemedStyles=useThemedStyles("floatingContainer",createStyles,t2),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var _useWindowDimensions=useWindowDimensions(),screenHeight=_useWindowDimensions.height;var _useSafeAreaInsets=useSafeAreaInsets(),top=_useSafeAreaInsets.top;var _usePersistentKeyboar=usePersistentKeyboardHeight(),keyboardHeight=_usePersistentKeyboar.keyboardHeight;var t3;if($[2]!==keyboardHeight||$[3]!==parentRef||$[4]!==position||$[5]!==screenHeight||$[6]!==top){t3=e=>{parentRef.current?.measureInWindow((_ix,parentY,_iw,parentHeight)=>{var panelHeight=e.nativeEvent.layout.height;var size=parentY+parentHeight+panelHeight;var screenMaxHeight=screenHeight-keyboardHeight-top;setLayout({parentY,parentHeight,inverted:position==="above"||size>screenMaxHeight,visibleAreaHeight:screenMaxHeight});});};$[2]=keyboardHeight;$[3]=parentRef;$[4]=position;$[5]=screenHeight;$[6]=top;$[7]=t3;}else{t3=$[7];}var onLayout=t3;var t4;if($[8]!==containerStyle||$[9]!==styles.container){t4=[styles.container,containerStyle];$[8]=containerStyle;$[9]=styles.container;$[10]=t4;}else{t4=$[10];}var t5;if($[11]!==children||$[12]!==layout||$[13]!==show){t5=show&&(typeof children==="function"?children(layout??EMPTY_PANEL_LAYOUT):children);$[11]=children;$[12]=layout;$[13]=show;$[14]=t5;}else{t5=$[14];}var t6;if($[15]!==onLayout||$[16]!==t4||$[17]!==t5){t6=_jsx(View,{ref:containerRef,style:t4,onLayout:onLayout,children:t5});$[15]=onLayout;$[16]=t4;$[17]=t5;$[18]=t6;}else{t6=$[18];}return t6;};var createStyles=({styles:{floatingContainer}},{layout})=>StyleSheet.create({container:{position:"absolute",bottom:layout?.inverted?layout.parentHeight:undefined,opacity:layout?1:0,zIndex:10,width:"100%",overflow:"hidden",top:layout?.inverted?undefined:layout?.parentHeight,marginTop:layout?.inverted?undefined:floatingContainer.parentMargin,marginBottom:layout?.inverted?floatingContainer.parentMargin:undefined}});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/DropdownInputBase.tsx";var _excluded=["items","selectedValue","minimumSearchLength","maxSuggestionCount","selectBehaviour","panelPosition","onSelect","textValue","onChangeText","onBlur","ref"];function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}import{c as _c}from"react/compiler-runtime";import{useMemo,useState}from"react";import{useForwardedRef}from"../../hooks";import{FloatingContainer}from"../container";import{Menu,MenuItem}from"../menu";import{InputBase}from"./InputBase";import{jsx as _jsx,Fragment as _Fragment,jsxs as _jsxs}from"react/jsx-runtime";var EMPTY_ITEMS=[];export var DropdownInputBase=t0=>{var $=_c(58);var onBlur;var onChangeText;var onSelect;var panelPosition;var props;var ref;var selectedValue;var t1;var t2;var t3;var t4;var textValue;if($[0]!==t0){t1=t0.items;selectedValue=t0.selectedValue;t2=t0.minimumSearchLength;t3=t0.maxSuggestionCount;t4=t0.selectBehaviour;panelPosition=t0.panelPosition;onSelect=t0.onSelect;textValue=t0.textValue;onChangeText=t0.onChangeText;onBlur=t0.onBlur;ref=t0.ref;props=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=onBlur;$[2]=onChangeText;$[3]=onSelect;$[4]=panelPosition;$[5]=props;$[6]=ref;$[7]=selectedValue;$[8]=t1;$[9]=t2;$[10]=t3;$[11]=t4;$[12]=textValue;}else{onBlur=$[1];onChangeText=$[2];onSelect=$[3];panelPosition=$[4];props=$[5];ref=$[6];selectedValue=$[7];t1=$[8];t2=$[9];t3=$[10];t4=$[11];textValue=$[12];}var items=t1===undefined?EMPTY_ITEMS:t1;var minimumSearchLength=t2===undefined?1:t2;var maxSuggestionCount=t3===undefined?5:t3;var selectBehaviour=t4===undefined?"blurAndSelect":t4;var _useState=useState(false),_useState2=_slicedToArray(_useState,2),hasFocus=_useState2[0],setHasFocus=_useState2[1];var inputRef=useForwardedRef(ref);var t5;if($[13]!==items||$[14]!==selectedValue){var _t;if($[16]!==selectedValue){_t=item=>{if("id"in item){return item.id===selectedValue;}return item.value===selectedValue;};$[16]=selectedValue;$[17]=_t;}else{_t=$[17];}t5=items.find(_t);$[13]=items;$[14]=selectedValue;$[15]=t5;}else{t5=$[15];}var existingItem=t5;var existingItemLabel=existingItem?.label;var t6;if($[18]===Symbol.for("react.memo_cache_sentinel")){t6=()=>{setHasFocus(true);};$[18]=t6;}else{t6=$[18];}var handleFocus=t6;var t7;if($[19]!==inputRef||$[20]!==onSelect||$[21]!==selectBehaviour||$[22]!==selectedValue){t7=item_0=>{var selectedItemId="id"in item_0?item_0.id:item_0.value;var isAlreadySelected=selectedValue!==undefined&&selectedValue===selectedItemId;if(!isAlreadySelected){onSelect(item_0);}if(selectBehaviour==="blurAndSelect"){inputRef.current?.blur();}};$[19]=inputRef;$[20]=onSelect;$[21]=selectBehaviour;$[22]=selectedValue;$[23]=t7;}else{t7=$[23];}var handleSelect=t7;var inputText=textValue??existingItemLabel??"";var t8;if($[24]!==inputText||$[25]!==items||$[26]!==onBlur||$[27]!==onSelect||$[28]!==selectedValue){t8=e=>{var search=inputText.toLowerCase();var existingItem_0=items.find(item_1=>item_1.label.toLowerCase()===search);if(existingItem_0){var existingItemId="id"in existingItem_0?existingItem_0.id:existingItem_0.value;var isAlreadySelected_0=selectedValue!==undefined&&selectedValue===existingItemId;if(!isAlreadySelected_0){onSelect(existingItem_0);}}setHasFocus(false);onBlur?.(e);};$[24]=inputText;$[25]=items;$[26]=onBlur;$[27]=onSelect;$[28]=selectedValue;$[29]=t8;}else{t8=$[29];}var handleBlur=t8;var t9;if($[30]!==existingItemLabel||$[31]!==onChangeText||$[32]!==onSelect||$[33]!==selectedValue){t9=text=>{var didMatchSelection=selectedValue!==undefined&&existingItemLabel!==undefined&&text!==existingItemLabel;if(didMatchSelection){onSelect(undefined);}onChangeText?.(text);};$[30]=existingItemLabel;$[31]=onChangeText;$[32]=onSelect;$[33]=selectedValue;$[34]=t9;}else{t9=$[34];}var handleChangeText=t9;var isSelectionActive=selectedValue!==undefined&&existingItemLabel!==undefined&&inputText===existingItemLabel;var t10;if($[35]!==inputText||$[36]!==items||$[37]!==maxSuggestionCount||$[38]!==selectedValue){var search_0=inputText.toLowerCase();t10=items.filter(item_2=>{if(selectedValue&&"id"in item_2&&item_2.id===selectedValue){return false;}if(selectedValue&&item_2.value===selectedValue){return false;}if(item_2.label.toLowerCase()===search_0){return false;}var inSearch=item_2.label.toLowerCase().includes(search_0)||item_2.description?.toLowerCase().includes(search_0);return inSearch;}).slice(0,maxSuggestionCount);$[35]=inputText;$[36]=items;$[37]=maxSuggestionCount;$[38]=selectedValue;$[39]=t10;}else{t10=$[39];}var filteredItems=t10;var showDropdownPanel=hasFocus&&!isSelectionActive&&!!filteredItems.length&&inputText.length>=minimumSearchLength;var t11;if($[40]!==handleBlur||$[41]!==handleChangeText||$[42]!==inputRef||$[43]!==inputText||$[44]!==props){t11=_jsx(InputBase,{...props,ref:inputRef,value:inputText,onFocus:handleFocus,onBlur:handleBlur,onChangeText:handleChangeText,autoCorrect:false,spellCheck:false});$[40]=handleBlur;$[41]=handleChangeText;$[42]=inputRef;$[43]=inputText;$[44]=props;$[45]=t11;}else{t11=$[45];}var t12;if($[46]!==filteredItems||$[47]!==handleSelect||$[48]!==inputText){t12=t13=>{var inverted=t13.inverted;return _jsx(Menu,{reverse:inverted,children:filteredItems.map(item_3=>_jsx(MenuItem,{label:item_3.label,description:item_3.description,searchValue:inputText,onPress:()=>handleSelect(item_3)},"id"in item_3?item_3.id:item_3.value))});};$[46]=filteredItems;$[47]=handleSelect;$[48]=inputText;$[49]=t12;}else{t12=$[49];}var t13;if($[50]!==inputRef||$[51]!==panelPosition||$[52]!==showDropdownPanel||$[53]!==t12){t13=_jsx(FloatingContainer,{parentRef:inputRef,show:showDropdownPanel,position:panelPosition,children:t12});$[50]=inputRef;$[51]=panelPosition;$[52]=showDropdownPanel;$[53]=t12;$[54]=t13;}else{t13=$[54];}var t14;if($[55]!==t11||$[56]!==t13){t14=_jsxs(_Fragment,{children:[t11,t13]});$[55]=t11;$[56]=t13;$[57]=t14;}else{t14=$[57];}return t14;};
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/DropdownInputBase.tsx";var _excluded=["items","selectedValue","minimumSearchLength","maxSuggestionCount","selectBehaviour","panelPosition","onSelect","textValue","onChangeText","onBlur","ref"];function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}import{c as _c}from"react/compiler-runtime";import{useDeferredValue,useState}from"react";import{useForwardedRef}from"../../hooks";import{FloatingContainer}from"../container";import{Menu,MenuItem}from"../menu";import{InputBase}from"./InputBase";import{jsx as _jsx,Fragment as _Fragment,jsxs as _jsxs}from"react/jsx-runtime";var EMPTY_ITEMS=[];var isSelectableItem=({item,label,description},search,selectedValue)=>{var itemId="id"in item?item.id:item.value;if(selectedValue!==undefined&&itemId===selectedValue)return false;if(label===search)return false;return label.includes(search)||!!description?.includes(search);};export var DropdownInputBase=t0=>{var $=_c(36);var onBlur;var onChangeText;var onSelect;var panelPosition;var props;var ref;var selectedValue;var t1;var t2;var t3;var t4;var textValue;if($[0]!==t0){t1=t0.items;selectedValue=t0.selectedValue;t2=t0.minimumSearchLength;t3=t0.maxSuggestionCount;t4=t0.selectBehaviour;panelPosition=t0.panelPosition;onSelect=t0.onSelect;textValue=t0.textValue;onChangeText=t0.onChangeText;onBlur=t0.onBlur;ref=t0.ref;props=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=onBlur;$[2]=onChangeText;$[3]=onSelect;$[4]=panelPosition;$[5]=props;$[6]=ref;$[7]=selectedValue;$[8]=t1;$[9]=t2;$[10]=t3;$[11]=t4;$[12]=textValue;}else{onBlur=$[1];onChangeText=$[2];onSelect=$[3];panelPosition=$[4];props=$[5];ref=$[6];selectedValue=$[7];t1=$[8];t2=$[9];t3=$[10];t4=$[11];textValue=$[12];}var items=t1===undefined?EMPTY_ITEMS:t1;var minimumSearchLength=t2===undefined?1:t2;var maxSuggestionCount=t3===undefined?5:t3;var selectBehaviour=t4===undefined?"blurAndSelect":t4;var _useState=useState(false),_useState2=_slicedToArray(_useState,2),hasFocus=_useState2[0],setHasFocus=_useState2[1];var inputRef=useForwardedRef(ref);var normalizedItems=items.map(_temp);var t5;if($[13]!==selectedValue){t5=t6=>{var item_0=t6.item;if("id"in item_0){return item_0.id===selectedValue;}return item_0.value===selectedValue;};$[13]=selectedValue;$[14]=t5;}else{t5=$[14];}var existingItem=normalizedItems.find(t5);var existingItemLabel=existingItem?.item.label;var t6;if($[15]===Symbol.for("react.memo_cache_sentinel")){t6=()=>{setHasFocus(true);};$[15]=t6;}else{t6=$[15];}var handleFocus=t6;var t7;if($[16]!==inputRef||$[17]!==onSelect||$[18]!==selectBehaviour||$[19]!==selectedValue){t7=item_1=>{var selectedItemId="id"in item_1?item_1.id:item_1.value;var isAlreadySelected=selectedValue!==undefined&&selectedValue===selectedItemId;if(!isAlreadySelected){onSelect(item_1);}if(selectBehaviour==="blurAndSelect"){inputRef.current?.blur();}};$[16]=inputRef;$[17]=onSelect;$[18]=selectBehaviour;$[19]=selectedValue;$[20]=t7;}else{t7=$[20];}var handleSelect=t7;var inputText=textValue??existingItemLabel??"";var deferredInputText=useDeferredValue(inputText);var search=deferredInputText.toLowerCase();var handleBlur=e=>{var blurSearch=inputText.toLowerCase();var existingItem_0=normalizedItems.find(t8=>{var label=t8.label;return label===blurSearch;})?.item;if(existingItem_0){var existingItemId="id"in existingItem_0?existingItem_0.id:existingItem_0.value;var isAlreadySelected_0=selectedValue!==undefined&&selectedValue===existingItemId;if(!isAlreadySelected_0){onSelect(existingItem_0);}}setHasFocus(false);onBlur?.(e);};var handleChangeText=text=>{var didMatchSelection=selectedValue!==undefined&&existingItemLabel!==undefined&&text!==existingItemLabel;if(didMatchSelection){onSelect(undefined);}onChangeText?.(text);};var isSelectionActive=selectedValue!==undefined&&existingItemLabel!==undefined&&inputText===existingItemLabel;var filteredItems=[];for(var normalized of normalizedItems){if(filteredItems.length>=maxSuggestionCount){break;}if(isSelectableItem(normalized,search,selectedValue)){filteredItems.push(normalized.item);}}var showDropdownPanel=hasFocus&&!isSelectionActive&&!!filteredItems.length&&inputText.length>=minimumSearchLength;var t9;if($[21]!==handleBlur||$[22]!==handleChangeText||$[23]!==handleFocus||$[24]!==inputRef||$[25]!==inputText||$[26]!==props){t9=_jsx(InputBase,{...props,ref:inputRef,value:inputText,onFocus:handleFocus,onBlur:handleBlur,onChangeText:handleChangeText,autoCorrect:false,spellCheck:false});$[21]=handleBlur;$[22]=handleChangeText;$[23]=handleFocus;$[24]=inputRef;$[25]=inputText;$[26]=props;$[27]=t9;}else{t9=$[27];}var t10=t11=>{var inverted=t11.inverted;return _jsx(Menu,{reverse:inverted,children:filteredItems.map(item_2=>_jsx(MenuItem,{label:item_2.label,description:item_2.description,searchValue:deferredInputText,onPress:()=>handleSelect(item_2)},"id"in item_2?item_2.id:item_2.value))});};var t12;if($[28]!==inputRef||$[29]!==panelPosition||$[30]!==showDropdownPanel||$[31]!==t10){t12=_jsx(FloatingContainer,{parentRef:inputRef,show:showDropdownPanel,position:panelPosition,children:t10});$[28]=inputRef;$[29]=panelPosition;$[30]=showDropdownPanel;$[31]=t10;$[32]=t12;}else{t12=$[32];}var t13;if($[33]!==t12||$[34]!==t9){t13=_jsxs(_Fragment,{children:[t9,t12]});$[33]=t12;$[34]=t9;$[35]=t13;}else{t13=$[35];}return t13;};function _temp(item){return{item,label:item.label.toLowerCase(),description:item.description?.toLowerCase()};}
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/InputBase.tsx";var _excluded=["disabled","multiline","variant","scrollEnabled","onChangeText","ref","style","inputStyle"];function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}import{c as _c}from"react/compiler-runtime";import{StyleSheet,TextInput}from"react-native";import{MAX_FONT_SIZE_MULTIPLIER}from"../../common";import{useThemedStyles}from"../../hooks";import{jsx as _jsx}from"react/jsx-runtime";export var InputBase=t0=>{var $=_c(31);var inputStyle;var onChangeText;var props;var ref;var scrollEnabled;var styleOverrides;var t1;var t2;var t3;if($[0]!==t0){t1=t0.disabled;t2=t0.multiline;t3=t0.variant;scrollEnabled=t0.scrollEnabled;onChangeText=t0.onChangeText;ref=t0.ref;styleOverrides=t0.style;inputStyle=t0.inputStyle;props=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=inputStyle;$[2]=onChangeText;$[3]=props;$[4]=ref;$[5]=scrollEnabled;$[6]=styleOverrides;$[7]=t1;$[8]=t2;$[9]=t3;}else{inputStyle=$[1];onChangeText=$[2];props=$[3];ref=$[4];scrollEnabled=$[5];styleOverrides=$[6];t1=$[7];t2=$[8];t3=$[9];}var disabled=t1===undefined?false:t1;var multiline=t2===undefined?false:t2;var variant=t3===undefined?"regular":t3;var t4;if($[10]!==styleOverrides){t4={inputBase:styleOverrides};$[10]=styleOverrides;$[11]=t4;}else{t4=$[11];}var t5;if($[12]!==disabled||$[13]!==multiline||$[14]!==variant){t5={disabled,multiline,variant};$[12]=disabled;$[13]=multiline;$[14]=variant;$[15]=t5;}else{t5=$[15];}var t6;if($[16]!==t4||$[17]!==t5){t6={styles:t4,props:t5};$[16]=t4;$[17]=t5;$[18]=t6;}else{t6=$[18];}var _useThemedStyles=useThemedStyles("inputBase",createStyles,t6),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],t7=_useThemedStyles2[1];var style=t7.style;var t8=!disabled;var t9;if($[19]!==inputStyle||$[20]!==styles.input){t9=[styles.input,inputStyle];$[19]=inputStyle;$[20]=styles.input;$[21]=t9;}else{t9=$[21];}var t10=scrollEnabled??false;var t11;if($[22]!==multiline||$[23]!==onChangeText||$[24]!==props||$[25]!==ref||$[26]!==style.text.placeholderColor||$[27]!==t10||$[28]!==t8||$[29]!==t9){t11=_jsx(TextInput,{ref:ref,editable:t8,maxFontSizeMultiplier:MAX_FONT_SIZE_MULTIPLIER,placeholderTextColor:style.text.placeholderColor,style:t9,multiline:multiline,scrollEnabled:t10,onChangeText:onChangeText,...props});$[22]=multiline;$[23]=onChangeText;$[24]=props;$[25]=ref;$[26]=style.text.placeholderColor;$[27]=t10;$[28]=t8;$[29]=t9;$[30]=t11;}else{t11=$[30];}return t11;};var createStyles=({styles:{inputBase}},{disabled,multiline,variant})=>{var _inputBase$container=inputBase.container,borderRadius=_inputBase$container.borderRadius,padding=_inputBase$container.padding,height=_inputBase$container.height;return StyleSheet.create({input:{alignSelf:"stretch",minWidth:0,height:multiline?undefined:height[variant],minHeight:height[variant],padding,borderRadius,backgroundColor:inputBase.container.backgroundColor[disabled?"disabled":"enabled"],fontSize:inputBase.text.fontSize,fontFamily:inputBase.text.fontFamily,color:inputBase.text.color[disabled?"disabled":"enabled"]}});};
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/InputBase.tsx";var _excluded=["disabled","multiline","variant","scrollEnabled","onChangeText","ref","style","inputStyle"];function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}import{c as _c}from"react/compiler-runtime";import{StyleSheet,TextInput}from"react-native";import{MAX_FONT_SIZE_MULTIPLIER}from"../../common";import{useThemedStyles}from"../../hooks";import{jsx as _jsx}from"react/jsx-runtime";export var InputBase=t0=>{var $=_c(31);var inputStyle;var onChangeText;var props;var ref;var scrollEnabled;var styleOverrides;var t1;var t2;var t3;if($[0]!==t0){t1=t0.disabled;t2=t0.multiline;t3=t0.variant;scrollEnabled=t0.scrollEnabled;onChangeText=t0.onChangeText;ref=t0.ref;styleOverrides=t0.style;inputStyle=t0.inputStyle;props=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=inputStyle;$[2]=onChangeText;$[3]=props;$[4]=ref;$[5]=scrollEnabled;$[6]=styleOverrides;$[7]=t1;$[8]=t2;$[9]=t3;}else{inputStyle=$[1];onChangeText=$[2];props=$[3];ref=$[4];scrollEnabled=$[5];styleOverrides=$[6];t1=$[7];t2=$[8];t3=$[9];}var disabled=t1===undefined?false:t1;var multiline=t2===undefined?false:t2;var variant=t3===undefined?"regular":t3;var t4;if($[10]!==styleOverrides){t4={inputBase:styleOverrides};$[10]=styleOverrides;$[11]=t4;}else{t4=$[11];}var t5;if($[12]!==disabled||$[13]!==multiline||$[14]!==variant){t5={disabled,multiline,variant};$[12]=disabled;$[13]=multiline;$[14]=variant;$[15]=t5;}else{t5=$[15];}var t6;if($[16]!==t4||$[17]!==t5){t6={styles:t4,props:t5};$[16]=t4;$[17]=t5;$[18]=t6;}else{t6=$[18];}var _useThemedStyles=useThemedStyles("inputBase",createStyles,t6),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],t7=_useThemedStyles2[1];var style=t7.style;var t8=!disabled;var t9;if($[19]!==inputStyle||$[20]!==styles.input){t9=[styles.input,inputStyle];$[19]=inputStyle;$[20]=styles.input;$[21]=t9;}else{t9=$[21];}var t10=scrollEnabled??multiline;var t11;if($[22]!==multiline||$[23]!==onChangeText||$[24]!==props||$[25]!==ref||$[26]!==style.text.placeholderColor||$[27]!==t10||$[28]!==t8||$[29]!==t9){t11=_jsx(TextInput,{ref:ref,editable:t8,maxFontSizeMultiplier:MAX_FONT_SIZE_MULTIPLIER,placeholderTextColor:style.text.placeholderColor,style:t9,multiline:multiline,scrollEnabled:t10,onChangeText:onChangeText,...props});$[22]=multiline;$[23]=onChangeText;$[24]=props;$[25]=ref;$[26]=style.text.placeholderColor;$[27]=t10;$[28]=t8;$[29]=t9;$[30]=t11;}else{t11=$[30];}return t11;};var createStyles=({styles:{inputBase}},{disabled,multiline,variant})=>{var _inputBase$container=inputBase.container,borderRadius=_inputBase$container.borderRadius,padding=_inputBase$container.padding,height=_inputBase$container.height;return StyleSheet.create({input:{alignSelf:"stretch",minWidth:0,height:multiline?undefined:height[variant],minHeight:height[variant],padding,borderRadius,backgroundColor:inputBase.container.backgroundColor[disabled?"disabled":"enabled"],fontSize:inputBase.text.fontSize,fontFamily:inputBase.text.fontFamily,color:inputBase.text.color[disabled?"disabled":"enabled"]}});};
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/NumberInput.tsx";var _excluded=["keyboardType","enabledRepresentations","disabled","clearButtonMode","placeholder","placeholder2","maxLength","value","variant","onChange","onSubmitEditing","ref"];function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}import{c as _c}from"react/compiler-runtime";import{useCallback}from"react";import{StyleSheet,View}from"react-native";import{useThemedStyles}from"../../hooks";import{Text}from"../text";import{InputAction}from"./InputAction";import{InputRowContainer}from"./InputRowContainer";import{InputScaffold}from"./InputScaffold";import{NumberInputBase}from"./NumberInputBase";import{jsx as _jsx,Fragment as _Fragment,jsxs as _jsxs}from"react/jsx-runtime";var getNextMode=(enabledRepresentations,current)=>{var currentIndex=enabledRepresentations.indexOf(current);var nextIndex=currentIndex+1>=enabledRepresentations.length?0:currentIndex+1;return enabledRepresentations[nextIndex];};var getNextValue=(nextMode,{value,representation})=>{if(nextMode===representation)return undefined;switch(nextMode){case"number":return{representation:"number",value:value?.[0]??""};case"fraction":return{representation:"fraction",value:[value?.[0]??(typeof value==="string"?value:""),"",""]};case"range":return{representation:"range",value:[value?.[0]??(typeof value==="string"?value:""),""]};}};var DEFAULT_ENABLED_REPRESENTATIONS=["number","fraction","range"];var DEFAULT_VALUE={representation:"number",value:""};export var NumberInput=t0=>{var $=_c(79);var baseProps;var clearButtonMode;var maxLength;var onChange;var onSubmitEditing;var placeholder;var placeholder2;var ref;var t1;var t2;var t3;var t4;var t5;if($[0]!==t0){t1=t0.keyboardType;t2=t0.enabledRepresentations;t3=t0.disabled;clearButtonMode=t0.clearButtonMode;placeholder=t0.placeholder;placeholder2=t0.placeholder2;maxLength=t0.maxLength;t4=t0.value;t5=t0.variant;onChange=t0.onChange;onSubmitEditing=t0.onSubmitEditing;ref=t0.ref;baseProps=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=baseProps;$[2]=clearButtonMode;$[3]=maxLength;$[4]=onChange;$[5]=onSubmitEditing;$[6]=placeholder;$[7]=placeholder2;$[8]=ref;$[9]=t1;$[10]=t2;$[11]=t3;$[12]=t4;$[13]=t5;}else{baseProps=$[1];clearButtonMode=$[2];maxLength=$[3];onChange=$[4];onSubmitEditing=$[5];placeholder=$[6];placeholder2=$[7];ref=$[8];t1=$[9];t2=$[10];t3=$[11];t4=$[12];t5=$[13];}var keyboardType=t1===undefined?"number-pad":t1;var enabledRepresentations=t2===undefined?DEFAULT_ENABLED_REPRESENTATIONS:t2;var disabled=t3===undefined?false:t3;var value=t4===undefined?DEFAULT_VALUE:t4;var variant=t5===undefined?"regular":t5;var t6;if($[14]!==value){t6={props:{value}};$[14]=value;$[15]=t6;}else{t6=$[15];}var _useThemedStyles=useThemedStyles("numberInput",createStyles,t6),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],t7=_useThemedStyles2[1];var icons=t7.icons;var icon=icons[value.representation];var t8;if($[16]!==enabledRepresentations||$[17]!==onChange||$[18]!==value){t8=()=>{var nextMode=getNextMode(enabledRepresentations,value.representation);if(!nextMode){return;}var nextValue=getNextValue(nextMode,value);if(!nextValue){return;}onChange?.(nextValue);};$[16]=enabledRepresentations;$[17]=onChange;$[18]=value;$[19]=t8;}else{t8=$[19];}var handleChangeMode=t8;var t9;if($[20]!==onChange||$[21]!==value.representation||$[22]!==value.value?.[1]||$[23]!==value.value?.[2]){t9=text=>{bb33:switch(value.representation){case"number":{onChange?.({representation:value.representation,value:text});break bb33;}case"fraction":{onChange?.({representation:value.representation,value:[text,value.value?.[1]??"",value.value?.[2]??""]});break bb33;}case"range":{onChange?.({representation:value.representation,value:[text,value.value?.[1]??""]});}}};$[20]=onChange;$[21]=value.representation;$[22]=value.value?.[1];$[23]=value.value?.[2];$[24]=t9;}else{t9=$[24];}var handlePrimaryInputChangeText=t9;var t10=enabledRepresentations.length>1?handleChangeMode:undefined;var t11;if($[25]!==disabled||$[26]!==icon||$[27]!==t10||$[28]!==variant){t11=_jsx(InputAction,{disabled:disabled,variant:variant,...icon,onPress:t10});$[25]=disabled;$[26]=icon;$[27]=t10;$[28]=variant;$[29]=t11;}else{t11=$[29];}var t12=value.representation==="range"?placeholder2:placeholder;var t13=value.representation==="number"?value.value:value.value?.[0];var t14=value.representation==="fraction"?"number-pad":keyboardType;var t15=value.representation==="number"?onSubmitEditing:undefined;var t16;if($[30]!==clearButtonMode||$[31]!==disabled||$[32]!==handlePrimaryInputChangeText||$[33]!==maxLength||$[34]!==ref||$[35]!==styles.input||$[36]!==t12||$[37]!==t13||$[38]!==t14||$[39]!==t15||$[40]!==variant){t16=_jsx(NumberInputBase,{ref:ref,disabled:disabled,variant:variant,placeholder:t12,maxLength:maxLength,clearButtonMode:clearButtonMode,value:t13,keyboardType:t14,inputStyle:styles.input,onChangeText:handlePrimaryInputChangeText,onSubmitEditing:t15});$[30]=clearButtonMode;$[31]=disabled;$[32]=handlePrimaryInputChangeText;$[33]=maxLength;$[34]=ref;$[35]=styles.input;$[36]=t12;$[37]=t13;$[38]=t14;$[39]=t15;$[40]=variant;$[41]=t16;}else{t16=$[41];}var t17;if($[42]!==clearButtonMode||$[43]!==disabled||$[44]!==maxLength||$[45]!==onChange||$[46]!==onSubmitEditing||$[47]!==placeholder2||$[48]!==styles.input||$[49]!==value.representation||$[50]!==value.value?.[0]||$[51]!==value.value?.[1]||$[52]!==value.value?.[2]||$[53]!==variant){t17=value.representation==="fraction"&&_jsx(NumberInputBase,{disabled:disabled,variant:variant,placeholder:placeholder2,value:value.value?.[1],maxLength:maxLength,clearButtonMode:clearButtonMode,keyboardType:"number-pad",inputStyle:styles.input,onChangeText:text_0=>onChange?.({representation:value.representation,value:[value.value?.[0]??"",text_0,value.value?.[2]??""]}),onSubmitEditing:onSubmitEditing});$[42]=clearButtonMode;$[43]=disabled;$[44]=maxLength;$[45]=onChange;$[46]=onSubmitEditing;$[47]=placeholder2;$[48]=styles.input;$[49]=value.representation;$[50]=value.value?.[0];$[51]=value.value?.[1];$[52]=value.value?.[2];$[53]=variant;$[54]=t17;}else{t17=$[54];}var t18;if($[55]!==clearButtonMode||$[56]!==disabled||$[57]!==keyboardType||$[58]!==maxLength||$[59]!==onChange||$[60]!==onSubmitEditing||$[61]!==placeholder2||$[62]!==styles.input||$[63]!==styles.separator||$[64]!==value.representation||$[65]!==value.value?.[0]||$[66]!==value.value?.[1]||$[67]!==value.value?.[2]||$[68]!==variant){t18=value.representation!=="number"&&_jsxs(_Fragment,{children:[_jsx(View,{style:styles.separator,children:_jsx(Text,{variant:"title",children:value.representation==="fraction"?"/":"\u2212"})}),_jsx(NumberInputBase,{disabled:disabled,variant:variant,placeholder:placeholder2,value:value.representation==="fraction"?value.value?.[2]:value.value?.[1],maxLength:maxLength,clearButtonMode:clearButtonMode,keyboardType:value.representation==="fraction"?"number-pad":keyboardType,inputStyle:styles.input,onChangeText:text_1=>{if(value.representation==="fraction"){onChange?.({representation:value.representation,value:[value.value?.[0]??"",value.value?.[1]??"",text_1]});return;}onChange?.({representation:value.representation,value:[value.value?.[0]??"",text_1]});},onSubmitEditing:onSubmitEditing})]});$[55]=clearButtonMode;$[56]=disabled;$[57]=keyboardType;$[58]=maxLength;$[59]=onChange;$[60]=onSubmitEditing;$[61]=placeholder2;$[62]=styles.input;$[63]=styles.separator;$[64]=value.representation;$[65]=value.value?.[0];$[66]=value.value?.[1];$[67]=value.value?.[2];$[68]=variant;$[69]=t18;}else{t18=$[69];}var t19;if($[70]!==disabled||$[71]!==t11||$[72]!==t16||$[73]!==t17||$[74]!==t18){t19=_jsxs(InputRowContainer,{disabled:disabled,children:[t11,t16,t17,t18]});$[70]=disabled;$[71]=t11;$[72]=t16;$[73]=t17;$[74]=t18;$[75]=t19;}else{t19=$[75];}var t20;if($[76]!==baseProps||$[77]!==t19){t20=_jsx(InputScaffold,{...baseProps,children:t19});$[76]=baseProps;$[77]=t19;$[78]=t20;}else{t20=$[78];}return t20;};var createStyles=(_,{value})=>StyleSheet.create({input:{flexGrow:1,flexBasis:0,textAlign:value.representation==="number"?"auto":"center"},separator:{justifyContent:"center"}});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/NumberInput.tsx";var _excluded=["keyboardType","enabledRepresentations","disabled","clearButtonMode","placeholder","placeholder2","maxLength","value","variant","onChange","onSubmitEditing","ref"];function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}import{c as _c}from"react/compiler-runtime";import{StyleSheet,View}from"react-native";import{useThemedStyles}from"../../hooks";import{Text}from"../text";import{InputAction}from"./InputAction";import{InputRowContainer}from"./InputRowContainer";import{InputScaffold}from"./InputScaffold";import{NumberInputBase}from"./NumberInputBase";import{jsx as _jsx,Fragment as _Fragment,jsxs as _jsxs}from"react/jsx-runtime";var getNextMode=(enabledRepresentations,current)=>{var currentIndex=enabledRepresentations.indexOf(current);var nextIndex=currentIndex+1>=enabledRepresentations.length?0:currentIndex+1;return enabledRepresentations[nextIndex];};var getNextValue=(nextMode,{value,representation})=>{if(nextMode===representation)return undefined;switch(nextMode){case"number":return{representation:"number",value:value?.[0]??""};case"fraction":return{representation:"fraction",value:[value?.[0]??(typeof value==="string"?value:""),"",""]};case"range":return{representation:"range",value:[value?.[0]??(typeof value==="string"?value:""),""]};}};var DEFAULT_ENABLED_REPRESENTATIONS=["number","fraction","range"];var DEFAULT_VALUE={representation:"number",value:""};export var NumberInput=t0=>{var $=_c(79);var baseProps;var clearButtonMode;var maxLength;var onChange;var onSubmitEditing;var placeholder;var placeholder2;var ref;var t1;var t2;var t3;var t4;var t5;if($[0]!==t0){t1=t0.keyboardType;t2=t0.enabledRepresentations;t3=t0.disabled;clearButtonMode=t0.clearButtonMode;placeholder=t0.placeholder;placeholder2=t0.placeholder2;maxLength=t0.maxLength;t4=t0.value;t5=t0.variant;onChange=t0.onChange;onSubmitEditing=t0.onSubmitEditing;ref=t0.ref;baseProps=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=baseProps;$[2]=clearButtonMode;$[3]=maxLength;$[4]=onChange;$[5]=onSubmitEditing;$[6]=placeholder;$[7]=placeholder2;$[8]=ref;$[9]=t1;$[10]=t2;$[11]=t3;$[12]=t4;$[13]=t5;}else{baseProps=$[1];clearButtonMode=$[2];maxLength=$[3];onChange=$[4];onSubmitEditing=$[5];placeholder=$[6];placeholder2=$[7];ref=$[8];t1=$[9];t2=$[10];t3=$[11];t4=$[12];t5=$[13];}var keyboardType=t1===undefined?"number-pad":t1;var enabledRepresentations=t2===undefined?DEFAULT_ENABLED_REPRESENTATIONS:t2;var disabled=t3===undefined?false:t3;var value=t4===undefined?DEFAULT_VALUE:t4;var variant=t5===undefined?"regular":t5;var t6;if($[14]!==value){t6={props:{value}};$[14]=value;$[15]=t6;}else{t6=$[15];}var _useThemedStyles=useThemedStyles("numberInput",createStyles,t6),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],t7=_useThemedStyles2[1];var icons=t7.icons;var icon=icons[value.representation];var t8;if($[16]!==enabledRepresentations||$[17]!==onChange||$[18]!==value){t8=()=>{var nextMode=getNextMode(enabledRepresentations,value.representation);if(!nextMode){return;}var nextValue=getNextValue(nextMode,value);if(!nextValue){return;}onChange?.(nextValue);};$[16]=enabledRepresentations;$[17]=onChange;$[18]=value;$[19]=t8;}else{t8=$[19];}var handleChangeMode=t8;var t9;if($[20]!==onChange||$[21]!==value.representation||$[22]!==value.value?.[1]||$[23]!==value.value?.[2]){t9=text=>{bb33:switch(value.representation){case"number":{onChange?.({representation:value.representation,value:text});break bb33;}case"fraction":{onChange?.({representation:value.representation,value:[text,value.value?.[1]??"",value.value?.[2]??""]});break bb33;}case"range":{onChange?.({representation:value.representation,value:[text,value.value?.[1]??""]});}}};$[20]=onChange;$[21]=value.representation;$[22]=value.value?.[1];$[23]=value.value?.[2];$[24]=t9;}else{t9=$[24];}var handlePrimaryInputChangeText=t9;var t10=enabledRepresentations.length>1?handleChangeMode:undefined;var t11;if($[25]!==disabled||$[26]!==icon||$[27]!==t10||$[28]!==variant){t11=_jsx(InputAction,{disabled:disabled,variant:variant,...icon,onPress:t10});$[25]=disabled;$[26]=icon;$[27]=t10;$[28]=variant;$[29]=t11;}else{t11=$[29];}var t12=value.representation==="range"?placeholder2:placeholder;var t13=value.representation==="number"?value.value:value.value?.[0];var t14=value.representation==="fraction"?"number-pad":keyboardType;var t15=value.representation==="number"?onSubmitEditing:undefined;var t16;if($[30]!==clearButtonMode||$[31]!==disabled||$[32]!==handlePrimaryInputChangeText||$[33]!==maxLength||$[34]!==ref||$[35]!==styles.input||$[36]!==t12||$[37]!==t13||$[38]!==t14||$[39]!==t15||$[40]!==variant){t16=_jsx(NumberInputBase,{ref:ref,disabled:disabled,variant:variant,placeholder:t12,maxLength:maxLength,clearButtonMode:clearButtonMode,value:t13,keyboardType:t14,inputStyle:styles.input,onChangeText:handlePrimaryInputChangeText,onSubmitEditing:t15});$[30]=clearButtonMode;$[31]=disabled;$[32]=handlePrimaryInputChangeText;$[33]=maxLength;$[34]=ref;$[35]=styles.input;$[36]=t12;$[37]=t13;$[38]=t14;$[39]=t15;$[40]=variant;$[41]=t16;}else{t16=$[41];}var t17;if($[42]!==clearButtonMode||$[43]!==disabled||$[44]!==maxLength||$[45]!==onChange||$[46]!==onSubmitEditing||$[47]!==placeholder2||$[48]!==styles.input||$[49]!==value.representation||$[50]!==value.value?.[0]||$[51]!==value.value?.[1]||$[52]!==value.value?.[2]||$[53]!==variant){t17=value.representation==="fraction"&&_jsx(NumberInputBase,{disabled:disabled,variant:variant,placeholder:placeholder2,value:value.value?.[1],maxLength:maxLength,clearButtonMode:clearButtonMode,keyboardType:"number-pad",inputStyle:styles.input,onChangeText:text_0=>onChange?.({representation:value.representation,value:[value.value?.[0]??"",text_0,value.value?.[2]??""]}),onSubmitEditing:onSubmitEditing});$[42]=clearButtonMode;$[43]=disabled;$[44]=maxLength;$[45]=onChange;$[46]=onSubmitEditing;$[47]=placeholder2;$[48]=styles.input;$[49]=value.representation;$[50]=value.value?.[0];$[51]=value.value?.[1];$[52]=value.value?.[2];$[53]=variant;$[54]=t17;}else{t17=$[54];}var t18;if($[55]!==clearButtonMode||$[56]!==disabled||$[57]!==keyboardType||$[58]!==maxLength||$[59]!==onChange||$[60]!==onSubmitEditing||$[61]!==placeholder2||$[62]!==styles.input||$[63]!==styles.separator||$[64]!==value.representation||$[65]!==value.value?.[0]||$[66]!==value.value?.[1]||$[67]!==value.value?.[2]||$[68]!==variant){t18=value.representation!=="number"&&_jsxs(_Fragment,{children:[_jsx(View,{style:styles.separator,children:_jsx(Text,{variant:"title",children:value.representation==="fraction"?"/":"\u2212"})}),_jsx(NumberInputBase,{disabled:disabled,variant:variant,placeholder:placeholder2,value:value.representation==="fraction"?value.value?.[2]:value.value?.[1],maxLength:maxLength,clearButtonMode:clearButtonMode,keyboardType:value.representation==="fraction"?"number-pad":keyboardType,inputStyle:styles.input,onChangeText:text_1=>{if(value.representation==="fraction"){onChange?.({representation:value.representation,value:[value.value?.[0]??"",value.value?.[1]??"",text_1]});return;}onChange?.({representation:value.representation,value:[value.value?.[0]??"",text_1]});},onSubmitEditing:onSubmitEditing})]});$[55]=clearButtonMode;$[56]=disabled;$[57]=keyboardType;$[58]=maxLength;$[59]=onChange;$[60]=onSubmitEditing;$[61]=placeholder2;$[62]=styles.input;$[63]=styles.separator;$[64]=value.representation;$[65]=value.value?.[0];$[66]=value.value?.[1];$[67]=value.value?.[2];$[68]=variant;$[69]=t18;}else{t18=$[69];}var t19;if($[70]!==disabled||$[71]!==t11||$[72]!==t16||$[73]!==t17||$[74]!==t18){t19=_jsxs(InputRowContainer,{disabled:disabled,children:[t11,t16,t17,t18]});$[70]=disabled;$[71]=t11;$[72]=t16;$[73]=t17;$[74]=t18;$[75]=t19;}else{t19=$[75];}var t20;if($[76]!==baseProps||$[77]!==t19){t20=_jsx(InputScaffold,{...baseProps,children:t19});$[76]=baseProps;$[77]=t19;$[78]=t20;}else{t20=$[78];}return t20;};var createStyles=(_,{value})=>StyleSheet.create({input:{flexGrow:1,flexBasis:0,textAlign:value.representation==="number"?"auto":"center"},separator:{justifyContent:"center"}});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/NumberInputBase.tsx";var _excluded=["onChangeText","keyboardType"];function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}import{c as _c}from"react/compiler-runtime";import{useCallback}from"react";import{InputBase}from"./InputBase";import{jsx as _jsx}from"react/jsx-runtime";var INTEGER_PATTERN=/^\d*/;var DECIMAL_PATTERN=/^\d*\.?\d*/;var LEADING_ZEROS_PATTERN=/^0+(?=\d)/;var sanitizeNumber=(text,allowDecimal)=>{var pattern=allowDecimal?DECIMAL_PATTERN:INTEGER_PATTERN;var matched=text.match(pattern)?.[0]??"";return matched.replace(LEADING_ZEROS_PATTERN,"");};export var NumberInputBase=t0=>{var $=_c(11);var onChangeText;var props;var t1;if($[0]!==t0){onChangeText=t0.onChangeText;t1=t0.keyboardType;props=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=onChangeText;$[2]=props;$[3]=t1;}else{onChangeText=$[1];props=$[2];t1=$[3];}var keyboardType=t1===undefined?"number-pad":t1;var t2;if($[4]!==keyboardType||$[5]!==onChangeText){t2=text=>{if(onChangeText){onChangeText(sanitizeNumber(text,keyboardType==="decimal-pad"));}};$[4]=keyboardType;$[5]=onChangeText;$[6]=t2;}else{t2=$[6];}var handleChangeText=t2;var t3;if($[7]!==handleChangeText||$[8]!==keyboardType||$[9]!==props){t3=_jsx(InputBase,{...props,keyboardType:keyboardType,onChangeText:handleChangeText});$[7]=handleChangeText;$[8]=keyboardType;$[9]=props;$[10]=t3;}else{t3=$[10];}return t3;};
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/NumberInputBase.tsx";var _excluded=["onChangeText","keyboardType"];function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}import{c as _c}from"react/compiler-runtime";import{InputBase}from"./InputBase";import{jsx as _jsx}from"react/jsx-runtime";var INTEGER_PATTERN=/^\d*/;var DECIMAL_PATTERN=/^\d*\.?\d*/;var LEADING_ZEROS_PATTERN=/^0+(?=\d)/;var sanitizeNumber=(text,allowDecimal)=>{var pattern=allowDecimal?DECIMAL_PATTERN:INTEGER_PATTERN;var matched=text.match(pattern)?.[0]??"";return matched.replace(LEADING_ZEROS_PATTERN,"");};export var NumberInputBase=t0=>{var $=_c(11);var onChangeText;var props;var t1;if($[0]!==t0){onChangeText=t0.onChangeText;t1=t0.keyboardType;props=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=onChangeText;$[2]=props;$[3]=t1;}else{onChangeText=$[1];props=$[2];t1=$[3];}var keyboardType=t1===undefined?"number-pad":t1;var t2;if($[4]!==keyboardType||$[5]!==onChangeText){t2=text=>{onChangeText?.(sanitizeNumber(text,keyboardType==="decimal-pad"));};$[4]=keyboardType;$[5]=onChangeText;$[6]=t2;}else{t2=$[6];}var handleChangeText=t2;var t3;if($[7]!==handleChangeText||$[8]!==keyboardType||$[9]!==props){t3=_jsx(InputBase,{...props,keyboardType:keyboardType,onChangeText:handleChangeText});$[7]=handleChangeText;$[8]=keyboardType;$[9]=props;$[10]=t3;}else{t3=$[10];}return t3;};
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx";var _excluded=["value","max","disabled","variant","scale","onChange"];function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}import{c as _c}from"react/compiler-runtime";import{useEffect,useMemo,useState}from"react";import{Animated,Easing,PanResponder,StyleSheet,View}from"react-native";import{useTheme,useThemedStyles}from"../../hooks";import{IconBase}from"../icon";import{getRatingIcons,ratingToValue,valueToRating}from"../rating";import{InputScaffold}from"./InputScaffold";import{jsx as _jsx}from"react/jsx-runtime";var animationConfig={easing:Easing.elastic(2),duration:300,scale:1.2,delay:300};export var RatingInput=t0=>{var $=_c(44);var disabledProp;var onChange;var props;var scale;var t1;var t2;var t3;if($[0]!==t0){t1=t0.value;t2=t0.max;disabledProp=t0.disabled;t3=t0.variant;scale=t0.scale;onChange=t0.onChange;props=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=disabledProp;$[2]=onChange;$[3]=props;$[4]=scale;$[5]=t1;$[6]=t2;$[7]=t3;}else{disabledProp=$[1];onChange=$[2];props=$[3];scale=$[4];t1=$[5];t2=$[6];t3=$[7];}var value=t1===undefined?0:t1;var max=t2===undefined?5:t2;var variant=t3===undefined?"regular":t3;var disabled=disabledProp||!onChange;var _useTheme=useTheme(),theme=_useTheme.theme,t4=_useTheme.styles;var inputBase=t4.inputBase,rating=t4.rating;var t5;if($[8]!==disabled||$[9]!==variant){t5={props:{disabled,variant}};$[8]=disabled;$[9]=variant;$[10]=t5;}else{t5=$[10];}var _useThemedStyles=useThemedStyles("ratingInput",createStyles,t5),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],t6=_useThemedStyles2[1];var icons=t6.icons;var _useState=useState(),_useState2=_slicedToArray(_useState,2),width=_useState2[0],setWidth=_useState2[1];var t7;bb0:{if(!width||width<=0){t7=0;break bb0;}var maxSizeForWidth=Math.floor((width-inputBase.container.padding-theme.spacing.tiny*(max-1))/max);var maxSizeForHeight=inputBase.container.height[variant]-inputBase.container.padding-theme.spacing.tiny*2;t7=Math.max(0,Math.min(maxSizeForWidth,maxSizeForHeight));}var ratingIconSize=t7;var scaledRating=scale?valueToRating(value,max,scale):value;var ratingIcons=getRatingIcons(scaledRating,max);var _useState3=useState(false),_useState4=_slicedToArray(_useState3,2),isInteracting=_useState4[0],setInteracting=_useState4[1];var t8;bb1:{var _t;if($[11]!==max||$[12]!==value||$[13]!==width){_t=x=>{if(!width){return value;}return Math.max(0,Math.min(Math.round(x/width*max*2+0.2)/2,max));};$[11]=max;$[12]=value;$[13]=width;$[14]=_t;}else{_t=$[14];}var calculateRating=_t;var _t2;if($[15]!==disabled||$[16]!==max||$[17]!==onChange||$[18]!==scale||$[19]!==value){_t2=newRating=>{if(disabled||newRating===value){return;}onChange?.(scale?ratingToValue(newRating,max,scale):newRating);};$[15]=disabled;$[16]=max;$[17]=onChange;$[18]=scale;$[19]=value;$[20]=_t2;}else{_t2=$[20];}var handleChange=_t2;if(disabled){var _t3;if($[21]===Symbol.for("react.memo_cache_sentinel")){_t3={};$[21]=_t3;}else{_t3=$[21];}t8=_t3;break bb1;}var _t4;if($[22]!==calculateRating||$[23]!==disabled||$[24]!==handleChange){var _t5;if($[26]!==calculateRating||$[27]!==handleChange){_t5=e=>{var newRating_0=calculateRating(e.nativeEvent.locationX);handleChange(newRating_0);};$[26]=calculateRating;$[27]=handleChange;$[28]=_t5;}else{_t5=$[28];}var _t6;if($[29]!==calculateRating||$[30]!==handleChange){_t6=e_1=>{var newRating_2=calculateRating(e_1.nativeEvent.locationX);handleChange(newRating_2);setTimeout(()=>{setInteracting(false);},animationConfig.delay);};$[29]=calculateRating;$[30]=handleChange;$[31]=_t6;}else{_t6=$[31];}var t14;if($[32]===Symbol.for("react.memo_cache_sentinel")){t14=()=>{setTimeout(()=>{setInteracting(false);},animationConfig.delay);};$[32]=t14;}else{t14=$[32];}_t4=PanResponder.create({onStartShouldSetPanResponder:_temp,onStartShouldSetPanResponderCapture:_temp2,onMoveShouldSetPanResponder:_temp3,onMoveShouldSetPanResponderCapture:_temp4,onPanResponderMove:_t5,onPanResponderStart:e_0=>{var newRating_1=calculateRating(e_0.nativeEvent.locationX);handleChange(newRating_1);if(disabled){return;}setInteracting(true);},onPanResponderEnd:_t6,onPanResponderTerminate:t14});$[22]=calculateRating;$[23]=disabled;$[24]=handleChange;$[25]=_t4;}else{_t4=$[25];}t8=_t4.panHandlers;}var panHandlers=t8;var T0=InputScaffold;var T1=View;var t9=styles.container;var t10;if($[33]===Symbol.for("react.memo_cache_sentinel")){t10=e_2=>{var nextWidth=e_2.nativeEvent.layout.width;if(nextWidth>0){setWidth(nextWidth);}};$[33]=t10;}else{t10=$[33];}var t11=ratingIcons.map((variant_0,i)=>_jsx(AnimatedIcon,{active:isInteracting&&scaledRating>i&&scaledRating-1<=i,children:_jsx(IconBase,{...icons[variant_0],size:ratingIconSize,color:rating.icon.color[variant_0]})},i));var t12;if($[34]!==T1||$[35]!==panHandlers||$[36]!==styles.container||$[37]!==t10||$[38]!==t11){t12=_jsx(T1,{style:t9,...panHandlers,onLayout:t10,children:t11});$[34]=T1;$[35]=panHandlers;$[36]=styles.container;$[37]=t10;$[38]=t11;$[39]=t12;}else{t12=$[39];}var t13;if($[40]!==T0||$[41]!==props||$[42]!==t12){t13=_jsx(T0,{...props,children:t12});$[40]=T0;$[41]=props;$[42]=t12;$[43]=t13;}else{t13=$[43];}return t13;};var AnimatedIcon=t0=>{var $=_c(11);var active=t0.active,children=t0.children;var scale=animationConfig.scale,easing=animationConfig.easing,duration=animationConfig.duration;var t1;if($[0]!==active){t1=()=>new Animated.Value(active?scale:1);$[0]=active;$[1]=t1;}else{t1=$[1];}var _useState5=useState(t1),_useState6=_slicedToArray(_useState5,1),animatedSize=_useState6[0];var t2;var t3;if($[2]!==active||$[3]!==animatedSize){t2=()=>{var animation=Animated.timing(animatedSize,{toValue:active?scale:1,useNativeDriver:true,easing,duration});animation.start();return animation.stop;};t3=[active,animatedSize];$[2]=active;$[3]=animatedSize;$[4]=t2;$[5]=t3;}else{t2=$[4];t3=$[5];}useEffect(t2,t3);var t4;if($[6]!==animatedSize){t4={transform:[{scale:animatedSize}]};$[6]=animatedSize;$[7]=t4;}else{t4=$[7];}var t5;if($[8]!==children||$[9]!==t4){t5=_jsx(Animated.View,{pointerEvents:"none",style:t4,children:children});$[8]=children;$[9]=t4;$[10]=t5;}else{t5=$[10];}return t5;};var createStyles=({styles:{inputBase}},{disabled,variant})=>{var _inputBase$container=inputBase.container,borderRadius=_inputBase$container.borderRadius,padding=_inputBase$container.padding,height=_inputBase$container.height;return StyleSheet.create({container:{minHeight:height[variant],borderRadius,backgroundColor:inputBase.container.backgroundColor[disabled?"disabled":"enabled"],padding,flexDirection:"row",alignItems:"center",justifyContent:"space-evenly"}});};function _temp(){return true;}function _temp2(){return true;}function _temp3(){return true;}function _temp4(){return true;}
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{useEffect,useEffectEvent,useState}from"react";import{StyleSheet,View}from"react-native";import{Gesture,GestureDetector}from"react-native-gesture-handler";import Animated,{Easing,useAnimatedStyle,useSharedValue,withTiming}from"react-native-reanimated";import{scheduleOnRN}from"react-native-worklets";import{useTheme,useThemedStyles}from"../../hooks";import{IconBase}from"../icon";import{ratingToValue,valueToRating}from"../rating";import{InputScaffold}from"./InputScaffold";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";var animationConfig={easing:Easing.elastic(2),duration:300,scale:1.2};var _worklet_14202875755172_init_data={code:"function RatingInputTsx1(x,width,max){if(!width)return 0;return Math.max(0,Math.min(Math.round(x/width*max*2+0.2)/2,max));}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx1\",\"x\",\"width\",\"max\",\"Math\",\"min\",\"round\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AAkDwB,QAAC,CAAAA,eAAqCA,CAAAC,CAAK,CAAAC,KAAA,CAAAC,GAAA,EAG/D,GAAI,CAACD,KAAK,CAAE,MAAO,EAAC,CAEpB,MAAO,CAAAE,IAAI,CAACD,GAAG,CACX,CAAC,CACDC,IAAI,CAACC,GAAG,CAACD,IAAI,CAACE,KAAK,CAAEL,CAAC,CAAGC,KAAK,CAAIC,GAAG,CAAG,CAAC,CAAG,GAAG,CAAC,CAAG,CAAC,CAAEA,GAAG,CAC7D,CAAC,CACL\",\"ignoreList\":[]}"};var calculateRating=function RatingInputTsx1Factory({_worklet_14202875755172_init_data}){var _e=[new global.Error(),1,-27];var RatingInputTsx1=function(x,width,max){if(!width)return 0;return Math.max(0,Math.min(Math.round(x/width*max*2+0.2)/2,max));};RatingInputTsx1.__closure={};RatingInputTsx1.__workletHash=14202875755172;RatingInputTsx1.__pluginVersion="0.8.3";RatingInputTsx1.__initData=_worklet_14202875755172_init_data;RatingInputTsx1.__stackDetails=_e;return RatingInputTsx1;}({_worklet_14202875755172_init_data});var computeIconSize=(width,padding,gap,height,max)=>{if(!width||width<=0)return 0;var maxSizeForWidth=Math.floor((width-padding-gap*(max-1))/max);var maxSizeForHeight=height-padding-gap*2;return Math.max(0,Math.min(maxSizeForWidth,maxSizeForHeight));};var _worklet_15023595213969_init_data={code:"function RatingInputTsx2(){const{interacting}=this.__closure;interacting.value=0;}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx2\",\"interacting\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AAkIoB,SAAAA,eAAMA,CAAA,QAAAC,WAAA,OAAAC,SAAA,CACdD,WAAW,CAACE,KAAK,CAAG,CAAC,CACzB\",\"ignoreList\":[]}"};var _worklet_6867206115268_init_data={code:"function RatingInputTsx3(e_1){const{calculateRating,widthShared,max,ratingShared,scheduleOnRN,commitRating}=this.__closure;const nextRating_0=calculateRating(e_1.x,widthShared.value,max);ratingShared.value=nextRating_0;scheduleOnRN(commitRating,nextRating_0);}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx3\",\"e_1\",\"calculateRating\",\"widthShared\",\"max\",\"ratingShared\",\"scheduleOnRN\",\"commitRating\",\"__closure\",\"nextRating_0\",\"x\",\"value\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AA6HgB,SAAAA,eAAMA,CAAAC,GAAA,QAAAC,eAAA,CAAAC,WAAA,CAAAC,GAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,YAAA,OAAAC,SAAA,CACV,KAAM,CAAAC,YAAU,CAAGP,eAAe,CAACD,GAAC,CAACS,CAAC,CAAEP,WAAW,CAACQ,KAAK,CAAEP,GAAG,CAAC,CAC/DC,YAAY,CAACM,KAAK,CAAGF,YAAU,CAC/BH,YAAY,CAACC,YAAY,CAAEE,YAAU,CAAC,CAC1C\",\"ignoreList\":[]}"};var _worklet_9555228706233_init_data={code:"function RatingInputTsx4(e_0){const{ratingShared,calculateRating,widthShared,max}=this.__closure;ratingShared.value=calculateRating(e_0.x,widthShared.value,max);}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx4\",\"e_0\",\"ratingShared\",\"calculateRating\",\"widthShared\",\"max\",\"__closure\",\"value\",\"x\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AA0HmB,SAAAA,eAAMA,CAAAC,GAAA,QAAAC,YAAA,CAAAC,eAAA,CAAAC,WAAA,CAAAC,GAAA,OAAAC,SAAA,CACbJ,YAAY,CAACK,KAAK,CAAGJ,eAAe,CAACF,GAAC,CAACO,CAAC,CAAEJ,WAAW,CAACG,KAAK,CAAEF,GAAG,CAAC,CACrE\",\"ignoreList\":[]}"};var _worklet_3067607389094_init_data={code:"function RatingInputTsx5(e){const{interacting,ratingShared,calculateRating,widthShared,max}=this.__closure;interacting.value=1;ratingShared.value=calculateRating(e.x,widthShared.value,max);}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx5\",\"e\",\"interacting\",\"ratingShared\",\"calculateRating\",\"widthShared\",\"max\",\"__closure\",\"value\",\"x\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AAsHkB,QAAC,CAAAA,eAAKA,CAAAC,CAAA,QAAAC,WAAA,CAAAC,YAAA,CAAAC,eAAA,CAAAC,WAAA,CAAAC,GAAA,OAAAC,SAAA,CACZL,WAAW,CAACM,KAAK,CAAG,CAAC,CACrBL,YAAY,CAACK,KAAK,CAAGJ,eAAe,CAACH,CAAC,CAACQ,CAAC,CAAEJ,WAAW,CAACG,KAAK,CAAEF,GAAG,CAAC,CACrE\",\"ignoreList\":[]}"};var _worklet_13451982528898_init_data={code:"function RatingInputTsx6(e_2){const{scheduleOnRN,commitRating,calculateRating,widthShared,max}=this.__closure;scheduleOnRN(commitRating,calculateRating(e_2.x,widthShared.value,max));}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx6\",\"e_2\",\"scheduleOnRN\",\"commitRating\",\"calculateRating\",\"widthShared\",\"max\",\"__closure\",\"x\",\"value\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AAsIqC,SAAAA,eAAMA,CAAAC,GAAA,QAAAC,YAAA,CAAAC,YAAA,CAAAC,eAAA,CAAAC,WAAA,CAAAC,GAAA,OAAAC,SAAA,CACnCL,YAAY,CACRC,YAAY,CACZC,eAAe,CAACH,GAAC,CAACO,CAAC,CAAEH,WAAW,CAACI,KAAK,CAAEH,GAAG,CAC/C,CAAC,CACL\",\"ignoreList\":[]}"};export var RatingInput=({value=0,max=5,disabled:disabledProp,variant="regular",scale,onChange,...props})=>{var disabled=disabledProp||!onChange;var _useTheme=useTheme(),theme=_useTheme.theme,_useTheme$styles=_useTheme.styles,inputBase=_useTheme$styles.inputBase,rating=_useTheme$styles.rating;var _useThemedStyles=useThemedStyles("ratingInput",createStyles,{props:{disabled,variant}}),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],icons=_useThemedStyles2[1].icons;var scaledRating=scale?valueToRating(value,max,scale):value;var _useState=useState(),_useState2=_slicedToArray(_useState,2),width=_useState2[0],setWidth=_useState2[1];var widthShared=useSharedValue(0);var ratingShared=useSharedValue(scaledRating);var interacting=useSharedValue(0);useEffect(()=>{ratingShared.value=scaledRating;},[scaledRating,ratingShared]);var commitRating=useEffectEvent(nextRating=>{if(disabled||nextRating===scaledRating)return;onChange?.(scale?ratingToValue(nextRating,max,scale):nextRating);});var pan=Gesture.Pan().enabled(!disabled).onBegin(function RatingInputTsx5Factory({_worklet_3067607389094_init_data,interacting,ratingShared,calculateRating,widthShared,max}){var _e=[new global.Error(),-6,-27];var RatingInputTsx5=function(e){interacting.value=1;ratingShared.value=calculateRating(e.x,widthShared.value,max);};RatingInputTsx5.__closure={interacting,ratingShared,calculateRating,widthShared,max};RatingInputTsx5.__workletHash=3067607389094;RatingInputTsx5.__pluginVersion="0.8.3";RatingInputTsx5.__initData=_worklet_3067607389094_init_data;RatingInputTsx5.__stackDetails=_e;return RatingInputTsx5;}({_worklet_3067607389094_init_data,interacting,ratingShared,calculateRating,widthShared,max})).onUpdate(function RatingInputTsx4Factory({_worklet_9555228706233_init_data,ratingShared,calculateRating,widthShared,max}){var _e=[new global.Error(),-5,-27];var RatingInputTsx4=function(e_0){ratingShared.value=calculateRating(e_0.x,widthShared.value,max);};RatingInputTsx4.__closure={ratingShared,calculateRating,widthShared,max};RatingInputTsx4.__workletHash=9555228706233;RatingInputTsx4.__pluginVersion="0.8.3";RatingInputTsx4.__initData=_worklet_9555228706233_init_data;RatingInputTsx4.__stackDetails=_e;return RatingInputTsx4;}({_worklet_9555228706233_init_data,ratingShared,calculateRating,widthShared,max})).onEnd(function RatingInputTsx3Factory({_worklet_6867206115268_init_data,calculateRating,widthShared,max,ratingShared,scheduleOnRN,commitRating}){var _e=[new global.Error(),-7,-27];var RatingInputTsx3=function(e_1){var nextRating_0=calculateRating(e_1.x,widthShared.value,max);ratingShared.value=nextRating_0;scheduleOnRN(commitRating,nextRating_0);};RatingInputTsx3.__closure={calculateRating,widthShared,max,ratingShared,scheduleOnRN,commitRating};RatingInputTsx3.__workletHash=6867206115268;RatingInputTsx3.__pluginVersion="0.8.3";RatingInputTsx3.__initData=_worklet_6867206115268_init_data;RatingInputTsx3.__stackDetails=_e;return RatingInputTsx3;}({_worklet_6867206115268_init_data,calculateRating,widthShared,max,ratingShared,scheduleOnRN,commitRating})).onFinalize(function RatingInputTsx2Factory({_worklet_15023595213969_init_data,interacting}){var _e=[new global.Error(),-2,-27];var RatingInputTsx2=function(){interacting.value=0;};RatingInputTsx2.__closure={interacting};RatingInputTsx2.__workletHash=15023595213969;RatingInputTsx2.__pluginVersion="0.8.3";RatingInputTsx2.__initData=_worklet_15023595213969_init_data;RatingInputTsx2.__stackDetails=_e;return RatingInputTsx2;}({_worklet_15023595213969_init_data,interacting}));var tap=Gesture.Tap().onEnd(function RatingInputTsx6Factory({_worklet_13451982528898_init_data,scheduleOnRN,commitRating,calculateRating,widthShared,max}){var _e=[new global.Error(),-6,-27];var RatingInputTsx6=function(e_2){scheduleOnRN(commitRating,calculateRating(e_2.x,widthShared.value,max));};RatingInputTsx6.__closure={scheduleOnRN,commitRating,calculateRating,widthShared,max};RatingInputTsx6.__workletHash=13451982528898;RatingInputTsx6.__pluginVersion="0.8.3";RatingInputTsx6.__initData=_worklet_13451982528898_init_data;RatingInputTsx6.__stackDetails=_e;return RatingInputTsx6;}({_worklet_13451982528898_init_data,scheduleOnRN,commitRating,calculateRating,widthShared,max}));var gesture=Gesture.Exclusive(pan,tap);var ratingIconSize=computeIconSize(width,inputBase.container.padding,theme.spacing.tiny,inputBase.container.height[variant],max);return _jsx(InputScaffold,{...props,children:_jsx(GestureDetector,{gesture:gesture,children:_jsx(View,{style:styles.container,onLayout:e_3=>{var nextWidth=e_3.nativeEvent.layout.width;if(nextWidth>0){setWidth(nextWidth);widthShared.value=nextWidth;}},children:Array.from({length:max},(_,index)=>_jsx(AnimatedStar,{index:index,rating:ratingShared,size:ratingIconSize,interacting:interacting,empty:_jsx(IconBase,{...icons.empty,size:ratingIconSize,color:rating.icon.color.empty}),half:_jsx(IconBase,{...icons.half,size:ratingIconSize,color:rating.icon.color.half}),full:_jsx(IconBase,{...icons.full,size:ratingIconSize,color:rating.icon.color.full})},index))})})});};var _worklet_1114956076381_init_data={code:"function RatingInputTsx7(){const{rating,index}=this.__closure;return{opacity:rating.value>=index+0.5?0:1};}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx7\",\"rating\",\"index\",\"__closure\",\"opacity\",\"value\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AA4NwC,SAAAA,gBAAA,QAAAC,MAAA,CAAAC,KAAA,OAAAC,SAAA,OAAO,CAAAC,OAAA,CAC9BH,MAAM,CAAAI,KAAM,EAAIH,KAAK,CAAG,GAAW,CAAnC,CAAmC,CAAnC,CACb,CAAC\",\"ignoreList\":[]}"};var _worklet_8537619109224_init_data={code:"function RatingInputTsx8(){const{rating,index}=this.__closure;return{opacity:rating.value>=index+0.5&&rating.value<index+1?1:0};}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx8\",\"rating\",\"index\",\"__closure\",\"opacity\",\"value\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AA+NuC,SAAAA,gBAAA,QAAAC,MAAA,CAAAC,KAAA,OAAAC,SAAA,OAAO,CAAAC,OAAA,CAElCH,MAAM,CAAAI,KAAM,EAAIH,KAAK,CAAG,GAA+B,EAAxBD,MAAM,CAAAI,KAAM,CAAGH,KAAK,CAAG,CAAS,CAA/D,CAA+D,CAA/D,CACR,CAAC\",\"ignoreList\":[]}"};var _worklet_652360677641_init_data={code:"function RatingInputTsx9(){const{rating,index}=this.__closure;return{opacity:rating.value>=index+1?1:0};}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx9\",\"rating\",\"index\",\"__closure\",\"opacity\",\"value\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AAmOuC,SAAAA,gBAAA,QAAAC,MAAA,CAAAC,KAAA,OAAAC,SAAA,OAAO,CAAAC,OAAA,CAC7BH,MAAM,CAAAI,KAAM,EAAIH,KAAK,CAAG,CAAS,CAAjC,CAAiC,CAAjC,CACb,CAAC\",\"ignoreList\":[]}"};var _worklet_15087537956389_init_data={code:"function RatingInputTsx10(){const{interacting,rating,index,withTiming,animationConfig}=this.__closure;const active=interacting.value===1&&Math.ceil(rating.value)-1===index;return{transform:[{scale:withTiming(active?animationConfig.scale:1,{duration:animationConfig.duration,easing:animationConfig.easing})}]};}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx10\",\"interacting\",\"rating\",\"index\",\"withTiming\",\"animationConfig\",\"__closure\",\"active\",\"value\",\"Math\",\"ceil\",\"transform\",\"scale\",\"duration\",\"easing\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AAsOwC,SAAAA,iBAAA,QAAAC,WAAA,CAAAC,MAAA,CAAAC,KAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAChC,MAAAC,MAAA,CACIN,WAAW,CAAAO,KAAM,GAAK,CAA0C,EAArCC,IAAI,CAAAC,IAAK,CAACR,MAAM,CAAAM,KAAM,CAAC,CAAG,CAAC,GAAKL,KAAK,CAAC,MAE9D,CAAAQ,SAAA,CACQ,CACP,CAAAC,KAAA,CACWR,UAAU,CAACG,MAAM,CAAGF,eAAe,CAAAO,KAAU,CAAlC,CAAkC,CAAE,CAAAC,QAAA,CACxCR,eAAe,CAAAQ,QAAS,CAAAC,MAAA,CAC1BT,eAAe,CAAAS,MAC3B,CAAC,CACL,CAAC,CAET,CAAC\",\"ignoreList\":[]}"};var AnimatedStar=t0=>{var $=_c(25);var index=t0.index,rating=t0.rating,size=t0.size,interacting=t0.interacting,empty=t0.empty,half=t0.half,full=t0.full;var emptyStyle=useAnimatedStyle(function RatingInputTsx7Factory({_worklet_1114956076381_init_data,rating,index}){var _e=[new global.Error(),-3,-27];var RatingInputTsx7=()=>({opacity:rating.value>=index+0.5?0:1});RatingInputTsx7.__closure={rating,index};RatingInputTsx7.__workletHash=1114956076381;RatingInputTsx7.__pluginVersion="0.8.3";RatingInputTsx7.__initData=_worklet_1114956076381_init_data;RatingInputTsx7.__stackDetails=_e;return RatingInputTsx7;}({_worklet_1114956076381_init_data,rating,index}));var halfStyle=useAnimatedStyle(function RatingInputTsx8Factory({_worklet_8537619109224_init_data,rating,index}){var _e=[new global.Error(),-3,-27];var RatingInputTsx8=()=>({opacity:rating.value>=index+0.5&&rating.value<index+1?1:0});RatingInputTsx8.__closure={rating,index};RatingInputTsx8.__workletHash=8537619109224;RatingInputTsx8.__pluginVersion="0.8.3";RatingInputTsx8.__initData=_worklet_8537619109224_init_data;RatingInputTsx8.__stackDetails=_e;return RatingInputTsx8;}({_worklet_8537619109224_init_data,rating,index}));var fullStyle=useAnimatedStyle(function RatingInputTsx9Factory({_worklet_652360677641_init_data,rating,index}){var _e=[new global.Error(),-3,-27];var RatingInputTsx9=()=>({opacity:rating.value>=index+1?1:0});RatingInputTsx9.__closure={rating,index};RatingInputTsx9.__workletHash=652360677641;RatingInputTsx9.__pluginVersion="0.8.3";RatingInputTsx9.__initData=_worklet_652360677641_init_data;RatingInputTsx9.__stackDetails=_e;return RatingInputTsx9;}({_worklet_652360677641_init_data,rating,index}));var scaleStyle=useAnimatedStyle(function RatingInputTsx10Factory({_worklet_15087537956389_init_data,interacting,rating,index,withTiming,animationConfig}){var _e=[new global.Error(),-6,-27];var RatingInputTsx10=function(){var active=interacting.value===1&&Math.ceil(rating.value)-1===index;return{transform:[{scale:withTiming(active?animationConfig.scale:1,{duration:animationConfig.duration,easing:animationConfig.easing})}]};};RatingInputTsx10.__closure={interacting,rating,index,withTiming,animationConfig};RatingInputTsx10.__workletHash=15087537956389;RatingInputTsx10.__pluginVersion="0.8.3";RatingInputTsx10.__initData=_worklet_15087537956389_init_data;RatingInputTsx10.__stackDetails=_e;return RatingInputTsx10;}({_worklet_15087537956389_init_data,interacting,rating,index,withTiming,animationConfig}));var t1;if($[0]!==size){t1={width:size,height:size,pointerEvents:"none"};$[0]=size;$[1]=t1;}else{t1=$[1];}var t2;if($[2]!==scaleStyle||$[3]!==t1){t2=[t1,scaleStyle];$[2]=scaleStyle;$[3]=t1;$[4]=t2;}else{t2=$[4];}var t3;if($[5]!==emptyStyle){t3=[StyleSheet.absoluteFill,emptyStyle];$[5]=emptyStyle;$[6]=t3;}else{t3=$[6];}var t4;if($[7]!==empty||$[8]!==t3){t4=_jsx(Animated.View,{style:t3,children:empty});$[7]=empty;$[8]=t3;$[9]=t4;}else{t4=$[9];}var t5;if($[10]!==halfStyle){t5=[StyleSheet.absoluteFill,halfStyle];$[10]=halfStyle;$[11]=t5;}else{t5=$[11];}var t6;if($[12]!==half||$[13]!==t5){t6=_jsx(Animated.View,{style:t5,children:half});$[12]=half;$[13]=t5;$[14]=t6;}else{t6=$[14];}var t7;if($[15]!==fullStyle){t7=[StyleSheet.absoluteFill,fullStyle];$[15]=fullStyle;$[16]=t7;}else{t7=$[16];}var t8;if($[17]!==full||$[18]!==t7){t8=_jsx(Animated.View,{style:t7,children:full});$[17]=full;$[18]=t7;$[19]=t8;}else{t8=$[19];}var t9;if($[20]!==t2||$[21]!==t4||$[22]!==t6||$[23]!==t8){t9=_jsxs(Animated.View,{style:t2,children:[t4,t6,t8]});$[20]=t2;$[21]=t4;$[22]=t6;$[23]=t8;$[24]=t9;}else{t9=$[24];}return t9;};var createStyles=({styles:{inputBase}},{disabled,variant})=>{var _inputBase$container=inputBase.container,borderRadius=_inputBase$container.borderRadius,padding=_inputBase$container.padding,height=_inputBase$container.height;return StyleSheet.create({container:{minHeight:height[variant],borderRadius,backgroundColor:inputBase.container.backgroundColor[disabled?"disabled":"enabled"],padding,flexDirection:"row",alignItems:"center",justifyContent:"space-evenly"}});};
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/listItem/ListItem.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{Pressable,StyleSheet,View}from"react-native";import{Undefined}from"@reillymc/es-utils";import{useThemedStyles}from"../../hooks";import{SwipeableContainer}from"../swipe";import{Text}from"../text";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";var EMPTY_CONTENT_ROWS=[];export var ListItem=t0=>{var $=_c(38);var avatar=t0.avatar,alert=t0.alert,heading=t0.heading,footer=t0.footer,header=t0.header,t1=t0.variant,t2=t0.contentRows,swipeActions=t0.swipeActions,style=t0.style,contentContainerStyle=t0.contentContainerStyle,onPress=t0.onPress;var variant=t1===undefined?"default":t1;var contentRows=t2===undefined?EMPTY_CONTENT_ROWS:t2;var t3;if($[0]!==contentRows){t3=contentRows.filter(Undefined);$[0]=contentRows;$[1]=t3;}else{t3=$[1];}var filteredRows=t3;var t4;if($[2]!==swipeActions){t4=swipeActions?.filter(Undefined);$[2]=swipeActions;$[3]=t4;}else{t4=$[3];}var filteredActions=t4;var t5;if($[4]!==variant){t5={props:{variant}};$[4]=variant;$[5]=t5;}else{t5=$[5];}var _useThemedStyles=useThemedStyles("listItem",createStyles,t5),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t6;if($[6]!==style||$[7]!==styles.pressableContainer){t6=[styles.pressableContainer,style];$[6]=style;$[7]=styles.pressableContainer;$[8]=t6;}else{t6=$[8];}var t7;if($[9]!==contentContainerStyle||$[10]!==styles.contentContainer){t7=[styles.contentContainer,contentContainerStyle];$[9]=contentContainerStyle;$[10]=styles.contentContainer;$[11]=t7;}else{t7=$[11];}var t8;if($[12]!==heading){t8=!!heading&&typeof heading==="string"?_jsx(Text,{variant:"heading",numberOfLines:2,children:heading}):heading;$[12]=heading;$[13]=t8;}else{t8=$[13];}var t9;if($[14]!==filteredRows||$[15]!==t7||$[16]!==t8){t9=_jsxs(View,{style:t7,children:[t8,filteredRows]});$[14]=filteredRows;$[15]=t7;$[16]=t8;$[17]=t9;}else{t9=$[17];}var t10;if($[18]!==avatar||$[19]!==styles.innerContainer||$[20]!==t9){t10=_jsxs(View,{style:styles.innerContainer,children:[avatar,t9]});$[18]=avatar;$[19]=styles.innerContainer;$[20]=t9;$[21]=t10;}else{t10=$[21];}var t11;if($[22]!==alert||$[23]!==styles.bodyContainer||$[24]!==t10){t11=_jsxs(View,{style:styles.bodyContainer,children:[t10,alert]});$[22]=alert;$[23]=styles.bodyContainer;$[24]=t10;$[25]=t11;}else{t11=$[25];}var t12;if($[26]!==footer||$[27]!==header||$[28]!==onPress||$[29]!==t11||$[30]!==t6){t12=_jsxs(Pressable,{onPress:onPress,style:t6,children:[header,t11,footer]});$[26]=footer;$[27]=header;$[28]=onPress;$[29]=t11;$[30]=t6;$[31]=t12;}else{t12=$[31];}var innerContent=t12;var t13;if($[32]!==filteredActions||$[33]!==innerContent){t13=filteredActions?.length?_jsx(SwipeableContainer,{rightActions:filteredActions,children:_jsx(View,{children:innerContent})}):innerContent;$[32]=filteredActions;$[33]=innerContent;$[34]=t13;}else{t13=$[34];}var t14;if($[35]!==styles.container||$[36]!==t13){t14=_jsx(View,{style:styles.container,children:t13});$[35]=styles.container;$[36]=t13;$[37]=t14;}else{t14=$[37];}return t14;};var createStyles=({styles:{listItem},theme},{variant})=>StyleSheet.create({container:{backgroundColor:theme.color.background,borderRadius:variant==="compact"?undefined:listItem.borderRadius,overflow:"hidden",width:"100%"},pressableContainer:{display:"flex",flexDirection:"column",backgroundColor:theme.color.foreground,borderRadius:variant==="compact"?undefined:listItem.borderRadius},bodyContainer:{flexDirection:"row",justifyContent:"space-between"},innerContainer:{flexDirection:"row",flexShrink:1},contentContainer:{flexShrink:1,flexDirection:"column",alignItems:"flex-start",justifyContent:"center",width:"100%",padding:listItem.internalSpacing}});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/listItem/ListItem.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{StyleSheet,View}from"react-native";import{Undefined}from"@reillymc/es-utils";import{useThemedStyles}from"../../hooks";import{ActionBase}from"../action";import{SwipeableContainer}from"../swipe";import{Text}from"../text";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";var EMPTY_CONTENT_ROWS=[];export var ListItem=t0=>{var $=_c(38);var avatar=t0.avatar,alert=t0.alert,heading=t0.heading,footer=t0.footer,header=t0.header,t1=t0.variant,t2=t0.contentRows,swipeActions=t0.swipeActions,style=t0.style,contentContainerStyle=t0.contentContainerStyle,onPress=t0.onPress;var variant=t1===undefined?"default":t1;var contentRows=t2===undefined?EMPTY_CONTENT_ROWS:t2;var t3;if($[0]!==contentRows){t3=contentRows.filter(Undefined);$[0]=contentRows;$[1]=t3;}else{t3=$[1];}var filteredRows=t3;var t4;if($[2]!==swipeActions){t4=swipeActions?.filter(Undefined);$[2]=swipeActions;$[3]=t4;}else{t4=$[3];}var filteredActions=t4;var t5;if($[4]!==variant){t5={props:{variant}};$[4]=variant;$[5]=t5;}else{t5=$[5];}var _useThemedStyles=useThemedStyles("listItem",createStyles,t5),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t6;if($[6]!==style||$[7]!==styles.pressableContainer){t6=[styles.pressableContainer,style];$[6]=style;$[7]=styles.pressableContainer;$[8]=t6;}else{t6=$[8];}var t7;if($[9]!==contentContainerStyle||$[10]!==styles.contentContainer){t7=[styles.contentContainer,contentContainerStyle];$[9]=contentContainerStyle;$[10]=styles.contentContainer;$[11]=t7;}else{t7=$[11];}var t8;if($[12]!==heading){t8=!!heading&&typeof heading==="string"?_jsx(Text,{variant:"heading",numberOfLines:2,children:heading}):heading;$[12]=heading;$[13]=t8;}else{t8=$[13];}var t9;if($[14]!==filteredRows||$[15]!==t7||$[16]!==t8){t9=_jsxs(View,{style:t7,children:[t8,filteredRows]});$[14]=filteredRows;$[15]=t7;$[16]=t8;$[17]=t9;}else{t9=$[17];}var t10;if($[18]!==avatar||$[19]!==styles.innerContainer||$[20]!==t9){t10=_jsxs(View,{style:styles.innerContainer,children:[avatar,t9]});$[18]=avatar;$[19]=styles.innerContainer;$[20]=t9;$[21]=t10;}else{t10=$[21];}var t11;if($[22]!==alert||$[23]!==styles.bodyContainer||$[24]!==t10){t11=_jsxs(View,{style:styles.bodyContainer,children:[t10,alert]});$[22]=alert;$[23]=styles.bodyContainer;$[24]=t10;$[25]=t11;}else{t11=$[25];}var t12;if($[26]!==footer||$[27]!==header||$[28]!==onPress||$[29]!==t11||$[30]!==t6){t12=_jsxs(ActionBase,{hitSlop:0,onPress:onPress,containerStyle:t6,children:[header,t11,footer]});$[26]=footer;$[27]=header;$[28]=onPress;$[29]=t11;$[30]=t6;$[31]=t12;}else{t12=$[31];}var innerContent=t12;var t13;if($[32]!==filteredActions||$[33]!==innerContent){t13=filteredActions?.length?_jsx(SwipeableContainer,{rightActions:filteredActions,children:_jsx(View,{children:innerContent})}):innerContent;$[32]=filteredActions;$[33]=innerContent;$[34]=t13;}else{t13=$[34];}var t14;if($[35]!==styles.container||$[36]!==t13){t14=_jsx(View,{style:styles.container,children:t13});$[35]=styles.container;$[36]=t13;$[37]=t14;}else{t14=$[37];}return t14;};var createStyles=({styles:{listItem},theme},{variant})=>StyleSheet.create({container:{backgroundColor:theme.color.background,borderRadius:variant==="compact"?undefined:listItem.borderRadius,overflow:"hidden",width:"100%"},pressableContainer:{display:"flex",flexDirection:"column",backgroundColor:theme.color.foreground,borderRadius:variant==="compact"?undefined:listItem.borderRadius},bodyContainer:{flexDirection:"row",justifyContent:"space-between"},innerContainer:{flexDirection:"row",flexShrink:1},contentContainer:{flexShrink:1,flexDirection:"column",alignItems:"flex-start",justifyContent:"center",width:"100%",padding:listItem.internalSpacing}});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/menu/MenuItem.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{Pressable,StyleSheet}from"react-native";import{useTheme,useThemedStyles}from"../../hooks";import{HighlightedText}from"../text";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var MenuItem=t0=>{var $=_c(14);var label=t0.label,description=t0.description,searchValue=t0.searchValue,onPress=t0.onPress;var _useTheme=useTheme(),t1=_useTheme.theme;var color=t1.color;var _useThemedStyles=useThemedStyles("menuItem",createStyles),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t2;if($[0]!==color||$[1]!==styles.dropdownItem){t2=t3=>{var pressed=t3.pressed;return[styles.dropdownItem,pressed&&{backgroundColor:color.pressOverlay}];};$[0]=color;$[1]=styles.dropdownItem;$[2]=t2;}else{t2=$[2];}var t3;if($[3]!==label||$[4]!==searchValue){t3=_jsx(HighlightedText,{text:label,highlight:searchValue});$[3]=label;$[4]=searchValue;$[5]=t3;}else{t3=$[5];}var t4;if($[6]!==description||$[7]!==searchValue){t4=!!description&&_jsx(HighlightedText,{variant:"caption",text:description,highlight:searchValue});$[6]=description;$[7]=searchValue;$[8]=t4;}else{t4=$[8];}var t5;if($[9]!==onPress||$[10]!==t2||$[11]!==t3||$[12]!==t4){t5=_jsxs(Pressable,{onPress:onPress,style:t2,children:[t3,t4]});$[9]=onPress;$[10]=t2;$[11]=t3;$[12]=t4;$[13]=t5;}else{t5=$[13];}return t5;};MenuItem.displayName="MenuItem";var createStyles=({styles:{menuItem}})=>StyleSheet.create({dropdownItem:menuItem});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/menu/MenuItem.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{StyleSheet}from"react-native";import{useTheme,useThemedStyles}from"../../hooks";import{ActionBase}from"../action";import{HighlightedText}from"../text";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var MenuItem=t0=>{var $=_c(14);var label=t0.label,description=t0.description,searchValue=t0.searchValue,onPress=t0.onPress;var _useTheme=useTheme(),t1=_useTheme.theme;var color=t1.color;var _useThemedStyles=useThemedStyles("menuItem",createStyles),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t2;if($[0]!==color||$[1]!==styles.dropdownItem){t2=t3=>{var pressed=t3.pressed;return[styles.dropdownItem,pressed&&{backgroundColor:color.pressOverlay}];};$[0]=color;$[1]=styles.dropdownItem;$[2]=t2;}else{t2=$[2];}var t3;if($[3]!==label||$[4]!==searchValue){t3=_jsx(HighlightedText,{text:label,highlight:searchValue});$[3]=label;$[4]=searchValue;$[5]=t3;}else{t3=$[5];}var t4;if($[6]!==description||$[7]!==searchValue){t4=!!description&&_jsx(HighlightedText,{variant:"caption",text:description,highlight:searchValue});$[6]=description;$[7]=searchValue;$[8]=t4;}else{t4=$[8];}var t5;if($[9]!==onPress||$[10]!==t2||$[11]!==t3||$[12]!==t4){t5=_jsxs(ActionBase,{hitSlop:0,onPress:onPress,containerStyle:t2,children:[t3,t4]});$[9]=onPress;$[10]=t2;$[11]=t3;$[12]=t4;$[13]=t5;}else{t5=$[13];}return t5;};MenuItem.displayName="MenuItem";var createStyles=({styles:{menuItem}})=>StyleSheet.create({dropdownItem:menuItem});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/swipe/SwipeableContainer.tsx";import{c as _c}from"react/compiler-runtime";import{useMemo,useRef}from"react";import{StyleSheet,View}from"react-native";import Swipeable from"react-native-gesture-handler/ReanimatedSwipeable";import{jsx as _jsx}from"react/jsx-runtime";var EMPTY_ACTIONS=[];export var SwipeableContainer=t0=>{var $=_c(10);var t1=t0.rightActions,containerStyle=t0.containerStyle,children=t0.children;var rightActions=t1===undefined?EMPTY_ACTIONS:t1;var swipeableRef=useRef(null);var t2;if($[0]!==rightActions){t2=[...rightActions].reverse();$[0]=rightActions;$[1]=t2;}else{t2=$[1];}var actions=t2;var t3;if($[2]===Symbol.for("react.memo_cache_sentinel")){t3=()=>{swipeableRef.current?.close();};$[2]=t3;}else{t3=$[2];}var handleActionsPress=t3;var t4;if($[3]!==actions){t4=()=>_jsx(View,{style:styles.actionsContainer,onTouchEnd:handleActionsPress,children:actions});$[3]=actions;$[4]=t4;}else{t4=$[4];}var renderRightActions=t4;var t5;if($[5]===Symbol.for("react.memo_cache_sentinel")){t5={left:-20};$[5]=t5;}else{t5=$[5];}var t6;if($[6]!==children||$[7]!==containerStyle||$[8]!==renderRightActions){t6=_jsx(Swipeable,{hitSlop:t5,ref:swipeableRef,renderRightActions:renderRightActions,enableTrackpadTwoFingerGesture:true,friction:1.5,overshootRight:false,containerStyle:containerStyle,children:children});$[6]=children;$[7]=containerStyle;$[8]=renderRightActions;$[9]=t6;}else{t6=$[9];}return t6;};var styles=StyleSheet.create({actionsContainer:{display:"flex",flexDirection:"row"}});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/swipe/SwipeableContainer.tsx";import{c as _c}from"react/compiler-runtime";import{Children,useRef}from"react";import{StyleSheet,View}from"react-native";import Swipeable from"react-native-gesture-handler/ReanimatedSwipeable";import{jsx as _jsx}from"react/jsx-runtime";var EMPTY_ACTIONS=[];export var SwipeableContainer=t0=>{var $=_c(11);var t1=t0.rightActions,containerStyle=t0.containerStyle,children=t0.children;var rightActions=t1===undefined?EMPTY_ACTIONS:t1;var swipeableRef=useRef(null);var t2;if($[0]===Symbol.for("react.memo_cache_sentinel")){t2=()=>{swipeableRef.current?.close();};$[0]=t2;}else{t2=$[0];}var close=t2;var t3;if($[1]!==rightActions){t3=()=>_jsx(View,{style:styles.actionsContainer,children:Children.map(rightActions,action=>_jsx(View,{onTouchEnd:close,children:action}))});$[1]=rightActions;$[2]=t3;}else{t3=$[2];}var renderRightActions=t3;if(rightActions.length===0){var _t;if($[3]!==children||$[4]!==containerStyle){_t=_jsx(View,{style:containerStyle,children:children});$[3]=children;$[4]=containerStyle;$[5]=_t;}else{_t=$[5];}return _t;}var t4;if($[6]===Symbol.for("react.memo_cache_sentinel")){t4={left:-20,right:-20};$[6]=t4;}else{t4=$[6];}var t5;if($[7]!==children||$[8]!==containerStyle||$[9]!==renderRightActions){t5=_jsx(Swipeable,{hitSlop:t4,ref:swipeableRef,renderRightActions:renderRightActions,enableTrackpadTwoFingerGesture:true,friction:1.5,overshootRight:false,containerStyle:containerStyle,children:children});$[7]=children;$[8]=containerStyle;$[9]=renderRightActions;$[10]=t5;}else{t5=$[10];}return t5;};var styles=StyleSheet.create({actionsContainer:{display:"flex",flexDirection:"row-reverse"}});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/tag/Tag.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{Pressable,StyleSheet}from"react-native";import{useThemedStyles}from"../../hooks";import{Text}from"../text";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var Tag=t0=>{var $=_c(15);var label=t0.label,onPress=t0.onPress,icon=t0.icon,variant=t0.variant,style=t0.style;var t1;if($[0]!==label||$[1]!==variant){t1={props:{variant,label}};$[0]=label;$[1]=variant;$[2]=t1;}else{t1=$[2];}var _useThemedStyles=useThemedStyles("tag",createStyles,t1),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t2=!onPress;var t3;if($[3]!==style||$[4]!==styles.container){t3=[styles.container,style];$[3]=style;$[4]=styles.container;$[5]=t3;}else{t3=$[5];}var t4;if($[6]!==label||$[7]!==styles.text){t4=_jsx(Text,{style:styles.text,children:label});$[6]=label;$[7]=styles.text;$[8]=t4;}else{t4=$[8];}var t5;if($[9]!==icon||$[10]!==onPress||$[11]!==t2||$[12]!==t3||$[13]!==t4){t5=_jsxs(Pressable,{disabled:t2,onPress:onPress,style:t3,children:[icon,t4]});$[9]=icon;$[10]=onPress;$[11]=t2;$[12]=t3;$[13]=t4;$[14]=t5;}else{t5=$[14];}return t5;};var createStyles=({theme:{color},styles:{tag}},{variant="dark"})=>{var styles=StyleSheet.create({container:{display:"flex",flexDirection:"row",alignItems:"center",borderRadius:tag.borderRadius,padding:tag.padding,backgroundColor:variant==="dark"?color.background:color.foreground,width:"auto",gap:tag.internalSpacing},text:{color:color.textPrimary}});return styles;};
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/tag/Tag.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{StyleSheet}from"react-native";import{useThemedStyles}from"../../hooks";import{ActionBase}from"../action";import{Text}from"../text";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var Tag=t0=>{var $=_c(14);var label=t0.label,onPress=t0.onPress,icon=t0.icon,variant=t0.variant,style=t0.style;var t1;if($[0]!==label||$[1]!==variant){t1={props:{variant,label}};$[0]=label;$[1]=variant;$[2]=t1;}else{t1=$[2];}var _useThemedStyles=useThemedStyles("tag",createStyles,t1),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t2;if($[3]!==style||$[4]!==styles.container){t2=[styles.container,style];$[3]=style;$[4]=styles.container;$[5]=t2;}else{t2=$[5];}var t3;if($[6]!==label||$[7]!==styles.text){t3=_jsx(Text,{style:styles.text,children:label});$[6]=label;$[7]=styles.text;$[8]=t3;}else{t3=$[8];}var t4;if($[9]!==icon||$[10]!==onPress||$[11]!==t2||$[12]!==t3){t4=_jsxs(ActionBase,{onPress:onPress,containerStyle:t2,children:[icon,t3]});$[9]=icon;$[10]=onPress;$[11]=t2;$[12]=t3;$[13]=t4;}else{t4=$[13];}return t4;};var createStyles=({theme:{color},styles:{tag}},{variant="dark"})=>{var styles=StyleSheet.create({container:{display:"flex",flexDirection:"row",alignItems:"center",borderRadius:tag.borderRadius,padding:tag.padding,backgroundColor:variant==="dark"?color.background:color.foreground,width:"auto",gap:tag.internalSpacing},text:{color:color.textPrimary}});return styles;};
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/text/HighlightedText.tsx";var _excluded=["text","highlight","textStyles","style","variant"];function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}import{c as _c}from"react/compiler-runtime";import{StyleSheet}from"react-native";import{useThemedStyles}from"../../hooks";import{Text}from"./Text";import{createElement as _createElement}from"react";import{jsx as _jsx}from"react/jsx-runtime";export var EscapeForRegexProcessing=string=>string.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");export var HighlightedText=t0=>{var $=_c(27);var props;var styleOverrides;var t1;var t2;var t3;var textStyles;if($[0]!==t0){t1=t0.text;t2=t0.highlight;textStyles=t0.textStyles;styleOverrides=t0.style;t3=t0.variant;props=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=props;$[2]=styleOverrides;$[3]=t1;$[4]=t2;$[5]=t3;$[6]=textStyles;}else{props=$[1];styleOverrides=$[2];t1=$[3];t2=$[4];t3=$[5];textStyles=$[6];}var text=t1===undefined?"":t1;var highlight=t2===undefined?"":t2;var variant=t3===undefined?"body":t3;var t4;if($[7]!==styleOverrides){t4={styles:{highlightedText:styleOverrides}};$[7]=styleOverrides;$[8]=t4;}else{t4=$[8];}var _useThemedStyles=useThemedStyles("highlightedText",createStyles,t4),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],t5=_useThemedStyles2[1];var style=t5.style;var t6;if($[9]!==highlight){t6=EscapeForRegexProcessing(highlight.toLowerCase());$[9]=highlight;$[10]=t6;}else{t6=$[10];}var highlightedString=t6;var t7;if($[11]!==highlightedString||$[12]!==props||$[13]!==style||$[14]!==styles.textWrapper||$[15]!==text||$[16]!==textStyles||$[17]!==variant){var parts=text.split(new RegExp(`(${highlightedString})`,"gi"));var t8;if($[19]!==styles.textWrapper||$[20]!==textStyles){t8=[styles.textWrapper,textStyles];$[19]=styles.textWrapper;$[20]=textStyles;$[21]=t8;}else{t8=$[21];}var t9;if($[22]!==highlightedString||$[23]!==props||$[24]!==style||$[25]!==variant){t9=(part,idx)=>_createElement(Text,{...props,variant:variant,key:`${part}${idx}`,style:part.toLowerCase()===highlightedString&&{fontWeight:style.highlightedWeight[variant]},__self:this,__source:{fileName:_jsxFileName,lineNumber:46,columnNumber:17}},part);$[22]=highlightedString;$[23]=props;$[24]=style;$[25]=variant;$[26]=t9;}else{t9=$[26];}t7=_jsx(Text,{style:t8,children:parts.map(t9)});$[11]=highlightedString;$[12]=props;$[13]=style;$[14]=styles.textWrapper;$[15]=text;$[16]=textStyles;$[17]=variant;$[18]=t7;}else{t7=$[18];}return t7;};var createStyles=()=>StyleSheet.create({textWrapper:{display:"flex",flexDirection:"row"}});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/text/HighlightedText.tsx";var _excluded=["text","highlight","textStyles","style","variant"];function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}import{c as _c}from"react/compiler-runtime";import{StyleSheet}from"react-native";import{useThemedStyles}from"../../hooks";import{Text}from"./Text";import{createElement as _createElement}from"react";import{jsx as _jsx}from"react/jsx-runtime";var escapeForRegex=value=>value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var splitHighlight=(text,highlight)=>{if(!highlight)return[{text,highlighted:false,offset:0}];var lowerHighlight=highlight.toLowerCase();var pattern=new RegExp(`(${escapeForRegex(highlight)})`,"gi");var parts=[];var offset=0;for(var part of text.split(pattern)){if(part==="")continue;parts.push({text:part,highlighted:part.toLowerCase()===lowerHighlight,offset});offset+=part.length;}return parts;};export var HighlightedText=t0=>{var $=_c(24);var props;var styleOverrides;var t1;var t2;var t3;var textStyles;if($[0]!==t0){t1=t0.text;t2=t0.highlight;textStyles=t0.textStyles;styleOverrides=t0.style;t3=t0.variant;props=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=props;$[2]=styleOverrides;$[3]=t1;$[4]=t2;$[5]=t3;$[6]=textStyles;}else{props=$[1];styleOverrides=$[2];t1=$[3];t2=$[4];t3=$[5];textStyles=$[6];}var text=t1===undefined?"":t1;var highlight=t2===undefined?"":t2;var variant=t3===undefined?"body":t3;var t4;if($[7]!==styleOverrides){t4={styles:{highlightedText:styleOverrides}};$[7]=styleOverrides;$[8]=t4;}else{t4=$[8];}var _useThemedStyles=useThemedStyles("highlightedText",createStyles,t4),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],t5=_useThemedStyles2[1];var style=t5.style;var t6;if($[9]!==highlight||$[10]!==props||$[11]!==style||$[12]!==styles.textWrapper||$[13]!==text||$[14]!==textStyles||$[15]!==variant){var parts=splitHighlight(text,highlight);var t7;if($[17]!==styles.textWrapper||$[18]!==textStyles){t7=[styles.textWrapper,textStyles];$[17]=styles.textWrapper;$[18]=textStyles;$[19]=t7;}else{t7=$[19];}var t8;if($[20]!==props||$[21]!==style||$[22]!==variant){t8=part=>_createElement(Text,{...props,variant:variant,key:part.offset,style:part.highlighted&&{fontWeight:style.highlightedWeight[variant]},__self:this,__source:{fileName:_jsxFileName,lineNumber:75,columnNumber:17}},part.text);$[20]=props;$[21]=style;$[22]=variant;$[23]=t8;}else{t8=$[23];}t6=_jsx(Text,{style:t7,children:parts.map(t8)});$[9]=highlight;$[10]=props;$[11]=style;$[12]=styles.textWrapper;$[13]=text;$[14]=textStyles;$[15]=variant;$[16]=t6;}else{t6=$[16];}return t6;};var createStyles=()=>StyleSheet.create({textWrapper:{display:"flex",flexDirection:"row"}});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/toast/Toast.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{StyleSheet,View}from"react-native";import Animated,{LinearTransition,SlideInDown,SlideOutDown}from"react-native-reanimated";import{useThemedStyles}from"../../hooks";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var Toast=t0=>{var $=_c(20);var action=t0.action,containerStyle=t0.containerStyle,children=t0.children;var _useThemedStyles=useThemedStyles("toast",createStyles),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t1;if($[0]!==containerStyle||$[1]!==styles.container){t1=[styles.container,containerStyle];$[0]=containerStyle;$[1]=styles.container;$[2]=t1;}else{t1=$[2];}var t2;var t3;var t4;if($[3]===Symbol.for("react.memo_cache_sentinel")){t2=SlideInDown.springify().mass(0.5);t3=SlideOutDown.springify().mass(0.5);t4=LinearTransition.springify().mass(0.5);$[3]=t2;$[4]=t3;$[5]=t4;}else{t2=$[3];t3=$[4];t4=$[5];}var t5;if($[6]!==children||$[7]!==styles.contentContainer){t5=_jsx(View,{style:styles.contentContainer,children:children});$[6]=children;$[7]=styles.contentContainer;$[8]=t5;}else{t5=$[8];}var t6;if($[9]!==action||$[10]!==styles.actionContainer||$[11]!==styles.separator){t6=action&&_jsxs(View,{style:styles.actionContainer,children:[_jsx(Animated.View,{layout:LinearTransition.springify().mass(0.5),style:styles.separator}),action]});$[9]=action;$[10]=styles.actionContainer;$[11]=styles.separator;$[12]=t6;}else{t6=$[12];}var t7;if($[13]!==styles.innerContainer||$[14]!==t5||$[15]!==t6){t7=_jsxs(View,{style:styles.innerContainer,children:[t5,t6]});$[13]=styles.innerContainer;$[14]=t5;$[15]=t6;$[16]=t7;}else{t7=$[16];}var t8;if($[17]!==t1||$[18]!==t7){t8=_jsx(Animated.View,{style:t1,entering:t2,exiting:t3,layout:t4,children:t7});$[17]=t1;$[18]=t7;$[19]=t8;}else{t8=$[19];}return t8;};var createStyles=({theme:{color,spacing,border},styles:{toast}})=>StyleSheet.create({container:{position:"absolute",bottom:toast.bottomInset,start:toast.horizontalInset,end:toast.horizontalInset,backgroundColor:color.backgroundHighlight,padding:spacing.medium,borderRadius:border.radius.loose},innerContainer:{flexDirection:"row",justifyContent:"space-between"},contentContainer:{flex:1},actionContainer:{flex:0,alignItems:"center",flexDirection:"row",height:"100%"},separator:{borderStartWidth:StyleSheet.hairlineWidth,borderStartColor:color.textSecondary,height:"100%",marginHorizontal:spacing.medium}});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/toast/Toast.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{StyleSheet,View}from"react-native";import Animated,{LinearTransition,SlideInDown,SlideOutDown}from"react-native-reanimated";import{useThemedStyles}from"../../hooks";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";var TOAST_ENTERING=SlideInDown.springify().mass(0.5);var TOAST_EXITING=SlideOutDown.springify().mass(0.5);var TOAST_LAYOUT=LinearTransition.springify().mass(0.5);export var Toast=t0=>{var $=_c(17);var action=t0.action,containerStyle=t0.containerStyle,children=t0.children;var _useThemedStyles=useThemedStyles("toast",createStyles),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t1;if($[0]!==containerStyle||$[1]!==styles.container){t1=[styles.container,containerStyle];$[0]=containerStyle;$[1]=styles.container;$[2]=t1;}else{t1=$[2];}var t2;if($[3]!==children||$[4]!==styles.contentContainer){t2=_jsx(View,{style:styles.contentContainer,children:children});$[3]=children;$[4]=styles.contentContainer;$[5]=t2;}else{t2=$[5];}var t3;if($[6]!==action||$[7]!==styles.actionContainer||$[8]!==styles.separator){t3=action&&_jsxs(View,{style:styles.actionContainer,children:[_jsx(Animated.View,{layout:TOAST_LAYOUT,style:styles.separator}),action]});$[6]=action;$[7]=styles.actionContainer;$[8]=styles.separator;$[9]=t3;}else{t3=$[9];}var t4;if($[10]!==styles.innerContainer||$[11]!==t2||$[12]!==t3){t4=_jsxs(View,{style:styles.innerContainer,children:[t2,t3]});$[10]=styles.innerContainer;$[11]=t2;$[12]=t3;$[13]=t4;}else{t4=$[13];}var t5;if($[14]!==t1||$[15]!==t4){t5=_jsx(Animated.View,{style:t1,entering:TOAST_ENTERING,exiting:TOAST_EXITING,layout:TOAST_LAYOUT,children:t4});$[14]=t1;$[15]=t4;$[16]=t5;}else{t5=$[16];}return t5;};var createStyles=({theme:{color,spacing,border},styles:{toast}})=>StyleSheet.create({container:{position:"absolute",bottom:toast.bottomInset,start:toast.horizontalInset,end:toast.horizontalInset,backgroundColor:color.backgroundHighlight,padding:spacing.medium,borderRadius:border.radius.loose},innerContainer:{flexDirection:"row",justifyContent:"space-between"},contentContainer:{flex:1},actionContainer:{flex:0,alignItems:"center",flexDirection:"row",height:"100%"},separator:{borderStartWidth:StyleSheet.hairlineWidth,borderStartColor:color.textSecondary,height:"100%",marginHorizontal:spacing.medium}});
@@ -1 +1 @@
1
- export{useForwardedRef}from"./useForwardedRef";export{useKeyboardHeight}from"./useKeyboardHeight";export{usePersistentKeyboardHeight}from"./usePersistentKeyboardHeight";export{useTheme}from"./useTheme";export{useStyles,useThemedStyles}from"./useThemedStyles";
1
+ export{useForwardedRef}from"./useForwardedRef";export{usePersistentKeyboardHeight}from"./usePersistentKeyboardHeight";export{useTheme}from"./useTheme";export{useStyles,useThemedStyles}from"./useThemedStyles";
@@ -1 +1 @@
1
- import React from"react";export var useForwardedRef=ref=>{var localRef=React.useRef(null);return ref??localRef;};
1
+ import{useRef}from"react";export var useForwardedRef=ref=>{var localRef=useRef(null);return ref??localRef;};
@@ -1 +1 @@
1
- import{c as _c}from"react/compiler-runtime";import{useMemo}from"react";import{MergeStyleSlice}from"../theme/styles";import{useTheme}from"./useTheme";function hasKey(obj,key){return key in obj;}var EMPTY_OPTIONS={};var mergeStylesForComponent=(styles,name,override)=>{if(!hasKey(styles,name)){return{config:undefined,styles};}var base=styles[name];var config=MergeStyleSlice(base,override);return{config,styles:config===base?styles:{...styles,[name]:config}};};var buildComponentResult=(styles,icons,name,config)=>{var hasStyle=hasKey(styles,name);var hasIcons=hasKey(icons,name);if(hasStyle&&hasIcons){return{style:config,icons:icons[name]};}if(hasStyle){return{style:config};}if(hasIcons){return{icons:icons[name]};}return{};};export function useThemedStyles(...t0){var $=_c(10);var args=t0;var first=args[0];var isComponent=typeof first==="string";var componentName=isComponent?first:undefined;var generator=isComponent?args[1]:first;var options=(isComponent?args[2]:args[1])??EMPTY_OPTIONS;var hasProps="props"in options;var componentProps=hasProps?options.props:undefined;var componentStyles="styles"in options?options.styles:undefined;var _useTheme=useTheme(),theme=_useTheme.theme,styles=_useTheme.styles,icons=_useTheme.icons;var name=componentName;var t1;if($[0]!==componentProps||$[1]!==componentStyles||$[2]!==generator||$[3]!==hasProps||$[4]!==icons||$[5]!==isComponent||$[6]!==name||$[7]!==styles||$[8]!==theme){var _ref=isComponent?mergeStylesForComponent(styles,name,componentStyles?.[name]):{config:undefined,styles},config=_ref.config,stylesForGenerator=_ref.styles;var _generated=hasProps?generator({theme,styles:stylesForGenerator,icons},componentProps):generator({theme,styles:stylesForGenerator,icons});t1=isComponent?[_generated,buildComponentResult(styles,icons,name,config)]:_generated;$[0]=componentProps;$[1]=componentStyles;$[2]=generator;$[3]=hasProps;$[4]=icons;$[5]=isComponent;$[6]=name;$[7]=styles;$[8]=theme;$[9]=t1;}else{t1=$[9];}var themedStyles=t1;return themedStyles;}export var useStyles=componentStyles=>{var $=_c(7);var _useTheme2=useTheme(),styles=_useTheme2.styles;var merged=styles;var t0;if($[0]!==componentStyles){t0=Object.keys(componentStyles);$[0]=componentStyles;$[1]=t0;}else{t0=$[1];}var t1=t0;if($[2]!==componentStyles||$[3]!==merged||$[4]!==styles||$[5]!==t1){for(var key of t1){var override=componentStyles[key];if(override===undefined){continue;}var base=styles[key];var next=MergeStyleSlice(base,override);if(next!==base){merged={...merged,[key]:next};}}$[2]=componentStyles;$[3]=merged;$[4]=styles;$[5]=t1;$[6]=merged;}else{merged=$[6];}var themedStyles=merged;return themedStyles;};
1
+ import{c as _c}from"react/compiler-runtime";import{MergeStyleSlice}from"../theme/styles";import{useTheme}from"./useTheme";function hasKey(obj,key){return key in obj;}var EMPTY_OPTIONS={};var mergeStylesForComponent=(styles,name,override)=>{if(!hasKey(styles,name)){return{config:undefined,styles};}var base=styles[name];var config=MergeStyleSlice(base,override);return{config,styles:config===base?styles:{...styles,[name]:config}};};var buildComponentResult=(styles,icons,name,config)=>{var hasStyle=hasKey(styles,name);var hasIcons=hasKey(icons,name);if(hasStyle&&hasIcons){return{style:config,icons:icons[name]};}if(hasStyle){return{style:config};}if(hasIcons){return{icons:icons[name]};}return{};};export function useThemedStyles(...t0){var $=_c(10);var args=t0;var first=args[0];var isComponent=typeof first==="string";var componentName=isComponent?first:undefined;var generator=isComponent?args[1]:first;var options=(isComponent?args[2]:args[1])??EMPTY_OPTIONS;var hasProps="props"in options;var componentProps=hasProps?options.props:undefined;var componentStyles="styles"in options?options.styles:undefined;var _useTheme=useTheme(),theme=_useTheme.theme,styles=_useTheme.styles,icons=_useTheme.icons;var name=componentName;var t1;if($[0]!==componentProps||$[1]!==componentStyles||$[2]!==generator||$[3]!==hasProps||$[4]!==icons||$[5]!==isComponent||$[6]!==name||$[7]!==styles||$[8]!==theme){var _ref=isComponent?mergeStylesForComponent(styles,name,componentStyles?.[name]):{config:undefined,styles},config=_ref.config,stylesForGenerator=_ref.styles;var _generated=hasProps?generator({theme,styles:stylesForGenerator,icons},componentProps):generator({theme,styles:stylesForGenerator,icons});t1=isComponent?[_generated,buildComponentResult(styles,icons,name,config)]:_generated;$[0]=componentProps;$[1]=componentStyles;$[2]=generator;$[3]=hasProps;$[4]=icons;$[5]=isComponent;$[6]=name;$[7]=styles;$[8]=theme;$[9]=t1;}else{t1=$[9];}return t1;}export var useStyles=componentStyles=>{var $=_c(7);var _useTheme2=useTheme(),styles=_useTheme2.styles;var merged=styles;var t0;if($[0]!==componentStyles){t0=Object.keys(componentStyles);$[0]=componentStyles;$[1]=t0;}else{t0=$[1];}var t1=t0;if($[2]!==componentStyles||$[3]!==merged||$[4]!==styles||$[5]!==t1){for(var key of t1){var override=componentStyles[key];if(override===undefined){continue;}var base=styles[key];var next=MergeStyleSlice(base,override);if(next!==base){merged={...merged,[key]:next};}}$[2]=componentStyles;$[3]=merged;$[4]=styles;$[5]=t1;$[6]=merged;}else{merged=$[6];}return merged;};
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/providers/ThemeProvider.tsx";import{c as _c}from"react/compiler-runtime";import{useMemo}from"react";import{createDefaultStyles,MergeIcons,MergeStyles,MergeTheme}from"../theme";import{ThemeContext}from"./ThemeContext";import{jsx as _jsx}from"react/jsx-runtime";export var ThemeProvider=t0=>{var $=_c(14);var initialTheme=t0.theme,initialStyles=t0.styles,initialIcons=t0.icons,children=t0.children;var t1;if($[0]!==initialTheme){t1=MergeTheme(initialTheme);$[0]=initialTheme;$[1]=t1;}else{t1=$[1];}var theme=t1;var t2;if($[2]!==initialStyles||$[3]!==theme){t2=MergeStyles(createDefaultStyles(theme),initialStyles);$[2]=initialStyles;$[3]=theme;$[4]=t2;}else{t2=$[4];}var styles=t2;var t3;if($[5]!==initialIcons){t3=MergeIcons(initialIcons);$[5]=initialIcons;$[6]=t3;}else{t3=$[6];}var icons=t3;var t4;if($[7]!==icons||$[8]!==styles||$[9]!==theme){t4={theme,styles,icons};$[7]=icons;$[8]=styles;$[9]=theme;$[10]=t4;}else{t4=$[10];}var value=t4;var t5;if($[11]!==children||$[12]!==value){t5=_jsx(ThemeContext.Provider,{value:value,children:children});$[11]=children;$[12]=value;$[13]=t5;}else{t5=$[13];}return t5;};
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/providers/ThemeProvider.tsx";import{c as _c}from"react/compiler-runtime";import{createDefaultStyles,MergeIcons,MergeStyles,MergeTheme}from"../theme";import{ThemeContext}from"./ThemeContext";import{jsx as _jsx}from"react/jsx-runtime";export var ThemeProvider=t0=>{var $=_c(13);var initialTheme=t0.theme,initialStyles=t0.styles,initialIcons=t0.icons,children=t0.children;var t1;var theme;if($[0]!==initialStyles||$[1]!==initialTheme){theme=MergeTheme(initialTheme);t1=MergeStyles(createDefaultStyles(theme),initialStyles);$[0]=initialStyles;$[1]=initialTheme;$[2]=t1;$[3]=theme;}else{t1=$[2];theme=$[3];}var styles=t1;var t2;if($[4]!==initialIcons){t2=MergeIcons(initialIcons);$[4]=initialIcons;$[5]=t2;}else{t2=$[5];}var icons=t2;var t3;if($[6]!==icons||$[7]!==styles||$[8]!==theme){t3={theme,styles,icons};$[6]=icons;$[7]=styles;$[8]=theme;$[9]=t3;}else{t3=$[9];}var value=t3;var t4;if($[10]!==children||$[11]!==value){t4=_jsx(ThemeContext.Provider,{value:value,children:children});$[10]=children;$[11]=value;$[12]=t4;}else{t4=$[12];}return t4;};
@@ -1 +1 @@
1
- export var DefaultTheme={font:{family:{sans:"Helvetica",mono:"Helvetica"},size:{tiny:10,small:12,regular:14,large:16,xLarge:20,xxLarge:28}},color:{primary:"#FF4242",primaryDark:"#ff8585",primaryLight:"#ffbdbd",secondary:"#12263A",secondaryHighlight:"#718191",secondaryDisabled:"#B5EAD7",tertiary:"#06bcc1",destructive:"#ff382e",destructiveHighlight:"#ff9e96",light:"#F4EDEA",white:"#ffffff",black:"#000000",red:"#FF9AA2",orange:"#FFDAC1",green:"#E2F0CB",blue:"#B5EAD7",purple:"#C7CEEA",textPrimary:"#12263A",textSecondary:"#22476D",textHighlight:"#30669c",textInverted:"#F4EDEA",textDisabled:"#B5EAD7",textOnPrimary:"#F4EDEA",textOnSecondary:"#F4EDEA",textOnDestructive:"#F4EDEA",background:"#F4EDEA",backgroundHighlight:"#f7f3f2",foreground:"#ffffff",foregroundHighlight:"#B5EAD7",backgroundOverlay:"#000",shadow:"#555",border:"#E2E8F0",inputBackground:"#e4d8d4",inputBackgroundDisabled:"#f0e9e2ff",inputText:"#12263A",pressOverlay:"rgba(0, 0, 0, 0.1)",alert:"#d63333",error:"#d63333",success:"#4ed633",warning:"#f5c61d"},spacing:{screenContentTop:0,pageHorizontal:16,pageBottom:80,pageTop:16,navigationActionHorizontal:0,large:24,medium:16,small:8,tiny:4},border:{radius:{tight:4,regular:8,loose:16},width:{thick:4,regular:2,thin:1}}};export function MergeTheme(first,second){return{...DefaultTheme,...first,...second,color:{...DefaultTheme.color,...first?.color,...second?.color},font:{...DefaultTheme.font,...first?.font,...second?.font,family:{...DefaultTheme.font.family,...first?.font?.family,...second?.font?.family},size:{...DefaultTheme.font.size,...first?.font?.size,...second?.font?.size}},spacing:{...DefaultTheme.spacing,...first?.spacing,...second?.spacing},border:{...DefaultTheme.border,...first?.border,...second?.border,radius:{...DefaultTheme.border.radius,...first?.border?.radius,...second?.border?.radius},width:{...DefaultTheme.border.width,...first?.border?.width,...second?.border?.width}}};}
1
+ import{Platform}from"react-native";export var DefaultTheme={font:{family:{sans:Platform.select({ios:"System",android:"sans-serif",default:"system-ui"}),mono:Platform.select({ios:"Menlo",android:"monospace",default:"monospace"})},size:{tiny:10,small:12,regular:14,large:16,xLarge:20,xxLarge:28}},color:{primary:"#FF4242",primaryDark:"#ff8585",primaryLight:"#ffbdbd",secondary:"#12263A",secondaryHighlight:"#718191",secondaryDisabled:"#B5EAD7",tertiary:"#06bcc1",destructive:"#ff382e",destructiveHighlight:"#ff9e96",light:"#F4EDEA",white:"#ffffff",black:"#000000",red:"#FF9AA2",orange:"#FFDAC1",green:"#E2F0CB",blue:"#B5EAD7",purple:"#C7CEEA",textPrimary:"#12263A",textSecondary:"#22476D",textHighlight:"#30669c",textInverted:"#F4EDEA",textDisabled:"#B5EAD7",textOnPrimary:"#F4EDEA",textOnSecondary:"#F4EDEA",textOnDestructive:"#F4EDEA",background:"#F4EDEA",backgroundHighlight:"#f7f3f2",foreground:"#ffffff",foregroundHighlight:"#B5EAD7",backgroundOverlay:"#000",shadow:"#555",border:"#E2E8F0",inputBackground:"#e4d8d4",inputBackgroundDisabled:"#f0e9e2ff",inputText:"#12263A",pressOverlay:"rgba(0, 0, 0, 0.1)",alert:"#d63333",error:"#d63333",success:"#4ed633",warning:"#f5c61d"},spacing:{screenContentTop:0,pageHorizontal:16,pageBottom:80,pageTop:16,navigationActionHorizontal:0,large:24,medium:16,small:8,tiny:4},border:{radius:{tight:4,regular:8,loose:16},width:{thick:4,regular:2,thin:1}}};export function MergeTheme(first,second){return{...DefaultTheme,...first,...second,color:{...DefaultTheme.color,...first?.color,...second?.color},font:{...DefaultTheme.font,...first?.font,...second?.font,family:{...DefaultTheme.font.family,...first?.font?.family,...second?.font?.family},size:{...DefaultTheme.font.size,...first?.font?.size,...second?.font?.size}},spacing:{...DefaultTheme.spacing,...first?.spacing,...second?.spacing},border:{...DefaultTheme.border,...first?.border,...second?.border,radius:{...DefaultTheme.border.radius,...first?.border?.radius,...second?.border?.radius},width:{...DefaultTheme.border.width,...first?.border?.width,...second?.border?.width}}};}
@@ -1,4 +1,4 @@
1
- import type React from "react";
1
+ import type { FC } from "react";
2
2
  import { type ColorValue, type StyleProp, type ViewStyle } from "react-native";
3
3
  export type AlertVariant = "primary" | "secondary";
4
4
  export type AlertIndicatorStyles = {
@@ -12,5 +12,5 @@ export interface AlertIndicatorProps {
12
12
  variant?: AlertVariant;
13
13
  style?: StyleProp<ViewStyle>;
14
14
  }
15
- export declare const AlertIndicator: React.FC<AlertIndicatorProps>;
15
+ export declare const AlertIndicator: FC<AlertIndicatorProps>;
16
16
  //# sourceMappingURL=AlertIndicator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AlertIndicator.d.ts","sourceRoot":"","sources":["../../../../src/components/alert/AlertIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACH,KAAK,UAAU,EACf,KAAK,SAAS,EAGd,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AAKtB,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,WAAW,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;IACxC,eAAe,EAAE,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;CACrD,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAChC;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgBxD,CAAC"}
1
+ {"version":3,"file":"AlertIndicator.d.ts","sourceRoot":"","sources":["../../../../src/components/alert/AlertIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EACH,KAAK,UAAU,EACf,KAAK,SAAS,EAGd,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AAKtB,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,WAAW,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;IACxC,eAAe,EAAE,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;CACrD,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAChC;AAED,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAgBlD,CAAC"}
@@ -1,4 +1,4 @@
1
- import type React from "react";
1
+ import type { FC, ReactNode } from "react";
2
2
  import { type ColorValue, type StyleProp, type TextStyle, type ViewStyle } from "react-native";
3
3
  import type { DeepPartial } from "@reillymc/es-utils";
4
4
  type AvatarSize = "small" | "regular" | "large";
@@ -28,10 +28,10 @@ export interface AvatarProps {
28
28
  */
29
29
  imageUri?: string;
30
30
  size?: AvatarSize;
31
- action?: React.ReactNode;
31
+ action?: ReactNode;
32
32
  style?: DeepPartial<AvatarStyles>;
33
33
  containerStyle?: StyleProp<ViewStyle>;
34
34
  }
35
- export declare const Avatar: React.FC<AvatarProps>;
35
+ export declare const Avatar: FC<AvatarProps>;
36
36
  export {};
37
37
  //# sourceMappingURL=Avatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACH,KAAK,UAAU,EAEf,KAAK,SAAS,EAEd,KAAK,SAAS,EAEd,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAoBtD,KAAK,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAEhD,MAAM,MAAM,YAAY,GAAG;IACvB,IAAI,EAAE;SAAG,GAAG,IAAI,UAAU,GAAG,MAAM;KAAE,CAAC;IACtC,QAAQ,EAAE;QACN,UAAU,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;QACpC,QAAQ,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;KACxC,CAAC;IACF,KAAK,EAAE;QACH,UAAU,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;QACpC,QAAQ,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,MAAM,EAAE,KAAK,CAAC;QAAE,UAAU,EAAE,UAAU,CAAC;QAAC,UAAU,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;CACrE,CAAC;AAEF,MAAM,WAAW,WAAW;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB,KAAK,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IAElC,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAoCxC,CAAC"}
1
+ {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EACH,KAAK,UAAU,EAEf,KAAK,SAAS,EAEd,KAAK,SAAS,EAEd,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAsBtD,KAAK,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAEhD,MAAM,MAAM,YAAY,GAAG;IACvB,IAAI,EAAE;SAAG,GAAG,IAAI,UAAU,GAAG,MAAM;KAAE,CAAC;IACtC,QAAQ,EAAE;QACN,UAAU,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;QACpC,QAAQ,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;KACxC,CAAC;IACF,KAAK,EAAE;QACH,UAAU,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;QACpC,QAAQ,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,MAAM,EAAE,KAAK,CAAC;QAAE,UAAU,EAAE,UAAU,CAAC;QAAC,UAAU,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;CACrE,CAAC;AAEF,MAAM,WAAW,WAAW;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB,KAAK,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IAElC,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAoClC,CAAC"}
@@ -1,9 +1,6 @@
1
1
  import { type FC, type ReactNode, type RefObject } from "react";
2
2
  import { type StyleProp, type TextInput, type ViewStyle } from "react-native";
3
- export type FloatingContainerStyles = {
4
- parentMargin: number;
5
- };
6
- type PanelLayout = {
3
+ export type PanelLayout = {
7
4
  parentY: number;
8
5
  parentHeight: number;
9
6
  inverted: boolean;
@@ -11,13 +8,15 @@ type PanelLayout = {
11
8
  parentX?: number;
12
9
  parentWidth?: number;
13
10
  };
11
+ export type FloatingContainerStyles = {
12
+ parentMargin: number;
13
+ };
14
14
  export interface FloatingContainerProps {
15
15
  parentRef: RefObject<TextInput | null>;
16
16
  show?: boolean;
17
17
  position?: "auto" | "above";
18
- children?: ReactNode | ((panelLayout: Pick<PanelLayout, "inverted">) => ReactNode);
18
+ children?: ReactNode | ((panelLayout: PanelLayout) => ReactNode);
19
19
  containerStyle?: StyleProp<ViewStyle>;
20
20
  }
21
21
  export declare const FloatingContainer: FC<FloatingContainerProps>;
22
- export {};
23
22
  //# sourceMappingURL=FloatingContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FloatingContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/container/FloatingContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,EAAE,EACP,KAAK,SAAS,EACd,KAAK,SAAS,EAIjB,MAAM,OAAO,CAAC;AACf,OAAO,EAGH,KAAK,SAAS,EAEd,KAAK,SAAS,EAGd,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AAKtB,MAAM,MAAM,uBAAuB,GAAG;IAClC,YAAY,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACnC,SAAS,EAAE,SAAS,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IACvC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,QAAQ,CAAC,EACH,SAAS,GACT,CAAC,CAAC,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,SAAS,CAAC,CAAC;IAClE,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAqExD,CAAC"}
1
+ {"version":3,"file":"FloatingContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/container/FloatingContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,EAAE,EACP,KAAK,SAAS,EACd,KAAK,SAAS,EAGjB,MAAM,OAAO,CAAC;AACf,OAAO,EAKH,KAAK,SAAS,EAEd,KAAK,SAAS,EAGd,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AAMtB,MAAM,MAAM,WAAW,GAAG;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAClC,YAAY,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACnC,SAAS,EAAE,SAAS,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IACvC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,WAAW,EAAE,WAAW,KAAK,SAAS,CAAC,CAAC;IACjE,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACzC;AASD,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA+ExD,CAAC"}
@@ -1,17 +1,4 @@
1
- import { type FC, type ReactNode, type RefObject } from "react";
2
- import { type StyleProp, type TextInput, type ViewStyle } from "react-native";
3
- export type FloatingContainerStyles = {
4
- parentMargin: number;
5
- };
6
- type PanelLayout = {
7
- parentHeight: number;
8
- inverted: boolean;
9
- };
10
- export interface FloatingContainerProps {
11
- parentRef: RefObject<TextInput | null>;
12
- children?: ReactNode | ((panelLayout: PanelLayout) => ReactNode);
13
- containerStyle?: StyleProp<ViewStyle>;
14
- }
1
+ import { type FC } from "react";
2
+ import type { FloatingContainerProps } from "./FloatingContainer";
15
3
  export declare const FloatingContainer: FC<FloatingContainerProps>;
16
- export {};
17
4
  //# sourceMappingURL=FloatingContainer.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FloatingContainer.web.d.ts","sourceRoot":"","sources":["../../../../src/components/container/FloatingContainer.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,EAAE,EACP,KAAK,SAAS,EACd,KAAK,SAAS,EAGjB,MAAM,OAAO,CAAC;AACf,OAAO,EAEH,KAAK,SAAS,EAEd,KAAK,SAAS,EAGd,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AAStB,MAAM,MAAM,uBAAuB,GAAG;IAClC,YAAY,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,KAAK,WAAW,GAAG;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACnC,SAAS,EAAE,SAAS,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,WAAW,EAAE,WAAW,KAAK,SAAS,CAAC,CAAC;IACjE,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACzC;AAOD,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA4CxD,CAAC"}
1
+ {"version":3,"file":"FloatingContainer.web.d.ts","sourceRoot":"","sources":["../../../../src/components/container/FloatingContainer.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAoB,MAAM,OAAO,CAAC;AAclD,OAAO,KAAK,EAAE,sBAAsB,EAAe,MAAM,qBAAqB,CAAC;AAS/E,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAgDxD,CAAC"}
@@ -1,10 +1,10 @@
1
- import type React from "react";
1
+ import type { FunctionComponent, ReactNode } from "react";
2
2
  import { type StyleProp, type ViewStyle } from "react-native";
3
3
  export interface PanelProps {
4
4
  collapsed: boolean | undefined;
5
5
  style?: StyleProp<ViewStyle>;
6
- header?: React.ReactNode;
7
- children?: React.ReactNode;
6
+ header?: ReactNode;
7
+ children?: ReactNode;
8
8
  }
9
- export declare const Panel: React.FunctionComponent<PanelProps>;
9
+ export declare const Panel: FunctionComponent<PanelProps>;
10
10
  //# sourceMappingURL=Panel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../../src/components/container/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,SAAS,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG1E,MAAM,WAAW,UAAU;IACvB,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAMD,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAerD,CAAC"}
1
+ {"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../../src/components/container/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,KAAK,SAAS,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG1E,MAAM,WAAW,UAAU;IACvB,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAMD,eAAO,MAAM,KAAK,EAAE,iBAAiB,CAAC,UAAU,CAe/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownInputBase.d.ts","sourceRoot":"","sources":["../../../../src/components/input/DropdownInputBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAa,SAAS,IAAI,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAE7E,OAAO,KAAK,EACR,SAAS,EACT,gBAAgB,EAChB,eAAe,EAClB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAqB,KAAK,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAE9E,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7D,MAAM,MAAM,sBAAsB,CAAC,CAAC,GAAG,MAAM,IAAI,IAAI,CACjD,cAAc,EACZ,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,WAAW,GACX,iBAAiB,GACjB,WAAW,GACX,gBAAgB,GAChB,UAAU,GACV,SAAS,GACT,YAAY,CACjB,GAAG;IACA,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAE5B;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,MAAM,GACnC,eAAe,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAC3B,gBAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAEhC;;;;OAIG;IACH,eAAe,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC;IAE7C;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,aAAa,CAAC,EAAE,sBAAsB,CAAC,UAAU,CAAC,CAAC;IAEnD;;OAEG;IACH,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,KAAK,IAAI,CAAC;IAEhD,GAAG,CAAC,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;CAC5C,CAAC;AAIF,eAAO,MAAM,iBAAiB,GAAI,CAAC,EAAG,6JAanC,sBAAsB,CAAC,CAAC,CAAC,gCAgJ3B,CAAC"}
1
+ {"version":3,"file":"DropdownInputBase.d.ts","sourceRoot":"","sources":["../../../../src/components/input/DropdownInputBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA8B,MAAM,OAAO,CAAC;AACnE,OAAO,KAAK,EAAa,SAAS,IAAI,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAE7E,OAAO,KAAK,EACR,SAAS,EACT,gBAAgB,EAChB,eAAe,EAClB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAqB,KAAK,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAE9E,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7D,MAAM,MAAM,sBAAsB,CAAC,CAAC,GAAG,MAAM,IAAI,IAAI,CACjD,cAAc,EACZ,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,WAAW,GACX,iBAAiB,GACjB,WAAW,GACX,gBAAgB,GAChB,UAAU,GACV,SAAS,GACT,YAAY,CACjB,GAAG;IACA,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAE5B;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,MAAM,GACnC,eAAe,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAC3B,gBAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAEhC;;;;OAIG;IACH,eAAe,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC;IAE7C;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,aAAa,CAAC,EAAE,sBAAsB,CAAC,UAAU,CAAC,CAAC;IAEnD;;OAEG;IACH,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,KAAK,IAAI,CAAC;IAEhD,GAAG,CAAC,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;CAC5C,CAAC;AAuBF,eAAO,MAAM,iBAAiB,GAAI,CAAC,EAAG,6JAanC,sBAAsB,CAAC,CAAC,CAAC,gCAiI3B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type FC, type Ref } from "react";
1
+ import type { FC, Ref } from "react";
2
2
  import { type TextInput as DefaultTextInput } from "react-native";
3
3
  import type { ComponentIconAssets } from "../../theme";
4
4
  import { type InputScaffoldFieldProps } from "./InputScaffold";
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../src/components/input/NumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,GAAG,EAAe,MAAM,OAAO,CAAC;AACvD,OAAO,EACH,KAAK,SAAS,IAAI,gBAAgB,EAGrC,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAIvD,OAAO,EAAiB,KAAK,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE/E,MAAM,MAAM,WAAW,GAAG;IAAE,cAAc,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AACtE,MAAM,MAAM,UAAU,GAAG;IAAE,cAAc,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC;AAC9E,MAAM,MAAM,aAAa,GAAG;IACxB,cAAc,EAAE,UAAU,CAAC;IAC3B,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC,CAAC;AAEF,KAAK,eAAe,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;AA2CvD,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,aAAa,GAAG,UAAU,CAAC;AAaxE,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,CAC9C,QAAQ,GAAG,OAAO,GAAG,UAAU,CAClC,CAAC;AAEF,MAAM,WAAW,gBACb,SAAQ,IAAI,CACJ,oBAAoB,EAClB,UAAU,GACV,aAAa,GACb,WAAW,GACX,iBAAiB,GACjB,iBAAiB,GACjB,SAAS,CACd,EACD,uBAAuB;IAC3B,YAAY,CAAC,EAAE,aAAa,GAAG,YAAY,CAAC;IAE5C,sBAAsB,CAAC,EAAE,eAAe,EAAE,CAAC;IAE3C,KAAK,CAAC,EAAE,gBAAgB,CAAC;IAEzB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IAEnC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC5C;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAmL5C,CAAC"}
1
+ {"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../src/components/input/NumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EACH,KAAK,SAAS,IAAI,gBAAgB,EAGrC,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAIvD,OAAO,EAAiB,KAAK,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE/E,MAAM,MAAM,WAAW,GAAG;IAAE,cAAc,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AACtE,MAAM,MAAM,UAAU,GAAG;IAAE,cAAc,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC;AAC9E,MAAM,MAAM,aAAa,GAAG;IACxB,cAAc,EAAE,UAAU,CAAC;IAC3B,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC,CAAC;AAEF,KAAK,eAAe,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;AA2CvD,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,aAAa,GAAG,UAAU,CAAC;AAaxE,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,CAC9C,QAAQ,GAAG,OAAO,GAAG,UAAU,CAClC,CAAC;AAEF,MAAM,WAAW,gBACb,SAAQ,IAAI,CACJ,oBAAoB,EAClB,UAAU,GACV,aAAa,GACb,WAAW,GACX,iBAAiB,GACjB,iBAAiB,GACjB,SAAS,CACd,EACD,uBAAuB;IAC3B,YAAY,CAAC,EAAE,aAAa,GAAG,YAAY,CAAC;IAE5C,sBAAsB,CAAC,EAAE,eAAe,EAAE,CAAC;IAE3C,KAAK,CAAC,EAAE,gBAAgB,CAAC;IAEzB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IAEnC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC5C;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAgL5C,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type FC, type Ref } from "react";
1
+ import type { FC, Ref } from "react";
2
2
  import type { TextInput, TextInputChangeEvent } from "react-native";
3
3
  import { type InputBaseProps } from "./InputBase";
4
4
  export type NumberInputBaseStyles = never;
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInputBase.d.ts","sourceRoot":"","sources":["../../../../src/components/input/NumberInputBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,GAAG,EAAe,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7D,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAa1C,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IACxD,YAAY,CAAC,EAAE,aAAa,GAAG,YAAY,CAAC;IAE5C,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,GAAG,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAEtC;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAChD;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAuBpD,CAAC"}
1
+ {"version":3,"file":"NumberInputBase.d.ts","sourceRoot":"","sources":["../../../../src/components/input/NumberInputBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7D,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAa1C,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IACxD,YAAY,CAAC,EAAE,aAAa,GAAG,YAAY,CAAC;IAE5C,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,GAAG,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAEtC;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAChD;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAgBpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RatingInput.d.ts","sourceRoot":"","sources":["../../../../src/components/input/RatingInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,EAAE,EAKV,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAGnB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAiB,KAAK,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAE9E,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC;AAErC,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;AAEtE,MAAM,WAAW,gBACb,SAAQ,uBAAuB,EAC3B,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,SAAS,CAAC,EAC5C,IAAI,CAAC,WAAW,EAAE,KAAK,GAAG,OAAO,GAAG,OAAO,CAAC;IAChD;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AASD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAsI5C,CAAC"}
1
+ {"version":3,"file":"RatingInput.d.ts","sourceRoot":"","sources":["../../../../src/components/input/RatingInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,EAAE,EAKV,MAAM,OAAO,CAAC;AAaf,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAGnB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAiB,KAAK,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAE9E,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC;AAErC,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;AAEtE,MAAM,WAAW,gBACb,SAAQ,uBAAuB,EAC3B,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,SAAS,CAAC,EAC5C,IAAI,CAAC,WAAW,EAAE,KAAK,GAAG,OAAO,GAAG,OAAO,CAAC;IAChD;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAoCD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAyH5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/components/listItem/ListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAEH,KAAK,SAAS,EAGd,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AAItB,OAAO,EAAsB,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAG5E,KAAK,eAAe,GAAG,SAAS,GAAG,SAAS,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,aAAa;IAC1B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,eAAe,CAAC;IAE1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAE/B;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB,YAAY,CAAC,EAAE,uBAAuB,CAAC,cAAc,CAAC,CAAC;IACvD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,qBAAqB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAID,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAyDtC,CAAC"}
1
+ {"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/components/listItem/ListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,KAAK,SAAS,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKhF,OAAO,EAAsB,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAG5E,KAAK,eAAe,GAAG,SAAS,GAAG,SAAS,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,aAAa;IAC1B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,eAAe,CAAC;IAE1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAE/B;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB,YAAY,CAAC,EAAE,uBAAuB,CAAC,cAAc,CAAC,CAAC;IACvD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,qBAAqB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAID,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA6DtC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,MAAM,MAAM,cAAc,GAAG;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,WAAW,aAAa;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA8BtC,CAAC"}
1
+ {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAOhC,MAAM,MAAM,cAAc,GAAG;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,WAAW,aAAa;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA+BtC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SwipeableContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/swipe/SwipeableContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAmB,MAAM,OAAO,CAAC;AAChF,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKhE,MAAM,WAAW,uBAAuB;IACpC;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAChC,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAID,eAAO,MAAM,kBAAkB,EAAE,iBAAiB,CAAC,uBAAuB,CAoCzE,CAAC"}
1
+ {"version":3,"file":"SwipeableContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/swipe/SwipeableContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,SAAS,EAEjB,MAAM,OAAO,CAAC;AACf,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKhE,MAAM,WAAW,uBAAuB;IACpC;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAChC,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAID,eAAO,MAAM,kBAAkB,EAAE,iBAAiB,CAAC,uBAAuB,CAoCzE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAEH,KAAK,SAAS,EAEd,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AAKtB,MAAM,WAAW,SAAS;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,QAAQ;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,GAAG,EAAE,EAAE,CAAC,QAAQ,CAe5B,CAAC"}
1
+ {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,KAAK,SAAS,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAM1E,MAAM,WAAW,SAAS;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,QAAQ;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,GAAG,EAAE,EAAE,CAAC,QAAQ,CAc5B,CAAC"}
@@ -1,11 +1,7 @@
1
- import type React from "react";
1
+ import type { FunctionComponent } from "react";
2
2
  import { type TextStyle } from "react-native";
3
3
  import type { DeepPartial } from "@reillymc/es-utils";
4
4
  import { type TextProps, type TextVariant } from "./Text";
5
- /**
6
- * Escapes any characters that would interfere with RegEx processing.
7
- */
8
- export declare const EscapeForRegexProcessing: (string: string) => string;
9
5
  export interface HighlightedTextStyles {
10
6
  highlightedWeight: Record<TextVariant, TextStyle["fontWeight"]>;
11
7
  }
@@ -15,5 +11,5 @@ export interface HighlightedTextProps extends Pick<TextProps, "variant"> {
15
11
  style?: DeepPartial<HighlightedTextStyles>;
16
12
  highlight?: string;
17
13
  }
18
- export declare const HighlightedText: React.FunctionComponent<HighlightedTextProps>;
14
+ export declare const HighlightedText: FunctionComponent<HighlightedTextProps>;
19
15
  //# sourceMappingURL=HighlightedText.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HighlightedText.d.ts","sourceRoot":"","sources":["../../../../src/components/text/HighlightedText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,QAAQ,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,QAAQ,MAAM,WACN,CAAC;AAElD,MAAM,WAAW,qBAAqB;IAClC,iBAAiB,EAAE,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;CACnE;AACD,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;IACpE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,oBAAoB,CAsCzE,CAAC"}
1
+ {"version":3,"file":"HighlightedText.d.ts","sourceRoot":"","sources":["../../../../src/components/text/HighlightedText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,QAAQ,CAAC;AAsChE,MAAM,WAAW,qBAAqB;IAClC,iBAAiB,EAAE,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;CACnE;AACD,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;IACpE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,EAAE,iBAAiB,CAAC,oBAAoB,CAoCnE,CAAC"}
@@ -1,13 +1,13 @@
1
- import type React from "react";
1
+ import type { FunctionComponent, ReactNode } from "react";
2
2
  import { type StyleProp, type ViewStyle } from "react-native";
3
3
  export interface ToastStyles {
4
4
  horizontalInset: number;
5
5
  bottomInset: number;
6
6
  }
7
7
  export interface ToastProps {
8
- action?: React.ReactNode;
8
+ action?: ReactNode;
9
9
  containerStyle?: StyleProp<ViewStyle>;
10
- children?: React.ReactNode;
10
+ children?: ReactNode;
11
11
  }
12
- export declare const Toast: React.FunctionComponent<ToastProps>;
12
+ export declare const Toast: FunctionComponent<ToastProps>;
13
13
  //# sourceMappingURL=Toast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,SAAS,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAShF,MAAM,WAAW,WAAW;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACvB;AACD,MAAM,WAAW,UAAU;IACvB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,UAAU,CA4BrD,CAAC"}
1
+ {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,KAAK,SAAS,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAShF,MAAM,WAAW,WAAW;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACvB;AACD,MAAM,WAAW,UAAU;IACvB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAMD,eAAO,MAAM,KAAK,EAAE,iBAAiB,CAAC,UAAU,CA4B/C,CAAC"}
@@ -1,5 +1,4 @@
1
1
  export { useForwardedRef } from "./useForwardedRef";
2
- export { useKeyboardHeight } from "./useKeyboardHeight";
3
2
  export { usePersistentKeyboardHeight } from "./usePersistentKeyboardHeight";
4
3
  export { useTheme } from "./useTheme";
5
4
  export { type ThemedStyles, useStyles, useThemedStyles, } from "./useThemedStyles";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EACH,KAAK,YAAY,EACjB,SAAS,EACT,eAAe,GAClB,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EACH,KAAK,YAAY,EACjB,SAAS,EACT,eAAe,GAClB,MAAM,mBAAmB,CAAC"}
@@ -1,3 +1,3 @@
1
- import React, { type RefObject } from "react";
2
- export declare const useForwardedRef: <T>(ref: RefObject<T> | undefined | null) => React.RefObject<T | null>;
1
+ import { type RefObject } from "react";
2
+ export declare const useForwardedRef: <T>(ref: RefObject<T> | undefined | null) => RefObject<T | null>;
3
3
  //# sourceMappingURL=useForwardedRef.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useForwardedRef.d.ts","sourceRoot":"","sources":["../../../src/hooks/useForwardedRef.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9C,eAAO,MAAM,eAAe,GAAI,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,8BAItE,CAAC"}
1
+ {"version":3,"file":"useForwardedRef.d.ts","sourceRoot":"","sources":["../../../src/hooks/useForwardedRef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAC;AAE/C,eAAO,MAAM,eAAe,GAAI,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,wBAItE,CAAC"}
@@ -1,3 +1,4 @@
1
+ /** biome-ignore-all lint/suspicious/noExplicitAny: any prop definition is permitted */
1
2
  import type { ThemeContextDefinition as ThemedStyles } from "../providers";
2
3
  import type { Icons, StyleOverrides, Styles } from "../theme";
3
4
  export type { ThemedStyles };
@@ -1 +1 @@
1
- {"version":3,"file":"useThemedStyles.d.ts","sourceRoot":"","sources":["../../../src/hooks/useThemedStyles.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAI9D,YAAY,EAAE,YAAY,EAAE,CAAC;AAS7B,KAAK,YAAY,GAAG,MAAM,MAAM,CAAC;AACjC,KAAK,WAAW,GAAG,MAAM,KAAK,CAAC;AAC/B,KAAK,YAAY,GAAG,YAAY,GAAG,WAAW,CAAC;AAE/C,KAAK,iBAAiB,GAAG;KACpB,CAAC,IAAI,MAAM,MAAM,GAAG,MAAM,KAAK,GAAG,CAAC,SAAS,MAAM,MAAM,GACnD,CAAC,SAAS,MAAM,KAAK,GACjB;QACI,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;QACjB,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;KACnB,GACD;QACI,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;KACpB,GACL,CAAC,SAAS,MAAM,KAAK,GACnB;QACI,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;KACnB,GACD,KAAK;CAChB,CAAC;AAEF,KAAK,WAAW,CAAC,CAAC,SAAS,MAAM,iBAAiB,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAE3E,KAAK,eAAe,CAAC,CAAC,SAAS,YAAY,EAAE,CAAC,GAAG,SAAS,IAAI;IAC1D,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC;CAC5B,CAAC;AACF,KAAK,YAAY,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AAE5C,KAAK,eAAe,CAAC,CAAC,SAAS,YAAY,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;AAE7D,KAAK,cAAc,CAAC,CAAC,SAAS,YAAY,IACtC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAE9D,KAAK,gBAAgB,CAAC,CAAC,SAAS,YAAY,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS;IACxE,KAAK;CACR,GACK;IACI,OAAO,CAAC,EAAE;QACN,MAAM,CAAC,EAAE,cAAc,CAAC;KAC3B;CACJ,GACD;IACI,OAAO,EAAE;QACL,MAAM,CAAC,EAAE,cAAc,CAAC;QACxB,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;KAC5B;CACJ,CAAC;AAwDR;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,YAAY,EAAE,CAAC,SAAS,YAAY,EAC1E,aAAa,EAAE,CAAC,EAChB,SAAS,EAAE,CAAC,EACZ,GAAG,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAChC,eAAe,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1C,wBAAgB,eAAe,CAAC,CAAC,SAAS,YAAY,EAClD,SAAS,EAAE,CAAC,EACZ,GAAG,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAChC,eAAe,CAAC,CAAC,CAAC,CAAC;AA8CtB,eAAO,MAAM,SAAS,GAAI,iBAAiB,cAAc,WAmBxD,CAAC"}
1
+ {"version":3,"file":"useThemedStyles.d.ts","sourceRoot":"","sources":["../../../src/hooks/useThemedStyles.tsx"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,OAAO,KAAK,EAAE,sBAAsB,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAI9D,YAAY,EAAE,YAAY,EAAE,CAAC;AAS7B,KAAK,YAAY,GAAG,MAAM,MAAM,CAAC;AACjC,KAAK,WAAW,GAAG,MAAM,KAAK,CAAC;AAC/B,KAAK,YAAY,GAAG,YAAY,GAAG,WAAW,CAAC;AAE/C,KAAK,iBAAiB,GAAG;KACpB,CAAC,IAAI,MAAM,MAAM,GAAG,MAAM,KAAK,GAAG,CAAC,SAAS,MAAM,MAAM,GACnD,CAAC,SAAS,MAAM,KAAK,GACjB;QACI,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;QACjB,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;KACnB,GACD;QACI,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;KACpB,GACL,CAAC,SAAS,MAAM,KAAK,GACnB;QACI,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;KACnB,GACD,KAAK;CAChB,CAAC;AAEF,KAAK,WAAW,CAAC,CAAC,SAAS,MAAM,iBAAiB,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAE3E,KAAK,eAAe,CAAC,CAAC,SAAS,YAAY,EAAE,CAAC,GAAG,SAAS,IAAI;IAC1D,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC;CAC5B,CAAC;AACF,KAAK,YAAY,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AAE5C,KAAK,eAAe,CAAC,CAAC,SAAS,YAAY,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;AAE7D,KAAK,cAAc,CAAC,CAAC,SAAS,YAAY,IACtC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAE9D,KAAK,gBAAgB,CAAC,CAAC,SAAS,YAAY,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS;IACxE,KAAK;CACR,GACK;IACI,OAAO,CAAC,EAAE;QACN,MAAM,CAAC,EAAE,cAAc,CAAC;KAC3B;CACJ,GACD;IACI,OAAO,EAAE;QACL,MAAM,CAAC,EAAE,cAAc,CAAC;QACxB,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;KAC5B;CACJ,CAAC;AAwDR;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,YAAY,EAAE,CAAC,SAAS,YAAY,EAC1E,aAAa,EAAE,CAAC,EAChB,SAAS,EAAE,CAAC,EACZ,GAAG,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAChC,eAAe,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1C,wBAAgB,eAAe,CAAC,CAAC,SAAS,YAAY,EAClD,SAAS,EAAE,CAAC,EACZ,GAAG,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAChC,eAAe,CAAC,CAAC,CAAC,CAAC;AAgCtB,eAAO,MAAM,SAAS,GAAI,iBAAiB,cAAc,WAgBxD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type FC, type ReactNode } from "react";
1
+ import type { FC, ReactNode } from "react";
2
2
  import type { DeepPartial } from "@reillymc/es-utils";
3
3
  import { type Icons, type StyleOverrides, type Theme } from "../theme";
4
4
  interface ThemeProviderProps {
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAEH,KAAK,KAAK,EAIV,KAAK,cAAc,EACnB,KAAK,KAAK,EACb,MAAM,UAAU,CAAC;AAGlB,UAAU,kBAAkB;IACxB,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAqBhD,CAAC"}
1
+ {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAEH,KAAK,KAAK,EAIV,KAAK,cAAc,EACnB,KAAK,KAAK,EACb,MAAM,UAAU,CAAC;AAGlB,UAAU,kBAAkB;IACxB,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAehD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,MAAM,KAAK,GAAG,OAAO,YAAY,CAAC;AAExC,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGxB,CAAC;AAEF,wBAAgB,UAAU,CAAC,SAAS,CAAC,EAAE,cAAc,GAAG,KAAK,CAAC;AAC9D,wBAAgB,UAAU,CACtB,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,cAAc,GAAG,SAAS,GACnC,KAAK,CAAC"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,MAAM,KAAK,GAAG,OAAO,YAAY,CAAC;AAExC,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4GxB,CAAC;AAEF,wBAAgB,UAAU,CAAC,SAAS,CAAC,EAAE,cAAc,GAAG,KAAK,CAAC;AAC9D,wBAAgB,UAAU,CACtB,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,cAAc,GAAG,SAAS,GACnC,KAAK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reillymc/react-native-components",
3
- "version": "0.11.4",
3
+ "version": "0.11.5",
4
4
  "description": "A collection of React Native components and resources",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -101,6 +101,7 @@
101
101
  "react-native-reanimated": "^4.3",
102
102
  "react-native-safe-area-context": "^5.7",
103
103
  "react-native-screens": "^4.23",
104
- "react-native-svg": "^15.15"
104
+ "react-native-svg": "^15.15",
105
+ "react-native-worklets": "*"
105
106
  }
106
107
  }
@@ -1 +0,0 @@
1
- function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{useEffect,useState}from"react";import{Keyboard,Platform}from"react-native";var isIos=Platform.OS==="ios";export var useKeyboardHeight=()=>{var $=_c(4);var _useState=useState(0),_useState2=_slicedToArray(_useState,2),keyboardHeight=_useState2[0],setKeyboardHeight=_useState2[1];var t0;var t1;if($[0]===Symbol.for("react.memo_cache_sentinel")){t0=()=>{var showEvent=isIos?"keyboardWillShow":"keyboardDidShow";var hideEvent=isIos?"keyboardWillHide":"keyboardDidHide";var showListener=Keyboard.addListener(showEvent,e=>{setKeyboardHeight(e.endCoordinates.height);});var hideListener=Keyboard.addListener(hideEvent,()=>{setKeyboardHeight(0);});return()=>{showListener.remove();hideListener.remove();};};t1=[];$[0]=t0;$[1]=t1;}else{t0=$[0];t1=$[1];}useEffect(t0,t1);var t2;if($[2]!==keyboardHeight){t2={keyboardHeight};$[2]=keyboardHeight;$[3]=t2;}else{t2=$[3];}return t2;};
@@ -1,4 +0,0 @@
1
- export declare const useKeyboardHeight: () => {
2
- keyboardHeight: number;
3
- };
4
- //# sourceMappingURL=useKeyboardHeight.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/hooks/useKeyboardHeight.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB;;CAqB7B,CAAC"}