@tapcart/mobile-components 0.1.8 → 0.1.41
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/ui/button.js +1 -1
- package/dist/components/ui/product-card.d.ts +32 -0
- package/dist/components/ui/product-card.d.ts.map +1 -0
- package/dist/components/ui/product-card.js +22 -0
- package/dist/index.js +1 -1
- package/package.json +3 -2
- package/README.md +0 -265
- package/dist/globals.css +0 -146
|
@@ -15,7 +15,7 @@ import { Slot } from "@radix-ui/react-slot";
|
|
|
15
15
|
import { cva } from "class-variance-authority";
|
|
16
16
|
import { IconLoader2 } from "@tabler/icons-react";
|
|
17
17
|
import { cn } from "../../lib/utils";
|
|
18
|
-
const buttonVariants = cva("flex rounded items-center justify-center text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:bg-stateColors-disabled disabled:pointer-events-none ring-offset-background overflow-elipse whitespace-nowrap truncate", {
|
|
18
|
+
const buttonVariants = cva("w-full flex rounded items-center justify-center text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:bg-stateColors-disabled disabled:pointer-events-none ring-offset-background overflow-elipse whitespace-nowrap truncate", {
|
|
19
19
|
variants: {
|
|
20
20
|
size: {
|
|
21
21
|
default: "h-10 py-3 px-4",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type ProductCardProps = {
|
|
3
|
+
product: {
|
|
4
|
+
variants: {
|
|
5
|
+
compare_at_price: number | null;
|
|
6
|
+
price: number;
|
|
7
|
+
}[];
|
|
8
|
+
images: {
|
|
9
|
+
src: string;
|
|
10
|
+
}[];
|
|
11
|
+
title: string;
|
|
12
|
+
tags: string[];
|
|
13
|
+
};
|
|
14
|
+
className?: string;
|
|
15
|
+
quickAdd: (e: React.MouseEvent<HTMLButtonElement>, product: any) => void;
|
|
16
|
+
openProduct: (e: React.MouseEvent<HTMLDivElement>, product: any) => void;
|
|
17
|
+
imageRatio: "1:1" | "2:3" | "4:5";
|
|
18
|
+
imageFit: "fit" | "fill";
|
|
19
|
+
theme: {
|
|
20
|
+
textColors: {
|
|
21
|
+
priceProduct: string;
|
|
22
|
+
productTitle: string;
|
|
23
|
+
};
|
|
24
|
+
font: {
|
|
25
|
+
productTitle: string;
|
|
26
|
+
productPrice: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
declare const ProductCard: React.FC<ProductCardProps>;
|
|
31
|
+
export default ProductCard;
|
|
32
|
+
//# sourceMappingURL=product-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-card.d.ts","sourceRoot":"","sources":["../../../components/ui/product-card.tsx"],"names":[],"mappings":";AAGA,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE;QACP,QAAQ,EAAE;YAAE,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QAC/D,MAAM,EAAE;YAAE,GAAG,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QAC1B,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,EAAE,CAAC;KAChB,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IACzE,WAAW,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IACzE,UAAU,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAClC,QAAQ,EAAE,KAAK,GAAG,MAAM,CAAC;IACzB,KAAK,EAAE;QACL,UAAU,EAAE;YACV,YAAY,EAAE,MAAM,CAAC;YACrB,YAAY,EAAE,MAAM,CAAC;SACtB,CAAC;QACF,IAAI,EAAE;YACJ,YAAY,EAAE,MAAM,CAAC;YACrB,YAAY,EAAE,MAAM,CAAC;SACtB,CAAC;KACH,CAAC;CACH,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0E3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button, AspectRatio, Text, Badge, Loading } from "@tapcart/mobile-components";
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
4
|
+
const ProductCard = ({ product, className, quickAdd, openProduct, imageRatio, imageFit, theme, }) => {
|
|
5
|
+
const [loading, setLoading] = useState(true);
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
// Simulate loading
|
|
8
|
+
const timer = setTimeout(() => setLoading(false), 1000);
|
|
9
|
+
return () => clearTimeout(timer);
|
|
10
|
+
}, []);
|
|
11
|
+
const variant = product.variants[0];
|
|
12
|
+
const aspectRatio = {
|
|
13
|
+
"1:1": 1,
|
|
14
|
+
"2:3": 2 / 3,
|
|
15
|
+
"4:5": 4 / 5,
|
|
16
|
+
}[imageRatio];
|
|
17
|
+
if (loading) {
|
|
18
|
+
return _jsx(Loading, {});
|
|
19
|
+
}
|
|
20
|
+
return (_jsxs("div", Object.assign({ className: `${className}`, onClick: (e) => openProduct(e, product) }, { children: [_jsxs(AspectRatio, Object.assign({ ratio: aspectRatio }, { children: [_jsx("img", { className: `w-full h-full object-${imageFit} rounded-t-lg`, src: product.images[0].src, alt: product.title }), product.tags.includes("SUMMER") && (_jsx(Badge, Object.assign({ variant: "secondary", className: "absolute bottom-[15px] rounded-none bg-[#e2fe9f] pointer-events-none" }, { children: "SUMMER" })))] })), _jsx(Button, Object.assign({ variant: "quickadd", size: "sm", onClick: (e) => quickAdd(e, product) }, { children: "+ Quick add" })), _jsx(Text, Object.assign({ className: `text-xs mt-[8px] ${theme.font.productTitle}`, style: { color: theme.textColors.productTitle } }, { children: product.title })), _jsxs("div", Object.assign({ className: "flex mt-[4px]" }, { children: [variant.compare_at_price && (_jsxs(Text, Object.assign({ className: `text-sm mr-[8px] line-through text-red-500 ${theme.font.productPrice}` }, { children: ["$", variant.compare_at_price] }))), _jsxs(Text, Object.assign({ className: `text-sm ${theme.font.productPrice}`, style: { color: theme.textColors.priceProduct } }, { children: ["$", variant.price] }))] }))] })));
|
|
21
|
+
};
|
|
22
|
+
export default ProductCard;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tapcart/mobile-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.41",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"ui:add": "pnpm dlx shadcn-ui@latest add",
|
|
18
18
|
"build:styles": "postcss styles/globals.css -o dist/styles.css",
|
|
19
19
|
"build:ts": "tsc -p tsconfig.json",
|
|
20
|
-
"build": "pnpm run build:ts && pnpm run build:styles"
|
|
20
|
+
"build": "pnpm run build:ts && pnpm run build:styles",
|
|
21
|
+
"build:sdk": "tsc && node scripts/build-css.js"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
23
24
|
"@types/react": "^18.2.0",
|
package/README.md
DELETED
|
@@ -1,265 +0,0 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
<a href="https://tapcart.com">
|
|
3
|
-
<img
|
|
4
|
-
src="https://storage.googleapis.com/tapcart-asset-uploads-prod/dx-github.png"
|
|
5
|
-
alt=""
|
|
6
|
-
/>
|
|
7
|
-
</a>
|
|
8
|
-
</div>
|
|
9
|
-
|
|
10
|
-
# @tapcart/mobile-components
|
|
11
|
-
|
|
12
|
-
> Build the next-gen shopper experience for Tapcart's core product, the mobile app.
|
|
13
|
-
|
|
14
|
-
[](https://tapcart-consumer-web-storybook.vercel.app/) [](https://www.npmjs.com/package/@tapcart/mobile-components)
|
|
15
|
-
|
|
16
|
-
| Status | Owner | Help |
|
|
17
|
-
| ------ | ---------------- |-----------------|
|
|
18
|
-
| Active | @tapcart/mobile-components | dev@tapcart.com |
|
|
19
|
-
|
|
20
|
-
## About this repo
|
|
21
|
-
|
|
22
|
-
The tapcart/mobile-components repository is a component library made up of all the code components that drive our app experience.
|
|
23
|
-
|
|
24
|
-
## Installation using NPM
|
|
25
|
-
|
|
26
|
-
### Install into your React.js project
|
|
27
|
-
|
|
28
|
-
```sh
|
|
29
|
-
npm install @tapcart/mobile-components
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
## Usage
|
|
36
|
-
**Easy. Cake. Done.**
|
|
37
|
-
|
|
38
|
-
```jsx
|
|
39
|
-
import {
|
|
40
|
-
Button,
|
|
41
|
-
Input,
|
|
42
|
-
Accordion,
|
|
43
|
-
AccordionContent,
|
|
44
|
-
AccordionItem,
|
|
45
|
-
AccordionTrigger,
|
|
46
|
-
AspectRatio,
|
|
47
|
-
Switch,
|
|
48
|
-
Label,
|
|
49
|
-
Separator,
|
|
50
|
-
Badge,
|
|
51
|
-
Video,
|
|
52
|
-
ScrollArea,
|
|
53
|
-
Text,
|
|
54
|
-
Toast,
|
|
55
|
-
Toaster,
|
|
56
|
-
useToast,
|
|
57
|
-
Icon,
|
|
58
|
-
Container,
|
|
59
|
-
Grid,
|
|
60
|
-
ToggleGroup,
|
|
61
|
-
ToggleGroupItem,
|
|
62
|
-
} from "@tapcart/mobile-components/dist";
|
|
63
|
-
import "@tapcart/mobile-components/dist/styles.css";
|
|
64
|
-
|
|
65
|
-
<Video>
|
|
66
|
-
<source src="https://assets.tapcart.com/image-block/video/FhEjfK4zD2_6614803b487c620032dc21c4.mp4" />
|
|
67
|
-
</Video>
|
|
68
|
-
|
|
69
|
-
<Separator />
|
|
70
|
-
|
|
71
|
-
<Container variant="spaced">
|
|
72
|
-
<Input placeholder="Search for products" type="email"></Input>
|
|
73
|
-
</Container>
|
|
74
|
-
|
|
75
|
-
<Separator />
|
|
76
|
-
|
|
77
|
-
<Accordion type="single" collapsible className="w-full">
|
|
78
|
-
<AccordionItem value="item-1">
|
|
79
|
-
<Container>
|
|
80
|
-
<AccordionTrigger>
|
|
81
|
-
<div className="flex">
|
|
82
|
-
<Icon>
|
|
83
|
-
<svg
|
|
84
|
-
width="15"
|
|
85
|
-
height="18"
|
|
86
|
-
viewBox="0 0 15 18"
|
|
87
|
-
fill="none"
|
|
88
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
89
|
-
>
|
|
90
|
-
<path
|
|
91
|
-
d="M7.3 8.14a4.08 4.08 0 0 1-4.07-4.07C3.23 1.83 5.05 0 7.3 0s4.07 1.83 4.07 4.07A4.08 4.08 0 0 1 7.3 8.14Zm0-6.64a2.57 2.57 0 1 0 0 5.14 2.57 2.57 0 1 0 0-5.14ZM12.88 17.69H1.72c-.95 0-1.72-.77-1.72-1.72 0-3.54 2.88-6.42 6.42-6.42h1.76c3.54 0 6.42 2.88 6.42 6.42 0 .95-.77 1.72-1.72 1.72Zm-6.46-6.64a4.93 4.93 0 0 0-4.92 4.92c0 .12.1.22.22.22h11.16c.12 0 .22-.1.22-.22a4.93 4.93 0 0 0-4.92-4.92H6.42Z"
|
|
92
|
-
fill="currentColor"
|
|
93
|
-
></path>
|
|
94
|
-
</svg>
|
|
95
|
-
</Icon>
|
|
96
|
-
Product details
|
|
97
|
-
</div>
|
|
98
|
-
</AccordionTrigger>
|
|
99
|
-
<AccordionContent>
|
|
100
|
-
<img src="https://assets.tapcart.com/pdp/images/FhEjfK4zD2_6629470724b8221a7b750a97.png" />
|
|
101
|
-
</AccordionContent>
|
|
102
|
-
</Container>
|
|
103
|
-
</AccordionItem>
|
|
104
|
-
<AccordionItem value="item-2">
|
|
105
|
-
<Container>
|
|
106
|
-
<AccordionTrigger>
|
|
107
|
-
<div className="flex">
|
|
108
|
-
<Icon>
|
|
109
|
-
<svg
|
|
110
|
-
width="18"
|
|
111
|
-
height="17"
|
|
112
|
-
viewBox="0 0 18 17"
|
|
113
|
-
fill="none"
|
|
114
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
115
|
-
>
|
|
116
|
-
<path
|
|
117
|
-
d="M6.61 13.22c-1.77 0-3.43-.69-4.67-1.94A6.567 6.567 0 0 1 0 6.61c0-1.76.69-3.43 1.94-4.67A6.533 6.533 0 0 1 6.61 0c1.77 0 3.43.69 4.67 1.94a6.567 6.567 0 0 1 1.94 4.67c0 1.76-.69 3.43-1.94 4.67a6.567 6.567 0 0 1-4.67 1.94Zm0-11.72C5.24 1.5 3.96 2.03 3 3c-.97.97-1.5 2.25-1.5 3.61 0 1.36.53 2.65 1.5 3.61.96.97 2.25 1.5 3.61 1.5 1.36 0 2.65-.53 3.61-1.5.97-.97 1.5-2.25 1.5-3.61 0-1.36-.53-2.65-1.5-3.61-.96-.97-2.25-1.5-3.61-1.5ZM16.4 16.15c-.19 0-.38-.07-.53-.22l-3.18-3.18a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l3.18 3.18c.29.29.29.77 0 1.06-.15.15-.34.22-.53.22Z"
|
|
118
|
-
fill="currentColor"
|
|
119
|
-
></path>
|
|
120
|
-
</svg>
|
|
121
|
-
</Icon>
|
|
122
|
-
Size Guide
|
|
123
|
-
</div>
|
|
124
|
-
</AccordionTrigger>
|
|
125
|
-
<AccordionContent>
|
|
126
|
-
Yes. It comes with default styles that matches the other
|
|
127
|
-
components' aesthetic.
|
|
128
|
-
</AccordionContent>
|
|
129
|
-
</Container>
|
|
130
|
-
</AccordionItem>
|
|
131
|
-
</Accordion>
|
|
132
|
-
|
|
133
|
-
{/*Aspect Ratio+ scroll area Example*/}
|
|
134
|
-
<Container>
|
|
135
|
-
<Text className="py-2 font-medium">New Drop Collection</Text>
|
|
136
|
-
</Container>
|
|
137
|
-
|
|
138
|
-
<ScrollArea>
|
|
139
|
-
{Products.map((product) => (
|
|
140
|
-
<ProductCard
|
|
141
|
-
className="w-[138px] mr-[7px]"
|
|
142
|
-
key={product.id}
|
|
143
|
-
product={product}
|
|
144
|
-
quickAdd={quickAdd}
|
|
145
|
-
openProduct={clickProduct}
|
|
146
|
-
switchVariant={switchVariant}
|
|
147
|
-
carousel={false}
|
|
148
|
-
></ProductCard>
|
|
149
|
-
))}
|
|
150
|
-
</ScrollArea>
|
|
151
|
-
|
|
152
|
-
<Separator className="my-[15px]" />
|
|
153
|
-
|
|
154
|
-
<div className="container flex items-center space-x-2">
|
|
155
|
-
<ToggleGroup
|
|
156
|
-
onValueChange={(e) => changeGrid(e)}
|
|
157
|
-
type="single"
|
|
158
|
-
defaultValue="2">
|
|
159
|
-
<ToggleGroupItem value="1" aria-label="Toggle bold">
|
|
160
|
-
<Icon>
|
|
161
|
-
<svg
|
|
162
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
163
|
-
width="24"
|
|
164
|
-
height="24"
|
|
165
|
-
viewBox="0 0 24 24"
|
|
166
|
-
fill="none"
|
|
167
|
-
stroke="currentColor"
|
|
168
|
-
stroke-width="2"
|
|
169
|
-
stroke-linecap="round"
|
|
170
|
-
stroke-linejoin="round"
|
|
171
|
-
className="lucide lucide-rows-2">
|
|
172
|
-
<rect width="18" height="18" x="3" y="3" rx="2" />
|
|
173
|
-
<path d="M3 12h18" />
|
|
174
|
-
</svg>
|
|
175
|
-
</Icon>
|
|
176
|
-
</ToggleGroupItem>
|
|
177
|
-
<ToggleGroupItem value="2" aria-label="Toggle italic">
|
|
178
|
-
<Icon>
|
|
179
|
-
<svg
|
|
180
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
181
|
-
width="24"
|
|
182
|
-
height="24"
|
|
183
|
-
viewBox="0 0 24 24"
|
|
184
|
-
fill="none"
|
|
185
|
-
stroke="currentColor"
|
|
186
|
-
stroke-width="2"
|
|
187
|
-
stroke-linecap="round"
|
|
188
|
-
stroke-linejoin="round"
|
|
189
|
-
className="lucide lucide-columns-3"
|
|
190
|
-
>
|
|
191
|
-
<rect width="18" height="18" x="3" y="3" rx="2" />
|
|
192
|
-
<path d="M9 3v18" />
|
|
193
|
-
<path d="M15 3v18" />
|
|
194
|
-
</svg>
|
|
195
|
-
</Icon>
|
|
196
|
-
</ToggleGroupItem>
|
|
197
|
-
<ToggleGroupItem value="3" aria-label="Toggle underline">
|
|
198
|
-
<Icon>
|
|
199
|
-
<svg
|
|
200
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
201
|
-
width="24"
|
|
202
|
-
height="24"
|
|
203
|
-
viewBox="0 0 24 24"
|
|
204
|
-
fill="none"
|
|
205
|
-
stroke="currentColor"
|
|
206
|
-
stroke-width="2"
|
|
207
|
-
stroke-linecap="round"
|
|
208
|
-
stroke-linejoin="round"
|
|
209
|
-
className="lucide lucide-columns-3">
|
|
210
|
-
<rect width="18" height="18" x="3" y="3" rx="2" />
|
|
211
|
-
<path d="M9 3v18" />
|
|
212
|
-
<path d="M15 3v18" />
|
|
213
|
-
</svg>
|
|
214
|
-
</Icon>
|
|
215
|
-
</ToggleGroupItem>
|
|
216
|
-
</ToggleGroup>
|
|
217
|
-
</div>
|
|
218
|
-
|
|
219
|
-
<Separator className="my-[15px]" />
|
|
220
|
-
|
|
221
|
-
<Grid columns={grid} className="">
|
|
222
|
-
{Products.map((product) => (
|
|
223
|
-
<ProductCard
|
|
224
|
-
key={product.id}
|
|
225
|
-
className="w-full"
|
|
226
|
-
product={product}
|
|
227
|
-
quickAdd={quickAdd}
|
|
228
|
-
openProduct={clickProduct}
|
|
229
|
-
switchVariant={switchVariant}
|
|
230
|
-
carousel={true}
|
|
231
|
-
></ProductCard>
|
|
232
|
-
))}
|
|
233
|
-
</Grid>
|
|
234
|
-
|
|
235
|
-
```
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
## Licenses
|
|
239
|
-
|
|
240
|
-
Copyright (c) 2017-present Tapcart Inc.
|
|
241
|
-
|
|
242
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
243
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
244
|
-
in the Software without restriction, including without limitation the rights
|
|
245
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
246
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
247
|
-
furnished to do so, subject to the following conditions:
|
|
248
|
-
|
|
249
|
-
The above copyright notice and this permission notice shall be included in all
|
|
250
|
-
copies or substantial portions of the Software.
|
|
251
|
-
|
|
252
|
-
The rights granted above may only be exercised to develop and distribute
|
|
253
|
-
applications that integrate or interoperate with Tapcart software or services,
|
|
254
|
-
and in the case of external, stand-alone applications that do not embed
|
|
255
|
-
directly inside Tapcart, the rights granted above may only be exercised to
|
|
256
|
-
develop and distribute applications that are dissimilar and visually distinct
|
|
257
|
-
from Tapcart products and services, as determined by Tapcart in its sole discretion.
|
|
258
|
-
|
|
259
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
260
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
261
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
262
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
263
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
264
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
265
|
-
SOFTWARE.
|
package/dist/globals.css
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
@tailwind base;
|
|
2
|
-
@tailwind components;
|
|
3
|
-
@tailwind utilities;
|
|
4
|
-
|
|
5
|
-
@layer base {
|
|
6
|
-
*::-webkit-scrollbar {
|
|
7
|
-
display: none;
|
|
8
|
-
}
|
|
9
|
-
* {
|
|
10
|
-
-ms-overflow-style: none; /* IE and Edge */
|
|
11
|
-
scrollbar-width: none; /* Firefox */
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:root {
|
|
15
|
-
--background: 0 0% 100%;
|
|
16
|
-
--foreground: 222.2 47.4% 11.2%;
|
|
17
|
-
|
|
18
|
-
--muted: 210 40% 96.1%;
|
|
19
|
-
--muted-foreground: 215.4 16.3% 46.9%;
|
|
20
|
-
|
|
21
|
-
--popover: 0 0% 100%;
|
|
22
|
-
--popover-foreground: 222.2 47.4% 11.2%;
|
|
23
|
-
|
|
24
|
-
--card: 0 0% 100%;
|
|
25
|
-
--card-foreground: 222.2 47.4% 11.2%;
|
|
26
|
-
|
|
27
|
-
--border: 214.3 31.8% 91.4%;
|
|
28
|
-
--input: 214.3 31.8% 91.4%;
|
|
29
|
-
|
|
30
|
-
--primary: 222.2 47.4% 11.2%;
|
|
31
|
-
--primary-foreground: 210 40% 98%;
|
|
32
|
-
|
|
33
|
-
--secondary: 210 40% 96.1%;
|
|
34
|
-
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
35
|
-
|
|
36
|
-
--accent: 210 40% 96.1%;
|
|
37
|
-
--accent-foreground: 222.2 47.4% 11.2%;
|
|
38
|
-
|
|
39
|
-
--destructive: 0 100% 50%;
|
|
40
|
-
--destructive-foreground: 210 40% 98%;
|
|
41
|
-
|
|
42
|
-
--ring: 215 20.2% 65.1%;
|
|
43
|
-
|
|
44
|
-
--radius: 0.5rem;
|
|
45
|
-
|
|
46
|
-
--coreColors-pageColor: #ffffff;
|
|
47
|
-
--coreColors-shadow: #000000;
|
|
48
|
-
--coreColors-brandColorPrimary: #000000;
|
|
49
|
-
--coreColors-headerBackground: #ffffffff;
|
|
50
|
-
--coreColors-inputBackground: #ffffffff;
|
|
51
|
-
--coreColors-modalBackground: #ffffffff;
|
|
52
|
-
--coreColors-tabBar: #ffffffff;
|
|
53
|
-
--coreColors-dividingLines: #e3e3e3ff;
|
|
54
|
-
--coreColors-shadowsEnabled: "true";
|
|
55
|
-
--coreColors-primaryIcon: #121212ff;
|
|
56
|
-
--coreColors-secondaryIcon: #727272ff;
|
|
57
|
-
--coreColors-headerIcon: #121212ff;
|
|
58
|
-
|
|
59
|
-
--textColors-primaryColor: #121212ff;
|
|
60
|
-
--textColors-secondaryColor: #727272ff;
|
|
61
|
-
--textColors-pageTitle: #121212ff;
|
|
62
|
-
--textColors-legalText: #727272;
|
|
63
|
-
--textColors-productTitle: #727272;
|
|
64
|
-
--textColors-priceText: #121212ff;
|
|
65
|
-
--textColors-strikethroughPriceText: #727272ff;
|
|
66
|
-
--textColors-salePriceText: #d91e18ff;
|
|
67
|
-
|
|
68
|
-
--buttonColors-primaryText: #ffffff;
|
|
69
|
-
--buttonColors-primaryFill: #000000;
|
|
70
|
-
--buttonColors-primaryOutline: #000000;
|
|
71
|
-
--buttonColors-primaryShadow: #ffffff;
|
|
72
|
-
--buttonColors-disabled: #707070;
|
|
73
|
-
--buttonColors-secondaryText: #000000;
|
|
74
|
-
--buttonColors-secondaryFill: #ffffff;
|
|
75
|
-
--buttonColors-secondaryOutline: #000000;
|
|
76
|
-
--buttonColors-secondaryShadow: #ffffff;
|
|
77
|
-
|
|
78
|
-
--stateColors-disabled: #707070;
|
|
79
|
-
--stateColors-error: #d91e18ff;
|
|
80
|
-
|
|
81
|
-
--stateColors-subscriptions: #008000ff;
|
|
82
|
-
--stateColors-favorites: #d91e18ff;
|
|
83
|
-
--stateColors-reviews: #ffaf02ff;
|
|
84
|
-
--stateColors-success: #008000ff;
|
|
85
|
-
--stateColors-warning: #ffaf02ff;
|
|
86
|
-
--stateColors-skeleton: #e3e3e3ff;
|
|
87
|
-
|
|
88
|
-
--productImage-aspectRatio: "2:3";
|
|
89
|
-
--productImage-scaling: cover;
|
|
90
|
-
--productImage-isCustom: "false";
|
|
91
|
-
}
|
|
92
|
-
.productImages-scaling {
|
|
93
|
-
object-fit: var(--productImage-scaling);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/*.dark {*/
|
|
97
|
-
/* --background: 222.2 84% 4.9%;*/
|
|
98
|
-
/* --foreground: 210 40% 98%;*/
|
|
99
|
-
/* --card: 222.2 84% 4.9%;*/
|
|
100
|
-
/* --card-foreground: 210 40% 98%;*/
|
|
101
|
-
/* --popover: 222.2 84% 4.9%;*/
|
|
102
|
-
/* --popover-foreground: 210 40% 98%;*/
|
|
103
|
-
/* --primary: 210 40% 98%;*/
|
|
104
|
-
/* --primary-foreground: 222.2 47.4% 11.2%;*/
|
|
105
|
-
/* --secondary: 217.2 32.6% 17.5%;*/
|
|
106
|
-
/* --secondary-foreground: 210 40% 98%;*/
|
|
107
|
-
/* --muted: 217.2 32.6% 17.5%;*/
|
|
108
|
-
/* --muted-foreground: 215 20.2% 65.1%;*/
|
|
109
|
-
/* --accent: 217.2 32.6% 17.5%;*/
|
|
110
|
-
/* --accent-foreground: 210 40% 98%;*/
|
|
111
|
-
/* --destructive: 0 62.8% 30.6%;*/
|
|
112
|
-
/* --destructive-foreground: 210 40% 98%;*/
|
|
113
|
-
/* --border: 217.2 32.6% 17.5%;*/
|
|
114
|
-
/* --input: 217.2 32.6% 17.5%;*/
|
|
115
|
-
/* --ring: 212.7 26.8% 83.9;*/
|
|
116
|
-
/*}*/
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
@layer base {
|
|
120
|
-
* {
|
|
121
|
-
@apply border-border;
|
|
122
|
-
}
|
|
123
|
-
body {
|
|
124
|
-
@apply bg-background text-foreground;
|
|
125
|
-
font-feature-settings: "rlig" 1, "calt" 1;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
@layer utilities {
|
|
130
|
-
/* Hide scrollbar for Chrome, Safari and Opera */
|
|
131
|
-
.no-scrollbar *::-webkit-scrollbar {
|
|
132
|
-
display: none;
|
|
133
|
-
}
|
|
134
|
-
/* Hide scrollbar for IE, Edge and Firefox */
|
|
135
|
-
.no-scrollbar * {
|
|
136
|
-
-ms-overflow-style: none; /* IE and Edge */
|
|
137
|
-
scrollbar-width: none; /* Firefox */
|
|
138
|
-
}
|
|
139
|
-
.container {
|
|
140
|
-
padding-right: 16px;
|
|
141
|
-
padding-left: 16px;
|
|
142
|
-
}
|
|
143
|
-
*:hover {
|
|
144
|
-
text-decoration-line: unset !important;
|
|
145
|
-
}
|
|
146
|
-
}
|