jattac.libs.web.responsive-table 0.0.11 → 0.0.13
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.js
CHANGED
|
@@ -29,7 +29,7 @@ function styleInject(css, ref) {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
var css_248z = ".ResponsiveTable-module_card__b-U2v {\n border: 1px solid #ccc;\n margin-bottom: 10px;\n border-radius: 8px;\n overflow: hidden;\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);\n}\n\n.ResponsiveTable-module_card-header__Ttk51 {\n background-color: #f0f0f0;\n padding: 10px;\n font-weight: bold;\n}\n\n.ResponsiveTable-module_card-body__XIy0h {\n padding: 10px;\n}\n\n
|
|
32
|
+
var css_248z = ".ResponsiveTable-module_card__b-U2v {\n border: 1px solid #ccc;\n margin-bottom: 10px;\n border-radius: 8px;\n overflow: hidden;\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);\n}\n\n.ResponsiveTable-module_card-header__Ttk51 {\n background-color: #f0f0f0;\n padding: 10px;\n font-weight: bold;\n}\n\n.ResponsiveTable-module_card-body__XIy0h {\n padding: 10px;\n}\n\n.ResponsiveTable-module_responsiveTable__4y-Od {\n width: 100%;\n border-collapse: collapse;\n margin-bottom: 20px;\n overflow-y: auto; /* Added overflow property for scrolling */\n overflow-x: hidden; /* Added overflow property for scrolling */\n height: 300px; /* Added height property for scrolling */\n}\n\n.ResponsiveTable-module_responsiveTable__4y-Od thead {\n position: sticky;\n top: 0; /* Ensure the table header stays at the top when scrolling */\n background-color: #f2f2f2;\n}\n\n.ResponsiveTable-module_responsiveTable__4y-Od tbody {\n display: block;\n overflow-y: auto;\n overflow-x: hidden;\n background-color: #ca3333;\n}\n\n/* Style the table header */\n.ResponsiveTable-module_responsiveTable__4y-Od th,\n.ResponsiveTable-module_responsiveTable__4y-Od td {\n padding: 12px;\n text-align: left;\n}\n\n/* Alternate row colors */\n.ResponsiveTable-module_responsiveTable__4y-Od tr:nth-child(even) {\n background-color: #f9f9f9;\n}\n\n/* Change background color on hover */\n.ResponsiveTable-module_responsiveTable__4y-Od tr:hover {\n background-color: #d9edf7;\n}\n\n.ResponsiveTable-module_noDataWrapper__Rj-k3 {\n color: #ca3333;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n gap: 10px;\n}\n\n.ResponsiveTable-module_noData__IpwNq {\n text-align: center;\n font-weight: bold;\n padding: 30px;\n}\n";
|
|
33
33
|
var styles = {"card":"ResponsiveTable-module_card__b-U2v","card-header":"ResponsiveTable-module_card-header__Ttk51","card-body":"ResponsiveTable-module_card-body__XIy0h","responsiveTable":"ResponsiveTable-module_responsiveTable__4y-Od","noDataWrapper":"ResponsiveTable-module_noDataWrapper__Rj-k3","noData":"ResponsiveTable-module_noData__IpwNq"};
|
|
34
34
|
styleInject(css_248z);
|
|
35
35
|
|
package/package.json
CHANGED
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
padding: 10px;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
/* Apply styles to the table with the specific class 'custom-table' */
|
|
20
19
|
.responsiveTable {
|
|
21
20
|
width: 100%;
|
|
22
21
|
border-collapse: collapse;
|
|
@@ -27,19 +26,16 @@
|
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
.responsiveTable thead {
|
|
30
|
-
background-color: #f2f2f2; /* Optional: Add a background color to the header */
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.responsiveTable th {
|
|
34
29
|
position: sticky;
|
|
35
30
|
top: 0; /* Ensure the table header stays at the top when scrolling */
|
|
36
31
|
background-color: #f2f2f2;
|
|
37
32
|
}
|
|
38
33
|
|
|
39
|
-
.responsiveTable
|
|
34
|
+
.responsiveTable tbody {
|
|
40
35
|
display: block;
|
|
41
36
|
overflow-y: auto;
|
|
42
37
|
overflow-x: hidden;
|
|
38
|
+
background-color: #ca3333;
|
|
43
39
|
}
|
|
44
40
|
|
|
45
41
|
/* Style the table header */
|