labellife-design-tool 2.3.6 → 2.3.7
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/cjs/canvas/workspace.js +70 -64
- package/dist/cjs/canvas/workspace.js.map +1 -1
- package/dist/cjs/index.js +70 -64
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/canvas/workspace.js +70 -64
- package/dist/esm/canvas/workspace.js.map +1 -1
- package/dist/esm/index.js +70 -64
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -11319,7 +11319,7 @@ var SingleFieldDialog = function SingleFieldDialog(_ref) {
|
|
|
11319
11319
|
case 'radio':
|
|
11320
11320
|
{
|
|
11321
11321
|
var otherSelected = value === '__custom__';
|
|
11322
|
-
return /*#__PURE__*/
|
|
11322
|
+
return /*#__PURE__*/jsx(Box, {
|
|
11323
11323
|
sx: {
|
|
11324
11324
|
mt: 1,
|
|
11325
11325
|
flex: 1,
|
|
@@ -11340,7 +11340,7 @@ var SingleFieldDialog = function SingleFieldDialog(_ref) {
|
|
|
11340
11340
|
background: '#aaa'
|
|
11341
11341
|
}
|
|
11342
11342
|
},
|
|
11343
|
-
children:
|
|
11343
|
+
children: /*#__PURE__*/jsxs(RadioGroup, {
|
|
11344
11344
|
value: value,
|
|
11345
11345
|
onChange: function onChange(e) {
|
|
11346
11346
|
return setValue(e.target.value);
|
|
@@ -11348,7 +11348,73 @@ var SingleFieldDialog = function SingleFieldDialog(_ref) {
|
|
|
11348
11348
|
sx: {
|
|
11349
11349
|
gap: 1
|
|
11350
11350
|
},
|
|
11351
|
-
children: [
|
|
11351
|
+
children: [/*#__PURE__*/jsxs(Box, {
|
|
11352
|
+
sx: {
|
|
11353
|
+
display: 'flex',
|
|
11354
|
+
flexDirection: 'column'
|
|
11355
|
+
},
|
|
11356
|
+
children: [/*#__PURE__*/jsx(FormControlLabel, {
|
|
11357
|
+
value: "__custom__",
|
|
11358
|
+
control: /*#__PURE__*/jsx(Radio, {
|
|
11359
|
+
sx: {
|
|
11360
|
+
color: '#d0d5dd',
|
|
11361
|
+
'&.Mui-checked': {
|
|
11362
|
+
color: accentColor
|
|
11363
|
+
}
|
|
11364
|
+
}
|
|
11365
|
+
}),
|
|
11366
|
+
label: /*#__PURE__*/jsx(Typography, {
|
|
11367
|
+
sx: {
|
|
11368
|
+
fontSize: 18
|
|
11369
|
+
},
|
|
11370
|
+
children: t('inputFieldsDialog.other', 'Other')
|
|
11371
|
+
}),
|
|
11372
|
+
sx: {
|
|
11373
|
+
m: 0,
|
|
11374
|
+
border: '1px solid',
|
|
11375
|
+
borderColor: otherSelected ? accentColor : '#d0d5dd',
|
|
11376
|
+
borderRadius: otherSelected ? '8px 8px 0 0' : '8px',
|
|
11377
|
+
borderBottom: otherSelected ? 'none' : undefined,
|
|
11378
|
+
px: 2,
|
|
11379
|
+
py: 0.75,
|
|
11380
|
+
transition: 'border-color 0.15s ease, border-radius 0.15s ease',
|
|
11381
|
+
backgroundColor: otherSelected ? 'rgba(13,131,205,0.04)' : 'transparent',
|
|
11382
|
+
'&:hover': {
|
|
11383
|
+
borderColor: accentColor,
|
|
11384
|
+
backgroundColor: 'rgba(13,131,205,0.03)'
|
|
11385
|
+
}
|
|
11386
|
+
}
|
|
11387
|
+
}), otherSelected && /*#__PURE__*/jsx(TextField, {
|
|
11388
|
+
autoFocus: true,
|
|
11389
|
+
fullWidth: true,
|
|
11390
|
+
value: customRadioValue,
|
|
11391
|
+
onChange: function onChange(e) {
|
|
11392
|
+
return setCustomRadioValue(e.target.value);
|
|
11393
|
+
},
|
|
11394
|
+
onKeyDown: function onKeyDown(e) {
|
|
11395
|
+
if (e.key === 'Enter' && customRadioValue.trim()) handleSubmit();
|
|
11396
|
+
},
|
|
11397
|
+
placeholder: t('inputFieldsDialog.otherPlaceholder', 'Type your answer…'),
|
|
11398
|
+
sx: {
|
|
11399
|
+
'& .MuiOutlinedInput-root': {
|
|
11400
|
+
borderRadius: '0 0 8px 8px',
|
|
11401
|
+
fontSize: 18,
|
|
11402
|
+
'& fieldset': {
|
|
11403
|
+
borderColor: accentColor,
|
|
11404
|
+
borderTopColor: 'transparent'
|
|
11405
|
+
},
|
|
11406
|
+
'&:hover fieldset': {
|
|
11407
|
+
borderColor: accentColor,
|
|
11408
|
+
borderTopColor: 'transparent'
|
|
11409
|
+
},
|
|
11410
|
+
'&.Mui-focused fieldset': {
|
|
11411
|
+
borderColor: accentColor,
|
|
11412
|
+
borderTopColor: 'transparent'
|
|
11413
|
+
}
|
|
11414
|
+
}
|
|
11415
|
+
}
|
|
11416
|
+
})]
|
|
11417
|
+
}), options.map(function (opt) {
|
|
11352
11418
|
return /*#__PURE__*/jsx(FormControlLabel, {
|
|
11353
11419
|
value: opt,
|
|
11354
11420
|
control: /*#__PURE__*/jsx(Radio, {
|
|
@@ -11380,68 +11446,8 @@ var SingleFieldDialog = function SingleFieldDialog(_ref) {
|
|
|
11380
11446
|
}
|
|
11381
11447
|
}
|
|
11382
11448
|
}, opt);
|
|
11383
|
-
}), /*#__PURE__*/jsx(FormControlLabel, {
|
|
11384
|
-
value: "__custom__",
|
|
11385
|
-
control: /*#__PURE__*/jsx(Radio, {
|
|
11386
|
-
sx: {
|
|
11387
|
-
color: '#d0d5dd',
|
|
11388
|
-
'&.Mui-checked': {
|
|
11389
|
-
color: accentColor
|
|
11390
|
-
}
|
|
11391
|
-
}
|
|
11392
|
-
}),
|
|
11393
|
-
label: /*#__PURE__*/jsx(Typography, {
|
|
11394
|
-
sx: {
|
|
11395
|
-
fontSize: 18
|
|
11396
|
-
},
|
|
11397
|
-
children: t('inputFieldsDialog.other', 'Other')
|
|
11398
|
-
}),
|
|
11399
|
-
sx: {
|
|
11400
|
-
m: 0,
|
|
11401
|
-
border: '1px solid',
|
|
11402
|
-
borderColor: otherSelected ? accentColor : '#d0d5dd',
|
|
11403
|
-
borderRadius: otherSelected ? '8px 8px 0 0' : '8px',
|
|
11404
|
-
borderBottom: otherSelected ? 'none' : undefined,
|
|
11405
|
-
px: 2,
|
|
11406
|
-
py: 0.75,
|
|
11407
|
-
transition: 'border-color 0.15s ease, border-radius 0.15s ease',
|
|
11408
|
-
backgroundColor: otherSelected ? 'rgba(13,131,205,0.04)' : 'transparent',
|
|
11409
|
-
'&:hover': {
|
|
11410
|
-
borderColor: accentColor,
|
|
11411
|
-
backgroundColor: 'rgba(13,131,205,0.03)'
|
|
11412
|
-
}
|
|
11413
|
-
}
|
|
11414
11449
|
})]
|
|
11415
|
-
})
|
|
11416
|
-
autoFocus: true,
|
|
11417
|
-
fullWidth: true,
|
|
11418
|
-
value: customRadioValue,
|
|
11419
|
-
onChange: function onChange(e) {
|
|
11420
|
-
return setCustomRadioValue(e.target.value);
|
|
11421
|
-
},
|
|
11422
|
-
onKeyDown: function onKeyDown(e) {
|
|
11423
|
-
if (e.key === 'Enter' && customRadioValue.trim()) handleSubmit();
|
|
11424
|
-
},
|
|
11425
|
-
placeholder: t('inputFieldsDialog.otherPlaceholder', 'Type your answer…'),
|
|
11426
|
-
sx: {
|
|
11427
|
-
'& .MuiOutlinedInput-root': {
|
|
11428
|
-
borderRadius: '0 0 8px 8px',
|
|
11429
|
-
fontSize: 18,
|
|
11430
|
-
'& fieldset': {
|
|
11431
|
-
borderColor: accentColor,
|
|
11432
|
-
borderTopColor: 'transparent'
|
|
11433
|
-
},
|
|
11434
|
-
'&:hover fieldset': {
|
|
11435
|
-
borderColor: accentColor,
|
|
11436
|
-
borderTopColor: 'transparent'
|
|
11437
|
-
},
|
|
11438
|
-
'&.Mui-focused fieldset': {
|
|
11439
|
-
borderColor: accentColor,
|
|
11440
|
-
borderTopColor: 'transparent'
|
|
11441
|
-
}
|
|
11442
|
-
}
|
|
11443
|
-
}
|
|
11444
|
-
})]
|
|
11450
|
+
})
|
|
11445
11451
|
});
|
|
11446
11452
|
}
|
|
11447
11453
|
case 'list':
|