@donotdev/expo 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atomic/Accordion/index.js +1 -1
- package/dist/atomic/Alert/index.js +1 -1
- package/dist/atomic/AlertDialog/index.d.ts.map +1 -1
- package/dist/atomic/AlertDialog/index.js +1 -1
- package/dist/atomic/Avatar/index.d.ts +1 -1
- package/dist/atomic/Avatar/index.d.ts.map +1 -1
- package/dist/atomic/Avatar/index.js +1 -1
- package/dist/atomic/Badge/index.d.ts.map +1 -1
- package/dist/atomic/Badge/index.js +1 -1
- package/dist/atomic/Blockquote/index.js +1 -1
- package/dist/atomic/Button/index.d.ts.map +1 -1
- package/dist/atomic/Button/index.js +1 -1
- package/dist/atomic/Calendar/index.js +1 -1
- package/dist/atomic/CallToAction/index.js +1 -1
- package/dist/atomic/Card/index.d.ts.map +1 -1
- package/dist/atomic/Card/index.js +1 -1
- package/dist/atomic/Checkbox/index.d.ts.map +1 -1
- package/dist/atomic/Checkbox/index.js +1 -1
- package/dist/atomic/Collapsible/index.js +1 -1
- package/dist/atomic/Combobox/index.js +1 -1
- package/dist/atomic/Command/index.js +1 -1
- package/dist/atomic/CommandDialog/index.d.ts.map +1 -1
- package/dist/atomic/CommandDialog/index.js +1 -1
- package/dist/atomic/ContextMenu/index.js +1 -1
- package/dist/atomic/CopyToClipboard/index.js +1 -1
- package/dist/atomic/DescriptionList/index.js +1 -1
- package/dist/atomic/Dialog/index.js +1 -1
- package/dist/atomic/DropdownMenu/index.js +1 -1
- package/dist/atomic/DualCard/index.d.ts.map +1 -1
- package/dist/atomic/DualCard/index.js +1 -1
- package/dist/atomic/FeatureFallback/index.d.ts.map +1 -1
- package/dist/atomic/FeatureFallback/index.js +1 -1
- package/dist/atomic/FileButton/index.js +1 -1
- package/dist/atomic/Grid/index.d.ts +2 -2
- package/dist/atomic/Grid/index.d.ts.map +1 -1
- package/dist/atomic/Grid/index.js +1 -1
- package/dist/atomic/HeroSection/index.js +1 -1
- package/dist/atomic/HoverCard/index.js +1 -1
- package/dist/atomic/Icons/index.js +1 -1
- package/dist/atomic/InfiniteScroll/index.js +1 -1
- package/dist/atomic/Input/index.d.ts.map +1 -1
- package/dist/atomic/Input/index.js +1 -1
- package/dist/atomic/Label/index.d.ts.map +1 -1
- package/dist/atomic/Label/index.js +1 -1
- package/dist/atomic/List/index.d.ts.map +1 -1
- package/dist/atomic/List/index.js +1 -1
- package/dist/atomic/NavigationMenu/index.js +1 -1
- package/dist/atomic/Pagination/index.js +1 -1
- package/dist/atomic/PasswordInput/index.js +1 -1
- package/dist/atomic/Popover/index.js +1 -1
- package/dist/atomic/Portal/index.js +1 -1
- package/dist/atomic/PortalButton/index.js +1 -1
- package/dist/atomic/Progress/index.d.ts.map +1 -1
- package/dist/atomic/Progress/index.js +1 -1
- package/dist/atomic/RadioGroup/index.d.ts.map +1 -1
- package/dist/atomic/RadioGroup/index.js +1 -1
- package/dist/atomic/RangeInput/index.d.ts.map +1 -1
- package/dist/atomic/RangeInput/index.js +1 -1
- package/dist/atomic/Rating/index.js +1 -1
- package/dist/atomic/ScrollArea/index.js +1 -1
- package/dist/atomic/Section/index.d.ts.map +1 -1
- package/dist/atomic/Section/index.js +1 -1
- package/dist/atomic/Select/index.d.ts.map +1 -1
- package/dist/atomic/Select/index.js +1 -1
- package/dist/atomic/Separator/index.d.ts.map +1 -1
- package/dist/atomic/Separator/index.js +1 -1
- package/dist/atomic/Sheet/index.js +1 -1
- package/dist/atomic/Skeleton/index.js +1 -1
- package/dist/atomic/Slider/index.d.ts.map +1 -1
- package/dist/atomic/Slider/index.js +1 -1
- package/dist/atomic/Slot/index.js +1 -1
- package/dist/atomic/Spinner/index.js +1 -1
- package/dist/atomic/Stack/index.js +1 -1
- package/dist/atomic/Stepper/index.js +1 -1
- package/dist/atomic/Switch/index.d.ts.map +1 -1
- package/dist/atomic/Switch/index.js +1 -1
- package/dist/atomic/Table/index.js +1 -1
- package/dist/atomic/Tabs/index.d.ts.map +1 -1
- package/dist/atomic/Tabs/index.js +1 -1
- package/dist/atomic/Tag/index.js +1 -1
- package/dist/atomic/Text/index.d.ts.map +1 -1
- package/dist/atomic/Text/index.js +1 -1
- package/dist/atomic/Textarea/index.js +1 -1
- package/dist/atomic/Toaster/index.d.ts.map +1 -1
- package/dist/atomic/Toaster/index.js +1 -1
- package/dist/atomic/Toggle/index.d.ts.map +1 -1
- package/dist/atomic/Toggle/index.js +1 -1
- package/dist/atomic/ToggleGroup/index.js +1 -1
- package/dist/atomic/Tooltip/index.js +1 -1
- package/dist/atomic/VideoPlayer/index.js +1 -1
- package/dist/atomic/VisuallyHidden/index.js +1 -1
- package/dist/atomic/index.js +1 -1
- package/dist/crud/components/DateFilter.js +1 -1
- package/dist/crud/components/DisplayFieldRenderer.js +1 -1
- package/dist/crud/components/EntityCardList.js +1 -1
- package/dist/crud/components/EntityDisplayRenderer.js +1 -1
- package/dist/crud/components/EntityFilters.js +1 -1
- package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityList.js +1 -1
- package/dist/crud/components/FormFieldRenderer.js +1 -1
- package/dist/crud/components/FormLayout.js +1 -1
- package/dist/crud/components/index.js +1 -1
- package/dist/crud/contexts/UploadContext.js +1 -1
- package/dist/crud/stores/index.js +1 -1
- package/dist/features/auth/components/AuthPartnerButton.d.ts.map +1 -1
- package/dist/features/auth/components/AuthPartnerButton.js +1 -1
- package/dist/features/auth/components/ConfirmDeleteDialog.js +1 -1
- package/dist/features/auth/components/FeatureGuard.js +1 -1
- package/dist/features/auth/components/GoogleOneTap.js +1 -1
- package/dist/features/auth/components/LoginModal.js +1 -1
- package/dist/features/auth/components/MultipleAuthProviders.d.ts.map +1 -1
- package/dist/features/auth/components/MultipleAuthProviders.js +1 -1
- package/dist/features/auth/components/ReauthDialog.js +1 -1
- package/dist/features/auth/components/index.js +1 -1
- package/dist/features/auth/hooks/index.js +1 -1
- package/dist/features/auth/hooks/useAuthState.js +1 -1
- package/dist/features/auth/hooks/useCanAccess.js +1 -1
- package/dist/features/auth/hooks/useHasRole.js +1 -1
- package/dist/features/auth/hooks/useUserRole.js +1 -1
- package/dist/features/auth/index.js +1 -1
- package/dist/features/billing/components/ProductCard.d.ts.map +1 -1
- package/dist/features/billing/components/ProductCard.js +1 -1
- package/dist/features/billing/components/SecurityNotice.js +1 -1
- package/dist/features/billing/components/StripeCheckoutButton.d.ts.map +1 -1
- package/dist/features/billing/components/StripeCheckoutButton.js +1 -1
- package/dist/features/billing/components/SubscriptionManager.js +1 -1
- package/dist/features/billing/components/index.js +1 -1
- package/dist/features/billing/index.js +1 -1
- package/dist/features/oauth/components/MultipleOAuthProviders.d.ts.map +1 -1
- package/dist/features/oauth/components/MultipleOAuthProviders.js +1 -1
- package/dist/features/oauth/components/OAuthConnectionModal.d.ts.map +1 -1
- package/dist/features/oauth/components/OAuthConnectionModal.js +1 -1
- package/dist/features/oauth/components/OAuthFallback.d.ts.map +1 -1
- package/dist/features/oauth/components/OAuthFallback.js +1 -1
- package/dist/features/oauth/components/OAuthPartnerButton.js +1 -1
- package/dist/features/oauth/components/index.js +1 -1
- package/dist/firebase/authPersistence.d.ts.map +1 -1
- package/dist/firebase/authPersistence.js +1 -1
- package/dist/firebase/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/providers/ExpoAppProviders.js +1 -1
- package/dist/routing/components.js +1 -1
- package/dist/storage/AsyncStorageStrategy.js +1 -1
- package/dist/storage/zustandAsyncStorage.js +1 -1
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/ThemeProvider.js +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/tokens.js +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/helpers.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/theme-helpers.js +1 -1
- package/dist/utils/useAuthSafe.js +1 -1
- package/dist/utils/variants.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as o,jsxs as u}from"react/jsx-runtime";import{View as s}from"react-native";import{mergeStyles as p}from"../../utils/helpers";import{useTheme as j}from"../../theme";import g from"../Stack";import y from"../Text";const D={flexDirection:"row",alignItems:"flex-start"},T={width:6,height:6,borderRadius:3,marginTop:8,marginRight:8},v={compact:2,default:4,comfortable:8},R={compact:0,default:0,comfortable:4},_=({items:h=[],ordered:b=!1,icon:c,density:a="default",children:f,gap:x,style:d,testID:l})=>{const{theme:S}=j(),I={backgroundColor:S.colors.mutedForeground},m=x??v[a],r=R[a];return f?o(g,{gap:m,style:p(r?{paddingVertical:r}:void 0,d),testID:l,children:f}):o(g,{gap:m,style:p(r?{paddingVertical:r}:void 0,d),testID:l,children:h.map((e,i)=>{let t,n;return typeof e=="string"?(t=e,n=c):typeof e=="object"&&e!==null&&"content"in e?(t=e.content,n=e.icon||c):t=e,u(s,{style:D,testID:l?`${l}-item-${i}`:void 0,children:[b?u(y,{level:"body",variant:"muted",style:{marginRight:8},children:[i+1,"."]}):n?o(s,{style:{marginRight:8},children:n}):o(s,{style:[T,I]}),typeof t=="string"?o(y,{level:"body",style:{flex:1},children:t}):o(s,{style:{flex:1},children:t})]},i)})})};var E=_;export{E as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as t,Fragment as v,jsxs as g}from"react/jsx-runtime";import{View as b,TouchableOpacity as x}from"react-native";import"../../utils/helpers";import{useTheme as S}from"../../theme";import j from"../Stack";import $ from"../Text";const n={paddingHorizontal:16,paddingVertical:12,flexDirection:"row",alignItems:"center",gap:8},w=({items:s=[],value:c,onValueChange:d,vertical:u=!1,orientation:f,LinkComponent:a,children:m,style:p,testID:r})=>{const{theme:h}=S(),y=u||f==="vertical",l={borderBottomWidth:2,borderBottomColor:h.colors.primary};return t(b,{style:p,testID:r,children:m||t(j,{direction:y?"column":"row",gap:0,children:s.map(e=>{const o=c===e.value,i=g(v,{children:[e.icon,t($,{level:"body",variant:o?"primary":"default",style:e.disabled?{opacity:.5}:void 0,children:e.label})]});return a&&e.href?t(a,{href:e.href,style:[n,o&&l],testID:r?`${r}-item-${e.value}`:void 0,children:i},e.value):t(x,{style:[n,o&&l],onPress:()=>{e.onPress?.(),d?.(e.value)},disabled:e.disabled,activeOpacity:.7,testID:r?`${r}-item-${e.value}`:void 0,children:i},e.value)})})})};var A=w;export{A as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as l,jsxs as
|
|
1
|
+
import{jsx as l,jsxs as $}from"react/jsx-runtime";import{useMemo as T}from"react";import"react-native";import"../../utils/helpers";import x from"../Stack";import h from"../Button";import M from"../Text";const _=({currentPage:n,totalPages:o,onPageChange:p,maxVisible:d=5,showNavigation:a=!0,previousLabel:y="Previous",nextLabel:j="Next",pageSize:f,total:m,itemsPerPagePlaceholder:b,showingLabel:u,style:S,testID:e})=>{const A=(()=>{const r=[],t=Math.floor(d/2);let i=Math.max(1,n-t),s=Math.min(o,i+d-1);s-i<d-1&&(i=Math.max(1,s-d+1)),i>1&&(r.push(1),i>2&&r.push("..."));for(let c=i;c<=s;c++)r.push(c);return s<o&&(s<o-1&&r.push("..."),r.push(o)),r})(),v=T(()=>{if(!u||!f||!m)return null;const r=(n-1)*f+1,t=Math.min(n*f,m);return u.replace("{from}",String(r)).replace("{to}",String(t)).replace("{total}",String(m))},[u,f,m,n]);return $(x,{gap:8,style:S,testID:e,children:[$(x,{direction:"row",align:"center",gap:8,children:[a&&l(h,{variant:"outline",onPress:()=>p(n-1),disabled:n===1,testID:e?`${e}-previous`:void 0,children:y}),A.map((r,t)=>{if(r==="...")return l(M,{level:"body",variant:"muted",testID:e?`${e}-ellipsis-${t}`:void 0,children:"..."},`ellipsis-${t}`);const i=r;return l(h,{variant:i===n?"primary":"outline",onPress:()=>p(i),testID:e?`${e}-page-${i}`:void 0,children:i},i)}),a&&l(h,{variant:"outline",onPress:()=>p(n+1),disabled:n===o,testID:e?`${e}-next`:void 0,children:j})]}),v&&l(M,{level:"caption",variant:"muted",testID:e?`${e}-showing`:void 0,children:v})]})};var O=_;export{O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as n,jsxs as s}from"react/jsx-runtime";import{useState as z}from"react";import{TextInput as C,View as w,TouchableOpacity as $}from"react-native";import{mergeStyles as f}from"../../utils/helpers";import{useTheme as j}from"../../theme";import i from"../Text";import H from"../Stack";function V(o){return{container:{minHeight:o.interactive.touchTarget,paddingHorizontal:o.spacing.md,paddingVertical:o.spacing.sm,borderWidth:1,borderColor:o.colors.border,borderRadius:o.radius.md,backgroundColor:o.colors.input,flexDirection:"row",alignItems:"center"},text:{fontSize:o.typography.fontSize.base,lineHeight:o.typography.fontSize.base*o.typography.lineHeight.base,color:o.colors.foreground,flex:1},toggleButton:{padding:o.spacing.sm/2,marginLeft:o.spacing.sm},label:{fontSize:o.typography.fontSize.sm,fontWeight:o.typography.fontWeight.medium,color:o.colors.mutedForeground,marginBottom:o.spacing.sm/2},error:{fontSize:o.typography.fontSize.xs,color:o.colors.destructive,marginTop:o.spacing.sm/2},errorContainer:{borderColor:o.colors.destructive},placeholderColor:o.colors.mutedForeground}}const k=({visible:o,onVisibilityChange:a,label:c,error:t,required:y,disabled:d=!1,containerStyle:m,inputStyle:b,name:B,type:W,checked:E,max:F,min:P,step:_,style:v,testID:r,...p})=>{const[x,S]=z(!1),l=o??x,h=!!t,T=()=>{const u=!l;a?a(u):S(u)},{theme:g}=j(),e=V(g);return s(H,{gap:g.spacing.sm/2,style:m,testID:r,children:[c&&s(i,{level:"small",style:e.label,testID:r?`${r}-label`:void 0,children:[c,y&&n(i,{level:"small",variant:"destructive",children:" *"})]}),s(w,{style:f(e.container,h&&e.errorContainer,d&&{opacity:.5}),testID:r?`${r}-container`:void 0,children:[n(C,{style:f(e.text,b,v),placeholder:p.placeholder,placeholderTextColor:e.placeholderColor,secureTextEntry:!l,editable:!d,...p,testID:r?`${r}-input`:void 0}),n($,{onPress:T,style:e.toggleButton,testID:r?`${r}-toggle`:void 0,children:n(i,{level:"body",variant:"muted",children:l?"\u{1F441}\uFE0F":"\u{1F441}\uFE0F\u200D\u{1F5E8}\uFE0F"})})]}),t&&n(i,{level:"caption",variant:"destructive",style:e.error,testID:r?`${r}-error`:void 0,children:t})]})};var K=k;export{K as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as i,Fragment as
|
|
1
|
+
import{jsx as i,Fragment as V,jsxs as m}from"react/jsx-runtime";import{useState as C}from"react";import{View as p,TouchableOpacity as g}from"react-native";import{FLOATING_VARIANT as f}from"../../utils/constants";import{useTheme as P}from"../../theme";const $=f,S=({trigger:h,children:u,content:b,open:a,onOpenChange:x,side:t="bottom",align:n="center",sideOffset:r=4,modal:v=!1,variant:_=f.DEFAULT,style:y,testID:o})=>{const{theme:e}=P(),[T,w]=C(!1),s=a!==void 0,l=s?a:T,d=()=>{const c=!l;s||w(c),x?.(c)},R={backgroundColor:e.colors.popover,borderRadius:e.radius.floating||e.radius.md,padding:e.spacing.md,borderWidth:1,borderColor:e.colors.border,shadowColor:e.colors.foreground,shadowOffset:{width:0,height:2},shadowOpacity:.25,shadowRadius:4,elevation:5,position:"absolute",zIndex:e.zIndex.dropdown,marginTop:t==="bottom"?r:0,marginBottom:t==="top"?r:0,marginLeft:t==="right"?r:0,marginRight:t==="left"?r:0,...n==="start"&&{alignSelf:"flex-start"},...n==="end"&&{alignSelf:"flex-end"},...n==="center"&&{alignSelf:"center"}},A=h||u;return m(p,{style:y,testID:o,children:[i(g,{onPress:d,activeOpacity:.7,testID:o?`${o}-trigger`:void 0,children:A}),l&&m(V,{children:[v&&i(g,{style:{position:"absolute",top:-9999,left:-9999,right:-9999,bottom:-9999},onPress:d,activeOpacity:1,testID:o?`${o}-overlay`:void 0}),i(p,{style:R,testID:o?`${o}-content`:void 0,children:b})]})]})};var z=S;export{$ as POPOVER_VARIANT,z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as t,jsx as o}from"react/jsx-runtime";import"react-native";const a=({children:r,container:e})=>o(t,{children:r});var i=a;export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as t,Fragment as c,jsxs as f}from"react/jsx-runtime";import{useState as m}from"react";import{Modal as p,TouchableOpacity as o}from"react-native";import"../../utils/helpers";import u from"../Button";const y={flex:1,backgroundColor:"rgba(0, 0, 0, 0.5)",justifyContent:"center",alignItems:"center"},g={backgroundColor:"#ffffff",borderRadius:12,padding:24,maxWidth:"90%",maxHeight:"90%"},h=({portalContent:r,children:a,style:s,testID:e,...i})=>{const[l,n]=m(!1);return f(c,{children:[t(u,{onPress:()=>n(!0),style:s,testID:e,...i,children:a}),t(p,{visible:l,transparent:!0,animationType:"fade",onRequestClose:()=>n(!1),testID:e?`${e}-modal`:void 0,children:t(o,{style:y,activeOpacity:1,onPress:()=>n(!1),testID:e?`${e}-overlay`:void 0,children:t(o,{activeOpacity:1,onPress:d=>d.stopPropagation(),style:g,testID:e?`${e}-content`:void 0,children:r})})})]})};var _=h;export{_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Progress/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,CAAC;IACxE;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACvD;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAaD;;;;;;;;;GASG;AACH,QAAA,MAAM,QAAQ,GAAI,kEAQf,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Progress/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,CAAC;IACxE;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACvD;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAaD;;;;;;;;;GASG;AACH,QAAA,MAAM,QAAQ,GAAI,kEAQf,aAAa,4CAiDf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as c,jsxs as p}from"react/jsx-runtime";import{View as t}from"react-native";import{mergeStyles as g}from"../../utils/helpers";import{useTheme as y}from"../../theme";const b={height:8,borderRadius:4,overflow:"hidden"},w={height:"100%",borderRadius:4},x=({value:s=0,max:o=100,variant:a="default",getValueLabel:i,children:d,style:l,testID:e})=>{const{theme:m}=y(),r=m.colors,n={default:r.primary,primary:r.primary,success:r.success,warning:r.warning,destructive:r.destructive},u=Math.min(Math.max(s/o*100,0),100),f=n[a]||n.default,h=i?i(s,o):void 0;return p(t,{testID:e,children:[c(t,{style:g(b,{backgroundColor:r.muted},l),accessibilityRole:"progressbar",accessibilityValue:{min:0,max:o,now:s,text:h},testID:e?`${e}-track`:void 0,children:c(t,{style:[w,{width:`${u}%`,backgroundColor:f}],testID:e?`${e}-bar`:void 0})}),d]})};var R=x;export{R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/RadioGroup/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/RadioGroup/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAMxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,EAAE,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;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAwBD;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,UAAU,GAAI,qGAWjB,eAAe,4CA6DjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as i,jsxs as d}from"react/jsx-runtime";import{View as
|
|
1
|
+
import{jsx as i,jsxs as d}from"react/jsx-runtime";import{View as l,TouchableOpacity as v}from"react-native";import{CONTROL_VARIANT as x}from"../../utils/constants";import"../../utils/helpers";import{useTheme as C}from"../../theme";import R from"../Stack";import T from"../Text";const a=20,j=2,w={flexDirection:"row",alignItems:"center",gap:8},O={width:a,height:a,borderRadius:a/2,borderWidth:j,alignItems:"center",justifyContent:"center"},$={opacity:.5},A=({value:c,onValueChange:n,items:m=[],variant:D=x.DEFAULT,disabled:u=!1,orientation:y="vertical",required:_=!1,children:h,style:b,testID:r})=>{const{theme:f}=C(),o=f.colors,p={borderColor:o.primary},S={borderColor:o.border},g={width:10,height:10,borderRadius:5,backgroundColor:o.primary};return i(l,{accessibilityRole:"radiogroup",style:b,testID:r,children:d(R,{gap:8,direction:y==="horizontal"?"row":"column",children:[m.map(e=>{const s=c===e.value,t=u||e.disabled;return d(v,{onPress:()=>!t&&n?.(e.value),disabled:t,activeOpacity:.7,style:w,testID:r?`${r}-item-${e.value}`:void 0,children:[i(l,{style:[O,s?p:S,t&&$],children:s&&i(l,{style:g,testID:r?`${r}-indicator-${e.value}`:void 0})}),i(T,{level:"body",style:t?{opacity:.5}:void 0,children:e.label})]},e.value)}),h]})})};var q=A;export{q as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/RangeInput/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAOhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,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ACd;;OAEG;IACH,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;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,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAQD;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,UAAU,GAAI,mLAmBjB,eAAe,4CAmDjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as o,jsxs as s}from"react/jsx-runtime";import{View as g}from"react-native";import"../../utils/helpers";import i from"../Input";import h from"../Button";import S from"../Stack";const $={flexDirection:"row",gap:8,alignItems:"flex-end"},j=({label:l,minPlaceholder:u="Min",maxPlaceholder:d="Max",minValue:r="",maxValue:t="",actualMin:v,actualMax:M,disabled:n=!1,min:T,max:k,placeholder:f,required:b=!1,step:w,onChange:c,onClear:m,children:x,style:p,testID:e})=>{const y=r||t;return s(S,{gap:8,style:n?{...p,opacity:.5}:p,testID:e,children:[l&&o(i,{label:l,value:`${r||""} - ${t||""}`,editable:!1,testID:e?`${e}-label`:void 0}),s(g,{style:$,testID:e?`${e}-inputs`:void 0,children:[o(i,{placeholder:f||u,value:r,onChangeText:a=>!n&&c(a,t),keyboardType:"numeric",editable:!n,containerStyle:{flex:1},testID:e?`${e}-min`:void 0}),o(i,{placeholder:f||d,value:t,onChangeText:a=>!n&&c(r,a),keyboardType:"numeric",editable:!n,containerStyle:{flex:1},testID:e?`${e}-max`:void 0}),o(h,{variant:"ghost",onPress:m,disabled:n||!y,testID:e?`${e}-clear`:void 0,children:"\xD7"})]}),x]})};var E=j;export{E as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as i,jsxs as w}from"react/jsx-runtime";import{TouchableOpacity as j,View as A,StyleSheet as N}from"react-native";import{CONTROL_VARIANT as O}from"../../utils/constants";import{mergeStyles as R}from"../../utils/helpers";import"../Stack";import c from"../Text";const l=24,f=N.create({container:{flexDirection:"row",alignItems:"center",gap:4},star:{width:l,height:l}}),d={default:"#f59e0b",muted:"#9ca3af",primary:"#3b82f6",secondary:"#6366f1",accent:"#8b5cf6",success:"#10b981",warning:"#f59e0b",destructive:"#ef4444"};function T(e,t){return t>=e?"filled":t>=e-.5?"half":"empty"}const _=({value:e=0,onChange:t,max:m=5,readonly:p=!1,disabled:u=!1,variant:y=O.WARNING,showValue:h=!1,children:b,style:g,testID:r})=>{const x=d[y]||d.warning,s=!p&&!u&&!!t,S=o=>{s&&t?.(o)};return w(A,{style:R(f.container,g),testID:r,children:[Array.from({length:m}).map((o,v)=>{const n=v+1,a=T(n,e);return i(j,{onPress:()=>S(n),disabled:!s,activeOpacity:.7,testID:r?`${r}-star-${n}`:void 0,children:i(c,{level:"body",style:{...f.star,color:a==="empty"?"#d1d5db":x},children:a==="filled"?"\u2605":"\u2606"})},n)}),h&&i(c,{level:"body",variant:"muted",testID:r?`${r}-value`:void 0,children:e.toFixed(1)}),b]})};var F=_;export{F as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o,Fragment as
|
|
1
|
+
import{jsx as o,Fragment as a}from"react/jsx-runtime";import{ScrollView as n}from"react-native";import{mergeStyles as i}from"../../utils/helpers";const m=({children:r,showHorizontal:t,showVertical:e,style:l,testID:s,...c})=>o(n,{style:i({flex:1},l),testID:s,showsHorizontalScrollIndicator:t,showsVerticalScrollIndicator:e,...c,children:r}),p=({children:r})=>o(a,{children:r});var x=m;export{p as ScrollBar,x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Section/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAGH,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAOtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;IAClD;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA2BD,QAAA,MAAM,OAAO,GAAI,+JAgBd,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Section/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAGH,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAOtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;IAClD;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA2BD,QAAA,MAAM,OAAO,GAAI,+JAgBd,YAAY,4CA2Fd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as n,jsxs as d}from"react/jsx-runtime";import{useState as k}from"react";import{View as c,TouchableOpacity as M}from"react-native";import{mergeStyles as O}from"../../utils/helpers";import r from"../Stack";import s from"../Text";import P from"../Separator";const b={paddingVertical:16},q={start:"flex-start",center:"center",end:"flex-end"},z=({title:t,subtitle:o,children:y,showSeparator:S=!1,separator:f,collapsible:i=!1,defaultCollapsed:v=!0,tone:A="default",align:p,open:u,onOpenChange:C,defaultOpen:h,actions:a,style:$,testID:e})=>{const w=h!==void 0?!h:v,[j,T]=k(i?w:!1),m=u!==void 0,l=m?!u:j,V=f!==void 0?f:S,_=()=>{const x=!l;m||T(x),C?.(!x)},g=d(r,{gap:4,testID:e?`${e}-header`:void 0,children:[d(r,{direction:"row",align:"center",justify:"space-between",children:[d(r,{gap:4,style:{flex:1},children:[t&&d(r,{direction:"row",align:"center",gap:8,style:p?{alignSelf:q[p]}:void 0,children:[n(s,{level:"h2",testID:e?`${e}-title`:void 0,children:t}),i&&n(s,{level:"body",variant:"muted",children:l?"\u25B6":"\u25BC"})]}),o&&n(s,{level:"small",variant:"muted",testID:e?`${e}-subtitle`:void 0,children:o})]}),a&&!l&&n(c,{testID:e?`${e}-actions`:void 0,children:a})]}),V&&n(P,{testID:e?`${e}-separator`:void 0})]});return n(c,{style:O(b,$),testID:e,children:d(r,{gap:12,children:[(t||o||a)&&(i?n(M,{onPress:_,activeOpacity:.7,testID:e?`${e}-toggle`:void 0,children:g}):g),!l&&n(c,{testID:e?`${e}-content`:void 0,children:y})]})})};var L=z;export{L as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Select/index.tsx"],"names":[],"mappings":"AACA;;;;;;;;GAQG;AAGH,OAAO,EASL,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;AAStB;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;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AC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC;AA2ED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,QAAA,MAAM,MAAM,GAAI,2KAgBb,WAAW,4CA2bb,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as n,jsxs as v}from"react/jsx-runtime";import{useState as W,useRef as z,useCallback as S,useMemo as C}from"react";import{Animated as u,Dimensions as de,FlatList as ue,Modal as pe,Pressable as Q,TextInput as fe,TouchableOpacity as U,View as w}from"react-native";import{useTheme as ge}from"../../theme";import p from"../Text";function X(o){return o.length>0&&o[0]!=null&&"options"in o[0]}function ye(o){if(o.length===0)return[];if(X(o)){const i=[];for(const a of o){i.push({type:"group",label:a.label});for(const d of a.options)i.push({type:"option",option:d})}return i}return o.map(i=>({type:"option",option:i}))}function he(o){return o.length===0?[]:X(o)?o.flatMap(i=>i.options):o}function be(o,i){if(!i)return o;const a=i.toLowerCase(),d=[];let f=null,g=!1;for(const b of o)b.type==="group"?(f=b,g=!1):(b.option.label.toLowerCase().includes(a)||(b.option.description?.toLowerCase().includes(a)??!1))&&(f&&!g&&(d.push(f),g=!0),d.push(b));return d}const me=({value:o,onValueChange:i,placeholder:a="Select an option...",options:d=[],disabled:f=!1,label:g,required:b,style:A,testID:l,searchable:R=!1,searchPlaceholder:Z="Search...",multiple:y=!1,maxHeight:F=300,emptyMessage:ee="No results found",onOpenChange:T})=>{const{theme:e}=ge(),[H,O]=W(!1),[B,V]=W(""),[h,oe]=W({x:0,y:0,width:0,height:0}),x=z(new u.Value(0)).current,m=z(new u.Value(-8)).current,j=z(null),I=z(null),c=C(()=>o?Array.isArray(o)?o:[o]:[],[o]),L=C(()=>he(d),[d]),N=C(()=>ye(d),[d]),P=C(()=>be(N,B),[N,B]),k=C(()=>{if(c.length===0)return a;if(!y)return L.find(s=>s.value===c[0])?.label??a;const t=c.map(r=>L.find(s=>s.value===r)?.label).filter(Boolean);return t.length===0?a:t.length<=2?t.join(", "):`${t[0]}, ${t[1]} +${t.length-2}`},[c,L,a,y]),te=c.length>0&&k!==a,M=de.get("window").height,E=M-(h.y+h.height),D=E<F+20&&h.y>E,re=S(()=>{j.current&&j.current.measureInWindow((t,r,s,ce)=>{oe({x:t,y:r,width:s,height:ce}),O(!0),T?.(!0),V(""),u.parallel([u.timing(x,{toValue:1,duration:e.duration.fast,useNativeDriver:!0}),u.timing(m,{toValue:0,duration:e.duration.fast,useNativeDriver:!0})]).start(()=>{R&&setTimeout(()=>I.current?.focus(),50)})})},[x,m,e.duration.fast,R,T]),$=S(()=>{u.parallel([u.timing(x,{toValue:0,duration:e.duration.fast,useNativeDriver:!0}),u.timing(m,{toValue:-8,duration:e.duration.fast,useNativeDriver:!0})]).start(()=>{O(!1),T?.(!1),V("")})},[x,m,e.duration.fast,T]),G=S(t=>{if(y){const r=c.includes(t)?c.filter(s=>s!==t):[...c,t];i?.(r)}else i?.(t),$()},[y,c,i,$]),ne={minHeight:e.interactive.touchTarget,paddingHorizontal:e.spacing.md,paddingVertical:10,borderWidth:1,borderColor:e.colors.border,borderRadius:e.radius.interactive||e.radius.md,backgroundColor:e.colors.card,flexDirection:"row",justifyContent:"space-between",alignItems:"center"},ie={position:"absolute",width:h.width,start:h.x,...D?{bottom:M-h.y+4}:{top:h.y+h.height+4},maxHeight:F,backgroundColor:e.colors.popover,borderRadius:e.radius.floating||e.radius.md,borderWidth:1,borderColor:e.colors.border,shadowColor:e.colors.foreground,shadowOffset:{width:0,height:4},shadowOpacity:.15,shadowRadius:12,elevation:8,overflow:"hidden"},se={paddingHorizontal:e.spacing.md,paddingVertical:e.spacing.sm,borderBottomWidth:1,borderBottomColor:e.colors.border,fontSize:e.typography.fontSize.sm,color:e.colors.foreground},q={paddingHorizontal:e.spacing.md,paddingVertical:e.spacing.sm+2,flexDirection:"row",alignItems:"center"},K={paddingHorizontal:e.spacing.md,paddingTop:e.spacing.sm+2,paddingBottom:4},Y=18,_={width:Y,height:Y,borderRadius:4,borderWidth:1.5,borderColor:e.colors.border,alignItems:"center",justifyContent:"center",marginEnd:e.spacing.sm},J={backgroundColor:e.colors.primary,borderColor:e.colors.primary},le=S((t,r)=>t.type==="group"?`group-${r}`:`option-${t.option.value}`,[]),ae=S(({item:t})=>{if(t.type==="group")return n(w,{style:K,children:n(p,{level:"caption",style:{color:e.colors.mutedForeground,fontWeight:e.typography.fontWeight.semibold,textTransform:"uppercase",letterSpacing:.5},children:t.label})});const{option:r}=t,s=c.includes(r.value);return v(U,{style:[q,s&&!y&&{backgroundColor:e.colors.muted},r.disabled&&{opacity:e.opacity.subtle}],onPress:()=>!r.disabled&&G(r.value),disabled:r.disabled,activeOpacity:.6,accessibilityRole:"menuitem",accessibilityState:{selected:s,disabled:r.disabled},testID:l?`${l}-option-${r.value}`:void 0,children:[y&&n(w,{style:[_,s&&J],children:s&&n(p,{level:"caption",style:{color:e.colors.primaryForeground,fontSize:12,lineHeight:14},children:"\u2713"})}),v(w,{style:{flex:1},children:[n(p,{level:"body",style:{color:e.colors.popoverForeground},children:r.label}),r.description&&n(p,{level:"caption",style:{color:e.colors.mutedForeground,marginTop:2},children:r.description})]}),!y&&s&&n(p,{level:"body",style:{color:e.colors.primary,marginStart:e.spacing.sm},children:"\u2713"})]})},[c,y,G,e,l,K,q,_,J]);return v(w,{style:A,testID:l,children:[g&&v(p,{level:"small",style:{marginBottom:4},testID:l?`${l}-label`:void 0,children:[g,b&&n(p,{level:"small",variant:"destructive",children:" *"})]}),n(w,{ref:j,collapsable:!1,children:v(U,{style:[ne,f&&{opacity:e.opacity.muted}],onPress:()=>!f&&re(),disabled:f,activeOpacity:.7,accessibilityRole:"button",accessibilityState:{expanded:H,disabled:f},accessibilityLabel:g?`${g}: ${k}`:k,testID:l?`${l}-trigger`:void 0,children:[n(p,{level:"body",style:{color:te?e.colors.foreground:e.colors.mutedForeground,flex:1},children:k}),n(p,{level:"body",style:{color:e.colors.mutedForeground},children:H?"\u25B2":"\u25BC"})]})}),n(pe,{visible:H,transparent:!0,animationType:"none",onRequestClose:$,statusBarTranslucent:!0,children:n(Q,{style:{flex:1,backgroundColor:"transparent"},onPress:$,accessibilityRole:"none",children:n(u.View,{style:[ie,{opacity:x,transform:[{translateY:D?u.multiply(m,-1):m}]}],accessibilityRole:"menu",testID:l?`${l}-dropdown`:void 0,children:v(Q,{children:[R&&n(fe,{ref:I,style:se,value:B,onChangeText:V,placeholder:Z,placeholderTextColor:e.colors.mutedForeground,autoCorrect:!1,autoCapitalize:"none",returnKeyType:"done",testID:l?`${l}-search`:void 0}),P.length===0?n(w,{style:{paddingHorizontal:e.spacing.md,paddingVertical:e.spacing.md},children:n(p,{level:"body",style:{color:e.colors.mutedForeground},children:ee})}):n(ue,{data:P,keyExtractor:le,renderItem:ae,style:{maxHeight:F-(R?44:0)},keyboardShouldPersistTaps:"handled",bounces:!1})]})})})})]})};var Te=me;export{Te as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Separator/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;CAGxB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAC9B,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;IACrD;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAiCD;;;;;;;;;GASG;AACH,QAAA,MAAM,SAAS,GAAI,oDAMhB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Separator/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;CAGxB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAC9B,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;IACrD;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAiCD;;;;;;;;;GASG;AACH,QAAA,MAAM,SAAS,GAAI,oDAMhB,cAAc,4CAgChB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as m}from"react/jsx-runtime";import{View as t,StyleSheet as u}from"react-native";import{mergeStyles as
|
|
1
|
+
import{jsx as e,jsxs as m}from"react/jsx-runtime";import{View as t,StyleSheet as u}from"react-native";import{mergeStyles as s}from"../../utils/helpers";import h from"../Text";const c={HORIZONTAL:"horizontal",VERTICAL:"vertical"},r=u.create({horizontal:{height:1,width:"100%",backgroundColor:"#e5e7eb"},vertical:{width:1,height:"100%",backgroundColor:"#e5e7eb"},inlineContainer:{flexDirection:"row",alignItems:"center",width:"100%",gap:12},inlineLine:{flex:1,height:1,backgroundColor:"#e5e7eb"}}),d={default:"#e5e7eb",muted:"#9ca3af",primary:"#3b82f6",accent:"#8b5cf6"},b=({orientation:n=c.HORIZONTAL,variant:f="default",children:i,style:l,testID:a})=>{const o=d[f]||d.default;return i&&n===c.HORIZONTAL?m(t,{style:s(r.inlineContainer,l),testID:a,children:[e(t,{style:[r.inlineLine,{backgroundColor:o}]}),e(h,{level:"small",variant:"muted",children:i}),e(t,{style:[r.inlineLine,{backgroundColor:o}]})]}):e(t,{style:s(r[n],{backgroundColor:o},l),testID:a})};var O=b;export{c as SEPARATOR_ORIENTATION,O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as t,jsxs as d,Fragment as A}from"react/jsx-runtime";import{useState as B}from"react";import{Modal as F,TouchableOpacity as m,View as s,StyleSheet as L}from"react-native";import{SURFACE_VARIANT as b}from"../../utils/constants";import{mergeStyles as O}from"../../utils/helpers";import{useTheme as _}from"../../theme";import g from"../Stack";import y from"../Text";import j from"../Button";const W=b,E={flex:1,backgroundColor:"rgba(0, 0, 0, 0.5)"},k=(i,n,o,a)=>{const r={backgroundColor:n.card,padding:a,shadowColor:n.foreground,shadowOffset:{width:0,height:-2},shadowOpacity:.25,shadowRadius:8,elevation:8};switch(i){case"top":return{...r,position:"absolute",top:0,left:0,right:0,borderBottomLeftRadius:o,borderBottomRightRadius:o};case"bottom":return{...r,position:"absolute",bottom:0,left:0,right:0,borderTopLeftRadius:o,borderTopRightRadius:o};case"left":return{...r,position:"absolute",left:0,top:0,bottom:0,width:"80%",borderTopRightRadius:o,borderBottomRightRadius:o};default:return{...r,position:"absolute",right:0,top:0,bottom:0,width:"80%",borderTopLeftRadius:o,borderBottomLeftRadius:o}}},P=({trigger:i,title:n,description:o,children:a,open:r,onOpenChange:f,side:R="right",showOverlay:S=!0,footer:l,variant:V=b.DEFAULT,closeLabel:T="Close",style:v,testID:e})=>{const{theme:u}=_(),[x,p]=B(!1),c=r!==void 0,$=c?r:x,w=()=>{c||p(!0),f?.(!0)},h=()=>{c||p(!1),f?.(!1)},C=k(R,u.colors,u.radius.surface,u.spacing.lg);return d(A,{children:[i&&t(m,{onPress:w,testID:e?`${e}-trigger`:void 0,children:i}),t(F,{visible:$,transparent:!0,animationType:"slide",onRequestClose:h,testID:e,children:d(s,{style:E,testID:e?`${e}-overlay`:void 0,children:[S&&t(m,{style:L.absoluteFill,activeOpacity:1,onPress:h,testID:e?`${e}-overlay-touch`:void 0}),t(s,{style:O(C,v),testID:e?`${e}-content`:void 0,children:d(g,{gap:16,style:{flex:1},children:[(n||o)&&d(g,{gap:4,testID:e?`${e}-header`:void 0,children:[n&&t(y,{level:"h3",testID:e?`${e}-title`:void 0,children:n}),o&&t(y,{level:"body",variant:"muted",testID:e?`${e}-description`:void 0,children:o})]}),t(s,{style:{flex:1},testID:e?`${e}-body`:void 0,children:a}),l&&t(s,{testID:e?`${e}-footer`:void 0,children:l}),!l&&t(j,{variant:"outline",onPress:h,testID:e?`${e}-close`:void 0,children:T})]})})]})})]})};var X=P;export{W as SHEET_VARIANT,X as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as u}from"react/jsx-runtime";import{View as w,Animated as e}from"react-native";import{useEffect as y,useRef as f}from"react";import{mergeStyles as S}from"../../utils/helpers";const d={text:{height:16,width:"100%"},heading:{height:24,width:"100%"},avatar:{height:40,width:40,borderRadius:20},button:{height:44,width:"100%"},card:{height:128,width:"100%"},image:{height:192,width:"100%"},custom:{width:"100%"}},V={backgroundColor:"#e5e7eb",borderRadius:4},b=({variant:t="pulse",size:h="custom",width:l,height:c,lines:r=1,style:g,testID:o})=>{const i=f(new e.Value(0)).current;y(()=>{(t==="pulse"||t==="shimmer")&&e.loop(e.sequence([e.timing(i,{toValue:1,duration:1e3,useNativeDriver:!0}),e.timing(i,{toValue:0,duration:1e3,useNativeDriver:!0})])).start()},[t,i]);const a=i.interpolate({inputRange:[0,1],outputRange:t==="pulse"?[.5,1]:[.3,.7]}),s=d[h]??d.custom,p={width:l??s.width,height:c??s.height},m=S(V,s,p,g);return r>1&&h==="text"?u(w,{testID:o,children:Array.from({length:r}).map((R,n)=>u(e.View,{style:[m,{opacity:t==="none"?1:a},n<r-1&&{marginBottom:8}],testID:o?`${o}-line-${n}`:void 0},n))}):u(e.View,{style:[m,{opacity:t==="none"?1:a}],testID:o})};var N=b;export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Slider/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAGH,OAAO,EAGL,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAKxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;IACjE;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,U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,YAAY,GAAG,UAAU,CAAC;IACxC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAaD;;;;;;;;;GASG;AACH,QAAA,MAAM,eAAe,GAAI,8JAgBtB,WAAW,4CAwHb,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as c,jsxs as i}from"react/jsx-runtime";import{useState as H,useRef as l,useCallback as M}from"react";import{View as s,PanResponder as I}from"react-native";import{CONTROL_VARIANT as N}from"../../utils/constants";import{useTheme as O}from"../../theme";import U from"../Stack";import W from"../Text";const T={default:"#3b82f6",muted:"#9ca3af",primary:"#3b82f6",secondary:"#6366f1",accent:"#8b5cf6",success:"#10b981",warning:"#f59e0b",destructive:"#ef4444"},z=({value:C,defaultValue:P,min:e=0,max:r=100,step:u=1,onValueChange:f,variant:V=N.DEFAULT,disabled:d=!1,orientation:F="horizontal",minStepsBetweenThumbs:G,inverted:$=!1,showValue:j=!1,children:x,style:p,testID:t})=>{const{theme:E}=O(),h=T[V]||T.default,[L,_]=H(P??e),m=C??L,b=l(0),g=M(n=>{const o=Math.min(r,Math.max(e,n));return Math.round((o-e)/u)*u+e},[e,r,u]),R=M((n,o)=>{const B=Math.max(0,Math.min(1,(n-o)/b.current)),k=g(e+B*(r-e));_(k),f?.(k)},[e,r,g,f]),v=l(null),y=l(0),A=l(I.create({onStartShouldSetPanResponder:()=>!d,onMoveShouldSetPanResponder:()=>!d,onPanResponderGrant:n=>{v.current?.measureInWindow(o=>{y.current=o,R(n.nativeEvent.pageX,o)})},onPanResponderMove:n=>{R(n.nativeEvent.pageX,y.current)}})).current,X=n=>{b.current=n.nativeEvent.layout.width},S=(m-e)/(r-e)*100,w=$?100-S:S,a=20;return i(U,{gap:8,style:d?{...p,opacity:.5}:p,testID:t,children:[i(s,{style:{flexDirection:"row",alignItems:"center",gap:8},children:[i(s,{ref:v,onLayout:X,style:{flex:1,height:a,justifyContent:"center"},...A.panHandlers,testID:t?`${t}-track`:void 0,children:[c(s,{style:{height:4,backgroundColor:E.colors.border,borderRadius:2}}),c(s,{style:{position:"absolute",left:0,height:4,width:`${w}%`,backgroundColor:h,borderRadius:2},testID:t?`${t}-fill`:void 0}),c(s,{style:{position:"absolute",left:`${w}%`,marginLeft:-a/2,width:a,height:a,borderRadius:a/2,backgroundColor:h},testID:t?`${t}-thumb`:void 0})]}),j&&c(W,{level:"body",variant:"muted",testID:t?`${t}-value`:void 0,children:m})]}),x]})};var ee=z;export{ee as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as p}from"react/jsx-runtime";import{View as m,StyleSheet as f}from"react-native";import{mergeStyles as l}from"../../utils/helpers";const y=({children:t,style:o,...e})=>{if(typeof t=="object"&&t!==null&&"props"in t){const r=t.props||{},s=l(r.style,f.flatten(o));return{...t,props:{...r,...e,style:s}}}return p(m,{style:o,...e,children:t})};var a=y;export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{ActivityIndicator as i,View as u}from"react-native";import{THEME_VARIANT as d}from"../../utils/constants";import{mergeStyles as p}from"../../utils/helpers";import{useTheme as f}from"../../theme";const y={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.3)",alignItems:"center",justifyContent:"center",zIndex:9999},g=({overlay:a=!1,variant:m=d.PRIMARY,size:e="small",style:o,testID:s})=>{const{theme:l}=f(),r=l.colors,n={default:r.mutedForeground,muted:r.mutedForeground,primary:r.primary,secondary:r.secondary,accent:r.accent,success:r.success,warning:r.warning,destructive:r.destructive},c=n[m]||n.primary;return a?t(u,{style:p(y,o),testID:s,children:t(i,{size:e,color:c})}):t(i,{size:e,color:c,style:o,testID:s})};var A=g;export{A as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as f}from"react/jsx-runtime";import{View as i}from"react-native";import{mergeStyles as C}from"../../utils/helpers";const p={ROW:"row",COLUMN:"column"},x={START:"flex-start",CENTER:"center",END:"flex-end",STRETCH:"stretch",BASELINE:"baseline"},A={START:"flex-start",CENTER:"center",END:"flex-end",SPACE_BETWEEN:"space-between",SPACE_AROUND:"space-around",SPACE_EVENLY:"space-evenly"},N=({children:s,direction:o=p.COLUMN,align:E=x.STRETCH,justify:S=A.START,gap:T=0,wrap:c,flex:r,centered:n,style:a,overflow:t,testID:l})=>{const e={flexDirection:o,alignItems:n?"center":E,justifyContent:n?"center":S,gap:T};return c&&(e.flexWrap="wrap"),r!==void 0&&(e.flex=r),t&&t!=="auto"&&(e.overflow=t),f(i,{style:C(e,a),testID:l,children:s})};var _=N;export{x as STACK_ALIGN,p as STACK_DIRECTION,A as STACK_JUSTIFY,_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as t,jsxs as o}from"react/jsx-runtime";import{useState as k}from"react";import{View as f}from"react-native";import{THEME_VARIANT as A}from"../../utils/constants";import"../../utils/helpers";import l from"../Stack";import c from"../Text";import g from"../Button";import P from"../Card";const T={width:32,height:32,borderRadius:16,backgroundColor:"#e5e7eb",alignItems:"center",justifyContent:"center"},E={backgroundColor:"#3b82f6"},N=({steps:i,defaultStep:v=0,showStepNumbers:S=!0,showNavigation:b=!1,showStepInfo:y=!1,stepInfoTemplate:u,previousLabel:$="Previous",nextLabel:x="Next",variant:_=A.DEFAULT,onStepChange:m,style:w,testID:e})=>{const[n,s]=k(v),j=()=>{if(n>0){const r=n-1;s(r),m?.(r)}},C=()=>{if(n<i.length-1){const r=n+1;s(r),m?.(r)}},a=i[n];return a?t(f,{style:w,testID:e,children:o(l,{gap:16,children:[t(l,{direction:"row",align:"center",gap:8,testID:e?`${e}-indicators`:void 0,children:i.map((r,h)=>{const d=h===n,p=h<n;return o(f,{style:{flex:1,alignItems:"center"},children:[t(f,{style:[T,d&&E,p&&{backgroundColor:"#10b981"}],testID:e?`${e}-indicator-${r.number}`:void 0,children:S&&t(c,{level:"caption",style:{color:d||p?"#ffffff":"#6b7280"},children:r.number})}),r.title&&t(c,{level:"caption",variant:d?"primary":"muted",style:{marginTop:4},children:r.title})]},r.number)})}),y&&t(c,{level:"small",variant:"muted",testID:e?`${e}-info`:void 0,children:u?u.replace("{current}",String(n+1)).replace("{total}",String(i.length)):`Step ${n+1} of ${i.length}`}),t(P,{testID:e?`${e}-content`:void 0,children:o(l,{gap:8,children:[t(c,{level:"h3",children:a.title}),a.content]})}),b&&o(l,{direction:"row",gap:8,justify:"space-between",testID:e?`${e}-navigation`:void 0,children:[t(g,{variant:"outline",onPress:j,disabled:n===0,testID:e?`${e}-previous`:void 0,children:$}),t(g,{variant:"primary",onPress:C,disabled:n===i.length-1,testID:e?`${e}-next`:void 0,children:x})]})]})}):null};var J=N;export{J as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Switch/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAMxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG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AAC,MAAM,OAAO,eAAe,CAAC,CAAC;IACjE;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;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;AAqBD;;;;;;;;;GASG;AACH,QAAA,MAAM,MAAM,GAAI,0HAYb,WAAW,4CA2Db,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as t,jsxs as g}from"react/jsx-runtime";import{Switch as v}from"react-native";import{CONTROL_VARIANT as w}from"../../utils/constants";import"../../utils/helpers";import{useTheme as m}from"../../theme";import y from"../Stack";import i from"../Text";function C(){const{theme:o}=m(),r=o.colors;return{default:{true:r.primary,false:r.border},primary:{true:r.primary,false:r.border},secondary:{true:r.secondary,false:r.border},accent:{true:r.accent,false:r.border},success:{true:r.success,false:r.border},warning:{true:r.warning,false:r.border},destructive:{true:r.destructive,false:r.border},muted:{true:r.mutedForeground,false:r.border}}}const x=({checked:o=!1,disabled:r=!1,variant:p=w.DEFAULT,onCheckedChange:h,label:s,uncheckedLabel:a,checkedLabel:n,required:S=!1,children:u,style:d,testID:e})=>{const{theme:b}=m(),c=C(),l=c[p]??c.default,f=t(v,{value:o,onValueChange:h,disabled:r,trackColor:{false:l.false,true:l.true},thumbColor:b.colors.background,ios_backgroundColor:l.false,style:d,testID:e});return s||a||n||u?g(y,{direction:"row",align:"center",gap:8,style:d,testID:e?`${e}-container`:void 0,children:[a&&!o&&t(i,{level:"small",variant:"muted",testID:e?`${e}-unchecked-label`:void 0,children:a}),s&&t(i,{level:"body",testID:e?`${e}-label`:void 0,children:s}),f,n&&o&&t(i,{level:"small",variant:"muted",testID:e?`${e}-checked-label`:void 0,children:n}),u]}):f};var F=x;export{F as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as n,jsxs as u}from"react/jsx-runtime";import{useState as c,useMemo as ae}from"react";import{View as h,ScrollView as ie,TouchableOpacity as j}from"react-native";import{mergeStyles as de}from"../../utils/helpers";import{useTheme as B}from"../../theme";import H from"../Stack";import V from"../Text";import L from"../Checkbox";import le from"../Input";import se from"../Pagination";function ce({children:m,style:y,testID:f}){const{theme:l}=B(),C={borderWidth:1,borderColor:l.colors.border,borderRadius:l.radius.surface,overflow:"hidden"};return n(h,{style:de(C,y),testID:f,children:m})}function he({data:m,columns:y,sortable:f=!1,selectable:l=!1,searchable:C=!1,pagination:k=!1,currentPage:M,pageSize:O,total:v,onPageChange:_,onPageSizeChange:fe,loading:ge=!1,onSort:A,onSelect:w,onSearch:x,onRowClick:q,onRowPress:E,showingLabel:F,paginationPreviousLabel:G,paginationNextLabel:J,paginationItemsPerPagePlaceholder:pe,gridLines:N=!1,style:Q,testID:r}){const{theme:a}=B(),W=E||q,U={borderWidth:1,borderColor:a.colors.border,borderRadius:a.radius.surface,overflow:"hidden"},X={flexDirection:"row",backgroundColor:a.colors.muted,borderBottomWidth:1,borderBottomColor:a.colors.border,paddingVertical:a.spacing.md,paddingHorizontal:a.spacing.md},Y={flexDirection:"row",borderBottomWidth:1,borderBottomColor:a.colors.border,paddingVertical:a.spacing.md,paddingHorizontal:a.spacing.md},S={flex:1,paddingHorizontal:a.spacing.sm,...N&&{borderRightWidth:1,borderRightColor:a.colors.border}},[Z,D]=c(1),[K,be]=c(10),[P,I]=c(""),[s,ee]=c(null),[g,re]=c("asc"),[z,R]=c(new Set),T=M??Z,p=O??K,$=ae(()=>{let e=[...m];return P&&x&&x(P),s&&f&&e.sort((t,o)=>{const i=String(t[s]??""),d=String(o[s]??"");return i<d?g==="asc"?-1:1:i>d?g==="asc"?1:-1:0}),e},[m,P,s,g,f,x]),b=k?$.slice((T-1)*p,T*p):$,te=Math.ceil(k&&v?v/p:$.length/p),ne=e=>{if(!f)return;const t=s===e&&g==="asc"?"desc":"asc";ee(e),re(t),A?.(e,t)},oe=e=>{if(!l)return;const t=new Set(z);t.has(e)?t.delete(e):t.add(e),R(t);const o=Array.from(t).map(i=>$[i]).filter(i=>i!==void 0);w?.(o)};return u(H,{gap:16,style:Q,testID:r,children:[C&&n(le,{placeholder:"Search...",value:P,onChangeText:I,testID:r?`${r}-search`:void 0}),u(h,{style:U,testID:r?`${r}-table`:void 0,children:[u(h,{style:X,testID:r?`${r}-header`:void 0,children:[l&&n(h,{style:S,testID:r?`${r}-header-checkbox`:void 0,children:n(L,{checked:z.size===b.length&&b.length>0,onCheckedChange:e=>{if(e){const t=new Set(b.map((o,i)=>i));R(t),w?.(b)}else R(new Set),w?.([])},testID:r?`${r}-select-all`:void 0})}),y.map(e=>n(j,{style:[S,{flex:e.width?0:1}],onPress:()=>e.sortable&&ne(e.key),disabled:!e.sortable,activeOpacity:e.sortable?.7:1,testID:r?`${r}-header-${e.key}`:void 0,children:u(H,{direction:"row",align:"center",gap:4,children:[n(V,{level:"body",variant:"muted",style:{fontWeight:"600"},children:e.title}),e.sortable&&s===e.key&&n(V,{level:"caption",variant:"muted",children:g==="asc"?"\u2191":"\u2193"})]})},e.key))]}),n(ie,{testID:r?`${r}-body`:void 0,children:b.map((e,t)=>u(j,{style:Y,onPress:()=>W?.(e),activeOpacity:W?.7:1,testID:r?`${r}-row-${t}`:void 0,children:[l&&n(h,{style:S,testID:r?`${r}-checkbox-${t}`:void 0,children:n(L,{checked:z.has(t),onCheckedChange:()=>oe(t),testID:r?`${r}-select-${t}`:void 0})}),y.map(o=>{const i=o.dataIndex?e[o.dataIndex]:void 0,d=o.render?o.render(i,e,t):i;return n(h,{style:[S,{flex:o.width?0:1}],testID:r?`${r}-cell-${t}-${o.key}`:void 0,children:typeof d=="string"||typeof d=="number"?n(V,{level:"body",children:d}):d},o.key)})]},t))})]}),k&&n(se,{currentPage:T,totalPages:te,onPageChange:e=>{D(e),_?.(e)},pageSize:p,total:v,showingLabel:F,previousLabel:G,nextLabel:J,testID:r?`${r}-pagination`:void 0})]})}var xe=ce;export{he as DataTable,xe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Tabs/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAGH,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAItD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,wBAAwB;IACxB,OAAO,EAAE,SAAS,CAAC;IACnB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;OAEG;IACH,KAAK,EAAE,OAAO,EAAE,C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AAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;OAEG;IACH,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;IAC7D;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,eAAe,CAAC;IACvD;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B;AAgCD,QAAA,MAAM,IAAI,GAAI,oKAeX,SAAS,4CA8FX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r,jsxs as M}from"react/jsx-runtime";import{useState as R}from"react";import{View as l,TouchableOpacity as W}from"react-native";import{THEME_VARIANT as _}from"../../utils/constants";import{useTheme as z}from"../../theme";import H from"../Text";const L={start:"flex-start",center:"center",end:"flex-end"},O={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},F=({defaultValue:y,value:s,onValueChange:v,items:a,variant:I=_.DEFAULT,gap:d,align:m,justify:h,center:i=!1,orientation:x="horizontal",style:T,listStyle:C,contentStyle:j,testID:t})=>{const{theme:n}=z(),[A,B]=R(()=>y||a[0]?.value||""),c=i?"center":m,f=i?"center":h,o=x==="vertical",S={flexDirection:o?"column":"row",borderBottomWidth:o?0:1,borderBottomColor:o?void 0:n.colors.border,...o&&{borderRightWidth:1,borderRightColor:n.colors.border},...d!==void 0&&{gap:d},...c&&{alignItems:L[c]},...f&&{justifyContent:O[f]},...C},V={paddingHorizontal:n.spacing.md,paddingVertical:n.spacing.md,borderBottomWidth:2,borderBottomColor:"transparent"},$={borderBottomColor:n.colors.primary},w={padding:n.spacing.md,...j},p=s!==void 0,u=p?s:A,E=e=>{p||B(e),v?.(e)},b=a.find(e=>e.value===u);return M(l,{style:T,testID:t,children:[r(l,{style:S,testID:t?`${t}-list`:void 0,children:a.map(e=>{const g=e.value===u;return r(W,{style:[V,g&&$],onPress:()=>!e.disabled&&E(e.value),disabled:e.disabled,activeOpacity:.7,testID:t?`${t}-trigger-${e.value}`:void 0,children:typeof e.label=="string"?r(H,{level:"body",variant:g?"primary":"muted",style:e.disabled?{opacity:.5}:void 0,children:e.label}):e.label},e.value)})}),b&&r(l,{style:w,testID:t?`${t}-content`:void 0,children:b.content})]})};var D=F;export{D as default};
|
package/dist/atomic/Tag/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as t,jsxs as S}from"react/jsx-runtime";import{TouchableOpacity as d,View as x,StyleSheet as r}from"react-native";import{mergeStyles as b}from"../../utils/helpers";import"../Stack";import s from"../Text";const T={DEFAULT:"default",OUTLINE:"outline",ACCENT:"accent"},h={paddingHorizontal:8,paddingVertical:4,borderRadius:12,alignSelf:"flex-start",flexDirection:"row",alignItems:"center",gap:4},z=r.create({default:{backgroundColor:"#f3f4f6"},outline:{backgroundColor:"transparent",borderWidth:1,borderColor:"#d1d5db"},accent:{backgroundColor:"#8b5cf6"}}),A=r.create({sm:{paddingHorizontal:6,paddingVertical:2},md:{paddingHorizontal:8,paddingVertical:4},lg:{paddingHorizontal:12,paddingVertical:6}}),V=r.create({default:{color:"#111827"},outline:{color:"#111827"},accent:{color:"#ffffff"}}),C={opacity:.5},j=({children:f,variant:n=T.DEFAULT,size:p="md",interactive:g=!1,onClick:a,onRemove:l,disabled:o=!1,style:u,testID:e})=>{const m=z[n],y=A[p],i=V[n],c=S(x,{style:b(h,m,y,o&&C,u),testID:e,children:[t(s,{level:"caption",style:i,testID:e?`${e}-text`:void 0,children:f}),l&&t(d,{onPress:l,disabled:o,testID:e?`${e}-remove`:void 0,children:t(s,{level:"caption",style:i,children:"\xD7"})})]});return g&&a?t(d,{onPress:a,disabled:o,activeOpacity:.7,testID:e?`${e}-button`:void 0,children:c}):c};var O=j;export{T as TAG_VARIANT,O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Text/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAA8B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAU1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;CAGf,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;CAQb,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AACrE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC;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AEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAqGD,QAAA,MAAM,IAAI,GAAI,qEASX,SAAS,4CAqBX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as d}from"react/jsx-runtime";import{Text as S}from"react-native";import{THEME_VARIANT as h}from"../../utils/constants";import{mergeStyles as u}from"../../utils/helpers";import{useTheme as z}from"../../theme";import"../../utils/theme-helpers";const H={...h,CODE:"code"},x={H1:"h1",H2:"h2",H3:"h3",H4:"h4",BODY:"body",SMALL:"small",CAPTION:"caption"};function b(o){return{h1:{fontSize:o.typography.fontSize["3xl"],fontWeight:o.typography.fontWeight.bold,lineHeight:o.typography.fontSize["3xl"]*o.typography.lineHeight.base},h2:{fontSize:o.typography.fontSize["2xl"],fontWeight:o.typography.fontWeight.semibold,lineHeight:o.typography.fontSize["2xl"]*o.typography.lineHeight.base},h3:{fontSize:o.typography.fontSize.xl,fontWeight:o.typography.fontWeight.semibold,lineHeight:o.typography.fontSize.xl*o.typography.lineHeight.base},h4:{fontSize:o.typography.fontSize.lg,fontWeight:o.typography.fontWeight.semibold,lineHeight:o.typography.fontSize.lg*o.typography.lineHeight.base},body:{fontSize:o.typography.fontSize.base,lineHeight:o.typography.fontSize.base*o.typography.lineHeight.base},small:{fontSize:o.typography.fontSize.sm,lineHeight:o.typography.fontSize.sm*o.typography.lineHeight.base},caption:{fontSize:o.typography.fontSize.xs,lineHeight:o.typography.fontSize.xs*o.typography.lineHeight.base}}}function T(o){return{default:{color:o.colors.foreground},muted:{color:o.colors.mutedForeground},primary:{color:o.colors.primary},secondary:{color:o.colors.secondary},accent:{color:o.colors.accent},success:{color:o.colors.success},warning:{color:o.colors.warning},destructive:{color:o.colors.destructive},code:{fontFamily:"monospace",backgroundColor:o.colors.muted,paddingHorizontal:o.spacing.sm/2,paddingVertical:o.spacing.sm/4,borderRadius:o.radius.md/3}}}const A={start:"left",center:"center",end:"right"},W={normal:"400",medium:"500",semibold:"600",bold:"700"},E=({level:o=x.BODY,variant:a=H.DEFAULT,align:r,weight:i,italic:l,children:e,style:s,testID:p})=>{const{theme:n}=z(),y=b(n),g=T(n),c=y[o],f=g[a],t={};return r&&(t.textAlign=A[r]),i&&(t.fontWeight=W[i]),l&&(t.fontStyle="italic"),d(S,{style:u(c,f,t,s),testID:p,children:e})};var M=E;export{x as TEXT_LEVEL,H as TEXT_VARIANT,M as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as i,jsxs as c}from"react/jsx-runtime";import{TextInput as m,View as x}from"react-native";import{mergeStyles as d}from"../../utils/helpers";import{useTheme as S}from"../../theme";import n from"../Text";import b from"../Stack";function h(o){return{container:{minHeight:100,paddingHorizontal:o.spacing.md,paddingVertical:o.spacing.sm,borderWidth:1,borderColor:o.colors.border,borderRadius:o.radius.md,backgroundColor:o.colors.input},text:{fontSize:o.typography.fontSize.base,lineHeight:o.typography.fontSize.base*o.typography.lineHeight.base,color:o.colors.foreground,textAlignVertical:"top"},label:{fontSize:o.typography.fontSize.sm,fontWeight:o.typography.fontWeight.medium,color:o.colors.mutedForeground,marginBottom:o.spacing.sm/2},error:{fontSize:o.typography.fontSize.xs,color:o.colors.destructive,marginTop:o.spacing.sm/2},errorContainer:{borderColor:o.colors.destructive},placeholderColor:o.colors.mutedForeground}}const v=({label:o,error:l,containerStyle:p,inputStyle:g,disabled:t=!1,required:u=!1,name:z,style:f,testID:r,...a})=>{const{theme:s}=S(),e=h(s),y=!!l;return c(b,{gap:s.spacing.sm/2,style:p,testID:r,children:[o&&c(n,{level:"small",style:e.label,testID:r?`${r}-label`:void 0,children:[o,u&&i(n,{level:"small",variant:"destructive",children:" *"})]}),i(x,{style:d(e.container,y&&e.errorContainer,t&&{opacity:.5}),testID:r?`${r}-container`:void 0,children:i(m,{style:d(e.text,g,f),placeholder:a.placeholder,placeholderTextColor:e.placeholderColor,multiline:!0,editable:!t,...a,testID:r?`${r}-input`:void 0})}),l&&i(n,{level:"caption",variant:"destructive",style:e.error,testID:r?`${r}-error`:void 0,children:l})]})};var k=v;export{k as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Toaster/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAWH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAE7E;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAaD;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,UAAU,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC;;;CAavD,CAAC;AAQF;;;GAGG;AACH,eAAO,MAAM,QAAQ;;sBAzBW,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Toaster/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAWH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAE7E;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAaD;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,UAAU,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC;;;CAavD,CAAC;AAQF;;;GAGG;AACH,eAAO,MAAM,QAAQ;;sBAzBW,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC;;;;kBAsCrB,MAAM;CAKxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,cAAc;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,4CAElE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,wBAGzB;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,4CAMA,CAAC;AAIF;;;;;;;;GAQG;AACH,iBAAS,OAAO,4CAoFf;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as h,jsx as e,jsxs as p}from"react/jsx-runtime";import{useState as f,useCallback as y,useEffect as b}from"react";import{View as l,TouchableOpacity as x}from"react-native";import{mergeStyles as T}from"../../utils/helpers";import{useTheme as C}from"../../theme";import w from"../Stack";import d from"../Text";import k from"../Button";let v=0,n=[];const u=new Set,m=()=>{u.forEach(o=>o())},S=o=>{const s=`toast-${++v}`,i={...o,id:s};n=[...n,i],m();const r=o.duration||5e3;return setTimeout(()=>{n=n.filter(a=>a.id!==s),m()},r),{id:s,dismiss:()=>g(s)}},g=o=>{n=n.filter(s=>s.id!==o),m()},I=()=>{const[o,s]=f(n);b(()=>{const r=()=>s(n);return u.add(r),r(),()=>{u.delete(r)}},[]);const i=y(r=>{g(r)},[]);return{toasts:o,toast:S,dismiss:i}},R=({children:o})=>e(h,{children:o}),A=({children:o,onPress:s})=>e(k,{variant:"ghost",onPress:s,children:o});function j(){const{theme:o}=C(),{toasts:s,dismiss:i}=I(),r={backgroundColor:o.colors.foreground,borderRadius:o.radius.surface,padding:o.spacing.md,marginBottom:o.spacing.sm,shadowColor:o.colors.foreground,shadowOffset:{width:0,height:2},shadowOpacity:.25,shadowRadius:4,elevation:5,minWidth:300,maxWidth:"90%"},a={default:{backgroundColor:o.colors.foreground},success:{backgroundColor:o.colors.success},error:{backgroundColor:o.colors.destructive},warning:{backgroundColor:o.colors.warning},info:{backgroundColor:o.colors.primary}},c=t=>t==="warning"?o.colors.warningForeground:o.colors.background;return e(l,{style:{position:"absolute",top:50,left:0,right:0,alignItems:"center",zIndex:o.zIndex.toast},pointerEvents:"box-none",children:s.map(t=>p(l,{style:T(r,a[t.type||"default"]),children:[p(w,{gap:o.spacing.sm,children:[t.title&&e(d,{level:"body",style:{color:c(t.type)},children:t.title}),t.description&&e(d,{level:"small",style:{color:c(t.type),opacity:.9},children:t.description}),t.action&&e(l,{children:t.action})]}),e(x,{onPress:()=>i(t.id),style:{position:"absolute",top:o.spacing.sm,right:o.spacing.sm},children:e(d,{level:"body",style:{color:c(t.type)},children:"\xD7"})})]},t.id))})}var D=j;export{A as ToastAction,R as ToastProvider,D as default,S as toast,I as useToast};
|