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