@rebinsarbaz/ui 0.0.0-stage → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/DESIGN.md +26 -0
  2. package/INTEGRATION.md +102 -0
  3. package/README.md +173 -2
  4. package/dist/components/composites.d.ts +91 -0
  5. package/dist/components/composites.d.ts.map +1 -0
  6. package/dist/components/composites.js +83 -0
  7. package/dist/components/composites.js.map +1 -0
  8. package/dist/components/index.d.ts +4 -0
  9. package/dist/components/index.d.ts.map +1 -0
  10. package/dist/components/index.js +20 -0
  11. package/dist/components/index.js.map +1 -0
  12. package/dist/components/layout.d.ts +28 -0
  13. package/dist/components/layout.d.ts.map +1 -0
  14. package/dist/components/layout.js +42 -0
  15. package/dist/components/layout.js.map +1 -0
  16. package/dist/components/primitives.d.ts +100 -0
  17. package/dist/components/primitives.d.ts.map +1 -0
  18. package/dist/components/primitives.js +86 -0
  19. package/dist/components/primitives.js.map +1 -0
  20. package/dist/effects.d.ts +14 -0
  21. package/dist/effects.d.ts.map +1 -0
  22. package/dist/effects.js +21 -0
  23. package/dist/effects.js.map +1 -0
  24. package/dist/hooks/index.d.ts +7 -0
  25. package/dist/hooks/index.d.ts.map +1 -0
  26. package/dist/hooks/index.js +14 -0
  27. package/dist/hooks/index.js.map +1 -0
  28. package/dist/index.d.ts +7 -0
  29. package/dist/index.d.ts.map +1 -0
  30. package/dist/index.js +23 -0
  31. package/dist/index.js.map +1 -0
  32. package/dist/providers/DesignSystemProvider.d.ts +32 -0
  33. package/dist/providers/DesignSystemProvider.d.ts.map +1 -0
  34. package/dist/providers/DesignSystemProvider.js +29 -0
  35. package/dist/providers/DesignSystemProvider.js.map +1 -0
  36. package/dist/themes/index.d.ts +32 -0
  37. package/dist/themes/index.d.ts.map +1 -0
  38. package/dist/themes/index.js +25 -0
  39. package/dist/themes/index.js.map +1 -0
  40. package/dist/tokens/index.d.ts +149 -0
  41. package/dist/tokens/index.d.ts.map +1 -0
  42. package/dist/tokens/index.js +28 -0
  43. package/dist/tokens/index.js.map +1 -0
  44. package/dist/utils/index.d.ts +4 -0
  45. package/dist/utils/index.d.ts.map +1 -0
  46. package/dist/utils/index.js +9 -0
  47. package/dist/utils/index.js.map +1 -0
  48. package/package.json +105 -4
package/DESIGN.md ADDED
@@ -0,0 +1,26 @@
1
+ # Approved visual contract
2
+
3
+ Rebin UI (`@rebinsarbaz/ui`) version 1.0.1 packages the independently implemented design system whose playground UI was approved. The core files `components/primitives.tsx`, `components/composites.tsx`, `tokens/index.ts`, `themes/index.ts`, `providers/DesignSystemProvider.tsx`, `hooks/index.ts`, and `utils/index.ts` matched the approved playground copy byte for byte before packaging. The only core-file edit was removal of an unused import; no rendered component styles or behavior changed.
4
+
5
+ ## Preserved design language
6
+
7
+ Default themes retain their exact semantic colors; tokens retain typography, spacing, radius, shadow, gradient, opacity, icon, motion, image, component dimension, and layout values. Existing component markup and style expressions were not redesigned. The package's `Stack`, `Row`, `Spacer`, `Reveal`, `SurfacePress`, `GradientPanel`, and `GlassPanel` use the approved playground implementations, split into core and optional effects entry points without changing their rendered styles.
8
+
9
+ ## Customization boundary
10
+
11
+ Customize through `DesignSystemProvider` with complete light/dark `Theme` objects. Brand colors are semantic theme values. Font families and type scales live in `tokens.typography`. Gradient colors live in `tokens.gradient`. Direction and locale are provider props. Glass is opt-in through `Card variant="glass"` and optional `GlassPanel`; the consuming app supplies Expo blur when using the effects entry. Haptic feedback is injected, never hardwired.
12
+
13
+ ## Source and license
14
+
15
+ Vesta was audited as visual inspiration. Its checkout and public repository showed no declared source license at the audit date, so no source or brand asset was copied. This package contains original implementation only. The package is marked `UNLICENSED` pending the owner's publishing decision.
16
+
17
+ ## Visual regression reference
18
+
19
+ The adjacent `playground/` directory is the approved reference and remains untouched. A separate Expo smoke app installs the packed tarball and renders the same demo screens for comparison. Keep future visual changes explicit, reviewed, and separately versioned.
20
+
21
+
22
+
23
+ ## Package installation comparison
24
+
25
+ The packed tarball was installed into the separate `package-smoke-app/` Expo application. The shop and gallery views were compared side by side with the approved playground in dark mode and in light RTL mode; product imagery, type, color, spacing, shadows, gradient, glass, and tab treatment appeared visually equivalent. This is a web visual comparison, not an automated pixel diff or native-device signoff.
26
+
package/INTEGRATION.md ADDED
@@ -0,0 +1,102 @@
1
+ # Integrating @rebinsarbaz/ui into an Expo application
2
+
3
+ Add Rebin UI to an existing app without replacing its navigation, stores, data, or Expo configuration.
4
+
5
+ ## 1. Check the host versions
6
+
7
+ ```sh
8
+ npx expo install --check
9
+ npm ls react react-native expo nativewind
10
+ ```
11
+
12
+ The declared peer ranges are in [README.md](./README.md#compatibility). The package was tested in an Expo 58.1.1, React 19.3.0, React Native 0.88.1, and NativeWind 4.2.x host. Keep versions selected for the host Expo SDK; use one React and React Native runtime.
13
+
14
+ ## 2. Install from npm
15
+
16
+ ```sh
17
+ npm install @rebinsarbaz/ui
18
+ npm ls @rebinsarbaz/ui react react-native
19
+ ```
20
+
21
+ For optional visual effects, install native modules matched to the host SDK:
22
+
23
+ ```sh
24
+ npx expo install expo-linear-gradient expo-blur
25
+ ```
26
+
27
+ Then import `GradientPanel` and `GlassPanel` from `@rebinsarbaz/ui/effects`. The core entry does not load these modules. For optional host haptics, install and wire your preferred haptics implementation through `enhancements.haptics`.
28
+
29
+ ## 3. Keep existing NativeWind setup
30
+
31
+ Core components use React Native theme styles and forward `className` where supported. If NativeWind 4 is already configured, keep the app's Babel, Metro, CSS, and Tailwind setup. The core styles do not need new Tailwind content paths. Add NativeWind only when the host uses utility classes.
32
+
33
+ ## 4. Wrap the app
34
+
35
+ ```tsx
36
+ import { DesignSystemProvider, ToastProvider } from '@rebinsarbaz/ui';
37
+
38
+ export default function Root() {
39
+ return (
40
+ <ExistingProviders>
41
+ <DesignSystemProvider mode="system" locale="en" direction="ltr">
42
+ <ToastProvider>
43
+ <ExistingRouter />
44
+ </ToastProvider>
45
+ </DesignSystemProvider>
46
+ </ExistingProviders>
47
+ );
48
+ }
49
+ ```
50
+
51
+ Use `ToastProvider` only when using `useToast`. Keep the host's existing providers and router.
52
+
53
+ ## 5. Customize themes and direction
54
+
55
+ ```tsx
56
+ import { darkTheme, lightTheme, DesignSystemProvider } from '@rebinsarbaz/ui';
57
+
58
+ const myLight = {
59
+ ...lightTheme,
60
+ colors: { ...lightTheme.colors, primary: '#166C68' },
61
+ tokens: {
62
+ ...lightTheme.tokens,
63
+ gradient: { ...lightTheme.tokens.gradient, hero: ['#166C68', '#68A9A3', '#D9DDD1'] },
64
+ },
65
+ };
66
+ const myDark = { ...darkTheme, colors: { ...darkTheme.colors, primary: '#8DDED0' } };
67
+
68
+ <DesignSystemProvider themes={{ light: myLight, dark: myDark }} mode={mode}
69
+ onModeChange={setMode} locale={locale} direction={direction}>
70
+ <ExistingRouter />
71
+ </DesignSystemProvider>
72
+ ```
73
+
74
+ The host loads custom fonts, persists controlled mode, and supplies translated copy. Set `direction` explicitly for LTR or RTL; the provider does not change global `I18nManager`.
75
+
76
+ ## 6. Use component props
77
+
78
+ ```tsx
79
+ import { Button, ProductCard, ScreenContainer, useToast } from '@rebinsarbaz/ui';
80
+ import { GradientPanel } from '@rebinsarbaz/ui/effects';
81
+
82
+ function Catalog({ product, openProduct }) {
83
+ const toast = useToast();
84
+ return (
85
+ <ScreenContainer scroll>
86
+ <GradientPanel><Button label="Explore" onPress={() => toast.show('Hello')} /></GradientPanel>
87
+ <ProductCard title={product.title} price={product.formattedPrice}
88
+ imageUri={product.imageUrl} onPress={() => openProduct(product.id)} />
89
+ </ScreenContainer>
90
+ );
91
+ }
92
+ ```
93
+
94
+ Map existing app data into component props. The package has no API, auth, cart, wishlist, or route dependencies.
95
+
96
+ ## 7. Verify and roll back
97
+
98
+ Run the host's TypeScript, lint, tests, and Expo bundle checks. Compare light/dark and RTL/LTR screens in a separate Expo app against the approved visual reference. If reverting, remove the provider and imports, then run `npm uninstall @rebinsarbaz/ui`.
99
+
100
+ ## Publishing
101
+
102
+ The package is configured for public npm access and remains `UNLICENSED`. Publication requires owner authorization and confirmation of redistribution rights. The release command is `npm publish --access public`; this guide does not authorize running it.
package/README.md CHANGED
@@ -1,3 +1,174 @@
1
- # Temporary Holding Version
1
+ # Rebin UI
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **Build beautiful native experiences.**
4
+
5
+ [![npm version](https://img.shields.io/npm/v/%40rebinsarbaz%2Fui)](https://www.npmjs.com/package/@rebinsarbaz/ui)
6
+ [![npm license](https://img.shields.io/npm/l/%40rebinsarbaz%2Fui)](https://www.npmjs.com/package/@rebinsarbaz/ui)
7
+
8
+ Rebin UI is a typed React Native component library with light and dark themes, design tokens, explicit layout direction, and optional Expo visual effects. The core entry uses React Native styles and does not load Expo effects.
9
+
10
+ ## Features
11
+
12
+ - 24 core components for controls, product layouts, feedback, and states.
13
+ - Layout primitives, entrance animation, and press feedback.
14
+ - Customizable semantic colors and design tokens through `DesignSystemProvider`.
15
+ - Explicit LTR and RTL layout support. The host app supplies translated copy.
16
+ - Optional gradient and blur panels from a separate effects entry.
17
+
18
+ ## Installation
19
+
20
+ ```sh
21
+ npm install @rebinsarbaz/ui
22
+ ```
23
+
24
+ React and React Native are peer dependencies; use versions compatible with the host. For optional effects in Expo, install SDK matched modules:
25
+
26
+ ```sh
27
+ npx expo install expo-linear-gradient expo-blur
28
+ ```
29
+
30
+ NativeWind is an optional peer for apps using utility classes. Core theme styles work without it. See [INTEGRATION.md](./INTEGRATION.md) for host setup.
31
+
32
+ ## Quick start
33
+
34
+ ```tsx
35
+ import { AppText, Button, DesignSystemProvider, ScreenContainer, Stack } from '@rebinsarbaz/ui';
36
+
37
+ export default function App() {
38
+ return (
39
+ <DesignSystemProvider mode="system" direction="ltr" locale="en">
40
+ <ScreenContainer safeTop={24}>
41
+ <Stack>
42
+ <AppText variant="title" weight="bold">Welcome</AppText>
43
+ <Button label="Continue" onPress={() => {}} />
44
+ </Stack>
45
+ </ScreenContainer>
46
+ </DesignSystemProvider>
47
+ );
48
+ }
49
+ ```
50
+
51
+ Wrap components in `DesignSystemProvider`. Its `mode` can be `light`, `dark`, or `system`; `defaultMode` sets an uncontrolled initial mode, while `mode` and `onModeChange` support controlled state. It also accepts `themes`, `direction`, `locale`, and `enhancements`. `useDesignSystem()` reads the theme, mode controls, direction, locale, and enhancements.
52
+
53
+ ## Components
54
+
55
+ These 24 core components are exported from both `@rebinsarbaz/ui` and `@rebinsarbaz/ui/components`. Components whose prop types extend React Native view, text, input, or pressable props accept those native props.
56
+
57
+ | Component | Purpose and main props |
58
+ | --- | --- |
59
+ | `AppText` | Themed text: `variant` (`caption`, `small`, `body`, `subtitle`, `title`, `display`), `tone`, `weight`. |
60
+ | `Button` | Action: required `label`; `variant` (`primary`, `secondary`, `outline`, `ghost`, `danger`), `size`, `loading`, `leading`, `trailing`, `fullWidth`, `onPress`. |
61
+ | `IconButton` | Icon action: required `icon` and accessible `label`; `size`, `variant`, `loading`, `onPress`. |
62
+ | `Input` | Text field: `label`, `error`, `hint`, `leading`, `trailing`, `size`, plus native text input props. |
63
+ | `SearchInput` | Input with optional clear action: `value`, `onClear`, `clearLabel`, plus `Input` props. |
64
+ | `Card` | Surface: `variant` (`solid`, `muted`, `outline`, `glass`), `padded`, `elevation`. |
65
+ | `ProductImage` | Product image: required `alt`; `source` or `uri`, `aspectRatio`, `style`. |
66
+ | `Badge` | Short label: required `label`; `tone` (`primary`, `success`, `danger`, `neutral`), `size`. |
67
+ | `Avatar` | Image or initials: required `name`; `source` or `uri`, `size`. |
68
+ | `Divider` | Separator with optional `inset`. |
69
+ | `ScreenContainer` | Screen wrapper: `scroll`, `safeTop`, `safeBottom`, plus view props. Insets are supplied by the host. |
70
+ | `SectionHeader` | Section title: required `title`; `subtitle`, `actionLabel`, `onAction`. |
71
+ | `ListItem` | Pressable row: required `title`; `subtitle`, `leading`, `trailing`, `onPress`. |
72
+ | `ProductCard` | Product tile: required `title` and formatted `price`; image, category, badge, rating, favorite callbacks, `layout` (`grid` or `list`), `onPress`. |
73
+ | `CategoryCard` | Category tile: required `title`; `image` or `imageUri`, `count`, `onPress`. |
74
+ | `Header` | Page heading: required `title`; `subtitle`, `leading`, `trailing`. |
75
+ | `TabBar` | Tab strip: required `items` (`key`, `label`, optional `icon` and `badge`), `activeKey`, `onChange`. |
76
+ | `Skeleton` | Placeholder: `width`, `height`, `radius`, `animated`. |
77
+ | `Modal` | Centered dialog: required `visible`, `onClose`, `children`; `title`, `closeLabel`. |
78
+ | `BottomSheet` | Bottom sheet: `Modal` props plus `snapHeight`. |
79
+ | `Toast` | Inline notification: required `message`; `tone` (`info`, `success`, `error`). |
80
+ | `EmptyState` | Empty content view: required `title`; `description`, `icon`, `actionLabel`, `onAction`. |
81
+ | `LoadingState` | Activity indicator with optional `label`. |
82
+ | `ErrorState` | Error view with the same props as `EmptyState`. |
83
+
84
+ `leading`, `trailing`, and `icon` props accept React nodes. Pass host data and localized strings through props.
85
+
86
+ ### Layout and interaction
87
+
88
+ | Export | Main props |
89
+ | --- | --- |
90
+ | `Stack` | Vertical view layout with token named `gap` and `align`. |
91
+ | `Row` | Direction aware horizontal layout with token named `gap`, `reverse`, `justify`, and `wrap`. |
92
+ | `Spacer` | Vertical space using token named `size`. |
93
+ | `Reveal` | Fade and rise entrance animation with `children` and optional `delay` in milliseconds. |
94
+ | `SurfacePress` | Pressable with theme opacity feedback; accepts `children` and native pressable props. |
95
+
96
+ ### Toast context
97
+
98
+ ```tsx
99
+ import { DesignSystemProvider, ToastProvider, Button, useToast } from '@rebinsarbaz/ui';
100
+
101
+ function SaveButton() {
102
+ const toast = useToast();
103
+ return <Button label="Save" onPress={() => toast.show('Saved', 'success')} />;
104
+ }
105
+
106
+ export function Example() {
107
+ return <DesignSystemProvider><ToastProvider><SaveButton /></ToastProvider></DesignSystemProvider>;
108
+ }
109
+ ```
110
+
111
+ `useToast()` exposes `show(message, tone?)`; the provider displays one toast for three seconds. `ToastProvider` must sit inside `DesignSystemProvider`. A host supplied `enhancements.haptics` callback runs for success or error toasts.
112
+
113
+ ## Theme customization and design tokens
114
+
115
+ `lightTheme`, `darkTheme`, and `foundations` are public exports. A `Theme` has `colors` (semantic colors such as `primary`, `surface`, `text`, and `border`) and `tokens`. Token groups are `brand`, `typography`, `spacing`, `radius`, `shadow`, `gradient`, `opacity`, `icon`, `motion`, `image`, `component`, and `layout`. Supply complete theme objects for overridden modes.
116
+
117
+ ```tsx
118
+ import { DesignSystemProvider, lightTheme, darkTheme } from '@rebinsarbaz/ui';
119
+
120
+ const brandLight = {
121
+ ...lightTheme,
122
+ colors: { ...lightTheme.colors, primary: '#166C68' },
123
+ tokens: {
124
+ ...lightTheme.tokens,
125
+ typography: {
126
+ ...lightTheme.tokens.typography,
127
+ family: { ...lightTheme.tokens.typography.family, regular: 'MyFont' },
128
+ },
129
+ },
130
+ };
131
+ const brandDark = { ...darkTheme, colors: { ...darkTheme.colors, primary: '#8DDED0' } };
132
+
133
+ <DesignSystemProvider themes={{ light: brandLight, dark: brandDark }}>
134
+ {/* Your app */}
135
+ </DesignSystemProvider>
136
+ ```
137
+
138
+ Load custom font files in the host. The provider does not persist mode choice. For a custom hero gradient, override `tokens.gradient.hero` or pass `colors` to `GradientPanel`.
139
+
140
+ ## RTL and localization
141
+
142
+ Set `direction="ltr"` or `direction="rtl"` for explicit layout direction. If omitted, the provider defaults to LTR for `locale="en"` and RTL for `locale="ar"` or `locale="ku"`. Direction aware components use this value; the provider does not change global `I18nManager`. Supply translated labels and content from the host. The public `directional(direction, ltr, rtl)` and `formatNumber(value, locale)` utilities can help with formatting.
143
+
144
+ ## Optional effects
145
+
146
+ Import Expo effects only from `@rebinsarbaz/ui/effects` after installing `expo-linear-gradient` and `expo-blur` for your Expo SDK.
147
+
148
+ ```tsx
149
+ import { GradientPanel, GlassPanel } from '@rebinsarbaz/ui/effects';
150
+
151
+ <GradientPanel variant="hero">{/* content */}</GradientPanel>
152
+ <GlassPanel intensity={18}>{/* content */}</GlassPanel>
153
+ ```
154
+
155
+ `GradientPanel` accepts `variant="hero" | "soft"`, an optional `colors` array of at least two colors, and view props. `GlassPanel` accepts `intensity` and view props. Both use the active theme. The core import does not load Expo modules.
156
+
157
+ ## Compatibility
158
+
159
+ | Dependency | Supported peer range | Tested host version |
160
+ | --- | --- | --- |
161
+ | React | `>=19 <20` | `19.3.0` |
162
+ | React Native | `>=0.81 <0.90` | `0.88.1` |
163
+ | Expo (optional for core) | `>=54 <59` | `58.1.1` |
164
+ | NativeWind (optional) | `>=4 <5` | `4.2.x` |
165
+ | expo-linear-gradient (optional effects peer) | `>=14` | `58.0.4` |
166
+ | expo-blur (optional effects peer) | `>=14` | `58.0.6` |
167
+
168
+ The peer ranges describe declared compatibility, not a test matrix. The listed versions were used in an Expo host. Use Expo SDK matched native modules. The package ships CommonJS JavaScript and TypeScript declarations through its export map: root, `/components`, `/tokens`, `/themes`, `/hooks`, `/providers`, `/utils`, and `/effects`.
169
+
170
+ ## Limitations and license
171
+
172
+ Rebin UI does not include navigation, app data, auth, translation catalogs, font files, theme persistence, or global direction changes. Product imagery and copy come from the host app. Native device visual verification remains an integration step.
173
+
174
+ The package is marked `UNLICENSED`. Public npm visibility does not grant permission to copy, modify, or redistribute its source. License terms require a separate decision by the owner.
@@ -0,0 +1,91 @@
1
+ import React from 'react';
2
+ import { ImageSourcePropType, ViewProps } from 'react-native';
3
+ export type ProductCardProps = {
4
+ title: string;
5
+ price: string;
6
+ image?: ImageSourcePropType;
7
+ imageUri?: string;
8
+ imageAlt?: string;
9
+ category?: string;
10
+ badge?: string;
11
+ rating?: string;
12
+ onPress?: () => void;
13
+ onFavorite?: () => void;
14
+ favorite?: boolean;
15
+ favoriteLabel?: string;
16
+ layout?: 'grid' | 'list';
17
+ };
18
+ export declare function ProductCard({ title, price, image, imageUri, imageAlt, category, badge, rating, onPress, onFavorite, favorite, favoriteLabel, layout }: ProductCardProps): React.JSX.Element;
19
+ export type CategoryCardProps = {
20
+ title: string;
21
+ image?: ImageSourcePropType;
22
+ imageUri?: string;
23
+ onPress?: () => void;
24
+ count?: string;
25
+ };
26
+ export declare function CategoryCard({ title, image, imageUri, count, onPress }: CategoryCardProps): React.JSX.Element;
27
+ export type HeaderProps = {
28
+ title: string;
29
+ subtitle?: string;
30
+ leading?: React.ReactNode;
31
+ trailing?: React.ReactNode;
32
+ };
33
+ export declare function Header({ title, subtitle, leading, trailing }: HeaderProps): React.JSX.Element;
34
+ export type TabItem = {
35
+ key: string;
36
+ label: string;
37
+ icon?: React.ReactNode;
38
+ badge?: string;
39
+ };
40
+ export type TabBarProps = {
41
+ items: TabItem[];
42
+ activeKey: string;
43
+ onChange: (key: string) => void;
44
+ };
45
+ export declare function TabBar({ items, activeKey, onChange }: TabBarProps): React.JSX.Element;
46
+ export type SkeletonProps = ViewProps & {
47
+ width?: number | string;
48
+ height?: number;
49
+ radius?: number;
50
+ animated?: boolean;
51
+ };
52
+ export declare function Skeleton({ width, height, radius, animated, style, ...props }: SkeletonProps): React.JSX.Element;
53
+ export type ModalProps = {
54
+ visible: boolean;
55
+ onClose: () => void;
56
+ title?: string;
57
+ children: React.ReactNode;
58
+ closeLabel?: string;
59
+ };
60
+ export declare function Modal({ visible, onClose, title, children, closeLabel }: ModalProps): React.JSX.Element;
61
+ export type BottomSheetProps = ModalProps & {
62
+ snapHeight?: number;
63
+ };
64
+ export declare function BottomSheet({ visible, onClose, title, children, closeLabel, snapHeight }: BottomSheetProps): React.JSX.Element;
65
+ type ToastTone = 'info' | 'success' | 'error';
66
+ export type ToastProps = {
67
+ message: string;
68
+ tone?: ToastTone;
69
+ };
70
+ export declare function Toast({ message, tone }: ToastProps): React.JSX.Element;
71
+ type ToastValue = {
72
+ show: (message: string, tone?: ToastTone) => void;
73
+ };
74
+ export declare function ToastProvider({ children }: {
75
+ children: React.ReactNode;
76
+ }): React.JSX.Element;
77
+ export declare function useToast(): ToastValue;
78
+ export type StateProps = {
79
+ title: string;
80
+ description?: string;
81
+ actionLabel?: string;
82
+ onAction?: () => void;
83
+ icon?: React.ReactNode;
84
+ };
85
+ export declare const EmptyState: (props: StateProps) => React.JSX.Element;
86
+ export declare const ErrorState: (props: StateProps) => React.JSX.Element;
87
+ export declare function LoadingState({ label }: {
88
+ label?: string;
89
+ }): React.JSX.Element;
90
+ export {};
91
+ //# sourceMappingURL=composites.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composites.d.ts","sourceRoot":"","sources":["../../components/composites.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiE,MAAM,OAAO,CAAC;AACtF,OAAO,EAA+B,mBAAmB,EAAqD,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9I,MAAM,MAAM,gBAAgB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAC5S,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAiC,EAAE,MAAe,EAAE,EAAE,gBAAgB,qBAYpM;AACD,MAAM,MAAM,iBAAiB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,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AE,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IAAC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAAC;AAKtI,eAAO,MAAM,UAAU,GAAI,OAAO,UAAU,sBAA6B,CAAC;AAC1E,eAAO,MAAM,UAAU,GAAI,OAAO,UAAU,sBAA6B,CAAC;AAC1E,wBAAgB,YAAY,CAAC,EAAE,KAAiB,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,qBAAoU"}
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ErrorState = exports.EmptyState = void 0;
4
+ exports.ProductCard = ProductCard;
5
+ exports.CategoryCard = CategoryCard;
6
+ exports.Header = Header;
7
+ exports.TabBar = TabBar;
8
+ exports.Skeleton = Skeleton;
9
+ exports.Modal = Modal;
10
+ exports.BottomSheet = BottomSheet;
11
+ exports.Toast = Toast;
12
+ exports.ToastProvider = ToastProvider;
13
+ exports.useToast = useToast;
14
+ exports.LoadingState = LoadingState;
15
+ const jsx_runtime_1 = require("react/jsx-runtime");
16
+ const react_1 = require("react");
17
+ const react_native_1 = require("react-native");
18
+ const DesignSystemProvider_1 = require("../providers/DesignSystemProvider");
19
+ const primitives_1 = require("./primitives");
20
+ function ProductCard({ title, price, image, imageUri, imageAlt, category, badge, rating, onPress, onFavorite, favorite, favoriteLabel = 'Toggle favorite', layout = 'grid' }) {
21
+ const { theme, direction } = (0, DesignSystemProvider_1.useDesignSystem)();
22
+ const t = theme.tokens;
23
+ const isList = layout === 'list';
24
+ return (0, jsx_runtime_1.jsxs)(primitives_1.Card, { padded: false, style: { overflow: 'hidden', flexDirection: isList ? (direction === 'rtl' ? 'row-reverse' : 'row') : 'column' }, children: [(0, jsx_runtime_1.jsx)(react_native_1.Pressable, { onPress: onPress, accessibilityRole: "button", accessibilityLabel: title, style: { width: isList ? t.component.listImage : '100%' }, children: (0, jsx_runtime_1.jsx)(primitives_1.ProductImage, { source: image, uri: imageUri, alt: imageAlt ?? title, aspectRatio: isList ? 1 : t.image.aspectRatio, style: isList ? { borderRadius: t.radius.lg } : {} }) }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: { flex: 1, gap: t.spacing.xs, padding: t.spacing.md }, children: [category ? (0, jsx_runtime_1.jsx)(primitives_1.AppText, { variant: "caption", tone: "muted", weight: "bold", children: category }) : null, (0, jsx_runtime_1.jsx)(primitives_1.AppText, { weight: "bold", numberOfLines: 2, children: title }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: { flexDirection: direction === 'rtl' ? 'row-reverse' : 'row', alignItems: 'center', justifyContent: 'space-between' }, children: [(0, jsx_runtime_1.jsx)(primitives_1.AppText, { tone: "primary", weight: "heavy", children: price }), rating ? (0, jsx_runtime_1.jsxs)(primitives_1.AppText, { variant: "small", tone: "muted", children: ["\u2605 ", rating] }) : null] }), badge ? (0, jsx_runtime_1.jsx)(primitives_1.Badge, { label: badge }) : null] }), onFavorite ? (0, jsx_runtime_1.jsx)(react_native_1.Pressable, { onPress: onFavorite, accessibilityRole: "button", accessibilityLabel: favoriteLabel, accessibilityState: { selected: !!favorite }, style: { position: 'absolute', top: t.spacing.sm, right: direction === 'rtl' ? undefined : t.spacing.sm, left: direction === 'rtl' ? t.spacing.sm : undefined, width: t.layout.minTouch, height: t.layout.minTouch, alignItems: 'center', justifyContent: 'center', backgroundColor: theme.colors.surface, borderRadius: t.radius.pill }, children: (0, jsx_runtime_1.jsx)(primitives_1.AppText, { tone: favorite ? 'danger' : 'muted', children: "\u2665" }) }) : null] });
25
+ }
26
+ function CategoryCard({ title, image, imageUri, count, onPress }) {
27
+ const { theme } = (0, DesignSystemProvider_1.useDesignSystem)();
28
+ const t = theme.tokens;
29
+ return (0, jsx_runtime_1.jsx)(react_native_1.Pressable, { accessibilityRole: "button", accessibilityLabel: title, onPress: onPress, style: { width: t.component.categoryWidth }, children: (0, jsx_runtime_1.jsxs)(primitives_1.Card, { padded: false, style: { overflow: 'hidden' }, children: [(0, jsx_runtime_1.jsx)(primitives_1.ProductImage, { source: image, uri: imageUri, alt: title }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: { padding: t.spacing.md }, children: [(0, jsx_runtime_1.jsx)(primitives_1.AppText, { weight: "bold", numberOfLines: 1, children: title }), count ? (0, jsx_runtime_1.jsx)(primitives_1.AppText, { variant: "caption", tone: "muted", children: count }) : null] })] }) });
30
+ }
31
+ function Header({ title, subtitle, leading, trailing }) {
32
+ const { theme, direction } = (0, DesignSystemProvider_1.useDesignSystem)();
33
+ const t = theme.tokens;
34
+ return (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: { minHeight: t.component.headerHeight, flexDirection: direction === 'rtl' ? 'row-reverse' : 'row', alignItems: 'center', gap: t.spacing.md, paddingVertical: t.spacing.sm }, children: [(0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: leading }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: { flex: 1 }, children: [(0, jsx_runtime_1.jsx)(primitives_1.AppText, { variant: "title", weight: "heavy", children: title }), subtitle ? (0, jsx_runtime_1.jsx)(primitives_1.AppText, { variant: "small", tone: "muted", children: subtitle }) : null] }), (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: trailing })] });
35
+ }
36
+ function TabBar({ items, activeKey, onChange }) {
37
+ const { theme, direction } = (0, DesignSystemProvider_1.useDesignSystem)();
38
+ const { colors: c, tokens: t } = theme;
39
+ return (0, jsx_runtime_1.jsx)(react_native_1.View, { accessibilityRole: "tablist", style: { flexDirection: direction === 'rtl' ? 'row-reverse' : 'row', backgroundColor: c.surface, borderTopColor: c.border, borderTopWidth: 1, padding: t.spacing.sm, borderTopLeftRadius: t.radius.xl, borderTopRightRadius: t.radius.xl, ...t.shadow.sm }, children: items.map(item => (0, jsx_runtime_1.jsxs)(react_native_1.Pressable, { accessibilityRole: "tab", accessibilityState: { selected: activeKey === item.key }, onPress: () => onChange(item.key), style: { flex: 1, minHeight: t.layout.minTouch, alignItems: 'center', justifyContent: 'center', gap: t.spacing.xxs }, children: [item.icon, (0, jsx_runtime_1.jsx)(primitives_1.AppText, { variant: "caption", tone: activeKey === item.key ? 'primary' : 'muted', weight: "bold", children: item.label }), item.badge ? (0, jsx_runtime_1.jsx)(primitives_1.Badge, { label: item.badge, size: "sm" }) : null] }, item.key)) });
40
+ }
41
+ function Skeleton({ width = '100%', height = 16, radius, animated = true, style, ...props }) {
42
+ const { theme } = (0, DesignSystemProvider_1.useDesignSystem)();
43
+ const opacity = (0, react_1.useRef)(new react_native_1.Animated.Value(0.45)).current;
44
+ (0, react_1.useEffect)(() => { if (!animated)
45
+ return; const loop = react_native_1.Animated.loop(react_native_1.Animated.sequence([react_native_1.Animated.timing(opacity, { toValue: 0.85, duration: theme.tokens.motion.slow, useNativeDriver: true }), react_native_1.Animated.timing(opacity, { toValue: 0.45, duration: theme.tokens.motion.slow, useNativeDriver: true })])); loop.start(); return () => loop.stop(); }, [animated, opacity, theme.tokens.motion.slow]);
46
+ return (0, jsx_runtime_1.jsx)(react_native_1.Animated.View, { ...props, accessibilityLabel: "Loading", style: [{ width: width, height, borderRadius: radius ?? theme.tokens.radius.sm, backgroundColor: theme.colors.skeleton, opacity: animated ? opacity : 1 }, style] });
47
+ }
48
+ function Modal({ visible, onClose, title, children, closeLabel = 'Close' }) {
49
+ const { theme } = (0, DesignSystemProvider_1.useDesignSystem)();
50
+ const t = theme.tokens;
51
+ return (0, jsx_runtime_1.jsx)(react_native_1.Modal, { visible: visible, transparent: true, animationType: "fade", onRequestClose: onClose, statusBarTranslucent: true, children: (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: { flex: 1, justifyContent: 'center', padding: t.layout.gutter, backgroundColor: theme.colors.overlay + '88' }, children: [(0, jsx_runtime_1.jsx)(react_native_1.Pressable, { style: { position: 'absolute', top: 0, bottom: 0, left: 0, right: 0 }, onPress: onClose, accessibilityLabel: closeLabel }), (0, jsx_runtime_1.jsxs)(primitives_1.Card, { elevation: "md", style: { maxWidth: t.layout.maxWidth, width: '100%', alignSelf: 'center', gap: t.spacing.lg }, children: [title ? (0, jsx_runtime_1.jsx)(primitives_1.AppText, { variant: "title", weight: "bold", children: title }) : null, children, (0, jsx_runtime_1.jsx)(primitives_1.Button, { label: closeLabel, variant: "ghost", onPress: onClose })] })] }) });
52
+ }
53
+ function BottomSheet({ visible, onClose, title, children, closeLabel = 'Close', snapHeight }) {
54
+ const { theme } = (0, DesignSystemProvider_1.useDesignSystem)();
55
+ const t = theme.tokens;
56
+ return (0, jsx_runtime_1.jsx)(react_native_1.Modal, { visible: visible, transparent: true, animationType: "slide", onRequestClose: onClose, statusBarTranslucent: true, children: (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: { flex: 1, justifyContent: 'flex-end', backgroundColor: theme.colors.overlay + '88' }, children: [(0, jsx_runtime_1.jsx)(react_native_1.Pressable, { onPress: onClose, style: { flex: 1 }, accessibilityLabel: closeLabel }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: { backgroundColor: theme.colors.surface, borderTopLeftRadius: t.radius.card, borderTopRightRadius: t.radius.card, padding: t.spacing.xxl, minHeight: snapHeight, maxHeight: '85%' }, children: [(0, jsx_runtime_1.jsx)(react_native_1.View, { style: { width: t.component.sheetHandleWidth, height: t.component.sheetHandleHeight, backgroundColor: theme.colors.border, borderRadius: t.radius.pill, alignSelf: 'center', marginBottom: t.spacing.lg } }), title ? (0, jsx_runtime_1.jsx)(primitives_1.AppText, { variant: "title", weight: "bold", children: title }) : null, (0, jsx_runtime_1.jsx)(react_native_1.ScrollView, { children: children }), (0, jsx_runtime_1.jsx)(primitives_1.Button, { label: closeLabel, variant: "ghost", onPress: onClose })] })] }) });
57
+ }
58
+ function Toast({ message, tone = 'info' }) { const { theme } = (0, DesignSystemProvider_1.useDesignSystem)(); return (0, jsx_runtime_1.jsx)(react_native_1.View, { accessibilityLiveRegion: "polite", style: { padding: theme.tokens.spacing.lg, borderRadius: theme.tokens.radius.md, backgroundColor: tone === 'error' ? theme.colors.danger : tone === 'success' ? theme.colors.success : theme.colors.info, ...theme.tokens.shadow.md }, children: (0, jsx_runtime_1.jsx)(primitives_1.AppText, { style: { color: '#FFFFFF' }, weight: "semibold", children: message }) }); }
59
+ const ToastContext = (0, react_1.createContext)(null);
60
+ function ToastProvider({ children }) {
61
+ const { theme, enhancements } = (0, DesignSystemProvider_1.useDesignSystem)();
62
+ const [toast, setToast] = (0, react_1.useState)(null);
63
+ const timer = (0, react_1.useRef)(null);
64
+ (0, react_1.useEffect)(() => () => { if (timer.current)
65
+ clearTimeout(timer.current); }, []);
66
+ const show = (message, tone = 'info') => { setToast({ message, tone }); if (tone !== 'info')
67
+ enhancements.haptics?.(tone); if (timer.current)
68
+ clearTimeout(timer.current); timer.current = setTimeout(() => setToast(null), 3000); };
69
+ return (0, jsx_runtime_1.jsxs)(ToastContext.Provider, { value: { show }, children: [children, toast ? (0, jsx_runtime_1.jsx)(react_native_1.View, { style: { position: 'absolute', bottom: theme.tokens.spacing.xxxl, left: theme.tokens.spacing.lg, right: theme.tokens.spacing.lg }, children: (0, jsx_runtime_1.jsx)(Toast, { message: toast.message, tone: toast.tone }) }) : null] });
70
+ }
71
+ function useToast() { const value = (0, react_1.useContext)(ToastContext); if (!value)
72
+ throw new Error('Wrap components in ToastProvider'); return value; }
73
+ function StateView({ title, description, actionLabel, onAction, icon }) {
74
+ const { theme } = (0, DesignSystemProvider_1.useDesignSystem)();
75
+ const t = theme.tokens;
76
+ return (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: { padding: t.spacing.xxxl, minHeight: t.component.stateHeight, alignItems: 'center', justifyContent: 'center', gap: t.spacing.sm }, children: [icon, (0, jsx_runtime_1.jsx)(primitives_1.AppText, { variant: "subtitle", weight: "bold", style: { textAlign: 'center' }, children: title }), description ? (0, jsx_runtime_1.jsx)(primitives_1.AppText, { tone: "muted", style: { textAlign: 'center' }, children: description }) : null, actionLabel ? (0, jsx_runtime_1.jsx)(primitives_1.Button, { label: actionLabel, onPress: onAction }) : null] });
77
+ }
78
+ const EmptyState = (props) => (0, jsx_runtime_1.jsx)(StateView, { ...props });
79
+ exports.EmptyState = EmptyState;
80
+ const ErrorState = (props) => (0, jsx_runtime_1.jsx)(StateView, { ...props });
81
+ exports.ErrorState = ErrorState;
82
+ function LoadingState({ label = 'Loading' }) { const { theme } = (0, DesignSystemProvider_1.useDesignSystem)(); return (0, jsx_runtime_1.jsxs)(react_native_1.View, { accessibilityLiveRegion: "polite", style: { alignItems: 'center', justifyContent: 'center', minHeight: theme.tokens.component.loadingHeight, gap: theme.tokens.spacing.md }, children: [(0, jsx_runtime_1.jsx)(react_native_1.ActivityIndicator, { color: theme.colors.primary }), (0, jsx_runtime_1.jsx)(primitives_1.AppText, { tone: "muted", children: label })] }); }
83
+ //# sourceMappingURL=composites.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composites.js","sourceRoot":"","sources":["../../components/composites.tsx"],"names":[],"mappings":";;;AAMA,kCAYC;AAED,oCAGC;AAED,wBAGC;AAGD,wBAGC;AAED,4BAIC;AAED,sBAGC;AAED,kCAGC;AAGD,sBAA+c;AAG/c,sCAMC;AACD,4BAAqJ;AAQrJ,oCAA0Y;;AAvE1Y,iCAAsF;AACtF,+CAA8I;AAC9I,4EAAoE;AACpE,6CAA0E;AAG1E,SAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,GAAG,iBAAiB,EAAE,MAAM,GAAG,MAAM,EAAoB;IACnM,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAA,sCAAe,GAAE,CAAC;IAAC,MA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AC,CAAC,IAAI,IAAQ,CAAC;AAC/a,CAAC;AACM,MAAM,UAAU,GAAG,CAAC,KAAiB,EAAE,EAAE,CAAC,uBAAC,SAAS,OAAK,KAAK,GAAI,CAAC;AAA7D,QAAA,UAAU,cAAmD;AACnE,MAAM,UAAU,GAAG,CAAC,KAAiB,EAAE,EAAE,CAAC,uBAAC,SAAS,OAAK,KAAK,GAAI,CAAC;AAA7D,QAAA,UAAU,cAAmD;AAC1E,SAAgB,YAAY,CAAC,EAAE,KAAK,GAAG,SAAS,EAAsB,IAAI,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,sCAAe,GAAE,CAAC,CAAC,OAAO,wBAAC,mBAAI,IAAC,uBAAuB,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,aAAa,EAAE,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,aAAE,uBAAC,gCAAiB,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,GAAI,EAAA,uBAAC,oBAAO,IAAC,IAAI,EAAC,OAAO,YAAE,KAAK,GAAW,IAAO,CAAC,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './primitives';
2
+ export * from './composites';
3
+ export * from './layout';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./primitives"), exports);
18
+ __exportStar(require("./composites"), exports);
19
+ __exportStar(require("./layout"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,2CAAyB"}
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { PressableProps, ViewProps, ViewStyle } from 'react-native';
3
+ import { useDesignSystem } from '../providers/DesignSystemProvider';
4
+ export type StackProps = ViewProps & {
5
+ gap?: keyof ReturnType<typeof useDesignSystem>['theme']['tokens']['spacing'];
6
+ align?: ViewStyle['alignItems'];
7
+ className?: string;
8
+ };
9
+ export declare function Stack({ gap, align, style, ...props }: StackProps): React.JSX.Element;
10
+ export type RowProps = StackProps & {
11
+ reverse?: boolean;
12
+ justify?: ViewStyle['justifyContent'];
13
+ wrap?: boolean;
14
+ };
15
+ export declare function Row({ gap, reverse, justify, wrap, style, ...props }: RowProps): React.JSX.Element;
16
+ export declare function Spacer({ size }: {
17
+ size?: keyof ReturnType<typeof useDesignSystem>['theme']['tokens']['spacing'];
18
+ }): React.JSX.Element;
19
+ export declare function Reveal({ children, delay }: {
20
+ children: React.ReactNode;
21
+ delay?: number;
22
+ }): React.JSX.Element;
23
+ export type SurfacePressProps = PressableProps & {
24
+ children: React.ReactNode;
25
+ className?: string;
26
+ };
27
+ export declare function SurfacePress({ children, style, ...props }: SurfacePressProps): React.JSX.Element;
28
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../components/layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAuB,cAAc,EAAQ,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/F,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC3K,wBAAgB,KAAK,CAAC,EAAE,GAAU,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,qBAGvE;AACD,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AACjH,wBAAgB,GAAG,CAAC,EAAE,GAAU,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,QAAQ,qBAGpF;AACD,wBAAgB,MAAM,CAAC,EAAE,IAAW,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAA;CAAE,qBAExH;AACD,wBAAgB,MAAM,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