@rabex-kit/rabex-ui 0.2.81 → 0.2.83

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.
@@ -1362,6 +1362,10 @@ var AlertTimer = function AlertTimer(_ref) {
1362
1362
  onComplete();
1363
1363
  }
1364
1364
  }, [isComplete, onComplete]);
1365
+ var pad = function pad(value) {
1366
+ return value.toString().padStart(2, '0');
1367
+ };
1368
+ var formattedTime = time.hours > 0 ? time.hours + ":" + pad(time.minutes) + ":" + pad(time.seconds) : pad(time.minutes) + ":" + pad(time.seconds);
1365
1369
  return React__default.createElement(Stack$1, {
1366
1370
  flexDirection: "row",
1367
1371
  alignItems: "center",
@@ -1371,15 +1375,15 @@ var AlertTimer = function AlertTimer(_ref) {
1371
1375
  gap: 7,
1372
1376
  sx: sx
1373
1377
  }, children && React__default.createElement(Typography, {
1374
- variant: 'body3',
1375
- weight: 'semiBold',
1378
+ variant: "body3",
1379
+ weight: "semiBold",
1376
1380
  color: "textColor.A80"
1377
1381
  }, children), React__default.createElement(Stack$1, {
1378
1382
  flexDirection: "row",
1379
1383
  alignItems: "center",
1380
1384
  py: 1,
1381
1385
  height: 24,
1382
- width: 76,
1386
+ width: time.hours > 0 ? 106 : 76,
1383
1387
  borderRadius: 2,
1384
1388
  bgcolor: palette.warning[200],
1385
1389
  pr: 3,
@@ -1387,11 +1391,11 @@ var AlertTimer = function AlertTimer(_ref) {
1387
1391
  justifyContent: "end",
1388
1392
  boxSizing: "border-box"
1389
1393
  }, React__default.createElement(Typography, {
1390
- variant: 'body3',
1391
- weight: 'semiBold',
1394
+ variant: "body3",
1395
+ weight: "semiBold",
1392
1396
  color: "textColor.A80",
1393
1397
  mt: 0.5
1394
- }, time.minutes, ":", time.seconds), React__default.createElement(Stack$1, {
1398
+ }, formattedTime), React__default.createElement(Stack$1, {
1395
1399
  width: 16
1396
1400
  }, React__default.createElement("svg", {
1397
1401
  xmlns: "http://www.w3.org/2000/svg",