@reillymc/react-native-components 0.11.5 → 0.11.7

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 (43) hide show
  1. package/THIRD_PARTY_NOTICES.md +38 -0
  2. package/lib/components/input/RatingInput.js +1 -1
  3. package/lib/components/toast/Toast.js +1 -1
  4. package/lib/components/toast/Toast.styles.js +1 -1
  5. package/lib/hooks/useTheme.js +1 -1
  6. package/lib/hooks/useThemedStyles.js +1 -1
  7. package/lib/providers/ThemeContext.js +1 -1
  8. package/lib/providers/ThemeProvider.js +1 -1
  9. package/lib/theme/index.js +1 -1
  10. package/lib/theme/styles.js +1 -1
  11. package/lib/theme/theme.js +1 -1
  12. package/lib/types/components/toast/Toast.d.ts +6 -3
  13. package/lib/types/components/toast/Toast.d.ts.map +1 -1
  14. package/lib/types/components/toast/Toast.styles.d.ts +1 -1
  15. package/lib/types/components/toast/Toast.styles.d.ts.map +1 -1
  16. package/lib/types/hooks/useTheme.d.ts +6 -1
  17. package/lib/types/hooks/useTheme.d.ts.map +1 -1
  18. package/lib/types/hooks/useThemedStyles.d.ts +4 -3
  19. package/lib/types/hooks/useThemedStyles.d.ts.map +1 -1
  20. package/lib/types/icons/ui/ArrowBoth.d.ts.map +1 -1
  21. package/lib/types/icons/ui/ChevronDown.d.ts.map +1 -1
  22. package/lib/types/icons/ui/Circle.d.ts.map +1 -1
  23. package/lib/types/icons/ui/Clock.d.ts.map +1 -1
  24. package/lib/types/icons/ui/Dash.d.ts.map +1 -1
  25. package/lib/types/icons/ui/Exclamation.d.ts.map +1 -1
  26. package/lib/types/icons/ui/InfinityGlyph.d.ts.map +1 -1
  27. package/lib/types/icons/ui/NumberGlyph.d.ts.map +1 -1
  28. package/lib/types/icons/ui/Plus.d.ts.map +1 -1
  29. package/lib/types/icons/ui/StarBorder.d.ts.map +1 -1
  30. package/lib/types/icons/ui/StarFull.d.ts.map +1 -1
  31. package/lib/types/icons/ui/StarHalf.d.ts.map +1 -1
  32. package/lib/types/icons/ui/index.d.ts.map +1 -1
  33. package/lib/types/providers/ThemeContext.d.ts +4 -4
  34. package/lib/types/providers/ThemeContext.d.ts.map +1 -1
  35. package/lib/types/providers/ThemeProvider.d.ts +9 -6
  36. package/lib/types/providers/ThemeProvider.d.ts.map +1 -1
  37. package/lib/types/theme/index.d.ts +3 -3
  38. package/lib/types/theme/index.d.ts.map +1 -1
  39. package/lib/types/theme/styles.d.ts +5 -0
  40. package/lib/types/theme/styles.d.ts.map +1 -1
  41. package/lib/types/theme/theme.d.ts +6 -7
  42. package/lib/types/theme/theme.d.ts.map +1 -1
  43. package/package.json +3 -2
@@ -0,0 +1,38 @@
1
+ # Third-party notices
2
+
3
+ This project bundles glyph path data derived from third-party icon sets. The
4
+ licenses and copyright notices for that artwork are reproduced below, as
5
+ required by their terms. They are independent of this project's own MIT license.
6
+
7
+ ---
8
+
9
+ ## GitHub Octicons
10
+
11
+ - Source: https://github.com/primer/octicons
12
+ - Package/version: `@primer/octicons` v19.38.0
13
+ - Vendored in: every glyph under `src/icons/ui/`.
14
+ - License: MIT
15
+
16
+ ```
17
+ MIT License
18
+
19
+ Copyright (c) 2026 GitHub Inc.
20
+
21
+ Permission is hereby granted, free of charge, to any person obtaining a copy
22
+ of this software and associated documentation files (the "Software"), to deal
23
+ in the Software without restriction, including without limitation the rights
24
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
25
+ copies of the Software, and to permit persons to whom the Software is
26
+ furnished to do so, subject to the following conditions:
27
+
28
+ The above copyright notice and this permission notice shall be included in all
29
+ copies or substantial portions of the Software.
30
+
31
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
36
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37
+ SOFTWARE.
38
+ ```
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{useEffect,useEffectEvent,useState}from"react";import{StyleSheet,View}from"react-native";import{Gesture,GestureDetector}from"react-native-gesture-handler";import Animated,{Easing,useAnimatedStyle,useSharedValue,withTiming}from"react-native-reanimated";import{scheduleOnRN}from"react-native-worklets";import{useTheme,useThemedStyles}from"../../hooks";import{IconBase}from"../icon";import{ratingToValue,valueToRating}from"../rating";import{InputScaffold}from"./InputScaffold";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";var animationConfig={easing:Easing.elastic(2),duration:300,scale:1.2};var _worklet_14202875755172_init_data={code:"function RatingInputTsx1(x,width,max){if(!width)return 0;return Math.max(0,Math.min(Math.round(x/width*max*2+0.2)/2,max));}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx1\",\"x\",\"width\",\"max\",\"Math\",\"min\",\"round\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AAkDwB,QAAC,CAAAA,eAAqCA,CAAAC,CAAK,CAAAC,KAAA,CAAAC,GAAA,EAG/D,GAAI,CAACD,KAAK,CAAE,MAAO,EAAC,CAEpB,MAAO,CAAAE,IAAI,CAACD,GAAG,CACX,CAAC,CACDC,IAAI,CAACC,GAAG,CAACD,IAAI,CAACE,KAAK,CAAEL,CAAC,CAAGC,KAAK,CAAIC,GAAG,CAAG,CAAC,CAAG,GAAG,CAAC,CAAG,CAAC,CAAEA,GAAG,CAC7D,CAAC,CACL\",\"ignoreList\":[]}"};var calculateRating=function RatingInputTsx1Factory({_worklet_14202875755172_init_data}){var _e=[new global.Error(),1,-27];var RatingInputTsx1=function(x,width,max){if(!width)return 0;return Math.max(0,Math.min(Math.round(x/width*max*2+0.2)/2,max));};RatingInputTsx1.__closure={};RatingInputTsx1.__workletHash=14202875755172;RatingInputTsx1.__pluginVersion="0.8.3";RatingInputTsx1.__initData=_worklet_14202875755172_init_data;RatingInputTsx1.__stackDetails=_e;return RatingInputTsx1;}({_worklet_14202875755172_init_data});var computeIconSize=(width,padding,gap,height,max)=>{if(!width||width<=0)return 0;var maxSizeForWidth=Math.floor((width-padding-gap*(max-1))/max);var maxSizeForHeight=height-padding-gap*2;return Math.max(0,Math.min(maxSizeForWidth,maxSizeForHeight));};var _worklet_15023595213969_init_data={code:"function RatingInputTsx2(){const{interacting}=this.__closure;interacting.value=0;}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx2\",\"interacting\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AAkIoB,SAAAA,eAAMA,CAAA,QAAAC,WAAA,OAAAC,SAAA,CACdD,WAAW,CAACE,KAAK,CAAG,CAAC,CACzB\",\"ignoreList\":[]}"};var _worklet_6867206115268_init_data={code:"function RatingInputTsx3(e_1){const{calculateRating,widthShared,max,ratingShared,scheduleOnRN,commitRating}=this.__closure;const nextRating_0=calculateRating(e_1.x,widthShared.value,max);ratingShared.value=nextRating_0;scheduleOnRN(commitRating,nextRating_0);}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx3\",\"e_1\",\"calculateRating\",\"widthShared\",\"max\",\"ratingShared\",\"scheduleOnRN\",\"commitRating\",\"__closure\",\"nextRating_0\",\"x\",\"value\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AA6HgB,SAAAA,eAAMA,CAAAC,GAAA,QAAAC,eAAA,CAAAC,WAAA,CAAAC,GAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,YAAA,OAAAC,SAAA,CACV,KAAM,CAAAC,YAAU,CAAGP,eAAe,CAACD,GAAC,CAACS,CAAC,CAAEP,WAAW,CAACQ,KAAK,CAAEP,GAAG,CAAC,CAC/DC,YAAY,CAACM,KAAK,CAAGF,YAAU,CAC/BH,YAAY,CAACC,YAAY,CAAEE,YAAU,CAAC,CAC1C\",\"ignoreList\":[]}"};var _worklet_9555228706233_init_data={code:"function RatingInputTsx4(e_0){const{ratingShared,calculateRating,widthShared,max}=this.__closure;ratingShared.value=calculateRating(e_0.x,widthShared.value,max);}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx4\",\"e_0\",\"ratingShared\",\"calculateRating\",\"widthShared\",\"max\",\"__closure\",\"value\",\"x\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AA0HmB,SAAAA,eAAMA,CAAAC,GAAA,QAAAC,YAAA,CAAAC,eAAA,CAAAC,WAAA,CAAAC,GAAA,OAAAC,SAAA,CACbJ,YAAY,CAACK,KAAK,CAAGJ,eAAe,CAACF,GAAC,CAACO,CAAC,CAAEJ,WAAW,CAACG,KAAK,CAAEF,GAAG,CAAC,CACrE\",\"ignoreList\":[]}"};var _worklet_3067607389094_init_data={code:"function RatingInputTsx5(e){const{interacting,ratingShared,calculateRating,widthShared,max}=this.__closure;interacting.value=1;ratingShared.value=calculateRating(e.x,widthShared.value,max);}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx5\",\"e\",\"interacting\",\"ratingShared\",\"calculateRating\",\"widthShared\",\"max\",\"__closure\",\"value\",\"x\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AAsHkB,QAAC,CAAAA,eAAKA,CAAAC,CAAA,QAAAC,WAAA,CAAAC,YAAA,CAAAC,eAAA,CAAAC,WAAA,CAAAC,GAAA,OAAAC,SAAA,CACZL,WAAW,CAACM,KAAK,CAAG,CAAC,CACrBL,YAAY,CAACK,KAAK,CAAGJ,eAAe,CAACH,CAAC,CAACQ,CAAC,CAAEJ,WAAW,CAACG,KAAK,CAAEF,GAAG,CAAC,CACrE\",\"ignoreList\":[]}"};var _worklet_13451982528898_init_data={code:"function RatingInputTsx6(e_2){const{scheduleOnRN,commitRating,calculateRating,widthShared,max}=this.__closure;scheduleOnRN(commitRating,calculateRating(e_2.x,widthShared.value,max));}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx6\",\"e_2\",\"scheduleOnRN\",\"commitRating\",\"calculateRating\",\"widthShared\",\"max\",\"__closure\",\"x\",\"value\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AAsIqC,SAAAA,eAAMA,CAAAC,GAAA,QAAAC,YAAA,CAAAC,YAAA,CAAAC,eAAA,CAAAC,WAAA,CAAAC,GAAA,OAAAC,SAAA,CACnCL,YAAY,CACRC,YAAY,CACZC,eAAe,CAACH,GAAC,CAACO,CAAC,CAAEH,WAAW,CAACI,KAAK,CAAEH,GAAG,CAC/C,CAAC,CACL\",\"ignoreList\":[]}"};export var RatingInput=({value=0,max=5,disabled:disabledProp,variant="regular",scale,onChange,...props})=>{var disabled=disabledProp||!onChange;var _useTheme=useTheme(),theme=_useTheme.theme,_useTheme$styles=_useTheme.styles,inputBase=_useTheme$styles.inputBase,rating=_useTheme$styles.rating;var _useThemedStyles=useThemedStyles("ratingInput",createStyles,{props:{disabled,variant}}),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],icons=_useThemedStyles2[1].icons;var scaledRating=scale?valueToRating(value,max,scale):value;var _useState=useState(),_useState2=_slicedToArray(_useState,2),width=_useState2[0],setWidth=_useState2[1];var widthShared=useSharedValue(0);var ratingShared=useSharedValue(scaledRating);var interacting=useSharedValue(0);useEffect(()=>{ratingShared.value=scaledRating;},[scaledRating,ratingShared]);var commitRating=useEffectEvent(nextRating=>{if(disabled||nextRating===scaledRating)return;onChange?.(scale?ratingToValue(nextRating,max,scale):nextRating);});var pan=Gesture.Pan().enabled(!disabled).onBegin(function RatingInputTsx5Factory({_worklet_3067607389094_init_data,interacting,ratingShared,calculateRating,widthShared,max}){var _e=[new global.Error(),-6,-27];var RatingInputTsx5=function(e){interacting.value=1;ratingShared.value=calculateRating(e.x,widthShared.value,max);};RatingInputTsx5.__closure={interacting,ratingShared,calculateRating,widthShared,max};RatingInputTsx5.__workletHash=3067607389094;RatingInputTsx5.__pluginVersion="0.8.3";RatingInputTsx5.__initData=_worklet_3067607389094_init_data;RatingInputTsx5.__stackDetails=_e;return RatingInputTsx5;}({_worklet_3067607389094_init_data,interacting,ratingShared,calculateRating,widthShared,max})).onUpdate(function RatingInputTsx4Factory({_worklet_9555228706233_init_data,ratingShared,calculateRating,widthShared,max}){var _e=[new global.Error(),-5,-27];var RatingInputTsx4=function(e_0){ratingShared.value=calculateRating(e_0.x,widthShared.value,max);};RatingInputTsx4.__closure={ratingShared,calculateRating,widthShared,max};RatingInputTsx4.__workletHash=9555228706233;RatingInputTsx4.__pluginVersion="0.8.3";RatingInputTsx4.__initData=_worklet_9555228706233_init_data;RatingInputTsx4.__stackDetails=_e;return RatingInputTsx4;}({_worklet_9555228706233_init_data,ratingShared,calculateRating,widthShared,max})).onEnd(function RatingInputTsx3Factory({_worklet_6867206115268_init_data,calculateRating,widthShared,max,ratingShared,scheduleOnRN,commitRating}){var _e=[new global.Error(),-7,-27];var RatingInputTsx3=function(e_1){var nextRating_0=calculateRating(e_1.x,widthShared.value,max);ratingShared.value=nextRating_0;scheduleOnRN(commitRating,nextRating_0);};RatingInputTsx3.__closure={calculateRating,widthShared,max,ratingShared,scheduleOnRN,commitRating};RatingInputTsx3.__workletHash=6867206115268;RatingInputTsx3.__pluginVersion="0.8.3";RatingInputTsx3.__initData=_worklet_6867206115268_init_data;RatingInputTsx3.__stackDetails=_e;return RatingInputTsx3;}({_worklet_6867206115268_init_data,calculateRating,widthShared,max,ratingShared,scheduleOnRN,commitRating})).onFinalize(function RatingInputTsx2Factory({_worklet_15023595213969_init_data,interacting}){var _e=[new global.Error(),-2,-27];var RatingInputTsx2=function(){interacting.value=0;};RatingInputTsx2.__closure={interacting};RatingInputTsx2.__workletHash=15023595213969;RatingInputTsx2.__pluginVersion="0.8.3";RatingInputTsx2.__initData=_worklet_15023595213969_init_data;RatingInputTsx2.__stackDetails=_e;return RatingInputTsx2;}({_worklet_15023595213969_init_data,interacting}));var tap=Gesture.Tap().onEnd(function RatingInputTsx6Factory({_worklet_13451982528898_init_data,scheduleOnRN,commitRating,calculateRating,widthShared,max}){var _e=[new global.Error(),-6,-27];var RatingInputTsx6=function(e_2){scheduleOnRN(commitRating,calculateRating(e_2.x,widthShared.value,max));};RatingInputTsx6.__closure={scheduleOnRN,commitRating,calculateRating,widthShared,max};RatingInputTsx6.__workletHash=13451982528898;RatingInputTsx6.__pluginVersion="0.8.3";RatingInputTsx6.__initData=_worklet_13451982528898_init_data;RatingInputTsx6.__stackDetails=_e;return RatingInputTsx6;}({_worklet_13451982528898_init_data,scheduleOnRN,commitRating,calculateRating,widthShared,max}));var gesture=Gesture.Exclusive(pan,tap);var ratingIconSize=computeIconSize(width,inputBase.container.padding,theme.spacing.tiny,inputBase.container.height[variant],max);return _jsx(InputScaffold,{...props,children:_jsx(GestureDetector,{gesture:gesture,children:_jsx(View,{style:styles.container,onLayout:e_3=>{var nextWidth=e_3.nativeEvent.layout.width;if(nextWidth>0){setWidth(nextWidth);widthShared.value=nextWidth;}},children:Array.from({length:max},(_,index)=>_jsx(AnimatedStar,{index:index,rating:ratingShared,size:ratingIconSize,interacting:interacting,empty:_jsx(IconBase,{...icons.empty,size:ratingIconSize,color:rating.icon.color.empty}),half:_jsx(IconBase,{...icons.half,size:ratingIconSize,color:rating.icon.color.half}),full:_jsx(IconBase,{...icons.full,size:ratingIconSize,color:rating.icon.color.full})},index))})})});};var _worklet_1114956076381_init_data={code:"function RatingInputTsx7(){const{rating,index}=this.__closure;return{opacity:rating.value>=index+0.5?0:1};}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx7\",\"rating\",\"index\",\"__closure\",\"opacity\",\"value\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AA4NwC,SAAAA,gBAAA,QAAAC,MAAA,CAAAC,KAAA,OAAAC,SAAA,OAAO,CAAAC,OAAA,CAC9BH,MAAM,CAAAI,KAAM,EAAIH,KAAK,CAAG,GAAW,CAAnC,CAAmC,CAAnC,CACb,CAAC\",\"ignoreList\":[]}"};var _worklet_8537619109224_init_data={code:"function RatingInputTsx8(){const{rating,index}=this.__closure;return{opacity:rating.value>=index+0.5&&rating.value<index+1?1:0};}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx8\",\"rating\",\"index\",\"__closure\",\"opacity\",\"value\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AA+NuC,SAAAA,gBAAA,QAAAC,MAAA,CAAAC,KAAA,OAAAC,SAAA,OAAO,CAAAC,OAAA,CAElCH,MAAM,CAAAI,KAAM,EAAIH,KAAK,CAAG,GAA+B,EAAxBD,MAAM,CAAAI,KAAM,CAAGH,KAAK,CAAG,CAAS,CAA/D,CAA+D,CAA/D,CACR,CAAC\",\"ignoreList\":[]}"};var _worklet_652360677641_init_data={code:"function RatingInputTsx9(){const{rating,index}=this.__closure;return{opacity:rating.value>=index+1?1:0};}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx9\",\"rating\",\"index\",\"__closure\",\"opacity\",\"value\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AAmOuC,SAAAA,gBAAA,QAAAC,MAAA,CAAAC,KAAA,OAAAC,SAAA,OAAO,CAAAC,OAAA,CAC7BH,MAAM,CAAAI,KAAM,EAAIH,KAAK,CAAG,CAAS,CAAjC,CAAiC,CAAjC,CACb,CAAC\",\"ignoreList\":[]}"};var _worklet_15087537956389_init_data={code:"function RatingInputTsx10(){const{interacting,rating,index,withTiming,animationConfig}=this.__closure;const active=interacting.value===1&&Math.ceil(rating.value)-1===index;return{transform:[{scale:withTiming(active?animationConfig.scale:1,{duration:animationConfig.duration,easing:animationConfig.easing})}]};}",location:"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx",sourceMap:"{\"version\":3,\"names\":[\"RatingInputTsx10\",\"interacting\",\"rating\",\"index\",\"withTiming\",\"animationConfig\",\"__closure\",\"active\",\"value\",\"Math\",\"ceil\",\"transform\",\"scale\",\"duration\",\"easing\"],\"sources\":[\"/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx\"],\"mappings\":\"AAsOwC,SAAAA,iBAAA,QAAAC,WAAA,CAAAC,MAAA,CAAAC,KAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAChC,MAAAC,MAAA,CACIN,WAAW,CAAAO,KAAM,GAAK,CAA0C,EAArCC,IAAI,CAAAC,IAAK,CAACR,MAAM,CAAAM,KAAM,CAAC,CAAG,CAAC,GAAKL,KAAK,CAAC,MAE9D,CAAAQ,SAAA,CACQ,CACP,CAAAC,KAAA,CACWR,UAAU,CAACG,MAAM,CAAGF,eAAe,CAAAO,KAAU,CAAlC,CAAkC,CAAE,CAAAC,QAAA,CACxCR,eAAe,CAAAQ,QAAS,CAAAC,MAAA,CAC1BT,eAAe,CAAAS,MAC3B,CAAC,CACL,CAAC,CAET,CAAC\",\"ignoreList\":[]}"};var AnimatedStar=t0=>{var $=_c(25);var index=t0.index,rating=t0.rating,size=t0.size,interacting=t0.interacting,empty=t0.empty,half=t0.half,full=t0.full;var emptyStyle=useAnimatedStyle(function RatingInputTsx7Factory({_worklet_1114956076381_init_data,rating,index}){var _e=[new global.Error(),-3,-27];var RatingInputTsx7=()=>({opacity:rating.value>=index+0.5?0:1});RatingInputTsx7.__closure={rating,index};RatingInputTsx7.__workletHash=1114956076381;RatingInputTsx7.__pluginVersion="0.8.3";RatingInputTsx7.__initData=_worklet_1114956076381_init_data;RatingInputTsx7.__stackDetails=_e;return RatingInputTsx7;}({_worklet_1114956076381_init_data,rating,index}));var halfStyle=useAnimatedStyle(function RatingInputTsx8Factory({_worklet_8537619109224_init_data,rating,index}){var _e=[new global.Error(),-3,-27];var RatingInputTsx8=()=>({opacity:rating.value>=index+0.5&&rating.value<index+1?1:0});RatingInputTsx8.__closure={rating,index};RatingInputTsx8.__workletHash=8537619109224;RatingInputTsx8.__pluginVersion="0.8.3";RatingInputTsx8.__initData=_worklet_8537619109224_init_data;RatingInputTsx8.__stackDetails=_e;return RatingInputTsx8;}({_worklet_8537619109224_init_data,rating,index}));var fullStyle=useAnimatedStyle(function RatingInputTsx9Factory({_worklet_652360677641_init_data,rating,index}){var _e=[new global.Error(),-3,-27];var RatingInputTsx9=()=>({opacity:rating.value>=index+1?1:0});RatingInputTsx9.__closure={rating,index};RatingInputTsx9.__workletHash=652360677641;RatingInputTsx9.__pluginVersion="0.8.3";RatingInputTsx9.__initData=_worklet_652360677641_init_data;RatingInputTsx9.__stackDetails=_e;return RatingInputTsx9;}({_worklet_652360677641_init_data,rating,index}));var scaleStyle=useAnimatedStyle(function RatingInputTsx10Factory({_worklet_15087537956389_init_data,interacting,rating,index,withTiming,animationConfig}){var _e=[new global.Error(),-6,-27];var RatingInputTsx10=function(){var active=interacting.value===1&&Math.ceil(rating.value)-1===index;return{transform:[{scale:withTiming(active?animationConfig.scale:1,{duration:animationConfig.duration,easing:animationConfig.easing})}]};};RatingInputTsx10.__closure={interacting,rating,index,withTiming,animationConfig};RatingInputTsx10.__workletHash=15087537956389;RatingInputTsx10.__pluginVersion="0.8.3";RatingInputTsx10.__initData=_worklet_15087537956389_init_data;RatingInputTsx10.__stackDetails=_e;return RatingInputTsx10;}({_worklet_15087537956389_init_data,interacting,rating,index,withTiming,animationConfig}));var t1;if($[0]!==size){t1={width:size,height:size,pointerEvents:"none"};$[0]=size;$[1]=t1;}else{t1=$[1];}var t2;if($[2]!==scaleStyle||$[3]!==t1){t2=[t1,scaleStyle];$[2]=scaleStyle;$[3]=t1;$[4]=t2;}else{t2=$[4];}var t3;if($[5]!==emptyStyle){t3=[StyleSheet.absoluteFill,emptyStyle];$[5]=emptyStyle;$[6]=t3;}else{t3=$[6];}var t4;if($[7]!==empty||$[8]!==t3){t4=_jsx(Animated.View,{style:t3,children:empty});$[7]=empty;$[8]=t3;$[9]=t4;}else{t4=$[9];}var t5;if($[10]!==halfStyle){t5=[StyleSheet.absoluteFill,halfStyle];$[10]=halfStyle;$[11]=t5;}else{t5=$[11];}var t6;if($[12]!==half||$[13]!==t5){t6=_jsx(Animated.View,{style:t5,children:half});$[12]=half;$[13]=t5;$[14]=t6;}else{t6=$[14];}var t7;if($[15]!==fullStyle){t7=[StyleSheet.absoluteFill,fullStyle];$[15]=fullStyle;$[16]=t7;}else{t7=$[16];}var t8;if($[17]!==full||$[18]!==t7){t8=_jsx(Animated.View,{style:t7,children:full});$[17]=full;$[18]=t7;$[19]=t8;}else{t8=$[19];}var t9;if($[20]!==t2||$[21]!==t4||$[22]!==t6||$[23]!==t8){t9=_jsxs(Animated.View,{style:t2,children:[t4,t6,t8]});$[20]=t2;$[21]=t4;$[22]=t6;$[23]=t8;$[24]=t9;}else{t9=$[24];}return t9;};var createStyles=({styles:{inputBase}},{disabled,variant})=>{var _inputBase$container=inputBase.container,borderRadius=_inputBase$container.borderRadius,padding=_inputBase$container.padding,height=_inputBase$container.height;return StyleSheet.create({container:{minHeight:height[variant],borderRadius,backgroundColor:inputBase.container.backgroundColor[disabled?"disabled":"enabled"],padding,flexDirection:"row",alignItems:"center",justifyContent:"space-evenly"}});};
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/input/RatingInput.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{useEffect,useEffectEvent,useState}from"react";import{StyleSheet,View}from"react-native";import{Gesture,GestureDetector}from"react-native-gesture-handler";import Animated,{Easing,useAnimatedStyle,useSharedValue,withTiming}from"react-native-reanimated";import{scheduleOnRN}from"react-native-worklets";import{useTheme,useThemedStyles}from"../../hooks";import{IconBase}from"../icon";import{ratingToValue,valueToRating}from"../rating";import{InputScaffold}from"./InputScaffold";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";var animationConfig={easing:Easing.elastic(2),duration:300,scale:1.2};var calculateRating=(x,width,max)=>{"worklet";if(!width)return 0;return Math.max(0,Math.min(Math.round(x/width*max*2+0.2)/2,max));};var computeIconSize=(width,padding,gap,height,max)=>{if(!width||width<=0)return 0;var maxSizeForWidth=Math.floor((width-padding-gap*(max-1))/max);var maxSizeForHeight=height-padding-gap*2;return Math.max(0,Math.min(maxSizeForWidth,maxSizeForHeight));};export var RatingInput=({value=0,max=5,disabled:disabledProp,variant="regular",scale,onChange,...props})=>{var disabled=disabledProp||!onChange;var _useTheme=useTheme(),theme=_useTheme.theme,_useTheme$styles=_useTheme.styles,inputBase=_useTheme$styles.inputBase,rating=_useTheme$styles.rating;var _useThemedStyles=useThemedStyles("ratingInput",createStyles,{props:{disabled,variant}}),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],icons=_useThemedStyles2[1].icons;var scaledRating=scale?valueToRating(value,max,scale):value;var _useState=useState(),_useState2=_slicedToArray(_useState,2),width=_useState2[0],setWidth=_useState2[1];var widthShared=useSharedValue(0);var ratingShared=useSharedValue(scaledRating);var interacting=useSharedValue(0);useEffect(()=>{ratingShared.value=scaledRating;},[scaledRating,ratingShared]);var commitRating=useEffectEvent(nextRating=>{if(disabled||nextRating===scaledRating)return;onChange?.(scale?ratingToValue(nextRating,max,scale):nextRating);});var pan=Gesture.Pan().enabled(!disabled).onBegin(e=>{interacting.value=1;ratingShared.value=calculateRating(e.x,widthShared.value,max);}).onUpdate(e_0=>{ratingShared.value=calculateRating(e_0.x,widthShared.value,max);}).onEnd(e_1=>{var nextRating_0=calculateRating(e_1.x,widthShared.value,max);ratingShared.value=nextRating_0;scheduleOnRN(commitRating,nextRating_0);}).onFinalize(()=>{interacting.value=0;});var tap=Gesture.Tap().onEnd(e_2=>{scheduleOnRN(commitRating,calculateRating(e_2.x,widthShared.value,max));});var gesture=Gesture.Exclusive(pan,tap);var ratingIconSize=computeIconSize(width,inputBase.container.padding,theme.spacing.tiny,inputBase.container.height[variant],max);return _jsx(InputScaffold,{...props,children:_jsx(GestureDetector,{gesture:gesture,children:_jsx(View,{style:styles.container,onLayout:e_3=>{var nextWidth=e_3.nativeEvent.layout.width;if(nextWidth>0){setWidth(nextWidth);widthShared.value=nextWidth;}},children:Array.from({length:max},(_,index)=>_jsx(AnimatedStar,{index:index,rating:ratingShared,size:ratingIconSize,interacting:interacting,empty:_jsx(IconBase,{...icons.empty,size:ratingIconSize,color:rating.icon.color.empty}),half:_jsx(IconBase,{...icons.half,size:ratingIconSize,color:rating.icon.color.half}),full:_jsx(IconBase,{...icons.full,size:ratingIconSize,color:rating.icon.color.full})},index))})})});};var AnimatedStar=t0=>{var $=_c(25);var index=t0.index,rating=t0.rating,size=t0.size,interacting=t0.interacting,empty=t0.empty,half=t0.half,full=t0.full;var emptyStyle=useAnimatedStyle(()=>({opacity:rating.value>=index+0.5?0:1}));var halfStyle=useAnimatedStyle(()=>({opacity:rating.value>=index+0.5&&rating.value<index+1?1:0}));var fullStyle=useAnimatedStyle(()=>({opacity:rating.value>=index+1?1:0}));var scaleStyle=useAnimatedStyle(()=>{var active=interacting.value===1&&Math.ceil(rating.value)-1===index;return{transform:[{scale:withTiming(active?animationConfig.scale:1,{duration:animationConfig.duration,easing:animationConfig.easing})}]};});var t1;if($[0]!==size){t1={width:size,height:size,pointerEvents:"none"};$[0]=size;$[1]=t1;}else{t1=$[1];}var t2;if($[2]!==scaleStyle||$[3]!==t1){t2=[t1,scaleStyle];$[2]=scaleStyle;$[3]=t1;$[4]=t2;}else{t2=$[4];}var t3;if($[5]!==emptyStyle){t3=[StyleSheet.absoluteFill,emptyStyle];$[5]=emptyStyle;$[6]=t3;}else{t3=$[6];}var t4;if($[7]!==empty||$[8]!==t3){t4=_jsx(Animated.View,{style:t3,children:empty});$[7]=empty;$[8]=t3;$[9]=t4;}else{t4=$[9];}var t5;if($[10]!==halfStyle){t5=[StyleSheet.absoluteFill,halfStyle];$[10]=halfStyle;$[11]=t5;}else{t5=$[11];}var t6;if($[12]!==half||$[13]!==t5){t6=_jsx(Animated.View,{style:t5,children:half});$[12]=half;$[13]=t5;$[14]=t6;}else{t6=$[14];}var t7;if($[15]!==fullStyle){t7=[StyleSheet.absoluteFill,fullStyle];$[15]=fullStyle;$[16]=t7;}else{t7=$[16];}var t8;if($[17]!==full||$[18]!==t7){t8=_jsx(Animated.View,{style:t7,children:full});$[17]=full;$[18]=t7;$[19]=t8;}else{t8=$[19];}var t9;if($[20]!==t2||$[21]!==t4||$[22]!==t6||$[23]!==t8){t9=_jsxs(Animated.View,{style:t2,children:[t4,t6,t8]});$[20]=t2;$[21]=t4;$[22]=t6;$[23]=t8;$[24]=t9;}else{t9=$[24];}return t9;};var createStyles=({styles:{inputBase}},{disabled,variant})=>{var _inputBase$container=inputBase.container,borderRadius=_inputBase$container.borderRadius,padding=_inputBase$container.padding,height=_inputBase$container.height;return StyleSheet.create({container:{minHeight:height[variant],borderRadius,backgroundColor:inputBase.container.backgroundColor[disabled?"disabled":"enabled"],padding,flexDirection:"row",alignItems:"center",justifyContent:"space-evenly"}});};
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/toast/Toast.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{StyleSheet,View}from"react-native";import Animated,{LinearTransition,SlideInDown,SlideOutDown}from"react-native-reanimated";import{useThemedStyles}from"../../hooks";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";var TOAST_ENTERING=SlideInDown.springify().mass(0.5);var TOAST_EXITING=SlideOutDown.springify().mass(0.5);var TOAST_LAYOUT=LinearTransition.springify().mass(0.5);export var Toast=t0=>{var $=_c(17);var action=t0.action,containerStyle=t0.containerStyle,children=t0.children;var _useThemedStyles=useThemedStyles("toast",createStyles),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t1;if($[0]!==containerStyle||$[1]!==styles.container){t1=[styles.container,containerStyle];$[0]=containerStyle;$[1]=styles.container;$[2]=t1;}else{t1=$[2];}var t2;if($[3]!==children||$[4]!==styles.contentContainer){t2=_jsx(View,{style:styles.contentContainer,children:children});$[3]=children;$[4]=styles.contentContainer;$[5]=t2;}else{t2=$[5];}var t3;if($[6]!==action||$[7]!==styles.actionContainer||$[8]!==styles.separator){t3=action&&_jsxs(View,{style:styles.actionContainer,children:[_jsx(Animated.View,{layout:TOAST_LAYOUT,style:styles.separator}),action]});$[6]=action;$[7]=styles.actionContainer;$[8]=styles.separator;$[9]=t3;}else{t3=$[9];}var t4;if($[10]!==styles.innerContainer||$[11]!==t2||$[12]!==t3){t4=_jsxs(View,{style:styles.innerContainer,children:[t2,t3]});$[10]=styles.innerContainer;$[11]=t2;$[12]=t3;$[13]=t4;}else{t4=$[13];}var t5;if($[14]!==t1||$[15]!==t4){t5=_jsx(Animated.View,{style:t1,entering:TOAST_ENTERING,exiting:TOAST_EXITING,layout:TOAST_LAYOUT,children:t4});$[14]=t1;$[15]=t4;$[16]=t5;}else{t5=$[16];}return t5;};var createStyles=({theme:{color,spacing,border},styles:{toast}})=>StyleSheet.create({container:{position:"absolute",bottom:toast.bottomInset,start:toast.horizontalInset,end:toast.horizontalInset,backgroundColor:color.backgroundHighlight,padding:spacing.medium,borderRadius:border.radius.loose},innerContainer:{flexDirection:"row",justifyContent:"space-between"},contentContainer:{flex:1},actionContainer:{flex:0,alignItems:"center",flexDirection:"row",height:"100%"},separator:{borderStartWidth:StyleSheet.hairlineWidth,borderStartColor:color.textSecondary,height:"100%",marginHorizontal:spacing.medium}});
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/toast/Toast.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{StyleSheet,View}from"react-native";import Animated,{LinearTransition,SlideInDown,SlideOutDown}from"react-native-reanimated";import{useThemedStyles}from"../../hooks";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";var TOAST_ENTERING=SlideInDown.springify().mass(0.5);var TOAST_EXITING=SlideOutDown.springify().mass(0.5);var TOAST_LAYOUT=LinearTransition.springify().mass(0.5);export var Toast=t0=>{var $=_c(17);var action=t0.action,containerStyle=t0.containerStyle,children=t0.children;var _useThemedStyles=useThemedStyles("toast",createStyles),_useThemedStyles2=_slicedToArray(_useThemedStyles,1),styles=_useThemedStyles2[0];var t1;if($[0]!==containerStyle||$[1]!==styles.container){t1=[styles.container,containerStyle];$[0]=containerStyle;$[1]=styles.container;$[2]=t1;}else{t1=$[2];}var t2;if($[3]!==children||$[4]!==styles.contentContainer){t2=_jsx(View,{style:styles.contentContainer,children:children});$[3]=children;$[4]=styles.contentContainer;$[5]=t2;}else{t2=$[5];}var t3;if($[6]!==action||$[7]!==styles.actionContainer||$[8]!==styles.separator){t3=action&&_jsxs(View,{style:styles.actionContainer,children:[_jsx(Animated.View,{layout:TOAST_LAYOUT,style:styles.separator}),action]});$[6]=action;$[7]=styles.actionContainer;$[8]=styles.separator;$[9]=t3;}else{t3=$[9];}var t4;if($[10]!==styles.innerContainer||$[11]!==t2||$[12]!==t3){t4=_jsxs(View,{style:styles.innerContainer,children:[t2,t3]});$[10]=styles.innerContainer;$[11]=t2;$[12]=t3;$[13]=t4;}else{t4=$[13];}var t5;if($[14]!==t1||$[15]!==t4){t5=_jsx(Animated.View,{style:t1,entering:TOAST_ENTERING,exiting:TOAST_EXITING,layout:TOAST_LAYOUT,children:t4});$[14]=t1;$[15]=t4;$[16]=t5;}else{t5=$[16];}return t5;};var createStyles=({theme:{color,spacing},styles:{toast}})=>StyleSheet.create({container:{backgroundColor:toast.container.backgroundColor,padding:toast.container.padding,borderRadius:toast.container.borderRadius},innerContainer:{flexDirection:"row",justifyContent:"space-between"},contentContainer:{flex:1},actionContainer:{flex:0,alignItems:"center",flexDirection:"row",height:"100%"},separator:{borderStartWidth:StyleSheet.hairlineWidth,borderStartColor:color.textSecondary,height:"100%",marginHorizontal:spacing.medium}});
@@ -1 +1 @@
1
- export var defaultToastStyles=({spacing})=>({horizontalInset:spacing.pageHorizontal+spacing.medium,bottomInset:100});
1
+ export var defaultToastStyles=({color,spacing,border})=>({container:{backgroundColor:color.backgroundHighlight,padding:spacing.medium,borderRadius:border.radius.loose}});
@@ -1 +1 @@
1
- import{use}from"react";import{ThemeContext}from"../providers";export var useTheme=()=>use(ThemeContext);
1
+ import{use}from"react";import{ThemeContext}from"../providers";export function useTheme(){return use(ThemeContext);}
@@ -1 +1 @@
1
- import{c as _c}from"react/compiler-runtime";import{MergeStyleSlice}from"../theme/styles";import{useTheme}from"./useTheme";function hasKey(obj,key){return key in obj;}var EMPTY_OPTIONS={};var mergeStylesForComponent=(styles,name,override)=>{if(!hasKey(styles,name)){return{config:undefined,styles};}var base=styles[name];var config=MergeStyleSlice(base,override);return{config,styles:config===base?styles:{...styles,[name]:config}};};var buildComponentResult=(styles,icons,name,config)=>{var hasStyle=hasKey(styles,name);var hasIcons=hasKey(icons,name);if(hasStyle&&hasIcons){return{style:config,icons:icons[name]};}if(hasStyle){return{style:config};}if(hasIcons){return{icons:icons[name]};}return{};};export function useThemedStyles(...t0){var $=_c(10);var args=t0;var first=args[0];var isComponent=typeof first==="string";var componentName=isComponent?first:undefined;var generator=isComponent?args[1]:first;var options=(isComponent?args[2]:args[1])??EMPTY_OPTIONS;var hasProps="props"in options;var componentProps=hasProps?options.props:undefined;var componentStyles="styles"in options?options.styles:undefined;var _useTheme=useTheme(),theme=_useTheme.theme,styles=_useTheme.styles,icons=_useTheme.icons;var name=componentName;var t1;if($[0]!==componentProps||$[1]!==componentStyles||$[2]!==generator||$[3]!==hasProps||$[4]!==icons||$[5]!==isComponent||$[6]!==name||$[7]!==styles||$[8]!==theme){var _ref=isComponent?mergeStylesForComponent(styles,name,componentStyles?.[name]):{config:undefined,styles},config=_ref.config,stylesForGenerator=_ref.styles;var _generated=hasProps?generator({theme,styles:stylesForGenerator,icons},componentProps):generator({theme,styles:stylesForGenerator,icons});t1=isComponent?[_generated,buildComponentResult(styles,icons,name,config)]:_generated;$[0]=componentProps;$[1]=componentStyles;$[2]=generator;$[3]=hasProps;$[4]=icons;$[5]=isComponent;$[6]=name;$[7]=styles;$[8]=theme;$[9]=t1;}else{t1=$[9];}return t1;}export var useStyles=componentStyles=>{var $=_c(7);var _useTheme2=useTheme(),styles=_useTheme2.styles;var merged=styles;var t0;if($[0]!==componentStyles){t0=Object.keys(componentStyles);$[0]=componentStyles;$[1]=t0;}else{t0=$[1];}var t1=t0;if($[2]!==componentStyles||$[3]!==merged||$[4]!==styles||$[5]!==t1){for(var key of t1){var override=componentStyles[key];if(override===undefined){continue;}var base=styles[key];var next=MergeStyleSlice(base,override);if(next!==base){merged={...merged,[key]:next};}}$[2]=componentStyles;$[3]=merged;$[4]=styles;$[5]=t1;$[6]=merged;}else{merged=$[6];}return merged;};
1
+ import{c as _c}from"react/compiler-runtime";import{MergeStyleSlice}from"../theme/styles";import{useTheme}from"./useTheme";function hasKey(obj,key){return key in obj;}var EMPTY_OPTIONS={};var mergeStylesForComponent=(styles,name,override)=>{if(!hasKey(styles,name)){return{config:undefined,styles};}var base=styles[name];var config=MergeStyleSlice(base,override);return{config,styles:config===base?styles:{...styles,[name]:config}};};var buildComponentResult=(styles,icons,name,config)=>{var hasStyle=hasKey(styles,name);var hasIcons=hasKey(icons,name);if(hasStyle&&hasIcons){return{style:config,icons:icons[name]};}if(hasStyle){return{style:config};}if(hasIcons){return{icons:icons[name]};}return{};};export function useThemedStyles(...t0){var $=_c(10);var args=t0;var first=args[0];var isComponent=typeof first==="string";var componentName=isComponent?first:undefined;var generator=isComponent?args[1]:first;var options=(isComponent?args[2]:args[1])??EMPTY_OPTIONS;var hasProps="props"in options;var componentProps=hasProps?options.props:undefined;var componentStyles="styles"in options?options.styles:undefined;var _useTheme=useTheme(),theme=_useTheme.theme,styles=_useTheme.styles,icons=_useTheme.icons;var name=componentName;var t1;if($[0]!==componentProps||$[1]!==componentStyles||$[2]!==generator||$[3]!==hasProps||$[4]!==icons||$[5]!==isComponent||$[6]!==name||$[7]!==styles||$[8]!==theme){var _ref=isComponent?mergeStylesForComponent(styles,name,componentStyles?.[name]):{config:undefined,styles},config=_ref.config,stylesForGenerator=_ref.styles;var generatorInput={theme,styles:stylesForGenerator,icons};var _generated=hasProps?generator(generatorInput,componentProps):generator(generatorInput);t1=isComponent?[_generated,buildComponentResult(styles,icons,name,config)]:_generated;$[0]=componentProps;$[1]=componentStyles;$[2]=generator;$[3]=hasProps;$[4]=icons;$[5]=isComponent;$[6]=name;$[7]=styles;$[8]=theme;$[9]=t1;}else{t1=$[9];}return t1;}export var useStyles=componentStyles=>{var $=_c(7);var _useTheme2=useTheme(),styles=_useTheme2.styles;var merged=styles;var t0;if($[0]!==componentStyles){t0=Object.keys(componentStyles);$[0]=componentStyles;$[1]=t0;}else{t0=$[1];}var t1=t0;if($[2]!==componentStyles||$[3]!==merged||$[4]!==styles||$[5]!==t1){for(var key of t1){var override=componentStyles[key];if(override===undefined){continue;}var base=styles[key];var next=MergeStyleSlice(base,override);if(next!==base){merged={...merged,[key]:next};}}$[2]=componentStyles;$[3]=merged;$[4]=styles;$[5]=t1;$[6]=merged;}else{merged=$[6];}return merged;};
@@ -1 +1 @@
1
- import{createContext}from"react";import{createDefaultStyles,DefaultIcons,DefaultTheme}from"../theme";export var ThemeContext=createContext({theme:DefaultTheme,styles:createDefaultStyles(DefaultTheme),icons:DefaultIcons});
1
+ import{createContext}from"react";import{DefaultIcons}from"../theme/icons";import{createStyles}from"../theme/styles";import{DefaultTheme}from"../theme/theme";export var ThemeContext=createContext({theme:DefaultTheme,styles:createStyles(DefaultTheme),icons:DefaultIcons});
@@ -1 +1 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/providers/ThemeProvider.tsx";import{c as _c}from"react/compiler-runtime";import{createDefaultStyles,MergeIcons,MergeStyles,MergeTheme}from"../theme";import{ThemeContext}from"./ThemeContext";import{jsx as _jsx}from"react/jsx-runtime";export var ThemeProvider=t0=>{var $=_c(13);var initialTheme=t0.theme,initialStyles=t0.styles,initialIcons=t0.icons,children=t0.children;var t1;var theme;if($[0]!==initialStyles||$[1]!==initialTheme){theme=MergeTheme(initialTheme);t1=MergeStyles(createDefaultStyles(theme),initialStyles);$[0]=initialStyles;$[1]=initialTheme;$[2]=t1;$[3]=theme;}else{t1=$[2];theme=$[3];}var styles=t1;var t2;if($[4]!==initialIcons){t2=MergeIcons(initialIcons);$[4]=initialIcons;$[5]=t2;}else{t2=$[5];}var icons=t2;var t3;if($[6]!==icons||$[7]!==styles||$[8]!==theme){t3={theme,styles,icons};$[6]=icons;$[7]=styles;$[8]=theme;$[9]=t3;}else{t3=$[9];}var value=t3;var t4;if($[10]!==children||$[11]!==value){t4=_jsx(ThemeContext.Provider,{value:value,children:children});$[10]=children;$[11]=value;$[12]=t4;}else{t4=$[12];}return t4;};
1
+ var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/providers/ThemeProvider.tsx";import{c as _c}from"react/compiler-runtime";import{createStyles}from"../theme";import{MergeIcons}from"../theme/icons";import{MergeTheme}from"../theme/theme";import{ThemeContext}from"./ThemeContext";import{jsx as _jsx}from"react/jsx-runtime";export var ThemeProvider=t0=>{var $=_c(13);var initialTheme=t0.theme,initialStyles=t0.styles,initialIcons=t0.icons,children=t0.children;var t1;var theme;if($[0]!==initialStyles||$[1]!==initialTheme){theme=MergeTheme(initialTheme);t1=createStyles(theme,initialStyles);$[0]=initialStyles;$[1]=initialTheme;$[2]=t1;$[3]=theme;}else{t1=$[2];theme=$[3];}var styles=t1;var t2;if($[4]!==initialIcons){t2=MergeIcons(initialIcons);$[4]=initialIcons;$[5]=t2;}else{t2=$[5];}var icons=t2;var t3;if($[6]!==icons||$[7]!==styles||$[8]!==theme){t3={theme,styles,icons};$[6]=icons;$[7]=styles;$[8]=theme;$[9]=t3;}else{t3=$[9];}var value=t3;var t4;if($[10]!==children||$[11]!==value){t4=_jsx(ThemeContext.Provider,{value:value,children:children});$[10]=children;$[11]=value;$[12]=t4;}else{t4=$[12];}return t4;};
@@ -1 +1 @@
1
- export{createIcons,DefaultIcons,MergeIcons}from"./icons";export{createDefaultStyles,MergeStyles}from"./styles";export{DefaultTheme,MergeTheme}from"./theme";
1
+ export{createStyles}from"./styles";export{createTheme}from"./theme";
@@ -1 +1 @@
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
+ 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 createStyles=(theme,overrides)=>MergeStyles(createDefaultStyles(theme),overrides);export var MergeStyleSlice=(base,override)=>override===undefined?base:merge({},base,override);
@@ -1 +1 @@
1
- import{Platform}from"react-native";export var DefaultTheme={font:{family:{sans:Platform.select({ios:"System",android:"sans-serif",default:"system-ui"}),mono:Platform.select({ios:"Menlo",android:"monospace",default:"monospace"})},size:{tiny:10,small:12,regular:14,large:16,xLarge:20,xxLarge:28}},color:{primary:"#FF4242",primaryDark:"#ff8585",primaryLight:"#ffbdbd",secondary:"#12263A",secondaryHighlight:"#718191",secondaryDisabled:"#B5EAD7",tertiary:"#06bcc1",destructive:"#ff382e",destructiveHighlight:"#ff9e96",light:"#F4EDEA",white:"#ffffff",black:"#000000",red:"#FF9AA2",orange:"#FFDAC1",green:"#E2F0CB",blue:"#B5EAD7",purple:"#C7CEEA",textPrimary:"#12263A",textSecondary:"#22476D",textHighlight:"#30669c",textInverted:"#F4EDEA",textDisabled:"#B5EAD7",textOnPrimary:"#F4EDEA",textOnSecondary:"#F4EDEA",textOnDestructive:"#F4EDEA",background:"#F4EDEA",backgroundHighlight:"#f7f3f2",foreground:"#ffffff",foregroundHighlight:"#B5EAD7",backgroundOverlay:"#000",shadow:"#555",border:"#E2E8F0",inputBackground:"#e4d8d4",inputBackgroundDisabled:"#f0e9e2ff",inputText:"#12263A",pressOverlay:"rgba(0, 0, 0, 0.1)",alert:"#d63333",error:"#d63333",success:"#4ed633",warning:"#f5c61d"},spacing:{screenContentTop:0,pageHorizontal:16,pageBottom:80,pageTop:16,navigationActionHorizontal:0,large:24,medium:16,small:8,tiny:4},border:{radius:{tight:4,regular:8,loose:16},width:{thick:4,regular:2,thin:1}}};export function MergeTheme(first,second){return{...DefaultTheme,...first,...second,color:{...DefaultTheme.color,...first?.color,...second?.color},font:{...DefaultTheme.font,...first?.font,...second?.font,family:{...DefaultTheme.font.family,...first?.font?.family,...second?.font?.family},size:{...DefaultTheme.font.size,...first?.font?.size,...second?.font?.size}},spacing:{...DefaultTheme.spacing,...first?.spacing,...second?.spacing},border:{...DefaultTheme.border,...first?.border,...second?.border,radius:{...DefaultTheme.border.radius,...first?.border?.radius,...second?.border?.radius},width:{...DefaultTheme.border.width,...first?.border?.width,...second?.border?.width}}};}
1
+ import{Platform}from"react-native";import merge from"lodash.merge";export var DefaultTheme={font:{family:{sans:Platform.select({ios:"System",android:"sans-serif",default:"system-ui"}),mono:Platform.select({ios:"Menlo",android:"monospace",default:"monospace"})},size:{tiny:10,small:12,regular:14,large:16,xLarge:20,xxLarge:28}},color:{primary:"#FF4242",primaryDark:"#ff8585",primaryLight:"#ffbdbd",secondary:"#12263A",secondaryHighlight:"#718191",secondaryDisabled:"#B5EAD7",tertiary:"#06bcc1",destructive:"#ff382e",destructiveHighlight:"#ff9e96",light:"#F4EDEA",white:"#ffffff",black:"#000000",red:"#FF9AA2",orange:"#FFDAC1",green:"#E2F0CB",blue:"#B5EAD7",purple:"#C7CEEA",textPrimary:"#12263A",textSecondary:"#22476D",textHighlight:"#30669c",textInverted:"#F4EDEA",textDisabled:"#B5EAD7",textOnPrimary:"#F4EDEA",textOnSecondary:"#F4EDEA",textOnDestructive:"#F4EDEA",background:"#F4EDEA",backgroundHighlight:"#f7f3f2",foreground:"#ffffff",foregroundHighlight:"#B5EAD7",backgroundOverlay:"#000",shadow:"#555",border:"#E2E8F0",inputBackground:"#e4d8d4",inputBackgroundDisabled:"#f0e9e2ff",inputText:"#12263A",pressOverlay:"rgba(0, 0, 0, 0.1)",alert:"#d63333",error:"#d63333",success:"#4ed633",warning:"#f5c61d"},spacing:{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)=>merge({},DefaultTheme,first??{},second??{});export var createTheme=(overrides,createExtras)=>{var base=MergeTheme(overrides);return createExtras?merge({},base,createExtras(base)):base;};
@@ -1,8 +1,11 @@
1
1
  import type { FunctionComponent, ReactNode } from "react";
2
- import { type StyleProp, type ViewStyle } from "react-native";
2
+ import { type ColorValue, type StyleProp, type ViewStyle } from "react-native";
3
3
  export interface ToastStyles {
4
- horizontalInset: number;
5
- bottomInset: number;
4
+ container: {
5
+ backgroundColor: ColorValue;
6
+ padding: number;
7
+ borderRadius: number;
8
+ };
6
9
  }
7
10
  export interface ToastProps {
8
11
  action?: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,KAAK,SAAS,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAShF,MAAM,WAAW,WAAW;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACvB;AACD,MAAM,WAAW,UAAU;IACvB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAMD,eAAO,MAAM,KAAK,EAAE,iBAAiB,CAAC,UAAU,CA4B/C,CAAC"}
1
+ {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EACH,KAAK,UAAU,EACf,KAAK,SAAS,EAGd,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AAStB,MAAM,WAAW,WAAW;IACxB,SAAS,EAAE;QACP,eAAe,EAAE,UAAU,CAAC;QAC5B,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;KACxB,CAAC;CACL;AACD,MAAM,WAAW,UAAU;IACvB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAMD,eAAO,MAAM,KAAK,EAAE,iBAAiB,CAAC,UAAU,CA4B/C,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { Theme } from "../../theme/theme";
2
2
  import type { ToastStyles } from "./Toast";
3
- export declare const defaultToastStyles: ({ spacing }: Theme) => ToastStyles;
3
+ export declare const defaultToastStyles: ({ color, spacing, border, }: Theme) => ToastStyles;
4
4
  //# sourceMappingURL=Toast.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/Toast.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,kBAAkB,GAAI,aAAa,KAAK,KAAG,WAGtD,CAAC"}
1
+ {"version":3,"file":"Toast.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/Toast.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,kBAAkB,GAAI,6BAIhC,KAAK,KAAG,WAMT,CAAC"}
@@ -1,2 +1,7 @@
1
- export declare const useTheme: () => import("./useThemedStyles").ThemedStyles;
1
+ import { type ThemeContextDefinition } from "../providers";
2
+ /**
3
+ * Reads the active theme. Pass a consumer extension type to see any custom
4
+ * tokens that were provided to `ThemeProvider` (e.g. `useTheme<AppTheme>()`).
5
+ */
6
+ export declare function useTheme<E extends object = Record<never, never>>(): ThemeContextDefinition<E>;
2
7
  //# sourceMappingURL=useTheme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTheme.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ,gDAA0B,CAAC"}
1
+ {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTheme.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,KAAK,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEzE;;;GAGG;AACH,wBAAgB,QAAQ,CACpB,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,KACtC,sBAAsB,CAAC,CAAC,CAAC,CAE7B"}
@@ -1,7 +1,7 @@
1
1
  /** biome-ignore-all lint/suspicious/noExplicitAny: any prop definition is permitted */
2
- import type { ThemeContextDefinition as ThemedStyles } from "../providers";
2
+ import type { ThemeContextDefinition } from "../providers";
3
3
  import type { Icons, StyleOverrides, Styles } from "../theme";
4
- export type { ThemedStyles };
4
+ export type ThemedStyles<E extends object = Record<never, never>> = ThemeContextDefinition<E>;
5
5
  type StyleOnlyKey = keyof Styles;
6
6
  type IconOnlyKey = keyof Icons;
7
7
  type ComponentKey = StyleOnlyKey | IconOnlyKey;
@@ -22,7 +22,7 @@ type UseStylesReturn<C extends ComponentKey, G = undefined> = [
22
22
  ];
23
23
  type AnyGenerator = (...args: any[]) => any;
24
24
  type GeneratorResult<G extends AnyGenerator> = ReturnType<G>;
25
- type GeneratorProps<G extends AnyGenerator> = Parameters<G> extends [ThemedStyles, infer U] ? U : never;
25
+ type GeneratorProps<G extends AnyGenerator> = Parameters<G> extends [ThemeContextDefinition<any>, infer U] ? U : never;
26
26
  type UseStylesOptions<G extends AnyGenerator> = [GeneratorProps<G>] extends [
27
27
  never
28
28
  ] ? [
@@ -47,4 +47,5 @@ type UseStylesOptions<G extends AnyGenerator> = [GeneratorProps<G>] extends [
47
47
  export declare function useThemedStyles<C extends ComponentKey, G extends AnyGenerator>(componentName: C, generator: G, ...options: UseStylesOptions<G>): UseStylesReturn<C, GeneratorResult<G>>;
48
48
  export declare function useThemedStyles<G extends AnyGenerator>(generator: G, ...options: UseStylesOptions<G>): GeneratorResult<G>;
49
49
  export declare const useStyles: (componentStyles: StyleOverrides) => Styles;
50
+ export {};
50
51
  //# sourceMappingURL=useThemedStyles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useThemedStyles.d.ts","sourceRoot":"","sources":["../../../src/hooks/useThemedStyles.tsx"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,OAAO,KAAK,EAAE,sBAAsB,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAI9D,YAAY,EAAE,YAAY,EAAE,CAAC;AAS7B,KAAK,YAAY,GAAG,MAAM,MAAM,CAAC;AACjC,KAAK,WAAW,GAAG,MAAM,KAAK,CAAC;AAC/B,KAAK,YAAY,GAAG,YAAY,GAAG,WAAW,CAAC;AAE/C,KAAK,iBAAiB,GAA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,GAChC,eAAe,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1C,wBAAgB,eAAe,CAAC,CAAC,SAAS,YAAY,EAClD,SAAS,EAAE,CAAC,EACZ,GAAG,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAChC,eAAe,CAAC,CAAC,CAAC,CAAC;AAmCtB,eAAO,MAAM,SAAS,GAAI,iBAAiB,cAAc,WAgBxD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ArrowBoth.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/ArrowBoth.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,gBAAgB,CAO1C,CAAC"}
1
+ {"version":3,"file":"ArrowBoth.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/ArrowBoth.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,gBAAgB,CAO1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChevronDown.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/ChevronDown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAO5C,CAAC"}
1
+ {"version":3,"file":"ChevronDown.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/ChevronDown.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAO5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Circle.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Circle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,gBAAgB,CAOvC,CAAC"}
1
+ {"version":3,"file":"Circle.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Circle.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,gBAAgB,CAOvC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Clock.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Clock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,gBAAgB,CAOtC,CAAC"}
1
+ {"version":3,"file":"Clock.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Clock.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,gBAAgB,CAOtC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Dash.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Dash.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,gBAAgB,CAOrC,CAAC"}
1
+ {"version":3,"file":"Dash.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Dash.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,gBAAgB,CAOrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Exclamation.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Exclamation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAO5C,CAAC"}
1
+ {"version":3,"file":"Exclamation.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Exclamation.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAO5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"InfinityGlyph.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/InfinityGlyph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,gBAAgB,CAO9C,CAAC"}
1
+ {"version":3,"file":"InfinityGlyph.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/InfinityGlyph.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,gBAAgB,CAO9C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NumberGlyph.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/NumberGlyph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAO5C,CAAC"}
1
+ {"version":3,"file":"NumberGlyph.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/NumberGlyph.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAO5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Plus.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Plus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,gBAAgB,CAOrC,CAAC"}
1
+ {"version":3,"file":"Plus.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/Plus.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,gBAAgB,CAOrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"StarBorder.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/StarBorder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,gBAAgB,CAO3C,CAAC"}
1
+ {"version":3,"file":"StarBorder.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/StarBorder.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,gBAAgB,CAO3C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"StarFull.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/StarFull.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,gBAAgB,CAOzC,CAAC"}
1
+ {"version":3,"file":"StarFull.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/StarFull.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,gBAAgB,CAOzC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"StarHalf.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/StarHalf.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAS,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,gBAAgB,CAqBzC,CAAC"}
1
+ {"version":3,"file":"StarHalf.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/StarHalf.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,EAAS,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,gBAAgB,CAqBzC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAmB,MAAM,SAAS,CAAC;AAcxD,MAAM,MAAM,UAAU,GAChB,aAAa,GACb,MAAM,GACN,MAAM,GACN,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,cAAc,GACd,OAAO,GACP,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,WAAW,CAAC;AAiBlB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,UAAU,CAMvC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/icons/ui/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAmB,MAAM,SAAS,CAAC;AAcxD,MAAM,MAAM,UAAU,GAChB,aAAa,GACb,MAAM,GACN,MAAM,GACN,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,cAAc,GACd,OAAO,GACP,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,WAAW,CAAC;AAiBlB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,UAAU,CAMvC,CAAC"}
@@ -1,8 +1,8 @@
1
- import { type Icons, type Styles, type Theme } from "../theme";
2
- export interface ThemeContextDefinition {
3
- theme: Theme;
1
+ import type { Icons, Styles, Theme } from "../theme";
2
+ export interface ThemeContextDefinition<E extends object = Record<never, never>> {
3
+ theme: Theme & E;
4
4
  styles: Styles;
5
5
  icons: Icons;
6
6
  }
7
- export declare const ThemeContext: import("react").Context<ThemeContextDefinition>;
7
+ export declare const ThemeContext: import("react").Context<ThemeContextDefinition<Record<never, never>>>;
8
8
  //# sourceMappingURL=ThemeContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAIH,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,KAAK,EACb,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,sBAAsB;IACnC,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;CAChB;AAED,eAAO,MAAM,YAAY,iDAIvB,CAAC"}
1
+ {"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAKrD,MAAM,WAAW,sBAAsB,CACnC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;IAEvC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;CAChB;AAED,eAAO,MAAM,YAAY,uEAIvB,CAAC"}
@@ -1,12 +1,15 @@
1
- import type { FC, ReactNode } from "react";
1
+ import type { ReactNode } from "react";
2
2
  import type { DeepPartial } from "@reillymc/es-utils";
3
- import { type Icons, type StyleOverrides, type Theme } from "../theme";
4
- interface ThemeProviderProps {
5
- theme?: DeepPartial<Theme>;
3
+ import { type Icons, type StyleOverrides, type ThemeOverrides } from "../theme";
4
+ export interface ThemeProviderProps<E extends object = Record<never, never>> {
5
+ /**
6
+ * The active theme. Consumers may extend it with their own tokens
7
+ * (`ThemeOverrides & E`) and read them back via `useTheme<E>()`.
8
+ */
9
+ theme?: ThemeOverrides & E;
6
10
  styles?: StyleOverrides;
7
11
  icons?: DeepPartial<Icons>;
8
12
  children?: ReactNode;
9
13
  }
10
- export declare const ThemeProvider: FC<ThemeProviderProps>;
11
- export {};
14
+ export declare const ThemeProvider: <E extends object = Record<never, never>>({ theme: initialTheme, styles: initialStyles, icons: initialIcons, children, }: ThemeProviderProps<E>) => import("react").JSX.Element;
12
15
  //# sourceMappingURL=ThemeProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAEH,KAAK,KAAK,EAIV,KAAK,cAAc,EACnB,KAAK,KAAK,EACb,MAAM,UAAU,CAAC;AAGlB,UAAU,kBAAkB;IACxB,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAehD,CAAC"}
1
+ {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAEH,KAAK,KAAK,EACV,KAAK,cAAc,EACnB,KAAK,cAAc,EACtB,MAAM,UAAU,CAAC;AAKlB,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;IACvE;;;OAGG;IACH,KAAK,CAAC,EAAE,cAAc,GAAG,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,gFAKpE,kBAAkB,CAAC,CAAC,CAAC,gCAUvB,CAAC"}
@@ -1,4 +1,4 @@
1
- export { type ComponentIconAssets, createIcons, DefaultIcons, type Icons, MergeIcons, } from "./icons";
2
- export { type CreateStyles, createDefaultStyles, MergeStyles, type StyleOverrides, type Styles, } from "./styles";
3
- export { DefaultTheme, MergeTheme, type Theme, type ThemeOverrides, } from "./theme";
1
+ export type { ComponentIconAssets, Icons } from "./icons";
2
+ export { createStyles, type StyleOverrides, type Styles } from "./styles";
3
+ export { createTheme, type Theme, type ThemeOverrides } from "./theme";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,mBAAmB,EACxB,WAAW,EACX,YAAY,EACZ,KAAK,KAAK,EACV,UAAU,GACb,MAAM,SAAS,CAAC;AACjB,OAAO,EACH,KAAK,YAAY,EACjB,mBAAmB,EACnB,WAAW,EACX,KAAK,cAAc,EACnB,KAAK,MAAM,GACd,MAAM,UAAU,CAAC;AAClB,OAAO,EACH,YAAY,EACZ,UAAU,EACV,KAAK,KAAK,EACV,KAAK,cAAc,GACtB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,KAAK,cAAc,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,KAAK,KAAK,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC"}
@@ -49,5 +49,10 @@ export type CreateStyles = (theme: Theme) => Styles;
49
49
  */
50
50
  export declare const createDefaultStyles: CreateStyles;
51
51
  export declare const MergeStyles: (styles: Styles, overrides?: StyleOverrides | undefined) => Styles;
52
+ /**
53
+ * Builds the full `Styles` registry for a theme, optionally merged with
54
+ * consumer style overrides.
55
+ */
56
+ export declare const createStyles: (theme: Theme, overrides?: StyleOverrides) => Styles;
52
57
  export declare const MergeStyleSlice: <T>(base: T, override: unknown) => T;
53
58
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/theme/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EACR,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACp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GAAG,CAAC,KAAK,EAAE,KAAK,KAAK,MAAM,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,YAyChC,CAAC;AAEH,eAAO,MAAM,WAAW,GACpB,QAAQ,MAAM,EACd,YAAW,cAAc,GAAG,SAAc,KAC3C,MAAsC,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,YAAY,GACrB,OAAO,KAAK,EACZ,YAAY,cAAc,KAC3B,MAA4D,CAAC;AAEhE,eAAO,MAAM,eAAe,GAAI,CAAC,EAAE,MAAM,CAAC,EAAE,UAAU,OAAO,KAAG,CACI,CAAC"}
@@ -59,11 +59,6 @@ export declare const DefaultTheme: {
59
59
  warning: string;
60
60
  };
61
61
  spacing: {
62
- screenContentTop: number;
63
- pageHorizontal: number;
64
- pageBottom: number;
65
- pageTop: number;
66
- navigationActionHorizontal: number;
67
62
  large: number;
68
63
  medium: number;
69
64
  small: number;
@@ -82,6 +77,10 @@ export declare const DefaultTheme: {
82
77
  };
83
78
  };
84
79
  };
85
- export declare function MergeTheme(overrides?: ThemeOverrides): Theme;
86
- export declare function MergeTheme(first: ThemeOverrides, second: ThemeOverrides | undefined): Theme;
80
+ export declare const MergeTheme: <E extends object = Record<never, never>>(first?: ThemeOverrides & E, second?: ThemeOverrides & DeepPartial<NoInfer<E>>) => Theme & E;
81
+ /**
82
+ * Builds a complete theme from a single set of base overrides, optionally
83
+ * deriving additional app-owned tokens from the resolved base theme.
84
+ */
85
+ export declare const createTheme: <E extends object = Record<never, never>>(overrides?: ThemeOverrides, createExtras?: (theme: Theme) => E) => Theme & E;
87
86
  //# sourceMappingURL=theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,MAAM,KAAK,GAAG,OAAO,YAAY,CAAC;AAExC,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4GxB,CAAC;AAEF,wBAAgB,UAAU,CAAC,SAAS,CAAC,EAAE,cAAc,GAAG,KAAK,CAAC;AAC9D,wBAAgB,UAAU,CACtB,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,cAAc,GAAG,SAAS,GACnC,KAAK,CAAC"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,MAAM,KAAK,GAAG,OAAO,YAAY,CAAC;AAExC,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgGxB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAC9D,QAAQ,cAAc,GAAG,CAAC,EAC1B,SAAS,cAAc,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAClD,KAAK,GAAG,CAAoE,CAAC;AAEhF;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAC/D,YAAY,cAAc,EAC1B,eAAe,CAAC,KAAK,EAAE,KAAK,KAAK,CAAC,KACnC,KAAK,GAAG,CAMV,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reillymc/react-native-components",
3
- "version": "0.11.5",
3
+ "version": "0.11.7",
4
4
  "description": "A collection of React Native components and resources",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -32,7 +32,8 @@
32
32
  "./package.json": "./package.json"
33
33
  },
34
34
  "files": [
35
- "lib/**/*"
35
+ "lib/**/*",
36
+ "THIRD_PARTY_NOTICES.md"
36
37
  ],
37
38
  "scripts": {
38
39
  "clean": "rm -rf ./lib",