react-live-data-table 1.0.5 → 1.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-live-data-table",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Your React component package with Tailwind",
5
5
  "main": "src/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -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
- className={`animate-spin w-6 h-6}`}
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
- className="opacity-25"
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
- className="opacity-75"
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
- <span className="sr-only">Loading...</span>
216
- </div>
217
- </div>
229
+
218
230
  </div>
219
231
  )}
220
232