@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
|
-
{"version":3,"file":"OAuthFallback.d.ts","sourceRoot":"","sources":["../../../../src/features/oauth/components/OAuthFallback.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,iBAAyB,EACzB,KAAK,EACL,MAAM,GACP,EAAE,kBAAkB,GAAG;IAAE,KAAK,CAAC,EAAE,SAAS,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"OAuthFallback.d.ts","sourceRoot":"","sources":["../../../../src/features/oauth/components/OAuthFallback.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,iBAAyB,EACzB,KAAK,EACL,MAAM,GACP,EAAE,kBAAkB,GAAG;IAAE,KAAK,CAAC,EAAE,SAAS,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,2CAgB7D;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{View as
|
|
1
|
+
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{View as a}from"react-native";import{Text as l,Button as s}from"../../../atomic";function c({message:n,showConnectButton:o=!1,style:r,testID:t}){return i(a,{style:r,testID:t,children:[e(l,{level:"body",variant:"muted",children:n||"OAuth is not available"}),o&&e(s,{variant:"outline",testID:t?`${t}-connect`:void 0,children:"Connect Account"})]})}var m=c;export{c as OAuthFallback,m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as g}from"react/jsx-runtime";import{Button as p}from"../../../atomic";import"@donotdev/core";import{useOAuth as o}from"@donotdev/oauth";function h({partnerId:s,providerId:i,purpose:x,showLabel:u=!0,children:e,disabled:a,onSuccess:c,onError:f,style:d,testID:l}){const m=o("connect"),n=o("status")==="initializing",t=s||i;return g(p,{variant:"outline",onPress:async()=>{if(t)try{await m(t),c?.()}catch(r){f?.(r instanceof Error?r:new Error(String(r)))}},disabled:a||n,loading:n,style:d,testID:l,children:(()=>{if(e)return e;if(u)return n?`Connecting to ${t}...`:`Connect ${t}`})()})}var C=h;export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as
|
|
1
|
+
import{default as r}from"./MultipleOAuthProviders";import{default as a}from"./OAuthConnectionModal";import{OAuthFallback as l}from"./OAuthFallback";import{default as d}from"./OAuthPartnerButton";export{r as MultipleOAuthProviders,a as OAuthConnectionModal,l as OAuthFallback,d as OAuthPartnerButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authPersistence.d.ts","sourceRoot":"","sources":["../../src/firebase/authPersistence.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"authPersistence.d.ts","sourceRoot":"","sources":["../../src/firebase/authPersistence.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAUH;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,iCAYjC;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getAuth as
|
|
1
|
+
import{getAuth as e,initializeAuth as r,getReactNativePersistence as i}from"firebase/auth";import o from"@react-native-async-storage/async-storage";import{getApp as p}from"firebase/app";function n(){const t=p();try{return e(t)}catch{return r(t,{persistence:i(o)})}}var m=n;export{m as default,n as initializeExpoAuth};
|
package/dist/firebase/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{initializeExpoAuth as
|
|
1
|
+
import{initializeExpoAuth as t}from"./authPersistence";export{t as initializeExpoAuth};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./atomic";export*from"./utils";export*from"./crud";import{AsyncStorageStrategy as
|
|
1
|
+
export*from"./atomic";export*from"./utils";export*from"./crud";import{AsyncStorageStrategy as x}from"./storage/AsyncStorageStrategy";import{zustandAsyncStorage as m}from"./storage/zustandAsyncStorage";import{ExpoAppProviders as s,getZustandAsyncStorage as g}from"./providers/ExpoAppProviders";export*from"./routing";export*from"./firebase";export*from"./theme";export{x as AsyncStorageStrategy,s as ExpoAppProviders,g as getZustandAsyncStorage,m as zustandAsyncStorage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import{useEffect as l}from"react";import{SafeAreaProvider as
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{useEffect as l}from"react";import{SafeAreaProvider as s}from"react-native-safe-area-context";import{QueryClient as m,QueryClientProvider as f}from"@tanstack/react-query";import{getStorageManager as p,initializePlatformDetection as u}from"@donotdev/core";import{AsyncStorageStrategy as c}from"../storage/AsyncStorageStrategy";import{zustandAsyncStorage as g}from"../storage/zustandAsyncStorage";import{ThemeProvider as d}from"../theme";let o=null;function y(){return o||(o=new m({defaultOptions:{queries:{staleTime:1e3*60*5,gcTime:1e3*60*30}}})),o}function _({children:a,userId:e}){return l(()=>{if(typeof globalThis<"u"){const t=globalThis._DNDEV_CONFIG_;globalThis._DNDEV_CONFIG_={...t,platform:"expo",context:"client",mode:__DEV__?"development":"production",version:t?.version||"0.0.0",timestamp:t?.timestamp||Date.now()}}u();const i=p(),n=new c(e||null);return i.setStrategy(n),e&&i.updateUser(e,!1),()=>{n.setUserId(null)}},[e]),r(s,{children:r(d,{children:r(f,{client:y(),children:a})})})}function E(){return g}var P=_;export{_ as ExpoAppProviders,P as default,E as getZustandAsyncStorage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as i}from"react/jsx-runtime";import{Link as
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{Link as n}from"expo-router";import{TouchableOpacity as a}from"react-native";function u({to:r,children:o,replace:t,...e}){return i(n,{href:r,replace:t,asChild:!0,children:i(a,{...e,children:o})})}function f({to:r}){return null}export{u as Link,f as Navigate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from"@react-native-async-storage/async-storage";import{BaseStorageStrategy as d,handleError as c}from"@donotdev/core";class y extends d{userId=null;constructor(e=null){super(),this.userId=e}setUserId(e){this.userId=e}async get(e,s={}){const{scope:i="user",encryption:t=!1}=s,o=this.buildKey(e,i,this.userId,!0);if(!o)return null;let a;try{a=await n.getItem(o)}catch(u){throw c(u,{userMessage:"Failed to read from storage",context:{key:e,options:s}})}if(!a)return null;let r;try{r=JSON.parse(a)}catch{return await n.removeItem(o).catch(()=>{}),null}if(r.expiresAt&&new Date(r.expiresAt)<new Date)return await this.remove(e),null;const l=r.value;if(t)throw new Error("AsyncStorageStrategy: encryption is not yet supported. Data would be stored in plaintext \u2014 refusing to proceed.");return l}async set(e,s,i={}){const{scope:t="user",encryption:o=!1,expiry:a=0}=i,r=this.buildKey(e,t,this.userId,!0);if(r)try{if(o)throw new Error("AsyncStorageStrategy: encryption is not yet supported. Data would be stored in plaintext \u2014 refusing to proceed.");const l=a>0?new Date(Date.now()+a*1e3).toISOString():null,u=JSON.stringify({value:s,expiresAt:l});await n.setItem(r,u)}catch(l){const u=l instanceof Error&&/quota/i.test(l.message)?"Storage quota exceeded. Please free up space or login to sync to cloud.":"Failed to store data in storage";throw c(l,{userMessage:u,context:{key:e,options:i}})}}async remove(e){const s=["user","global","session"];for(const i of s)try{const t=this.buildKey(e,i,this.userId,!0);if(!t)continue;await n.removeItem(t)}catch{}}async clear(e){if(!e){const a=(await n.getAllKeys()).filter(r=>r.startsWith("dndev:"));await n.multiRemove(a);return}const s=e==="user"&&this.userId?`dndev:user:${this.userId}:`:`dndev:${e}:`,t=(await n.getAllKeys()).filter(o=>o.startsWith(s));await n.multiRemove(t)}}var h=y;export{y as AsyncStorageStrategy,h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from"@react-native-async-storage/async-storage";const a={getItem:async e=>{try{return await t.getItem(e)}catch{return __DEV__,null}},setItem:async(e,r)=>{try{await t.setItem(e,r)}catch(o){throw __DEV__,o}},removeItem:async e=>{try{await t.removeItem(e)}catch{__DEV__}}};var s=a;export{s as default,a as zustandAsyncStorage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/theme/ThemeProvider.tsx"],"names":[],"mappings":"AACA;;;;;;GAMG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/theme/ThemeProvider.tsx"],"names":[],"mappings":"AACA;;;;;;GAMG;AAEH,OAAO,EAAuC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5E,OAAO,EAAyB,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AAE7D,UAAU,iBAAiB;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IACrD,SAAS,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;CACtC;AAID,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IACzC;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,YAAqB,EACrB,YAAmB,GACpB,EAAE,kBAAkB,2CAqBpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,IAAI,iBAAiB,CAM5C;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as d}from"react/jsx-runtime";import{createContext as
|
|
1
|
+
import{jsx as d}from"react/jsx-runtime";import{createContext as a,useContext as T,useState as f}from"react";import{useColorScheme as x}from"react-native";import{lightTheme as l,darkTheme as p}from"./tokens";const r=a(void 0);function S({children:e,initialTheme:n="auto",followSystem:s=!0}){const m=x(),[t,h]=f(n),o=t==="dark"||t==="auto"&&s&&m==="dark",u=o?p:l,c=i=>{h(i)};return d(r.Provider,{value:{theme:u,isDark:o,setTheme:c,themeMode:t},children:e})}function C(){const e=T(r);if(!e)throw new Error("useTheme must be used within ThemeProvider");return e}function j(){const{theme:e}=C();return e.colors}export{S as ThemeProvider,C as useTheme,j as useThemeColors};
|
package/dist/theme/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./tokens";export*from"./ThemeProvider";import{useTheme as
|
|
1
|
+
export*from"./tokens";export*from"./ThemeProvider";import{useTheme as f,useThemeColors as p}from"./ThemeProvider";export{f as useTheme,p as useThemeColors};
|
package/dist/theme/tokens.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o={none:0,sm:8,md:16,lg:32},r={none:0,md:12,full:9999,interactive:0,surface:12,floating:0},f={fontSize:{xs:12,sm:14,base:16,lg:20,xl:25,"2xl":31,"3xl":39},fontWeight:{normal:"400",medium:"500",semibold:"600",bold:"700"},lineHeight:{base:1.25}},e={touchTarget:48,iconMd:24,iconTouch:32},n={header:100,sidebar:90,footer:1,overlay:40,breadcrumbs:10,dropdown:50,modal:1e3,tooltip:1100,toast:1200},t={subtle:.3,muted:.6,strong:.9},d={fast:150,normal:300,slow:500,heavy:700,hero:1e3},c={background:"#ffffff",foreground:"#000000",textColor:"#000000",primary:"#00bcd4",primaryForeground:"#000000",secondary:"#047857",secondaryForeground:"#ffffff",accent:"#ff9800",accentForeground:"#000000",destructive:"#dc2626",destructiveForeground:"#ffffff",success:"#047857",successForeground:"#ffffff",warning:"#f59e0b",warningForeground:"#000000",muted:"#f3f4f6",mutedForeground:"#4b5563",border:"#e5e7eb",input:"#f3f4f6",ring:"#00bcd4",card:"#ffffff",cardForeground:"#000000",popover:"#ffffff",popoverForeground:"#000000"},s={background:"#000000",foreground:"#ffffff",textColor:"#ffffff",primary:"#00bcd4",primaryForeground:"#000000",secondary:"#10b981",secondaryForeground:"#ffffff",accent:"#ff9800",accentForeground:"#ffffff",destructive:"#ef4444",destructiveForeground:"#ffffff",success:"#10b981",successForeground:"#ffffff",warning:"#f59e0b",warningForeground:"#000000",muted:"#1f2937",mutedForeground:"#d1d5db",border:"#374151",input:"#1f2937",ring:"#00bcd4",card:"#111827",cardForeground:"#ffffff",popover:"#111827",popoverForeground:"#ffffff"},a={colors:c,spacing:o,radius:r,typography:f,interactive:e,zIndex:n,opacity:t,duration:d},u={colors:s,spacing:o,radius:r,typography:f,interactive:e,zIndex:n,opacity:t,duration:d},g=a;export{s as colorsDark,c as colorsLight,u as darkTheme,g as defaultTheme,d as duration,e as interactive,a as lightTheme,t as opacity,r as radius,o as spacing,f as typography,n as zIndex};
|
package/dist/utils/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const A={DEFAULT:"default",MUTED:"muted",PRIMARY:"primary",SECONDARY:"secondary",ACCENT:"accent",SUCCESS:"success",WARNING:"warning",DESTRUCTIVE:"destructive"},
|
|
1
|
+
const A={DEFAULT:"default",MUTED:"muted",PRIMARY:"primary",SECONDARY:"secondary",ACCENT:"accent",SUCCESS:"success",WARNING:"warning",DESTRUCTIVE:"destructive"},t={...A,OUTLINE:"outline",GLASS:"glass"},T=t,e=A;export{e as CONTROL_VARIANT,T as FLOATING_VARIANT,t as SURFACE_VARIANT,A as THEME_VARIANT};
|
package/dist/utils/helpers.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function n(...t){return Object.assign({},...t.filter(Boolean))}function a(t){const e={};return t.variant!=null&&(e["data-variant"]=t.variant),t.size!=null&&(e["data-size"]=t.size),e}export{a as getVariantDataAttrs,n as mergeStyles};
|
package/dist/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./helpers";export*from"./constants";export*from"./variants";import{useAuthSafe as
|
|
1
|
+
export*from"./helpers";export*from"./constants";export*from"./variants";import{useAuthSafe as m,isAuthAvailable as p}from"./useAuthSafe";export{p as isAuthAvailable,m as useAuthSafe};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function c(r,
|
|
1
|
+
function c(r,o){const e={default:"foreground",primary:"primary",secondary:"secondary",accent:"accent",success:"success",warning:"warning",destructive:"destructive",muted:"muted"};return r.colors[e[o]||"foreground"]}function u(r,o){const e={default:"foreground",primary:"primaryForeground",secondary:"secondaryForeground",accent:"accentForeground",success:"successForeground",warning:"warningForeground",destructive:"destructiveForeground",muted:"mutedForeground"};return r.colors[e[o]||"foreground"]}function s(r){const o=r.colors.background;if(o.startsWith("#")){const e=parseInt(o.slice(1,3),16),n=parseInt(o.slice(3,5),16),t=parseInt(o.slice(5,7),16);return`rgba(${e}, ${n}, ${t}, 0.5)`}return o}function a(r){return r.colors.foreground}function d(r){return r.opacity.subtle}export{s as getOverlayBackground,a as getShadowColor,d as getShadowOpacity,c as getVariantColor,u as getVariantForegroundColor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DEGRADED_AUTH_API as
|
|
1
|
+
import{DEGRADED_AUTH_API as o}from"@donotdev/core";import*as e from"@donotdev/auth";const t=e?.useAuth;function r(u){return o[u]}const s=t??r,n=typeof t=="function";export{n as isAuthAvailable,s as useAuthSafe};
|
package/dist/utils/variants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react-native";import"./constants";function
|
|
1
|
+
import"react-native";import"./constants";function u(o){const{colors:r,radius:n}=o;return{default:{backgroundColor:r.muted},primary:{backgroundColor:r.primary},secondary:{backgroundColor:r.secondary},accent:{backgroundColor:r.accent},success:{backgroundColor:r.success},warning:{backgroundColor:r.warning},destructive:{backgroundColor:r.destructive},muted:{backgroundColor:r.muted},ghost:{backgroundColor:"transparent"},outline:{backgroundColor:"transparent",borderWidth:1,borderColor:r.border},link:{backgroundColor:"transparent"}}}function d(o){const{colors:r}=o;return{default:{color:r.foreground},primary:{color:r.primaryForeground},secondary:{color:r.secondaryForeground},accent:{color:r.accentForeground},success:{color:r.successForeground},warning:{color:r.warningForeground},destructive:{color:r.destructiveForeground},muted:{color:r.mutedForeground},ghost:{color:r.foreground},outline:{color:r.foreground},link:{color:r.primary,textDecorationLine:"underline"}}}function s(o){const{colors:r,radius:n}=o;return{default:{backgroundColor:r.card},primary:{backgroundColor:r.primary+"1A"},secondary:{backgroundColor:r.secondary+"1A"},accent:{backgroundColor:r.accent+"1A"},success:{backgroundColor:r.success+"1A"},warning:{backgroundColor:r.warning+"1A"},destructive:{backgroundColor:r.destructive+"1A"},muted:{backgroundColor:r.muted},outline:{backgroundColor:"transparent",borderWidth:1,borderColor:r.border},glass:{backgroundColor:r.card+"CC"}}}export{d as getButtonTextVariants,u as getButtonVariants,s as getSurfaceVariants};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@donotdev/expo",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "React Native/Expo UI components for DoNotDev framework",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"test:coverage": "jest --coverage"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@donotdev/core": "^0.0.
|
|
55
|
-
"@donotdev/crud": "^0.0.
|
|
54
|
+
"@donotdev/core": "^0.0.26",
|
|
55
|
+
"@donotdev/crud": "^0.0.17",
|
|
56
56
|
"@expo/vector-icons": "^15.0.0",
|
|
57
57
|
"@hookform/resolvers": "^5.2.2",
|
|
58
58
|
"@react-native-async-storage/async-storage": "^2.1.0",
|