rework css
This commit is contained in:
+39
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://biomejs.dev/schemas/2.4.13/schema.json",
|
||||||
|
"vcs": {
|
||||||
|
"enabled": true,
|
||||||
|
"clientKind": "git",
|
||||||
|
"useIgnoreFile": true
|
||||||
|
},
|
||||||
|
"files": {
|
||||||
|
"ignoreUnknown": false
|
||||||
|
},
|
||||||
|
"formatter": {
|
||||||
|
"enabled": true,
|
||||||
|
"indentStyle": "tab"
|
||||||
|
},
|
||||||
|
"css": {
|
||||||
|
"parser": {
|
||||||
|
"tailwindDirectives": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"linter": {
|
||||||
|
"enabled": true,
|
||||||
|
"rules": {
|
||||||
|
"recommended": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"javascript": {
|
||||||
|
"formatter": {
|
||||||
|
"quoteStyle": "double"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"assist": {
|
||||||
|
"enabled": true,
|
||||||
|
"actions": {
|
||||||
|
"source": {
|
||||||
|
"organizeImports": "on"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -10,6 +10,7 @@
|
|||||||
"tailwind-merge": "^3.5.0",
|
"tailwind-merge": "^3.5.0",
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@biomejs/biome": "^2.4.13",
|
||||||
"@bosh-code/tsdown-plugin-inject-css": "^2.0.0",
|
"@bosh-code/tsdown-plugin-inject-css": "^2.0.0",
|
||||||
"@bosh-code/tsdown-plugin-tailwindcss": "^1.0.1",
|
"@bosh-code/tsdown-plugin-tailwindcss": "^1.0.1",
|
||||||
"@types/bun": "latest",
|
"@types/bun": "latest",
|
||||||
@@ -75,6 +76,24 @@
|
|||||||
|
|
||||||
"@babel/types": ["@babel/types@8.0.0-rc.3", "", { "dependencies": { "@babel/helper-string-parser": "^8.0.0-rc.3", "@babel/helper-validator-identifier": "^8.0.0-rc.3" } }, "sha512-mOm5ZrYmphGfqVWoH5YYMTITb3cDXsFgmvFlvkvWDMsR9X8RFnt7a0Wb6yNIdoFsiMO9WjYLq+U/FMtqIYAF8Q=="],
|
"@babel/types": ["@babel/types@8.0.0-rc.3", "", { "dependencies": { "@babel/helper-string-parser": "^8.0.0-rc.3", "@babel/helper-validator-identifier": "^8.0.0-rc.3" } }, "sha512-mOm5ZrYmphGfqVWoH5YYMTITb3cDXsFgmvFlvkvWDMsR9X8RFnt7a0Wb6yNIdoFsiMO9WjYLq+U/FMtqIYAF8Q=="],
|
||||||
|
|
||||||
|
"@biomejs/biome": ["@biomejs/biome@2.4.13", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.4.13", "@biomejs/cli-darwin-x64": "2.4.13", "@biomejs/cli-linux-arm64": "2.4.13", "@biomejs/cli-linux-arm64-musl": "2.4.13", "@biomejs/cli-linux-x64": "2.4.13", "@biomejs/cli-linux-x64-musl": "2.4.13", "@biomejs/cli-win32-arm64": "2.4.13", "@biomejs/cli-win32-x64": "2.4.13" }, "bin": { "biome": "bin/biome" } }, "sha512-gLXOwkOBBg0tr7bDsqlkIh4uFeKuMjxvqsrb1Tukww1iDmHcfr4Uu8MoQxp0Rcte+69+osRNWXwHsu/zxT6XqA=="],
|
||||||
|
|
||||||
|
"@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.4.13", "", { "os": "darwin", "cpu": "arm64" }, "sha512-2KImO1jhNFBa2oWConyr0x6flxbQpGKv6902uGXpYM62Xyem8U80j441SyUJ8KyngsmKbQjeIv1q2CQfDkNnYg=="],
|
||||||
|
|
||||||
|
"@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.4.13", "", { "os": "darwin", "cpu": "x64" }, "sha512-BKrJklbaFN4p1Ts4kPBczo+PkbsHQg57kmJ+vON9u2t6uN5okYHaSr7h/MutPCWQgg2lglaWoSmm+zhYW+oOkg=="],
|
||||||
|
|
||||||
|
"@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.4.13", "", { "os": "linux", "cpu": "arm64" }, "sha512-NzkUDSqfvMBrPplKgVr3aXLHZ2NEELvvF4vZxXulEylKWIGqlvNEcwUcj9OLrn75TD3lJ/GIqCVlBwd1MZCuYQ=="],
|
||||||
|
|
||||||
|
"@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.4.13", "", { "os": "linux", "cpu": "arm64" }, "sha512-U5MsuBQW25dXaYtqWWSPM3P96H6Y+fHuja3TQpMNnylocHW0tEbtFTDlUj6oM+YJLntvEkQy4grBvQNUD4+RCg=="],
|
||||||
|
|
||||||
|
"@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.4.13", "", { "os": "linux", "cpu": "x64" }, "sha512-Az3ZZedYRBo9EQzNnD9SxFcR1G5QsGo6VEc2hIyVPZ1rdKwee/7E9oeBBZFpE8Z44ekxsDQBqbiWGW5ShOhUSQ=="],
|
||||||
|
|
||||||
|
"@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.4.13", "", { "os": "linux", "cpu": "x64" }, "sha512-Z601MienRgTBDza/+u2CH3RSrWoXo9rtr8NK6A4KJzqGgfxx+H3VlyLgTJ4sRo40T3pIsqpTmiOQEvYzQvBRvQ=="],
|
||||||
|
|
||||||
|
"@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.4.13", "", { "os": "win32", "cpu": "arm64" }, "sha512-Px9PS2B5/Q183bUwy/5VHqp3J2lzdOCeVGzMpphYfl8oSa7VDCqenBdqWpy6DCy/en4Rbf/Y1RieZF6dJPcc9A=="],
|
||||||
|
|
||||||
|
"@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.4.13", "", { "os": "win32", "cpu": "x64" }, "sha512-tTcMkXyBrmHi9BfrD2VNHs/5rYIUKETqsBlYOvSAABwBkJhSDVb5e7wPukftsQbO3WzQkXe6kaztC6WtUOXSoQ=="],
|
||||||
|
|
||||||
"@borewit/text-codec": ["@borewit/text-codec@0.2.2", "", {}, "sha512-DDaRehssg1aNrH4+2hnj1B7vnUGEjU6OIlyRdkMd0aUdIUvKXrJfXsy8LVtXAy7DRvYVluWbMspsRhz2lcW0mQ=="],
|
"@borewit/text-codec": ["@borewit/text-codec@0.2.2", "", {}, "sha512-DDaRehssg1aNrH4+2hnj1B7vnUGEjU6OIlyRdkMd0aUdIUvKXrJfXsy8LVtXAy7DRvYVluWbMspsRhz2lcW0mQ=="],
|
||||||
|
|
||||||
"@bosh-code/tsdown-plugin-inject-css": ["@bosh-code/tsdown-plugin-inject-css@2.0.0", "", { "dependencies": { "@ast-grep/napi": "^0.39.6" }, "peerDependencies": { "tsdown": ">=0.10.0" } }, "sha512-vlAAI4MbFg+FSxbh/xF545XJPT7Tr4T7Mz/H95EdSh3Px/+eRnSA1/yADJ84a9ffywwblujyyOblkmgaS80Eew=="],
|
"@bosh-code/tsdown-plugin-inject-css": ["@bosh-code/tsdown-plugin-inject-css@2.0.0", "", { "dependencies": { "@ast-grep/napi": "^0.39.6" }, "peerDependencies": { "tsdown": ">=0.10.0" } }, "sha512-vlAAI4MbFg+FSxbh/xF545XJPT7Tr4T7Mz/H95EdSh3Px/+eRnSA1/yADJ84a9ffywwblujyyOblkmgaS80Eew=="],
|
||||||
|
|||||||
+74
-74
@@ -1,76 +1,76 @@
|
|||||||
{
|
{
|
||||||
"name": "@avocadi/ui",
|
"name": "@avocadi/ui",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.2.1",
|
"version": "0.2.2",
|
||||||
"private": false,
|
"private": false,
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsdown"
|
"build": "tsdown"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@bosh-code/tsdown-plugin-inject-css": "^2.0.0",
|
"@biomejs/biome": "^2.4.13",
|
||||||
"@bosh-code/tsdown-plugin-tailwindcss": "^1.0.1",
|
"@bosh-code/tsdown-plugin-inject-css": "^2.0.0",
|
||||||
"@types/bun": "latest",
|
"@bosh-code/tsdown-plugin-tailwindcss": "^1.0.1",
|
||||||
"tsdown": "^0.21.10",
|
"@types/bun": "latest",
|
||||||
"tw-animate-css": "^1.4.0"
|
"tsdown": "^0.21.10",
|
||||||
},
|
"tw-animate-css": "^1.4.0"
|
||||||
"peerDependencies": {
|
},
|
||||||
"@unom/style": "^0.4.4",
|
"peerDependencies": {
|
||||||
"@payloadcms/richtext-lexical": "^3.84.1",
|
"@unom/style": "^0.4.4",
|
||||||
"class-variance-authority": "^0.7.1",
|
"@payloadcms/richtext-lexical": "^3.84.1",
|
||||||
"embla-carousel-react": "^8.6.0",
|
"class-variance-authority": "^0.7.1",
|
||||||
"lucide-react": "^1.11.0",
|
"embla-carousel-react": "^8.6.0",
|
||||||
"motion": "^12.38.0",
|
"lucide-react": "^1.11.0",
|
||||||
"radix-ui": "^1.4.3",
|
"motion": "^12.38.0",
|
||||||
"react": "^19.2.5",
|
"radix-ui": "^1.4.3",
|
||||||
"typescript": "^6",
|
"react": "^19.2.5",
|
||||||
"zod": "^4.3.6"
|
"typescript": "^6",
|
||||||
},
|
"zod": "^4.3.6"
|
||||||
"exports": {
|
},
|
||||||
".": "./dist/index.js",
|
"exports": {
|
||||||
"./accordion": "./dist/accordion.js",
|
"./accordion": "./dist/accordion.js",
|
||||||
"./button": "./dist/button.js",
|
"./button": "./dist/button.js",
|
||||||
"./card": "./dist/card.js",
|
"./card": "./dist/card.js",
|
||||||
"./card-context": "./dist/card-context.js",
|
"./card-context": "./dist/card-context.js",
|
||||||
"./carousel": "./dist/carousel.js",
|
"./carousel": "./dist/carousel.js",
|
||||||
"./dialog": "./dist/dialog.js",
|
"./dialog": "./dist/dialog.js",
|
||||||
"./lib/utils": "./dist/lib/utils.js",
|
"./lib/utils": "./dist/lib/utils.js",
|
||||||
"./richtext": "./dist/richtext/index.js",
|
"./richtext": "./dist/richtext/index.js",
|
||||||
"./richtext/converters": "./dist/richtext/converters/index.js",
|
"./richtext/converters": "./dist/richtext/converters/index.js",
|
||||||
"./richtext/converters/headings": "./dist/richtext/converters/headings.js",
|
"./richtext/converters/headings": "./dist/richtext/converters/headings.js",
|
||||||
"./richtext/converters/internal-link": "./dist/richtext/converters/internal-link.js",
|
"./richtext/converters/internal-link": "./dist/richtext/converters/internal-link.js",
|
||||||
"./section": "./dist/section/index.js",
|
"./section": "./dist/section/index.js",
|
||||||
"./section/heading": "./dist/section/heading/index.js",
|
"./section/heading": "./dist/section/heading/index.js",
|
||||||
"./section/section.types": "./dist/section/section.types.js",
|
"./section/section.types": "./dist/section/section.types.js",
|
||||||
"./select": "./dist/select.js",
|
"./select": "./dist/select.js",
|
||||||
"./text": "./dist/text.js",
|
"./text": "./dist/text.js",
|
||||||
"./package.json": "./package.json",
|
"./package.json": "./package.json",
|
||||||
"./style.css": "./dist/style.css"
|
"./globals.css": "./dist/globals.css"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tsdown/css": "^0.21.10",
|
"@tsdown/css": "^0.21.10",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"tailwind-merge": "^3.5.0"
|
"tailwind-merge": "^3.5.0"
|
||||||
},
|
},
|
||||||
"inlinedDependencies": {
|
"inlinedDependencies": {
|
||||||
"@radix-ui/primitive": "1.1.3",
|
"@radix-ui/primitive": "1.1.3",
|
||||||
"@radix-ui/react-accordion": "1.2.12",
|
"@radix-ui/react-accordion": "1.2.12",
|
||||||
"@radix-ui/react-collapsible": "1.1.12",
|
"@radix-ui/react-collapsible": "1.1.12",
|
||||||
"@radix-ui/react-collection": "1.1.7",
|
"@radix-ui/react-collection": "1.1.7",
|
||||||
"@radix-ui/react-compose-refs": "1.1.2",
|
"@radix-ui/react-compose-refs": "1.1.2",
|
||||||
"@radix-ui/react-context": "1.1.2",
|
"@radix-ui/react-context": "1.1.2",
|
||||||
"@radix-ui/react-direction": "1.1.1",
|
"@radix-ui/react-direction": "1.1.1",
|
||||||
"@radix-ui/react-id": "1.1.1",
|
"@radix-ui/react-id": "1.1.1",
|
||||||
"@radix-ui/react-presence": "1.1.5",
|
"@radix-ui/react-presence": "1.1.5",
|
||||||
"@radix-ui/react-primitive": "2.1.3",
|
"@radix-ui/react-primitive": "2.1.3",
|
||||||
"@radix-ui/react-slot": "1.2.3",
|
"@radix-ui/react-slot": "1.2.3",
|
||||||
"@radix-ui/react-use-controllable-state": "1.2.2",
|
"@radix-ui/react-use-controllable-state": "1.2.2",
|
||||||
"@radix-ui/react-use-layout-effect": "1.1.1",
|
"@radix-ui/react-use-layout-effect": "1.1.1",
|
||||||
"framer-motion": "12.38.0",
|
"framer-motion": "12.38.0",
|
||||||
"motion-dom": "12.38.0",
|
"motion-dom": "12.38.0",
|
||||||
"motion-utils": "12.36.0",
|
"motion-utils": "12.36.0",
|
||||||
"react-dom": "19.2.5"
|
"react-dom": "19.2.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
import "./styles/globals.css"
|
|
||||||
@@ -3,6 +3,9 @@
|
|||||||
@import "tailwindcss";
|
@import "tailwindcss";
|
||||||
@import "tw-animate-css";
|
@import "tw-animate-css";
|
||||||
|
|
||||||
|
@source "./**/*.{js,mjs}";
|
||||||
|
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--main: oklch(0.26 0 0);
|
--main: oklch(0.26 0 0);
|
||||||
--accent: oklch(79.108% 0.12111 161.392);
|
--accent: oklch(79.108% 0.12111 161.392);
|
||||||
|
|||||||
+8
-8
@@ -1,16 +1,16 @@
|
|||||||
import { defineConfig } from "tsdown";
|
import { defineConfig } from "tsdown";
|
||||||
import { injectCssPlugin } from '@bosh-code/tsdown-plugin-inject-css';
|
|
||||||
import { tailwindPlugin } from '@bosh-code/tsdown-plugin-tailwindcss';
|
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
fixedExtension: false,
|
fixedExtension: false,
|
||||||
entry: ["./src/**/*.(ts|tsx)"],
|
entry: ["./src/**/*.(ts|tsx)"],
|
||||||
format: "esm",
|
format: "esm",
|
||||||
|
copy: [
|
||||||
|
{
|
||||||
|
from: "./src/styles/*.css",
|
||||||
|
to: "./dist",
|
||||||
|
},
|
||||||
|
],
|
||||||
platform: "browser",
|
platform: "browser",
|
||||||
exports: true,
|
|
||||||
dts: true,
|
dts: true,
|
||||||
plugins: [
|
plugins: [],
|
||||||
tailwindPlugin(),
|
});
|
||||||
injectCssPlugin()
|
|
||||||
]
|
|
||||||
});
|
|
||||||
|
|||||||
Reference in New Issue
Block a user