@kawaiininja/ui 1.0.4 → 1.0.7
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/dist/components/card/AccentStrip.d.ts +12 -0
- package/dist/components/card/AccentStrip.js +3 -0
- package/dist/components/card/GlassyRow.d.ts +10 -0
- package/dist/components/card/GlassyRow.js +3 -0
- package/dist/components/card/GlassyStatusRow.d.ts +14 -0
- package/dist/components/card/GlassyStatusRow.js +3 -0
- package/dist/components/card/index.d.ts +3 -0
- package/dist/components/card/index.js +3 -0
- package/dist/components/row/AccentStrip.d.ts +12 -0
- package/dist/components/row/AccentStrip.js +3 -0
- package/dist/components/row/GlassyRow.d.ts +10 -0
- package/dist/components/row/GlassyRow.js +3 -0
- package/dist/components/row/GlassyStatusRow.d.ts +14 -0
- package/dist/components/row/GlassyStatusRow.js +3 -0
- package/dist/components/row/index.d.ts +3 -0
- package/dist/components/row/index.js +3 -0
- package/dist/components/settings/SettingRow.d.ts +2 -2
- package/dist/components/settings/SettingRow.js +2 -2
- package/dist/components/status-rows/AccentStrip.d.ts +12 -0
- package/dist/components/status-rows/AccentStrip.js +3 -0
- package/dist/components/status-rows/GlassyRow.d.ts +10 -0
- package/dist/components/status-rows/GlassyRow.js +3 -0
- package/dist/components/status-rows/GlassyStatusRow.d.ts +14 -0
- package/dist/components/status-rows/GlassyStatusRow.js +3 -0
- package/dist/components/status-rows/index.d.ts +3 -0
- package/dist/components/status-rows/index.js +3 -0
- package/dist/components/toggle/BloomToggle.d.ts +1 -1
- package/dist/components/toggle/BloomToggle.js +1 -1
- package/dist/components/toggle/CrosshairToggle.d.ts +1 -1
- package/dist/components/toggle/CrosshairToggle.js +1 -1
- package/dist/components/toggle/Toggle.d.ts +1 -1
- package/dist/components/toggle/Toggle.js +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronRight } from "lucide-react";
|
|
3
|
+
export const AccentStrip = ({ data }) => (_jsxs("div", { className: "flex items-center justify-between p-3 bg-black border-l-2 border-[#FF8A1F] hover:bg-white/[0.01] transition-all group mb-2", children: [_jsxs("div", { className: "flex flex-col", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsxs("span", { className: "text-[9px] font-mono text-blue-500/50 uppercase", children: ["#", data.payload.category.slice(0, 3)] }), _jsx("h4", { className: "text-xs font-bold text-white uppercase tracking-wider", children: data.payload.role })] }), _jsx("p", { className: "text-[10px] text-gray-600 line-clamp-1 italic max-w-xs", children: data.payload.reason })] }), _jsxs("div", { className: "flex items-center gap-4", children: [_jsx("div", { className: "flex -space-x-1.5", children: data.payload.skills.map((_, i) => (_jsx("div", { className: "w-4 h-4 rounded-full border border-black bg-gray-900" }, i))) }), _jsx(ChevronRight, { size: 14, className: "text-gray-800 group-hover:text-white transition-colors" })] })] }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Activity, Circle } from "lucide-react";
|
|
3
|
+
export const GlassyRow = ({ data }) => (_jsxs("div", { className: "flex items-center justify-between p-4 bg-white/[0.02] border border-white/5 rounded-2xl hover:bg-white/[0.05] hover:border-blue-500/20 transition-all group mb-2", children: [_jsxs("div", { className: "flex items-center gap-3", children: [_jsx("div", { className: "w-8 h-8 rounded-full bg-blue-500/10 flex items-center justify-center text-blue-500 border border-blue-500/10", children: _jsx(Activity, { size: 14 }) }), _jsxs("div", { children: [_jsx("h4", { className: "text-[11px] font-black text-white uppercase italic", children: data.payload.role }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "text-[9px] text-gray-500 uppercase tracking-widest", children: data.payload.category }), _jsx(Circle, { size: 4, className: "fill-emerald-500 text-emerald-500" })] })] })] }), _jsx("button", { className: "px-4 py-1.5 bg-black border border-white/10 rounded-full text-[9px] font-bold uppercase tracking-widest text-gray-400 group-hover:text-[#FF8A1F] group-hover:border-[#FF8A1F]/30 transition-all", children: "View Log" })] }));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface GlassyStatusRowProps {
|
|
3
|
+
data: {
|
|
4
|
+
payload: {
|
|
5
|
+
role: string;
|
|
6
|
+
category: string;
|
|
7
|
+
};
|
|
8
|
+
status: string;
|
|
9
|
+
createdAt: {
|
|
10
|
+
$date: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare const GlassyStatusRow: React.FC<GlassyStatusRowProps>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronRight, GitBranch, Link2 } from "lucide-react";
|
|
3
|
+
export const GlassyStatusRow = ({ data }) => (_jsxs("div", { className: "flex items-center gap-4 p-4 bg-gradient-to-r from-white/[0.03] to-transparent rounded-2xl border-l-4 border-blue-500 hover:from-white/[0.05] transition-all mb-3 group", children: [_jsx("div", { className: "shrink-0 w-10 h-10 rounded-xl bg-black border border-white/5 flex items-center justify-center text-[#FF8A1F] group-hover:scale-110 transition-transform", children: _jsx(GitBranch, { size: 18 }) }), _jsxs("div", { className: "flex-1 min-w-0", children: [_jsxs("div", { className: "flex items-center gap-2 mb-0.5", children: [_jsx("h4", { className: "text-xs font-bold text-white uppercase", children: data.payload.role }), _jsx("span", { className: "text-[8px] text-emerald-500 font-black uppercase tracking-widest", children: data.status })] }), _jsxs("div", { className: "flex items-center gap-3 text-[9px] text-gray-600 font-medium", children: [_jsxs("span", { className: "flex items-center gap-1", children: [_jsx(Link2, { size: 10 }), " ", data.payload.category] }), _jsx("span", { className: "w-1 h-1 bg-gray-800 rounded-full" }), _jsx("span", { children: new Date(data.createdAt.$date).toLocaleDateString() })] })] }), _jsx(ChevronRight, { size: 16, className: "text-gray-800 group-hover:text-white transition-colors" })] }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronRight } from "lucide-react";
|
|
3
|
+
export const AccentStrip = ({ data }) => (_jsxs("div", { className: "flex items-center justify-between p-3 bg-black border-l-2 border-[#FF8A1F] hover:bg-white/[0.01] transition-all group mb-2", children: [_jsxs("div", { className: "flex flex-col", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsxs("span", { className: "text-[9px] font-mono text-blue-500/50 uppercase", children: ["#", data.payload.category.slice(0, 3)] }), _jsx("h4", { className: "text-xs font-bold text-white uppercase tracking-wider", children: data.payload.role })] }), _jsx("p", { className: "text-[10px] text-gray-600 line-clamp-1 italic max-w-xs", children: data.payload.reason })] }), _jsxs("div", { className: "flex items-center gap-4", children: [_jsx("div", { className: "flex -space-x-1.5", children: data.payload.skills.map((_, i) => (_jsx("div", { className: "w-4 h-4 rounded-full border border-black bg-gray-900" }, i))) }), _jsx(ChevronRight, { size: 14, className: "text-gray-800 group-hover:text-white transition-colors" })] })] }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Activity, Circle } from "lucide-react";
|
|
3
|
+
export const GlassyRow = ({ data }) => (_jsxs("div", { className: "flex items-center justify-between p-4 bg-white/[0.02] border border-white/5 rounded-2xl hover:bg-white/[0.05] hover:border-blue-500/20 transition-all group mb-2", children: [_jsxs("div", { className: "flex items-center gap-3", children: [_jsx("div", { className: "w-8 h-8 rounded-full bg-blue-500/10 flex items-center justify-center text-blue-500 border border-blue-500/10", children: _jsx(Activity, { size: 14 }) }), _jsxs("div", { children: [_jsx("h4", { className: "text-[11px] font-black text-white uppercase italic", children: data.payload.role }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "text-[9px] text-gray-500 uppercase tracking-widest", children: data.payload.category }), _jsx(Circle, { size: 4, className: "fill-emerald-500 text-emerald-500" })] })] })] }), _jsx("button", { className: "px-4 py-1.5 bg-black border border-white/10 rounded-full text-[9px] font-bold uppercase tracking-widest text-gray-400 group-hover:text-[#FF8A1F] group-hover:border-[#FF8A1F]/30 transition-all", children: "View Log" })] }));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface GlassyStatusRowProps {
|
|
3
|
+
data: {
|
|
4
|
+
payload: {
|
|
5
|
+
role: string;
|
|
6
|
+
category: string;
|
|
7
|
+
};
|
|
8
|
+
status: string;
|
|
9
|
+
createdAt: {
|
|
10
|
+
$date: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare const GlassyStatusRow: React.FC<GlassyStatusRowProps>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronRight, GitBranch, Link2 } from "lucide-react";
|
|
3
|
+
export const GlassyStatusRow = ({ data }) => (_jsxs("div", { className: "flex items-center gap-4 p-4 bg-gradient-to-r from-white/[0.03] to-transparent rounded-2xl border-l-4 border-blue-500 hover:from-white/[0.05] transition-all mb-3 group", children: [_jsx("div", { className: "shrink-0 w-10 h-10 rounded-xl bg-black border border-white/5 flex items-center justify-center text-[#FF8A1F] group-hover:scale-110 transition-transform", children: _jsx(GitBranch, { size: 18 }) }), _jsxs("div", { className: "flex-1 min-w-0", children: [_jsxs("div", { className: "flex items-center gap-2 mb-0.5", children: [_jsx("h4", { className: "text-xs font-bold text-white uppercase", children: data.payload.role }), _jsx("span", { className: "text-[8px] text-emerald-500 font-black uppercase tracking-widest", children: data.status })] }), _jsxs("div", { className: "flex items-center gap-3 text-[9px] text-gray-600 font-medium", children: [_jsxs("span", { className: "flex items-center gap-1", children: [_jsx(Link2, { size: 10 }), " ", data.payload.category] }), _jsx("span", { className: "w-1 h-1 bg-gray-800 rounded-full" }), _jsx("span", { children: new Date(data.createdAt.$date).toLocaleDateString() })] })] }), _jsx(ChevronRight, { size: 16, className: "text-gray-800 group-hover:text-white transition-colors" })] }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React from "react";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
/**
|
|
4
4
|
* A standard row for settings interfaces, featuring an icon, label, description, and action area.
|
|
5
5
|
*/
|
|
6
|
-
export const SettingRow = React.forwardRef(({ icon: Icon, label, description, children, onClick, className = "" }, ref) => (_jsxs("div", { ref: ref, onClick: onClick, className: `flex items-center justify-between p-4 border-b border-zinc-800 last:border-0 hover:bg-zinc-800/30 transition-colors ${onClick ? "cursor-pointer" : ""} ${className}`, children: [_jsxs("div", { className: "flex items-center gap-4", children: [_jsx("div", { className: "p-2 bg-zinc-800 rounded-lg text-blue-500", children: _jsx(Icon, { size: 20 }) }), _jsxs("div", { children: [_jsx("p", { className: "text-zinc-100 font-medium", children: label }), description && (_jsx("p", { className: "text-zinc-500 text-xs", children: description }))] })] }), _jsx("div", { className: "flex items-center", children: children })] })));
|
|
6
|
+
export const SettingRow = React.forwardRef(({ icon: Icon, label, description, children, onClick, className = "" }, ref) => (_jsxs("div", { ref: ref, onClick: onClick, className: `flex items-center justify-between p-4 border-b border-zinc-800 last:border-0 hover:bg-zinc-800/30 transition-colors ${onClick ? "cursor-pointer" : ""} ${className}`, children: [_jsxs("div", { className: "flex items-center gap-4", children: [Icon && (_jsx("div", { className: "p-2 bg-zinc-800 rounded-lg text-blue-500", children: _jsx(Icon, { size: 20 }) })), _jsxs("div", { children: [_jsx("p", { className: "text-zinc-100 font-medium", children: label }), description && (_jsx("p", { className: "text-zinc-500 text-xs", children: description }))] })] }), _jsx("div", { className: "flex items-center", children: children })] })));
|
|
7
7
|
SettingRow.displayName = "SettingRow";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronRight } from "lucide-react";
|
|
3
|
+
export const AccentStrip = ({ data }) => (_jsxs("div", { className: "flex items-center justify-between p-3 bg-black border-l-2 border-[#FF8A1F] hover:bg-white/[0.01] transition-all group mb-2", children: [_jsxs("div", { className: "flex flex-col", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsxs("span", { className: "text-[9px] font-mono text-blue-500/50 uppercase", children: ["#", data.payload.category.slice(0, 3)] }), _jsx("h4", { className: "text-xs font-bold text-white uppercase tracking-wider", children: data.payload.role })] }), _jsx("p", { className: "text-[10px] text-gray-600 line-clamp-1 italic max-w-xs", children: data.payload.reason })] }), _jsxs("div", { className: "flex items-center gap-4", children: [_jsx("div", { className: "flex -space-x-1.5", children: data.payload.skills.map((_, i) => (_jsx("div", { className: "w-4 h-4 rounded-full border border-black bg-gray-900" }, i))) }), _jsx(ChevronRight, { size: 14, className: "text-gray-800 group-hover:text-white transition-colors" })] })] }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Activity, Circle } from "lucide-react";
|
|
3
|
+
export const GlassyRow = ({ data }) => (_jsxs("div", { className: "flex items-center justify-between p-4 bg-white/[0.02] border border-white/5 rounded-2xl hover:bg-white/[0.05] hover:border-blue-500/20 transition-all group mb-2", children: [_jsxs("div", { className: "flex items-center gap-3", children: [_jsx("div", { className: "w-8 h-8 rounded-full bg-blue-500/10 flex items-center justify-center text-blue-500 border border-blue-500/10", children: _jsx(Activity, { size: 14 }) }), _jsxs("div", { children: [_jsx("h4", { className: "text-[11px] font-black text-white uppercase italic", children: data.payload.role }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "text-[9px] text-gray-500 uppercase tracking-widest", children: data.payload.category }), _jsx(Circle, { size: 4, className: "fill-emerald-500 text-emerald-500" })] })] })] }), _jsx("button", { className: "px-4 py-1.5 bg-black border border-white/10 rounded-full text-[9px] font-bold uppercase tracking-widest text-gray-400 group-hover:text-[#FF8A1F] group-hover:border-[#FF8A1F]/30 transition-all", children: "View Log" })] }));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface GlassyStatusRowProps {
|
|
3
|
+
data: {
|
|
4
|
+
payload: {
|
|
5
|
+
role: string;
|
|
6
|
+
category: string;
|
|
7
|
+
};
|
|
8
|
+
status: string;
|
|
9
|
+
createdAt: {
|
|
10
|
+
$date: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare const GlassyStatusRow: React.FC<GlassyStatusRowProps>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronRight, GitBranch, Link2 } from "lucide-react";
|
|
3
|
+
export const GlassyStatusRow = ({ data }) => (_jsxs("div", { className: "flex items-center gap-4 p-4 bg-gradient-to-r from-white/[0.03] to-transparent rounded-2xl border-l-4 border-blue-500 hover:from-white/[0.05] transition-all mb-3 group", children: [_jsx("div", { className: "shrink-0 w-10 h-10 rounded-xl bg-black border border-white/5 flex items-center justify-center text-[#FF8A1F] group-hover:scale-110 transition-transform", children: _jsx(GitBranch, { size: 18 }) }), _jsxs("div", { className: "flex-1 min-w-0", children: [_jsxs("div", { className: "flex items-center gap-2 mb-0.5", children: [_jsx("h4", { className: "text-xs font-bold text-white uppercase", children: data.payload.role }), _jsx("span", { className: "text-[8px] text-emerald-500 font-black uppercase tracking-widest", children: data.status })] }), _jsxs("div", { className: "flex items-center gap-3 text-[9px] text-gray-600 font-medium", children: [_jsxs("span", { className: "flex items-center gap-1", children: [_jsx(Link2, { size: 10 }), " ", data.payload.category] }), _jsx("span", { className: "w-1 h-1 bg-gray-800 rounded-full" }), _jsx("span", { children: new Date(data.createdAt.$date).toLocaleDateString() })] })] }), _jsx(ChevronRight, { size: 16, className: "text-gray-800 group-hover:text-white transition-colors" })] }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kawaiininja/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "A modern React component library with 45+ premium components for building beautiful web applications",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dark-mode",
|
|
34
34
|
"modern-ui"
|
|
35
35
|
],
|
|
36
|
-
"author": "
|
|
36
|
+
"author": "Tristan (4kawaiininja)",
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"repository": {
|
|
39
39
|
"type": "git",
|
|
@@ -65,4 +65,4 @@
|
|
|
65
65
|
"@types/react-dom": "^19.2.3",
|
|
66
66
|
"typescript": "^5.9.3"
|
|
67
67
|
}
|
|
68
|
-
}
|
|
68
|
+
}
|