rechtspilot-ui 1.4.2 → 1.5.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.
Files changed (35) hide show
  1. package/dist/chunks-native.cjs +1 -1
  2. package/dist/chunks-native.js +426 -408
  3. package/dist/chunks.cjs +1 -1
  4. package/dist/chunks.js +23 -4
  5. package/dist/icons.cjs +1 -1
  6. package/dist/icons.d.ts +2 -0
  7. package/dist/icons.es.js +2 -2
  8. package/dist/icons.native.cjs +1 -1
  9. package/dist/icons.native.es.js +2 -2
  10. package/dist/index.cjs +96 -96
  11. package/dist/index.es.js +301 -301
  12. package/dist/index.native.cjs +3 -1
  13. package/dist/index.native.es.js +1047 -267
  14. package/dist/native/components/Badge/Badge.native.d.ts +10 -0
  15. package/dist/native/components/Card/Card.native.d.ts +12 -0
  16. package/dist/native/components/Divider/Divider.native.d.ts +2 -0
  17. package/dist/native/components/EmptyState/EmptyState.native.d.ts +9 -0
  18. package/dist/native/components/Input/Input.native.d.ts +3 -1
  19. package/dist/native/components/Letter/Letter.native.d.ts +69 -0
  20. package/dist/native/components/MenuItem/MenuItem.native.d.ts +10 -0
  21. package/dist/native/components/RadioCard/RadioCard.native.d.ts +11 -0
  22. package/dist/native/components/Sheet/Sheet.native.d.ts +3 -1
  23. package/dist/native/components/Spinner/Spinner.native.d.ts +2 -1
  24. package/dist/native/components/StepProgress/StepProgress.native.d.ts +11 -0
  25. package/dist/native/components/Toaster/Toaster.native.d.ts +1 -0
  26. package/dist/native/icons/Warning.d.ts +2 -0
  27. package/dist/native/icons/index.d.ts +1 -0
  28. package/dist/native/icons/index.native.d.ts +1 -0
  29. package/dist/native/icons/native/Warning.native.d.ts +2 -0
  30. package/dist/native/icons/toast/Error.native.d.ts +1 -0
  31. package/dist/native/icons/toast/Info.native.d.ts +1 -0
  32. package/dist/native/icons/toast/Success.native.d.ts +1 -0
  33. package/dist/native/icons/toast/Warning.native.d.ts +1 -0
  34. package/dist/native/index.native.d.ts +16 -0
  35. package/package.json +2 -2
@@ -1 +1,3 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./chunks-native.cjs`);let t=require(`react`);t=e.Y(t,1);let n=require(`react-native`),r=require(`react-native-svg`),i=require(`react/jsx-runtime`),a=require(`react-native-safe-area-context`);function o({size:a=24,color:o=e.q.fg.primary,trackColor:s=e.q.neutral[`800-A08`],style:c}){let l=(0,t.useRef)(new n.Animated.Value(0)).current;(0,t.useEffect)(()=>{let e=n.Animated.loop(n.Animated.timing(l,{toValue:1,duration:1e3,easing:n.Easing.linear,useNativeDriver:!0}));return e.start(),()=>e.stop()},[l]);let u=l.interpolate({inputRange:[0,1],outputRange:[`0deg`,`360deg`]});return(0,i.jsx)(n.Animated.View,{style:[{width:a,height:a,transform:[{rotate:u}]},c],children:(0,i.jsxs)(r.Svg,{width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,children:[(0,i.jsx)(r.Circle,{cx:`12`,cy:`12`,r:`8`,stroke:s,strokeWidth:3,fill:`none`}),(0,i.jsx)(r.Path,{d:`M12 4C16.4183 4 20 7.58172 20 12C20 14.1304 19.1672 16.0663 17.8095 17.5`,stroke:o,strokeWidth:3,strokeLinecap:`round`,fill:`none`})]})})}var s=t=>{let n={alignItems:`center`,borderRadius:12,borderWidth:1,flexDirection:`row`,height:48,justifyContent:`center`,paddingHorizontal:16},r={fontFamily:e.J.body.fontFamily,fontSize:15,fontWeight:`500`,textAlign:`center`};switch(t){case`primary`:return{container:{...n,backgroundColor:e.q.primary[500],borderColor:e.q.neutral[`800-A16`]},text:{...r,color:e.q.primary[900]}};case`secondary`:return{container:{...n,backgroundColor:e.q.primary[900],borderColor:e.q.neutral[`800-A16`]},text:{...r,color:e.q.white}};case`tertiary`:return{container:{...n,backgroundColor:e.q.neutral[`800-A04`],borderColor:e.q.neutral[`800-A08`]},text:{...r,color:e.q.primary[900]}};case`destructive`:return{container:{...n,backgroundColor:e.q.fg.accent.error,borderColor:e.q.fg.accent.error},text:{...r,color:e.q.white}};case`destructiveSubtle`:return{container:{...n,backgroundColor:e.q.cream,borderColor:e.q.palePeach},text:{...r,color:e.q.fg.accent.error}}}};function c({variant:t=`primary`,fullWidth:r=!1,children:a,loading:c=!1,disabled:l=!1,onPress:u,...d}){let f=s(t);return(0,i.jsxs)(n.TouchableOpacity,{style:n.StyleSheet.flatten([f.container,r&&{width:`100%`},(l||c)&&{opacity:.4}]),onPress:u,disabled:l||c,activeOpacity:.7,...d,children:[typeof a==`string`?(0,i.jsx)(n.Text,{style:f.text,children:a}):a,c&&(0,i.jsx)(o,{size:16,color:t===`secondary`?e.q.primary[600]:t===`destructiveSubtle`?e.q.fg.accent.error:e.q.white})]})}var l={sm:32,md:40,lg:48},u={base:{backgroundColor:e.q.sf.base},primary:{backgroundColor:e.q.primary[`600-A08`]},outline:{borderWidth:1,borderColor:e.q.sf.base}},d={base:{backgroundColor:e.q.neutral[`800-A08`]},primary:{backgroundColor:e.q.primary[50]},outline:{backgroundColor:e.q.sf.tertiaryHover}};function f({children:e,size:t=`md`,variant:r=`base`,disabled:a=!1,hitSlop:o=10,...s}){let c=l[t],f={width:c,height:c,borderRadius:c/2,alignItems:`center`,justifyContent:`center`};return(0,i.jsx)(n.Pressable,{accessibilityRole:`button`,...s,style:({pressed:e})=>[f,u[r],e&&d[r],a&&{opacity:.4}],disabled:a,hitSlop:o,children:e})}var p=n.StyleSheet.create({container:{marginBottom:8},fieldContainer:{height:49,paddingHorizontal:12,borderRadius:12,flexDirection:`row`,alignItems:`center`,backgroundColor:e.q.bg.secondary,borderWidth:2,borderColor:e.q.bg.tertiary},fieldContainerError:{borderColor:e.q.fg.accent.error},fieldContainerFocused:{borderColor:e.q.fg.base},fieldContainerFocusedError:{borderColor:e.q.fg.accent.error},formGroup:{position:`relative`,paddingVertical:14,width:`100%`,height:`100%`,justifyContent:`center`},input:{width:`100%`,paddingTop:4,backgroundColor:`transparent`,fontFamily:e.J.body.fontFamily,fontSize:15,fontWeight:`500`,color:e.q.primary[900],paddingBottom:0},label:{position:`absolute`,left:0,fontFamily:e.J.body.fontFamily,fontSize:15,fontWeight:`500`,color:e.q.fg.tertiary},currencyPrefix:{fontFamily:e.J.body.fontFamily,fontSize:15,fontWeight:`400`,color:e.q.fg.secondary,marginRight:4,alignSelf:`center`},labelFloating:{top:2,fontSize:12,color:e.q.fg.secondary},labelNormal:{top:`50%`,transform:[{translateY:-7.5}]},helper:{marginTop:4,fontSize:12,paddingHorizontal:4},helperError:{color:e.q.fg.accent.error},helperNormal:{color:e.q.fg.secondary}});function m({label:r,value:a=``,onChange:o,error:s,helperText:c,placeholder:l,secureTextEntry:u=!1,keyboardType:d,autoCapitalize:f=`sentences`,editable:m=!0,multiline:h=!1,numberOfLines:g=1,currency:_=!1,...v}){let[y,b]=(0,t.useState)(!1),x=a.length>0,S=y||x||_,C=[p.fieldContainer,s&&p.fieldContainerError,y&&!s&&p.fieldContainerFocused,y&&s&&p.fieldContainerFocusedError],w=[p.label,S?p.labelFloating:p.labelNormal],T=n.StyleSheet.flatten([p.input,h&&{height:g*20,textAlignVertical:`top`}]);return(0,i.jsxs)(n.View,{style:p.container,children:[(0,i.jsxs)(n.View,{style:C,children:[_&&(0,i.jsx)(n.Text,{style:p.currencyPrefix,children:`€`}),(0,i.jsxs)(n.View,{style:p.formGroup,children:[(0,i.jsx)(n.TextInput,{style:T,value:a,onChangeText:o,onFocus:()=>b(!0),onBlur:()=>b(!1),placeholder:S?l:``,placeholderTextColor:e.q.fg.tertiary,secureTextEntry:u,keyboardType:d??(_?`numeric`:`default`),autoCapitalize:f,editable:m,multiline:h,numberOfLines:g,...v}),(0,i.jsx)(n.Text,{style:w,children:r})]})]}),(s||c)&&(0,i.jsx)(n.Text,{style:[p.helper,s?p.helperError:p.helperNormal],children:s||c})]})}function h({label:r,value:a,onChange:o,options:s,error:c,disabled:l=!1}){let[u,d]=(0,t.useState)(!1);(0,t.useEffect)(()=>{s.length===1&&!a&&o(s[0].value)},[s,a]);let f=s.find(e=>e.value===a),p=c?e.q.fg.accent.error:u?e.q.fg.base:e.q.bg.tertiary;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(n.View,{style:g.container,children:[(0,i.jsxs)(n.Pressable,{style:[g.trigger,{borderColor:p},l&&g.triggerDisabled],onPress:()=>d(!0),disabled:l,accessibilityRole:`combobox`,accessibilityLabel:r,accessibilityState:{expanded:u,disabled:l},children:[(0,i.jsxs)(n.View,{style:g.triggerContent,children:[(0,i.jsx)(n.Text,{style:[g.labelText,f&&g.labelFloating],children:r}),f&&(0,i.jsx)(n.Text,{style:g.valueText,numberOfLines:1,children:f.text})]}),(0,i.jsx)(e.K,{direction:`down`,color:e.q.fg.secondary,size:`small`})]}),c&&(0,i.jsx)(n.Text,{style:g.errorText,children:c})]}),(0,i.jsx)(n.Modal,{visible:u,transparent:!0,animationType:`fade`,onRequestClose:()=>d(!1),children:(0,i.jsx)(n.Pressable,{style:g.backdrop,onPress:()=>d(!1),children:(0,i.jsxs)(n.View,{style:g.sheet,children:[(0,i.jsx)(n.View,{style:g.sheetHandle}),(0,i.jsx)(n.ScrollView,{bounces:!1,children:s.map(e=>{let t=e.value===a;return(0,i.jsx)(n.Pressable,{style:[g.option,t&&g.optionActive],onPress:()=>{o(e.value),d(!1)},accessibilityRole:`menuitem`,accessibilityState:{selected:t},children:(0,i.jsx)(n.Text,{style:[g.optionText,t&&g.optionTextActive],children:e.text})},e.value)})})]})})})]})}var g=n.StyleSheet.create({container:{marginBottom:8},trigger:{height:50,paddingHorizontal:12,borderRadius:12,flexDirection:`row`,alignItems:`center`,backgroundColor:e.q.bg.secondary,borderWidth:2},triggerDisabled:{opacity:.4},triggerContent:{flex:1,justifyContent:`center`},labelText:{fontFamily:e.J.body.fontFamily,fontSize:15,color:e.q.fg.tertiary},labelFloating:{fontSize:12,color:e.q.fg.secondary,marginBottom:2},valueText:{fontFamily:e.J.body.fontFamily,fontSize:15,fontWeight:`500`,color:e.q.primary[900]},errorText:{marginTop:4,fontSize:12,paddingHorizontal:4,color:e.q.fg.accent.error,fontFamily:e.J.body.fontFamily},backdrop:{flex:1,backgroundColor:`rgba(0,0,0,0.4)`,justifyContent:`flex-end`},sheet:{backgroundColor:e.q.bg.base,borderTopLeftRadius:16,borderTopRightRadius:16,paddingBottom:32,maxHeight:`70%`},sheetHandle:{width:36,height:4,borderRadius:2,backgroundColor:e.q.border.default,alignSelf:`center`,marginTop:8,marginBottom:8},option:{paddingVertical:16,paddingHorizontal:20,borderBottomWidth:1,borderBottomColor:e.q.border.default},optionActive:{backgroundColor:e.q.primary[50]},optionText:{fontFamily:e.J.body.fontFamily,fontSize:15,color:e.q.fg.base},optionTextActive:{color:e.q.primary[900],fontWeight:`500`}}),_={heading:20,title:16,label:13,body:15,caption:12};function v({variant:t=`body`,color:r,style:a,...o}){return(0,i.jsx)(n.Text,{style:[e.J[t],{fontSize:_[t]},r?{color:r}:void 0,a],...o})}function y({open:t,onClose:r,onGoBack:o,title:s,children:c,footer:l}){let u=(0,a.useSafeAreaInsets)();return(0,i.jsx)(n.Modal,{visible:t,animationType:`slide`,presentationStyle:`pageSheet`,onRequestClose:r,children:(0,i.jsx)(n.KeyboardAvoidingView,{style:b.flex,behavior:n.Platform.OS===`ios`?`padding`:void 0,children:(0,i.jsxs)(n.View,{style:[b.container,{paddingTop:Math.max(u.top,16)}],children:[(0,i.jsxs)(n.View,{style:b.header,children:[(0,i.jsx)(n.View,{style:b.headerSide,children:o&&(0,i.jsx)(f,{variant:`base`,size:`md`,accessibilityLabel:`Go back`,onPress:o,children:(0,i.jsx)(e.K,{color:e.q.fg.secondary,direction:`left`})})}),s?(0,i.jsx)(v,{variant:`heading`,style:b.headerTitle,children:s}):(0,i.jsx)(n.View,{style:b.flex}),(0,i.jsx)(n.View,{style:[b.headerSide,b.headerSideRight],children:(0,i.jsx)(f,{variant:`base`,size:`md`,accessibilityLabel:`Close`,onPress:r,children:(0,i.jsx)(e.G,{color:e.q.fg.secondary,size:`small`})})})]}),(0,i.jsx)(n.ScrollView,{style:b.flex,contentContainerStyle:b.body,children:c}),l&&(0,i.jsx)(n.View,{style:b.footer,children:l})]})})})}var b=n.StyleSheet.create({flex:{flex:1},container:{flex:1,backgroundColor:e.q.bg.base},header:{flexDirection:`row`,alignItems:`center`,paddingHorizontal:8,paddingBottom:8,minHeight:52},headerSide:{flex:1},headerSideRight:{alignItems:`flex-end`},headerTitle:{flex:2,textAlign:`center`},body:{paddingHorizontal:20,paddingBottom:20},footer:{paddingHorizontal:20,paddingVertical:24,borderTopWidth:1,borderTopColor:e.q.border.default}}),x=()=>{let[e,n]=(0,t.useState)(window.innerWidth<=768),r=(0,t.useRef)(window.innerWidth);return(0,t.useEffect)(()=>{let e=()=>{let e=window.innerWidth;e<=768&&r.current>768?n(!0):e>768&&r.current<=768&&n(!1),r.current=e};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e},S=1,C=1e6,w=0;function T(){return w=(w+1)%(2**53-1),w.toString()}var E=new Map,D=e=>{if(E.has(e))return;let t=setTimeout(()=>{E.delete(e),j({type:`REMOVE_TOAST`,toastId:e})},C);E.set(e,t)},O=(e,t)=>{switch(t.type){case`ADD_TOAST`:return{...e,toasts:[t.toast,...e.toasts].slice(0,S)};case`UPDATE_TOAST`:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case`DISMISS_TOAST`:{let{toastId:n}=t;return n?D(n):e.toasts.forEach(e=>{D(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||n===void 0?{...e,open:!1}:e)}}case`REMOVE_TOAST`:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},k=[],A={toasts:[]};function j(e){A=O(A,e),k.forEach(e=>{e(A)})}function M({...e}){let t=T(),n=e=>j({type:`UPDATE_TOAST`,toast:{...e,id:t}}),r=()=>j({type:`DISMISS_TOAST`,toastId:t});return j({type:`ADD_TOAST`,toast:{...e,id:t,open:!0,onOpenChange:e=>{e||r()}}}),{id:t,dismiss:r,update:n}}function N(){let[e,n]=t.useState(A);return t.useEffect(()=>(k.push(n),()=>{let e=k.indexOf(n);e>-1&&k.splice(e,1)}),[e]),{...e,toast:M,dismiss:e=>j({type:`DISMISS_TOAST`,toastId:e})}}exports.Button=c,exports.IconButton=f,exports.Input=m,exports.Select=h,exports.Sheet=y,exports.Spinner=o,exports.Text=v,exports.colors=e.q,Object.defineProperty(exports,`icons`,{enumerable:!0,get:function(){return e.t}}),exports.typography=e.J,exports.useIsMobile=x,exports.useToast=N;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./chunks-native.cjs`);let t=require(`react`);t=e.X(t,1);let n=require(`react-native`),r=require(`react/jsx-runtime`),i=require(`react-native-svg`),a=require(`react-native-safe-area-context`);var o={heading:20,title:16,label:13,body:15,caption:12};function s({variant:t=`body`,color:i,style:a,...s}){return(0,r.jsx)(n.Text,{style:[e.Y[t],{fontSize:o[t]},i?{color:i}:void 0,a],...s})}function c({icon:t,children:i,backgroundColor:a=e.J.neutral[`800-A08`],textColor:o=e.J.fg.primary,style:c}){return(0,r.jsxs)(n.View,{style:[l.badge,{backgroundColor:a},c],children:[t,(0,r.jsx)(s,{variant:`label`,color:o,style:l.label,children:i})]})}var l=n.StyleSheet.create({badge:{flexDirection:`row`,alignItems:`center`,gap:4,height:30,paddingHorizontal:6,borderRadius:8},label:{textTransform:`uppercase`}});function u({size:a=24,color:o=e.J.fg.primary,trackColor:s=e.J.neutral[`800-A08`],duration:c=1e3,style:l}){let u=(0,t.useRef)(new n.Animated.Value(0)).current;(0,t.useEffect)(()=>{u.setValue(0);let e=n.Animated.loop(n.Animated.timing(u,{toValue:1,duration:c,easing:n.Easing.linear,useNativeDriver:!0}));return e.start(),()=>e.stop()},[u,c]);let d=u.interpolate({inputRange:[0,1],outputRange:[`0deg`,`360deg`]});return(0,r.jsx)(n.Animated.View,{style:[{width:a,height:a,transform:[{rotate:d}]},l],children:(0,r.jsxs)(i.Svg,{width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,children:[(0,r.jsx)(i.Circle,{cx:`12`,cy:`12`,r:`8`,stroke:s,strokeWidth:3,fill:`none`}),(0,r.jsx)(i.Path,{d:`M12 4C16.4183 4 20 7.58172 20 12C20 14.1304 19.1672 16.0663 17.8095 17.5`,stroke:o,strokeWidth:3,strokeLinecap:`round`,fill:`none`})]})})}var d=t=>{let n={alignItems:`center`,borderRadius:12,borderWidth:1,flexDirection:`row`,height:48,justifyContent:`center`,paddingHorizontal:16},r={fontFamily:e.Y.body.fontFamily,fontSize:15,fontWeight:`500`,textAlign:`center`};switch(t){case`primary`:return{container:{...n,backgroundColor:e.J.primary[500],borderColor:e.J.neutral[`800-A16`]},text:{...r,color:e.J.primary[900]}};case`secondary`:return{container:{...n,backgroundColor:e.J.primary[900],borderColor:e.J.neutral[`800-A16`]},text:{...r,color:e.J.white}};case`tertiary`:return{container:{...n,backgroundColor:e.J.neutral[`800-A04`],borderColor:e.J.neutral[`800-A08`]},text:{...r,color:e.J.primary[900]}};case`destructive`:return{container:{...n,backgroundColor:e.J.fg.accent.error,borderColor:e.J.fg.accent.error},text:{...r,color:e.J.white}};case`destructiveSubtle`:return{container:{...n,backgroundColor:e.J.cream,borderColor:e.J.palePeach},text:{...r,color:e.J.fg.accent.error}}}};function f({variant:t=`primary`,fullWidth:i=!1,children:a,loading:o=!1,disabled:s=!1,onPress:c,...l}){let f=d(t);return(0,r.jsxs)(n.TouchableOpacity,{style:n.StyleSheet.flatten([f.container,i&&{width:`100%`},(s||o)&&{opacity:.4}]),onPress:c,disabled:s||o,activeOpacity:.7,...l,children:[typeof a==`string`?(0,r.jsx)(n.Text,{style:f.text,children:a}):a,o&&(0,r.jsx)(u,{size:16,color:t===`secondary`?e.J.primary[600]:t===`destructiveSubtle`?e.J.fg.accent.error:e.J.white})]})}var p={outlined:{backgroundColor:e.J.white,borderWidth:1,borderColor:e.J.neutral[`800-A08`]},tinted:{backgroundColor:e.J.primary[`600-A08`]},elevated:{backgroundColor:e.J.bg.base,shadowColor:e.J.black,shadowOpacity:.24,shadowRadius:16,shadowOffset:{width:0,height:0},elevation:8}};function m({variant:e=`outlined`,radius:t=16,padding:i=16,backgroundColor:a,style:o,children:s}){return(0,r.jsx)(n.View,{style:[h.base,p[e],{borderRadius:t,padding:i},a?{backgroundColor:a}:void 0,o],children:s})}var h=n.StyleSheet.create({base:{width:`100%`}});function g({style:e,...t}){return(0,r.jsx)(n.View,{style:[_.divider,e],...t})}var _=n.StyleSheet.create({divider:{height:1,width:`100%`,backgroundColor:e.J.border.default,marginVertical:12}});function v({icon:t,title:i,description:a,actionLabel:o,onAction:c}){return(0,r.jsxs)(n.View,{style:y.container,children:[t,(0,r.jsx)(s,{variant:`title`,style:y.title,children:i}),a&&(0,r.jsx)(s,{variant:`body`,color:e.J.fg.secondary,style:y.description,children:a}),o&&c&&(0,r.jsx)(n.View,{style:y.action,children:(0,r.jsx)(f,{variant:`secondary`,onPress:c,children:o})})]})}var y=n.StyleSheet.create({container:{alignItems:`center`,justifyContent:`center`,padding:24},title:{marginTop:12,textAlign:`center`},description:{marginTop:4,textAlign:`center`},action:{marginTop:16}}),b={sm:32,md:40,lg:48},x={base:{backgroundColor:e.J.sf.base},primary:{backgroundColor:e.J.primary[`600-A08`]},outline:{borderWidth:1,borderColor:e.J.sf.base}},S={base:{backgroundColor:e.J.neutral[`800-A08`]},primary:{backgroundColor:e.J.primary[50]},outline:{backgroundColor:e.J.sf.tertiaryHover}};function C({children:e,size:t=`md`,variant:i=`base`,disabled:a=!1,hitSlop:o=10,...s}){let c=b[t],l={width:c,height:c,borderRadius:c/2,alignItems:`center`,justifyContent:`center`};return(0,r.jsx)(n.Pressable,{accessibilityRole:`button`,...s,style:({pressed:e})=>[l,x[i],e&&S[i],a&&{opacity:.4}],disabled:a,hitSlop:o,children:e})}var w=n.StyleSheet.create({container:{marginBottom:8},fieldContainer:{height:49,paddingHorizontal:12,borderRadius:12,flexDirection:`row`,alignItems:`center`,backgroundColor:e.J.bg.secondary,borderWidth:2,borderColor:e.J.bg.tertiary},fieldContainerError:{borderColor:e.J.fg.accent.error},fieldContainerFocused:{borderColor:e.J.fg.base},fieldContainerFocusedError:{borderColor:e.J.fg.accent.error},formGroup:{position:`relative`,paddingVertical:14,flex:1,height:`100%`,justifyContent:`center`},input:{width:`100%`,paddingTop:4,backgroundColor:`transparent`,fontFamily:e.Y.body.fontFamily,fontSize:15,fontWeight:`500`,color:e.J.primary[900],paddingBottom:0},label:{position:`absolute`,left:0,fontFamily:e.Y.body.fontFamily,fontSize:15,fontWeight:`500`,color:e.J.fg.tertiary},currencyPrefix:{fontFamily:e.Y.body.fontFamily,fontSize:15,fontWeight:`400`,color:e.J.fg.secondary,marginRight:4,alignSelf:`center`},prefixContainer:{alignSelf:`center`,justifyContent:`center`},fieldDivider:{width:1,height:21,backgroundColor:e.J.neutral[`800-A08`],marginHorizontal:8},labelFloating:{top:2,fontSize:12,color:e.J.fg.secondary},labelNormal:{top:`50%`,transform:[{translateY:-7.5}]},helper:{marginTop:4,fontSize:12,paddingHorizontal:4},helperError:{color:e.J.fg.accent.error},helperNormal:{color:e.J.fg.secondary}});function T({label:i,value:a=``,onChange:o,error:s,helperText:c,placeholder:l,secureTextEntry:u=!1,keyboardType:d,autoCapitalize:f=`sentences`,editable:p=!0,multiline:m=!1,numberOfLines:h=1,currency:g=!1,prefix:_,...v}){let[y,b]=(0,t.useState)(!1),x=a.length>0,S=y||x||g,C=[w.fieldContainer,s&&w.fieldContainerError,y&&!s&&w.fieldContainerFocused,y&&s&&w.fieldContainerFocusedError],T=[w.label,S?w.labelFloating:w.labelNormal],E=n.StyleSheet.flatten([w.input,m&&{height:h*20,textAlignVertical:`top`}]);return(0,r.jsxs)(n.View,{style:w.container,children:[(0,r.jsxs)(n.View,{style:C,children:[g&&(0,r.jsx)(n.Text,{style:w.currencyPrefix,children:`€`}),_&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.View,{style:w.prefixContainer,children:_}),(0,r.jsx)(n.View,{style:w.fieldDivider})]}),(0,r.jsxs)(n.View,{style:w.formGroup,children:[(0,r.jsx)(n.TextInput,{style:E,value:a,onChangeText:o,onFocus:()=>b(!0),onBlur:()=>b(!1),placeholder:S?l:``,placeholderTextColor:e.J.fg.tertiary,secureTextEntry:u,keyboardType:d??(g?`numeric`:`default`),autoCapitalize:f,editable:p,multiline:m,numberOfLines:h,...v}),(0,r.jsx)(n.Text,{style:T,pointerEvents:`none`,children:i})]})]}),(s||c)&&(0,r.jsx)(n.Text,{style:[w.helper,s?w.helperError:w.helperNormal],children:s||c})]})}var E=96/25.4,D=96/72,O=(e,t)=>e*E*t,k=(e,t)=>e*D*t,A=e.Y.body.fontFamily,j=e=>(e??``).replace(/<br\s*\/?>/gi,`
2
+ `).replace(/<[^>]+>/g,``),M=(0,t.createContext)(1);function N(e){let n=(0,t.useContext)(M);return e??n}function ee({children:e}){return(0,r.jsx)(r.Fragment,{children:e||`Date`})}function te({children:e}){return(0,r.jsx)(r.Fragment,{children:e||`Sehr geehrte Damen und Herren`})}function ne({children:e}){return(0,r.jsx)(r.Fragment,{children:e||`Mit freundlichen Grüßen`})}function re({address:t,children:i,scale:a}){let o=N(a);return!i&&!t?null:(0,r.jsx)(n.Text,{style:{position:`absolute`,top:O(45,o),left:O(15,o),width:O(100,o),height:O(8,o),fontFamily:A,fontSize:k(9,o),lineHeight:k(9*1.22,o),color:e.J.black},children:i||j(t)})}function ie({address:t,children:i,scale:a}){let o=N(a);return(0,r.jsx)(n.Text,{style:{position:`absolute`,top:O(72,o),left:O(15,o),width:O(85,o),height:O(32,o),fontFamily:A,fontSize:k(9,o),lineHeight:k(9*1.22,o),color:e.J.black},children:i||j(t)})}function ae({address:t,children:i,scale:a}){let o=N(a);return(0,r.jsx)(n.Text,{style:{position:`absolute`,top:O(20,o),left:O(105,o),width:O(90,o),textAlign:`right`,fontFamily:A,fontSize:k(10,o),lineHeight:k(10*1.22,o),color:e.J.black},children:i||j(t)})}var P=[195.7333333333,185.149999999,174.566666665,163.983333331];function oe({identificationFields:t=[],children:i,scale:a}){let o=N(a);return!i&&t.length===0?null:i?(0,r.jsx)(r.Fragment,{children:i}):(0,r.jsx)(r.Fragment,{children:t.slice(0,P.length).map((t,i)=>(0,r.jsx)(n.View,{style:{position:`absolute`,right:O(15,o),width:O(95.25,o),height:O(42.9166666667,o),bottom:O(P[i],o)},children:(0,r.jsxs)(n.Text,{style:{textAlign:`right`,fontFamily:A,fontSize:k(10,o),lineHeight:k(10*1.22,o),color:e.J.black},children:[t.label,`
3
+ `,(0,r.jsx)(n.Text,{style:{fontWeight:`bold`},children:t.value})]})},i))})}function se({date:t,children:i,scale:a}){let o=N(a);return!i&&!t?null:(0,r.jsx)(n.Text,{style:{position:`absolute`,right:O(15,o),width:O(95.25,o),height:O(42.9166666667,o),bottom:O(153.872222,o),textAlign:`right`,fontFamily:A,fontSize:k(10,o),lineHeight:k(10*1.22,o),color:e.J.black},children:i||(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ee,{}),`: `,t]})})}function ce({letterSubject:t,letterText:i,userFullName:a,children:o,scale:s}){let c=N(s);return(0,r.jsx)(n.View,{style:{position:`absolute`,top:O(105,c),left:O(15,c),width:O(175,c)},children:o||(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.Text,{style:{fontFamily:A,fontSize:k(10,c),fontWeight:`700`,color:e.J.black},children:t}),(0,r.jsxs)(n.Text,{style:{marginVertical:O(5.2916666667,c),fontFamily:A,fontSize:k(10,c),color:e.J.black},children:[(0,r.jsx)(te,{}),`,`]}),(0,r.jsx)(n.Text,{style:{fontFamily:A,fontSize:k(10,c),lineHeight:k(13,c),color:e.J.black},children:j(i)}),(0,r.jsx)(n.Text,{style:{marginVertical:O(5.2916666667,c),fontFamily:A,fontSize:k(10,c),color:e.J.black},children:(0,r.jsx)(ne,{})}),(0,r.jsx)(n.Text,{style:{marginVertical:O(5.2916666667,c),fontFamily:A,fontSize:k(10,c),color:e.J.black},children:a})]})})}function le({senderAddressSlim:t,vendorAddress:i,senderAddress:a,identificationFields:o=[],date:s,letterSubject:c,letterText:l,userFullName:u,scale:d=1,children:f}){return(0,r.jsx)(M.Provider,{value:d,children:(0,r.jsx)(n.View,{style:{width:O(210,d),height:O(297,d),backgroundColor:e.J.white},children:f||(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(re,{address:t}),(0,r.jsx)(ie,{address:i}),(0,r.jsx)(ae,{address:a}),(0,r.jsx)(oe,{identificationFields:o}),(0,r.jsx)(se,{date:s}),(0,r.jsx)(ce,{letterSubject:c,letterText:l,userFullName:u})]})})})}function ue({label:t,onPress:i,icon:a,destructive:o=!1,loading:c=!1,disabled:l=!1}){let d=o?e.J.fg.accent.error:e.J.fg.accent.action;return(0,r.jsxs)(n.Pressable,{accessibilityRole:`menuitem`,accessibilityState:{disabled:l||c},onPress:i,disabled:l||c,style:[F.row,(l||c)&&F.disabled],children:[a,(0,r.jsx)(s,{variant:`label`,color:d,style:F.label,children:t}),c&&(0,r.jsx)(u,{size:18,color:d})]})}var F=n.StyleSheet.create({row:{flexDirection:`row`,alignItems:`center`,gap:8,paddingVertical:12,paddingHorizontal:16},label:{flex:1},disabled:{opacity:.4}});function de({selected:t,onSelect:i,icon:a,title:o,description:c,trailing:l,disabled:u=!1}){return(0,r.jsxs)(n.Pressable,{accessibilityRole:`radio`,accessibilityState:{checked:t,disabled:u},onPress:i,disabled:u,style:[I.card,t&&I.cardSelected,u&&I.cardDisabled],children:[(0,r.jsx)(n.View,{style:[I.indicator,t&&I.indicatorSelected],children:t&&(0,r.jsx)(e.q,{size:`small`,color:e.J.white})}),(0,r.jsxs)(n.View,{style:I.content,children:[(0,r.jsxs)(n.View,{style:I.titleRow,children:[a,(0,r.jsx)(s,{variant:`label`,style:I.title,children:o}),l]}),c&&(0,r.jsx)(s,{variant:`body`,color:e.J.fg.secondary,children:c})]})]})}var I=n.StyleSheet.create({card:{minHeight:110,width:`100%`,flexDirection:`row`,alignItems:`center`,gap:12,borderRadius:20,borderWidth:1,borderColor:e.J.neutral[`800-A08`],backgroundColor:e.J.white,padding:16},cardSelected:{borderWidth:2,borderColor:e.J.border.action,backgroundColor:e.J.primary[`600-A08`]},cardDisabled:{opacity:.4},indicator:{width:20,height:20,borderRadius:10,borderWidth:2,borderColor:e.J.neutral[`800-A16`],alignItems:`center`,justifyContent:`center`},indicatorSelected:{borderWidth:0,backgroundColor:e.J.border.action},content:{flex:1,gap:4},titleRow:{flexDirection:`row`,alignItems:`center`,gap:8},title:{flex:1}});function L({label:i,value:a,onChange:o,options:s,error:c,disabled:l=!1}){let[u,d]=(0,t.useState)(!1);(0,t.useEffect)(()=>{s.length===1&&!a&&o(s[0].value)},[s,a]);let f=s.find(e=>e.value===a),p=c?e.J.fg.accent.error:u?e.J.fg.base:e.J.bg.tertiary;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.View,{style:R.container,children:[(0,r.jsxs)(n.Pressable,{style:[R.trigger,{borderColor:p},l&&R.triggerDisabled],onPress:()=>d(!0),disabled:l,accessibilityRole:`combobox`,accessibilityLabel:i,accessibilityState:{expanded:u,disabled:l},children:[(0,r.jsxs)(n.View,{style:R.triggerContent,children:[(0,r.jsx)(n.Text,{style:[R.labelText,f&&R.labelFloating],children:i}),f&&(0,r.jsx)(n.Text,{style:R.valueText,numberOfLines:1,children:f.text})]}),(0,r.jsx)(e.K,{direction:`down`,color:e.J.fg.secondary,size:`small`})]}),c&&(0,r.jsx)(n.Text,{style:R.errorText,children:c})]}),(0,r.jsx)(n.Modal,{visible:u,transparent:!0,animationType:`fade`,onRequestClose:()=>d(!1),children:(0,r.jsx)(n.Pressable,{style:R.backdrop,onPress:()=>d(!1),children:(0,r.jsxs)(n.View,{style:R.sheet,children:[(0,r.jsx)(n.View,{style:R.sheetHandle}),(0,r.jsx)(n.ScrollView,{bounces:!1,children:s.map(e=>{let t=e.value===a;return(0,r.jsx)(n.Pressable,{style:[R.option,t&&R.optionActive],onPress:()=>{o(e.value),d(!1)},accessibilityRole:`menuitem`,accessibilityState:{selected:t},children:(0,r.jsx)(n.Text,{style:[R.optionText,t&&R.optionTextActive],children:e.text})},e.value)})})]})})})]})}var R=n.StyleSheet.create({container:{marginBottom:8},trigger:{height:50,paddingHorizontal:12,borderRadius:12,flexDirection:`row`,alignItems:`center`,backgroundColor:e.J.bg.secondary,borderWidth:2},triggerDisabled:{opacity:.4},triggerContent:{flex:1,justifyContent:`center`},labelText:{fontFamily:e.Y.body.fontFamily,fontSize:15,color:e.J.fg.tertiary},labelFloating:{fontSize:12,color:e.J.fg.secondary,marginBottom:2},valueText:{fontFamily:e.Y.body.fontFamily,fontSize:15,fontWeight:`500`,color:e.J.primary[900]},errorText:{marginTop:4,fontSize:12,paddingHorizontal:4,color:e.J.fg.accent.error,fontFamily:e.Y.body.fontFamily},backdrop:{flex:1,backgroundColor:`rgba(0,0,0,0.4)`,justifyContent:`flex-end`},sheet:{backgroundColor:e.J.bg.base,borderTopLeftRadius:16,borderTopRightRadius:16,paddingBottom:32,maxHeight:`70%`},sheetHandle:{width:36,height:4,borderRadius:2,backgroundColor:e.J.border.default,alignSelf:`center`,marginTop:8,marginBottom:8},option:{paddingVertical:16,paddingHorizontal:20,borderBottomWidth:1,borderBottomColor:e.J.border.default},optionActive:{backgroundColor:e.J.primary[50]},optionText:{fontFamily:e.Y.body.fontFamily,fontSize:15,color:e.J.fg.base},optionTextActive:{color:e.J.primary[900],fontWeight:`500`}});function fe({open:t,onClose:i,onGoBack:o,title:c,children:l,footer:u,background:d,headerBackgroundColor:f}){let p=(0,a.useSafeAreaInsets)();return(0,r.jsx)(n.Modal,{visible:t,animationType:`slide`,presentationStyle:`pageSheet`,onRequestClose:i,children:(0,r.jsx)(n.KeyboardAvoidingView,{style:z.flex,behavior:n.Platform.OS===`ios`?`padding`:void 0,children:(0,r.jsxs)(n.View,{style:[z.container,{paddingTop:Math.max(p.top,16)}],children:[d&&(0,r.jsx)(n.View,{style:n.StyleSheet.absoluteFillObject,children:d}),(0,r.jsxs)(n.View,{style:[z.header,f?{backgroundColor:f}:void 0],children:[(0,r.jsx)(n.View,{style:z.headerSide,children:o&&(0,r.jsx)(C,{variant:`base`,size:`md`,accessibilityLabel:`Go back`,onPress:o,children:(0,r.jsx)(e.K,{color:e.J.fg.secondary,direction:`left`})})}),c?(0,r.jsx)(s,{variant:`heading`,style:z.headerTitle,children:c}):(0,r.jsx)(n.View,{style:z.flex}),(0,r.jsx)(n.View,{style:[z.headerSide,z.headerSideRight],children:(0,r.jsx)(C,{variant:`base`,size:`md`,accessibilityLabel:`Close`,onPress:i,children:(0,r.jsx)(e.G,{color:e.J.fg.secondary,size:`small`})})})]}),(0,r.jsx)(n.ScrollView,{style:z.flex,contentContainerStyle:z.body,children:l}),u&&(0,r.jsx)(n.View,{style:z.footer,children:u})]})})})}var z=n.StyleSheet.create({flex:{flex:1},container:{flex:1,backgroundColor:e.J.bg.base},header:{flexDirection:`row`,alignItems:`center`,paddingHorizontal:8,paddingBottom:8,minHeight:52},headerSide:{flex:1},headerSideRight:{alignItems:`flex-end`},headerTitle:{flex:2,textAlign:`center`},body:{paddingHorizontal:20,paddingBottom:20},footer:{paddingHorizontal:20,paddingVertical:24,borderTopWidth:1,borderTopColor:e.J.border.default}}),B=24,V=8,H=12,U=2*Math.PI*V,pe=n.Animated.createAnimatedComponent(i.Circle);function me(){return(0,r.jsx)(i.Svg,{width:B,height:B,viewBox:`0 0 24 24`,fill:`none`,children:(0,r.jsx)(i.Circle,{cx:H,cy:H,r:V,stroke:e.J.neutral[`800-A16`],strokeWidth:3,fill:`none`})})}function he({durationMs:a=1500}){let o=(0,t.useRef)(new n.Animated.Value(0)).current;(0,t.useEffect)(()=>{o.setValue(0);let e=n.Animated.timing(o,{toValue:1,duration:a,useNativeDriver:!1});return e.start(),()=>e.stop()},[o,a]);let s=o.interpolate({inputRange:[0,1],outputRange:[U,0]});return(0,r.jsxs)(i.Svg,{width:B,height:B,viewBox:`0 0 24 24`,fill:`none`,children:[(0,r.jsx)(i.Circle,{cx:H,cy:H,r:V,stroke:e.J.neutral[`800-A16`],strokeWidth:3,fill:`none`}),(0,r.jsx)(pe,{cx:H,cy:H,r:V,stroke:e.J.fg.accent.action,strokeWidth:3,fill:`none`,strokeDasharray:U,strokeDashoffset:s,strokeLinecap:`round`,rotation:`-90`,origin:`${H}, ${H}`})]})}function ge({state:t,mode:n=`determinate`,durationMs:i}){switch(t){case`pending`:return(0,r.jsx)(me,{});case`loading`:return n===`indeterminate`?(0,r.jsx)(u,{size:B,color:e.J.fg.accent.action,trackColor:e.J.neutral[`800-A16`]}):(0,r.jsx)(he,{durationMs:i});case`complete`:return(0,r.jsx)(e.q,{size:B,color:e.J.fg.accent.action});case`error`:return(0,r.jsx)(e.W,{size:B,color:e.J.fg.accent.error})}}function _e({steps:e}){return(0,r.jsx)(n.View,{style:W.container,children:e.map((e,t)=>(0,r.jsxs)(n.View,{style:W.row,children:[(0,r.jsx)(n.View,{style:W.iconSlot,children:(0,r.jsx)(ge,{state:e.state,mode:e.mode,durationMs:e.durationMs})}),(0,r.jsx)(s,{variant:`body`,children:e.label})]},t))})}var W=n.StyleSheet.create({container:{gap:12},row:{flexDirection:`row`,alignItems:`center`,gap:12},iconSlot:{width:B,height:B,alignItems:`center`,justifyContent:`center`}}),G=1,ve=1e6,K=0;function ye(){return K=(K+1)%(2**53-1),K.toString()}var q=new Map,J=e=>{if(q.has(e))return;let t=setTimeout(()=>{q.delete(e),Z({type:`REMOVE_TOAST`,toastId:e})},ve);q.set(e,t)},be=(e,t)=>{switch(t.type){case`ADD_TOAST`:return{...e,toasts:[t.toast,...e.toasts].slice(0,G)};case`UPDATE_TOAST`:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case`DISMISS_TOAST`:{let{toastId:n}=t;return n?J(n):e.toasts.forEach(e=>{J(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||n===void 0?{...e,open:!1}:e)}}case`REMOVE_TOAST`:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},Y=[],X={toasts:[]};function Z(e){X=be(X,e),Y.forEach(e=>{e(X)})}function xe({...e}){let t=ye(),n=e=>Z({type:`UPDATE_TOAST`,toast:{...e,id:t}}),r=()=>Z({type:`DISMISS_TOAST`,toastId:t});return Z({type:`ADD_TOAST`,toast:{...e,id:t,open:!0,onOpenChange:e=>{e||r()}}}),{id:t,dismiss:r,update:n}}function Q(){let[e,n]=t.useState(X);return t.useEffect(()=>(Y.push(n),()=>{let e=Y.indexOf(n);e>-1&&Y.splice(e,1)}),[e]),{...e,toast:xe,dismiss:e=>Z({type:`DISMISS_TOAST`,toastId:e})}}function Se(){return(0,r.jsx)(i.Svg,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,children:(0,r.jsx)(i.Path,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM9 7.58579L7.58579 9L10.5858 12L7.58579 15L9 16.4142L12 13.4142L15 16.4142L16.4142 15L13.4142 12L16.4142 9L15 7.58579L12 10.5858L9 7.58579Z`,fill:`#FE4C00`})})}function Ce(){return(0,r.jsx)(i.Svg,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,children:(0,r.jsx)(i.Path,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM10 10H13V17H11V12H10V10ZM11 9V7H13V9H11Z`,fill:`#9DA7A2`})})}function we(){return(0,r.jsx)(i.Svg,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,children:(0,r.jsx)(i.Path,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 21.9996C17.5228 21.9996 22 17.5225 22 11.9996C22 6.47679 17.5228 1.99963 12 1.99963C6.47715 1.99963 2 6.47679 2 11.9996C2 17.5225 6.47715 21.9996 12 21.9996ZM10.5744 16.4881L16.4073 9.35888L14.8594 8.09241L10.4259 13.5112L8.50015 11.5854L7.08594 12.9996L10.5744 16.4881Z`,fill:`#3B872C`})})}function Te(){return(0,r.jsx)(i.Svg,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,children:(0,r.jsx)(i.Path,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M13.7367 4.53861C12.9689 3.19498 11.0315 3.19498 10.2637 4.53861L1.71007 19.5075C0.948179 20.8408 1.91091 22.4998 3.44656 22.4998H20.5538C22.0895 22.4998 23.0522 20.8408 22.2903 19.5075L13.7367 4.53861ZM11 9.49997H13V15.5H11V9.49997ZM11 17.5H13V19.5H11V17.5Z`,fill:`#FEA900`})})}var Ee={success:{background:e.J.sf.light.action,color:e.J.fg.accent.action},error:{background:e.J.sf.light.error,color:e.J.fg.accent.error},info:{background:e.J.sf.light.tertiary,color:e.J.fg.base},warning:{background:e.J.sf.light.warning,color:e.J.fg.accent.warning}};function De({variant:e}){switch(e){case`success`:return(0,r.jsx)(we,{});case`error`:return(0,r.jsx)(Se,{});case`warning`:return(0,r.jsx)(Te,{});default:return(0,r.jsx)(Ce,{})}}var Oe=5e3;function ke({id:i,title:a,description:o,variant:c=`info`,duration:l,onDismiss:u}){let{background:d,color:f}=Ee[c],p=(0,t.useRef)(new n.Animated.Value(0)).current;(0,t.useEffect)(()=>{let e=n.Animated.timing(p,{toValue:1,duration:200,useNativeDriver:!0});return e.start(),()=>e.stop()},[p]);let m=(0,t.useRef)(u);m.current=u,(0,t.useEffect)(()=>{let e=setTimeout(()=>m.current(i),l??Oe);return()=>clearTimeout(e)},[i,l]);let h=p.interpolate({inputRange:[0,1],outputRange:[-16,0]});return(0,r.jsxs)(n.Animated.View,{style:[$.card,{backgroundColor:d,opacity:p,transform:[{translateY:h}]}],children:[(0,r.jsx)(n.View,{style:$.iconWrapper,children:(0,r.jsx)(De,{variant:c})}),(0,r.jsxs)(n.View,{style:$.content,children:[a&&(0,r.jsx)(s,{variant:`label`,color:f,children:a}),o&&(0,r.jsx)(s,{variant:`body`,color:f,style:$.description,children:o})]}),(0,r.jsx)(C,{size:`sm`,accessibilityLabel:`Dismiss`,onPress:()=>u(i),children:(0,r.jsx)(e.G,{size:`small`,color:f})})]})}function Ae(){let{toasts:e,dismiss:t}=Q(),i=(0,a.useSafeAreaInsets)(),o=e.filter(e=>e.open!==!1);return o.length===0?null:(0,r.jsx)(n.View,{style:[$.container,{top:Math.max(i.top,16)}],pointerEvents:`box-none`,children:o.map(e=>(0,r.jsx)(ke,{id:e.id,title:e.title,description:e.description,variant:e.variant,duration:e.duration,onDismiss:t},e.id))})}var $=n.StyleSheet.create({container:{position:`absolute`,left:0,right:0,alignItems:`center`,paddingHorizontal:16},card:{width:`100%`,flexDirection:`row`,alignItems:`center`,gap:8,borderRadius:16,padding:12,shadowColor:e.J.black,shadowOpacity:.04,shadowRadius:16,shadowOffset:{width:0,height:0},elevation:4},iconWrapper:{width:24,height:24,alignItems:`center`,justifyContent:`center`},content:{flex:1},description:{fontSize:13}}),je=()=>{let[e,n]=(0,t.useState)(window.innerWidth<=768),r=(0,t.useRef)(window.innerWidth);return(0,t.useEffect)(()=>{let e=()=>{let e=window.innerWidth;e<=768&&r.current>768?n(!0):e>768&&r.current<=768&&n(!1),r.current=e};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e};exports.Badge=c,exports.Button=f,exports.Card=m,exports.Divider=g,exports.EmptyState=v,exports.IconButton=C,exports.Input=T,exports.Letter=le,exports.MenuItem=ue,exports.RadioCard=de,exports.Select=L,exports.Sheet=fe,exports.Spinner=u,exports.StepProgress=_e,exports.Text=s,exports.Toaster=Ae,exports.colors=e.J,Object.defineProperty(exports,`icons`,{enumerable:!0,get:function(){return e.t}}),exports.typography=e.Y,exports.useIsMobile=je,exports.useToast=Q;