@shopify/shop-minis-react 0.7.0 → 0.7.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.
- package/dist/components/atoms/static-area.js +23 -0
- package/dist/components/atoms/static-area.js.map +1 -0
- package/dist/index.js +236 -234
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/static-area.tsx +28 -0
- package/src/components/index.ts +1 -0
- package/src/styles/animations.css +12 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
function n({
|
|
3
|
+
position: i,
|
|
4
|
+
children: t
|
|
5
|
+
}) {
|
|
6
|
+
return /* @__PURE__ */ e(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
style: {
|
|
10
|
+
position: "fixed",
|
|
11
|
+
left: 0,
|
|
12
|
+
right: 0,
|
|
13
|
+
[i]: 0,
|
|
14
|
+
viewTransitionName: `minis-fixed-${i}`
|
|
15
|
+
},
|
|
16
|
+
children: t
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
n as StaticArea
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=static-area.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static-area.js","sources":["../../../src/components/atoms/static-area.tsx"],"sourcesContent":["export interface StaticAreaDocProps {\n /** Position of the fixed area on screen - either pinned to top or bottom */\n position: 'top' | 'bottom'\n /** Static area content */\n children?: React.ReactNode\n}\n\nexport function StaticArea({\n position,\n children,\n}: {\n position: 'top' | 'bottom'\n children: React.ReactNode\n}) {\n return (\n <div\n style={{\n position: 'fixed',\n left: 0,\n right: 0,\n [position]: 0,\n viewTransitionName: `minis-fixed-${position}`,\n }}\n >\n {children}\n </div>\n )\n}\n"],"names":["StaticArea","position","children","jsx"],"mappings":";AAOO,SAASA,EAAW;AAAA,EACzB,UAAAC;AAAA,EACA,UAAAC;AACF,GAGG;AAEC,SAAA,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,UAAU;AAAA,QACV,MAAM;AAAA,QACN,OAAO;AAAA,QACP,CAACF,CAAQ,GAAG;AAAA,QACZ,oBAAoB,eAAeA,CAAQ;AAAA,MAC7C;AAAA,MAEC,UAAAC;AAAA,IAAA;AAAA,EACH;AAEJ;"}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DATA_NAVIGATION_TYPE_ATTRIBUTE as o, NAVIGATION_TYPES as t } from "./types/index.js";
|
|
2
2
|
import { MinisContainer as i } from "./components/MinisContainer.js";
|
|
3
|
-
import { AddToCartButton as
|
|
3
|
+
import { AddToCartButton as m } from "./components/commerce/add-to-cart.js";
|
|
4
4
|
import { BuyNowButton as s } from "./components/commerce/buy-now.js";
|
|
5
|
-
import { ProductCard as u, ProductCardBadge as f, ProductCardContainer as x, ProductCardFavoriteButton as c, ProductCardImage as d, ProductCardImageContainer as C, ProductCardInfo as g, ProductCardPrice as S, ProductCardReviewStars as
|
|
5
|
+
import { ProductCard as u, ProductCardBadge as f, ProductCardContainer as x, ProductCardFavoriteButton as c, ProductCardImage as d, ProductCardImageContainer as C, ProductCardInfo as g, ProductCardPrice as S, ProductCardReviewStars as A, ProductCardTitle as D } from "./components/commerce/product-card.js";
|
|
6
6
|
import { ProductLink as T } from "./components/commerce/product-link.js";
|
|
7
7
|
import { MerchantCard as I, MerchantCardContainer as R, MerchantCardHeader as v, MerchantCardInfo as w, MerchantCardName as B, MerchantCardRating as E } from "./components/commerce/merchant-card.js";
|
|
8
8
|
import { ProductCardSkeleton as F } from "./components/commerce/product-card-skeleton.js";
|
|
@@ -19,157 +19,158 @@ import { Image as rr } from "./components/atoms/image.js";
|
|
|
19
19
|
import { Touchable as or } from "./components/atoms/touchable.js";
|
|
20
20
|
import { LongPressDetector as ar } from "./components/atoms/long-press-detector.js";
|
|
21
21
|
import { AlertDialogAtom as pr } from "./components/atoms/alert-dialog.js";
|
|
22
|
-
import { List as
|
|
22
|
+
import { List as nr } from "./components/atoms/list.js";
|
|
23
23
|
import { VideoPlayer as lr } from "./components/atoms/video-player.js";
|
|
24
24
|
import { TextInput as fr } from "./components/atoms/text-input.js";
|
|
25
25
|
import { ContentWrapper as cr } from "./components/atoms/content-wrapper.js";
|
|
26
26
|
import { ProductVariantPrice as Cr } from "./components/atoms/product-variant-price.js";
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
27
|
+
import { StaticArea as Sr } from "./components/atoms/static-area.js";
|
|
28
|
+
import { Accordion as Dr, AccordionContent as Pr, AccordionItem as Tr, AccordionTrigger as hr } from "./components/ui/accordion.js";
|
|
29
|
+
import { Alert as Rr, AlertDescription as vr, AlertTitle as wr } from "./components/ui/alert.js";
|
|
30
|
+
import { AlertDialog as Er, AlertDialogAction as Mr, AlertDialogCancel as Fr, AlertDialogContent as Ur, AlertDialogDescription as br, AlertDialogFooter as Lr, AlertDialogHeader as kr, AlertDialogOverlay as Nr, AlertDialogPortal as Or, AlertDialogTitle as _r, AlertDialogTrigger as yr } from "./components/ui/alert-dialog.js";
|
|
31
|
+
import { Avatar as Hr, AvatarFallback as Vr, AvatarImage as zr } from "./components/ui/avatar.js";
|
|
32
|
+
import { Badge as Yr, badgeVariants as qr } from "./components/ui/badge.js";
|
|
33
|
+
import { Card as Qr, CardAction as Zr, CardContent as jr, CardDescription as Jr, CardFooter as Xr, CardHeader as $r, CardTitle as re } from "./components/ui/card.js";
|
|
34
|
+
import { Carousel as oe, CarouselContent as te, CarouselItem as ae, CarouselNext as ie, CarouselPrevious as pe } from "./components/ui/carousel.js";
|
|
35
|
+
import { Checkbox as ne } from "./components/ui/checkbox.js";
|
|
36
|
+
import { Dialog as le, DialogClose as ue, DialogContent as fe, DialogDescription as xe, DialogFooter as ce, DialogHeader as de, DialogOverlay as Ce, DialogPortal as ge, DialogTitle as Se, DialogTrigger as Ae } from "./components/ui/dialog.js";
|
|
37
|
+
import { Drawer as Pe, DrawerClose as Te, DrawerContent as he, DrawerDescription as Ie, DrawerFooter as Re, DrawerHeader as ve, DrawerOverlay as we, DrawerPortal as Be, DrawerTitle as Ee, DrawerTrigger as Me } from "./components/ui/drawer.js";
|
|
38
|
+
import { Input as Ue } from "./components/ui/input.js";
|
|
39
|
+
import { Label as Le } from "./components/ui/label.js";
|
|
40
|
+
import { Progress as Ne } from "./components/ui/progress.js";
|
|
41
|
+
import { RadioGroup as _e, RadioGroupItem as ye } from "./components/ui/radio-group.js";
|
|
42
|
+
import { ResizableHandle as He, ResizablePanel as Ve, ResizablePanelGroup as ze } from "./components/ui/resizable.js";
|
|
43
|
+
import { ScrollArea as Ye, ScrollBar as qe } from "./components/ui/scroll-area.js";
|
|
44
|
+
import { Select as Qe, SelectContent as Ze, SelectGroup as je, SelectItem as Je, SelectLabel as Xe, SelectScrollDownButton as $e, SelectScrollUpButton as ro, SelectSeparator as eo, SelectTrigger as oo, SelectValue as to } from "./components/ui/select.js";
|
|
45
|
+
import { Separator as io } from "./components/ui/separator.js";
|
|
46
|
+
import { Sheet as mo, SheetClose as no, SheetContent as so, SheetDescription as lo, SheetFooter as uo, SheetHeader as fo, SheetTitle as xo, SheetTrigger as co } from "./components/ui/sheet.js";
|
|
47
|
+
import { Toaster as go } from "./components/ui/sonner.js";
|
|
48
|
+
import { toast as Ao } from "./shop-minis-react/node_modules/.pnpm/sonner@2.0.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/sonner/dist/index.js";
|
|
49
|
+
import { Skeleton as Po } from "./components/ui/skeleton.js";
|
|
50
|
+
import { useRecentProducts as ho } from "./hooks/user/useRecentProducts.js";
|
|
51
|
+
import { useRecentShops as Ro } from "./hooks/user/useRecentShops.js";
|
|
52
|
+
import { useSavedProducts as wo } from "./hooks/user/useSavedProducts.js";
|
|
53
|
+
import { useSavedProductsActions as Eo } from "./hooks/user/useSavedProductsActions.js";
|
|
54
|
+
import { useFollowedShops as Fo } from "./hooks/user/useFollowedShops.js";
|
|
55
|
+
import { useFollowedShopsActions as bo } from "./hooks/user/useFollowedShopsActions.js";
|
|
56
|
+
import { useCurrentUser as ko } from "./hooks/user/useCurrentUser.js";
|
|
57
|
+
import { useOrders as Oo } from "./hooks/user/useOrders.js";
|
|
58
|
+
import { useBuyerAttributes as yo } from "./hooks/user/useBuyerAttributes.js";
|
|
59
|
+
import { useGenerateUserToken as Ho } from "./hooks/user/useGenerateUserToken.js";
|
|
60
|
+
import { useProductListActions as zo } from "./hooks/product/useProductListActions.js";
|
|
61
|
+
import { useProductLists as Yo } from "./hooks/product/useProductLists.js";
|
|
62
|
+
import { useProductList as Ko } from "./hooks/product/useProductList.js";
|
|
63
|
+
import { useProduct as Zo } from "./hooks/product/useProduct.js";
|
|
64
|
+
import { useProducts as Jo } from "./hooks/product/useProducts.js";
|
|
65
|
+
import { useProductVariants as $o } from "./hooks/product/useProductVariants.js";
|
|
66
|
+
import { useProductMedia as et } from "./hooks/product/useProductMedia.js";
|
|
67
|
+
import { useProductReviews as tt } from "./hooks/product/useProductReviews.js";
|
|
68
|
+
import { useProductSearch as it } from "./hooks/product/useProductSearch.js";
|
|
69
|
+
import { useRecommendedProducts as mt } from "./hooks/product/useRecommendedProducts.js";
|
|
70
|
+
import { usePopularProducts as st } from "./hooks/product/usePopularProducts.js";
|
|
71
|
+
import { useAsyncStorage as ut } from "./hooks/storage/useAsyncStorage.js";
|
|
72
|
+
import { useSecureStorage as xt } from "./hooks/storage/useSecureStorage.js";
|
|
73
|
+
import { useImageUpload as dt } from "./hooks/storage/useImageUpload.js";
|
|
74
|
+
import { useShopNavigation as gt } from "./hooks/navigation/useShopNavigation.js";
|
|
75
|
+
import { useCloseMini as At } from "./hooks/navigation/useCloseMini.js";
|
|
76
|
+
import { useDeeplink as Pt } from "./hooks/navigation/useDeeplink.js";
|
|
77
|
+
import { useNavigateWithTransition as ht } from "./hooks/navigation/useNavigateWithTransition.js";
|
|
78
|
+
import { useShop as Rt } from "./hooks/shop/useShop.js";
|
|
79
|
+
import { useRecommendedShops as wt } from "./hooks/shop/useRecommendedShops.js";
|
|
80
|
+
import { useCreateImageContent as Et } from "./hooks/content/useCreateImageContent.js";
|
|
81
|
+
import { useErrorToast as Ft } from "./hooks/util/useErrorToast.js";
|
|
82
|
+
import { useErrorScreen as bt } from "./hooks/util/useErrorScreen.js";
|
|
83
|
+
import { useShare as kt } from "./hooks/util/useShare.js";
|
|
84
|
+
import { useImagePicker as Ot } from "./hooks/util/useImagePicker.js";
|
|
85
|
+
import { useKeyboardAvoidingView as yt } from "./hooks/util/useKeyboardAvoidingView.js";
|
|
86
|
+
import { useRequestPermissions as Ht } from "./hooks/util/useRequestPermissions.js";
|
|
87
|
+
import { useOnMiniFocus as zt } from "./hooks/events/useOnMiniFocus.js";
|
|
88
|
+
import { useOnMiniBlur as Yt } from "./hooks/events/useOnMiniBlur.js";
|
|
89
|
+
import { useOnMiniClose as Kt } from "./hooks/events/useOnMiniClose.js";
|
|
90
|
+
import { useOnAppStateChange as Zt } from "./hooks/events/useOnAppStateChange.js";
|
|
91
|
+
import { useOnNavigateBack as Jt } from "./hooks/events/useOnNavigateBack.js";
|
|
92
|
+
import { buildDeeplinkUrl as $t } from "./utils/buildDeeplinkUrl.js";
|
|
93
|
+
import { MiniEntityNotFoundError as ea, MiniError as oa, MiniNetworkError as ta, formatError as aa } from "./utils/errors.js";
|
|
94
|
+
import { extractBrandTheme as pa, formatReviewCount as ma, getFeaturedImages as na, normalizeRating as sa } from "./utils/merchant-card.js";
|
|
95
|
+
import { parseUrl as ua } from "./utils/parseUrl.js";
|
|
96
|
+
import { dataURLToBlob as xa, fileToDataUri as ca, getResizedImageUrl as da, getThumbhashBlobURL as Ca, getThumbhashDataURL as ga } from "./utils/image.js";
|
|
97
|
+
import { formatMoney as Aa } from "./utils/formatMoney.js";
|
|
98
|
+
import { UserState as Pa, UserTokenGenerateUserErrorCode as Ta } from "./shop-minis-platform/src/types/user.js";
|
|
99
|
+
import { ContentCreateUserErrorCode as Ia, MinisContentStatus as Ra } from "./shop-minis-platform/src/types/content.js";
|
|
100
|
+
import { Social as wa } from "./shop-minis-platform/src/types/share.js";
|
|
101
|
+
import { DATA_FETCHING_DEFAULT_FETCH_POLICY as Ea, DATA_FETCHING_DEFAULT_PAGE_SIZE as Ma } from "./shop-minis-platform/src/constants.js";
|
|
101
102
|
export {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
103
|
+
Dr as Accordion,
|
|
104
|
+
Pr as AccordionContent,
|
|
105
|
+
Tr as AccordionItem,
|
|
106
|
+
hr as AccordionTrigger,
|
|
107
|
+
m as AddToCartButton,
|
|
108
|
+
Rr as Alert,
|
|
109
|
+
vr as AlertDescription,
|
|
110
|
+
Er as AlertDialog,
|
|
111
|
+
Mr as AlertDialogAction,
|
|
111
112
|
pr as AlertDialogAtom,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
113
|
+
Fr as AlertDialogCancel,
|
|
114
|
+
Ur as AlertDialogContent,
|
|
115
|
+
br as AlertDialogDescription,
|
|
116
|
+
Lr as AlertDialogFooter,
|
|
117
|
+
kr as AlertDialogHeader,
|
|
118
|
+
Nr as AlertDialogOverlay,
|
|
119
|
+
Or as AlertDialogPortal,
|
|
120
|
+
_r as AlertDialogTitle,
|
|
121
|
+
yr as AlertDialogTrigger,
|
|
122
|
+
wr as AlertTitle,
|
|
123
|
+
Hr as Avatar,
|
|
124
|
+
Vr as AvatarFallback,
|
|
125
|
+
zr as AvatarImage,
|
|
126
|
+
Yr as Badge,
|
|
126
127
|
j as Button,
|
|
127
128
|
s as BuyNowButton,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
129
|
+
Qr as Card,
|
|
130
|
+
Zr as CardAction,
|
|
131
|
+
jr as CardContent,
|
|
132
|
+
Jr as CardDescription,
|
|
133
|
+
Xr as CardFooter,
|
|
134
|
+
$r as CardHeader,
|
|
135
|
+
re as CardTitle,
|
|
136
|
+
oe as Carousel,
|
|
137
|
+
te as CarouselContent,
|
|
138
|
+
ae as CarouselItem,
|
|
139
|
+
ie as CarouselNext,
|
|
140
|
+
pe as CarouselPrevious,
|
|
141
|
+
ne as Checkbox,
|
|
142
|
+
Ia as ContentCreateUserErrorCode,
|
|
142
143
|
cr as ContentWrapper,
|
|
143
|
-
|
|
144
|
-
|
|
144
|
+
Ea as DATA_FETCHING_DEFAULT_FETCH_POLICY,
|
|
145
|
+
Ma as DATA_FETCHING_DEFAULT_PAGE_SIZE,
|
|
145
146
|
o as DATA_NAVIGATION_TYPE_ATTRIBUTE,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
147
|
+
le as Dialog,
|
|
148
|
+
ue as DialogClose,
|
|
149
|
+
fe as DialogContent,
|
|
150
|
+
xe as DialogDescription,
|
|
151
|
+
ce as DialogFooter,
|
|
152
|
+
de as DialogHeader,
|
|
153
|
+
Ce as DialogOverlay,
|
|
154
|
+
ge as DialogPortal,
|
|
155
|
+
Se as DialogTitle,
|
|
156
|
+
Ae as DialogTrigger,
|
|
157
|
+
Pe as Drawer,
|
|
158
|
+
Te as DrawerClose,
|
|
159
|
+
he as DrawerContent,
|
|
160
|
+
Ie as DrawerDescription,
|
|
161
|
+
Re as DrawerFooter,
|
|
162
|
+
ve as DrawerHeader,
|
|
163
|
+
we as DrawerOverlay,
|
|
164
|
+
Be as DrawerPortal,
|
|
165
|
+
Ee as DrawerTitle,
|
|
166
|
+
Me as DrawerTrigger,
|
|
166
167
|
V as FavoriteButton,
|
|
167
168
|
X as IconButton,
|
|
168
169
|
rr as Image,
|
|
169
170
|
W as ImageContentWrapper,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
Ue as Input,
|
|
172
|
+
Le as Label,
|
|
173
|
+
nr as List,
|
|
173
174
|
ar as LongPressDetector,
|
|
174
175
|
I as MerchantCard,
|
|
175
176
|
R as MerchantCardContainer,
|
|
@@ -178,11 +179,11 @@ export {
|
|
|
178
179
|
B as MerchantCardName,
|
|
179
180
|
E as MerchantCardRating,
|
|
180
181
|
b as MerchantCardSkeleton,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
ea as MiniEntityNotFoundError,
|
|
183
|
+
oa as MiniError,
|
|
184
|
+
ta as MiniNetworkError,
|
|
184
185
|
i as MinisContainer,
|
|
185
|
-
|
|
186
|
+
Ra as MinisContentStatus,
|
|
186
187
|
q as MinisRouter,
|
|
187
188
|
t as NAVIGATION_TYPES,
|
|
188
189
|
u as ProductCard,
|
|
@@ -193,108 +194,109 @@ export {
|
|
|
193
194
|
C as ProductCardImageContainer,
|
|
194
195
|
g as ProductCardInfo,
|
|
195
196
|
S as ProductCardPrice,
|
|
196
|
-
|
|
197
|
+
A as ProductCardReviewStars,
|
|
197
198
|
F as ProductCardSkeleton,
|
|
198
|
-
|
|
199
|
+
D as ProductCardTitle,
|
|
199
200
|
T as ProductLink,
|
|
200
201
|
Cr as ProductVariantPrice,
|
|
201
|
-
|
|
202
|
+
Ne as Progress,
|
|
202
203
|
k as QuantitySelector,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
204
|
+
_e as RadioGroup,
|
|
205
|
+
ye as RadioGroupItem,
|
|
206
|
+
He as ResizableHandle,
|
|
207
|
+
Ve as ResizablePanel,
|
|
208
|
+
ze as ResizablePanelGroup,
|
|
209
|
+
Ye as ScrollArea,
|
|
210
|
+
qe as ScrollBar,
|
|
210
211
|
O as Search,
|
|
211
212
|
_ as SearchInput,
|
|
212
213
|
y as SearchProvider,
|
|
213
214
|
G as SearchResultsList,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
215
|
+
Qe as Select,
|
|
216
|
+
Ze as SelectContent,
|
|
217
|
+
je as SelectGroup,
|
|
218
|
+
Je as SelectItem,
|
|
219
|
+
Xe as SelectLabel,
|
|
220
|
+
$e as SelectScrollDownButton,
|
|
221
|
+
ro as SelectScrollUpButton,
|
|
222
|
+
eo as SelectSeparator,
|
|
223
|
+
oo as SelectTrigger,
|
|
224
|
+
to as SelectValue,
|
|
225
|
+
io as Separator,
|
|
226
|
+
mo as Sheet,
|
|
227
|
+
no as SheetClose,
|
|
228
|
+
so as SheetContent,
|
|
229
|
+
lo as SheetDescription,
|
|
230
|
+
uo as SheetFooter,
|
|
231
|
+
fo as SheetHeader,
|
|
232
|
+
xo as SheetTitle,
|
|
233
|
+
co as SheetTrigger,
|
|
234
|
+
Po as Skeleton,
|
|
235
|
+
wa as Social,
|
|
236
|
+
Sr as StaticArea,
|
|
235
237
|
fr as TextInput,
|
|
236
|
-
|
|
238
|
+
go as Toaster,
|
|
237
239
|
or as Touchable,
|
|
238
240
|
Q as TransitionLink,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
+
Pa as UserState,
|
|
242
|
+
Ta as UserTokenGenerateUserErrorCode,
|
|
241
243
|
lr as VideoPlayer,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
244
|
+
qr as badgeVariants,
|
|
245
|
+
$t as buildDeeplinkUrl,
|
|
246
|
+
xa as dataURLToBlob,
|
|
247
|
+
pa as extractBrandTheme,
|
|
248
|
+
ca as fileToDataUri,
|
|
249
|
+
aa as formatError,
|
|
250
|
+
Aa as formatMoney,
|
|
251
|
+
ma as formatReviewCount,
|
|
252
|
+
na as getFeaturedImages,
|
|
253
|
+
da as getResizedImageUrl,
|
|
254
|
+
Ca as getThumbhashBlobURL,
|
|
255
|
+
ga as getThumbhashDataURL,
|
|
256
|
+
sa as normalizeRating,
|
|
257
|
+
ua as parseUrl,
|
|
258
|
+
Ao as toast,
|
|
259
|
+
ut as useAsyncStorage,
|
|
260
|
+
yo as useBuyerAttributes,
|
|
261
|
+
At as useCloseMini,
|
|
262
|
+
Et as useCreateImageContent,
|
|
263
|
+
ko as useCurrentUser,
|
|
264
|
+
Pt as useDeeplink,
|
|
265
|
+
bt as useErrorScreen,
|
|
266
|
+
Ft as useErrorToast,
|
|
267
|
+
Fo as useFollowedShops,
|
|
268
|
+
bo as useFollowedShopsActions,
|
|
269
|
+
Ho as useGenerateUserToken,
|
|
270
|
+
Ot as useImagePicker,
|
|
271
|
+
dt as useImageUpload,
|
|
272
|
+
yt as useKeyboardAvoidingView,
|
|
273
|
+
ht as useNavigateWithTransition,
|
|
274
|
+
Zt as useOnAppStateChange,
|
|
275
|
+
Yt as useOnMiniBlur,
|
|
276
|
+
Kt as useOnMiniClose,
|
|
277
|
+
zt as useOnMiniFocus,
|
|
278
|
+
Jt as useOnNavigateBack,
|
|
279
|
+
Oo as useOrders,
|
|
280
|
+
st as usePopularProducts,
|
|
281
|
+
Zo as useProduct,
|
|
282
|
+
Ko as useProductList,
|
|
283
|
+
zo as useProductListActions,
|
|
284
|
+
Yo as useProductLists,
|
|
285
|
+
et as useProductMedia,
|
|
286
|
+
tt as useProductReviews,
|
|
287
|
+
it as useProductSearch,
|
|
288
|
+
$o as useProductVariants,
|
|
289
|
+
Jo as useProducts,
|
|
290
|
+
ho as useRecentProducts,
|
|
291
|
+
Ro as useRecentShops,
|
|
292
|
+
mt as useRecommendedProducts,
|
|
293
|
+
wt as useRecommendedShops,
|
|
294
|
+
Ht as useRequestPermissions,
|
|
295
|
+
wo as useSavedProducts,
|
|
296
|
+
Eo as useSavedProductsActions,
|
|
297
|
+
xt as useSecureStorage,
|
|
298
|
+
kt as useShare,
|
|
299
|
+
Rt as useShop,
|
|
300
|
+
gt as useShopNavigation
|
|
299
301
|
};
|
|
300
302
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface StaticAreaDocProps {
|
|
2
|
+
/** Position of the fixed area on screen - either pinned to top or bottom */
|
|
3
|
+
position: 'top' | 'bottom'
|
|
4
|
+
/** Static area content */
|
|
5
|
+
children?: React.ReactNode
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function StaticArea({
|
|
9
|
+
position,
|
|
10
|
+
children,
|
|
11
|
+
}: {
|
|
12
|
+
position: 'top' | 'bottom'
|
|
13
|
+
children: React.ReactNode
|
|
14
|
+
}) {
|
|
15
|
+
return (
|
|
16
|
+
<div
|
|
17
|
+
style={{
|
|
18
|
+
position: 'fixed',
|
|
19
|
+
left: 0,
|
|
20
|
+
right: 0,
|
|
21
|
+
[position]: 0,
|
|
22
|
+
viewTransitionName: `minis-fixed-${position}`,
|
|
23
|
+
}}
|
|
24
|
+
>
|
|
25
|
+
{children}
|
|
26
|
+
</div>
|
|
27
|
+
)
|
|
28
|
+
}
|
package/src/components/index.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from './atoms/video-player'
|
|
|
27
27
|
export * from './atoms/text-input'
|
|
28
28
|
export * from './atoms/content-wrapper'
|
|
29
29
|
export * from './atoms/product-variant-price'
|
|
30
|
+
export * from './atoms/static-area'
|
|
30
31
|
|
|
31
32
|
export * from './ui/accordion'
|
|
32
33
|
export * from './ui/alert'
|
|
@@ -141,4 +141,16 @@
|
|
|
141
141
|
animation: 0 !important;
|
|
142
142
|
opacity: 0 !important;
|
|
143
143
|
}
|
|
144
|
+
|
|
145
|
+
/* Fixed elements that persist across view transitions */
|
|
146
|
+
::view-transition-group(minis-fixed-top),
|
|
147
|
+
::view-transition-old(minis-fixed-top),
|
|
148
|
+
::view-transition-new(minis-fixed-top),
|
|
149
|
+
::view-transition-group(minis-fixed-bottom),
|
|
150
|
+
::view-transition-old(minis-fixed-bottom),
|
|
151
|
+
::view-transition-new(minis-fixed-bottom) {
|
|
152
|
+
animation: none !important;
|
|
153
|
+
}
|
|
144
154
|
}
|
|
155
|
+
|
|
156
|
+
|