@reillymc/react-native-components 0.11.3 → 0.11.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 (253) hide show
  1. package/README.md +1 -1
  2. package/lib/common/index.js +1 -0
  3. package/lib/common/typography.js +1 -0
  4. package/lib/components/action/Action.styles.js +1 -0
  5. package/lib/components/action/IconAction.js +1 -1
  6. package/lib/components/action/IconAction.styles.js +1 -0
  7. package/lib/components/action/IconActionBase.js +1 -1
  8. package/lib/components/action/IconActionBase.styles.js +1 -0
  9. package/lib/components/alert/AlertIndicator.styles.js +1 -0
  10. package/lib/components/avatar/Avatar.js +1 -1
  11. package/lib/components/avatar/Avatar.styles.js +1 -0
  12. package/lib/components/button/Button.styles.js +1 -0
  13. package/lib/components/button/ButtonBase.styles.js +1 -0
  14. package/lib/components/button/IconButton.js +1 -1
  15. package/lib/components/button/IconButton.styles.js +1 -0
  16. package/lib/components/button/IconButtonBase.js +1 -1
  17. package/lib/components/button/IconButtonBase.styles.js +1 -0
  18. package/lib/components/container/FloatingContainer.styles.js +1 -0
  19. package/lib/components/container/FloatingContainer.web.js +1 -1
  20. package/lib/components/container/Panel.js +1 -1
  21. package/lib/components/container/index.js +1 -1
  22. package/lib/components/icon/Icon.js +1 -1
  23. package/lib/components/icon/Icon.styles.js +1 -0
  24. package/lib/components/icon/IconBase.js +1 -1
  25. package/lib/components/icon/IconBase.styles.js +1 -0
  26. package/lib/components/icon/IconComponentProps.js +1 -0
  27. package/lib/components/icon/InteractiveIcon.js +1 -1
  28. package/lib/components/icon/InteractiveIcon.styles.js +1 -0
  29. package/lib/components/icon/index.js +1 -1
  30. package/lib/components/index.js +1 -1
  31. package/lib/components/input/DropdownInput.styles.js +1 -0
  32. package/lib/components/input/DropdownInputBase.js +1 -1
  33. package/lib/components/input/InputAction.js +1 -1
  34. package/lib/components/input/InputAction.styles.js +1 -0
  35. package/lib/components/input/InputBase.js +1 -1
  36. package/lib/components/input/InputBase.styles.js +1 -0
  37. package/lib/components/input/InputScaffold.js +1 -1
  38. package/lib/components/input/InputScaffold.styles.js +1 -0
  39. package/lib/components/input/NumberInput.js +1 -1
  40. package/lib/components/input/NumberInputBase.js +1 -1
  41. package/lib/components/input/RatingInput.js +1 -1
  42. package/lib/components/input/SelectionInput.js +1 -1
  43. package/lib/components/input/SelectionInput.styles.js +1 -0
  44. package/lib/components/input/TimeInput.js +1 -1
  45. package/lib/components/input/ToggleInput.js +1 -1
  46. package/lib/components/input/ToggleInput.styles.js +1 -0
  47. package/lib/components/listItem/ListItem.js +1 -1
  48. package/lib/components/listItem/ListItem.styles.js +1 -0
  49. package/lib/components/listItem/ListItemAlert.js +1 -1
  50. package/lib/components/listItem/ListItemAvatar.js +1 -1
  51. package/lib/components/listItem/ListItemFooter.js +1 -1
  52. package/lib/components/listItem/ListItemRow.js +1 -1
  53. package/lib/components/menu/Menu.styles.js +1 -0
  54. package/lib/components/menu/MenuItem.styles.js +1 -0
  55. package/lib/components/rating/Rating.js +1 -1
  56. package/lib/components/rating/Rating.styles.js +1 -0
  57. package/lib/components/swipe/SwipeAction.js +1 -1
  58. package/lib/components/swipe/SwipeAction.styles.js +1 -0
  59. package/lib/components/swipe/SwipeableContainer.js +1 -1
  60. package/lib/components/tag/Tag.styles.js +1 -0
  61. package/lib/components/tag/TagIcon.js +1 -1
  62. package/lib/components/text/HighlightedText.styles.js +1 -0
  63. package/lib/components/text/InteractiveText.styles.js +1 -0
  64. package/lib/components/text/Text.js +1 -1
  65. package/lib/components/text/Text.styles.js +1 -0
  66. package/lib/components/toast/Toast.js +1 -1
  67. package/lib/components/toast/Toast.styles.js +1 -0
  68. package/lib/hooks/useThemedStyles.js +1 -1
  69. package/lib/icons/index.js +1 -1
  70. package/lib/icons/ui/ArrowBoth.js +1 -0
  71. package/lib/icons/ui/ChevronDown.js +1 -0
  72. package/lib/icons/ui/Circle.js +1 -0
  73. package/lib/icons/ui/Clock.js +1 -0
  74. package/lib/icons/ui/Dash.js +1 -0
  75. package/lib/icons/ui/Exclamation.js +1 -0
  76. package/lib/icons/ui/InfinityGlyph.js +1 -0
  77. package/lib/icons/ui/NumberGlyph.js +1 -0
  78. package/lib/icons/ui/Plus.js +1 -0
  79. package/lib/icons/ui/StarBorder.js +1 -0
  80. package/lib/icons/ui/StarFull.js +1 -0
  81. package/lib/icons/ui/StarHalf.js +1 -0
  82. package/lib/icons/ui/index.js +1 -0
  83. package/lib/providers/ThemeProvider.js +1 -1
  84. package/lib/theme/icons.js +1 -1
  85. package/lib/theme/index.js +1 -1
  86. package/lib/theme/styles.js +1 -1
  87. package/lib/theme/theme.js +1 -1
  88. package/lib/types/common/index.d.ts +1 -0
  89. package/lib/types/common/index.d.ts.map +1 -1
  90. package/lib/types/common/typography.d.ts +6 -0
  91. package/lib/types/common/typography.d.ts.map +1 -0
  92. package/lib/types/components/action/Action.styles.d.ts +4 -0
  93. package/lib/types/components/action/Action.styles.d.ts.map +1 -0
  94. package/lib/types/components/action/IconAction.d.ts +2 -2
  95. package/lib/types/components/action/IconAction.d.ts.map +1 -1
  96. package/lib/types/components/action/IconAction.styles.d.ts +4 -0
  97. package/lib/types/components/action/IconAction.styles.d.ts.map +1 -0
  98. package/lib/types/components/action/IconActionBase.d.ts +3 -3
  99. package/lib/types/components/action/IconActionBase.d.ts.map +1 -1
  100. package/lib/types/components/action/IconActionBase.styles.d.ts +4 -0
  101. package/lib/types/components/action/IconActionBase.styles.d.ts.map +1 -0
  102. package/lib/types/components/alert/AlertIndicator.styles.d.ts +4 -0
  103. package/lib/types/components/alert/AlertIndicator.styles.d.ts.map +1 -0
  104. package/lib/types/components/avatar/Avatar.styles.d.ts +4 -0
  105. package/lib/types/components/avatar/Avatar.styles.d.ts.map +1 -0
  106. package/lib/types/components/button/Button.styles.d.ts +4 -0
  107. package/lib/types/components/button/Button.styles.d.ts.map +1 -0
  108. package/lib/types/components/button/ButtonBase.styles.d.ts +4 -0
  109. package/lib/types/components/button/ButtonBase.styles.d.ts.map +1 -0
  110. package/lib/types/components/button/IconButton.d.ts +2 -2
  111. package/lib/types/components/button/IconButton.d.ts.map +1 -1
  112. package/lib/types/components/button/IconButton.styles.d.ts +4 -0
  113. package/lib/types/components/button/IconButton.styles.d.ts.map +1 -0
  114. package/lib/types/components/button/IconButtonBase.d.ts +2 -2
  115. package/lib/types/components/button/IconButtonBase.d.ts.map +1 -1
  116. package/lib/types/components/button/IconButtonBase.styles.d.ts +4 -0
  117. package/lib/types/components/button/IconButtonBase.styles.d.ts.map +1 -0
  118. package/lib/types/components/container/FloatingContainer.styles.d.ts +4 -0
  119. package/lib/types/components/container/FloatingContainer.styles.d.ts.map +1 -0
  120. package/lib/types/components/container/FloatingContainer.web.d.ts.map +1 -1
  121. package/lib/types/components/container/Panel.d.ts.map +1 -1
  122. package/lib/types/components/container/index.d.ts +0 -1
  123. package/lib/types/components/container/index.d.ts.map +1 -1
  124. package/lib/types/components/icon/Icon.d.ts +2 -1
  125. package/lib/types/components/icon/Icon.d.ts.map +1 -1
  126. package/lib/types/components/icon/Icon.styles.d.ts +4 -0
  127. package/lib/types/components/icon/Icon.styles.d.ts.map +1 -0
  128. package/lib/types/components/icon/IconBase.d.ts +4 -7
  129. package/lib/types/components/icon/IconBase.d.ts.map +1 -1
  130. package/lib/types/components/icon/IconBase.styles.d.ts +4 -0
  131. package/lib/types/components/icon/IconBase.styles.d.ts.map +1 -0
  132. package/lib/types/components/icon/IconComponentProps.d.ts +6 -0
  133. package/lib/types/components/icon/IconComponentProps.d.ts.map +1 -0
  134. package/lib/types/components/icon/InteractiveIcon.d.ts +2 -1
  135. package/lib/types/components/icon/InteractiveIcon.d.ts.map +1 -1
  136. package/lib/types/components/icon/InteractiveIcon.styles.d.ts +4 -0
  137. package/lib/types/components/icon/InteractiveIcon.styles.d.ts.map +1 -0
  138. package/lib/types/components/icon/index.d.ts +1 -1
  139. package/lib/types/components/icon/index.d.ts.map +1 -1
  140. package/lib/types/components/index.d.ts +3 -3
  141. package/lib/types/components/index.d.ts.map +1 -1
  142. package/lib/types/components/input/DropdownInput.styles.d.ts +4 -0
  143. package/lib/types/components/input/DropdownInput.styles.d.ts.map +1 -0
  144. package/lib/types/components/input/DropdownInputBase.d.ts.map +1 -1
  145. package/lib/types/components/input/InputAction.d.ts +2 -1
  146. package/lib/types/components/input/InputAction.d.ts.map +1 -1
  147. package/lib/types/components/input/InputAction.styles.d.ts +4 -0
  148. package/lib/types/components/input/InputAction.styles.d.ts.map +1 -0
  149. package/lib/types/components/input/InputBase.d.ts.map +1 -1
  150. package/lib/types/components/input/InputBase.styles.d.ts +4 -0
  151. package/lib/types/components/input/InputBase.styles.d.ts.map +1 -0
  152. package/lib/types/components/input/InputScaffold.styles.d.ts +4 -0
  153. package/lib/types/components/input/InputScaffold.styles.d.ts.map +1 -0
  154. package/lib/types/components/input/NumberInput.d.ts.map +1 -1
  155. package/lib/types/components/input/NumberInputBase.d.ts.map +1 -1
  156. package/lib/types/components/input/RatingInput.d.ts.map +1 -1
  157. package/lib/types/components/input/SelectionInput.d.ts +1 -1
  158. package/lib/types/components/input/SelectionInput.d.ts.map +1 -1
  159. package/lib/types/components/input/SelectionInput.styles.d.ts +4 -0
  160. package/lib/types/components/input/SelectionInput.styles.d.ts.map +1 -0
  161. package/lib/types/components/input/TimeInput.d.ts.map +1 -1
  162. package/lib/types/components/input/ToggleInput.d.ts +3 -3
  163. package/lib/types/components/input/ToggleInput.d.ts.map +1 -1
  164. package/lib/types/components/input/ToggleInput.styles.d.ts +4 -0
  165. package/lib/types/components/input/ToggleInput.styles.d.ts.map +1 -0
  166. package/lib/types/components/listItem/ListItem.d.ts.map +1 -1
  167. package/lib/types/components/listItem/ListItem.styles.d.ts +4 -0
  168. package/lib/types/components/listItem/ListItem.styles.d.ts.map +1 -0
  169. package/lib/types/components/listItem/ListItemRow.d.ts.map +1 -1
  170. package/lib/types/components/menu/Menu.styles.d.ts +4 -0
  171. package/lib/types/components/menu/Menu.styles.d.ts.map +1 -0
  172. package/lib/types/components/menu/MenuItem.styles.d.ts +4 -0
  173. package/lib/types/components/menu/MenuItem.styles.d.ts.map +1 -0
  174. package/lib/types/components/rating/Rating.d.ts.map +1 -1
  175. package/lib/types/components/rating/Rating.styles.d.ts +4 -0
  176. package/lib/types/components/rating/Rating.styles.d.ts.map +1 -0
  177. package/lib/types/components/swipe/SwipeAction.d.ts +2 -1
  178. package/lib/types/components/swipe/SwipeAction.d.ts.map +1 -1
  179. package/lib/types/components/swipe/SwipeAction.styles.d.ts +4 -0
  180. package/lib/types/components/swipe/SwipeAction.styles.d.ts.map +1 -0
  181. package/lib/types/components/swipe/SwipeableContainer.d.ts.map +1 -1
  182. package/lib/types/components/tag/Tag.styles.d.ts +4 -0
  183. package/lib/types/components/tag/Tag.styles.d.ts.map +1 -0
  184. package/lib/types/components/tag/TagIcon.d.ts +2 -1
  185. package/lib/types/components/tag/TagIcon.d.ts.map +1 -1
  186. package/lib/types/components/text/HighlightedText.styles.d.ts +3 -0
  187. package/lib/types/components/text/HighlightedText.styles.d.ts.map +1 -0
  188. package/lib/types/components/text/InteractiveText.styles.d.ts +4 -0
  189. package/lib/types/components/text/InteractiveText.styles.d.ts.map +1 -0
  190. package/lib/types/components/text/Text.d.ts.map +1 -1
  191. package/lib/types/components/text/Text.styles.d.ts +4 -0
  192. package/lib/types/components/text/Text.styles.d.ts.map +1 -0
  193. package/lib/types/components/toast/Toast.styles.d.ts +4 -0
  194. package/lib/types/components/toast/Toast.styles.d.ts.map +1 -0
  195. package/lib/types/hooks/useThemedStyles.d.ts +1 -1
  196. package/lib/types/hooks/useThemedStyles.d.ts.map +1 -1
  197. package/lib/types/icons/index.d.ts +2 -3
  198. package/lib/types/icons/index.d.ts.map +1 -1
  199. package/lib/types/icons/ui/ArrowBoth.d.ts +4 -0
  200. package/lib/types/icons/ui/ArrowBoth.d.ts.map +1 -0
  201. package/lib/types/icons/ui/ChevronDown.d.ts +4 -0
  202. package/lib/types/icons/ui/ChevronDown.d.ts.map +1 -0
  203. package/lib/types/icons/ui/Circle.d.ts +4 -0
  204. package/lib/types/icons/ui/Circle.d.ts.map +1 -0
  205. package/lib/types/icons/ui/Clock.d.ts +4 -0
  206. package/lib/types/icons/ui/Clock.d.ts.map +1 -0
  207. package/lib/types/icons/ui/Dash.d.ts +4 -0
  208. package/lib/types/icons/ui/Dash.d.ts.map +1 -0
  209. package/lib/types/icons/ui/Exclamation.d.ts +4 -0
  210. package/lib/types/icons/ui/Exclamation.d.ts.map +1 -0
  211. package/lib/types/icons/ui/InfinityGlyph.d.ts +4 -0
  212. package/lib/types/icons/ui/InfinityGlyph.d.ts.map +1 -0
  213. package/lib/types/icons/ui/NumberGlyph.d.ts +4 -0
  214. package/lib/types/icons/ui/NumberGlyph.d.ts.map +1 -0
  215. package/lib/types/icons/ui/Plus.d.ts +4 -0
  216. package/lib/types/icons/ui/Plus.d.ts.map +1 -0
  217. package/lib/types/icons/ui/StarBorder.d.ts.map +1 -0
  218. package/lib/types/icons/ui/StarFull.d.ts.map +1 -0
  219. package/lib/types/icons/{stars → ui}/StarHalf.d.ts +1 -1
  220. package/lib/types/icons/ui/StarHalf.d.ts.map +1 -0
  221. package/lib/types/icons/ui/index.d.ts +4 -0
  222. package/lib/types/icons/ui/index.d.ts.map +1 -0
  223. package/lib/types/providers/ThemeProvider.d.ts +4 -4
  224. package/lib/types/providers/ThemeProvider.d.ts.map +1 -1
  225. package/lib/types/theme/icons.d.ts +17 -3354
  226. package/lib/types/theme/icons.d.ts.map +1 -1
  227. package/lib/types/theme/index.d.ts +1 -1
  228. package/lib/types/theme/index.d.ts.map +1 -1
  229. package/lib/types/theme/styles.d.ts +6 -0
  230. package/lib/types/theme/styles.d.ts.map +1 -1
  231. package/lib/types/theme/theme.d.ts +2 -2
  232. package/lib/types/theme/theme.d.ts.map +1 -1
  233. package/package.json +2 -3
  234. package/lib/components/container/CollapsibleContainer.js +0 -1
  235. package/lib/components/icon/componentWithIcon.js +0 -1
  236. package/lib/icons/octicons.js +0 -1
  237. package/lib/icons/stars/StarBorder.js +0 -1
  238. package/lib/icons/stars/StarFull.js +0 -1
  239. package/lib/icons/stars/StarHalf.js +0 -1
  240. package/lib/icons/stars/index.js +0 -1
  241. package/lib/types/components/container/CollapsibleContainer.d.ts +0 -10
  242. package/lib/types/components/container/CollapsibleContainer.d.ts.map +0 -1
  243. package/lib/types/components/icon/componentWithIcon.d.ts +0 -8
  244. package/lib/types/components/icon/componentWithIcon.d.ts.map +0 -1
  245. package/lib/types/icons/octicons.d.ts +0 -2
  246. package/lib/types/icons/octicons.d.ts.map +0 -1
  247. package/lib/types/icons/stars/StarBorder.d.ts.map +0 -1
  248. package/lib/types/icons/stars/StarFull.d.ts.map +0 -1
  249. package/lib/types/icons/stars/StarHalf.d.ts.map +0 -1
  250. package/lib/types/icons/stars/index.d.ts +0 -4
  251. package/lib/types/icons/stars/index.d.ts.map +0 -1
  252. /package/lib/types/icons/{stars → ui}/StarBorder.d.ts +0 -0
  253. /package/lib/types/icons/{stars → ui}/StarFull.d.ts +0 -0
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/TimeInput.tsx";var _excluded=["disabled","clearButtonMode","hoursPlaceholder","minutesPlaceholder","variant","value","onChange","onSubmitEditing"];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{useRef,useState}from"react";import{Pressable,StyleSheet}from"react-native";import{useThemedStyles}from"../../hooks";import{Text}from"../text";import{InputAction}from"./InputAction";import{InputBase}from"./InputBase";import{InputRowContainer}from"./InputRowContainer";import{InputScaffold}from"./InputScaffold";import{NumberInputBase}from"./NumberInputBase";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var TimeInput=t0=>{var $=_c(74);var baseProps;var clearButtonMode;var disabledProp;var hoursPlaceholder;var minutesPlaceholder;var onChange;var onSubmitEditing;var t1;var t2;if($[0]!==t0){disabledProp=t0.disabled;clearButtonMode=t0.clearButtonMode;hoursPlaceholder=t0.hoursPlaceholder;minutesPlaceholder=t0.minutesPlaceholder;t1=t0.variant;t2=t0.value;onChange=t0.onChange;onSubmitEditing=t0.onSubmitEditing;baseProps=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=baseProps;$[2]=clearButtonMode;$[3]=disabledProp;$[4]=hoursPlaceholder;$[5]=minutesPlaceholder;$[6]=onChange;$[7]=onSubmitEditing;$[8]=t1;$[9]=t2;}else{baseProps=$[1];clearButtonMode=$[2];disabledProp=$[3];hoursPlaceholder=$[4];minutesPlaceholder=$[5];onChange=$[6];onSubmitEditing=$[7];t1=$[8];t2=$[9];}var variant=t1===undefined?"regular":t1;var t3;if($[10]!==t2){t3=t2===undefined?{hours:"",minutes:""}:t2;$[10]=t2;$[11]=t3;}else{t3=$[11];}var value=t3;var disabled=disabledProp||!onChange;var hoursRef=useRef(null);var minutesRef=useRef(null);var t4;if($[12]!==variant){t4={props:{variant}};$[12]=variant;$[13]=t4;}else{t4=$[13];}var _useThemedStyles=useThemedStyles("timeInput",createStyles,t4),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],t5=_useThemedStyles2[1];var icons=t5.icons;var _useState=useState(false),_useState2=_slicedToArray(_useState,2),isFocused=_useState2[0],setIsFocused=_useState2[1];var t6;if($[14]!==disabled||$[15]!==icons.time||$[16]!==variant){t6=_jsx(InputAction,{...icons.time,variant:variant,disabled:disabled});$[14]=disabled;$[15]=icons.time;$[16]=variant;$[17]=t6;}else{t6=$[17];}var t7=value?.hours;var t8;if($[18]!==onChange||$[19]!==value){t8=text=>onChange?.({...value,hours:text});$[18]=onChange;$[19]=value;$[20]=t8;}else{t8=$[20];}var t10;var t11;var t9;if($[21]===Symbol.for("react.memo_cache_sentinel")){t9=()=>setIsFocused(true);t10=()=>setIsFocused(false);t11=()=>minutesRef.current?.focus();$[21]=t10;$[22]=t11;$[23]=t9;}else{t10=$[21];t11=$[22];t9=$[23];}var t12;if($[24]!==clearButtonMode||$[25]!==disabled||$[26]!==hoursPlaceholder||$[27]!==styles.input||$[28]!==t7||$[29]!==t8||$[30]!==variant){t12=_jsx(NumberInputBase,{ref:hoursRef,disabled:disabled,placeholder:hoursPlaceholder,maxLength:2,clearButtonMode:clearButtonMode,value:t7,variant:variant,keyboardType:"number-pad",submitBehavior:"submit",returnKeyType:"next",inputStyle:styles.input,onChangeText:t8,onFocus:t9,onBlur:t10,onSubmitEditing:t11});$[24]=clearButtonMode;$[25]=disabled;$[26]=hoursPlaceholder;$[27]=styles.input;$[28]=t7;$[29]=t8;$[30]=variant;$[31]=t12;}else{t12=$[31];}var t13;if($[32]===Symbol.for("react.memo_cache_sentinel")){t13=()=>hoursRef.current?.focus();$[32]=t13;}else{t13=$[32];}var t14;if($[33]===Symbol.for("react.memo_cache_sentinel")){t14=_jsx(Text,{variant:"body",children:"h"});$[33]=t14;}else{t14=$[33];}var t15;if($[34]!==styles.timeLabel){t15=_jsx(Pressable,{onPress:t13,style:styles.timeLabel,children:t14});$[34]=styles.timeLabel;$[35]=t15;}else{t15=$[35];}var t16;if($[36]!==onChange||$[37]!==value){t16=text_0=>{var addToHours=text_0?Math.floor(Number.parseInt(text_0,10)/60):undefined;var remainingMinutes=text_0?Number.parseInt(text_0,10)%60:text_0;onChange?.({...value,hours:value.hours?(Number.parseInt(value.hours,10)+(addToHours??0)).toString():addToHours?.toString()??"",minutes:remainingMinutes.toString()});};$[36]=onChange;$[37]=value;$[38]=t16;}else{t16=$[38];}var t17;var t18;if($[39]===Symbol.for("react.memo_cache_sentinel")){t17=()=>setIsFocused(true);t18=()=>setIsFocused(false);$[39]=t17;$[40]=t18;}else{t17=$[39];t18=$[40];}var t19;if($[41]!==clearButtonMode||$[42]!==disabled||$[43]!==minutesPlaceholder||$[44]!==onSubmitEditing||$[45]!==styles.input||$[46]!==t16||$[47]!==value.minutes||$[48]!==variant){t19=_jsx(NumberInputBase,{ref:minutesRef,disabled:disabled,placeholder:minutesPlaceholder,value:value.minutes,maxLength:2,clearButtonMode:clearButtonMode,variant:variant,keyboardType:"number-pad",returnKeyType:"done",inputStyle:styles.input,onChangeText:t16,onFocus:t17,onBlur:t18,onSubmitEditing:onSubmitEditing});$[41]=clearButtonMode;$[42]=disabled;$[43]=minutesPlaceholder;$[44]=onSubmitEditing;$[45]=styles.input;$[46]=t16;$[47]=value.minutes;$[48]=variant;$[49]=t19;}else{t19=$[49];}var t20;var t21;if($[50]===Symbol.for("react.memo_cache_sentinel")){t20=()=>minutesRef.current?.focus();t21=_jsx(Text,{variant:"body",children:"m"});$[50]=t20;$[51]=t21;}else{t20=$[50];t21=$[51];}var t22;if($[52]!==styles.timeLabel){t22=_jsx(Pressable,{style:styles.timeLabel,onPress:t20,children:t21});$[52]=styles.timeLabel;$[53]=t22;}else{t22=$[53];}var t23=disabled||!isFocused?"never":"always";var t24=value.hours!==""||value.minutes!==""?" ":"";var t25;if($[54]!==onChange){t25=()=>onChange?.({hours:"",minutes:""});$[54]=onChange;$[55]=t25;}else{t25=$[55];}var t26;if($[56]!==disabled||$[57]!==styles.clearInput||$[58]!==t23||$[59]!==t24||$[60]!==t25||$[61]!==variant){t26=_jsx(InputBase,{clearButtonMode:t23,value:t24,selectionColor:"transparent",focusable:false,autoComplete:"off",variant:variant,caretHidden:true,contextMenuHidden:true,disabled:disabled,showSoftInputOnFocus:false,inputStyle:styles.clearInput,onFocus:t25});$[56]=disabled;$[57]=styles.clearInput;$[58]=t23;$[59]=t24;$[60]=t25;$[61]=variant;$[62]=t26;}else{t26=$[62];}var t27;if($[63]!==disabled||$[64]!==t12||$[65]!==t15||$[66]!==t19||$[67]!==t22||$[68]!==t26||$[69]!==t6){t27=_jsxs(InputRowContainer,{disabled:disabled,children:[t6,t12,t15,t19,t22,t26]});$[63]=disabled;$[64]=t12;$[65]=t15;$[66]=t19;$[67]=t22;$[68]=t26;$[69]=t6;$[70]=t27;}else{t27=$[70];}var t28;if($[71]!==baseProps||$[72]!==t27){t28=_jsx(InputScaffold,{...baseProps,children:t27});$[71]=baseProps;$[72]=t27;$[73]=t28;}else{t28=$[73];}return t28;};var createStyles=({styles:{inputBase}},{variant})=>StyleSheet.create({input:{flexGrow:1,flexBasis:0,textAlign:"right"},clearInput:{flexShrink:1,marginLeft:inputBase.container.padding},timeLabel:{height:inputBase.container.height[variant],justifyContent:"center"}});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/TimeInput.tsx";var _excluded=["disabled","clearButtonMode","hoursPlaceholder","minutesPlaceholder","variant","value","onChange","onSubmitEditing"];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{useRef,useState}from"react";import{Pressable,StyleSheet}from"react-native";import{useThemedStyles}from"../../hooks";import{Text}from"../text";import{InputAction}from"./InputAction";import{InputBase}from"./InputBase";import{InputRowContainer}from"./InputRowContainer";import{InputScaffold}from"./InputScaffold";import{NumberInputBase}from"./NumberInputBase";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";var DEFAULT_TIME_VALUE={hours:"",minutes:""};export var TimeInput=t0=>{var $=_c(73);var baseProps;var clearButtonMode;var disabledProp;var hoursPlaceholder;var minutesPlaceholder;var onChange;var onSubmitEditing;var t1;var t2;if($[0]!==t0){disabledProp=t0.disabled;clearButtonMode=t0.clearButtonMode;hoursPlaceholder=t0.hoursPlaceholder;minutesPlaceholder=t0.minutesPlaceholder;t1=t0.variant;t2=t0.value;onChange=t0.onChange;onSubmitEditing=t0.onSubmitEditing;baseProps=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=baseProps;$[2]=clearButtonMode;$[3]=disabledProp;$[4]=hoursPlaceholder;$[5]=minutesPlaceholder;$[6]=onChange;$[7]=onSubmitEditing;$[8]=t1;$[9]=t2;}else{baseProps=$[1];clearButtonMode=$[2];disabledProp=$[3];hoursPlaceholder=$[4];minutesPlaceholder=$[5];onChange=$[6];onSubmitEditing=$[7];t1=$[8];t2=$[9];}var variant=t1===undefined?"regular":t1;var value=t2===undefined?DEFAULT_TIME_VALUE:t2;var disabled=disabledProp||!onChange;var hoursRef=useRef(null);var minutesRef=useRef(null);var t3;if($[10]!==variant){t3={props:{variant}};$[10]=variant;$[11]=t3;}else{t3=$[11];}var _useThemedStyles=useThemedStyles("timeInput",createStyles,t3),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],t4=_useThemedStyles2[1];var icons=t4.icons;var _useState=useState(false),_useState2=_slicedToArray(_useState,2),isFocused=_useState2[0],setIsFocused=_useState2[1];var t5;if($[12]===Symbol.for("react.memo_cache_sentinel")){t5=()=>hoursRef.current?.focus();$[12]=t5;}else{t5=$[12];}var t6;if($[13]!==disabled||$[14]!==icons.time||$[15]!==variant){t6=_jsx(InputAction,{...icons.time,variant:variant,disabled:disabled,onPress:t5});$[13]=disabled;$[14]=icons.time;$[15]=variant;$[16]=t6;}else{t6=$[16];}var t7=value?.hours;var t8;if($[17]!==onChange||$[18]!==value){t8=text=>onChange?.({...value,hours:text});$[17]=onChange;$[18]=value;$[19]=t8;}else{t8=$[19];}var t10;var t11;var t9;if($[20]===Symbol.for("react.memo_cache_sentinel")){t9=()=>setIsFocused(true);t10=()=>setIsFocused(false);t11=()=>minutesRef.current?.focus();$[20]=t10;$[21]=t11;$[22]=t9;}else{t10=$[20];t11=$[21];t9=$[22];}var t12;if($[23]!==clearButtonMode||$[24]!==disabled||$[25]!==hoursPlaceholder||$[26]!==styles.input||$[27]!==t7||$[28]!==t8||$[29]!==variant){t12=_jsx(NumberInputBase,{ref:hoursRef,disabled:disabled,placeholder:hoursPlaceholder,maxLength:2,clearButtonMode:clearButtonMode,value:t7,variant:variant,keyboardType:"number-pad",submitBehavior:"submit",returnKeyType:"next",inputStyle:styles.input,onChangeText:t8,onFocus:t9,onBlur:t10,onSubmitEditing:t11});$[23]=clearButtonMode;$[24]=disabled;$[25]=hoursPlaceholder;$[26]=styles.input;$[27]=t7;$[28]=t8;$[29]=variant;$[30]=t12;}else{t12=$[30];}var t13;if($[31]===Symbol.for("react.memo_cache_sentinel")){t13=()=>hoursRef.current?.focus();$[31]=t13;}else{t13=$[31];}var t14;if($[32]===Symbol.for("react.memo_cache_sentinel")){t14=_jsx(Text,{variant:"body",children:"h"});$[32]=t14;}else{t14=$[32];}var t15;if($[33]!==styles.timeLabel){t15=_jsx(Pressable,{onPress:t13,style:styles.timeLabel,children:t14});$[33]=styles.timeLabel;$[34]=t15;}else{t15=$[34];}var t16;if($[35]!==onChange||$[36]!==value){t16=text_0=>{var addToHours=text_0?Math.floor(Number.parseInt(text_0,10)/60):undefined;var remainingMinutes=text_0?Number.parseInt(text_0,10)%60:text_0;onChange?.({...value,hours:value.hours?(Number.parseInt(value.hours,10)+(addToHours??0)).toString():addToHours?.toString()??"",minutes:remainingMinutes.toString()});};$[35]=onChange;$[36]=value;$[37]=t16;}else{t16=$[37];}var t17;var t18;if($[38]===Symbol.for("react.memo_cache_sentinel")){t17=()=>setIsFocused(true);t18=()=>setIsFocused(false);$[38]=t17;$[39]=t18;}else{t17=$[38];t18=$[39];}var t19;if($[40]!==clearButtonMode||$[41]!==disabled||$[42]!==minutesPlaceholder||$[43]!==onSubmitEditing||$[44]!==styles.input||$[45]!==t16||$[46]!==value.minutes||$[47]!==variant){t19=_jsx(NumberInputBase,{ref:minutesRef,disabled:disabled,placeholder:minutesPlaceholder,value:value.minutes,maxLength:2,clearButtonMode:clearButtonMode,variant:variant,keyboardType:"number-pad",returnKeyType:"done",inputStyle:styles.input,onChangeText:t16,onFocus:t17,onBlur:t18,onSubmitEditing:onSubmitEditing});$[40]=clearButtonMode;$[41]=disabled;$[42]=minutesPlaceholder;$[43]=onSubmitEditing;$[44]=styles.input;$[45]=t16;$[46]=value.minutes;$[47]=variant;$[48]=t19;}else{t19=$[48];}var t20;var t21;if($[49]===Symbol.for("react.memo_cache_sentinel")){t20=()=>minutesRef.current?.focus();t21=_jsx(Text,{variant:"body",children:"m"});$[49]=t20;$[50]=t21;}else{t20=$[49];t21=$[50];}var t22;if($[51]!==styles.timeLabel){t22=_jsx(Pressable,{style:styles.timeLabel,onPress:t20,children:t21});$[51]=styles.timeLabel;$[52]=t22;}else{t22=$[52];}var t23=disabled||!isFocused?"never":"always";var t24=value.hours!==""||value.minutes!==""?" ":"";var t25;if($[53]!==onChange){t25=()=>onChange?.({hours:"",minutes:""});$[53]=onChange;$[54]=t25;}else{t25=$[54];}var t26;if($[55]!==disabled||$[56]!==styles.clearInput||$[57]!==t23||$[58]!==t24||$[59]!==t25||$[60]!==variant){t26=_jsx(InputBase,{clearButtonMode:t23,value:t24,selectionColor:"transparent",focusable:false,autoComplete:"off",variant:variant,caretHidden:true,contextMenuHidden:true,disabled:disabled,showSoftInputOnFocus:false,inputStyle:styles.clearInput,onFocus:t25});$[55]=disabled;$[56]=styles.clearInput;$[57]=t23;$[58]=t24;$[59]=t25;$[60]=variant;$[61]=t26;}else{t26=$[61];}var t27;if($[62]!==disabled||$[63]!==t12||$[64]!==t15||$[65]!==t19||$[66]!==t22||$[67]!==t26||$[68]!==t6){t27=_jsxs(InputRowContainer,{disabled:disabled,children:[t6,t12,t15,t19,t22,t26]});$[62]=disabled;$[63]=t12;$[64]=t15;$[65]=t19;$[66]=t22;$[67]=t26;$[68]=t6;$[69]=t27;}else{t27=$[69];}var t28;if($[70]!==baseProps||$[71]!==t27){t28=_jsx(InputScaffold,{...baseProps,children:t27});$[70]=baseProps;$[71]=t27;$[72]=t28;}else{t28=$[72];}return t28;};var createStyles=({styles:{inputBase}},{variant})=>StyleSheet.create({input:{flexGrow:1,flexBasis:0,textAlign:"right"},clearInput:{flexShrink:1,marginStart:inputBase.container.padding},timeLabel:{minHeight:inputBase.container.height[variant],justifyContent:"center"}});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/ToggleInput.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{StyleSheet,View}from"react-native";import{useThemedStyles}from"../../hooks";import{ActionBase}from"../action";import{InteractiveIcon,withIcon}from"../icon";import{Text}from"../text";import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from"react/jsx-runtime";export var ToggleInput=withIcon(({label,helpText,value=false,toggleVariant="primary",containerStyle,variant="regular",disabled:disabledProp,styles:styleOverrides,onChange,...iconProps})=>{var disabled=disabledProp||!onChange;var _useThemedStyles=useThemedStyles("toggleInput",createStyles,{styles:{toggleInput:styleOverrides},props:{variant}}),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],_useThemedStyles2$=_useThemedStyles2[1],toggleInput=_useThemedStyles2$.style,icons=_useThemedStyles2$.icons;return _jsx(ActionBase,{disabled:disabled,containerStyle:[styles.container,containerStyle],onPress:()=>onChange(!value),children:pressableState=>_jsxs(_Fragment,{children:[_jsxs(View,{style:styles.labelIconContainer,children:[_jsxs(View,{style:styles.iconContainer,children:[_jsx(InteractiveIcon,{...icons.outline,style:{size:toggleInput.indicator.size[variant],color:value?toggleInput.indicator.color.selected[toggleVariant]:toggleInput.indicator.color.deselected},disabled:disabled,...pressableState}),_jsx(View,{style:styles.icon,children:!!value&&_jsx(InteractiveIcon,{...iconProps,style:{size:toggleInput.indicator.size[variant],color:toggleInput.indicator.color.selected[toggleVariant]},disabled:disabled,...pressableState})})]}),label&&_jsx(Text,{variant:"label",disabled:disabled,children:label})]}),helpText&&_jsx(View,{style:styles.helpText,children:typeof helpText==="string"?_jsx(Text,{variant:"caption",children:helpText}):helpText})]})});});var createStyles=({styles:{toggleInput,inputScaffold}},{variant})=>{var styles=StyleSheet.create({container:{justifyContent:"center"},labelIconContainer:{flexDirection:"row",alignItems:"center",gap:toggleInput.label.gap},iconContainer:{width:toggleInput.indicator.size[variant],height:toggleInput.indicator.size[variant]},icon:{position:"absolute",alignSelf:"center"},helpText:{marginLeft:toggleInput.indicator.size[variant]+toggleInput.label.gap,marginTop:inputScaffold.gap}});return styles;};
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/ToggleInput.tsx";var _excluded=["label","helpText","value","toggleVariant","containerStyle","variant","disabled","style","onChange"];function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}import{c as _c}from"react/compiler-runtime";import{StyleSheet,View}from"react-native";import{useThemedStyles}from"../../hooks";import{ActionBase}from"../action";import{InteractiveIcon}from"../icon";import{Text}from"../text";import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from"react/jsx-runtime";export var ToggleInput=t0=>{var $=_c(46);var containerStyle;var disabledProp;var helpText;var iconProps;var label;var onChange;var styleOverrides;var t1;var t2;var t3;if($[0]!==t0){label=t0.label;helpText=t0.helpText;t1=t0.value;t2=t0.toggleVariant;containerStyle=t0.containerStyle;t3=t0.variant;disabledProp=t0.disabled;styleOverrides=t0.style;onChange=t0.onChange;iconProps=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=containerStyle;$[2]=disabledProp;$[3]=helpText;$[4]=iconProps;$[5]=label;$[6]=onChange;$[7]=styleOverrides;$[8]=t1;$[9]=t2;$[10]=t3;}else{containerStyle=$[1];disabledProp=$[2];helpText=$[3];iconProps=$[4];label=$[5];onChange=$[6];styleOverrides=$[7];t1=$[8];t2=$[9];t3=$[10];}var value=t1===undefined?false:t1;var toggleVariant=t2===undefined?"primary":t2;var variant=t3===undefined?"regular":t3;var disabled=disabledProp||!onChange;var t4;if($[11]!==styleOverrides){t4={toggleInput:styleOverrides};$[11]=styleOverrides;$[12]=t4;}else{t4=$[12];}var t5;if($[13]!==variant){t5={variant};$[13]=variant;$[14]=t5;}else{t5=$[14];}var t6;if($[15]!==t4||$[16]!==t5){t6={styles:t4,props:t5};$[15]=t4;$[16]=t5;$[17]=t6;}else{t6=$[17];}var _useThemedStyles=useThemedStyles("toggleInput",createStyles,t6),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],t7=_useThemedStyles2[1];var toggleInput=t7.style,icons=t7.icons;var t8;if($[18]!==onChange||$[19]!==value){t8=()=>onChange(!value);$[18]=onChange;$[19]=value;$[20]=t8;}else{t8=$[20];}var t9;if($[21]!==disabled||$[22]!==helpText||$[23]!==iconProps||$[24]!==icons.outline||$[25]!==label||$[26]!==styles.disabledLabel||$[27]!==styles.helpText||$[28]!==styles.icon||$[29]!==styles.iconContainer||$[30]!==styles.labelIconContainer||$[31]!==toggleInput.indicator.color.deselected||$[32]!==toggleInput.indicator.color.selected||$[33]!==toggleInput.indicator.size||$[34]!==toggleVariant||$[35]!==value||$[36]!==variant){t9=pressableState=>_jsxs(_Fragment,{children:[_jsxs(View,{style:styles.labelIconContainer,children:[_jsxs(View,{style:styles.iconContainer,children:[_jsx(InteractiveIcon,{...icons.outline,style:{size:toggleInput.indicator.size[variant],color:value?toggleInput.indicator.color.selected[toggleVariant]:toggleInput.indicator.color.deselected},disabled:disabled,...pressableState}),_jsx(View,{style:styles.icon,children:!!value&&_jsx(InteractiveIcon,{...iconProps,style:{size:toggleInput.indicator.size[variant],color:toggleInput.indicator.color.selected[toggleVariant]},disabled:disabled,...pressableState})})]}),label&&_jsx(Text,{variant:"label",style:disabled?styles.disabledLabel:undefined,children:label})]}),helpText&&_jsx(View,{style:styles.helpText,children:typeof helpText==="string"?_jsx(Text,{variant:"caption",children:helpText}):helpText})]});$[21]=disabled;$[22]=helpText;$[23]=iconProps;$[24]=icons.outline;$[25]=label;$[26]=styles.disabledLabel;$[27]=styles.helpText;$[28]=styles.icon;$[29]=styles.iconContainer;$[30]=styles.labelIconContainer;$[31]=toggleInput.indicator.color.deselected;$[32]=toggleInput.indicator.color.selected;$[33]=toggleInput.indicator.size;$[34]=toggleVariant;$[35]=value;$[36]=variant;$[37]=t9;}else{t9=$[37];}var t10;if($[38]!==disabled||$[39]!==styles.container||$[40]!==t8||$[41]!==t9){t10=_jsx(ActionBase,{disabled:disabled,hitSlop:20,containerStyle:styles.container,onPress:t8,children:t9});$[38]=disabled;$[39]=styles.container;$[40]=t8;$[41]=t9;$[42]=t10;}else{t10=$[42];}var t11;if($[43]!==containerStyle||$[44]!==t10){t11=_jsx(View,{style:containerStyle,children:t10});$[43]=containerStyle;$[44]=t10;$[45]=t11;}else{t11=$[45];}return t11;};var createStyles=({styles:{toggleInput,inputScaffold,inputBase}},{variant})=>{var styles=StyleSheet.create({container:{justifyContent:"center"},disabledLabel:{color:inputBase.text.color.disabled},labelIconContainer:{flexDirection:"row",alignItems:"center",gap:toggleInput.label.gap},iconContainer:{width:toggleInput.indicator.size[variant],height:toggleInput.indicator.size[variant]},icon:{position:"absolute",alignSelf:"center"},helpText:{marginStart:toggleInput.indicator.size[variant]+toggleInput.label.gap,marginTop:inputScaffold.gap}});return styles;};
@@ -0,0 +1 @@
1
+ import{defaultActionStyles}from"../action/Action.styles";import{defaultIconStyles}from"../icon/Icon.styles";export var defaultToggleInputStyles=theme=>{var color=theme.color,spacing=theme.spacing;var icon=defaultIconStyles(theme);var action=defaultActionStyles(theme);return{indicator:{size:{compact:icon.size.small,regular:icon.size.medium},color:{selected:action.label.color,deselected:{enabled:color.border,disabled:color.border,pressed:color.border}}},label:{gap:spacing.small}};};
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/listItem/ListItem.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{Pressable,StyleSheet,View}from"react-native";import{Undefined}from"@reillymc/es-utils";import{useThemedStyles}from"../../hooks";import{SwipeableContainer}from"../swipe";import{Text}from"../text";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var ListItem=t0=>{var $=_c(41);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 t3;if($[0]!==t2){t3=t2===undefined?[]:t2;$[0]=t2;$[1]=t3;}else{t3=$[1];}var contentRows=t3;var t4;if($[2]!==contentRows){t4=contentRows.filter(Undefined);$[2]=contentRows;$[3]=t4;}else{t4=$[3];}var filteredRows=t4;var t5;if($[4]!==swipeActions){t5=swipeActions?.filter(Undefined);$[4]=swipeActions;$[5]=t5;}else{t5=$[5];}var filteredActions=t5;var t6;if($[6]!==variant){t6={props:{variant}};$[6]=variant;$[7]=t6;}else{t6=$[7];}var _useThemedStyles=useThemedStyles("listItem",createStyles,t6),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t7;if($[8]!==style||$[9]!==styles.pressableContainer){t7=[styles.pressableContainer,style];$[8]=style;$[9]=styles.pressableContainer;$[10]=t7;}else{t7=$[10];}var t8;if($[11]!==contentContainerStyle||$[12]!==styles.contentContainer){t8=[styles.contentContainer,contentContainerStyle];$[11]=contentContainerStyle;$[12]=styles.contentContainer;$[13]=t8;}else{t8=$[13];}var t9;if($[14]!==heading){t9=!!heading&&typeof heading==="string"?_jsx(Text,{variant:"heading",numberOfLines:2,children:heading}):heading;$[14]=heading;$[15]=t9;}else{t9=$[15];}var t10;if($[16]!==filteredRows||$[17]!==t8||$[18]!==t9){t10=_jsxs(View,{style:t8,children:[t9,filteredRows]});$[16]=filteredRows;$[17]=t8;$[18]=t9;$[19]=t10;}else{t10=$[19];}var t11;if($[20]!==avatar||$[21]!==styles.innerContainer||$[22]!==t10){t11=_jsxs(View,{style:styles.innerContainer,children:[avatar,t10]});$[20]=avatar;$[21]=styles.innerContainer;$[22]=t10;$[23]=t11;}else{t11=$[23];}var t12;if($[24]!==alert||$[25]!==styles.bodyContainer||$[26]!==t11){t12=_jsxs(View,{style:styles.bodyContainer,children:[t11,alert]});$[24]=alert;$[25]=styles.bodyContainer;$[26]=t11;$[27]=t12;}else{t12=$[27];}var t13;if($[28]!==footer||$[29]!==header||$[30]!==onPress||$[31]!==t12||$[32]!==t7){t13=_jsxs(Pressable,{onPress:onPress,style:t7,children:[header,t12,footer]});$[28]=footer;$[29]=header;$[30]=onPress;$[31]=t12;$[32]=t7;$[33]=t13;}else{t13=$[33];}var innerContent=t13;var t14;if($[34]!==filteredActions?.length||$[35]!==innerContent||$[36]!==swipeActions){t14=filteredActions?.length?_jsx(SwipeableContainer,{rightActions:swipeActions,children:_jsx(View,{children:innerContent})}):innerContent;$[34]=filteredActions?.length;$[35]=innerContent;$[36]=swipeActions;$[37]=t14;}else{t14=$[37];}var t15;if($[38]!==styles.container||$[39]!==t14){t15=_jsx(View,{style:styles.container,children:t14});$[38]=styles.container;$[39]=t14;$[40]=t15;}else{t15=$[40];}return t15;};var createStyles=({styles:{listItem},theme},{variant})=>StyleSheet.create({container:{backgroundColor:theme.color.background,borderRadius:variant==="compact"?undefined:listItem.borderRadius,overflow:"hidden",width:"100%"},pressableContainer:{display:"flex",flexDirection:"column",backgroundColor:theme.color.foreground,borderRadius:variant==="compact"?undefined:listItem.borderRadius},bodyContainer:{flexDirection:"row",justifyContent:"space-between"},innerContainer:{flexDirection:"row",flexShrink:1},contentContainer:{flexShrink:1,flexDirection:"column",alignItems:"flex-start",justifyContent:"center",width:"100%",padding:listItem.internalSpacing}});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/listItem/ListItem.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{Pressable,StyleSheet,View}from"react-native";import{Undefined}from"@reillymc/es-utils";import{useThemedStyles}from"../../hooks";import{SwipeableContainer}from"../swipe";import{Text}from"../text";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";var EMPTY_CONTENT_ROWS=[];export var ListItem=t0=>{var $=_c(38);var avatar=t0.avatar,alert=t0.alert,heading=t0.heading,footer=t0.footer,header=t0.header,t1=t0.variant,t2=t0.contentRows,swipeActions=t0.swipeActions,style=t0.style,contentContainerStyle=t0.contentContainerStyle,onPress=t0.onPress;var variant=t1===undefined?"default":t1;var contentRows=t2===undefined?EMPTY_CONTENT_ROWS:t2;var t3;if($[0]!==contentRows){t3=contentRows.filter(Undefined);$[0]=contentRows;$[1]=t3;}else{t3=$[1];}var filteredRows=t3;var t4;if($[2]!==swipeActions){t4=swipeActions?.filter(Undefined);$[2]=swipeActions;$[3]=t4;}else{t4=$[3];}var filteredActions=t4;var t5;if($[4]!==variant){t5={props:{variant}};$[4]=variant;$[5]=t5;}else{t5=$[5];}var _useThemedStyles=useThemedStyles("listItem",createStyles,t5),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t6;if($[6]!==style||$[7]!==styles.pressableContainer){t6=[styles.pressableContainer,style];$[6]=style;$[7]=styles.pressableContainer;$[8]=t6;}else{t6=$[8];}var t7;if($[9]!==contentContainerStyle||$[10]!==styles.contentContainer){t7=[styles.contentContainer,contentContainerStyle];$[9]=contentContainerStyle;$[10]=styles.contentContainer;$[11]=t7;}else{t7=$[11];}var t8;if($[12]!==heading){t8=!!heading&&typeof heading==="string"?_jsx(Text,{variant:"heading",numberOfLines:2,children:heading}):heading;$[12]=heading;$[13]=t8;}else{t8=$[13];}var t9;if($[14]!==filteredRows||$[15]!==t7||$[16]!==t8){t9=_jsxs(View,{style:t7,children:[t8,filteredRows]});$[14]=filteredRows;$[15]=t7;$[16]=t8;$[17]=t9;}else{t9=$[17];}var t10;if($[18]!==avatar||$[19]!==styles.innerContainer||$[20]!==t9){t10=_jsxs(View,{style:styles.innerContainer,children:[avatar,t9]});$[18]=avatar;$[19]=styles.innerContainer;$[20]=t9;$[21]=t10;}else{t10=$[21];}var t11;if($[22]!==alert||$[23]!==styles.bodyContainer||$[24]!==t10){t11=_jsxs(View,{style:styles.bodyContainer,children:[t10,alert]});$[22]=alert;$[23]=styles.bodyContainer;$[24]=t10;$[25]=t11;}else{t11=$[25];}var t12;if($[26]!==footer||$[27]!==header||$[28]!==onPress||$[29]!==t11||$[30]!==t6){t12=_jsxs(Pressable,{onPress:onPress,style:t6,children:[header,t11,footer]});$[26]=footer;$[27]=header;$[28]=onPress;$[29]=t11;$[30]=t6;$[31]=t12;}else{t12=$[31];}var innerContent=t12;var t13;if($[32]!==filteredActions||$[33]!==innerContent){t13=filteredActions?.length?_jsx(SwipeableContainer,{rightActions:filteredActions,children:_jsx(View,{children:innerContent})}):innerContent;$[32]=filteredActions;$[33]=innerContent;$[34]=t13;}else{t13=$[34];}var t14;if($[35]!==styles.container||$[36]!==t13){t14=_jsx(View,{style:styles.container,children:t13});$[35]=styles.container;$[36]=t13;$[37]=t14;}else{t14=$[37];}return t14;};var createStyles=({styles:{listItem},theme},{variant})=>StyleSheet.create({container:{backgroundColor:theme.color.background,borderRadius:variant==="compact"?undefined:listItem.borderRadius,overflow:"hidden",width:"100%"},pressableContainer:{display:"flex",flexDirection:"column",backgroundColor:theme.color.foreground,borderRadius:variant==="compact"?undefined:listItem.borderRadius},bodyContainer:{flexDirection:"row",justifyContent:"space-between"},innerContainer:{flexDirection:"row",flexShrink:1},contentContainer:{flexShrink:1,flexDirection:"column",alignItems:"flex-start",justifyContent:"center",width:"100%",padding:listItem.internalSpacing}});
@@ -0,0 +1 @@
1
+ export var defaultListItemStyles=({border})=>({spacingMargin:12,internalSpacing:16,borderRadius:border.radius.loose,contentItemSpacing:8,contentItemTopMargin:4});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/listItem/ListItemAlert.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{useThemedStyles}from"../../hooks";import{jsx as _jsx}from"react/jsx-runtime";export var ListItemAlert=t0=>{var $=_c(3);var children=t0.children;var _useThemedStyles=useThemedStyles("listItem",createStyles),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t1;if($[0]!==children||$[1]!==styles.alert){t1=_jsx(View,{style:styles.alert,children:children});$[0]=children;$[1]=styles.alert;$[2]=t1;}else{t1=$[2];}return t1;};var createStyles=({styles:{listItem}})=>StyleSheet.create({alert:{alignItems:"center",justifyContent:"center",marginLeft:listItem.spacingMargin,marginRight:listItem.internalSpacing}});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/listItem/ListItemAlert.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{useThemedStyles}from"../../hooks";import{jsx as _jsx}from"react/jsx-runtime";export var ListItemAlert=t0=>{var $=_c(3);var children=t0.children;var _useThemedStyles=useThemedStyles("listItem",createStyles),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t1;if($[0]!==children||$[1]!==styles.alert){t1=_jsx(View,{style:styles.alert,children:children});$[0]=children;$[1]=styles.alert;$[2]=t1;}else{t1=$[2];}return t1;};var createStyles=({styles:{listItem}})=>StyleSheet.create({alert:{alignItems:"center",justifyContent:"center",marginStart:listItem.spacingMargin,marginEnd:listItem.internalSpacing}});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/listItem/ListItemAvatar.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{useThemedStyles}from"../../hooks";import{jsx as _jsx}from"react/jsx-runtime";export var ListItemAvatar=t0=>{var $=_c(3);var children=t0.children;var _useThemedStyles=useThemedStyles("listItem",createStyles),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t1;if($[0]!==children||$[1]!==styles.avatar){t1=_jsx(View,{style:styles.avatar,children:children});$[0]=children;$[1]=styles.avatar;$[2]=t1;}else{t1=$[2];}return t1;};var createStyles=({styles:{listItem}})=>StyleSheet.create({avatar:{alignItems:"center",justifyContent:"center",marginLeft:listItem.internalSpacing}});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/listItem/ListItemAvatar.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{useThemedStyles}from"../../hooks";import{jsx as _jsx}from"react/jsx-runtime";export var ListItemAvatar=t0=>{var $=_c(3);var children=t0.children;var _useThemedStyles=useThemedStyles("listItem",createStyles),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t1;if($[0]!==children||$[1]!==styles.avatar){t1=_jsx(View,{style:styles.avatar,children:children});$[0]=children;$[1]=styles.avatar;$[2]=t1;}else{t1=$[2];}return t1;};var createStyles=({styles:{listItem}})=>StyleSheet.create({avatar:{alignItems:"center",justifyContent:"center",marginStart:listItem.internalSpacing}});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/listItem/ListItemFooter.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{useThemedStyles}from"../../hooks";import{jsx as _jsx}from"react/jsx-runtime";export var ListItemFooter=t0=>{var $=_c(3);var children=t0.children;var _useThemedStyles=useThemedStyles("listItem",createStyles),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t1;if($[0]!==children||$[1]!==styles.footer){t1=_jsx(View,{style:styles.footer,children:children});$[0]=children;$[1]=styles.footer;$[2]=t1;}else{t1=$[2];}return t1;};var createStyles=({styles:{listItem}})=>StyleSheet.create({footer:{display:"flex",marginBottom:listItem.internalSpacing,marginLeft:listItem.internalSpacing,marginRight:listItem.internalSpacing}});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/listItem/ListItemFooter.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{useThemedStyles}from"../../hooks";import{jsx as _jsx}from"react/jsx-runtime";export var ListItemFooter=t0=>{var $=_c(3);var children=t0.children;var _useThemedStyles=useThemedStyles("listItem",createStyles),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t1;if($[0]!==children||$[1]!==styles.footer){t1=_jsx(View,{style:styles.footer,children:children});$[0]=children;$[1]=styles.footer;$[2]=t1;}else{t1=$[2];}return t1;};var createStyles=({styles:{listItem}})=>StyleSheet.create({footer:{display:"flex",marginBottom:listItem.internalSpacing,marginStart:listItem.internalSpacing,marginEnd:listItem.internalSpacing}});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/listItem/ListItemRow.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{useThemedStyles}from"../../hooks";import{Text}from"../text";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var ListItemRow=t0=>{var $=_c(13);var contentItems=t0.contentItems;var _useThemedStyles=useThemedStyles("listItem",createStyles),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t1;if($[0]!==contentItems){t1=Array.isArray(contentItems)?contentItems:[contentItems];$[0]=contentItems;$[1]=t1;}else{t1=$[1];}var items=t1;var t2=styles.contentItem;var t3;if($[2]!==items||$[3]!==styles.contentItem||$[4]!==styles.spacer){var _t;if($[6]!==items.length||$[7]!==styles.contentItem||$[8]!==styles.spacer){_t=(item,index)=>_jsxs(View,{style:styles.contentItem,children:[item,index<items.length-1&&_jsx(Text,{style:styles.spacer,children:"\xB7"})]},item?.key);$[6]=items.length;$[7]=styles.contentItem;$[8]=styles.spacer;$[9]=_t;}else{_t=$[9];}t3=items.map(_t);$[2]=items;$[3]=styles.contentItem;$[4]=styles.spacer;$[5]=t3;}else{t3=$[5];}var t4;if($[10]!==styles.contentItem||$[11]!==t3){t4=_jsx(View,{style:t2,children:t3});$[10]=styles.contentItem;$[11]=t3;$[12]=t4;}else{t4=$[12];}return t4;};var createStyles=({styles:{listItem}})=>StyleSheet.create({contentItem:{flexDirection:"row",flexShrink:1},spacer:{marginHorizontal:listItem.contentItemSpacing}});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/listItem/ListItemRow.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{Text}from"../text";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var ListItemRow=t0=>{var $=_c(10);var contentItems=t0.contentItems;var _useThemedStyles=useThemedStyles("listItem",createStyles),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var T0;var t1;var t2;if($[0]!==contentItems||$[1]!==styles.contentItem||$[2]!==styles.spacer){var items=(Array.isArray(contentItems)?contentItems:[contentItems]).filter(Undefined);T0=View;t1=styles.contentItem;t2=items.map((item,index)=>_jsxs(View,{style:styles.contentItem,children:[item,index<items.length-1&&_jsx(Text,{style:styles.spacer,children:"\xB7"})]},item.key??`content-item-${index}`));$[0]=contentItems;$[1]=styles.contentItem;$[2]=styles.spacer;$[3]=T0;$[4]=t1;$[5]=t2;}else{T0=$[3];t1=$[4];t2=$[5];}var t3;if($[6]!==T0||$[7]!==t1||$[8]!==t2){t3=_jsx(T0,{style:t1,children:t2});$[6]=T0;$[7]=t1;$[8]=t2;$[9]=t3;}else{t3=$[9];}return t3;};var createStyles=({styles:{listItem}})=>StyleSheet.create({contentItem:{flexDirection:"row",flexShrink:1},spacer:{marginHorizontal:listItem.contentItemSpacing}});
@@ -0,0 +1 @@
1
+ import{defaultInputBaseStyles}from"../input/InputBase.styles";export var defaultMenuStyles=theme=>{var inputBase=defaultInputBaseStyles(theme);return{backgroundColor:theme.color.inputBackground,borderRadius:inputBase.container.borderRadius,gap:theme.spacing.tiny,padding:theme.spacing.tiny,parentMargin:theme.spacing.medium};};
@@ -0,0 +1 @@
1
+ import{defaultInputBaseStyles}from"../input/InputBase.styles";import{defaultMenuStyles}from"./Menu.styles";export var defaultMenuItemStyles=theme=>{var inputBase=defaultInputBaseStyles(theme);var menu=defaultMenuStyles(theme);return{paddingHorizontal:inputBase.container.padding-menu.padding,paddingVertical:theme.spacing.small+theme.spacing.tiny,borderRadius:menu.borderRadius/2};};
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/rating/Rating.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{useThemedStyles}from"../../hooks";import{IconBase}from"../icon";import{getRatingIcons,valueToRating}from"./ratingUtils";import{jsx as _jsx}from"react/jsx-runtime";export var Rating=t0=>{var $=_c(16);var t1=t0.value,t2=t0.max,scale=t0.scale,styleOverrides=t0.style,containerStyle=t0.containerStyle;var value=t1===undefined?0:t1;var max=t2===undefined?5:t2;var t3;if($[0]!==styleOverrides){t3={styles:{rating:styleOverrides}};$[0]=styleOverrides;$[1]=t3;}else{t3=$[1];}var _useThemedStyles=useThemedStyles("rating",createStyles,t3),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],t4=_useThemedStyles2[1];var style=t4.style,icons=t4.icons;var t5;if($[2]!==containerStyle||$[3]!==icons||$[4]!==max||$[5]!==scale||$[6]!==style||$[7]!==styles.starRating||$[8]!==value){var scaledRating=scale?valueToRating(value,max,scale):value;var t6;if($[10]!==containerStyle||$[11]!==styles.starRating){t6=[styles.starRating,containerStyle];$[10]=containerStyle;$[11]=styles.starRating;$[12]=t6;}else{t6=$[12];}var t7;if($[13]!==icons||$[14]!==style){t7=(variant,i)=>_jsx(IconBase,{...icons[variant],style:{size:style.icon.size,color:style.icon.color[variant]}},i);$[13]=icons;$[14]=style;$[15]=t7;}else{t7=$[15];}t5=_jsx(View,{style:t6,accessibilityLabel:`star rating. ${scaledRating} of ${max}.`,children:getRatingIcons(scaledRating,max).map(t7)});$[2]=containerStyle;$[3]=icons;$[4]=max;$[5]=scale;$[6]=style;$[7]=styles.starRating;$[8]=value;$[9]=t5;}else{t5=$[9];}return t5;};var createStyles=({styles:{rating}})=>StyleSheet.create({starRating:{flexDirection:"row",gap:rating.gap}});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/rating/Rating.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{useThemedStyles}from"../../hooks";import{IconBase}from"../icon";import{getRatingIcons,valueToRating}from"./ratingUtils";import{jsx as _jsx}from"react/jsx-runtime";export var Rating=t0=>{var $=_c(16);var t1=t0.value,t2=t0.max,scale=t0.scale,styleOverrides=t0.style,containerStyle=t0.containerStyle;var value=t1===undefined?0:t1;var max=t2===undefined?5:t2;var t3;if($[0]!==styleOverrides){t3={styles:{rating:styleOverrides}};$[0]=styleOverrides;$[1]=t3;}else{t3=$[1];}var _useThemedStyles=useThemedStyles("rating",createStyles,t3),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],t4=_useThemedStyles2[1];var style=t4.style,icons=t4.icons;var t5;if($[2]!==containerStyle||$[3]!==icons||$[4]!==max||$[5]!==scale||$[6]!==style||$[7]!==styles.starRating||$[8]!==value){var scaledRating=scale?valueToRating(value,max,scale):value;var t6;if($[10]!==containerStyle||$[11]!==styles.starRating){t6=[styles.starRating,containerStyle];$[10]=containerStyle;$[11]=styles.starRating;$[12]=t6;}else{t6=$[12];}var t7;if($[13]!==icons||$[14]!==style){t7=(variant,i)=>_jsx(IconBase,{...icons[variant],size:style.icon.size,color:style.icon.color[variant]},i);$[13]=icons;$[14]=style;$[15]=t7;}else{t7=$[15];}t5=_jsx(View,{style:t6,accessibilityLabel:`star rating. ${scaledRating} of ${max}.`,children:getRatingIcons(scaledRating,max).map(t7)});$[2]=containerStyle;$[3]=icons;$[4]=max;$[5]=scale;$[6]=style;$[7]=styles.starRating;$[8]=value;$[9]=t5;}else{t5=$[9];}return t5;};var createStyles=({styles:{rating}})=>StyleSheet.create({starRating:{flexDirection:"row",gap:rating.gap}});
@@ -0,0 +1 @@
1
+ import{defaultIconStyles}from"../icon/Icon.styles";export var defaultRatingStyles=theme=>({gap:theme.spacing.tiny,icon:{color:{empty:theme.color.primaryLight,half:theme.color.primary,full:theme.color.primary},size:defaultIconStyles(theme).size.large}});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/swipe/SwipeAction.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{StyleSheet}from"react-native";import{useThemedStyles}from"../../hooks";import{IconButton}from"../button";import{withIcon}from"../icon";import{jsx as _jsx}from"react/jsx-runtime";export var SwipeAction=withIcon(props=>{var _useThemedStyles=useThemedStyles("swipeAction",createStyles),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];return _jsx(IconButton,{...props,containerStyle:styles.actionButton});});var createStyles=({styles:{swipeAction}})=>StyleSheet.create({actionButton:{height:"100%",alignItems:"center",justifyContent:"center",borderRadius:0,width:swipeAction.width}});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/swipe/SwipeAction.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{IconButton}from"../button";import{jsx as _jsx}from"react/jsx-runtime";export var SwipeAction=props=>{var $=_c(3);var _useThemedStyles=useThemedStyles("swipeAction",createStyles),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t0;if($[0]!==props||$[1]!==styles.actionButton){t0=_jsx(IconButton,{...props,containerStyle:styles.actionButton});$[0]=props;$[1]=styles.actionButton;$[2]=t0;}else{t0=$[2];}return t0;};var createStyles=({styles:{swipeAction}})=>StyleSheet.create({actionButton:{height:"100%",alignItems:"center",justifyContent:"center",borderRadius:0,width:swipeAction.width}});
@@ -0,0 +1 @@
1
+ export var defaultSwipeActionStyles=_theme=>({width:75});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/swipe/SwipeableContainer.tsx";import{c as _c}from"react/compiler-runtime";import{useMemo,useRef}from"react";import{StyleSheet,View}from"react-native";import Swipeable from"react-native-gesture-handler/ReanimatedSwipeable";import{jsx as _jsx}from"react/jsx-runtime";export var SwipeableContainer=t0=>{var $=_c(12);var t1=t0.rightActions,containerStyle=t0.containerStyle,children=t0.children;var t2;if($[0]!==t1){t2=t1===undefined?[]:t1;$[0]=t1;$[1]=t2;}else{t2=$[1];}var rightActions=t2;var swipeableRef=useRef(null);var t3;if($[2]!==rightActions){t3=rightActions.reverse();$[2]=rightActions;$[3]=t3;}else{t3=$[3];}var actions=t3;var t4;if($[4]===Symbol.for("react.memo_cache_sentinel")){t4=()=>{swipeableRef.current?.close();};$[4]=t4;}else{t4=$[4];}var handleActionsPress=t4;var t5;if($[5]!==actions){t5=()=>_jsx(View,{style:styles.actionsContainer,onTouchEnd:handleActionsPress,children:actions});$[5]=actions;$[6]=t5;}else{t5=$[6];}var renderRightActions=t5;var t6;if($[7]===Symbol.for("react.memo_cache_sentinel")){t6={left:-20};$[7]=t6;}else{t6=$[7];}var t7;if($[8]!==children||$[9]!==containerStyle||$[10]!==renderRightActions){t7=_jsx(Swipeable,{hitSlop:t6,ref:swipeableRef,renderRightActions:renderRightActions,enableTrackpadTwoFingerGesture:true,friction:1.5,overshootRight:false,containerStyle:containerStyle,children:children});$[8]=children;$[9]=containerStyle;$[10]=renderRightActions;$[11]=t7;}else{t7=$[11];}return t7;};var styles=StyleSheet.create({actionsContainer:{display:"flex",flexDirection:"row"}});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/swipe/SwipeableContainer.tsx";import{c as _c}from"react/compiler-runtime";import{useMemo,useRef}from"react";import{StyleSheet,View}from"react-native";import Swipeable from"react-native-gesture-handler/ReanimatedSwipeable";import{jsx as _jsx}from"react/jsx-runtime";var EMPTY_ACTIONS=[];export var SwipeableContainer=t0=>{var $=_c(10);var t1=t0.rightActions,containerStyle=t0.containerStyle,children=t0.children;var rightActions=t1===undefined?EMPTY_ACTIONS:t1;var swipeableRef=useRef(null);var t2;if($[0]!==rightActions){t2=[...rightActions].reverse();$[0]=rightActions;$[1]=t2;}else{t2=$[1];}var actions=t2;var t3;if($[2]===Symbol.for("react.memo_cache_sentinel")){t3=()=>{swipeableRef.current?.close();};$[2]=t3;}else{t3=$[2];}var handleActionsPress=t3;var t4;if($[3]!==actions){t4=()=>_jsx(View,{style:styles.actionsContainer,onTouchEnd:handleActionsPress,children:actions});$[3]=actions;$[4]=t4;}else{t4=$[4];}var renderRightActions=t4;var t5;if($[5]===Symbol.for("react.memo_cache_sentinel")){t5={left:-20};$[5]=t5;}else{t5=$[5];}var t6;if($[6]!==children||$[7]!==containerStyle||$[8]!==renderRightActions){t6=_jsx(Swipeable,{hitSlop:t5,ref:swipeableRef,renderRightActions:renderRightActions,enableTrackpadTwoFingerGesture:true,friction:1.5,overshootRight:false,containerStyle:containerStyle,children:children});$[6]=children;$[7]=containerStyle;$[8]=renderRightActions;$[9]=t6;}else{t6=$[9];}return t6;};var styles=StyleSheet.create({actionsContainer:{display:"flex",flexDirection:"row"}});
@@ -0,0 +1 @@
1
+ export var defaultTagStyles=({border,spacing})=>({borderRadius:border.radius.loose,internalSpacing:spacing.small,padding:spacing.small});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/tag/TagIcon.tsx";import{useTheme}from"../../hooks";import{IconBase,withIcon}from"../icon";import{jsx as _jsx}from"react/jsx-runtime";export var TagIcon=withIcon(({...iconProps})=>{var _useTheme=useTheme(),theme=_useTheme.theme,styles=_useTheme.styles;return _jsx(IconBase,{...iconProps,style:{color:theme.color.textPrimary,size:styles.text.font.body.size}});});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/tag/TagIcon.tsx";function _objectDestructuringEmpty(t){if(null==t)throw new TypeError("Cannot destructure "+t);}import{c as _c}from"react/compiler-runtime";import{useTheme}from"../../hooks";import{IconBase}from"../icon";import{jsx as _jsx}from"react/jsx-runtime";export var TagIcon=t0=>{var $=_c(6);var iconProps;if($[0]!==t0){iconProps=Object.assign({},(_objectDestructuringEmpty(t0),t0));$[0]=t0;$[1]=iconProps;}else{iconProps=$[1];}var _useTheme=useTheme(),theme=_useTheme.theme,styles=_useTheme.styles;var t1;if($[2]!==iconProps||$[3]!==styles.text.font.body.size||$[4]!==theme.color.textPrimary){t1=_jsx(IconBase,{...iconProps,color:theme.color.textPrimary,size:styles.text.font.body.size});$[2]=iconProps;$[3]=styles.text.font.body.size;$[4]=theme.color.textPrimary;$[5]=t1;}else{t1=$[5];}return t1;};
@@ -0,0 +1 @@
1
+ export var defaultHighlightedTextStyles=()=>({highlightedWeight:{body:"800",caption:"800",display:"800",heading:"800",label:"800",title:"800"}});
@@ -0,0 +1 @@
1
+ export var defaultInteractiveTextStyles=({color})=>({color:{enabled:color.primary,pressed:color.primaryLight,disabled:color.primaryLight}});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/text/Text.tsx";var _excluded=["variant","style","children"];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{Text as RnText,StyleSheet}from"react-native";import{useThemedStyles}from"../../hooks";import{jsx as _jsx}from"react/jsx-runtime";export var Text=t0=>{var $=_c(14);var children;var props;var style;var t1;if($[0]!==t0){t1=t0.variant;style=t0.style;children=t0.children;props=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=children;$[2]=props;$[3]=style;$[4]=t1;}else{children=$[1];props=$[2];style=$[3];t1=$[4];}var variant=t1===undefined?"body":t1;var t2;if($[5]!==variant){t2={props:{variant}};$[5]=variant;$[6]=t2;}else{t2=$[6];}var _useThemedStyles=useThemedStyles("text",createStyles,t2),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t3;if($[7]!==style||$[8]!==styles.text){t3=[styles.text,style];$[7]=style;$[8]=styles.text;$[9]=t3;}else{t3=$[9];}var t4;if($[10]!==children||$[11]!==props||$[12]!==t3){t4=_jsx(RnText,{...props,style:t3,children:children});$[10]=children;$[11]=props;$[12]=t3;$[13]=t4;}else{t4=$[13];}return t4;};var createStyles=({styles:{text}},{variant="body"})=>StyleSheet.create({text:{fontFamily:text.font[variant].family,fontWeight:text.font[variant].weight,fontSize:text.font[variant].size,color:text.color}});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/text/Text.tsx";var _excluded=["variant","style","children"];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{Text as RnText,StyleSheet}from"react-native";import{MAX_FONT_SIZE_MULTIPLIER}from"../../common";import{useThemedStyles}from"../../hooks";import{jsx as _jsx}from"react/jsx-runtime";export var Text=t0=>{var $=_c(14);var children;var props;var style;var t1;if($[0]!==t0){t1=t0.variant;style=t0.style;children=t0.children;props=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=children;$[2]=props;$[3]=style;$[4]=t1;}else{children=$[1];props=$[2];style=$[3];t1=$[4];}var variant=t1===undefined?"body":t1;var t2;if($[5]!==variant){t2={props:{variant}};$[5]=variant;$[6]=t2;}else{t2=$[6];}var _useThemedStyles=useThemedStyles("text",createStyles,t2),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t3;if($[7]!==style||$[8]!==styles.text){t3=[styles.text,style];$[7]=style;$[8]=styles.text;$[9]=t3;}else{t3=$[9];}var t4;if($[10]!==children||$[11]!==props||$[12]!==t3){t4=_jsx(RnText,{maxFontSizeMultiplier:MAX_FONT_SIZE_MULTIPLIER,...props,style:t3,children:children});$[10]=children;$[11]=props;$[12]=t3;$[13]=t4;}else{t4=$[13];}return t4;};var createStyles=({styles:{text}},{variant="body"})=>StyleSheet.create({text:{fontFamily:text.font[variant].family,fontWeight:text.font[variant].weight,fontSize:text.font[variant].size,color:text.color}});
@@ -0,0 +1 @@
1
+ export var defaultTextStyles=({color,font})=>({color:color.textPrimary,font:{caption:{family:font.family.sans,weight:"200",size:font.size.small},body:{family:font.family.sans,weight:"400",size:font.size.regular},label:{family:font.family.sans,weight:"500",size:font.size.large},heading:{family:font.family.sans,weight:"600",size:font.size.large},title:{family:font.family.sans,weight:"800",size:font.size.xLarge},display:{family:font.family.sans,weight:"800",size:font.size.xxLarge}}});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/toast/Toast.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{StyleSheet,View}from"react-native";import Animated,{LinearTransition,SlideInDown,SlideOutDown}from"react-native-reanimated";import{useThemedStyles}from"../../hooks";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var Toast=t0=>{var $=_c(20);var action=t0.action,containerStyle=t0.containerStyle,children=t0.children;var _useThemedStyles=useThemedStyles("toast",createStyles),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t1;if($[0]!==containerStyle||$[1]!==styles.container){t1=[styles.container,containerStyle];$[0]=containerStyle;$[1]=styles.container;$[2]=t1;}else{t1=$[2];}var t2;var t3;var t4;if($[3]===Symbol.for("react.memo_cache_sentinel")){t2=SlideInDown.springify().mass(0.5);t3=SlideOutDown.springify().mass(0.5);t4=LinearTransition.springify().mass(0.5);$[3]=t2;$[4]=t3;$[5]=t4;}else{t2=$[3];t3=$[4];t4=$[5];}var t5;if($[6]!==children||$[7]!==styles.contentContainer){t5=_jsx(View,{style:styles.contentContainer,children:children});$[6]=children;$[7]=styles.contentContainer;$[8]=t5;}else{t5=$[8];}var t6;if($[9]!==action||$[10]!==styles.actionContainer||$[11]!==styles.separator){t6=action&&_jsxs(View,{style:styles.actionContainer,children:[_jsx(Animated.View,{layout:LinearTransition.springify().mass(0.5),style:styles.separator}),action]});$[9]=action;$[10]=styles.actionContainer;$[11]=styles.separator;$[12]=t6;}else{t6=$[12];}var t7;if($[13]!==styles.innerContainer||$[14]!==t5||$[15]!==t6){t7=_jsxs(View,{style:styles.innerContainer,children:[t5,t6]});$[13]=styles.innerContainer;$[14]=t5;$[15]=t6;$[16]=t7;}else{t7=$[16];}var t8;if($[17]!==t1||$[18]!==t7){t8=_jsx(Animated.View,{style:t1,entering:t2,exiting:t3,layout:t4,children:t7});$[17]=t1;$[18]=t7;$[19]=t8;}else{t8=$[19];}return t8;};var createStyles=({theme:{color,spacing,border},styles:{toast}})=>StyleSheet.create({container:{position:"absolute",bottom:toast.bottomInset,left:toast.horizontalInset,right: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:{borderLeftWidth:StyleSheet.hairlineWidth,borderLeftColor:color.textSecondary,height:"100%",marginHorizontal:spacing.medium}});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/toast/Toast.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{StyleSheet,View}from"react-native";import Animated,{LinearTransition,SlideInDown,SlideOutDown}from"react-native-reanimated";import{useThemedStyles}from"../../hooks";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var Toast=t0=>{var $=_c(20);var action=t0.action,containerStyle=t0.containerStyle,children=t0.children;var _useThemedStyles=useThemedStyles("toast",createStyles),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t1;if($[0]!==containerStyle||$[1]!==styles.container){t1=[styles.container,containerStyle];$[0]=containerStyle;$[1]=styles.container;$[2]=t1;}else{t1=$[2];}var t2;var t3;var t4;if($[3]===Symbol.for("react.memo_cache_sentinel")){t2=SlideInDown.springify().mass(0.5);t3=SlideOutDown.springify().mass(0.5);t4=LinearTransition.springify().mass(0.5);$[3]=t2;$[4]=t3;$[5]=t4;}else{t2=$[3];t3=$[4];t4=$[5];}var t5;if($[6]!==children||$[7]!==styles.contentContainer){t5=_jsx(View,{style:styles.contentContainer,children:children});$[6]=children;$[7]=styles.contentContainer;$[8]=t5;}else{t5=$[8];}var t6;if($[9]!==action||$[10]!==styles.actionContainer||$[11]!==styles.separator){t6=action&&_jsxs(View,{style:styles.actionContainer,children:[_jsx(Animated.View,{layout:LinearTransition.springify().mass(0.5),style:styles.separator}),action]});$[9]=action;$[10]=styles.actionContainer;$[11]=styles.separator;$[12]=t6;}else{t6=$[12];}var t7;if($[13]!==styles.innerContainer||$[14]!==t5||$[15]!==t6){t7=_jsxs(View,{style:styles.innerContainer,children:[t5,t6]});$[13]=styles.innerContainer;$[14]=t5;$[15]=t6;$[16]=t7;}else{t7=$[16];}var t8;if($[17]!==t1||$[18]!==t7){t8=_jsx(Animated.View,{style:t1,entering:t2,exiting:t3,layout:t4,children:t7});$[17]=t1;$[18]=t7;$[19]=t8;}else{t8=$[19];}return t8;};var createStyles=({theme:{color,spacing,border},styles:{toast}})=>StyleSheet.create({container:{position:"absolute",bottom:toast.bottomInset,start:toast.horizontalInset,end:toast.horizontalInset,backgroundColor:color.backgroundHighlight,padding:spacing.medium,borderRadius:border.radius.loose},innerContainer:{flexDirection:"row",justifyContent:"space-between"},contentContainer:{flex:1},actionContainer:{flex:0,alignItems:"center",flexDirection:"row",height:"100%"},separator:{borderStartWidth:StyleSheet.hairlineWidth,borderStartColor:color.textSecondary,height:"100%",marginHorizontal:spacing.medium}});
@@ -0,0 +1 @@
1
+ export var defaultToastStyles=({spacing})=>({horizontalInset:spacing.pageHorizontal+spacing.medium,bottomInset:100});
@@ -1 +1 @@
1
- import{c as _c}from"react/compiler-runtime";import{useMemo}from"react";import{MergeStyles}from"../theme";import{useTheme}from"./useTheme";function hasKey(obj,key){return key in obj;}var EMPTY_OPTIONS={};export function useThemedStyles(...t0){var $=_c(13);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,originalStyles=_useTheme.styles,icons=_useTheme.icons;var t1;if($[0]!==componentName||$[1]!==componentProps||$[2]!==componentStyles||$[3]!==generator||$[4]!==hasProps||$[5]!==icons||$[6]!==isComponent||$[7]!==originalStyles||$[8]!==theme){bb0:{var styles=MergeStyles(originalStyles,componentStyles);var _generated=hasProps?generator({theme,styles,icons},componentProps):generator({theme,styles,icons});if(!isComponent){t1=_generated;break bb0;}var name=componentName;var componentResult=hasKey(styles,name)?hasKey(icons,name)?{style:styles[name],icons:icons[name]}:{style:styles[name]}:hasKey(icons,name)?{icons:icons[name]}:{};var t2;if($[10]!==componentResult||$[11]!==_generated){t2=[_generated,componentResult];$[10]=componentResult;$[11]=_generated;$[12]=t2;}else{t2=$[12];}t1=t2;}$[0]=componentName;$[1]=componentProps;$[2]=componentStyles;$[3]=generator;$[4]=hasProps;$[5]=icons;$[6]=isComponent;$[7]=originalStyles;$[8]=theme;$[9]=t1;}else{t1=$[9];}var themedStyles=t1;return themedStyles;}export var useStyles=componentStyles=>{var $=_c(3);var _useTheme2=useTheme(),originalStyles=_useTheme2.styles;var t0;if($[0]!==componentStyles||$[1]!==originalStyles){t0=MergeStyles(originalStyles,componentStyles);$[0]=componentStyles;$[1]=originalStyles;$[2]=t0;}else{t0=$[2];}var themedStyles=t0;return themedStyles;};
1
+ import{c as _c}from"react/compiler-runtime";import{useMemo}from"react";import{MergeStyleSlice}from"../theme/styles";import{useTheme}from"./useTheme";function hasKey(obj,key){return key in obj;}var EMPTY_OPTIONS={};var mergeStylesForComponent=(styles,name,override)=>{if(!hasKey(styles,name)){return{config:undefined,styles};}var base=styles[name];var config=MergeStyleSlice(base,override);return{config,styles:config===base?styles:{...styles,[name]:config}};};var buildComponentResult=(styles,icons,name,config)=>{var hasStyle=hasKey(styles,name);var hasIcons=hasKey(icons,name);if(hasStyle&&hasIcons){return{style:config,icons:icons[name]};}if(hasStyle){return{style:config};}if(hasIcons){return{icons:icons[name]};}return{};};export function useThemedStyles(...t0){var $=_c(10);var args=t0;var first=args[0];var isComponent=typeof first==="string";var componentName=isComponent?first:undefined;var generator=isComponent?args[1]:first;var options=(isComponent?args[2]:args[1])??EMPTY_OPTIONS;var hasProps="props"in options;var componentProps=hasProps?options.props:undefined;var componentStyles="styles"in options?options.styles:undefined;var _useTheme=useTheme(),theme=_useTheme.theme,styles=_useTheme.styles,icons=_useTheme.icons;var name=componentName;var t1;if($[0]!==componentProps||$[1]!==componentStyles||$[2]!==generator||$[3]!==hasProps||$[4]!==icons||$[5]!==isComponent||$[6]!==name||$[7]!==styles||$[8]!==theme){var _ref=isComponent?mergeStylesForComponent(styles,name,componentStyles?.[name]):{config:undefined,styles},config=_ref.config,stylesForGenerator=_ref.styles;var _generated=hasProps?generator({theme,styles:stylesForGenerator,icons},componentProps):generator({theme,styles:stylesForGenerator,icons});t1=isComponent?[_generated,buildComponentResult(styles,icons,name,config)]:_generated;$[0]=componentProps;$[1]=componentStyles;$[2]=generator;$[3]=hasProps;$[4]=icons;$[5]=isComponent;$[6]=name;$[7]=styles;$[8]=theme;$[9]=t1;}else{t1=$[9];}var themedStyles=t1;return themedStyles;}export var useStyles=componentStyles=>{var $=_c(7);var _useTheme2=useTheme(),styles=_useTheme2.styles;var merged=styles;var t0;if($[0]!==componentStyles){t0=Object.keys(componentStyles);$[0]=componentStyles;$[1]=t0;}else{t0=$[1];}var t1=t0;if($[2]!==componentStyles||$[3]!==merged||$[4]!==styles||$[5]!==t1){for(var key of t1){var override=componentStyles[key];if(override===undefined){continue;}var base=styles[key];var next=MergeStyleSlice(base,override);if(next!==base){merged={...merged,[key]:next};}}$[2]=componentStyles;$[3]=merged;$[4]=styles;$[5]=t1;$[6]=merged;}else{merged=$[6];}var themedStyles=merged;return themedStyles;};
@@ -1 +1 @@
1
- export{Octicons}from"./octicons";export{Stars}from"./stars";
1
+ export{UiIcons}from"./ui";
@@ -0,0 +1 @@
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/icons/ui/ArrowBoth.tsx";import{c as _c}from"react/compiler-runtime";import Svg,{Path}from"react-native-svg";import{jsx as _jsx}from"react/jsx-runtime";export var ArrowBoth=t0=>{var $=_c(5);var size=t0.size,color=t0.color;var t1;if($[0]!==color){t1=_jsx(Path,{fill:color,d:"M3.72 3.72a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.56 7h10.88l-2.22-2.22a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l3.5 3.5a.75.75 0 0 1 0 1.06l-3.5 3.5a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l2.22-2.22H2.56l2.22 2.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-3.5-3.5a.75.75 0 0 1 0-1.06Z"});$[0]=color;$[1]=t1;}else{t1=$[1];}var t2;if($[2]!==size||$[3]!==t1){t2=_jsx(Svg,{height:size,viewBox:"0 0 16 16",width:size,children:t1});$[2]=size;$[3]=t1;$[4]=t2;}else{t2=$[4];}return t2;};
@@ -0,0 +1 @@
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/icons/ui/ChevronDown.tsx";import{c as _c}from"react/compiler-runtime";import Svg,{Path}from"react-native-svg";import{jsx as _jsx}from"react/jsx-runtime";export var ChevronDown=t0=>{var $=_c(5);var size=t0.size,color=t0.color;var t1;if($[0]!==color){t1=_jsx(Path,{fill:color,d:"M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"});$[0]=color;$[1]=t1;}else{t1=$[1];}var t2;if($[2]!==size||$[3]!==t1){t2=_jsx(Svg,{height:size,viewBox:"0 0 16 16",width:size,children:t1});$[2]=size;$[3]=t1;$[4]=t2;}else{t2=$[4];}return t2;};
@@ -0,0 +1 @@
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/icons/ui/Circle.tsx";import{c as _c}from"react/compiler-runtime";import Svg,{Path}from"react-native-svg";import{jsx as _jsx}from"react/jsx-runtime";export var Circle=t0=>{var $=_c(5);var size=t0.size,color=t0.color;var t1;if($[0]!==color){t1=_jsx(Path,{fill:color,d:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13Z"});$[0]=color;$[1]=t1;}else{t1=$[1];}var t2;if($[2]!==size||$[3]!==t1){t2=_jsx(Svg,{height:size,viewBox:"0 0 16 16",width:size,children:t1});$[2]=size;$[3]=t1;$[4]=t2;}else{t2=$[4];}return t2;};
@@ -0,0 +1 @@
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/icons/ui/Clock.tsx";import{c as _c}from"react/compiler-runtime";import Svg,{Path}from"react-native-svg";import{jsx as _jsx}from"react/jsx-runtime";export var Clock=t0=>{var $=_c(5);var size=t0.size,color=t0.color;var t1;if($[0]!==color){t1=_jsx(Path,{fill:color,d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm7-3.25v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5a.75.75 0 0 1 1.5 0Z"});$[0]=color;$[1]=t1;}else{t1=$[1];}var t2;if($[2]!==size||$[3]!==t1){t2=_jsx(Svg,{height:size,viewBox:"0 0 16 16",width:size,children:t1});$[2]=size;$[3]=t1;$[4]=t2;}else{t2=$[4];}return t2;};
@@ -0,0 +1 @@
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/icons/ui/Dash.tsx";import{c as _c}from"react/compiler-runtime";import Svg,{Path}from"react-native-svg";import{jsx as _jsx}from"react/jsx-runtime";export var Dash=t0=>{var $=_c(5);var size=t0.size,color=t0.color;var t1;if($[0]!==color){t1=_jsx(Path,{fill:color,d:"M2 7.75A.75.75 0 0 1 2.75 7h10a.75.75 0 0 1 0 1.5h-10A.75.75 0 0 1 2 7.75Z"});$[0]=color;$[1]=t1;}else{t1=$[1];}var t2;if($[2]!==size||$[3]!==t1){t2=_jsx(Svg,{height:size,viewBox:"0 0 16 16",width:size,children:t1});$[2]=size;$[3]=t1;$[4]=t2;}else{t2=$[4];}return t2;};
@@ -0,0 +1 @@
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/icons/ui/Exclamation.tsx";import{c as _c}from"react/compiler-runtime";import Svg,{Path}from"react-native-svg";import{jsx as _jsx}from"react/jsx-runtime";export var Exclamation=t0=>{var $=_c(5);var size=t0.size,color=t0.color;var t1;if($[0]!==color){t1=_jsx(Path,{fill:color,d:"M8 11a2 2 0 1 1 .001 3.999A2 2 0 0 1 8 11ZM8 1a1.5 1.5 0 0 1 1.5 1.5v6a1.5 1.5 0 0 1-3 0v-6A1.5 1.5 0 0 1 8 1Z"});$[0]=color;$[1]=t1;}else{t1=$[1];}var t2;if($[2]!==size||$[3]!==t1){t2=_jsx(Svg,{height:size,viewBox:"0 0 16 16",width:size,children:t1});$[2]=size;$[3]=t1;$[4]=t2;}else{t2=$[4];}return t2;};
@@ -0,0 +1 @@
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/icons/ui/InfinityGlyph.tsx";import{c as _c}from"react/compiler-runtime";import Svg,{Path}from"react-native-svg";import{jsx as _jsx}from"react/jsx-runtime";export var InfinityGlyph=t0=>{var $=_c(5);var size=t0.size,color=t0.color;var t1;if($[0]!==color){t1=_jsx(Path,{fill:color,d:"M8 6.984c.59-.533 1.204-1.066 1.825-1.493.797-.548 1.7-.991 2.675-.991C14.414 4.5 16 6.086 16 8s-1.586 3.5-3.5 3.5c-.975 0-1.878-.444-2.675-.991-.621-.427-1.235-.96-1.825-1.493-.59.533-1.204 1.066-1.825 1.493-.797.547-1.7.991-2.675.991C1.586 11.5 0 9.914 0 8s1.586-3.5 3.5-3.5c.975 0 1.878.443 2.675.991.621.427 1.235.96 1.825 1.493ZM9.114 8c.536.483 1.052.922 1.56 1.273.704.483 1.3.727 1.826.727 1.086 0 2-.914 2-2 0-1.086-.914-2-2-2-.525 0-1.122.244-1.825.727-.51.35-1.025.79-1.561 1.273ZM3.5 6c-1.086 0-2 .914-2 2 0 1.086.914 2 2 2 .525 0 1.122-.244 1.825-.727.51-.35 1.025-.79 1.561-1.273-.536-.483-1.052-.922-1.56-1.273C4.621 6.244 4.025 6 3.5 6Z"});$[0]=color;$[1]=t1;}else{t1=$[1];}var t2;if($[2]!==size||$[3]!==t1){t2=_jsx(Svg,{height:size,viewBox:"0 0 16 16",width:size,children:t1});$[2]=size;$[3]=t1;$[4]=t2;}else{t2=$[4];}return t2;};
@@ -0,0 +1 @@
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/icons/ui/NumberGlyph.tsx";import{c as _c}from"react/compiler-runtime";import Svg,{Path}from"react-native-svg";import{jsx as _jsx}from"react/jsx-runtime";export var NumberGlyph=t0=>{var $=_c(5);var size=t0.size,color=t0.color;var t1;if($[0]!==color){t1=_jsx(Path,{fill:color,d:"M9 4.75A.75.75 0 0 1 9.75 4h4a.75.75 0 0 1 .53 1.28l-1.89 1.892c.312.076.604.18.867.319.742.391 1.244 1.063 1.244 2.005 0 .653-.231 1.208-.629 1.627-.386.408-.894.653-1.408.777-1.01.243-2.225.063-3.124-.527a.751.751 0 0 1 .822-1.254c.534.35 1.32.474 1.951.322.306-.073.53-.201.67-.349.129-.136.218-.32.218-.596 0-.308-.123-.509-.444-.678-.373-.197-.98-.318-1.806-.318a.75.75 0 0 1-.53-1.28l1.72-1.72H9.75A.75.75 0 0 1 9 4.75Zm-3.587 5.763c-.35-.05-.77.113-.983.572a.75.75 0 1 1-1.36-.632c.508-1.094 1.589-1.565 2.558-1.425 1 .145 1.872.945 1.872 2.222 0 1.433-1.088 2.192-1.79 2.681-.308.216-.571.397-.772.573H7a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75c0-.69.3-1.211.67-1.61.348-.372.8-.676 1.15-.92.8-.56 1.18-.904 1.18-1.474 0-.473-.267-.69-.587-.737ZM5.604.089A.75.75 0 0 1 6 .75v4.77h.711a.75.75 0 0 1 0 1.5H3.759a.75.75 0 0 1 0-1.5H4.5V2.15l-.334.223a.75.75 0 0 1-.832-1.248l1.5-1a.75.75 0 0 1 .77-.037Z"});$[0]=color;$[1]=t1;}else{t1=$[1];}var t2;if($[2]!==size||$[3]!==t1){t2=_jsx(Svg,{height:size,viewBox:"0 0 16 16",width:size,children:t1});$[2]=size;$[3]=t1;$[4]=t2;}else{t2=$[4];}return t2;};
@@ -0,0 +1 @@
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/icons/ui/Plus.tsx";import{c as _c}from"react/compiler-runtime";import Svg,{Path}from"react-native-svg";import{jsx as _jsx}from"react/jsx-runtime";export var Plus=t0=>{var $=_c(5);var size=t0.size,color=t0.color;var t1;if($[0]!==color){t1=_jsx(Path,{fill:color,d:"M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z"});$[0]=color;$[1]=t1;}else{t1=$[1];}var t2;if($[2]!==size||$[3]!==t1){t2=_jsx(Svg,{height:size,viewBox:"0 0 16 16",width:size,children:t1});$[2]=size;$[3]=t1;$[4]=t2;}else{t2=$[4];}return t2;};
@@ -0,0 +1 @@
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/icons/ui/StarBorder.tsx";import{c as _c}from"react/compiler-runtime";import Svg,{Path}from"react-native-svg";import{jsx as _jsx}from"react/jsx-runtime";export var StarBorder=t0=>{var $=_c(5);var size=t0.size,color=t0.color;var t1;if($[0]!==color){t1=_jsx(Path,{fill:color,d:"M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694Z"});$[0]=color;$[1]=t1;}else{t1=$[1];}var t2;if($[2]!==size||$[3]!==t1){t2=_jsx(Svg,{height:size,viewBox:"0 0 16 16",width:size,children:t1});$[2]=size;$[3]=t1;$[4]=t2;}else{t2=$[4];}return t2;};
@@ -0,0 +1 @@
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/icons/ui/StarFull.tsx";import{c as _c}from"react/compiler-runtime";import Svg,{Path}from"react-native-svg";import{jsx as _jsx}from"react/jsx-runtime";export var StarFull=t0=>{var $=_c(5);var size=t0.size,color=t0.color;var t1;if($[0]!==color){t1=_jsx(Path,{fill:color,d:"M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Z"});$[0]=color;$[1]=t1;}else{t1=$[1];}var t2;if($[2]!==size||$[3]!==t1){t2=_jsx(Svg,{height:size,viewBox:"0 0 16 16",width:size,children:t1});$[2]=size;$[3]=t1;$[4]=t2;}else{t2=$[4];}return t2;};
@@ -0,0 +1 @@
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/icons/ui/StarHalf.tsx";import{c as _c}from"react/compiler-runtime";import{useId}from"react";import Svg,{ClipPath,Defs,Path,Rect}from"react-native-svg";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var StarHalf=t0=>{var $=_c(13);var size=t0.size,color=t0.color;var clipId=useId();var t1;if($[0]===Symbol.for("react.memo_cache_sentinel")){t1=_jsx(Rect,{height:"16",width:"8",x:"0",y:"0"});$[0]=t1;}else{t1=$[0];}var t2;if($[1]!==clipId){t2=_jsx(Defs,{children:_jsx(ClipPath,{id:clipId,children:t1})});$[1]=clipId;$[2]=t2;}else{t2=$[2];}var t3;if($[3]!==color){t3=_jsx(Path,{fill:color,d:"M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694Z"});$[3]=color;$[4]=t3;}else{t3=$[4];}var t4=`url(#${clipId})`;var t5;if($[5]!==color||$[6]!==t4){t5=_jsx(Path,{clipPath:t4,fill:color,d:"M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Z"});$[5]=color;$[6]=t4;$[7]=t5;}else{t5=$[7];}var t6;if($[8]!==size||$[9]!==t2||$[10]!==t3||$[11]!==t5){t6=_jsxs(Svg,{height:size,viewBox:"0 0 16 16",width:size,children:[t2,t3,t5]});$[8]=size;$[9]=t2;$[10]=t3;$[11]=t5;$[12]=t6;}else{t6=$[12];}return t6;};
@@ -0,0 +1 @@
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/icons/ui/index.tsx";import{c as _c}from"react/compiler-runtime";import{ArrowBoth}from"./ArrowBoth";import{ChevronDown}from"./ChevronDown";import{Circle}from"./Circle";import{Clock}from"./Clock";import{Dash}from"./Dash";import{Exclamation}from"./Exclamation";import{InfinityGlyph}from"./InfinityGlyph";import{NumberGlyph}from"./NumberGlyph";import{Plus}from"./Plus";import{StarBorder}from"./StarBorder";import{StarFull}from"./StarFull";import{StarHalf}from"./StarHalf";import{jsx as _jsx}from"react/jsx-runtime";var glyphMap={exclamation:Exclamation,dash:Dash,plus:Plus,infinity:InfinityGlyph,number:NumberGlyph,"arrow-both":ArrowBoth,"chevron-down":ChevronDown,clock:Clock,circle:Circle,"star-empty":StarBorder,"star-half":StarHalf,"star-full":StarFull};export var UiIcons=t0=>{var $=_c(4);var name=t0.name,color=t0.color,size=t0.size;var Glyph=glyphMap[name];if(!Glyph){return null;}var t1;if($[0]!==Glyph||$[1]!==color||$[2]!==size){t1=_jsx(Glyph,{color:color,size:size});$[0]=Glyph;$[1]=color;$[2]=size;$[3]=t1;}else{t1=$[3];}return t1;};
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/providers/ThemeProvider.tsx";import{c as _c}from"react/compiler-runtime";import{createDefaultStyles,DefaultIcons,DefaultTheme,MergeTheme}from"../theme";import{ThemeContext}from"./ThemeContext";import{jsx as _jsx}from"react/jsx-runtime";export var ThemeProvider=t0=>{var $=_c(11);var initialTheme=t0.theme,initialStyles=t0.styles,initialIcons=t0.icons,children=t0.children;var t1;var theme;if($[0]!==initialStyles||$[1]!==initialTheme){theme=MergeTheme(DefaultTheme,initialTheme);t1=initialStyles??createDefaultStyles(theme);$[0]=initialStyles;$[1]=initialTheme;$[2]=t1;$[3]=theme;}else{t1=$[2];theme=$[3];}var styles=t1;var icons=initialIcons??DefaultIcons;var t2;if($[4]!==icons||$[5]!==styles||$[6]!==theme){t2={theme,styles,icons};$[4]=icons;$[5]=styles;$[6]=theme;$[7]=t2;}else{t2=$[7];}var t3;if($[8]!==children||$[9]!==t2){t3=_jsx(ThemeContext.Provider,{value:t2,children:children});$[8]=children;$[9]=t2;$[10]=t3;}else{t3=$[10];}return t3;};
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/providers/ThemeProvider.tsx";import{c as _c}from"react/compiler-runtime";import{useMemo}from"react";import{createDefaultStyles,MergeIcons,MergeStyles,MergeTheme}from"../theme";import{ThemeContext}from"./ThemeContext";import{jsx as _jsx}from"react/jsx-runtime";export var ThemeProvider=t0=>{var $=_c(14);var initialTheme=t0.theme,initialStyles=t0.styles,initialIcons=t0.icons,children=t0.children;var t1;if($[0]!==initialTheme){t1=MergeTheme(initialTheme);$[0]=initialTheme;$[1]=t1;}else{t1=$[1];}var theme=t1;var t2;if($[2]!==initialStyles||$[3]!==theme){t2=MergeStyles(createDefaultStyles(theme),initialStyles);$[2]=initialStyles;$[3]=theme;$[4]=t2;}else{t2=$[4];}var styles=t2;var t3;if($[5]!==initialIcons){t3=MergeIcons(initialIcons);$[5]=initialIcons;$[6]=t3;}else{t3=$[6];}var icons=t3;var t4;if($[7]!==icons||$[8]!==styles||$[9]!==theme){t4={theme,styles,icons};$[7]=icons;$[8]=styles;$[9]=theme;$[10]=t4;}else{t4=$[10];}var value=t4;var t5;if($[11]!==children||$[12]!==value){t5=_jsx(ThemeContext.Provider,{value:value,children:children});$[11]=children;$[12]=value;$[13]=t5;}else{t5=$[13];}return t5;};
@@ -1 +1 @@
1
- import{Octicons,Stars}from"../icons";export var createIcons=config=>config;export var DefaultIcons=createIcons({inputScaffold:{error:{iconSet:Octicons,iconName:"exclamation"}},counterInput:{decrease:{iconSet:Octicons,iconName:"dash"},increase:{iconSet:Octicons,iconName:"plus"}},numberInput:{number:{iconSet:Octicons,iconName:"infinity"},fraction:{iconSet:Octicons,iconName:"number"},range:{iconSet:Octicons,iconName:"arrow-both"}},selectionInput:{showOptions:{iconSet:Octicons,iconName:"chevron-down"}},timeInput:{time:{iconSet:Octicons,iconName:"clock"}},toggleInput:{outline:{iconSet:Octicons,iconName:"circle"}},rating:{empty:{iconSet:Stars,iconName:"empty"},full:{iconSet:Stars,iconName:"full"},half:{iconSet:Stars,iconName:"half"}},ratingInput:{empty:{iconSet:Stars,iconName:"empty"},full:{iconSet:Stars,iconName:"full"},half:{iconSet:Stars,iconName:"half"}}});
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{UiIcons}from"../icons";export var createIcons=config=>config;export var DefaultIcons=createIcons({inputScaffold:{error:{iconSet:UiIcons,iconName:"exclamation"}},counterInput:{decrease:{iconSet:UiIcons,iconName:"dash"},increase:{iconSet:UiIcons,iconName:"plus"}},numberInput:{number:{iconSet:UiIcons,iconName:"infinity"},fraction:{iconSet:UiIcons,iconName:"number"},range:{iconSet:UiIcons,iconName:"arrow-both"}},selectionInput:{showOptions:{iconSet:UiIcons,iconName:"chevron-down"}},timeInput:{time:{iconSet:UiIcons,iconName:"clock"}},toggleInput:{outline:{iconSet:UiIcons,iconName:"circle"}},rating:{empty:{iconSet:UiIcons,iconName:"star-empty"},full:{iconSet:UiIcons,iconName:"star-full"},half:{iconSet:UiIcons,iconName:"star-half"}},ratingInput:{empty:{iconSet:UiIcons,iconName:"star-empty"},full:{iconSet:UiIcons,iconName:"star-full"},half:{iconSet:UiIcons,iconName:"star-half"}}});export var MergeIcons=overrides=>{if(!overrides)return DefaultIcons;var merged={...DefaultIcons};for(var _ref of Object.entries(overrides)){var _ref2=_slicedToArray(_ref,2);var category=_ref2[0];var slots=_ref2[1];if(!slots)continue;merged[category]={...merged[category],...slots};}return merged;};
@@ -1 +1 @@
1
- export{createIcons,DefaultIcons}from"./icons";export{createDefaultStyles,MergeStyles}from"./styles";export{DefaultTheme,MergeTheme}from"./theme";
1
+ export{createIcons,DefaultIcons,MergeIcons}from"./icons";export{createDefaultStyles,MergeStyles}from"./styles";export{DefaultTheme,MergeTheme}from"./theme";
@@ -1 +1 @@
1
- import merge from"lodash.merge";export var createDefaultStyles=({border,color,font,spacing})=>{var interactiveText={color:{enabled:color.primary,pressed:color.primaryLight,disabled:color.primaryLight}};var highlightedText={highlightedWeight:{body:"800",caption:"800",display:"800",heading:"800",label:"800",title:"800"}};var iconBase={color:color.textPrimary,size:20};var icon={color:color.textPrimary,size:{small:16,medium:iconBase.size,large:24}};var interactiveIcon={size:iconBase.size,color:{enabled:color.primary,pressed:color.primaryLight,disabled:color.primaryLight}};var action={label:{color:{primary:{enabled:color.primary,pressed:color.primaryLight,disabled:color.primaryLight},secondary:{enabled:color.secondary,pressed:color.secondaryHighlight,disabled:color.secondaryHighlight},destructive:{enabled:color.destructive,pressed:color.destructiveHighlight,disabled:color.destructiveHighlight}}}};var iconActionBase={gap:spacing.small,icon:interactiveText,text:interactiveText};var iconAction={icon:action.label,text:action.label};var buttonBase={height:42,width:{medium:"50%"},borderRadius:border.radius.regular,paddingHorizontal:spacing.medium,paddingVertical:spacing.small,backgroundColor:{enabled:color.primary,pressed:color.primaryLight,disabled:color.primaryLight}};var button={container:{borderRadius:buttonBase.borderRadius,color:{secondary:{enabled:color.textOnPrimary,disabled:color.textOnPrimary,pressed:color.textOnPrimary},primary:{enabled:color.primary,disabled:color.primaryLight,pressed:color.primaryLight},destructive:{enabled:color.textOnDestructive,disabled:color.textOnDestructive,pressed:color.textOnDestructive}}},label:{color:{secondary:{enabled:color.primary,disabled:color.primaryLight,pressed:color.primaryLight},primary:{enabled:color.textOnPrimary,disabled:color.textOnPrimary,pressed:color.textOnPrimary},destructive:{enabled:color.destructive,disabled:color.destructiveHighlight,pressed:color.destructiveHighlight}}}};var iconButtonBase={container:{padding:4,size:48,backgroundColor:{enabled:color.inputBackground,disabled:color.inputBackgroundDisabled,pressed:color.inputBackground},borderRadius:"50%"},icon:interactiveIcon};var iconButton={container:{size:icon.size.medium+spacing.small,backgroundColor:{primary:{enabled:color.background,disabled:color.backgroundHighlight,pressed:color.backgroundHighlight},secondary:{enabled:color.background,disabled:color.backgroundHighlight,pressed:color.backgroundHighlight},destructive:{enabled:color.destructive,disabled:color.destructiveHighlight,pressed:color.destructiveHighlight}}},icon:{color:{...action.label.color,destructive:{enabled:color.textOnDestructive,pressed:color.textOnDestructive,disabled:color.textOnDestructive}}}};var inputBase={container:{height:{regular:48,compact:36},borderRadius:border.radius.regular,padding:spacing.small,backgroundColor:{enabled:color.inputBackground,disabled:color.inputBackgroundDisabled}},text:{fontSize:font.size.regular,fontFamily:font.family.sans,color:{enabled:color.textPrimary,disabled:color.textSecondary},placeholderColor:color.textSecondary}};var inputScaffold={gap:spacing.tiny,mandatoryIndicator:{color:color.primaryDark},helpText:{gap:spacing.tiny}};var inputAction={icon:{color:action.label.color.secondary}};var selectionInput={container:{backgroundColor:{...inputBase.container.backgroundColor,pressed:color.backgroundHighlight}},selectionContainer:{gap:spacing.tiny},icon:inputAction.icon};var swipeAction={width:75};var floatingContainer={parentMargin:spacing.small};var menu={backgroundColor:color.inputBackground,borderRadius:inputBase.container.borderRadius,gap:spacing.tiny,padding:spacing.tiny,parentMargin:spacing.medium};var menuItem={paddingHorizontal:inputBase.container.padding-menu.padding,paddingVertical:spacing.small+spacing.tiny,borderRadius:menu.borderRadius/2};var rating={gap:spacing.tiny,icon:{color:{empty:color.primaryLight,half:color.primary,full:color.primary},size:icon.size.large}};var alertIndicator={size:28,borderRadius:14,backgroundColor:{primary:color.primary,secondary:color.secondary},color:{primary:color.textOnPrimary,secondary:color.textOnSecondary}};var tag={borderRadius:border.radius.loose,internalSpacing:spacing.small,padding:spacing.small};var styles={interactiveText,iconBase,icon,interactiveIcon,action,iconActionBase,iconAction,buttonBase,button,iconButtonBase,iconButton,inputBase,inputScaffold,inputAction,selectionInput,ratingInput:null,swipeAction,floatingContainer,menu,menuItem,rating,alertIndicator,tag,common:{action:{fontSize:{...font.size}}},text:{color:color.textPrimary,font:{caption:{family:font.family.sans,weight:"200",size:font.size.small},body:{family:font.family.sans,weight:"400",size:font.size.regular},label:{family:font.family.sans,weight:"500",size:font.size.emphasised},heading:{family:font.family.sans,weight:"600",size:font.size.large},title:{family:font.family.sans,weight:"800",size:font.size.xLarge},display:{family:font.family.sans,weight:"800",size:font.size.xxLarge}}},highlightedText,dropdownInput:{panelGap:4},toggleInput:{indicator:{size:{compact:icon.size.small,regular:icon.size.medium},color:{selected:action.label.color,deselected:{enabled:color.border,disabled:color.border,pressed:color.border}}},label:{gap:spacing.small}},listItem:{spacingMargin:12,internalSpacing:16,borderRadius:border.radius.loose,contentItemSpacing:8,contentItemTopMargin:4},avatar:{size:{large:80,regular:40,small:32},initials:{fontWeight:"600",fontSize:{large:font.size.xxLarge,regular:font.size.xLarge,small:font.size.large}},label:{fontSize:font.size.tiny,fontWeight:"500"},colors:[{background:color.red,foreground:color.textPrimary},{background:color.orange,foreground:color.textPrimary},{background:color.green,foreground:color.textPrimary},{background:color.blue,foreground:color.textPrimary},{background:color.purple,foreground:color.textPrimary}]},toast:{horizontalInset:spacing.pageHorizontal+spacing.medium,bottomInset:100}};return styles;};export var MergeStyles=(styles,overrides={})=>merge({},styles,overrides);
1
+ import merge from"lodash.merge";import{defaultActionStyles}from"../components/action/Action.styles";import{defaultIconActionStyles}from"../components/action/IconAction.styles";import{defaultIconActionBaseStyles}from"../components/action/IconActionBase.styles";import{defaultAlertIndicatorStyles}from"../components/alert/AlertIndicator.styles";import{defaultAvatarStyles}from"../components/avatar/Avatar.styles";import{defaultButtonStyles}from"../components/button/Button.styles";import{defaultButtonBaseStyles}from"../components/button/ButtonBase.styles";import{defaultIconButtonStyles}from"../components/button/IconButton.styles";import{defaultIconButtonBaseStyles}from"../components/button/IconButtonBase.styles";import{defaultFloatingContainerStyles}from"../components/container/FloatingContainer.styles";import{defaultIconStyles}from"../components/icon/Icon.styles";import{defaultIconBaseStyles}from"../components/icon/IconBase.styles";import{defaultInteractiveIconStyles}from"../components/icon/InteractiveIcon.styles";import{defaultDropdownInputStyles}from"../components/input/DropdownInput.styles";import{defaultInputActionStyles}from"../components/input/InputAction.styles";import{defaultInputBaseStyles}from"../components/input/InputBase.styles";import{defaultInputScaffoldStyles}from"../components/input/InputScaffold.styles";import{defaultSelectionInputStyles}from"../components/input/SelectionInput.styles";import{defaultToggleInputStyles}from"../components/input/ToggleInput.styles";import{defaultListItemStyles}from"../components/listItem/ListItem.styles";import{defaultMenuStyles}from"../components/menu/Menu.styles";import{defaultMenuItemStyles}from"../components/menu/MenuItem.styles";import{defaultRatingStyles}from"../components/rating/Rating.styles";import{defaultSwipeActionStyles}from"../components/swipe/SwipeAction.styles";import{defaultTagStyles}from"../components/tag/Tag.styles";import{defaultHighlightedTextStyles}from"../components/text/HighlightedText.styles";import{defaultInteractiveTextStyles}from"../components/text/InteractiveText.styles";import{defaultTextStyles}from"../components/text/Text.styles";import{defaultToastStyles}from"../components/toast/Toast.styles";export var createDefaultStyles=theme=>({interactiveText:defaultInteractiveTextStyles(theme),highlightedText:defaultHighlightedTextStyles(),iconBase:defaultIconBaseStyles(theme),icon:defaultIconStyles(theme),interactiveIcon:defaultInteractiveIconStyles(theme),action:defaultActionStyles(theme),iconActionBase:defaultIconActionBaseStyles(theme),iconAction:defaultIconActionStyles(theme),buttonBase:defaultButtonBaseStyles(theme),button:defaultButtonStyles(theme),iconButtonBase:defaultIconButtonBaseStyles(theme),iconButton:defaultIconButtonStyles(theme),inputBase:defaultInputBaseStyles(theme),inputScaffold:defaultInputScaffoldStyles(theme),inputAction:defaultInputActionStyles(theme),selectionInput:defaultSelectionInputStyles(theme),ratingInput:null,swipeAction:defaultSwipeActionStyles(theme),floatingContainer:defaultFloatingContainerStyles(theme),menu:defaultMenuStyles(theme),menuItem:defaultMenuItemStyles(theme),rating:defaultRatingStyles(theme),alertIndicator:defaultAlertIndicatorStyles(theme),tag:defaultTagStyles(theme),common:{action:{fontSize:{...theme.font.size}}},text:defaultTextStyles(theme),dropdownInput:defaultDropdownInputStyles(theme),toggleInput:defaultToggleInputStyles(theme),listItem:defaultListItemStyles(theme),avatar:defaultAvatarStyles(theme),toast:defaultToastStyles(theme)});export var MergeStyles=(styles,overrides={})=>merge({},styles,overrides);export var MergeStyleSlice=(base,override)=>override===undefined?base:merge({},base,override);
@@ -1 +1 @@
1
- export var DefaultTheme={font:{family:{sans:"Helvetica",mono:"Helvetica"},size:{tiny:12,small:14,regular:16,emphasised:18,large:20,xLarge:24,xxLarge:32}},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 var MergeTheme=(first,second)=>({...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
+ export var DefaultTheme={font:{family:{sans:"Helvetica",mono:"Helvetica"},size:{tiny:10,small:12,regular:14,large:16,xLarge:20,xxLarge:28}},color:{primary:"#FF4242",primaryDark:"#ff8585",primaryLight:"#ffbdbd",secondary:"#12263A",secondaryHighlight:"#718191",secondaryDisabled:"#B5EAD7",tertiary:"#06bcc1",destructive:"#ff382e",destructiveHighlight:"#ff9e96",light:"#F4EDEA",white:"#ffffff",black:"#000000",red:"#FF9AA2",orange:"#FFDAC1",green:"#E2F0CB",blue:"#B5EAD7",purple:"#C7CEEA",textPrimary:"#12263A",textSecondary:"#22476D",textHighlight:"#30669c",textInverted:"#F4EDEA",textDisabled:"#B5EAD7",textOnPrimary:"#F4EDEA",textOnSecondary:"#F4EDEA",textOnDestructive:"#F4EDEA",background:"#F4EDEA",backgroundHighlight:"#f7f3f2",foreground:"#ffffff",foregroundHighlight:"#B5EAD7",backgroundOverlay:"#000",shadow:"#555",border:"#E2E8F0",inputBackground:"#e4d8d4",inputBackgroundDisabled:"#f0e9e2ff",inputText:"#12263A",pressOverlay:"rgba(0, 0, 0, 0.1)",alert:"#d63333",error:"#d63333",success:"#4ed633",warning:"#f5c61d"},spacing:{screenContentTop:0,pageHorizontal:16,pageBottom:80,pageTop:16,navigationActionHorizontal:0,large:24,medium:16,small:8,tiny:4},border:{radius:{tight:4,regular:8,loose:16},width:{thick:4,regular:2,thin:1}}};export function MergeTheme(first,second){return{...DefaultTheme,...first,...second,color:{...DefaultTheme.color,...first?.color,...second?.color},font:{...DefaultTheme.font,...first?.font,...second?.font,family:{...DefaultTheme.font.family,...first?.font?.family,...second?.font?.family},size:{...DefaultTheme.font.size,...first?.font?.size,...second?.font?.size}},spacing:{...DefaultTheme.spacing,...first?.spacing,...second?.spacing},border:{...DefaultTheme.border,...first?.border,...second?.border,radius:{...DefaultTheme.border.radius,...first?.border?.radius,...second?.border?.radius},width:{...DefaultTheme.border.width,...first?.border?.width,...second?.border?.width}}};}
@@ -1,2 +1,3 @@
1
+ export { MAX_FONT_SIZE_MULTIPLIER } from "./typography";
1
2
  export type { ValueItem, ValueItemComplex, ValueItemSimple } from "./valueItem";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AACxD,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Upper bound applied to OS font scaling so dynamic type cannot grow text
3
+ * (and therefore fixed-height controls) without limit.
4
+ */
5
+ export declare const MAX_FONT_SIZE_MULTIPLIER = 1.2;
6
+ //# sourceMappingURL=typography.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/common/typography.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,wBAAwB,MAAM,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Theme } from "../../theme/theme";
2
+ import type { ActionStyles } from "./Action";
3
+ export declare const defaultActionStyles: ({ color }: Theme) => ActionStyles;
4
+ //# sourceMappingURL=Action.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Action.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/action/Action.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,mBAAmB,GAAI,WAAW,KAAK,KAAG,YAoBrD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { DeepPartial } from "@reillymc/es-utils";
2
- import { type InteractiveIconStyles } from "../icon";
2
+ import type { IconComponentProps, InteractiveIconStyles } from "../icon";
3
3
  import type { InteractiveTextStyles } from "../text";
4
4
  import { type IconActionBaseProps } from "./IconActionBase";
5
5
  export type IconActionVariant = "primary" | "secondary" | "destructive";
@@ -19,5 +19,5 @@ export interface IconActionProps extends Omit<IconActionBaseProps, "style"> {
19
19
  variant?: IconActionVariant;
20
20
  style?: DeepPartial<IconActionStyles>;
21
21
  }
22
- export declare const IconAction: <G extends string>(props: IconActionProps & import("..").IconComponentProps<G>) => import("react").ReactNode;
22
+ export declare const IconAction: <G extends string>({ variant, style, ...props }: IconActionProps & IconComponentProps<G>) => import("react").JSX.Element;
23
23
  //# sourceMappingURL=IconAction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconAction.d.ts","sourceRoot":"","sources":["../../../../src/components/action/IconAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAE,KAAK,qBAAqB,EAAY,MAAM,SAAS,CAAC;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5E,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,WAAW,GAAG,aAAa,CAAC;AAExE,MAAM,MAAM,gBAAgB,GAAG;IAC3B,IAAI,EAAE;QACF,KAAK,EAAE;aACF,OAAO,IAAI,iBAAiB,GAAG,qBAAqB,CAAC,OAAO,CAAC;SACjE,CAAC;KACL,CAAC;IACF,IAAI,EAAE;QACF,KAAK,EAAE;aACF,OAAO,IAAI,iBAAiB,GAAG,qBAAqB,CAAC,OAAO,CAAC;SACjE,CAAC;KACL,CAAC;CACL,CAAC;AAEF,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC;IACvE,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,KAAK,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,UAAU,8GActB,CAAC"}
1
+ {"version":3,"file":"IconAction.d.ts","sourceRoot":"","sources":["../../../../src/components/action/IconAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5E,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,WAAW,GAAG,aAAa,CAAC;AAExE,MAAM,MAAM,gBAAgB,GAAG;IAC3B,IAAI,EAAE;QACF,KAAK,EAAE;aACF,OAAO,IAAI,iBAAiB,GAAG,qBAAqB,CAAC,OAAO,CAAC;SACjE,CAAC;KACL,CAAC;IACF,IAAI,EAAE;QACF,KAAK,EAAE;aACF,OAAO,IAAI,iBAAiB,GAAG,qBAAqB,CAAC,OAAO,CAAC;SACjE,CAAC;KACL,CAAC;CACL,CAAC;AAEF,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC;IACvE,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,KAAK,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,MAAM,EAAE,8BAI1C,eAAe,GAAG,kBAAkB,CAAC,CAAC,CAAC,gCAYzC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Theme } from "../../theme/theme";
2
+ import type { IconActionStyles } from "./IconAction";
3
+ export declare const defaultIconActionStyles: (theme: Theme) => IconActionStyles;
4
+ //# sourceMappingURL=IconAction.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconAction.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/action/IconAction.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,eAAO,MAAM,uBAAuB,GAAI,OAAO,KAAK,KAAG,gBAOtD,CAAC"}