@objectifthunes/limestone-sdk 0.1.5 → 0.1.7
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/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/screens/cart-screen/cart-screen.d.ts +4 -0
- package/dist/components/screens/cart-screen/cart-screen.d.ts.map +1 -0
- package/dist/components/screens/cart-screen/cart-screen.js +16 -0
- package/dist/components/screens/cart-screen/cart-screen.js.map +1 -0
- package/dist/components/screens/cart-screen/index.d.ts +4 -0
- package/dist/components/screens/cart-screen/index.d.ts.map +1 -0
- package/dist/components/screens/cart-screen/index.js +3 -0
- package/dist/components/screens/cart-screen/index.js.map +1 -0
- package/dist/components/screens/cart-screen/types.d.ts +73 -0
- package/dist/components/screens/cart-screen/types.d.ts.map +1 -0
- package/dist/components/screens/cart-screen/types.js +2 -0
- package/dist/components/screens/cart-screen/types.js.map +1 -0
- package/dist/components/screens/cart-screen/use-cart-screen.d.ts +4 -0
- package/dist/components/screens/cart-screen/use-cart-screen.d.ts.map +1 -0
- package/dist/components/screens/cart-screen/use-cart-screen.js +208 -0
- package/dist/components/screens/cart-screen/use-cart-screen.js.map +1 -0
- package/dist/components/screens/dashboard-screen/dashboard-screen.d.ts +4 -0
- package/dist/components/screens/dashboard-screen/dashboard-screen.d.ts.map +1 -0
- package/dist/components/screens/dashboard-screen/dashboard-screen.js +16 -0
- package/dist/components/screens/dashboard-screen/dashboard-screen.js.map +1 -0
- package/dist/components/screens/dashboard-screen/index.d.ts +4 -0
- package/dist/components/screens/dashboard-screen/index.d.ts.map +1 -0
- package/dist/components/screens/dashboard-screen/index.js +3 -0
- package/dist/components/screens/dashboard-screen/index.js.map +1 -0
- package/dist/components/screens/dashboard-screen/types.d.ts +75 -0
- package/dist/components/screens/dashboard-screen/types.d.ts.map +1 -0
- package/dist/components/screens/dashboard-screen/types.js +2 -0
- package/dist/components/screens/dashboard-screen/types.js.map +1 -0
- package/dist/components/screens/dashboard-screen/use-dashboard-screen.d.ts +4 -0
- package/dist/components/screens/dashboard-screen/use-dashboard-screen.d.ts.map +1 -0
- package/dist/components/screens/dashboard-screen/use-dashboard-screen.js +165 -0
- package/dist/components/screens/dashboard-screen/use-dashboard-screen.js.map +1 -0
- package/dist/components/screens/feed-screen/feed-screen.d.ts +4 -0
- package/dist/components/screens/feed-screen/feed-screen.d.ts.map +1 -0
- package/dist/components/screens/feed-screen/feed-screen.js +16 -0
- package/dist/components/screens/feed-screen/feed-screen.js.map +1 -0
- package/dist/components/screens/feed-screen/index.d.ts +4 -0
- package/dist/components/screens/feed-screen/index.d.ts.map +1 -0
- package/dist/components/screens/feed-screen/index.js +3 -0
- package/dist/components/screens/feed-screen/index.js.map +1 -0
- package/dist/components/screens/feed-screen/types.d.ts +40 -0
- package/dist/components/screens/feed-screen/types.d.ts.map +1 -0
- package/dist/components/screens/feed-screen/types.js +2 -0
- package/dist/components/screens/feed-screen/types.js.map +1 -0
- package/dist/components/screens/feed-screen/use-feed-screen.d.ts +4 -0
- package/dist/components/screens/feed-screen/use-feed-screen.d.ts.map +1 -0
- package/dist/components/screens/feed-screen/use-feed-screen.js +62 -0
- package/dist/components/screens/feed-screen/use-feed-screen.js.map +1 -0
- package/dist/components/screens/form-wizard-screen/form-wizard-screen.d.ts +4 -0
- package/dist/components/screens/form-wizard-screen/form-wizard-screen.d.ts.map +1 -0
- package/dist/components/screens/form-wizard-screen/form-wizard-screen.js +16 -0
- package/dist/components/screens/form-wizard-screen/form-wizard-screen.js.map +1 -0
- package/dist/components/screens/form-wizard-screen/index.d.ts +4 -0
- package/dist/components/screens/form-wizard-screen/index.d.ts.map +1 -0
- package/dist/components/screens/form-wizard-screen/index.js +3 -0
- package/dist/components/screens/form-wizard-screen/index.js.map +1 -0
- package/dist/components/screens/form-wizard-screen/types.d.ts +51 -0
- package/dist/components/screens/form-wizard-screen/types.d.ts.map +1 -0
- package/dist/components/screens/form-wizard-screen/types.js +2 -0
- package/dist/components/screens/form-wizard-screen/types.js.map +1 -0
- package/dist/components/screens/form-wizard-screen/use-form-wizard-screen.d.ts +4 -0
- package/dist/components/screens/form-wizard-screen/use-form-wizard-screen.d.ts.map +1 -0
- package/dist/components/screens/form-wizard-screen/use-form-wizard-screen.js +133 -0
- package/dist/components/screens/form-wizard-screen/use-form-wizard-screen.js.map +1 -0
- package/dist/components/screens/history-screen/history-screen.d.ts +4 -0
- package/dist/components/screens/history-screen/history-screen.d.ts.map +1 -0
- package/dist/components/screens/history-screen/history-screen.js +16 -0
- package/dist/components/screens/history-screen/history-screen.js.map +1 -0
- package/dist/components/screens/history-screen/index.d.ts +4 -0
- package/dist/components/screens/history-screen/index.d.ts.map +1 -0
- package/dist/components/screens/history-screen/index.js +3 -0
- package/dist/components/screens/history-screen/index.js.map +1 -0
- package/dist/components/screens/history-screen/types.d.ts +65 -0
- package/dist/components/screens/history-screen/types.d.ts.map +1 -0
- package/dist/components/screens/history-screen/types.js +2 -0
- package/dist/components/screens/history-screen/types.js.map +1 -0
- package/dist/components/screens/history-screen/use-history-screen.d.ts +4 -0
- package/dist/components/screens/history-screen/use-history-screen.d.ts.map +1 -0
- package/dist/components/screens/history-screen/use-history-screen.js +122 -0
- package/dist/components/screens/history-screen/use-history-screen.js.map +1 -0
- package/dist/components/screens/index.d.ts +20 -0
- package/dist/components/screens/index.d.ts.map +1 -1
- package/dist/components/screens/index.js +10 -0
- package/dist/components/screens/index.js.map +1 -1
- package/dist/components/screens/media-detail-screen/index.d.ts +4 -0
- package/dist/components/screens/media-detail-screen/index.d.ts.map +1 -0
- package/dist/components/screens/media-detail-screen/index.js +3 -0
- package/dist/components/screens/media-detail-screen/index.js.map +1 -0
- package/dist/components/screens/media-detail-screen/media-detail-screen.d.ts +4 -0
- package/dist/components/screens/media-detail-screen/media-detail-screen.d.ts.map +1 -0
- package/dist/components/screens/media-detail-screen/media-detail-screen.js +16 -0
- package/dist/components/screens/media-detail-screen/media-detail-screen.js.map +1 -0
- package/dist/components/screens/media-detail-screen/types.d.ts +55 -0
- package/dist/components/screens/media-detail-screen/types.d.ts.map +1 -0
- package/dist/components/screens/media-detail-screen/types.js +2 -0
- package/dist/components/screens/media-detail-screen/types.js.map +1 -0
- package/dist/components/screens/media-detail-screen/use-media-detail-screen.d.ts +4 -0
- package/dist/components/screens/media-detail-screen/use-media-detail-screen.d.ts.map +1 -0
- package/dist/components/screens/media-detail-screen/use-media-detail-screen.js +126 -0
- package/dist/components/screens/media-detail-screen/use-media-detail-screen.js.map +1 -0
- package/dist/components/screens/notification-center-screen/index.d.ts +4 -0
- package/dist/components/screens/notification-center-screen/index.d.ts.map +1 -0
- package/dist/components/screens/notification-center-screen/index.js +3 -0
- package/dist/components/screens/notification-center-screen/index.js.map +1 -0
- package/dist/components/screens/notification-center-screen/notification-center-screen.d.ts +4 -0
- package/dist/components/screens/notification-center-screen/notification-center-screen.d.ts.map +1 -0
- package/dist/components/screens/notification-center-screen/notification-center-screen.js +16 -0
- package/dist/components/screens/notification-center-screen/notification-center-screen.js.map +1 -0
- package/dist/components/screens/notification-center-screen/types.d.ts +52 -0
- package/dist/components/screens/notification-center-screen/types.d.ts.map +1 -0
- package/dist/components/screens/notification-center-screen/types.js +2 -0
- package/dist/components/screens/notification-center-screen/types.js.map +1 -0
- package/dist/components/screens/notification-center-screen/use-notification-center-screen.d.ts +4 -0
- package/dist/components/screens/notification-center-screen/use-notification-center-screen.d.ts.map +1 -0
- package/dist/components/screens/notification-center-screen/use-notification-center-screen.js +124 -0
- package/dist/components/screens/notification-center-screen/use-notification-center-screen.js.map +1 -0
- package/dist/components/screens/order-tracking-screen/index.d.ts +4 -0
- package/dist/components/screens/order-tracking-screen/index.d.ts.map +1 -0
- package/dist/components/screens/order-tracking-screen/index.js +3 -0
- package/dist/components/screens/order-tracking-screen/index.js.map +1 -0
- package/dist/components/screens/order-tracking-screen/order-tracking-screen.d.ts +4 -0
- package/dist/components/screens/order-tracking-screen/order-tracking-screen.d.ts.map +1 -0
- package/dist/components/screens/order-tracking-screen/order-tracking-screen.js +16 -0
- package/dist/components/screens/order-tracking-screen/order-tracking-screen.js.map +1 -0
- package/dist/components/screens/order-tracking-screen/types.d.ts +55 -0
- package/dist/components/screens/order-tracking-screen/types.d.ts.map +1 -0
- package/dist/components/screens/order-tracking-screen/types.js +2 -0
- package/dist/components/screens/order-tracking-screen/types.js.map +1 -0
- package/dist/components/screens/order-tracking-screen/use-order-tracking-screen.d.ts +4 -0
- package/dist/components/screens/order-tracking-screen/use-order-tracking-screen.d.ts.map +1 -0
- package/dist/components/screens/order-tracking-screen/use-order-tracking-screen.js +177 -0
- package/dist/components/screens/order-tracking-screen/use-order-tracking-screen.js.map +1 -0
- package/dist/components/screens/product-detail-screen/index.d.ts +4 -0
- package/dist/components/screens/product-detail-screen/index.d.ts.map +1 -0
- package/dist/components/screens/product-detail-screen/index.js +3 -0
- package/dist/components/screens/product-detail-screen/index.js.map +1 -0
- package/dist/components/screens/product-detail-screen/product-detail-screen.d.ts +4 -0
- package/dist/components/screens/product-detail-screen/product-detail-screen.d.ts.map +1 -0
- package/dist/components/screens/product-detail-screen/product-detail-screen.js +16 -0
- package/dist/components/screens/product-detail-screen/product-detail-screen.js.map +1 -0
- package/dist/components/screens/product-detail-screen/types.d.ts +70 -0
- package/dist/components/screens/product-detail-screen/types.d.ts.map +1 -0
- package/dist/components/screens/product-detail-screen/types.js +2 -0
- package/dist/components/screens/product-detail-screen/types.js.map +1 -0
- package/dist/components/screens/product-detail-screen/use-product-detail-screen.d.ts +4 -0
- package/dist/components/screens/product-detail-screen/use-product-detail-screen.d.ts.map +1 -0
- package/dist/components/screens/product-detail-screen/use-product-detail-screen.js +202 -0
- package/dist/components/screens/product-detail-screen/use-product-detail-screen.js.map +1 -0
- package/dist/components/screens/transaction-detail-screen/index.d.ts +4 -0
- package/dist/components/screens/transaction-detail-screen/index.d.ts.map +1 -0
- package/dist/components/screens/transaction-detail-screen/index.js +3 -0
- package/dist/components/screens/transaction-detail-screen/index.js.map +1 -0
- package/dist/components/screens/transaction-detail-screen/transaction-detail-screen.d.ts +4 -0
- package/dist/components/screens/transaction-detail-screen/transaction-detail-screen.d.ts.map +1 -0
- package/dist/components/screens/transaction-detail-screen/transaction-detail-screen.js +16 -0
- package/dist/components/screens/transaction-detail-screen/transaction-detail-screen.js.map +1 -0
- package/dist/components/screens/transaction-detail-screen/types.d.ts +72 -0
- package/dist/components/screens/transaction-detail-screen/types.d.ts.map +1 -0
- package/dist/components/screens/transaction-detail-screen/types.js +2 -0
- package/dist/components/screens/transaction-detail-screen/types.js.map +1 -0
- package/dist/components/screens/transaction-detail-screen/use-transaction-detail-screen.d.ts +4 -0
- package/dist/components/screens/transaction-detail-screen/use-transaction-detail-screen.d.ts.map +1 -0
- package/dist/components/screens/transaction-detail-screen/use-transaction-detail-screen.js +221 -0
- package/dist/components/screens/transaction-detail-screen/use-transaction-detail-screen.js.map +1 -0
- package/dist/components/social/comment-thread/comment-thread.d.ts +3 -0
- package/dist/components/social/comment-thread/comment-thread.d.ts.map +1 -0
- package/dist/components/social/comment-thread/comment-thread.js +88 -0
- package/dist/components/social/comment-thread/comment-thread.js.map +1 -0
- package/dist/components/social/comment-thread/index.d.ts +4 -0
- package/dist/components/social/comment-thread/index.d.ts.map +1 -0
- package/dist/components/social/comment-thread/index.js +3 -0
- package/dist/components/social/comment-thread/index.js.map +1 -0
- package/dist/components/social/comment-thread/types.d.ts +47 -0
- package/dist/components/social/comment-thread/types.d.ts.map +1 -0
- package/dist/components/social/comment-thread/types.js +2 -0
- package/dist/components/social/comment-thread/types.js.map +1 -0
- package/dist/components/social/comment-thread/use-comment-thread.d.ts +4 -0
- package/dist/components/social/comment-thread/use-comment-thread.d.ts.map +1 -0
- package/dist/components/social/comment-thread/use-comment-thread.js +100 -0
- package/dist/components/social/comment-thread/use-comment-thread.js.map +1 -0
- package/dist/components/social/index.d.ts +11 -0
- package/dist/components/social/index.d.ts.map +1 -0
- package/dist/components/social/index.js +6 -0
- package/dist/components/social/index.js.map +1 -0
- package/dist/components/social/mention-input/index.d.ts +4 -0
- package/dist/components/social/mention-input/index.d.ts.map +1 -0
- package/dist/components/social/mention-input/index.js +3 -0
- package/dist/components/social/mention-input/index.js.map +1 -0
- package/dist/components/social/mention-input/mention-input.d.ts +3 -0
- package/dist/components/social/mention-input/mention-input.d.ts.map +1 -0
- package/dist/components/social/mention-input/mention-input.js +50 -0
- package/dist/components/social/mention-input/mention-input.js.map +1 -0
- package/dist/components/social/mention-input/types.d.ts +46 -0
- package/dist/components/social/mention-input/types.d.ts.map +1 -0
- package/dist/components/social/mention-input/types.js +2 -0
- package/dist/components/social/mention-input/types.js.map +1 -0
- package/dist/components/social/mention-input/use-mention-input.d.ts +4 -0
- package/dist/components/social/mention-input/use-mention-input.d.ts.map +1 -0
- package/dist/components/social/mention-input/use-mention-input.js +124 -0
- package/dist/components/social/mention-input/use-mention-input.js.map +1 -0
- package/dist/components/social/presence-indicator/index.d.ts +4 -0
- package/dist/components/social/presence-indicator/index.d.ts.map +1 -0
- package/dist/components/social/presence-indicator/index.js +3 -0
- package/dist/components/social/presence-indicator/index.js.map +1 -0
- package/dist/components/social/presence-indicator/presence-indicator.d.ts +3 -0
- package/dist/components/social/presence-indicator/presence-indicator.d.ts.map +1 -0
- package/dist/components/social/presence-indicator/presence-indicator.js +17 -0
- package/dist/components/social/presence-indicator/presence-indicator.js.map +1 -0
- package/dist/components/social/presence-indicator/types.d.ts +24 -0
- package/dist/components/social/presence-indicator/types.d.ts.map +1 -0
- package/dist/components/social/presence-indicator/types.js +2 -0
- package/dist/components/social/presence-indicator/types.js.map +1 -0
- package/dist/components/social/presence-indicator/use-presence-indicator.d.ts +4 -0
- package/dist/components/social/presence-indicator/use-presence-indicator.d.ts.map +1 -0
- package/dist/components/social/presence-indicator/use-presence-indicator.js +60 -0
- package/dist/components/social/presence-indicator/use-presence-indicator.js.map +1 -0
- package/dist/components/social/reaction-picker/index.d.ts +4 -0
- package/dist/components/social/reaction-picker/index.d.ts.map +1 -0
- package/dist/components/social/reaction-picker/index.js +3 -0
- package/dist/components/social/reaction-picker/index.js.map +1 -0
- package/dist/components/social/reaction-picker/reaction-picker.d.ts +11 -0
- package/dist/components/social/reaction-picker/reaction-picker.d.ts.map +1 -0
- package/dist/components/social/reaction-picker/reaction-picker.js +25 -0
- package/dist/components/social/reaction-picker/reaction-picker.js.map +1 -0
- package/dist/components/social/reaction-picker/types.d.ts +41 -0
- package/dist/components/social/reaction-picker/types.d.ts.map +1 -0
- package/dist/components/social/reaction-picker/types.js +2 -0
- package/dist/components/social/reaction-picker/types.js.map +1 -0
- package/dist/components/social/reaction-picker/use-reaction-picker.d.ts +4 -0
- package/dist/components/social/reaction-picker/use-reaction-picker.d.ts.map +1 -0
- package/dist/components/social/reaction-picker/use-reaction-picker.js +93 -0
- package/dist/components/social/reaction-picker/use-reaction-picker.js.map +1 -0
- package/dist/components/social/story-row/index.d.ts +4 -0
- package/dist/components/social/story-row/index.d.ts.map +1 -0
- package/dist/components/social/story-row/index.js +3 -0
- package/dist/components/social/story-row/index.js.map +1 -0
- package/dist/components/social/story-row/story-row.d.ts +13 -0
- package/dist/components/social/story-row/story-row.d.ts.map +1 -0
- package/dist/components/social/story-row/story-row.js +29 -0
- package/dist/components/social/story-row/story-row.js.map +1 -0
- package/dist/components/social/story-row/types.d.ts +37 -0
- package/dist/components/social/story-row/types.d.ts.map +1 -0
- package/dist/components/social/story-row/types.js +2 -0
- package/dist/components/social/story-row/types.js.map +1 -0
- package/dist/components/social/story-row/use-story-row.d.ts +4 -0
- package/dist/components/social/story-row/use-story-row.d.ts.map +1 -0
- package/dist/components/social/story-row/use-story-row.js +71 -0
- package/dist/components/social/story-row/use-story-row.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { forwardRef, createElement } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { useTheme } from '../../../theme/context.js';
|
|
4
|
+
import { useNotificationCenterScreen } from './use-notification-center-screen.js';
|
|
5
|
+
export const NotificationCenterScreen = forwardRef(function NotificationCenterScreen(props, ref) {
|
|
6
|
+
const { tokens } = useTheme();
|
|
7
|
+
const { sections: _sections, onMarkAllRead: _onMarkAllRead, onItemPress: _onItemPress, markAllReadLabel: _markAllReadLabel, emptyTitle: _emptyTitle, emptyMessage: _emptyMessage, loading: _loading, unreadCount: _unreadCount, bg: _bg, p: _p, px: _px, py: _py, pt: _pt, pb: _pb, pl: _pl, pr: _pr, m: _m, mx: _mx, my: _my, mt: _mt, mb: _mb, ml: _ml, mr: _mr, rounded: _rounded, shadow: _shadow, flex: _flex, row: _row, center: _center, w: _w, h: _h, borderWidth: _bw, borderColor: _bc, opacity: _op, overflow: _ov, position: _pos, top: _top, bottom: _bot, left: _left, right: _right, zIndex: _zi, children, ...rest } = props;
|
|
8
|
+
const { containerStyle, accessibilityProps } = useNotificationCenterScreen(tokens, props);
|
|
9
|
+
return createElement(View, {
|
|
10
|
+
ref,
|
|
11
|
+
style: containerStyle,
|
|
12
|
+
...accessibilityProps,
|
|
13
|
+
...rest,
|
|
14
|
+
}, children);
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=notification-center-screen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-center-screen.js","sourceRoot":"","sources":["../../../../src/components/screens/notification-center-screen/notification-center-screen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAA4B,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAGlF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,GAAG,2BAA2B,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAE1F,OAAO,aAAa,CAAC,IAAW,EAAE;QAChC,GAAG;QACH,KAAK,EAAE,cAAc;QACrB,GAAG,kBAAkB;QACrB,GAAG,IAAI;KACR,EAAE,QAAqB,CAAC,CAAC;AAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { BoxStyleProps } from '../../types.js';
|
|
2
|
+
import type { ResolvedBoxStyle, ResolvedTextStyle } from '../../use-component-style.js';
|
|
3
|
+
export interface NotificationItem {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
body?: string;
|
|
7
|
+
timestamp: string;
|
|
8
|
+
read: boolean;
|
|
9
|
+
icon?: string;
|
|
10
|
+
avatar?: string;
|
|
11
|
+
onPress?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export interface NotificationSection {
|
|
14
|
+
title: string;
|
|
15
|
+
data: NotificationItem[];
|
|
16
|
+
}
|
|
17
|
+
export interface NotificationCenterScreenProps extends BoxStyleProps {
|
|
18
|
+
sections: NotificationSection[];
|
|
19
|
+
onMarkAllRead?: () => void;
|
|
20
|
+
onItemPress?: (item: NotificationItem) => void;
|
|
21
|
+
markAllReadLabel?: string;
|
|
22
|
+
emptyTitle?: string;
|
|
23
|
+
emptyMessage?: string;
|
|
24
|
+
loading?: boolean;
|
|
25
|
+
unreadCount?: number;
|
|
26
|
+
accessibilityLabel?: string;
|
|
27
|
+
testID?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface UseNotificationCenterScreenResult {
|
|
30
|
+
containerStyle: ResolvedBoxStyle;
|
|
31
|
+
headerStyle: ResolvedBoxStyle;
|
|
32
|
+
headerTitleStyle: ResolvedTextStyle;
|
|
33
|
+
markAllReadStyle: ResolvedTextStyle;
|
|
34
|
+
markAllReadDisabledStyle: ResolvedTextStyle;
|
|
35
|
+
sectionHeaderStyle: ResolvedBoxStyle & ResolvedTextStyle;
|
|
36
|
+
itemContainerStyle: ResolvedBoxStyle;
|
|
37
|
+
unreadItemContainerStyle: ResolvedBoxStyle;
|
|
38
|
+
avatarContainerStyle: ResolvedBoxStyle;
|
|
39
|
+
itemContentStyle: ResolvedBoxStyle;
|
|
40
|
+
itemTitleStyle: ResolvedTextStyle;
|
|
41
|
+
unreadItemTitleStyle: ResolvedTextStyle;
|
|
42
|
+
itemBodyStyle: ResolvedTextStyle;
|
|
43
|
+
itemTimestampStyle: ResolvedTextStyle;
|
|
44
|
+
unreadDotStyle: ResolvedBoxStyle;
|
|
45
|
+
emptyContainerStyle: ResolvedBoxStyle;
|
|
46
|
+
loadingContainerStyle: ResolvedBoxStyle;
|
|
47
|
+
accessibilityProps: {
|
|
48
|
+
accessibilityLabel?: string;
|
|
49
|
+
testID?: string;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/screens/notification-center-screen/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAExF,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,gBAAgB,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,6BAA8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oot":"","sources":["../../../../src/components/screens/notification-center-screen/types.ts"],"names":[],"mappings":""}
|
package/dist/components/screens/notification-center-screen/use-notification-center-screen.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ThemeTokens } from '../../../theme/tokens.js';
|
|
2
|
+
import type { NotificationCenterScreenProps, UseNotificationCenterScreenResult } from './types.js';
|
|
3
|
+
export declare function useNotificationCenterScreen(tokens: ThemeTokens, props: NotificationCenterScreenProps): UseNotificationCenterScreenResult;
|
|
4
|
+
//# sourceMappingURL=use-notification-center-screen.d.ts.map
|
package/dist/components/screens/notification-center-screen/use-notification-center-screen.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-notification-center-screen.d.ts","sourceRoot":"","sources":["../../../../src/components/screens/notification-center-screen/use-notification-center-screen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,6BAA6B,EAAE,iCAAiC,EAAE,MAAM,YAAY,CAAC;AAGnG,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,6BAA6B,GACnC,iCAAiC,CA4InC"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
export function useNotificationCenterScreen(tokens, props) {
|
|
2
|
+
const { accessibilityLabel, testID, unreadCount = 0 } = props;
|
|
3
|
+
const isMarkAllReadDisabled = unreadCount === 0;
|
|
4
|
+
const containerStyle = {
|
|
5
|
+
flex: 1,
|
|
6
|
+
backgroundColor: tokens.colors.background,
|
|
7
|
+
};
|
|
8
|
+
const headerStyle = {
|
|
9
|
+
flexDirection: 'row',
|
|
10
|
+
justifyContent: 'space-between',
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
padding: tokens.spacing.md,
|
|
13
|
+
borderBottomWidth: 1,
|
|
14
|
+
borderColor: tokens.colors.border,
|
|
15
|
+
};
|
|
16
|
+
const headerTitleStyle = {
|
|
17
|
+
fontSize: tokens.typography.sizes.lg,
|
|
18
|
+
fontWeight: tokens.typography.weights.bold,
|
|
19
|
+
color: tokens.colors.foreground,
|
|
20
|
+
fontFamily: tokens.typography.fontFamily.body,
|
|
21
|
+
};
|
|
22
|
+
const markAllReadStyle = {
|
|
23
|
+
fontSize: tokens.typography.sizes.sm,
|
|
24
|
+
color: tokens.colors.primary,
|
|
25
|
+
fontFamily: tokens.typography.fontFamily.body,
|
|
26
|
+
};
|
|
27
|
+
const markAllReadDisabledStyle = {
|
|
28
|
+
fontSize: tokens.typography.sizes.sm,
|
|
29
|
+
color: tokens.colors.mutedForeground,
|
|
30
|
+
fontFamily: tokens.typography.fontFamily.body,
|
|
31
|
+
};
|
|
32
|
+
const sectionHeaderStyle = {
|
|
33
|
+
fontSize: tokens.typography.sizes.xs,
|
|
34
|
+
textTransform: 'uppercase',
|
|
35
|
+
color: tokens.colors.mutedForeground,
|
|
36
|
+
letterSpacing: 0.8,
|
|
37
|
+
fontFamily: tokens.typography.fontFamily.body,
|
|
38
|
+
paddingHorizontal: tokens.spacing.md,
|
|
39
|
+
paddingVertical: tokens.spacing.xs,
|
|
40
|
+
backgroundColor: tokens.colors.muted,
|
|
41
|
+
};
|
|
42
|
+
const itemContainerStyle = {
|
|
43
|
+
flexDirection: 'row',
|
|
44
|
+
padding: tokens.spacing.md,
|
|
45
|
+
borderBottomWidth: 1,
|
|
46
|
+
borderColor: tokens.colors.border,
|
|
47
|
+
};
|
|
48
|
+
const unreadItemContainerStyle = {
|
|
49
|
+
flexDirection: 'row',
|
|
50
|
+
padding: tokens.spacing.md,
|
|
51
|
+
borderBottomWidth: 1,
|
|
52
|
+
borderColor: tokens.colors.border,
|
|
53
|
+
backgroundColor: tokens.colors.card,
|
|
54
|
+
};
|
|
55
|
+
const avatarContainerStyle = {
|
|
56
|
+
marginRight: tokens.spacing.sm,
|
|
57
|
+
};
|
|
58
|
+
const itemContentStyle = {
|
|
59
|
+
flex: 1,
|
|
60
|
+
};
|
|
61
|
+
const itemTitleStyle = {
|
|
62
|
+
fontSize: tokens.typography.sizes.sm,
|
|
63
|
+
fontWeight: tokens.typography.weights.semibold,
|
|
64
|
+
color: tokens.colors.foreground,
|
|
65
|
+
fontFamily: tokens.typography.fontFamily.body,
|
|
66
|
+
};
|
|
67
|
+
const unreadItemTitleStyle = {
|
|
68
|
+
fontSize: tokens.typography.sizes.sm,
|
|
69
|
+
fontWeight: tokens.typography.weights.bold,
|
|
70
|
+
color: tokens.colors.foreground,
|
|
71
|
+
fontFamily: tokens.typography.fontFamily.body,
|
|
72
|
+
};
|
|
73
|
+
const itemBodyStyle = {
|
|
74
|
+
fontSize: tokens.typography.sizes.xs,
|
|
75
|
+
color: tokens.colors.mutedForeground,
|
|
76
|
+
fontFamily: tokens.typography.fontFamily.body,
|
|
77
|
+
};
|
|
78
|
+
const itemTimestampStyle = {
|
|
79
|
+
fontSize: tokens.typography.sizes.xs,
|
|
80
|
+
color: tokens.colors.mutedForeground,
|
|
81
|
+
fontFamily: tokens.typography.fontFamily.body,
|
|
82
|
+
};
|
|
83
|
+
const unreadDotStyle = {
|
|
84
|
+
width: 6,
|
|
85
|
+
height: 6,
|
|
86
|
+
borderRadius: tokens.radii.full,
|
|
87
|
+
backgroundColor: tokens.colors.primary,
|
|
88
|
+
};
|
|
89
|
+
const emptyContainerStyle = {
|
|
90
|
+
flex: 1,
|
|
91
|
+
alignItems: 'center',
|
|
92
|
+
justifyContent: 'center',
|
|
93
|
+
padding: tokens.spacing.xl,
|
|
94
|
+
};
|
|
95
|
+
const loadingContainerStyle = {
|
|
96
|
+
flex: 1,
|
|
97
|
+
alignItems: 'center',
|
|
98
|
+
justifyContent: 'center',
|
|
99
|
+
};
|
|
100
|
+
return {
|
|
101
|
+
containerStyle,
|
|
102
|
+
headerStyle,
|
|
103
|
+
headerTitleStyle,
|
|
104
|
+
markAllReadStyle: isMarkAllReadDisabled ? markAllReadDisabledStyle : markAllReadStyle,
|
|
105
|
+
markAllReadDisabledStyle,
|
|
106
|
+
sectionHeaderStyle,
|
|
107
|
+
itemContainerStyle,
|
|
108
|
+
unreadItemContainerStyle,
|
|
109
|
+
avatarContainerStyle,
|
|
110
|
+
itemContentStyle,
|
|
111
|
+
itemTitleStyle,
|
|
112
|
+
unreadItemTitleStyle,
|
|
113
|
+
itemBodyStyle,
|
|
114
|
+
itemTimestampStyle,
|
|
115
|
+
unreadDotStyle,
|
|
116
|
+
emptyContainerStyle,
|
|
117
|
+
loadingContainerStyle,
|
|
118
|
+
accessibilityProps: {
|
|
119
|
+
...(accessibilityLabel !== undefined && { accessibilityLabel }),
|
|
120
|
+
...(testID !== undefined && { testID }),
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=use-notification-center-screen.js.map
|
package/dist/components/screens/notification-center-screen/use-notification-center-screen.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-notification-center-screen.js","sourceRoot":"","sources":["../../../../src/components/screens/notification-center-screen/use-notification-center-screen.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,2BAA2B,CACzC,MAAmB,EACnB,KAAoC;IAEpC,MAAM,EAAE,kBAAkB,EAAE,MAAM,EAAE,WAAW,GAAG,CAAC,EAAE,GAAG,KAAK,CAAC;IAC9D,MAAM,qBAAqB,GAAG,WAAW,KAAK,CAAC,CAAC;IAEhD,MAAM,cAAc,GAAqB;QACvC,IAAI,EAAE,CAAC;QACP,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU;KAC1C,CAAC;IAEF,MAAM,WAAW,GAAqB;QACpC,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,eAAe;QAC/B,UAAU,EAAE,QAAQ;QACpB,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;QAC1B,iBAAiB,EAAE,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM;KAClC,CAAC;IAEF,MAAM,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tracking-screen.js';
|
|
3
|
+
export type { OrderTrackingScreenProps, TrackingStep, UseOrderTrackingScreenResult, } from './types.js';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/screens/order-tracking-screen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,YAAY,EACV,wBAAwB,EACxB,YAAY,EACZ,4BAA4B,GAC7B,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/screens/order-tracking-screen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { View, type ViewProps } from 'react-native';
|
|
2
|
+
import type { OrderTrackingScreenProps } from './types.js';
|
|
3
|
+
export declare const OrderTrackingScreen: import("react").ForwardRefExoticComponent<OrderTrackingScreenProps & Omit<ViewProps, keyof OrderTrackingScreenProps> & import("react").RefAttributes<View>>;
|
|
4
|
+
//# sourceMappingURL=order-tracking-screen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-tracking-screen.d.ts","sourceRoot":"","sources":["../../../../src/components/screens/order-tracking-screen/order-tracking-screen.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE3D,eAAO,MAAM,mBAAmB,6JA4B9B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { forwardRef, createElement } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { useTheme } from '../../../theme/context.js';
|
|
4
|
+
import { useOrderTrackingScreen } from './use-order-tracking-screen.js';
|
|
5
|
+
export const OrderTrackingScreen = forwardRef(function OrderTrackingScreen(props, ref) {
|
|
6
|
+
const { tokens } = useTheme();
|
|
7
|
+
const { orderId: _orderId, steps: _steps, eta: _eta, carrier: _carrier, trackingNumber: _trackingNumber, renderMap: _renderMap, mapHeight: _mapHeight, onCopyTrackingNumber: _onCopyTrackingNumber, onContactSupport: _onContactSupport, contactSupportLabel: _contactSupportLabel, bg: _bg, p: _p, px: _px, py: _py, pt: _pt, pb: _pb, pl: _pl, pr: _pr, m: _m, mx: _mx, my: _my, mt: _mt, mb: _mb, ml: _ml, mr: _mr, rounded: _rounded, shadow: _shadow, flex: _flex, row: _row, center: _center, w: _w, h: _h, borderWidth: _bw, borderColor: _bc, opacity: _op, overflow: _ov, position: _pos, top: _top, bottom: _bot, left: _left, right: _right, zIndex: _zi, children, ...rest } = props;
|
|
8
|
+
const { containerStyle, accessibilityProps } = useOrderTrackingScreen(tokens, props);
|
|
9
|
+
return createElement(View, {
|
|
10
|
+
ref,
|
|
11
|
+
style: containerStyle,
|
|
12
|
+
...accessibilityProps,
|
|
13
|
+
...rest,
|
|
14
|
+
}, children);
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=order-tracking-screen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-tracking-screen.js","sourceRoot":"","sources":["../../../../src/components/screens/order-tracking-screen/order-tracking-screen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAA4B,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MA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R,GAAG,IAAI,EACR,GAAG,KAAK,CAAC;IAEV,MAAM,EAAE,cAAc,EAAE,kBAAkB,EAAE,GAAG,sBAAsB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAErF,OAAO,aAAa,CAAC,IAAW,EAAE;QAChC,GAAG;QACH,KAAK,EAAE,cAAc;QACrB,GAAG,kBAAkB;QACrB,GAAG,IAAI;KACR,EAAE,QAAqB,CAAC,CAAC;AAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { BoxStyleProps } from '../../types.js';
|
|
2
|
+
import type { ResolvedBoxStyle, ResolvedTextStyle } from '../../use-component-style.js';
|
|
3
|
+
export interface TrackingStep {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
timestamp?: string;
|
|
8
|
+
status: 'completed' | 'active' | 'pending';
|
|
9
|
+
}
|
|
10
|
+
export interface OrderTrackingScreenProps extends BoxStyleProps {
|
|
11
|
+
orderId?: string;
|
|
12
|
+
steps: TrackingStep[];
|
|
13
|
+
eta?: string;
|
|
14
|
+
carrier?: string;
|
|
15
|
+
trackingNumber?: string;
|
|
16
|
+
renderMap?: () => unknown;
|
|
17
|
+
mapHeight?: number;
|
|
18
|
+
onCopyTrackingNumber?: () => void;
|
|
19
|
+
onContactSupport?: () => void;
|
|
20
|
+
contactSupportLabel?: string;
|
|
21
|
+
accessibilityLabel?: string;
|
|
22
|
+
testID?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface UseOrderTrackingScreenResult {
|
|
25
|
+
containerStyle: ResolvedBoxStyle;
|
|
26
|
+
scrollContentStyle: ResolvedBoxStyle;
|
|
27
|
+
mapContainerStyle: ResolvedBoxStyle;
|
|
28
|
+
orderInfoCardStyle: ResolvedBoxStyle;
|
|
29
|
+
orderIdStyle: ResolvedTextStyle;
|
|
30
|
+
trackingRowStyle: ResolvedBoxStyle;
|
|
31
|
+
trackingNumberStyle: ResolvedTextStyle;
|
|
32
|
+
copyIconColor: string;
|
|
33
|
+
etaStyle: ResolvedTextStyle;
|
|
34
|
+
carrierStyle: ResolvedTextStyle;
|
|
35
|
+
stepListStyle: ResolvedBoxStyle;
|
|
36
|
+
stepRowStyle: ResolvedBoxStyle;
|
|
37
|
+
stepConnectorStyle: ResolvedBoxStyle;
|
|
38
|
+
completedConnectorStyle: ResolvedBoxStyle;
|
|
39
|
+
stepIconContainerStyle: ResolvedBoxStyle;
|
|
40
|
+
completedStepIconStyle: ResolvedBoxStyle;
|
|
41
|
+
activeStepIconStyle: ResolvedBoxStyle;
|
|
42
|
+
pendingStepIconStyle: ResolvedBoxStyle;
|
|
43
|
+
stepContentStyle: ResolvedBoxStyle;
|
|
44
|
+
stepLabelStyle: ResolvedTextStyle;
|
|
45
|
+
activeStepLabelStyle: ResolvedTextStyle;
|
|
46
|
+
pendingStepLabelStyle: ResolvedTextStyle;
|
|
47
|
+
stepDescriptionStyle: ResolvedTextStyle;
|
|
48
|
+
stepTimestampStyle: ResolvedTextStyle;
|
|
49
|
+
supportButtonStyle: ResolvedTextStyle & Pick<ResolvedBoxStyle, 'padding'>;
|
|
50
|
+
accessibilityProps: {
|
|
51
|
+
accessibilityLabel?: string;
|
|
52
|
+
testID?: string;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/screens/order-tracking-screen/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAExF,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAA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;IACvC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,cAAc,EAAE,iBAAiB,CAAC;IAClC,oBAAoB,EAAE,iBAAiB,CAAC;IACxC,qBAAqB,EAAE,iBAAiB,CAAC;IACzC,oBAAoB,EAAE,iBAAiB,CAAC;IACxC,kBAAkB,EAAE,iBAAiB,CAAC;IACtC,kBAAkB,EAAE,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC;IAC1E,kBAAkB,EAAE;QAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/screens/order-tracking-screen/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ThemeTokens } from '../../../theme/tokens.js';
|
|
2
|
+
import type { OrderTrackingScreenProps, UseOrderTrackingScreenResult } from './types.js';
|
|
3
|
+
export declare function useOrderTrackingScreen(tokens: ThemeTokens, props: OrderTrackingScreenProps): UseOrderTrackingScreenResult;
|
|
4
|
+
//# sourceMappingURL=use-order-tracking-screen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-order-tracking-screen.d.ts","sourceRoot":"","sources":["../../../../src/components/screens/order-tracking-screen/use-order-tracking-screen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAGzF,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,wBAAwB,GAC9B,4BAA4B,CAyM9B"}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
export function useOrderTrackingScreen(tokens, props) {
|
|
2
|
+
const { accessibilityLabel, testID, mapHeight = 200 } = props;
|
|
3
|
+
const containerStyle = {
|
|
4
|
+
flex: 1,
|
|
5
|
+
backgroundColor: tokens.colors.background,
|
|
6
|
+
};
|
|
7
|
+
const scrollContentStyle = {
|
|
8
|
+
padding: tokens.spacing.md,
|
|
9
|
+
gap: tokens.spacing.lg,
|
|
10
|
+
};
|
|
11
|
+
const mapContainerStyle = {
|
|
12
|
+
height: mapHeight,
|
|
13
|
+
borderRadius: tokens.radii.md,
|
|
14
|
+
overflow: 'hidden',
|
|
15
|
+
};
|
|
16
|
+
const orderInfoCardStyle = {
|
|
17
|
+
backgroundColor: tokens.colors.card,
|
|
18
|
+
borderRadius: tokens.radii.md,
|
|
19
|
+
padding: tokens.spacing.md,
|
|
20
|
+
gap: tokens.spacing.xs,
|
|
21
|
+
};
|
|
22
|
+
const orderIdStyle = {
|
|
23
|
+
fontSize: tokens.typography.sizes.xs,
|
|
24
|
+
color: tokens.colors.mutedForeground,
|
|
25
|
+
fontFamily: tokens.typography.fontFamily.body,
|
|
26
|
+
};
|
|
27
|
+
const trackingRowStyle = {
|
|
28
|
+
flexDirection: 'row',
|
|
29
|
+
justifyContent: 'space-between',
|
|
30
|
+
alignItems: 'center',
|
|
31
|
+
};
|
|
32
|
+
const trackingNumberStyle = {
|
|
33
|
+
fontSize: tokens.typography.sizes.sm,
|
|
34
|
+
fontWeight: tokens.typography.weights.semibold,
|
|
35
|
+
color: tokens.colors.foreground,
|
|
36
|
+
fontFamily: tokens.typography.fontFamily.mono,
|
|
37
|
+
};
|
|
38
|
+
const copyIconColor = tokens.colors.primary;
|
|
39
|
+
const etaStyle = {
|
|
40
|
+
fontSize: tokens.typography.sizes.sm,
|
|
41
|
+
fontWeight: tokens.typography.weights.semibold,
|
|
42
|
+
color: tokens.colors.foreground,
|
|
43
|
+
fontFamily: tokens.typography.fontFamily.body,
|
|
44
|
+
};
|
|
45
|
+
const carrierStyle = {
|
|
46
|
+
fontSize: tokens.typography.sizes.xs,
|
|
47
|
+
color: tokens.colors.mutedForeground,
|
|
48
|
+
fontFamily: tokens.typography.fontFamily.body,
|
|
49
|
+
};
|
|
50
|
+
const stepListStyle = {
|
|
51
|
+
gap: 0,
|
|
52
|
+
};
|
|
53
|
+
const stepRowStyle = {
|
|
54
|
+
flexDirection: 'row',
|
|
55
|
+
gap: tokens.spacing.md,
|
|
56
|
+
};
|
|
57
|
+
const stepConnectorStyle = {
|
|
58
|
+
width: 2,
|
|
59
|
+
flex: 1,
|
|
60
|
+
backgroundColor: tokens.colors.border,
|
|
61
|
+
};
|
|
62
|
+
const completedConnectorStyle = {
|
|
63
|
+
width: 2,
|
|
64
|
+
flex: 1,
|
|
65
|
+
backgroundColor: tokens.colors.primary,
|
|
66
|
+
};
|
|
67
|
+
const stepIconContainerStyle = {
|
|
68
|
+
width: 28,
|
|
69
|
+
height: 28,
|
|
70
|
+
borderRadius: tokens.radii.full,
|
|
71
|
+
alignItems: 'center',
|
|
72
|
+
justifyContent: 'center',
|
|
73
|
+
borderWidth: 2,
|
|
74
|
+
};
|
|
75
|
+
const completedStepIconStyle = {
|
|
76
|
+
width: 28,
|
|
77
|
+
height: 28,
|
|
78
|
+
borderRadius: tokens.radii.full,
|
|
79
|
+
alignItems: 'center',
|
|
80
|
+
justifyContent: 'center',
|
|
81
|
+
borderWidth: 2,
|
|
82
|
+
backgroundColor: tokens.colors.primary,
|
|
83
|
+
borderColor: tokens.colors.primary,
|
|
84
|
+
};
|
|
85
|
+
const activeStepIconStyle = {
|
|
86
|
+
width: 28,
|
|
87
|
+
height: 28,
|
|
88
|
+
borderRadius: tokens.radii.full,
|
|
89
|
+
alignItems: 'center',
|
|
90
|
+
justifyContent: 'center',
|
|
91
|
+
borderWidth: 2,
|
|
92
|
+
backgroundColor: tokens.colors.background,
|
|
93
|
+
borderColor: tokens.colors.primary,
|
|
94
|
+
};
|
|
95
|
+
const pendingStepIconStyle = {
|
|
96
|
+
width: 28,
|
|
97
|
+
height: 28,
|
|
98
|
+
borderRadius: tokens.radii.full,
|
|
99
|
+
alignItems: 'center',
|
|
100
|
+
justifyContent: 'center',
|
|
101
|
+
borderWidth: 2,
|
|
102
|
+
backgroundColor: tokens.colors.muted,
|
|
103
|
+
borderColor: tokens.colors.border,
|
|
104
|
+
};
|
|
105
|
+
const stepContentStyle = {
|
|
106
|
+
flex: 1,
|
|
107
|
+
paddingBottom: tokens.spacing.md,
|
|
108
|
+
};
|
|
109
|
+
const stepLabelStyle = {
|
|
110
|
+
fontSize: tokens.typography.sizes.sm,
|
|
111
|
+
fontWeight: tokens.typography.weights.semibold,
|
|
112
|
+
color: tokens.colors.foreground,
|
|
113
|
+
fontFamily: tokens.typography.fontFamily.body,
|
|
114
|
+
};
|
|
115
|
+
const activeStepLabelStyle = {
|
|
116
|
+
fontSize: tokens.typography.sizes.sm,
|
|
117
|
+
fontWeight: tokens.typography.weights.semibold,
|
|
118
|
+
color: tokens.colors.primary,
|
|
119
|
+
fontFamily: tokens.typography.fontFamily.body,
|
|
120
|
+
};
|
|
121
|
+
const pendingStepLabelStyle = {
|
|
122
|
+
fontSize: tokens.typography.sizes.sm,
|
|
123
|
+
fontWeight: tokens.typography.weights.semibold,
|
|
124
|
+
color: tokens.colors.mutedForeground,
|
|
125
|
+
fontFamily: tokens.typography.fontFamily.body,
|
|
126
|
+
};
|
|
127
|
+
const stepDescriptionStyle = {
|
|
128
|
+
fontSize: tokens.typography.sizes.xs,
|
|
129
|
+
color: tokens.colors.mutedForeground,
|
|
130
|
+
fontFamily: tokens.typography.fontFamily.body,
|
|
131
|
+
};
|
|
132
|
+
const stepTimestampStyle = {
|
|
133
|
+
fontSize: tokens.typography.sizes.xs,
|
|
134
|
+
color: tokens.colors.mutedForeground,
|
|
135
|
+
fontFamily: tokens.typography.fontFamily.body,
|
|
136
|
+
};
|
|
137
|
+
const supportButtonStyle = {
|
|
138
|
+
fontSize: tokens.typography.sizes.sm,
|
|
139
|
+
color: tokens.colors.mutedForeground,
|
|
140
|
+
textDecorationLine: 'underline',
|
|
141
|
+
textAlign: 'center',
|
|
142
|
+
fontFamily: tokens.typography.fontFamily.body,
|
|
143
|
+
padding: tokens.spacing.md,
|
|
144
|
+
};
|
|
145
|
+
return {
|
|
146
|
+
containerStyle,
|
|
147
|
+
scrollContentStyle,
|
|
148
|
+
mapContainerStyle,
|
|
149
|
+
orderInfoCardStyle,
|
|
150
|
+
orderIdStyle,
|
|
151
|
+
trackingRowStyle,
|
|
152
|
+
trackingNumberStyle,
|
|
153
|
+
copyIconColor,
|
|
154
|
+
etaStyle,
|
|
155
|
+
carrierStyle,
|
|
156
|
+
stepListStyle,
|
|
157
|
+
stepRowStyle,
|
|
158
|
+
stepConnectorStyle,
|
|
159
|
+
completedConnectorStyle,
|
|
160
|
+
stepIconContainerStyle,
|
|
161
|
+
completedStepIconStyle,
|
|
162
|
+
activeStepIconStyle,
|
|
163
|
+
pendingStepIconStyle,
|
|
164
|
+
stepContentStyle,
|
|
165
|
+
stepLabelStyle,
|
|
166
|
+
activeStepLabelStyle,
|
|
167
|
+
pendingStepLabelStyle,
|
|
168
|
+
stepDescriptionStyle,
|
|
169
|
+
stepTimestampStyle,
|
|
170
|
+
supportButtonStyle,
|
|
171
|
+
accessibilityProps: {
|
|
172
|
+
...(accessibilityLabel !== undefined && { accessibilityLabel }),
|
|
173
|
+
...(testID !== undefined && { testID }),
|
|
174
|
+
},
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
//# sourceMappingURL=use-order-tracking-screen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-order-tracking-screen.js","sourceRoot":"","sources":["../../../../src/components/screens/order-tracking-screen/use-order-tracking-screen.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,sBAAsB,CACpC,MAAmB,EACnB,KAA+B;IAE/B,MAAM,EAAE,kBAAkB,EAAE,MAAM,EAAE,SAAS,GAAG,GAAG,EAAE,GAAG,KAAK,CAAC;IAE9D,MAAM,cAAc,GAAqB;QACvC,IAAI,E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AAO,CAAC,EAAE;KAC8B,CAAC;IAE3D,OAAO;QACL,cAAc;QACd,kBAAkB;QAClB,iBAAiB;QACjB,kBAAkB;QAClB,YAAY;QACZ,gBAAgB;QAChB,mBAAmB;QACnB,aAAa;QACb,QAAQ;QACR,YAAY;QACZ,aAAa;QACb,YAAY;QACZ,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,sBAAsB;QACtB,mBAAmB;QACnB,oBAAoB;QACpB,gBAAgB;QAChB,cAAc;QACd,oBAAoB;QACpB,qBAAqB;QACrB,oBAAoB;QACpB,kBAAkB;QAClB,kBAAkB;QAClB,kBAAkB,EAAE;YAClB,GAAG,CAAC,kBAAkB,KAAK,SAAS,IAAI,EAAE,kBAAkB,EAAE,CAAC;YAC/D,GAAG,CAAC,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;SACxC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ProductDetailScreen } from './product-detail-screen.js';
|
|
2
|
+
export { useProductDetailScreen } from './use-product-detail-screen.js';
|
|
3
|
+
export type { ProductDetailScreenProps, ProductVariant, ProductVariantOption, UseProductDetailScreenResult, } from './types.js';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/screens/product-detail-screen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,YAAY,EACV,wBAAwB,EACxB,cAAc,EACd,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/screens/product-detail-screen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { View, type ViewProps } from 'react-native';
|
|
2
|
+
import type { ProductDetailScreenProps } from './types.js';
|
|
3
|
+
export declare const ProductDetailScreen: import("react").ForwardRefExoticComponent<ProductDetailScreenProps & Omit<ViewProps, keyof ProductDetailScreenProps> & import("react").RefAttributes<View>>;
|
|
4
|
+
//# sourceMappingURL=product-detail-screen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-detail-screen.d.ts","sourceRoot":"","sources":["../../../../src/components/screens/product-detail-screen/product-detail-screen.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE3D,eAAO,MAAM,mBAAmB,6JA8B9B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { forwardRef, createElement } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { useTheme } from '../../../theme/context.js';
|
|
4
|
+
import { useProductDetailScreen } from './use-product-detail-screen.js';
|
|
5
|
+
export const ProductDetailScreen = forwardRef(function ProductDetailScreen(props, ref) {
|
|
6
|
+
const { tokens } = useTheme();
|
|
7
|
+
const { title: _title, price: _price, originalPrice: _originalPrice, images: _images, description: _description, rating: _rating, reviewCount: _reviewCount, variants: _variants, quantity: _quantity, onQuantityChange: _onQuantityChange, minQuantity: _minQuantity, maxQuantity: _maxQuantity, onAddToCart: _onAddToCart, onWishlist: _onWishlist, addToCartLabel: _addToCartLabel, inWishlist: _inWishlist, loading: _loading, bg: _bg, p: _p, px: _px, py: _py, pt: _pt, pb: _pb, pl: _pl, pr: _pr, m: _m, mx: _mx, my: _my, mt: _mt, mb: _mb, ml: _ml, mr: _mr, rounded: _rounded, shadow: _shadow, flex: _flex, row: _row, center: _center, w: _w, h: _h, borderWidth: _bw, borderColor: _bc, opacity: _op, overflow: _ov, position: _pos, top: _top, bottom: _bot, left: _left, right: _right, zIndex: _zi, children, ...rest } = props;
|
|
8
|
+
const { containerStyle, accessibilityProps } = useProductDetailScreen(tokens, props);
|
|
9
|
+
return createElement(View, {
|
|
10
|
+
ref,
|
|
11
|
+
style: containerStyle,
|
|
12
|
+
...accessibilityProps,
|
|
13
|
+
...rest,
|
|
14
|
+
}, children);
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=product-detail-screen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-detail-screen.js","sourceRoot":"","sources":["../../../../src/components/screens/product-detail-screen/product-detail-screen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAA4B,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAGxE,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAC,SAAS,mBAAmB,CACxE,KAAiF,EACjF,GAAc;IAEd,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC9B,MAAM,EACJ,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,cAAc,EAC3D,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,EAC3D,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EACnE,gBAAgB,EAAE,iBAAiB,EAAE,WAAW,EAAE,YAAY,EAC9D,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,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