@reillymc/react-native-components 0.11.4 → 0.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/THIRD_PARTY_NOTICES.md +38 -0
- package/lib/components/avatar/Avatar.js +1 -1
- package/lib/components/container/FloatingContainer.js +1 -1
- package/lib/components/container/FloatingContainer.web.js +1 -1
- package/lib/components/input/DropdownInputBase.js +1 -1
- package/lib/components/input/InputBase.js +1 -1
- package/lib/components/input/NumberInput.js +1 -1
- package/lib/components/input/NumberInputBase.js +1 -1
- package/lib/components/input/RatingInput.js +1 -1
- package/lib/components/listItem/ListItem.js +1 -1
- package/lib/components/menu/MenuItem.js +1 -1
- package/lib/components/swipe/SwipeableContainer.js +1 -1
- package/lib/components/tag/Tag.js +1 -1
- package/lib/components/text/HighlightedText.js +1 -1
- package/lib/components/toast/Toast.js +1 -1
- package/lib/hooks/index.js +1 -1
- package/lib/hooks/useForwardedRef.js +1 -1
- package/lib/hooks/useThemedStyles.js +1 -1
- package/lib/providers/ThemeProvider.js +1 -1
- package/lib/theme/theme.js +1 -1
- package/lib/types/components/alert/AlertIndicator.d.ts +2 -2
- package/lib/types/components/alert/AlertIndicator.d.ts.map +1 -1
- package/lib/types/components/avatar/Avatar.d.ts +3 -3
- package/lib/types/components/avatar/Avatar.d.ts.map +1 -1
- package/lib/types/components/container/FloatingContainer.d.ts +5 -6
- package/lib/types/components/container/FloatingContainer.d.ts.map +1 -1
- package/lib/types/components/container/FloatingContainer.web.d.ts +2 -15
- package/lib/types/components/container/FloatingContainer.web.d.ts.map +1 -1
- package/lib/types/components/container/Panel.d.ts +4 -4
- package/lib/types/components/container/Panel.d.ts.map +1 -1
- package/lib/types/components/input/DropdownInputBase.d.ts.map +1 -1
- package/lib/types/components/input/NumberInput.d.ts +1 -1
- package/lib/types/components/input/NumberInput.d.ts.map +1 -1
- package/lib/types/components/input/NumberInputBase.d.ts +1 -1
- package/lib/types/components/input/NumberInputBase.d.ts.map +1 -1
- package/lib/types/components/input/RatingInput.d.ts.map +1 -1
- package/lib/types/components/listItem/ListItem.d.ts.map +1 -1
- package/lib/types/components/menu/MenuItem.d.ts.map +1 -1
- package/lib/types/components/swipe/SwipeableContainer.d.ts.map +1 -1
- package/lib/types/components/tag/Tag.d.ts.map +1 -1
- package/lib/types/components/text/HighlightedText.d.ts +2 -6
- package/lib/types/components/text/HighlightedText.d.ts.map +1 -1
- package/lib/types/components/toast/Toast.d.ts +4 -4
- package/lib/types/components/toast/Toast.d.ts.map +1 -1
- package/lib/types/hooks/index.d.ts +0 -1
- package/lib/types/hooks/index.d.ts.map +1 -1
- package/lib/types/hooks/useForwardedRef.d.ts +2 -2
- package/lib/types/hooks/useForwardedRef.d.ts.map +1 -1
- package/lib/types/hooks/useThemedStyles.d.ts +1 -0
- package/lib/types/hooks/useThemedStyles.d.ts.map +1 -1
- package/lib/types/icons/ui/ArrowBoth.d.ts.map +1 -1
- package/lib/types/icons/ui/ChevronDown.d.ts.map +1 -1
- package/lib/types/icons/ui/Circle.d.ts.map +1 -1
- package/lib/types/icons/ui/Clock.d.ts.map +1 -1
- package/lib/types/icons/ui/Dash.d.ts.map +1 -1
- package/lib/types/icons/ui/Exclamation.d.ts.map +1 -1
- package/lib/types/icons/ui/InfinityGlyph.d.ts.map +1 -1
- package/lib/types/icons/ui/NumberGlyph.d.ts.map +1 -1
- package/lib/types/icons/ui/Plus.d.ts.map +1 -1
- package/lib/types/icons/ui/StarBorder.d.ts.map +1 -1
- package/lib/types/icons/ui/StarFull.d.ts.map +1 -1
- package/lib/types/icons/ui/StarHalf.d.ts.map +1 -1
- package/lib/types/icons/ui/index.d.ts.map +1 -1
- package/lib/types/providers/ThemeProvider.d.ts +1 -1
- package/lib/types/providers/ThemeProvider.d.ts.map +1 -1
- package/lib/types/theme/theme.d.ts.map +1 -1
- package/package.json +5 -3
- package/lib/hooks/useKeyboardHeight.js +0 -1
- package/lib/types/hooks/useKeyboardHeight.d.ts +0 -4
- 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
|
|
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
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
This project bundles glyph path data derived from third-party icon sets. The
|
|
4
|
+
licenses and copyright notices for that artwork are reproduced below, as
|
|
5
|
+
required by their terms. They are independent of this project's own MIT license.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## GitHub Octicons
|
|
10
|
+
|
|
11
|
+
- Source: https://github.com/primer/octicons
|
|
12
|
+
- Package/version: `@primer/octicons` v19.38.0
|
|
13
|
+
- Vendored in: every glyph under `src/icons/ui/`.
|
|
14
|
+
- License: MIT
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
MIT License
|
|
18
|
+
|
|
19
|
+
Copyright (c) 2026 GitHub Inc.
|
|
20
|
+
|
|
21
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
22
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
23
|
+
in the Software without restriction, including without limitation the rights
|
|
24
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
25
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
26
|
+
furnished to do so, subject to the following conditions:
|
|
27
|
+
|
|
28
|
+
The above copyright notice and this permission notice shall be included in all
|
|
29
|
+
copies or substantial portions of the Software.
|
|
30
|
+
|
|
31
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
32
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
33
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
34
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
35
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
36
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
37
|
+
SOFTWARE.
|
|
38
|
+
```
|
|
@@ -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
|
|
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{
|
|
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
|
|
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{
|
|
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??
|
|
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{
|
|
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{
|
|
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";
|
|
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 calculateRating=(x,width,max)=>{"worklet";if(!width)return 0;return Math.max(0,Math.min(Math.round(x/width*max*2+0.2)/2,max));};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));};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(e=>{interacting.value=1;ratingShared.value=calculateRating(e.x,widthShared.value,max);}).onUpdate(e_0=>{ratingShared.value=calculateRating(e_0.x,widthShared.value,max);}).onEnd(e_1=>{var nextRating_0=calculateRating(e_1.x,widthShared.value,max);ratingShared.value=nextRating_0;scheduleOnRN(commitRating,nextRating_0);}).onFinalize(()=>{interacting.value=0;});var tap=Gesture.Tap().onEnd(e_2=>{scheduleOnRN(commitRating,calculateRating(e_2.x,widthShared.value,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 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(()=>({opacity:rating.value>=index+0.5?0:1}));var halfStyle=useAnimatedStyle(()=>({opacity:rating.value>=index+0.5&&rating.value<index+1?1:0}));var fullStyle=useAnimatedStyle(()=>({opacity:rating.value>=index+1?1:0}));var scaleStyle=useAnimatedStyle(()=>{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})}]};});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{
|
|
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{
|
|
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{
|
|
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{
|
|
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";
|
|
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(
|
|
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}});
|
package/lib/hooks/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{useForwardedRef}from"./useForwardedRef";export{
|
|
1
|
+
export{useForwardedRef}from"./useForwardedRef";export{usePersistentKeyboardHeight}from"./usePersistentKeyboardHeight";export{useTheme}from"./useTheme";export{useStyles,useThemedStyles}from"./useThemedStyles";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
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{
|
|
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{
|
|
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;};
|
package/lib/theme/theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var DefaultTheme={font:{family:{sans:"
|
|
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
|
|
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:
|
|
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,
|
|
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
|
|
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?:
|
|
31
|
+
action?: ReactNode;
|
|
32
32
|
style?: DeepPartial<AvatarStyles>;
|
|
33
33
|
containerStyle?: StyleProp<ViewStyle>;
|
|
34
34
|
}
|
|
35
|
-
export declare const Avatar:
|
|
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,
|
|
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
|
|
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:
|
|
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,
|
|
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
|
|
2
|
-
import
|
|
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,
|
|
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
|
|
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?:
|
|
7
|
-
children?:
|
|
6
|
+
header?: ReactNode;
|
|
7
|
+
children?: ReactNode;
|
|
8
8
|
}
|
|
9
|
-
export declare const Panel:
|
|
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,
|
|
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,
|
|
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 {
|
|
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,
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInputBase.d.ts","sourceRoot":"","sources":["../../../../src/components/input/NumberInputBase.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
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;
|
|
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,
|
|
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;
|
|
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,
|
|
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,
|
|
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
|
|
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:
|
|
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,
|
|
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
|
|
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?:
|
|
8
|
+
action?: ReactNode;
|
|
9
9
|
containerStyle?: StyleProp<ViewStyle>;
|
|
10
|
-
children?:
|
|
10
|
+
children?: ReactNode;
|
|
11
11
|
}
|
|
12
|
-
export declare const Toast:
|
|
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,
|
|
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,
|
|
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
|
|
2
|
-
export declare const useForwardedRef: <T>(ref: RefObject<T> | undefined | 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,
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThemedStyles.d.ts","sourceRoot":"","sources":["../../../src/hooks/useThemedStyles.tsx"],"names":[],"mappings":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrowBoth.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/ArrowBoth.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ArrowBoth.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/ArrowBoth.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,gBAAgB,CAO1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChevronDown.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/ChevronDown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChevronDown.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/ChevronDown.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAO5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Circle.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Circle.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Circle.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Circle.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,gBAAgB,CAOvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Clock.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Clock.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Clock.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Clock.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,gBAAgB,CAOtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dash.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Dash.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Dash.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Dash.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,gBAAgB,CAOrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Exclamation.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Exclamation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Exclamation.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Exclamation.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAO5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InfinityGlyph.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/InfinityGlyph.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InfinityGlyph.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/InfinityGlyph.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,gBAAgB,CAO9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberGlyph.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/NumberGlyph.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NumberGlyph.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/NumberGlyph.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAO5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plus.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Plus.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Plus.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Plus.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,gBAAgB,CAOrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StarBorder.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/StarBorder.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StarBorder.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/StarBorder.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,gBAAgB,CAO3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StarFull.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/StarFull.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StarFull.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/StarFull.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,gBAAgB,CAOzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StarHalf.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/StarHalf.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StarHalf.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/StarHalf.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,EAAS,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,gBAAgB,CAqBzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAmB,MAAM,SAAS,CAAC;AAcxD,MAAM,MAAM,UAAU,GAChB,aAAa,GACb,MAAM,GACN,MAAM,GACN,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,cAAc,GACd,OAAO,GACP,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,WAAW,CAAC;AAiBlB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,UAAU,CAMvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
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":"
|
|
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.
|
|
3
|
+
"version": "0.11.6",
|
|
4
4
|
"description": "A collection of React Native components and resources",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"./package.json": "./package.json"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
|
-
"lib/**/*"
|
|
35
|
+
"lib/**/*",
|
|
36
|
+
"THIRD_PARTY_NOTICES.md"
|
|
36
37
|
],
|
|
37
38
|
"scripts": {
|
|
38
39
|
"clean": "rm -rf ./lib",
|
|
@@ -101,6 +102,7 @@
|
|
|
101
102
|
"react-native-reanimated": "^4.3",
|
|
102
103
|
"react-native-safe-area-context": "^5.7",
|
|
103
104
|
"react-native-screens": "^4.23",
|
|
104
|
-
"react-native-svg": "^15.15"
|
|
105
|
+
"react-native-svg": "^15.15",
|
|
106
|
+
"react-native-worklets": "*"
|
|
105
107
|
}
|
|
106
108
|
}
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/hooks/useKeyboardHeight.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB;;CAqB7B,CAAC"}
|