@ammarkhalidfarooq/dashboard-package 0.6.43 → 0.6.45
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.cjs.js +182 -135
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +182 -135
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -16106,6 +16106,11 @@ var html2canvas_esm = /*#__PURE__*/Object.freeze({
|
|
|
16106
16106
|
var CARD_BORDER = "1.5px solid #F1F1F5";
|
|
16107
16107
|
var PANEL_BORDER = "1px solid #f0f0f0";
|
|
16108
16108
|
var PANEL_SHADOW = "0 4px 24px rgba(0,0,0,0.06)";
|
|
16109
|
+
var textSkeletonSx = {
|
|
16110
|
+
lineHeight: 1,
|
|
16111
|
+
transform: "none",
|
|
16112
|
+
flexShrink: 0
|
|
16113
|
+
};
|
|
16109
16114
|
var MetricCardSkeleton = function MetricCardSkeleton() {
|
|
16110
16115
|
return /*#__PURE__*/jsxs(Box, {
|
|
16111
16116
|
sx: {
|
|
@@ -16116,35 +16121,50 @@ var MetricCardSkeleton = function MetricCardSkeleton() {
|
|
|
16116
16121
|
xs: 1.75,
|
|
16117
16122
|
md: 2
|
|
16118
16123
|
},
|
|
16124
|
+
paddingTop: "10px !important",
|
|
16125
|
+
paddingBottom: "10px !important",
|
|
16119
16126
|
height: 92,
|
|
16120
|
-
boxShadow: "0 14px 30px rgba(21, 26, 45, 0.06)"
|
|
16127
|
+
boxShadow: "0 14px 30px rgba(21, 26, 45, 0.06)",
|
|
16128
|
+
display: "flex",
|
|
16129
|
+
flexDirection: "column",
|
|
16130
|
+
justifyContent: "space-between",
|
|
16131
|
+
overflow: "hidden"
|
|
16121
16132
|
},
|
|
16122
16133
|
children: [/*#__PURE__*/jsxs(Box, {
|
|
16123
16134
|
sx: {
|
|
16124
16135
|
display: "flex",
|
|
16125
16136
|
justifyContent: "space-between",
|
|
16126
|
-
|
|
16137
|
+
alignItems: "center"
|
|
16127
16138
|
},
|
|
16128
16139
|
children: [/*#__PURE__*/jsx(Skeleton, {
|
|
16129
|
-
variant: "
|
|
16140
|
+
variant: "rounded",
|
|
16130
16141
|
width: "55%",
|
|
16131
|
-
height:
|
|
16142
|
+
height: 14,
|
|
16143
|
+
sx: {
|
|
16144
|
+
flexShrink: 0
|
|
16145
|
+
}
|
|
16132
16146
|
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16133
16147
|
variant: "circular",
|
|
16134
16148
|
width: 30,
|
|
16135
|
-
height: 30
|
|
16149
|
+
height: 30,
|
|
16150
|
+
sx: {
|
|
16151
|
+
flexShrink: 0
|
|
16152
|
+
}
|
|
16136
16153
|
})]
|
|
16137
16154
|
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16138
|
-
variant: "
|
|
16155
|
+
variant: "rounded",
|
|
16139
16156
|
width: "70%",
|
|
16140
|
-
height:
|
|
16157
|
+
height: 22,
|
|
16141
16158
|
sx: {
|
|
16142
|
-
|
|
16159
|
+
flexShrink: 0
|
|
16143
16160
|
}
|
|
16144
16161
|
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16145
|
-
variant: "
|
|
16162
|
+
variant: "rounded",
|
|
16146
16163
|
width: "45%",
|
|
16147
|
-
height:
|
|
16164
|
+
height: 12,
|
|
16165
|
+
sx: {
|
|
16166
|
+
flexShrink: 0
|
|
16167
|
+
}
|
|
16148
16168
|
})]
|
|
16149
16169
|
});
|
|
16150
16170
|
};
|
|
@@ -16165,7 +16185,11 @@ var MetricCardsSkeleton = function MetricCardsSkeleton(_ref) {
|
|
|
16165
16185
|
display: "grid",
|
|
16166
16186
|
gridTemplateColumns: gridTemplateColumns,
|
|
16167
16187
|
gap: gap,
|
|
16168
|
-
mb: 0
|
|
16188
|
+
mb: 0,
|
|
16189
|
+
minWidth: 0,
|
|
16190
|
+
"& > *": {
|
|
16191
|
+
minWidth: 0
|
|
16192
|
+
}
|
|
16169
16193
|
},
|
|
16170
16194
|
children: Array.from({
|
|
16171
16195
|
length: count
|
|
@@ -16174,43 +16198,52 @@ var MetricCardsSkeleton = function MetricCardsSkeleton(_ref) {
|
|
|
16174
16198
|
})
|
|
16175
16199
|
});
|
|
16176
16200
|
};
|
|
16201
|
+
var panelCardSx = {
|
|
16202
|
+
bgcolor: "#fff",
|
|
16203
|
+
borderRadius: 4,
|
|
16204
|
+
border: PANEL_BORDER,
|
|
16205
|
+
boxShadow: PANEL_SHADOW,
|
|
16206
|
+
p: 3,
|
|
16207
|
+
display: "flex",
|
|
16208
|
+
flexDirection: "column",
|
|
16209
|
+
overflow: "hidden",
|
|
16210
|
+
minWidth: 0
|
|
16211
|
+
};
|
|
16177
16212
|
var ChartCardSkeleton = function ChartCardSkeleton(_ref2) {
|
|
16178
16213
|
var _ref2$height = _ref2.height,
|
|
16179
16214
|
height = _ref2$height === void 0 ? 380 : _ref2$height;
|
|
16180
16215
|
return /*#__PURE__*/jsxs(Box, {
|
|
16181
|
-
sx: {
|
|
16182
|
-
bgcolor: "#fff",
|
|
16183
|
-
borderRadius: 4,
|
|
16184
|
-
border: PANEL_BORDER,
|
|
16185
|
-
boxShadow: PANEL_SHADOW,
|
|
16186
|
-
p: 3,
|
|
16216
|
+
sx: _objectSpread2(_objectSpread2({}, panelCardSx), {}, {
|
|
16187
16217
|
height: height
|
|
16188
|
-
},
|
|
16218
|
+
}),
|
|
16189
16219
|
children: [/*#__PURE__*/jsx(Skeleton, {
|
|
16190
|
-
variant: "
|
|
16220
|
+
variant: "rounded",
|
|
16191
16221
|
width: 180,
|
|
16192
|
-
height:
|
|
16193
|
-
sx: {
|
|
16222
|
+
height: 22,
|
|
16223
|
+
sx: _objectSpread2(_objectSpread2({}, textSkeletonSx), {}, {
|
|
16194
16224
|
mb: 0.5
|
|
16195
|
-
}
|
|
16225
|
+
})
|
|
16196
16226
|
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16197
|
-
variant: "
|
|
16227
|
+
variant: "rounded",
|
|
16198
16228
|
width: 120,
|
|
16199
|
-
height:
|
|
16200
|
-
sx: {
|
|
16229
|
+
height: 14,
|
|
16230
|
+
sx: _objectSpread2(_objectSpread2({}, textSkeletonSx), {}, {
|
|
16201
16231
|
mb: 1
|
|
16202
|
-
}
|
|
16232
|
+
})
|
|
16203
16233
|
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16204
|
-
variant: "
|
|
16234
|
+
variant: "rounded",
|
|
16205
16235
|
width: 140,
|
|
16206
|
-
height:
|
|
16207
|
-
sx: {
|
|
16236
|
+
height: 30,
|
|
16237
|
+
sx: _objectSpread2(_objectSpread2({}, textSkeletonSx), {}, {
|
|
16208
16238
|
mb: 2
|
|
16209
|
-
}
|
|
16239
|
+
})
|
|
16210
16240
|
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16211
16241
|
variant: "rounded",
|
|
16212
|
-
|
|
16213
|
-
|
|
16242
|
+
sx: {
|
|
16243
|
+
flex: 1,
|
|
16244
|
+
minHeight: 0,
|
|
16245
|
+
width: "100%"
|
|
16246
|
+
}
|
|
16214
16247
|
})]
|
|
16215
16248
|
});
|
|
16216
16249
|
};
|
|
@@ -16220,32 +16253,30 @@ var PanelCardSkeleton = function PanelCardSkeleton(_ref3) {
|
|
|
16220
16253
|
_ref3$sx = _ref3.sx,
|
|
16221
16254
|
sx = _ref3$sx === void 0 ? {} : _ref3$sx;
|
|
16222
16255
|
return /*#__PURE__*/jsxs(Box, {
|
|
16223
|
-
sx: _objectSpread2({
|
|
16224
|
-
bgcolor: "#fff",
|
|
16225
|
-
borderRadius: 4,
|
|
16226
|
-
border: PANEL_BORDER,
|
|
16227
|
-
boxShadow: PANEL_SHADOW,
|
|
16228
|
-
p: 3,
|
|
16256
|
+
sx: _objectSpread2(_objectSpread2({}, panelCardSx), {}, {
|
|
16229
16257
|
height: height
|
|
16230
16258
|
}, sx),
|
|
16231
16259
|
children: [/*#__PURE__*/jsx(Skeleton, {
|
|
16232
|
-
variant: "
|
|
16260
|
+
variant: "rounded",
|
|
16233
16261
|
width: "50%",
|
|
16234
|
-
height:
|
|
16235
|
-
sx: {
|
|
16262
|
+
height: 20,
|
|
16263
|
+
sx: _objectSpread2(_objectSpread2({}, textSkeletonSx), {}, {
|
|
16236
16264
|
mb: 0.5
|
|
16237
|
-
}
|
|
16265
|
+
})
|
|
16238
16266
|
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16239
|
-
variant: "
|
|
16267
|
+
variant: "rounded",
|
|
16240
16268
|
width: "35%",
|
|
16241
|
-
height:
|
|
16242
|
-
sx: {
|
|
16243
|
-
mb: 2
|
|
16244
|
-
}
|
|
16269
|
+
height: 14,
|
|
16270
|
+
sx: _objectSpread2(_objectSpread2({}, textSkeletonSx), {}, {
|
|
16271
|
+
mb: 2
|
|
16272
|
+
})
|
|
16245
16273
|
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16246
16274
|
variant: "rounded",
|
|
16247
|
-
|
|
16248
|
-
|
|
16275
|
+
sx: {
|
|
16276
|
+
flex: 1,
|
|
16277
|
+
minHeight: 0,
|
|
16278
|
+
width: "100%"
|
|
16279
|
+
}
|
|
16249
16280
|
})]
|
|
16250
16281
|
});
|
|
16251
16282
|
};
|
|
@@ -16255,74 +16286,81 @@ var TableCardSkeleton = function TableCardSkeleton(_ref4) {
|
|
|
16255
16286
|
_ref4$rowCount = _ref4.rowCount,
|
|
16256
16287
|
rowCount = _ref4$rowCount === void 0 ? 5 : _ref4$rowCount;
|
|
16257
16288
|
return /*#__PURE__*/jsxs(Box, {
|
|
16258
|
-
sx: {
|
|
16259
|
-
bgcolor: "#fff",
|
|
16260
|
-
borderRadius: 4,
|
|
16261
|
-
border: PANEL_BORDER,
|
|
16262
|
-
boxShadow: PANEL_SHADOW,
|
|
16263
|
-
p: 3,
|
|
16289
|
+
sx: _objectSpread2(_objectSpread2({}, panelCardSx), {}, {
|
|
16264
16290
|
height: height
|
|
16265
|
-
},
|
|
16291
|
+
}),
|
|
16266
16292
|
children: [/*#__PURE__*/jsx(Skeleton, {
|
|
16267
|
-
variant: "
|
|
16293
|
+
variant: "rounded",
|
|
16268
16294
|
width: "40%",
|
|
16269
|
-
height:
|
|
16270
|
-
sx: {
|
|
16295
|
+
height: 20,
|
|
16296
|
+
sx: _objectSpread2(_objectSpread2({}, textSkeletonSx), {}, {
|
|
16271
16297
|
mb: 0.5
|
|
16272
|
-
}
|
|
16298
|
+
})
|
|
16273
16299
|
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16274
|
-
variant: "
|
|
16300
|
+
variant: "rounded",
|
|
16275
16301
|
width: "30%",
|
|
16276
|
-
height:
|
|
16277
|
-
sx: {
|
|
16278
|
-
mb: 2
|
|
16279
|
-
}
|
|
16302
|
+
height: 14,
|
|
16303
|
+
sx: _objectSpread2(_objectSpread2({}, textSkeletonSx), {}, {
|
|
16304
|
+
mb: 2
|
|
16305
|
+
})
|
|
16280
16306
|
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16281
|
-
variant: "
|
|
16307
|
+
variant: "rounded",
|
|
16282
16308
|
width: "100%",
|
|
16283
|
-
height:
|
|
16309
|
+
height: 18,
|
|
16310
|
+
sx: _objectSpread2(_objectSpread2({}, textSkeletonSx), {}, {
|
|
16311
|
+
mb: 1.5,
|
|
16312
|
+
flexShrink: 0
|
|
16313
|
+
})
|
|
16314
|
+
}), /*#__PURE__*/jsx(Box, {
|
|
16284
16315
|
sx: {
|
|
16285
|
-
|
|
16286
|
-
|
|
16287
|
-
|
|
16288
|
-
|
|
16289
|
-
|
|
16290
|
-
|
|
16291
|
-
|
|
16292
|
-
|
|
16293
|
-
gap: 2,
|
|
16294
|
-
mb: 1.5,
|
|
16295
|
-
alignItems: "center"
|
|
16296
|
-
},
|
|
16297
|
-
children: [/*#__PURE__*/jsx(Skeleton, {
|
|
16298
|
-
variant: "circular",
|
|
16299
|
-
width: 36,
|
|
16300
|
-
height: 36
|
|
16301
|
-
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16302
|
-
variant: "text",
|
|
16303
|
-
width: "25%",
|
|
16304
|
-
height: 20
|
|
16305
|
-
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16306
|
-
variant: "text",
|
|
16307
|
-
width: "15%",
|
|
16308
|
-
height: 20
|
|
16309
|
-
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16310
|
-
variant: "rounded",
|
|
16311
|
-
width: "20%",
|
|
16312
|
-
height: 8,
|
|
16316
|
+
flex: 1,
|
|
16317
|
+
minHeight: 0,
|
|
16318
|
+
overflow: "hidden"
|
|
16319
|
+
},
|
|
16320
|
+
children: Array.from({
|
|
16321
|
+
length: rowCount
|
|
16322
|
+
}).map(function (_, index) {
|
|
16323
|
+
return /*#__PURE__*/jsxs(Box, {
|
|
16313
16324
|
sx: {
|
|
16314
|
-
|
|
16315
|
-
|
|
16316
|
-
|
|
16317
|
-
|
|
16318
|
-
|
|
16319
|
-
|
|
16320
|
-
|
|
16321
|
-
|
|
16322
|
-
|
|
16323
|
-
|
|
16324
|
-
|
|
16325
|
-
|
|
16325
|
+
display: "flex",
|
|
16326
|
+
gap: 1.5,
|
|
16327
|
+
mb: 1.5,
|
|
16328
|
+
alignItems: "center",
|
|
16329
|
+
minWidth: 0,
|
|
16330
|
+
"& > *": {
|
|
16331
|
+
flexShrink: 0
|
|
16332
|
+
}
|
|
16333
|
+
},
|
|
16334
|
+
children: [/*#__PURE__*/jsx(Skeleton, {
|
|
16335
|
+
variant: "circular",
|
|
16336
|
+
width: 36,
|
|
16337
|
+
height: 36
|
|
16338
|
+
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16339
|
+
variant: "rounded",
|
|
16340
|
+
width: "22%",
|
|
16341
|
+
height: 16
|
|
16342
|
+
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16343
|
+
variant: "rounded",
|
|
16344
|
+
width: "14%",
|
|
16345
|
+
height: 16
|
|
16346
|
+
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16347
|
+
variant: "rounded",
|
|
16348
|
+
height: 8,
|
|
16349
|
+
sx: {
|
|
16350
|
+
flex: 1,
|
|
16351
|
+
minWidth: 0
|
|
16352
|
+
}
|
|
16353
|
+
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16354
|
+
variant: "rounded",
|
|
16355
|
+
width: "10%",
|
|
16356
|
+
height: 16
|
|
16357
|
+
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16358
|
+
variant: "rounded",
|
|
16359
|
+
width: "12%",
|
|
16360
|
+
height: 16
|
|
16361
|
+
})]
|
|
16362
|
+
}, index);
|
|
16363
|
+
})
|
|
16326
16364
|
})]
|
|
16327
16365
|
});
|
|
16328
16366
|
};
|
|
@@ -16330,45 +16368,46 @@ var DonutCardSkeleton = function DonutCardSkeleton(_ref5) {
|
|
|
16330
16368
|
var _ref5$height = _ref5.height,
|
|
16331
16369
|
height = _ref5$height === void 0 ? 430 : _ref5$height;
|
|
16332
16370
|
return /*#__PURE__*/jsxs(Box, {
|
|
16333
|
-
sx: {
|
|
16334
|
-
|
|
16335
|
-
|
|
16336
|
-
border: PANEL_BORDER,
|
|
16337
|
-
boxShadow: PANEL_SHADOW,
|
|
16338
|
-
p: 3,
|
|
16339
|
-
height: height,
|
|
16340
|
-
display: "flex",
|
|
16341
|
-
flexDirection: "column"
|
|
16342
|
-
},
|
|
16371
|
+
sx: _objectSpread2(_objectSpread2({}, panelCardSx), {}, {
|
|
16372
|
+
height: height
|
|
16373
|
+
}),
|
|
16343
16374
|
children: [/*#__PURE__*/jsx(Skeleton, {
|
|
16344
|
-
variant: "
|
|
16375
|
+
variant: "rounded",
|
|
16345
16376
|
width: "45%",
|
|
16346
|
-
height:
|
|
16347
|
-
sx: {
|
|
16377
|
+
height: 20,
|
|
16378
|
+
sx: _objectSpread2(_objectSpread2({}, textSkeletonSx), {}, {
|
|
16348
16379
|
mb: 0.5
|
|
16349
|
-
}
|
|
16380
|
+
})
|
|
16350
16381
|
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16351
|
-
variant: "
|
|
16382
|
+
variant: "rounded",
|
|
16352
16383
|
width: "35%",
|
|
16353
|
-
height:
|
|
16354
|
-
sx: {
|
|
16384
|
+
height: 14,
|
|
16385
|
+
sx: _objectSpread2(_objectSpread2({}, textSkeletonSx), {}, {
|
|
16355
16386
|
mb: 2
|
|
16356
|
-
}
|
|
16387
|
+
})
|
|
16357
16388
|
}), /*#__PURE__*/jsxs(Box, {
|
|
16358
16389
|
sx: {
|
|
16359
16390
|
display: "flex",
|
|
16360
16391
|
flex: 1,
|
|
16392
|
+
minHeight: 0,
|
|
16361
16393
|
alignItems: "center",
|
|
16362
16394
|
justifyContent: "center",
|
|
16363
|
-
gap:
|
|
16395
|
+
gap: 2,
|
|
16396
|
+
overflow: "hidden"
|
|
16364
16397
|
},
|
|
16365
16398
|
children: [/*#__PURE__*/jsx(Skeleton, {
|
|
16366
16399
|
variant: "circular",
|
|
16367
|
-
|
|
16368
|
-
|
|
16400
|
+
sx: {
|
|
16401
|
+
width: 140,
|
|
16402
|
+
height: 140,
|
|
16403
|
+
flexShrink: 0,
|
|
16404
|
+
maxWidth: "45%"
|
|
16405
|
+
}
|
|
16369
16406
|
}), /*#__PURE__*/jsx(Box, {
|
|
16370
16407
|
sx: {
|
|
16371
|
-
flex: 1
|
|
16408
|
+
flex: 1,
|
|
16409
|
+
minWidth: 0,
|
|
16410
|
+
overflow: "hidden"
|
|
16372
16411
|
},
|
|
16373
16412
|
children: Array.from({
|
|
16374
16413
|
length: 4
|
|
@@ -16378,16 +16417,23 @@ var DonutCardSkeleton = function DonutCardSkeleton(_ref5) {
|
|
|
16378
16417
|
display: "flex",
|
|
16379
16418
|
alignItems: "center",
|
|
16380
16419
|
gap: 1,
|
|
16381
|
-
mb: 1.5
|
|
16420
|
+
mb: 1.5,
|
|
16421
|
+
minWidth: 0
|
|
16382
16422
|
},
|
|
16383
16423
|
children: [/*#__PURE__*/jsx(Skeleton, {
|
|
16384
16424
|
variant: "circular",
|
|
16385
16425
|
width: 10,
|
|
16386
|
-
height: 10
|
|
16426
|
+
height: 10,
|
|
16427
|
+
sx: {
|
|
16428
|
+
flexShrink: 0
|
|
16429
|
+
}
|
|
16387
16430
|
}), /*#__PURE__*/jsx(Skeleton, {
|
|
16388
|
-
variant: "
|
|
16389
|
-
width: "
|
|
16390
|
-
height:
|
|
16431
|
+
variant: "rounded",
|
|
16432
|
+
width: "75%",
|
|
16433
|
+
height: 14,
|
|
16434
|
+
sx: {
|
|
16435
|
+
minWidth: 0
|
|
16436
|
+
}
|
|
16391
16437
|
})]
|
|
16392
16438
|
}, index);
|
|
16393
16439
|
})
|
|
@@ -17796,7 +17842,8 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
17796
17842
|
value: selectedInfo.value,
|
|
17797
17843
|
trend: selectedInfo.subValue,
|
|
17798
17844
|
data: selectedInfo.data,
|
|
17799
|
-
categories: chartCategories
|
|
17845
|
+
categories: chartCategories,
|
|
17846
|
+
hideControls: true
|
|
17800
17847
|
};
|
|
17801
17848
|
if (apiLoading) {
|
|
17802
17849
|
return /*#__PURE__*/jsx(OrganicSectionSkeleton, {});
|