@reillymc/react-native-components 0.12.2 → 0.12.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/lib/actions/action/Action.js +1 -1
  2. package/lib/actions/action/ActionBase.js +1 -1
  3. package/lib/actions/action/IconAction.js +1 -1
  4. package/lib/actions/action/IconActionBase.js +1 -1
  5. package/lib/actions/action/PressableBase.js +1 -1
  6. package/lib/actions/action/StateTint.js +1 -1
  7. package/lib/actions/button/Button.js +1 -1
  8. package/lib/actions/button/ButtonBase.js +1 -1
  9. package/lib/actions/button/IconButton.js +1 -1
  10. package/lib/actions/button/IconButtonBase.js +1 -1
  11. package/lib/actions/surface/InteractionSurface.js +1 -1
  12. package/lib/actions/surface/StateLayer.js +1 -1
  13. package/lib/actions/swipeAction/SwipeAction.js +1 -1
  14. package/lib/display/avatar/Avatar.js +1 -1
  15. package/lib/display/badge/Badge.js +1 -1
  16. package/lib/display/contentRow/ContentRow.js +1 -1
  17. package/lib/display/listItem/ListItem.js +1 -1
  18. package/lib/display/rating/Rating.js +1 -1
  19. package/lib/display/tag/Tag.js +1 -1
  20. package/lib/display/tag/TagIcon.js +1 -1
  21. package/lib/display/toggleIndicator/ToggleIndicator.js +1 -1
  22. package/lib/feedback/toast/Toast.js +1 -1
  23. package/lib/forms/field/Field.js +1 -1
  24. package/lib/forms/field/Field.theme.js +1 -1
  25. package/lib/forms/field/FieldAction.js +1 -1
  26. package/lib/forms/field/FieldIcon.js +1 -1
  27. package/lib/forms/field/FieldNumberInput.js +1 -1
  28. package/lib/forms/field/FieldRow.js +1 -1
  29. package/lib/forms/field/FieldSurface.js +1 -1
  30. package/lib/forms/field/FieldSurfacePressLayer.js +1 -1
  31. package/lib/forms/field/FieldTextInput.js +1 -1
  32. package/lib/forms/formContainer/FormContainer.js +1 -1
  33. package/lib/forms/formRow/FormRow.js +1 -1
  34. package/lib/forms/input/TextInput.js +1 -1
  35. package/lib/forms/input/TextInput.theme.js +1 -0
  36. package/lib/forms/input/comboboxInput/ComboboxBlurGuard.web.js +1 -1
  37. package/lib/forms/input/comboboxInput/ComboboxInput.js +1 -1
  38. package/lib/forms/input/comboboxInput/ComboboxInput.theme.js +1 -1
  39. package/lib/forms/input/comboboxInput/ComboboxInputBase.js +1 -1
  40. package/lib/forms/input/counterInput/CounterControl.js +1 -1
  41. package/lib/forms/input/counterInput/CounterInput.js +1 -1
  42. package/lib/forms/input/counterInput/CounterInput.theme.js +1 -0
  43. package/lib/forms/input/numberInput/NumberInput.js +1 -1
  44. package/lib/forms/input/numberInput/NumberInput.theme.js +1 -0
  45. package/lib/forms/input/ratingInput/AnimatedStar.js +1 -1
  46. package/lib/forms/input/ratingInput/RatingControl.js +1 -1
  47. package/lib/forms/input/ratingInput/RatingInput.js +1 -1
  48. package/lib/forms/input/ratingInput/RatingInput.theme.js +1 -1
  49. package/lib/forms/input/selectionInput/SelectionControl.js +1 -1
  50. package/lib/forms/input/selectionInput/SelectionInput.js +1 -1
  51. package/lib/forms/input/selectionInput/SelectionInput.theme.js +1 -1
  52. package/lib/forms/input/shared/SegmentedInputSegments.js +1 -0
  53. package/lib/forms/input/timeInput/TimeInput.js +1 -1
  54. package/lib/forms/input/timeInput/TimeInput.theme.js +1 -0
  55. package/lib/forms/input/toggleInput/ToggleControl.js +1 -1
  56. package/lib/forms/input/toggleInput/ToggleInput.js +1 -1
  57. package/lib/icons/Icon.js +1 -1
  58. package/lib/icons/IconBase.js +1 -1
  59. package/lib/icons/ui/ArrowBoth.js +1 -1
  60. package/lib/icons/ui/Check.js +1 -1
  61. package/lib/icons/ui/ChevronDown.js +1 -1
  62. package/lib/icons/ui/Circle.js +1 -1
  63. package/lib/icons/ui/CircleFilled.js +1 -1
  64. package/lib/icons/ui/Clock.js +1 -1
  65. package/lib/icons/ui/Dash.js +1 -1
  66. package/lib/icons/ui/Exclamation.js +1 -1
  67. package/lib/icons/ui/InfinityGlyph.js +1 -1
  68. package/lib/icons/ui/NumberGlyph.js +1 -1
  69. package/lib/icons/ui/Plus.js +1 -1
  70. package/lib/icons/ui/StarBorder.js +1 -1
  71. package/lib/icons/ui/StarFull.js +1 -1
  72. package/lib/icons/ui/StarHalf.js +1 -1
  73. package/lib/icons/ui/index.js +1 -1
  74. package/lib/layout/collapsiblePanel/CollapsiblePanel.js +1 -1
  75. package/lib/layout/swipeable/SwipeableContainer.js +1 -1
  76. package/lib/overlays/anchoredContainer/AnchoredContainer.ios.js +1 -1
  77. package/lib/overlays/anchoredContainer/AnchoredContainer.js +1 -1
  78. package/lib/overlays/anchoredContainer/AnchoredContainer.web.js +1 -1
  79. package/lib/overlays/anchoredContainer/InlineMount.js +1 -1
  80. package/lib/overlays/anchoredContainer/OverlayMount.js +1 -1
  81. package/lib/overlays/menu/Menu.js +1 -1
  82. package/lib/overlays/menu/MenuItem.js +1 -1
  83. package/lib/overlays/menu/ScrollViewContextResetter.js +1 -0
  84. package/lib/overlays/menu/ScrollViewContextResetter.web.js +1 -0
  85. package/lib/overlays/menu/VirtualizedListContextResetter.js +1 -0
  86. package/lib/overlays/menu/VirtualizedListContextResetter.web.js +1 -0
  87. package/lib/theme/ThemeProvider.js +1 -1
  88. package/lib/theme/createAppTheme.js +1 -1
  89. package/lib/theme/index.js +1 -1
  90. package/lib/theme/themeDefinitions.js +1 -1
  91. package/lib/theme/useTheme.js +1 -1
  92. package/lib/types/forms/field/Field.d.ts +7 -3
  93. package/lib/types/forms/field/Field.d.ts.map +1 -1
  94. package/lib/types/forms/field/Field.theme.d.ts +5 -6
  95. package/lib/types/forms/field/Field.theme.d.ts.map +1 -1
  96. package/lib/types/forms/field/FieldRow.d.ts.map +1 -1
  97. package/lib/types/forms/field/FieldSurface.d.ts +3 -0
  98. package/lib/types/forms/field/FieldSurface.d.ts.map +1 -1
  99. package/lib/types/forms/field/FieldTextInput.d.ts +2 -5
  100. package/lib/types/forms/field/FieldTextInput.d.ts.map +1 -1
  101. package/lib/types/forms/field/index.d.ts +1 -1
  102. package/lib/types/forms/field/index.d.ts.map +1 -1
  103. package/lib/types/forms/index.d.ts +2 -2
  104. package/lib/types/forms/index.d.ts.map +1 -1
  105. package/lib/types/forms/input/TextInput.d.ts +5 -1
  106. package/lib/types/forms/input/TextInput.d.ts.map +1 -1
  107. package/lib/types/forms/input/TextInput.theme.d.ts +7 -0
  108. package/lib/types/forms/input/TextInput.theme.d.ts.map +1 -0
  109. package/lib/types/forms/input/comboboxInput/ComboboxInput.d.ts +6 -5
  110. package/lib/types/forms/input/comboboxInput/ComboboxInput.d.ts.map +1 -1
  111. package/lib/types/forms/input/comboboxInput/ComboboxInput.theme.d.ts +6 -0
  112. package/lib/types/forms/input/comboboxInput/ComboboxInput.theme.d.ts.map +1 -1
  113. package/lib/types/forms/input/comboboxInput/ComboboxInputBase.d.ts +3 -0
  114. package/lib/types/forms/input/comboboxInput/ComboboxInputBase.d.ts.map +1 -1
  115. package/lib/types/forms/input/comboboxInput/index.d.ts +1 -0
  116. package/lib/types/forms/input/comboboxInput/index.d.ts.map +1 -1
  117. package/lib/types/forms/input/counterInput/CounterControl.d.ts +3 -0
  118. package/lib/types/forms/input/counterInput/CounterControl.d.ts.map +1 -1
  119. package/lib/types/forms/input/counterInput/CounterInput.d.ts +3 -0
  120. package/lib/types/forms/input/counterInput/CounterInput.d.ts.map +1 -1
  121. package/lib/types/forms/input/counterInput/CounterInput.theme.d.ts +8 -0
  122. package/lib/types/forms/input/counterInput/CounterInput.theme.d.ts.map +1 -0
  123. package/lib/types/forms/input/counterInput/index.d.ts +1 -0
  124. package/lib/types/forms/input/counterInput/index.d.ts.map +1 -1
  125. package/lib/types/forms/input/index.d.ts +5 -4
  126. package/lib/types/forms/input/index.d.ts.map +1 -1
  127. package/lib/types/forms/input/numberInput/NumberInput.d.ts +3 -0
  128. package/lib/types/forms/input/numberInput/NumberInput.d.ts.map +1 -1
  129. package/lib/types/forms/input/numberInput/NumberInput.theme.d.ts +8 -0
  130. package/lib/types/forms/input/numberInput/NumberInput.theme.d.ts.map +1 -0
  131. package/lib/types/forms/input/numberInput/index.d.ts +1 -0
  132. package/lib/types/forms/input/numberInput/index.d.ts.map +1 -1
  133. package/lib/types/forms/input/ratingInput/RatingInput.d.ts.map +1 -1
  134. package/lib/types/forms/input/ratingInput/RatingInput.theme.d.ts +2 -0
  135. package/lib/types/forms/input/ratingInput/RatingInput.theme.d.ts.map +1 -1
  136. package/lib/types/forms/input/selectionInput/SelectionControl.d.ts.map +1 -1
  137. package/lib/types/forms/input/selectionInput/SelectionInput.theme.d.ts +2 -0
  138. package/lib/types/forms/input/selectionInput/SelectionInput.theme.d.ts.map +1 -1
  139. package/lib/types/forms/input/shared/SegmentedInputSegments.d.ts +11 -0
  140. package/lib/types/forms/input/shared/SegmentedInputSegments.d.ts.map +1 -0
  141. package/lib/types/forms/input/timeInput/TimeInput.d.ts +3 -0
  142. package/lib/types/forms/input/timeInput/TimeInput.d.ts.map +1 -1
  143. package/lib/types/forms/input/timeInput/TimeInput.theme.d.ts +11 -0
  144. package/lib/types/forms/input/timeInput/TimeInput.theme.d.ts.map +1 -0
  145. package/lib/types/forms/input/timeInput/index.d.ts +1 -0
  146. package/lib/types/forms/input/timeInput/index.d.ts.map +1 -1
  147. package/lib/types/forms/input/toggleInput/ToggleInput.d.ts +1 -1
  148. package/lib/types/forms/input/toggleInput/ToggleInput.d.ts.map +1 -1
  149. package/lib/types/overlays/menu/Menu.d.ts.map +1 -1
  150. package/lib/types/overlays/menu/ScrollViewContextResetter.d.ts +3 -0
  151. package/lib/types/overlays/menu/ScrollViewContextResetter.d.ts.map +1 -0
  152. package/lib/types/overlays/menu/ScrollViewContextResetter.web.d.ts +3 -0
  153. package/lib/types/overlays/menu/ScrollViewContextResetter.web.d.ts.map +1 -0
  154. package/lib/types/overlays/menu/VirtualizedListContextResetter.d.ts +3 -0
  155. package/lib/types/overlays/menu/VirtualizedListContextResetter.d.ts.map +1 -0
  156. package/lib/types/overlays/menu/VirtualizedListContextResetter.web.d.ts +3 -0
  157. package/lib/types/overlays/menu/VirtualizedListContextResetter.web.d.ts.map +1 -0
  158. package/lib/types/theme/index.d.ts +1 -1
  159. package/lib/types/theme/index.d.ts.map +1 -1
  160. package/lib/types/theme/theme.d.ts +9 -1
  161. package/lib/types/theme/theme.d.ts.map +1 -1
  162. package/lib/types/theme/themeDefinitions.d.ts.map +1 -1
  163. package/lib/types/theme/useTheme.d.ts +5 -0
  164. package/lib/types/theme/useTheme.d.ts.map +1 -1
  165. package/lib/typography/text/HighlightedText.js +1 -1
  166. package/lib/typography/text/Text.js +1 -1
  167. package/package.json +1 -1
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/overlays/anchoredContainer/AnchoredContainer.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{useCallback,useEffect,useRef,useState}from"react";import{createPortal}from"react-dom";import{StyleSheet,useWindowDimensions,View}from"react-native";import{useSafeAreaInsets}from"react-native-safe-area-context";import{useComponent}from"../../internal";import{getContainerPlacement}from"./helpers";import{jsx as _jsx}from"react/jsx-runtime";var FIXED_POSITION="fixed";export var AnchoredContainer=t0=>{var $=_c(38);var parentRef=t0.parentRef,show=t0.show,t1=t0.position,themeOverrides=t0.theme,onInvertedChange=t0.onInvertedChange,style=t0.style,children=t0.children;var position=t1===undefined?"auto":t1;var _useState=useState(),_useState2=_slicedToArray(_useState,2),geometry=_useState2[0],setGeometry=_useState2[1];var t2;if($[0]!==themeOverrides){t2={themeOverrides};$[0]=themeOverrides;$[1]=t2;}else{t2=$[1];}var _useComponent=useComponent("anchoredContainer",t2),theme=_useComponent.theme;var inverted=geometry?.inverted;var t3;var t4;if($[2]!==inverted||$[3]!==onInvertedChange){t3=()=>{if(inverted!==undefined){onInvertedChange?.(inverted);}};t4=[inverted,onInvertedChange];$[2]=inverted;$[3]=onInvertedChange;$[4]=t3;$[5]=t4;}else{t3=$[4];t4=$[5];}useEffect(t3,t4);var _useWindowDimensions=useWindowDimensions(),windowHeight=_useWindowDimensions.height;var _useSafeAreaInsets=useSafeAreaInsets(),top=_useSafeAreaInsets.top,bottom=_useSafeAreaInsets.bottom;var anchorRef=useRef(undefined);var contentHeightRef=useRef(0);var t5;if($[6]!==bottom||$[7]!==position||$[8]!==theme.parentMargin||$[9]!==top||$[10]!==windowHeight){t5=()=>{var anchor=anchorRef.current;var contentHeight=contentHeightRef.current;if(!(anchor&&contentHeight)){return;}var viewportTop=top;var viewportBottom=windowHeight-bottom;var availableBelow=viewportBottom-(anchor.y+anchor.height);var availableAbove=anchor.y-viewportTop;var inverted_0=position==="above"||availableBelow<contentHeight+theme.parentMargin&&availableAbove>availableBelow;setGeometry({parentY:anchor.y,parentX:anchor.x,parentWidth:anchor.width,parentHeight:anchor.height,offsetY:anchor.y,contentHeight,inverted:inverted_0,visibleAreaHeight:viewportBottom-viewportTop,maxHeight:Math.max(0,(inverted_0?availableAbove:availableBelow)-theme.parentMargin)});};$[6]=bottom;$[7]=position;$[8]=theme.parentMargin;$[9]=top;$[10]=windowHeight;$[11]=t5;}else{t5=$[11];}var recompute=t5;var t6;if($[12]!==parentRef||$[13]!==recompute){t6=()=>{if(parentRef.current?.getBoundingClientRect){var rect=parentRef.current.getBoundingClientRect();anchorRef.current={x:rect.left,y:rect.top,width:rect.width,height:rect.height};}recompute();};$[12]=parentRef;$[13]=recompute;$[14]=t6;}else{t6=$[14];}var updateAnchor=t6;var t7;var t8;if($[15]!==parentRef||$[16]!==show||$[17]!==updateAnchor){t7=()=>{if(!show||typeof document==="undefined"){return;}updateAnchor();var frame=0;var schedule=()=>{cancelAnimationFrame(frame);frame=requestAnimationFrame(updateAnchor);};window.addEventListener("scroll",schedule,true);window.addEventListener("resize",schedule);var node=parentRef.current;var observer;if(node instanceof Element&&typeof ResizeObserver!=="undefined"){observer=new ResizeObserver(schedule);observer.observe(node);}return()=>{cancelAnimationFrame(frame);window.removeEventListener("scroll",schedule,true);window.removeEventListener("resize",schedule);observer?.disconnect();};};t8=[show,updateAnchor,parentRef];$[15]=parentRef;$[16]=show;$[17]=updateAnchor;$[18]=t7;$[19]=t8;}else{t7=$[18];t8=$[19];}useEffect(t7,t8);var t10;var t9;if($[20]!==show){t9=()=>{if(!show){setGeometry(undefined);anchorRef.current=undefined;contentHeightRef.current=0;}};t10=[show];$[20]=show;$[21]=t10;$[22]=t9;}else{t10=$[21];t9=$[22];}useEffect(t9,t10);var t11;if($[23]!==recompute){t11=e=>{var height=e.nativeEvent.layout.height;if(height!==contentHeightRef.current){contentHeightRef.current=height;recompute();}};$[23]=recompute;$[24]=t11;}else{t11=$[24];}var onLayout=t11;if(!show||typeof document==="undefined"){return null;}var t12;if($[25]!==geometry||$[26]!==theme.parentMargin){t12=geometry?{left:geometry.parentX,width:geometry.parentWidth,top:geometry.inverted?geometry.parentY-geometry.contentHeight-theme.parentMargin:geometry.parentY+geometry.parentHeight+theme.parentMargin}:styles.hidden;$[25]=geometry;$[26]=theme.parentMargin;$[27]=t12;}else{t12=$[27];}var t13;if($[28]!==style||$[29]!==t12){t13=[styles.container,t12,style];$[28]=style;$[29]=t12;$[30]=t13;}else{t13=$[30];}var t14;if($[31]!==children||$[32]!==geometry){t14=typeof children==="function"?children(getContainerPlacement(geometry)):children;$[31]=children;$[32]=geometry;$[33]=t14;}else{t14=$[33];}var t15;if($[34]!==onLayout||$[35]!==t13||$[36]!==t14){t15=createPortal(_jsx(View,{onLayout:onLayout,style:t13,children:t14}),document.body);$[34]=onLayout;$[35]=t13;$[36]=t14;$[37]=t15;}else{t15=$[37];}return t15;};var styles=StyleSheet.create({container:{position:FIXED_POSITION,zIndex:9999},hidden:{position:FIXED_POSITION,zIndex:9999,opacity:0,pointerEvents:"none"}});
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{useCallback,useEffect,useRef,useState}from"react";import{createPortal}from"react-dom";import{StyleSheet,useWindowDimensions,View}from"react-native";import{useSafeAreaInsets}from"react-native-safe-area-context";import{useComponent}from"../../internal";import{getContainerPlacement}from"./helpers";import{jsx as _jsx}from"react/jsx-runtime";var FIXED_POSITION="fixed";export var AnchoredContainer=t0=>{var $=_c(38);var parentRef=t0.parentRef,show=t0.show,t1=t0.position,themeOverrides=t0.theme,onInvertedChange=t0.onInvertedChange,style=t0.style,children=t0.children;var position=t1===undefined?"auto":t1;var _useState=useState(),_useState2=_slicedToArray(_useState,2),geometry=_useState2[0],setGeometry=_useState2[1];var t2;if($[0]!==themeOverrides){t2={themeOverrides};$[0]=themeOverrides;$[1]=t2;}else{t2=$[1];}var _useComponent=useComponent("anchoredContainer",t2),theme=_useComponent.theme;var inverted=geometry?.inverted;var t3;var t4;if($[2]!==inverted||$[3]!==onInvertedChange){t3=()=>{if(inverted!==undefined){onInvertedChange?.(inverted);}};t4=[inverted,onInvertedChange];$[2]=inverted;$[3]=onInvertedChange;$[4]=t3;$[5]=t4;}else{t3=$[4];t4=$[5];}useEffect(t3,t4);var _useWindowDimensions=useWindowDimensions(),windowHeight=_useWindowDimensions.height;var _useSafeAreaInsets=useSafeAreaInsets(),top=_useSafeAreaInsets.top,bottom=_useSafeAreaInsets.bottom;var anchorRef=useRef(undefined);var contentHeightRef=useRef(0);var t5;if($[6]!==bottom||$[7]!==position||$[8]!==theme.parentMargin||$[9]!==top||$[10]!==windowHeight){t5=()=>{var anchor=anchorRef.current;var contentHeight=contentHeightRef.current;if(!(anchor&&contentHeight)){return;}var viewportTop=top;var viewportBottom=windowHeight-bottom;var availableBelow=viewportBottom-(anchor.y+anchor.height);var availableAbove=anchor.y-viewportTop;var inverted_0=position==="above"||availableBelow<contentHeight+theme.parentMargin&&availableAbove>availableBelow;setGeometry({parentY:anchor.y,parentX:anchor.x,parentWidth:anchor.width,parentHeight:anchor.height,offsetY:anchor.y,contentHeight,inverted:inverted_0,visibleAreaHeight:viewportBottom-viewportTop,maxHeight:Math.max(0,(inverted_0?availableAbove:availableBelow)-theme.parentMargin)});};$[6]=bottom;$[7]=position;$[8]=theme.parentMargin;$[9]=top;$[10]=windowHeight;$[11]=t5;}else{t5=$[11];}var recompute=t5;var t6;if($[12]!==parentRef||$[13]!==recompute){t6=()=>{if(parentRef.current?.getBoundingClientRect){var rect=parentRef.current.getBoundingClientRect();anchorRef.current={x:rect.left,y:rect.top,width:rect.width,height:rect.height};}recompute();};$[12]=parentRef;$[13]=recompute;$[14]=t6;}else{t6=$[14];}var updateAnchor=t6;var t7;var t8;if($[15]!==parentRef||$[16]!==show||$[17]!==updateAnchor){t7=()=>{if(!show||typeof document==="undefined"){return;}updateAnchor();var frame=0;var schedule=()=>{cancelAnimationFrame(frame);frame=requestAnimationFrame(updateAnchor);};window.addEventListener("scroll",schedule,true);window.addEventListener("resize",schedule);var node=parentRef.current;var observer;if(node instanceof Element&&typeof ResizeObserver!=="undefined"){observer=new ResizeObserver(schedule);observer.observe(node);}return()=>{cancelAnimationFrame(frame);window.removeEventListener("scroll",schedule,true);window.removeEventListener("resize",schedule);observer?.disconnect();};};t8=[show,updateAnchor,parentRef];$[15]=parentRef;$[16]=show;$[17]=updateAnchor;$[18]=t7;$[19]=t8;}else{t7=$[18];t8=$[19];}useEffect(t7,t8);var t10;var t9;if($[20]!==show){t9=()=>{if(!show){setGeometry(undefined);anchorRef.current=undefined;contentHeightRef.current=0;}};t10=[show];$[20]=show;$[21]=t10;$[22]=t9;}else{t10=$[21];t9=$[22];}useEffect(t9,t10);var t11;if($[23]!==recompute){t11=e=>{var height=e.nativeEvent.layout.height;if(height!==contentHeightRef.current){contentHeightRef.current=height;recompute();}};$[23]=recompute;$[24]=t11;}else{t11=$[24];}var onLayout=t11;if(!show||typeof document==="undefined"){return null;}var t12;if($[25]!==geometry||$[26]!==theme.parentMargin){t12=geometry?{left:geometry.parentX,width:geometry.parentWidth,top:geometry.inverted?geometry.parentY-geometry.contentHeight-theme.parentMargin:geometry.parentY+geometry.parentHeight+theme.parentMargin}:styles.hidden;$[25]=geometry;$[26]=theme.parentMargin;$[27]=t12;}else{t12=$[27];}var t13;if($[28]!==style||$[29]!==t12){t13=[styles.container,t12,style];$[28]=style;$[29]=t12;$[30]=t13;}else{t13=$[30];}var t14;if($[31]!==children||$[32]!==geometry){t14=typeof children==="function"?children(getContainerPlacement(geometry)):children;$[31]=children;$[32]=geometry;$[33]=t14;}else{t14=$[33];}var t15;if($[34]!==onLayout||$[35]!==t13||$[36]!==t14){t15=createPortal(_jsx(View,{onLayout:onLayout,style:t13,children:t14}),document.body);$[34]=onLayout;$[35]=t13;$[36]=t14;$[37]=t15;}else{t15=$[37];}return t15;};var styles=StyleSheet.create({container:{position:FIXED_POSITION,zIndex:9999},hidden:{position:FIXED_POSITION,zIndex:9999,opacity:0,pointerEvents:"none"}});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/overlays/anchoredContainer/InlineMount.tsx";import{c as _c}from"react/compiler-runtime";import{View}from"react-native";import{getContainerPlacement}from"./helpers";import{jsx as _jsx}from"react/jsx-runtime";export var InlineMount=t0=>{var $=_c(10);var geometry=t0.geometry,containerStyle=t0.containerStyle,onLayout=t0.onLayout,style=t0.style,children=t0.children;var t1;if($[0]!==containerStyle||$[1]!==style){t1=[containerStyle,style];$[0]=containerStyle;$[1]=style;$[2]=t1;}else{t1=$[2];}var t2;if($[3]!==children||$[4]!==geometry){t2=typeof children==="function"?children(getContainerPlacement(geometry)):children;$[3]=children;$[4]=geometry;$[5]=t2;}else{t2=$[5];}var t3;if($[6]!==onLayout||$[7]!==t1||$[8]!==t2){t3=_jsx(View,{onLayout:onLayout,style:t1,children:t2});$[6]=onLayout;$[7]=t1;$[8]=t2;$[9]=t3;}else{t3=$[9];}return t3;};
1
+ import{c as _c}from"react/compiler-runtime";import{View}from"react-native";import{getContainerPlacement}from"./helpers";import{jsx as _jsx}from"react/jsx-runtime";export var InlineMount=t0=>{var $=_c(10);var geometry=t0.geometry,containerStyle=t0.containerStyle,onLayout=t0.onLayout,style=t0.style,children=t0.children;var t1;if($[0]!==containerStyle||$[1]!==style){t1=[containerStyle,style];$[0]=containerStyle;$[1]=style;$[2]=t1;}else{t1=$[2];}var t2;if($[3]!==children||$[4]!==geometry){t2=typeof children==="function"?children(getContainerPlacement(geometry)):children;$[3]=children;$[4]=geometry;$[5]=t2;}else{t2=$[5];}var t3;if($[6]!==onLayout||$[7]!==t1||$[8]!==t2){t3=_jsx(View,{onLayout:onLayout,style:t1,children:t2});$[6]=onLayout;$[7]=t1;$[8]=t2;$[9]=t3;}else{t3=$[9];}return t3;};
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/overlays/anchoredContainer/OverlayMount.tsx";import{c as _c}from"react/compiler-runtime";import{StyleSheet,View}from"react-native";import Animated,{measure,useAnimatedStyle,useFrameCallback,useSharedValue}from"react-native-reanimated";import{FullWindowOverlay}from"react-native-screens";import{getContainerPlacement}from"./helpers";import{jsx as _jsx}from"react/jsx-runtime";export var OverlayMount=t0=>{var $=_c(10);var anchorRef=t0.anchorRef,geometry=t0.geometry,margin=t0.margin,onLayout=t0.onLayout,style=t0.style,children=t0.children;var anchorX=useSharedValue(0);var anchorY=useSharedValue(0);var anchorWidth=useSharedValue(0);var anchorHeight=useSharedValue(0);var trackAnchor=()=>{"worklet";var measured=measure(anchorRef);if(!measured){return;}anchorX.set(measured.pageX);anchorY.set(measured.pageY);anchorWidth.set(measured.width);anchorHeight.set(measured.height);};useFrameCallback(trackAnchor,true);var inverted=geometry?.inverted??false;var contentHeight=geometry?.contentHeight??0;var overlayStyle=useAnimatedStyle(()=>({width:anchorWidth.value,opacity:anchorWidth.value>0&&contentHeight>0?1:0,transform:[{translateX:anchorX.value},{translateY:inverted?anchorY.value-contentHeight-margin:anchorY.value+anchorHeight.value+margin}]}));var t1;if($[0]!==overlayStyle||$[1]!==style){t1=[overlayStyles.container,overlayStyle,style];$[0]=overlayStyle;$[1]=style;$[2]=t1;}else{t1=$[2];}var t2;if($[3]!==children||$[4]!==geometry){t2=typeof children==="function"?children(getContainerPlacement(geometry)):children;$[3]=children;$[4]=geometry;$[5]=t2;}else{t2=$[5];}var t3;if($[6]!==onLayout||$[7]!==t1||$[8]!==t2){t3=_jsx(FullWindowOverlay,{children:_jsx(View,{style:overlayStyles.backdrop,children:_jsx(Animated.View,{onLayout:onLayout,style:t1,children:t2})})});$[6]=onLayout;$[7]=t1;$[8]=t2;$[9]=t3;}else{t3=$[9];}return t3;};var overlayStyles=StyleSheet.create({backdrop:{...StyleSheet.absoluteFill,pointerEvents:"box-none"},container:{position:"absolute",left:0,top:0,pointerEvents:"auto"}});
1
+ import{c as _c}from"react/compiler-runtime";import{StyleSheet,View}from"react-native";import Animated,{measure,useAnimatedStyle,useFrameCallback,useSharedValue}from"react-native-reanimated";import{FullWindowOverlay}from"react-native-screens";import{getContainerPlacement}from"./helpers";import{jsx as _jsx}from"react/jsx-runtime";export var OverlayMount=t0=>{var $=_c(10);var anchorRef=t0.anchorRef,geometry=t0.geometry,margin=t0.margin,onLayout=t0.onLayout,style=t0.style,children=t0.children;var anchorX=useSharedValue(0);var anchorY=useSharedValue(0);var anchorWidth=useSharedValue(0);var anchorHeight=useSharedValue(0);var trackAnchor=()=>{"worklet";var measured=measure(anchorRef);if(!measured){return;}anchorX.set(measured.pageX);anchorY.set(measured.pageY);anchorWidth.set(measured.width);anchorHeight.set(measured.height);};useFrameCallback(trackAnchor,true);var inverted=geometry?.inverted??false;var contentHeight=geometry?.contentHeight??0;var overlayStyle=useAnimatedStyle(()=>({width:anchorWidth.value,opacity:anchorWidth.value>0&&contentHeight>0?1:0,transform:[{translateX:anchorX.value},{translateY:inverted?anchorY.value-contentHeight-margin:anchorY.value+anchorHeight.value+margin}]}));var t1;if($[0]!==overlayStyle||$[1]!==style){t1=[overlayStyles.container,overlayStyle,style];$[0]=overlayStyle;$[1]=style;$[2]=t1;}else{t1=$[2];}var t2;if($[3]!==children||$[4]!==geometry){t2=typeof children==="function"?children(getContainerPlacement(geometry)):children;$[3]=children;$[4]=geometry;$[5]=t2;}else{t2=$[5];}var t3;if($[6]!==onLayout||$[7]!==t1||$[8]!==t2){t3=_jsx(FullWindowOverlay,{children:_jsx(View,{style:overlayStyles.backdrop,children:_jsx(Animated.View,{onLayout:onLayout,style:t1,children:t2})})});$[6]=onLayout;$[7]=t1;$[8]=t2;$[9]=t3;}else{t3=$[9];}return t3;};var overlayStyles=StyleSheet.create({backdrop:{...StyleSheet.absoluteFill,pointerEvents:"box-none"},container:{position:"absolute",left:0,top:0,pointerEvents:"auto"}});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/overlays/menu/Menu.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,useRef,useState}from"react";import{FlatList,View}from"react-native";import{defineStyles,useComponent}from"../../internal";import{useSystems}from"../../theme/useSystems";import{jsx as _jsx}from"react/jsx-runtime";var VIEW_POSITION=0.33;export var Menu=t0=>{var $=_c(27);var data=t0.data,renderItem=t0.renderItem,keyExtractor=t0.keyExtractor,activeIndex=t0.activeIndex,reverse=t0.reverse,onScroll=t0.onScroll,showsScrollIndicator=t0.showsScrollIndicator,themeOverrides=t0.theme,listProps=t0.listProps;var t1;if($[0]!==themeOverrides){t1={themeOverrides,createStyles};$[0]=themeOverrides;$[1]=t1;}else{t1=$[1];}var _useComponent=useComponent("menu",t1),styles=_useComponent.styles;var _useSystems=useSystems(),shadowStyle=_useSystems.shadowStyle;var listRef=useRef(null);var _useState=useState(activeIndex===undefined||activeIndex<=0),_useState2=_slicedToArray(_useState,2),isReady=_useState2[0],setIsReady=_useState2[1];var t2;var t3;if($[2]!==activeIndex){t2=()=>{if(activeIndex===undefined||activeIndex<0){return;}listRef.current?.scrollToIndex({index:activeIndex,animated:true,viewPosition:VIEW_POSITION});};t3=[activeIndex];$[2]=activeIndex;$[3]=t2;$[4]=t3;}else{t2=$[3];t3=$[4];}useEffect(t2,t3);var t4=!isReady&&styles.hidden;var t5;if($[5]!==shadowStyle||$[6]!==styles.shadow||$[7]!==t4){t5=[styles.shadow,shadowStyle,t4];$[5]=shadowStyle;$[6]=styles.shadow;$[7]=t4;$[8]=t5;}else{t5=$[8];}var t6;if($[9]!==activeIndex||$[10]!==isReady){t6=()=>{if(activeIndex!==undefined&&activeIndex>=0){listRef.current?.scrollToIndex({index:activeIndex,animated:false,viewPosition:VIEW_POSITION});}if(!isReady){requestAnimationFrame(()=>setIsReady(true));}};$[9]=activeIndex;$[10]=isReady;$[11]=t6;}else{t6=$[11];}var t7;if($[12]===Symbol.for("react.memo_cache_sentinel")){t7=t8=>{var index=t8.index,averageItemLength=t8.averageItemLength;listRef.current?.scrollToOffset({offset:averageItemLength*index,animated:true});};$[12]=t7;}else{t7=$[12];}var t8;if($[13]!==data||$[14]!==keyExtractor||$[15]!==listProps||$[16]!==onScroll||$[17]!==renderItem||$[18]!==reverse||$[19]!==showsScrollIndicator||$[20]!==styles.container||$[21]!==styles.content||$[22]!==t6){t8=_jsx(FlatList,{...listProps,ref:listRef,data:data,renderItem:renderItem,keyExtractor:keyExtractor,inverted:reverse,onScroll:onScroll,onContentSizeChange:t6,onScrollToIndexFailed:t7,scrollEventThrottle:16,keyboardShouldPersistTaps:"handled",keyboardDismissMode:"none",showsVerticalScrollIndicator:showsScrollIndicator,style:styles.container,contentContainerStyle:styles.content});$[13]=data;$[14]=keyExtractor;$[15]=listProps;$[16]=onScroll;$[17]=renderItem;$[18]=reverse;$[19]=showsScrollIndicator;$[20]=styles.container;$[21]=styles.content;$[22]=t6;$[23]=t8;}else{t8=$[23];}var t9;if($[24]!==t5||$[25]!==t8){t9=_jsx(View,{style:t5,children:t8});$[24]=t5;$[25]=t8;$[26]=t9;}else{t9=$[26];}return t9;};var createStyles=defineStyles(theme=>({shadow:{backgroundColor:theme.backgroundColor,borderRadius:theme.borderRadius},container:{backgroundColor:theme.backgroundColor,borderRadius:theme.borderRadius,overflow:"hidden",pointerEvents:"auto",maxHeight:theme.maxHeight},content:{padding:theme.padding,gap:theme.gap},hidden:{opacity:0,pointerEvents:"none"}}));
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,useRef,useState}from"react";import{FlatList,View}from"react-native";import{defineStyles,useComponent}from"../../internal";import{useSystems}from"../../theme/useSystems";import{ScrollViewContextResetter}from"./ScrollViewContextResetter";import{VirtualizedListContextResetter}from"./VirtualizedListContextResetter";import{jsx as _jsx}from"react/jsx-runtime";var VIEW_POSITION=0.33;export var Menu=t0=>{var $=_c(27);var data=t0.data,renderItem=t0.renderItem,keyExtractor=t0.keyExtractor,activeIndex=t0.activeIndex,reverse=t0.reverse,onScroll=t0.onScroll,showsScrollIndicator=t0.showsScrollIndicator,themeOverrides=t0.theme,listProps=t0.listProps;var t1;if($[0]!==themeOverrides){t1={themeOverrides,createStyles};$[0]=themeOverrides;$[1]=t1;}else{t1=$[1];}var _useComponent=useComponent("menu",t1),styles=_useComponent.styles;var _useSystems=useSystems(),shadowStyle=_useSystems.shadowStyle;var listRef=useRef(null);var _useState=useState(activeIndex===undefined||activeIndex<=0),_useState2=_slicedToArray(_useState,2),isReady=_useState2[0],setIsReady=_useState2[1];var t2;var t3;if($[2]!==activeIndex){t2=()=>{if(activeIndex===undefined||activeIndex<0){return;}listRef.current?.scrollToIndex({index:activeIndex,animated:true,viewPosition:VIEW_POSITION});};t3=[activeIndex];$[2]=activeIndex;$[3]=t2;$[4]=t3;}else{t2=$[3];t3=$[4];}useEffect(t2,t3);var t4=!isReady&&styles.hidden;var t5;if($[5]!==shadowStyle||$[6]!==styles.shadow||$[7]!==t4){t5=[styles.shadow,shadowStyle,t4];$[5]=shadowStyle;$[6]=styles.shadow;$[7]=t4;$[8]=t5;}else{t5=$[8];}var t6;if($[9]!==activeIndex||$[10]!==isReady){t6=()=>{if(activeIndex!==undefined&&activeIndex>=0){listRef.current?.scrollToIndex({index:activeIndex,animated:false,viewPosition:VIEW_POSITION});}if(!isReady){requestAnimationFrame(()=>setIsReady(true));}};$[9]=activeIndex;$[10]=isReady;$[11]=t6;}else{t6=$[11];}var t7;if($[12]===Symbol.for("react.memo_cache_sentinel")){t7=t8=>{var index=t8.index,averageItemLength=t8.averageItemLength;listRef.current?.scrollToOffset({offset:averageItemLength*index,animated:true});};$[12]=t7;}else{t7=$[12];}var t8;if($[13]!==data||$[14]!==keyExtractor||$[15]!==listProps||$[16]!==onScroll||$[17]!==renderItem||$[18]!==reverse||$[19]!==showsScrollIndicator||$[20]!==styles.container||$[21]!==styles.content||$[22]!==t6){t8=_jsx(FlatList,{...listProps,ref:listRef,data:data,renderItem:renderItem,keyExtractor:keyExtractor,inverted:reverse,onScroll:onScroll,onContentSizeChange:t6,onScrollToIndexFailed:t7,scrollEventThrottle:16,keyboardShouldPersistTaps:"always",keyboardDismissMode:"none",showsVerticalScrollIndicator:showsScrollIndicator,style:styles.container,contentContainerStyle:styles.content});$[13]=data;$[14]=keyExtractor;$[15]=listProps;$[16]=onScroll;$[17]=renderItem;$[18]=reverse;$[19]=showsScrollIndicator;$[20]=styles.container;$[21]=styles.content;$[22]=t6;$[23]=t8;}else{t8=$[23];}var t9;if($[24]!==t5||$[25]!==t8){t9=_jsx(VirtualizedListContextResetter,{children:_jsx(ScrollViewContextResetter,{children:_jsx(View,{style:t5,children:t8})})});$[24]=t5;$[25]=t8;$[26]=t9;}else{t9=$[26];}return t9;};var createStyles=defineStyles(theme=>({shadow:{backgroundColor:theme.backgroundColor,borderRadius:theme.borderRadius},container:{backgroundColor:theme.backgroundColor,borderRadius:theme.borderRadius,overflow:"hidden",pointerEvents:"auto",maxHeight:theme.maxHeight},content:{padding:theme.padding,gap:theme.gap},hidden:{opacity:0,pointerEvents:"none"}}));
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/overlays/menu/MenuItem.tsx";import{c as _c}from"react/compiler-runtime";import{InteractionSurface}from"../../actions/surface";import{defineStyles,useComponent}from"../../internal";import{HighlightedText}from"../../typography/text";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var MenuItem=t0=>{var $=_c(17);var label=t0.label,description=t0.description,searchValue=t0.searchValue,highlighted=t0.highlighted,onPress=t0.onPress;var t1;if($[0]===Symbol.for("react.memo_cache_sentinel")){t1={createStyles};$[0]=t1;}else{t1=$[0];}var _useComponent=useComponent("menuItem",t1),styles=_useComponent.styles,theme=_useComponent.theme;var t2;if($[1]!==theme.textColor){t2={color:theme.textColor};$[1]=theme.textColor;$[2]=t2;}else{t2=$[2];}var t3;if($[3]!==label||$[4]!==searchValue||$[5]!==t2){t3=_jsx(HighlightedText,{text:label,highlight:searchValue,theme:t2});$[3]=label;$[4]=searchValue;$[5]=t2;$[6]=t3;}else{t3=$[6];}var t4;if($[7]!==description||$[8]!==searchValue||$[9]!==theme.textColor){t4=!!description&&_jsx(HighlightedText,{variant:"caption",text:description,highlight:searchValue,theme:{color:theme.textColor}});$[7]=description;$[8]=searchValue;$[9]=theme.textColor;$[10]=t4;}else{t4=$[10];}var t5;if($[11]!==highlighted||$[12]!==onPress||$[13]!==styles.menuItem||$[14]!==t3||$[15]!==t4){t5=_jsxs(InteractionSurface,{hitSlop:0,highlighted:highlighted,onPress:onPress,style:styles.menuItem,children:[t3,t4]});$[11]=highlighted;$[12]=onPress;$[13]=styles.menuItem;$[14]=t3;$[15]=t4;$[16]=t5;}else{t5=$[16];}return t5;};MenuItem.displayName="MenuItem";var createStyles=defineStyles(theme=>({menuItem:{paddingHorizontal:theme.paddingHorizontal,paddingVertical:theme.paddingVertical,borderRadius:theme.borderRadius}}));
1
+ import{c as _c}from"react/compiler-runtime";import{InteractionSurface}from"../../actions/surface";import{defineStyles,useComponent}from"../../internal";import{HighlightedText}from"../../typography/text";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var MenuItem=t0=>{var $=_c(17);var label=t0.label,description=t0.description,searchValue=t0.searchValue,highlighted=t0.highlighted,onPress=t0.onPress;var t1;if($[0]===Symbol.for("react.memo_cache_sentinel")){t1={createStyles};$[0]=t1;}else{t1=$[0];}var _useComponent=useComponent("menuItem",t1),styles=_useComponent.styles,theme=_useComponent.theme;var t2;if($[1]!==theme.textColor){t2={color:theme.textColor};$[1]=theme.textColor;$[2]=t2;}else{t2=$[2];}var t3;if($[3]!==label||$[4]!==searchValue||$[5]!==t2){t3=_jsx(HighlightedText,{text:label,highlight:searchValue,theme:t2});$[3]=label;$[4]=searchValue;$[5]=t2;$[6]=t3;}else{t3=$[6];}var t4;if($[7]!==description||$[8]!==searchValue||$[9]!==theme.textColor){t4=!!description&&_jsx(HighlightedText,{variant:"caption",text:description,highlight:searchValue,theme:{color:theme.textColor}});$[7]=description;$[8]=searchValue;$[9]=theme.textColor;$[10]=t4;}else{t4=$[10];}var t5;if($[11]!==highlighted||$[12]!==onPress||$[13]!==styles.menuItem||$[14]!==t3||$[15]!==t4){t5=_jsxs(InteractionSurface,{hitSlop:0,highlighted:highlighted,onPress:onPress,style:styles.menuItem,children:[t3,t4]});$[11]=highlighted;$[12]=onPress;$[13]=styles.menuItem;$[14]=t3;$[15]=t4;$[16]=t5;}else{t5=$[16];}return t5;};MenuItem.displayName="MenuItem";var createStyles=defineStyles(theme=>({menuItem:{paddingHorizontal:theme.paddingHorizontal,paddingVertical:theme.paddingVertical,borderRadius:theme.borderRadius}}));
@@ -0,0 +1 @@
1
+ import{c as _c}from"react/compiler-runtime";import ScrollViewContext from"react-native/Libraries/Components/ScrollView/ScrollViewContext";import{jsx as _jsx}from"react/jsx-runtime";export var ScrollViewContextResetter=t0=>{var $=_c(2);var children=t0.children;var t1;if($[0]!==children){t1=_jsx(ScrollViewContext.Provider,{value:null,children:children});$[0]=children;$[1]=t1;}else{t1=$[1];}return t1;};
@@ -0,0 +1 @@
1
+ import{c as _c}from"react/compiler-runtime";import{Fragment as _Fragment,jsx as _jsx}from"react/jsx-runtime";export var ScrollViewContextResetter=t0=>{var $=_c(2);var children=t0.children;var t1;if($[0]!==children){t1=_jsx(_Fragment,{children:children});$[0]=children;$[1]=t1;}else{t1=$[1];}return t1;};
@@ -0,0 +1 @@
1
+ import{VirtualizedListContextResetter as NativeResetter}from"react-native/Libraries/Lists/VirtualizedListContext";export var VirtualizedListContextResetter=NativeResetter;
@@ -0,0 +1 @@
1
+ import{VirtualizedListContextResetter as WebResetter}from"react-native-web/dist/vendor/react-native/VirtualizedList/VirtualizedListContext";export var VirtualizedListContextResetter=WebResetter;
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/theme/ThemeProvider.tsx";import{c as _c}from"react/compiler-runtime";import{mergeIcons}from"./icons";import{createPalette}from"./palette";import{resolveTheme}from"./resolveTheme";import{createSystems}from"./systems";import{ThemeContext}from"./ThemeContext";import{jsx as _jsx}from"react/jsx-runtime";export var ThemeProvider=t0=>{var $=_c(16);var initialPalette=t0.palette,initialTheme=t0.theme,initialSystems=t0.systems,initialIcons=t0.icons,children=t0.children;var palette;var t1;var theme;if($[0]!==initialPalette||$[1]!==initialSystems||$[2]!==initialTheme){palette=createPalette(initialPalette);theme=resolveTheme(palette,initialTheme);t1=createSystems(palette,initialSystems);$[0]=initialPalette;$[1]=initialSystems;$[2]=initialTheme;$[3]=palette;$[4]=t1;$[5]=theme;}else{palette=$[3];t1=$[4];theme=$[5];}var systems=t1;var t2;if($[6]!==initialIcons){t2=mergeIcons(initialIcons);$[6]=initialIcons;$[7]=t2;}else{t2=$[7];}var icons=t2;var t3;if($[8]!==icons||$[9]!==palette||$[10]!==systems||$[11]!==theme){t3={palette,theme,systems,icons};$[8]=icons;$[9]=palette;$[10]=systems;$[11]=theme;$[12]=t3;}else{t3=$[12];}var value=t3;var t4;if($[13]!==children||$[14]!==value){t4=_jsx(ThemeContext.Provider,{value:value,children:children});$[13]=children;$[14]=value;$[15]=t4;}else{t4=$[15];}return t4;};
1
+ import{c as _c}from"react/compiler-runtime";import{mergeIcons}from"./icons";import{createPalette}from"./palette";import{resolveTheme}from"./resolveTheme";import{createSystems}from"./systems";import{ThemeContext}from"./ThemeContext";import{jsx as _jsx}from"react/jsx-runtime";export var ThemeProvider=t0=>{var $=_c(16);var initialPalette=t0.palette,initialTheme=t0.theme,initialSystems=t0.systems,initialIcons=t0.icons,children=t0.children;var palette;var t1;var theme;if($[0]!==initialPalette||$[1]!==initialSystems||$[2]!==initialTheme){palette=createPalette(initialPalette);theme=resolveTheme(palette,initialTheme);t1=createSystems(palette,initialSystems);$[0]=initialPalette;$[1]=initialSystems;$[2]=initialTheme;$[3]=palette;$[4]=t1;$[5]=theme;}else{palette=$[3];t1=$[4];theme=$[5];}var systems=t1;var t2;if($[6]!==initialIcons){t2=mergeIcons(initialIcons);$[6]=initialIcons;$[7]=t2;}else{t2=$[7];}var icons=t2;var t3;if($[8]!==icons||$[9]!==palette||$[10]!==systems||$[11]!==theme){t3={palette,theme,systems,icons};$[8]=icons;$[9]=palette;$[10]=systems;$[11]=theme;$[12]=t3;}else{t3=$[12];}var value=t3;var t4;if($[13]!==children||$[14]!==value){t4=_jsx(ThemeContext.Provider,{value:value,children:children});$[13]=children;$[14]=value;$[15]=t4;}else{t4=$[15];}return t4;};
@@ -1 +1 @@
1
- var _excluded=["children"];var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/theme/createAppTheme.tsx";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{createContext,use}from"react";import{StyleSheet}from"react-native";import{ThemeContext}from"./ThemeContext";import{ThemeProvider}from"./ThemeProvider";import{jsx as _jsx}from"react/jsx-runtime";export var createAppTheme=createValues=>{var AppThemeContext=createContext(undefined);var useAppTheme=()=>{var appTheme=use(AppThemeContext);if(appTheme===undefined){throw new Error("useAppTheme must be used within AppThemeProvider");}return appTheme;};var defineStyles=factory=>(context,props)=>StyleSheet.create(factory(context,props));function useStyles(factory,props){var $=_c(5);var baseContext=use(ThemeContext);var appTheme=useAppTheme();var t0;if($[0]!==appTheme||$[1]!==baseContext||$[2]!==factory||$[3]!==props){t0=factory({...baseContext,appTheme},props);$[0]=appTheme;$[1]=baseContext;$[2]=factory;$[3]=props;$[4]=t0;}else{t0=$[4];}return t0;}var AppThemeLayer=t0=>{var $=_c(5);var children=t0.children;var baseContext=use(ThemeContext);var t1;if($[0]!==baseContext){t1=createValues(baseContext);$[0]=baseContext;$[1]=t1;}else{t1=$[1];}var appTheme=t1;var t2;if($[2]!==appTheme||$[3]!==children){t2=_jsx(AppThemeContext.Provider,{value:appTheme,children:children});$[2]=appTheme;$[3]=children;$[4]=t2;}else{t2=$[4];}return t2;};var AppThemeProvider=t0=>{var $=_c(8);var children;var themProviderProps;if($[0]!==t0){children=t0.children;themProviderProps=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=children;$[2]=themProviderProps;}else{children=$[1];themProviderProps=$[2];}var t1;if($[3]!==children){t1=_jsx(AppThemeLayer,{children:children});$[3]=children;$[4]=t1;}else{t1=$[4];}var t2;if($[5]!==t1||$[6]!==themProviderProps){t2=_jsx(ThemeProvider,{...themProviderProps,children:t1});$[5]=t1;$[6]=themProviderProps;$[7]=t2;}else{t2=$[7];}return t2;};return{AppThemeProvider,useAppTheme,defineStyles,useStyles};};
1
+ var _excluded=["children"];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{createContext,use}from"react";import{StyleSheet}from"react-native";import{ThemeContext}from"./ThemeContext";import{ThemeProvider}from"./ThemeProvider";import{jsx as _jsx}from"react/jsx-runtime";export var createAppTheme=createValues=>{var AppThemeContext=createContext(undefined);var useAppTheme=()=>{var appTheme=use(AppThemeContext);if(appTheme===undefined){throw new Error("useAppTheme must be used within AppThemeProvider");}return appTheme;};var defineStyles=factory=>(context,props)=>StyleSheet.create(factory(context,props));function useStyles(factory,props){var $=_c(5);var baseContext=use(ThemeContext);var appTheme=useAppTheme();var t0;if($[0]!==appTheme||$[1]!==baseContext||$[2]!==factory||$[3]!==props){t0=factory({...baseContext,appTheme},props);$[0]=appTheme;$[1]=baseContext;$[2]=factory;$[3]=props;$[4]=t0;}else{t0=$[4];}return t0;}var AppThemeLayer=t0=>{var $=_c(5);var children=t0.children;var baseContext=use(ThemeContext);var t1;if($[0]!==baseContext){t1=createValues(baseContext);$[0]=baseContext;$[1]=t1;}else{t1=$[1];}var appTheme=t1;var t2;if($[2]!==appTheme||$[3]!==children){t2=_jsx(AppThemeContext.Provider,{value:appTheme,children:children});$[2]=appTheme;$[3]=children;$[4]=t2;}else{t2=$[4];}return t2;};var AppThemeProvider=t0=>{var $=_c(8);var children;var themProviderProps;if($[0]!==t0){children=t0.children;themProviderProps=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=children;$[2]=themProviderProps;}else{children=$[1];themProviderProps=$[2];}var t1;if($[3]!==children){t1=_jsx(AppThemeLayer,{children:children});$[3]=children;$[4]=t1;}else{t1=$[4];}var t2;if($[5]!==t1||$[6]!==themProviderProps){t2=_jsx(ThemeProvider,{...themProviderProps,children:t1});$[5]=t1;$[6]=themProviderProps;$[7]=t2;}else{t2=$[7];}return t2;};return{AppThemeProvider,useAppTheme,defineStyles,useStyles};};
@@ -1 +1 @@
1
- export{darkColorScheme,lightColorScheme}from"./colors";export{createAppTheme}from"./createAppTheme";export{useSystems}from"./useSystems";export{usePalette}from"./useTheme";
1
+ export{darkColorScheme,lightColorScheme}from"./colors";export{createAppTheme}from"./createAppTheme";export{useSystems}from"./useSystems";export{useComponentThemes,usePalette}from"./useTheme";
@@ -1 +1 @@
1
- import{defaultActionTheme}from"../actions/action/Action.theme";import{defaultActionBaseTheme}from"../actions/action/ActionBase.theme";import{defaultIconActionTheme}from"../actions/action/IconAction.theme";import{defaultIconActionBaseTheme}from"../actions/action/IconActionBase.theme";import{defaultButtonTheme}from"../actions/button/Button.theme";import{defaultButtonBaseTheme}from"../actions/button/ButtonBase.theme";import{defaultIconButtonTheme}from"../actions/button/IconButton.theme";import{defaultIconButtonBaseTheme}from"../actions/button/IconButtonBase.theme";import{defaultStateLayerTheme}from"../actions/surface/StateLayer.theme";import{defaultSwipeActionTheme}from"../actions/swipeAction/SwipeAction.theme";import{defaultAvatarTheme}from"../display/avatar/Avatar.theme";import{defaultBadgeTheme}from"../display/badge/Badge.theme";import{defaultContentRowTheme}from"../display/contentRow/ContentRow.theme";import{defaultListItemTheme}from"../display/listItem/ListItem.theme";import{defaultRatingTheme}from"../display/rating/Rating.theme";import{defaultTagTheme}from"../display/tag/Tag.theme";import{defaultTagIconTheme}from"../display/tag/TagIcon.theme";import{defaultToggleIndicatorTheme}from"../display/toggleIndicator/ToggleIndicator.theme";import{defaultToastTheme}from"../feedback/toast/Toast.theme";import{defaultFieldTheme}from"../forms/field/Field.theme";import{defaultFormContainerTheme}from"../forms/formContainer/FormContainer.theme";import{defaultFormRowTheme}from"../forms/formRow/FormRow.theme";import{defaultComboboxInputTheme}from"../forms/input/comboboxInput/ComboboxInput.theme";import{defaultRatingInputTheme}from"../forms/input/ratingInput/RatingInput.theme";import{defaultSelectionInputTheme}from"../forms/input/selectionInput/SelectionInput.theme";import{defaultToggleInputTheme}from"../forms/input/toggleInput/ToggleInput.theme";import{defaultIconTheme}from"../icons/Icon.theme";import{defaultIconBaseTheme}from"../icons/IconBase.theme";import{defaultAnchoredContainerTheme}from"../overlays/anchoredContainer/AnchoredContainer.theme";import{defaultMenuTheme}from"../overlays/menu/Menu.theme";import{defaultMenuItemTheme}from"../overlays/menu/MenuItem.theme";import{defaultHighlightedTextTheme}from"../typography/text/HighlightedText.theme";import{defaultTextTheme}from"../typography/text/Text.theme";export var definitions={text:defaultTextTheme,highlightedText:defaultHighlightedTextTheme,iconBase:defaultIconBaseTheme,icon:defaultIconTheme,action:defaultActionTheme,actionBase:defaultActionBaseTheme,iconActionBase:defaultIconActionBaseTheme,iconAction:defaultIconActionTheme,buttonBase:defaultButtonBaseTheme,button:defaultButtonTheme,iconButtonBase:defaultIconButtonBaseTheme,iconButton:defaultIconButtonTheme,stateLayer:defaultStateLayerTheme,field:defaultFieldTheme,selectionInput:defaultSelectionInputTheme,toggleInput:defaultToggleInputTheme,toggleIndicator:defaultToggleIndicatorTheme,comboboxInput:defaultComboboxInputTheme,rating:defaultRatingTheme,ratingInput:defaultRatingInputTheme,badge:defaultBadgeTheme,tag:defaultTagTheme,tagIcon:defaultTagIconTheme,contentRow:defaultContentRowTheme,listItem:defaultListItemTheme,menu:defaultMenuTheme,menuItem:defaultMenuItemTheme,avatar:defaultAvatarTheme,toast:defaultToastTheme,swipeAction:defaultSwipeActionTheme,anchoredContainer:defaultAnchoredContainerTheme,formContainer:defaultFormContainerTheme,formRow:defaultFormRowTheme};
1
+ import{defaultActionTheme}from"../actions/action/Action.theme";import{defaultActionBaseTheme}from"../actions/action/ActionBase.theme";import{defaultIconActionTheme}from"../actions/action/IconAction.theme";import{defaultIconActionBaseTheme}from"../actions/action/IconActionBase.theme";import{defaultButtonTheme}from"../actions/button/Button.theme";import{defaultButtonBaseTheme}from"../actions/button/ButtonBase.theme";import{defaultIconButtonTheme}from"../actions/button/IconButton.theme";import{defaultIconButtonBaseTheme}from"../actions/button/IconButtonBase.theme";import{defaultStateLayerTheme}from"../actions/surface/StateLayer.theme";import{defaultSwipeActionTheme}from"../actions/swipeAction/SwipeAction.theme";import{defaultAvatarTheme}from"../display/avatar/Avatar.theme";import{defaultBadgeTheme}from"../display/badge/Badge.theme";import{defaultContentRowTheme}from"../display/contentRow/ContentRow.theme";import{defaultListItemTheme}from"../display/listItem/ListItem.theme";import{defaultRatingTheme}from"../display/rating/Rating.theme";import{defaultTagTheme}from"../display/tag/Tag.theme";import{defaultTagIconTheme}from"../display/tag/TagIcon.theme";import{defaultToggleIndicatorTheme}from"../display/toggleIndicator/ToggleIndicator.theme";import{defaultToastTheme}from"../feedback/toast/Toast.theme";import{defaultFieldTheme}from"../forms/field/Field.theme";import{defaultFormContainerTheme}from"../forms/formContainer/FormContainer.theme";import{defaultFormRowTheme}from"../forms/formRow/FormRow.theme";import{defaultComboboxInputTheme}from"../forms/input/comboboxInput/ComboboxInput.theme";import{defaultCounterInputTheme}from"../forms/input/counterInput/CounterInput.theme";import{defaultNumberInputTheme}from"../forms/input/numberInput/NumberInput.theme";import{defaultRatingInputTheme}from"../forms/input/ratingInput/RatingInput.theme";import{defaultSelectionInputTheme}from"../forms/input/selectionInput/SelectionInput.theme";import{defaultTextInputTheme}from"../forms/input/TextInput.theme";import{defaultTimeInputTheme}from"../forms/input/timeInput/TimeInput.theme";import{defaultToggleInputTheme}from"../forms/input/toggleInput/ToggleInput.theme";import{defaultIconTheme}from"../icons/Icon.theme";import{defaultIconBaseTheme}from"../icons/IconBase.theme";import{defaultAnchoredContainerTheme}from"../overlays/anchoredContainer/AnchoredContainer.theme";import{defaultMenuTheme}from"../overlays/menu/Menu.theme";import{defaultMenuItemTheme}from"../overlays/menu/MenuItem.theme";import{defaultHighlightedTextTheme}from"../typography/text/HighlightedText.theme";import{defaultTextTheme}from"../typography/text/Text.theme";export var definitions={text:defaultTextTheme,highlightedText:defaultHighlightedTextTheme,iconBase:defaultIconBaseTheme,icon:defaultIconTheme,action:defaultActionTheme,actionBase:defaultActionBaseTheme,iconActionBase:defaultIconActionBaseTheme,iconAction:defaultIconActionTheme,buttonBase:defaultButtonBaseTheme,button:defaultButtonTheme,iconButtonBase:defaultIconButtonBaseTheme,iconButton:defaultIconButtonTheme,stateLayer:defaultStateLayerTheme,field:defaultFieldTheme,textInput:defaultTextInputTheme,numberInput:defaultNumberInputTheme,counterInput:defaultCounterInputTheme,timeInput:defaultTimeInputTheme,selectionInput:defaultSelectionInputTheme,toggleInput:defaultToggleInputTheme,toggleIndicator:defaultToggleIndicatorTheme,comboboxInput:defaultComboboxInputTheme,rating:defaultRatingTheme,ratingInput:defaultRatingInputTheme,badge:defaultBadgeTheme,tag:defaultTagTheme,tagIcon:defaultTagIconTheme,contentRow:defaultContentRowTheme,listItem:defaultListItemTheme,menu:defaultMenuTheme,menuItem:defaultMenuItemTheme,avatar:defaultAvatarTheme,toast:defaultToastTheme,swipeAction:defaultSwipeActionTheme,anchoredContainer:defaultAnchoredContainerTheme,formContainer:defaultFormContainerTheme,formRow:defaultFormRowTheme};
@@ -1 +1 @@
1
- import{use}from"react";import{ThemeContext}from"./ThemeContext";export var useThemeContext=()=>use(ThemeContext);export var usePalette=()=>use(ThemeContext).palette;
1
+ import{use}from"react";import{ThemeContext}from"./ThemeContext";export var useThemeContext=()=>use(ThemeContext);export var usePalette=()=>use(ThemeContext).palette;export var useComponentThemes=()=>use(ThemeContext).theme;
@@ -1,7 +1,8 @@
1
1
  import { type FC, type ReactNode } from "react";
2
2
  import { type StyleProp, type ViewStyle } from "react-native";
3
+ import type { DeepPartial } from "@reillymc/es-utils";
3
4
  import type { ComponentIconAssets } from "../../icons/componentIconAssets";
4
- import type { InputVariant } from "./Field.theme";
5
+ import type { FieldTheme, InputVariant } from "./Field.theme";
5
6
  export type FieldIcons = ComponentIconAssets<"error">;
6
7
  type FieldBaseProps = {
7
8
  /** Help text rendered below the control. */
@@ -24,8 +25,11 @@ type FieldLabelProps = {
24
25
  /** Hide the label visually while keeping it as the accessible name. */
25
26
  hideLabel?: boolean;
26
27
  };
27
- export type FieldProps = FieldBaseProps & FieldLabelProps;
28
- export type FieldComponentProps = Omit<FieldProps, "children">;
28
+ export type FieldProps = FieldBaseProps & FieldLabelProps & {
29
+ /** Overrides Field scaffold styles. Field primitives resolve their own theme. */
30
+ theme?: DeepPartial<FieldTheme>;
31
+ };
32
+ export type FieldComponentProps = Omit<FieldProps, "children" | "theme">;
29
33
  /**
30
34
  * Standard field scaffold: label, control, help/error copy, and required marker.
31
35
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../../src/forms/field/Field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAC;AACvD,OAAO,EAAa,KAAK,SAAS,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc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,MAAM,iCAAiC,CAAC;AAI3E,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAmB9D,MAAM,MAAM,UAAU,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAEtD,KAAK,cAAc,GAAG;IAClB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAChC,CAAC;AAEF,KAAK,eAAe,GAAG;IACnB,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,cAAc,GACnC,eAAe,GAAG;IACd,iFAAiF;IACjF,KAAK,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;CACnC,CAAC;AAEN,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC;AAEzE;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAwGhC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { ColorValue } from "react-native";
1
+ import type { ColorValue, TextStyle } from "react-native";
2
2
  import type { SizeVariant } from "../../theme/size";
3
3
  import type { ThemeFactory } from "../../theme/theme";
4
4
  export type InputVariant = SizeVariant;
@@ -13,8 +13,9 @@ export type FieldTheme = {
13
13
  errorBorderColor: ColorValue;
14
14
  };
15
15
  text: {
16
- fontSize: number;
17
- fontFamily: string;
16
+ fontSize: TextStyle["fontSize"];
17
+ fontFamily: TextStyle["fontFamily"];
18
+ fontWeight: TextStyle["fontWeight"];
18
19
  color: ColorValue;
19
20
  placeholderColor: ColorValue;
20
21
  };
@@ -25,13 +26,11 @@ export type FieldTheme = {
25
26
  label: {
26
27
  gap: number;
27
28
  };
28
- row: {
29
- gap: number;
30
- };
31
29
  help: {
32
30
  gap: number;
33
31
  color: ColorValue;
34
32
  errorColor: ColorValue;
33
+ inset: number;
35
34
  };
36
35
  required: {
37
36
  color: ColorValue;
@@ -1 +1 @@
1
- {"version":3,"file":"Field.theme.d.ts","sourceRoot":"","sources":["../../../../src/forms/field/Field.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG;IACrB,OAAO,EAAE;QACL,eAAe,EAAE,UAAU,CAAC;QAC5B,WAAW,EAAE,UAAU,CAAC;QACxB,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;QACxC,OAAO,EAAE,MAAM,CAAC;QAChB,gBAAgB,EAAE,UAAU,CAAC;KAChC,CAAC;IACF,IAAI,EAAE;QACF,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,EAAE,UAAU,CAAC;QAClB,gBAAgB,EAAE,UAAU,CAAC;KAChC,CAAC;IACF,IAAI,EAAE;QACF,KAAK,EAAE,UAAU,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,KAAK,EAAE;QACH,GAAG,EAAE,MAAM,CAAC;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AE,MAAM,CAAC;KAChB,CAAC;IACF,KAAK,EAAE;QACH,GAAG,EAAE,MAAM,CAAC;KACf,CAAC;IACF,IAAI,EAAE;QACF,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,UAAU,CAAC;QAClB,UAAU,EAAE,UAAU,CAAC;QACvB,KAAK,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,QAAQ,EAAE;QACN,KAAK,EAAE,UAAU,CAAC;KACrB,CAAC;CACL,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,OAAO,CAwCnD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FieldRow.d.ts","sourceRoot":"","sources":["../../../../src/forms/field/FieldRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,KAAK,SAAS,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAOpE,MAAM,MAAM,aAAa,GAAG;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAatC,CAAC"}
1
+ {"version":3,"file":"FieldRow.d.ts","sourceRoot":"","sources":["../../../../src/forms/field/FieldRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,KAAK,SAAS,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAMpE,MAAM,MAAM,aAAa,GAAG;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAatC,CAAC"}
@@ -1,9 +1,12 @@
1
1
  import { type FC, type ReactNode, type Ref } from "react";
2
2
  import { type StyleProp, View, type ViewStyle } from "react-native";
3
+ import type { DeepPartial } from "@reillymc/es-utils";
4
+ import type { FieldTheme } from "./Field.theme";
3
5
  export type FieldSurfaceProps = {
4
6
  onPress?: () => void;
5
7
  children?: ReactNode;
6
8
  style?: StyleProp<ViewStyle>;
9
+ theme?: DeepPartial<FieldTheme["surface"]>;
7
10
  ref?: Ref<View>;
8
11
  };
9
12
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"FieldSurface.d.ts","sourceRoot":"","sources":["../../../../src/forms/field/FieldSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAY,MAAM,OAAO,CAAC;AACpE,OAAO,EAEH,KAAK,SAAS,EAEd,IAAI,EACJ,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AAStB,MAAM,MAAM,iBAAiB,GAAG;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAgE9C,CAAC"}
1
+ {"version":3,"file":"FieldSurface.d.ts","sourceRoot":"","sources":["../../../../src/forms/field/FieldSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAY,MAAM,OAAO,CAAC;AACpE,OAAO,EAEH,KAAK,SAAS,EAEd,IAAI,EACJ,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAItD,OAAO,KAAK,EAAE,UAAU,EAAgB,MAAM,eAAe,CAAC;AAK9D,MAAM,MAAM,iBAAiB,GAAG;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC;IAC3C,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAkE9C,CAAC"}
@@ -2,16 +2,14 @@ import type { FC, Ref } from "react";
2
2
  import { TextInput, type TextInputProps } from "react-native";
3
3
  import type { DeepPartial } from "@reillymc/es-utils";
4
4
  import type { FieldTheme } from "./Field.theme";
5
- type FieldTextInputTheme = DeepPartial<Pick<FieldTheme, "text"> & {
6
- surface: Pick<FieldTheme["surface"], "padding">;
7
- }>;
5
+ export type FieldTextInputTheme = FieldTheme["text"];
8
6
  export type FieldTextInputProps = Omit<TextInputProps, "editable"> & {
9
7
  /**
10
8
  * Slot-level keyboard lock for controls that disable typing without
11
9
  * disabling the field. Field disabled/read-only state comes from context.
12
10
  */
13
11
  readOnly?: boolean;
14
- theme?: FieldTextInputTheme;
12
+ theme?: DeepPartial<FieldTextInputTheme>;
15
13
  ref?: Ref<TextInput>;
16
14
  };
17
15
  /**
@@ -20,5 +18,4 @@ export type FieldTextInputProps = Omit<TextInputProps, "editable"> & {
20
18
  * Should be used as the base of any textual form input elements.
21
19
  */
22
20
  export declare const FieldTextInput: FC<FieldTextInputProps>;
23
- export {};
24
21
  //# sourceMappingURL=FieldTextInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldTextInput.d.ts","sourceRoot":"","sources":["../../../../src/forms/field/FieldTextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAKtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,KAAK,mBAAmB,GAAG,WAAW,CAClC,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG;IACvB,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC;CACnD,CACJ,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,GAAG;IACjE;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAC5B,GAAG,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA2ElD,CAAC"}
1
+ {"version":3,"file":"FieldTextInput.d.ts","sourceRoot":"","sources":["../../../../src/forms/field/FieldTextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAKtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;AAErD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,GAAG;IACjE;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC;IACzC,GAAG,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA0ElD,CAAC"}
@@ -13,7 +13,7 @@ export type { FieldRowProps } from "./FieldRow";
13
13
  export { FieldRow } from "./FieldRow";
14
14
  export type { FieldSurfaceProps } from "./FieldSurface";
15
15
  export { FieldSurface } from "./FieldSurface";
16
- export type { FieldTextInputProps } from "./FieldTextInput";
16
+ export type { FieldTextInputProps, FieldTextInputTheme, } from "./FieldTextInput";
17
17
  export { FieldTextInput } from "./FieldTextInput";
18
18
  export { useFieldControlFocus } from "./useFieldControlFocus";
19
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/forms/field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,YAAY,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC9D,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,M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C;AAC9C,YAAY,EACR,mBAAmB,EACnB,mBAAmB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1,9 +1,9 @@
1
- export type { FieldActionProps, FieldComponentProps, FieldIconProps, FieldNumberInputProps, FieldProps, FieldRowProps, FieldSurfaceProps, FieldTextInputProps, InputVariant, } from "./field";
1
+ export type { FieldActionProps, FieldComponentProps, FieldIconProps, FieldNumberInputProps, FieldProps, FieldRowProps, FieldSurfaceProps, FieldTextInputProps, FieldTextInputTheme, InputVariant, } from "./field";
2
2
  export { Field, FieldAction, FieldIcon, FieldNumberInput, FieldRow, FieldSurface, FieldTextInput, } from "./field";
3
3
  export type { FormContainerProps } from "./formContainer";
4
4
  export { FormContainer } from "./formContainer";
5
5
  export type { FormRowProps } from "./formRow";
6
6
  export { FormRow } from "./formRow";
7
- export type { ComboboxInputHandle, ComboboxInputProps, ComboboxValue, CounterInputProps, FractionValue, NumberInputHandle, NumberInputPlaceholders, NumberInputProps, NumberInputValue, NumberValue, RangeValue, RatingInputProps, SelectionInputProps, TextInputProps, TimeInputHandle, TimeInputPlaceholders, TimeInputProps, TimeInputValue, ToggleInputProps, ToggleInputTheme, ValueItem, ValueItemComplex, ValueItemSimple, } from "./input";
7
+ export type { ComboboxInputHandle, ComboboxInputProps, ComboboxInputTheme, ComboboxValue, CounterInputProps, CounterInputTheme, FractionValue, NumberInputHandle, NumberInputPlaceholders, NumberInputProps, NumberInputTheme, NumberInputValue, NumberValue, RangeValue, RatingInputProps, SelectionInputProps, TextInputProps, TextInputTheme, TimeInputHandle, TimeInputPlaceholders, TimeInputProps, TimeInputTheme, TimeInputValue, ToggleInputProps, ToggleInputTheme, ValueItem, ValueItemComplex, ValueItemSimple, } from "./input";
8
8
  export { ComboboxInput, CounterInput, NumberInput, RatingInput, SelectionInput, TextInput, TimeInput, ToggleInput, } from "./input";
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/forms/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACrB,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,GACf,MAAM,SAAS,CAAC;AACjB,OAAO,EACH,KAAK,EACL,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,cAAc,GACjB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EACR,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,gBAAgB,EAChB,eAAe,GAClB,MAAM,SAAS,CAAC;AACjB,OAAO,EACH,aAAa,EACb,YAAY,EACZ,WAAW,EACX,WAAW,EACX,cAAc,EACd,SAAS,EACT,SAAS,EACT,WAAW,GACd,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/forms/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACrB,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,GACf,MAAM,SAAS,CAAC;AACjB,OAAO,EACH,KAAK,EACL,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,cAAc,GACjB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EACR,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,gBAAgB,EAChB,eAAe,GAClB,MAAM,SAAS,CAAC;AACjB,OAAO,EACH,aAAa,EACb,YAAY,EACZ,WAAW,EACX,WAAW,EACX,cAAc,EACd,SAAS,EACT,SAAS,EACT,WAAW,GACd,MAAM,SAAS,CAAC"}
@@ -1,6 +1,10 @@
1
1
  import type { FC } from "react";
2
+ import type { DeepPartial } from "@reillymc/es-utils";
2
3
  import { type FieldComponentProps, type FieldTextInputProps } from "../field";
3
- export type TextInputProps = FieldComponentProps & Omit<FieldTextInputProps, "style">;
4
+ import type { TextInputTheme } from "./TextInput.theme";
5
+ export type TextInputProps = FieldComponentProps & Omit<FieldTextInputProps, "style" | "theme"> & {
6
+ theme?: DeepPartial<TextInputTheme>;
7
+ };
4
8
  /**
5
9
  * Single-line text field.
6
10
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../src/forms/input/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAEH,KAAK,mBAAmB,EAGxB,KAAK,mBAAmB,EAC3B,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAC5C,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CA2BxC,CAAC"}
1
+ {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../src/forms/input/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAEH,KAAK,mBAAmB,EAGxB,KAAK,mBAAmB,EAC3B,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAC5C,IAAI,CAAC,mBAAmB,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG;IAC3C,KAAK,CAAC,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;CACvC,CAAC;AAEN;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAgCxC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { ThemeFactory } from "../../theme/theme";
2
+ import type { FieldTextInputTheme } from "../field";
3
+ export type TextInputTheme = {
4
+ textInput: FieldTextInputTheme;
5
+ };
6
+ export declare const defaultTextInputTheme: ThemeFactory<"textInput">;
7
+ //# sourceMappingURL=TextInput.theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextInput.theme.d.ts","sourceRoot":"","sources":["../../../../src/forms/input/TextInput.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,MAAM,MAAM,cAAc,GAAG;IACzB,SAAS,EAAE,mBAAmB,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAAC,WAAW,CAI1D,CAAC"}
@@ -1,8 +1,9 @@
1
+ import type { DeepPartial } from "@reillymc/es-utils";
1
2
  import { type FieldComponentProps } from "../../field";
3
+ import type { ComboboxInputTheme } from "./ComboboxInput.theme";
2
4
  import { type ComboboxInputBaseProps } from "./ComboboxInputBase";
3
- export interface ComboboxInputTheme {
4
- panelGap: number;
5
- }
6
- export type ComboboxInputProps<T = string> = Pick<ComboboxInputBaseProps<T>, "autoCapitalize" | "returnKeyType" | "returnKeyLabel" | "onBlur" | "placeholder" | "onChangeText" | "controllerRef" | "clearButtonMode" | "maxLength" | "onSubmitEditing" | "autoFocus" | "items" | "value" | "defaultValue" | "onChange" | "openOnFocus" | "allowsCustomValue" | "blurOnSelect" | "filterItems" | "minimumSearchLength" | "maxSuggestionCount" | "containerPosition" | "ref"> & FieldComponentProps;
7
- export declare const ComboboxInput: <T>({ label, hideLabel, help, error, required, disabled, readOnly, variant, style, onChange, ...props }: ComboboxInputProps<T>) => import("react").JSX.Element;
5
+ export type ComboboxInputProps<T = string> = FieldComponentProps & Pick<ComboboxInputBaseProps<T>, "autoCapitalize" | "returnKeyType" | "returnKeyLabel" | "onBlur" | "placeholder" | "onChangeText" | "controllerRef" | "clearButtonMode" | "maxLength" | "onSubmitEditing" | "autoFocus" | "items" | "value" | "defaultValue" | "onChange" | "openOnFocus" | "allowsCustomValue" | "blurOnSelect" | "filterItems" | "minimumSearchLength" | "maxSuggestionCount" | "containerPosition" | "ref"> & {
6
+ theme?: DeepPartial<ComboboxInputTheme>;
7
+ };
8
+ export declare const ComboboxInput: <T>({ label, hideLabel, help, error, required, disabled, readOnly, variant, style, theme: themeOverrides, onChange, ...props }: ComboboxInputProps<T>) => import("react").JSX.Element;
8
9
  //# sourceMappingURL=ComboboxInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComboboxInput.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/comboboxInput/ComboboxInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAS,KAAK,mBAAmB,EAAgB,MAAM,aAAa,CAAC;AAC5E,OAAO,EAEH,KAAK,sBAAsB,EAC9B,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,MAAM,IAAI,IAAI,CAC7C,sBAAsB,CAAC,CAAC,CAAC,EACvB,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,cAAc,GACd,eAAe,GACf,iBAAiB,GACjB,WAAW,GACX,iBAAiB,GACjB,WAAW,GACX,OAAO,GACP,OAAO,GACP,cAAc,GACd,UAAU,GACV,aAAa,GACb,mBAAmB,GACnB,cAAc,GACd,aAAa,GACb,qBAAqB,GACrB,oBAAoB,GACpB,mBAAmB,GACnB,KAAK,CACV,GACG,mBAAmB,CAAC;AAExB,eAAO,MAAM,aAAa,GAAI,CAAC,EAAG,qGAY/B,kBAAkB,CAAC,CAAC,CAAC,gCAwBvB,CAAC"}
1
+ {"version":3,"file":"ComboboxInput.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/comboboxInput/ComboboxInput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAS,KAAK,mBAAmB,EAAgB,MAAM,aAAa,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAEH,KAAK,sBAAsB,EAC9B,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,MAAM,IAAI,mBAAmB,GAC5D,IAAI,CACA,sBAAsB,CAAC,CAAC,CAAC,EACvB,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,cAAc,GACd,eAAe,GACf,iBAAiB,GACjB,WAAW,GACX,iBAAiB,GACjB,WAAW,GACX,OAAO,GACP,OAAO,GACP,cAAc,GACd,UAAU,GACV,aAAa,GACb,mBAAmB,GACnB,cAAc,GACd,aAAa,GACb,qBAAqB,GACrB,oBAAoB,GACpB,mBAAmB,GACnB,KAAK,CACV,GAAG;IACA,KAAK,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC;CAC3C,CAAC;AAEN,eAAO,MAAM,aAAa,GAAI,CAAC,EAAG,4HAa/B,kBAAkB,CAAC,CAAC,CAAC,gCA0BvB,CAAC"}
@@ -1,3 +1,9 @@
1
1
  import type { ThemeFactory } from "../../../theme/theme";
2
+ import type { FieldTextInputTheme, FieldTheme } from "../../field";
3
+ export interface ComboboxInputTheme {
4
+ panelGap: number;
5
+ surface: FieldTheme["surface"];
6
+ textInput: FieldTextInputTheme;
7
+ }
2
8
  export declare const defaultComboboxInputTheme: ThemeFactory<"comboboxInput">;
3
9
  //# sourceMappingURL=ComboboxInput.theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComboboxInput.theme.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/comboboxInput/ComboboxInput.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,eAAO,MAAM,yBAAyB,EAAE,YAAY,CAAC,eAAe,CAIlE,CAAC"}
1
+ {"version":3,"file":"ComboboxInput.theme.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/comboboxInput/ComboboxInput.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAC/B,SAAS,EAAE,mBAAmB,CAAC;CAClC;AAED,eAAO,MAAM,yBAAyB,EAAE,YAAY,CAAC,eAAe,CAOlE,CAAC"}
@@ -1,9 +1,11 @@
1
1
  import { type Ref } from "react";
2
2
  import type { TextInput as DefaultTextInput, View } from "react-native";
3
3
  import type { AnimatedRef } from "react-native-reanimated";
4
+ import type { DeepPartial } from "@reillymc/es-utils";
4
5
  import { type AnchoredContainerProps } from "../../../overlays/anchoredContainer";
5
6
  import { type FieldTextInputProps } from "../../field";
6
7
  import type { ValueItem } from "../valueItem";
8
+ import type { ComboboxInputTheme } from "./ComboboxInput.theme";
7
9
  import { type ComboboxValue } from "./helpers";
8
10
  export type { ComboboxValue } from "./helpers";
9
11
  export interface ComboboxInputHandle {
@@ -67,6 +69,7 @@ export type ComboboxInputBaseProps<T = string> = Pick<FieldTextInputProps, "auto
67
69
  * mount, which can clip inside scrollable or clipped parents.
68
70
  */
69
71
  anchorRef?: AnimatedRef<View>;
72
+ theme?: DeepPartial<ComboboxInputTheme>;
70
73
  ref?: Ref<DefaultTextInput>;
71
74
  };
72
75
  export declare const ComboboxInputBase: <T>(props: ComboboxInputBaseProps<T>) => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"ComboboxInputBase.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/comboboxInput/ComboboxInputBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAiC,MAAM,OAAO,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,IAAI,gBAAgB,EAAE,IAAI,EAAE,MAAM,cAAc,CA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,GAAG,CAAC,mBAAmB,CAAC,CAAC;IAEzC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,wDAAwD;IACxD,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAE7D;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,oDAAoD;IACpD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,iBAAiB,CAAC,EAAE,sBAAsB,CAAC,UAAU,CAAC,CAAC;IAEvD;;;OAGG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAE9B,KAAK,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC;IAExC,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC/B,CAAC;AAIF,eAAO,MAAM,iBAAiB,GAAI,CAAC,EAAG,OAAO,sBAAsB,CAAC,CAAC,CAAC,gCAiIrE,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export type { ComboboxInputProps } from "./ComboboxInput";
2
2
  export { ComboboxInput } from "./ComboboxInput";
3
+ export type { ComboboxInputTheme } from "./ComboboxInput.theme";
3
4
  export type { ComboboxInputHandle, ComboboxValue } from "./ComboboxInputBase";
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/comboboxInput/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/comboboxInput/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import type { FC } from "react";
2
+ import type { DeepPartial } from "@reillymc/es-utils";
2
3
  import { type FieldNumberInputProps } from "../../field";
3
4
  import type { CounterInputProps } from "./CounterInput";
5
+ import type { CounterInputTheme } from "./CounterInput.theme";
4
6
  export type CounterControlProps = {
5
7
  value?: string;
6
8
  onChange?: (value: string) => void;
@@ -12,6 +14,7 @@ export type CounterControlProps = {
12
14
  placeholder?: string;
13
15
  maxLength?: number;
14
16
  onSubmitEditing?: FieldNumberInputProps["onSubmitEditing"];
17
+ theme?: DeepPartial<CounterInputTheme>;
15
18
  };
16
19
  export declare const CounterControl: FC<CounterControlProps>;
17
20
  //# sourceMappingURL=CounterControl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CounterControl.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/counterInput/CounterControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC,OAAO,EAGH,KAAK,qBAAqB,EAI7B,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,MAAM,MAAM,mBAAmB,GAAG;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,Q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C,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA0ElD,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import type { FC } from "react";
2
+ import type { DeepPartial } from "@reillymc/es-utils";
2
3
  import type { ComponentIconAssets } from "../../../icons/componentIconAssets";
3
4
  import { type FieldComponentProps, type FieldNumberInputProps } from "../../field";
5
+ import type { CounterInputTheme } from "./CounterInput.theme";
4
6
  export type CounterInputIcons = ComponentIconAssets<"decrease" | "increase">;
5
7
  export type CounterInputProps = FieldComponentProps & Pick<FieldNumberInputProps, "placeholder" | "maxLength" | "onSubmitEditing" | "keyboardType"> & {
6
8
  value?: string;
@@ -9,6 +11,7 @@ export type CounterInputProps = FieldComponentProps & Pick<FieldNumberInputProps
9
11
  interval?: number;
10
12
  min?: number;
11
13
  max?: number;
14
+ theme?: DeepPartial<CounterInputTheme>;
12
15
  };
13
16
  /**
14
17
  * Numeric input with increment and decrement actions.
@@ -1 +1 @@
1
- {"version":3,"file":"CounterInput.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/counterInput/CounterInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAEH,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC7B,MAAM,aAAa,CAAC;AAGrB,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,UAAU,GAAG,UAAU,CAAC,CAAC;AAE7E,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,GAC/C,IAAI,CACA,qBAAqB,EACrB,aAAa,GAAG,WAAW,GAAG,iBAAiB,GAAG,cAAc,CACnE,GAAG;IACA,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,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,EAAE,CAAC,iBAAiB,CA+B9C,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ThemeFactory } from "../../../theme/theme";
2
+ import type { FieldTextInputTheme, FieldTheme } from "../../field";
3
+ export type CounterInputTheme = {
4
+ surface: FieldTheme["surface"];
5
+ textInput: FieldTextInputTheme;
6
+ };
7
+ export declare const defaultCounterInputTheme: ThemeFactory<"counterInput">;
8
+ //# sourceMappingURL=CounterInput.theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CounterInput.theme.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/counterInput/CounterInput.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,MAAM,iBAAiB,GAAG;IAC5B,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAC/B,SAAS,EAAE,mBAAmB,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,YAAY,CAAC,cAAc,CAKhE,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export type { CounterInputIcons, CounterInputProps } from "./CounterInput";
2
2
  export { CounterInput } from "./CounterInput";
3
+ export type { CounterInputTheme } from "./CounterInput.theme";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/counterInput/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/counterInput/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,8 +1,8 @@
1
- export type { ComboboxInputProps } from "./comboboxInput";
1
+ export type { ComboboxInputProps, ComboboxInputTheme } from "./comboboxInput";
2
2
  export { ComboboxInput, type ComboboxInputHandle, type ComboboxValue, } from "./comboboxInput";
3
- export type { CounterInputProps } from "./counterInput";
3
+ export type { CounterInputProps, CounterInputTheme } from "./counterInput";
4
4
  export { CounterInput } from "./counterInput";
5
- export type { FractionValue, NumberInputHandle, NumberInputPlaceholders, NumberInputProps, NumberInputValue, NumberValue, RangeValue, } from "./numberInput";
5
+ export type { FractionValue, NumberInputHandle, NumberInputPlaceholders, NumberInputProps, NumberInputTheme, NumberInputValue, NumberValue, RangeValue, } from "./numberInput";
6
6
  export { NumberInput } from "./numberInput";
7
7
  export type { RatingInputProps } from "./ratingInput";
8
8
  export { RatingInput } from "./ratingInput";
@@ -10,7 +10,8 @@ export type { SelectionInputProps } from "./selectionInput";
10
10
  export { SelectionInput } from "./selectionInput";
11
11
  export type { TextInputProps } from "./TextInput";
12
12
  export { TextInput } from "./TextInput";
13
- export type { TimeInputHandle, TimeInputPlaceholders, TimeInputProps, TimeInputValue, } from "./timeInput";
13
+ export type { TextInputTheme } from "./TextInput.theme";
14
+ export type { TimeInputHandle, TimeInputPlaceholders, TimeInputProps, TimeInputTheme, TimeInputValue, } from "./timeInput";
14
15
  export { TimeInput } from "./timeInput";
15
16
  export type { ToggleInputProps, ToggleInputTheme, } from "./toggleInput";
16
17
  export { ToggleInput } from "./toggleInput";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/forms/input/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EACH,aAAa,EACb,KAAK,mBAAmB,EACxB,KAAK,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