@tapcart/mobile-components 0.5.4 → 0.5.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/dist/components/ThemeProvider.d.ts +3 -0
- package/dist/components/ThemeProvider.d.ts.map +1 -0
- package/dist/components/ThemeProvider.js +18 -0
- package/dist/components/ThemeToggle.d.ts +2 -0
- package/dist/components/ThemeToggle.d.ts.map +1 -0
- package/dist/components/ThemeToggle.js +8 -0
- package/dist/components/hooks/use-products.d.ts +15 -0
- package/dist/components/hooks/use-products.d.ts.map +1 -0
- package/dist/components/hooks/use-products.js +11 -0
- package/dist/components/hooks/use-scroll-direction.js +1 -1
- package/dist/components/ui/Input/input.d.ts +1 -1
- package/dist/components/ui/Input/types.d.ts +2 -2
- package/dist/components/ui/Input/useInput.d.ts +1 -1
- package/dist/components/ui/button.d.ts +1 -0
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +4 -3
- package/dist/components/ui/empty-message.d.ts +4 -1
- package/dist/components/ui/empty-message.d.ts.map +1 -1
- package/dist/components/ui/empty-message.js +1 -2
- package/dist/components/ui/favorite.d.ts +1 -1
- package/dist/components/ui/grid.d.ts +1 -1
- package/dist/components/ui/toast.d.ts +2 -2
- package/dist/index.d.ts +32 -31
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +32 -31
- package/dist/styles.css +192 -643
- package/package.json +1 -1
- package/dist/components/templates/product-card.d.ts +0 -33
- package/dist/components/templates/product-card.d.ts.map +0 -1
- package/dist/components/templates/product-card.js +0 -42
- package/dist/components/templates/product-grid.d.ts +0 -14
- package/dist/components/templates/product-grid.d.ts.map +0 -1
- package/dist/components/templates/product-grid.js +0 -22
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeToggle.d.ts","sourceRoot":"","sources":["../../components/ThemeToggle.tsx"],"names":[],"mappings":"AAOA,wBAAgB,WAAW,4CAc1B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Product } from "app-studio-types";
|
|
2
|
+
type URL = string;
|
|
3
|
+
type UseProductsProps = {
|
|
4
|
+
productIds: string[];
|
|
5
|
+
baseURL: URL;
|
|
6
|
+
fetcher?: (url: string) => Promise<any>;
|
|
7
|
+
};
|
|
8
|
+
type UseProductsReturn = {
|
|
9
|
+
products: Product[];
|
|
10
|
+
error: any;
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare function useProducts({ productIds, baseURL, fetcher, }: UseProductsProps): UseProductsReturn;
|
|
14
|
+
export { useProducts };
|
|
15
|
+
//# sourceMappingURL=use-products.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-products.d.ts","sourceRoot":"","sources":["../../../components/hooks/use-products.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE1C,KAAK,GAAG,GAAG,MAAM,CAAA;AACjB,KAAK,gBAAgB,GAAG;IACtB,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,OAAO,EAAE,GAAG,CAAA;IACZ,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;CACxC,CAAA;AACD,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,OAAO,EAAE,CAAA;IACnB,KAAK,EAAE,GAAG,CAAA;IACV,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,iBAAS,WAAW,CAAC,EACnB,UAAU,EACV,OAAO,EACP,OAAuD,GACxD,EAAE,gBAAgB,GAAG,iBAAiB,CAStC;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import useSWR from "swr";
|
|
2
|
+
function useProducts({ productIds, baseURL, fetcher = (url) => fetch(url).then((res) => res.json()), }) {
|
|
3
|
+
const url = `${baseURL}/products/by-ids?ids=${productIds.join(",")}`;
|
|
4
|
+
const { data, error } = useSWR(url, fetcher);
|
|
5
|
+
return {
|
|
6
|
+
products: data || [],
|
|
7
|
+
error,
|
|
8
|
+
isLoading: !data && !error,
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export { useProducts };
|
|
@@ -38,7 +38,7 @@ function useScrollDirection(threshold = 5) {
|
|
|
38
38
|
lastScrollY.current = scrollY > 0 ? scrollY : 0;
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
window.addEventListener("scroll", updateScrollDirection);
|
|
41
|
+
window.addEventListener("scroll", updateScrollDirection, { passive: true });
|
|
42
42
|
return () => {
|
|
43
43
|
window.removeEventListener("scroll", updateScrollDirection);
|
|
44
44
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { InputProps } from "
|
|
2
|
+
import { InputProps } from "../../../components/ui/Input/types";
|
|
3
3
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
4
4
|
export { Input };
|
|
5
5
|
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { VariantProps } from "class-variance-authority";
|
|
3
|
-
import { inputVariants } from "
|
|
4
|
-
import { Color } from "
|
|
3
|
+
import { inputVariants } from "../../../components/ui/Input/useInput";
|
|
4
|
+
import { Color } from "../../../lib/utils";
|
|
5
5
|
export type BorderSides = ("all" | "bottom" | "left" | "right" | "top")[];
|
|
6
6
|
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange">, VariantProps<typeof inputVariants> {
|
|
7
7
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { InputProps } from "
|
|
2
|
+
import { InputProps } from "../../../components/ui/Input/types";
|
|
3
3
|
export declare const DEFAULT_ICON_SIZE = 20;
|
|
4
4
|
export declare const DEFAULT_X_PADDING = 12;
|
|
5
5
|
export declare const DEFAULT_Y_PADDING = 8;
|
|
@@ -11,6 +11,7 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
11
11
|
labelClassName?: string;
|
|
12
12
|
labelStyle?: React.CSSProperties | undefined;
|
|
13
13
|
iconColor?: string;
|
|
14
|
+
iconPosition?: "left" | "right";
|
|
14
15
|
}
|
|
15
16
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
16
17
|
export { Button, buttonVariants };
|
|
@@ -1 +1 @@
|
|
|
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;;;mFAgCnB,CAAA;AAwCD,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;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,SAAS,CAAA;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;
|
|
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;;;mFAgCnB,CAAA;AAwCD,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;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,SAAS,CAAA;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAChC;AAED,QAAA,MAAM,MAAM,uFAyEX,CAAA;AAGD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -32,7 +32,7 @@ const buttonVariants = cva("w-full flex rounded items-center justify-center tran
|
|
|
32
32
|
secondary: "bg-buttonColors-secondaryFill border border-buttonColors-secondaryOutlineColor disabled:bg-buttonColors-secondaryFill disabled:text-stateColors-disabled shadow-secondary",
|
|
33
33
|
ghost: "hover:bg-accent",
|
|
34
34
|
link: "underline-offset-4 hover:underline disabled:text-stateColors-disabled disabled:bg-transparent",
|
|
35
|
-
quickadd: "bg-buttonColors-primaryFill w-full rounded-none rounded-b-lg h-8
|
|
35
|
+
quickadd: "bg-buttonColors-primaryFill w-full rounded-none rounded-b-lg h-8 border border-buttonColors-primaryOutlineColor py-2",
|
|
36
36
|
applePay: "bg-white border border-black",
|
|
37
37
|
shopPay: "bg-[#612EFF]",
|
|
38
38
|
},
|
|
@@ -79,12 +79,13 @@ const labelVariants = cva("truncate", {
|
|
|
79
79
|
},
|
|
80
80
|
});
|
|
81
81
|
const Button = React.forwardRef((_a, ref) => {
|
|
82
|
-
var { className, labelClassName, labelStyle, variant, size, asChild = false, loading, icon, iconColor } = _a, props = __rest(_a, ["className", "labelClassName", "labelStyle", "variant", "size", "asChild", "loading", "icon", "iconColor"]);
|
|
82
|
+
var { className, labelClassName, labelStyle, variant, size, asChild = false, loading, icon, iconColor, iconPosition } = _a, props = __rest(_a, ["className", "labelClassName", "labelStyle", "variant", "size", "asChild", "loading", "icon", "iconColor", "iconPosition"]);
|
|
83
83
|
const Comp = asChild ? Slot : "button";
|
|
84
84
|
const IconButton = () => (icon ? _jsx(Icon, { name: icon, size: "sm" }) : null);
|
|
85
|
-
const BasicButton = () => (_jsxs(_Fragment, { children: [icon ? (_jsx(Icon, { name: icon, size: variant === "quickadd" ? "xs" : "sm", className: cn(iconVariants({ variant }), "mr-2"), style: { color: iconColor } })) : null, !loading ? (_jsx(Text, Object.assign({ type: "body-primary", className: cn(labelVariants({ variant }), labelClassName), style: labelStyle }, { children: props.children }))) : (_jsx(_Fragment, {}))] }));
|
|
85
|
+
const BasicButton = () => (_jsxs(_Fragment, { children: [icon ? (_jsx(Icon, { name: icon, size: variant === "quickadd" ? "xs" : "sm", className: cn(iconVariants({ variant }), { "mr-2": iconPosition !== "right" }), style: { color: iconColor } })) : null, !loading ? (_jsx(Text, Object.assign({ type: "body-primary", className: cn(labelVariants({ variant }), labelClassName), style: labelStyle }, { children: props.children }))) : (_jsx(_Fragment, {}))] }));
|
|
86
86
|
return (_jsx(Comp, Object.assign({ className: cn(buttonVariants({ variant, size }), className, {
|
|
87
87
|
"pointer-events-none": loading,
|
|
88
|
+
"flex-row-reverse": icon && iconPosition === "right"
|
|
88
89
|
}), ref: ref }, props, { children: loading ? (_jsx("div", Object.assign({ className: cn("flex items-center justify-center", size === "icon" ? "h-5" : "h-6") }, { children: _jsx(Icon, { className: cn(iconVariants({ variant }), "h-5 w-5 animate-spin"), name: "loader", style: { color: iconColor } }) }))) : size === "icon" ? (_jsx(IconButton, {})) : (_jsx(BasicButton, {})) })));
|
|
89
90
|
});
|
|
90
91
|
Button.displayName = "Button";
|
|
@@ -6,6 +6,9 @@ interface EmptyMessageProps {
|
|
|
6
6
|
buttonLabel?: string;
|
|
7
7
|
heightOffset?: number;
|
|
8
8
|
openScreen: (params: OpenScreenParams) => void;
|
|
9
|
+
usePathname: () => string;
|
|
10
|
+
useRouter: () => string[];
|
|
11
|
+
useSearchParams: () => string;
|
|
9
12
|
}
|
|
10
13
|
interface Destination {
|
|
11
14
|
type: "internal" | "external";
|
|
@@ -14,6 +17,6 @@ interface Destination {
|
|
|
14
17
|
interface OpenScreenParams {
|
|
15
18
|
destination: Destination;
|
|
16
19
|
}
|
|
17
|
-
declare function EmptyMessage({ iconName, title, description, className, buttonLabel, openScreen, }: EmptyMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function EmptyMessage({ iconName, title, description, className, buttonLabel, openScreen, usePathname, useRouter, useSearchParams, }: EmptyMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
18
21
|
export { EmptyMessage };
|
|
19
22
|
//# sourceMappingURL=empty-message.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty-message.d.ts","sourceRoot":"","sources":["../../../components/ui/empty-message.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"empty-message.d.ts","sourceRoot":"","sources":["../../../components/ui/empty-message.tsx"],"names":[],"mappings":"AAMA,UAAU,iBAAiB;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC9C,WAAW,EAAE,MAAM,MAAM,CAAA;IACzB,SAAS,EAAE,MAAM,MAAM,EAAE,CAAA;IACzB,eAAe,EAAE,MAAM,MAAM,CAAA;CAC9B;AAED,UAAU,WAAW;IACnB,IAAI,EAAE,UAAU,GAAG,UAAU,CAAA;IAC7B,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,UAAU,gBAAgB;IACxB,WAAW,EAAE,WAAW,CAAA;CACzB;AAED,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,UAAU,EACV,WAAsB,EACtB,SAAoB,EACpB,eAA0B,GAC3B,EAAE,iBAAiB,2CA+CnB;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -4,8 +4,7 @@ import { Button } from "./button";
|
|
|
4
4
|
import { Icon } from "./icon";
|
|
5
5
|
import { Text } from "./text";
|
|
6
6
|
import { cn } from "../../lib/utils";
|
|
7
|
-
|
|
8
|
-
function EmptyMessage({ iconName, title, description, className, buttonLabel, openScreen, }) {
|
|
7
|
+
function EmptyMessage({ iconName, title, description, className, buttonLabel, openScreen, usePathname = () => "", useRouter = () => [], useSearchParams = () => "", }) {
|
|
9
8
|
const router = useRouter();
|
|
10
9
|
const pathname = usePathname();
|
|
11
10
|
const searchParams = useSearchParams();
|
|
@@ -3,7 +3,7 @@ import { type VariantProps } from "class-variance-authority";
|
|
|
3
3
|
declare const favoriteVariants: (props?: ({
|
|
4
4
|
size?: "small" | "large" | null | undefined;
|
|
5
5
|
showBackground?: boolean | null | undefined;
|
|
6
|
-
layoutType?: "
|
|
6
|
+
layoutType?: "below-image-on-right" | "top-right" | "top-left" | "bottom-left" | "bottom-right" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
8
|
export interface FavoriteProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof favoriteVariants> {
|
|
9
9
|
selected?: boolean;
|
|
@@ -5,7 +5,7 @@ interface GridType {
|
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
}
|
|
7
7
|
declare const gridVariants: (props?: ({
|
|
8
|
-
columns?:
|
|
8
|
+
columns?: 3 | 1 | 2 | 4 | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
10
10
|
export interface GridProps extends GridType, VariantProps<typeof gridVariants> {
|
|
11
11
|
}
|
|
@@ -4,14 +4,14 @@ import { type VariantProps } from "class-variance-authority";
|
|
|
4
4
|
declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
|
|
5
5
|
declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
6
6
|
declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
7
|
-
variant?: "
|
|
7
|
+
variant?: "error" | "default" | "warning" | "success" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLLIElement>>;
|
|
9
9
|
declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
10
|
declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
11
11
|
declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
type ToastType = "default" | "warning" | "error" | "success";
|
|
13
13
|
declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
14
|
-
type?: "
|
|
14
|
+
type?: "error" | "default" | "warning" | "success" | undefined;
|
|
15
15
|
icon?: boolean | undefined;
|
|
16
16
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
17
|
type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from "./components/
|
|
3
|
-
export * from "./components/
|
|
1
|
+
export { cn, cva, getColor } from "./lib/utils";
|
|
2
|
+
export * from "./components/hooks/use-infinite-scroll";
|
|
3
|
+
export * from "./components/hooks/use-products";
|
|
4
|
+
export * from "./components/hooks/use-scroll-direction";
|
|
4
5
|
export * from "./components/ui/accordion";
|
|
5
|
-
export * from "./components/ui/
|
|
6
|
+
export * from "./components/ui/aspect-ratio";
|
|
7
|
+
export * from "./components/ui/badge";
|
|
8
|
+
export * from "./components/ui/button";
|
|
6
9
|
export * from "./components/ui/carousel";
|
|
7
10
|
export * from "./components/ui/checkbox";
|
|
11
|
+
export * from "./components/ui/chip";
|
|
12
|
+
export * from "./components/ui/color-swatch";
|
|
8
13
|
export * from "./components/ui/container";
|
|
14
|
+
export * from "./components/ui/drawer";
|
|
15
|
+
export * from "./components/ui/dropdown";
|
|
16
|
+
export * from "./components/ui/empty-message";
|
|
17
|
+
export * from "./components/ui/favorite";
|
|
9
18
|
export * from "./components/ui/grid";
|
|
19
|
+
export * from "./components/ui/icon";
|
|
20
|
+
export * from "./components/ui/image";
|
|
21
|
+
export * from "./components/ui/Input/input";
|
|
10
22
|
export * from "./components/ui/label";
|
|
11
|
-
export * from "./components/ui/
|
|
12
|
-
export * from "./components/ui/badge";
|
|
13
|
-
export * from "./components/ui/video";
|
|
23
|
+
export * from "./components/ui/line-item-text-icons";
|
|
14
24
|
export * from "./components/ui/money";
|
|
15
|
-
export * from "./components/ui/
|
|
16
|
-
export * from "./components/ui/
|
|
17
|
-
export * from "./components/ui/
|
|
18
|
-
export * from "./components/ui/
|
|
19
|
-
export * from "./components/ui/switch";
|
|
25
|
+
export * from "./components/ui/price";
|
|
26
|
+
export * from "./components/ui/product-card";
|
|
27
|
+
export * from "./components/ui/quantity-picker";
|
|
28
|
+
export * from "./components/ui/radio-group";
|
|
20
29
|
export * from "./components/ui/scroll-area";
|
|
21
|
-
export * from "./components/ui/slider";
|
|
22
30
|
export * from "./components/ui/selectors";
|
|
31
|
+
export * from "./components/ui/separator";
|
|
32
|
+
export * from "./components/ui/skeleton";
|
|
33
|
+
export * from "./components/ui/slider";
|
|
34
|
+
export * from "./components/ui/subscription";
|
|
35
|
+
export * from "./components/ui/switch";
|
|
36
|
+
export * from "./components/ui/tabs";
|
|
37
|
+
export * from "./components/ui/text";
|
|
38
|
+
export * from "./components/ui/textarea";
|
|
23
39
|
export * from "./components/ui/toast";
|
|
24
40
|
export * from "./components/ui/toaster";
|
|
25
|
-
export * from "./components/ui/
|
|
41
|
+
export * from "./components/ui/toggle-group";
|
|
42
|
+
export * from "./components/ui/toggle";
|
|
26
43
|
export * from "./components/ui/use-toast";
|
|
27
|
-
export * from "./components/ui/
|
|
28
|
-
export * from "./components/ui/radio-group";
|
|
29
|
-
export * from "./components/ui/tabs";
|
|
30
|
-
export * from "./components/ui/price";
|
|
31
|
-
export * from "./components/ui/favorite";
|
|
44
|
+
export * from "./components/ui/video";
|
|
32
45
|
export * from "./components/ui/wishlist";
|
|
33
|
-
export * from "./components/ui/product-card";
|
|
34
|
-
export * from "./components/ui/dropdown";
|
|
35
|
-
export * from "./components/ui/quantity-picker";
|
|
36
|
-
export * from "./components/hooks/use-infinite-scroll";
|
|
37
|
-
export * from "./components/ui/subscription";
|
|
38
|
-
export * from "./components/ui/line-item-text-icons";
|
|
39
|
-
export * from "./components/ui/textarea";
|
|
40
|
-
export * from "./components/hooks/use-scroll-direction";
|
|
41
|
-
export { cn, cva, getColor } from "./lib/utils";
|
|
42
|
-
export * from "./components/ui/image";
|
|
43
|
-
export * from "./components/ui/empty-message";
|
|
44
|
-
export * from "./components/ui/color-swatch";
|
|
45
46
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC/C,cAAc,wCAAwC,CAAA;AACtD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yCAAyC,CAAA;AACvD,cAAc,2BAA2B,CAAA;AACzC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,2BAA2B,CAAA;AACzC,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,uBAAuB,CAAA;AACrC,cAAc,sCAAsC,CAAA;AACpD,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,wBAAwB,CAAA;AACtC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,uBAAuB,CAAA;AACrC,cAAc,yBAAyB,CAAA;AACvC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,2BAA2B,CAAA;AACzC,cAAc,uBAAuB,CAAA;AACrC,cAAc,0BAA0B,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,45 +1,46 @@
|
|
|
1
1
|
// component exports
|
|
2
|
-
export
|
|
3
|
-
export * from "./components/
|
|
4
|
-
export * from "./components/
|
|
2
|
+
export { cn, cva, getColor } from "./lib/utils";
|
|
3
|
+
export * from "./components/hooks/use-infinite-scroll";
|
|
4
|
+
export * from "./components/hooks/use-products";
|
|
5
|
+
export * from "./components/hooks/use-scroll-direction";
|
|
5
6
|
export * from "./components/ui/accordion";
|
|
6
|
-
export * from "./components/ui/
|
|
7
|
+
export * from "./components/ui/aspect-ratio";
|
|
8
|
+
export * from "./components/ui/badge";
|
|
9
|
+
export * from "./components/ui/button";
|
|
7
10
|
export * from "./components/ui/carousel";
|
|
8
11
|
export * from "./components/ui/checkbox";
|
|
12
|
+
export * from "./components/ui/chip";
|
|
13
|
+
export * from "./components/ui/color-swatch";
|
|
9
14
|
export * from "./components/ui/container";
|
|
15
|
+
export * from "./components/ui/drawer";
|
|
16
|
+
export * from "./components/ui/dropdown";
|
|
17
|
+
export * from "./components/ui/empty-message";
|
|
18
|
+
export * from "./components/ui/favorite";
|
|
10
19
|
export * from "./components/ui/grid";
|
|
20
|
+
export * from "./components/ui/icon";
|
|
21
|
+
export * from "./components/ui/image";
|
|
22
|
+
export * from "./components/ui/Input/input";
|
|
11
23
|
export * from "./components/ui/label";
|
|
12
|
-
export * from "./components/ui/
|
|
13
|
-
export * from "./components/ui/badge";
|
|
14
|
-
export * from "./components/ui/video";
|
|
24
|
+
export * from "./components/ui/line-item-text-icons";
|
|
15
25
|
export * from "./components/ui/money";
|
|
16
|
-
export * from "./components/ui/
|
|
17
|
-
export * from "./components/ui/
|
|
18
|
-
export * from "./components/ui/
|
|
19
|
-
export * from "./components/ui/
|
|
20
|
-
export * from "./components/ui/switch";
|
|
26
|
+
export * from "./components/ui/price";
|
|
27
|
+
export * from "./components/ui/product-card";
|
|
28
|
+
export * from "./components/ui/quantity-picker";
|
|
29
|
+
export * from "./components/ui/radio-group";
|
|
21
30
|
export * from "./components/ui/scroll-area";
|
|
22
|
-
export * from "./components/ui/slider";
|
|
23
31
|
export * from "./components/ui/selectors";
|
|
32
|
+
export * from "./components/ui/separator";
|
|
33
|
+
export * from "./components/ui/skeleton";
|
|
34
|
+
export * from "./components/ui/slider";
|
|
35
|
+
export * from "./components/ui/subscription";
|
|
36
|
+
export * from "./components/ui/switch";
|
|
37
|
+
export * from "./components/ui/tabs";
|
|
38
|
+
export * from "./components/ui/text";
|
|
39
|
+
export * from "./components/ui/textarea";
|
|
24
40
|
export * from "./components/ui/toast";
|
|
25
41
|
export * from "./components/ui/toaster";
|
|
26
|
-
export * from "./components/ui/
|
|
42
|
+
export * from "./components/ui/toggle-group";
|
|
43
|
+
export * from "./components/ui/toggle";
|
|
27
44
|
export * from "./components/ui/use-toast";
|
|
28
|
-
export * from "./components/ui/
|
|
29
|
-
export * from "./components/ui/radio-group";
|
|
30
|
-
export * from "./components/ui/tabs";
|
|
31
|
-
export * from "./components/ui/price";
|
|
32
|
-
export * from "./components/ui/favorite";
|
|
45
|
+
export * from "./components/ui/video";
|
|
33
46
|
export * from "./components/ui/wishlist";
|
|
34
|
-
export * from "./components/ui/product-card";
|
|
35
|
-
export * from "./components/ui/dropdown";
|
|
36
|
-
export * from "./components/ui/quantity-picker";
|
|
37
|
-
export * from "./components/hooks/use-infinite-scroll";
|
|
38
|
-
export * from "./components/ui/subscription";
|
|
39
|
-
export * from "./components/ui/line-item-text-icons";
|
|
40
|
-
export * from "./components/ui/textarea";
|
|
41
|
-
export * from "./components/hooks/use-scroll-direction";
|
|
42
|
-
export { cn, cva, getColor } from "./lib/utils";
|
|
43
|
-
export * from "./components/ui/image";
|
|
44
|
-
export * from "./components/ui/empty-message";
|
|
45
|
-
export * from "./components/ui/color-swatch";
|