labellife-design-tool 2.3.1 → 2.3.3

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/esm/index.js CHANGED
@@ -11279,47 +11279,68 @@ var SingleFieldDialog = function SingleFieldDialog(_ref) {
11279
11279
  })]
11280
11280
  });
11281
11281
  case 'radio':
11282
- return /*#__PURE__*/jsx(RadioGroup, {
11283
- value: value,
11284
- onChange: function onChange(e) {
11285
- return setValue(e.target.value);
11286
- },
11282
+ return /*#__PURE__*/jsx(Box, {
11287
11283
  sx: {
11288
11284
  mt: 1,
11289
- gap: 1
11285
+ flex: 1,
11286
+ minHeight: 0,
11287
+ overflowY: 'auto',
11288
+ pr: 0.5,
11289
+ '&::-webkit-scrollbar': {
11290
+ width: 6
11291
+ },
11292
+ '&::-webkit-scrollbar-track': {
11293
+ background: 'transparent'
11294
+ },
11295
+ '&::-webkit-scrollbar-thumb': {
11296
+ background: '#d0d5dd',
11297
+ borderRadius: 3
11298
+ },
11299
+ '&::-webkit-scrollbar-thumb:hover': {
11300
+ background: '#aaa'
11301
+ }
11290
11302
  },
11291
- children: options.map(function (opt) {
11292
- return /*#__PURE__*/jsx(FormControlLabel, {
11293
- value: opt,
11294
- control: /*#__PURE__*/jsx(Radio, {
11295
- sx: {
11296
- color: '#d0d5dd',
11297
- '&.Mui-checked': {
11298
- color: accentColor
11303
+ children: /*#__PURE__*/jsx(RadioGroup, {
11304
+ value: value,
11305
+ onChange: function onChange(e) {
11306
+ return setValue(e.target.value);
11307
+ },
11308
+ sx: {
11309
+ gap: 1
11310
+ },
11311
+ children: options.map(function (opt) {
11312
+ return /*#__PURE__*/jsx(FormControlLabel, {
11313
+ value: opt,
11314
+ control: /*#__PURE__*/jsx(Radio, {
11315
+ sx: {
11316
+ color: '#d0d5dd',
11317
+ '&.Mui-checked': {
11318
+ color: accentColor
11319
+ }
11299
11320
  }
11300
- }
11301
- }),
11302
- label: /*#__PURE__*/jsx(Typography, {
11321
+ }),
11322
+ label: /*#__PURE__*/jsx(Typography, {
11323
+ sx: {
11324
+ fontSize: 18
11325
+ },
11326
+ children: opt
11327
+ }),
11303
11328
  sx: {
11304
- fontSize: 18
11305
- },
11306
- children: opt
11307
- }),
11308
- sx: {
11309
- m: 0,
11310
- border: '1px solid',
11311
- borderColor: value === opt ? accentColor : '#d0d5dd',
11312
- borderRadius: '8px',
11313
- px: 2,
11314
- py: 0.75,
11315
- transition: 'all 0.15s ease',
11316
- backgroundColor: value === opt ? 'rgba(13,131,205,0.04)' : 'transparent',
11317
- '&:hover': {
11318
- borderColor: accentColor,
11319
- backgroundColor: 'rgba(13,131,205,0.03)'
11329
+ m: 0,
11330
+ border: '1px solid',
11331
+ borderColor: value === opt ? accentColor : '#d0d5dd',
11332
+ borderRadius: '8px',
11333
+ px: 2,
11334
+ py: 0.75,
11335
+ transition: 'all 0.15s ease',
11336
+ backgroundColor: value === opt ? 'rgba(13,131,205,0.04)' : 'transparent',
11337
+ '&:hover': {
11338
+ borderColor: accentColor,
11339
+ backgroundColor: 'rgba(13,131,205,0.03)'
11340
+ }
11320
11341
  }
11321
- }
11322
- }, opt);
11342
+ }, opt);
11343
+ })
11323
11344
  })
11324
11345
  });
11325
11346
  case 'list':
@@ -11327,11 +11348,32 @@ var SingleFieldDialog = function SingleFieldDialog(_ref) {
11327
11348
  var isAtMax = maxSelections > 0 && selectedItems.length >= maxSelections;
11328
11349
  return /*#__PURE__*/jsxs(Box, {
11329
11350
  sx: {
11330
- mt: 1
11351
+ mt: 1,
11352
+ flex: 1,
11353
+ minHeight: 0,
11354
+ display: 'flex',
11355
+ flexDirection: 'column'
11331
11356
  },
11332
11357
  children: [/*#__PURE__*/jsx(FormGroup, {
11333
11358
  sx: {
11334
- gap: 1
11359
+ gap: 1,
11360
+ flex: 1,
11361
+ minHeight: 0,
11362
+ overflowY: 'auto',
11363
+ pr: 0.5,
11364
+ '&::-webkit-scrollbar': {
11365
+ width: 6
11366
+ },
11367
+ '&::-webkit-scrollbar-track': {
11368
+ background: 'transparent'
11369
+ },
11370
+ '&::-webkit-scrollbar-thumb': {
11371
+ background: '#d0d5dd',
11372
+ borderRadius: 3
11373
+ },
11374
+ '&::-webkit-scrollbar-thumb:hover': {
11375
+ background: '#aaa'
11376
+ }
11335
11377
  },
11336
11378
  children: options.map(function (opt) {
11337
11379
  var checked = selectedItems.includes(opt);
@@ -11469,18 +11511,23 @@ var SingleFieldDialog = function SingleFieldDialog(_ref) {
11469
11511
  sx: {
11470
11512
  flex: 1,
11471
11513
  display: 'flex',
11472
- alignItems: 'center',
11473
- justifyContent: 'center',
11514
+ flexDirection: 'column',
11515
+ overflow: 'hidden',
11474
11516
  p: {
11475
11517
  xs: 3,
11476
11518
  sm: 5
11477
- },
11478
- overflowY: 'auto'
11519
+ }
11479
11520
  },
11480
11521
  children: /*#__PURE__*/jsxs(Box, {
11481
11522
  sx: {
11482
11523
  width: '100%',
11483
- maxWidth: 750
11524
+ maxWidth: 750,
11525
+ mx: 'auto',
11526
+ display: 'flex',
11527
+ flexDirection: 'column',
11528
+ flex: 1,
11529
+ minHeight: 0,
11530
+ justifyContent: 'center'
11484
11531
  },
11485
11532
  children: [/*#__PURE__*/jsx(Typography, {
11486
11533
  sx: {
@@ -11509,7 +11556,8 @@ var SingleFieldDialog = function SingleFieldDialog(_ref) {
11509
11556
  display: 'flex',
11510
11557
  alignItems: 'center',
11511
11558
  gap: 2,
11512
- mt: 4.5
11559
+ mt: 4.5,
11560
+ flexShrink: 0
11513
11561
  },
11514
11562
  children: [canGoBack && /*#__PURE__*/jsx(Button, {
11515
11563
  variant: "outlined",