@tapcart/mobile-components 0.1.4 → 0.1.6
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/README.md +25 -2
- package/dist/components/ThemeToggle.js +1 -1
- package/dist/components/ui/accordion.js +1 -1
- package/dist/components/ui/alert-dialog.js +2 -2
- package/dist/components/ui/badge.js +1 -1
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/carousel.d.ts +2 -2
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel.js +2 -2
- package/dist/components/ui/container.js +1 -1
- package/dist/components/ui/grid.js +1 -1
- package/dist/components/ui/icon.js +1 -1
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/label.js +1 -1
- package/dist/components/ui/scroll-area.js +1 -1
- package/dist/components/ui/separator.js +1 -1
- package/dist/components/ui/skeleton.js +1 -1
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/text.js +1 -1
- package/dist/components/ui/toast.js +1 -1
- package/dist/components/ui/toaster.js +2 -2
- package/dist/components/ui/toggle-group.js +2 -2
- package/dist/components/ui/toggle.js +1 -1
- package/dist/components/ui/use-toast.d.ts +1 -1
- package/dist/components/ui/use-toast.d.ts.map +1 -1
- package/dist/components/ui/video.js +1 -1
- package/dist/index.d.ts +25 -25
- package/dist/index.js +25 -25
- package/dist/styles.css +1612 -0
- package/package.json +10 -2
package/README.md
CHANGED
|
@@ -236,6 +236,29 @@ import {
|
|
|
236
236
|
|
|
237
237
|
## Licenses
|
|
238
238
|
|
|
239
|
-
|
|
239
|
+
Copyright (c) 2017-present Tapcart Inc.
|
|
240
240
|
|
|
241
|
-
|
|
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,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useTheme } from "next-themes";
|
|
4
|
-
import { Button } from "
|
|
4
|
+
import { Button } from "../components/ui/button";
|
|
5
5
|
export function ThemeToggle() {
|
|
6
6
|
const { setTheme, theme } = useTheme();
|
|
7
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" }))] })));
|
|
@@ -14,7 +14,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
14
14
|
import * as React from "react";
|
|
15
15
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
16
16
|
import { ChevronDown } from "lucide-react";
|
|
17
|
-
import { cn } from "
|
|
17
|
+
import { cn } from "../../lib/utils";
|
|
18
18
|
const Accordion = AccordionPrimitive.Root;
|
|
19
19
|
const AccordionItem = React.forwardRef((_a, ref) => {
|
|
20
20
|
var { className } = _a, props = __rest(_a, ["className"]);
|
|
@@ -13,8 +13,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
import * as React from "react";
|
|
15
15
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
16
|
-
import { cn } from "
|
|
17
|
-
import { buttonVariants } from "
|
|
16
|
+
import { cn } from "../../lib/utils";
|
|
17
|
+
import { buttonVariants } from "../../components/ui/button";
|
|
18
18
|
const AlertDialog = AlertDialogPrimitive.Root;
|
|
19
19
|
const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
20
20
|
const AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
@@ -11,7 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { cva } from "class-variance-authority";
|
|
14
|
-
import { cn } from "
|
|
14
|
+
import { cn } from "../../lib/utils";
|
|
15
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
16
|
variants: {
|
|
17
17
|
variant: {
|
|
@@ -14,7 +14,7 @@ import * as React from "react";
|
|
|
14
14
|
import { Slot } from "@radix-ui/react-slot";
|
|
15
15
|
import { cva } from "class-variance-authority";
|
|
16
16
|
import { IconLoader2 } from "@tabler/icons-react";
|
|
17
|
-
import { cn } from "
|
|
17
|
+
import { cn } from "../../lib/utils";
|
|
18
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", {
|
|
19
19
|
variants: {
|
|
20
20
|
size: {
|
|
@@ -13,7 +13,7 @@ type CarouselProps = {
|
|
|
13
13
|
declare const Carousel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & CarouselProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
14
|
declare const CarouselContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
15
15
|
declare const CarouselItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<import("
|
|
17
|
-
declare const CarouselNext: React.ForwardRefExoticComponent<Omit<import("
|
|
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
18
|
export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
|
|
19
19
|
//# sourceMappingURL=carousel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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"}
|
|
@@ -14,8 +14,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
14
14
|
import * as React from "react";
|
|
15
15
|
import useEmblaCarousel from "embla-carousel-react";
|
|
16
16
|
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
17
|
-
import { cn } from "
|
|
18
|
-
import { Button } from "
|
|
17
|
+
import { cn } from "../../lib/utils";
|
|
18
|
+
import { Button } from "../../components/ui/button";
|
|
19
19
|
const CarouselContext = React.createContext(null);
|
|
20
20
|
function useCarousel() {
|
|
21
21
|
const context = React.useContext(CarouselContext);
|
|
@@ -11,7 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { cva } from "class-variance-authority";
|
|
14
|
-
import { cn } from "
|
|
14
|
+
import { cn } from "../../lib/utils";
|
|
15
15
|
const containerVariants = cva("container", {
|
|
16
16
|
variants: {
|
|
17
17
|
variant: {
|
|
@@ -12,7 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { cva } from "class-variance-authority";
|
|
14
14
|
import { Container } from "./container";
|
|
15
|
-
import { cn } from "
|
|
15
|
+
import { cn } from "../../lib/utils";
|
|
16
16
|
const gridVariants = cva("grid", {
|
|
17
17
|
variants: {
|
|
18
18
|
columns: {
|
|
@@ -12,7 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { cva } from "class-variance-authority";
|
|
14
14
|
import { IconUpload, IconPencilMinus } from "@tabler/icons-react";
|
|
15
|
-
import { cn } from "
|
|
15
|
+
import { cn } from "../../lib/utils";
|
|
16
16
|
const iconVariants = cva("inline-flex items-center", {
|
|
17
17
|
variants: {
|
|
18
18
|
variant: {
|
|
@@ -11,7 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import * as React from "react";
|
|
14
|
-
import { cn } from "
|
|
14
|
+
import { cn } from "../../lib/utils";
|
|
15
15
|
const Input = React.forwardRef((_a, ref) => {
|
|
16
16
|
var { className, type } = _a, props = __rest(_a, ["className", "type"]);
|
|
17
17
|
return (_jsx("input", Object.assign({ type: type, className: cn("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className), ref: ref }, props)));
|
|
@@ -14,7 +14,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
14
14
|
import * as React from "react";
|
|
15
15
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
16
16
|
import { cva } from "class-variance-authority";
|
|
17
|
-
import { cn } from "
|
|
17
|
+
import { cn } from "../../lib/utils";
|
|
18
18
|
const labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
|
|
19
19
|
const Label = React.forwardRef((_a, ref) => {
|
|
20
20
|
var { className } = _a, props = __rest(_a, ["className"]);
|
|
@@ -13,7 +13,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
import * as React from "react";
|
|
15
15
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
16
|
-
import { cn } from "
|
|
16
|
+
import { cn } from "../../lib/utils";
|
|
17
17
|
const ScrollArea = React.forwardRef((_a, ref) => {
|
|
18
18
|
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
19
19
|
return (_jsxs(ScrollAreaPrimitive.Root, Object.assign({ ref: ref, className: cn("relative overflow-hidden", className) }, props, { children: [_jsx(ScrollAreaPrimitive.Viewport, Object.assign({ className: "h-full w-full rounded-[inherit]" }, { children: _jsx("div", Object.assign({ className: "flex w-max px-[16px]" }, { children: children })) })), _jsx(ScrollBar, {}), _jsx(ScrollAreaPrimitive.Corner, {})] })));
|
|
@@ -13,7 +13,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
import * as React from "react";
|
|
15
15
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
16
|
-
import { cn } from "
|
|
16
|
+
import { cn } from "../../lib/utils";
|
|
17
17
|
const Separator = React.forwardRef((_a, ref) => {
|
|
18
18
|
var { className, orientation = "horizontal", decorative = true } = _a, props = __rest(_a, ["className", "orientation", "decorative"]);
|
|
19
19
|
return (_jsx(SeparatorPrimitive.Root, Object.assign({ ref: ref, decorative: decorative, orientation: orientation, className: cn("shrink-0 bg-border", orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", className) }, props)));
|
|
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { cn } from "
|
|
13
|
+
import { cn } from "../../lib/utils";
|
|
14
14
|
function Skeleton(_a) {
|
|
15
15
|
var { className } = _a, props = __rest(_a, ["className"]);
|
|
16
16
|
return (_jsx("div", Object.assign({ className: cn("animate-pulse rounded-md bg-muted", className) }, props)));
|
|
@@ -13,7 +13,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
import * as React from "react";
|
|
15
15
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
16
|
-
import { cn } from "
|
|
16
|
+
import { cn } from "../../lib/utils";
|
|
17
17
|
const Switch = React.forwardRef((_a, ref) => {
|
|
18
18
|
var { className } = _a, props = __rest(_a, ["className"]);
|
|
19
19
|
return (_jsx(SwitchPrimitives.Root, Object.assign({ className: cn("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input", className) }, props, { ref: ref }, { children: _jsx(SwitchPrimitives.Thumb, { className: cn("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") }) })));
|
|
@@ -11,7 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { cva } from "class-variance-authority";
|
|
14
|
-
import { cn } from "
|
|
14
|
+
import { cn } from "../../lib/utils";
|
|
15
15
|
const textVariants = cva("", {
|
|
16
16
|
variants: {
|
|
17
17
|
type: {
|
|
@@ -15,7 +15,7 @@ import * as React from "react";
|
|
|
15
15
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
16
16
|
import { cva } from "class-variance-authority";
|
|
17
17
|
import { X } from "lucide-react";
|
|
18
|
-
import { cn } from "
|
|
18
|
+
import { cn } from "../../lib/utils";
|
|
19
19
|
const ToastProvider = ToastPrimitives.Provider;
|
|
20
20
|
const ToastViewport = React.forwardRef((_a, ref) => {
|
|
21
21
|
var { className } = _a, props = __rest(_a, ["className"]);
|
|
@@ -11,8 +11,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
return t;
|
|
12
12
|
};
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
import { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, } from "
|
|
15
|
-
import { useToast } from "
|
|
14
|
+
import { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, } from "../../components/ui/toast";
|
|
15
|
+
import { useToast } from "../../components/ui/use-toast";
|
|
16
16
|
export function Toaster() {
|
|
17
17
|
const { toasts } = useToast();
|
|
18
18
|
return (_jsxs(ToastProvider, { children: [toasts.map(function (_a) {
|
|
@@ -13,8 +13,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
import * as React from "react";
|
|
15
15
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
16
|
-
import { cn } from "
|
|
17
|
-
import { toggleVariants } from "
|
|
16
|
+
import { cn } from "../../lib/utils";
|
|
17
|
+
import { toggleVariants } from "../../components/ui/toggle";
|
|
18
18
|
const ToggleGroupContext = React.createContext({
|
|
19
19
|
size: "default",
|
|
20
20
|
variant: "default",
|
|
@@ -14,7 +14,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
14
14
|
import * as React from "react";
|
|
15
15
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
16
16
|
import { cva } from "class-variance-authority";
|
|
17
|
-
import { cn } from "
|
|
17
|
+
import { cn } from "../../lib/utils";
|
|
18
18
|
const toggleVariants = cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground", {
|
|
19
19
|
variants: {
|
|
20
20
|
variant: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import type { ToastActionElement, ToastProps } from "
|
|
2
|
+
import type { ToastActionElement, ToastProps } from "../../components/ui/toast";
|
|
3
3
|
type ToasterToast = ToastProps & {
|
|
4
4
|
id: string;
|
|
5
5
|
title?: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-toast.d.ts","sourceRoot":"","sources":["../../../components/ui/use-toast.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-toast.d.ts","sourceRoot":"","sources":["../../../components/ui/use-toast.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAK/E,KAAK,YAAY,GAAG,UAAU,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,kBAAkB,CAAA;CAC5B,CAAA;AAED,QAAA,MAAM,WAAW;;;;;CAKP,CAAA;AASV,KAAK,UAAU,GAAG,OAAO,WAAW,CAAA;AAEpC,KAAK,MAAM,GACP;IACE,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;IAC7B,KAAK,EAAE,YAAY,CAAA;CACpB,GACD;IACE,IAAI,EAAE,UAAU,CAAC,cAAc,CAAC,CAAA;IAChC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;CAC7B,GACD;IACE,IAAI,EAAE,UAAU,CAAC,eAAe,CAAC,CAAA;IACjC,OAAO,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;CAC7B,GACD;IACE,IAAI,EAAE,UAAU,CAAC,cAAc,CAAC,CAAA;IAChC,OAAO,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;CAC7B,CAAA;AAEL,UAAU,KAAK;IACb,MAAM,EAAE,YAAY,EAAE,CAAA;CACvB;AAoBD,eAAO,MAAM,OAAO,UAAW,KAAK,UAAU,MAAM,KAAG,KAqDtD,CAAA;AAaD,KAAK,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAA;AAErC,iBAAS,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK;;;oBAGT,YAAY;EAwBpC;AAED,iBAAS,QAAQ;;wBAgBO,MAAM;;EAE7B;AAED,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -11,7 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { cva } from "class-variance-authority";
|
|
14
|
-
import { cn } from "
|
|
14
|
+
import { cn } from "../../lib/utils";
|
|
15
15
|
const videoVariants = cva("w-full", {
|
|
16
16
|
variants: {},
|
|
17
17
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export * from "
|
|
2
|
-
export * from "
|
|
3
|
-
export * from "
|
|
4
|
-
export * from "
|
|
5
|
-
export * from "
|
|
6
|
-
export * from "
|
|
7
|
-
export * from "
|
|
8
|
-
export * from "
|
|
9
|
-
export * from "
|
|
10
|
-
export * from "
|
|
11
|
-
export * from "
|
|
12
|
-
export * from "
|
|
13
|
-
export * from "
|
|
14
|
-
export * from "
|
|
15
|
-
export * from "
|
|
16
|
-
export * from "
|
|
17
|
-
export * from "
|
|
18
|
-
export * from "
|
|
19
|
-
export * from "
|
|
20
|
-
export * from "
|
|
21
|
-
export * from "
|
|
22
|
-
export * from "
|
|
23
|
-
export * from "
|
|
24
|
-
export { ThemeProvider } from "
|
|
25
|
-
export { cn } from "
|
|
1
|
+
export * from "./components/ui/button";
|
|
2
|
+
export * from "./components/ui/input";
|
|
3
|
+
export * from "./components/ui/aspect-ratio";
|
|
4
|
+
export * from "./components/ui/accordion";
|
|
5
|
+
export * from "./components/ui/icon";
|
|
6
|
+
export * from "./components/ui/carousel";
|
|
7
|
+
export * from "./components/ui/container";
|
|
8
|
+
export * from "./components/ui/grid";
|
|
9
|
+
export * from "./components/ui/label";
|
|
10
|
+
export * from "./components/ui/separator";
|
|
11
|
+
export * from "./components/ui/badge";
|
|
12
|
+
export * from "./components/ui/video";
|
|
13
|
+
export * from "./components/ui/money";
|
|
14
|
+
export * from "./components/ui/skeleton";
|
|
15
|
+
export * from "./components/ui/text";
|
|
16
|
+
export * from "./components/ui/toggle";
|
|
17
|
+
export * from "./components/ui/toggle-group";
|
|
18
|
+
export * from "./components/ui/switch";
|
|
19
|
+
export * from "./components/ui/scroll-area";
|
|
20
|
+
export * from "./components/ui/toast";
|
|
21
|
+
export * from "./components/ui/toaster";
|
|
22
|
+
export * from "./components/ui/use-toast";
|
|
23
|
+
export * from "./components/ThemeToggle";
|
|
24
|
+
export { ThemeProvider } from "./components/ThemeProvider";
|
|
25
|
+
export { cn } from "./lib/utils";
|
|
26
26
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
// component exports
|
|
2
|
-
export * from "
|
|
3
|
-
export * from "
|
|
4
|
-
export * from "
|
|
5
|
-
export * from "
|
|
6
|
-
export * from "
|
|
7
|
-
export * from "
|
|
8
|
-
export * from "
|
|
9
|
-
export * from "
|
|
10
|
-
export * from "
|
|
11
|
-
export * from "
|
|
12
|
-
export * from "
|
|
13
|
-
export * from "
|
|
14
|
-
export * from "
|
|
15
|
-
export * from "
|
|
16
|
-
export * from "
|
|
17
|
-
export * from "
|
|
18
|
-
export * from "
|
|
19
|
-
export * from "
|
|
20
|
-
export * from "
|
|
21
|
-
export * from "
|
|
22
|
-
export * from "
|
|
23
|
-
export * from "
|
|
24
|
-
export * from "
|
|
25
|
-
export { ThemeProvider } from "
|
|
26
|
-
export { cn } from "
|
|
2
|
+
export * from "./components/ui/button";
|
|
3
|
+
export * from "./components/ui/input";
|
|
4
|
+
export * from "./components/ui/aspect-ratio";
|
|
5
|
+
export * from "./components/ui/accordion";
|
|
6
|
+
export * from "./components/ui/icon";
|
|
7
|
+
export * from "./components/ui/carousel";
|
|
8
|
+
export * from "./components/ui/container";
|
|
9
|
+
export * from "./components/ui/grid";
|
|
10
|
+
export * from "./components/ui/label";
|
|
11
|
+
export * from "./components/ui/separator";
|
|
12
|
+
export * from "./components/ui/badge";
|
|
13
|
+
export * from "./components/ui/video";
|
|
14
|
+
export * from "./components/ui/money";
|
|
15
|
+
export * from "./components/ui/skeleton";
|
|
16
|
+
export * from "./components/ui/text";
|
|
17
|
+
export * from "./components/ui/toggle";
|
|
18
|
+
export * from "./components/ui/toggle-group";
|
|
19
|
+
export * from "./components/ui/switch";
|
|
20
|
+
export * from "./components/ui/scroll-area";
|
|
21
|
+
export * from "./components/ui/toast";
|
|
22
|
+
export * from "./components/ui/toaster";
|
|
23
|
+
export * from "./components/ui/use-toast";
|
|
24
|
+
export * from "./components/ThemeToggle";
|
|
25
|
+
export { ThemeProvider } from "./components/ThemeProvider";
|
|
26
|
+
export { cn } from "./lib/utils";
|