@universe-platform/ui 0.1.0-beta.71 → 0.1.0-beta.72
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/globals.css +4 -0
- package/dist/index.js +19 -4
- package/dist/index.mjs +19 -4
- package/package.json +1 -1
package/dist/globals.css
CHANGED
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
--color-indigo-400: oklch(67.3% 0.182 276.935);
|
|
78
78
|
--color-indigo-600: oklch(51.1% 0.262 276.966);
|
|
79
79
|
--color-indigo-700: oklch(45.7% 0.24 277.023);
|
|
80
|
+
--color-indigo-800: oklch(39.8% 0.195 277.366);
|
|
80
81
|
--color-indigo-900: oklch(35.9% 0.144 278.697);
|
|
81
82
|
--color-violet-50: oklch(96.9% 0.016 293.756);
|
|
82
83
|
--color-violet-100: oklch(94.3% 0.029 294.588);
|
|
@@ -2101,6 +2102,9 @@
|
|
|
2101
2102
|
.text-indigo-700 {
|
|
2102
2103
|
color: var(--color-indigo-700);
|
|
2103
2104
|
}
|
|
2105
|
+
.text-indigo-800 {
|
|
2106
|
+
color: var(--color-indigo-800);
|
|
2107
|
+
}
|
|
2104
2108
|
.text-indigo-900 {
|
|
2105
2109
|
color: var(--color-indigo-900);
|
|
2106
2110
|
}
|
package/dist/index.js
CHANGED
|
@@ -9924,6 +9924,18 @@ function TableBlockClient({
|
|
|
9924
9924
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-wrap items-center justify-between gap-3 p-3.5 sm:p-4 bg-slate-50 border-b border-slate-200 shrink-0", children: [
|
|
9925
9925
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-wrap items-center gap-2.5", children: [
|
|
9926
9926
|
((schema == null ? void 0 : schema.title) || (schema == null ? void 0 : schema.name)) && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "font-bold text-slate-800 text-sm sm:text-base border-l border-slate-300 pl-3 ml-1", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: schema.title || schema.name }) }),
|
|
9927
|
+
hasActiveSearchOrFilter && !isInitialLoading && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
9928
|
+
"span",
|
|
9929
|
+
{
|
|
9930
|
+
className: `inline-flex items-center gap-1 h-8 px-2.5 rounded-lg border text-xs font-semibold whitespace-nowrap transition-opacity ${isFetching || isLoading ? "opacity-50" : ""} ${totalRecords === 0 ? "bg-amber-50 border-amber-200 text-amber-800" : "bg-indigo-50 border-indigo-200 text-indigo-800"}`,
|
|
9931
|
+
title: "\u05DE\u05E1\u05E4\u05E8 \u05D4\u05E8\u05E9\u05D5\u05DE\u05D5\u05EA \u05E9\u05E2\u05D5\u05E0\u05D5\u05EA \u05E2\u05DC \u05D4\u05E1\u05D9\u05E0\u05D5\u05DF \u05D5\u05D4\u05D7\u05D9\u05E4\u05D5\u05E9 \u05D4\u05E0\u05D5\u05DB\u05D7\u05D9\u05D9\u05DD",
|
|
9932
|
+
"data-testid": "filtered-records-count",
|
|
9933
|
+
children: [
|
|
9934
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react11.Filter, { className: "w-3.5 h-3.5" }),
|
|
9935
|
+
totalRecords === 0 ? "\u05DC\u05D0 \u05E0\u05DE\u05E6\u05D0\u05D5 \u05E8\u05E9\u05D5\u05DE\u05D5\u05EA" : `\u05E0\u05DE\u05E6\u05D0\u05D5 ${totalRecords.toLocaleString("he-IL")} \u05E8\u05E9\u05D5\u05DE\u05D5\u05EA`
|
|
9936
|
+
]
|
|
9937
|
+
}
|
|
9938
|
+
),
|
|
9927
9939
|
(() => {
|
|
9928
9940
|
const tableMetaId = (schema == null ? void 0 : schema.tableMetaId) || (schema == null ? void 0 : schema.tableId) || (schema == null ? void 0 : schema.id);
|
|
9929
9941
|
const isOwner = role === "OWNER";
|
|
@@ -10463,10 +10475,13 @@ function TableBlockClient({
|
|
|
10463
10475
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("strong", { className: "text-slate-900", children: page }),
|
|
10464
10476
|
" \u05DE\u05EA\u05D5\u05DA ",
|
|
10465
10477
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("strong", { className: "text-slate-900", children: totalPages || 1 }),
|
|
10466
|
-
totalRecords > 0 && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { className: "text-slate-500 font-normal", children: [
|
|
10467
|
-
"
|
|
10468
|
-
|
|
10469
|
-
|
|
10478
|
+
(totalRecords > 0 || hasActiveSearchOrFilter) && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { className: "text-slate-500 font-normal", children: [
|
|
10479
|
+
" ",
|
|
10480
|
+
"(",
|
|
10481
|
+
totalRecords.toLocaleString("he-IL"),
|
|
10482
|
+
" ",
|
|
10483
|
+
hasActiveSearchOrFilter ? "\u05E8\u05E9\u05D5\u05DE\u05D5\u05EA \u05DE\u05E1\u05D5\u05E0\u05E0\u05D5\u05EA" : '\u05E8\u05E9\u05D5\u05DE\u05D5\u05EA \u05D1\u05E1\u05D4"\u05DB',
|
|
10484
|
+
")"
|
|
10470
10485
|
] })
|
|
10471
10486
|
] }),
|
|
10472
10487
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-1.5", children: [
|
package/dist/index.mjs
CHANGED
|
@@ -9725,6 +9725,18 @@ function TableBlockClient({
|
|
|
9725
9725
|
/* @__PURE__ */ jsxs16("div", { className: "flex flex-wrap items-center justify-between gap-3 p-3.5 sm:p-4 bg-slate-50 border-b border-slate-200 shrink-0", children: [
|
|
9726
9726
|
/* @__PURE__ */ jsxs16("div", { className: "flex flex-wrap items-center gap-2.5", children: [
|
|
9727
9727
|
((schema == null ? void 0 : schema.title) || (schema == null ? void 0 : schema.name)) && /* @__PURE__ */ jsx20("div", { className: "font-bold text-slate-800 text-sm sm:text-base border-l border-slate-300 pl-3 ml-1", children: /* @__PURE__ */ jsx20("span", { children: schema.title || schema.name }) }),
|
|
9728
|
+
hasActiveSearchOrFilter && !isInitialLoading && /* @__PURE__ */ jsxs16(
|
|
9729
|
+
"span",
|
|
9730
|
+
{
|
|
9731
|
+
className: `inline-flex items-center gap-1 h-8 px-2.5 rounded-lg border text-xs font-semibold whitespace-nowrap transition-opacity ${isFetching || isLoading ? "opacity-50" : ""} ${totalRecords === 0 ? "bg-amber-50 border-amber-200 text-amber-800" : "bg-indigo-50 border-indigo-200 text-indigo-800"}`,
|
|
9732
|
+
title: "\u05DE\u05E1\u05E4\u05E8 \u05D4\u05E8\u05E9\u05D5\u05DE\u05D5\u05EA \u05E9\u05E2\u05D5\u05E0\u05D5\u05EA \u05E2\u05DC \u05D4\u05E1\u05D9\u05E0\u05D5\u05DF \u05D5\u05D4\u05D7\u05D9\u05E4\u05D5\u05E9 \u05D4\u05E0\u05D5\u05DB\u05D7\u05D9\u05D9\u05DD",
|
|
9733
|
+
"data-testid": "filtered-records-count",
|
|
9734
|
+
children: [
|
|
9735
|
+
/* @__PURE__ */ jsx20(Filter, { className: "w-3.5 h-3.5" }),
|
|
9736
|
+
totalRecords === 0 ? "\u05DC\u05D0 \u05E0\u05DE\u05E6\u05D0\u05D5 \u05E8\u05E9\u05D5\u05DE\u05D5\u05EA" : `\u05E0\u05DE\u05E6\u05D0\u05D5 ${totalRecords.toLocaleString("he-IL")} \u05E8\u05E9\u05D5\u05DE\u05D5\u05EA`
|
|
9737
|
+
]
|
|
9738
|
+
}
|
|
9739
|
+
),
|
|
9728
9740
|
(() => {
|
|
9729
9741
|
const tableMetaId = (schema == null ? void 0 : schema.tableMetaId) || (schema == null ? void 0 : schema.tableId) || (schema == null ? void 0 : schema.id);
|
|
9730
9742
|
const isOwner = role === "OWNER";
|
|
@@ -10264,10 +10276,13 @@ function TableBlockClient({
|
|
|
10264
10276
|
/* @__PURE__ */ jsx20("strong", { className: "text-slate-900", children: page }),
|
|
10265
10277
|
" \u05DE\u05EA\u05D5\u05DA ",
|
|
10266
10278
|
/* @__PURE__ */ jsx20("strong", { className: "text-slate-900", children: totalPages || 1 }),
|
|
10267
|
-
totalRecords > 0 && /* @__PURE__ */ jsxs16("span", { className: "text-slate-500 font-normal", children: [
|
|
10268
|
-
"
|
|
10269
|
-
|
|
10270
|
-
|
|
10279
|
+
(totalRecords > 0 || hasActiveSearchOrFilter) && /* @__PURE__ */ jsxs16("span", { className: "text-slate-500 font-normal", children: [
|
|
10280
|
+
" ",
|
|
10281
|
+
"(",
|
|
10282
|
+
totalRecords.toLocaleString("he-IL"),
|
|
10283
|
+
" ",
|
|
10284
|
+
hasActiveSearchOrFilter ? "\u05E8\u05E9\u05D5\u05DE\u05D5\u05EA \u05DE\u05E1\u05D5\u05E0\u05E0\u05D5\u05EA" : '\u05E8\u05E9\u05D5\u05DE\u05D5\u05EA \u05D1\u05E1\u05D4"\u05DB',
|
|
10285
|
+
")"
|
|
10271
10286
|
] })
|
|
10272
10287
|
] }),
|
|
10273
10288
|
/* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-1.5", children: [
|