najm-kit 0.0.14 → 0.0.15
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.d.ts +1 -1
- package/dist/index.mjs +5 -5
- package/dist/styles.css +8 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2310,7 +2310,7 @@ declare const createTableStore: () => {
|
|
|
2310
2310
|
declare const HEADER_COLORS: {
|
|
2311
2311
|
readonly primary: {
|
|
2312
2312
|
readonly bg: "bg-primary/15";
|
|
2313
|
-
readonly text: "[&_th]:text-
|
|
2313
|
+
readonly text: "[&_th]:text-foreground";
|
|
2314
2314
|
readonly row: "hover:bg-primary/5";
|
|
2315
2315
|
};
|
|
2316
2316
|
readonly violet: {
|
package/dist/index.mjs
CHANGED
|
@@ -2406,7 +2406,7 @@ function Checkbox({ className, ...props }) {
|
|
|
2406
2406
|
{
|
|
2407
2407
|
"data-slot": "checkbox",
|
|
2408
2408
|
className: cn(
|
|
2409
|
-
"peer border-
|
|
2409
|
+
"peer border-foreground/40 dark:border-foreground/50 dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
2410
2410
|
className
|
|
2411
2411
|
),
|
|
2412
2412
|
...props,
|
|
@@ -3576,7 +3576,7 @@ function TableHead({ className, ...props }) {
|
|
|
3576
3576
|
return /* @__PURE__ */ jsx("th", { "data-slot": "table-head", className: cn("text-foreground h-9 px-3 text-left align-middle text-xs font-medium uppercase tracking-wide whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", className), ...props });
|
|
3577
3577
|
}
|
|
3578
3578
|
function TableCell({ className, ...props }) {
|
|
3579
|
-
return /* @__PURE__ */ jsx("td", { "data-slot": "table-cell", className: cn("
|
|
3579
|
+
return /* @__PURE__ */ jsx("td", { "data-slot": "table-cell", className: cn("px-3 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", className), ...props });
|
|
3580
3580
|
}
|
|
3581
3581
|
function TableCaption({ className, ...props }) {
|
|
3582
3582
|
return /* @__PURE__ */ jsx("caption", { "data-slot": "table-caption", className: cn("text-muted-foreground mt-4 text-sm", className), ...props });
|
|
@@ -7678,7 +7678,7 @@ function useTableKeyboard(options = {}) {
|
|
|
7678
7678
|
|
|
7679
7679
|
// src/components/table/tableColors.ts
|
|
7680
7680
|
var HEADER_COLORS = {
|
|
7681
|
-
primary: { bg: "bg-primary/15", text: "[&_th]:text-
|
|
7681
|
+
primary: { bg: "bg-primary/15", text: "[&_th]:text-foreground", row: "hover:bg-primary/5" },
|
|
7682
7682
|
violet: { bg: "bg-violet-600/30", text: "[&_th]:text-violet-800 dark:[&_th]:text-violet-300", row: "hover:bg-violet-500/5" },
|
|
7683
7683
|
blue: { bg: "bg-blue-600/30", text: "[&_th]:text-blue-800 dark:[&_th]:text-blue-300", row: "hover:bg-blue-500/5" },
|
|
7684
7684
|
emerald: { bg: "bg-emerald-600/30", text: "[&_th]:text-emerald-800 dark:[&_th]:text-emerald-400", row: "hover:bg-emerald-500/5" },
|
|
@@ -7812,7 +7812,7 @@ function NTableContent({ effectiveMode }) {
|
|
|
7812
7812
|
onContextMenu: handleBackgroundContextMenu,
|
|
7813
7813
|
children: /* @__PURE__ */ jsxs(Table, { children: [
|
|
7814
7814
|
/* @__PURE__ */ jsx(TableHeader, { "data-ntable-table-header": true, className: cn("bg-card sticky top-0 z-10", colorStyle?.text, headerClassName, bordered && "[&_tr]:border-border", classNames?.tableHeader), children: table.getHeaderGroups().map((hg) => /* @__PURE__ */ jsxs(TableRow, { className: cn("hover:bg-transparent", bordered && "border-border"), children: [
|
|
7815
|
-
showCheckbox && /* @__PURE__ */ jsx(TableHead, { className: cn("w-10 text-foreground h-12", colorStyle?.bg), children: /* @__PURE__ */ jsx(
|
|
7815
|
+
showCheckbox && /* @__PURE__ */ jsx(TableHead, { className: cn("w-10 text-foreground h-12 text-center", colorStyle?.bg), children: /* @__PURE__ */ jsx(
|
|
7816
7816
|
Checkbox,
|
|
7817
7817
|
{
|
|
7818
7818
|
"aria-label": "Select all rows",
|
|
@@ -7846,7 +7846,7 @@ function NTableContent({ effectiveMode }) {
|
|
|
7846
7846
|
} : void 0,
|
|
7847
7847
|
className: cn(colorStyle?.row, classNames?.row, onRowClick && "cursor-pointer", isSelectedByRowId && "bg-brand/5 hover:bg-brand/5", bordered && "border-border"),
|
|
7848
7848
|
children: [
|
|
7849
|
-
showCheckbox && /* @__PURE__ */ jsx(TableCell, { className: "h-14 w-10", children: /* @__PURE__ */ jsx(
|
|
7849
|
+
showCheckbox && /* @__PURE__ */ jsx(TableCell, { className: "h-14 w-10 text-center", children: /* @__PURE__ */ jsx(
|
|
7850
7850
|
Checkbox,
|
|
7851
7851
|
{
|
|
7852
7852
|
"aria-label": `Select row ${row.id}`,
|
package/dist/styles.css
CHANGED
|
@@ -2420,6 +2420,9 @@ video {
|
|
|
2420
2420
|
.border-emerald-500\/60 {
|
|
2421
2421
|
border-color: rgb(16 185 129 / 0.6);
|
|
2422
2422
|
}
|
|
2423
|
+
.border-foreground\/40 {
|
|
2424
|
+
border-color: hsl(var(--najm-foreground) / 0.4);
|
|
2425
|
+
}
|
|
2423
2426
|
.border-green-500\/30 {
|
|
2424
2427
|
border-color: rgb(34 197 94 / 0.3);
|
|
2425
2428
|
}
|
|
@@ -4202,6 +4205,9 @@ video {
|
|
|
4202
4205
|
.dark\:border-0:is(.dark *) {
|
|
4203
4206
|
border-width: 0px;
|
|
4204
4207
|
}
|
|
4208
|
+
.dark\:border-foreground\/50:is(.dark *) {
|
|
4209
|
+
border-color: hsl(var(--najm-foreground) / 0.5);
|
|
4210
|
+
}
|
|
4205
4211
|
.dark\:bg-\[\#222b38\]:is(.dark *) {
|
|
4206
4212
|
--tw-bg-opacity: 1;
|
|
4207
4213
|
background-color: rgb(34 43 56 / var(--tw-bg-opacity, 1));
|
|
@@ -5001,8 +5007,8 @@ video {
|
|
|
5001
5007
|
--tw-text-opacity: 1;
|
|
5002
5008
|
color: rgb(6 95 70 / var(--tw-text-opacity, 1));
|
|
5003
5009
|
}
|
|
5004
|
-
.\[\&_th\]\:text-
|
|
5005
|
-
color: hsl(var(--najm-
|
|
5010
|
+
.\[\&_th\]\:text-foreground th {
|
|
5011
|
+
color: hsl(var(--najm-foreground));
|
|
5006
5012
|
}
|
|
5007
5013
|
.\[\&_th\]\:text-rose-800 th {
|
|
5008
5014
|
--tw-text-opacity: 1;
|