@donotdev/expo 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/dist/atomic/Accordion/index.js +1 -1
  2. package/dist/atomic/Alert/index.js +1 -1
  3. package/dist/atomic/AlertDialog/index.d.ts.map +1 -1
  4. package/dist/atomic/AlertDialog/index.js +1 -1
  5. package/dist/atomic/Avatar/index.d.ts +1 -1
  6. package/dist/atomic/Avatar/index.d.ts.map +1 -1
  7. package/dist/atomic/Avatar/index.js +1 -1
  8. package/dist/atomic/Badge/index.d.ts.map +1 -1
  9. package/dist/atomic/Badge/index.js +1 -1
  10. package/dist/atomic/Blockquote/index.js +1 -1
  11. package/dist/atomic/Button/index.d.ts.map +1 -1
  12. package/dist/atomic/Button/index.js +1 -1
  13. package/dist/atomic/Calendar/index.js +1 -1
  14. package/dist/atomic/CallToAction/index.js +1 -1
  15. package/dist/atomic/Card/index.d.ts.map +1 -1
  16. package/dist/atomic/Card/index.js +1 -1
  17. package/dist/atomic/Checkbox/index.d.ts.map +1 -1
  18. package/dist/atomic/Checkbox/index.js +1 -1
  19. package/dist/atomic/Collapsible/index.js +1 -1
  20. package/dist/atomic/Combobox/index.js +1 -1
  21. package/dist/atomic/Command/index.js +1 -1
  22. package/dist/atomic/CommandDialog/index.d.ts.map +1 -1
  23. package/dist/atomic/CommandDialog/index.js +1 -1
  24. package/dist/atomic/ContextMenu/index.js +1 -1
  25. package/dist/atomic/CopyToClipboard/index.js +1 -1
  26. package/dist/atomic/DescriptionList/index.js +1 -1
  27. package/dist/atomic/Dialog/index.js +1 -1
  28. package/dist/atomic/DropdownMenu/index.js +1 -1
  29. package/dist/atomic/DualCard/index.d.ts.map +1 -1
  30. package/dist/atomic/DualCard/index.js +1 -1
  31. package/dist/atomic/FeatureFallback/index.d.ts.map +1 -1
  32. package/dist/atomic/FeatureFallback/index.js +1 -1
  33. package/dist/atomic/FileButton/index.js +1 -1
  34. package/dist/atomic/Grid/index.d.ts +2 -2
  35. package/dist/atomic/Grid/index.d.ts.map +1 -1
  36. package/dist/atomic/Grid/index.js +1 -1
  37. package/dist/atomic/HeroSection/index.js +1 -1
  38. package/dist/atomic/HoverCard/index.js +1 -1
  39. package/dist/atomic/Icons/index.js +1 -1
  40. package/dist/atomic/InfiniteScroll/index.js +1 -1
  41. package/dist/atomic/Input/index.d.ts.map +1 -1
  42. package/dist/atomic/Input/index.js +1 -1
  43. package/dist/atomic/Label/index.d.ts.map +1 -1
  44. package/dist/atomic/Label/index.js +1 -1
  45. package/dist/atomic/List/index.d.ts.map +1 -1
  46. package/dist/atomic/List/index.js +1 -1
  47. package/dist/atomic/NavigationMenu/index.js +1 -1
  48. package/dist/atomic/Pagination/index.js +1 -1
  49. package/dist/atomic/PasswordInput/index.js +1 -1
  50. package/dist/atomic/Popover/index.js +1 -1
  51. package/dist/atomic/Portal/index.js +1 -1
  52. package/dist/atomic/PortalButton/index.js +1 -1
  53. package/dist/atomic/Progress/index.d.ts.map +1 -1
  54. package/dist/atomic/Progress/index.js +1 -1
  55. package/dist/atomic/RadioGroup/index.d.ts.map +1 -1
  56. package/dist/atomic/RadioGroup/index.js +1 -1
  57. package/dist/atomic/RangeInput/index.d.ts.map +1 -1
  58. package/dist/atomic/RangeInput/index.js +1 -1
  59. package/dist/atomic/Rating/index.js +1 -1
  60. package/dist/atomic/ScrollArea/index.js +1 -1
  61. package/dist/atomic/Section/index.d.ts.map +1 -1
  62. package/dist/atomic/Section/index.js +1 -1
  63. package/dist/atomic/Select/index.d.ts.map +1 -1
  64. package/dist/atomic/Select/index.js +1 -1
  65. package/dist/atomic/Separator/index.d.ts.map +1 -1
  66. package/dist/atomic/Separator/index.js +1 -1
  67. package/dist/atomic/Sheet/index.js +1 -1
  68. package/dist/atomic/Skeleton/index.js +1 -1
  69. package/dist/atomic/Slider/index.d.ts.map +1 -1
  70. package/dist/atomic/Slider/index.js +1 -1
  71. package/dist/atomic/Slot/index.js +1 -1
  72. package/dist/atomic/Spinner/index.js +1 -1
  73. package/dist/atomic/Stack/index.js +1 -1
  74. package/dist/atomic/Stepper/index.js +1 -1
  75. package/dist/atomic/Switch/index.d.ts.map +1 -1
  76. package/dist/atomic/Switch/index.js +1 -1
  77. package/dist/atomic/Table/index.js +1 -1
  78. package/dist/atomic/Tabs/index.d.ts.map +1 -1
  79. package/dist/atomic/Tabs/index.js +1 -1
  80. package/dist/atomic/Tag/index.js +1 -1
  81. package/dist/atomic/Text/index.d.ts.map +1 -1
  82. package/dist/atomic/Text/index.js +1 -1
  83. package/dist/atomic/Textarea/index.js +1 -1
  84. package/dist/atomic/Toaster/index.d.ts.map +1 -1
  85. package/dist/atomic/Toaster/index.js +1 -1
  86. package/dist/atomic/Toggle/index.d.ts.map +1 -1
  87. package/dist/atomic/Toggle/index.js +1 -1
  88. package/dist/atomic/ToggleGroup/index.js +1 -1
  89. package/dist/atomic/Tooltip/index.js +1 -1
  90. package/dist/atomic/VideoPlayer/index.js +1 -1
  91. package/dist/atomic/VisuallyHidden/index.js +1 -1
  92. package/dist/atomic/index.js +1 -1
  93. package/dist/crud/components/DateFilter.js +1 -1
  94. package/dist/crud/components/DisplayFieldRenderer.js +1 -1
  95. package/dist/crud/components/EntityCardList.js +1 -1
  96. package/dist/crud/components/EntityDisplayRenderer.js +1 -1
  97. package/dist/crud/components/EntityFilters.js +1 -1
  98. package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
  99. package/dist/crud/components/EntityList.js +1 -1
  100. package/dist/crud/components/FormFieldRenderer.js +1 -1
  101. package/dist/crud/components/FormLayout.js +1 -1
  102. package/dist/crud/components/index.js +1 -1
  103. package/dist/crud/contexts/UploadContext.js +1 -1
  104. package/dist/crud/stores/index.js +1 -1
  105. package/dist/features/auth/components/AuthPartnerButton.d.ts.map +1 -1
  106. package/dist/features/auth/components/AuthPartnerButton.js +1 -1
  107. package/dist/features/auth/components/ConfirmDeleteDialog.js +1 -1
  108. package/dist/features/auth/components/FeatureGuard.js +1 -1
  109. package/dist/features/auth/components/GoogleOneTap.js +1 -1
  110. package/dist/features/auth/components/LoginModal.js +1 -1
  111. package/dist/features/auth/components/MultipleAuthProviders.d.ts.map +1 -1
  112. package/dist/features/auth/components/MultipleAuthProviders.js +1 -1
  113. package/dist/features/auth/components/ReauthDialog.js +1 -1
  114. package/dist/features/auth/components/index.js +1 -1
  115. package/dist/features/auth/hooks/index.js +1 -1
  116. package/dist/features/auth/hooks/useAuthState.js +1 -1
  117. package/dist/features/auth/hooks/useCanAccess.js +1 -1
  118. package/dist/features/auth/hooks/useHasRole.js +1 -1
  119. package/dist/features/auth/hooks/useUserRole.js +1 -1
  120. package/dist/features/auth/index.js +1 -1
  121. package/dist/features/billing/components/ProductCard.d.ts.map +1 -1
  122. package/dist/features/billing/components/ProductCard.js +1 -1
  123. package/dist/features/billing/components/SecurityNotice.js +1 -1
  124. package/dist/features/billing/components/StripeCheckoutButton.d.ts.map +1 -1
  125. package/dist/features/billing/components/StripeCheckoutButton.js +1 -1
  126. package/dist/features/billing/components/SubscriptionManager.js +1 -1
  127. package/dist/features/billing/components/index.js +1 -1
  128. package/dist/features/billing/index.js +1 -1
  129. package/dist/features/oauth/components/MultipleOAuthProviders.d.ts.map +1 -1
  130. package/dist/features/oauth/components/MultipleOAuthProviders.js +1 -1
  131. package/dist/features/oauth/components/OAuthConnectionModal.d.ts.map +1 -1
  132. package/dist/features/oauth/components/OAuthConnectionModal.js +1 -1
  133. package/dist/features/oauth/components/OAuthFallback.d.ts.map +1 -1
  134. package/dist/features/oauth/components/OAuthFallback.js +1 -1
  135. package/dist/features/oauth/components/OAuthPartnerButton.js +1 -1
  136. package/dist/features/oauth/components/index.js +1 -1
  137. package/dist/firebase/authPersistence.d.ts.map +1 -1
  138. package/dist/firebase/authPersistence.js +1 -1
  139. package/dist/firebase/index.js +1 -1
  140. package/dist/index.js +1 -1
  141. package/dist/providers/ExpoAppProviders.js +1 -1
  142. package/dist/routing/components.js +1 -1
  143. package/dist/storage/AsyncStorageStrategy.js +1 -1
  144. package/dist/storage/zustandAsyncStorage.js +1 -1
  145. package/dist/theme/ThemeProvider.d.ts.map +1 -1
  146. package/dist/theme/ThemeProvider.js +1 -1
  147. package/dist/theme/index.js +1 -1
  148. package/dist/theme/tokens.js +1 -1
  149. package/dist/utils/constants.js +1 -1
  150. package/dist/utils/helpers.js +1 -1
  151. package/dist/utils/index.js +1 -1
  152. package/dist/utils/theme-helpers.js +1 -1
  153. package/dist/utils/useAuthSafe.js +1 -1
  154. package/dist/utils/variants.js +1 -1
  155. package/package.json +9 -8
  156. package/dist/__tests__/components/atomic.test.d.ts +0 -10
  157. package/dist/__tests__/components/atomic.test.d.ts.map +0 -1
  158. package/dist/__tests__/components/atomic.test.js +0 -1
  159. package/dist/__tests__/providers/ExpoAppProviders.test.d.ts +0 -10
  160. package/dist/__tests__/providers/ExpoAppProviders.test.d.ts.map +0 -1
  161. package/dist/__tests__/providers/ExpoAppProviders.test.js +0 -1
  162. package/dist/__tests__/setup.d.ts +0 -10
  163. package/dist/__tests__/setup.d.ts.map +0 -1
  164. package/dist/__tests__/setup.js +0 -1
  165. package/dist/__tests__/test-utils.d.ts +0 -22
  166. package/dist/__tests__/test-utils.d.ts.map +0 -1
  167. package/dist/__tests__/test-utils.js +0 -1
@@ -1 +1 @@
1
- import{jsx as l,jsxs as u}from"react/jsx-runtime";import{useState as C}from"react";import{TouchableOpacity as j,View as a}from"react-native";import{useTheme as w}from"../../theme";import d from"../Text";const V=({type:n="single",collapsible:g=!1,defaultValue:p,value:c,onValueChange:v,items:m,style:y,testID:e})=>{const{theme:s}=w(),h={borderBottomWidth:1,borderBottomColor:s.colors.border},f={paddingVertical:s.spacing.md,paddingHorizontal:s.spacing.md,flexDirection:"row",justifyContent:"space-between",alignItems:"center"},b={paddingHorizontal:s.spacing.md,paddingBottom:s.spacing.md},[$,x]=C(()=>p||(n==="multiple"?[]:"")),r=c??$,B=c!==void 0,D=t=>n==="single"?r===t:Array.isArray(r)&&r.includes(t),I=t=>{let i;if(n==="single"){if(r===t&&!g)return;i=r===t?"":t}else{const o=Array.isArray(r)?r:[];i=o.includes(t)?o.filter(A=>A!==t):[...o,t]}B||x(i),v?.(i)};return l(a,{style:y,testID:e,children:m.map((t,i)=>{const o=D(t.value);return u(a,{style:[h,i===m.length-1&&{borderBottomWidth:0}],testID:e?`${e}-item-${t.value}`:void 0,children:[u(j,{onPress:()=>I(t.value),style:f,activeOpacity:.7,testID:e?`${e}-trigger-${t.value}`:void 0,children:[l(a,{style:{flex:1},children:typeof t.trigger=="string"?l(d,{level:"h4",children:t.trigger}):t.trigger}),l(d,{level:"body",variant:"muted",children:o?"\u25BC":"\u25B6"})]}),o&&l(a,{style:b,testID:e?`${e}-content-${t.value}`:void 0,children:typeof t.content=="string"?l(d,{level:"body",children:t.content}):t.content})]},t.value)})})};var O=V;export{O as default};
1
+ import{jsx as l,jsxs as u}from"react/jsx-runtime";import{useState as S}from"react";import{TouchableOpacity as T,View as i}from"react-native";import{useTheme as C}from"../../theme";import d from"../Text";const O=({type:c="single",collapsible:f=!1,defaultValue:p,value:a,onValueChange:y,items:g,style:h,testID:n})=>{const{theme:s}=C(),v={borderBottomWidth:1,borderBottomColor:s.colors.border},b={paddingVertical:s.spacing.md,paddingHorizontal:s.spacing.md,flexDirection:"row",justifyContent:"space-between",alignItems:"center"},m={paddingHorizontal:s.spacing.md,paddingBottom:s.spacing.md},[x,$]=S(()=>p||(c==="multiple"?[]:"")),r=a??x,j=a!==void 0,A=e=>c==="single"?r===e:Array.isArray(r)&&r.includes(e),w=e=>{let t;if(c==="single"){if(r===e&&!f)return;t=r===e?"":e}else{const o=Array.isArray(r)?r:[];t=o.includes(e)?o.filter(B=>B!==e):[...o,e]}j||$(t),y?.(t)};return l(i,{style:h,testID:n,children:g.map((e,t)=>{const o=A(e.value);return u(i,{style:[v,t===g.length-1&&{borderBottomWidth:0}],testID:n?`${n}-item-${e.value}`:void 0,children:[u(T,{onPress:()=>w(e.value),style:b,activeOpacity:.7,testID:n?`${n}-trigger-${e.value}`:void 0,children:[l(i,{style:{flex:1},children:typeof e.trigger=="string"?l(d,{level:"h4",children:e.trigger}):e.trigger}),l(d,{level:"body",variant:"muted",children:o?"\u25BC":"\u25B6"})]}),o&&l(i,{style:m,testID:n?`${n}-content-${e.value}`:void 0,children:typeof e.content=="string"?l(d,{level:"body",children:e.content}):e.content})]},e.value)})})};var P=O;export{P as default};
@@ -1 +1 @@
1
- import{jsx as d,jsxs as p}from"react/jsx-runtime";import{View as u}from"react-native";import{THEME_VARIANT as n}from"../../utils/constants";import{mergeStyles as g}from"../../utils/helpers";import{useTheme as b}from"../../theme";import f from"../Stack";import l from"../Text";const a={DEFAULT:n.MUTED,ERROR:"error",WARNING:n.WARNING,SUCCESS:n.SUCCESS,INFO:"info"},h={padding:16,borderRadius:8,borderWidth:1};function v(o){const{theme:c}=b(),r=c.colors,t={muted:{bg:r.muted,border:r.border,title:r.foreground,description:r.mutedForeground},error:{bg:r.destructive+"14",border:r.destructive+"40",title:r.destructive,description:r.destructive},warning:{bg:r.warning+"14",border:r.warning+"40",title:r.warningForeground,description:r.warning},success:{bg:r.success+"14",border:r.success+"40",title:r.success,description:r.success},info:{bg:r.primary+"14",border:r.primary+"40",title:r.primary,description:r.primary}},e=t[o]??t.muted;return{container:{backgroundColor:e.bg,borderColor:e.border},title:{color:e.title},description:{color:e.description}}}const y=({variant:o=a.DEFAULT,hideIcon:c,title:r,description:t,children:e,style:m,testID:i})=>{const s=v(o);return d(u,{style:g(h,s.container,m),testID:i,children:p(f,{gap:4,children:[r&&d(l,{level:"h4",style:s.title,testID:i?`${i}-title`:void 0,children:r}),t&&d(l,{level:"small",style:s.description,testID:i?`${i}-description`:void 0,children:t}),e]})})};var A=y;export{a as ALERT_VARIANT,A as default};
1
+ import{jsx as n,jsxs as m}from"react/jsx-runtime";import{View as u}from"react-native";import{THEME_VARIANT as c}from"../../utils/constants";import{mergeStyles as p}from"../../utils/helpers";import{useTheme as g}from"../../theme";import b from"../Stack";import l from"../Text";const f={DEFAULT:c.MUTED,ERROR:"error",WARNING:c.WARNING,SUCCESS:c.SUCCESS,INFO:"info"},y={padding:16,borderRadius:8,borderWidth:1};function A(i){const{theme:d}=g(),r=d.colors,t={muted:{bg:r.muted,border:r.border,title:r.foreground,description:r.mutedForeground},error:{bg:r.destructive+"14",border:r.destructive+"40",title:r.destructive,description:r.destructive},warning:{bg:r.warning+"14",border:r.warning+"40",title:r.warningForeground,description:r.warning},success:{bg:r.success+"14",border:r.success+"40",title:r.success,description:r.success},info:{bg:r.primary+"14",border:r.primary+"40",title:r.primary,description:r.primary}},e=t[i]??t.muted;return{container:{backgroundColor:e.bg,borderColor:e.border},title:{color:e.title},description:{color:e.description}}}const S=({variant:i=f.DEFAULT,hideIcon:d,title:r,description:t,children:e,style:a,testID:o})=>{const s=A(i);return n(u,{style:p(y,s.container,a),testID:o,children:m(b,{gap:4,children:[r&&n(l,{level:"h4",style:s.title,testID:o?`${o}-title`:void 0,children:r}),t&&n(l,{level:"small",style:s.description,testID:o?`${o}-description`:void 0,children:t}),e]})})};var w=S;export{f as ALERT_VARIANT,w as default};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/AlertDialog/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAGH,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAQtB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;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IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAmBD;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,WAAW,GAAI,iJAalB,gBAAgB,4CA0GlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1 +1 @@
1
- import{jsx as o,jsxs as r,Fragment as R}from"react/jsx-runtime";import{useState as T}from"react";import{Modal as k,TouchableOpacity as a}from"react-native";import{mergeStyles as L}from"../../utils/helpers";import{useTheme as S}from"../../theme";import n from"../Stack";import p from"../Text";import v from"../Button";const q={flex:1,backgroundColor:"rgba(0, 0, 0, 0.5)",justifyContent:"center",alignItems:"center"},A={borderRadius:12,padding:24,maxWidth:"90%",shadowOffset:{width:0,height:4},shadowOpacity:.3,shadowRadius:8,elevation:8},F=({trigger:s,title:f,description:d,cancelLabel:g="Cancel",confirmLabel:u,actionLabel:y="Confirm",onCancel:b,onAction:I,open:l,onOpenChange:c,style:D,testID:t})=>{const{theme:h}=S(),C={...A,backgroundColor:h.colors.background,shadowColor:h.colors.foreground},[$,m]=T(!1),i=l!==void 0,w=i?l:$,O=()=>{i||m(!0),c?.(!0)},e=()=>{i||m(!1),c?.(!1)},P=()=>{b?.(),e()},x=()=>{I?.(),e()};return r(R,{children:[s&&o(a,{onPress:O,testID:t?`${t}-trigger`:void 0,children:s}),o(k,{visible:w,transparent:!0,animationType:"fade",onRequestClose:e,testID:t,children:o(a,{style:q,activeOpacity:1,onPress:e,testID:t?`${t}-overlay`:void 0,children:o(a,{activeOpacity:1,onPress:j=>j.stopPropagation(),style:L(C,D),testID:t?`${t}-content`:void 0,children:r(n,{gap:16,children:[r(n,{gap:4,testID:t?`${t}-header`:void 0,children:[o(p,{level:"h3",testID:t?`${t}-title`:void 0,children:f}),d&&o(p,{level:"body",variant:"muted",testID:t?`${t}-description`:void 0,children:d})]}),r(n,{direction:"row",gap:8,justify:"flex-end",testID:t?`${t}-footer`:void 0,children:[o(v,{variant:"outline",onPress:P,testID:t?`${t}-cancel`:void 0,children:g}),o(v,{variant:"destructive",onPress:x,testID:t?`${t}-action`:void 0,children:u||y})]})]})})})})]})};var M=F;export{M as default};
1
+ import{jsx as n,jsxs as r,Fragment as R}from"react/jsx-runtime";import{useState as T}from"react";import{Modal as _,TouchableOpacity as t}from"react-native";import{mergeStyles as A}from"../../utils/helpers";import{useTheme as B}from"../../theme";import a from"../Stack";import h from"../Text";import m from"../Button";const F={flex:1,backgroundColor:"rgba(0, 0, 0, 0.5)",justifyContent:"center",alignItems:"center"},q={borderRadius:12,padding:24,maxWidth:"90%",shadowOffset:{width:0,height:4},shadowOpacity:.3,shadowRadius:8,elevation:8},M=({trigger:d,title:p,description:l,cancelLabel:g="Cancel",confirmLabel:y,actionLabel:v="Confirm",onCancel:x,onAction:C,open:s,onOpenChange:c,style:$,testID:e})=>{const{theme:f}=B(),b={...q,backgroundColor:f.colors.background,shadowColor:f.colors.foreground},[w,u]=T(!1),i=s!==void 0,j=i?s:w,O=()=>{i||u(!0),c?.(!0)},o=()=>{i||u(!1),c?.(!1)},P=()=>{x?.(),o()},S=()=>{C?.(),o()};return r(R,{children:[d&&n(t,{onPress:O,testID:e?`${e}-trigger`:void 0,children:d}),n(_,{visible:j,transparent:!0,animationType:"fade",onRequestClose:o,testID:e,children:n(t,{style:F,activeOpacity:1,onPress:o,testID:e?`${e}-overlay`:void 0,children:n(t,{activeOpacity:1,onPress:k=>k.stopPropagation(),style:A(b,$),testID:e?`${e}-content`:void 0,children:r(a,{gap:16,children:[r(a,{gap:4,testID:e?`${e}-header`:void 0,children:[n(h,{level:"h3",testID:e?`${e}-title`:void 0,children:p}),l&&n(h,{level:"body",variant:"muted",testID:e?`${e}-description`:void 0,children:l})]}),r(a,{direction:"row",gap:8,justify:"flex-end",testID:e?`${e}-footer`:void 0,children:[n(m,{variant:"outline",onPress:P,testID:e?`${e}-cancel`:void 0,children:g}),n(m,{variant:"destructive",onPress:S,testID:e?`${e}-action`:void 0,children:y||v})]})]})})})})]})};var Q=M;export{Q as default};
@@ -48,6 +48,6 @@ export interface AvatarProps {
48
48
  * <Avatar fallback="AB" size={60} />
49
49
  * ```
50
50
  */
51
- declare const Avatar: ({ src, fallback, size, children, style, testID }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
51
+ declare const Avatar: ({ src, fallback, size, children, style, testID, }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
52
52
  export default Avatar;
53
53
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Avatar/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAGL,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,QAAA,MAAM,MAAM,GAAI,kDAAuD,WAAW,4CAyDjF,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Avatar/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAe,KAAK,SAAS,EAAmB,MAAM,cAAc,CAAC;AAG5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,QAAA,MAAM,MAAM,GAAI,mDAOb,WAAW,4CAyDb,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- import{jsx as l,jsxs as g}from"react/jsx-runtime";import{Image as p,View as y}from"react-native";import{useState as b,useEffect as v}from"react";import{mergeStyles as I}from"../../utils/helpers";import{useTheme as w}from"../../theme";import j from"../Text";const x=({src:r,fallback:a,size:e=40,children:m,style:n,testID:t})=>{const[o,s]=b(!1),{theme:d}=w(),i=d.colors;v(()=>{s(!1)},[r]);const c=!r||o,f={width:e,height:e,borderRadius:e/2,backgroundColor:i.muted,alignItems:"center",justifyContent:"center",overflow:"hidden"},u={width:e,height:e},h={fontSize:e*.4,fontWeight:"600",color:i.mutedForeground};return g(y,{style:I(f,n),testID:t,children:[r&&!o?l(p,{source:{uri:r},style:u,onError:()=>{s(!0)},testID:t?`${t}-image`:void 0}):null,c&&l(j,{level:"body",style:h,testID:t?`${t}-fallback`:void 0,children:a}),m]})};var D=x;export{D as default};
1
+ import{jsx as a,jsxs as g}from"react/jsx-runtime";import{Image as y,View as p}from"react-native";import{useState as x,useEffect as S}from"react";import{mergeStyles as b}from"../../utils/helpers";import{useTheme as j}from"../../theme";import w from"../Text";const v=({src:o,fallback:m,size:e=40,children:s,style:i,testID:t})=>{const[r,n]=x(!1),{theme:d}=j(),l=d.colors;S(()=>{n(!1)},[o]);const f=!o||r,c={width:e,height:e,borderRadius:e/2,backgroundColor:l.muted,alignItems:"center",justifyContent:"center",overflow:"hidden"},u={width:e,height:e},h={fontSize:e*.4,fontWeight:"600",color:l.mutedForeground};return g(p,{style:b(c,i),testID:t,children:[o&&!r?a(y,{source:{uri:o},style:u,onError:()=>{n(!0)},testID:t?`${t}-image`:void 0}):null,f&&a(w,{level:"body",style:h,testID:t?`${t}-fallback`:void 0,children:m}),s]})};var _=v;export{_ as default};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Badge/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAOpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;CAGhB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAsCD;;;;;;;;;;GAUG;AACH,QAAA,MAAM,KAAK,GAAI,uCAKZ,UAAU,4CAiBZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Badge/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAOpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;CAGhB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAgDD;;;;;;;;;;GAUG;AACH,QAAA,MAAM,KAAK,GAAI,uCAKZ,UAAU,4CAiBZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1 +1 @@
1
- import{jsx as d}from"react/jsx-runtime";import{View as s}from"react-native";import{THEME_VARIANT as i}from"../../utils/constants";import{mergeStyles as c}from"../../utils/helpers";import{useTheme as u}from"../../theme";import g from"../Text";const a={...i,OUTLINE:"outline"},l={paddingHorizontal:8,paddingVertical:4,borderRadius:12,alignSelf:"flex-start"};function b(o){const{theme:n}=u(),r=n.colors,t={default:{bg:r.muted,text:r.foreground},muted:{bg:r.mutedForeground,text:r.background},primary:{bg:r.primary,text:r.primaryForeground},secondary:{bg:r.secondary,text:r.secondaryForeground},accent:{bg:r.accent,text:r.accentForeground},success:{bg:r.success,text:r.successForeground},warning:{bg:r.warning,text:r.warningForeground},destructive:{bg:r.destructive,text:r.destructiveForeground},outline:{bg:"transparent",text:r.foreground,borderColor:r.border,borderWidth:1}},e=t[o]??t.default;return{container:{backgroundColor:e.bg,...e.borderColor?{borderColor:e.borderColor,borderWidth:e.borderWidth}:{}},text:{color:e.text}}}const m=({children:o,variant:n=a.DEFAULT,style:r,testID:t})=>{const e=b(n);return d(s,{style:c(l,e.container,r),testID:t,children:d(g,{level:"caption",style:e.text,testID:t?`${t}-text`:void 0,children:o})})};var x=m;export{a as BADGE_VARIANT,x as default};
1
+ import{jsx as d}from"react/jsx-runtime";import{View as a}from"react-native";import{THEME_VARIANT as c}from"../../utils/constants";import{mergeStyles as s}from"../../utils/helpers";import{useTheme as i}from"../../theme";import u from"../Text";const g={...c,OUTLINE:"outline"},l={paddingHorizontal:8,paddingVertical:4,borderRadius:12,alignSelf:"flex-start"};function b(o){const{theme:n}=i(),e=n.colors,t={default:{bg:e.muted,text:e.foreground},muted:{bg:e.mutedForeground,text:e.background},primary:{bg:e.primary,text:e.primaryForeground},secondary:{bg:e.secondary,text:e.secondaryForeground},accent:{bg:e.accent,text:e.accentForeground},success:{bg:e.success,text:e.successForeground},warning:{bg:e.warning,text:e.warningForeground},destructive:{bg:e.destructive,text:e.destructiveForeground},outline:{bg:"transparent",text:e.foreground,borderColor:e.border,borderWidth:1}},r=t[o]??t.default;return{container:{backgroundColor:r.bg,...r.borderColor?{borderColor:r.borderColor,borderWidth:r.borderWidth}:{}},text:{color:r.text}}}const m=({children:o,variant:n=g.DEFAULT,style:e,testID:t})=>{const r=b(n);return d(a,{style:s(l,r.container,e),testID:t,children:d(u,{level:"caption",style:r.text,testID:t?`${t}-text`:void 0,children:o})})};var T=m;export{g as BADGE_VARIANT,T as default};
@@ -1 +1 @@
1
- import{jsx as o,jsxs as d}from"react/jsx-runtime";import{View as v}from"react-native";import{mergeStyles as b}from"../../utils/helpers";import{useTheme as h}from"../../theme";import s from"../Stack";import e from"../Text";const n={DEFAULT:"default",EDITORIAL:"editorial",TESTIMONIAL:"testimonial"},g={padding:16,borderLeftWidth:4,borderRadius:8},y=({children:m,author:i,source:a,cite:l,variant:u=n.DEFAULT,style:c,testID:t})=>{const{theme:p}=h(),r=p.colors,f={default:{backgroundColor:r.muted,borderLeftColor:r.primary},editorial:{backgroundColor:r.background,borderLeftColor:r.mutedForeground,paddingLeft:20},testimonial:{backgroundColor:r.primary+"14",borderLeftColor:r.primary,padding:20,borderRadius:12}}[u];return o(v,{style:b(g,f,c),testID:t,children:d(s,{gap:8,children:[o(e,{level:"body",style:{fontStyle:"italic"},testID:t?`${t}-quote`:void 0,children:m}),(i||a)&&d(s,{gap:2,testID:t?`${t}-attribution`:void 0,children:[i&&d(e,{level:"small",variant:"muted",testID:t?`${t}-author`:void 0,children:["\u2014 ",i]}),a&&o(e,{level:"caption",variant:"muted",testID:t?`${t}-source`:void 0,children:a})]}),l&&o(e,{level:"caption",variant:"muted",style:{fontStyle:"italic"},testID:t?`${t}-cite`:void 0,children:l})]})})};var I=y;export{n as BLOCKQUOTE_VARIANT,I as default};
1
+ import{jsx as o,jsxs as n}from"react/jsx-runtime";import{View as p}from"react-native";import{mergeStyles as y}from"../../utils/helpers";import{useTheme as b}from"../../theme";import a from"../Stack";import t from"../Text";const g={DEFAULT:"default",EDITORIAL:"editorial",TESTIMONIAL:"testimonial"},L={padding:16,borderLeftWidth:4,borderRadius:8},v=({children:c,author:i,source:d,cite:l,variant:m=g.DEFAULT,style:u,testID:e})=>{const{theme:s}=b(),r=s.colors,f={default:{backgroundColor:r.muted,borderLeftColor:r.primary},editorial:{backgroundColor:r.background,borderLeftColor:r.mutedForeground,paddingLeft:20},testimonial:{backgroundColor:r.primary+"14",borderLeftColor:r.primary,padding:20,borderRadius:12}}[m];return o(p,{style:y(L,f,u),testID:e,children:n(a,{gap:8,children:[o(t,{level:"body",style:{fontStyle:"italic"},testID:e?`${e}-quote`:void 0,children:c}),(i||d)&&n(a,{gap:2,testID:e?`${e}-attribution`:void 0,children:[i&&n(t,{level:"small",variant:"muted",testID:e?`${e}-author`:void 0,children:["\u2014 ",i]}),d&&o(t,{level:"caption",variant:"muted",testID:e?`${e}-source`:void 0,children:d})]}),l&&o(t,{level:"caption",variant:"muted",style:{fontStyle:"italic"},testID:e?`${e}-cite`:void 0,children:l})]})})};var E=v;export{g as BLOCKQUOTE_VARIANT,E as default};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Button/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAKL,KAAK,SAAS,EAEf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"react/jsx-runtime";import{TouchableOpacity as V,ActivityIndicator as B,View as d}from"react-native";import{THEME_VARIANT as E}from"../../utils/constants";import{mergeStyles as N}from"../../utils/helpers";import{getButtonVariants as O,getButtonTextVariants as H}from"../../utils/variants";import{useTheme as j}from"../../theme";import y from"../Text";const v={...E,GHOST:"ghost",OUTLINE:"outline",LINK:"link"},C={opacity:.5},L=({children:f,variant:c=v.DEFAULT,icon:n,iconEnd:b,disabled:g=!1,loading:m=!1,loadingText:h,progress:o,fullWidth:T,onPress:I,style:x,testID:i})=>{const{theme:t}=j(),w=O(t),A=H(t),D=w[c],r=A[c],p={paddingHorizontal:t.spacing.md,paddingVertical:t.spacing.sm,borderRadius:t.radius.interactive,alignItems:"center",justifyContent:"center",minHeight:t.interactive.touchTarget,flexDirection:n?"row":void 0,gap:n?t.spacing.sm:void 0};T&&(p.width="100%");const R=()=>{if(m)return a(d,{style:{flexDirection:"row",alignItems:"center",gap:t.spacing.sm},children:[e(B,{color:r?.color,size:"small",testID:i?`${i}-loading`:void 0}),h&&e(y,{level:"body",style:r,children:h})]});const s=n||null,l=e(y,{level:"body",style:r,testID:i?`${i}-text`:void 0,children:f});return s&&b?a(u,{children:[l,s]}):s?a(u,{children:[s,l]}):l};return a(V,{style:N(p,D,g&&C,x),onPress:I,disabled:g||m,activeOpacity:.7,testID:i,children:[R(),o!==void 0&&o>0&&o<100&&e(d,{style:{position:"absolute",bottom:0,left:0,right:0,height:2,backgroundColor:"rgba(0,0,0,0.1)",borderBottomLeftRadius:t.radius.interactive,borderBottomRightRadius:t.radius.interactive,overflow:"hidden"},children:e(d,{style:{height:"100%",width:`${o}%`,backgroundColor:r?.color||t.colors.primary}})})]})};var k=L;export{v as BUTTON_VARIANT,k as default};
1
+ import{jsx as i,jsxs as s,Fragment as g}from"react/jsx-runtime";import{TouchableOpacity as A,ActivityIndicator as E,View as c}from"react-native";import{THEME_VARIANT as I}from"../../utils/constants";import{mergeStyles as R}from"../../utils/helpers";import{getButtonVariants as j,getButtonTextVariants as N}from"../../utils/variants";import{useTheme as O}from"../../theme";import y from"../Text";const _={...I,GHOST:"ghost",OUTLINE:"outline",LINK:"link"},C={opacity:.5},H=({children:p,variant:d=_.DEFAULT,icon:a,iconEnd:b,disabled:u=!1,loading:m=!1,loadingText:f,progress:n,fullWidth:x,onPress:T,style:v,testID:e})=>{const{theme:t}=O(),S=j(t),V=N(t),B=S[d],o=V[d],h={paddingHorizontal:t.spacing.md,paddingVertical:t.spacing.sm,borderRadius:t.radius.interactive,alignItems:"center",justifyContent:"center",minHeight:t.interactive.touchTarget,flexDirection:a?"row":void 0,gap:a?t.spacing.sm:void 0};x&&(h.width="100%");const w=()=>{if(m)return s(c,{style:{flexDirection:"row",alignItems:"center",gap:t.spacing.sm},children:[i(E,{color:o?.color,size:"small",testID:e?`${e}-loading`:void 0}),f&&i(y,{level:"body",style:o,children:f})]});const r=a||null,l=i(y,{level:"body",style:o,testID:e?`${e}-text`:void 0,children:p});return r&&b?s(g,{children:[l,r]}):r?s(g,{children:[r,l]}):l};return s(A,{style:R(h,B,u&&C,v),onPress:T,disabled:u||m,activeOpacity:.7,testID:e,children:[w(),n!==void 0&&n>0&&n<100&&i(c,{style:{position:"absolute",bottom:0,left:0,right:0,height:2,backgroundColor:"rgba(0,0,0,0.1)",borderBottomLeftRadius:t.radius.interactive,borderBottomRightRadius:t.radius.interactive,overflow:"hidden"},children:i(c,{style:{height:"100%",width:`${n}%`,backgroundColor:o?.color||t.colors.primary}})})]})};var K=H;export{_ as BUTTON_VARIANT,K as default};
@@ -1 +1 @@
1
- import{jsx as m,jsxs as u}from"react/jsx-runtime";import{useState as D}from"react";import{View as c}from"react-native";import f from"@react-native-community/datetimepicker";import"../../utils/helpers";import"../Stack";import"../Text";import v from"../Button";const x=({value:e=new Date,onSelect:o,minDate:i,maxDate:s,mode:n="date",style:l,testID:t})=>{const[p,a]=D(!1),d=(h,r)=>{a(!1),r&&o&&o(r)};return u(c,{style:l,testID:t,children:[m(v,{variant:"outline",onPress:()=>a(!0),testID:t?`${t}-trigger`:void 0,children:e.toLocaleDateString()}),p&&m(f,{value:e,mode:n,display:"default",minimumDate:i,maximumDate:s,onChange:d,testID:t?`${t}-picker`:void 0})]})};var g=x;export{g as default};
1
+ import{jsx as a,jsxs as p}from"react/jsx-runtime";import{useState as u}from"react";import{View as c}from"react-native";import h from"@react-native-community/datetimepicker";import"../../utils/helpers";import"../Stack";import"../Text";import x from"../Button";const g=({value:t=new Date,onSelect:r,minDate:m,maxDate:n,mode:s="date",style:f,testID:e})=>{const[l,o]=u(!1),d=(S,i)=>{o(!1),i&&r&&r(i)};return p(c,{style:f,testID:e,children:[a(x,{variant:"outline",onPress:()=>o(!0),testID:e?`${e}-trigger`:void 0,children:t.toLocaleDateString()}),l&&a(h,{value:t,mode:s,display:"default",minimumDate:m,maximumDate:n,onChange:d,testID:e?`${e}-picker`:void 0})]})};var L=g;export{L as default};
@@ -1 +1 @@
1
- import{jsx as n,jsxs as o}from"react/jsx-runtime";import{View as g}from"react-native";import{mergeStyles as h}from"../../utils/helpers";import{useTheme as y}from"../../theme";import d from"../Stack";import c from"../Text";const I={padding:32,alignItems:"center"},x=e=>{switch(e){case"start":return{alignItems:"flex-start"};case"end":return{alignItems:"flex-end"};default:return{alignItems:"center"}}},v={default:"background",primary:"primary",accent:"accent",muted:"muted"},b=({title:e,subtitle:i,primaryAction:a,secondaryAction:s,tone:l="default",children:m,align:r="center",style:u,testID:t})=>{const{theme:f}=y(),p=l!=="default"?{backgroundColor:f.colors[v[l]]}:{};return n(g,{style:h(I,x(r),p,u),testID:t,children:m||o(d,{gap:16,align:r==="center"?"center":r==="start"?"flex-start":"flex-end",children:[e&&n(c,{level:"h2",testID:t?`${t}-title`:void 0,children:e}),i&&n(c,{level:"body",variant:"muted",testID:t?`${t}-subtitle`:void 0,children:i}),(a||s)&&o(d,{direction:"row",gap:12,testID:t?`${t}-actions`:void 0,children:[a,s]})]})})};var D=b;export{D as default};
1
+ import{jsx as n,jsxs as s}from"react/jsx-runtime";import{View as p}from"react-native";import{mergeStyles as h}from"../../utils/helpers";import{useTheme as x}from"../../theme";import d from"../Stack";import i from"../Text";const y={padding:32,alignItems:"center"},S=t=>{switch(t){case"start":return{alignItems:"flex-start"};case"end":return{alignItems:"flex-end"};default:return{alignItems:"center"}}},j={default:"background",primary:"primary",accent:"accent",muted:"muted"},T=({title:t,subtitle:l,primaryAction:a,secondaryAction:c,tone:o="default",children:m,align:r="center",style:f,testID:e})=>{const{theme:u}=x(),g=o!=="default"?{backgroundColor:u.colors[j[o]]}:{};return n(p,{style:h(y,S(r),g,f),testID:e,children:m||s(d,{gap:16,align:r==="center"?"center":r==="start"?"flex-start":"flex-end",children:[t&&n(i,{level:"h2",testID:e?`${e}-title`:void 0,children:t}),l&&n(i,{level:"body",variant:"muted",testID:e?`${e}-subtitle`:void 0,children:l}),(a||c)&&s(d,{direction:"row",gap:12,testID:e?`${e}-actions`:void 0,children:[a,c]})]})})};var $=T;export{$ as default};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Card/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAElF,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAOxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,WAAW,GACrB,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;AAExD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,GAAG,SAAS,GAAG,SAAS,CAqB7E;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,GAC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,WAAW,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;AAExD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,GAAG,SAAS,GAAG,SAAS,CAqB7E;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,GACT,EAAE;IACD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,SAAS,CAgBZ;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,IAAI,GAAI,6GAaX,SAAS,4CAqEX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1 +1 @@
1
- import{jsx as r,jsxs as c}from"react/jsx-runtime";import{View as x,TouchableOpacity as C}from"react-native";import{SURFACE_VARIANT as O}from"../../utils/constants";import{mergeStyles as g}from"../../utils/helpers";import{getSurfaceVariants as T}from"../../utils/variants";import{useTheme as R}from"../../theme";import s from"../Stack";import i from"../Text";function v(e){return e?typeof e=="string"?r(i,{level:"small",testID:"card-content-text",children:e}):Array.isArray(e)?r(s,{gap:4,testID:"card-content-list",children:e.map((t,l)=>r(i,{level:"small",testID:`card-content-item-${l}`,children:t},l))}):e:null}function S({title:e,subtitle:t}){return!e&&!t?null:c(s,{gap:2,testID:"card-header",children:[e&&r(i,{level:"h4",testID:"card-title",children:e}),t&&r(i,{level:"small",variant:"muted",testID:"card-subtitle",children:t})]})}const V=({icon:e,title:t,subtitle:l,content:o,footer:D,variant:I=O.DEFAULT,clickable:y,elevated:n,onPress:d,children:b,style:m,testID:h})=>{const{theme:a}=R(),p=T(a)[I],w=o?v(o):b,u={padding:a.spacing.md,borderRadius:a.radius.surface,shadowColor:a.colors.foreground,shadowOffset:{width:0,height:n?4:2},shadowOpacity:n?a.opacity.subtle*2:a.opacity.subtle,shadowRadius:n?8:4,elevation:n?6:2},A=t||l||e?c(s,{direction:"row",gap:a.spacing.sm,align:"center",testID:"card-header",children:[e,c(s,{gap:2,flex:1,children:[t&&r(i,{level:"h4",testID:"card-title",children:t}),l&&r(i,{level:"small",variant:"muted",testID:"card-subtitle",children:l})]})]}):null,f=c(s,{gap:a.spacing.sm,children:[A,w,D]});return y||d?r(C,{style:g(u,p,m),onPress:d,activeOpacity:.7,testID:h,children:f}):r(x,{style:g(u,p,m),testID:h,children:f})};var j=V;export{j as default,v as renderCardContent,S as renderCardHeader};
1
+ import{jsx as t,jsxs as c}from"react/jsx-runtime";import{View as S,TouchableOpacity as w}from"react-native";import{SURFACE_VARIANT as A}from"../../utils/constants";import{mergeStyles as g}from"../../utils/helpers";import{getSurfaceVariants as T}from"../../utils/variants";import{useTheme as V}from"../../theme";import i from"../Stack";import n from"../Text";function j(r){return r?typeof r=="string"?t(n,{level:"small",testID:"card-content-text",children:r}):Array.isArray(r)?t(i,{gap:4,testID:"card-content-list",children:r.map((e,s)=>t(n,{level:"small",testID:`card-content-item-${s}`,children:e},s))}):r:null}function $({title:r,subtitle:e}){return!r&&!e?null:c(i,{gap:2,testID:"card-header",children:[r&&t(n,{level:"h4",testID:"card-title",children:r}),e&&t(n,{level:"small",variant:"muted",testID:"card-subtitle",children:e})]})}const O=({icon:r,title:e,subtitle:s,content:l,footer:y,variant:D=A.DEFAULT,clickable:I,elevated:d,onPress:o,children:C,style:m,testID:h})=>{const{theme:a}=V(),p=T(a)[D],x=l?j(l):C,u={padding:a.spacing.md,borderRadius:a.radius.surface,shadowColor:a.colors.foreground,shadowOffset:{width:0,height:d?4:2},shadowOpacity:d?a.opacity.subtle*2:a.opacity.subtle,shadowRadius:d?8:4,elevation:d?6:2},v=e||s||r?c(i,{direction:"row",gap:a.spacing.sm,align:"center",testID:"card-header",children:[r,c(i,{gap:2,flex:1,children:[e&&t(n,{level:"h4",testID:"card-title",children:e}),s&&t(n,{level:"small",variant:"muted",testID:"card-subtitle",children:s})]})]}):null,f=c(i,{gap:a.spacing.sm,children:[v,x,y]});return I||o?t(w,{style:g(u,p,m),onPress:o,activeOpacity:.7,testID:h,children:f}):t(S,{style:g(u,p,m),testID:h,children:f})};var q=O;export{q as default,j as renderCardContent,$ as renderCardHeader};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Checkbox/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAGL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAMxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,C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AAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAkBD;;;;;;;;;GASG;AACH,QAAA,MAAM,QAAQ,GAAI,4FAUf,aAAa,4CAkFf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- import{jsx as o,jsxs as l}from"react/jsx-runtime";import{TouchableOpacity as k,View as n}from"react-native";import{CONTROL_VARIANT as I}from"../../utils/constants";import{mergeStyles as D}from"../../utils/helpers";import{useTheme as T}from"../../theme";import w from"../Stack";import c from"../Text";const h=20,O=2,R={width:h,height:h,borderWidth:O,borderRadius:4,alignItems:"center",justifyContent:"center"},$={opacity:.5},j=({checked:i=!1,disabled:a=!1,variant:W=I.DEFAULT,onCheckedChange:d,label:m,children:b,required:p,style:g,testID:r})=>{const{theme:y}=T(),e=y.colors,u={backgroundColor:e.primary,borderColor:e.primary},v={backgroundColor:"transparent",borderColor:e.border},f={width:6,height:10,borderBottomWidth:2,borderRightWidth:2,borderColor:e.background,transform:[{rotate:"45deg"}],marginTop:-2},C=()=>{!a&&d&&d(!i)},s=o(k,{style:D(R,i?u:v,a&&$,g),onPress:C,disabled:a,activeOpacity:.7,testID:r,children:i&&o(n,{style:f,testID:r?`${r}-checkmark`:void 0})}),t=m||b;return t?l(w,{direction:"row",align:"center",gap:8,testID:r?`${r}-container`:void 0,children:[s,typeof t=="string"?l(c,{level:"body",testID:r?`${r}-label`:void 0,children:[t,p&&o(c,{level:"body",variant:"destructive",children:" *"})]}):o(n,{testID:r?`${r}-label`:void 0,children:t})]}):s};var x=j;export{x as default};
1
+ import{jsx as t,jsxs as l}from"react/jsx-runtime";import{TouchableOpacity as S,View as s}from"react-native";import{CONTROL_VARIANT as C}from"../../utils/constants";import{mergeStyles as T}from"../../utils/helpers";import{useTheme as v}from"../../theme";import j from"../Stack";import a from"../Text";const h=20,w=2,O={width:h,height:h,borderWidth:w,borderRadius:4,alignItems:"center",justifyContent:"center"},R={opacity:.5},W=({checked:n=!1,disabled:c=!1,variant:$=C.DEFAULT,onCheckedChange:i,label:m,children:b,required:f,style:p,testID:e})=>{const{theme:y}=v(),r=y.colors,u={backgroundColor:r.primary,borderColor:r.primary},k={backgroundColor:"transparent",borderColor:r.border},g={width:6,height:10,borderBottomWidth:2,borderRightWidth:2,borderColor:r.background,transform:[{rotate:"45deg"}],marginTop:-2},x=()=>{!c&&i&&i(!n)},d=t(S,{style:T(O,n?u:k,c&&R,p),onPress:x,disabled:c,activeOpacity:.7,testID:e,children:n&&t(s,{style:g,testID:e?`${e}-checkmark`:void 0})}),o=m||b;return o?l(j,{direction:"row",align:"center",gap:8,testID:e?`${e}-container`:void 0,children:[d,typeof o=="string"?l(a,{level:"body",testID:e?`${e}-label`:void 0,children:[o,f&&t(a,{level:"body",variant:"destructive",children:" *"})]}):t(s,{testID:e?`${e}-label`:void 0,children:o})]}):d};var V=W;export{V as default};
@@ -1 +1 @@
1
- import{jsx as r,jsxs as a}from"react/jsx-runtime";import{useState as b}from"react";import{TouchableOpacity as w,View as d}from"react-native";import{mergeStyles as D}from"../../utils/helpers";import O from"../Stack";import x from"../Text";const S={overflow:"hidden"},$={paddingTop:8},j=({trigger:c,children:p,open:i,onOpenChange:m,defaultOpen:u=!1,disabled:o=!1,showIcon:f=!1,iconStyle:g="plus-minus",style:h,testID:t})=>{const[v,y]=b(u),s=i!==void 0,e=s?i:v,I=()=>{if(o)return;const l=!e;s||y(l),m?.(l)},n=f?g==="plus-minus"?e?"\u2212":"+":e?"\u25BC":"\u25B6":null;return a(d,{style:D(S,h),testID:t,children:[r(w,{onPress:I,disabled:o,activeOpacity:.7,testID:t?`${t}-trigger`:void 0,children:a(O,{direction:"row",align:"center",gap:8,children:[c,n&&r(x,{level:"body",variant:"muted",testID:t?`${t}-icon`:void 0,children:n})]})}),e&&r(d,{style:$,testID:t?`${t}-content`:void 0,children:p})]})};var B=j;export{B as default};
1
+ import{jsx as t,jsxs as c}from"react/jsx-runtime";import{useState as b}from"react";import{TouchableOpacity as j,View as a}from"react-native";import{mergeStyles as v}from"../../utils/helpers";import w from"../Stack";import O from"../Text";const T={overflow:"hidden"},$={paddingTop:8},C=({trigger:d,children:p,open:o,onOpenChange:f,defaultOpen:m=!1,disabled:i=!1,showIcon:u=!1,iconStyle:h="plus-minus",style:y,testID:e})=>{const[g,S]=b(m),l=o!==void 0,n=l?o:g,x=()=>{if(i)return;const s=!n;l||S(s),f?.(s)},r=u?h==="plus-minus"?n?"\u2212":"+":n?"\u25BC":"\u25B6":null;return c(a,{style:v(T,y),testID:e,children:[t(j,{onPress:x,disabled:i,activeOpacity:.7,testID:e?`${e}-trigger`:void 0,children:c(w,{direction:"row",align:"center",gap:8,children:[d,r&&t(O,{level:"body",variant:"muted",testID:e?`${e}-icon`:void 0,children:r})]})}),n&&t(a,{style:$,testID:e?`${e}-content`:void 0,children:p})]})};var B=C;export{B as default};
@@ -1 +1 @@
1
- import{jsx as t,jsxs as d,Fragment as ie}from"react/jsx-runtime";import{useState as w,useMemo as z,useRef as le,useCallback as g,useEffect as ne}from"react";import{View as x,Modal as se,Pressable as E,TextInput as de,TouchableOpacity as I,ScrollView as ce,ActivityIndicator as ue}from"react-native";import{CONTROL_VARIANT as he}from"../../utils/constants";import{useTheme as pe}from"../../theme";import N from"../Stack";import c from"../Text";function me(a,n){const[T,h]=w(a);return ne(()=>{const s=setTimeout(()=>h(a),n);return()=>clearTimeout(s)},[a,n]),T}const be=({value:a,onValueChange:n,placeholder:T="Search...",options:h=[],disabled:s=!1,isLoading:H=!1,variant:ye=he.DEFAULT,emptyMessage:j="No results found",multiple:p=!1,creatable:F=!1,createLabel:M="Create",clearable:q=!1,label:k,required:_,style:U,testID:o,onOpenChange:y,allowCreate:X,onCreateOption:D,renderOption:V,maxHeight:Y=300,debounce:Z=150})=>{const{theme:r}=pe(),[u,A]=w(!1),[m,v]=w(""),S=me(m,Z),B=le(null),[f,G]=w({x:0,y:0,width:0,height:0}),J=F||X,L=g(()=>{s||B.current?.measureInWindow((e,l,R,ae)=>{G({x:e,y:l,width:R,height:ae}),A(!0),y?.(!0)})},[s,y]),i=g(()=>{A(!1),v(""),y?.(!1)},[y]),b=z(()=>a?Array.isArray(a)?a:[a]:[],[a]),O=z(()=>{if(!S)return h;const e=S.toLowerCase();return h.filter(l=>l.label.toLowerCase().includes(e)||l.description?.toLowerCase().includes(e))},[h,S]),$=g(e=>{if(p){const l=b.includes(e)?b.filter(R=>R!==e):[...b,e];n?.(l)}else n?.(e),i()},[p,b,n,i]),K=g(()=>{const e=m.trim();e&&(D?D(e):$(e),v(""),p||i())},[m,D,$,p,i]),Q=g(()=>{n?.(p?[]:""),v(""),i()},[p,n,i]),C=h.find(e=>e.value===(Array.isArray(a)?a[0]:a)),W=J&&m.trim()&&O.length===0,ee={minHeight:r.interactive.touchTarget,paddingHorizontal:r.spacing.md,borderWidth:1,borderColor:u?r.colors.ring:r.colors.border,borderRadius:r.radius.interactive||r.radius.md,backgroundColor:r.colors.card,flexDirection:"row",alignItems:"center"},re={flex:1,fontSize:r.typography.fontSize.base,lineHeight:r.typography.fontSize.base*r.typography.lineHeight.base,color:r.colors.foreground,paddingVertical:0},oe={position:"absolute",top:f.y+f.height+4,left:f.x,width:f.width,backgroundColor:r.colors.popover,borderRadius:r.radius.floating||r.radius.md,borderWidth:1,borderColor:r.colors.border,maxHeight:Y,shadowColor:r.colors.foreground,shadowOffset:{width:0,height:4},shadowOpacity:.15,shadowRadius:8,elevation:8},P={paddingHorizontal:r.spacing.md,paddingVertical:r.spacing.md,borderBottomWidth:1,borderBottomColor:r.colors.border},te={backgroundColor:r.colors.muted};return d(x,{style:U,testID:o,children:[k&&d(c,{level:"small",style:{marginBottom:4},testID:o?`${o}-label`:void 0,children:[k,_&&t(c,{level:"small",variant:"destructive",children:" *"})]}),d(x,{ref:B,collapsable:!1,style:[ee,s&&{opacity:.5}],testID:o?`${o}-trigger`:void 0,children:[t(de,{style:re,placeholder:C&&!u?C.label:T,placeholderTextColor:C&&!u?r.colors.foreground:r.colors.mutedForeground,value:m,onChangeText:v,onFocus:L,editable:!s,accessibilityRole:"combobox",accessibilityState:{expanded:u,disabled:s},testID:o?`${o}-input`:void 0}),d(N,{direction:"row",align:"center",gap:4,children:[q&&C&&t(I,{onPress:Q,hitSlop:8,testID:o?`${o}-clear`:void 0,children:t(c,{level:"body",variant:"muted",children:"\u2715"})}),t(I,{onPress:()=>u?i():L(),hitSlop:8,disabled:s,children:t(c,{level:"body",variant:"muted",children:u?"\u25B2":"\u25BC"})})]})]}),t(se,{visible:u,transparent:!0,animationType:"none",onRequestClose:i,statusBarTranslucent:!0,children:t(E,{style:{flex:1},onPress:i,testID:o?`${o}-backdrop`:void 0,children:d(E,{style:oe,onPress:()=>{},testID:o?`${o}-dropdown`:void 0,children:[H&&t(x,{style:{paddingVertical:r.spacing.md,alignItems:"center"},children:t(ue,{color:r.colors.primary})}),!H&&t(ce,{keyboardShouldPersistTaps:"handled",nestedScrollEnabled:!0,children:O.length===0&&!W?t(x,{style:P,children:t(c,{level:"body",variant:"muted",children:j})}):d(ie,{children:[O.map(e=>{const l=b.includes(e.value);return t(I,{style:[P,l&&te,e.disabled&&{opacity:r.opacity.subtle}],onPress:()=>!e.disabled&&$(e.value),disabled:e.disabled,activeOpacity:.7,testID:o?`${o}-option-${e.value}`:void 0,children:V?V(e,l):d(N,{gap:2,children:[e.content??t(c,{level:"body",children:e.label}),e.description&&t(c,{level:"caption",variant:"muted",children:e.description})]})},e.value)}),W&&t(I,{style:P,onPress:K,activeOpacity:.7,testID:o?`${o}-create`:void 0,children:d(c,{level:"body",variant:"muted",children:[M,' "',m.trim(),'"']})})]})})]})})})]})};var ge=be;export{ge as default};
1
+ import{jsx as o,jsxs as c,Fragment as ne}from"react/jsx-runtime";import{useState as x,useMemo as _,useRef as le,useCallback as y,useEffect as ie}from"react";import{View as w,Modal as de,Pressable as E,TextInput as ce,TouchableOpacity as T,ScrollView as ae,ActivityIndicator as ue}from"react-native";import{CONTROL_VARIANT as he}from"../../utils/constants";import{useTheme as fe}from"../../theme";import N from"../Stack";import a from"../Text";function be(s,i){const[C,h]=x(s);return ie(()=>{const d=setTimeout(()=>h(s),i);return()=>clearTimeout(d)},[s,i]),C}const me=({value:s,onValueChange:i,placeholder:C="Search...",options:h=[],disabled:d=!1,isLoading:L=!1,variant:ye=he.DEFAULT,emptyMessage:q="No results found",multiple:f=!1,creatable:M=!1,createLabel:U="Create",clearable:G=!1,label:z,required:I,style:J,testID:t,onOpenChange:p,allowCreate:K,onCreateOption:A,renderOption:F,maxHeight:Q=300,debounce:V=150})=>{const{theme:r}=fe(),[u,H]=x(!1),[b,g]=x(""),R=be(b,V),O=le(null),[v,X]=x({x:0,y:0,width:0,height:0}),Y=M||K,j=y(()=>{d||O.current?.measureInWindow((e,l,B,se)=>{X({x:e,y:l,width:B,height:se}),H(!0),p?.(!0)})},[d,p]),n=y(()=>{H(!1),g(""),p?.(!1)},[p]),m=_(()=>s?Array.isArray(s)?s:[s]:[],[s]),$=_(()=>{if(!R)return h;const e=R.toLowerCase();return h.filter(l=>l.label.toLowerCase().includes(e)||l.description?.toLowerCase().includes(e))},[h,R]),P=y(e=>{if(f){const l=m.includes(e)?m.filter(B=>B!==e):[...m,e];i?.(l)}else i?.(e),n()},[f,m,i,n]),Z=y(()=>{const e=b.trim();e&&(A?A(e):P(e),g(""),f||n())},[b,A,P,f,n]),D=y(()=>{i?.(f?[]:""),g(""),n()},[f,i,n]),S=h.find(e=>e.value===(Array.isArray(s)?s[0]:s)),W=Y&&b.trim()&&$.length===0,ee={minHeight:r.interactive.touchTarget,paddingHorizontal:r.spacing.md,borderWidth:1,borderColor:u?r.colors.ring:r.colors.border,borderRadius:r.radius.interactive||r.radius.md,backgroundColor:r.colors.card,flexDirection:"row",alignItems:"center"},re={flex:1,fontSize:r.typography.fontSize.base,lineHeight:r.typography.fontSize.base*r.typography.lineHeight.base,color:r.colors.foreground,paddingVertical:0},te={position:"absolute",top:v.y+v.height+4,left:v.x,width:v.width,backgroundColor:r.colors.popover,borderRadius:r.radius.floating||r.radius.md,borderWidth:1,borderColor:r.colors.border,maxHeight:Q,shadowColor:r.colors.foreground,shadowOffset:{width:0,height:4},shadowOpacity:.15,shadowRadius:8,elevation:8},k={paddingHorizontal:r.spacing.md,paddingVertical:r.spacing.md,borderBottomWidth:1,borderBottomColor:r.colors.border},oe={backgroundColor:r.colors.muted};return c(w,{style:J,testID:t,children:[z&&c(a,{level:"small",style:{marginBottom:4},testID:t?`${t}-label`:void 0,children:[z,I&&o(a,{level:"small",variant:"destructive",children:" *"})]}),c(w,{ref:O,collapsable:!1,style:[ee,d&&{opacity:.5}],testID:t?`${t}-trigger`:void 0,children:[o(ce,{style:re,placeholder:S&&!u?S.label:C,placeholderTextColor:S&&!u?r.colors.foreground:r.colors.mutedForeground,value:b,onChangeText:g,onFocus:j,editable:!d,accessibilityRole:"combobox",accessibilityState:{expanded:u,disabled:d},testID:t?`${t}-input`:void 0}),c(N,{direction:"row",align:"center",gap:4,children:[G&&S&&o(T,{onPress:D,hitSlop:8,testID:t?`${t}-clear`:void 0,children:o(a,{level:"body",variant:"muted",children:"\u2715"})}),o(T,{onPress:()=>u?n():j(),hitSlop:8,disabled:d,children:o(a,{level:"body",variant:"muted",children:u?"\u25B2":"\u25BC"})})]})]}),o(de,{visible:u,transparent:!0,animationType:"none",onRequestClose:n,statusBarTranslucent:!0,children:o(E,{style:{flex:1},onPress:n,testID:t?`${t}-backdrop`:void 0,children:c(E,{style:te,onPress:()=>{},testID:t?`${t}-dropdown`:void 0,children:[L&&o(w,{style:{paddingVertical:r.spacing.md,alignItems:"center"},children:o(ue,{color:r.colors.primary})}),!L&&o(ae,{keyboardShouldPersistTaps:"handled",nestedScrollEnabled:!0,children:$.length===0&&!W?o(w,{style:k,children:o(a,{level:"body",variant:"muted",children:q})}):c(ne,{children:[$.map(e=>{const l=m.includes(e.value);return o(T,{style:[k,l&&oe,e.disabled&&{opacity:r.opacity.subtle}],onPress:()=>!e.disabled&&P(e.value),disabled:e.disabled,activeOpacity:.7,testID:t?`${t}-option-${e.value}`:void 0,children:F?F(e,l):c(N,{gap:2,children:[e.content??o(a,{level:"body",children:e.label}),e.description&&o(a,{level:"caption",variant:"muted",children:e.description})]})},e.value)}),W&&o(T,{style:k,onPress:Z,activeOpacity:.7,testID:t?`${t}-create`:void 0,children:c(a,{level:"body",variant:"muted",children:[U,' "',b.trim(),'"']})})]})})]})})})]})};var Ce=me;export{Ce as default};
@@ -1 +1 @@
1
- import{jsx as l,jsxs as s}from"react/jsx-runtime";import{useState as I,useMemo as u}from"react";import{View as d,ScrollView as x,TouchableOpacity as v}from"react-native";import"../../utils/helpers";import g from"../Stack";import a from"../Text";import C from"../Input";import L from"../Separator";const p={paddingHorizontal:12,paddingVertical:10,flexDirection:"row",alignItems:"center",gap:8},S={paddingHorizontal:12,paddingVertical:8},V=({placeholder:f="Search...",emptyMessage:b="No results found.",groups:n=[],items:c=[],onClose:O,style:y,testID:i})=>{const[o,$]=I(""),m=u(()=>{if(!o)return n;const e=o.toLowerCase();return n.map(t=>({...t,items:t.items.filter(r=>r.label.toLowerCase().includes(e)||r.description?.toLowerCase().includes(e))})).filter(t=>t.items.length>0)},[n,o]),h=u(()=>{if(!o)return c;const e=o.toLowerCase();return c.filter(t=>t.label.toLowerCase().includes(e)||t.description?.toLowerCase().includes(e))},[c,o]),w=[...m.flatMap(e=>e.items),...h];return l(d,{style:y,testID:i,children:s(g,{gap:8,children:[l(C,{placeholder:f,value:o,onChangeText:$,testID:i?`${i}-search`:void 0}),l(x,{style:{maxHeight:400},children:s(g,{gap:4,children:[m.map((e,t)=>s(d,{testID:i?`${i}-group-${t}`:void 0,children:[e.separator&&t>0&&l(L,{testID:i?`${i}-separator-${t}`:void 0}),e.heading&&l(d,{style:S,testID:i?`${i}-heading-${t}`:void 0,children:l(a,{level:"small",variant:"muted",children:e.heading})}),e.items.map((r,D)=>s(v,{style:p,onPress:()=>!r.disabled&&r.onSelect?.(),disabled:r.disabled,activeOpacity:.7,testID:i?`${i}-item-${t}-${D}`:void 0,children:[r.icon,s(d,{style:{flex:1},children:[l(a,{level:"body",children:r.label}),r.description&&l(a,{level:"caption",variant:"muted",children:r.description})]}),r.badge,r.shortcut&&l(a,{level:"caption",variant:"muted",children:r.shortcut})]},r.value||r.label))]},t)),h.map((e,t)=>s(v,{style:p,onPress:()=>!e.disabled&&e.onSelect?.(),disabled:e.disabled,activeOpacity:.7,testID:i?`${i}-standalone-item-${t}`:void 0,children:[e.icon,s(d,{style:{flex:1},children:[l(a,{level:"body",children:e.label}),e.description&&l(a,{level:"caption",variant:"muted",children:e.description})]}),e.badge]},e.value||e.label)),w.length===0&&l(d,{style:p,testID:i?`${i}-empty`:void 0,children:l(a,{level:"body",variant:"muted",children:b})})]})})]})})};var H=V;export{H as default};
1
+ import{jsx as r,jsxs as d}from"react/jsx-runtime";import{useState as C,useMemo as u}from"react";import{View as o,ScrollView as L,TouchableOpacity as m}from"react-native";import"../../utils/helpers";import y from"../Stack";import t from"../Text";import x from"../Input";import j from"../Separator";const h={paddingHorizontal:12,paddingVertical:10,flexDirection:"row",alignItems:"center",gap:8},H={paddingHorizontal:12,paddingVertical:8},V=({placeholder:b="Search...",emptyMessage:v="No results found.",groups:s=[],items:c=[],onClose:O,style:S,testID:a})=>{const[i,$]=C(""),p=u(()=>{if(!i)return s;const e=i.toLowerCase();return s.map(l=>({...l,items:l.items.filter(n=>n.label.toLowerCase().includes(e)||n.description?.toLowerCase().includes(e))})).filter(l=>l.items.length>0)},[s,i]),f=u(()=>{if(!i)return c;const e=i.toLowerCase();return c.filter(l=>l.label.toLowerCase().includes(e)||l.description?.toLowerCase().includes(e))},[c,i]),w=[...p.flatMap(e=>e.items),...f];return r(o,{style:S,testID:a,children:d(y,{gap:8,children:[r(x,{placeholder:b,value:i,onChangeText:$,testID:a?`${a}-search`:void 0}),r(L,{style:{maxHeight:400},children:d(y,{gap:4,children:[p.map((e,l)=>d(o,{testID:a?`${a}-group-${l}`:void 0,children:[e.separator&&l>0&&r(j,{testID:a?`${a}-separator-${l}`:void 0}),e.heading&&r(o,{style:H,testID:a?`${a}-heading-${l}`:void 0,children:r(t,{level:"small",variant:"muted",children:e.heading})}),e.items.map((n,g)=>d(m,{style:h,onPress:()=>!n.disabled&&n.onSelect?.(),disabled:n.disabled,activeOpacity:.7,testID:a?`${a}-item-${l}-${g}`:void 0,children:[n.icon,d(o,{style:{flex:1},children:[r(t,{level:"body",children:n.label}),n.description&&r(t,{level:"caption",variant:"muted",children:n.description})]}),n.badge,n.shortcut&&r(t,{level:"caption",variant:"muted",children:n.shortcut})]},n.value||n.label))]},l)),f.map((e,l)=>d(m,{style:h,onPress:()=>!e.disabled&&e.onSelect?.(),disabled:e.disabled,activeOpacity:.7,testID:a?`${a}-standalone-item-${l}`:void 0,children:[e.icon,d(o,{style:{flex:1},children:[r(t,{level:"body",children:e.label}),e.description&&r(t,{level:"caption",variant:"muted",children:e.description})]}),e.badge]},e.value||e.label)),w.length===0&&r(o,{style:h,testID:a?`${a}-empty`:void 0,children:r(t,{level:"body",variant:"muted",children:v})})]})})]})})};var B=V;export{B as default};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/CommandDialog/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAMH,OAAgB,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC;;GAEG;AACH,eAAO,MAAM,qBAAqB,cANnB,IASd,CAAC;AAEF;;G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AE,SAAS,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,aAAa,GAAI,yGASpB,kBAAkB,4CAsCpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1 +1 @@
1
- import{jsx as r,jsxs as g}from"react/jsx-runtime";import{useState as u,createContext as h,useContext as v}from"react";import{View as x}from"react-native";import D from"../Dialog";import I from"../Command";const l=h(null),j=()=>v(l)?.close||(()=>{}),P=({open:s,onOpenChange:o,trigger:m,description:d,children:p,footer:i,testID:e,...c})=>{const[C,n]=u(!1),t=s!==void 0,f=t?s:C,$=()=>{t||n(!0),o?.(!0)},a=()=>{t||n(!1),o?.(!1)};return r(l.Provider,{value:{close:a},children:g(D,{trigger:m,open:f,onOpenChange:o,title:"Command Palette",description:d,testID:e,children:[p||r(I,{...c,onClose:a,testID:e?`${e}-command`:void 0}),i&&r(x,{testID:e?`${e}-footer`:void 0,children:i})]})})};var O=P;export{O as default,j as useCommandDialogClose};
1
+ import{jsx as s,jsxs as x}from"react/jsx-runtime";import{useState as C,createContext as g,useContext as h}from"react";import{View as j}from"react-native";import D from"../Dialog";import v from"../Command";const a=g(null),b=()=>h(a)?.close||(()=>{}),P=({open:o,onOpenChange:n,trigger:m,description:d,children:c,footer:r,testID:e,...f})=>{const[u,i]=C(!1),t=o!==void 0,p=t?o:u,_=()=>{t||i(!0),n?.(!0)},l=()=>{t||i(!1),n?.(!1)};return s(a.Provider,{value:{close:l},children:x(D,{trigger:m,open:p,onOpenChange:n,title:"Command Palette",description:d,testID:e,children:[c||s(v,{...f,onClose:l,testID:e?`${e}-command`:void 0}),r&&s(j,{testID:e?`${e}-footer`:void 0,children:r})]})})};var k=P;export{k as default,b as useCommandDialogClose};
@@ -1 +1 @@
1
- import{jsx as o,jsxs as d}from"react/jsx-runtime";import{useState as n}from"react";import{View as p,TouchableOpacity as s,Modal as b,StyleSheet as f}from"react-native";import"../../utils/helpers";import{useTheme as u}from"../../theme";import $ from"../Stack";import D from"../Text";import I from"../Separator";const w={paddingHorizontal:12,paddingVertical:10,flexDirection:"row",alignItems:"center",gap:8},x=({trigger:c,items:m=[],style:h,testID:e})=>{const{theme:i}=u(),[v,r]=n(!1),y={backgroundColor:i.colors.popover,borderRadius:i.radius.floating,borderWidth:1,borderColor:i.colors.border,shadowColor:i.colors.foreground,shadowOffset:{width:0,height:2},shadowOpacity:.25,shadowRadius:4,elevation:5,minWidth:200},[l,g]=n({x:0,y:0});return d(p,{style:h,testID:e,children:[o(s,{onLongPress:t=>{g({x:t.nativeEvent.pageX,y:t.nativeEvent.pageY}),r(!0)},activeOpacity:.7,testID:e?`${e}-trigger`:void 0,children:c}),o(b,{visible:v,transparent:!0,animationType:"fade",onRequestClose:()=>r(!1),testID:e?`${e}-modal`:void 0,children:o(s,{style:f.absoluteFill,activeOpacity:1,onPress:()=>r(!1),testID:e?`${e}-overlay`:void 0,children:o(p,{style:[y,{position:"absolute",left:l.x-100,top:l.y-50}],testID:e?`${e}-menu`:void 0,children:o($,{gap:0,children:m.map((t,a)=>t.separator?o(I,{testID:e?`${e}-separator-${a}`:void 0},`separator-${a}`):d(s,{style:w,onPress:()=>{t.onSelect?.(),r(!1)},disabled:t.disabled,activeOpacity:.7,testID:e?`${e}-item-${a}`:void 0,children:[t.icon,o(D,{level:"body",style:t.disabled?{opacity:.5}:void 0,children:t.label})]},t.value||t.label))})})})})]})};var O=x;export{O as default};
1
+ import{jsx as r,jsxs as l}from"react/jsx-runtime";import{useState as d}from"react";import{View as c,TouchableOpacity as i,Modal as g,StyleSheet as b}from"react-native";import"../../utils/helpers";import{useTheme as v}from"../../theme";import x from"../Stack";import S from"../Text";import $ from"../Separator";const O={paddingHorizontal:12,paddingVertical:10,flexDirection:"row",alignItems:"center",gap:8},w=({trigger:p,items:f=[],style:u,testID:e})=>{const{theme:n}=v(),[h,a]=d(!1),m={backgroundColor:n.colors.popover,borderRadius:n.radius.floating,borderWidth:1,borderColor:n.colors.border,shadowColor:n.colors.foreground,shadowOffset:{width:0,height:2},shadowOpacity:.25,shadowRadius:4,elevation:5,minWidth:200},[s,y]=d({x:0,y:0});return l(c,{style:u,testID:e,children:[r(i,{onLongPress:o=>{y({x:o.nativeEvent.pageX,y:o.nativeEvent.pageY}),a(!0)},activeOpacity:.7,testID:e?`${e}-trigger`:void 0,children:p}),r(g,{visible:h,transparent:!0,animationType:"fade",onRequestClose:()=>a(!1),testID:e?`${e}-modal`:void 0,children:r(i,{style:b.absoluteFill,activeOpacity:1,onPress:()=>a(!1),testID:e?`${e}-overlay`:void 0,children:r(c,{style:[m,{position:"absolute",left:s.x-100,top:s.y-50}],testID:e?`${e}-menu`:void 0,children:r(x,{gap:0,children:f.map((o,t)=>o.separator?r($,{testID:e?`${e}-separator-${t}`:void 0},`separator-${t}`):l(i,{style:O,onPress:()=>{o.onSelect?.(),a(!1)},disabled:o.disabled,activeOpacity:.7,testID:e?`${e}-item-${t}`:void 0,children:[o.icon,r(S,{level:"body",style:o.disabled?{opacity:.5}:void 0,children:o.label})]},o.value||o.label))})})})})]})};var W=w;export{W as default};
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{useState as d}from"react";import*as y from"expo-clipboard";import"react-native";import"../../utils/helpers";import f from"../Button";import h from"../Text";const x=({text:t,children:e,variant:i="ghost",onCopy:s,tooltipText:a="Copy to clipboard",copiedTooltipText:p="Copied!",style:m,testID:n,...c})=>{const[l,o]=d(!1);return r(f,{variant:i,onPress:async()=>{try{await y.setStringAsync(t),o(!0),s?.(t),setTimeout(()=>o(!1),2e3)}catch{__DEV__}},style:m,testID:n,...c,children:e||r(h,{level:"body",children:l?p:a})})};var u=x;export{u as default};
1
+ import{jsx as t}from"react/jsx-runtime";import{useState as d}from"react";import*as f from"expo-clipboard";import"react-native";import"../../utils/helpers";import y from"../Button";import C from"../Text";const h=({text:o,children:e,variant:s="ghost",onCopy:i,tooltipText:p="Copy to clipboard",copiedTooltipText:a="Copied!",style:l,testID:m,...n})=>{const[c,r]=d(!1);return t(y,{variant:s,onPress:async()=>{try{await f.setStringAsync(o),r(!0),i?.(o),setTimeout(()=>r(!1),2e3)}catch{__DEV__}},style:l,testID:m,...n,children:e||t(C,{level:"body",children:c?a:p})})};var D=h;export{D as default};
@@ -1 +1 @@
1
- import{jsx as l,jsxs as h}from"react/jsx-runtime";import{View as r}from"react-native";import"../../utils/helpers";import{useTheme as p}from"../../theme";import"../Stack";import d from"../Text";const v={paddingVertical:8,borderBottomWidth:1},f={flexDirection:"row",justifyContent:"space-between",alignItems:"center"},u=({items:i,children:s,orientation:n="vertical",style:a,testID:t})=>{const{theme:m}=p(),c={borderBottomColor:m.colors.border};return s?l(r,{style:a,testID:t,children:s}):i?l(r,{style:a,testID:t,children:i.map((o,e)=>h(r,{style:[v,c,n==="horizontal"&&f,e===i.length-1&&{borderBottomWidth:0}],testID:t?`${t}-item-${e}`:void 0,children:[l(d,{level:"body",variant:"muted",testID:t?`${t}-label-${e}`:void 0,children:o.label}),l(r,{style:n==="horizontal"&&{flex:1,alignItems:"flex-end"},children:typeof o.value=="string"?l(d,{level:"body",testID:t?`${t}-value-${e}`:void 0,children:o.value}):o.value})]},e))}):null};var y=u;export{y as default};
1
+ import{jsx as t,jsxs as f}from"react/jsx-runtime";import{View as l}from"react-native";import"../../utils/helpers";import{useTheme as u}from"../../theme";import"../Stack";import d from"../Text";const h={paddingVertical:8,borderBottomWidth:1},p={flexDirection:"row",justifyContent:"space-between",alignItems:"center"},y=({items:n,children:i,orientation:s="vertical",style:a,testID:e})=>{const{theme:m}=u(),c={borderBottomColor:m.colors.border};return i?t(l,{style:a,testID:e,children:i}):n?t(l,{style:a,testID:e,children:n.map((o,r)=>f(l,{style:[h,c,s==="horizontal"&&p,r===n.length-1&&{borderBottomWidth:0}],testID:e?`${e}-item-${r}`:void 0,children:[t(d,{level:"body",variant:"muted",testID:e?`${e}-label-${r}`:void 0,children:o.label}),t(l,{style:s==="horizontal"&&{flex:1,alignItems:"flex-end"},children:typeof o.value=="string"?t(d,{level:"body",testID:e?`${e}-value-${r}`:void 0,children:o.value}):o.value})]},r))}):null};var w=y;export{w as default};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as d,Fragment as T}from"react/jsx-runtime";import{useState as j,cloneElement as k,isValidElement as A}from"react";import{Modal as E,TouchableOpacity as h,View as I,useWindowDimensions as S}from"react-native";import{SURFACE_VARIANT as F}from"../../utils/constants";import{mergeStyles as V}from"../../utils/helpers";import{useTheme as U}from"../../theme";import m from"../Stack";import w from"../Text";import f from"../Button";const q={flex:1,backgroundColor:"rgba(0, 0, 0, 0.5)",justifyContent:"center",alignItems:"center"},z=(r,o)=>{switch(r){case"form":return{width:Math.min(400,o*.9)};case"text":return{width:Math.min(600,o*.9)};case"image":return{width:Math.min(800,o*.95)};case"code":return{width:Math.min(900,o*.95)};case"full":return{width:"95%",height:"95%"};default:return{width:"auto",maxWidth:"90%"}}},H=({trigger:r,title:o,description:l,children:D,open:u,onOpenChange:v,contentSize:y="auto",variant:W=F.DEFAULT,actions:i,footer:n,style:$,closeText:b="Close",testID:t})=>{const{theme:s}=U(),{width:C}=S(),[x,g]=j(!1),c=u!==void 0,P=c?u:x,p=()=>{c||g(!0),v?.(!0)},a=()=>{c||g(!1),v?.(!1)},O=z(y,C),M={backgroundColor:s.colors.card,borderRadius:s.radius.surface,padding:s.spacing.lg,maxHeight:"90%",shadowColor:s.colors.foreground,shadowOffset:{width:0,height:4},shadowOpacity:.3,shadowRadius:8,elevation:8};return d(T,{children:[r&&(A(r)?k(r,{onPress:p,testID:t?`${t}-trigger`:void 0}):e(h,{onPress:p,testID:t?`${t}-trigger`:void 0,children:r})),e(E,{visible:P,transparent:!0,animationType:"fade",onRequestClose:a,testID:t,children:e(h,{style:q,activeOpacity:1,onPress:a,testID:t?`${t}-overlay`:void 0,children:e(h,{activeOpacity:1,onPress:R=>R.stopPropagation(),style:V(M,O,$),testID:t?`${t}-content`:void 0,children:d(m,{gap:16,children:[(o||l)&&d(m,{gap:4,testID:t?`${t}-header`:void 0,children:[o&&e(w,{level:"h3",testID:t?`${t}-title`:void 0,children:o}),l&&e(w,{level:"body",variant:"muted",testID:t?`${t}-description`:void 0,children:l})]}),e(I,{testID:t?`${t}-body`:void 0,children:D}),n&&e(I,{testID:t?`${t}-footer`:void 0,children:n}),!n&&i&&d(m,{direction:"row",gap:12,justify:"flex-end",testID:t?`${t}-actions`:void 0,children:[i.cancel&&e(f,{variant:"outline",onPress:()=>{i.cancel?.onClick?.(),a()},testID:t?`${t}-cancel`:void 0,children:i.cancel.label}),i.confirm&&e(f,{variant:i.confirm.variant||"default",onPress:()=>{i.confirm?.onClick?.()},testID:t?`${t}-confirm`:void 0,children:i.confirm.label})]}),!n&&!i&&e(f,{variant:"outline",onPress:a,testID:t?`${t}-close`:void 0,children:b})]})})})})]})};var L=H;export{L as default};
1
+ import{jsx as n,jsxs as t,Fragment as k}from"react/jsx-runtime";import{useState as M,cloneElement as A,isValidElement as E}from"react";import{Modal as F,TouchableOpacity as u,View as w,useWindowDimensions as _}from"react-native";import{SURFACE_VARIANT as V}from"../../utils/constants";import{mergeStyles as z}from"../../utils/helpers";import{useTheme as U}from"../../theme";import f from"../Stack";import v from"../Text";import h from"../Button";const q={flex:1,backgroundColor:"rgba(0, 0, 0, 0.5)",justifyContent:"center",alignItems:"center"},B=(o,r)=>{switch(o){case"form":return{width:Math.min(400,r*.9)};case"text":return{width:Math.min(600,r*.9)};case"image":return{width:Math.min(800,r*.95)};case"code":return{width:Math.min(900,r*.95)};case"full":return{width:"95%",height:"95%"};default:return{width:"auto",maxWidth:"90%"}}},H=({trigger:o,title:r,description:c,children:$,open:m,onOpenChange:p,contentSize:x="auto",variant:L=V.DEFAULT,actions:i,footer:a,style:b,closeText:C="Close",testID:e})=>{const{theme:d}=U(),{width:S}=_(),[P,g]=M(!1),s=m!==void 0,j=s?m:P,y=()=>{s||g(!0),p?.(!0)},l=()=>{s||g(!1),p?.(!1)},O=B(x,S),R={backgroundColor:d.colors.card,borderRadius:d.radius.surface,padding:d.spacing.lg,maxHeight:"90%",shadowColor:d.colors.foreground,shadowOffset:{width:0,height:4},shadowOpacity:.3,shadowRadius:8,elevation:8};return t(k,{children:[o&&(E(o)?A(o,{onPress:y,testID:e?`${e}-trigger`:void 0}):n(u,{onPress:y,testID:e?`${e}-trigger`:void 0,children:o})),n(F,{visible:j,transparent:!0,animationType:"fade",onRequestClose:l,testID:e,children:n(u,{style:q,activeOpacity:1,onPress:l,testID:e?`${e}-overlay`:void 0,children:n(u,{activeOpacity:1,onPress:T=>T.stopPropagation(),style:z(R,O,b),testID:e?`${e}-content`:void 0,children:t(f,{gap:16,children:[(r||c)&&t(f,{gap:4,testID:e?`${e}-header`:void 0,children:[r&&n(v,{level:"h3",testID:e?`${e}-title`:void 0,children:r}),c&&n(v,{level:"body",variant:"muted",testID:e?`${e}-description`:void 0,children:c})]}),n(w,{testID:e?`${e}-body`:void 0,children:$}),a&&n(w,{testID:e?`${e}-footer`:void 0,children:a}),!a&&i&&t(f,{direction:"row",gap:12,justify:"flex-end",testID:e?`${e}-actions`:void 0,children:[i.cancel&&n(h,{variant:"outline",onPress:()=>{i.cancel?.onClick?.(),l()},testID:e?`${e}-cancel`:void 0,children:i.cancel.label}),i.confirm&&n(h,{variant:i.confirm.variant||"default",onPress:()=>{i.confirm?.onClick?.()},testID:e?`${e}-confirm`:void 0,children:i.confirm.label})]}),!a&&!i&&n(h,{variant:"outline",onPress:l,testID:e?`${e}-close`:void 0,children:C})]})})})})]})};var I=H;export{I as default};
@@ -1 +1 @@
1
- import{jsx as o,jsxs as h}from"react/jsx-runtime";import{useState as C}from"react";import{View as p,TouchableOpacity as f,ScrollView as W}from"react-native";import{mergeStyles as V}from"../../utils/helpers";import{useTheme as j}from"../../theme";import k from"../Stack";import P from"../Text";import R from"../Separator";const T={borderRadius:8,borderWidth:1,shadowOffset:{width:0,height:2},shadowOpacity:.25,shadowRadius:4,elevation:5,minWidth:200},z={paddingHorizontal:12,paddingVertical:10,flexDirection:"row",alignItems:"center",gap:8},H=({trigger:g,children:v,items:b=[],content:u,contentWidth:s,contentAlign:n="start",open:d,onOpenChange:l,style:y,testID:t})=>{const{theme:i}=j(),w={...T,backgroundColor:i.colors.background,borderColor:i.colors.border,shadowColor:i.colors.foreground},[$,c]=C(!1),r=d!==void 0,m=r?d:$,x=()=>{const e=!m;r||c(e),l?.(e)},D=()=>{r||c(!1),l?.(!1)},I=g||v,O=n==="end"?{alignSelf:"flex-end"}:n==="center"?{alignSelf:"center"}:{alignSelf:"flex-start"},S=s?{width:s,minWidth:void 0}:{};return h(p,{style:y,testID:t,children:[o(f,{onPress:x,activeOpacity:.7,testID:t?`${t}-trigger`:void 0,children:I}),m&&o(p,{style:V(w,O,S),testID:t?`${t}-menu`:void 0,children:o(W,{children:u||o(k,{gap:0,children:b.map((e,a)=>e.separator?o(R,{testID:t?`${t}-separator-${a}`:void 0},`separator-${a}`):h(f,{style:z,onPress:()=>{e.onSelect?.(),D()},disabled:e.disabled,activeOpacity:.7,testID:t?`${t}-item-${a}`:void 0,children:[e.icon,o(P,{level:"body",style:e.disabled?{opacity:.5}:void 0,children:e.label})]},e.value||e.label))})})})]})};var A=H;export{A as default};
1
+ import{jsx as o,jsxs as p}from"react/jsx-runtime";import{useState as T}from"react";import{View as u,TouchableOpacity as h,ScrollView as k}from"react-native";import{mergeStyles as V}from"../../utils/helpers";import{useTheme as P}from"../../theme";import R from"../Stack";import W from"../Text";import _ from"../Separator";const z={borderRadius:8,borderWidth:1,shadowOffset:{width:0,height:2},shadowOpacity:.25,shadowRadius:4,elevation:5,minWidth:200},B={paddingHorizontal:12,paddingVertical:10,flexDirection:"row",alignItems:"center",gap:8},H=({trigger:m,children:g,items:y=[],content:S,contentWidth:a,contentAlign:i="start",open:s,onOpenChange:d,style:b,testID:r})=>{const{theme:n}=P(),w={...z,backgroundColor:n.colors.background,borderColor:n.colors.border,shadowColor:n.colors.foreground},[x,c]=T(!1),t=s!==void 0,f=t?s:x,$=()=>{const e=!f;t||c(e),d?.(e)},O=()=>{t||c(!1),d?.(!1)},v=m||g,C=i==="end"?{alignSelf:"flex-end"}:i==="center"?{alignSelf:"center"}:{alignSelf:"flex-start"},j=a?{width:a,minWidth:void 0}:{};return p(u,{style:b,testID:r,children:[o(h,{onPress:$,activeOpacity:.7,testID:r?`${r}-trigger`:void 0,children:v}),f&&o(u,{style:V(w,C,j),testID:r?`${r}-menu`:void 0,children:o(k,{children:S||o(R,{gap:0,children:y.map((e,l)=>e.separator?o(_,{testID:r?`${r}-separator-${l}`:void 0},`separator-${l}`):p(h,{style:B,onPress:()=>{e.onSelect?.(),O()},disabled:e.disabled,activeOpacity:.7,testID:r?`${r}-item-${l}`:void 0,children:[e.icon,o(W,{level:"body",style:e.disabled?{opacity:.5}:void 0,children:e.label})]},e.value||e.label))})})})]})};var N=H;export{N as default};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/DualCard/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AASxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aA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IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;IACjE;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAMD;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,QAAQ,GAAI,4JAef,aAAa,4CA0Ff,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- import{jsx as e,jsxs as C}from"react/jsx-runtime";import{View as i,TouchableOpacity as h}from"react-native";import{SURFACE_VARIANT as w}from"../../utils/constants";import"../../utils/helpers";import"../../utils/variants";import{useTheme as x}from"../../theme";import"../Card";import A from"../Separator";import"../Stack";import f from"../Card";const $={flexDirection:"column"},O=({leftTitle:m,leftSubtitle:p,leftContent:v,leftCTA:u,rightTitle:y,rightSubtitle:D,rightContent:I,rightCTA:g,variant:s=w.DEFAULT,elevated:T=!1,children:l,onClick:r,style:o,testID:t})=>{const{theme:n}=x(),a=T?{shadowColor:n.colors.foreground,shadowOffset:{width:0,height:4},shadowOpacity:.15,shadowRadius:12,elevation:8}:{},b={flexDirection:"row",gap:n.spacing.md};if(l){const d=e(i,{style:[a],testID:t,children:l});return r?e(h,{onPress:r,activeOpacity:.7,style:o,testID:t?`${t}-button`:void 0,children:d}):e(i,{style:o,children:d})}const c=C(i,{style:[b,$,a],testID:t,children:[e(i,{style:{flex:1},testID:t?`${t}-left`:void 0,children:e(f,{title:m,subtitle:p,content:v,variant:s,testID:t?`${t}-left-card`:void 0,children:u})}),e(A,{orientation:"vertical",testID:t?`${t}-separator`:void 0}),e(i,{style:{flex:1},testID:t?`${t}-right`:void 0,children:e(f,{title:y,subtitle:D,content:I,variant:s,testID:t?`${t}-right-card`:void 0,children:g})})]});return r?e(h,{onPress:r,activeOpacity:.7,style:o,testID:t?`${t}-button`:void 0,children:c}):e(i,{style:o,children:c})};var j=O;export{j as default};
1
+ import{jsx as r,jsxs as v}from"react/jsx-runtime";import{View as t,TouchableOpacity as f}from"react-native";import{SURFACE_VARIANT as C}from"../../utils/constants";import"../../utils/helpers";import"../../utils/variants";import{useTheme as O}from"../../theme";import"../Card";import j from"../Separator";import"../Stack";import m from"../Card";const A={flexDirection:"column"},T=({leftTitle:u,leftSubtitle:h,leftContent:p,leftCTA:y,rightTitle:S,rightSubtitle:x,rightContent:g,rightCTA:w,variant:o=C.DEFAULT,elevated:$=!1,children:a,onClick:n,style:i,testID:e})=>{const{theme:d}=O(),l=$?{shadowColor:d.colors.foreground,shadowOffset:{width:0,height:4},shadowOpacity:.15,shadowRadius:12,elevation:8}:{},b={flexDirection:"row",gap:d.spacing.md};if(a){const s=r(t,{style:[l],testID:e,children:a});return n?r(f,{onPress:n,activeOpacity:.7,style:i,testID:e?`${e}-button`:void 0,children:s}):r(t,{style:i,children:s})}const c=v(t,{style:[b,A,l],testID:e,children:[r(t,{style:{flex:1},testID:e?`${e}-left`:void 0,children:r(m,{title:u,subtitle:h,content:p,variant:o,testID:e?`${e}-left-card`:void 0,children:y})}),r(j,{orientation:"vertical",testID:e?`${e}-separator`:void 0}),r(t,{style:{flex:1},testID:e?`${e}-right`:void 0,children:r(m,{title:S,subtitle:x,content:g,variant:o,testID:e?`${e}-right-card`:void 0,children:w})})]});return n?r(f,{onPress:n,activeOpacity:.7,style:i,testID:e?`${e}-button`:void 0,children:c}):r(t,{style:i,children:c})};var M=T;export{M as default};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/FeatureFallback/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAGH,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAOpD,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAa,MAAM,OAAO,CAAC;AAEjE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,eAAe,GAAI,wGAUtB,oBAAoB,4CA4DtB,CAAC;AAgCF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,MAAM,EAClD,kBAAkB,aAAa,CAAC,CAAC,CAAC,EAClC,UAAU,SAAS;YAEiB,CAAC;;CAStC,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/FeatureFallback/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAGH,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAOpD,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAa,MAAM,OAAO,CAAC;AAEjE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,eAAe,GAAI,wGAUtB,oBAAoB,4CA2DtB,CAAC;AAgCF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,MAAM,EAClD,kBAAkB,aAAa,CAAC,CAAC,CAAC,EAClC,UAAU,SAAS;YAEiB,CAAC;;CAStC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
1
- import{jsx as e,jsxs as p}from"react/jsx-runtime";import{Component as u}from"react";import{View as i}from"react-native";import n from"../Text";import v from"../Stack";import f from"../Card";import D from"../Button";const d=({children:r,featureName:a,message:o,icon:s,showActionButton:m=!1,actionButtonText:h="Go Back",helpText:l,style:c,testID:t})=>r?e(i,{style:c,testID:t,children:r}):e(i,{style:[{alignItems:"center",justifyContent:"center"},c],testID:t,children:e(f,{testID:t?`${t}-card`:void 0,children:p(v,{gap:12,align:"center",children:[s&&e(i,{testID:t?`${t}-icon`:void 0,children:s}),a&&e(n,{level:"h3",testID:t?`${t}-feature-name`:void 0,children:a}),o&&e(n,{level:"body",variant:"muted",testID:t?`${t}-message`:void 0,children:o}),l&&e(n,{level:"caption",variant:"muted",testID:t?`${t}-help`:void 0,children:l}),m&&e(D,{variant:"outline",testID:t?`${t}-action`:void 0,children:h})]})})});class I extends u{constructor(a){super(a),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(a,o){}render(){return this.state.hasError?e(d,{children:this.props.fallback}):this.props.children}}const y=(r,a)=>{const o=s=>e(I,{fallback:a,children:e(r,{...s})});return o.displayName=`withFeatureFallback(${r.displayName||r.name||"Component"})`,o};var $=d;export{$ as default,y as withFeatureFallback};
1
+ import{jsx as e,jsxs as h}from"react/jsx-runtime";import{Component as m}from"react";import{View as o}from"react-native";import l from"../Text";import p from"../Stack";import F from"../Card";import v from"../Button";const s=({children:n,featureName:t,message:a,icon:i,showActionButton:u=!1,actionButtonText:f="Go Back",helpText:c,style:d,testID:r})=>n?e(o,{style:d,testID:r,children:n}):e(o,{style:[{alignItems:"center",justifyContent:"center"},d],testID:r,children:e(F,{testID:r?`${r}-card`:void 0,children:h(p,{gap:12,align:"center",children:[i&&e(o,{testID:r?`${r}-icon`:void 0,children:i}),t&&e(l,{level:"h3",testID:r?`${r}-feature-name`:void 0,children:t}),a&&e(l,{level:"body",variant:"muted",testID:r?`${r}-message`:void 0,children:a}),c&&e(l,{level:"caption",variant:"muted",testID:r?`${r}-help`:void 0,children:c}),u&&e(v,{variant:"outline",testID:r?`${r}-action`:void 0,children:f})]})})});class k extends m{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,a){}render(){return this.state.hasError?e(s,{children:this.props.fallback}):this.props.children}}const B=(n,t)=>{const a=i=>e(k,{fallback:t,children:e(n,{...i})});return a.displayName=`withFeatureFallback(${n.displayName||n.name||"Component"})`,a};var w=s;export{w as default,B as withFeatureFallback};
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import"react";import"react-native";import*as l from"expo-document-picker";import"../../utils/helpers";import n from"../Button";const y=({onFileSelect:s,accept:i,multiple:a=!1,children:o,style:c,testID:m,...p})=>r(n,{onPress:async()=>{try{const t=await l.getDocumentAsync({type:i?.join(","),multiple:a});!t.canceled&&t.assets&&t.assets.forEach(e=>{s?.({uri:e.uri,name:e.name||"file",type:e.mimeType||"application/octet-stream",size:e.size||0})})}catch{__DEV__}},style:c,testID:m,...p,children:o});var f=y;export{f as default};
1
+ import{jsx as a}from"react/jsx-runtime";import"react";import"react-native";import*as l from"expo-document-picker";import"../../utils/helpers";import p from"../Button";const f=({onFileSelect:t,accept:o,multiple:s=!1,children:i,style:c,testID:m,...n})=>a(p,{onPress:async()=>{try{const e=await l.getDocumentAsync({type:o?.join(","),multiple:s});!e.canceled&&e.assets&&e.assets.forEach(r=>{t?.({uri:r.uri,name:r.name||"file",type:r.mimeType||"application/octet-stream",size:r.size||0})})}catch{__DEV__}},style:c,testID:m,...n,children:i});var g=f;export{g as default};
@@ -87,7 +87,7 @@ export interface GridAreaProps {
87
87
  */
88
88
  testID?: string;
89
89
  }
90
- declare const Grid: ({ cols, gap, align, justify, children, style, testID }: GridProps) => import("react/jsx-runtime").JSX.Element;
91
- export declare const GridArea: ({ name, children, alignSelf, justifySelf, overflow, min, style, testID }: GridAreaProps) => import("react/jsx-runtime").JSX.Element;
90
+ declare const Grid: ({ cols, gap, align, justify, children, style, testID, }: GridProps) => import("react/jsx-runtime").JSX.Element;
91
+ export declare const GridArea: ({ name, children, alignSelf, justifySelf, overflow, min, style, testID, }: GridAreaProps) => import("react/jsx-runtime").JSX.Element;
92
92
  export default Grid;
93
93
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Grid/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAGH,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;A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AAC;IACpD;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA8BD,QAAA,MAAM,IAAI,GAAI,yDAQX,SAAS,4CA4CX,CAAC;AAsBF,eAAO,MAAM,QAAQ,GAAI,2EAStB,aAAa,4CAaf,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1 +1 @@
1
- import{jsx as f}from"react/jsx-runtime";import p from"react";import{View as d,useWindowDimensions as y}from"react-native";import{mergeStyles as h}from"../../utils/helpers";const m=[768,1024,1440],w={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},g={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between","space-around":"space-around"},D=({cols:e=1,gap:t=16,align:r,justify:n,children:s,style:a,testID:l})=>{const{width:i}=y(),o=typeof e=="number"?e:i<m[0]?e[0]:i<m[1]?e[1]:i<m[2]?e[2]:e[3],u={flexDirection:"row",flexWrap:"wrap",marginHorizontal:-(t/2),...r&&{alignItems:w[r]},...n&&{justifyContent:g[n]}},x=`${100/o}%`;return f(d,{style:h(u,a),testID:l,children:p.Children.map(s,c=>p.isValidElement(c)?f(d,{style:{width:x,paddingHorizontal:t/2,marginBottom:t},children:c}):c)})},I={auto:"auto",start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},S={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},b=({name:e,children:t,alignSelf:r,justifySelf:n,overflow:s,min:a,style:l,testID:i})=>{const o={...r&&{alignSelf:I[r]},...n&&{alignSelf:S[n]},...s&&s!=="auto"&&{overflow:s},...a!==void 0&&typeof a=="number"&&{minWidth:a}};return f(d,{style:h(o,l),testID:i,children:t})};var j=D;export{b as GridArea,j as default};
1
+ import{jsx as m}from"react/jsx-runtime";import p from"react";import{View as l,useWindowDimensions as A}from"react-native";import{mergeStyles as u}from"../../utils/helpers";const f=[768,1024,1440],I={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},S={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between","space-around":"space-around"},y=({cols:t=1,gap:e=16,align:r,justify:n,children:s,style:o,testID:c})=>{const{width:a}=A(),i=typeof t=="number"?t:a<f[0]?t[0]:a<f[1]?t[1]:a<f[2]?t[2]:t[3],x={flexDirection:"row",flexWrap:"wrap",marginHorizontal:-(e/2),...r&&{alignItems:I[r]},...n&&{justifyContent:S[n]}},h=`${100/i}%`;return m(l,{style:u(x,o),testID:c,children:p.Children.map(s,d=>p.isValidElement(d)?m(l,{style:{width:h,paddingHorizontal:e/2,marginBottom:e},children:d}):d)})},_={auto:"auto",start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},w={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},E=({name:t,children:e,alignSelf:r,justifySelf:n,overflow:s,min:o,style:c,testID:a})=>{const i={...r&&{alignSelf:_[r]},...n&&{alignSelf:w[n]},...s&&s!=="auto"&&{overflow:s},...o!==void 0&&typeof o=="number"&&{minWidth:o}};return m(l,{style:u(i,c),testID:a,children:e})};var F=y;export{E as GridArea,F as default};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as c}from"react/jsx-runtime";import{View as a}from"react-native";import{mergeStyles as f}from"../../utils/helpers";import g from"../Stack";import d from"../Text";import h from"../Badge";const p={padding:48,alignItems:"center",justifyContent:"center"},u=r=>{switch(r){case"start":return{alignItems:"flex-start"};case"end":return{alignItems:"flex-end"};default:return{alignItems:"center"}}},v=({badge:r,title:s,subtitle:l,fullHeight:m=!1,align:i="center",variant:x="primary",children:n,style:o,testID:t})=>e(a,{style:f(p,u(i),m&&{minHeight:"100%"},o),testID:t,children:c(g,{gap:16,align:i==="center"?"center":i==="start"?"flex-start":"flex-end",children:[r&&e(h,{variant:"primary",testID:t?`${t}-badge`:void 0,children:r}),s&&e(d,{level:"h1",testID:t?`${t}-title`:void 0,children:s}),l&&e(d,{level:"h3",variant:"muted",testID:t?`${t}-subtitle`:void 0,children:l}),n&&e(a,{testID:t?`${t}-children`:void 0,children:n})]})});var I=v;export{I as default};
1
+ import{jsx as r,jsxs as o}from"react/jsx-runtime";import{View as s}from"react-native";import{mergeStyles as f}from"../../utils/helpers";import h from"../Stack";import d from"../Text";import u from"../Badge";const p={padding:48,alignItems:"center",justifyContent:"center"},g=t=>{switch(t){case"start":return{alignItems:"flex-start"};case"end":return{alignItems:"flex-end"};default:return{alignItems:"center"}}},x=({badge:t,title:i,subtitle:a,fullHeight:c=!1,align:n="center",variant:y="primary",children:l,style:m,testID:e})=>r(s,{style:f(p,g(n),c&&{minHeight:"100%"},m),testID:e,children:o(h,{gap:16,align:n==="center"?"center":n==="start"?"flex-start":"flex-end",children:[t&&r(u,{variant:"primary",testID:e?`${e}-badge`:void 0,children:t}),i&&r(d,{level:"h1",testID:e?`${e}-title`:void 0,children:i}),a&&r(d,{level:"h3",variant:"muted",testID:e?`${e}-subtitle`:void 0,children:a}),l&&r(s,{testID:e?`${e}-children`:void 0,children:l})]})});var k=x;export{k as default};
@@ -1 +1 @@
1
- import{jsx as g}from"react/jsx-runtime";import"react";import"react-native";import"../../utils/helpers";import l from"../Popover";const d=({trigger:e,children:t,content:n,open:i,onOpenChange:o,align:r,side:s,sideOffset:p,style:a,testID:f})=>g(l,{trigger:e,content:n,open:i,onOpenChange:o,align:r,side:s,sideOffset:p,style:a,testID:f,children:t});var m=d;export{m as default};
1
+ import{jsx as f}from"react/jsx-runtime";import"react";import"react-native";import"../../utils/helpers";import l from"../Popover";const c=({trigger:e,children:t,content:r,open:o,onOpenChange:i,align:m,side:s,sideOffset:n,style:p,testID:a})=>f(l,{trigger:e,content:r,open:o,onOpenChange:i,align:m,side:s,sideOffset:n,style:p,testID:a,children:t});var C=c;export{C as default};
@@ -1 +1 @@
1
- import{Fragment as m,jsx as e}from"react/jsx-runtime";import"react-native";import{MaterialIcons as n}from"@expo/vector-icons";const i=({name:o,size:s=24,color:a="#111827",component:t,style:r,testID:l})=>t?e(m,{children:t}):e(n,{name:o||"help-outline",size:s,color:a,style:r,testID:l});var c=i;export{c as default};
1
+ import{Fragment as m,jsx as t}from"react/jsx-runtime";import"react-native";import{MaterialIcons as n}from"@expo/vector-icons";const l=({name:e,size:o=24,color:s="#111827",component:r,style:a,testID:i})=>r?t(m,{children:r}):t(n,{name:e||"help-outline",size:o,color:s,style:a,testID:i});var u=l;export{u as default};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as g}from"react/jsx-runtime";import{useRef as u}from"react";import{ScrollView as v}from"react-native";import{mergeStyles as x}from"../../utils/helpers";import y from"../Spinner";import l from"../Stack";const S=({loading:o=!1,hasMore:s=!1,onLoadMore:r,threshold:n=200,children:i,style:a,testID:t,...m})=>{const c=u(null);return e(v,{ref:c,onScroll:f=>{if(!s||o||!r)return;const{layoutMeasurement:h,contentOffset:d,contentSize:p}=f.nativeEvent;p.height-(h.height+d.y)<n&&r()},scrollEventThrottle:16,style:x({flex:1},a),testID:t,...m,children:g(l,{gap:8,children:[i,o&&e(l,{align:"center",testID:t?`${t}-loading`:void 0,children:e(y,{})})]})})};var I=S;export{I as default};
1
+ import{jsx as t,jsxs as u}from"react/jsx-runtime";import{useRef as S}from"react";import{ScrollView as x}from"react-native";import{mergeStyles as g}from"../../utils/helpers";import E from"../Spinner";import l from"../Stack";const j=({loading:r=!1,hasMore:o=!1,onLoadMore:n,threshold:s=200,children:i,style:c,testID:e,...f})=>{const m=S(null);return t(x,{ref:m,onScroll:a=>{if(!o||r||!n)return;const{layoutMeasurement:d,contentOffset:h,contentSize:p}=a.nativeEvent;p.height-(d.height+h.y)<s&&n()},scrollEventThrottle:16,style:g({flex:1},c),testID:e,...f,children:u(l,{gap:8,children:[i,r&&t(l,{align:"center",testID:e?`${e}-loading`:void 0,children:t(E,{})})]})})};var I=j;export{I as default};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Input/index.tsx"],"names":[],"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Z,UAAU,4CA0EZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1 +1 @@
1
- import{jsx as i,jsxs as n}from"react/jsx-runtime";import{TextInput as x,View as a}from"react-native";import{mergeStyles as m}from"../../utils/helpers";import{useTheme as S}from"../../theme";import s from"../Text";import I from"../Stack";function z(e){return{container:{minHeight:e.interactive.touchTarget,paddingHorizontal:e.spacing.md,paddingVertical:e.spacing.sm,borderWidth:1,borderColor:e.colors.border,borderRadius:e.radius.md,backgroundColor:e.colors.input},text:{fontSize:e.typography.fontSize.base,lineHeight:e.typography.fontSize.base*e.typography.lineHeight.base,color:e.colors.foreground},label:{fontSize:e.typography.fontSize.sm,fontWeight:e.typography.fontWeight.medium,color:e.colors.mutedForeground,marginBottom:e.spacing.sm/2},error:{fontSize:e.typography.fontSize.xs,color:e.colors.destructive,marginTop:e.spacing.sm/2},errorContainer:{borderColor:e.colors.destructive},placeholderColor:e.colors.mutedForeground}}const C=({label:e,placeholder:g,icon:o,iconEnd:c=!1,disabled:d=!1,required:h=!1,error:l,containerStyle:y,inputStyle:u,name:$,type:T,checked:H,max:W,min:j,step:k,style:f,testID:t,...v})=>{const{theme:p}=S(),r=z(p),b=!!l;return n(I,{gap:p.spacing.sm/2,style:y,testID:t,children:[e&&n(s,{level:"small",style:r.label,testID:t?`${t}-label`:void 0,children:[e,h&&i(s,{level:"small",variant:"destructive",children:" *"})]}),n(a,{style:m(r.container,b&&r.errorContainer,d&&{opacity:.5},o?{flexDirection:"row",alignItems:"center"}:void 0),testID:t?`${t}-container`:void 0,children:[o&&!c&&i(a,{style:{marginRight:8},testID:t?`${t}-icon`:void 0,children:o}),i(x,{style:m(r.text,o?{flex:1}:void 0,u,f),placeholder:g,placeholderTextColor:r.placeholderColor,editable:!d,...v,testID:t?`${t}-input`:void 0}),o&&c&&i(a,{style:{marginLeft:8},testID:t?`${t}-icon`:void 0,children:o})]}),l&&i(s,{level:"caption",variant:"destructive",style:r.error,testID:t?`${t}-error`:void 0,children:l})]})};var D=C;export{D as default};
1
+ import{jsx as i,jsxs as l}from"react/jsx-runtime";import{TextInput as b,View as a}from"react-native";import{mergeStyles as f}from"../../utils/helpers";import{useTheme as v}from"../../theme";import s from"../Text";import z from"../Stack";function C(r){return{container:{minHeight:r.interactive.touchTarget,paddingHorizontal:r.spacing.md,paddingVertical:r.spacing.sm,borderWidth:1,borderColor:r.colors.border,borderRadius:r.radius.md,backgroundColor:r.colors.input},text:{fontSize:r.typography.fontSize.base,lineHeight:r.typography.fontSize.base*r.typography.lineHeight.base,color:r.colors.foreground},label:{fontSize:r.typography.fontSize.sm,fontWeight:r.typography.fontWeight.medium,color:r.colors.mutedForeground,marginBottom:r.spacing.sm/2},error:{fontSize:r.typography.fontSize.xs,color:r.colors.destructive,marginTop:r.spacing.sm/2},errorContainer:{borderColor:r.colors.destructive},placeholderColor:r.colors.mutedForeground}}const T=({label:r,placeholder:g,icon:e,iconEnd:d=!1,disabled:c=!1,required:u=!1,error:t,containerStyle:y,inputStyle:m,name:$,type:j,checked:H,max:k,min:W,step:w,style:x,testID:o,...h})=>{const{theme:p}=v(),n=C(p),S=!!t;return l(z,{gap:p.spacing.sm/2,style:y,testID:o,children:[r&&l(s,{level:"small",style:n.label,testID:o?`${o}-label`:void 0,children:[r,u&&i(s,{level:"small",variant:"destructive",children:" *"})]}),l(a,{style:f(n.container,S&&n.errorContainer,c&&{opacity:.5},e?{flexDirection:"row",alignItems:"center"}:void 0),testID:o?`${o}-container`:void 0,children:[e&&!d&&i(a,{style:{marginRight:8},testID:o?`${o}-icon`:void 0,children:e}),i(b,{style:f(n.text,e?{flex:1}:void 0,m,x),placeholder:g,placeholderTextColor:n.placeholderColor,editable:!c,...h,testID:o?`${o}-input`:void 0}),e&&d&&i(a,{style:{marginLeft:8},testID:o?`${o}-icon`:void 0,children:e})]}),t&&i(s,{level:"caption",variant:"destructive",style:n.error,testID:o?`${o}-error`:void 0,children:t})]})};var A=T;export{A as default};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Label/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAOpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAqBD,QAAA,MAAM,KAAK,GAAI,8DAQZ,UAAU,4CA8BZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Label/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAOpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAqBD,QAAA,MAAM,KAAK,GAAI,8DAQZ,UAAU,4CAmCZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1 +1 @@
1
- import{jsx as r,jsxs as f}from"react/jsx-runtime";import{View as o}from"react-native";import{mergeStyles as h}from"../../utils/helpers";import{useTheme as p}from"../../theme";import u from"../Stack";import s from"../Text";const v={fontSize:14,fontWeight:"500"},g={fontWeight:"400"},D=({children:l,icon:t,iconEnd:i=!1,plain:n=!1,required:c=!1,style:m,testID:e})=>{const{theme:d}=p(),a={color:d.colors.foreground};return f(u,{direction:"row",align:"center",gap:4,testID:e,children:[t&&!i&&r(o,{testID:e?`${e}-icon`:void 0,children:t}),r(s,{level:"small",style:h(v,a,n&&g,m),children:l}),t&&i&&r(o,{testID:e?`${e}-icon`:void 0,children:t}),c&&r(s,{level:"small",variant:"destructive",testID:e?`${e}-required`:void 0,children:"*"})]})};var I=D;export{I as default};
1
+ import{jsx as l,jsxs as c}from"react/jsx-runtime";import{View as t}from"react-native";import{mergeStyles as h}from"../../utils/helpers";import{useTheme as p}from"../../theme";import u from"../Stack";import i from"../Text";const g={fontSize:14,fontWeight:"500"},x={fontWeight:"400"},S=({children:n,icon:r,iconEnd:o=!1,plain:s=!1,required:a=!1,style:f,testID:e})=>{const{theme:m}=p(),d={color:m.colors.foreground};return c(u,{direction:"row",align:"center",gap:4,testID:e,children:[r&&!o&&l(t,{testID:e?`${e}-icon`:void 0,children:r}),l(i,{level:"small",style:h(g,d,s&&x,f),children:n}),r&&o&&l(t,{testID:e?`${e}-icon`:void 0,children:r}),a&&l(i,{level:"small",variant:"destructive",testID:e?`${e}-required`:void 0,children:"*"})]})};var T=S;export{T as default};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/List/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAOpD,O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