mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 21:53:57 -05:00
Updated some configs
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import js from "@eslint/js";
|
import js from "@eslint/js";
|
||||||
import pluginRouter from "@tanstack/eslint-plugin-router";
|
import pluginRouter from "@tanstack/eslint-plugin-router";
|
||||||
|
import react from "eslint-plugin-react";
|
||||||
import reactHooks from "eslint-plugin-react-hooks";
|
import reactHooks from "eslint-plugin-react-hooks";
|
||||||
import reactRefresh from "eslint-plugin-react-refresh";
|
import reactRefresh from "eslint-plugin-react-refresh";
|
||||||
import { globalIgnores } from "eslint/config";
|
import { globalIgnores } from "eslint/config";
|
||||||
@@ -13,18 +14,19 @@ export default tseslint.config([
|
|||||||
files: ['**/*.{ts,tsx}'],
|
files: ['**/*.{ts,tsx}'],
|
||||||
extends: [
|
extends: [
|
||||||
js.configs.recommended,
|
js.configs.recommended,
|
||||||
|
react.configs.flat.recommended,
|
||||||
tseslint.configs.recommendedTypeChecked,
|
tseslint.configs.recommendedTypeChecked,
|
||||||
reactHooks.configs['recommended-latest'],
|
reactHooks.configs['recommended-latest'],
|
||||||
reactRefresh.configs.vite,
|
reactRefresh.configs.vite,
|
||||||
...pluginRouter.configs["flat/recommended"]
|
...pluginRouter.configs["flat/recommended"]
|
||||||
],
|
],
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
ecmaVersion: 2020,
|
ecmaVersion: 2022,
|
||||||
globals: globals.browser
|
globals: globals.browser,
|
||||||
},
|
parserOptions: {
|
||||||
plugins: {
|
project: "./tsconfig.json",
|
||||||
"react-hooks": reactHooks,
|
tsconfigRootDir: import.meta.dirname
|
||||||
"react-refresh": reactRefresh
|
}
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
...reactHooks.configs.recommended.rules,
|
...reactHooks.configs.recommended.rules,
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ export default function BouncingDots({
|
|||||||
r="3"
|
r="3"
|
||||||
className={className}
|
className={className}
|
||||||
stroke={stroke}
|
stroke={stroke}
|
||||||
|
fill={fill}
|
||||||
>
|
>
|
||||||
<animate
|
<animate
|
||||||
id={`firstBouncingDots_${id}`}
|
id={`firstBouncingDots_${id}`}
|
||||||
@@ -43,6 +44,7 @@ export default function BouncingDots({
|
|||||||
r="3"
|
r="3"
|
||||||
className={className}
|
className={className}
|
||||||
stroke={stroke}
|
stroke={stroke}
|
||||||
|
fill={fill}
|
||||||
>
|
>
|
||||||
<animate
|
<animate
|
||||||
id={`secondBouncingDots_${id}`}
|
id={`secondBouncingDots_${id}`}
|
||||||
@@ -60,6 +62,7 @@ export default function BouncingDots({
|
|||||||
r="3"
|
r="3"
|
||||||
className={className}
|
className={className}
|
||||||
stroke={stroke}
|
stroke={stroke}
|
||||||
|
fill={fill}
|
||||||
>
|
>
|
||||||
<animate
|
<animate
|
||||||
id={`lastBouncingDots_${id}`}
|
id={`lastBouncingDots_${id}`}
|
||||||
|
|||||||
6
lib/component/theme.ts
Normal file
6
lib/component/theme.ts
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import ThemeProvider from "$/providers/theme/ThemeProvider";
|
||||||
|
|
||||||
|
|
||||||
|
export {
|
||||||
|
ThemeProvider
|
||||||
|
};
|
||||||
@@ -1 +1,6 @@
|
|||||||
|
import ToasterProvider from "$/providers/toaster/ToasterProvider";
|
||||||
|
|
||||||
|
|
||||||
|
export {
|
||||||
|
ToasterProvider
|
||||||
|
};
|
||||||
|
|||||||
1834
package-lock.json
generated
1834
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
11
package.json
11
package.json
@@ -12,31 +12,32 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@headlessui/react": "^2.2.4",
|
"@headlessui/react": "^2.2.4",
|
||||||
"@tailwindcss/vite": "^4.1.10",
|
"@tailwindcss/vite": "^4.1.10",
|
||||||
"@tanstack/react-router": "^1.124.0",
|
|
||||||
"@tanstack/react-router-devtools": "^1.124.0",
|
|
||||||
"@types/node": "^24.0.4",
|
"@types/node": "^24.0.4",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"moment": "^2.30.1",
|
"moment": "^2.30.1",
|
||||||
"react": "^19.1.0",
|
"react": "^19.1.0",
|
||||||
"react-dom": "^19.1.0",
|
"react-dom": "^19.1.0",
|
||||||
"react-icons": "^5.5.0",
|
"react-icons": "^5.5.0",
|
||||||
"tailwindcss": "^4.1.10",
|
"tailwindcss": "^4.1.10"
|
||||||
"vite-plugin-dts": "^4.5.4"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^9.29.0",
|
"@eslint/js": "^9.29.0",
|
||||||
"@tanstack/eslint-plugin-router": "^1.121.21",
|
"@tanstack/eslint-plugin-router": "^1.121.21",
|
||||||
"@tanstack/router-plugin": "^1.124.0",
|
"@tanstack/router-plugin": "^1.124.0",
|
||||||
|
"@tanstack/react-router": "^1.124.0",
|
||||||
|
"@tanstack/react-router-devtools": "^1.124.0",
|
||||||
"@types/react": "^19.1.8",
|
"@types/react": "^19.1.8",
|
||||||
"@types/react-dom": "^19.1.6",
|
"@types/react-dom": "^19.1.6",
|
||||||
"@vitejs/plugin-react": "^4.5.2",
|
"@vitejs/plugin-react": "^4.5.2",
|
||||||
"eslint": "^9.29.0",
|
"eslint": "^9.29.0",
|
||||||
|
"eslint-plugin-react": "^7.37.5",
|
||||||
"eslint-plugin-react-hooks": "^5.2.0",
|
"eslint-plugin-react-hooks": "^5.2.0",
|
||||||
"eslint-plugin-react-refresh": "^0.4.20",
|
"eslint-plugin-react-refresh": "^0.4.20",
|
||||||
"globals": "^16.2.0",
|
"globals": "^16.2.0",
|
||||||
"typescript": "~5.8.3",
|
"typescript": "~5.8.3",
|
||||||
"typescript-eslint": "^8.34.1",
|
"typescript-eslint": "^8.34.1",
|
||||||
"vite": "^7.0.0"
|
"vite": "^7.0.0",
|
||||||
|
"vite-plugin-dts": "^4.5.4"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@tailwindcss/vite": {
|
"@tailwindcss/vite": {
|
||||||
|
|||||||
@@ -14,8 +14,6 @@ import WarningCheckbox from "$/component/input/checkbox/WarningCheckbox";
|
|||||||
import DateInput from "$/component/input/date/DateInput";
|
import DateInput from "$/component/input/date/DateInput";
|
||||||
import DateTimeInput from "$/component/input/date/DateTimeInput";
|
import DateTimeInput from "$/component/input/date/DateTimeInput";
|
||||||
import TimeInput from "$/component/input/date/TimeInput";
|
import TimeInput from "$/component/input/date/TimeInput";
|
||||||
import MultiNumberSlider from "$/component/input/number/MultiNumberSlider";
|
|
||||||
import NumberSlider from "$/component/input/number/NumberSlider";
|
|
||||||
import DangerRadioButton from "$/component/input/radio/DangerRadioButton";
|
import DangerRadioButton from "$/component/input/radio/DangerRadioButton";
|
||||||
import DarkRadioButton from "$/component/input/radio/DarkRadioButton";
|
import DarkRadioButton from "$/component/input/radio/DarkRadioButton";
|
||||||
import InfoRadioButton from "$/component/input/radio/InfoRadioButton";
|
import InfoRadioButton from "$/component/input/radio/InfoRadioButton";
|
||||||
@@ -763,16 +761,3 @@ export function DateContent(){
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function SliderContent(){
|
|
||||||
return (
|
|
||||||
<div
|
|
||||||
className="flex flex-col items-center justify-center my-8 gap-y-8"
|
|
||||||
>
|
|
||||||
<NumberSlider
|
|
||||||
/>
|
|
||||||
<MultiNumberSlider
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
||||||
"target": "ES2023",
|
"target": "ES2022",
|
||||||
"lib": ["ES2023"],
|
"lib": ["ES2022"],
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import react from "@vitejs/plugin-react";
|
|||||||
import { resolve } from "path";
|
import { resolve } from "path";
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import dts from "vite-plugin-dts";
|
import dts from "vite-plugin-dts";
|
||||||
|
import { dependencies } from "./package.json";
|
||||||
|
|
||||||
|
|
||||||
// https://vite.dev/config/
|
// https://vite.dev/config/
|
||||||
@@ -17,7 +18,8 @@ export default defineConfig({
|
|||||||
tailwindcss(),
|
tailwindcss(),
|
||||||
dts({
|
dts({
|
||||||
include: ["lib"],
|
include: ["lib"],
|
||||||
tsconfigPath: "./tsconfig.lib.json"
|
tsconfigPath: "./tsconfig.lib.json",
|
||||||
|
outDir: "dist/types"
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
@@ -37,19 +39,15 @@ export default defineConfig({
|
|||||||
modal: resolve(__dirname, "lib/component/modal.ts"),
|
modal: resolve(__dirname, "lib/component/modal.ts"),
|
||||||
nav: resolve(__dirname, "lib/component/nav.ts"),
|
nav: resolve(__dirname, "lib/component/nav.ts"),
|
||||||
tab: resolve(__dirname, "lib/component/tab.ts"),
|
tab: resolve(__dirname, "lib/component/tab.ts"),
|
||||||
|
theme: resolve(__dirname, "lib/component/theme.ts"),
|
||||||
|
toaster: resolve(__dirname, "lib/component/toaster.ts")
|
||||||
},
|
},
|
||||||
formats: [ "es" ],
|
formats: [ "es" ],
|
||||||
name: "Mattrixwv Component Library"
|
name: "Mattrixwv Component Library"
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: [
|
external: [
|
||||||
"clsx",
|
Object.keys(dependencies).join("|")
|
||||||
"react",
|
|
||||||
"react/jsx-runtime",
|
|
||||||
"tailwindcss",
|
|
||||||
"react-icons/bs",
|
|
||||||
"react-router-dom",
|
|
||||||
"@headlessui/react"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user