react-live-data-table 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/ReactDataTable.jsx +20 -8
package/package.json
CHANGED
package/src/ReactDataTable.jsx
CHANGED
@@ -190,16 +190,30 @@ function ReactDataTable({
|
|
190
190
|
<div className="bg-white relative w-full">
|
191
191
|
{loading && (
|
192
192
|
<div className="absolute inset-0 bg-white/50 z-20 flex items-center justify-center">
|
193
|
-
<div className={`flex items-center justify-center`}>
|
194
|
-
<div role="status" className="relative">
|
195
193
|
<svg
|
196
|
-
|
194
|
+
style={{
|
195
|
+
animation: 'spin 1s linear infinite',
|
196
|
+
width: '24px',
|
197
|
+
height: '24px'
|
198
|
+
}}
|
197
199
|
viewBox="0 0 24 24"
|
198
200
|
fill="none"
|
199
201
|
xmlns="http://www.w3.org/2000/svg"
|
200
202
|
>
|
203
|
+
<style>
|
204
|
+
{`
|
205
|
+
@keyframes spin {
|
206
|
+
from {
|
207
|
+
transform: rotate(0deg);
|
208
|
+
}
|
209
|
+
to {
|
210
|
+
transform: rotate(360deg);
|
211
|
+
}
|
212
|
+
}
|
213
|
+
`}
|
214
|
+
</style>
|
201
215
|
<circle
|
202
|
-
|
216
|
+
style={{ opacity: 0.25 }}
|
203
217
|
cx="12"
|
204
218
|
cy="12"
|
205
219
|
r="10"
|
@@ -207,14 +221,12 @@ function ReactDataTable({
|
|
207
221
|
strokeWidth="4"
|
208
222
|
/>
|
209
223
|
<path
|
210
|
-
|
224
|
+
style={{ opacity: 0.75 }}
|
211
225
|
fill="currentColor"
|
212
226
|
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
213
227
|
/>
|
214
228
|
</svg>
|
215
|
-
|
216
|
-
</div>
|
217
|
-
</div>
|
229
|
+
|
218
230
|
</div>
|
219
231
|
)}
|
220
232
|
|