@tapcart/mobile-components 0.2.0 → 0.2.2
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/index.d.mts +226 -0
- package/dist/index.mjs +3978 -0
- package/dist/index.mjs.map +1 -0
- package/dist/{globals.css → styles.css} +186 -14
- package/package.json +5 -5
- package/README.md +0 -264
- package/dist/README.md +0 -264
- package/dist/components/ThemeProvider.d.ts +0 -3
- package/dist/components/ThemeProvider.d.ts.map +0 -1
- package/dist/components/ThemeProvider.js +0 -18
- package/dist/components/ThemeToggle.d.ts +0 -2
- package/dist/components/ThemeToggle.d.ts.map +0 -1
- package/dist/components/ThemeToggle.js +0 -8
- package/dist/components/ui/accordion.d.ts +0 -8
- package/dist/components/ui/accordion.d.ts.map +0 -1
- package/dist/components/ui/accordion.js +0 -34
- package/dist/components/ui/alert-dialog.d.ts +0 -21
- package/dist/components/ui/alert-dialog.d.ts.map +0 -1
- package/dist/components/ui/alert-dialog.js +0 -62
- package/dist/components/ui/aspect-ratio.d.ts +0 -5
- package/dist/components/ui/aspect-ratio.d.ts.map +0 -1
- package/dist/components/ui/aspect-ratio.js +0 -4
- package/dist/components/ui/badge.d.ts +0 -10
- package/dist/components/ui/badge.d.ts.map +0 -1
- package/dist/components/ui/badge.js +0 -32
- package/dist/components/ui/button.d.ts +0 -13
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/button.js +0 -52
- package/dist/components/ui/carousel.d.ts +0 -19
- package/dist/components/ui/carousel.d.ts.map +0 -1
- package/dist/components/ui/carousel.js +0 -112
- package/dist/components/ui/chip.d.ts +0 -25
- package/dist/components/ui/chip.d.ts.map +0 -1
- package/dist/components/ui/chip.js +0 -47
- package/dist/components/ui/container.d.ts +0 -10
- package/dist/components/ui/container.d.ts.map +0 -1
- package/dist/components/ui/container.js +0 -26
- package/dist/components/ui/grid.d.ts +0 -14
- package/dist/components/ui/grid.d.ts.map +0 -1
- package/dist/components/ui/grid.js +0 -33
- package/dist/components/ui/icon.d.ts +0 -11
- package/dist/components/ui/icon.d.ts.map +0 -1
- package/dist/components/ui/icon.js +0 -30
- package/dist/components/ui/input.d.ts +0 -6
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/input.js +0 -20
- package/dist/components/ui/label.d.ts +0 -6
- package/dist/components/ui/label.d.ts.map +0 -1
- package/dist/components/ui/label.js +0 -24
- package/dist/components/ui/money.d.ts +0 -12
- package/dist/components/ui/money.d.ts.map +0 -1
- package/dist/components/ui/money.js +0 -30
- package/dist/components/ui/scroll-area.d.ts +0 -9
- package/dist/components/ui/scroll-area.d.ts.map +0 -1
- package/dist/components/ui/scroll-area.js +0 -29
- package/dist/components/ui/separator.d.ts +0 -5
- package/dist/components/ui/separator.d.ts.map +0 -1
- package/dist/components/ui/separator.js +0 -22
- package/dist/components/ui/skeleton.d.ts +0 -4
- package/dist/components/ui/skeleton.d.ts.map +0 -1
- package/dist/components/ui/skeleton.js +0 -18
- package/dist/components/ui/switch.d.ts +0 -5
- package/dist/components/ui/switch.d.ts.map +0 -1
- package/dist/components/ui/switch.js +0 -22
- package/dist/components/ui/text.d.ts +0 -10
- package/dist/components/ui/text.d.ts.map +0 -1
- package/dist/components/ui/text.js +0 -33
- package/dist/components/ui/toast.d.ts +0 -16
- package/dist/components/ui/toast.d.ts.map +0 -1
- package/dist/components/ui/toast.js +0 -61
- package/dist/components/ui/toaster.d.ts +0 -2
- package/dist/components/ui/toaster.d.ts.map +0 -1
- package/dist/components/ui/toaster.js +0 -22
- package/dist/components/ui/toggle-group.d.ts +0 -13
- package/dist/components/ui/toggle-group.d.ts.map +0 -1
- package/dist/components/ui/toggle-group.js +0 -36
- package/dist/components/ui/toggle.d.ts +0 -13
- package/dist/components/ui/toggle.d.ts.map +0 -1
- package/dist/components/ui/toggle.js +0 -40
- package/dist/components/ui/use-toast.d.ts +0 -45
- package/dist/components/ui/use-toast.d.ts.map +0 -1
- package/dist/components/ui/use-toast.js +0 -112
- package/dist/components/ui/video.d.ts +0 -8
- package/dist/components/ui/video.d.ts.map +0 -1
- package/dist/components/ui/video.js +0 -22
- package/dist/index.d.ts +0 -27
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -27
- package/dist/lib/utils.d.ts +0 -3
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -5
package/dist/README.md
DELETED
|
@@ -1,264 +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";
|
|
63
|
-
|
|
64
|
-
<Video>
|
|
65
|
-
<source src="https://assets.tapcart.com/image-block/video/FhEjfK4zD2_6614803b487c620032dc21c4.mp4" />
|
|
66
|
-
</Video>
|
|
67
|
-
|
|
68
|
-
<Separator />
|
|
69
|
-
|
|
70
|
-
<Container variant="spaced">
|
|
71
|
-
<Input placeholder="Search for products" type="email"></Input>
|
|
72
|
-
</Container>
|
|
73
|
-
|
|
74
|
-
<Separator />
|
|
75
|
-
|
|
76
|
-
<Accordion type="single" collapsible className="w-full">
|
|
77
|
-
<AccordionItem value="item-1">
|
|
78
|
-
<Container>
|
|
79
|
-
<AccordionTrigger>
|
|
80
|
-
<div className="flex">
|
|
81
|
-
<Icon>
|
|
82
|
-
<svg
|
|
83
|
-
width="15"
|
|
84
|
-
height="18"
|
|
85
|
-
viewBox="0 0 15 18"
|
|
86
|
-
fill="none"
|
|
87
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
88
|
-
>
|
|
89
|
-
<path
|
|
90
|
-
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"
|
|
91
|
-
fill="currentColor"
|
|
92
|
-
></path>
|
|
93
|
-
</svg>
|
|
94
|
-
</Icon>
|
|
95
|
-
Product details
|
|
96
|
-
</div>
|
|
97
|
-
</AccordionTrigger>
|
|
98
|
-
<AccordionContent>
|
|
99
|
-
<img src="https://assets.tapcart.com/pdp/images/FhEjfK4zD2_6629470724b8221a7b750a97.png" />
|
|
100
|
-
</AccordionContent>
|
|
101
|
-
</Container>
|
|
102
|
-
</AccordionItem>
|
|
103
|
-
<AccordionItem value="item-2">
|
|
104
|
-
<Container>
|
|
105
|
-
<AccordionTrigger>
|
|
106
|
-
<div className="flex">
|
|
107
|
-
<Icon>
|
|
108
|
-
<svg
|
|
109
|
-
width="18"
|
|
110
|
-
height="17"
|
|
111
|
-
viewBox="0 0 18 17"
|
|
112
|
-
fill="none"
|
|
113
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
114
|
-
>
|
|
115
|
-
<path
|
|
116
|
-
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"
|
|
117
|
-
fill="currentColor"
|
|
118
|
-
></path>
|
|
119
|
-
</svg>
|
|
120
|
-
</Icon>
|
|
121
|
-
Size Guide
|
|
122
|
-
</div>
|
|
123
|
-
</AccordionTrigger>
|
|
124
|
-
<AccordionContent>
|
|
125
|
-
Yes. It comes with default styles that matches the other
|
|
126
|
-
components' aesthetic.
|
|
127
|
-
</AccordionContent>
|
|
128
|
-
</Container>
|
|
129
|
-
</AccordionItem>
|
|
130
|
-
</Accordion>
|
|
131
|
-
|
|
132
|
-
{/*Aspect Ratio+ scroll area Example*/}
|
|
133
|
-
<Container>
|
|
134
|
-
<Text className="py-2 font-medium">New Drop Collection</Text>
|
|
135
|
-
</Container>
|
|
136
|
-
|
|
137
|
-
<ScrollArea>
|
|
138
|
-
{Products.map((product) => (
|
|
139
|
-
<ProductCard
|
|
140
|
-
className="w-[138px] mr-[7px]"
|
|
141
|
-
key={product.id}
|
|
142
|
-
product={product}
|
|
143
|
-
quickAdd={quickAdd}
|
|
144
|
-
openProduct={clickProduct}
|
|
145
|
-
switchVariant={switchVariant}
|
|
146
|
-
carousel={false}
|
|
147
|
-
></ProductCard>
|
|
148
|
-
))}
|
|
149
|
-
</ScrollArea>
|
|
150
|
-
|
|
151
|
-
<Separator className="my-[15px]" />
|
|
152
|
-
|
|
153
|
-
<div className="container flex items-center space-x-2">
|
|
154
|
-
<ToggleGroup
|
|
155
|
-
onValueChange={(e) => changeGrid(e)}
|
|
156
|
-
type="single"
|
|
157
|
-
defaultValue="2">
|
|
158
|
-
<ToggleGroupItem value="1" aria-label="Toggle bold">
|
|
159
|
-
<Icon>
|
|
160
|
-
<svg
|
|
161
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
162
|
-
width="24"
|
|
163
|
-
height="24"
|
|
164
|
-
viewBox="0 0 24 24"
|
|
165
|
-
fill="none"
|
|
166
|
-
stroke="currentColor"
|
|
167
|
-
stroke-width="2"
|
|
168
|
-
stroke-linecap="round"
|
|
169
|
-
stroke-linejoin="round"
|
|
170
|
-
className="lucide lucide-rows-2">
|
|
171
|
-
<rect width="18" height="18" x="3" y="3" rx="2" />
|
|
172
|
-
<path d="M3 12h18" />
|
|
173
|
-
</svg>
|
|
174
|
-
</Icon>
|
|
175
|
-
</ToggleGroupItem>
|
|
176
|
-
<ToggleGroupItem value="2" aria-label="Toggle italic">
|
|
177
|
-
<Icon>
|
|
178
|
-
<svg
|
|
179
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
180
|
-
width="24"
|
|
181
|
-
height="24"
|
|
182
|
-
viewBox="0 0 24 24"
|
|
183
|
-
fill="none"
|
|
184
|
-
stroke="currentColor"
|
|
185
|
-
stroke-width="2"
|
|
186
|
-
stroke-linecap="round"
|
|
187
|
-
stroke-linejoin="round"
|
|
188
|
-
className="lucide lucide-columns-3"
|
|
189
|
-
>
|
|
190
|
-
<rect width="18" height="18" x="3" y="3" rx="2" />
|
|
191
|
-
<path d="M9 3v18" />
|
|
192
|
-
<path d="M15 3v18" />
|
|
193
|
-
</svg>
|
|
194
|
-
</Icon>
|
|
195
|
-
</ToggleGroupItem>
|
|
196
|
-
<ToggleGroupItem value="3" aria-label="Toggle underline">
|
|
197
|
-
<Icon>
|
|
198
|
-
<svg
|
|
199
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
200
|
-
width="24"
|
|
201
|
-
height="24"
|
|
202
|
-
viewBox="0 0 24 24"
|
|
203
|
-
fill="none"
|
|
204
|
-
stroke="currentColor"
|
|
205
|
-
stroke-width="2"
|
|
206
|
-
stroke-linecap="round"
|
|
207
|
-
stroke-linejoin="round"
|
|
208
|
-
className="lucide lucide-columns-3">
|
|
209
|
-
<rect width="18" height="18" x="3" y="3" rx="2" />
|
|
210
|
-
<path d="M9 3v18" />
|
|
211
|
-
<path d="M15 3v18" />
|
|
212
|
-
</svg>
|
|
213
|
-
</Icon>
|
|
214
|
-
</ToggleGroupItem>
|
|
215
|
-
</ToggleGroup>
|
|
216
|
-
</div>
|
|
217
|
-
|
|
218
|
-
<Separator className="my-[15px]" />
|
|
219
|
-
|
|
220
|
-
<Grid columns={grid} className="">
|
|
221
|
-
{Products.map((product) => (
|
|
222
|
-
<ProductCard
|
|
223
|
-
key={product.id}
|
|
224
|
-
className="w-full"
|
|
225
|
-
product={product}
|
|
226
|
-
quickAdd={quickAdd}
|
|
227
|
-
openProduct={clickProduct}
|
|
228
|
-
switchVariant={switchVariant}
|
|
229
|
-
carousel={true}
|
|
230
|
-
></ProductCard>
|
|
231
|
-
))}
|
|
232
|
-
</Grid>
|
|
233
|
-
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
## Licenses
|
|
238
|
-
|
|
239
|
-
Copyright (c) 2017-present Tapcart Inc.
|
|
240
|
-
|
|
241
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
242
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
243
|
-
in the Software without restriction, including without limitation the rights
|
|
244
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
245
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
246
|
-
furnished to do so, subject to the following conditions:
|
|
247
|
-
|
|
248
|
-
The above copyright notice and this permission notice shall be included in all
|
|
249
|
-
copies or substantial portions of the Software.
|
|
250
|
-
|
|
251
|
-
The rights granted above may only be exercised to develop and distribute
|
|
252
|
-
applications that integrate or interoperate with Tapcart software or services,
|
|
253
|
-
and in the case of external, stand-alone applications that do not embed
|
|
254
|
-
directly inside Tapcart, the rights granted above may only be exercised to
|
|
255
|
-
develop and distribute applications that are dissimilar and visually distinct
|
|
256
|
-
from Tapcart products and services, as determined by Tapcart in its sole discretion.
|
|
257
|
-
|
|
258
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
259
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
260
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
261
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
262
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
263
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
264
|
-
SOFTWARE.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../components/ThemeProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAE3D,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAEvE"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
import { ThemeProvider as NextThemesProvider } from "next-themes";
|
|
15
|
-
export function ThemeProvider(_a) {
|
|
16
|
-
var { children } = _a, props = __rest(_a, ["children"]);
|
|
17
|
-
return _jsx(NextThemesProvider, Object.assign({}, props, { children: children }));
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeToggle.d.ts","sourceRoot":"","sources":["../../components/ThemeToggle.tsx"],"names":[],"mappings":"AAOA,wBAAgB,WAAW,4CAc1B"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useTheme } from "next-themes";
|
|
4
|
-
import { Button } from "../components/ui/button";
|
|
5
|
-
export function ThemeToggle() {
|
|
6
|
-
const { setTheme, theme } = useTheme();
|
|
7
|
-
return (_jsxs(Button, Object.assign({ variant: "ghost", size: "sm", onClick: () => setTheme(theme === "light" ? "dark" : "light") }, { children: [_jsx("div", { className: "rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" }), _jsx("div", { className: "absolute rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" }), _jsx("span", Object.assign({ className: "sr-only" }, { children: "Toggle theme" }))] })));
|
|
8
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
3
|
-
declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
-
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
8
|
-
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../components/ui/accordion.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAA;AAK/D,QAAA,MAAM,SAAS,8JAA0B,CAAA;AAEzC,QAAA,MAAM,aAAa,iKASjB,CAAA;AAGF,QAAA,MAAM,gBAAgB,0KAiBpB,CAAA;AAGF,QAAA,MAAM,gBAAgB,oKAWpB,CAAA;AAIF,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
import * as React from "react";
|
|
15
|
-
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
16
|
-
import { ChevronDown } from "lucide-react";
|
|
17
|
-
import { cn } from "../../lib/utils";
|
|
18
|
-
const Accordion = AccordionPrimitive.Root;
|
|
19
|
-
const AccordionItem = React.forwardRef((_a, ref) => {
|
|
20
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
21
|
-
return (_jsx(AccordionPrimitive.Item, Object.assign({ ref: ref, className: cn("border-b", className) }, props)));
|
|
22
|
-
});
|
|
23
|
-
AccordionItem.displayName = "AccordionItem";
|
|
24
|
-
const AccordionTrigger = React.forwardRef((_a, ref) => {
|
|
25
|
-
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
26
|
-
return (_jsx(AccordionPrimitive.Header, Object.assign({ className: "flex" }, { children: _jsxs(AccordionPrimitive.Trigger, Object.assign({ ref: ref, className: cn("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", className) }, props, { children: [children, _jsx(ChevronDown, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })] })) })));
|
|
27
|
-
});
|
|
28
|
-
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
29
|
-
const AccordionContent = React.forwardRef((_a, ref) => {
|
|
30
|
-
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
31
|
-
return (_jsx(AccordionPrimitive.Content, Object.assign({ ref: ref, className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down" }, props, { children: _jsx("div", Object.assign({ className: cn("pb-4 pt-0", className) }, { children: children })) })));
|
|
32
|
-
});
|
|
33
|
-
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
34
|
-
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
3
|
-
declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
4
|
-
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
-
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
6
|
-
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
declare const AlertDialogHeader: {
|
|
9
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
displayName: string;
|
|
11
|
-
};
|
|
12
|
-
declare const AlertDialogFooter: {
|
|
13
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
displayName: string;
|
|
15
|
-
};
|
|
16
|
-
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
17
|
-
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
18
|
-
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
-
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
-
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
21
|
-
//# sourceMappingURL=alert-dialog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAA;AAKpE,QAAA,MAAM,WAAW,iDAA4B,CAAA;AAE7C,QAAA,MAAM,kBAAkB,wHAA+B,CAAA;AAEvD,QAAA,MAAM,iBAAiB,uDAA8B,CAAA;AAErD,QAAA,MAAM,kBAAkB,wKAYtB,CAAA;AAGF,QAAA,MAAM,kBAAkB,wKAetB,CAAA;AAGF,QAAA,MAAM,iBAAiB;8BAGpB,MAAM,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAA;AAGD,QAAA,MAAM,iBAAiB;8BAGpB,MAAM,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAA;AAGD,QAAA,MAAM,gBAAgB,8KASpB,CAAA;AAGF,QAAA,MAAM,sBAAsB,wLAS1B,CAAA;AAIF,QAAA,MAAM,iBAAiB,6KASrB,CAAA;AAGF,QAAA,MAAM,iBAAiB,6KAarB,CAAA;AAGF,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,CAAA"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
import * as React from "react";
|
|
15
|
-
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
16
|
-
import { cn } from "../../lib/utils";
|
|
17
|
-
import { buttonVariants } from "../../components/ui/button";
|
|
18
|
-
const AlertDialog = AlertDialogPrimitive.Root;
|
|
19
|
-
const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
20
|
-
const AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
21
|
-
const AlertDialogOverlay = React.forwardRef((_a, ref) => {
|
|
22
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
23
|
-
return (_jsx(AlertDialogPrimitive.Overlay, Object.assign({ className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className) }, props, { ref: ref })));
|
|
24
|
-
});
|
|
25
|
-
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
26
|
-
const AlertDialogContent = React.forwardRef((_a, ref) => {
|
|
27
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
28
|
-
return (_jsxs(AlertDialogPortal, { children: [_jsx(AlertDialogOverlay, {}), _jsx(AlertDialogPrimitive.Content, Object.assign({ ref: ref, className: cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", className) }, props))] }));
|
|
29
|
-
});
|
|
30
|
-
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
31
|
-
const AlertDialogHeader = (_a) => {
|
|
32
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
33
|
-
return (_jsx("div", Object.assign({ className: cn("flex flex-col space-y-2 text-center sm:text-left", className) }, props)));
|
|
34
|
-
};
|
|
35
|
-
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
36
|
-
const AlertDialogFooter = (_a) => {
|
|
37
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
38
|
-
return (_jsx("div", Object.assign({ className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className) }, props)));
|
|
39
|
-
};
|
|
40
|
-
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
41
|
-
const AlertDialogTitle = React.forwardRef((_a, ref) => {
|
|
42
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
43
|
-
return (_jsx(AlertDialogPrimitive.Title, Object.assign({ ref: ref, className: cn("text-lg font-semibold", className) }, props)));
|
|
44
|
-
});
|
|
45
|
-
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
46
|
-
const AlertDialogDescription = React.forwardRef((_a, ref) => {
|
|
47
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
48
|
-
return (_jsx(AlertDialogPrimitive.Description, Object.assign({ ref: ref, className: cn("text-sm text-muted-foreground", className) }, props)));
|
|
49
|
-
});
|
|
50
|
-
AlertDialogDescription.displayName =
|
|
51
|
-
AlertDialogPrimitive.Description.displayName;
|
|
52
|
-
const AlertDialogAction = React.forwardRef((_a, ref) => {
|
|
53
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
54
|
-
return (_jsx(AlertDialogPrimitive.Action, Object.assign({ ref: ref, className: cn(buttonVariants(), className) }, props)));
|
|
55
|
-
});
|
|
56
|
-
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
57
|
-
const AlertDialogCancel = React.forwardRef((_a, ref) => {
|
|
58
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
59
|
-
return (_jsx(AlertDialogPrimitive.Cancel, Object.assign({ ref: ref, className: cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className) }, props)));
|
|
60
|
-
});
|
|
61
|
-
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
62
|
-
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
3
|
-
declare const AspectRatio: import("react").ForwardRefExoticComponent<AspectRatioPrimitive.AspectRatioProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
-
export { AspectRatio };
|
|
5
|
-
//# sourceMappingURL=aspect-ratio.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aspect-ratio.d.ts","sourceRoot":"","sources":["../../../components/ui/aspect-ratio.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAA;AAEpE,QAAA,MAAM,WAAW,kIAA4B,CAAA;AAE7C,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
|
-
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
|
-
}
|
|
8
|
-
declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export { Badge, badgeVariants };
|
|
10
|
-
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../components/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,aAAa;;mFAkBlB,CAAA;AAED,MAAM,WAAW,UACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzC,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,2CAI1D;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { cva } from "class-variance-authority";
|
|
14
|
-
import { cn } from "../../lib/utils";
|
|
15
|
-
const badgeVariants = cva("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", {
|
|
16
|
-
variants: {
|
|
17
|
-
variant: {
|
|
18
|
-
default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
|
19
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
20
|
-
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
21
|
-
outline: "text-foreground",
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
defaultVariants: {
|
|
25
|
-
variant: "default",
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
function Badge(_a) {
|
|
29
|
-
var { className, variant } = _a, props = __rest(_a, ["className", "variant"]);
|
|
30
|
-
return (_jsx("div", Object.assign({ className: cn(badgeVariants({ variant }), className) }, props)));
|
|
31
|
-
}
|
|
32
|
-
export { Badge, badgeVariants };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
declare const buttonVariants: (props?: ({
|
|
4
|
-
size?: "default" | "sm" | "lg" | "icon" | "content" | null | undefined;
|
|
5
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "quickadd" | "applePay" | "shopPay" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
-
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
|
-
asChild?: boolean;
|
|
9
|
-
loading?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
-
export { Button, buttonVariants };
|
|
13
|
-
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAKjE,QAAA,MAAM,cAAc;;;mFAiCnB,CAAA;AAED,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,MAAM,uFAgBX,CAAA;AAGD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import * as React from "react";
|
|
14
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
15
|
-
import { cva } from "class-variance-authority";
|
|
16
|
-
import { IconLoader2 } from "@tabler/icons-react";
|
|
17
|
-
import { cn } from "../../lib/utils";
|
|
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
|
-
variants: {
|
|
20
|
-
size: {
|
|
21
|
-
default: "h-10 py-3 px-4",
|
|
22
|
-
sm: "h-9 px-3 rounded-md",
|
|
23
|
-
lg: "h-11 px-8 rounded-md",
|
|
24
|
-
icon: "h-10 w-10",
|
|
25
|
-
content: "h-10 py-3 px-4 w-auto",
|
|
26
|
-
},
|
|
27
|
-
variant: {
|
|
28
|
-
default: "bg-buttonColors-primaryFill text-buttonColors-primaryText active:opacity-70",
|
|
29
|
-
destructive: "bg-stateColors-error text-coreColors-pageColor active:opacity-70 disabled:bg-stateColors-disabled",
|
|
30
|
-
outline: "border border-input hover:bg-accent hover:text-accent-foreground",
|
|
31
|
-
secondary: "border bg-buttonColors-secondaryFill text-buttonColors-secondaryText border-buttonColors-secondaryOutline active:opacity-70 disabled:bg-buttonColors-secondaryFill disabled:text-stateColors-disabled disabled:border-stateColors-disabled",
|
|
32
|
-
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
33
|
-
link: "underline-offset-4 hover:underline text-primary",
|
|
34
|
-
quickadd: "bg-buttonColors-primaryFill text-buttonColors-primaryText active:opacity-70 w-full rounded-none rounded-b-lg h-8 text-xs",
|
|
35
|
-
applePay: "bg-white text-black border border-black",
|
|
36
|
-
shopPay: "bg-[#612EFF]",
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
defaultVariants: {
|
|
40
|
-
variant: "default",
|
|
41
|
-
size: "default",
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
const Button = React.forwardRef((_a, ref) => {
|
|
45
|
-
var { className, variant, size, asChild = false, loading } = _a, props = __rest(_a, ["className", "variant", "size", "asChild", "loading"]);
|
|
46
|
-
const Comp = asChild ? Slot : "button";
|
|
47
|
-
return (_jsxs(Comp, Object.assign({ className: cn(buttonVariants({ variant, size, className }), {
|
|
48
|
-
"pointer-events-none": loading,
|
|
49
|
-
}), ref: ref }, props, { children: [!loading && props.children, loading && _jsx(IconLoader2, { className: "h-4 w-4 animate-spin" })] })));
|
|
50
|
-
});
|
|
51
|
-
Button.displayName = "Button";
|
|
52
|
-
export { Button, buttonVariants };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import useEmblaCarousel, { type UseEmblaCarouselType } from "embla-carousel-react";
|
|
3
|
-
type CarouselApi = UseEmblaCarouselType[1];
|
|
4
|
-
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
5
|
-
type CarouselOptions = UseCarouselParameters[0];
|
|
6
|
-
type CarouselPlugin = UseCarouselParameters[1];
|
|
7
|
-
type CarouselProps = {
|
|
8
|
-
opts?: CarouselOptions;
|
|
9
|
-
plugins?: CarouselPlugin;
|
|
10
|
-
orientation?: "horizontal" | "vertical";
|
|
11
|
-
setApi?: (api: CarouselApi) => void;
|
|
12
|
-
};
|
|
13
|
-
declare const Carousel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & CarouselProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
declare const CarouselContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
declare const CarouselItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<import("../../components/ui/button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
17
|
-
declare const CarouselNext: React.ForwardRefExoticComponent<Omit<import("../../components/ui/button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
-
export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
|
|
19
|
-
//# sourceMappingURL=carousel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../components/ui/carousel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,gBAAgB,EAAE,EACvB,KAAK,oBAAoB,EAC1B,MAAM,sBAAsB,CAAA;AAM7B,KAAK,WAAW,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAA;AAC1C,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAChE,KAAK,eAAe,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAA;AAC/C,KAAK,cAAc,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAA;AAE9C,KAAK,aAAa,GAAG;IACnB,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAA;CACpC,CAAA;AAuBD,QAAA,MAAM,QAAQ,6HAyGb,CAAA;AAGD,QAAA,MAAM,eAAe,6GAmBnB,CAAA;AAGF,QAAA,MAAM,YAAY,6GAmBhB,CAAA;AAGF,QAAA,MAAM,gBAAgB,kLA0BpB,CAAA;AAGF,QAAA,MAAM,YAAY,kLA0BhB,CAAA;AAGF,OAAO,EACL,KAAK,WAAW,EAChB,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,YAAY,GACb,CAAA"}
|