aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/with-tailwind/packages/ui
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-11-03 21:17:06 +0800
committer简律纯 <i@jyunko.cn>2023-11-03 21:17:06 +0800
commit94071d7ce16c56641d67d488e2bac6be84ffe731 (patch)
treed837b71575aba805e18b3db3d056a106d81818fe /examples/with-tailwind/packages/ui
parent9f0d43fe099a95ab1516ae951dcb60a89e76a5a5 (diff)
downloadHydroRoll-94071d7ce16c56641d67d488e2bac6be84ffe731.tar.gz
HydroRoll-94071d7ce16c56641d67d488e2bac6be84ffe731.zip
chore: delete useless files
Diffstat (limited to 'examples/with-tailwind/packages/ui')
-rw-r--r--examples/with-tailwind/packages/ui/package.json32
-rw-r--r--examples/with-tailwind/packages/ui/postcss.config.js9
-rw-r--r--examples/with-tailwind/packages/ui/src/Button.tsx16
-rw-r--r--examples/with-tailwind/packages/ui/src/Card.tsx27
-rw-r--r--examples/with-tailwind/packages/ui/src/index.tsx6
-rw-r--r--examples/with-tailwind/packages/ui/src/styles.css3
-rw-r--r--examples/with-tailwind/packages/ui/tailwind.config.js7
-rw-r--r--examples/with-tailwind/packages/ui/tsconfig.json5
-rw-r--r--examples/with-tailwind/packages/ui/tsup.config.ts13
9 files changed, 0 insertions, 118 deletions
diff --git a/examples/with-tailwind/packages/ui/package.json b/examples/with-tailwind/packages/ui/package.json
deleted file mode 100644
index be2c395..0000000
--- a/examples/with-tailwind/packages/ui/package.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "ui",
- "version": "0.0.0",
- "sideEffects": [
- "**/*.css"
- ],
- "types": "./dist/index.d.ts",
- "exports": {
- ".": "./dist",
- "./styles.css": "./dist/index.css"
- },
- "license": "MIT",
- "scripts": {
- "build": "tsup",
- "dev": "tsup --watch",
- "check-types": "tsc --noEmit"
- },
- "peerDependencies": {
- "react": "^18.2.0"
- },
- "devDependencies": {
- "@types/react": "^18.0.26",
- "eslint": "^7.32.0",
- "eslint-config-custom": "workspace:*",
- "postcss": "^8.4.20",
- "react": "^18.2.0",
- "tailwind-config": "workspace:*",
- "tsconfig": "workspace:*",
- "tsup": "^6.1.3",
- "typescript": "^4.9.4"
- }
-}
diff --git a/examples/with-tailwind/packages/ui/postcss.config.js b/examples/with-tailwind/packages/ui/postcss.config.js
deleted file mode 100644
index 07aa434..0000000
--- a/examples/with-tailwind/packages/ui/postcss.config.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// If you want to use other PostCSS plugins, see the following:
-// https://tailwindcss.com/docs/using-with-preprocessors
-
-module.exports = {
- plugins: {
- tailwindcss: {},
- autoprefixer: {},
- },
-};
diff --git a/examples/with-tailwind/packages/ui/src/Button.tsx b/examples/with-tailwind/packages/ui/src/Button.tsx
deleted file mode 100644
index 495d02a..0000000
--- a/examples/with-tailwind/packages/ui/src/Button.tsx
+++ /dev/null
@@ -1,16 +0,0 @@
-import * as React from "react";
-
-export const Button = () => {
- return (
- <div className="rounded-md ">
- <a href="https://turbo.build/repo/docs">
- <div className="ui-flex ui-w-full ui-items-center ui-justify-center ui-rounded-md ui-border ui-border-transparent ui-px-8 ui-py-3 ui-text-base ui-font-medium ui-no-underline ui-bg-white ui-text-black hover:ui-bg-gray-300 md:ui-py-3 md:ui-px-10 md:ui-text-lg md:ui-leading-6">
- Read the docs
- <span className="ui-ml-2 ui-bg-gradient-to-r ui-from-brandred ui-to-brandblue ui-bg-clip-text ui-text-transparent">
- →
- </span>
- </div>
- </a>
- </div>
- );
-};
diff --git a/examples/with-tailwind/packages/ui/src/Card.tsx b/examples/with-tailwind/packages/ui/src/Card.tsx
deleted file mode 100644
index 6083de2..0000000
--- a/examples/with-tailwind/packages/ui/src/Card.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import * as React from "react";
-
-export const Card = ({
- title,
- cta,
- href,
-}: {
- title: string;
- cta: string;
- href: string;
-}) => {
- return (
- <a
- target="_blank"
- rel="noopener noreferrer"
- href={href}
- className="ui-group ui-mt-4 ui-rounded-lg ui-border ui-border-transparent ui-overflow-hidden ui-bg-origin-border ui-bg-gradient-to-r ui-from-brandred ui-to-brandblue ui-text-[#6b7280]"
- >
- <div className="ui-p-4 ui-bg-zinc-900 ui-h-full">
- <p className="ui-inline-block ui-text-xl ui-text-white">{title}</p>
- <div className="ui-text-xs ui-mt-4 group-hover:ui-underline">
- {cta} →
- </div>
- </div>
- </a>
- );
-};
diff --git a/examples/with-tailwind/packages/ui/src/index.tsx b/examples/with-tailwind/packages/ui/src/index.tsx
deleted file mode 100644
index 8af7073..0000000
--- a/examples/with-tailwind/packages/ui/src/index.tsx
+++ /dev/null
@@ -1,6 +0,0 @@
-// styles
-import "./styles.css";
-
-// components
-export * from "./Button";
-export * from "./Card";
diff --git a/examples/with-tailwind/packages/ui/src/styles.css b/examples/with-tailwind/packages/ui/src/styles.css
deleted file mode 100644
index b5c61c9..0000000
--- a/examples/with-tailwind/packages/ui/src/styles.css
+++ /dev/null
@@ -1,3 +0,0 @@
-@tailwind base;
-@tailwind components;
-@tailwind utilities;
diff --git a/examples/with-tailwind/packages/ui/tailwind.config.js b/examples/with-tailwind/packages/ui/tailwind.config.js
deleted file mode 100644
index 23887e6..0000000
--- a/examples/with-tailwind/packages/ui/tailwind.config.js
+++ /dev/null
@@ -1,7 +0,0 @@
-const sharedConfig = require("tailwind-config/tailwind.config.js");
-
-module.exports = {
- // prefix ui lib classes to avoid conflicting with the app
- prefix: "ui-",
- presets: [sharedConfig],
-};
diff --git a/examples/with-tailwind/packages/ui/tsconfig.json b/examples/with-tailwind/packages/ui/tsconfig.json
deleted file mode 100644
index cd6c94d..0000000
--- a/examples/with-tailwind/packages/ui/tsconfig.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "extends": "tsconfig/react-library.json",
- "include": ["."],
- "exclude": ["dist", "build", "node_modules"]
-}
diff --git a/examples/with-tailwind/packages/ui/tsup.config.ts b/examples/with-tailwind/packages/ui/tsup.config.ts
deleted file mode 100644
index 7b2189a..0000000
--- a/examples/with-tailwind/packages/ui/tsup.config.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { defineConfig, Options } from "tsup";
-
-export default defineConfig((options: Options) => ({
- treeshake: true,
- splitting: true,
- entry: ["src/**/*.tsx"],
- format: ["esm"],
- dts: true,
- minify: true,
- clean: true,
- external: ["react"],
- ...options,
-}));