@stackvibe-studio/ui 0.0.0-stage → 0.1.0

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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 StackVibe
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.
@@ -0,0 +1,6 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ export type BadgeVariant = 'primary' | 'secondary' | 'outline';
3
+ export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
4
+ variant?: BadgeVariant;
5
+ }
6
+ export declare function Badge({ variant, className, ...props }: BadgeProps): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type { ButtonHTMLAttributes } from 'react';
2
+ export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'outline';
3
+ export type ButtonSize = 'sm' | 'md' | 'lg';
4
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
5
+ variant?: ButtonVariant;
6
+ size?: ButtonSize;
7
+ }
8
+ export declare function Button({ variant, size, className, ...props }: ButtonProps): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { ElementType, HTMLAttributes } from 'react';
2
+ export interface CardProps extends HTMLAttributes<HTMLDivElement> {
3
+ as?: ElementType;
4
+ }
5
+ export declare function Card({ as: Component, className, ...props }: CardProps): import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export * from './badge';
2
+ export * from './button';
3
+ export * from './card';
4
+ export * from './input';
@@ -0,0 +1,4 @@
1
+ import type { InputHTMLAttributes } from 'react';
2
+ export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
3
+ }
4
+ export declare function Input({ className, ...props }: InputProps): import("react").JSX.Element;
package/dist/index.cjs ADDED
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ Badge: () => Badge,
24
+ Button: () => Button,
25
+ Card: () => Card,
26
+ Input: () => Input,
27
+ cx: () => cx,
28
+ themeTokens: () => themeTokens
29
+ });
30
+ module.exports = __toCommonJS(index_exports);
31
+
32
+ // src/components/badge.tsx
33
+ var import_jsx_runtime = require("react/jsx-runtime");
34
+ var variants = {
35
+ primary: "bg-violet-500/20 text-violet-200 ring-1 ring-violet-400/20",
36
+ secondary: "bg-cyan-500/15 text-cyan-200 ring-1 ring-cyan-400/20",
37
+ outline: "bg-transparent text-slate-200 ring-1 ring-white/10"
38
+ };
39
+ function Badge({ variant = "primary", className = "", ...props }) {
40
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
41
+ "span",
42
+ {
43
+ ...props,
44
+ className: ["inline-flex items-center rounded-full px-2.5 py-1 text-xs font-medium", variants[variant], className].join(" ")
45
+ }
46
+ );
47
+ }
48
+
49
+ // src/components/button.tsx
50
+ var import_jsx_runtime2 = require("react/jsx-runtime");
51
+ var variantClasses = {
52
+ primary: "bg-violet-500 text-white hover:bg-violet-400",
53
+ secondary: "bg-cyan-500 text-slate-950 hover:bg-cyan-400",
54
+ ghost: "bg-white/5 text-white hover:bg-white/10",
55
+ outline: "border border-white/15 bg-transparent text-white hover:bg-white/5"
56
+ };
57
+ var sizeClasses = {
58
+ sm: "px-3 py-1.5 text-sm",
59
+ md: "px-4 py-2 text-sm",
60
+ lg: "px-5 py-3 text-base"
61
+ };
62
+ function Button({ variant = "primary", size = "md", className = "", ...props }) {
63
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
64
+ "button",
65
+ {
66
+ ...props,
67
+ className: [
68
+ "inline-flex items-center justify-center rounded-xl font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-violet-400",
69
+ variantClasses[variant],
70
+ sizeClasses[size],
71
+ className
72
+ ].join(" ")
73
+ }
74
+ );
75
+ }
76
+
77
+ // src/components/card.tsx
78
+ var import_jsx_runtime3 = require("react/jsx-runtime");
79
+ function Card({ as: Component = "div", className = "", ...props }) {
80
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
81
+ Component,
82
+ {
83
+ ...props,
84
+ className: [
85
+ "rounded-2xl border border-white/10 bg-slate-950/50 p-4 shadow-lg shadow-slate-950/20 backdrop-blur-sm",
86
+ className
87
+ ].join(" ")
88
+ }
89
+ );
90
+ }
91
+
92
+ // src/components/input.tsx
93
+ var import_jsx_runtime4 = require("react/jsx-runtime");
94
+ function Input({ className = "", ...props }) {
95
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
96
+ "input",
97
+ {
98
+ ...props,
99
+ className: [
100
+ "w-full rounded-xl border border-white/10 bg-slate-900 px-3 py-2 text-sm text-white placeholder:text-slate-400 focus:border-violet-400 focus:outline-none focus:ring-2 focus:ring-violet-400/30",
101
+ className
102
+ ].join(" ")
103
+ }
104
+ );
105
+ }
106
+
107
+ // src/tokens/index.ts
108
+ var themeTokens = {
109
+ colors: {
110
+ primary: "var(--sv-primary, 139 92 246)",
111
+ background: "var(--sv-background, 15 23 42)",
112
+ foreground: "var(--sv-foreground, 248 250 252)",
113
+ accent: "var(--sv-accent, 34 211 238)"
114
+ },
115
+ radius: {
116
+ sm: "var(--sv-radius-sm, 0.5rem)",
117
+ md: "var(--sv-radius-md, 0.75rem)",
118
+ lg: "var(--sv-radius-lg, 1rem)",
119
+ xl: "var(--sv-radius-xl, 1.25rem)"
120
+ }
121
+ };
122
+ var cx = (...classes) => classes.filter(Boolean).join(" ");
123
+ // Annotate the CommonJS export names for ESM import in node:
124
+ 0 && (module.exports = {
125
+ Badge,
126
+ Button,
127
+ Card,
128
+ Input,
129
+ cx,
130
+ themeTokens
131
+ });
@@ -0,0 +1,5 @@
1
+ export * from './components/badge';
2
+ export * from './components/button';
3
+ export * from './components/card';
4
+ export * from './components/input';
5
+ export * from './tokens';
package/dist/index.js ADDED
@@ -0,0 +1,99 @@
1
+ // src/components/badge.tsx
2
+ import { jsx } from "react/jsx-runtime";
3
+ var variants = {
4
+ primary: "bg-violet-500/20 text-violet-200 ring-1 ring-violet-400/20",
5
+ secondary: "bg-cyan-500/15 text-cyan-200 ring-1 ring-cyan-400/20",
6
+ outline: "bg-transparent text-slate-200 ring-1 ring-white/10"
7
+ };
8
+ function Badge({ variant = "primary", className = "", ...props }) {
9
+ return /* @__PURE__ */ jsx(
10
+ "span",
11
+ {
12
+ ...props,
13
+ className: ["inline-flex items-center rounded-full px-2.5 py-1 text-xs font-medium", variants[variant], className].join(" ")
14
+ }
15
+ );
16
+ }
17
+
18
+ // src/components/button.tsx
19
+ import { jsx as jsx2 } from "react/jsx-runtime";
20
+ var variantClasses = {
21
+ primary: "bg-violet-500 text-white hover:bg-violet-400",
22
+ secondary: "bg-cyan-500 text-slate-950 hover:bg-cyan-400",
23
+ ghost: "bg-white/5 text-white hover:bg-white/10",
24
+ outline: "border border-white/15 bg-transparent text-white hover:bg-white/5"
25
+ };
26
+ var sizeClasses = {
27
+ sm: "px-3 py-1.5 text-sm",
28
+ md: "px-4 py-2 text-sm",
29
+ lg: "px-5 py-3 text-base"
30
+ };
31
+ function Button({ variant = "primary", size = "md", className = "", ...props }) {
32
+ return /* @__PURE__ */ jsx2(
33
+ "button",
34
+ {
35
+ ...props,
36
+ className: [
37
+ "inline-flex items-center justify-center rounded-xl font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-violet-400",
38
+ variantClasses[variant],
39
+ sizeClasses[size],
40
+ className
41
+ ].join(" ")
42
+ }
43
+ );
44
+ }
45
+
46
+ // src/components/card.tsx
47
+ import { jsx as jsx3 } from "react/jsx-runtime";
48
+ function Card({ as: Component = "div", className = "", ...props }) {
49
+ return /* @__PURE__ */ jsx3(
50
+ Component,
51
+ {
52
+ ...props,
53
+ className: [
54
+ "rounded-2xl border border-white/10 bg-slate-950/50 p-4 shadow-lg shadow-slate-950/20 backdrop-blur-sm",
55
+ className
56
+ ].join(" ")
57
+ }
58
+ );
59
+ }
60
+
61
+ // src/components/input.tsx
62
+ import { jsx as jsx4 } from "react/jsx-runtime";
63
+ function Input({ className = "", ...props }) {
64
+ return /* @__PURE__ */ jsx4(
65
+ "input",
66
+ {
67
+ ...props,
68
+ className: [
69
+ "w-full rounded-xl border border-white/10 bg-slate-900 px-3 py-2 text-sm text-white placeholder:text-slate-400 focus:border-violet-400 focus:outline-none focus:ring-2 focus:ring-violet-400/30",
70
+ className
71
+ ].join(" ")
72
+ }
73
+ );
74
+ }
75
+
76
+ // src/tokens/index.ts
77
+ var themeTokens = {
78
+ colors: {
79
+ primary: "var(--sv-primary, 139 92 246)",
80
+ background: "var(--sv-background, 15 23 42)",
81
+ foreground: "var(--sv-foreground, 248 250 252)",
82
+ accent: "var(--sv-accent, 34 211 238)"
83
+ },
84
+ radius: {
85
+ sm: "var(--sv-radius-sm, 0.5rem)",
86
+ md: "var(--sv-radius-md, 0.75rem)",
87
+ lg: "var(--sv-radius-lg, 1rem)",
88
+ xl: "var(--sv-radius-xl, 1.25rem)"
89
+ }
90
+ };
91
+ var cx = (...classes) => classes.filter(Boolean).join(" ");
92
+ export {
93
+ Badge,
94
+ Button,
95
+ Card,
96
+ Input,
97
+ cx,
98
+ themeTokens
99
+ };
@@ -0,0 +1,16 @@
1
+ export declare const themeTokens: {
2
+ colors: {
3
+ primary: string;
4
+ background: string;
5
+ foreground: string;
6
+ accent: string;
7
+ };
8
+ radius: {
9
+ sm: string;
10
+ md: string;
11
+ lg: string;
12
+ xl: string;
13
+ };
14
+ };
15
+ declare const cx: (...classes: Array<string | false | undefined | null>) => string;
16
+ export { cx };
package/package.json CHANGED
@@ -1,6 +1,47 @@
1
1
  {
2
2
  "name": "@stackvibe-studio/ui",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "description": "Core React component library for StackVibe UI.",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/StackVibe-Studio/stackvibe-ui.git"
9
+ },
10
+ "homepage": "https://stackvibe-studio.github.io/stackvibe-ui/",
11
+ "bugs": {
12
+ "url": "https://github.com/StackVibe-Studio/stackvibe-ui/issues"
13
+ },
14
+ "license": "MIT",
15
+ "main": "./dist/index.js",
16
+ "types": "./dist/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.js",
21
+ "require": "./dist/index.cjs"
22
+ },
23
+ "./package.json": "./package.json"
24
+ },
25
+ "sideEffects": false,
26
+ "publishConfig": {
27
+ "access": "public",
28
+ "registry": "https://registry.npmjs.org/"
29
+ },
30
+ "files": [
31
+ "dist"
32
+ ],
33
+ "peerDependencies": {
34
+ "react": ">=18.0.0",
35
+ "react-dom": ">=18.0.0"
36
+ },
37
+ "devDependencies": {
38
+ "@types/react": "^19.0.0",
39
+ "@types/react-dom": "^19.0.0",
40
+ "tsup": "^8.1.0",
41
+ "typescript": "^5.7.0"
42
+ },
43
+ "scripts": {
44
+ "build": "tsup src/index.ts --format esm,cjs --clean && tsc --project tsconfig.json --emitDeclarationOnly",
45
+ "typecheck": "tsc --noEmit"
46
+ }
6
47
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.