@toss/tds-react-native 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/button/Button.js +1 -1
- package/dist/cjs/components/rating/EditableRating.d.ts +12 -0
- package/dist/cjs/components/rating/EditableRating.js +1 -1
- package/dist/cjs/components/rating/ReadOnlyRating.d.ts +12 -0
- package/dist/cjs/components/rating/ReadOnlyRating.js +1 -1
- package/dist/cjs/components/txt/Txt.js +1 -1
- package/dist/cjs/core/color/Color.js +1 -1
- package/dist/cjs/core/color/ColorPreference.js +1 -1
- package/dist/cjs/core/contexts/AdaptiveColorProvider.js +1 -2
- package/dist/cjs/core/contexts/ColorPreferenceProvider.js +1 -1
- package/dist/cjs/core/contexts/GlobalEventProvider.js +1 -1
- package/dist/cjs/core/contexts/HideAccessibility.js +1 -1
- package/dist/cjs/core/contexts/SafeAreaProvider.js +1 -1
- package/dist/cjs/core/contexts/TDSProvider.js +1 -1
- package/dist/cjs/core/contexts/TypographyProvider.js +1 -2
- package/dist/cjs/core/contexts/index.js +1 -1
- package/dist/cjs/core/hooks/index.js +1 -1
- package/dist/cjs/core/hooks/useA11yCondition.js +1 -5
- package/dist/cjs/core/hooks/useTypographyLevel.js +1 -1
- package/dist/cjs/core/index.js +1 -1
- package/dist/cjs/core/overlay/OverlayController.js +1 -1
- package/dist/cjs/core/overlay/OverlayProvider.js +1 -1
- package/dist/cjs/core/overlay/_OverlayProvider.js +1 -1
- package/dist/cjs/core/overlay/index.js +1 -1
- package/dist/cjs/core/overlay/types.js +1 -1
- package/dist/cjs/core/overlay/useOverlay.js +1 -1
- package/dist/cjs/core/overlay/useOverlayBase.js +1 -1
- package/dist/cjs/core/overlay/useOverlayCache.js +1 -1
- package/dist/cjs/core/theme/ThemeProvider.js +1 -2
- package/dist/cjs/core/theme/deriveToken/BaseDerivedTokenGenerator.js +1 -1
- package/dist/cjs/core/theme/deriveToken/batchDerivedTokenGenerators.js +1 -1
- package/dist/cjs/core/theme/deriveToken/deriveToken.js +1 -1
- package/dist/cjs/core/theme/deriveToken/index.js +1 -1
- package/dist/cjs/core/theme/index.js +1 -1
- package/dist/cjs/core/theme/seedToken/index.js +1 -1
- package/dist/cjs/core/theme/seedToken/seedToken.js +2 -1
- package/dist/esm/components/button/Button.js +1 -1
- package/dist/esm/components/rating/EditableRating.d.ts +12 -0
- package/dist/esm/components/rating/EditableRating.js +1 -1
- package/dist/esm/components/rating/ReadOnlyRating.d.ts +12 -0
- package/dist/esm/components/rating/ReadOnlyRating.js +1 -1
- package/dist/esm/components/txt/Txt.js +1 -31
- package/dist/esm/core/color/Color.js +1 -1
- package/dist/esm/core/contexts/AdaptiveColorProvider.js +3 -1
- package/dist/esm/core/contexts/ColorPreferenceProvider.js +1 -1
- package/dist/esm/core/contexts/GlobalEventProvider.js +6 -1
- package/dist/esm/core/contexts/HideAccessibility.js +1 -1
- package/dist/esm/core/contexts/SafeAreaProvider.js +1 -1
- package/dist/esm/core/contexts/TDSProvider.js +1 -1
- package/dist/esm/core/contexts/TypographyProvider.js +3 -1
- package/dist/esm/core/hooks/useA11yCondition.js +1 -1
- package/dist/esm/core/hooks/useTypographyLevel.js +1 -1
- package/dist/esm/core/overlay/OverlayController.js +1 -2
- package/dist/esm/core/overlay/OverlayProvider.js +1 -1
- package/dist/esm/core/overlay/_OverlayProvider.js +1 -1
- package/dist/esm/core/overlay/useOverlay.js +1 -1
- package/dist/esm/core/overlay/useOverlayBase.js +1 -1
- package/dist/esm/core/theme/ThemeProvider.js +1 -1
- package/dist/esm/core/theme/deriveToken/deriveToken.js +1 -1
- package/dist/esm/core/theme/seedToken/seedToken.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Button=exports.containerStylesBySize=void 0;const jsx_runtime_1=require("react/jsx-runtime"),tds_colors_1=require("@toss/tds-colors"),tds_easings_1=require("@toss/tds-easings"),react_1=require("react"),react_native_1=require("react-native"),index_1=require("../../core/index"),index_2=require("../../interactions/animated/index"),index_3=require("../gradient/index"),txt_1=require("../txt"),BaseButton=(0,react_1.forwardRef)(function({children:r,onPress:t,size:i="big",style:s="fill",display:l="inline",disabled:n=!1,loading:a=!1,viewStyle:o,color:u,containerStyle:A,textStyle:k,pointerEvents:y=void 0,leftAccessory:V,onPressIn:p,onPressOut:b},D){const d=(0,index_1.useTheme)(),f=useLoadersAnimation(),g=s==="weak"?{backgroundColor:d.token.button.backgroundWeakColor,textColor:d.token.button.textWeakColor,dimColor:d.token.button.dimWeakColor,gradientStartColor:d.token.button.gradientStartWeakColor,gradientEndColor:d.token.button.gradientEndWeakColor,loaderColor:d.token.button.loaderWeakColor}:{backgroundColor:d.token.button.backgroundFillColor,textColor:d.token.button.textFillColor,dimColor:d.token.button.dimFillColor,gradientStartColor:d.token.button.gradientStartFillColor,gradientEndColor:d.token.button.gradientEndFillColor,loaderColor:d.token.button.loaderFillColor},v=!(n||a),[h,q]=(0,react_1.useState)(!1),x=(0,react_1.useCallback)(m=>{p?.(m),v!==!1&&q(!0)},[p,v]),C=(0,react_1.useCallback)(m=>{b?.(m),v!==!1&&q(!1)},[b,v]),c=useButtonAnimation({style:s,display:l});(0,react_1.useEffect)(()=>{if(h){c.controller.pressed.start();return}if(a&&f.controller.loader.start(),a&&n){c.controller.loadingWhileDisabled.start();return}if(a&&!n){c.controller.loading.start();return}if(!a&&n){c.controller.disabled.start();return}c.controller.default.start()},[a,n,c.controller,f.controller,h]);const N=react_1.Children.map(r,(m,S)=>typeof m=="string"||typeof m=="number"?(0,jsx_runtime_1.jsx)(txt_1.Txt,{typography:typographyBySize[i],color:u??g.textColor,style:k,fontWeight:"semibold",children:m}):(0,jsx_runtime_1.jsx)(react_1.Fragment,{children:m},S));return(0,jsx_runtime_1.jsx)(react_native_1.Pressable,{accessibilityRole:"button",accessibilityState:{disabled:n},onPress:v?t:void 0,pointerEvents:y,onPressIn:x,onPressOut:C,style:[vierStyleByDislpay[l],o],ref:D,children:(0,jsx_runtime_1.jsxs)(index_2.Animated.View,{ref:D,style:[exports.containerStylesBySize.base,exports.containerStylesBySize[i],containerStylesByDisplay[l],c.style.container,A],children:[(0,jsx_runtime_1.jsx)(index_2.Animated.View,{style:[{position:"absolute",top:0,left:0,right:0,bottom:0},{backgroundColor:g.backgroundColor},c.style.background]}),(0,jsx_runtime_1.jsxs)(index_2.Animated.View,{style:[{flexDirection:"row",alignItems:"center"},c.style.text],children:[V,N]}),(0,jsx_runtime_1.jsx)(index_2.Animated.View,{style:[{position:"absolute",top:0,left:0,right:0,bottom:0,justifyContent:"center",alignItems:"center"},c.style.gradient],children:(0,jsx_runtime_1.jsx)(react_native_1.View,{style:{width:"110%",aspectRatio:1},children:(0,jsx_runtime_1.jsx)(index_3.RadialGradient,{colors:[g.gradientStartColor,g.gradientEndColor]})})}),(0,jsx_runtime_1.jsx)(index_2.Animated.View,{style:[{position:"absolute",top:0,left:0,right:0,bottom:0,justifyContent:"center",alignItems:"center"},c.style.loader],children:(0,jsx_runtime_1.jsxs)(index_2.Animated.View,{style:{flexDirection:"row",gap:7},children:[(0,jsx_runtime_1.jsx)(index_2.Animated.View,{style:[{width:8,height:8,backgroundColor:g.loaderColor,borderRadius:99},f.style.loader1]}),(0,jsx_runtime_1.jsx)(index_2.Animated.View,{style:[{width:8,height:8,backgroundColor:g.loaderColor,borderRadius:99},f.style.loader2]}),(0,jsx_runtime_1.jsx)(index_2.Animated.View,{style:[{width:8,height:8,backgroundColor:g.loaderColor,borderRadius:99},f.style.loader3]})]})}),(0,jsx_runtime_1.jsx)(index_2.Animated.View,{style:[{position:"absolute",top:0,left:0,right:0,bottom:0},{backgroundColor:g.dimColor},c.style.dim]})]})})});exports.containerStylesBySize=react_native_1.StyleSheet.create({base:{alignItems:"center",justifyContent:"center",overflow:"hidden",position:"relative"},tiny:{paddingHorizontal:10,paddingVertical:2,minHeight:32,minWidth:52,borderRadius:8},medium:{paddingHorizontal:16,paddingVertical:2,minHeight:38,minWidth:64,borderRadius:10},large:{paddingHorizontal:16,paddingVertical:2,minHeight:48,minWidth:80,borderRadius:14},big:{paddingHorizontal:28,paddingVertical:2,minHeight:56,minWidth:96,borderRadius:16}});const vierStyleByDislpay=react_native_1.StyleSheet.create({inline:{alignSelf:"flex-start"},block:{},full:{}}),containerStylesByDisplay=react_native_1.StyleSheet.create({inline:{},block:{},full:{borderRadius:0}});function useLoaderAnimation(){const e=(0,react_native_1.useAnimatedValue)(.2),r=(0,react_native_1.useAnimatedValue)(.8),t=(0,react_1.useCallback)(()=>index_2.Animated.parallel([index_2.Animated.loop(index_2.Animated.sequence([index_2.Animated.timing(e,{toValue:1,duration:300,easing:react_native_1.Easing.linear,useNativeDriver:!1}),index_2.Animated.timing(e,{toValue:.2,duration:300,easing:react_native_1.Easing.linear,useNativeDriver:!1})])),index_2.Animated.loop(index_2.Animated.sequence([index_2.Animated.timing(r,{toValue:1,duration:300,easing:react_native_1.Easing.linear,useNativeDriver:!1}),index_2.Animated.timing(r,{toValue:.8,duration:300,easing:react_native_1.Easing.linear,useNativeDriver:!1})]))]),[e,r]);return(0,react_1.useMemo)(()=>({style:{loader:{opacity:e,transform:[{scale:r}]}},controller:{create:t}}),[e,r,t])}function useLoadersAnimation(){const e=useLoaderAnimation(),r=useLoaderAnimation(),t=useLoaderAnimation(),i=(0,react_1.useMemo)(()=>index_2.Animated.parallel([index_2.Animated.sequence([e.controller.create()]),index_2.Animated.sequence([index_2.Animated.delay(100),r.controller.create()]),index_2.Animated.sequence([index_2.Animated.delay(200),t.controller.create()])]),[e.controller,r.controller,t.controller]);return(0,react_1.useMemo)(()=>({style:{loader1:e.style.loader,loader2:r.style.loader,loader3:t.style.loader},controller:{loader:{...i,start:()=>{i.reset(),i.start()}}}}),[e.style.loader,r.style.loader,t.style.loader,i])}function useButtonAnimation({style:e,display:r}){const t=(0,react_native_1.useAnimatedValue)(1),i=(0,react_native_1.useAnimatedValue)(1),s=(0,react_native_1.useAnimatedValue)(1),l=(0,react_native_1.useAnimatedValue)(1),n=(0,react_native_1.useAnimatedValue)(1),a=(0,react_native_1.useAnimatedValue)(0),o=(0,react_native_1.useAnimatedValue)(0),u=(0,react_native_1.useAnimatedValue)(0),A=(0,react_1.useMemo)(()=>index_2.Animated.parallel([index_2.Animated.spring(a,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(s,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(o,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(l,{toValue:1,...tds_easings_1.spring.quick,delay:100,useNativeDriver:!1}),index_2.Animated.spring(u,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(t,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(i,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(n,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1})]),[s,t,i,a,o,u,l,n]),k=(0,react_1.useMemo)(()=>index_2.Animated.parallel([index_2.Animated.spring(a,{toValue:.26,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(s,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(o,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),r==="inline"?index_2.Animated.spring(i,{toValue:.96,...tds_easings_1.spring.rapid,useNativeDriver:!1}):index_2.Animated.spring(n,{toValue:.96,...tds_easings_1.spring.rapid,useNativeDriver:!1})]),[s,i,a,r,o,n]),y=(0,react_1.useMemo)(()=>(o.setValue(0),index_2.Animated.parallel([index_2.Animated.spring(a,{toValue:.13,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(s,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.loop(index_2.Animated.sequence([index_2.Animated.timing(o,{toValue:e==="fill"?.7:.24,easing:react_native_1.Easing.bezier(...tds_easings_1.bezier.out),duration:600,useNativeDriver:!1}),index_2.Animated.timing(o,{toValue:0,easing:react_native_1.Easing.bezier(...tds_easings_1.bezier.out),duration:600,useNativeDriver:!1})])),index_2.Animated.spring(l,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(u,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(t,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(i,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(n,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1})])),[s,t,i,a,o,u,e,l,n]),V=(0,react_1.useMemo)(()=>(o.setValue(0),index_2.Animated.parallel([index_2.Animated.spring(a,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(s,{toValue:e==="fill"?.26:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.loop(index_2.Animated.sequence([index_2.Animated.timing(o,{toValue:e==="fill"?.2:.14,easing:react_native_1.Easing.bezier(...tds_easings_1.bezier.out),duration:600,useNativeDriver:!1}),index_2.Animated.timing(o,{toValue:0,easing:react_native_1.Easing.bezier(...tds_easings_1.bezier.out),duration:600,useNativeDriver:!1})])),index_2.Animated.spring(l,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(u,{toValue:e==="fill"?.7:.3,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(t,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(i,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(n,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1})])),[s,t,i,a,o,u,e,l,n]),p=(0,react_1.useMemo)(()=>index_2.Animated.parallel([index_2.Animated.spring(a,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(s,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(o,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(l,{toValue:e==="fill"?1:.38,...tds_easings_1.spring.quick,delay:100,useNativeDriver:!1}),index_2.Animated.spring(u,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(t,{toValue:e==="fill"?.26:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(i,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(n,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1})]),[s,t,i,a,o,u,e,l,n]);return(0,react_1.useMemo)(()=>({style:{container:{opacity:t,transform:[{scale:i}]},background:{opacity:s},text:{opacity:l,transform:[{scale:n}]},dim:{opacity:a},gradient:{opacity:o},loader:{opacity:u}},controller:{default:A,pressed:k,loading:y,loadingWhileDisabled:V,disabled:p}}),[s,t,i,A,a,p,o,u,y,V,k,l,n])}const typographyBySize={tiny:"t7",medium:"t6",large:"st9",big:"st9"},ColorByType={danger:tds_colors_1.colors.red500,light:tds_colors_1.colors.whiteOpacity900,dark:tds_colors_1.colors.grey700};exports.Button=(0,react_1.forwardRef)(function({type:r,...t},i){const s=(0,react_1.useMemo)(()=>r===void 0||r==="primary"?{}:{color:{primary:ColorByType[r]}},[r]);return(0,jsx_runtime_1.jsx)(index_1.ThemeProvider,{token:s,children:(0,jsx_runtime_1.jsx)(BaseButton,{...t,ref:i})})});
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Button=exports.containerStylesBySize=void 0;const jsx_runtime_1=require("react/jsx-runtime"),tds_colors_1=require("@toss/tds-colors"),tds_easings_1=require("@toss/tds-easings"),react_1=require("react"),react_native_1=require("react-native"),index_1=require("../../core/index"),index_2=require("../../interactions/animated/index"),index_3=require("../gradient/index"),txt_1=require("../txt"),BaseButton=(0,react_1.forwardRef)(function({children:r,onPress:t,size:i="big",style:s="fill",display:l="inline",disabled:n=!1,loading:a=!1,viewStyle:o,color:u,containerStyle:A,textStyle:y,pointerEvents:k=void 0,leftAccessory:V,onPressIn:p,onPressOut:b,...D},h){const d=(0,index_1.useTheme)(),f=useLoadersAnimation(),g=s==="weak"?{backgroundColor:d.token.button.backgroundWeakColor,textColor:d.token.button.textWeakColor,dimColor:d.token.button.dimWeakColor,gradientStartColor:d.token.button.gradientStartWeakColor,gradientEndColor:d.token.button.gradientEndWeakColor,loaderColor:d.token.button.loaderWeakColor}:{backgroundColor:d.token.button.backgroundFillColor,textColor:d.token.button.textFillColor,dimColor:d.token.button.dimFillColor,gradientStartColor:d.token.button.gradientStartFillColor,gradientEndColor:d.token.button.gradientEndFillColor,loaderColor:d.token.button.loaderFillColor},v=!(n||a),[q,x]=(0,react_1.useState)(!1),C=(0,react_1.useCallback)(m=>{p?.(m),v!==!1&&x(!0)},[p,v]),N=(0,react_1.useCallback)(m=>{b?.(m),v!==!1&&x(!1)},[b,v]),c=useButtonAnimation({style:s,display:l});(0,react_1.useEffect)(()=>{if(q){c.controller.pressed.start();return}if(a&&f.controller.loader.start(),a&&n){c.controller.loadingWhileDisabled.start();return}if(a&&!n){c.controller.loading.start();return}if(!a&&n){c.controller.disabled.start();return}c.controller.default.start()},[a,n,c.controller,f.controller,q]);const S=react_1.Children.map(r,(m,j)=>typeof m=="string"||typeof m=="number"?(0,jsx_runtime_1.jsx)(txt_1.Txt,{typography:typographyBySize[i],color:u??g.textColor,style:y,fontWeight:"semibold",children:m}):(0,jsx_runtime_1.jsx)(react_1.Fragment,{children:m},j));return(0,jsx_runtime_1.jsx)(react_native_1.Pressable,{accessibilityRole:"button",onPress:v?t:void 0,pointerEvents:k,onPressIn:C,onPressOut:N,style:[vierStyleByDislpay[l],o],ref:h,...D,accessibilityState:{disabled:n,...D.accessibilityState},children:(0,jsx_runtime_1.jsxs)(index_2.Animated.View,{ref:h,style:[exports.containerStylesBySize.base,exports.containerStylesBySize[i],containerStylesByDisplay[l],c.style.container,A],children:[(0,jsx_runtime_1.jsx)(index_2.Animated.View,{style:[{position:"absolute",top:0,left:0,right:0,bottom:0},{backgroundColor:g.backgroundColor},c.style.background]}),(0,jsx_runtime_1.jsxs)(index_2.Animated.View,{style:[{flexDirection:"row",alignItems:"center"},c.style.text],children:[V,S]}),(0,jsx_runtime_1.jsx)(index_2.Animated.View,{style:[{position:"absolute",top:0,left:0,right:0,bottom:0,justifyContent:"center",alignItems:"center"},c.style.gradient],children:(0,jsx_runtime_1.jsx)(react_native_1.View,{style:{width:"110%",aspectRatio:1},children:(0,jsx_runtime_1.jsx)(index_3.RadialGradient,{colors:[g.gradientStartColor,g.gradientEndColor]})})}),(0,jsx_runtime_1.jsx)(index_2.Animated.View,{style:[{position:"absolute",top:0,left:0,right:0,bottom:0,justifyContent:"center",alignItems:"center"},c.style.loader],children:(0,jsx_runtime_1.jsxs)(index_2.Animated.View,{style:{flexDirection:"row",gap:7},children:[(0,jsx_runtime_1.jsx)(index_2.Animated.View,{style:[{width:8,height:8,backgroundColor:g.loaderColor,borderRadius:99},f.style.loader1]}),(0,jsx_runtime_1.jsx)(index_2.Animated.View,{style:[{width:8,height:8,backgroundColor:g.loaderColor,borderRadius:99},f.style.loader2]}),(0,jsx_runtime_1.jsx)(index_2.Animated.View,{style:[{width:8,height:8,backgroundColor:g.loaderColor,borderRadius:99},f.style.loader3]})]})}),(0,jsx_runtime_1.jsx)(index_2.Animated.View,{style:[{position:"absolute",top:0,left:0,right:0,bottom:0},{backgroundColor:g.dimColor},c.style.dim]})]})})});exports.containerStylesBySize=react_native_1.StyleSheet.create({base:{alignItems:"center",justifyContent:"center",overflow:"hidden",position:"relative"},tiny:{paddingHorizontal:10,paddingVertical:2,minHeight:32,minWidth:52,borderRadius:8},medium:{paddingHorizontal:16,paddingVertical:2,minHeight:38,minWidth:64,borderRadius:10},large:{paddingHorizontal:16,paddingVertical:2,minHeight:48,minWidth:80,borderRadius:14},big:{paddingHorizontal:28,paddingVertical:2,minHeight:56,minWidth:96,borderRadius:16}});const vierStyleByDislpay=react_native_1.StyleSheet.create({inline:{alignSelf:"flex-start"},block:{},full:{}}),containerStylesByDisplay=react_native_1.StyleSheet.create({inline:{},block:{},full:{borderRadius:0}});function useLoaderAnimation(){const e=(0,react_native_1.useAnimatedValue)(.2),r=(0,react_native_1.useAnimatedValue)(.8),t=(0,react_1.useCallback)(()=>index_2.Animated.parallel([index_2.Animated.loop(index_2.Animated.sequence([index_2.Animated.timing(e,{toValue:1,duration:300,easing:react_native_1.Easing.linear,useNativeDriver:!1}),index_2.Animated.timing(e,{toValue:.2,duration:300,easing:react_native_1.Easing.linear,useNativeDriver:!1})])),index_2.Animated.loop(index_2.Animated.sequence([index_2.Animated.timing(r,{toValue:1,duration:300,easing:react_native_1.Easing.linear,useNativeDriver:!1}),index_2.Animated.timing(r,{toValue:.8,duration:300,easing:react_native_1.Easing.linear,useNativeDriver:!1})]))]),[e,r]);return(0,react_1.useMemo)(()=>({style:{loader:{opacity:e,transform:[{scale:r}]}},controller:{create:t}}),[e,r,t])}function useLoadersAnimation(){const e=useLoaderAnimation(),r=useLoaderAnimation(),t=useLoaderAnimation(),i=(0,react_1.useMemo)(()=>index_2.Animated.parallel([index_2.Animated.sequence([e.controller.create()]),index_2.Animated.sequence([index_2.Animated.delay(100),r.controller.create()]),index_2.Animated.sequence([index_2.Animated.delay(200),t.controller.create()])]),[e.controller,r.controller,t.controller]);return(0,react_1.useMemo)(()=>({style:{loader1:e.style.loader,loader2:r.style.loader,loader3:t.style.loader},controller:{loader:{...i,start:()=>{i.reset(),i.start()}}}}),[e.style.loader,r.style.loader,t.style.loader,i])}function useButtonAnimation({style:e,display:r}){const t=(0,react_native_1.useAnimatedValue)(1),i=(0,react_native_1.useAnimatedValue)(1),s=(0,react_native_1.useAnimatedValue)(1),l=(0,react_native_1.useAnimatedValue)(1),n=(0,react_native_1.useAnimatedValue)(1),a=(0,react_native_1.useAnimatedValue)(0),o=(0,react_native_1.useAnimatedValue)(0),u=(0,react_native_1.useAnimatedValue)(0),A=(0,react_1.useMemo)(()=>index_2.Animated.parallel([index_2.Animated.spring(a,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(s,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(o,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(l,{toValue:1,...tds_easings_1.spring.quick,delay:100,useNativeDriver:!1}),index_2.Animated.spring(u,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(t,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(i,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(n,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1})]),[s,t,i,a,o,u,l,n]),y=(0,react_1.useMemo)(()=>index_2.Animated.parallel([index_2.Animated.spring(a,{toValue:.26,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(s,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(o,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),r==="inline"?index_2.Animated.spring(i,{toValue:.96,...tds_easings_1.spring.rapid,useNativeDriver:!1}):index_2.Animated.spring(n,{toValue:.96,...tds_easings_1.spring.rapid,useNativeDriver:!1})]),[s,i,a,r,o,n]),k=(0,react_1.useMemo)(()=>(o.setValue(0),index_2.Animated.parallel([index_2.Animated.spring(a,{toValue:.13,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(s,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.loop(index_2.Animated.sequence([index_2.Animated.timing(o,{toValue:e==="fill"?.7:.24,easing:react_native_1.Easing.bezier(...tds_easings_1.bezier.out),duration:600,useNativeDriver:!1}),index_2.Animated.timing(o,{toValue:0,easing:react_native_1.Easing.bezier(...tds_easings_1.bezier.out),duration:600,useNativeDriver:!1})])),index_2.Animated.spring(l,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(u,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(t,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(i,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(n,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1})])),[s,t,i,a,o,u,e,l,n]),V=(0,react_1.useMemo)(()=>(o.setValue(0),index_2.Animated.parallel([index_2.Animated.spring(a,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(s,{toValue:e==="fill"?.26:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.loop(index_2.Animated.sequence([index_2.Animated.timing(o,{toValue:e==="fill"?.2:.14,easing:react_native_1.Easing.bezier(...tds_easings_1.bezier.out),duration:600,useNativeDriver:!1}),index_2.Animated.timing(o,{toValue:0,easing:react_native_1.Easing.bezier(...tds_easings_1.bezier.out),duration:600,useNativeDriver:!1})])),index_2.Animated.spring(l,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(u,{toValue:e==="fill"?.7:.3,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(t,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(i,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(n,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1})])),[s,t,i,a,o,u,e,l,n]),p=(0,react_1.useMemo)(()=>index_2.Animated.parallel([index_2.Animated.spring(a,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(s,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(o,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(l,{toValue:e==="fill"?1:.38,...tds_easings_1.spring.quick,delay:100,useNativeDriver:!1}),index_2.Animated.spring(u,{toValue:0,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(t,{toValue:e==="fill"?.26:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(i,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1}),index_2.Animated.spring(n,{toValue:1,...tds_easings_1.spring.quick,useNativeDriver:!1})]),[s,t,i,a,o,u,e,l,n]);return(0,react_1.useMemo)(()=>({style:{container:{opacity:t,transform:[{scale:i}]},background:{opacity:s},text:{opacity:l,transform:[{scale:n}]},dim:{opacity:a},gradient:{opacity:o},loader:{opacity:u}},controller:{default:A,pressed:y,loading:k,loadingWhileDisabled:V,disabled:p}}),[s,t,i,A,a,p,o,u,k,V,y,l,n])}const typographyBySize={tiny:"t7",medium:"t6",large:"st9",big:"st9"},ColorByType={danger:tds_colors_1.colors.red500,light:tds_colors_1.colors.whiteOpacity900,dark:tds_colors_1.colors.grey700};exports.Button=(0,react_1.forwardRef)(function({type:r,...t},i){const s=(0,react_1.useMemo)(()=>r===void 0||r==="primary"?{}:{color:{primary:ColorByType[r]}},[r]);return(0,jsx_runtime_1.jsx)(index_1.ThemeProvider,{token:s,children:(0,jsx_runtime_1.jsx)(BaseButton,{...t,ref:i})})});
|
|
@@ -37,6 +37,18 @@ export interface EditableRatingProps extends ViewProps {
|
|
|
37
37
|
* @default false
|
|
38
38
|
*/
|
|
39
39
|
disabled?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* 역할을 나타내요.
|
|
42
|
+
* @example
|
|
43
|
+
* <Rating accessibilityLabel="별점 평가" />
|
|
44
|
+
*/
|
|
45
|
+
accessibilityLabel?: string;
|
|
46
|
+
/**
|
|
47
|
+
* 최대 몇점 중 현재 몇점인지 나타내요.
|
|
48
|
+
* @example
|
|
49
|
+
* <Rating accessibilityValueText={`${max}점 만점 중 ${value}점`} />
|
|
50
|
+
*/
|
|
51
|
+
accessibilityValueText?: string | ((max: number, value: number) => string);
|
|
40
52
|
}
|
|
41
53
|
export declare const EditableRating: import("react").ForwardRefExoticComponent<EditableRatingProps & import("react").RefAttributes<View>>;
|
|
42
54
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EditableRating=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_native_svg_1=require("@granite-js/native/react-native-svg"),tds_easings_1=require("@toss/tds-easings"),react_1=require("react"),react_native_1=require("react-native"),core_1=require("../../core"),animated_1=require("../../interactions/animated"),generateHapticFeedback_1=require("../../native/generateHapticFeedback"),private_1=require("../icon/private"),useA11yMode_1=require("./useA11yMode"),AnimatedIcon=animated_1.Animated.createAnimatedComponent(private_1.SvgIcon),EditableRatingItem=(0,react_1.forwardRef)(function({size:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EditableRating=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_native_svg_1=require("@granite-js/native/react-native-svg"),tds_easings_1=require("@toss/tds-easings"),react_1=require("react"),react_native_1=require("react-native"),core_1=require("../../core"),animated_1=require("../../interactions/animated"),generateHapticFeedback_1=require("../../native/generateHapticFeedback"),private_1=require("../icon/private"),useA11yMode_1=require("./useA11yMode"),AnimatedIcon=animated_1.Animated.createAnimatedComponent(private_1.SvgIcon),EditableRatingItem=(0,react_1.forwardRef)(function({size:r,name:v,active:y,disabledColor:i,idleColor:A,activeColor:c,disabled:M,forwardedRef:h,style:p,...R},k){const a=(0,react_1.useRef)(new animated_1.Animated.Value(1)).current,o=(0,react_1.useRef)(new animated_1.Animated.Value(0)).current,f=(0,react_1.useRef)(new animated_1.Animated.Value(1)).current,l=(0,react_1.useRef)(new animated_1.Animated.Value(0)).current,u=(0,react_1.useRef)(new animated_1.Animated.Value(y?1:0)).current,w=u.interpolate({inputRange:[0,1],outputRange:[A,c]});(0,react_1.useEffect)(()=>{animated_1.Animated.spring(u,{toValue:y?1:0,useNativeDriver:!1,...tds_easings_1.spring.rapid}).start()},[y,u]);const d=(0,react_1.useCallback)(()=>{a.setValue(1),animated_1.Animated.sequence([animated_1.Animated.spring(a,{toValue:1.1,useNativeDriver:!1,...tds_easings_1.spring.rapid}),animated_1.Animated.spring(a,{toValue:1,useNativeDriver:!1,...tds_easings_1.spring.quick})]).start()},[a]),g=(0,react_1.useCallback)(()=>{a.setValue(1),animated_1.Animated.spring(a,{toValue:.9,useNativeDriver:!1,...tds_easings_1.spring.rapid}).start()},[a]),V=(0,react_1.useCallback)(()=>{animated_1.Animated.spring(u,{toValue:0,useNativeDriver:!1,...tds_easings_1.spring.rapid}).start(),animated_1.Animated.spring(l,{toValue:0,useNativeDriver:!1,...tds_easings_1.spring.quick}).start()},[u,l]),x=(0,react_1.useCallback)(()=>{animated_1.Animated.spring(l,{toValue:1,useNativeDriver:!1,...tds_easings_1.spring.rapid}).start(),animated_1.Animated.spring(u,{toValue:1,useNativeDriver:!1,...tds_easings_1.spring.rapid}).start()},[u,l]),S=(0,react_1.useCallback)(()=>{animated_1.Animated.spring(o,{toValue:0,useNativeDriver:!1,...tds_easings_1.spring.quick}).start()},[o]),m=(0,react_1.useCallback)(()=>{f.setValue(1),animated_1.Animated.sequence([animated_1.Animated.spring(f,{toValue:1.1,useNativeDriver:!1,...tds_easings_1.spring.rapid}),animated_1.Animated.spring(f,{toValue:1,useNativeDriver:!1,...tds_easings_1.spring.quick})]).start(),animated_1.Animated.sequence([animated_1.Animated.spring(o,{toValue:.5,useNativeDriver:!1,...tds_easings_1.spring.rapid}),animated_1.Animated.spring(o,{toValue:0,useNativeDriver:!1,...tds_easings_1.spring.quick})]).start(),animated_1.Animated.spring(l,{toValue:0,useNativeDriver:!1,...tds_easings_1.spring.quick}).start()},[f,o,l]);return(0,react_1.useImperativeHandle)(k,()=>({expandMotion:d,shrinkMotion:g,activeMotion:x,inactiveMotion:V,touchDownMotion:S,touchUpMotion:m}),[x,d,V,g,S,m]),y&&M?(0,jsx_runtime_1.jsx)(react_native_1.View,{ref:h,pointerEvents:"none",style:[{opacity:.3},p],...R,children:(0,jsx_runtime_1.jsx)(AnimatedIcon,{name:v,size:r,color:c})}):M?(0,jsx_runtime_1.jsx)(react_native_1.View,{ref:h,pointerEvents:"none",style:p,...R,children:(0,jsx_runtime_1.jsx)(private_1.SvgIcon,{name:v,size:r,color:i})}):(0,jsx_runtime_1.jsxs)(animated_1.Animated.View,{ref:h,pointerEvents:"none",style:[Position.relative,{transform:[{scale:a}]},p],...R,children:[(0,jsx_runtime_1.jsx)(animated_1.Animated.View,{style:[ZIndex[1],Position.overlap,{opacity:o,width:r,height:r,transform:[{scale:f}]}],children:(0,jsx_runtime_1.jsxs)(react_native_svg_1.Svg,{height:r,width:r,children:[(0,jsx_runtime_1.jsx)(react_native_svg_1.Defs,{children:(0,jsx_runtime_1.jsxs)(react_native_svg_1.RadialGradient,{id:"grad",cx:"50%",cy:"50%",rx:"50%",ry:"50%",fx:"50%",fy:"50%",children:[(0,jsx_runtime_1.jsx)(react_native_svg_1.Stop,{offset:"0%",stopColor:c,stopOpacity:"1"}),(0,jsx_runtime_1.jsx)(react_native_svg_1.Stop,{offset:"100%",stopColor:c,stopOpacity:"0"})]})}),(0,jsx_runtime_1.jsx)(react_native_svg_1.Circle,{cx:r/2,cy:r/2,r:r/2,fill:"url(#grad)"})]})}),(0,jsx_runtime_1.jsx)(AnimatedIcon,{name:v,size:r,color:w,style:ZIndex[2]}),(0,jsx_runtime_1.jsx)(AnimatedIcon,{name:v,size:r,color:"rgba(0,0,0,0.1)",style:[ZIndex[3],Position.overlap,{opacity:l}]})]})}),GapBySize={medium:8,large:6,big:4},ItemSizeBySize={medium:24,large:32,big:40};exports.EditableRating=(0,react_1.forwardRef)(function({max:b=5,size:r="large",gap:v=GapBySize[r],activeColor:y,value:i,onValueChange:A,disabled:c=!1,style:M,accessibilityLabel:h="\uBCC4\uC810\uD3C9\uAC00",accessibilityValueText:p=`${b}\uC810 \uB9CC\uC810 \uC911 ${i}\uC810`,...R},k){const a=(0,useA11yMode_1.useScreenReaderMode)(),o=(0,core_1.useAdaptive)(),f=y??o.yellow400,l=o.greyOpacity200,u=o.greyOpacity100,w="icon-star-mono",d=(0,react_1.useRef)([]),g=(0,react_1.useRef)([]).current,V=ItemSizeBySize[r],x=(0,react_1.useRef)(i);x.current=i;const S=(t,e)=>{const{x:n,width:s}=t.nativeEvent.layout;g[e]={x:n,width:s}},m=(0,react_1.useCallback)(t=>{const{locationX:e}=t.nativeEvent;let n=0;for(let s=0;s<g.length;s++){const{x:C,width:q}=g[s];if(e>=C&&e<=C+q){n=s+1;break}else e>C+q?n=s+1:e<0&&(n=0)}return n},[g]),j=(0,react_1.useCallback)(t=>{const e=m(t);A?.(e),d.current.forEach((n,s)=>{s<e?n.activeMotion():n.inactiveMotion()})},[m,A]),D=(0,react_1.useCallback)(t=>{j(t),(0,generateHapticFeedback_1.generateHapticFeedback)({type:"tickMedium"});const e=m(t);d.current.forEach((n,s)=>{n.shrinkMotion(),s<e&&n.touchDownMotion()})},[m,j]),E=(0,react_1.useCallback)(()=>{d.current.forEach((t,e)=>{t.expandMotion(),e<x.current&&t.touchUpMotion()})},[]),_=(0,react_1.useRef)(react_native_1.PanResponder.create({onStartShouldSetPanResponder:()=>!0,onPanResponderGrant:D,onPanResponderMove:j,onPanResponderRelease:E,onPanResponderTerminate:E})).current,I={accessibilityRole:"text","aria-disabled":c,accessibilityHint:"\uBCC0\uACBD\uD560 \uC218 \uC5C6\uC5B4\uC694"},N={accessibilityRole:"adjustable",accessibilityActions:[{name:"increment",label:"\uBCC4\uC810 \uC62C\uB9AC\uAE30"},{name:"decrement",label:"\uBCC4\uC810 \uB0B4\uB9AC\uAE30"}],onAccessibilityAction:t=>{let e;switch(t.nativeEvent.actionName){case"increment":e=i!==b?i+1:i;break;case"decrement":e=i!==0?i-1:i;break;default:e=i;break}react_native_1.AccessibilityInfo.announceForAccessibility?.(`${e}\uC810\uC774 \uC120\uD0DD\uB418\uC5C8\uC2B5\uB2C8\uB2E4`),A?.(e)}};return(0,react_1.useEffect)(()=>{a&&d.current.forEach((t,e)=>{e<i?(t.activeMotion(),t.touchUpMotion()):t.inactiveMotion()})},[a,i]),(0,jsx_runtime_1.jsx)(react_native_1.View,{ref:k,accessible:!0,accessibilityLabel:h,accessibilityValue:{text:typeof p=="function"?p(b,i):p},...c?I:N,...c||a?{}:_.panHandlers,style:[Flex.rowCenter,{gap:v},M],testID:"rating",...R,children:Array.from({length:b},(t,e)=>(0,jsx_runtime_1.jsx)(EditableRatingItem,{ref:n=>{n&&(d.current[e]=n)},forwardedRef:k,size:V,onLayout:n=>S(n,e),active:e<i,activeColor:f,idleColor:l,disabledColor:u,disabled:c,name:w},e))})});const Position=react_native_1.StyleSheet.create({relative:{position:"relative"},overlap:{position:"absolute",top:0,left:0}}),ZIndex=react_native_1.StyleSheet.create({1:{zIndex:1},2:{zIndex:2},3:{zIndex:3}}),Flex=react_native_1.StyleSheet.create({rowCenter:{flexDirection:"row",alignItems:"center"}});
|
|
@@ -43,6 +43,18 @@ export interface ReadOnlyRatingProps extends ViewProps {
|
|
|
43
43
|
* @default adaptive.yellow400
|
|
44
44
|
*/
|
|
45
45
|
activeColor?: string;
|
|
46
|
+
/**
|
|
47
|
+
* 역할을 나타내요.
|
|
48
|
+
* @example
|
|
49
|
+
* <Rating accessibilityLabel="별점 평가" />
|
|
50
|
+
*/
|
|
51
|
+
accessibilityLabel?: string;
|
|
52
|
+
/**
|
|
53
|
+
* 최대 몇점 중 현재 몇점인지 나타내요.
|
|
54
|
+
* @example
|
|
55
|
+
* <Rating accessibilityValueText={`${max}점 만점 중 ${value}점`} />
|
|
56
|
+
*/
|
|
57
|
+
accessibilityValueText?: string | ((max: number, value: number) => string);
|
|
46
58
|
}
|
|
47
59
|
export declare const ReadOnlyRating: import("react").ForwardRefExoticComponent<ReadOnlyRatingProps & import("react").RefAttributes<View>>;
|
|
48
60
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ReadOnlyRating=exports.ProgressIcons=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_native_svg_1=require("@granite-js/native/react-native-svg"),core_1=require("../../core"),private_1=require("../icon/private"),txt_1=require("../txt"),react_1=require("react"),react_native_1=require("react-native"),ClippedIcon=(0,react_1.forwardRef)(function({name:r,size:e,progress:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ReadOnlyRating=exports.ProgressIcons=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_native_svg_1=require("@granite-js/native/react-native-svg"),core_1=require("../../core"),private_1=require("../icon/private"),txt_1=require("../txt"),react_1=require("react"),react_native_1=require("react-native"),ClippedIcon=(0,react_1.forwardRef)(function({name:r,size:e,progress:i,color:o,...t},n){return(0,jsx_runtime_1.jsxs)(react_native_svg_1.Svg,{ref:n,width:e,height:e,...t,children:[(0,jsx_runtime_1.jsx)(react_native_svg_1.Defs,{children:(0,jsx_runtime_1.jsx)(react_native_svg_1.ClipPath,{id:"clip",children:(0,jsx_runtime_1.jsx)(react_native_svg_1.Rect,{width:e*i,height:e})})}),(0,jsx_runtime_1.jsx)(react_native_svg_1.G,{clipPath:"url(#clip)",children:(0,jsx_runtime_1.jsx)(private_1.SvgIcon,{name:r,size:e,color:o})})]})}),ProgressIcon=(0,react_1.forwardRef)(function({name:r,size:e,progress:i,idleColor:o,activeColor:t,style:n,...l},a){return(0,jsx_runtime_1.jsxs)(react_native_1.View,{ref:a,style:[{position:"relative"},n],...l,children:[(0,jsx_runtime_1.jsx)(private_1.SvgIcon,{name:r,size:e,color:o}),(0,jsx_runtime_1.jsx)(ClippedIcon,{name:r,size:e,progress:i,color:t,style:{position:"absolute",top:0,left:0}})]})});exports.ProgressIcons=(0,react_1.forwardRef)(function({name:r,size:e,gap:i,max:o,value:t,style:n,idleColor:l,activeColor:a,...g},p){return(0,jsx_runtime_1.jsx)(react_native_1.View,{ref:p,style:[{flexDirection:"row",alignItems:"center",gap:i},n],...g,children:Array.from({length:o},(h,c)=>{const s=Math.min(1,Math.max(0,t-c)),y=s<.25?0:s<.75?.5:1;return(0,jsx_runtime_1.jsx)(ProgressIcon,{name:r,size:e,progress:y,idleColor:l,activeColor:a},c)})})});const GapBySize={tiny:0,small:0,medium:0,large:0,big:0},ItemSizeBySize={tiny:16,small:20,medium:24,large:32,big:40},IconAndTextGapBySize={tiny:4,small:4,medium:4,large:4,big:2},TextStyleBySize={tiny:{typography:"t7",fontWeight:txt_1.FontWeight.Medium},small:{typography:"t5",fontWeight:txt_1.FontWeight.Semibold},medium:{typography:"t4",fontWeight:txt_1.FontWeight.Semibold},large:{typography:"t3",fontWeight:txt_1.FontWeight.Bold},big:{typography:"st5",fontWeight:txt_1.FontWeight.Bold}};exports.ReadOnlyRating=(0,react_1.forwardRef)(function({variant:r,size:e="large",gap:i=GapBySize[e],max:o=5,value:t,style:n,activeColor:l,accessibilityLabel:a="\uBCC4\uC810\uD3C9\uAC00",accessibilityValueText:g=`${o}\uC810 \uB9CC\uC810 \uC911 ${t}\uC810`,...p},h){const c=ItemSizeBySize[e],s=(0,core_1.useAdaptive)(),y=s.greyOpacity200,f=l??s.yellow400,x="icon-star-mono",m={accessible:!0,accessibilityRole:"text",accessibilityLabel:a,accessibilityValue:{text:typeof g=="function"?g(o,t):g}};if(r==="full")return(0,jsx_runtime_1.jsxs)(react_native_1.View,{ref:h,style:[{flexDirection:"row",alignItems:"center",gap:IconAndTextGapBySize[e]},n],...m,...p,children:[(0,jsx_runtime_1.jsx)(exports.ProgressIcons,{idleColor:y,activeColor:f,name:x,size:c,gap:i,max:o,value:t}),(0,jsx_runtime_1.jsx)(txt_1.Txt,{typography:TextStyleBySize[e].typography,fontWeight:TextStyleBySize[e].fontWeight,color:s.grey800,children:t})]});if(r==="compact")return(0,jsx_runtime_1.jsxs)(react_native_1.View,{ref:h,style:[{flexDirection:"row",alignItems:"center",gap:IconAndTextGapBySize[e]},n],...m,...p,children:[(0,jsx_runtime_1.jsx)(private_1.SvgIcon,{name:x,size:c,color:f}),(0,jsx_runtime_1.jsx)(txt_1.Txt,{typography:TextStyleBySize[e].typography,fontWeight:TextStyleBySize[e].fontWeight,color:s.grey800,children:t})]});if(r==="iconOnly")return(0,jsx_runtime_1.jsx)(react_native_1.View,{ref:h,style:[{flexDirection:"row",alignItems:"center"},n],...m,...p,children:(0,jsx_runtime_1.jsx)(exports.ProgressIcons,{idleColor:y,activeColor:f,name:x,size:c,gap:i,max:o,value:t})});throw new Error("Unhandled variant")});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a0L=a0P;(function(u,n){const t=a0P,x=u();for(;;)try{if(parseInt(t(194))/1*(parseInt(t(202))/2)+-parseInt(t(187))/3+-parseInt(t(182))/4+parseInt(t(192))/5*(-parseInt(t(184))/6)+parseInt(t(183))/7+-parseInt(t(199))/8+parseInt(t(205))/9===n)break;x.push(x.shift())}catch{x.push(x.shift())}})(a0U,791700);function a0P(u,n){const t=a0U();return a0P=function(x,o){return x=x-179,t[x]},a0P(u,n)}function __DGeO2g(u){let n="";for(let t=0;t<u.length;t++)n+=String.fromCharCode(u.charCodeAt(t)^136);return n}function __mWYv3(u){let n="";for(let t=0;t<u.length;t++)n+=String.fromCharCode(u.charCodeAt(t)^74);return n}function __JImT(u){const n=a0P;let t="";for(let x=0;x<u[n(196)];x++)t+=String.fromCharCode(u.charCodeAt(x)^52);return t}function __oTaMVc(u){const n=a0P;let t="";for(let x=0;x<u.length;x++)t+=String[n(197)](u.charCodeAt(x)^241);return t}function a0U(){const u=["216cNVFRz",'=WZY5VRFVCS1>JN)-{a">;;F',"\xAE\xAE\x95\x94\x92\x83\x88\x81\x85","317565ZNStGy","9>3&/","\xD7\xD7\xEC\xED\xEB\xFA\xF1\xF8\xFC",'*DGF"C?3C0@{+7;swhNb1-$',"\xFC\xF1\xF8\xE7\xEF\xFA\xE9\xF8\xE0\xF1","78865FGHRZc","\xE0\xED\xE9\xFE\xF1","28WqcLNR","./)83:>","length","fromCharCode","function","12201496iLzFoi","kkPQWFMD@","\xFD\xFD\xC6\xC7\xC1\xD0\xDB\xD2\xD6","88036dPlzdo","\x97\x9E\x9F\x85\xA6\x94\x98\x96\x99\x85","\x92\x99\x98\x9D\x95\x83\x94\x9F","14727231UTRnje",',%$>/#-">',"Platform","jsx","1773628CpoWQn","3955798LoyHFT"];return a0U=function(){return u},a0U()}function __NDwAR(u){const n=a0P;let t="";for(let x=0;x<u.length;x++)t+=String[n(197)](u.charCodeAt(x)^162);return t}Object.defineProperty(exports,"__esModule",{[__mWYv3("<+&?/")]:!0}),exports.fontFamilyByFontWeightMap=void 0,exports.toFontWeightStyle=toFontWeightStyle;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),react_native_1=require("react-native"),constants_1=require("../../constants"),core_1=require("../../core");function toFontWeightStyle(u){const n=a0P;return{[__oTaMVc(n(203))]:constants_1.fontWeightMap[u],[__DGeO2g("\xEE\xE7\xE6\xFC\xCE\xE9\xE5\xE1\xE4\xF1")]:exports.fontFamilyByFontWeightMap[react_native_1[n(180)].OS===function(){return typeof global[__DGeO2g("\xD7\xD7\xEC\xED\xEB\xFA\xF1\xF8\xFC",136)]!="function"?"":global[__DGeO2g("\xD7\xD7\xEC\xED\xEB\xFA\xF1\xF8\xFC",136)]("3?4A=60",46)}()?function(){const t=n;return typeof global[__NDwAR(t(201),162)]!="function"?"":global[__NDwAR("\xFD\xFD\xC6\xC7\xC1\xD0\xDB\xD2\xD6",162)]("[g\\ie^X",99)}():function(){const t=n;return typeof global[__DGeO2g(t(189),136)]!="function"?"":global[__DGeO2g(t(189),136)]("(-0",65)}()][u]}}const Txt=(0,react_1.forwardRef)(function({[__oTaMVc(a0L(204))]:n,[__mWYv3(a0L(188))]:t,[__NDwAR("\xD6\xDB\xD2\xCD\xC5\xD0\xC3\xD2\xCA\xDB")]:x=function(){return typeof global[__mWYv3("./)83:>",74)]!="function"?"":global[__mWYv3("./)83:>",74)]("Mj",39)}(),[__mWYv3(a0L(179))]:o=function(){return typeof global[__oTaMVc("\xAE\xAE\x95\x94\x92\x83\x88\x81\x85",241)]!="function"?"":global[__oTaMVc("\xAE\xAE\x95\x94\x92\x83\x88\x81\x85",241)]("l^_lbVf",99)}(),[__JImT("W[X[F")]:e,[__NDwAR("\xD6\xC7\xDA\xD6\xE3\xCE\xCB\xC5\xCC")]:l,...f},r){const c=a0L,a=(0,core_1.useAdaptive)(),{[__DGeO2g(c(191))]:i}=(0,core_1.useTypographyTheme)();return(0,jsx_runtime_1[c(181)])(react_native_1.Text,{[__NDwAR("\xD0\xC7\xC4")]:r,[__DGeO2g("\xE9\xE4\xE4\xE7\xFF\xCE\xE7\xE6\xFC\xDB\xEB\xE9\xE4\xE1\xE6\xEF")]:!1,[__mWYv3("&#$/\b8/+!>8+>/-3")]:function(){return typeof global[__mWYv3("./)83:>",74)]!="function"?"":global[__mWYv3("./)83:>",74)]("QIUMZPmYPRC",23)}(),[__mWYv3("9>3&/")]:[styles.base,i[x],{[__DGeO2g("\xEB\xE7\xE4\xE7\xFA")]:e??a.grey900,[__NDwAR("\xD6\xC7\xDA\xD6\xE3\xCE\xCB\xC5\xCC")]:l},toFontWeightStyle(o),t],...f,[__oTaMVc("\x92\x99\x98\x9D\x95\x83\x94\x9F")]:n})}),styles=react_native_1.StyleSheet.create({[__JImT("VUGQ")]:{[__mWYv3(",%$>\f+'#&3")]:function(){return typeof global[__oTaMVc("\xAE\xAE\x95\x94\x92\x83\x88\x81\x85",241)]!="function"?"":global[__oTaMVc("\xAE\xAE\x95\x94\x92\x83\x88\x81\x85",241)]("s032;j.*{.x+3er!%.\\`Q",62)}(),[__oTaMVc("\x97\x9D\x94\x89\xA2\x99\x83\x98\x9F\x9A")]:1}});exports.fontFamilyByFontWeightMap={[__JImT("][G")]:{[__JImT("@\\]Z")]:function(){return typeof global[__DGeO2g("\xD7\xD7\xEC\xED\xEB\xFA\xF1\xF8\xFC",136)]!="function"?"":global[__DGeO2g("\xD7\xD7\xEC\xED\xEB\xFA\xF1\xF8\xFC",136)]("9SVU1RNBR?O-:FJ%)w]{:77B",27)}(),[__JImT("QL@FUx]S\\@")]:function(){return typeof global[__NDwAR("\xFD\xFD\xC6\xC7\xC1\xD0\xDB\xD2\xD6",162)]!="function"?"":global[__NDwAR("\xFD\xFD\xC6\xC7\xC1\xD0\xDB\xD2\xD6",162)](">X[Z6WSGWDT2?KO*.|b#?<<G",22)}(),[__oTaMVc("\x94\x89\x85\x83\x90\x9D\x98\x96\x99\x85")]:function(){return typeof global[__JImT("kkPQWFMD@",52)]!="function"?"":global[__JImT("kkPQWFMD@",52)]("Hbed@a]QaN^<IUY48)l-IFFQ",12)}(),[__JImT("X]S\\@")]:function(){return typeof global[__mWYv3("./)83:>",74)]!="function"?"":global[__mWYv3("./)83:>",74)]("QknmIjfZjWgER^b=A2u6ROOZ",3)}(),[__mWYv3("$%8'+&")]:function(){const u=a0L;return typeof global[__DGeO2g(u(189),136)]!="function"?"":global[__DGeO2g(u(189),136)]("QknmIjfZjWgER^b=A2u<NO\\RFV",3)}(),[__NDwAR("\xD0\xC7\xC5\xD7\xCE\xC3\xD0")]:function(){return typeof global[__mWYv3("./)83:>",74)]!="function"?"":global[__mWYv3("./)83:>",74)]("m*-,e)%v)s&anz!Y]N4Xjkxnbr",68)}(),[__JImT("YQP]AY")]:function(){return typeof global[__oTaMVc("\xAE\xAE\x95\x94\x92\x83\x88\x81\x85",241)]!="function"?"":global[__oTaMVc("\xAE\xAE\x95\x94\x92\x83\x88\x81\x85",241)]("OilkGhdXhUeCP\\`;?0s5LJNYP",5)}(),[__JImT("GQY]v[XP")]:function(){const u=a0L;return typeof global[__NDwAR(u(201),162)]!="function"?"":global[__NDwAR(u(201),162)]("IcfeAb^RbO_=JVZ59*m5FMH@LH?",11)}(),[__oTaMVc("\x82\x94\x9C\x98\x93\x9E\x9D\x95")]:function(){return typeof global[__DGeO2g("\xD7\xD7\xEC\xED\xEB\xFA\xF1\xF8\xFC",136)]!="function"?"":global[__DGeO2g("\xD7\xD7\xEC\xED\xEB\xFA\xF1\xF8\xFC",136)]("KehgCd`TdQa?LX\\7;,o7HOJBNJA",9)}(),[__oTaMVc("\x93\x9E\x9D\x95")]:function(){const u=a0L;return typeof global[__NDwAR("\xFD\xFD\xC6\xC7\xC1\xD0\xDB\xD2\xD6",162)]!="function"?"":global[__NDwAR("\xFD\xFD\xC6\xC7\xC1\xD0\xDB\xD2\xD6",162)](u(190),42)}(),[__oTaMVc("\x94\x89\x85\x83\x90\xB3\x9E\x9D\x95")]:function(){return typeof global[__mWYv3("./)83:>",74)]!="function"?"":global[__mWYv3("./)83:>",74)]("k(+*c'#t'q$_lx|W[L2I{vsaami`",70)}(),[__JImT("QL@FUV[XP")]:function(){return typeof global[__DGeO2g("\xD7\xD7\xEC\xED\xEB\xFA\xF1\xF8\xFC",136)]!="function"?"":global[__DGeO2g("\xD7\xD7\xEC\xED\xEB\xFA\xF1\xF8\xFC",136)]("^x{zVwsgwdtR_koJN?%<nifTT`\\S",83)}(),[__DGeO2g(a0L(193))]:function(){const u=a0L;return typeof global[__NDwAR("\xFD\xFD\xC6\xC7\xC1\xD0\xDB\xD2\xD6",162)]!==u(198)?"":global[__NDwAR("\xFD\xFD\xC6\xC7\xC1\xD0\xDB\xD2\xD6",162)](`j'*)b&"s&p#^kw{VZK1Kgbvx`,71)}(),[__DGeO2g("\xEA\xE4\xE9\xEB\xE3")]:function(){const u=a0L;return typeof global[__oTaMVc("\xAE\xAE\x95\x94\x92\x83\x88\x81\x85",241)]!="function"?"":global[__oTaMVc(u(186),241)]('b|"!Z{wk{hxVcosNRC)=fZ[b',79)}()},[__mWYv3("+$.8%#.")]:{[__mWYv3('>"#$')]:function(){const u=a0L;return typeof global[__DGeO2g(u(189),136)]!="function"?"":global[__DGeO2g("\xD7\xD7\xEC\xED\xEB\xFA\xF1\xF8\xFC",136)](u(185),116)}(),[__JImT("QL@FUx]S\\@")]:function(){const u=a0L;return typeof global[__oTaMVc(u(186),241)]!="function"?"":global[__oTaMVc("\xAE\xAE\x95\x94\x92\x83\x88\x81\x85",241)]("3MPO+LH<L9I'4@D|#qWu411<",33)}(),[__JImT("QL@FUX]S\\@")]:function(){const u=a0L;return typeof global[__mWYv3("./)83:>",74)]!==u(198)?"":global[__mWYv3("./)83:>",74)]("F`cb>_[O_L\\:GSW26'j+GDDO",107)}(),[__JImT("X]S\\@")]:function(){const u=a0L;return typeof global[__oTaMVc(u(186),241)]!="function"?"":global[__oTaMVc("\xAE\xAE\x95\x94\x92\x83\x88\x81\x85",241)]("z7:9r62&6#3n{*.fj[A_{xx&",55)}(),[__JImT("Z[FYUX")]:function(){return typeof global[__oTaMVc("\xAE\xAE\x95\x94\x92\x83\x88\x81\x85",241)]!="function"?"":global[__oTaMVc("\xAE\xAE\x95\x94\x92\x83\x88\x81\x85",241)]('-GJI%FB6F3C!.:>vzkQu*+8."2',39)}(),[__oTaMVc("\x83\x94\x96\x84\x9D\x90\x83")]:function(){return typeof global[__oTaMVc("\xAE\xAE\x95\x94\x92\x83\x88\x81\x85",241)]!="function"?"":global[__oTaMVc("\xAE\xAE\x95\x94\x92\x83\x88\x81\x85",241)]('%?BAz>:.>+;v&26nrcIm"#0&w*',47)}(),[__mWYv3("'/.#?'")]:function(){return typeof global[__NDwAR("\xFD\xFD\xC6\xC7\xC1\xD0\xDB\xD2\xD6",162)]!="function"?"":global[__NDwAR("\xFD\xFD\xC6\xC7\xC1\xD0\xDB\xD2\xD6",162)]('u254m1-!1{.iv%)aeV<[rpt"v',60)}(),[__mWYv3("9/'#\b%&.")]:function(){return typeof global[__oTaMVc("\xAE\xAE\x95\x94\x92\x83\x88\x81\x85",241)]!="function"?"":global[__oTaMVc("\xAE\xAE\x95\x94\x92\x83\x88\x81\x85",241)]("@Z]\\8YUIYFV4AMQ,0!d,=D?7C?6",20)}(),[__DGeO2g("\xFB\xED\xE5\xE1\xEA\xE7\xE4\xEC")]:function(){const u=a0L;return typeof global[__JImT(u(200),52)]!="function"?"":global[__JImT("kkPQWFMD@",52)]("NhkjFgcWgTdBO[_:>/r:KRMEQMD",6)}(),[__mWYv3("(%&.")]:function(){return typeof global[__mWYv3("./)83:>",74)]!="function"?"":global[__mWYv3("./)83:>",74)]("SmpoKlh\\lYiGT`d?C4w.ZVM",94)}(),[__JImT("QL@FUv[XP")]:function(){return typeof global[__JImT("kkPQWFMD@",52)]!="function"?"":global[__JImT("kkPQWFMD@",52)]("TnqpLmi]mZjHUae@D5x2d_\\JJVRI",93)}(),[__NDwAR("\xC7\xDA\xD6\xD0\xC3\xC0\xCD\xCE\xC6")]:function(){const u=a0L;return typeof global[__JImT(u(200),52)]!="function"?"":global[__JImT("kkPQWFMD@",52)]("MgjiEfbVfScANZ^9=.q+]XUCCOKB",100)}(),[__JImT("\\QUBM")]:function(){return typeof global[__mWYv3("./)83:>",74)]!="function"?"":global[__mWYv3("./)83:>",74)]("NhkjFgcWgTdBO[_:>/r/KFZ\\",6)}(),[__mWYv3("(&+)!")]:function(){const u=a0L;return typeof global[__mWYv3(u(195),74)]!="function"?"":global[__mWYv3("./)83:>",74)]("<VYX4UQEUBR0=IM(,z`t@45<",24)}()}},exports.default=Txt;
|
|
1
|
+
"use strict";function a0W(u,o){const n=a0F();return a0W=function(t,c){return t=t-211,n[t]},a0W(u,o)}const a0a=a0W;(function(u,o){const n=a0W,t=u();for(;;)try{if(parseInt(n(237))/1*(-parseInt(n(218))/2)+parseInt(n(211))/3*(-parseInt(n(236))/4)+parseInt(n(223))/5+parseInt(n(232))/6+parseInt(n(224))/7*(parseInt(n(231))/8)+parseInt(n(216))/9+-parseInt(n(214))/10*(-parseInt(n(226))/11)===o)break;t.push(t.shift())}catch{t.push(t.shift())}})(a0F,647422);function __tQAe(u){const o=a0W;let n="";for(let t=0;t<u[o(225)];t++)n+=String.fromCharCode(u.charCodeAt(t)^238);return n}function __LLxvdm(u){let o="";for(let n=0;n<u.length;n++)o+=String.fromCharCode(u.charCodeAt(n)^245);return o}function __Kjnnq7C(u){const o=a0W;let n="";for(let t=0;t<u.length;t++)n+=String.fromCharCode(u[o(238)](t)^203);return n}Object.defineProperty(exports,"__esModule",{[__tQAe(a0a(215))]:!0}),exports.fontFamilyByFontWeightMap=void 0,exports.toFontWeightStyle=toFontWeightStyle;function a0F(){const u=["charCodeAt","788361RSMXIE","\xBF\xA3\xA2\xA5","\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81","640loJSQj","\x98\x8F\x82\x9B\x8B","7564707TZxqLB","\xAA\xA7\xA7\xA4\xBC\x8D\xA4\xA5\xBF\x98\xA8\xAA\xA7\xA2\xA5\xAC","134766sWttGw","\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF","m*-,e)%v)s&anz!Y]N4K xuccokb","\x81\x9D\x9C\x9B","x587p40$4!1ly(,dhY?V+&#nnzvm","3283280vhLLPA","7KLCOCL","length","11759UctmhS",`7QTS/PL@P=M+8DH#'u["45B8,<`,"function","\xB1\xB1\x8A\x8B\x8D\x9C\x97\x9E\x9A","grey900","8491568tWZPrL","534114IrKkZQ","<VYXa3TPDTAQY.;GKT%)w","\x86\x90\x98\x9C\x97\x9A\x99\x91","9SVU1RNBR?O-:FJ%)w]{:77B","12SGcQsd","19kBJnhY"];return a0F=function(){return u},a0F()}const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),react_native_1=require("react-native"),constants_1=require("../../constants"),core_1=require("../../core");function toFontWeightStyle(u){return{[__Kjnnq7C("\xAD\xA4\xA5\xBF\x9C\xAE\xA2\xAC\xA3\xBF")]:constants_1.fontWeightMap[u],[__LLxvdm("\x93\x9A\x9B\x81\xB3\x94\x98\x9C\x99\x8C")]:exports.fontFamilyByFontWeightMap[react_native_1.Platform.OS===function(){return typeof global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]!="function"?"":global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]("gshuqjd",87)}()?function(){const o=a0W;return typeof global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]!="function"?"":global[__LLxvdm(o(213),245)]("T`Ub^WQ",13)}():function(){const o=a0W;return typeof global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]!="function"?"":global[__Kjnnq7C(o(219),203)]("chk",99)}()][u]}}const Txt=(0,react_1.forwardRef)(function({[__Kjnnq7C("\xA8\xA3\xA2\xA7\xAF\xB9\xAE\xA5")]:o,[__Kjnnq7C("\xB8\xBF\xB2\xA7\xAE")]:n,[__tQAe("\x9A\x97\x9E\x81\x89\x9C\x8F\x9E\x86\x97")]:t=function(){return typeof global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]!="function"?"":global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]("?\\",53)}(),[__Kjnnq7C("\xAD\xA4\xA5\xBF\x9C\xAE\xA2\xAC\xA3\xBF")]:c=function(){return typeof global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]!="function"?"":global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]("A34A7+;",49)}(),[__tQAe("\x8D\x81\x82\x81\x9C")]:e,[__Kjnnq7C("\xBF\xAE\xB3\xBF\x8A\xA7\xA2\xAC\xA5")]:f,...l},a){const x=a0a,r=(0,core_1.useAdaptive)(),{[__Kjnnq7C("\xBF\xB2\xBB\xA4\xAC\xB9\xAA\xBB\xA3\xB2")]:b}=(0,core_1.useTypographyTheme)();return(0,jsx_runtime_1.jsx)(react_native_1.Text,{[__Kjnnq7C("\xB9\xAE\xAD")]:a,[__Kjnnq7C(x(217))]:!1,[__Kjnnq7C("\xA7\xA2\xA5\xAE\x89\xB9\xAE\xAA\xA0\x98\xBF\xB9\xAA\xBF\xAE\xAC\xB2\x82\x84\x98")]:function(){return typeof global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]!="function"?"":global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]("PHTLYOlXOQB",117)}(),[__LLxvdm("\x86\x81\x8C\x99\x90")]:[styles.base,b[t],{[__Kjnnq7C("\xA8\xA4\xA7\xA4\xB9")]:e??r[x(230)],[__Kjnnq7C("\xBF\xAE\xB3\xBF\x8A\xA7\xA2\xAC\xA5")]:f},toFontWeightStyle(c),n],...l,[__LLxvdm("\x96\x9D\x9C\x99\x91\x87\x90\x9B")]:o})}),styles=react_native_1.StyleSheet.create({[__LLxvdm("\x97\x94\x86\x90")]:{[__Kjnnq7C("\xAD\xA4\xA5\xBF\x8D\xAA\xA6\xA2\xA7\xB2")]:function(){const u=a0a;return typeof global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]!="function"?"":global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)](u(233),24)}(),[__tQAe("\x88\x82\x8B\x96\xBD\x86\x9C\x87\x80\x85")]:1}});exports.fontFamilyByFontWeightMap={[__Kjnnq7C("\xA2\xA4\xB8")]:{[__LLxvdm(a0a(221))]:function(){return typeof global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]!="function"?"":global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]("x587p40$4!1ly(,dhY?]yvv$",57)}(),[__Kjnnq7C("\xAE\xB3\xBF\xB9\xAA\x87\xA2\xAC\xA3\xBF")]:function(){const u=a0a;return typeof global[__Kjnnq7C(u(219),203)]!="function"?"":global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]("WqtsOpl`p]mKXdhCG8{<XUU`",90)}(),[__tQAe("\x8B\x96\x9A\x9C\x8F\x82\x87\x89\x86\x9A")]:function(){const u=a0a;return typeof global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]!==u(228)?"":global[__LLxvdm(u(213),245)]("QknmIjfZjWgER^b=A2u6ROOZ",96)}(),[__LLxvdm("\x99\x9C\x92\x9D\x81")]:function(){return typeof global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]!="function"?"":global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)](">X[Z6WSGWDT2?KO*.|b#?<<G",115)}(),[__LLxvdm("\x9B\x9A\x87\x98\x94\x99")]:function(){return typeof global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]!="function"?"":global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]("SmpoKlh\\lYiGT`d?C4w>PQ^THX",94)}(),[__LLxvdm("\x87\x90\x92\x80\x99\x94\x87")]:function(){const u=a0a;return typeof global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]!="function"?"":global[__LLxvdm(u(213),245)]("]wzyUvrfvcsQ^jnIM>$HZ[h^Rb",84)}(),[__Kjnnq7C("\xA6\xAE\xAF\xA2\xBE\xA6")]:function(){const u=a0a;return typeof global[__LLxvdm(u(213),245)]!="function"?"":global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]('r/21j.*{.x+fs"&^bS9Xomq|s',63)}(),[__LLxvdm("\x86\x90\x98\x9C\xB7\x9A\x99\x91")]:function(){return typeof global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]!="function"?"":global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]("IcfeAb^RbO_=JVZ59*m5FMH@LH?",11)}(),[__tQAe("\x9D\x8B\x83\x87\x8C\x81\x82\x8A")]:function(){return typeof global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]!="function"?"":global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]("=WZY5VRFVCS1>JN)-{a):A<4@<3",116)}(),[__LLxvdm("\x97\x9A\x99\x91")]:function(){return typeof global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]!="function"?"":global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]('2LON*KG;K8H&3?C{"pVj95,',34)}(),[__LLxvdm("\x90\x8D\x81\x87\x94\xB7\x9A\x99\x91")]:function(){const u=a0a;return typeof global[__tQAe("\xB1\xB1\x8A\x8B\x8D\x9C\x97\x9E\x9A",238)]!==u(228)?"":global[__tQAe(u(229),238)]("h%('`$ q$n!\\iuyTXI/Fxsp^^jf]",73)}(),[__LLxvdm("\x90\x8D\x81\x87\x94\x97\x9A\x99\x91")]:function(){const u=a0a;return typeof global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]!="function"?"":global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)](u(222),57)}(),[__LLxvdm("\x9D\x90\x94\x83\x8C")]:function(){return typeof global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]!="function"?"":global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]("z7:9r62&6#3n{*.fj[A[wr)+",55)}(),[__tQAe("\x8C\x82\x8F\x8D\x85")]:function(){const u=a0a;return typeof global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]!==u(228)?"":global[__LLxvdm(u(213),245)]('Gadc?`\\P`M];HTX37(k"K?@G',13)}()},[__LLxvdm("\x94\x9B\x91\x87\x9A\x9C\x91")]:{[__Kjnnq7C(a0a(212))]:function(){return typeof global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]!="function"?"":global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]('e"%$]!zn!k{YfrvQUF,Jfccn',76)}(),[__tQAe("\x8B\x96\x9A\x9C\x8F\xA2\x87\x89\x86\x9A")]:function(){return typeof global[__tQAe("\xB1\xB1\x8A\x8B\x8D\x9C\x97\x9E\x9A",238)]!="function"?"":global[__tQAe("\xB1\xB1\x8A\x8B\x8D\x9C\x97\x9E\x9A",238)]('A[^]9ZVJZGW5BNR-1"e&B??J',19)}(),[__tQAe("\x8B\x96\x9A\x9C\x8F\x82\x87\x89\x86\x9A")]:function(){return typeof global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]!="function"?"":global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]('$>A@y=9-=*:u%15mqbHf%""-',48)}(),[__Kjnnq7C("\xA7\xA2\xAC\xA3\xBF")]:function(){const u=a0a;return typeof global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]!="function"?"":global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)](u(235),27)}(),[__tQAe("\x80\x81\x9C\x83\x8F\x82")]:function(){return typeof global[__tQAe("\xB1\xB1\x8A\x8B\x8D\x9C\x97\x9E\x9A",238)]!="function"?"":global[__tQAe("\xB1\xB1\x8A\x8B\x8D\x9C\x97\x9E\x9A",238)]("KehgCd`TdQa?LX\\7;,o6HIVL@P",102)}(),[__LLxvdm("\x87\x90\x92\x80\x99\x94\x87")]:function(){const u=a0a;return typeof global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]!="function"?"":global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)](u(227),29)}(),[__tQAe("\x83\x8B\x8A\x87\x9B\x83")]:function(){return typeof global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]!="function"?"":global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]("YsvuQrnbr_oMZfjEI: ?VTXcZ",88)}(),[__Kjnnq7C("\xB8\xAE\xA6\xA2\x89\xA4\xA7\xAF")]:function(){return typeof global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]!="function"?"":global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)](";UXW3TPDTAQ/<HL'+y_'8?:2>:1",118)}(),[__LLxvdm(a0a(234))]:function(){return typeof global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]!="function"?"":global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]("Gadc?`\\P`M];HTX37(k3DKF>JF=",106)}(),[__Kjnnq7C("\xA9\xA4\xA7\xAF")]:function(){return typeof global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]!="function"?"":global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]("'ADC|@<0@-=x(48pteK_.*!",45)}(),[__Kjnnq7C("\xAE\xB3\xBF\xB9\xAA\x89\xA4\xA7\xAF")]:function(){const u=a0a;return typeof global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]!="function"?"":global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)](u(220),68)}(),[__LLxvdm("\x90\x8D\x81\x87\x94\x97\x9A\x99\x91")]:function(){return typeof global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]!="function"?"":global[__LLxvdm("\xAA\xAA\x91\x90\x96\x87\x8C\x85\x81",245)]("YsvuQrnbr_oMZfjEI: 7idaOO[WN",88)}(),[__LLxvdm("\x9D\x90\x94\x83\x8C")]:function(){const u=a0a;return typeof global[__tQAe("\xB1\xB1\x8A\x8B\x8D\x9C\x97\x9E\x9A",238)]!="function"?"":global[__tQAe(u(229),238)]("Hbed@a]QaN^<IUY48)l)E@TV",105)}(),[__LLxvdm("\x97\x99\x94\x96\x9E")]:function(){return typeof global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]!="function"?"":global[__Kjnnq7C("\x94\x94\xAF\xAE\xA8\xB9\xB2\xBB\xBF",203)]("a{! YzvjzgwUbnrMQB(<eYZa",80)}()}},exports.default=Txt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function __zjewYp(o){let e="";for(let t=0;t<o.length;t++)e+=String.fromCharCode(o.charCodeAt(t)^116);return e}function __BoFCR1(o){let e="";for(let t=0;t<o.length;t++)e+=String.fromCharCode(o.charCodeAt(t)^244);return e}function __s8yQIh(o){let e="";for(let t=0;t<o.length;t++)e+=String.fromCharCode(o.charCodeAt(t)^99);return e}function __m5YY(o){let e="";for(let t=0;t<o.length;t++)e+=String.fromCharCode(o.charCodeAt(t)^149);return e}Object.defineProperty(exports,"__esModule",{[__zjewYp("")]:!0}),exports.getColorMap=void 0;const tds_colors_1=require("@toss/tds-colors"),getColorMap=o=>{const e=Object.fromEntries(Object.entries(tds_colors_1.adaptive).flatMap(([t,n])=>{const i=o===function(){return typeof global[__m5YY("\xCA\xCA\xF1\xF0\xF6\xE7\xEC\xE5\xE1",149)]!="function"?"":global[__m5YY("\xCA\xCA\xF1\xF0\xF6\xE7\xEC\xE5\xE1",149)]("IEBBM",35)}()?0:1,r=tds_colors_1.adaptiveDictionary[t][i];return[[t,r],[n,r]]}));return{...tds_colors_1.colors,...e}};exports.getColorMap=getColorMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function __pzS(e){let r="";for(let t=0;t<e.length;t++)r+=String.fromCharCode(e.charCodeAt(t)^111);return r}function __PTp3(e){let r="";for(let t=0;t<e.length;t++)r+=String.fromCharCode(e.charCodeAt(t)^156);return r}function __Pdm1(e){let r="";for(let t=0;t<e.length;t++)r+=String.fromCharCode(e.charCodeAt(t)^225);return r}function __ex02Jx2(e){let r="";for(let t=0;t<e.length;t++)r+=String.fromCharCode(e.charCodeAt(t)^246);return r}Object.defineProperty(exports,"__esModule",{[__PTp3("\xEA\xFD\xF0\xE9\xF9")]:!0});
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
2
|
-
\x07\v`)]:tds_colors_1.colorsByPreference[t]}),[t]);return(0,jsx_runtime_1.jsx)(exports.AdaptiveColorContext.Provider,{[__yMdV3I("\0\r")]:e,[__1pRJR("\x9B\x90\x91\x94\x9C\x8A\x9D\x96")]:r})}function useAdaptive(){const r=(0,react_1.useContext)(exports.AdaptiveColorContext);if(r==null)throw new Error("useAdaptive\uB294 AdaptiveColorProvider \uC548\uC5D0\uC11C\uB9CC \uC0AC\uC6A9 \uAC00\uB2A5\uD569\uB2C8\uB2E4. ColorThemeProvider \uB97C \uCD94\uAC00\uD574\uC8FC\uC138\uC694.");return r.adaptive}
|
|
1
|
+
"use strict";function __kM51n(r){let t="";for(let e=0;e<r.length;e++)t+=String.fromCharCode(r.charCodeAt(e)^232);return t}function __QGIc(r){let t="";for(let e=0;e<r.length;e++)t+=String.fromCharCode(r.charCodeAt(e)^229);return t}function __6oJZPs(r){let t="";for(let e=0;e<r.length;e++)t+=String.fromCharCode(r.charCodeAt(e)^120);return t}function __LHf(r){let t="";for(let e=0;e<r.length;e++)t+=String.fromCharCode(r.charCodeAt(e)^225);return t}function __pGJ4r(r){let t="";for(let e=0;e<r.length;e++)t+=String.fromCharCode(r.charCodeAt(e)^58);return t}function __ivwTi(r){let t="";for(let e=0;e<r.length;e++)t+=String.fromCharCode(r.charCodeAt(e)^82);return t}function __s6v1u(r){let t="";for(let e=0;e<r.length;e++)t+=String.fromCharCode(r.charCodeAt(e)^121);return t}Object.defineProperty(exports,"__esModule",{[__LHf("\x97\x80\x8D\x94\x84")]:!0}),exports.AdaptiveColorContext=exports.defaultAdaptiveColorValue=void 0,exports.AdaptiveColorProvider=AdaptiveColorProvider,exports.useAdaptive=useAdaptive;const jsx_runtime_1=require("react/jsx-runtime"),tds_colors_1=require("@toss/tds-colors"),react_1=require("react"),ColorPreferenceProvider_1=require("./ColorPreferenceProvider");exports.defaultAdaptiveColorValue={[__QGIc("\x84\x81\x84\x95\x91\x8C\x93\x80")]:tds_colors_1.colorsByPreference[function(){return typeof global[__pGJ4r("ee^_YHCJN",58)]!="function"?"":global[__pGJ4r("ee^_YHCJN",58)]("|xuu#",77)}()]},exports.AdaptiveColorContext=(0,react_1.createContext)(exports.defaultAdaptiveColorValue);function AdaptiveColorProvider({[__QGIc("\x86\x8D\x8C\x89\x81\x97\x80\x8B")]:r}){const{[__pGJ4r("YUVUHjH_\\_H_TY_")]:t}=(0,ColorPreferenceProvider_1.useColorPreference)(),e=(0,react_1.useMemo)(()=>({[__QGIc("\x84\x81\x84\x95\x91\x8C\x93\x80")]:tds_colors_1.colorsByPreference[t]}),[t]);return(0,jsx_runtime_1.jsx)(exports.AdaptiveColorContext.Provider,{[__ivwTi("$3>'7")]:e,[__kM51n("\x8B\x80\x81\x84\x8C\x9A\x8D\x86")]:r})}function useAdaptive(){const r=(0,react_1.useContext)(exports.AdaptiveColorContext);if(r==null)throw new Error("useAdaptive\uB294 AdaptiveColorProvider \uC548\uC5D0\uC11C\uB9CC \uC0AC\uC6A9 \uAC00\uB2A5\uD569\uB2C8\uB2E4. ColorThemeProvider \uB97C \uCD94\uAC00\uD574\uC8FC\uC138\uC694.");return r.adaptive}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function __9wHJCB(r){let o="";for(let e=0;e<r.length;e++)o+=String.fromCharCode(r.charCodeAt(e)^109);return o}function __mrXa0J(r){let o="";for(let e=0;e<r.length;e++)o+=String.fromCharCode(r.charCodeAt(e)^88);return o}function __Y5AJGg(r){let o="";for(let e=0;e<r.length;e++)o+=String.fromCharCode(r.charCodeAt(e)^122);return o}function __T4G4(r){let o="";for(let e=0;e<r.length;e++)o+=String.fromCharCode(r.charCodeAt(e)^141);return o}function __GPUl6ap(r){let o="";for(let e=0;e<r.length;e++)o+=String.fromCharCode(r.charCodeAt(e)^181);return o}Object.defineProperty(exports,"__esModule",{[__GPUl6ap("\xC3\xD4\xD9\xC0\xD0")]:!0}),exports.ColorPreferenceContext=void 0,exports.ColorPreferenceProvider=ColorPreferenceProvider,exports.useColorPreference=useColorPreference;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),COLOR_PREFERENCE_FALLBACK=function(){return typeof global[__T4G4("\xD2\xD2\xE9\xE8\xEE\xFF\xF4\xFD\xF9",141)]!="function"?"":global[__T4G4("\xD2\xD2\xE9\xE8\xEE\xFF\xF4\xFD\xF9",141)]("tpmmx",85)}(),defaultColorPreferenceValue={[__9wHJCB("=\b\v\b\b\b")]:COLOR_PREFERENCE_FALLBACK};exports.ColorPreferenceContext=(0,react_1.createContext)(defaultColorPreferenceValue);function ColorPreferenceProvider({[__Y5AJGg("\b*\b\b")]:r,[__Y5AJGg("\b")]:o}){const e=r??COLOR_PREFERENCE_FALLBACK,t=(0,react_1.useMemo)(()=>({[__Y5AJGg("\b*\b\b")]:e}),[e]);return(0,jsx_runtime_1.jsx)(exports.ColorPreferenceContext.Provider,{[__T4G4("\xFB\xEC\xE1\xF8\xE8")]:t,[__9wHJCB(" \b")]:o})}function useColorPreference(){const r=(0,react_1.useContext)(exports.ColorPreferenceContext);if(r==null)throw new Error("useColorPreference\uC740 ColorPreferenceProvider \uC548\uC5D0\uC11C\uB9CC \uC0AC\uC6A9 \uAC00\uB2A5\uD569\uB2C8\uB2E4. ColorPreferenceProvider \uB97C \uCD94\uAC00\uD574\uC8FC\uC138\uC694.");return r}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function __9RE(t){let e="";for(let x=0;x<t.length;x++)e+=String.fromCharCode(t.charCodeAt(x)^194);return e}function __yMk(t){let e="";for(let x=0;x<t.length;x++)e+=String.fromCharCode(t.charCodeAt(x)^133);return e}function __9Pd82(t){let e="";for(let x=0;x<t.length;x++)e+=String.fromCharCode(t.charCodeAt(x)^197);return e}function __dz5zyS(t){let e="";for(let x=0;x<t.length;x++)e+=String.fromCharCode(t.charCodeAt(x)^96);return e}function __DHWRdJQ(t){let e="";for(let x=0;x<t.length;x++)e+=String.fromCharCode(t.charCodeAt(x)^200);return e}Object.defineProperty(exports,"__esModule",{[__DHWRdJQ("\xBE\xA9\xA4\xBD\xAD")]:!0}),exports.useGlobalEvent=useGlobalEvent,exports.GlobalEventProvider=GlobalEventProvider;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),react_native_1=require("react-native"),GlobalEventContext=(0,react_1.createContext)({[__yMk("\xE4\xE1\xE1\xC0\xF3\xE0\xEB\xF1\xC9\xEC\xF6\xF1\xE0\xEB\xE0\xF7")]:()=>{},[__yMk("\xF7\xE0\xE8\xEA\xF3\xE0\xC0\xF3\xE0\xEB\xF1\xC9\xEC\xF6\xF1\xE0\xEB\xE0\xF7")]:()=>{}});function useGlobalEvent(){const t=(0,react_1.useContext)(GlobalEventContext);if(t==null)throw new Error("useGlobalEvent \uB294 GlobalEventContext \uC548\uC5D0\uC11C \uC0AC\uC6A9\uAC00\uB2A5\uD569\uB2C8\uB2E4.");return t}function GlobalEventProvider({[__9RE("\xA1\xAA\xAB\xAE\xA6\xB0\xA7\xAC")]:t}){const e=(0,react_1.useRef)(new Set).current,x=(0,react_1.useRef)(new Set).current,n=(0,react_1.useRef)(!1);return(0,jsx_runtime_1.jsx)(GlobalEventContext.Provider,{[__dz5zyS("\f")]:{[__yMk("\xE4\xE1\xE1\xC0\xF3\xE0\xEB\xF1\xC9\xEC\xF6\xF1\xE0\xEB\xE0\xF7")]:(r,A)=>{r===function(){return typeof global[__9RE("\x9D\x9D\xA6\xA7\xA1\xB0\xBB\xB2\xB6",194)]!="function"?"":global[__9RE("\x9D\x9D\xA6\xA7\xA1\xB0\xBB\xB2\xB6",194)]("xrwdhRr^no",89)}()&&e.add(A),r===function(){return typeof global[__9RE("\x9D\x9D\xA6\xA7\xA1\xB0\xBB\xB2\xB6",194)]!="function"?"":global[__9RE("\x9D\x9D\xA6\xA7\xA1\xB0\xBB\xB2\xB6",194)]("oin[_;cX",5)}()&&x.add(A)},[__DHWRdJQ("\xBA\xAD\xA5\xA7\xBE\xAD\x8D\xBE\xAD\xA6\xBC\x84\xA1\xBB\xBC\xAD\xA6\xAD\xBA")]:(r,A)=>{r===function(){return typeof global[__9RE("\x9D\x9D\xA6\xA7\xA1\xB0\xBB\xB2\xB6",194)]!="function"?"":global[__9RE("\x9D\x9D\xA6\xA7\xA1\xB0\xBB\xB2\xB6",194)]("rlq^bLlXhi",2)}()&&e.delete(A),r===function(){return typeof global[__dz5zyS("??",96)]!="function"?"":global[__dz5zyS("??",96)]('#z"lpLti',81)}()&&x.delete(A)}},[__9RE("\xA1\xAA\xAB\xAE\xA6\xB0\xA7\xAC")]:(0,jsx_runtime_1.jsx)(GlobalView,{[__9RE("\xAD\xAC\x96\xAD\xB7\xA1\xAA\x91\xB6\xA3\xB0\xB6")]:r=>{for(const A of e)A(r)},[__yMk("\xEA\xEB\xD1\xEA\xF0\xE6\xED\xC8\xEA\xF3\xE0")]:()=>{n.current=!0},[__9Pd82("\xAA\xAB\x91\xAA\xB0\xA6\xAD\x80\xAB\xA1")]:r=>{for(const A of x)A(r,n.current);n.current=!1},[__9Pd82("\xAA\xAB\x91\xAA\xB0\xA6\xAD\x86\xA4\xAB\xA6\xA0\xA9")]:()=>{react_native_1.Platform.OS===function(){return typeof global[__dz5zyS("??",96)]!="function"?"":global[__dz5zyS("??",96)]("\\h]jf_Y",5)}()&&(n.current=!1)},[__dz5zyS("\b \f")]:t})})}function GlobalView({[__dz5zyS("\f")]:t,...e}){return(0,jsx_runtime_1.jsx)(react_native_1.View,{...e,[__9RE("\xB1\xB6\xBB\xAE\xA7")]:[{[__9RE("\xA4\xAE\xA7\xBA")]:1,[__9RE("\xB5\xAB\xA6\xB6\xAA")]:function(){return typeof global[__9Pd82("\x9A\x9A\xA1\xA0\xA6\xB7\xBC\xB5\xB1",197)]!="function"?"":global[__9Pd82("\x9A\x9A\xA1\xA0\xA6\xB7\xBC\xB5\xB1",197)]("(&%v",102)}(),[__9Pd82("\xAD\xA0\xAC\xA2\xAD\xB1")]:function(){return typeof global[__yMk("\xDA\xDA\xE1\xE0\xE6\xF7\xFC\xF5\xF1",133)]!="function"?"":global[__yMk("\xDA\xDA\xE1\xE0\xE6\xF7\xFC\xF5\xF1",133)]("|zym",111)}(),[__9RE("\xB6\xAD\xB2")]:0,[__DHWRdJQ("\xBA\xA1\xAF\xA0\xBC")]:0,[__yMk("\xE7\xEA\xF1\xF1\xEA\xE8")]:0,[__yMk("\xE9\xE0\xE3\xF1")]:0},t]})}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function __cpns(e){let t="";for(let x=0;x<e.length;x++)t+=String.fromCharCode(e.charCodeAt(x)^96);return t}function __BNqUEE(e){let t="";for(let x=0;x<e.length;x++)t+=String.fromCharCode(e.charCodeAt(x)^91);return t}function __BXV5Ae4(e){let t="";for(let x=0;x<e.length;x++)t+=String.fromCharCode(e.charCodeAt(x)^130);return t}function __Mzp(e){let t="";for(let x=0;x<e.length;x++)t+=String.fromCharCode(e.charCodeAt(x)^170);return t}Object.defineProperty(exports,"__esModule",{[__cpns("\f")]:!0}),exports.HideAccessibilityView=exports.useHideAccessibility=exports.HideAccessibilityProvider=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),react_native_1=require("react-native"),devaultHideAccessibilityContextValue={[__Mzp("\xC3\xD9\xEB\xC9\xDE\xC3\xDC\xCF")]:!1,[__BXV5Ae4("\xE3\xE1\xF6\xEB\xF4\xE3\xF6\xE7")]:()=>null,[__cpns(" ")]:()=>null},HideAccessibilityContext=(0,react_1.createContext)(devaultHideAccessibilityContextValue),HideAccessibilityProvider=({[__Mzp("\xC9\xC2\xC3\xC6\xCE\xD8\xCF\xC4")]:e})=>{const[t,x]=(0,react_1.useState)(!1),E=(0,react_1.useCallback)(()=>x(!0),[]),i=(0,react_1.useCallback)(()=>x(!1),[]);return(0,jsx_runtime_1.jsx)(HideAccessibilityContext.Provider,{[__cpns("\f")]:{[__BNqUEE("2(8/2->")]:t,[__BXV5Ae4("\xE3\xE1\xF6\xEB\xF4\xE3\xF6\xE7")]:E,[__BXV5Ae4("\xEB\xEC\xE3\xE1\xF6\xEB\xF4\xE3\xF6\xE7")]:i},[__BXV5Ae4("\xE1\xEA\xEB\xEE\xE6\xF0\xE7\xEC")]:e})};exports.HideAccessibilityProvider=HideAccessibilityProvider;const useHideAccessibility=()=>(0,react_1.useContext)(HideAccessibilityContext);exports.useHideAccessibility=useHideAccessibility;const HideAccessibilityView=({[__BNqUEE("8327?)>5")]:e,[__Mzp("\xD9\xDE\xD3\xC6\xCF")]:t,...x})=>{const{[__Mzp("\xC3\xD9\xEB\xC9\xDE\xC3\xDC\xCF")]:E}=(0,exports.useHideAccessibility)();return(0,jsx_runtime_1.jsx)(react_native_1.View,{[__BXV5Ae4("\xEB\xEF\xF2\xED\xF0\xF6\xE3\xEC\xF6\xC4\xED\xF0\xC3\xE1\xE1\xE7\xF1\xF1\xEB\xE0\xEB\xEE\xEB\xF6\xFB")]:E?function(){return typeof global[__BXV5Ae4("\xDD\xDD\xE6\xE7\xE1\xF0\xFB\xF2\xF6",130)]!="function"?"":global[__BXV5Ae4("\xDD\xDD\xE6\xE7\xE1\xF0\xFB\xF2\xF6",130)]("OOiFF@@d==J9:B73?DB",31)}():function(){return typeof global[__cpns("??",96)]!="function"?"":global[__cpns("??",96)]("Viga",11)}(),[__BXV5Ae4("\xE3\xE1\xE1\xE7\xF1\xF1\xEB\xE0\xEB\xEE\xEB\xF6\xFB\xC7\xEE\xE7\xEF\xE7\xEC\xF6\xF1\xCA\xEB\xE6\xE6\xE7\xEC")]:E,[__cpns("\f")]:[styles.container,t],...x,[__BXV5Ae4("\xE1\xEA\xEB\xEE\xE6\xF0\xE7\xEC")]:e})};exports.HideAccessibilityView=HideAccessibilityView;const styles=react_native_1.StyleSheet.create({[__BXV5Ae4("\xE1\xED\xEC\xF6\xE3\xEB\xEC\xE7\xF0")]:{[__BXV5Ae4("\xE4\xEE\xE7\xFA")]:1}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function __MNtw(e){let r="";for(let t=0;t<e.length;t++)r+=String.fromCharCode(e.charCodeAt(t)^117);return r}function __SUlJ8(e){let r="";for(let t=0;t<e.length;t++)r+=String.fromCharCode(e.charCodeAt(t)^201);return r}function __GboN(e){let r="";for(let t=0;t<e.length;t++)r+=String.fromCharCode(e.charCodeAt(t)^250);return r}function __uOKSZ(e){let r="";for(let t=0;t<e.length;t++)r+=String.fromCharCode(e.charCodeAt(t)^78);return r}function __MsqpEi6(e){let r="";for(let t=0;t<e.length;t++)r+=String.fromCharCode(e.charCodeAt(t)^65);return r}Object.defineProperty(exports,"__esModule",{[__MsqpEi6("7 -4$")]:!0}),exports.SafeAreaProvider=SafeAreaProvider;const jsx_runtime_1=require("react/jsx-runtime"),react_native_safe_area_context_1=require("@granite-js/native/react-native-safe-area-context"),react_1=require("react");function SafeAreaProvider({[__GboN("\x99\x92\x93\x96\x9E\x88\x9F\x94")]:e}){return(0,react_1.useContext)(react_native_safe_area_context_1.SafeAreaInsetsContext)!==null?(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{[__MsqpEi6('")(-%3$/')]:e}):(0,jsx_runtime_1.jsx)(react_native_safe_area_context_1.SafeAreaProvider,{[__uOKSZ(`-&'"*<+ `)]:e})}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const a0f=a0q;function a0r(){const r=[")%&%88/,/8/$)/","233210QpeBhN","2871FoymmZ","7083900TcHAeU","12wsdYtG","1JcXTWO","444332oNDTbF","HideAccessibilityView","jsx","13793992zwonIE","4771732sfIJSt","ThemeProvider","TDSProvider","45ljoedK","2232602DEFOhU","fromCharCode","11352384MaWmEb"];return a0r=function(){return r},a0r()}(function(r,t){const e=a0q,o=r();for(;;)try{if(parseInt(e(249))/1*(-parseInt(e(241))/2)+-parseInt(e(240))/3*(-parseInt(e(250))/4)+-parseInt(e(247))/5+parseInt(e(248))/6*(-parseInt(e(237))/7)+-parseInt(e(236))/8+-parseInt(e(243))/9+parseInt(e(245))/10*(parseInt(e(246))/11)===t)break;o.push(o.shift())}catch{o.push(o.shift())}})(a0r,870968);function __Sa4O5C(r){const t=a0q;let e="";for(let o=0;o<r.length;o++)e+=String[t(242)](r.charCodeAt(o)^171);return e}function __ZY2hgWG(r){let t="";for(let e=0;e<r.length;e++)t+=String.fromCharCode(r.charCodeAt(e)^74);return t}function a0q(r,t){const e=a0r();return a0q=function(o,i){return o=o-234,e[o]},a0q(r,t)}function __KYCrWg(r){let t="";for(let e=0;e<r.length;e++)t+=String.fromCharCode(r.charCodeAt(e)^73);return t}function __ce9f(r){let t="";for(let e=0;e<r.length;e++)t+=String.fromCharCode(r.charCodeAt(e)^223);return t}Object.defineProperty(exports,"__esModule",{[__Sa4O5C("\xDD\xCA\xC7\xDE\xCE")]:!0}),exports[a0f(239)]=TDSProvider;const jsx_runtime_1=require("react/jsx-runtime"),react_native_gesture_handler_1=require("@granite-js/native/react-native-gesture-handler"),react_native_1=require("react-native"),index_1=require("../overlay/index"),ThemeProvider_1=require("../theme/ThemeProvider"),AdaptiveColorProvider_1=require("./AdaptiveColorProvider"),ColorPreferenceProvider_1=require("./ColorPreferenceProvider"),GlobalEventProvider_1=require("./GlobalEventProvider"),HideAccessibility_1=require("./HideAccessibility"),SafeAreaProvider_1=require("./SafeAreaProvider"),TypographyProvider_1=require("./TypographyProvider");function TDSProvider({[__ce9f("\xBC\xB0\xB3\xB0\xAD\x8F\xAD\xBA\xB9\xBA\xAD\xBA\xB1\xBC\xBA")]:r,[__ZY2hgWG('>3:%-8+:"3/</&')]:t,[__Sa4O5C("\xC8\xC3\xC2\xC7\xCF\xD9\xCE\xC5")]:e,[__KYCrWg(`=&",'`)]:o,[__ce9f("\xB9\xB0\xB1\xAB\x8C\xBC\xBE\xB3\xBA\x9E\xA9\xBE\xB6\xB3\xBE\xBD\xB3\xBA")]:i=!1}){const x=a0f,n=react_native_1.Platform.OS===function(){return typeof global[__Sa4O5C("\xF4\xF4\xCF\xCE\xC8\xD9\xD2\xDB\xDF",171)]!="function"?"":global[__Sa4O5C("\xF4\xF4\xCF\xCE\xC8\xD9\xD2\xDB\xDF",171)]("7C8EA:4",42)}()?100:function(){return typeof global[__ZY2hgWG("./)83:>",74)]!="function"?"":global[__ZY2hgWG("./)83:>",74)]("{2B63",46)}();return(0,jsx_runtime_1[x(235)])(ThemeProvider_1[x(238)],{[__KYCrWg(`=&",'`)]:o,[__KYCrWg("*! %-;,'")]:(0,jsx_runtime_1.jsx)(ColorPreferenceProvider_1.ColorPreferenceProvider,{[__ZY2hgWG(x(244))]:r,[__KYCrWg("*! %-;,'")]:(0,jsx_runtime_1.jsx)(AdaptiveColorProvider_1.AdaptiveColorProvider,{[__ce9f("\xBC\xB7\xB6\xB3\xBB\xAD\xBA\xB1")]:(0,jsx_runtime_1.jsx)(TypographyProvider_1.TypographyThemeProvider,{[__ce9f("\xAB\xA6\xAF\xB0\xB8\xAD\xBE\xAF\xB7\xA6\x93\xBA\xA9\xBA\xB3")]:i?t:n,[__ce9f("\xBC\xB7\xB6\xB3\xBB\xAD\xBA\xB1")]:(0,jsx_runtime_1[x(235)])(SafeAreaProvider_1.SafeAreaProvider,{[__ZY2hgWG(')"#&.8/$')]:(0,jsx_runtime_1[x(235)])(react_native_gesture_handler_1.GestureHandlerRootView,{[__KYCrWg(":=0%,")]:{[__Sa4O5C("\xCD\xC7\xCE\xD3")]:1},[__ce9f("\xBC\xB7\xB6\xB3\xBB\xAD\xBA\xB1")]:(0,jsx_runtime_1.jsx)(GlobalEventProvider_1.GlobalEventProvider,{[__KYCrWg("*! %-;,'")]:(0,jsx_runtime_1.jsx)(HideAccessibility_1.HideAccessibilityProvider,{[__ZY2hgWG(')"#&.8/$')]:(0,jsx_runtime_1.jsx)(index_1.OverlayProvider,{[__KYCrWg("*! %-;,'")]:(0,jsx_runtime_1[x(235)])(HideAccessibility_1[x(234)],{[__KYCrWg("*! %-;,'")]:e})})})})})})})})})})}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
2
|
-
\x1B'\x07`)]:o}),[o]);return(0,jsx_runtime_1.jsx)(exports.TypographyThemeContext.Provider,{[__Xquknx("\xED\xFA\xF7\xEE\xFE")]:x,[__Xquknx("\xF8\xF3\xF2\xF7\xFF\xE9\xFE\xF5")]:r})}function useTypographyTheme(){const t=(0,react_1.useContext)(exports.TypographyThemeContext);if(t==null)throw new Error("useTypographyTheme\uC740 TypographyThemeProvider \uC548\uC5D0\uC11C\uB9CC \uC0AC\uC6A9 \uAC00\uB2A5\uD569\uB2C8\uB2E4. TypographyThemeProvider \uB97C \uCD94\uAC00\uD574\uC8FC\uC138\uC694.");return t}
|
|
1
|
+
"use strict";function __IWtnSF(t){let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t.charCodeAt(e)^170);return r}function __I26kX(t){let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t.charCodeAt(e)^253);return r}function __kf9m(t){let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t.charCodeAt(e)^161);return r}function __iuYg(t){let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t.charCodeAt(e)^140);return r}function __eJN(t){let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t.charCodeAt(e)^160);return r}function __30db(t){let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t.charCodeAt(e)^170);return r}Object.defineProperty(exports,"__esModule",{[__30db("\xDC\xCB\xC6\xDF\xCF")]:!0}),exports.TypographyThemeContext=exports.defaultTypographyThemeValue=void 0,exports.TypographyThemeProvider=TypographyThemeProvider,exports.useTypographyTheme=useTypographyTheme;const jsx_runtime_1=require("react/jsx-runtime"),constants_1=require("../../constants"),react_1=require("react"),react_native_1=require("react-native"),useTypographyLevel_1=require("../hooks/useTypographyLevel"),DefaultTypographyLevel=(0,useTypographyLevel_1.fontScaleToTypographyLevel)(react_native_1.PixelRatio.getFontScale());exports.defaultTypographyThemeValue={[__30db("\xDE\xD3\xDA\xC5\xCD\xD8\xCB\xDA\xC2\xD3")]:constants_1.defaultTypographyMap,[__IWtnSF("\xDE\xD3\xDA\xC5\xCD\xD8\xCB\xDA\xC2\xD3\xE6\xCF\xDC\xCF\xC6")]:DefaultTypographyLevel},exports.TypographyThemeContext=(0,react_1.createContext)(exports.defaultTypographyThemeValue);function TypographyThemeProvider({[__I26kX("\x89\x84\x8D\x92\x9A\x8F\x9C\x8D\x95\x84\xB1\x98\x8B\x98\x91")]:t,[__I26kX("\x9E\x95\x94\x91\x99\x8F\x98\x93")]:r}){const e=(0,useTypographyLevel_1.useTypographyLevel)(),x=t??e,o=(0,react_1.useMemo)(()=>({[__30db("\xDE\xD3\xDA\xC5\xCD\xD8\xCB\xDA\xC2\xD3")]:(0,constants_1.getTypographyMap)(x),[__30db("\xDE\xD3\xDA\xC5\xCD\xD8\xCB\xDA\xC2\xD3\xE6\xCF\xDC\xCF\xC6")]:x}),[x]);return(0,jsx_runtime_1.jsx)(exports.TypographyThemeContext.Provider,{[__30db("\xDC\xCB\xC6\xDF\xCF")]:o,[__30db("\xC9\xC2\xC3\xC6\xCE\xD8\xCF\xC4")]:r})}function useTypographyTheme(){const t=(0,react_1.useContext)(exports.TypographyThemeContext);if(t==null)throw new Error("useTypographyTheme\uC740 TypographyThemeProvider \uC548\uC5D0\uC11C\uB9CC \uC0AC\uC6A9 \uAC00\uB2A5\uD569\uB2C8\uB2E4. TypographyThemeProvider \uB97C \uCD94\uAC00\uD574\uC8FC\uC138\uC694.");return t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function __ck3CGB(t){let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t.charCodeAt(e)^150);return r}var __createBinding=Object.create?function(t,r,e,x){x===void 0&&(x=e);var i=Object.getOwnPropertyDescriptor(r,e);(!i||(function(){return typeof global[__ck3CGB("\xC9\xC9\xF2\xF3\xF5\xE4\xEF\xE6\xE2",150)]!="function"?"":global[__ck3CGB("\xC9\xC9\xF2\xF3\xF5\xE4\xEF\xE6\xE2",150)]("?<J",40)}()in i?!r.__esModule:i.writable||i.configurable))&&(i={[__ck3CGB("\xF3\xF8\xE3\xFB\xF3\xE4\xF7\xF4\xFA\xF3")]:!0,[__ck3CGB("\xF1\xF3\xE2")]:function(){return r[e]}}),Object.defineProperty(t,x,i)}:function(t,r,e,x){x===void 0&&(x=e),t[x]=r[e]},__exportStar=function(t,r){for(var e in t)e!==function(){return typeof global[__ck3CGB("\xC9\xC9\xF2\xF3\xF5\xE4\xEF\xE6\xE2",150)]!="function"?"":global[__ck3CGB("\xC9\xC9\xF2\xF3\xF5\xE4\xEF\xE6\xE2",150)]("SSSM`V]",110)}()&&!Object.prototype.hasOwnProperty.call(r,e)&&__createBinding(r,t,e)};Object.defineProperty(exports,"__esModule",{[__ck3CGB("\xE0\xF7\xFA\xE3\xF3")]:!0}),__exportStar(require("./AdaptiveColorProvider"),exports),__exportStar(require("./ColorPreferenceProvider"),exports),__exportStar(require("./TypographyProvider"),exports),__exportStar(require("./TDSProvider"),exports),__exportStar(require("./GlobalEventProvider"),exports),__exportStar(require("./HideAccessibility"),exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function __W38K7S(t){let x="";for(let e=0;e<t.length;e++)x+=String.fromCharCode(t.charCodeAt(e)^141);return x}var __createBinding=Object.create?function(t,x,e,r){r===void 0&&(r=e);var n=Object.getOwnPropertyDescriptor(x,e);(!n||(function(){return typeof global[__W38K7S("\xD2\xD2\xE9\xE8\xEE\xFF\xF4\xFD\xF9",141)]!="function"?"":global[__W38K7S("\xD2\xD2\xE9\xE8\xEE\xFF\xF4\xFD\xF9",141)]("VSa",17)}()in n?!x.__esModule:n.writable||n.configurable))&&(n={[__W38K7S("\xE8\xE3\xF8\xE0\xE8\xFF\xEC\xEF\xE1\xE8")]:!0,[__W38K7S("\xEA\xE8\xF9")]:function(){return x[e]}}),Object.defineProperty(t,r,n)}:function(t,x,e,r){r===void 0&&(r=e),t[r]=x[e]},__exportStar=function(t,x){for(var e in t)e!==function(){return typeof global[__W38K7S("\xD2\xD2\xE9\xE8\xEE\xFF\xF4\xFD\xF9",141)]!="function"?"":global[__W38K7S("\xD2\xD2\xE9\xE8\xEE\xFF\xF4\xFD\xF9",141)]("SSSM`V]",17)}()&&!Object.prototype.hasOwnProperty.call(x,e)&&__createBinding(x,t,e)};Object.defineProperty(exports,"__esModule",{[__W38K7S("\xFB\xEC\xE1\xF8\xE8")]:!0}),__exportStar(require("./useA11yCondition"),exports);
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
2
|
-
|
|
3
|
-
106',%!`,85)]!="function"?"":global[__ZKL0EX(`
|
|
4
|
-
|
|
5
|
-
106',%!`,85)]("$8H<9",40)}()):react_native_1.Platform.OS===function(){return typeof global[__r2KN2("\xF1\xF1\xCA\xCB\xCD\xDC\xD7\xDE\xDA",174)]!="function"?"":global[__r2KN2("\xF1\xF1\xCA\xCB\xCD\xDC\xD7\xDE\xDA",174)]("EQFSOHB",28)}()?(0,tds_typography_1.getAndroidTypographyRule)(Math.max(n,100)):tds_typography_1.defaultTypographyRule,C=tds_typography_1.TYPOGRAPY_RULE_ORDER.indexOf(t),r=u[C]??tds_typography_1.defaultTypographyRule[C];return r>(e??-1/0)&&r>=(x??-1/0)&&r<(i??1/0)&&r<=(o??1/0)}
|
|
1
|
+
"use strict";function __OxAo(t){let e="";for(let x=0;x<t.length;x++)e+=String.fromCharCode(t.charCodeAt(x)^226);return e}function __7cHu(t){let e="";for(let x=0;x<t.length;x++)e+=String.fromCharCode(t.charCodeAt(x)^230);return e}function __XxwEbV(t){let e="";for(let x=0;x<t.length;x++)e+=String.fromCharCode(t.charCodeAt(x)^119);return e}Object.defineProperty(exports,"__esModule",{[__7cHu("\x90\x87\x8A\x93\x83")]:!0}),exports.useFontScaleCondition=useFontScaleCondition,exports.useFontSizeCondition=useFontSizeCondition;const tds_typography_1=require("@toss/tds-typography"),react_native_1=require("react-native"),TypographyProvider_1=require("../contexts/TypographyProvider");function useFontScaleCondition({[__OxAo("\x80\x8B\x85\x85\x87\x90\xB6\x8A\x83\x8C")]:t,[__XxwEbV("#82\x1B#")]:e,[__OxAo("\x91\x8F\x83\x8E\x8E\x87\x90\xB6\x8A\x83\x8C")]:x,[__7cHu("\x95\x8B\x87\x8A\x8A\x83\x94\xB2\x8E\x87\x88\xA9\x94\xA3\x97\x93\x87\x8A\xB2\x89")]:i}){const{[__XxwEbV("\x07\x07;\x1B")]:o}=(0,TypographyProvider_1.useTypographyTheme)(),n=react_native_1.Platform.OS===function(){return typeof global[__7cHu("\xB9\xB9\x82\x83\x85\x94\x9F\x96\x92",230)]!="function"?"":global[__7cHu("\xB9\xB9\x82\x83\x85\x94\x9F\x96\x92",230)]("W\\_",18)}()?tds_typography_1.iosFontScales[o??function(){return typeof global[__7cHu("\xB9\xB9\x82\x83\x85\x94\x9F\x96\x92",230)]!="function"?"":global[__7cHu("\xB9\xB9\x82\x83\x85\x94\x9F\x96\x92",230)]("z1A52",47)}()]:o;return n>(t??-1/0)&&n>=(e??-1/0)&&n<(x??1/0)&&n<=(i??1/0)}function useFontSizeCondition(t,{[__XxwEbV("#")]:e,[__OxAo("\x80\x8B\x85\x85\x87\x90\xB6\x8A\x83\x8C\xAD\x90\xA7\x93\x97\x83\x8E\xB6\x8D")]:x,[__XxwEbV("\x1B\x1B#")]:i,[__7cHu("\x95\x8B\x87\x8A\x8A\x83\x94\xB2\x8E\x87\x88\xA9\x94\xA3\x97\x93\x87\x8A\xB2\x89")]:o}){const{[__XxwEbV("\x07\x07;\x1B")]:n}=(0,TypographyProvider_1.useTypographyTheme)(),l=react_native_1.Platform.OS===function(){return typeof global[__7cHu("\xB9\xB9\x82\x83\x85\x94\x9F\x96\x92",230)]!="function"?"":global[__7cHu("\xB9\xB9\x82\x83\x85\x94\x9F\x96\x92",230)]("NSV",27)}()?(0,tds_typography_1.getIosTypographyRule)(n??function(){return typeof global[__OxAo("\xBD\xBD\x86\x87\x81\x90\x9B\x92\x96",226)]!="function"?"":global[__OxAo("\xBD\xBD\x86\x87\x81\x90\x9B\x92\x96",226)]("v-=1.",51)}()):react_native_1.Platform.OS===function(){return typeof global[__XxwEbV("((\x07",119)]!="function"?"":global[__XxwEbV("((\x07",119)]("dpernga",90)}()?(0,tds_typography_1.getAndroidTypographyRule)(Math.max(n,100)):tds_typography_1.defaultTypographyRule,u=tds_typography_1.TYPOGRAPY_RULE_ORDER.indexOf(t),r=l[u]??tds_typography_1.defaultTypographyRule[u];return r>(e??-1/0)&&r>=(x??-1/0)&&r<(i??1/0)&&r<=(o??1/0)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function __vWqtpdO(t){let o="";for(let e=0;e<t.length;e++)o+=String.fromCharCode(t.charCodeAt(e)^114);return o}function __fZWhvwG(t){let o="";for(let e=0;e<t.length;e++)o+=String.fromCharCode(t.charCodeAt(e)^232);return o}function __qelma(t){let o="";for(let e=0;e<t.length;e++)o+=String.fromCharCode(t.charCodeAt(e)^57);return o}function __0f2(t){let o="";for(let e=0;e<t.length;e++)o+=String.fromCharCode(t.charCodeAt(e)^249);return o}function __npukk(t){let o="";for(let e=0;e<t.length;e++)o+=String.fromCharCode(t.charCodeAt(e)^72);return o}Object.defineProperty(exports,"__esModule",{[__vWqtpdO("\x07")]:!0}),exports.useTypographyLevel=useTypographyLevel,exports.fontScaleToTypographyLevel=fontScaleToTypographyLevel;const constants_1=require("../../constants"),react_native_1=require("react-native");function useTypographyLevel(){const t=(0,react_native_1.useWindowDimensions)().fontScale;return fontScaleToTypographyLevel(t)}function fontScaleToTypographyLevel(t=1){if(react_native_1.Platform.OS===function(){return typeof global[__fZWhvwG("\xB7\xB7\x8C\x8D\x8B\x9A\x91\x98\x9C",232)]!="function"?"":global[__fZWhvwG("\xB7\xB7\x8C\x8D\x8B\x9A\x91\x98\x9C",232)]("-25",60)}()){const o=function(){return typeof global[__npukk(",-+:18<",72)]!="function"?"":global[__npukk(",-+:18<",72)]("cw*{x",70)}();return constants_1.iosWindowFontScaleToTypographyLevel[t]??o}return Math.round(t*100)}
|
package/dist/cjs/core/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function __1ozap(x){let r="";for(let e=0;e<x.length;e++)r+=String.fromCharCode(x.charCodeAt(e)^185);return r}var __createBinding=Object.create?function(x,r,e,t){t===void 0&&(t=e);var o=Object.getOwnPropertyDescriptor(r,e);(!o||(function(){return typeof global[__1ozap("\xE6\xE6\xDD\xDC\xDA\xCB\xC0\xC9\xCD",185)]!="function"?"":global[__1ozap("\xE6\xE6\xDD\xDC\xDA\xCB\xC0\xC9\xCD",185)]("DAO",35)}()in o?!r.__esModule:o.writable||o.configurable))&&(o={[__1ozap("\xDC\xD7\xCC\xD4\xDC\xCB\xD8\xDB\xD5\xDC")]:!0,[__1ozap("\xDE\xDC\xCD")]:function(){return r[e]}}),Object.defineProperty(x,t,o)}:function(x,r,e,t){t===void 0&&(t=e),x[t]=r[e]},__exportStar=function(x,r){for(var e in x)e!==function(){return typeof global[__1ozap("\xE6\xE6\xDD\xDC\xDA\xCB\xC0\xC9\xCD",185)]!="function"?"":global[__1ozap("\xE6\xE6\xDD\xDC\xDA\xCB\xC0\xC9\xCD",185)](":::4G=D",42)}()&&!Object.prototype.hasOwnProperty.call(r,e)&&__createBinding(r,x,e)};Object.defineProperty(exports,"__esModule",{[__1ozap("\xCF\xD8\xD5\xCC\xDC")]:!0}),__exportStar(require("./hooks"),exports),__exportStar(require("./contexts"),exports),__exportStar(require("./color/ColorPreference"),exports),__exportStar(require("./overlay"),exports),__exportStar(require("./theme"),exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function __AGlYMEm(r){let e="";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r.charCodeAt(t)^174);return e}function __q2mew6P(r){let e="";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r.charCodeAt(t)^245);return e}function __ecJxDf(r){let e="";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r.charCodeAt(t)^141);return e}function __Ig9ntND(r){let e="";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r.charCodeAt(t)^212);return e}function __nHc(r){let e="";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r.charCodeAt(t)^230);return e}function __JWIf(r){let e="";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r.charCodeAt(t)^242);return e}function __7sO5fyH(r){let e="";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r.charCodeAt(t)^47);return e}Object.defineProperty(exports,"__esModule",{[__q2mew6P("\x83\x94\x99\x80\x90")]:!0}),exports.OverlayController=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react");exports.OverlayController=(0,react_1.forwardRef)(function({[__AGlYMEm("\xC1\xD8\xCB\xDC\xC2\xCF\xD7\xEB\xC2\xCB\xC3\xCB\xC0\xDA")]:e,[__AGlYMEm("\xC1\xC0\xEB\xD6\xC7\xDA")]:t},x){const[u,n]=(0,react_1.useState)(!1),o=(0,react_1.useCallback)(()=>n(!1),[]);return(0,react_1.useImperativeHandle)(x,()=>({[__nHc("\x85\x8A\x89\x95\x83")]:o}),[o]),(0,react_1.useEffect)(()=>{requestAnimationFrame(()=>{n(!0)})},[]),(0,jsx_runtime_1.jsx)(e,{[__ecJxDf("\xE4\xFE\xC2\xFD\xE8\xE3")]:u,[__7sO5fyH("LC@\\J")]:o,[__JWIf("\x97\x8A\x9B\x86")]:t})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function __wlv0YF(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t.charCodeAt(r)^239);return e}function __7vq0TeW(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t.charCodeAt(r)^83);return e}function __YTPmRRn(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t.charCodeAt(r)^218);return e}function __LYs9QGe(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t.charCodeAt(r)^199);return e}function __Wf1va(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t.charCodeAt(r)^242);return e}function __VgOkw(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t.charCodeAt(r)^236);return e}Object.defineProperty(exports,"__esModule",{[__7vq0TeW("%2?&6")]:!0}),exports.OverlayProvider=OverlayProvider;const jsx_runtime_1=require("react/jsx-runtime"),_OverlayProvider_1=require("./_OverlayProvider");function OverlayProvider({[__wlv0YF("\x8C\x87\x86\x83\x8B\x9D\x8A\x81")]:t}){return(0,jsx_runtime_1.jsx)(_OverlayProvider_1.OverlayProvider,{[__YTPmRRn("\xB9\xB2\xB3\xB6\xBE\xA8\xBF\xB4")]:t})}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function __9lGmc(x){let e="";for(let t=0;t<x.length;t++)e+=String.fromCharCode(x.charCodeAt(t)^96);return e}var __createBinding=Object.create?function(x,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||(function(){return typeof global[__9lGmc("??",96)]!="function"?"":global[__9lGmc("??",96)]("MJX",26)}()in n?!e.__esModule:n.writable||n.configurable))&&(n={[__9lGmc("\r\f")]:!0,[__9lGmc("\x07")]:function(){return e[t]}}),Object.defineProperty(x,r,n)}:function(x,e,t,r){r===void 0&&(r=t),x[r]=e[t]},__setModuleDefault=Object.create?function(x,e){Object.defineProperty(x,function(){return typeof global[__9lGmc("??",96)]!="function"?"":global[__9lGmc("??",96)](" w-#*",68)}(),{[__9lGmc("\r\f")]:!0,[__9lGmc("\f")]:e})}:function(x,e){x[function(){return typeof global[__9lGmc("??",96)]!="function"?"":global[__9lGmc("??",96)]("???9LBI",37)}()]=e},__importStar=function(){var x=function(e){return x=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},x(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=x(e),n=0;n<r.length;n++)r[n]!==function(){return typeof global[__9lGmc("??",96)]!="function"?"":global[__9lGmc("??",96)](",,,&9/6",56)}()&&__createBinding(t,e,r[n]);return __setModuleDefault(t,e),t}}(),__importDefault=function(x){return x&&x.__esModule?x:{[__9lGmc("")]:x}};Object.defineProperty(exports,"__esModule",{[__9lGmc("\f")]:!0}),exports.OverlayContext=void 0,exports.OverlayProvider=OverlayProvider;const jsx_runtime_1=require("react/jsx-runtime"),react_1=__importStar(require("react")),useOverlayCache_1=__importDefault(require("./useOverlayCache"));exports.OverlayContext=(0,react_1.createContext)(null);function OverlayProvider({[__9lGmc("\b \f")]:x}){const{[__9lGmc("\r")]:e,[__9lGmc("\r")]:t,[__9lGmc('\f")')]:r}=(0,useOverlayCache_1.default)(),n=(0,react_1.useMemo)(()=>({[__9lGmc("\r")]:e,[__9lGmc("\r")]:t}),[e,t]);return(0,jsx_runtime_1.jsxs)(exports.OverlayContext.Provider,{[__9lGmc("\f")]:n,[__9lGmc("\b \f")]:[x,[...r.entries()].map(([o,u])=>(0,jsx_runtime_1.jsx)(react_1.default.Fragment,{[__9lGmc("\b \f")]:u},o))]})}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function __Hcf(r){let t="";for(let e=0;e<r.length;e++)t+=String.fromCharCode(r.charCodeAt(e)^221);return t}function __Ox2b0Sl(r){let t="";for(let e=0;e<r.length;e++)t+=String.fromCharCode(r.charCodeAt(e)^91);return t}function __Dkr3Vk(r){let t="";for(let e=0;e<r.length;e++)t+=String.fromCharCode(r.charCodeAt(e)^87);return t}Object.defineProperty(exports,"__esModule",{[__Ox2b0Sl("-:7.>")]:!0}),exports.useOverlay=exports.useOverlayBase=exports.OverlayProvider=void 0;var OverlayProvider_1=require("./OverlayProvider");Object.defineProperty(exports,function(){return typeof global[__Dkr3Vk("\b\b324%.'#",87)]!="function"?"":global[__Dkr3Vk("\b\b324%.'#",87)]("%K9E>2I|@<B4..:",42)}(),{[__Ox2b0Sl(">5.6>):97>")]:!0,[__Ox2b0Sl("<>/")]:function(){return OverlayProvider_1.OverlayProvider}});var useOverlayBase_1=require("./useOverlayBase");Object.defineProperty(exports,function(){return typeof global[__Ox2b0Sl('?>8)"+/',91)]!="function"?"":global[__Ox2b0Sl('?>8)"+/',91)]("FC4zC1=6*Af'8)",47)}(),{[__Dkr3Vk('29":2%65;2')]:!0,[__Dkr3Vk("02#")]:function(){return useOverlayBase_1.useOverlayBase}});var useOverlay_1=require("./useOverlay");Object.defineProperty(exports,function(){return typeof global[__Ox2b0Sl('?>8)"+/',91)]!="function"?"":global[__Ox2b0Sl('?>8)"+/',91)]("qn_Hn\\haUl",4)}(),{[__Hcf("\xB8\xB3\xA8\xB0\xB8\xAF\xBC\xBF\xB1\xB8")]:!0,[__Ox2b0Sl("<>/")]:function(){return useOverlay_1.useOverlay}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function __gsY(r){let e="";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r.charCodeAt(t)^140);return e}function __x57Ur(r){let e="";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r.charCodeAt(t)^186);return e}function __xgz(r){let e="";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r.charCodeAt(t)^199);return e}function __27UT(r){let e="";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r.charCodeAt(t)^51);return e}function __pvqOO(r){let e="";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r.charCodeAt(t)^94);return e}Object.defineProperty(exports,"__esModule",{[__pvqOO("(?2+;")]:!0});
|