@rabex-kit/rabex-ui 0.2.79 → 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.
@@ -5,6 +5,11 @@ declare const _default: {
5
5
  ownerState: any;
6
6
  theme: any;
7
7
  }) => {
8
+ marginLeft: number;
9
+ marginRight: number;
10
+ label: {
11
+ paddingRight: string;
12
+ };
8
13
  '&.error > .MuiCheckbox-root': {
9
14
  color: any;
10
15
  };
@@ -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",
@@ -5445,19 +5449,19 @@ var RabexCheckbox = {
5445
5449
  color: theme.palette.base[400],
5446
5450
  '& .MuiSvgIcon-root': {
5447
5451
  fontSize: '16px',
5448
- borderRadius: '4px' // Optional: slight rounding for modern look
5452
+ borderRadius: '4px'
5449
5453
  },
5450
5454
  '&.Mui-checked': _extends({}, ownerState.color === 'secondary' && {
5451
- color: theme.palette.grayBackground.A100
5455
+ color: theme.palette.secondary[500]
5452
5456
  }),
5453
5457
  '&.Mui-disabled': {
5454
- color: theme.palette.grayBackground.A40
5458
+ color: theme.palette.base[300]
5455
5459
  },
5456
5460
  '&.error': {
5457
- color: theme.palette.error.main
5461
+ color: theme.palette.error[400]
5458
5462
  },
5459
5463
  '&.error + .MuiFormControlLabel-label': {
5460
- color: theme.palette.error.main
5464
+ color: theme.palette.error[400]
5461
5465
  }
5462
5466
  };
5463
5467
  }
@@ -5593,6 +5597,11 @@ var RabexFormControlLabel = {
5593
5597
  root: function root(_ref) {
5594
5598
  var theme = _ref.theme;
5595
5599
  return {
5600
+ marginLeft: 0,
5601
+ marginRight: 0,
5602
+ label: {
5603
+ paddingRight: '8px'
5604
+ },
5596
5605
  '&.error > .MuiCheckbox-root': {
5597
5606
  color: theme.palette.error.main
5598
5607
  },