najm-kit 0.0.33 → 2.0.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.
- package/dist/index.mjs +20 -12
- package/package.json +10 -1
package/dist/index.mjs
CHANGED
|
@@ -5017,23 +5017,31 @@ function CompactCard({ icon, label, value, unit, iconColor, onClick, bordered, c
|
|
|
5017
5017
|
onClick,
|
|
5018
5018
|
bordered,
|
|
5019
5019
|
className: cn(
|
|
5020
|
-
|
|
5021
|
-
"bg-foreground/10 p-3 shadow-none",
|
|
5020
|
+
"group px-3 py-2.5 transition-colors",
|
|
5022
5021
|
onClick && "cursor-pointer",
|
|
5023
5022
|
className
|
|
5024
5023
|
),
|
|
5025
5024
|
classNames: {
|
|
5026
5025
|
root: classNames?.root,
|
|
5027
|
-
content: "items-center
|
|
5026
|
+
content: "flex-row items-center gap-2.5"
|
|
5028
5027
|
},
|
|
5029
5028
|
children: [
|
|
5030
|
-
/* @__PURE__ */
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5029
|
+
/* @__PURE__ */ jsx(
|
|
5030
|
+
"div",
|
|
5031
|
+
{
|
|
5032
|
+
className: cn(
|
|
5033
|
+
"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary transition-colors group-hover:bg-primary/20",
|
|
5034
|
+
classNames?.icon
|
|
5035
|
+
),
|
|
5036
|
+
children: /* @__PURE__ */ jsx(NIcon, { icon, className: cn("w-4 h-4", iconColor ?? "text-primary") })
|
|
5037
|
+
}
|
|
5038
|
+
),
|
|
5039
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
5040
|
+
/* @__PURE__ */ jsx("p", { className: cn("truncate text-[11px] leading-none text-muted-foreground", classNames?.label), children: label }),
|
|
5041
|
+
/* @__PURE__ */ jsxs("p", { className: cn("truncate text-base font-semibold leading-tight text-foreground", classNames?.value), children: [
|
|
5042
|
+
value,
|
|
5043
|
+
unit ? ` ${unit}` : ""
|
|
5044
|
+
] })
|
|
5037
5045
|
] })
|
|
5038
5046
|
]
|
|
5039
5047
|
}
|
|
@@ -7515,8 +7523,8 @@ function NFormSectionHeader({
|
|
|
7515
7523
|
className
|
|
7516
7524
|
),
|
|
7517
7525
|
children: [
|
|
7518
|
-
Icon2 && /* @__PURE__ */ jsx(Icon2, { className: "w-4 h-4 shrink-0" }),
|
|
7519
|
-
/* @__PURE__ */ jsx(Label, { className: "text-sm font-semibold leading-none", children: title })
|
|
7526
|
+
Icon2 && /* @__PURE__ */ jsx(Icon2, { className: "w-4 h-4 shrink-0 text-current" }),
|
|
7527
|
+
/* @__PURE__ */ jsx(Label, { className: "text-sm font-semibold leading-none text-current", children: title })
|
|
7520
7528
|
]
|
|
7521
7529
|
}
|
|
7522
7530
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "najm-kit",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"license": "MIT",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"description": "Reusable React UI component package for Najm framework",
|
|
6
7
|
"main": "./dist/index.mjs",
|
|
@@ -119,7 +120,14 @@
|
|
|
119
120
|
"zustand": "^5"
|
|
120
121
|
},
|
|
121
122
|
"devDependencies": {
|
|
123
|
+
"@codemirror/commands": "^6.10.0",
|
|
124
|
+
"@codemirror/lang-json": "^6.0.0",
|
|
125
|
+
"@codemirror/language": "^6.12.0",
|
|
126
|
+
"@codemirror/state": "^6.6.0",
|
|
127
|
+
"@codemirror/theme-one-dark": "^6.1.0",
|
|
128
|
+
"@codemirror/view": "^6.42.0",
|
|
122
129
|
"@hookform/resolvers": "^5",
|
|
130
|
+
"@lezer/highlight": "^1.2.0",
|
|
123
131
|
"@tailwindcss/postcss": "^4",
|
|
124
132
|
"@testing-library/react": "^16",
|
|
125
133
|
"@testing-library/user-event": "^14.6.1",
|
|
@@ -127,6 +135,7 @@
|
|
|
127
135
|
"@types/react": "^19",
|
|
128
136
|
"@types/react-dom": "^19",
|
|
129
137
|
"@types/react-file-icon": "^1.0.5",
|
|
138
|
+
"@uiw/react-codemirror": "^4.25.0",
|
|
130
139
|
"@vitejs/plugin-react": "^4",
|
|
131
140
|
"happy-dom": "^17",
|
|
132
141
|
"postcss": "^8",
|