@tapcart/mobile-components 0.7.27 → 0.7.28
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/hooks/use-debug-dependencies.d.ts +10 -0
- package/dist/components/hooks/use-debug-dependencies.d.ts.map +1 -0
- package/dist/components/hooks/use-debug-dependencies.js +17 -0
- package/dist/components/hooks/use-layout.d.ts +13 -0
- package/dist/components/hooks/use-layout.d.ts.map +1 -0
- package/dist/components/hooks/use-layout.js +23 -0
- package/dist/components/hooks/use-nosto-recommendation.d.ts +9 -1
- package/dist/components/hooks/use-nosto-recommendation.d.ts.map +1 -1
- package/dist/components/hooks/use-nosto-recommendation.js +138 -53
- package/dist/components/hooks/use-nosto-recommendation.queries.d.ts +48 -0
- package/dist/components/hooks/use-nosto-recommendation.queries.d.ts.map +1 -0
- package/dist/components/hooks/use-nosto-recommendation.queries.js +143 -0
- package/dist/components/hooks/use-nosto-recommendation.test.d.ts +2 -0
- package/dist/components/hooks/use-nosto-recommendation.test.d.ts.map +1 -0
- package/dist/components/hooks/use-nosto-recommendation.test.js +248 -0
- package/dist/components/hooks/use-recommendations.d.ts.map +1 -1
- package/dist/components/hooks/use-recommendations.js +1 -2
- package/dist/components/ui/drawer.js +1 -1
- package/dist/styles.css +0 -3
- package/package.json +4 -2
- package/dist/components/contexts/translationContext.d.ts +0 -9
- package/dist/components/contexts/translationContext.d.ts.map +0 -1
- package/dist/components/contexts/translationContext.js +0 -5
- package/dist/components/hooks/use-destination.d.ts +0 -23
- package/dist/components/hooks/use-destination.d.ts.map +0 -1
- package/dist/components/hooks/use-destination.js +0 -13
- package/dist/components/hooks/use-tap.d.ts +0 -8
- package/dist/components/hooks/use-tap.d.ts.map +0 -1
- package/dist/components/hooks/use-tap.js +0 -100
- package/dist/components/ui/use-tap.d.ts +0 -8
- package/dist/components/ui/use-tap.d.ts.map +0 -1
- package/dist/components/ui/use-tap.js +0 -100
- package/dist/components/ui/video copy.d.ts +0 -18
- package/dist/components/ui/video copy.d.ts.map +0 -1
- package/dist/components/ui/video copy.js +0 -70
- package/dist/components/ui/video.v2.d.ts +0 -18
- package/dist/components/ui/video.v2.d.ts.map +0 -1
- package/dist/components/ui/video.v2.js +0 -70
- package/dist/index copy.d.ts +0 -59
- package/dist/index copy.d.ts.map +0 -1
- package/dist/index copy.js +0 -59
- package/dist/lib/utils/destination.d.ts +0 -17
- package/dist/lib/utils/destination.d.ts.map +0 -1
- package/dist/lib/utils/destination.js +0 -15
- package/dist/lib/utils/id.d.ts +0 -5
- package/dist/lib/utils/id.d.ts.map +0 -1
- package/dist/lib/utils/id.js +0 -29
- package/dist/lib/utils/index.d.ts +0 -18
- package/dist/lib/utils/index.d.ts.map +0 -1
- package/dist/lib/utils/index.js +0 -55
- package/dist/lib/utils/misc.d.ts +0 -1
- package/dist/lib/utils/misc.d.ts.map +0 -1
- package/dist/lib/utils/misc.js +0 -1
- package/dist/lib/utils/style.d.ts +0 -154
- package/dist/lib/utils/style.d.ts.map +0 -1
- package/dist/lib/utils/style.js +0 -148
- package/dist/lib/utils.deprecated.d.ts +0 -181
- package/dist/lib/utils.deprecated.d.ts.map +0 -1
- package/dist/lib/utils.deprecated.js +0 -222
- package/dist/v2.d.ts +0 -59
- package/dist/v2.d.ts.map +0 -1
- package/dist/v2.js +0 -59
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
11
|
-
var t = {};
|
|
12
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
13
|
-
t[p] = s[p];
|
|
14
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
15
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
16
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
17
|
-
t[p[i]] = s[p[i]];
|
|
18
|
-
}
|
|
19
|
-
return t;
|
|
20
|
-
};
|
|
21
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
-
import * as React from "react";
|
|
23
|
-
import { cn } from "../../lib/utils";
|
|
24
|
-
const videoVariants = {
|
|
25
|
-
base: "w-full",
|
|
26
|
-
fit: {
|
|
27
|
-
cover: "object-cover",
|
|
28
|
-
contain: "object-contain",
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
const Video = (_a) => {
|
|
32
|
-
var { src, videoAttributes, naturalAspectRatio = "1/1", className } = _a, props = __rest(_a, ["src", "videoAttributes", "naturalAspectRatio", "className"]);
|
|
33
|
-
const videoRef = React.useRef(null);
|
|
34
|
-
React.useEffect(() => {
|
|
35
|
-
const video = videoRef.current;
|
|
36
|
-
if (!video)
|
|
37
|
-
return;
|
|
38
|
-
// Handle autoplay with sound restrictions
|
|
39
|
-
const setupVideo = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
40
|
-
try {
|
|
41
|
-
if (videoAttributes.autoplay) {
|
|
42
|
-
// Always start muted to ensure autoplay works
|
|
43
|
-
video.muted = true;
|
|
44
|
-
yield video.play();
|
|
45
|
-
// If sound is enabled, unmute after autoplay starts
|
|
46
|
-
if (videoAttributes.videoSound) {
|
|
47
|
-
video.muted = false;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
catch (error) {
|
|
52
|
-
console.error("Error setting up video:", error);
|
|
53
|
-
// Fallback to showing controls if autoplay fails
|
|
54
|
-
if (video) {
|
|
55
|
-
video.controls = true;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
setupVideo();
|
|
60
|
-
}, [videoAttributes.autoplay, videoAttributes.videoSound]);
|
|
61
|
-
const videoStyle = {
|
|
62
|
-
aspectRatio: videoAttributes.enabled && videoAttributes.aspectRatio !== "auto"
|
|
63
|
-
? videoAttributes.aspectRatio.replace(":", "/")
|
|
64
|
-
: naturalAspectRatio.replace(":", "/"),
|
|
65
|
-
};
|
|
66
|
-
return (_jsx("video", Object.assign({ ref: videoRef, className: cn(videoVariants.base, videoAttributes.videoFit === "fill"
|
|
67
|
-
? videoVariants.fit.cover
|
|
68
|
-
: videoVariants.fit.contain, className), style: videoStyle, preload: "metadata", playsInline: true, loop: videoAttributes.enabled, controls: videoAttributes.enabled && !videoAttributes.autoplay, src: src }, props)));
|
|
69
|
-
};
|
|
70
|
-
export { Video };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
type VideoAttributes = {
|
|
3
|
-
enabled: boolean;
|
|
4
|
-
aspectRatio: string;
|
|
5
|
-
videoFit: "fill" | "fit";
|
|
6
|
-
overlayOpacity: number;
|
|
7
|
-
autoplay: boolean;
|
|
8
|
-
videoSound: boolean;
|
|
9
|
-
};
|
|
10
|
-
interface VideoProps extends React.VideoHTMLAttributes<HTMLVideoElement> {
|
|
11
|
-
src: string;
|
|
12
|
-
videoAttributes: VideoAttributes;
|
|
13
|
-
naturalAspectRatio?: string;
|
|
14
|
-
className?: string;
|
|
15
|
-
}
|
|
16
|
-
declare const Video: ({ src, videoAttributes, naturalAspectRatio, className, ...props }: VideoProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export { Video as VideoV2 };
|
|
18
|
-
//# sourceMappingURL=video.v2.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"video.v2.d.ts","sourceRoot":"","sources":["../../../components/ui/video.v2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAW9B,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAA;IACxB,cAAc,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,UAAU,UAAW,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IACtE,GAAG,EAAE,MAAM,CAAA;IACX,eAAe,EAAE,eAAe,CAAA;IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,KAAK,sEAMR,UAAU,4CA0DZ,CAAA;AAED,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,CAAA"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
11
|
-
var t = {};
|
|
12
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
13
|
-
t[p] = s[p];
|
|
14
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
15
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
16
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
17
|
-
t[p[i]] = s[p[i]];
|
|
18
|
-
}
|
|
19
|
-
return t;
|
|
20
|
-
};
|
|
21
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
-
import * as React from "react";
|
|
23
|
-
import { cn } from "../../lib/utils";
|
|
24
|
-
const videoVariants = {
|
|
25
|
-
base: "w-full",
|
|
26
|
-
fit: {
|
|
27
|
-
cover: "object-cover",
|
|
28
|
-
contain: "object-contain",
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
const Video = (_a) => {
|
|
32
|
-
var { src, videoAttributes, naturalAspectRatio = "1/1", className } = _a, props = __rest(_a, ["src", "videoAttributes", "naturalAspectRatio", "className"]);
|
|
33
|
-
const videoRef = React.useRef(null);
|
|
34
|
-
React.useEffect(() => {
|
|
35
|
-
const video = videoRef.current;
|
|
36
|
-
if (!video)
|
|
37
|
-
return;
|
|
38
|
-
// Handle autoplay with sound restrictions
|
|
39
|
-
const setupVideo = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
40
|
-
try {
|
|
41
|
-
if (videoAttributes.autoplay) {
|
|
42
|
-
// Always start muted to ensure autoplay works
|
|
43
|
-
video.muted = true;
|
|
44
|
-
yield video.play();
|
|
45
|
-
// If sound is enabled, unmute after autoplay starts
|
|
46
|
-
if (videoAttributes.videoSound) {
|
|
47
|
-
video.muted = false;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
catch (error) {
|
|
52
|
-
console.error("Error setting up video:", error);
|
|
53
|
-
// Fallback to showing controls if autoplay fails
|
|
54
|
-
if (video) {
|
|
55
|
-
video.controls = true;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
setupVideo();
|
|
60
|
-
}, [videoAttributes.autoplay, videoAttributes.videoSound]);
|
|
61
|
-
const videoStyle = {
|
|
62
|
-
aspectRatio: videoAttributes.enabled && videoAttributes.aspectRatio !== "auto"
|
|
63
|
-
? videoAttributes.aspectRatio.replace(":", "/")
|
|
64
|
-
: naturalAspectRatio.replace(":", "/"),
|
|
65
|
-
};
|
|
66
|
-
return (_jsx("video", Object.assign({ ref: videoRef, className: cn(videoVariants.base, videoAttributes.videoFit === "fill"
|
|
67
|
-
? videoVariants.fit.cover
|
|
68
|
-
: videoVariants.fit.contain, className), style: videoStyle, preload: "metadata", playsInline: true, loop: videoAttributes.enabled, controls: videoAttributes.enabled && !videoAttributes.autoplay, src: src }, props)));
|
|
69
|
-
};
|
|
70
|
-
export { Video as VideoV2 };
|
package/dist/index copy.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export { cn, cva, getColor, getBackgroundAndPaddingStyle, getBorderSidesStyle, getTextStyle, getVerticalAlignmentStyle, getBackgroundAndSpacingStyle, getIdFromGid, productGidFromId, variantGidFromId, getPaddingStyle, getVerticalAlignment, mapFlexToAlignment, formatRelativeTime, stringRatioToInt, getOverlayStyle, getDestinationHandler, createCollectionImageMap, } from "./lib/utils";
|
|
2
|
-
export * from "./components/hooks/use-collection";
|
|
3
|
-
export * from "./components/hooks/use-infinite-scroll";
|
|
4
|
-
export * from "./components/hooks/use-recommendations";
|
|
5
|
-
export * from "./components/hooks/use-products";
|
|
6
|
-
export * from "./components/hooks/use-scroll-direction";
|
|
7
|
-
export * from "./components/hooks/use-sort-filter";
|
|
8
|
-
export * from "./components/hooks/use-product-options";
|
|
9
|
-
export * from "./components/hooks/use-shop";
|
|
10
|
-
export * from "./components/hooks/use-tap";
|
|
11
|
-
export * from "./components/ui/accordion";
|
|
12
|
-
export * from "./components/ui/aspect-ratio";
|
|
13
|
-
export * from "./components/ui/badge";
|
|
14
|
-
export * from "./components/ui/button";
|
|
15
|
-
export * from "./components/ui/carousel";
|
|
16
|
-
export * from "./components/ui/checkbox";
|
|
17
|
-
export * from "./components/ui/chip";
|
|
18
|
-
export * from "./components/ui/color-swatch";
|
|
19
|
-
export * from "./components/ui/container";
|
|
20
|
-
export * from "./components/ui/drawer";
|
|
21
|
-
export * from "./components/ui/dropdown";
|
|
22
|
-
export * from "./components/ui/empty-message";
|
|
23
|
-
export * from "./components/ui/favorite";
|
|
24
|
-
export * from "./components/ui/grid";
|
|
25
|
-
export * from "./components/ui/icon";
|
|
26
|
-
export * from "./components/ui/image";
|
|
27
|
-
export * from "./components/ui/Input/input";
|
|
28
|
-
export * from "./components/ui/label";
|
|
29
|
-
export * from "./components/ui/line-item-text-icons";
|
|
30
|
-
export * from "./components/ui/money";
|
|
31
|
-
export * from "./components/ui/price";
|
|
32
|
-
export * from "./components/ui/product-card";
|
|
33
|
-
export * from "./components/ui/quantity-picker";
|
|
34
|
-
export * from "./components/ui/radio-group";
|
|
35
|
-
export * from "./components/ui/scroll-area";
|
|
36
|
-
export * from "./components/ui/selectors";
|
|
37
|
-
export * from "./components/ui/separator";
|
|
38
|
-
export * from "./components/ui/skeleton";
|
|
39
|
-
export * from "./components/ui/slider";
|
|
40
|
-
export * from "./components/ui/subscription";
|
|
41
|
-
export * from "./components/ui/switch";
|
|
42
|
-
export * from "./components/ui/tabs";
|
|
43
|
-
export * from "./components/ui/text";
|
|
44
|
-
export * from "./components/ui/textarea";
|
|
45
|
-
export * from "./components/ui/toast";
|
|
46
|
-
export * from "./components/ui/toaster";
|
|
47
|
-
export * from "./components/ui/toggle-group";
|
|
48
|
-
export * from "./components/ui/toggle";
|
|
49
|
-
export * from "./components/ui/use-toast";
|
|
50
|
-
export * from "./components/ui/video";
|
|
51
|
-
export * from "./components/ui/video.v2";
|
|
52
|
-
export * from "./components/ui/wishlist";
|
|
53
|
-
export * from "./components/ui/wishlist-select";
|
|
54
|
-
export * from "./components/hooks/use-shop";
|
|
55
|
-
export * from "./components/libs/sort-filter/search-integration";
|
|
56
|
-
export * from "./components/hooks/use-reviews";
|
|
57
|
-
export * from "./components/ui/subcollection-tabs";
|
|
58
|
-
export * from "./components/libs/sort-filter/search-integration";
|
|
59
|
-
//# sourceMappingURL=index%20copy.d.ts.map
|
package/dist/index copy.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index copy.d.ts","sourceRoot":"","sources":["../index copy.ts"],"names":[],"mappings":"AACA,OAAO,EACL,EAAE,EACF,GAAG,EACH,QAAQ,EACR,4BAA4B,EAC5B,mBAAmB,EACnB,YAAY,EACZ,yBAAyB,EACzB,4BAA4B,EAC5B,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,aAAa,CAAA;AACpB,cAAc,mCAAmC,CAAA;AACjD,cAAc,wCAAwC,CAAA;AACtD,cAAc,wCAAwC,CAAA;AACtD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yCAAyC,CAAA;AACvD,cAAc,oCAAoC,CAAA;AAClD,cAAc,wCAAwC,CAAA;AACtD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,4BAA4B,CAAA;AAC1C,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;AACxC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,kDAAkD,CAAA;AAChE,cAAc,gCAAgC,CAAA;AAC9C,cAAc,oCAAoC,CAAA;AAClD,cAAc,kDAAkD,CAAA"}
|
package/dist/index copy.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
// component exports
|
|
2
|
-
export { cn, cva, getColor, getBackgroundAndPaddingStyle, getBorderSidesStyle, getTextStyle, getVerticalAlignmentStyle, getBackgroundAndSpacingStyle, getIdFromGid, productGidFromId, variantGidFromId, getPaddingStyle, getVerticalAlignment, mapFlexToAlignment, formatRelativeTime, stringRatioToInt, getOverlayStyle, getDestinationHandler, createCollectionImageMap, } from "./lib/utils";
|
|
3
|
-
export * from "./components/hooks/use-collection";
|
|
4
|
-
export * from "./components/hooks/use-infinite-scroll";
|
|
5
|
-
export * from "./components/hooks/use-recommendations";
|
|
6
|
-
export * from "./components/hooks/use-products";
|
|
7
|
-
export * from "./components/hooks/use-scroll-direction";
|
|
8
|
-
export * from "./components/hooks/use-sort-filter";
|
|
9
|
-
export * from "./components/hooks/use-product-options";
|
|
10
|
-
export * from "./components/hooks/use-shop";
|
|
11
|
-
export * from "./components/hooks/use-tap";
|
|
12
|
-
export * from "./components/ui/accordion";
|
|
13
|
-
export * from "./components/ui/aspect-ratio";
|
|
14
|
-
export * from "./components/ui/badge";
|
|
15
|
-
export * from "./components/ui/button";
|
|
16
|
-
export * from "./components/ui/carousel";
|
|
17
|
-
export * from "./components/ui/checkbox";
|
|
18
|
-
export * from "./components/ui/chip";
|
|
19
|
-
export * from "./components/ui/color-swatch";
|
|
20
|
-
export * from "./components/ui/container";
|
|
21
|
-
export * from "./components/ui/drawer";
|
|
22
|
-
export * from "./components/ui/dropdown";
|
|
23
|
-
export * from "./components/ui/empty-message";
|
|
24
|
-
export * from "./components/ui/favorite";
|
|
25
|
-
export * from "./components/ui/grid";
|
|
26
|
-
export * from "./components/ui/icon";
|
|
27
|
-
export * from "./components/ui/image";
|
|
28
|
-
export * from "./components/ui/Input/input";
|
|
29
|
-
export * from "./components/ui/label";
|
|
30
|
-
export * from "./components/ui/line-item-text-icons";
|
|
31
|
-
export * from "./components/ui/money";
|
|
32
|
-
export * from "./components/ui/price";
|
|
33
|
-
export * from "./components/ui/product-card";
|
|
34
|
-
export * from "./components/ui/quantity-picker";
|
|
35
|
-
export * from "./components/ui/radio-group";
|
|
36
|
-
export * from "./components/ui/scroll-area";
|
|
37
|
-
export * from "./components/ui/selectors";
|
|
38
|
-
export * from "./components/ui/separator";
|
|
39
|
-
export * from "./components/ui/skeleton";
|
|
40
|
-
export * from "./components/ui/slider";
|
|
41
|
-
export * from "./components/ui/subscription";
|
|
42
|
-
export * from "./components/ui/switch";
|
|
43
|
-
export * from "./components/ui/tabs";
|
|
44
|
-
export * from "./components/ui/text";
|
|
45
|
-
export * from "./components/ui/textarea";
|
|
46
|
-
export * from "./components/ui/toast";
|
|
47
|
-
export * from "./components/ui/toaster";
|
|
48
|
-
export * from "./components/ui/toggle-group";
|
|
49
|
-
export * from "./components/ui/toggle";
|
|
50
|
-
export * from "./components/ui/use-toast";
|
|
51
|
-
export * from "./components/ui/video";
|
|
52
|
-
export * from "./components/ui/video.v2";
|
|
53
|
-
export * from "./components/ui/wishlist";
|
|
54
|
-
export * from "./components/ui/wishlist-select";
|
|
55
|
-
export * from "./components/hooks/use-shop";
|
|
56
|
-
export * from "./components/libs/sort-filter/search-integration";
|
|
57
|
-
export * from "./components/hooks/use-reviews";
|
|
58
|
-
export * from "./components/ui/subcollection-tabs";
|
|
59
|
-
export * from "./components/libs/sort-filter/search-integration";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
type DestinationActions = {
|
|
2
|
-
openScreen: (arg: {
|
|
3
|
-
destination: {
|
|
4
|
-
type: "internal" | "web";
|
|
5
|
-
url: string;
|
|
6
|
-
};
|
|
7
|
-
}) => void;
|
|
8
|
-
openProduct: (arg: {
|
|
9
|
-
productId: string;
|
|
10
|
-
}) => void;
|
|
11
|
-
openCollection: (arg: {
|
|
12
|
-
collectionId: string;
|
|
13
|
-
}) => void;
|
|
14
|
-
};
|
|
15
|
-
export declare const getDestinationHandler: (type: "app-screen" | "url" | "product" | "collection" | "none") => ((location: string, actions: DestinationActions) => void) | ((location: string, actions: DestinationActions) => void) | ((location: string, actions: DestinationActions) => void) | ((location: string, actions: DestinationActions) => void) | (() => void);
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=destination.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"destination.d.ts","sourceRoot":"","sources":["../../../lib/utils/destination.ts"],"names":[],"mappings":"AAAA,KAAK,kBAAkB,GAAG;IACxB,UAAU,EAAE,CAAC,GAAG,EAAE;QAChB,WAAW,EAAE;YAAE,IAAI,EAAE,UAAU,GAAG,KAAK,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,CAAA;KACvD,KAAK,IAAI,CAAA;IACV,WAAW,EAAE,CAAC,GAAG,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IACjD,cAAc,EAAE,CAAC,GAAG,EAAE;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CACxD,CAAA;AAmBD,eAAO,MAAM,qBAAqB,SAC1B,YAAY,GAAG,KAAK,GAAG,SAAS,GAAG,YAAY,GAAG,MAAM,iBAjBrC,MAAM,WAAW,kBAAkB,yBAE5C,MAAM,WAAW,kBAAkB,yBAO/B,MAAM,WAAW,kBAAkB,yBAEhC,MAAM,WAAW,kBAAkB,yBAS3D,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const DESTINATION_HANDLERS = {
|
|
2
|
-
"app-screen": (location, actions) => actions.openScreen({ destination: { type: "internal", url: location } }),
|
|
3
|
-
url: (location, actions) => actions.openScreen({
|
|
4
|
-
destination: {
|
|
5
|
-
type: "web",
|
|
6
|
-
url: location.includes("https://") ? location : `https://${location}`,
|
|
7
|
-
},
|
|
8
|
-
}),
|
|
9
|
-
product: (location, actions) => actions.openProduct({ productId: location }),
|
|
10
|
-
collection: (location, actions) => actions.openCollection({ collectionId: location }),
|
|
11
|
-
none: () => { },
|
|
12
|
-
};
|
|
13
|
-
export const getDestinationHandler = (type) => {
|
|
14
|
-
return DESTINATION_HANDLERS[type];
|
|
15
|
-
};
|
package/dist/lib/utils/id.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare function getIdFromGid(gid: string | undefined): string;
|
|
2
|
-
export declare function productGidFromId(id: string | null | undefined): string | null;
|
|
3
|
-
export declare function variantGidFromId(id: string | null | undefined): string | null;
|
|
4
|
-
export declare function getProductGidsFromIds(ids: string[]): string[];
|
|
5
|
-
//# sourceMappingURL=id.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../../lib/utils/id.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAK5D;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAI7E;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAI7E;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,YAOlD"}
|
package/dist/lib/utils/id.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
const BASE = "gid://shopify";
|
|
2
|
-
export function getIdFromGid(gid) {
|
|
3
|
-
if (!gid)
|
|
4
|
-
return "";
|
|
5
|
-
const arr = gid.split("/");
|
|
6
|
-
return arr[arr.length - 1] || "";
|
|
7
|
-
}
|
|
8
|
-
export function productGidFromId(id) {
|
|
9
|
-
if (!id)
|
|
10
|
-
return null;
|
|
11
|
-
if (id.startsWith(`${BASE}/Product/`))
|
|
12
|
-
return id;
|
|
13
|
-
return `${BASE}/Product/${id}`;
|
|
14
|
-
}
|
|
15
|
-
export function variantGidFromId(id) {
|
|
16
|
-
if (!id)
|
|
17
|
-
return null;
|
|
18
|
-
if (id.startsWith(`${BASE}/ProductVariant/`))
|
|
19
|
-
return id;
|
|
20
|
-
return `${BASE}/ProductVariant/${id}`;
|
|
21
|
-
}
|
|
22
|
-
export function getProductGidsFromIds(ids) {
|
|
23
|
-
return ids.map((id) => {
|
|
24
|
-
if (id.startsWith(`${BASE}/Product/`)) {
|
|
25
|
-
return id;
|
|
26
|
-
}
|
|
27
|
-
return `${BASE}/Product/${id}`;
|
|
28
|
-
});
|
|
29
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export { cn, cva, iconColorLevels, iconColorVariantClasses, getColor, getBackgroundAndPaddingStyle, getBorderSidesStyle, getTextStyle, getVerticalAlignmentStyle, getBackgroundAndSpacingStyle, getPaddingStyle, getVerticalAlignment, mapFlexToAlignment, getOverlayStyle, type Color, type Spacing, type BackgroundAndPadding, type TextStyle, } from "./style";
|
|
2
|
-
export { getIdFromGid, productGidFromId, variantGidFromId, getProductGidsFromIds, } from "./id";
|
|
3
|
-
export { getDestinationHandler } from "./destination";
|
|
4
|
-
export declare function throttleFunction(fn: Function, wait: number): ((...args: any[]) => void)[];
|
|
5
|
-
export declare function formatRelativeTime(inputDate: Date | string): string;
|
|
6
|
-
export declare const stringRatioToInt: (string: string) => number;
|
|
7
|
-
export declare const createCollectionImageMap: (collections: {
|
|
8
|
-
id: string;
|
|
9
|
-
customImage: boolean;
|
|
10
|
-
image?: string;
|
|
11
|
-
}[]) => Record<string, string>;
|
|
12
|
-
type GetTranslationsParams = {
|
|
13
|
-
text: string;
|
|
14
|
-
translations: Record<string, string>;
|
|
15
|
-
override?: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const getTextTranslation: ({ text, translations, override, }: GetTranslationsParams) => string;
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/utils/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,EAAE,EACF,GAAG,EACH,eAAe,EACf,uBAAuB,EACvB,QAAQ,EACR,4BAA4B,EAC5B,mBAAmB,EACnB,YAAY,EACZ,yBAAyB,EACzB,4BAA4B,EAC5B,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,SAAS,GACf,MAAM,SAAS,CAAA;AAEhB,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,MAAM,CAAA;AAEb,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAIrD,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,cAOpC,GAAG,EAAE,aAU3B;AAED,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,UAG1D;AAED,eAAO,MAAM,gBAAgB,WAAY,MAAM,WAQ9C,CAAA;AAED,eAAO,MAAM,wBAAwB,gBACtB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,2BAQpE,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,kBAAkB,sCAI5B,qBAAqB,WAYvB,CAAA"}
|
package/dist/lib/utils/index.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import dayjs from "dayjs";
|
|
2
|
-
import relativeTime from "dayjs/plugin/relativeTime";
|
|
3
|
-
export { cn, cva, iconColorLevels, iconColorVariantClasses, getColor, getBackgroundAndPaddingStyle, getBorderSidesStyle, getTextStyle, getVerticalAlignmentStyle, getBackgroundAndSpacingStyle, getPaddingStyle, getVerticalAlignment, mapFlexToAlignment, getOverlayStyle, } from "./style";
|
|
4
|
-
export { getIdFromGid, productGidFromId, variantGidFromId, getProductGidsFromIds, } from "./id";
|
|
5
|
-
export { getDestinationHandler } from "./destination";
|
|
6
|
-
// #region =-=-=-= General Utils =-=-=-=
|
|
7
|
-
// Use to prevent multiple clicks in quick succession
|
|
8
|
-
export function throttleFunction(fn, wait) {
|
|
9
|
-
let throttle = false;
|
|
10
|
-
return [
|
|
11
|
-
function () {
|
|
12
|
-
return throttle;
|
|
13
|
-
},
|
|
14
|
-
function (...args) {
|
|
15
|
-
if (!throttle) {
|
|
16
|
-
fn(...args);
|
|
17
|
-
throttle = true;
|
|
18
|
-
setInterval(() => {
|
|
19
|
-
throttle = false;
|
|
20
|
-
}, wait);
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
];
|
|
24
|
-
}
|
|
25
|
-
export function formatRelativeTime(inputDate) {
|
|
26
|
-
dayjs.extend(relativeTime);
|
|
27
|
-
return dayjs(inputDate).fromNow();
|
|
28
|
-
}
|
|
29
|
-
export const stringRatioToInt = (string) => {
|
|
30
|
-
const [numerator, denominator] = string
|
|
31
|
-
.replace(":", "/")
|
|
32
|
-
.split("/")
|
|
33
|
-
.map((part) => part.trim())
|
|
34
|
-
.map(Number);
|
|
35
|
-
return numerator / denominator;
|
|
36
|
-
};
|
|
37
|
-
export const createCollectionImageMap = (collections) => {
|
|
38
|
-
return collections.reduce((imageMap, collection) => {
|
|
39
|
-
if (collection.customImage && collection.image) {
|
|
40
|
-
imageMap[collection.id] = collection.image;
|
|
41
|
-
}
|
|
42
|
-
return imageMap;
|
|
43
|
-
}, {});
|
|
44
|
-
};
|
|
45
|
-
export const getTextTranslation = ({ text, translations, override, }) => {
|
|
46
|
-
if (!override) {
|
|
47
|
-
override = text;
|
|
48
|
-
}
|
|
49
|
-
const key = text.toLowerCase().trim();
|
|
50
|
-
if (key in translations) {
|
|
51
|
-
return translations[key];
|
|
52
|
-
}
|
|
53
|
-
return override;
|
|
54
|
-
};
|
|
55
|
-
// #endregion =-=-=-= General Utils =-=-=-=
|
package/dist/lib/utils/misc.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=misc.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../lib/utils/misc.ts"],"names":[],"mappings":""}
|
package/dist/lib/utils/misc.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { ClassValue } from "clsx";
|
|
2
|
-
export type Color = {
|
|
3
|
-
type: "custom" | "brand-kit";
|
|
4
|
-
value: string;
|
|
5
|
-
};
|
|
6
|
-
export type Spacing = {
|
|
7
|
-
top: number;
|
|
8
|
-
bottom: number;
|
|
9
|
-
left: number;
|
|
10
|
-
right: number;
|
|
11
|
-
};
|
|
12
|
-
export type BackgroundAndPadding = {
|
|
13
|
-
backgroundColor?: Color;
|
|
14
|
-
borderSides?: BorderSides;
|
|
15
|
-
borderColor?: Color;
|
|
16
|
-
cornerRadius?: number;
|
|
17
|
-
padding?: Partial<Spacing>;
|
|
18
|
-
borderRadius?: number;
|
|
19
|
-
};
|
|
20
|
-
export type TextStyle = {
|
|
21
|
-
font: {
|
|
22
|
-
family: string;
|
|
23
|
-
weight: number | string;
|
|
24
|
-
};
|
|
25
|
-
size: number | string;
|
|
26
|
-
color: Color;
|
|
27
|
-
uppercase: boolean;
|
|
28
|
-
textAlignment: "left" | "center" | "right" | "justify";
|
|
29
|
-
wrapText: boolean;
|
|
30
|
-
};
|
|
31
|
-
type Headline = TextStyle;
|
|
32
|
-
type Subtext = TextStyle;
|
|
33
|
-
type BorderSide = "all" | "top" | "bottom" | "left" | "right";
|
|
34
|
-
type BorderSides = BorderSide[];
|
|
35
|
-
type VerticalAlignment = "top" | "middle" | "bottom";
|
|
36
|
-
type AlignmentAndSpacing = {
|
|
37
|
-
alignment: VerticalAlignment;
|
|
38
|
-
spacing: Spacing;
|
|
39
|
-
};
|
|
40
|
-
type BackgroundAndSpacing = AlignmentAndSpacing & {
|
|
41
|
-
backgroundColor?: Color;
|
|
42
|
-
borderColor?: Color;
|
|
43
|
-
backgroundCorners?: number;
|
|
44
|
-
};
|
|
45
|
-
export { cva } from "class-variance-authority";
|
|
46
|
-
export declare function cn(...inputs: ClassValue[]): string;
|
|
47
|
-
export declare const mapFlexToAlignment: (flexClass: string) => string;
|
|
48
|
-
export declare const iconColorLevels: string[];
|
|
49
|
-
export declare const iconColorVariantClasses: Record<string, string>;
|
|
50
|
-
export declare const getColor: (colorOption: Color | undefined) => string | undefined;
|
|
51
|
-
export declare const getBorderSidesStyle: (borderSides: BorderSides) => {
|
|
52
|
-
borderWidth: string;
|
|
53
|
-
borderTopWidth?: undefined;
|
|
54
|
-
borderBottomWidth?: undefined;
|
|
55
|
-
borderLeftWidth?: undefined;
|
|
56
|
-
borderRightWidth?: undefined;
|
|
57
|
-
} | {
|
|
58
|
-
borderTopWidth: string | number;
|
|
59
|
-
borderBottomWidth: string | number;
|
|
60
|
-
borderLeftWidth: string | number;
|
|
61
|
-
borderRightWidth: string | number;
|
|
62
|
-
borderWidth?: undefined;
|
|
63
|
-
};
|
|
64
|
-
export declare const getVerticalAlignmentStyle: (alignmentAndSpacing: AlignmentAndSpacing) => {
|
|
65
|
-
bottom: string;
|
|
66
|
-
top: string;
|
|
67
|
-
transform?: undefined;
|
|
68
|
-
} | {
|
|
69
|
-
top: string;
|
|
70
|
-
transform: string;
|
|
71
|
-
bottom?: undefined;
|
|
72
|
-
} | {
|
|
73
|
-
bottom?: undefined;
|
|
74
|
-
top?: undefined;
|
|
75
|
-
transform?: undefined;
|
|
76
|
-
};
|
|
77
|
-
export declare const getPaddingStyle: (padding: Partial<Spacing> | undefined) => {
|
|
78
|
-
paddingTop?: undefined;
|
|
79
|
-
paddingBottom?: undefined;
|
|
80
|
-
paddingLeft?: undefined;
|
|
81
|
-
paddingRight?: undefined;
|
|
82
|
-
} | {
|
|
83
|
-
paddingTop: string | undefined;
|
|
84
|
-
paddingBottom: string | undefined;
|
|
85
|
-
paddingLeft: string | undefined;
|
|
86
|
-
paddingRight: string | undefined;
|
|
87
|
-
};
|
|
88
|
-
export declare const getBackgroundAndPaddingStyle: (backgroundAndPadding: BackgroundAndPadding) => {
|
|
89
|
-
backgroundColor: string | undefined;
|
|
90
|
-
borderColor: string | undefined;
|
|
91
|
-
borderTopWidth: string | undefined;
|
|
92
|
-
borderBottomWidth: string | undefined;
|
|
93
|
-
borderLeftWidth: string | undefined;
|
|
94
|
-
borderRightWidth: string | undefined;
|
|
95
|
-
borderStyle: string | undefined;
|
|
96
|
-
borderRadius: string | undefined;
|
|
97
|
-
paddingTop?: undefined;
|
|
98
|
-
paddingBottom?: undefined;
|
|
99
|
-
paddingLeft?: undefined;
|
|
100
|
-
paddingRight?: undefined;
|
|
101
|
-
} | {
|
|
102
|
-
backgroundColor: string | undefined;
|
|
103
|
-
borderColor: string | undefined;
|
|
104
|
-
borderTopWidth: string | undefined;
|
|
105
|
-
borderBottomWidth: string | undefined;
|
|
106
|
-
borderLeftWidth: string | undefined;
|
|
107
|
-
borderRightWidth: string | undefined;
|
|
108
|
-
borderStyle: string | undefined;
|
|
109
|
-
borderRadius: string | undefined;
|
|
110
|
-
paddingTop: string | undefined;
|
|
111
|
-
paddingBottom: string | undefined;
|
|
112
|
-
paddingLeft: string | undefined;
|
|
113
|
-
paddingRight: string | undefined;
|
|
114
|
-
};
|
|
115
|
-
export declare const getBackgroundAndSpacingStyle: (backgroundAndSpacing: BackgroundAndSpacing) => {
|
|
116
|
-
padding: string;
|
|
117
|
-
borderColor: string;
|
|
118
|
-
backgroundColor: string;
|
|
119
|
-
borderRadius: string;
|
|
120
|
-
};
|
|
121
|
-
export declare const getTextStyle: (textStyle: Headline | Subtext) => {
|
|
122
|
-
fontFamily: string | undefined;
|
|
123
|
-
fontWeight: string | number | undefined;
|
|
124
|
-
fontSize: string | number;
|
|
125
|
-
color: string | undefined;
|
|
126
|
-
textTransform: string;
|
|
127
|
-
textAlign: "left" | "center" | "right" | "justify";
|
|
128
|
-
textWrap: string;
|
|
129
|
-
};
|
|
130
|
-
export declare const getVerticalAlignment: (alignment: string, padding?: {
|
|
131
|
-
top: number;
|
|
132
|
-
bottom: number;
|
|
133
|
-
}) => {
|
|
134
|
-
bottom: string;
|
|
135
|
-
top: string;
|
|
136
|
-
transform?: undefined;
|
|
137
|
-
} | {
|
|
138
|
-
top: string;
|
|
139
|
-
transform: string;
|
|
140
|
-
bottom?: undefined;
|
|
141
|
-
} | {
|
|
142
|
-
bottom?: undefined;
|
|
143
|
-
top?: undefined;
|
|
144
|
-
transform?: undefined;
|
|
145
|
-
};
|
|
146
|
-
export declare const getOverlayStyle: (opacity: number) => {
|
|
147
|
-
position: string;
|
|
148
|
-
top: number;
|
|
149
|
-
left: number;
|
|
150
|
-
right: number;
|
|
151
|
-
bottom: number;
|
|
152
|
-
backgroundColor: string;
|
|
153
|
-
};
|
|
154
|
-
//# sourceMappingURL=style.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../lib/utils/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAA;AAIvC,MAAM,MAAM,KAAK,GAAG;IAAE,IAAI,EAAE,QAAQ,GAAG,WAAW,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AACnE,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AACD,MAAM,MAAM,oBAAoB,GAAG;IACjC,eAAe,CAAC,EAAE,KAAK,CAAA;IACvB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,WAAW,CAAC,EAAE,KAAK,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AACD,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE;QACJ,MAAM,EAAE,MAAM,CAAA;QACd,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;KACxB,CAAA;IACD,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,KAAK,EAAE,KAAK,CAAA;IACZ,SAAS,EAAE,OAAO,CAAA;IAClB,aAAa,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;IACtD,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,KAAK,QAAQ,GAAG,SAAS,CAAA;AACzB,KAAK,OAAO,GAAG,SAAS,CAAA;AACxB,KAAK,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;AAC7D,KAAK,WAAW,GAAG,UAAU,EAAE,CAAA;AAC/B,KAAK,iBAAiB,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAA;AACpD,KAAK,mBAAmB,GAAG;IACzB,SAAS,EAAE,iBAAiB,CAAA;IAC5B,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AACD,KAAK,oBAAoB,GAAG,mBAAmB,GAAG;IAChD,eAAe,CAAC,EAAE,KAAK,CAAA;IACvB,WAAW,CAAC,EAAE,KAAK,CAAA;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B,CAAA;AAID,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAA;AAE9C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAQD,eAAO,MAAM,kBAAkB,cAAe,MAAM,WAGnD,CAAA;AAID,eAAO,MAAM,eAAe,UAc3B,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,CAAA;AAQjE,eAAO,MAAM,QAAQ,gBAAiB,KAAK,GAAG,SAAS,uBAUtD,CAAA;AAID,eAAO,MAAM,mBAAmB;;;;;;;;;;;;CAU/B,CAAA;AAED,eAAO,MAAM,yBAAyB,wBACf,mBAAmB;;;;;;;;;;;;CAczC,CAAA;AAED,eAAO,MAAM,eAAe,YAAa,QAAQ,OAAO,CAAC,GAAG,SAAS;;;;;;;;;;CAWpE,CAAA;AAED,eAAO,MAAM,4BAA4B,yBACjB,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC3C,CAAA;AAED,eAAO,MAAM,4BAA4B,yBACjB,oBAAoB;;;;;CAU3C,CAAA;AAED,eAAO,MAAM,YAAY,cAAe,QAAQ,GAAG,OAAO;;;;;;;;CAWzD,CAAA;AAED,eAAO,MAAM,oBAAoB,cACpB,MAAM;;;;;;;;;;;;;;;CAYlB,CAAA;AAED,eAAO,MAAM,eAAe,YAAa,MAAM;;;;;;;CAW9C,CAAA"}
|