jattac.libs.web.responsive-table 0.0.13 → 0.0.14
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.ResponsiveTable-module_responsiveTable__4y-Od {\n width: 100%;\n border-collapse: collapse;\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}\n\n.ResponsiveTable-module_responsiveTable__4y-Od thead th {\n background-color: #f2f2f2;\n position: sticky;\n top: 0;\n z-index: 2;\n}\n\n.ResponsiveTable-module_responsiveTable__4y-Od th,\n.ResponsiveTable-module_responsiveTable__4y-Od td {\n padding: 12px;\n border: 1px solid #dddddd;\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
|
@@ -19,29 +19,19 @@
|
|
|
19
19
|
.responsiveTable {
|
|
20
20
|
width: 100%;
|
|
21
21
|
border-collapse: collapse;
|
|
22
|
-
margin-bottom: 20px;
|
|
23
|
-
overflow-y: auto; /* Added overflow property for scrolling */
|
|
24
|
-
overflow-x: hidden; /* Added overflow property for scrolling */
|
|
25
|
-
height: 300px; /* Added height property for scrolling */
|
|
26
22
|
}
|
|
27
23
|
|
|
28
|
-
.responsiveTable thead {
|
|
29
|
-
position: sticky;
|
|
30
|
-
top: 0; /* Ensure the table header stays at the top when scrolling */
|
|
24
|
+
.responsiveTable thead th {
|
|
31
25
|
background-color: #f2f2f2;
|
|
26
|
+
position: sticky;
|
|
27
|
+
top: 0;
|
|
28
|
+
z-index: 2;
|
|
32
29
|
}
|
|
33
30
|
|
|
34
|
-
.responsiveTable tbody {
|
|
35
|
-
display: block;
|
|
36
|
-
overflow-y: auto;
|
|
37
|
-
overflow-x: hidden;
|
|
38
|
-
background-color: #ca3333;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/* Style the table header */
|
|
42
31
|
.responsiveTable th,
|
|
43
32
|
.responsiveTable td {
|
|
44
33
|
padding: 12px;
|
|
34
|
+
border: 1px solid #dddddd;
|
|
45
35
|
text-align: left;
|
|
46
36
|
}
|
|
47
37
|
|