bopodev-ui 0.1.1

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,4 @@
1
+
2
+ > @bopo/ui@0.1.0 lint /Users/danielkrusenstrahle/Documents/Projects/Monorepo/BopoHQ/packages/ui
3
+ > tsc -p tsconfig.json --noEmit
4
+
@@ -0,0 +1,4 @@
1
+
2
+ > bopodev-ui@0.1.1 typecheck /Users/danielkrusenstrahle/Documents/Projects/Monorepo/BopoHQ/packages/ui
3
+ > tsc -p tsconfig.json --noEmit
4
+
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 BopoHQ contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "bopodev-ui",
3
+ "version": "0.1.1",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "main": "src/index.ts",
7
+ "types": "src/index.ts",
8
+ "dependencies": {
9
+ "@radix-ui/react-dialog": "^1.1.15",
10
+ "class-variance-authority": "^0.7.1",
11
+ "clsx": "^2.1.1",
12
+ "lucide-react": "^0.544.0",
13
+ "tailwind-merge": "^3.3.1"
14
+ },
15
+ "peerDependencies": {
16
+ "react": "^19.1.1",
17
+ "react-dom": "^19.1.1"
18
+ },
19
+ "devDependencies": {
20
+ "@types/react": "^19.1.12",
21
+ "@types/react-dom": "^19.1.9",
22
+ "react": "^19.1.1",
23
+ "react-dom": "^19.1.1"
24
+ },
25
+ "scripts": {
26
+ "build": "tsc -p tsconfig.json --emitDeclarationOnly",
27
+ "lint": "tsc -p tsconfig.json --noEmit",
28
+ "typecheck": "tsc -p tsconfig.json --noEmit"
29
+ }
30
+ }
@@ -0,0 +1,29 @@
1
+ "use client";
2
+
3
+ import * as React from "react";
4
+ import { cva, type VariantProps } from "class-variance-authority";
5
+ import { cn } from "../lib/cn";
6
+ import { uiStyles } from "../styles";
7
+
8
+ const buttonVariants = cva(uiStyles.buttonBase, {
9
+ variants: {
10
+ variant: {
11
+ ghost: uiStyles.buttonGhost,
12
+ primary: uiStyles.buttonPrimary
13
+ }
14
+ },
15
+ defaultVariants: {
16
+ variant: "ghost"
17
+ }
18
+ });
19
+
20
+ type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants>;
21
+
22
+ export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(function Button(
23
+ { className, variant, ...props },
24
+ ref
25
+ ) {
26
+ return <button ref={ref} className={cn(buttonVariants({ variant }), className)} {...props} />;
27
+ });
28
+
29
+ Button.displayName = "Button";
@@ -0,0 +1,15 @@
1
+ import type * as React from "react";
2
+ import { cn } from "../lib/cn";
3
+ import { uiStyles } from "../styles";
4
+
5
+ export function Card({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
6
+ return <div className={cn(uiStyles.card, className)} {...props} />;
7
+ }
8
+
9
+ export function CardHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
10
+ return <div className={cn(uiStyles.cardHeader, className)} {...props} />;
11
+ }
12
+
13
+ export function CardBody({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
14
+ return <div className={cn(uiStyles.cardBody, className)} {...props} />;
15
+ }
@@ -0,0 +1,22 @@
1
+ "use client";
2
+
3
+ import * as React from "react";
4
+ import { cn } from "../lib/cn";
5
+ import { uiStyles } from "../styles";
6
+
7
+ export const Input = React.forwardRef<HTMLInputElement, React.InputHTMLAttributes<HTMLInputElement>>(function Input(
8
+ { className, ...props },
9
+ ref
10
+ ) {
11
+ return <input ref={ref} className={cn(uiStyles.input, className)} {...props} />;
12
+ });
13
+
14
+ Input.displayName = "Input";
15
+
16
+ export const Textarea = React.forwardRef<HTMLTextAreaElement, React.TextareaHTMLAttributes<HTMLTextAreaElement>>(
17
+ function Textarea({ className, ...props }, ref) {
18
+ return <textarea ref={ref} className={cn(uiStyles.input, "min-h-20 py-2", className)} {...props} />;
19
+ }
20
+ );
21
+
22
+ Textarea.displayName = "Textarea";
@@ -0,0 +1,30 @@
1
+ "use client";
2
+
3
+ import * as Dialog from "@radix-ui/react-dialog";
4
+ import type * as React from "react";
5
+ import { cn } from "../lib/cn";
6
+ import { uiStyles } from "../styles";
7
+
8
+ export const Modal = Dialog.Root;
9
+ export const ModalTrigger = Dialog.Trigger;
10
+ export const ModalClose = Dialog.Close;
11
+
12
+ export function ModalContent({ className, ...props }: React.ComponentProps<typeof Dialog.Content>) {
13
+ return (
14
+ <Dialog.Portal>
15
+ <Dialog.Overlay className={uiStyles.modalOverlay} />
16
+ <Dialog.Content
17
+ className={cn(uiStyles.modalContent, className)}
18
+ {...props}
19
+ />
20
+ </Dialog.Portal>
21
+ );
22
+ }
23
+
24
+ export function ModalTitle({ className, ...props }: React.ComponentProps<typeof Dialog.Title>) {
25
+ return <Dialog.Title className={cn(uiStyles.modalTitle, className)} {...props} />;
26
+ }
27
+
28
+ export function ModalDescription({ className, ...props }: React.ComponentProps<typeof Dialog.Description>) {
29
+ return <Dialog.Description className={cn(uiStyles.modalDescription, className)} {...props} />;
30
+ }
package/src/index.ts ADDED
@@ -0,0 +1,6 @@
1
+ export * from "./components/button";
2
+ export * from "./components/card";
3
+ export * from "./components/input";
4
+ export * from "./components/modal";
5
+ export * from "./lib/cn";
6
+ export * from "./styles";
package/src/lib/cn.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { clsx, type ClassValue } from "clsx";
2
+ import { twMerge } from "tailwind-merge";
3
+
4
+ export function cn(...inputs: ClassValue[]) {
5
+ return twMerge(clsx(inputs));
6
+ }
package/src/styles.ts ADDED
@@ -0,0 +1,20 @@
1
+ export const uiStyles = {
2
+ shell: "min-h-screen bg-bopo-bg text-bopo-text",
3
+ card: "rounded-xl border border-bopo-border bg-bopo-panel shadow-[0_1px_0_rgba(255,255,255,0.02)]",
4
+ cardHeader: "border-b border-bopo-border px-4 py-3 text-sm font-medium tracking-tight",
5
+ cardBody: "px-4 py-4",
6
+ muted: "text-bopo-muted",
7
+ tableHeader: "bg-bopo-panel-elevated text-xs uppercase tracking-wide text-bopo-muted",
8
+ input:
9
+ "h-9 w-full rounded-lg border border-bopo-border bg-bopo-panel-elevated px-3 text-sm text-bopo-text outline-none transition placeholder:text-bopo-muted/80 focus:border-bopo-accent focus:ring-2 focus:ring-bopo-accent/20",
10
+ buttonBase:
11
+ "inline-flex h-9 items-center justify-center rounded-lg border px-3 text-sm font-medium transition disabled:cursor-not-allowed disabled:opacity-60",
12
+ buttonGhost: "border-bopo-border bg-transparent text-bopo-text hover:bg-bopo-panel-elevated",
13
+ buttonPrimary: "border-bopo-accent bg-bopo-accent text-white shadow-[0_0_0_1px_rgba(255,255,255,0.04)] hover:brightness-110",
14
+ badge: "inline-flex items-center rounded-md border px-2 py-0.5 text-xs",
15
+ modalOverlay: "fixed inset-0 z-50 bg-black/70 backdrop-blur-sm",
16
+ modalContent:
17
+ "fixed left-1/2 top-1/2 z-50 w-[min(720px,94vw)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-bopo-border bg-bopo-panel p-5 shadow-2xl",
18
+ modalTitle: "text-base font-semibold tracking-tight text-bopo-text",
19
+ modalDescription: "mt-1 text-sm leading-6 text-bopo-muted"
20
+ } as const;
package/tsconfig.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "jsx": "react-jsx",
5
+ "outDir": "dist",
6
+ "declaration": true,
7
+ "emitDeclarationOnly": true
8
+ },
9
+ "include": ["src"]
10
+ }