@axzydev/axzy_ui_system 1.3.2 → 1.3.3
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.cjs +29 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +29 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/table/table.tsx +2 -1
- package/src/components/organisms/data-table/dataTable.tsx +2 -1
- package/src/components/theme-provider/themePresets.ts +6 -0
- package/src/components/theme-provider/themeProvider.doc.mdx +1 -0
- package/src/components/theme-provider/themeProvider.props.ts +2 -0
- package/src/components/theme-provider/themeProvider.tsx +13 -2
- package/src/sandbox/LandingShowcase.tsx +416 -227
- package/src/theme/theme.types.ts +2 -0
- package/src/utils/styles.ts +3 -1
package/dist/index.cjs
CHANGED
|
@@ -2180,9 +2180,10 @@ function tableHeaderCell(className, density = "normal") {
|
|
|
2180
2180
|
return (0, import_clsx11.default)(densityStyles[density].header, "align-top", className);
|
|
2181
2181
|
}
|
|
2182
2182
|
var tableBody = "divide-y divide-secondary-100";
|
|
2183
|
-
var tableRow = "hover:bg-secondary-50
|
|
2183
|
+
var tableRow = "hover:bg-[var(--color-table-rowHover,var(--color-secondary-50))] transition-colors duration-150 group";
|
|
2184
2184
|
var tableRowClickable = "cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-inset";
|
|
2185
2185
|
var tableCardClickable = "cursor-pointer rounded-lg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500";
|
|
2186
|
+
var tableCardHover = "hover:bg-[var(--color-table-rowHover,var(--color-secondary-50))] transition-colors duration-150";
|
|
2186
2187
|
function tableCell(className, density = "normal") {
|
|
2187
2188
|
return (0, import_clsx11.default)(densityStyles[density].cell, "align-middle", className);
|
|
2188
2189
|
}
|
|
@@ -4373,7 +4374,7 @@ function ITDataTable({
|
|
|
4373
4374
|
effectiveView === "cards" ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "p-4 space-y-3 max-h-[400px] overflow-y-auto", children: data.length > 0 ? data.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
4374
4375
|
"div",
|
|
4375
4376
|
{
|
|
4376
|
-
className: (0, import_clsx21.default)(onRowClick && !isLoading && tableCardClickable),
|
|
4377
|
+
className: (0, import_clsx21.default)(tableCardHover, onRowClick && !isLoading && tableCardClickable),
|
|
4377
4378
|
role: onRowClick && !isLoading ? "button" : void 0,
|
|
4378
4379
|
tabIndex: onRowClick && !isLoading ? 0 : void 0,
|
|
4379
4380
|
onClick: onRowClick && !isLoading ? handleRowClick(row) : void 0,
|
|
@@ -8312,7 +8313,7 @@ function ITTable({
|
|
|
8312
8313
|
effectiveView === "cards" ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "p-4 space-y-3 max-h-[400px] overflow-y-auto", children: currentData.length > 0 ? currentData.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
8313
8314
|
"div",
|
|
8314
8315
|
{
|
|
8315
|
-
className: (0, import_clsx43.default)(onRowClick && tableCardClickable),
|
|
8316
|
+
className: (0, import_clsx43.default)(tableCardHover, onRowClick && tableCardClickable),
|
|
8316
8317
|
role: onRowClick ? "button" : void 0,
|
|
8317
8318
|
tabIndex: onRowClick ? 0 : void 0,
|
|
8318
8319
|
onClick: onRowClick ? handleRowClick(row) : void 0,
|
|
@@ -10246,8 +10247,10 @@ var DEFAULT_PALETTE = {
|
|
|
10246
10247
|
// Slate-700
|
|
10247
10248
|
rowBg: "#ffffff",
|
|
10248
10249
|
// White
|
|
10249
|
-
rowText: "#1e293b"
|
|
10250
|
+
rowText: "#1e293b",
|
|
10250
10251
|
// Slate-800
|
|
10252
|
+
rowHover: "#f1f5f9"
|
|
10253
|
+
// Slate-100
|
|
10251
10254
|
}
|
|
10252
10255
|
};
|
|
10253
10256
|
var PRESETS = [
|
|
@@ -10272,7 +10275,8 @@ var PRESETS = [
|
|
|
10272
10275
|
headerBg: "#f1f5f9",
|
|
10273
10276
|
headerText: "#334155",
|
|
10274
10277
|
rowBg: "#ffffff",
|
|
10275
|
-
rowText: "#0f172a"
|
|
10278
|
+
rowText: "#0f172a",
|
|
10279
|
+
rowHover: "#1e293b"
|
|
10276
10280
|
}
|
|
10277
10281
|
}
|
|
10278
10282
|
},
|
|
@@ -10297,7 +10301,8 @@ var PRESETS = [
|
|
|
10297
10301
|
headerBg: "#fff1f2",
|
|
10298
10302
|
headerText: "#881337",
|
|
10299
10303
|
rowBg: "#ffffff",
|
|
10300
|
-
rowText: "#1c1212"
|
|
10304
|
+
rowText: "#1c1212",
|
|
10305
|
+
rowHover: "#fff1f2"
|
|
10301
10306
|
}
|
|
10302
10307
|
}
|
|
10303
10308
|
},
|
|
@@ -10322,7 +10327,8 @@ var PRESETS = [
|
|
|
10322
10327
|
headerBg: "#f0fdfa",
|
|
10323
10328
|
headerText: "#115e59",
|
|
10324
10329
|
rowBg: "#ffffff",
|
|
10325
|
-
rowText: "#042f2e"
|
|
10330
|
+
rowText: "#042f2e",
|
|
10331
|
+
rowHover: "#f0fdfa"
|
|
10326
10332
|
}
|
|
10327
10333
|
}
|
|
10328
10334
|
},
|
|
@@ -10347,7 +10353,8 @@ var PRESETS = [
|
|
|
10347
10353
|
headerBg: "#fefce8",
|
|
10348
10354
|
headerText: "#713f12",
|
|
10349
10355
|
rowBg: "#ffffff",
|
|
10350
|
-
rowText: "#292524"
|
|
10356
|
+
rowText: "#292524",
|
|
10357
|
+
rowHover: "#fefce8"
|
|
10351
10358
|
}
|
|
10352
10359
|
}
|
|
10353
10360
|
},
|
|
@@ -10372,7 +10379,8 @@ var PRESETS = [
|
|
|
10372
10379
|
headerBg: "#f0fdf4",
|
|
10373
10380
|
headerText: "#166534",
|
|
10374
10381
|
rowBg: "#ffffff",
|
|
10375
|
-
rowText: "#052e16"
|
|
10382
|
+
rowText: "#052e16",
|
|
10383
|
+
rowHover: "#f0fdf4"
|
|
10376
10384
|
}
|
|
10377
10385
|
}
|
|
10378
10386
|
}
|
|
@@ -10652,6 +10660,7 @@ function ITThemeProvider({
|
|
|
10652
10660
|
let tableRowText = palette2.table.rowText;
|
|
10653
10661
|
let tableHeaderBg = palette2.table.headerBg;
|
|
10654
10662
|
let tableHeaderText = palette2.table.headerText;
|
|
10663
|
+
let tableRowHover = palette2.table.rowHover;
|
|
10655
10664
|
let navbarBg = palette2.layout.navbarBg;
|
|
10656
10665
|
let navbarText = palette2.layout.navbarText;
|
|
10657
10666
|
let sidebarBg = palette2.layout.sidebarBg;
|
|
@@ -10669,6 +10678,9 @@ function ITThemeProvider({
|
|
|
10669
10678
|
if (!isLightColor2(tableHeaderText)) {
|
|
10670
10679
|
tableHeaderText = `color-mix(in srgb, ${palette2.table.headerText} 20%, #f9fafb)`;
|
|
10671
10680
|
}
|
|
10681
|
+
if (isLightColor2(tableRowHover)) {
|
|
10682
|
+
tableRowHover = `color-mix(in srgb, ${palette2.table.rowHover} 12%, #1f2937)`;
|
|
10683
|
+
}
|
|
10672
10684
|
if (isLightColor2(navbarBg)) {
|
|
10673
10685
|
navbarBg = `color-mix(in srgb, ${palette2.layout.navbarBg} 8%, #111827)`;
|
|
10674
10686
|
}
|
|
@@ -10694,7 +10706,10 @@ function ITThemeProvider({
|
|
|
10694
10706
|
}
|
|
10695
10707
|
if (isLightColor2(tableHeaderText)) {
|
|
10696
10708
|
tableHeaderText = `color-mix(in srgb, ${palette2.table.headerText} 30%, #334155)`;
|
|
10697
|
-
} else if (!isLightColor2(tableHeaderText) && isVeryDarkColor(
|
|
10709
|
+
} else if (!isLightColor2(tableHeaderText) && isVeryDarkColor(tableHeaderText)) {
|
|
10710
|
+
}
|
|
10711
|
+
if (!isLightColor2(tableRowHover)) {
|
|
10712
|
+
tableRowHover = isVeryDarkColor(palette2.table.rowHover) ? "#f1f5f9" : `color-mix(in srgb, ${palette2.table.rowHover} 12%, #f8fafc)`;
|
|
10698
10713
|
}
|
|
10699
10714
|
if (!isLightColor2(navbarBg)) {
|
|
10700
10715
|
navbarBg = isVeryDarkColor(palette2.layout.navbarBg) ? "#ffffff" : `color-mix(in srgb, ${palette2.layout.navbarBg} 8%, #ffffff)`;
|
|
@@ -10904,6 +10919,7 @@ function ITThemeProvider({
|
|
|
10904
10919
|
--color-table-headerText: ${tableHeaderText} !important;
|
|
10905
10920
|
--color-table-rowBg: ${tableRowBg} !important;
|
|
10906
10921
|
--color-table-rowText: ${tableRowText} !important;
|
|
10922
|
+
--color-table-rowHover: ${tableRowHover} !important;
|
|
10907
10923
|
|
|
10908
10924
|
/* Native library variables integration */
|
|
10909
10925
|
--it-sidebar-bg: var(--color-sidebarBg);
|
|
@@ -11247,7 +11263,7 @@ function ITThemeProvider({
|
|
|
11247
11263
|
color: var(--color-table-rowText) !important;
|
|
11248
11264
|
}
|
|
11249
11265
|
tbody tr:hover {
|
|
11250
|
-
background-color:
|
|
11266
|
+
background-color: var(--color-table-rowHover) !important;
|
|
11251
11267
|
}
|
|
11252
11268
|
|
|
11253
11269
|
/* Animation for Saved Indicator */
|
|
@@ -12009,7 +12025,8 @@ function ITThemeProvider({
|
|
|
12009
12025
|
"table.headerBg",
|
|
12010
12026
|
"table.headerText",
|
|
12011
12027
|
"table.rowBg",
|
|
12012
|
-
"table.rowText"
|
|
12028
|
+
"table.rowText",
|
|
12029
|
+
"table.rowHover"
|
|
12013
12030
|
].map((key) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ColorRow, { colorKey: key }, key)) })
|
|
12014
12031
|
}
|
|
12015
12032
|
]
|