@tapcart/mobile-components 0.2.12 → 0.3.1
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-infinite-scroll.d.ts +1 -0
- package/dist/components/hooks/use-infinite-scroll.d.ts.map +1 -1
- package/dist/components/hooks/use-infinite-scroll.js +3 -2
- package/dist/components/hooks/use-scroll-direction.d.ts +1 -1
- package/dist/components/hooks/use-scroll-direction.d.ts.map +1 -1
- package/dist/components/hooks/use-scroll-direction.js +17 -5
- package/dist/components/ui/accordion.js +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +49 -14
- package/dist/components/ui/carousel.d.ts +5 -1
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel.js +29 -2
- package/dist/components/ui/checkbox.js +2 -2
- package/dist/components/ui/chip.d.ts +6 -4
- package/dist/components/ui/chip.d.ts.map +1 -1
- package/dist/components/ui/chip.js +10 -4
- package/dist/components/ui/drawer.js +3 -3
- package/dist/components/ui/icon.d.ts.map +1 -1
- package/dist/components/ui/icon.js +5 -1
- package/dist/components/ui/image.d.ts +157 -0
- package/dist/components/ui/image.d.ts.map +1 -0
- package/dist/components/ui/image.js +311 -0
- package/dist/components/ui/line-item-text-icons.d.ts +14 -0
- package/dist/components/ui/line-item-text-icons.d.ts.map +1 -0
- package/dist/components/ui/line-item-text-icons.js +22 -0
- package/dist/components/ui/product-card.d.ts +6 -19
- package/dist/components/ui/product-card.d.ts.map +1 -1
- package/dist/components/ui/product-card.js +135 -36
- package/dist/components/ui/quantity-picker.d.ts +14 -0
- package/dist/components/ui/quantity-picker.d.ts.map +1 -0
- package/dist/components/ui/quantity-picker.js +23 -0
- package/dist/components/ui/radio-group.js +1 -1
- package/dist/components/ui/selectors.d.ts +1 -1
- package/dist/components/ui/selectors.d.ts.map +1 -1
- package/dist/components/ui/selectors.js +20 -4
- package/dist/components/ui/skeleton.js +1 -1
- package/dist/components/ui/slider.d.ts +14 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.js +50 -0
- package/dist/components/ui/subscription.d.ts +15 -0
- package/dist/components/ui/subscription.d.ts.map +1 -0
- package/dist/components/ui/subscription.js +24 -0
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/switch.js +2 -2
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/textarea.d.ts +18 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +54 -0
- package/dist/components/ui/toggle.js +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/styles.css +248 -122
- package/package.json +20 -14
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tapcart/mobile-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"style": "dist/styles.css",
|
|
@@ -11,14 +11,6 @@
|
|
|
11
11
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
12
12
|
"author": "Tapcart Inc.",
|
|
13
13
|
"homepage": "https://tapcart.com",
|
|
14
|
-
"scripts": {
|
|
15
|
-
"lint": "eslint \"**/*.ts*\"",
|
|
16
|
-
"ui:add": "pnpm dlx shadcn-ui@latest add",
|
|
17
|
-
"build:styles": "postcss styles/globals.css -o dist/styles.css",
|
|
18
|
-
"build:ts": "tsc -p tsconfig.json && tsc-alias",
|
|
19
|
-
"build": "pnpm run build:ts && pnpm run build:styles",
|
|
20
|
-
"dev": "tsc -w -p tsconfig.json"
|
|
21
|
-
},
|
|
22
14
|
"peerDependencies": {
|
|
23
15
|
"react": "^17.0.2 || ^18.0.0",
|
|
24
16
|
"react-dom": "^17.0.2 || ^18.0.0"
|
|
@@ -28,25 +20,29 @@
|
|
|
28
20
|
"@types/react": "^18.2.0",
|
|
29
21
|
"@types/react-dom": "^18.2.0",
|
|
30
22
|
"autoprefixer": "^10.4.14",
|
|
23
|
+
"chokidar-cli": "^3.0.0",
|
|
24
|
+
"concurrently": "^8.2.2",
|
|
31
25
|
"eslint": "^7.32.0",
|
|
32
|
-
"eslint-config-custom": "workspace:*",
|
|
33
26
|
"postcss": "^8.4.24",
|
|
34
27
|
"tailwindcss": "^3.3.2",
|
|
35
28
|
"tsc-alias": "^1.8.10",
|
|
36
|
-
"
|
|
37
|
-
"
|
|
29
|
+
"typescript": "^4.5.2",
|
|
30
|
+
"eslint-config-custom": "0.0.0",
|
|
31
|
+
"tsconfig": "0.0.0",
|
|
32
|
+
"app-studio-types": "0.0.0"
|
|
38
33
|
},
|
|
39
34
|
"dependencies": {
|
|
40
35
|
"@radix-ui/react-accordion": "^1.1.2",
|
|
41
36
|
"@radix-ui/react-alert-dialog": "^1.0.5",
|
|
42
37
|
"@radix-ui/react-aspect-ratio": "^1.0.3",
|
|
43
38
|
"@radix-ui/react-checkbox": "^1.0.4",
|
|
44
|
-
"@radix-ui/react-dropdown-menu": "^2.1.1",
|
|
45
39
|
"@radix-ui/react-dialog": "^1.0.5",
|
|
40
|
+
"@radix-ui/react-dropdown-menu": "^2.1.1",
|
|
46
41
|
"@radix-ui/react-label": "^2.0.2",
|
|
47
42
|
"@radix-ui/react-radio-group": "^1.1.3",
|
|
48
43
|
"@radix-ui/react-scroll-area": "^1.0.5",
|
|
49
44
|
"@radix-ui/react-separator": "^1.0.3",
|
|
45
|
+
"@radix-ui/react-slider": "^1.1.2",
|
|
50
46
|
"@radix-ui/react-slot": "^1.0.2",
|
|
51
47
|
"@radix-ui/react-switch": "^1.0.3",
|
|
52
48
|
"@radix-ui/react-toast": "^1.1.5",
|
|
@@ -64,5 +60,15 @@
|
|
|
64
60
|
"tailwind-merge": "^1.13.2",
|
|
65
61
|
"tailwindcss-animate": "^1.0.6",
|
|
66
62
|
"vaul": "^0.9.1"
|
|
63
|
+
},
|
|
64
|
+
"scripts": {
|
|
65
|
+
"lint": "eslint \"**/*.ts*\"",
|
|
66
|
+
"ui:add": "pnpm dlx shadcn-ui@latest add",
|
|
67
|
+
"build:styles": "postcss styles/globals.css -o dist/styles.css",
|
|
68
|
+
"build:ts": "tsc -p tsconfig.json && tsc-alias",
|
|
69
|
+
"build": "pnpm run build:ts && pnpm run build:styles",
|
|
70
|
+
"dev:ts": "tsc -w -p tsconfig.json",
|
|
71
|
+
"dev:styles": "npx tailwindcss -i styles/globals.css -o dist/styles.css --watch",
|
|
72
|
+
"dev": "concurrently \"pnpm run dev:ts\" \"pnpm run dev:styles\""
|
|
67
73
|
}
|
|
68
|
-
}
|
|
74
|
+
}
|
|
@@ -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 }), void 0);
|
|
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" }, void 0), _jsx("div", { className: "absolute rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" }, void 0), _jsx("span", Object.assign({ className: "sr-only" }, { children: "Toggle theme" }), void 0)] }), void 0));
|
|
8
|
-
}
|