@6thbridge/hexa 0.0.0-pr32-13

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.
@@ -0,0 +1,33 @@
1
+ import globals from "globals";
2
+ import pluginJs from "@eslint/js";
3
+ import tseslint from "typescript-eslint";
4
+ // import pluginReact from "eslint-plugin-react";
5
+
6
+ /** @type {import('eslint').Linter.Config[]} */
7
+ export default [
8
+ {
9
+ // https://eslint.org/docs/latest/use/configure/ignore
10
+ ignores: [
11
+ // only ignore node_modules in the same directory
12
+ // as the configuration file
13
+ "node_modules",
14
+ "dist",
15
+ // so you have to add `**/` pattern to include nested directories
16
+ // for example, if you use pnpm workspace
17
+ "**/node_modules",
18
+ // also you can add a new rule to revert a ignore
19
+ "!./packages/manual-add-lib/node_modules/local-lib.js",
20
+ ],
21
+ },
22
+ { files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"] },
23
+ { languageOptions: { globals: globals.browser } },
24
+ pluginJs.configs.recommended,
25
+ ...tseslint.configs.recommended,
26
+ // config envs
27
+ {
28
+ languageOptions: {
29
+ globals: { ...globals.browser, ...globals.node },
30
+ },
31
+ },
32
+ // pluginReact.configs.flat.recommended,
33
+ ];
package/jest.config.js ADDED
@@ -0,0 +1,8 @@
1
+ module.exports = {
2
+ roots: ['<rootDir>/src'],
3
+ testMatch: ['**/tests/**/*.+(ts|tsx|js)', '**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],
4
+ transform: {
5
+ '^.+\\.(ts|tsx)$': 'ts-jest',
6
+ },
7
+ testTimeout: 100000,
8
+ };
package/package.json ADDED
@@ -0,0 +1,94 @@
1
+ {
2
+ "name": "@6thbridge/hexa",
3
+ "version": "0.0.0-pr32-13",
4
+ "main": "dist/index.js",
5
+ "types": "dist/index.d.ts",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./dist/index.d.ts",
9
+ "import": "./dist/index.mjs",
10
+ "require": "./dist/index.js"
11
+ },
12
+ "./dist/output.css": {
13
+ "import": "./dist/output.css",
14
+ "require": "./dist/output.css"
15
+ }
16
+ },
17
+ "devDependencies": {
18
+ "@eslint/js": "^9.17.0",
19
+ "@turbo/gen": "^1.12.4",
20
+ "@types/jest": "^29.5.14",
21
+ "@types/node": "^20.11.24",
22
+ "@types/react": "18.3.0",
23
+ "@types/react-dom": "18.3.1",
24
+ "autoprefixer": "^10.4.15",
25
+ "concurrently": "^9.1.2",
26
+ "eslint": "^9.19.0",
27
+ "eslint-config-prettier": "^8.3.0",
28
+ "eslint-config-turbo": "latest",
29
+ "eslint-plugin-react": "7.29.4",
30
+ "globals": "^15.12.0",
31
+ "jest": "^29.7.0",
32
+ "postcss": "^8.5.1",
33
+ "prettier": "^3.3.3",
34
+ "tailwindcss": "^3.3.3",
35
+ "ts-jest": "^29.1.1",
36
+ "tsup": "^8.3.5",
37
+ "typescript": "5.5.4",
38
+ "typescript-eslint": "^8.15.0",
39
+ "vite": "^6.0.11"
40
+ },
41
+ "dependencies": {
42
+ "@radix-ui/react-dialog": "^1.1.5",
43
+ "@radix-ui/react-dismissable-layer": "1.1.0",
44
+ "@radix-ui/react-focus-scope": "1.1.0",
45
+ "@radix-ui/react-label": "^2.1.1",
46
+ "@radix-ui/react-popover": "^1.1.5",
47
+ "@radix-ui/react-radio-group": "^1.3.7",
48
+ "@radix-ui/react-scroll-area": "^1.2.2",
49
+ "@radix-ui/react-slot": "^1.1.1",
50
+ "@radix-ui/react-tooltip": "^1.2.6",
51
+ "@tanstack/react-table": "^8.21.2",
52
+ "class-variance-authority": "^0.7.1",
53
+ "clsx": "^2.1.1",
54
+ "cmdk": "^1.0.4",
55
+ "date-fns": "2.30.0",
56
+ "dayjs": "^1.11.13",
57
+ "framer-motion": "^12.4.3",
58
+ "lucide-react": "^0.474.0",
59
+ "react": "^18",
60
+ "react-day-picker": "^8.8.0",
61
+ "react-dom": "^18",
62
+ "react-hook-form": "^7.57.0",
63
+ "react-icons": "^5.5.0",
64
+ "react-otp-input": "^3.1.1",
65
+ "react-paginate": "8.2.0",
66
+ "react-phone-number-input": "^3.3.9",
67
+ "tailwind-merge": "^2.6.0",
68
+ "tailwindcss-animate": "^1.0.7",
69
+ "tippy.js": "^6.3.7",
70
+ "uuid": "^11.1.0",
71
+ "vaul": "^1.1.2",
72
+ "zustand": "^5.0.5"
73
+ },
74
+ "peerDependencies": {
75
+ "react": ">=18.0.0",
76
+ "react-dom": ">=18.0.0"
77
+ },
78
+ "resolutions": {
79
+ "@radix-ui/react-dismissable-layer": "1.1.0",
80
+ "@radix-ui/react-focus-scope": "1.1.0"
81
+ },
82
+ "scripts": {
83
+ "lint": "eslint . --max-warnings 0",
84
+ "generate:component": "turbo gen react-component",
85
+ "check-types": "tsc --noEmit",
86
+ "reset": "rimraf .turbo node_modules && rimraf dist",
87
+ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
88
+ "build:style": "tailwindcss -i ./src/styles/input.css -o ./dist/output.css",
89
+ "dev:style": "tailwindcss -i ./src/styles/input.css -o ./dist/output.css --watch",
90
+ "build-fast": "tsup src/index.ts --format=esm,cjs --no-dts --watch",
91
+ "build": "tsup src/index.ts --format=esm,cjs --dts --clean --minify --sourcemap && pnpm run build:style",
92
+ "dev": "concurrently \"pnpm run build-fast\" \"pnpm run dev:style\""
93
+ }
94
+ }
@@ -0,0 +1,12 @@
1
+ // const config = {
2
+ // plugins: {
3
+ // "@tailwindcss/postcss": {},
4
+ // },
5
+ // };
6
+ // export default config;
7
+ module.exports = {
8
+ plugins: {
9
+ tailwindcss: {},
10
+ autoprefixer: {},
11
+ },
12
+ };
@@ -0,0 +1,30 @@
1
+ /* eslint-disable @typescript-eslint/no-require-imports */
2
+ /** @type {import('tailwindcss').Config} */
3
+
4
+ module.exports = {
5
+ darkMode: ["class"],
6
+ content: [
7
+ "./app/**/*.{js,jsx,ts,tsx}",
8
+ "./pages/**/*.{js,jsx,ts,tsx}",
9
+ "./components/**/*.{js,jsx,ts,tsx}",
10
+ "./src/**/*.{js,jsx,ts,tsx}",
11
+ ],
12
+ theme: {
13
+ extend: {
14
+ colors: {
15
+ primary: {
16
+ main: "var(--color-primary)",
17
+ accent: "var(--color-primary-accent)",
18
+ // main: "rgba(2, 49, 197, 1)",
19
+ },
20
+ },
21
+ fontSize: {
22
+ xxs: "10px",
23
+ },
24
+ fontFamily: {
25
+ sans: ["GT Walsheim Pro", "sans-serif"],
26
+ },
27
+ },
28
+ },
29
+ plugins: [require("tailwindcss-animate")],
30
+ };
package/tsconfig.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "useDefineForClassFields": true,
5
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
+ "module": "ESNext",
7
+ "skipLibCheck": true,
8
+
9
+ /* Bundler mode */
10
+ "moduleResolution": "node",
11
+ // "allowImportingTsExtensions": true,
12
+ // "resolveJsonModule": true,
13
+ "isolatedModules": true,
14
+ "noEmit": true,
15
+ "jsx": "react-jsx",
16
+
17
+ /* Linting */
18
+ "strict": true,
19
+ "noUnusedLocals": true,
20
+ "noUnusedParameters": true,
21
+ "noFallthroughCasesInSwitch": true,
22
+ "allowSyntheticDefaultImports": true,
23
+
24
+ "baseUrl": ".",
25
+ "paths": {
26
+ "@/*": ["./*"]
27
+ }
28
+ },
29
+ "include": ["src"]
30
+ }