@rebinsarbaz/ui 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/DESIGN.md +25 -0
  2. package/INTEGRATION.md +106 -0
  3. package/README.md +62 -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 +103 -4
package/DESIGN.md ADDED
@@ -0,0 +1,25 @@
1
+ # Approved visual contract
2
+
3
+ Version 1.0.0 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.
package/INTEGRATION.md ADDED
@@ -0,0 +1,106 @@
1
+ # Integrating @rebin/ui into an existing Expo application
2
+
3
+ These steps add the design system without replacing the app's navigation, stores, business data, or working Expo configuration.
4
+
5
+ ## 1. Check the host versions
6
+
7
+ From the existing app root, run:
8
+
9
+ npx expo install --check
10
+ npm ls react react-native expo nativewind
11
+
12
+ The package was validated with Expo 58.1.1, React 19.3.0, React Native 0.88.1, and NativeWind 4.2.x. Keep the versions chosen by the host Expo SDK. Do not install a second React or React Native copy. If the host uses a different Expo/NativeWind generation, first validate in a branch or separate Expo app.
13
+
14
+ ## 2. Install the tarball
15
+
16
+ Copy the `rebin-ui-1.0.0.tgz` file to a location accessible to the app, then run from the app root:
17
+
18
+ npm install /absolute/path/to/rebin-ui-1.0.0.tgz
19
+ npm ls @rebin/ui react react-native
20
+
21
+ On Windows PowerShell, quote the path:
22
+
23
+ npm install "C:\Users\Tech Line\.codex\visualizations\2026\12\05\01a247fc-18fe-7682-bfe3-4bff418f03b5\design-system\rebin-ui-1.0.0.tgz"
24
+
25
+ For effects, install SDK-matched native modules:
26
+
27
+ npx expo install expo-linear-gradient expo-blur
28
+
29
+ For optional host haptics:
30
+
31
+ npx expo install expo-haptics
32
+
33
+ Import `GradientPanel` and `GlassPanel` from `@rebin/ui/effects` only after installing their modules. The core `@rebin/ui` import does not load them.
34
+
35
+ ## 3. Keep existing NativeWind setup
36
+
37
+ Core components use semantic React Native styles and forward `className` where supported. If NativeWind 4 is already configured, retain the app's Babel, Metro, CSS, and Tailwind setup. Add the package's source path to Tailwind's `content` only if you use utility classes in package wrappers; compiled core styles need no new Tailwind classes. If NativeWind is not configured, the core still renders with its theme styles; add NativeWind according to the host Expo SDK only when class utilities are needed. Do not copy the playground config over the app.
38
+
39
+ ## 4. Wrap the existing app root
40
+
41
+ Keep the current router, navigation provider, query provider, and stores. Add `DesignSystemProvider` around existing screen content, and `ToastProvider` inside it when using toasts:
42
+
43
+ import { DesignSystemProvider, ToastProvider } from '@rebin/ui';
44
+
45
+ export default function Root() {
46
+ return (
47
+ <ExistingProviders>
48
+ <DesignSystemProvider mode="system" locale="en" direction="ltr">
49
+ <ToastProvider>
50
+ <ExistingRouter />
51
+ </ToastProvider>
52
+ </DesignSystemProvider>
53
+ </ExistingProviders>
54
+ );
55
+ }
56
+
57
+ Do not nest a second React or React Native runtime. The package has peer dependencies for both.
58
+
59
+ ## 5. Customize without editing components
60
+
61
+ import { darkTheme, lightTheme } from '@rebin/ui';
62
+
63
+ const myLight = {
64
+ ...lightTheme,
65
+ colors: { ...lightTheme.colors, primary: '#166C68', accent: '#E3B88D' },
66
+ tokens: {
67
+ ...lightTheme.tokens,
68
+ typography: {
69
+ ...lightTheme.tokens.typography,
70
+ family: { regular: 'MyFont', medium: 'MyFont-Medium', bold: 'MyFont-Bold' }
71
+ },
72
+ gradient: { ...lightTheme.tokens.gradient, hero: ['#166C68', '#68A9A3', '#D9DDD1'] }
73
+ }
74
+ };
75
+ const myDark = { ...darkTheme, colors: { ...darkTheme.colors, primary: '#8DDED0' } };
76
+
77
+ <DesignSystemProvider themes={{ light: myLight, dark: myDark }} mode={mode} onModeChange={setMode} locale={locale} direction={direction} enhancements={{ glass: true }}>
78
+
79
+ The host loads font files with `expo-font` or its existing font workflow. Persist controlled `mode` with the host's chosen storage. Set `direction` to `rtl` or `ltr`; supply translated copy separately. The provider does not call global `I18nManager` or restart the app.
80
+
81
+ ## 6. Use typed props and callbacks
82
+
83
+ import { Button, ProductCard, ScreenContainer, useToast } from '@rebin/ui';
84
+ import { GradientPanel } from '@rebin/ui/effects';
85
+
86
+ function Catalog({ product, openProduct }) {
87
+ const toast = useToast();
88
+ return (
89
+ <ScreenContainer scroll>
90
+ <GradientPanel><Button label="Explore" onPress={() => toast.show('Hello')} /></GradientPanel>
91
+ <ProductCard title={product.title} price={product.formattedPrice}
92
+ imageUri={product.imageUrl} onPress={() => openProduct(product.id)} />
93
+ </ScreenContainer>
94
+ );
95
+ }
96
+
97
+ The package has no API, auth, cart, wishlist, or route dependencies. Map existing app data into component props.
98
+
99
+ ## 7. Verify and roll back
100
+
101
+ Run the host's TypeScript, lint, test, and Expo bundle checks. Compare light/dark and RTL/LTR screens on iOS and Android. If reverting, remove the provider and imports, then `npm uninstall @rebin/ui`; the original app configuration was not replaced by these steps.
102
+
103
+ ## Private npm publishing later
104
+
105
+ The package is prepared with the `@rebin/ui` scope and restricted publish setting. After choosing a license, confirming registry access, and authorizing publication, run `npm publish --access restricted` from the package directory. No publish was performed during preparation.
106
+
package/README.md CHANGED
@@ -1,3 +1,63 @@
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
+ A production-oriented, customizable React Native design system for Expo apps. Version 1.0.0 preserves the approved playground visuals. The original Vesta repository was not modified, and no Vesta code or assets are included.
4
+
5
+ ## Install
6
+
7
+ Use the tarball built in this directory:
8
+
9
+ npm install "C:\Users\Tech Line\.codex\visualizations\2026\12\05\01a247fc-18fe-7682-bfe3-4bff418f03b5\design-system\rebin-ui-1.0.0.tgz"
10
+
11
+ React and React Native are peers and are never shipped in the tarball. Use the host app's Expo-compatible versions. Core components do not require Expo modules. Apps using `@rebin/ui/effects` must install their Expo SDK-matched `expo-linear-gradient` and `expo-blur` packages with `npx expo install expo-linear-gradient expo-blur`. Haptics are supplied as an optional callback by the host.
12
+
13
+ See [INTEGRATION.md](./INTEGRATION.md) for exact integration steps, NativeWind setup, customization, and rollback.
14
+
15
+ ## Public API
16
+
17
+ The root `@rebin/ui` exports the 24 core components, `Stack`, `Row`, `Spacer`, `Reveal`, `SurfacePress`, tokens, themes, hooks, provider, and utilities. `@rebin/ui/effects` exports `GradientPanel` and `GlassPanel`. Subpaths: `/components`, `/tokens`, `/themes`, `/hooks`, `/providers`, `/utils`.
18
+
19
+ The 24 core components are AppText, Button, IconButton, Input, SearchInput, Card, ProductImage, Badge, Avatar, Divider, ScreenContainer, SectionHeader, ListItem, ProductCard, CategoryCard, Header, TabBar, Skeleton, Modal, BottomSheet, Toast, EmptyState, LoadingState, and ErrorState. `ToastProvider` and `useToast` support imperative toast notifications.
20
+
21
+ ## Theme
22
+
23
+ import { DesignSystemProvider, lightTheme, darkTheme, Button } from '@rebin/ui';
24
+
25
+ const customLight = {
26
+ ...lightTheme,
27
+ colors: { ...lightTheme.colors, primary: '#166C68', accent: '#E3B88D' },
28
+ tokens: {
29
+ ...lightTheme.tokens,
30
+ typography: {
31
+ ...lightTheme.tokens.typography,
32
+ family: { regular: 'Inter', medium: 'Inter-Medium', bold: 'Inter-Bold' }
33
+ }
34
+ }
35
+ };
36
+ const customDark = { ...darkTheme, colors: { ...darkTheme.colors, primary: '#8DDED0' } };
37
+
38
+ <DesignSystemProvider themes={{ light: customLight, dark: customDark }} mode="system" direction="ltr" locale="en">
39
+ <Button label="Continue" onPress={next} />
40
+ </DesignSystemProvider>
41
+
42
+ Override `tokens.gradient.hero` to change the default `GradientPanel` palette. The provider also accepts `enhancements.glass`, `enhancements.blur`, `enhancements.renderBlur`, and `enhancements.haptics`. Locale metadata supports `en`, `ar`, and `ku`. Host applications supply translated strings and appropriate fonts.
43
+
44
+ ## Build and release preparation
45
+
46
+ npm ci
47
+ npm run typecheck
48
+ npm run lint
49
+ npm test
50
+ npm run build
51
+ npm pack
52
+
53
+ The package is scoped for optional private npm publishing with `publishConfig.access=restricted`. Publishing is deliberately not run. The current `UNLICENSED` marker avoids implying a public reuse license; select a license and review registry access before publishing.
54
+
55
+ ## Compatibility
56
+
57
+ Validated in an Expo 58.1.1 / React Native 0.88.1 / React 19.3.0 / NativeWind 4.2.x host. Expo and NativeWind are optional peers for the core package; effects need Expo modules installed at the version matched to the consuming SDK. Build output is CommonJS plus TypeScript declarations for Metro and TypeScript consumers. The approved playground remains unchanged beside the source package as the visual reference; it is not shipped in the tarball.
58
+
59
+ ## Limitations
60
+
61
+ The package does not translate strings, change global `I18nManager`, persist theme choice, provide navigation or business data, or load custom font files. Device-level iOS and Android visual comparison must be performed in the consuming app before release.
62
+
63
+
@@ -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,Q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AAE,KAAK,EAAE,QAAQ,EAAE,UAAoB,EAAE,UAAU,EAAE,EAAE,gBAAgB,qBAGpH;AACD,KAAK,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAC9C,MAAM,MAAM,UAAU,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,SAAS,CAAA;CAAE,CAAC;AAC/D,wBAAgB,KAAK,CAAC,EAAE,OAAO,EAAE,IAAa,EAAE,EAAE,UAAU,qBAAmZ;AAC/c,KAAK,UAAU,GAAG;IAAE,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,KAAK,IAAI,CAAA;CAAE,CAAC;AAExE,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBAMxE;AACD,wBAAgB,QAAQ,eAA6H;AACrJ,MAAM,MAAM,UAAU,GAAG;IAAE,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
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AC,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,CAAC,EAAE,QAAQ,EAAE,KAAS,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,qBAU5F;AACD,MAAM,MAAM,iBAAiB,GAAG,cAAc,GAAG;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACnG,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,qBAG5E"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Stack = Stack;
4
+ exports.Row = Row;
5
+ exports.Spacer = Spacer;
6
+ exports.Reveal = Reveal;
7
+ exports.SurfacePress = SurfacePress;
8
+ const jsx_runtime_1 = require("react/jsx-runtime");
9
+ const react_1 = require("react");
10
+ const react_native_1 = require("react-native");
11
+ const DesignSystemProvider_1 = require("../providers/DesignSystemProvider");
12
+ function Stack({ gap = 'lg', align, style, ...props }) {
13
+ const { theme } = (0, DesignSystemProvider_1.useDesignSystem)();
14
+ return (0, jsx_runtime_1.jsx)(react_native_1.View, { ...props, style: [{ gap: theme.tokens.spacing[gap], alignItems: align }, style] });
15
+ }
16
+ function Row({ gap = 'md', reverse, justify, wrap, style, ...props }) {
17
+ const { theme, direction } = (0, DesignSystemProvider_1.useDesignSystem)();
18
+ return (0, jsx_runtime_1.jsx)(react_native_1.View, { ...props, style: [{ flexDirection: (direction === 'rtl') !== !!reverse ? 'row-reverse' : 'row', gap: theme.tokens.spacing[gap], alignItems: 'center', justifyContent: justify, flexWrap: wrap ? 'wrap' : 'nowrap' }, style] });
19
+ }
20
+ function Spacer({ size = 'lg' }) {
21
+ const { theme } = (0, DesignSystemProvider_1.useDesignSystem)();
22
+ return (0, jsx_runtime_1.jsx)(react_native_1.View, { style: { height: theme.tokens.spacing[size] } });
23
+ }
24
+ function Reveal({ children, delay = 0 }) {
25
+ const { theme } = (0, DesignSystemProvider_1.useDesignSystem)();
26
+ const opacity = (0, react_1.useRef)(new react_native_1.Animated.Value(0)).current;
27
+ const offset = (0, react_1.useRef)(new react_native_1.Animated.Value(12)).current;
28
+ (0, react_1.useEffect)(() => {
29
+ const animation = react_native_1.Animated.parallel([
30
+ react_native_1.Animated.timing(opacity, { toValue: 1, duration: theme.tokens.motion.slow, delay, easing: theme.tokens.motion.easing, useNativeDriver: true }),
31
+ react_native_1.Animated.timing(offset, { toValue: 0, duration: theme.tokens.motion.slow, delay, easing: theme.tokens.motion.easing, useNativeDriver: true }),
32
+ ]);
33
+ animation.start();
34
+ return () => animation.stop();
35
+ }, [delay, offset, opacity, theme.tokens.motion]);
36
+ return (0, jsx_runtime_1.jsx)(react_native_1.Animated.View, { style: { opacity, transform: [{ translateY: offset }] }, children: children });
37
+ }
38
+ function SurfacePress({ children, style, ...props }) {
39
+ const { theme } = (0, DesignSystemProvider_1.useDesignSystem)();
40
+ return (0, jsx_runtime_1.jsx)(react_native_1.Pressable, { accessibilityRole: "button", ...props, style: ({ pressed }) => [{ opacity: pressed ? theme.tokens.opacity.pressed : 1 }, typeof style === 'function' ? style({ pressed }) : style], children: children });
41
+ }
42
+ //# sourceMappingURL=layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.js","sourceRoot":"","sources":["../../components/layout.tsx"],"names":[],"mappings":";;AAKA,sBAGC;AAED,kBAGC;AACD,wBAEC;AACD,wBAUC;AAED,oCAGC;;AAhCD,iCAAiD;AACjD,+CAA+F;AAC/F,4EAAoE;AAGpE,SAAgB,KAAK,CAAC,EAAE,GAAG,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,KAAK,EAAc;IACtE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,sCAAe,GAAE,CAAC;IACpC,OAAO,uBAAC,mBAAI,OAAK,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,GAAI,CAAC;AACpG,CAAC;AAED,SAAgB,GAAG,CAAC,EAAE,GAAG,GAAG,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAY;IACnF,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAA,sCAAe,GAAE,CAAC;IAC/C,OAAO,uBAAC,mBAAI,OAAK,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,SAAS,KAAK,KAAK,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,UAAU,EAAE,QAAQ,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