jattac.libs.web.responsive-table 0.0.10 → 0.0.12
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}\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,26 +16,25 @@
|
|
|
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;
|
|
23
22
|
margin-bottom: 20px;
|
|
24
23
|
overflow-y: auto; /* Added overflow property for scrolling */
|
|
25
24
|
overflow-x: hidden; /* Added overflow property for scrolling */
|
|
25
|
+
height: 300px; /* Added height property for scrolling */
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.responsiveTable thead {
|
|
29
29
|
position: sticky;
|
|
30
30
|
top: 0; /* Ensure the table header stays at the top when scrolling */
|
|
31
|
-
background-color: #f2f2f2;
|
|
31
|
+
background-color: #f2f2f2;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.responsiveTable tbody {
|
|
35
35
|
display: block;
|
|
36
36
|
overflow-y: auto;
|
|
37
37
|
overflow-x: hidden;
|
|
38
|
-
height: 300px; /* Adjust the height as needed */
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
/* Style the table header */
|
|
@@ -45,10 +44,6 @@
|
|
|
45
44
|
text-align: left;
|
|
46
45
|
}
|
|
47
46
|
|
|
48
|
-
.responsiveTable th {
|
|
49
|
-
background-color: #f2f2f2;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
47
|
/* Alternate row colors */
|
|
53
48
|
.responsiveTable tr:nth-child(even) {
|
|
54
49
|
background-color: #f9f9f9;
|