π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
fix: adding propel ui kit to packages
sriram veeraghantae962770a5f4d
diff --git a/packages/propel/.eslintignore b/packages/propel/.eslintignorenew file mode 100644index 0000000000..6019047c3e--- /dev/null+++ b/packages/propel/.eslintignore@@ -0,0 +1,3 @@+build/*+dist/*+out/*\ No newline at end of filediff --git a/packages/propel/.eslintrc.js b/packages/propel/.eslintrc.jsnew file mode 100644index 0000000000..558b8f76ed--- /dev/null+++ b/packages/propel/.eslintrc.js@@ -0,0 +1,9 @@+/** @type {import("eslint").Linter.Config} */+module.exports = {+ root: true,+ extends: ["@plane/eslint-config/library.js"],+ parser: "@typescript-eslint/parser",+ parserOptions: {+ project: true,+ },+};diff --git a/packages/propel/package.json b/packages/propel/package.jsonnew file mode 100644index 0000000000..cc9282b613--- /dev/null+++ b/packages/propel/package.json@@ -0,0 +1,29 @@+{+ "name": "@plane/propel",+ "version": "1.0.0",+ "private": true,+ "exports": {+ "./globals.css": "./src/globals.css",+ "./components/*": "./src/components/*.tsx",+ "./lib/*": "./src/lib/*.ts"+ },+ "devDependencies": {+ "@plane/eslint-config": "*",+ "tailwind-config-custom": "*",+ "@plane/typescript-config": "*",+ "@types/react": "18.3.1",+ "@types/react-dom": "18.3.0",+ "typescript": "^5.3.3"+ },+ "dependencies": {+ "@radix-ui/react-slot": "^1.1.1",+ "class-variance-authority": "^0.7.1",+ "clsx": "^2.1.1",+ "lucide-react": "^0.469.0",+ "react": "^18.3.1",+ "react-dom": "^18.3.1",+ "tailwind-merge": "^2.6.0",+ "tailwindcss": "^3.4.0",+ "tailwindcss-animate": "^1.0.7"+ }+}diff --git a/packages/propel/postcss.config.js b/packages/propel/postcss.config.jsnew file mode 100644index 0000000000..12a703d900--- /dev/null+++ b/packages/propel/postcss.config.js@@ -0,0 +1,6 @@+module.exports = {+ plugins: {+ tailwindcss: {},+ autoprefixer: {},+ },+};diff --git a/packages/propel/src/globals.css b/packages/propel/src/globals.cssnew file mode 100644index 0000000000..a1be0c3435--- /dev/null+++ b/packages/propel/src/globals.css@@ -0,0 +1,59 @@+@tailwind base;+@tailwind components;+@tailwind utilities;++@layer base {+ :root {+ --background: 0 0% 100%;+ --foreground: 222.2 47.4% 11.2%;+ --muted: 210 40% 96.1%;+ --muted-foreground: 215.4 16.3% 46.9%;+ --popover: 0 0% 100%;+ --popover-foreground: 222.2 47.4% 11.2%;+ --border: 214.3 31.8% 91.4%;+ --input: 214.3 31.8% 91.4%;+ --card: 0 0% 100%;+ --card-foreground: 222.2 47.4% 11.2%;+ --primary: 222.2 47.4% 11.2%;+ --primary-foreground: 210 40% 98%;+ --secondary: 210 40% 96.1%;+ --secondary-foreground: 222.2 47.4% 11.2%;+ --accent: 210 40% 96.1%;+ --accent-foreground: 222.2 47.4% 11.2%;+ --destructive: 0 100% 50%;+ --destructive-foreground: 210 40% 98%;+ --ring: 215 20.2% 65.1%;+ --radius: 0.5rem;+ }++ .dark {+ --background: 224 71% 4%;+ --foreground: 213 31% 91%;+ --muted: 223 47% 11%;+ --muted-foreground: 215.4 16.3% 56.9%;+ --accent: 216 34% 17%;+ --accent-foreground: 210 40% 98%;+ --popover: 224 71% 4%;+ --popover-foreground: 215 20.2% 65.1%;+ --border: 216 34% 17%;+ --input: 216 34% 17%;+ --card: 224 71% 4%;+ --card-foreground: 213 31% 91%;+ --primary: 210 40% 98%;+ --primary-foreground: 222.2 47.4% 1.2%;+ --secondary: 222.2 47.4% 11.2%;+ --secondary-foreground: 210 40% 98%;+ --destructive: 0 63% 31%;+ --destructive-foreground: 210 40% 98%;+ --ring: 216 34% 17%;+ }+}++@layer base {+ * {+ @apply border-border;+ }+ body {+ @apply font-sans antialiased bg-background text-foreground;+ }+}diff --git a/packages/propel/src/ui/button.tsx b/packages/propel/src/ui/button.tsxnew file mode 100644index 0000000000..7f40dba66c--- /dev/null+++ b/packages/propel/src/ui/button.tsx@@ -0,0 +1,57 @@+import { Slot } from "@radix-ui/react-slot";+import { cva, type VariantProps } from "class-variance-authority";+import * as React from "react";++import { cn } from "@plane/utils";++const buttonVariants = cva(+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",+ {+ variants: {+ variant: {+ default:+ "bg-primary text-primary-foreground shadow hover:bg-primary/90",+ destructive:+ "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",+ outline:+ "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",+ secondary:+ "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",+ ghost: "hover:bg-accent hover:text-accent-foreground",+ link: "text-primary underline-offset-4 hover:underline",+ },+ size: {+ default: "h-9 px-4 py-2",+ sm: "h-8 rounded-md px-3 text-xs",+ lg: "h-10 rounded-md px-8",+ icon: "h-9 w-9",+ },+ },+ defaultVariants: {+ variant: "default",+ size: "default",+ },+ }+);++export interface ButtonProps+ extends React.ButtonHTMLAttributes<HTMLButtonElement>,+ VariantProps<typeof buttonVariants> {+ asChild?: boolean;+}++const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(+ ({ className, variant, size, asChild = false, ...props }, ref) => {+ const Comp = asChild ? Slot : "button";+ return (+ <Comp+ className={cn(buttonVariants({ variant, size, className }))}+ ref={ref}+ {...props}+ />+ );+ }+);+Button.displayName = "Button";++export { Button, buttonVariants };diff --git a/packages/propel/tailwind.config.ts b/packages/propel/tailwind.config.tsnew file mode 100644index 0000000000..cc313b82ed--- /dev/null+++ b/packages/propel/tailwind.config.ts@@ -0,0 +1,7 @@+import type { Config } from "tailwindcss";+// import sharedConfig from "@plane/tailwind-config-custom/tailwind.config";++export default {+ // ...sharedConfig,+ content: ["./src/**/*.{ts,tsx}"],+} satisfies Config;diff --git a/packages/propel/tsconfig.json b/packages/propel/tsconfig.jsonnew file mode 100644index 0000000000..1f695a242b--- /dev/null+++ b/packages/propel/tsconfig.json@@ -0,0 +1,8 @@+{+ "extends": "@plane/typescript-config/react-library.json",+ "compilerOptions": {+ "outDir": "dist"+ },+ "include": ["src"],+ "exclude": ["node_modules", "dist"]+}diff --git a/yarn.lock b/yarn.lockindex 8ed0dd8fc9..be32410108 100644--- a/yarn.lock+++ b/yarn.lock@@ -2358,7 +2358,7 @@dependencies:"@radix-ui/react-slot" "1.1.1"-"@radix-ui/[email protected]":+"@radix-ui/[email protected]", "@radix-ui/react-slot@^1.1.1":version "1.1.1"resolved "https://registry.yarnpkg.com/@radix-ui/react-slot/-/react-slot-1.1.1.tgz#ab9a0ffae4027db7dc2af503c223c978706affc3"integrity sha512-RApLLOcINYJA+dMVbOju7MYv1Mb2EBp2nH4HdDzXTSyaR5optlm6Otrz1euW3HbdOR8UmmFK06TD+A9frYWv+g==@@ -4116,6 +4116,13 @@dependencies:"@types/reactcss" "*"+"@types/[email protected]":+ version "18.3.0"+ resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.3.0.tgz#0cbc818755d87066ab6ca74fbedb2547d74a82b0"+ integrity sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg==+ dependencies:+ "@types/react" "*"+"@types/react-dom@^18.2.18":version "18.3.5"resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.3.5.tgz#45f9f87398c5dcea085b715c58ddcf1faf65f716"@@ -4126,6 +4133,21 @@resolved "https://registry.yarnpkg.com/@types/react-transition-group/-/react-transition-group-4.4.12.tgz#b5d76568485b02a307238270bfe96cb51ee2a044"integrity sha512-8TV6R3h2j7a91c+1DXdJi3Syo69zzIZbz7Lg5tORM5LEJG7X/E6a1V3drRyBRZq7/utz7A+c4OgYLiLcYGHG6w==+"@types/react@*":+ version "19.0.7"+ resolved "https://registry.yarnpkg.com/@types/react/-/react-19.0.7.tgz#c451968b999d1cb2d9207dc5ff56496164cf511d"+ integrity sha512-MoFsEJKkAtZCrC1r6CM8U22GzhG7u2Wir8ons/aCKH6MBdD1ibV24zOSSkdZVUKqN5i396zG5VKLYZ3yaUZdLA==+ dependencies:+ csstype "^3.0.2"++"@types/[email protected]":+ version "18.3.1"+ resolved "https://registry.yarnpkg.com/@types/react/-/react-18.3.1.tgz#fed43985caa834a2084d002e4771e15dfcbdbe8e"+ integrity sha512-V0kuGBX3+prX+DQ/7r2qsv1NsdfnCLnTgnRJ1pYnxykBhGMz+qj+box5lq7XsO5mtZsBqpjwwTu/7wszPfMBcw==+ dependencies:+ "@types/prop-types" "*"+ csstype "^3.0.2"+"@types/react@^18.3.11":version "18.3.18"resolved "https://registry.yarnpkg.com/@types/react/-/react-18.3.18.tgz#9b382c4cd32e13e463f97df07c2ee3bbcd26904b"@@ -5347,7 +5369,7 @@ cjs-module-lexer@^1.2.2, cjs-module-lexer@^1.2.3:resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.4.1.tgz#707413784dbb3a72aa11c2f2b042a0bef4004170"integrity sha512-cuSVIHi9/9E/+821Qjdvngor+xpnlwnuwIyZOaLmHBVdXL+gP+I6QQB9VkO7RI77YIcTV+S1W9AreJ5eN63JBA==-class-variance-authority@^0.7.0:+class-variance-authority@^0.7.0, class-variance-authority@^0.7.1:version "0.7.1"resolved "https://registry.yarnpkg.com/class-variance-authority/-/class-variance-authority-0.7.1.tgz#4008a798a0e4553a781a57ac5177c9fb5d043787"integrity sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==@@ -8520,6 +8542,11 @@ lucide-react@^0.379.0:resolved "https://registry.yarnpkg.com/lucide-react/-/lucide-react-0.379.0.tgz#29e34eeffae7fb241b64b09868cbe3ab888ef7cc"integrity sha512-KcdeVPqmhRldldAAgptb8FjIunM2x2Zy26ZBh1RsEUcdLIvsEmbcw7KpzFYUy5BbpGeWhPu9Z9J5YXfStiXwhg==+lucide-react@^0.469.0:+ version "0.469.0"+ resolved "https://registry.yarnpkg.com/lucide-react/-/lucide-react-0.469.0.tgz#f16936ca6521482fef754a7eabb310e6c68e1482"+ integrity sha512-28vvUnnKQ/dBwiCQtwJw7QauYnE7yd2Cyp4tTTJpvglX4EMpbflcdBgrgToX2j71B3YvugK/NH3BGUk+E/p/Fw==+lz-string@^1.5.0:version "1.5.0"resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.5.0.tgz#c1ab50f77887b712621201ba9fd4e3a6ed099941"@@ -11587,12 +11614,12 @@ tabbable@^6.0.0:resolved "https://registry.yarnpkg.com/tabbable/-/tabbable-6.2.0.tgz#732fb62bc0175cfcec257330be187dcfba1f3b97"integrity sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==-tailwind-merge@^2.0.0, tailwind-merge@^2.5.5:+tailwind-merge@^2.0.0, tailwind-merge@^2.5.5, tailwind-merge@^2.6.0:version "2.6.0"resolved "https://registry.yarnpkg.com/tailwind-merge/-/tailwind-merge-2.6.0.tgz#ac5fb7e227910c038d458f396b7400d93a3142d5"integrity sha512-P+Vu1qXfzediirmHOC3xKGAYeZtPcV9g76X+xg2FD4tYgR71ewMA35Y3sCz3zhiN/dwefRpJX0yBcgwi1fXNQA==-tailwindcss-animate@^1.0.6:+tailwindcss-animate@^1.0.6, tailwindcss-animate@^1.0.7:version "1.0.7"resolved "https://registry.yarnpkg.com/tailwindcss-animate/-/tailwindcss-animate-1.0.7.tgz#318b692c4c42676cc9e67b19b78775742388bef4"integrity sha512-bl6mpH3T7I3UFxuvDEXLxy/VuFxBk5bbzplh7tXI68mwMokNYd1t9qPBHlnyTwfa4JGC4zP516I1hYYtQ/vspA==@@ -11626,7 +11653,7 @@ [email protected]:resolve "^1.22.2"sucrase "^3.32.0"-tailwindcss@^3.2.7, tailwindcss@^3.4.3:+tailwindcss@^3.2.7, tailwindcss@^3.4.0, tailwindcss@^3.4.3:version "3.4.17"resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.4.17.tgz#ae8406c0f96696a631c790768ff319d46d5e5a63"integrity sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==