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