@micromag/fields 0.3.798 → 0.3.801

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/es/index.js CHANGED
@@ -20,6 +20,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
20
20
  import { createNullableOnChange, isMessage, getFileName, getStyleFromBox, getStyleFromColor, getFontFamilyFromFont, getGridLayoutName, getShadowCoords, getColorAsString, getStyleFromLink, getStyleFromHighlight, getStyleFromText } from '@micromag/core/utils';
21
21
  import { faAngleRight } from '@fortawesome/free-solid-svg-icons/faAngleRight';
22
22
  import { faSlidersH } from '@fortawesome/free-solid-svg-icons/faSlidersH';
23
+ import Switch from 'rc-switch';
23
24
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
24
25
  import { faBars } from '@fortawesome/free-solid-svg-icons/faBars';
25
26
  import { faCheck } from '@fortawesome/free-solid-svg-icons/faCheck';
@@ -55,7 +56,6 @@ import Select from 'react-select';
55
56
  import { CKEditor } from '@ckeditor/ckeditor5-react';
56
57
  import { getCSRFHeaders } from '@folklore/fetch';
57
58
  import { useUppyConfig } from '@panneau/uppy';
58
- import Switch from 'rc-switch';
59
59
  import AsyncCreatableSelect from 'react-select/async-creatable';
60
60
  import { faCircle } from '@fortawesome/free-solid-svg-icons/faCircle';
61
61
  import { faTimes } from '@fortawesome/free-solid-svg-icons/faTimes';
@@ -172,6 +172,32 @@ var alignment = {
172
172
  fields: [alignHorizontal, alignVertical]
173
173
  };
174
174
 
175
+ var alternative = {
176
+ id: 'alternative',
177
+ component: 'alternative'
178
+ };
179
+
180
+ var alternatives = {
181
+ id: 'alternatives',
182
+ isList: true,
183
+ fields: [{
184
+ name: 'audio',
185
+ type: 'audio-element',
186
+ withToggle: true,
187
+ label: defineMessage({
188
+ id: "hzt68m",
189
+ defaultMessage: [{
190
+ "type": 0,
191
+ "value": "Audio"
192
+ }]
193
+ }),
194
+ defaultValue: {
195
+ autoPlay: true,
196
+ withControls: true
197
+ }
198
+ }]
199
+ };
200
+
175
201
  var answer = {
176
202
  id: 'answer',
177
203
  component: 'field-with-form',
@@ -2880,6 +2906,8 @@ var allFields = /*#__PURE__*/Object.freeze({
2880
2906
  alignHorizontal: alignHorizontal,
2881
2907
  alignVertical: alignVertical,
2882
2908
  alignment: alignment,
2909
+ alternative: alternative,
2910
+ alternatives: alternatives,
2883
2911
  answer: answer,
2884
2912
  answers: answers,
2885
2913
  audio: audio,
@@ -3000,9 +3028,9 @@ var getSelectOptions = function getSelectOptions(options) {
3000
3028
  });
3001
3029
  };
3002
3030
 
3003
- var styles$J = {"container":"micromag-fields-radios-container","item":"micromag-fields-radios-item"};
3031
+ var styles$K = {"container":"micromag-fields-radios-container","item":"micromag-fields-radios-item"};
3004
3032
 
3005
- var propTypes$1A = {
3033
+ var propTypes$1B = {
3006
3034
  name: PropTypes.string,
3007
3035
  value: PropTypes.string,
3008
3036
  options: PropTypes$1.selectOptions,
@@ -3013,7 +3041,7 @@ var propTypes$1A = {
3013
3041
  onChange: PropTypes.func,
3014
3042
  uncheckable: PropTypes.bool
3015
3043
  };
3016
- var defaultProps$1A = {
3044
+ var defaultProps$1B = {
3017
3045
  name: null,
3018
3046
  value: null,
3019
3047
  options: [],
@@ -3038,14 +3066,14 @@ var Radios = function Radios(_ref) {
3038
3066
  return getSelectOptions(options);
3039
3067
  }, [options]);
3040
3068
  return /*#__PURE__*/React.createElement("div", {
3041
- className: classNames(['btn-group', 'btn-group-toggle', styles$J.container, _defineProperty({}, className, className !== null)]),
3069
+ className: classNames(['btn-group', 'btn-group-toggle', styles$K.container, _defineProperty({}, className, className !== null)]),
3042
3070
  "data-toggle": "buttons"
3043
3071
  }, finalOptions.map(function (_ref3, index) {
3044
3072
  var optionValue = _ref3.value,
3045
3073
  label = _ref3.label;
3046
3074
  return /*#__PURE__*/React.createElement("label", {
3047
3075
  key: "radio-".concat(optionValue, "-").concat(index + 1),
3048
- className: classNames(['btn', styles$J.item, withBackground ? 'btn-secondary' : 'btn-outline-secondary', _defineProperty(_defineProperty({
3076
+ className: classNames(['btn', styles$K.item, withBackground ? 'btn-secondary' : 'btn-outline-secondary', _defineProperty(_defineProperty({
3049
3077
  active: optionValue === value
3050
3078
  }, activeClassName, activeClassName !== null && optionValue === value), buttonClassName, buttonClassName !== null)])
3051
3079
  }, /*#__PURE__*/React.createElement("input", {
@@ -3068,18 +3096,18 @@ var Radios = function Radios(_ref) {
3068
3096
  }), ' ', /*#__PURE__*/React.createElement(Label, null, label));
3069
3097
  }));
3070
3098
  };
3071
- Radios.propTypes = propTypes$1A;
3072
- Radios.defaultProps = defaultProps$1A;
3099
+ Radios.propTypes = propTypes$1B;
3100
+ Radios.defaultProps = defaultProps$1B;
3073
3101
 
3074
- var styles$I = {"container":"micromag-fields-border-style-container","button":"micromag-fields-border-style-button","type":"micromag-fields-border-style-type","borders":"micromag-fields-border-style-borders"};
3102
+ var styles$J = {"container":"micromag-fields-border-style-container","button":"micromag-fields-border-style-button","type":"micromag-fields-border-style-type","borders":"micromag-fields-border-style-borders"};
3075
3103
 
3076
- var propTypes$1z = {
3104
+ var propTypes$1A = {
3077
3105
  types: PropTypes.arrayOf(PropTypes.string),
3078
3106
  value: PropTypes.string,
3079
3107
  className: PropTypes.string,
3080
3108
  onChange: PropTypes.func
3081
3109
  };
3082
- var defaultProps$1z = {
3110
+ var defaultProps$1A = {
3083
3111
  types: [{
3084
3112
  name: '300x200',
3085
3113
  width: 300,
@@ -3107,7 +3135,7 @@ var AdFormatField = function AdFormatField(_ref) {
3107
3135
  return {
3108
3136
  value: type,
3109
3137
  label: /*#__PURE__*/React.createElement("div", {
3110
- className: styles$I.type
3138
+ className: styles$J.type
3111
3139
  }, /*#__PURE__*/React.createElement("div", {
3112
3140
  style: {
3113
3141
  width: type.width / 10,
@@ -3118,22 +3146,22 @@ var AdFormatField = function AdFormatField(_ref) {
3118
3146
  };
3119
3147
  }),
3120
3148
  value: value || (types ? types[0] : null),
3121
- className: classNames([styles$I.container, _defineProperty({}, className, className !== null)]),
3122
- buttonClassName: styles$I.button,
3149
+ className: classNames([styles$J.container, _defineProperty({}, className, className !== null)]),
3150
+ buttonClassName: styles$J.button,
3123
3151
  onChange: onChange
3124
3152
  });
3125
3153
  };
3126
- AdFormatField.propTypes = propTypes$1z;
3127
- AdFormatField.defaultProps = defaultProps$1z;
3154
+ AdFormatField.propTypes = propTypes$1A;
3155
+ AdFormatField.defaultProps = defaultProps$1A;
3128
3156
 
3129
- var styles$H = {"icon":"micromag-fields-align-horizontal-icon","left":"micromag-fields-align-horizontal-left","middle":"micromag-fields-align-horizontal-middle","right":"micromag-fields-align-horizontal-right"};
3157
+ var styles$I = {"icon":"micromag-fields-align-horizontal-icon","left":"micromag-fields-align-horizontal-left","middle":"micromag-fields-align-horizontal-middle","right":"micromag-fields-align-horizontal-right"};
3130
3158
 
3131
- var propTypes$1y = {
3159
+ var propTypes$1z = {
3132
3160
  value: PropTypes.oneOf(['left', 'middle', 'right']),
3133
3161
  className: PropTypes.string,
3134
3162
  onChange: PropTypes.func
3135
3163
  };
3136
- var defaultProps$1y = {
3164
+ var defaultProps$1z = {
3137
3165
  value: null,
3138
3166
  className: null,
3139
3167
  onChange: null
@@ -3143,7 +3171,7 @@ var AlignHorizontal = function AlignHorizontal(_ref) {
3143
3171
  className = _ref.className,
3144
3172
  onChange = _ref.onChange;
3145
3173
  return /*#__PURE__*/React.createElement("div", {
3146
- className: classNames([styles$H.container, _defineProperty({}, className, className !== null)])
3174
+ className: classNames([styles$I.container, _defineProperty({}, className, className !== null)])
3147
3175
  }, /*#__PURE__*/React.createElement("div", {
3148
3176
  className: classNames(['d-flex', 'align-items-center'])
3149
3177
  }, /*#__PURE__*/React.createElement(Radios, {
@@ -3151,20 +3179,20 @@ var AlignHorizontal = function AlignHorizontal(_ref) {
3151
3179
  return {
3152
3180
  value: type,
3153
3181
  label: /*#__PURE__*/React.createElement("div", {
3154
- className: classNames([styles$H.icon, styles$H[type]])
3182
+ className: classNames([styles$I.icon, styles$I[type]])
3155
3183
  }, /*#__PURE__*/React.createElement("div", null), /*#__PURE__*/React.createElement("div", null), /*#__PURE__*/React.createElement("div", null), /*#__PURE__*/React.createElement("div", null))
3156
3184
  };
3157
3185
  }),
3158
3186
  value: value !== null ? value : null,
3159
- className: classNames([styles$H.container, _defineProperty({}, className, className !== null)]),
3160
- buttonClassName: styles$H.button,
3187
+ className: classNames([styles$I.container, _defineProperty({}, className, className !== null)]),
3188
+ buttonClassName: styles$I.button,
3161
3189
  onChange: onChange
3162
3190
  })));
3163
3191
  };
3164
- AlignHorizontal.propTypes = propTypes$1y;
3165
- AlignHorizontal.defaultProps = defaultProps$1y;
3192
+ AlignHorizontal.propTypes = propTypes$1z;
3193
+ AlignHorizontal.defaultProps = defaultProps$1z;
3166
3194
 
3167
- var styles$G = {};
3195
+ var styles$H = {};
3168
3196
 
3169
3197
  var icons$1 = {
3170
3198
  top: function top(props) {
@@ -3177,13 +3205,13 @@ var icons$1 = {
3177
3205
  return /*#__PURE__*/React.createElement("div", props, "bottom");
3178
3206
  }
3179
3207
  };
3180
- var propTypes$1x = {
3208
+ var propTypes$1y = {
3181
3209
  value: PropTypes.oneOf(['top', 'bottom', 'middle']),
3182
3210
  defaultValue: PropTypes.oneOf(['top', 'bottom', 'middle']),
3183
3211
  className: PropTypes.string,
3184
3212
  onChange: PropTypes.func
3185
3213
  };
3186
- var defaultProps$1x = {
3214
+ var defaultProps$1y = {
3187
3215
  value: null,
3188
3216
  defaultValue: null,
3189
3217
  className: null,
@@ -3199,7 +3227,7 @@ var AlignVertical = function AlignVertical(_ref) {
3199
3227
  onChange(newVal);
3200
3228
  }, [finalValue]);
3201
3229
  return /*#__PURE__*/React.createElement("div", {
3202
- className: classNames([styles$G.container, _defineProperty({}, className, className !== null)])
3230
+ className: classNames([styles$H.container, _defineProperty({}, className, className !== null)])
3203
3231
  }, /*#__PURE__*/React.createElement("div", {
3204
3232
  className: classNames(['d-flex', 'align-items-center', 'mb-2'])
3205
3233
  }, /*#__PURE__*/React.createElement(Radios, {
@@ -3208,41 +3236,41 @@ var AlignVertical = function AlignVertical(_ref) {
3208
3236
  return {
3209
3237
  value: type,
3210
3238
  label: /*#__PURE__*/React.createElement("div", {
3211
- className: styles$G.type
3239
+ className: styles$H.type
3212
3240
  }, /*#__PURE__*/React.createElement(Icon, {
3213
- className: styles$G.icon
3241
+ className: styles$H.icon
3214
3242
  }))
3215
3243
  };
3216
3244
  }),
3217
3245
  value: finalValue !== null ? finalValue : null,
3218
- className: classNames([styles$G.container, _defineProperty({}, className, className !== null)]),
3219
- buttonClassName: styles$G.button,
3246
+ className: classNames([styles$H.container, _defineProperty({}, className, className !== null)]),
3247
+ buttonClassName: styles$H.button,
3220
3248
  onChange: onAlignChange
3221
3249
  })));
3222
3250
  };
3223
- AlignVertical.propTypes = propTypes$1x;
3224
- AlignVertical.defaultProps = defaultProps$1x;
3251
+ AlignVertical.propTypes = propTypes$1y;
3252
+ AlignVertical.defaultProps = defaultProps$1y;
3225
3253
 
3226
- var styles$F = {"label":"micromag-fields-alignment-label"};
3254
+ var styles$G = {"label":"micromag-fields-alignment-label"};
3227
3255
 
3228
3256
  var icons = {
3229
3257
  horizontal: {
3230
3258
  left: function left(props) {
3231
3259
  return /*#__PURE__*/React.createElement("div", props, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
3232
3260
  icon: faArrowLeft,
3233
- className: styles$F.icon
3261
+ className: styles$G.icon
3234
3262
  }));
3235
3263
  },
3236
3264
  middle: function middle(props) {
3237
3265
  return /*#__PURE__*/React.createElement("div", props, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
3238
3266
  icon: faDotCircle,
3239
- className: styles$F.icon
3267
+ className: styles$G.icon
3240
3268
  }));
3241
3269
  },
3242
3270
  right: function right(props) {
3243
3271
  return /*#__PURE__*/React.createElement("div", props, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
3244
3272
  icon: faArrowRight,
3245
- className: styles$F.icon
3273
+ className: styles$G.icon
3246
3274
  }));
3247
3275
  }
3248
3276
  },
@@ -3250,24 +3278,24 @@ var icons = {
3250
3278
  top: function top(props) {
3251
3279
  return /*#__PURE__*/React.createElement("div", props, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
3252
3280
  icon: faArrowUp,
3253
- className: styles$F.icon
3281
+ className: styles$G.icon
3254
3282
  }));
3255
3283
  },
3256
3284
  middle: function middle(props) {
3257
3285
  return /*#__PURE__*/React.createElement("div", props, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
3258
3286
  icon: faDotCircle,
3259
- className: styles$F.icon
3287
+ className: styles$G.icon
3260
3288
  }));
3261
3289
  },
3262
3290
  bottom: function bottom(props) {
3263
3291
  return /*#__PURE__*/React.createElement("div", props, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
3264
3292
  icon: faArrowDown,
3265
- className: styles$F.icon
3293
+ className: styles$G.icon
3266
3294
  }));
3267
3295
  }
3268
3296
  }
3269
3297
  };
3270
- var propTypes$1w = {
3298
+ var propTypes$1x = {
3271
3299
  alignment: PropTypes.shape({
3272
3300
  horizontal: PropTypes.oneOf(['left', 'right', 'middle']),
3273
3301
  vertical: PropTypes.oneOf(['top', 'bottom', 'middle'])
@@ -3279,7 +3307,7 @@ var propTypes$1w = {
3279
3307
  className: PropTypes.string,
3280
3308
  onChange: PropTypes.func
3281
3309
  };
3282
- var defaultProps$1w = {
3310
+ var defaultProps$1x = {
3283
3311
  alignment: {
3284
3312
  horizontal: 'middle',
3285
3313
  vertical: 'middle'
@@ -3318,13 +3346,13 @@ var Alignment = function Alignment(_ref) {
3318
3346
  onChange(nextValue);
3319
3347
  }, [value, onChange]);
3320
3348
  return /*#__PURE__*/React.createElement("div", {
3321
- className: classNames([styles$F.container, _defineProperty({}, className, className !== null)])
3349
+ className: classNames([styles$G.container, _defineProperty({}, className, className !== null)])
3322
3350
  }, Object.keys(alignment).map(function (axis) {
3323
3351
  return /*#__PURE__*/React.createElement("div", {
3324
3352
  key: axis,
3325
3353
  className: classNames(['d-flex', 'align-items-center', 'mb-2'])
3326
3354
  }, /*#__PURE__*/React.createElement("small", {
3327
- className: styles$F.label
3355
+ className: styles$G.label
3328
3356
  }, axis === 'horizontal' ? /*#__PURE__*/React.createElement(FormattedMessage, {
3329
3357
  id: "xTJlyi",
3330
3358
  defaultMessage: [{
@@ -3343,29 +3371,29 @@ var Alignment = function Alignment(_ref) {
3343
3371
  return {
3344
3372
  value: type,
3345
3373
  label: /*#__PURE__*/React.createElement("div", {
3346
- className: styles$F.type
3374
+ className: styles$G.type
3347
3375
  }, /*#__PURE__*/React.createElement(Icon, {
3348
- className: styles$F.icon
3376
+ className: styles$G.icon
3349
3377
  }))
3350
3378
  };
3351
3379
  }),
3352
3380
  value: value !== null ? value[axis] : null,
3353
- className: classNames([styles$F.container, _defineProperty({}, className, className !== null)]),
3354
- buttonClassName: styles$F.button,
3381
+ className: classNames([styles$G.container, _defineProperty({}, className, className !== null)]),
3382
+ buttonClassName: styles$G.button,
3355
3383
  onChange: axis === 'horizontal' ? onHorizontalAlignChange : onVerticalAlignChange
3356
3384
  }));
3357
3385
  }));
3358
3386
  };
3359
- Alignment.propTypes = propTypes$1w;
3360
- Alignment.defaultProps = defaultProps$1w;
3387
+ Alignment.propTypes = propTypes$1x;
3388
+ Alignment.defaultProps = defaultProps$1x;
3361
3389
 
3362
- var styles$E = {"container":"micromag-fields-field-errors-container","error":"micromag-fields-field-errors-error"};
3390
+ var styles$F = {"container":"micromag-fields-field-errors-container","error":"micromag-fields-field-errors-error"};
3363
3391
 
3364
- var propTypes$1v = {
3392
+ var propTypes$1w = {
3365
3393
  errors: PropTypes$1.errors,
3366
3394
  className: PropTypes.string
3367
3395
  };
3368
- var defaultProps$1v = {
3396
+ var defaultProps$1w = {
3369
3397
  errors: null,
3370
3398
  className: null
3371
3399
  };
@@ -3373,23 +3401,23 @@ var FieldErrors$1 = function FieldErrors(_ref) {
3373
3401
  var errors = _ref.errors,
3374
3402
  className = _ref.className;
3375
3403
  return errors !== null && errors.length > 0 ? /*#__PURE__*/React.createElement("div", {
3376
- className: classNames([styles$E.container, _defineProperty({}, className, className !== null)])
3404
+ className: classNames([styles$F.container, _defineProperty({}, className, className !== null)])
3377
3405
  }, errors.map(function (error) {
3378
3406
  return /*#__PURE__*/React.createElement("div", {
3379
3407
  key: "error-".concat(error),
3380
- className: classNames(['invalid-feedback', styles$E.error])
3408
+ className: classNames(['invalid-feedback', styles$F.error])
3381
3409
  }, error);
3382
3410
  })) : null;
3383
3411
  };
3384
- FieldErrors$1.propTypes = propTypes$1v;
3385
- FieldErrors$1.defaultProps = defaultProps$1v;
3412
+ FieldErrors$1.propTypes = propTypes$1w;
3413
+ FieldErrors$1.defaultProps = defaultProps$1w;
3386
3414
 
3387
- var propTypes$1u = {
3415
+ var propTypes$1v = {
3388
3416
  children: PropTypes$1.label,
3389
3417
  muted: PropTypes.bool,
3390
3418
  className: PropTypes.string
3391
3419
  };
3392
- var defaultProps$1u = {
3420
+ var defaultProps$1v = {
3393
3421
  children: null,
3394
3422
  muted: true,
3395
3423
  className: null
@@ -3405,8 +3433,39 @@ var FieldErrors = function FieldErrors(_ref) {
3405
3433
  }, className, className !== null)])
3406
3434
  }, /*#__PURE__*/React.createElement(Label, null, children));
3407
3435
  };
3408
- FieldErrors.propTypes = propTypes$1u;
3409
- FieldErrors.defaultProps = defaultProps$1u;
3436
+ FieldErrors.propTypes = propTypes$1v;
3437
+ FieldErrors.defaultProps = defaultProps$1v;
3438
+
3439
+ var styles$E = {"container":"micromag-fields-toggle-container"};
3440
+
3441
+ var propTypes$1u = {
3442
+ value: PropTypes.bool,
3443
+ defaultValue: PropTypes.bool,
3444
+ className: PropTypes.string,
3445
+ onChange: PropTypes.func
3446
+ };
3447
+ var defaultProps$1u = {
3448
+ value: null,
3449
+ defaultValue: null,
3450
+ className: null,
3451
+ onChange: null
3452
+ };
3453
+ var ToggleField = function ToggleField(_ref) {
3454
+ var value = _ref.value,
3455
+ defaultValue = _ref.defaultValue,
3456
+ className = _ref.className,
3457
+ onChange = _ref.onChange;
3458
+ var finalValue = value === null && (defaultValue === true || defaultValue === 'true') ? true : value;
3459
+ return /*#__PURE__*/React.createElement("div", {
3460
+ className: classNames([styles$E.container, _defineProperty({}, className, className !== null)])
3461
+ }, /*#__PURE__*/React.createElement(Switch, {
3462
+ checked: finalValue !== null ? finalValue : false,
3463
+ onChange: onChange
3464
+ }));
3465
+ };
3466
+ ToggleField.propTypes = propTypes$1u;
3467
+ ToggleField.defaultProps = defaultProps$1u;
3468
+ ToggleField.isHorizontal = true;
3410
3469
 
3411
3470
  var styles$D = {"resetButton":"micromag-fields-field-row-resetButton","colLabel":"micromag-fields-field-row-colLabel","colValue":"micromag-fields-field-row-colValue","colButtonWidth":"micromag-fields-field-row-colButtonWidth","colMinWidth":"micromag-fields-field-row-colMinWidth","settingsButton":"micromag-fields-field-row-settingsButton"};
3412
3471
 
@@ -3414,6 +3473,10 @@ var propTypes$1t = {
3414
3473
  label: PropTypes$1.label,
3415
3474
  errors: PropTypes$1.errors,
3416
3475
  help: PropTypes$1.label,
3476
+ value: PropTypes.any,
3477
+ // eslint-disable-line react/forbid-prop-types
3478
+ defaultValue: PropTypes.any,
3479
+ // eslint-disable-line react/forbid-prop-types
3417
3480
  children: PropTypes.node,
3418
3481
  isSection: PropTypes.bool,
3419
3482
  isHorizontal: PropTypes.bool,
@@ -3421,12 +3484,14 @@ var propTypes$1t = {
3421
3484
  withoutLabel: PropTypes.bool,
3422
3485
  withoutCaret: PropTypes.bool,
3423
3486
  withSettings: PropTypes.bool,
3487
+ withToggle: PropTypes.bool,
3424
3488
  withForm: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
3425
3489
  withValue: PropTypes.bool,
3426
3490
  buttonTheme: PropTypes$1.buttonTheme,
3427
3491
  buttonOutline: PropTypes.bool,
3428
3492
  gotoSettings: PropTypes.func,
3429
3493
  gotoForm: PropTypes.func,
3494
+ onChange: PropTypes.func,
3430
3495
  className: PropTypes.string,
3431
3496
  labelClassName: PropTypes.string,
3432
3497
  buttonClassName: PropTypes.string
@@ -3436,18 +3501,22 @@ var defaultProps$1t = {
3436
3501
  errors: null,
3437
3502
  help: null,
3438
3503
  children: null,
3504
+ value: null,
3505
+ defaultValue: null,
3439
3506
  isSection: false,
3440
3507
  isHorizontal: false,
3441
3508
  isListItem: false,
3442
3509
  withoutLabel: false,
3443
3510
  withoutCaret: false,
3444
3511
  withSettings: false,
3512
+ withToggle: false,
3445
3513
  withForm: false,
3446
3514
  withValue: false,
3447
3515
  buttonTheme: null,
3448
3516
  buttonOutline: false,
3449
3517
  gotoSettings: null,
3450
3518
  gotoForm: null,
3519
+ onChange: null,
3451
3520
  className: null,
3452
3521
  labelClassName: null,
3453
3522
  buttonClassName: null
@@ -3457,6 +3526,8 @@ var FieldRow = function FieldRow(_ref) {
3457
3526
  var label = _ref.label,
3458
3527
  errors = _ref.errors,
3459
3528
  help = _ref.help,
3529
+ value = _ref.value,
3530
+ defaultValue = _ref.defaultValue,
3460
3531
  children = _ref.children,
3461
3532
  isSection = _ref.isSection,
3462
3533
  isHorizontal = _ref.isHorizontal,
@@ -3464,12 +3535,14 @@ var FieldRow = function FieldRow(_ref) {
3464
3535
  withoutLabel = _ref.withoutLabel,
3465
3536
  withoutCaret = _ref.withoutCaret,
3466
3537
  withSettings = _ref.withSettings,
3538
+ withToggle = _ref.withToggle,
3467
3539
  withForm = _ref.withForm,
3468
3540
  withValue = _ref.withValue,
3469
3541
  buttonTheme = _ref.buttonTheme,
3470
3542
  buttonOutline = _ref.buttonOutline,
3471
3543
  gotoForm = _ref.gotoForm,
3472
3544
  gotoSettings = _ref.gotoSettings,
3545
+ onChange = _ref.onChange,
3473
3546
  className = _ref.className,
3474
3547
  labelClassName = _ref.labelClassName,
3475
3548
  buttonClassName = _ref.buttonClassName;
@@ -3494,6 +3567,7 @@ var FieldRow = function FieldRow(_ref) {
3494
3567
  errors: errors
3495
3568
  }) : null;
3496
3569
  var hasIndicationsUnder = helpElement !== null || errorsElement !== null;
3570
+ var toggled = !withToggle || value !== null;
3497
3571
  var labelElement = label !== null ? /*#__PURE__*/React.createElement("label", {
3498
3572
  className: classNames((_classNames = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_classNames, styles$D.colLabel, isHorizontal), 'col-form-label', isHorizontal || withSettings), 'form-label', !isHorizontal && !withSettings), 'col-auto', isHorizontal), "col", !isHorizontal && withSettings), 'py-0', isHorizontal), 'pt-2', isHorizontal && hasIndicationsUnder), 'me-1', isHorizontal), 'align-self-center', isHorizontal && !hasIndicationsUnder), 'fw-normal', !isSection), _defineProperty(_defineProperty(_classNames, 'fw-bold', isSection), labelClassName, labelClassName !== null)))
3499
3573
  }, /*#__PURE__*/React.createElement(Label, null, label)) : null;
@@ -3508,7 +3582,7 @@ var FieldRow = function FieldRow(_ref) {
3508
3582
  }, labelElement, /*#__PURE__*/React.createElement("span", {
3509
3583
  className: classNames(['col', styles$D.colValue, 'align-self-center', _defineProperty(_defineProperty({}, styles$D.colMinWidth, isListItem), styles$D.colButtonWidth, isClickable && buttonTheme !== null)])
3510
3584
  }, /*#__PURE__*/React.createElement("span", {
3511
- className: classNames(['d-flex', 'justify-content-end', 'me-1'])
3585
+ className: classNames(['d-flex', 'justify-content-end'])
3512
3586
  }, children), helpElement !== null || errorsElement !== null ? /*#__PURE__*/React.createElement("span", {
3513
3587
  className: classNames(['d-flex', 'mt-1',
3514
3588
  // 'w-100',
@@ -3522,11 +3596,19 @@ var FieldRow = function FieldRow(_ref) {
3522
3596
  className: containerClassName
3523
3597
  }, rowInner);
3524
3598
  }
3525
- return /*#__PURE__*/React.createElement("div", {
3526
- className: containerClassName
3527
- }, withLabel ? withSettings ? /*#__PURE__*/React.createElement("div", {
3528
- className: classNames(['row', 'align-items-center', 'gx-1'])
3529
- }, labelElement, /*#__PURE__*/React.createElement("div", {
3599
+ var onToggleChange = useCallback(function (newValue) {
3600
+ if (onChange !== null) {
3601
+ onChange(newValue ? defaultValue || {} : null);
3602
+ }
3603
+ }, [withToggle, onChange, defaultValue]);
3604
+ var toggleElement = withToggle ? /*#__PURE__*/React.createElement("div", {
3605
+ className: classNames(['col-auto'])
3606
+ }, /*#__PURE__*/React.createElement(ToggleField, {
3607
+ value: toggled,
3608
+ onChange: onToggleChange,
3609
+ className: "ms-1"
3610
+ })) : null;
3611
+ var settingsElement = toggled && withSettings ? /*#__PURE__*/React.createElement("div", {
3530
3612
  className: classNames(['col-auto'])
3531
3613
  }, /*#__PURE__*/React.createElement(Button, {
3532
3614
  className: styles$D.settingsButton,
@@ -3535,7 +3617,12 @@ var FieldRow = function FieldRow(_ref) {
3535
3617
  disabled: !withValue
3536
3618
  }, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
3537
3619
  icon: faSlidersH
3538
- })))) : labelElement : null, isClickable ? /*#__PURE__*/React.createElement(Button, {
3620
+ }))) : null;
3621
+ return /*#__PURE__*/React.createElement("div", {
3622
+ className: containerClassName
3623
+ }, withLabel && (settingsElement !== null || toggleElement !== null) ? /*#__PURE__*/React.createElement("div", {
3624
+ className: classNames(['row', 'align-items-center', 'gx-1'])
3625
+ }, labelElement, settingsElement, toggleElement) : withLabel ? labelElement : null, isClickable ? /*#__PURE__*/React.createElement(Button, {
3539
3626
  className: classNames([styles$D.arrow, 'd-block', 'w-100', 'px-2', _defineProperty({
3540
3627
  'bg-dark': buttonTheme === null
3541
3628
  }, buttonClassName, buttonClassName !== null)]),
@@ -3551,8 +3638,8 @@ var FieldRow = function FieldRow(_ref) {
3551
3638
  FieldRow.propTypes = propTypes$1t;
3552
3639
  FieldRow.defaultProps = defaultProps$1t;
3553
3640
 
3554
- var _excluded$B = ["name", "type", "component", "label", "help", "errors", "fields", "isHorizontal", "isSection", "isListItem", "withForm", "withModal", "value", "onChange", "gotoFieldForm", "closeFieldForm", "className", "labelClassName", "fieldClassName"],
3555
- _excluded2$3 = ["component", "fields", "settings", "withoutLabel", "withoutFieldRow", "withForm", "withModal", "isList", "canClear"];
3641
+ var _excluded$C = ["name", "type", "component", "label", "help", "errors", "fields", "isHorizontal", "isSection", "isListItem", "withForm", "withModal", "withToggle", "value", "onChange", "gotoFieldForm", "closeFieldForm", "className", "labelClassName", "fieldClassName"],
3642
+ _excluded2$3 = ["component", "fields", "settings", "withoutLabel", "withoutFieldRow", "withForm", "withModal", "isList", "canClear", "withToggle"];
3556
3643
  var propTypes$1s = {
3557
3644
  name: PropTypes.string,
3558
3645
  // .isRequired,
@@ -3610,6 +3697,7 @@ var Field = function Field(_ref) {
3610
3697
  isListItem = _ref.isListItem,
3611
3698
  providedWithForm = _ref.withForm,
3612
3699
  providedWithModal = _ref.withModal,
3700
+ providedWithToggle = _ref.withToggle,
3613
3701
  value = _ref.value,
3614
3702
  onChange = _ref.onChange,
3615
3703
  gotoFieldForm = _ref.gotoFieldForm,
@@ -3617,7 +3705,7 @@ var Field = function Field(_ref) {
3617
3705
  className = _ref.className,
3618
3706
  labelClassName = _ref.labelClassName,
3619
3707
  fieldClassName = _ref.fieldClassName,
3620
- props = _objectWithoutProperties(_ref, _excluded$B);
3708
+ props = _objectWithoutProperties(_ref, _excluded$C);
3621
3709
  var fieldsManager = useFieldsManager();
3622
3710
  var FieldsComponent = fieldsManager.getComponent('fields');
3623
3711
  var _ref2 = (type !== null ? fieldsManager.getDefinition(type) || null : null) || {
@@ -3641,6 +3729,8 @@ var Field = function Field(_ref) {
3641
3729
  isList = _ref2$isList === void 0 ? false : _ref2$isList,
3642
3730
  _ref2$canClear = _ref2.canClear,
3643
3731
  canClear = _ref2$canClear === void 0 ? false : _ref2$canClear,
3732
+ _ref2$withToggle = _ref2.withToggle,
3733
+ withToggle = _ref2$withToggle === void 0 ? providedWithToggle : _ref2$withToggle,
3644
3734
  fieldProps = _objectWithoutProperties(_ref2, _excluded2$3);
3645
3735
  var FieldComponent = useFieldComponent(fieldComponent);
3646
3736
  var isFields = FieldComponent === FieldsComponent;
@@ -3662,7 +3752,7 @@ var Field = function Field(_ref) {
3662
3752
  var finalIsHorizontal = isHorizontal !== null ? isHorizontal : FieldComponent.isHorizontal || finalWithForm !== false && isListItem || finalWithModal !== false && isListItem || null;
3663
3753
  var finalWithoutLabel = withoutLabel || FieldComponent.withoutLabel || false;
3664
3754
  var finalWithSettings = settings !== null || typeof FieldComponent.withSettings !== 'undefined' && FieldComponent.withSettings || typeof FieldComponent.settingsComponent !== 'undefined' || false;
3665
- var fieldElement = /*#__PURE__*/React.createElement(FieldComponent, Object.assign({
3755
+ var fieldElement = !withToggle || value !== null ? /*#__PURE__*/React.createElement(FieldComponent, Object.assign({
3666
3756
  isHorizontal: finalIsHorizontal && !isFields,
3667
3757
  isList: isList,
3668
3758
  canClear: canClear,
@@ -3678,8 +3768,10 @@ var Field = function Field(_ref) {
3678
3768
  onChange: onChange,
3679
3769
  gotoFieldForm: gotoFieldForm,
3680
3770
  gotoForm: gotoForm
3681
- }));
3771
+ })) : null;
3682
3772
  return !withoutFieldRow ? /*#__PURE__*/React.createElement(FieldRow, Object.assign({}, props, fieldProps, {
3773
+ value: value,
3774
+ onChange: onChange,
3683
3775
  label: label,
3684
3776
  errors: errors,
3685
3777
  help: help,
@@ -3688,6 +3780,7 @@ var Field = function Field(_ref) {
3688
3780
  isListItem: isListItem,
3689
3781
  withoutLabel: finalWithoutLabel,
3690
3782
  withSettings: finalWithSettings,
3783
+ withToggle: withToggle,
3691
3784
  withForm: finalWithForm,
3692
3785
  withValue: value !== null,
3693
3786
  gotoSettings: gotoSettings,
@@ -3909,10 +4002,63 @@ var Fields = function Fields(_ref) {
3909
4002
  Fields.propTypes = propTypes$1r;
3910
4003
  Fields.defaultProps = defaultProps$1r;
3911
4004
 
3912
- var styles$B = {"container":"micromag-fields-slide-container","noValue":"micromag-fields-slide-noValue","value":"micromag-fields-slide-value","panel":"micromag-fields-slide-panel"};
4005
+ var styles$B = {};
3913
4006
 
3914
- var _excluded$A = ["value", "isForm", "className"];
4007
+ var _excluded$B = ["value", "className", "onChange", "fields", "toggleLabel"];
3915
4008
  var propTypes$1q = {
4009
+ value: PropTypes$1.badge,
4010
+ className: PropTypes.string,
4011
+ onChange: PropTypes.func
4012
+ };
4013
+ var defaultProps$1q = {
4014
+ value: null,
4015
+ className: null,
4016
+ onChange: null
4017
+ };
4018
+ var Alternative = function Alternative(_ref) {
4019
+ var value = _ref.value,
4020
+ className = _ref.className,
4021
+ onChange = _ref.onChange,
4022
+ fields = _ref.fields,
4023
+ toggleLabel = _ref.toggleLabel,
4024
+ props = _objectWithoutProperties(_ref, _excluded$B);
4025
+ var finalFields = useMemo(function () {
4026
+ return [{
4027
+ name: 'active',
4028
+ type: 'toggle',
4029
+ isHorizontal: true,
4030
+ label: toggleLabel
4031
+ }].concat(_toConsumableArray(value !== null ? fields : []));
4032
+ }, [fields, value, toggleLabel]);
4033
+ console.log({
4034
+ value: value,
4035
+ fields: fields,
4036
+ finalFields: finalFields
4037
+ });
4038
+ var onUpdateValue = useCallback(function (newValue) {
4039
+ var _ref2 = newValue || {},
4040
+ _ref2$active = _ref2.active,
4041
+ nowActive = _ref2$active === void 0 ? false : _ref2$active;
4042
+ if (onChange !== null) {
4043
+ onChange(nowActive ? newValue : null);
4044
+ }
4045
+ }, [onChange]);
4046
+ return /*#__PURE__*/React.createElement(Fields, Object.assign({
4047
+ className: classNames([styles$B.container, _defineProperty({}, className, className !== null)]),
4048
+ fieldClassName: styles$B.field
4049
+ }, props, {
4050
+ fields: finalFields,
4051
+ value: value,
4052
+ onChange: onUpdateValue
4053
+ }));
4054
+ };
4055
+ Alternative.propTypes = propTypes$1q;
4056
+ Alternative.defaultProps = defaultProps$1q;
4057
+
4058
+ var styles$A = {"container":"micromag-fields-slide-container","noValue":"micromag-fields-slide-noValue","value":"micromag-fields-slide-value","panel":"micromag-fields-slide-panel"};
4059
+
4060
+ var _excluded$A = ["value", "isForm", "className"];
4061
+ var propTypes$1p = {
3916
4062
  value: PropTypes.shape({
3917
4063
  text: PropTypes.string,
3918
4064
  image: PropTypes$1.imageMedia
@@ -3920,7 +4066,7 @@ var propTypes$1q = {
3920
4066
  isForm: PropTypes.bool,
3921
4067
  className: PropTypes.string
3922
4068
  };
3923
- var defaultProps$1q = {
4069
+ var defaultProps$1p = {
3924
4070
  value: null,
3925
4071
  isForm: false,
3926
4072
  className: null
@@ -3934,7 +4080,7 @@ var AnswerField = function AnswerField(_ref) {
3934
4080
  _ref2$text = _ref2.text,
3935
4081
  text = _ref2$text === void 0 ? null : _ref2$text;
3936
4082
  return isForm ? /*#__PURE__*/React.createElement("div", {
3937
- className: classNames([styles$B.panel, _defineProperty({}, className, className !== null)])
4083
+ className: classNames([styles$A.panel, _defineProperty({}, className, className !== null)])
3938
4084
  }, /*#__PURE__*/React.createElement(Fields, Object.assign({
3939
4085
  className: classNames([{
3940
4086
  'p-2': isForm,
@@ -3943,18 +4089,18 @@ var AnswerField = function AnswerField(_ref) {
3943
4089
  }, props, {
3944
4090
  value: value
3945
4091
  }))) : /*#__PURE__*/React.createElement("div", {
3946
- className: classNames([styles$B.container, _defineProperty({}, className, className !== null)])
4092
+ className: classNames([styles$A.container, _defineProperty({}, className, className !== null)])
3947
4093
  }, text !== null ? /*#__PURE__*/React.createElement("span", {
3948
- className: styles$B.value
4094
+ className: styles$A.value
3949
4095
  }, text) : /*#__PURE__*/React.createElement("span", {
3950
- className: styles$B.noValue
4096
+ className: styles$A.noValue
3951
4097
  }, "Entrez une question..."));
3952
4098
  };
3953
- AnswerField.propTypes = propTypes$1q;
3954
- AnswerField.defaultProps = defaultProps$1q;
4099
+ AnswerField.propTypes = propTypes$1p;
4100
+ AnswerField.defaultProps = defaultProps$1p;
3955
4101
 
3956
4102
  var _excluded$z = ["name", "value", "getDefaultValue", "noItemLabel", "addItemLabel", "itemFieldLabel", "itemComponent", "itemsField", "itemsProps", "className", "withoutSort", "withoutAddItem", "withoutDeleteItem", "onChange", "isFieldForm", "gotoFieldForm", "closeFieldForm"];
3957
- var propTypes$1p = {
4103
+ var propTypes$1o = {
3958
4104
  name: PropTypes.string,
3959
4105
  value: PropTypes.arrayOf(PropTypes.object),
3960
4106
  // eslint-disable-line
@@ -3975,7 +4121,7 @@ var propTypes$1p = {
3975
4121
  closeFieldForm: PropTypes.func,
3976
4122
  onChange: PropTypes.func
3977
4123
  };
3978
- var defaultProps$1p = {
4124
+ var defaultProps$1o = {
3979
4125
  name: null,
3980
4126
  value: null,
3981
4127
  getDefaultValue: null,
@@ -4218,14 +4364,14 @@ var ItemsField = function ItemsField(_ref2) {
4218
4364
  }]
4219
4365
  })) : null));
4220
4366
  };
4221
- ItemsField.propTypes = propTypes$1p;
4222
- ItemsField.defaultProps = defaultProps$1p;
4367
+ ItemsField.propTypes = propTypes$1o;
4368
+ ItemsField.defaultProps = defaultProps$1o;
4223
4369
 
4224
4370
  /* eslint-disable react/jsx-props-no-spreading */
4225
- var propTypes$1o = {
4371
+ var propTypes$1n = {
4226
4372
  value: PropTypes$1.answers
4227
4373
  };
4228
- var defaultProps$1o = {
4374
+ var defaultProps$1n = {
4229
4375
  value: null
4230
4376
  };
4231
4377
  var AnswersField = function AnswersField(props) {
@@ -4247,10 +4393,10 @@ var AnswersField = function AnswersField(props) {
4247
4393
  itemComponent: AnswerField
4248
4394
  }, props));
4249
4395
  };
4250
- AnswersField.propTypes = propTypes$1o;
4251
- AnswersField.defaultProps = defaultProps$1o;
4396
+ AnswersField.propTypes = propTypes$1n;
4397
+ AnswersField.defaultProps = defaultProps$1n;
4252
4398
 
4253
- var styles$A = {"thumbnail":"micromag-fields-field-with-form-thumbnail","label":"micromag-fields-field-with-form-label","clearButton":"micromag-fields-field-with-form-clearButton"};
4399
+ var styles$z = {"thumbnail":"micromag-fields-field-with-form-thumbnail","label":"micromag-fields-field-with-form-label","clearButton":"micromag-fields-field-with-form-clearButton"};
4254
4400
 
4255
4401
  var _excluded$y = ["value", "isForm", "canClear", "noValueLabel", "label", "labelPath", "withTitleLabel", "thumbnail", "thumbnailPath", "isHorizontal", "className", "onChange", "closeForm", "children", "field"];
4256
4402
  function getItemLabel(item, labelPath, defaultValue) {
@@ -4261,7 +4407,7 @@ function getItemLabel(item, labelPath, defaultValue) {
4261
4407
  return path !== null ? get(item, path, defaultValue) : defaultValue;
4262
4408
  }, defaultValue);
4263
4409
  }
4264
- var propTypes$1n = {
4410
+ var propTypes$1m = {
4265
4411
  value: PropTypes.any,
4266
4412
  // eslint-disable-line
4267
4413
  isForm: PropTypes.bool,
@@ -4279,7 +4425,7 @@ var propTypes$1n = {
4279
4425
  onChange: PropTypes.func,
4280
4426
  closeForm: PropTypes.func
4281
4427
  };
4282
- var defaultProps$1n = {
4428
+ var defaultProps$1m = {
4283
4429
  value: null,
4284
4430
  isForm: false,
4285
4431
  canClear: false,
@@ -4352,7 +4498,7 @@ var FieldWithForm = function FieldWithForm(_ref) {
4352
4498
  } else if (thumbnailSrc !== null) {
4353
4499
  thumbElement = /*#__PURE__*/React.createElement("img", {
4354
4500
  src: thumbnailSrc,
4355
- className: styles$A.thumbnail,
4501
+ className: styles$z.thumbnail,
4356
4502
  alt: label
4357
4503
  });
4358
4504
  }
@@ -4375,14 +4521,14 @@ var FieldWithForm = function FieldWithForm(_ref) {
4375
4521
  }, !isHorizontal && thumbnailElement !== null ? /*#__PURE__*/React.createElement("span", {
4376
4522
  className: "col-auto"
4377
4523
  }, thumbnailElement) : null, /*#__PURE__*/React.createElement("span", {
4378
- className: classNames([styles$A.label, 'col', 'text-monospace', 'text-start', 'text-truncate', 'fw-bold', {
4524
+ className: classNames([styles$z.label, 'col', 'text-monospace', 'text-start', 'text-truncate', 'fw-bold', {
4379
4525
  'text-start': !isHorizontal,
4380
4526
  'text-end': isHorizontal
4381
4527
  }])
4382
4528
  }, labelElement), isHorizontal && thumbnailElement !== null ? /*#__PURE__*/React.createElement("span", {
4383
4529
  className: "col-auto ps-0"
4384
4530
  }, thumbnailElement) : null, value !== null && canClear ? /*#__PURE__*/React.createElement(ClearButton, {
4385
- className: styles$A.clearButton,
4531
+ className: styles$z.clearButton,
4386
4532
  onClick: onClear
4387
4533
  }) : null)) : /*#__PURE__*/React.createElement("span", {
4388
4534
  className: classNames(['col', 'text-body-secondary', {
@@ -4398,14 +4544,14 @@ var FieldWithForm = function FieldWithForm(_ref) {
4398
4544
  }]
4399
4545
  }))));
4400
4546
  };
4401
- FieldWithForm.propTypes = propTypes$1n;
4402
- FieldWithForm.defaultProps = defaultProps$1n;
4547
+ FieldWithForm.propTypes = propTypes$1m;
4548
+ FieldWithForm.defaultProps = defaultProps$1m;
4403
4549
  FieldWithForm.withForm = true;
4404
4550
 
4405
- var styles$z = {"clearButton":"micromag-fields-media-modal-clearButton","previewButton":"micromag-fields-media-modal-previewButton","dialog":"micromag-fields-media-modal-dialog","thumbnail":"micromag-fields-media-modal-thumbnail","dialogBody":"micromag-fields-media-modal-dialogBody","shaded":"micromag-fields-media-modal-shaded","small":"micromag-fields-media-modal-small"};
4551
+ var styles$y = {"clearButton":"micromag-fields-media-modal-clearButton","previewButton":"micromag-fields-media-modal-previewButton","dialog":"micromag-fields-media-modal-dialog","thumbnail":"micromag-fields-media-modal-thumbnail","dialogBody":"micromag-fields-media-modal-dialogBody","shaded":"micromag-fields-media-modal-shaded","small":"micromag-fields-media-modal-small"};
4406
4552
 
4407
4553
  var _excluded$x = ["title", "value", "type", "noValueLabel", "isHorizontal", "onChange", "onRequestClose", "multiple", "thumbnail", "thumbnailPath", "className", "buttonsClassName"];
4408
- var propTypes$1m = {
4554
+ var propTypes$1l = {
4409
4555
  title: PropTypes.string,
4410
4556
  value: PropTypes$1.media,
4411
4557
  type: PropTypes.string,
@@ -4419,7 +4565,7 @@ var propTypes$1m = {
4419
4565
  className: PropTypes.string,
4420
4566
  buttonsClassName: PropTypes.string
4421
4567
  };
4422
- var defaultProps$1m = {
4568
+ var defaultProps$1l = {
4423
4569
  title: null,
4424
4570
  value: null,
4425
4571
  type: null,
@@ -4475,7 +4621,7 @@ var MediaModal = function MediaModal(_ref) {
4475
4621
  } else if (thumbnailSrc !== null) {
4476
4622
  thumbnailElement = /*#__PURE__*/React.createElement("img", {
4477
4623
  src: thumbnailSrc,
4478
- className: styles$z.thumbnail,
4624
+ className: styles$y.thumbnail,
4479
4625
  alt: label
4480
4626
  });
4481
4627
  }
@@ -4592,12 +4738,12 @@ var MediaModal = function MediaModal(_ref) {
4592
4738
  className: "d-flex w-100 align-items-center justify-content-between mw-100 overflow-hidden"
4593
4739
  }, /*#__PURE__*/React.createElement("button", {
4594
4740
  type: "button",
4595
- className: classNames([styles$z.previewButton, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles$z.shaded, !isHorizontal), styles$z.small, isHorizontal), 'p-2', !isHorizontal), 'mx-auto', !isHorizontal), 'bg-dark', !isHorizontal), 'flex-grow-1', true)]),
4741
+ className: classNames([styles$y.previewButton, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles$y.shaded, !isHorizontal), styles$y.small, isHorizontal), 'p-2', !isHorizontal), 'mx-auto', !isHorizontal), 'bg-dark', !isHorizontal), 'flex-grow-1', true)]),
4596
4742
  onClick: onOpen
4597
4743
  }, /*#__PURE__*/React.createElement("span", {
4598
4744
  className: "row"
4599
4745
  }, /*#__PURE__*/React.createElement("span", {
4600
- className: classNames([styles$z.label, 'col', 'w-75', 'text-monospace', 'text-truncate', {
4746
+ className: classNames([styles$y.label, 'col', 'w-75', 'text-monospace', 'text-truncate', {
4601
4747
  'fw-bold': value !== null,
4602
4748
  'text-start': !isHorizontal,
4603
4749
  'text-end': isHorizontal
@@ -4616,12 +4762,12 @@ var MediaModal = function MediaModal(_ref) {
4616
4762
  }))), thumbnailElement !== null ? /*#__PURE__*/React.createElement("span", {
4617
4763
  className: "col-auto ps-0"
4618
4764
  }, thumbnailElement) : null)), value !== null ? /*#__PURE__*/React.createElement(ClearButton, {
4619
- className: classNames([styles$z.clearButton]),
4765
+ className: classNames([styles$y.clearButton]),
4620
4766
  onClick: onClearMedia
4621
4767
  }) : null)), modalOpen ? /*#__PURE__*/React.createElement(Modal, null, /*#__PURE__*/React.createElement(ModalDialog, {
4622
4768
  title: dialogTitle,
4623
- className: classNames([styles$z.dialog, _defineProperty({}, className, className)]),
4624
- bodyClassName: styles$z.dialogBody,
4769
+ className: classNames([styles$y.dialog, _defineProperty({}, className, className)]),
4770
+ bodyClassName: styles$y.dialogBody,
4625
4771
  size: "xl",
4626
4772
  onClose: onClose,
4627
4773
  buttons: !mediaFormOpen ? [{
@@ -4661,16 +4807,16 @@ var MediaModal = function MediaModal(_ref) {
4661
4807
  onMediaFormClose: onMediaFormClose
4662
4808
  }))) : null);
4663
4809
  };
4664
- MediaModal.propTypes = propTypes$1m;
4665
- MediaModal.defaultProps = defaultProps$1m;
4810
+ MediaModal.propTypes = propTypes$1l;
4811
+ MediaModal.defaultProps = defaultProps$1l;
4666
4812
  MediaModal.withModal = true;
4667
4813
 
4668
4814
  var _excluded$w = ["closeForm", "onChange"];
4669
- var propTypes$1l = {
4815
+ var propTypes$1k = {
4670
4816
  onChange: PropTypes.func,
4671
4817
  closeForm: PropTypes.func
4672
4818
  };
4673
- var defaultProps$1l = {
4819
+ var defaultProps$1k = {
4674
4820
  onChange: null,
4675
4821
  closeForm: null
4676
4822
  };
@@ -4691,15 +4837,15 @@ var MediaField = function MediaField(_ref) {
4691
4837
  onChange: closeOnChange
4692
4838
  }, props));
4693
4839
  };
4694
- MediaField.propTypes = propTypes$1l;
4695
- MediaField.defaultProps = defaultProps$1l;
4840
+ MediaField.propTypes = propTypes$1k;
4841
+ MediaField.defaultProps = defaultProps$1k;
4696
4842
  MediaField.withForm = true;
4697
4843
 
4698
4844
  /* eslint-disable react/jsx-props-no-spreading */
4699
- var propTypes$1k = {
4845
+ var propTypes$1j = {
4700
4846
  value: PropTypes$1.audioMedia
4701
4847
  };
4702
- var defaultProps$1k = {
4848
+ var defaultProps$1j = {
4703
4849
  value: null
4704
4850
  };
4705
4851
  var AudioField = function AudioField(props) {
@@ -4715,11 +4861,11 @@ var AudioField = function AudioField(props) {
4715
4861
  type: "audio"
4716
4862
  }));
4717
4863
  };
4718
- AudioField.propTypes = propTypes$1k;
4719
- AudioField.defaultProps = defaultProps$1k;
4864
+ AudioField.propTypes = propTypes$1j;
4865
+ AudioField.defaultProps = defaultProps$1j;
4720
4866
  AudioField.withForm = true;
4721
4867
 
4722
- var propTypes$1j = {
4868
+ var propTypes$1i = {
4723
4869
  // eslint-disable-next-line react/forbid-prop-types
4724
4870
  inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
4725
4871
  current: PropTypes.object
@@ -4736,7 +4882,7 @@ var propTypes$1j = {
4736
4882
  onChange: PropTypes.func,
4737
4883
  className: PropTypes.string
4738
4884
  };
4739
- var defaultProps$1j = {
4885
+ var defaultProps$1i = {
4740
4886
  inputRef: null,
4741
4887
  type: 'text',
4742
4888
  value: null,
@@ -4789,17 +4935,17 @@ var TextField = function TextField(_ref) {
4789
4935
  className: "input-group-text"
4790
4936
  }, prefix), input) : input;
4791
4937
  };
4792
- TextField.propTypes = propTypes$1j;
4793
- TextField.defaultProps = defaultProps$1j;
4938
+ TextField.propTypes = propTypes$1i;
4939
+ TextField.defaultProps = defaultProps$1i;
4794
4940
  var TextField$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
4795
4941
  return /*#__PURE__*/React.createElement(TextField, Object.assign({}, props, {
4796
4942
  inputRef: ref
4797
4943
  }));
4798
4944
  });
4799
4945
 
4800
- var styles$y = {"container":"micromag-fields-autocomplete-container","list":"micromag-fields-autocomplete-list","item":"micromag-fields-autocomplete-item"};
4946
+ var styles$x = {"container":"micromag-fields-autocomplete-container","list":"micromag-fields-autocomplete-list","item":"micromag-fields-autocomplete-item"};
4801
4947
 
4802
- var propTypes$1i = {
4948
+ var propTypes$1h = {
4803
4949
  items: PropTypes.arrayOf(PropTypes.shape({
4804
4950
  label: PropTypes.string,
4805
4951
  value: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
@@ -4821,7 +4967,7 @@ var propTypes$1i = {
4821
4967
  onChange: PropTypes.func,
4822
4968
  children: PropTypes.node
4823
4969
  };
4824
- var defaultProps$1i = {
4970
+ var defaultProps$1h = {
4825
4971
  items: [],
4826
4972
  value: null,
4827
4973
  searchOptions: {
@@ -4881,15 +5027,15 @@ var AutocompleteField = function AutocompleteField(_ref) {
4881
5027
  }
4882
5028
  }, [onChange, showEmpty]);
4883
5029
  var listItems = children !== null ? /*#__PURE__*/React.createElement("div", {
4884
- className: styles$y.list
5030
+ className: styles$x.list
4885
5031
  }, children) : /*#__PURE__*/React.createElement("div", {
4886
- className: styles$y.list
5032
+ className: styles$x.list
4887
5033
  }, /*#__PURE__*/React.createElement("ul", {
4888
5034
  className: "list-group bg-light"
4889
5035
  }, maxedList.map(function (_ref2) {
4890
5036
  var item = _ref2.item;
4891
5037
  return /*#__PURE__*/React.createElement("li", {
4892
- className: classNames(['list-group-item', styles$y.item]),
5038
+ className: classNames(['list-group-item', styles$x.item]),
4893
5039
  key: "auto-".concat(item.label)
4894
5040
  }, /*#__PURE__*/React.createElement("button", {
4895
5041
  type: "button",
@@ -4899,26 +5045,26 @@ var AutocompleteField = function AutocompleteField(_ref) {
4899
5045
  }, item.label));
4900
5046
  })));
4901
5047
  return /*#__PURE__*/React.createElement("div", {
4902
- className: classNames([styles$y.container, _defineProperty({}, className, className !== null)])
5048
+ className: classNames([styles$x.container, _defineProperty({}, className, className !== null)])
4903
5049
  }, /*#__PURE__*/React.createElement(TextField$1, {
4904
5050
  value: value,
4905
- buttonClassName: styles$y.button,
5051
+ buttonClassName: styles$x.button,
4906
5052
  placeholder: placeholder,
4907
5053
  onChange: onInputChange
4908
5054
  }), open ? listItems : null);
4909
5055
  };
4910
- AutocompleteField.propTypes = propTypes$1i;
4911
- AutocompleteField.defaultProps = defaultProps$1i;
5056
+ AutocompleteField.propTypes = propTypes$1h;
5057
+ AutocompleteField.defaultProps = defaultProps$1h;
4912
5058
 
4913
- var styles$x = {"container":"micromag-fields-badge-container","field":"micromag-fields-badge-field","active":"micromag-fields-badge-active"};
5059
+ var styles$w = {"container":"micromag-fields-badge-container","field":"micromag-fields-badge-field","active":"micromag-fields-badge-active"};
4914
5060
 
4915
5061
  var _excluded$v = ["value", "className", "onChange"];
4916
- var propTypes$1h = {
5062
+ var propTypes$1g = {
4917
5063
  value: PropTypes$1.badge,
4918
5064
  className: PropTypes.string,
4919
5065
  onChange: PropTypes.func
4920
5066
  };
4921
- var defaultProps$1h = {
5067
+ var defaultProps$1g = {
4922
5068
  value: null,
4923
5069
  className: null,
4924
5070
  onChange: null
@@ -4960,17 +5106,17 @@ var Badge = function Badge(_ref) {
4960
5106
  }
4961
5107
  }, [onChange, value]);
4962
5108
  return /*#__PURE__*/React.createElement(Fields, Object.assign({
4963
- className: classNames([styles$x.container, _defineProperty(_defineProperty({}, className, className !== null), styles$x.active, active)]),
4964
- fieldClassName: styles$x.field
5109
+ className: classNames([styles$w.container, _defineProperty(_defineProperty({}, className, className !== null), styles$w.active, active)]),
5110
+ fieldClassName: styles$w.field
4965
5111
  }, props, {
4966
5112
  value: value,
4967
5113
  onChange: onUpdateValue
4968
5114
  }));
4969
5115
  };
4970
- Badge.propTypes = propTypes$1h;
4971
- Badge.defaultProps = defaultProps$1h;
5116
+ Badge.propTypes = propTypes$1g;
5117
+ Badge.defaultProps = defaultProps$1g;
4972
5118
 
4973
- var styles$w = {"container":"micromag-fields-slider-container","slider":"micromag-fields-slider-slider","input":"micromag-fields-slider-input","unit":"micromag-fields-slider-unit"};
5119
+ var styles$v = {"container":"micromag-fields-slider-container","slider":"micromag-fields-slider-slider","input":"micromag-fields-slider-input","unit":"micromag-fields-slider-unit"};
4974
5120
 
4975
5121
  // const roundEven = value => 2 * Math.round(value / 2);
4976
5122
 
@@ -4997,7 +5143,7 @@ var generateSteps = function generateSteps(steps, style) {
4997
5143
  }));
4998
5144
  }, {});
4999
5145
  };
5000
- var propTypes$1g = {
5146
+ var propTypes$1f = {
5001
5147
  value: PropTypes.string,
5002
5148
  min: PropTypes.number,
5003
5149
  max: PropTypes.number,
@@ -5012,7 +5158,7 @@ var propTypes$1g = {
5012
5158
  className: PropTypes.string,
5013
5159
  onChange: PropTypes.func
5014
5160
  };
5015
- var defaultProps$1g = {
5161
+ var defaultProps$1f = {
5016
5162
  value: null,
5017
5163
  min: 0,
5018
5164
  max: 100,
@@ -5049,7 +5195,7 @@ var SliderField = function SliderField(_ref) {
5049
5195
  return (isArray(marks) ? generateSteps(marks, marksStyle) : marks) || (marksStep !== null ? generateSteps(rangeFromStep(min, max, marksStep), marksStyle) : null) || (marksCount !== null ? generateSteps(rangeFromCount(min, max, marksCount), marksStyle) : null) || undefined;
5050
5196
  }, [min, max, marks, marksStep, marksCount, marksStyle]);
5051
5197
  var slider = /*#__PURE__*/React.createElement("div", {
5052
- className: styles$w.slider
5198
+ className: styles$v.slider
5053
5199
  }, /*#__PURE__*/React.createElement(Slider, {
5054
5200
  value: value !== null ? value : 0,
5055
5201
  min: min,
@@ -5058,7 +5204,7 @@ var SliderField = function SliderField(_ref) {
5058
5204
  onChange: customOnChange
5059
5205
  }));
5060
5206
  return /*#__PURE__*/React.createElement("div", {
5061
- className: classNames([styles$w.container, _defineProperty(_defineProperty({}, styles$w.withInput, withInput), className, className !== null)])
5207
+ className: classNames([styles$v.container, _defineProperty(_defineProperty({}, styles$v.withInput, withInput), className, className !== null)])
5062
5208
  }, withInput ? /*#__PURE__*/React.createElement("div", {
5063
5209
  className: "row align-items-center no-gutters"
5064
5210
  }, /*#__PURE__*/React.createElement("div", {
@@ -5069,23 +5215,23 @@ var SliderField = function SliderField(_ref) {
5069
5215
  type: "number",
5070
5216
  value: value,
5071
5217
  onChange: customOnChange,
5072
- className: styles$w.input
5218
+ className: styles$v.input
5073
5219
  })), unit !== null ? /*#__PURE__*/React.createElement("div", {
5074
- className: classNames(['col-auto', styles$w.unit])
5220
+ className: classNames(['col-auto', styles$v.unit])
5075
5221
  }, unit) : null) : slider);
5076
5222
  };
5077
- SliderField.propTypes = propTypes$1g;
5078
- SliderField.defaultProps = defaultProps$1g;
5223
+ SliderField.propTypes = propTypes$1f;
5224
+ SliderField.defaultProps = defaultProps$1f;
5079
5225
 
5080
- var styles$v = {"container":"micromag-fields-border-width-container"};
5226
+ var styles$u = {"container":"micromag-fields-border-width-container"};
5081
5227
 
5082
- var propTypes$1f = {
5228
+ var propTypes$1e = {
5083
5229
  value: PropTypes.string,
5084
5230
  sizes: PropTypes.arrayOf(PropTypes.number),
5085
5231
  className: PropTypes.string,
5086
5232
  onChange: PropTypes.func
5087
5233
  };
5088
- var defaultProps$1f = {
5234
+ var defaultProps$1e = {
5089
5235
  value: null,
5090
5236
  sizes: [0, 2, 6, 10, 20, 30],
5091
5237
  className: null,
@@ -5102,20 +5248,20 @@ var BorderRadius = function BorderRadius(_ref) {
5102
5248
  max: sizes[sizes.length - 1],
5103
5249
  marks: sizes,
5104
5250
  withInput: true,
5105
- className: classNames([styles$v.container, _defineProperty({}, className, className !== null)]),
5251
+ className: classNames([styles$u.container, _defineProperty({}, className, className !== null)]),
5106
5252
  onChange: onChange
5107
5253
  });
5108
5254
  };
5109
- BorderRadius.propTypes = propTypes$1f;
5110
- BorderRadius.defaultProps = defaultProps$1f;
5255
+ BorderRadius.propTypes = propTypes$1e;
5256
+ BorderRadius.defaultProps = defaultProps$1e;
5111
5257
 
5112
- var propTypes$1e = {
5258
+ var propTypes$1d = {
5113
5259
  types: PropTypes.arrayOf(PropTypes.string),
5114
5260
  value: PropTypes.string,
5115
5261
  className: PropTypes.string,
5116
5262
  onChange: PropTypes.func
5117
5263
  };
5118
- var defaultProps$1e = {
5264
+ var defaultProps$1d = {
5119
5265
  types: ['solid', 'dotted', 'dashed'],
5120
5266
  value: null,
5121
5267
  className: null,
@@ -5139,9 +5285,9 @@ var BorderStyle = function BorderStyle(_ref) {
5139
5285
  return {
5140
5286
  value: type,
5141
5287
  label: /*#__PURE__*/React.createElement("div", {
5142
- className: styles$I.type
5288
+ className: styles$J.type
5143
5289
  }, /*#__PURE__*/React.createElement("div", {
5144
- className: styles$I.borders,
5290
+ className: styles$J.borders,
5145
5291
  style: {
5146
5292
  border: "2px ".concat(type, " currentColor")
5147
5293
  }
@@ -5149,21 +5295,21 @@ var BorderStyle = function BorderStyle(_ref) {
5149
5295
  };
5150
5296
  }),
5151
5297
  value: value || null,
5152
- className: classNames([styles$I.container, _defineProperty({}, className, className !== null)]),
5153
- buttonClassName: styles$I.button,
5298
+ className: classNames([styles$J.container, _defineProperty({}, className, className !== null)]),
5299
+ buttonClassName: styles$J.button,
5154
5300
  onChange: onBorderStyleChange
5155
5301
  })));
5156
5302
  };
5157
- BorderStyle.propTypes = propTypes$1e;
5158
- BorderStyle.defaultProps = defaultProps$1e;
5303
+ BorderStyle.propTypes = propTypes$1d;
5304
+ BorderStyle.defaultProps = defaultProps$1d;
5159
5305
 
5160
- var propTypes$1d = {
5306
+ var propTypes$1c = {
5161
5307
  value: PropTypes.string,
5162
5308
  sizes: PropTypes.arrayOf(PropTypes.number),
5163
5309
  className: PropTypes.string,
5164
5310
  onChange: PropTypes.func
5165
5311
  };
5166
- var defaultProps$1d = {
5312
+ var defaultProps$1c = {
5167
5313
  value: null,
5168
5314
  sizes: [1, 2, 4, 8, 10, 14, 20],
5169
5315
  className: null,
@@ -5180,17 +5326,17 @@ var BorderWidth = function BorderWidth(_ref) {
5180
5326
  max: sizes[sizes.length - 1],
5181
5327
  marks: sizes,
5182
5328
  withInput: true,
5183
- className: classNames([styles$v.container, _defineProperty({}, className, className !== null)]),
5329
+ className: classNames([styles$u.container, _defineProperty({}, className, className !== null)]),
5184
5330
  onChange: onChange
5185
5331
  });
5186
5332
  };
5187
- BorderWidth.propTypes = propTypes$1d;
5188
- BorderWidth.defaultProps = defaultProps$1d;
5333
+ BorderWidth.propTypes = propTypes$1c;
5334
+ BorderWidth.defaultProps = defaultProps$1c;
5189
5335
 
5190
- var styles$u = {"preview":"micromag-fields-box-style-preview","box":"micromag-fields-box-style-box"};
5336
+ var styles$t = {"preview":"micromag-fields-box-style-preview","box":"micromag-fields-box-style-box"};
5191
5337
 
5192
5338
  var _excluded$u = ["value", "fields", "onChange", "closeForm", "withAlignment"];
5193
- var propTypes$1c = {
5339
+ var propTypes$1b = {
5194
5340
  value: PropTypes$1.boxStyle,
5195
5341
  fields: PropTypes.arrayOf(PropTypes$1.formField),
5196
5342
  isForm: PropTypes.bool,
@@ -5200,7 +5346,7 @@ var propTypes$1c = {
5200
5346
  onChange: PropTypes.func,
5201
5347
  closeForm: PropTypes.func
5202
5348
  };
5203
- var defaultProps$1c = {
5349
+ var defaultProps$1b = {
5204
5350
  value: null,
5205
5351
  fields: null,
5206
5352
  isForm: false,
@@ -5218,9 +5364,9 @@ var BoxStyleForm = function BoxStyleForm(_ref) {
5218
5364
  _ref.withAlignment;
5219
5365
  var props = _objectWithoutProperties(_ref, _excluded$u);
5220
5366
  var previewElement = value !== null ? /*#__PURE__*/React.createElement("span", {
5221
- className: styles$u.preview
5367
+ className: styles$t.preview
5222
5368
  }, /*#__PURE__*/React.createElement("span", {
5223
- className: styles$u.box,
5369
+ className: styles$t.box,
5224
5370
  style: _objectSpread(_objectSpread({}, getStyleFromBox(value)), {}, {
5225
5371
  padding: 0
5226
5372
  })
@@ -5240,20 +5386,20 @@ var BoxStyleForm = function BoxStyleForm(_ref) {
5240
5386
  })
5241
5387
  }, props));
5242
5388
  };
5243
- BoxStyleForm.propTypes = propTypes$1c;
5244
- BoxStyleForm.defaultProps = defaultProps$1c;
5389
+ BoxStyleForm.propTypes = propTypes$1b;
5390
+ BoxStyleForm.defaultProps = defaultProps$1b;
5245
5391
  BoxStyleForm.withForm = true;
5246
5392
 
5247
- var styles$t = {"container":"micromag-fields-button-layout-container","button":"micromag-fields-button-layout-button","placeholderText":"micromag-fields-button-layout-placeholderText","placeholderTextOver":"micromag-fields-button-layout-placeholderTextOver","active":"micromag-fields-button-layout-active"};
5393
+ var styles$s = {"container":"micromag-fields-button-layout-container","button":"micromag-fields-button-layout-button","placeholderText":"micromag-fields-button-layout-placeholderText","placeholderTextOver":"micromag-fields-button-layout-placeholderTextOver","active":"micromag-fields-button-layout-active"};
5248
5394
 
5249
- var propTypes$1b = {
5395
+ var propTypes$1a = {
5250
5396
  types: PropTypes.arrayOf(PropTypes.string),
5251
5397
  value: PropTypes.string,
5252
5398
  defaultValue: PropTypes.string,
5253
5399
  className: PropTypes.string,
5254
5400
  onChange: PropTypes.func
5255
5401
  };
5256
- var defaultProps$1b = {
5402
+ var defaultProps$1a = {
5257
5403
  types: ['label-bottom', 'label-top', 'no-label', 'label-over'],
5258
5404
  value: null,
5259
5405
  defaultValue: null,
@@ -5279,13 +5425,13 @@ var ButtonLayout = function ButtonLayout(_ref) {
5279
5425
  width: "1.25em",
5280
5426
  height: "1em"
5281
5427
  }), /*#__PURE__*/React.createElement(PlaceholderText, {
5282
- className: styles$t.placeholderText,
5428
+ className: styles$s.placeholderText,
5283
5429
  lines: 1,
5284
5430
  lineMargin: 1
5285
5431
  }));
5286
5432
  case 'label-top':
5287
5433
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(PlaceholderText, {
5288
- className: styles$t.placeholderText,
5434
+ className: styles$s.placeholderText,
5289
5435
  lines: 1,
5290
5436
  lineMargin: 1
5291
5437
  }), /*#__PURE__*/React.createElement(PlaceholderImage, {
@@ -5302,7 +5448,7 @@ var ButtonLayout = function ButtonLayout(_ref) {
5302
5448
  width: "1.5em",
5303
5449
  height: "1.5em"
5304
5450
  }), /*#__PURE__*/React.createElement(PlaceholderText, {
5305
- className: classNames([styles$t.placeholderText, styles$t.placeholderTextOver]),
5451
+ className: classNames([styles$s.placeholderText, styles$s.placeholderTextOver]),
5306
5452
  lines: 1,
5307
5453
  withInvertedColors: false
5308
5454
  }));
@@ -5322,25 +5468,25 @@ var ButtonLayout = function ButtonLayout(_ref) {
5322
5468
  };
5323
5469
  }),
5324
5470
  value: finalValue || null,
5325
- className: classNames([styles$t.container, _defineProperty({}, className, className !== null)]),
5326
- buttonClassName: styles$t.button,
5327
- activeClassName: styles$t.active,
5471
+ className: classNames([styles$s.container, _defineProperty({}, className, className !== null)]),
5472
+ buttonClassName: styles$s.button,
5473
+ activeClassName: styles$s.active,
5328
5474
  onChange: onButtonLayoutChange,
5329
5475
  uncheckable: true
5330
5476
  })));
5331
5477
  };
5332
- ButtonLayout.propTypes = propTypes$1b;
5333
- ButtonLayout.defaultProps = defaultProps$1b;
5478
+ ButtonLayout.propTypes = propTypes$1a;
5479
+ ButtonLayout.defaultProps = defaultProps$1a;
5334
5480
 
5335
- var styles$s = {"container":"micromag-fields-call-to-action-container","field":"micromag-fields-call-to-action-field","active":"micromag-fields-call-to-action-active"};
5481
+ var styles$r = {"container":"micromag-fields-call-to-action-container","field":"micromag-fields-call-to-action-field","active":"micromag-fields-call-to-action-active"};
5336
5482
 
5337
5483
  var _excluded$t = ["value", "className", "onChange"];
5338
- var propTypes$1a = {
5484
+ var propTypes$19 = {
5339
5485
  value: PropTypes$1.callToAction,
5340
5486
  className: PropTypes.string,
5341
5487
  onChange: PropTypes.func
5342
5488
  };
5343
- var defaultProps$1a = {
5489
+ var defaultProps$19 = {
5344
5490
  value: null,
5345
5491
  className: null,
5346
5492
  onChange: null
@@ -5389,24 +5535,24 @@ var CallToAction = function CallToAction(_ref) {
5389
5535
  }
5390
5536
  }, [onChange, value]);
5391
5537
  return /*#__PURE__*/React.createElement(Fields, Object.assign({
5392
- className: classNames([styles$s.container, _defineProperty(_defineProperty({}, className, className !== null), styles$s.active, active)]),
5393
- fieldClassName: styles$s.field
5538
+ className: classNames([styles$r.container, _defineProperty(_defineProperty({}, className, className !== null), styles$r.active, active)]),
5539
+ fieldClassName: styles$r.field
5394
5540
  }, props, {
5395
5541
  value: value,
5396
5542
  onChange: onUpdateValue
5397
5543
  }));
5398
5544
  };
5399
- CallToAction.propTypes = propTypes$1a;
5400
- CallToAction.defaultProps = defaultProps$1a;
5545
+ CallToAction.propTypes = propTypes$19;
5546
+ CallToAction.defaultProps = defaultProps$19;
5401
5547
 
5402
5548
  var _excluded$s = ["value", "className", "onChange"],
5403
5549
  _excluded2$2 = ["paddingRight", "paddingBottom"];
5404
- var propTypes$19 = {
5550
+ var propTypes$18 = {
5405
5551
  value: PropTypes$1.activeForm,
5406
5552
  className: PropTypes.string,
5407
5553
  onChange: PropTypes.func
5408
5554
  };
5409
- var defaultProps$19 = {
5555
+ var defaultProps$18 = {
5410
5556
  value: null,
5411
5557
  className: null,
5412
5558
  onChange: null
@@ -5457,9 +5603,9 @@ var CallToActionForm = function CallToActionForm(_ref) {
5457
5603
  _getStyleFromBox.paddingBottom;
5458
5604
  var stylesWithoutPadding = _objectWithoutProperties(_getStyleFromBox, _excluded2$2);
5459
5605
  var previewElement = value !== null ? /*#__PURE__*/React.createElement("span", {
5460
- className: styles$u.preview
5606
+ className: styles$t.preview
5461
5607
  }, /*#__PURE__*/React.createElement("span", {
5462
- className: styles$u.box,
5608
+ className: styles$t.box,
5463
5609
  style: _objectSpread(_objectSpread({}, stylesWithoutPadding), {}, {
5464
5610
  padding: 0
5465
5611
  })
@@ -5480,20 +5626,20 @@ var CallToActionForm = function CallToActionForm(_ref) {
5480
5626
  })
5481
5627
  }, props));
5482
5628
  };
5483
- CallToActionForm.propTypes = propTypes$19;
5484
- CallToActionForm.defaultProps = defaultProps$19;
5629
+ CallToActionForm.propTypes = propTypes$18;
5630
+ CallToActionForm.defaultProps = defaultProps$18;
5485
5631
 
5486
- var styles$r = {"container":"micromag-fields-toggle-section-container","field":"micromag-fields-toggle-section-field","enabled":"micromag-fields-toggle-section-enabled"};
5632
+ var styles$q = {"container":"micromag-fields-toggle-section-container","field":"micromag-fields-toggle-section-field","enabled":"micromag-fields-toggle-section-enabled"};
5487
5633
 
5488
5634
  var _excluded$r = ["value", "toggleField", "className", "onChange"];
5489
- var propTypes$18 = {
5635
+ var propTypes$17 = {
5490
5636
  // eslint-disable-next-line react/forbid-prop-types
5491
5637
  value: PropTypes.object,
5492
5638
  toggleField: PropTypes.string,
5493
5639
  className: PropTypes.string,
5494
5640
  onChange: PropTypes.func
5495
5641
  };
5496
- var defaultProps$18 = {
5642
+ var defaultProps$17 = {
5497
5643
  value: null,
5498
5644
  toggleField: null,
5499
5645
  className: null,
@@ -5515,19 +5661,19 @@ var ToggleSection = function ToggleSection(_ref) {
5515
5661
  }
5516
5662
  }, [onChange, value]);
5517
5663
  return /*#__PURE__*/React.createElement(Fields, Object.assign({
5518
- className: classNames([styles$r.container, _defineProperty(_defineProperty({}, className, className !== null), styles$r.enabled, valueEnabled)]),
5519
- fieldClassName: styles$r.field
5664
+ className: classNames([styles$q.container, _defineProperty(_defineProperty({}, className, className !== null), styles$q.enabled, valueEnabled)]),
5665
+ fieldClassName: styles$q.field
5520
5666
  }, props, {
5521
5667
  value: value,
5522
5668
  onChange: onUpdateValue
5523
5669
  }));
5524
5670
  };
5525
- ToggleSection.propTypes = propTypes$18;
5526
- ToggleSection.defaultProps = defaultProps$18;
5671
+ ToggleSection.propTypes = propTypes$17;
5672
+ ToggleSection.defaultProps = defaultProps$17;
5527
5673
 
5528
- var styles$q = {"container":"micromag-fields-date-container","input":"micromag-fields-date-input"};
5674
+ var styles$p = {"container":"micromag-fields-date-container","input":"micromag-fields-date-input"};
5529
5675
 
5530
- var propTypes$17 = {
5676
+ var propTypes$16 = {
5531
5677
  name: PropTypes.string,
5532
5678
  value: PropTypes.number,
5533
5679
  withTime: PropTypes.bool,
@@ -5535,7 +5681,7 @@ var propTypes$17 = {
5535
5681
  className: PropTypes.string,
5536
5682
  onChange: PropTypes.func
5537
5683
  };
5538
- var defaultProps$17 = {
5684
+ var defaultProps$16 = {
5539
5685
  name: null,
5540
5686
  value: null,
5541
5687
  withTime: false,
@@ -5557,10 +5703,10 @@ var DateField = function DateField(_ref) {
5557
5703
  }
5558
5704
  }, [onChange]);
5559
5705
  return /*#__PURE__*/React.createElement("div", {
5560
- className: classNames([styles$q.container, _defineProperty({}, className, className !== null)])
5706
+ className: classNames([styles$p.container, _defineProperty({}, className, className !== null)])
5561
5707
  }, /*#__PURE__*/React.createElement("input", {
5562
5708
  type: withTime ? 'datetime-local' : 'date',
5563
- className: classNames([styles$q.input, 'form-control', 'ms-auto']),
5709
+ className: classNames([styles$p.input, 'form-control', 'ms-auto']),
5564
5710
  name: name,
5565
5711
  value: value !== null ? value : '',
5566
5712
  autoComplete: "off",
@@ -5568,17 +5714,17 @@ var DateField = function DateField(_ref) {
5568
5714
  placeholder: placeholder
5569
5715
  }));
5570
5716
  };
5571
- DateField.propTypes = propTypes$17;
5572
- DateField.defaultProps = defaultProps$17;
5717
+ DateField.propTypes = propTypes$16;
5718
+ DateField.defaultProps = defaultProps$16;
5573
5719
 
5574
- var propTypes$16 = {
5720
+ var propTypes$15 = {
5575
5721
  name: PropTypes.string,
5576
5722
  value: PropTypes$1.textElement,
5577
5723
  withTime: PropTypes.bool,
5578
5724
  placeholder: PropTypes.string,
5579
5725
  onChange: PropTypes.func
5580
5726
  };
5581
- var defaultProps$16 = {
5727
+ var defaultProps$15 = {
5582
5728
  name: null,
5583
5729
  value: null,
5584
5730
  withTime: false,
@@ -5603,7 +5749,7 @@ var DateElement = function DateElement(_ref) {
5603
5749
  }, [value, onChange]);
5604
5750
  return /*#__PURE__*/React.createElement("input", {
5605
5751
  type: withTime ? 'datetime-local' : 'date',
5606
- className: classNames([styles$q.input, 'form-control', 'ms-auto']),
5752
+ className: classNames([styles$p.input, 'form-control', 'ms-auto']),
5607
5753
  name: name,
5608
5754
  value: bodyValue !== null ? bodyValue : '',
5609
5755
  autoComplete: "off",
@@ -5611,16 +5757,16 @@ var DateElement = function DateElement(_ref) {
5611
5757
  placeholder: placeholder
5612
5758
  });
5613
5759
  };
5614
- DateElement.propTypes = propTypes$16;
5615
- DateElement.defaultProps = defaultProps$16;
5760
+ DateElement.propTypes = propTypes$15;
5761
+ DateElement.defaultProps = defaultProps$15;
5616
5762
 
5617
5763
  var _excluded$q = ["value", "className", "onChange"];
5618
- var propTypes$15 = {
5764
+ var propTypes$14 = {
5619
5765
  value: PropTypes$1.callToAction,
5620
5766
  className: PropTypes.string,
5621
5767
  onChange: PropTypes.func
5622
5768
  };
5623
- var defaultProps$15 = {
5769
+ var defaultProps$14 = {
5624
5770
  value: null,
5625
5771
  className: null,
5626
5772
  onChange: null
@@ -5664,23 +5810,23 @@ var ShareIncentive = function ShareIncentive(_ref) {
5664
5810
  }
5665
5811
  }, [onChange, value]);
5666
5812
  return /*#__PURE__*/React.createElement(Fields, Object.assign({
5667
- className: classNames([styles$s.container, _defineProperty(_defineProperty({}, className, className !== null), styles$s.active, active)]),
5668
- fieldClassName: styles$s.field
5813
+ className: classNames([styles$r.container, _defineProperty(_defineProperty({}, className, className !== null), styles$r.active, active)]),
5814
+ fieldClassName: styles$r.field
5669
5815
  }, props, {
5670
5816
  value: value,
5671
5817
  onChange: onUpdateValue
5672
5818
  }));
5673
5819
  };
5674
- ShareIncentive.propTypes = propTypes$15;
5675
- ShareIncentive.defaultProps = defaultProps$15;
5820
+ ShareIncentive.propTypes = propTypes$14;
5821
+ ShareIncentive.defaultProps = defaultProps$14;
5676
5822
 
5677
5823
  var _excluded$p = ["value", "className", "onChange"];
5678
- var propTypes$14 = {
5824
+ var propTypes$13 = {
5679
5825
  value: PropTypes$1.activeForm,
5680
5826
  className: PropTypes.string,
5681
5827
  onChange: PropTypes.func
5682
5828
  };
5683
- var defaultProps$14 = {
5829
+ var defaultProps$13 = {
5684
5830
  value: null,
5685
5831
  className: null,
5686
5832
  onChange: null
@@ -5732,18 +5878,18 @@ var ShareIncentiveForm = function ShareIncentiveForm(_ref) {
5732
5878
  })
5733
5879
  }, props));
5734
5880
  };
5735
- ShareIncentiveForm.propTypes = propTypes$14;
5736
- ShareIncentiveForm.defaultProps = defaultProps$14;
5881
+ ShareIncentiveForm.propTypes = propTypes$13;
5882
+ ShareIncentiveForm.defaultProps = defaultProps$13;
5737
5883
 
5738
- var styles$p = {"container":"micromag-fields-card-layout-container","button":"micromag-fields-card-layout-button","layout":"micromag-fields-card-layout-layout"};
5884
+ var styles$o = {"container":"micromag-fields-card-layout-container","button":"micromag-fields-card-layout-button","layout":"micromag-fields-card-layout-layout"};
5739
5885
 
5740
- var propTypes$13 = {
5886
+ var propTypes$12 = {
5741
5887
  types: PropTypes.arrayOf(PropTypes.string),
5742
5888
  value: PropTypes.string,
5743
5889
  className: PropTypes.string,
5744
5890
  onChange: PropTypes.func
5745
5891
  };
5746
- var defaultProps$13 = {
5892
+ var defaultProps$12 = {
5747
5893
  types: ['content-top', 'content-bottom', 'content-split'],
5748
5894
  value: null,
5749
5895
  className: null,
@@ -5762,7 +5908,7 @@ var CardLayout = function CardLayout(_ref) {
5762
5908
  switch (type) {
5763
5909
  case 'content-top':
5764
5910
  return /*#__PURE__*/React.createElement("div", {
5765
- className: styles$p.layout
5911
+ className: styles$o.layout
5766
5912
  }, /*#__PURE__*/React.createElement(PlaceholderTitle, {
5767
5913
  lines: 1,
5768
5914
  lineMargin: 1
@@ -5775,7 +5921,7 @@ var CardLayout = function CardLayout(_ref) {
5775
5921
  }));
5776
5922
  case 'content-bottom':
5777
5923
  return /*#__PURE__*/React.createElement("div", {
5778
- className: styles$p.layout
5924
+ className: styles$o.layout
5779
5925
  }, /*#__PURE__*/React.createElement(PlaceholderImage, {
5780
5926
  width: "100%",
5781
5927
  height: "1.25em"
@@ -5788,7 +5934,7 @@ var CardLayout = function CardLayout(_ref) {
5788
5934
  }));
5789
5935
  case 'content-split':
5790
5936
  return /*#__PURE__*/React.createElement("div", {
5791
- className: styles$p.layout
5937
+ className: styles$o.layout
5792
5938
  }, /*#__PURE__*/React.createElement(PlaceholderTitle, {
5793
5939
  lines: 1,
5794
5940
  lineMargin: 1
@@ -5815,18 +5961,18 @@ var CardLayout = function CardLayout(_ref) {
5815
5961
  };
5816
5962
  }),
5817
5963
  value: value || null,
5818
- className: classNames([styles$p.container, _defineProperty({}, className, className !== null)]),
5819
- buttonClassName: styles$p.button,
5964
+ className: classNames([styles$o.container, _defineProperty({}, className, className !== null)]),
5965
+ buttonClassName: styles$o.button,
5820
5966
  onChange: onButtonLayoutChange,
5821
5967
  uncheckable: true
5822
5968
  })));
5823
5969
  };
5824
- CardLayout.propTypes = propTypes$13;
5825
- CardLayout.defaultProps = defaultProps$13;
5970
+ CardLayout.propTypes = propTypes$12;
5971
+ CardLayout.defaultProps = defaultProps$12;
5826
5972
 
5827
- var styles$o = {"item":"micromag-fields-checkboxes-item"};
5973
+ var styles$n = {"item":"micromag-fields-checkboxes-item"};
5828
5974
 
5829
- var propTypes$12 = {
5975
+ var propTypes$11 = {
5830
5976
  name: PropTypes.string,
5831
5977
  value: PropTypes.arrayOf(PropTypes.string),
5832
5978
  singleChoice: PropTypes.bool,
@@ -5835,7 +5981,7 @@ var propTypes$12 = {
5835
5981
  buttonClassName: PropTypes.string,
5836
5982
  onChange: PropTypes.func
5837
5983
  };
5838
- var defaultProps$12 = {
5984
+ var defaultProps$11 = {
5839
5985
  name: null,
5840
5986
  value: null,
5841
5987
  singleChoice: false,
@@ -5856,7 +6002,7 @@ var Checkboxes = function Checkboxes(_ref) {
5856
6002
  return getSelectOptions(options);
5857
6003
  }, [options]);
5858
6004
  return /*#__PURE__*/React.createElement("div", {
5859
- className: classNames(['btn-group', 'btn-group-toggle', styles$o.container, _defineProperty({}, className, className !== null)]),
6005
+ className: classNames(['btn-group', 'btn-group-toggle', styles$n.container, _defineProperty({}, className, className !== null)]),
5860
6006
  "data-toggle": "buttons"
5861
6007
  }, finalOptions.map(function (_ref3) {
5862
6008
  var optionValue = _ref3.value,
@@ -5864,7 +6010,7 @@ var Checkboxes = function Checkboxes(_ref) {
5864
6010
  var active = value !== null && isArray(value) && value.indexOf(optionValue) !== -1 || !isArray(value) && value === optionValue;
5865
6011
  return /*#__PURE__*/React.createElement("label", {
5866
6012
  key: "radio-".concat(optionValue),
5867
- className: classNames(['btn', 'btn-outline-secondary', styles$o.item, _defineProperty(_defineProperty({}, buttonClassName, buttonClassName !== null), "active", active)])
6013
+ className: classNames(['btn', 'btn-outline-secondary', styles$n.item, _defineProperty(_defineProperty({}, buttonClassName, buttonClassName !== null), "active", active)])
5868
6014
  }, /*#__PURE__*/React.createElement("input", {
5869
6015
  type: "checkbox",
5870
6016
  name: "".concat(name, "[]"),
@@ -5898,14 +6044,14 @@ var Checkboxes = function Checkboxes(_ref) {
5898
6044
  }), ' ', label);
5899
6045
  }));
5900
6046
  };
5901
- Checkboxes.propTypes = propTypes$12;
5902
- Checkboxes.defaultProps = defaultProps$12;
6047
+ Checkboxes.propTypes = propTypes$11;
6048
+ Checkboxes.defaultProps = defaultProps$11;
5903
6049
 
5904
6050
  /* eslint-disable react/jsx-props-no-spreading */
5905
- var propTypes$11 = {
6051
+ var propTypes$10 = {
5906
6052
  value: PropTypes$1.closedCaptionsMedia
5907
6053
  };
5908
- var defaultProps$11 = {
6054
+ var defaultProps$10 = {
5909
6055
  value: null
5910
6056
  };
5911
6057
  var ClosedCaptionField = function ClosedCaptionField(props) {
@@ -5921,11 +6067,11 @@ var ClosedCaptionField = function ClosedCaptionField(props) {
5921
6067
  type: "subtitle"
5922
6068
  }));
5923
6069
  };
5924
- ClosedCaptionField.propTypes = propTypes$11;
5925
- ClosedCaptionField.defaultProps = defaultProps$11;
6070
+ ClosedCaptionField.propTypes = propTypes$10;
6071
+ ClosedCaptionField.defaultProps = defaultProps$10;
5926
6072
  ClosedCaptionField.withForm = true;
5927
6073
 
5928
- var propTypes$10 = {
6074
+ var propTypes$$ = {
5929
6075
  value: PropTypes.shape({
5930
6076
  color: PropTypes.string,
5931
6077
  alpha: PropTypes.number
@@ -5934,7 +6080,7 @@ var propTypes$10 = {
5934
6080
  className: PropTypes.string,
5935
6081
  onChange: PropTypes.func
5936
6082
  };
5937
- var defaultProps$10 = {
6083
+ var defaultProps$$ = {
5938
6084
  value: null,
5939
6085
  disableAlpha: false,
5940
6086
  className: null,
@@ -5998,13 +6144,13 @@ var ColorPickerField = function ColorPickerField(_ref) {
5998
6144
  disableAlpha: disableAlpha
5999
6145
  }));
6000
6146
  };
6001
- ColorPickerField.propTypes = propTypes$10;
6002
- ColorPickerField.defaultProps = defaultProps$10;
6147
+ ColorPickerField.propTypes = propTypes$$;
6148
+ ColorPickerField.defaultProps = defaultProps$$;
6003
6149
 
6004
- var styles$n = {"preview":"micromag-fields-color-preview","color":"micromag-fields-color-color","picker":"micromag-fields-color-picker"};
6150
+ var styles$m = {"preview":"micromag-fields-color-preview","color":"micromag-fields-color-color","picker":"micromag-fields-color-picker"};
6005
6151
 
6006
6152
  var _excluded$o = ["value", "onChange", "closeForm", "disableAlpha", "canClear"];
6007
- var propTypes$$ = {
6153
+ var propTypes$_ = {
6008
6154
  value: PropTypes.shape({
6009
6155
  color: PropTypes.string,
6010
6156
  alpha: PropTypes.number
@@ -6017,7 +6163,7 @@ var propTypes$$ = {
6017
6163
  onChange: PropTypes.func,
6018
6164
  closeForm: PropTypes.func
6019
6165
  };
6020
- var defaultProps$$ = {
6166
+ var defaultProps$_ = {
6021
6167
  value: null,
6022
6168
  isForm: false,
6023
6169
  isHorizontal: false,
@@ -6041,9 +6187,9 @@ var ColorField = function ColorField(_ref) {
6041
6187
  return color !== null ? tinycolor(color).toHexString() : null;
6042
6188
  }, [color]);
6043
6189
  var previewElement = value !== null && color !== null ? /*#__PURE__*/React.createElement("span", {
6044
- className: styles$n.preview
6190
+ className: styles$m.preview
6045
6191
  }, /*#__PURE__*/React.createElement("span", {
6046
- className: styles$n.color,
6192
+ className: styles$m.color,
6047
6193
  style: _objectSpread({}, getStyleFromColor(value))
6048
6194
  })) : null;
6049
6195
  var onClickReset = useCallback(function () {
@@ -6070,7 +6216,7 @@ var ColorField = function ColorField(_ref) {
6070
6216
  }, props), /*#__PURE__*/React.createElement("div", {
6071
6217
  className: "p-2"
6072
6218
  }, /*#__PURE__*/React.createElement(ColorPickerField, {
6073
- className: styles$n.picker,
6219
+ className: styles$m.picker,
6074
6220
  value: value,
6075
6221
  onChange: onChange,
6076
6222
  disableAlpha: disableAlpha
@@ -6100,32 +6246,32 @@ var ColorField = function ColorField(_ref) {
6100
6246
  }]
6101
6247
  })) : null)));
6102
6248
  };
6103
- ColorField.propTypes = propTypes$$;
6104
- ColorField.defaultProps = defaultProps$$;
6249
+ ColorField.propTypes = propTypes$_;
6250
+ ColorField.defaultProps = defaultProps$_;
6105
6251
  ColorField.withForm = true;
6106
6252
 
6107
6253
  /* eslint-disable react/jsx-props-no-spreading */
6108
- var propTypes$_ = {};
6109
- var defaultProps$_ = {};
6254
+ var propTypes$Z = {};
6255
+ var defaultProps$Z = {};
6110
6256
  var ContainerStyleField = function ContainerStyleField(props) {
6111
6257
  return /*#__PURE__*/React.createElement(Fields, Object.assign({
6112
6258
  isList: true
6113
6259
  }, props));
6114
6260
  };
6115
- ContainerStyleField.propTypes = propTypes$_;
6116
- ContainerStyleField.defaultProps = defaultProps$_;
6261
+ ContainerStyleField.propTypes = propTypes$Z;
6262
+ ContainerStyleField.defaultProps = defaultProps$Z;
6117
6263
 
6118
- var styles$m = {};
6264
+ var styles$l = {};
6119
6265
 
6120
6266
  var _excluded$n = ["value", "fields", "name", "className", "onChange"];
6121
- var propTypes$Z = {
6267
+ var propTypes$Y = {
6122
6268
  value: PropTypes$1.conversation,
6123
6269
  fields: PropTypes$1.formFields,
6124
6270
  name: PropTypes.string.isRequired,
6125
6271
  className: PropTypes.string,
6126
6272
  onChange: PropTypes.func
6127
6273
  };
6128
- var defaultProps$Z = {
6274
+ var defaultProps$Y = {
6129
6275
  value: null,
6130
6276
  fields: null,
6131
6277
  className: null,
@@ -6151,7 +6297,7 @@ var Conversation = function Conversation(_ref) {
6151
6297
  };
6152
6298
  });
6153
6299
  return /*#__PURE__*/React.createElement("div", {
6154
- className: classNames([styles$m.container, _defineProperty({}, className, className !== null)])
6300
+ className: classNames([styles$l.container, _defineProperty({}, className, className !== null)])
6155
6301
  }, /*#__PURE__*/React.createElement(FieldContextProvider, {
6156
6302
  context: {
6157
6303
  options: speakerOptions
@@ -6163,18 +6309,18 @@ var Conversation = function Conversation(_ref) {
6163
6309
  onChange: onChange
6164
6310
  }, props))));
6165
6311
  };
6166
- Conversation.propTypes = propTypes$Z;
6167
- Conversation.defaultProps = defaultProps$Z;
6312
+ Conversation.propTypes = propTypes$Y;
6313
+ Conversation.defaultProps = defaultProps$Y;
6168
6314
 
6169
- var styles$l = {"container":"micromag-fields-custom-answer-container","field":"micromag-fields-custom-answer-field","active":"micromag-fields-custom-answer-active"};
6315
+ var styles$k = {"container":"micromag-fields-custom-answer-container","field":"micromag-fields-custom-answer-field","active":"micromag-fields-custom-answer-active"};
6170
6316
 
6171
6317
  var _excluded$m = ["value", "className", "onChange"];
6172
- var propTypes$Y = {
6318
+ var propTypes$X = {
6173
6319
  value: PropTypes$1.customAnswer,
6174
6320
  className: PropTypes.string,
6175
6321
  onChange: PropTypes.func
6176
6322
  };
6177
- var defaultProps$Y = {
6323
+ var defaultProps$X = {
6178
6324
  value: null,
6179
6325
  className: null,
6180
6326
  onChange: null
@@ -6216,17 +6362,17 @@ var CustomAnswer = function CustomAnswer(_ref) {
6216
6362
  }
6217
6363
  }, [onChange, value]);
6218
6364
  return /*#__PURE__*/React.createElement(Fields, Object.assign({
6219
- className: classNames([styles$l.container, _defineProperty(_defineProperty({}, className, className !== null), styles$l.active, active)]),
6220
- fieldClassName: styles$l.field
6365
+ className: classNames([styles$k.container, _defineProperty(_defineProperty({}, className, className !== null), styles$k.active, active)]),
6366
+ fieldClassName: styles$k.field
6221
6367
  }, props, {
6222
6368
  value: value,
6223
6369
  onChange: onUpdateValue
6224
6370
  }));
6225
6371
  };
6226
- CustomAnswer.propTypes = propTypes$Y;
6227
- CustomAnswer.defaultProps = defaultProps$Y;
6372
+ CustomAnswer.propTypes = propTypes$X;
6373
+ CustomAnswer.defaultProps = defaultProps$X;
6228
6374
 
6229
- var propTypes$X = {
6375
+ var propTypes$W = {
6230
6376
  name: PropTypes.string,
6231
6377
  fields: PropTypes$1.formFields,
6232
6378
  value: PropTypes.object,
@@ -6236,7 +6382,7 @@ var propTypes$X = {
6236
6382
  closeFieldForm: PropTypes.func,
6237
6383
  onChange: PropTypes.func
6238
6384
  };
6239
- var defaultProps$X = {
6385
+ var defaultProps$W = {
6240
6386
  name: null,
6241
6387
  fields: [],
6242
6388
  value: null,
@@ -6294,29 +6440,29 @@ var ElementField = function ElementField(_ref) {
6294
6440
  isList: isList
6295
6441
  });
6296
6442
  };
6297
- ElementField.propTypes = propTypes$X;
6298
- ElementField.defaultProps = defaultProps$X;
6443
+ ElementField.propTypes = propTypes$W;
6444
+ ElementField.defaultProps = defaultProps$W;
6299
6445
 
6300
6446
  /* eslint-disable react/jsx-props-no-spreading */
6301
- var propTypes$W = {};
6302
- var defaultProps$W = {};
6447
+ var propTypes$V = {};
6448
+ var defaultProps$V = {};
6303
6449
  var ElementList = function ElementList(props) {
6304
6450
  return /*#__PURE__*/React.createElement(ElementField, Object.assign({
6305
6451
  isList: true
6306
6452
  }, props));
6307
6453
  };
6308
- ElementList.propTypes = propTypes$W;
6309
- ElementList.defaultProps = defaultProps$W;
6454
+ ElementList.propTypes = propTypes$V;
6455
+ ElementList.defaultProps = defaultProps$V;
6310
6456
 
6311
- var styles$k = {"container":"micromag-fields-fit-container","frame":"micromag-fields-fit-frame","inner":"micromag-fields-fit-inner","button":"micromag-fields-fit-button","shape":"micromag-fields-fit-shape","media":"micromag-fields-fit-media","cover":"micromag-fields-fit-cover","contain":"micromag-fields-fit-contain","fill":"micromag-fields-fit-fill","none":"micromag-fields-fit-none"};
6457
+ var styles$j = {"container":"micromag-fields-fit-container","frame":"micromag-fields-fit-frame","inner":"micromag-fields-fit-inner","button":"micromag-fields-fit-button","shape":"micromag-fields-fit-shape","media":"micromag-fields-fit-media","cover":"micromag-fields-fit-cover","contain":"micromag-fields-fit-contain","fill":"micromag-fields-fit-fill","none":"micromag-fields-fit-none"};
6312
6458
 
6313
- var propTypes$V = {
6459
+ var propTypes$U = {
6314
6460
  values: PropTypes.arrayOf(PropTypes$1.objectFitSize),
6315
6461
  value: PropTypes$1.objectFitSize,
6316
6462
  className: PropTypes.string,
6317
6463
  onChange: PropTypes.func
6318
6464
  };
6319
- var defaultProps$V = {
6465
+ var defaultProps$U = {
6320
6466
  values: ['cover', 'contain', null],
6321
6467
  // TODO, maybe add 'fill', 'scale-down', ?
6322
6468
  value: null,
@@ -6333,30 +6479,30 @@ var ObjectFitSize = function ObjectFitSize(_ref) {
6333
6479
  return {
6334
6480
  value: val,
6335
6481
  label: /*#__PURE__*/React.createElement("div", {
6336
- className: classNames([styles$k.frame, styles$k[val || 'none']])
6482
+ className: classNames([styles$j.frame, styles$j[val || 'none']])
6337
6483
  }, /*#__PURE__*/React.createElement("div", {
6338
- className: styles$k.shape
6484
+ className: styles$j.shape
6339
6485
  }, /*#__PURE__*/React.createElement("div", {
6340
- className: styles$k.inner
6486
+ className: styles$j.inner
6341
6487
  }, /*#__PURE__*/React.createElement("div", {
6342
- className: styles$k.media
6488
+ className: styles$j.media
6343
6489
  }))))
6344
6490
  };
6345
6491
  }),
6346
6492
  value: value,
6347
- className: classNames([styles$k.container, _defineProperty({}, className, className !== null)]),
6348
- buttonClassName: styles$k.button,
6493
+ className: classNames([styles$j.container, _defineProperty({}, className, className !== null)]),
6494
+ buttonClassName: styles$j.button,
6349
6495
  onChange: onChange
6350
6496
  });
6351
6497
  };
6352
- ObjectFitSize.propTypes = propTypes$V;
6353
- ObjectFitSize.defaultProps = defaultProps$V;
6498
+ ObjectFitSize.propTypes = propTypes$U;
6499
+ ObjectFitSize.defaultProps = defaultProps$U;
6354
6500
 
6355
6501
  /* eslint-disable react/jsx-props-no-spreading */
6356
- var propTypes$U = {
6502
+ var propTypes$T = {
6357
6503
  value: PropTypes$1.fontMedia
6358
6504
  };
6359
- var defaultProps$U = {
6505
+ var defaultProps$T = {
6360
6506
  value: null
6361
6507
  };
6362
6508
  var FontField = function FontField(props) {
@@ -6372,8 +6518,8 @@ var FontField = function FontField(props) {
6372
6518
  type: "font"
6373
6519
  }));
6374
6520
  };
6375
- FontField.propTypes = propTypes$U;
6376
- FontField.defaultProps = defaultProps$U;
6521
+ FontField.propTypes = propTypes$T;
6522
+ FontField.defaultProps = defaultProps$T;
6377
6523
  FontField.withForm = true;
6378
6524
 
6379
6525
  var _excluded$l = ["value", "onChange", "closeForm", "maxFontsVisible", "isForm", "canClear"],
@@ -6384,7 +6530,7 @@ var normalize = function normalize(str) {
6384
6530
  var fontEquals = function fontEquals(fontA, fontB) {
6385
6531
  return fontA === fontB || isObject(fontA) && isObject(fontB) && fontA.type === fontB.type && fontA.name === fontB.name;
6386
6532
  };
6387
- var propTypes$T = {
6533
+ var propTypes$S = {
6388
6534
  value: PropTypes$1.font,
6389
6535
  isForm: PropTypes.bool,
6390
6536
  isHorizontal: PropTypes.bool,
@@ -6394,7 +6540,7 @@ var propTypes$T = {
6394
6540
  onChange: PropTypes.func,
6395
6541
  closeForm: PropTypes.func
6396
6542
  };
6397
- var defaultProps$T = {
6543
+ var defaultProps$S = {
6398
6544
  value: null,
6399
6545
  isForm: false,
6400
6546
  isHorizontal: false,
@@ -6582,15 +6728,15 @@ var FontFamily = function FontFamily(_ref) {
6582
6728
  }]
6583
6729
  }))) : null);
6584
6730
  };
6585
- FontFamily.propTypes = propTypes$T;
6586
- FontFamily.defaultProps = defaultProps$T;
6731
+ FontFamily.propTypes = propTypes$S;
6732
+ FontFamily.defaultProps = defaultProps$S;
6587
6733
  FontFamily.withForm = true;
6588
6734
 
6589
6735
  /* eslint-disable react/jsx-props-no-spreading */
6590
- var propTypes$S = {
6736
+ var propTypes$R = {
6591
6737
  value: PropTypes$1.imageMedias
6592
6738
  };
6593
- var defaultProps$S = {
6739
+ var defaultProps$R = {
6594
6740
  value: null
6595
6741
  };
6596
6742
  var FontsField = function FontsField(props) {
@@ -6612,12 +6758,12 @@ var FontsField = function FontsField(props) {
6612
6758
  itemComponent: FontField
6613
6759
  }, props));
6614
6760
  };
6615
- FontsField.propTypes = propTypes$S;
6616
- FontsField.defaultProps = defaultProps$S;
6761
+ FontsField.propTypes = propTypes$R;
6762
+ FontsField.defaultProps = defaultProps$R;
6617
6763
 
6618
- var styles$j = {"container":"micromag-fields-number-container","clearButton":"micromag-fields-number-clearButton","input":"micromag-fields-number-input","arrow":"micromag-fields-number-arrow","arrowIcon":"micromag-fields-number-arrowIcon","dataListItems":"micromag-fields-number-dataListItems","dataListItem":"micromag-fields-number-dataListItem","dataListItemButton":"micromag-fields-number-dataListItemButton","fullWidth":"micromag-fields-number-fullWidth"};
6764
+ var styles$i = {"container":"micromag-fields-number-container","clearButton":"micromag-fields-number-clearButton","input":"micromag-fields-number-input","arrow":"micromag-fields-number-arrow","arrowIcon":"micromag-fields-number-arrowIcon","dataListItems":"micromag-fields-number-dataListItems","dataListItem":"micromag-fields-number-dataListItem","dataListItemButton":"micromag-fields-number-dataListItemButton","fullWidth":"micromag-fields-number-fullWidth"};
6619
6765
 
6620
- var propTypes$R = {
6766
+ var propTypes$Q = {
6621
6767
  name: PropTypes.string,
6622
6768
  value: PropTypes.number,
6623
6769
  min: PropTypes.number,
@@ -6632,7 +6778,7 @@ var propTypes$R = {
6632
6778
  className: PropTypes.string,
6633
6779
  onChange: PropTypes.func
6634
6780
  };
6635
- var defaultProps$R = {
6781
+ var defaultProps$Q = {
6636
6782
  name: null,
6637
6783
  value: null,
6638
6784
  min: null,
@@ -6697,10 +6843,10 @@ var NumberField = function NumberField(_ref) {
6697
6843
  }
6698
6844
  }, [onChange]);
6699
6845
  return /*#__PURE__*/React.createElement("div", {
6700
- className: classNames([styles$j.container, _defineProperty({}, className, className !== null), _defineProperty({}, styles$j.fullWidth, fullWidth)])
6846
+ className: classNames([styles$i.container, _defineProperty({}, className, className !== null), _defineProperty({}, styles$i.fullWidth, fullWidth)])
6701
6847
  }, /*#__PURE__*/React.createElement("input", {
6702
6848
  type: "number",
6703
- className: classNames([styles$j.input, 'form-control', 'ms-auto']),
6849
+ className: classNames([styles$i.input, 'form-control', 'ms-auto']),
6704
6850
  name: name,
6705
6851
  value: value !== null ? value : '',
6706
6852
  min: min,
@@ -6712,21 +6858,21 @@ var NumberField = function NumberField(_ref) {
6712
6858
  onBlur: onInputBlur,
6713
6859
  placeholder: placeholder
6714
6860
  }), value === null && hasDataList ? /*#__PURE__*/React.createElement("div", {
6715
- className: styles$j.arrow
6861
+ className: styles$i.arrow
6716
6862
  }, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
6717
- className: styles$j.arrowIcon,
6863
+ className: styles$i.arrowIcon,
6718
6864
  icon: faChevronDown
6719
6865
  })) : null, value !== null ? /*#__PURE__*/React.createElement(ClearButton, {
6720
- className: styles$j.clearButton,
6866
+ className: styles$i.clearButton,
6721
6867
  onClick: onClear
6722
6868
  }) : null, hasDataList && dataListActive ? /*#__PURE__*/React.createElement("ul", {
6723
- className: styles$j.dataListItems
6869
+ className: styles$i.dataListItems
6724
6870
  }, dataList.map(function (dataListValue) {
6725
6871
  return /*#__PURE__*/React.createElement("li", {
6726
6872
  key: "data-list-".concat(dataListValue),
6727
- className: styles$j.dataListItem
6873
+ className: styles$i.dataListItem
6728
6874
  }, /*#__PURE__*/React.createElement("button", {
6729
- className: styles$j.dataListItemButton,
6875
+ className: styles$i.dataListItemButton,
6730
6876
  type: "button",
6731
6877
  onTouchStart: function onTouchStart() {
6732
6878
  onDataListClick(dataListValue);
@@ -6737,14 +6883,14 @@ var NumberField = function NumberField(_ref) {
6737
6883
  }, dataListValue));
6738
6884
  })) : null);
6739
6885
  };
6740
- NumberField.propTypes = propTypes$R;
6741
- NumberField.defaultProps = defaultProps$R;
6886
+ NumberField.propTypes = propTypes$Q;
6887
+ NumberField.defaultProps = defaultProps$Q;
6742
6888
 
6743
6889
  var _excluded$k = ["sizes"];
6744
- var propTypes$Q = {
6890
+ var propTypes$P = {
6745
6891
  sizes: PropTypes.arrayOf(PropTypes.number)
6746
6892
  };
6747
- var defaultProps$Q = {
6893
+ var defaultProps$P = {
6748
6894
  sizes: [12, 14, 16, 18, 20, 24, 28, 32, 48]
6749
6895
  };
6750
6896
  var FontSize = function FontSize(_ref) {
@@ -6754,12 +6900,12 @@ var FontSize = function FontSize(_ref) {
6754
6900
  dataList: sizes
6755
6901
  }));
6756
6902
  };
6757
- FontSize.propTypes = propTypes$Q;
6758
- FontSize.defaultProps = defaultProps$Q;
6903
+ FontSize.propTypes = propTypes$P;
6904
+ FontSize.defaultProps = defaultProps$P;
6759
6905
  FontSize.isHorizontal = true;
6760
6906
 
6761
6907
  var _excluded$j = ["value", "options", "onChange"];
6762
- var propTypes$P = {
6908
+ var propTypes$O = {
6763
6909
  value: PropTypes.shape({}),
6764
6910
  options: PropTypes.arrayOf(PropTypes.shape({
6765
6911
  value: PropTypes.string,
@@ -6767,7 +6913,7 @@ var propTypes$P = {
6767
6913
  })),
6768
6914
  onChange: PropTypes.func
6769
6915
  };
6770
- var defaultProps$P = {
6916
+ var defaultProps$O = {
6771
6917
  options: [{
6772
6918
  value: 'bold',
6773
6919
  label: /*#__PURE__*/React.createElement(FontAwesomeIcon, {
@@ -6813,16 +6959,16 @@ var FontStyles$1 = function FontStyles(_ref) {
6813
6959
  onChange: onInputChange
6814
6960
  }, props));
6815
6961
  };
6816
- FontStyles$1.propTypes = propTypes$P;
6817
- FontStyles$1.defaultProps = defaultProps$P;
6962
+ FontStyles$1.propTypes = propTypes$O;
6963
+ FontStyles$1.defaultProps = defaultProps$O;
6818
6964
 
6819
6965
  var _excluded$i = ["value", "options", "onChange"];
6820
- var propTypes$O = {
6966
+ var propTypes$N = {
6821
6967
  value: PropTypes.shape({}),
6822
6968
  options: PropTypes.arrayOf(PropTypes.object),
6823
6969
  onChange: PropTypes.func
6824
6970
  };
6825
- var defaultProps$O = {
6971
+ var defaultProps$N = {
6826
6972
  options: [{
6827
6973
  value: 'capitalize',
6828
6974
  label: /*#__PURE__*/React.createElement("strong", null, "Aa")
@@ -6848,17 +6994,17 @@ var TextTransform = function TextTransform(_ref) {
6848
6994
  uncheckable: true
6849
6995
  }, props));
6850
6996
  };
6851
- TextTransform.propTypes = propTypes$O;
6852
- TextTransform.defaultProps = defaultProps$O;
6997
+ TextTransform.propTypes = propTypes$N;
6998
+ TextTransform.defaultProps = defaultProps$N;
6853
6999
  TextTransform.isHorizontal = true;
6854
7000
 
6855
7001
  var _excluded$h = ["value", "transformName", "onChange"];
6856
- var propTypes$N = {
7002
+ var propTypes$M = {
6857
7003
  value: PropTypes.shape({}),
6858
7004
  transformName: PropTypes.string,
6859
7005
  onChange: PropTypes.func
6860
7006
  };
6861
- var defaultProps$N = {
7007
+ var defaultProps$M = {
6862
7008
  transformName: 'transform',
6863
7009
  value: null,
6864
7010
  onChange: null
@@ -6880,17 +7026,17 @@ var FontStyleTransform = function FontStyleTransform(_ref) {
6880
7026
  onChange: onTransformChange
6881
7027
  }, props));
6882
7028
  };
6883
- FontStyleTransform.propTypes = propTypes$N;
6884
- FontStyleTransform.defaultProps = defaultProps$N;
7029
+ FontStyleTransform.propTypes = propTypes$M;
7030
+ FontStyleTransform.defaultProps = defaultProps$M;
6885
7031
  FontStyleTransform.isHorizontal = true;
6886
7032
 
6887
7033
  var _excluded$g = ["value", "options", "onChange"];
6888
- var propTypes$M = {
7034
+ var propTypes$L = {
6889
7035
  value: PropTypes.string,
6890
7036
  options: PropTypes.arrayOf(PropTypes.object),
6891
7037
  onChange: PropTypes.func
6892
7038
  };
6893
- var defaultProps$M = {
7039
+ var defaultProps$L = {
6894
7040
  options: [{
6895
7041
  value: 'left',
6896
7042
  label: /*#__PURE__*/React.createElement(FontAwesomeIcon, {
@@ -6922,19 +7068,19 @@ var TextAlign = function TextAlign(_ref) {
6922
7068
  uncheckable: true
6923
7069
  }, props));
6924
7070
  };
6925
- TextAlign.propTypes = propTypes$M;
6926
- TextAlign.defaultProps = defaultProps$M;
7071
+ TextAlign.propTypes = propTypes$L;
7072
+ TextAlign.defaultProps = defaultProps$L;
6927
7073
 
6928
- var styles$i = {"item":"micromag-fields-font-style-with-align-item","button":"micromag-fields-font-style-with-align-button"};
7074
+ var styles$h = {"item":"micromag-fields-font-style-with-align-item","button":"micromag-fields-font-style-with-align-button"};
6929
7075
 
6930
- var propTypes$L = {
7076
+ var propTypes$K = {
6931
7077
  value: PropTypes.shape({}),
6932
7078
  fontStyleName: PropTypes.string,
6933
7079
  alignName: PropTypes.string,
6934
7080
  className: PropTypes.string,
6935
7081
  onChange: PropTypes.func
6936
7082
  };
6937
- var defaultProps$L = {
7083
+ var defaultProps$K = {
6938
7084
  fontStyleName: 'fontStyle',
6939
7085
  alignName: 'align',
6940
7086
  value: null,
@@ -6962,29 +7108,29 @@ var FontStyles = function FontStyles(_ref) {
6962
7108
  }
6963
7109
  }, [value, alignName, onChange]);
6964
7110
  return /*#__PURE__*/React.createElement("div", {
6965
- className: classNames(['d-flex', styles$i.container, _defineProperty({}, className, className !== null)])
7111
+ className: classNames(['d-flex', styles$h.container, _defineProperty({}, className, className !== null)])
6966
7112
  }, /*#__PURE__*/React.createElement(FontStyles$1, {
6967
- className: styles$i.item,
6968
- buttonClassName: styles$i.button,
7113
+ className: styles$h.item,
7114
+ buttonClassName: styles$h.button,
6969
7115
  value: fontStyleValue,
6970
7116
  onChange: onFontStyleChange
6971
7117
  }), /*#__PURE__*/React.createElement(TextAlign, {
6972
- className: styles$i.item,
6973
- buttonClassName: styles$i.button,
7118
+ className: styles$h.item,
7119
+ buttonClassName: styles$h.button,
6974
7120
  value: alignValue,
6975
7121
  onChange: onAlignChange
6976
7122
  }));
6977
7123
  };
6978
- FontStyles.propTypes = propTypes$L;
6979
- FontStyles.defaultProps = defaultProps$L;
7124
+ FontStyles.propTypes = propTypes$K;
7125
+ FontStyles.defaultProps = defaultProps$K;
6980
7126
 
6981
- var propTypes$K = {
7127
+ var propTypes$J = {
6982
7128
  value: PropTypes.string,
6983
7129
  sizes: PropTypes.arrayOf(PropTypes.number),
6984
7130
  className: PropTypes.string,
6985
7131
  onChange: PropTypes.func
6986
7132
  };
6987
- var defaultProps$K = {
7133
+ var defaultProps$J = {
6988
7134
  value: null,
6989
7135
  sizes: [100, 200, 300, 400, 500, 600, 700, 800, 900],
6990
7136
  className: null,
@@ -7001,23 +7147,23 @@ var FontWeight = function FontWeight(_ref) {
7001
7147
  max: sizes[sizes.length - 1],
7002
7148
  marks: sizes,
7003
7149
  marksStep: 100,
7004
- className: classNames([styles$v.container, _defineProperty({}, className, className !== null)]),
7150
+ className: classNames([styles$u.container, _defineProperty({}, className, className !== null)]),
7005
7151
  onChange: onChange
7006
7152
  });
7007
7153
  };
7008
- FontWeight.propTypes = propTypes$K;
7009
- FontWeight.defaultProps = defaultProps$K;
7154
+ FontWeight.propTypes = propTypes$J;
7155
+ FontWeight.defaultProps = defaultProps$J;
7010
7156
 
7011
- var styles$h = {"container":"micromag-fields-geo-position-container","autoComplete":"micromag-fields-geo-position-autoComplete","address":"micromag-fields-geo-position-address","map":"micromag-fields-geo-position-map","pin":"micromag-fields-geo-position-pin","infos":"micromag-fields-geo-position-infos","coords":"micromag-fields-geo-position-coords","coord":"micromag-fields-geo-position-coord"};
7157
+ var styles$g = {"container":"micromag-fields-geo-position-container","autoComplete":"micromag-fields-geo-position-autoComplete","address":"micromag-fields-geo-position-address","map":"micromag-fields-geo-position-map","pin":"micromag-fields-geo-position-pin","infos":"micromag-fields-geo-position-infos","coords":"micromag-fields-geo-position-coords","coord":"micromag-fields-geo-position-coord"};
7012
7158
 
7013
- var propTypes$J = {
7159
+ var propTypes$I = {
7014
7160
  value: PropTypes$1.geoPosition,
7015
7161
  defaultCenter: PropTypes$1.geoPosition,
7016
7162
  defaultZoom: PropTypes.number,
7017
7163
  className: PropTypes.string,
7018
7164
  onChange: PropTypes.func
7019
7165
  };
7020
- var defaultProps$J = {
7166
+ var defaultProps$I = {
7021
7167
  value: null,
7022
7168
  defaultCenter: {
7023
7169
  lat: 45.5,
@@ -7144,9 +7290,9 @@ var GeoPosition = function GeoPosition(_ref2) {
7144
7290
  };
7145
7291
  }, [client]);
7146
7292
  return /*#__PURE__*/React.createElement("div", {
7147
- className: classNames([styles$h.container, _defineProperty({}, className, className !== null)])
7293
+ className: classNames([styles$g.container, _defineProperty({}, className, className !== null)])
7148
7294
  }, /*#__PURE__*/React.createElement("div", {
7149
- className: classNames([styles$h.autoComplete, 'input-group'])
7295
+ className: classNames([styles$g.autoComplete, 'input-group'])
7150
7296
  }, /*#__PURE__*/React.createElement("button", {
7151
7297
  type: "button",
7152
7298
  onClick: onSearchButtonClick,
@@ -7156,7 +7302,7 @@ var GeoPosition = function GeoPosition(_ref2) {
7156
7302
  })), /*#__PURE__*/React.createElement("input", {
7157
7303
  type: "text",
7158
7304
  ref: addressInputRef,
7159
- className: classNames([styles$h.address, 'form-control']),
7305
+ className: classNames([styles$g.address, 'form-control']),
7160
7306
  value: address,
7161
7307
  placeholder: intl.formatMessage({
7162
7308
  id: "KB7N5E",
@@ -7170,7 +7316,7 @@ var GeoPosition = function GeoPosition(_ref2) {
7170
7316
  setAddress(e.target.value);
7171
7317
  }
7172
7318
  })), /*#__PURE__*/React.createElement("div", {
7173
- className: styles$h.map
7319
+ className: styles$g.map
7174
7320
  }, /*#__PURE__*/React.createElement(Map, {
7175
7321
  center: value || defaultCenter,
7176
7322
  zoom: zoom,
@@ -7180,11 +7326,11 @@ var GeoPosition = function GeoPosition(_ref2) {
7180
7326
  withoutStyle: true,
7181
7327
  zoomControl: true
7182
7328
  }), mapReady ? /*#__PURE__*/React.createElement("img", {
7183
- className: styles$h.pin,
7329
+ className: styles$g.pin,
7184
7330
  src: Pin,
7185
7331
  alt: "Pin"
7186
7332
  }) : null), /*#__PURE__*/React.createElement("div", {
7187
- className: styles$h.infos
7333
+ className: styles$g.infos
7188
7334
  }, /*#__PURE__*/React.createElement(FormattedMessage, {
7189
7335
  id: "XhgKcw",
7190
7336
  defaultMessage: [{
@@ -7192,11 +7338,11 @@ var GeoPosition = function GeoPosition(_ref2) {
7192
7338
  "value": "Move the map to position the place"
7193
7339
  }]
7194
7340
  })), /*#__PURE__*/React.createElement("div", {
7195
- className: styles$h.coords
7341
+ className: styles$g.coords
7196
7342
  }, /*#__PURE__*/React.createElement("label", {
7197
- className: styles$h.coord
7343
+ className: styles$g.coord
7198
7344
  }, /*#__PURE__*/React.createElement("span", {
7199
- className: styles$h.coordLabel
7345
+ className: styles$g.coordLabel
7200
7346
  }, /*#__PURE__*/React.createElement(FormattedMessage, {
7201
7347
  id: "zDH24s",
7202
7348
  defaultMessage: [{
@@ -7212,9 +7358,9 @@ var GeoPosition = function GeoPosition(_ref2) {
7212
7358
  onChange: onLatitudeChange,
7213
7359
  fullWidth: true
7214
7360
  })), /*#__PURE__*/React.createElement("label", {
7215
- className: styles$h.coord
7361
+ className: styles$g.coord
7216
7362
  }, /*#__PURE__*/React.createElement("span", {
7217
- className: styles$h.coordLabel
7363
+ className: styles$g.coordLabel
7218
7364
  }, /*#__PURE__*/React.createElement(FormattedMessage, {
7219
7365
  id: "THKV4v",
7220
7366
  defaultMessage: [{
@@ -7231,12 +7377,12 @@ var GeoPosition = function GeoPosition(_ref2) {
7231
7377
  fullWidth: true
7232
7378
  }))));
7233
7379
  };
7234
- GeoPosition.propTypes = propTypes$J;
7235
- GeoPosition.defaultProps = defaultProps$J;
7380
+ GeoPosition.propTypes = propTypes$I;
7381
+ GeoPosition.defaultProps = defaultProps$I;
7236
7382
 
7237
- var styles$g = {"container":"micromag-fields-grid-layout-container","button":"micromag-fields-grid-layout-button","grid":"micromag-fields-grid-layout-grid","column":"micromag-fields-grid-layout-column"};
7383
+ var styles$f = {"container":"micromag-fields-grid-layout-container","button":"micromag-fields-grid-layout-button","grid":"micromag-fields-grid-layout-grid","column":"micromag-fields-grid-layout-column"};
7238
7384
 
7239
- var propTypes$I = {
7385
+ var propTypes$H = {
7240
7386
  grids: PropTypes.arrayOf(PropTypes$1.gridLayout),
7241
7387
  value: PropTypes.arrayOf(PropTypes.shape({
7242
7388
  rows: PropTypes.number,
@@ -7245,7 +7391,7 @@ var propTypes$I = {
7245
7391
  className: PropTypes.string,
7246
7392
  onChange: PropTypes.func
7247
7393
  };
7248
- var defaultProps$I = {
7394
+ var defaultProps$H = {
7249
7395
  grids: [],
7250
7396
  value: null,
7251
7397
  className: null,
@@ -7262,27 +7408,27 @@ var GridLayout = function GridLayout(_ref) {
7262
7408
  value: layout,
7263
7409
  label: /*#__PURE__*/React.createElement(Grid, {
7264
7410
  layout: layout,
7265
- className: styles$g.grid,
7266
- columnClassName: styles$g.column
7411
+ className: styles$f.grid,
7412
+ columnClassName: styles$f.column
7267
7413
  })
7268
7414
  };
7269
7415
  }),
7270
7416
  value: value !== null ? grids.find(function (it) {
7271
7417
  return getGridLayoutName(it) === getGridLayoutName(value);
7272
7418
  }) || null : null,
7273
- className: classNames([styles$g.container, _defineProperty({}, className, className !== null)]),
7274
- buttonClassName: styles$g.button,
7419
+ className: classNames([styles$f.container, _defineProperty({}, className, className !== null)]),
7420
+ buttonClassName: styles$f.button,
7275
7421
  onChange: onChange
7276
7422
  });
7277
7423
  };
7278
- GridLayout.propTypes = propTypes$I;
7279
- GridLayout.defaultProps = defaultProps$I;
7424
+ GridLayout.propTypes = propTypes$H;
7425
+ GridLayout.defaultProps = defaultProps$H;
7280
7426
 
7281
7427
  /* eslint-disable react/jsx-props-no-spreading */
7282
- var propTypes$H = {
7428
+ var propTypes$G = {
7283
7429
  value: PropTypes$1.imageMedia
7284
7430
  };
7285
- var defaultProps$H = {
7431
+ var defaultProps$G = {
7286
7432
  value: null
7287
7433
  };
7288
7434
  var ImageField = function ImageField(props) {
@@ -7298,15 +7444,15 @@ var ImageField = function ImageField(props) {
7298
7444
  type: "image"
7299
7445
  }));
7300
7446
  };
7301
- ImageField.propTypes = propTypes$H;
7302
- ImageField.defaultProps = defaultProps$H;
7447
+ ImageField.propTypes = propTypes$G;
7448
+ ImageField.defaultProps = defaultProps$G;
7303
7449
  ImageField.withForm = true;
7304
7450
 
7305
7451
  /* eslint-disable react/jsx-props-no-spreading */
7306
- var propTypes$G = {
7452
+ var propTypes$F = {
7307
7453
  value: PropTypes$1.imageMedias
7308
7454
  };
7309
- var defaultProps$G = {
7455
+ var defaultProps$F = {
7310
7456
  value: null
7311
7457
  };
7312
7458
  var ImagesField = function ImagesField(props) {
@@ -7328,27 +7474,27 @@ var ImagesField = function ImagesField(props) {
7328
7474
  itemComponent: ImageField
7329
7475
  }, props));
7330
7476
  };
7331
- ImagesField.propTypes = propTypes$G;
7332
- ImagesField.defaultProps = defaultProps$G;
7477
+ ImagesField.propTypes = propTypes$F;
7478
+ ImagesField.defaultProps = defaultProps$F;
7333
7479
 
7334
7480
  /* eslint-disable react/jsx-props-no-spreading */
7335
- var propTypes$F = {};
7336
- var defaultProps$F = {};
7481
+ var propTypes$E = {};
7482
+ var defaultProps$E = {};
7337
7483
  var ImageStyleField = function ImageStyleField(props) {
7338
7484
  return /*#__PURE__*/React.createElement(Fields, Object.assign({
7339
7485
  isList: true
7340
7486
  }, props));
7341
7487
  };
7342
- ImageStyleField.propTypes = propTypes$F;
7343
- ImageStyleField.defaultProps = defaultProps$F;
7488
+ ImageStyleField.propTypes = propTypes$E;
7489
+ ImageStyleField.defaultProps = defaultProps$E;
7344
7490
 
7345
7491
  /* eslint-disable react/jsx-props-no-spreading */
7346
7492
  // import ImageField from './Image';
7347
7493
 
7348
- var propTypes$E = {
7494
+ var propTypes$D = {
7349
7495
  value: PropTypes$1.imageMedias
7350
7496
  };
7351
- var defaultProps$E = {
7497
+ var defaultProps$D = {
7352
7498
  value: null
7353
7499
  };
7354
7500
  var ImagesWithCaptionField = function ImagesWithCaptionField(props) {
@@ -7369,10 +7515,10 @@ var ImagesWithCaptionField = function ImagesWithCaptionField(props) {
7369
7515
  })
7370
7516
  }, props));
7371
7517
  };
7372
- ImagesWithCaptionField.propTypes = propTypes$E;
7373
- ImagesWithCaptionField.defaultProps = defaultProps$E;
7518
+ ImagesWithCaptionField.propTypes = propTypes$D;
7519
+ ImagesWithCaptionField.defaultProps = defaultProps$D;
7374
7520
 
7375
- var propTypes$D = {
7521
+ var propTypes$C = {
7376
7522
  id: PropTypes.string,
7377
7523
  value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
7378
7524
  errors: PropTypes$1.errors,
@@ -7380,7 +7526,7 @@ var propTypes$D = {
7380
7526
  className: PropTypes.string,
7381
7527
  onChange: PropTypes.func
7382
7528
  };
7383
- var defaultProps$D = {
7529
+ var defaultProps$C = {
7384
7530
  id: null,
7385
7531
  value: null,
7386
7532
  errors: null,
@@ -7409,16 +7555,16 @@ var TextareaField = function TextareaField(_ref) {
7409
7555
  required: required
7410
7556
  });
7411
7557
  };
7412
- TextareaField.propTypes = propTypes$D;
7413
- TextareaField.defaultProps = defaultProps$D;
7558
+ TextareaField.propTypes = propTypes$C;
7559
+ TextareaField.defaultProps = defaultProps$C;
7414
7560
 
7415
7561
  var _excluded$f = ["value", "onChange", "multiline"];
7416
- var propTypes$C = {
7562
+ var propTypes$B = {
7417
7563
  value: PropTypes$1.inputElement,
7418
7564
  multiline: PropTypes.bool,
7419
7565
  onChange: PropTypes.func
7420
7566
  };
7421
- var defaultProps$C = {
7567
+ var defaultProps$B = {
7422
7568
  multiline: false,
7423
7569
  value: null,
7424
7570
  onChange: null
@@ -7445,19 +7591,19 @@ var TextElement$1 = function TextElement(_ref) {
7445
7591
  onChange: onLabelChange
7446
7592
  }));
7447
7593
  };
7448
- TextElement$1.propTypes = propTypes$C;
7449
- TextElement$1.defaultProps = defaultProps$C;
7594
+ TextElement$1.propTypes = propTypes$B;
7595
+ TextElement$1.defaultProps = defaultProps$B;
7450
7596
 
7451
- var styles$f = {"container":"micromag-fields-input-group-container"};
7597
+ var styles$e = {"container":"micromag-fields-input-group-container"};
7452
7598
 
7453
- var propTypes$B = {
7599
+ var propTypes$A = {
7454
7600
  prepend: PropTypes.node,
7455
7601
  children: PropTypes.node,
7456
7602
  append: PropTypes.node,
7457
7603
  size: PropTypes.oneOf([null, 'sm', 'lg']),
7458
7604
  className: PropTypes.string
7459
7605
  };
7460
- var defaultProps$B = {
7606
+ var defaultProps$A = {
7461
7607
  prepend: null,
7462
7608
  children: null,
7463
7609
  append: null,
@@ -7471,20 +7617,20 @@ var InputGroup = function InputGroup(_ref) {
7471
7617
  size = _ref.size,
7472
7618
  className = _ref.className;
7473
7619
  return /*#__PURE__*/React.createElement("div", {
7474
- className: classNames(['input-group', _defineProperty({}, "input-group-".concat(size), size !== null), styles$f.container, _defineProperty({}, className, className !== null)])
7620
+ className: classNames(['input-group', _defineProperty({}, "input-group-".concat(size), size !== null), styles$e.container, _defineProperty({}, className, className !== null)])
7475
7621
  }, isString(prepend) ? /*#__PURE__*/React.createElement("div", {
7476
7622
  className: "input-group-text"
7477
7623
  }, prepend) : prepend, children, isString(append) ? /*#__PURE__*/React.createElement("div", {
7478
7624
  className: "input-group-text"
7479
7625
  }, append) : append);
7480
7626
  };
7481
- InputGroup.propTypes = propTypes$B;
7482
- InputGroup.defaultProps = defaultProps$B;
7627
+ InputGroup.propTypes = propTypes$A;
7628
+ InputGroup.defaultProps = defaultProps$A;
7483
7629
 
7484
- var styles$e = {"buttonLabel":"micromag-fields-keypad-layout-buttonLabel","keypad":"micromag-fields-keypad-layout-keypad","preview":"micromag-fields-keypad-layout-preview","buttonVisual":"micromag-fields-keypad-layout-buttonVisual"};
7630
+ var styles$d = {"buttonLabel":"micromag-fields-keypad-layout-buttonLabel","keypad":"micromag-fields-keypad-layout-keypad","preview":"micromag-fields-keypad-layout-preview","buttonVisual":"micromag-fields-keypad-layout-buttonVisual"};
7485
7631
 
7486
7632
  var _excluded$e = ["value", "onChange", "closeForm"];
7487
- var propTypes$A = {
7633
+ var propTypes$z = {
7488
7634
  value: PropTypes.shape({
7489
7635
  color: PropTypes.string,
7490
7636
  alpha: PropTypes.number
@@ -7493,7 +7639,7 @@ var propTypes$A = {
7493
7639
  onChange: PropTypes.func,
7494
7640
  closeForm: PropTypes.func
7495
7641
  };
7496
- var defaultProps$A = {
7642
+ var defaultProps$z = {
7497
7643
  value: null,
7498
7644
  className: null,
7499
7645
  onChange: null,
@@ -7513,22 +7659,22 @@ var KeypadLayout = function KeypadLayout(_ref) {
7513
7659
  spacing = _ref2$spacing === void 0 ? null : _ref2$spacing;
7514
7660
  var finalSpacingPreview = Math.max(0, Math.min(4, spacing));
7515
7661
  value !== null ? /*#__PURE__*/React.createElement(Keypad, {
7516
- className: styles$e.keypad,
7662
+ className: styles$d.keypad,
7517
7663
  align: columnAlign,
7518
7664
  columns: columns,
7519
7665
  spacing: finalSpacingPreview,
7520
7666
  items: [1, 2, 3, 4].map(function (n) {
7521
7667
  return /*#__PURE__*/React.createElement("div", {
7522
7668
  key: n,
7523
- className: classNames([styles$e.preview, {
7669
+ className: classNames([styles$d.preview, {
7524
7670
  // [styles.isPopupEmpty]: isPopupEmpty,
7525
7671
  }])
7526
7672
  }, /*#__PURE__*/React.createElement(PlaceholderImage, {
7527
- className: styles$e.buttonVisual,
7673
+ className: styles$d.buttonVisual,
7528
7674
  height: 20
7529
7675
  }), /*#__PURE__*/React.createElement(PlaceholderText, {
7530
7676
  lines: 1,
7531
- className: styles$e.buttonLabel
7677
+ className: styles$d.buttonLabel
7532
7678
  }));
7533
7679
  })
7534
7680
  }) : null;
@@ -7551,10 +7697,10 @@ var KeypadLayout = function KeypadLayout(_ref) {
7551
7697
  })
7552
7698
  }, props)));
7553
7699
  };
7554
- KeypadLayout.propTypes = propTypes$A;
7555
- KeypadLayout.defaultProps = defaultProps$A;
7700
+ KeypadLayout.propTypes = propTypes$z;
7701
+ KeypadLayout.defaultProps = defaultProps$z;
7556
7702
 
7557
- var styles$d = {"previewButton":"micromag-fields-keypad-layout-form-previewButton","previewKeypad":"micromag-fields-keypad-layout-form-previewKeypad","previewKey":"micromag-fields-keypad-layout-form-previewKey","oneColumn":"micromag-fields-keypad-layout-form-oneColumn"};
7703
+ var styles$c = {"previewButton":"micromag-fields-keypad-layout-form-previewButton","previewKeypad":"micromag-fields-keypad-layout-form-previewKeypad","previewKey":"micromag-fields-keypad-layout-form-previewKey","oneColumn":"micromag-fields-keypad-layout-form-oneColumn"};
7558
7704
 
7559
7705
  var _excluded$d = ["value", "onChange", "closeForm"];
7560
7706
  function getPreviewItemsByColumns(columns) {
@@ -7571,7 +7717,7 @@ function getPreviewItemsByColumns(columns) {
7571
7717
  return [1, 2, 3];
7572
7718
  }
7573
7719
  }
7574
- var propTypes$z = {
7720
+ var propTypes$y = {
7575
7721
  value: PropTypes.shape({
7576
7722
  color: PropTypes.string,
7577
7723
  alpha: PropTypes.number
@@ -7582,7 +7728,7 @@ var propTypes$z = {
7582
7728
  onChange: PropTypes.func,
7583
7729
  closeForm: PropTypes.func
7584
7730
  };
7585
- var defaultProps$z = {
7731
+ var defaultProps$y = {
7586
7732
  value: null,
7587
7733
  isForm: false,
7588
7734
  isHorizontal: false,
@@ -7636,7 +7782,7 @@ var KeypadLayoutForm = function KeypadLayoutForm(_ref) {
7636
7782
  }
7637
7783
  }
7638
7784
  var label = /*#__PURE__*/React.createElement("div", {
7639
- className: styles$d.previewLabel
7785
+ className: styles$c.previewLabel
7640
7786
  }, columns, ' ', intl.formatMessage({
7641
7787
  id: "mgjMWG",
7642
7788
  defaultMessage: [{
@@ -7645,16 +7791,16 @@ var KeypadLayoutForm = function KeypadLayoutForm(_ref) {
7645
7791
  }]
7646
7792
  }), ' ', ", ", getAlignIntlLabel(columnAlign), ", ", spacing, "px");
7647
7793
  var previewElement = value !== null ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Keypad, {
7648
- className: classNames([styles$d.previewKeypad, _defineProperty({}, styles$d.oneColumn, columns === 1)]),
7794
+ className: classNames([styles$c.previewKeypad, _defineProperty({}, styles$c.oneColumn, columns === 1)]),
7649
7795
  align: columnAlign,
7650
7796
  columns: columns,
7651
7797
  spacing: finalSpacingPreview,
7652
7798
  items: previewItems.map(function (n) {
7653
7799
  return /*#__PURE__*/React.createElement("div", {
7654
7800
  key: n,
7655
- className: styles$d.previewKey
7801
+ className: styles$c.previewKey
7656
7802
  }, /*#__PURE__*/React.createElement("div", {
7657
- className: styles$d.previewButton
7803
+ className: styles$c.previewButton
7658
7804
  }));
7659
7805
  })
7660
7806
  })) : null;
@@ -7667,21 +7813,21 @@ var KeypadLayoutForm = function KeypadLayoutForm(_ref) {
7667
7813
  thumbnail: previewElement
7668
7814
  }, props));
7669
7815
  };
7670
- KeypadLayoutForm.propTypes = propTypes$z;
7671
- KeypadLayoutForm.defaultProps = defaultProps$z;
7816
+ KeypadLayoutForm.propTypes = propTypes$y;
7817
+ KeypadLayoutForm.defaultProps = defaultProps$y;
7672
7818
 
7673
7819
  /* eslint-disable react/jsx-props-no-spreading */
7674
- var propTypes$y = {};
7675
- var defaultProps$y = {};
7820
+ var propTypes$x = {};
7821
+ var defaultProps$x = {};
7676
7822
  var MapField = function MapField(props) {
7677
7823
  return /*#__PURE__*/React.createElement(Fields, props);
7678
7824
  };
7679
- MapField.propTypes = propTypes$y;
7680
- MapField.defaultProps = defaultProps$y;
7825
+ MapField.propTypes = propTypes$x;
7826
+ MapField.defaultProps = defaultProps$x;
7681
7827
 
7682
- var styles$c = {"container":"micromag-fields-margin-container","icon":"micromag-fields-margin-icon","slider":"micromag-fields-margin-slider"};
7828
+ var styles$b = {"container":"micromag-fields-margin-container","icon":"micromag-fields-margin-icon","slider":"micromag-fields-margin-slider"};
7683
7829
 
7684
- var propTypes$x = {
7830
+ var propTypes$w = {
7685
7831
  value: PropTypes.number,
7686
7832
  unit: PropTypes.string,
7687
7833
  direction: PropTypes.oneOf(['top', 'bottom']),
@@ -7691,7 +7837,7 @@ var propTypes$x = {
7691
7837
  className: PropTypes.string,
7692
7838
  onChange: PropTypes.func
7693
7839
  };
7694
- var defaultProps$x = {
7840
+ var defaultProps$w = {
7695
7841
  value: null,
7696
7842
  unit: 'pt',
7697
7843
  direction: 'top',
@@ -7711,10 +7857,10 @@ var MarginField = function MarginField(_ref) {
7711
7857
  className = _ref.className,
7712
7858
  _onChange = _ref.onChange;
7713
7859
  return /*#__PURE__*/React.createElement("div", {
7714
- className: classNames([styles$c.container, _defineProperty({}, className, className !== null)])
7860
+ className: classNames([styles$b.container, _defineProperty({}, className, className !== null)])
7715
7861
  }, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
7716
7862
  icon: direction === 'top' ? faArrowUp : faArrowDown,
7717
- className: styles$c.icon
7863
+ className: styles$b.icon
7718
7864
  }), /*#__PURE__*/React.createElement(SliderField, {
7719
7865
  value: value,
7720
7866
  min: min,
@@ -7729,24 +7875,24 @@ var MarginField = function MarginField(_ref) {
7729
7875
  onChange: function onChange(newValue) {
7730
7876
  return _onChange !== null ? _onChange(newValue !== 0 ? newValue : null) : null;
7731
7877
  },
7732
- className: styles$c.slider
7878
+ className: styles$b.slider
7733
7879
  }));
7734
7880
  };
7735
- MarginField.propTypes = propTypes$x;
7736
- MarginField.defaultProps = defaultProps$x;
7881
+ MarginField.propTypes = propTypes$w;
7882
+ MarginField.defaultProps = defaultProps$w;
7737
7883
  MarginField.isHorizontal = true;
7738
7884
 
7739
- var styles$b = {"container":"micromag-fields-marker-container","noValue":"micromag-fields-marker-noValue","value":"micromag-fields-marker-value","panel":"micromag-fields-marker-panel"};
7885
+ var styles$a = {"container":"micromag-fields-marker-container","noValue":"micromag-fields-marker-noValue","value":"micromag-fields-marker-value","panel":"micromag-fields-marker-panel"};
7740
7886
 
7741
7887
  var _excluded$c = ["isForm", "value", "className"];
7742
- var propTypes$w = {
7888
+ var propTypes$v = {
7743
7889
  value: PropTypes.shape({
7744
7890
  text: PropTypes.string
7745
7891
  }),
7746
7892
  isForm: PropTypes.bool,
7747
7893
  className: PropTypes.string
7748
7894
  };
7749
- var defaultProps$w = {
7895
+ var defaultProps$v = {
7750
7896
  value: null,
7751
7897
  isForm: false,
7752
7898
  className: null
@@ -7760,23 +7906,23 @@ var MarkerField = function MarkerField(_ref) {
7760
7906
  _ref2$title = _ref2.title,
7761
7907
  title = _ref2$title === void 0 ? null : _ref2$title;
7762
7908
  return isForm ? /*#__PURE__*/React.createElement("div", {
7763
- className: classNames([styles$b.panel, _defineProperty({}, className, className !== null)])
7909
+ className: classNames([styles$a.panel, _defineProperty({}, className, className !== null)])
7764
7910
  }, /*#__PURE__*/React.createElement(Fields, Object.assign({}, props, {
7765
7911
  value: value
7766
7912
  }))) : /*#__PURE__*/React.createElement("div", {
7767
- className: classNames([styles$b.container, _defineProperty({}, className, className !== null)])
7913
+ className: classNames([styles$a.container, _defineProperty({}, className, className !== null)])
7768
7914
  }, title !== null ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
7769
- className: styles$b.value
7915
+ className: styles$a.value
7770
7916
  }, title.body)) : /*#__PURE__*/React.createElement("span", {
7771
- className: styles$b.noValue
7917
+ className: styles$a.noValue
7772
7918
  }, "Entrez les infos..."));
7773
7919
  };
7774
- MarkerField.propTypes = propTypes$w;
7775
- MarkerField.defaultProps = defaultProps$w;
7920
+ MarkerField.propTypes = propTypes$v;
7921
+ MarkerField.defaultProps = defaultProps$v;
7776
7922
 
7777
7923
  /* eslint-disable react/jsx-props-no-spreading */
7778
- var propTypes$v = {};
7779
- var defaultProps$v = {};
7924
+ var propTypes$u = {};
7925
+ var defaultProps$u = {};
7780
7926
  var MarkersField = function MarkersField(props) {
7781
7927
  return /*#__PURE__*/React.createElement(ItemsField, Object.assign({
7782
7928
  noItemLabel: /*#__PURE__*/React.createElement(FormattedMessage, {
@@ -7796,19 +7942,19 @@ var MarkersField = function MarkersField(props) {
7796
7942
  itemComponent: MarkerField
7797
7943
  }, props));
7798
7944
  };
7799
- MarkersField.propTypes = propTypes$v;
7800
- MarkersField.defaultProps = defaultProps$v;
7945
+ MarkersField.propTypes = propTypes$u;
7946
+ MarkersField.defaultProps = defaultProps$u;
7801
7947
 
7802
- var styles$a = {"container":"micromag-fields-media-thumbnail-container","radios":"micromag-fields-media-thumbnail-radios","thumbnail":"micromag-fields-media-thumbnail-thumbnail","button":"micromag-fields-media-thumbnail-button"};
7948
+ var styles$9 = {"container":"micromag-fields-media-thumbnail-container","radios":"micromag-fields-media-thumbnail-radios","thumbnail":"micromag-fields-media-thumbnail-thumbnail","button":"micromag-fields-media-thumbnail-button"};
7803
7949
 
7804
7950
  var _excluded$b = ["value", "onChange", "className", "isForm"];
7805
- var propTypes$u = {
7951
+ var propTypes$t = {
7806
7952
  value: PropTypes.oneOf([PropTypes.string, PropTypes$1.imageMedia]),
7807
7953
  isForm: PropTypes.bool,
7808
7954
  onChange: PropTypes.func,
7809
7955
  className: PropTypes.string
7810
7956
  };
7811
- var defaultProps$u = {
7957
+ var defaultProps$t = {
7812
7958
  value: null,
7813
7959
  isForm: false,
7814
7960
  onChange: null,
@@ -7842,27 +7988,27 @@ function MediaThumbnail(_ref) {
7842
7988
  label: /*#__PURE__*/React.createElement("img", {
7843
7989
  src: url,
7844
7990
  alt: handle,
7845
- className: styles$a.thumbnail
7991
+ className: styles$9.thumbnail
7846
7992
  })
7847
7993
  };
7848
7994
  }) : null;
7849
7995
  }, [media]);
7850
7996
  return isForm ? /*#__PURE__*/React.createElement("div", {
7851
- className: classNames([styles$a.container, _defineProperty({}, className, className !== null)])
7997
+ className: classNames([styles$9.container, _defineProperty({}, className, className !== null)])
7852
7998
  }, /*#__PURE__*/React.createElement(ImageField, Object.assign({}, props, {
7853
7999
  isForm: true,
7854
8000
  value: isObject(value) ? value : null,
7855
8001
  onChange: onChange
7856
8002
  }))) : /*#__PURE__*/React.createElement("div", {
7857
- className: classNames([styles$a.container, _defineProperty({}, className, className !== null)])
8003
+ className: classNames([styles$9.container, _defineProperty({}, className, className !== null)])
7858
8004
  }, options !== null ? /*#__PURE__*/React.createElement("div", {
7859
8005
  className: "mb-4"
7860
8006
  }, /*#__PURE__*/React.createElement(Radios, Object.assign({
7861
8007
  value: !isObject(value) ? value : null,
7862
8008
  options: options || [],
7863
8009
  onChange: onChange,
7864
- className: styles$a.radios,
7865
- buttonClassName: styles$a.button
8010
+ className: styles$9.radios,
8011
+ buttonClassName: styles$9.button
7866
8012
  }, props))) : null, /*#__PURE__*/React.createElement(FieldRow, Object.assign({}, props, {
7867
8013
  withForm: true
7868
8014
  }), /*#__PURE__*/React.createElement(ImageField, Object.assign({
@@ -7870,11 +8016,11 @@ function MediaThumbnail(_ref) {
7870
8016
  onChange: onChange
7871
8017
  }, props))));
7872
8018
  }
7873
- MediaThumbnail.propTypes = propTypes$u;
7874
- MediaThumbnail.defaultProps = defaultProps$u;
8019
+ MediaThumbnail.propTypes = propTypes$t;
8020
+ MediaThumbnail.defaultProps = defaultProps$t;
7875
8021
 
7876
8022
  var _excluded$a = ["type", "value", "fields", "noValueLabel", "withoutThumbnail", "onChange", "closeForm"];
7877
- var propTypes$t = {
8023
+ var propTypes$s = {
7878
8024
  type: PropTypes.oneOfType([PropTypes$1.mediaTypes, PropTypes.arrayOf(PropTypes$1.mediaTypes)]),
7879
8025
  value: PropTypes$1.media,
7880
8026
  fields: PropTypes$1.formFields,
@@ -7883,7 +8029,7 @@ var propTypes$t = {
7883
8029
  onChange: PropTypes.func,
7884
8030
  closeForm: PropTypes.func
7885
8031
  };
7886
- var defaultProps$t = {
8032
+ var defaultProps$s = {
7887
8033
  type: null,
7888
8034
  value: null,
7889
8035
  fields: null,
@@ -7924,8 +8070,8 @@ var MessageField = function MessageField(_ref) {
7924
8070
  })
7925
8071
  }, props));
7926
8072
  };
7927
- MessageField.propTypes = propTypes$t;
7928
- MessageField.defaultProps = defaultProps$t;
8073
+ MessageField.propTypes = propTypes$s;
8074
+ MessageField.defaultProps = defaultProps$s;
7929
8075
  MessageField.withForm = true;
7930
8076
 
7931
8077
  var _excluded$9 = ["icon", "iconRotation", "isHorizontal", "className"];
@@ -7934,13 +8080,13 @@ var fontAwesomeIconType = PropTypes.shape({
7934
8080
  iconName: PropTypes.string,
7935
8081
  prefix: PropTypes.string
7936
8082
  });
7937
- var propTypes$s = {
8083
+ var propTypes$r = {
7938
8084
  icon: PropTypes.oneOfType([PropTypes.node, fontAwesomeIconType]),
7939
8085
  iconRotation: PropTypes.number,
7940
8086
  isHorizontal: PropTypes.bool,
7941
8087
  className: PropTypes.string
7942
8088
  };
7943
- var defaultProps$s = {
8089
+ var defaultProps$r = {
7944
8090
  icon: null,
7945
8091
  iconRotation: 0,
7946
8092
  isHorizontal: false,
@@ -7965,19 +8111,19 @@ var NumberWithIcon = function NumberWithIcon(_ref) {
7965
8111
  icon: icon
7966
8112
  })), /*#__PURE__*/React.createElement(NumberField, props));
7967
8113
  };
7968
- NumberWithIcon.propTypes = propTypes$s;
7969
- NumberWithIcon.defaultProps = defaultProps$s;
8114
+ NumberWithIcon.propTypes = propTypes$r;
8115
+ NumberWithIcon.defaultProps = defaultProps$r;
7970
8116
  NumberWithIcon.isHorizontal = true;
7971
8117
 
7972
- var styles$9 = {"spacing":"micromag-fields-padding-spacing"};
8118
+ var styles$8 = {"spacing":"micromag-fields-padding-spacing"};
7973
8119
 
7974
8120
  var _excluded$8 = ["value", "className", "onChange"];
7975
- var propTypes$r = {
8121
+ var propTypes$q = {
7976
8122
  value: PropTypes.number,
7977
8123
  className: PropTypes.string,
7978
8124
  onChange: PropTypes.func
7979
8125
  };
7980
- var defaultProps$r = {
8126
+ var defaultProps$q = {
7981
8127
  value: null,
7982
8128
  className: null,
7983
8129
  onChange: null
@@ -7997,11 +8143,11 @@ var Spacing = function Spacing(_ref) {
7997
8143
  onChange: onChange
7998
8144
  }, props)));
7999
8145
  };
8000
- Spacing.propTypes = propTypes$r;
8001
- Spacing.defaultProps = defaultProps$r;
8146
+ Spacing.propTypes = propTypes$q;
8147
+ Spacing.defaultProps = defaultProps$q;
8002
8148
 
8003
8149
  var _excluded$7 = ["value", "onChange", "closeForm"];
8004
- var propTypes$q = {
8150
+ var propTypes$p = {
8005
8151
  value: PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
8006
8152
  top: PropTypes.string,
8007
8153
  left: PropTypes.string,
@@ -8014,7 +8160,7 @@ var propTypes$q = {
8014
8160
  onChange: PropTypes.func,
8015
8161
  closeForm: PropTypes.func
8016
8162
  };
8017
- var defaultProps$q = {
8163
+ var defaultProps$p = {
8018
8164
  value: null,
8019
8165
  isForm: false,
8020
8166
  isHorizontal: false,
@@ -8074,7 +8220,7 @@ var PaddingField = function PaddingField(_ref) {
8074
8220
  }, /*#__PURE__*/React.createElement("div", {
8075
8221
  className: "d-flex w-100 align-content-center justify-content-center my-2"
8076
8222
  }, /*#__PURE__*/React.createElement(Spacing, {
8077
- className: styles$9.spacing,
8223
+ className: styles$8.spacing,
8078
8224
  value: defaultValue || top,
8079
8225
  onChange: function onChange(val) {
8080
8226
  return onSpacingChange(val, 'top');
@@ -8089,7 +8235,7 @@ var PaddingField = function PaddingField(_ref) {
8089
8235
  })), /*#__PURE__*/React.createElement("div", {
8090
8236
  className: "d-flex w-100 align-content-center justify-content-between my-2"
8091
8237
  }, /*#__PURE__*/React.createElement(Spacing, {
8092
- className: styles$9.spacing,
8238
+ className: styles$8.spacing,
8093
8239
  value: defaultValue || left,
8094
8240
  onChange: function onChange(val) {
8095
8241
  return onSpacingChange(val, 'left');
@@ -8102,7 +8248,7 @@ var PaddingField = function PaddingField(_ref) {
8102
8248
  }]
8103
8249
  })
8104
8250
  }), /*#__PURE__*/React.createElement(Spacing, {
8105
- className: styles$9.spacing,
8251
+ className: styles$8.spacing,
8106
8252
  value: defaultValue || right,
8107
8253
  onChange: function onChange(val) {
8108
8254
  return onSpacingChange(val, 'right');
@@ -8117,7 +8263,7 @@ var PaddingField = function PaddingField(_ref) {
8117
8263
  })), /*#__PURE__*/React.createElement("div", {
8118
8264
  className: "d-flex w-100 align-content-center justify-content-center my-2"
8119
8265
  }, /*#__PURE__*/React.createElement(Spacing, {
8120
- className: styles$9.spacing,
8266
+ className: styles$8.spacing,
8121
8267
  value: defaultValue || bottom,
8122
8268
  onChange: function onChange(val) {
8123
8269
  return onSpacingChange(val, 'bottom');
@@ -8155,13 +8301,13 @@ var PaddingField = function PaddingField(_ref) {
8155
8301
  }]
8156
8302
  })) : null)));
8157
8303
  };
8158
- PaddingField.propTypes = propTypes$q;
8159
- PaddingField.defaultProps = defaultProps$q;
8304
+ PaddingField.propTypes = propTypes$p;
8305
+ PaddingField.defaultProps = defaultProps$p;
8160
8306
  PaddingField.withForm = true;
8161
8307
 
8162
- var styles$8 = {"container":"micromag-fields-position-container","button":"micromag-fields-position-button","rotateLeft":"micromag-fields-position-rotateLeft","rotateRight":"micromag-fields-position-rotateRight"};
8308
+ var styles$7 = {"container":"micromag-fields-position-container","button":"micromag-fields-position-button","rotateLeft":"micromag-fields-position-rotateLeft","rotateRight":"micromag-fields-position-rotateRight"};
8163
8309
 
8164
- var propTypes$p = {
8310
+ var propTypes$o = {
8165
8311
  name: PropTypes.string,
8166
8312
  value: PropTypes.string,
8167
8313
  axisOptions: PropTypes.arrayOf(PropTypes.string),
@@ -8170,7 +8316,7 @@ var propTypes$p = {
8170
8316
  buttonClassName: PropTypes.string,
8171
8317
  onChange: PropTypes.func
8172
8318
  };
8173
- var defaultProps$p = {
8319
+ var defaultProps$o = {
8174
8320
  name: null,
8175
8321
  value: null,
8176
8322
  axisOptions: ['top', 'center', 'bottom'],
@@ -8185,47 +8331,47 @@ var Icon = function Icon(_ref) {
8185
8331
  case 'top-left':
8186
8332
  return /*#__PURE__*/React.createElement(FontAwesomeIcon, {
8187
8333
  icon: faArrowUp,
8188
- className: styles$8.rotateLeft
8334
+ className: styles$7.rotateLeft
8189
8335
  });
8190
8336
  case 'top-center':
8191
8337
  return /*#__PURE__*/React.createElement(FontAwesomeIcon, {
8192
8338
  icon: faArrowUp,
8193
- className: styles$8.icon
8339
+ className: styles$7.icon
8194
8340
  });
8195
8341
  case 'top-right':
8196
8342
  return /*#__PURE__*/React.createElement(FontAwesomeIcon, {
8197
8343
  icon: faArrowUp,
8198
- className: styles$8.rotateRight
8344
+ className: styles$7.rotateRight
8199
8345
  });
8200
8346
  case 'center-left':
8201
8347
  return /*#__PURE__*/React.createElement(FontAwesomeIcon, {
8202
8348
  icon: faArrowLeft,
8203
- className: styles$8.icon
8349
+ className: styles$7.icon
8204
8350
  });
8205
8351
  case 'center-center':
8206
8352
  return /*#__PURE__*/React.createElement(FontAwesomeIcon, {
8207
8353
  icon: faDotCircle,
8208
- className: styles$8.icon
8354
+ className: styles$7.icon
8209
8355
  });
8210
8356
  case 'center-right':
8211
8357
  return /*#__PURE__*/React.createElement(FontAwesomeIcon, {
8212
8358
  icon: faArrowRight,
8213
- className: styles$8.icon
8359
+ className: styles$7.icon
8214
8360
  });
8215
8361
  case 'bottom-left':
8216
8362
  return /*#__PURE__*/React.createElement(FontAwesomeIcon, {
8217
8363
  icon: faArrowDown,
8218
- className: styles$8.rotateRight
8364
+ className: styles$7.rotateRight
8219
8365
  });
8220
8366
  case 'bottom-center':
8221
8367
  return /*#__PURE__*/React.createElement(FontAwesomeIcon, {
8222
8368
  icon: faArrowDown,
8223
- className: styles$8.icon
8369
+ className: styles$7.icon
8224
8370
  });
8225
8371
  case 'bottom-right':
8226
8372
  return /*#__PURE__*/React.createElement(FontAwesomeIcon, {
8227
8373
  icon: faArrowDown,
8228
- className: styles$8.rotateLeft
8374
+ className: styles$7.rotateLeft
8229
8375
  });
8230
8376
  }
8231
8377
  return null;
@@ -8253,7 +8399,7 @@ var Position = function Position(_ref2) {
8253
8399
  _ref3$crossAlign = _ref3.crossAlign,
8254
8400
  crossAlign = _ref3$crossAlign === void 0 ? null : _ref3$crossAlign;
8255
8401
  return /*#__PURE__*/React.createElement("div", {
8256
- className: classNames(['btn-group', 'btn-group-toggle', styles$8.container, _defineProperty({}, className, className !== null)]),
8402
+ className: classNames(['btn-group', 'btn-group-toggle', styles$7.container, _defineProperty({}, className, className !== null)]),
8257
8403
  "data-toggle": "buttons"
8258
8404
  }, axisOptions.map(function (_ref5) {
8259
8405
  var axisOption = _ref5.value,
@@ -8263,7 +8409,7 @@ var Position = function Position(_ref2) {
8263
8409
  crossLabel = _ref6.label;
8264
8410
  return /*#__PURE__*/React.createElement("label", {
8265
8411
  key: "radio-".concat(axisOption, "-").concat(crossOption),
8266
- className: classNames(['btn', 'btn-outline-secondary', _defineProperty(_defineProperty(_defineProperty({}, styles$8.button, true), "active", axisOption === axisAlign && crossOption === crossAlign), buttonClassName, buttonClassName !== null)])
8412
+ className: classNames(['btn', 'btn-outline-secondary', _defineProperty(_defineProperty(_defineProperty({}, styles$7.button, true), "active", axisOption === axisAlign && crossOption === crossAlign), buttonClassName, buttonClassName !== null)])
8267
8413
  }, /*#__PURE__*/React.createElement("input", {
8268
8414
  type: "radio",
8269
8415
  name: name,
@@ -8284,30 +8430,30 @@ var Position = function Position(_ref2) {
8284
8430
  });
8285
8431
  }));
8286
8432
  };
8287
- Position.propTypes = propTypes$p;
8288
- Position.defaultProps = defaultProps$p;
8433
+ Position.propTypes = propTypes$o;
8434
+ Position.defaultProps = defaultProps$o;
8289
8435
 
8290
8436
  /* eslint-disable react/jsx-props-no-spreading */
8291
- var propTypes$o = {};
8292
- var defaultProps$o = {};
8437
+ var propTypes$n = {};
8438
+ var defaultProps$n = {};
8293
8439
  var QuestionField = function QuestionField(props) {
8294
8440
  return /*#__PURE__*/React.createElement(Fields, Object.assign({
8295
8441
  isList: true
8296
8442
  }, props));
8297
8443
  };
8298
- QuestionField.propTypes = propTypes$o;
8299
- QuestionField.defaultProps = defaultProps$o;
8444
+ QuestionField.propTypes = propTypes$n;
8445
+ QuestionField.defaultProps = defaultProps$n;
8300
8446
 
8301
- var styles$7 = {"container":"micromag-fields-layout-container","button":"micromag-fields-layout-button","layout":"micromag-fields-layout-layout","screen":"micromag-fields-layout-screen"};
8447
+ var styles$6 = {"container":"micromag-fields-layout-container","button":"micromag-fields-layout-button","layout":"micromag-fields-layout-layout","screen":"micromag-fields-layout-screen"};
8302
8448
 
8303
8449
  var _excluded$6 = ["value", "screenState", "className", "onChange"];
8304
- var propTypes$n = {
8450
+ var propTypes$m = {
8305
8451
  value: PropTypes.string,
8306
8452
  screenState: PropTypes.string,
8307
8453
  className: PropTypes.string,
8308
8454
  onChange: PropTypes.func
8309
8455
  };
8310
- var defaultProps$n = {
8456
+ var defaultProps$m = {
8311
8457
  value: null,
8312
8458
  screenState: null,
8313
8459
  className: null,
@@ -8328,7 +8474,7 @@ var ScreenLayoutField = function ScreenLayoutField(_ref) {
8328
8474
  return {
8329
8475
  value: layout,
8330
8476
  label: /*#__PURE__*/React.createElement("div", {
8331
- className: styles$7.layout
8477
+ className: styles$6.layout
8332
8478
  }, /*#__PURE__*/React.createElement(ScreenPlaceholder, {
8333
8479
  screen: {
8334
8480
  type: id,
@@ -8336,29 +8482,29 @@ var ScreenLayoutField = function ScreenLayoutField(_ref) {
8336
8482
  },
8337
8483
  screenState: screenState,
8338
8484
  withSize: true,
8339
- className: styles$7.screen
8485
+ className: styles$6.screen
8340
8486
  }))
8341
8487
  };
8342
8488
  }),
8343
8489
  value: value || (layouts ? layouts[0] : null),
8344
- className: classNames([styles$7.container, _defineProperty({}, className, className !== null)]),
8345
- buttonClassName: styles$7.button,
8490
+ className: classNames([styles$6.container, _defineProperty({}, className, className !== null)]),
8491
+ buttonClassName: styles$6.button,
8346
8492
  onChange: onChange
8347
8493
  });
8348
8494
  };
8349
- ScreenLayoutField.propTypes = propTypes$n;
8350
- ScreenLayoutField.defaultProps = defaultProps$n;
8495
+ ScreenLayoutField.propTypes = propTypes$m;
8496
+ ScreenLayoutField.defaultProps = defaultProps$m;
8351
8497
 
8352
- var styles$6 = {"lightCaret":"micromag-fields-select-lightCaret"};
8498
+ var styles$5 = {"lightCaret":"micromag-fields-select-lightCaret"};
8353
8499
 
8354
- var propTypes$m = {
8500
+ var propTypes$l = {
8355
8501
  value: PropTypes.string,
8356
8502
  options: PropTypes$1.selectOptions,
8357
8503
  disabled: PropTypes.bool,
8358
8504
  className: PropTypes.string,
8359
8505
  onChange: PropTypes.func
8360
8506
  };
8361
- var defaultProps$m = {
8507
+ var defaultProps$l = {
8362
8508
  value: null,
8363
8509
  options: [],
8364
8510
  disabled: false,
@@ -8375,7 +8521,7 @@ var SelectField = function SelectField(_ref) {
8375
8521
  return getSelectOptions(options);
8376
8522
  }, [options]);
8377
8523
  return /*#__PURE__*/React.createElement("select", {
8378
- className: classNames([styles$6.container, 'form-select', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles$6.lightCaret, !disabled), 'bg-dark', !disabled), 'text-light', !disabled), 'text-dark', disabled), className, className !== null)]),
8524
+ className: classNames([styles$5.container, 'form-select', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles$5.lightCaret, !disabled), 'bg-dark', !disabled), 'text-light', !disabled), 'text-dark', disabled), className, className !== null)]),
8379
8525
  value: value || '',
8380
8526
  disabled: disabled,
8381
8527
  onChange: function onChange(e) {
@@ -8392,8 +8538,8 @@ var SelectField = function SelectField(_ref) {
8392
8538
  }, optionLabel);
8393
8539
  }));
8394
8540
  };
8395
- SelectField.propTypes = propTypes$m;
8396
- SelectField.defaultProps = defaultProps$m;
8541
+ SelectField.propTypes = propTypes$l;
8542
+ SelectField.defaultProps = defaultProps$l;
8397
8543
 
8398
8544
  var selectTheme = function selectTheme(theme) {
8399
8545
  return _objectSpread(_objectSpread({}, theme), {}, {
@@ -8427,7 +8573,7 @@ var selectTheme = function selectTheme(theme) {
8427
8573
 
8428
8574
  var _excluded$5 = ["name", "value", "options", "withoutReset", "disabled", "className", "onChange"],
8429
8575
  _excluded2 = ["label"];
8430
- var propTypes$l = {
8576
+ var propTypes$k = {
8431
8577
  name: PropTypes.string,
8432
8578
  value: PropTypes.string,
8433
8579
  options: PropTypes$1.selectOptions,
@@ -8436,7 +8582,7 @@ var propTypes$l = {
8436
8582
  className: PropTypes.string,
8437
8583
  onChange: PropTypes.func
8438
8584
  };
8439
- var defaultProps$l = {
8585
+ var defaultProps$k = {
8440
8586
  name: null,
8441
8587
  value: null,
8442
8588
  options: [],
@@ -8490,18 +8636,18 @@ var SelectAdvancedField = function SelectAdvancedField(_ref) {
8490
8636
  theme: selectTheme
8491
8637
  }));
8492
8638
  };
8493
- SelectAdvancedField.propTypes = propTypes$l;
8494
- SelectAdvancedField.defaultProps = defaultProps$l;
8639
+ SelectAdvancedField.propTypes = propTypes$k;
8640
+ SelectAdvancedField.defaultProps = defaultProps$k;
8495
8641
 
8496
- var styles$5 = {"container":"micromag-fields-shadow-angle-container","button":"micromag-fields-shadow-angle-button","type":"micromag-fields-shadow-angle-type","icon":"micromag-fields-shadow-angle-icon"};
8642
+ var styles$4 = {"container":"micromag-fields-shadow-angle-container","button":"micromag-fields-shadow-angle-button","type":"micromag-fields-shadow-angle-type","icon":"micromag-fields-shadow-angle-icon"};
8497
8643
 
8498
- var propTypes$k = {
8644
+ var propTypes$j = {
8499
8645
  types: PropTypes.arrayOf(PropTypes.string),
8500
8646
  value: PropTypes.string,
8501
8647
  className: PropTypes.string,
8502
8648
  onChange: PropTypes.func
8503
8649
  };
8504
- var defaultProps$k = {
8650
+ var defaultProps$j = {
8505
8651
  types: [45, 90, -45, -90],
8506
8652
  value: null,
8507
8653
  className: null,
@@ -8528,9 +8674,9 @@ var ShadowAngle = function ShadowAngle(_ref) {
8528
8674
  return {
8529
8675
  value: type,
8530
8676
  label: /*#__PURE__*/React.createElement("div", {
8531
- className: styles$5.type
8677
+ className: styles$4.type
8532
8678
  }, /*#__PURE__*/React.createElement("div", {
8533
- className: styles$5.icon,
8679
+ className: styles$4.icon,
8534
8680
  style: {
8535
8681
  border: "2px solid currentColor",
8536
8682
  position: 'relative',
@@ -8540,16 +8686,16 @@ var ShadowAngle = function ShadowAngle(_ref) {
8540
8686
  };
8541
8687
  }),
8542
8688
  value: value || null,
8543
- className: classNames([styles$5.container, _defineProperty({}, className, className !== null)]),
8544
- buttonClassName: styles$5.button,
8689
+ className: classNames([styles$4.container, _defineProperty({}, className, className !== null)]),
8690
+ buttonClassName: styles$4.button,
8545
8691
  onChange: onShadowAngleChange
8546
8692
  })));
8547
8693
  };
8548
- ShadowAngle.propTypes = propTypes$k;
8549
- ShadowAngle.defaultProps = defaultProps$k;
8694
+ ShadowAngle.propTypes = propTypes$j;
8695
+ ShadowAngle.defaultProps = defaultProps$j;
8550
8696
 
8551
8697
  var _excluded$4 = ["value", "isForm", "className"];
8552
- var propTypes$j = {
8698
+ var propTypes$i = {
8553
8699
  value: PropTypes.shape({
8554
8700
  text: PropTypes.string,
8555
8701
  image: PropTypes$1.imageMedia
@@ -8557,7 +8703,7 @@ var propTypes$j = {
8557
8703
  isForm: PropTypes.bool,
8558
8704
  className: PropTypes.string
8559
8705
  };
8560
- var defaultProps$j = {
8706
+ var defaultProps$i = {
8561
8707
  value: null,
8562
8708
  isForm: false,
8563
8709
  className: null
@@ -8571,7 +8717,7 @@ var SlideField = function SlideField(_ref) {
8571
8717
  _ref2$text = _ref2.text,
8572
8718
  text = _ref2$text === void 0 ? null : _ref2$text;
8573
8719
  return isForm ? /*#__PURE__*/React.createElement("div", {
8574
- className: classNames([styles$B.panel, _defineProperty({}, className, className !== null)])
8720
+ className: classNames([styles$A.panel, _defineProperty({}, className, className !== null)])
8575
8721
  }, /*#__PURE__*/React.createElement(Fields, Object.assign({
8576
8722
  className: classNames([{
8577
8723
  'p-2': isForm,
@@ -8580,64 +8726,64 @@ var SlideField = function SlideField(_ref) {
8580
8726
  }, props, {
8581
8727
  value: value
8582
8728
  }))) : /*#__PURE__*/React.createElement("div", {
8583
- className: classNames([styles$B.container, _defineProperty({}, className, className !== null)])
8729
+ className: classNames([styles$A.container, _defineProperty({}, className, className !== null)])
8584
8730
  }, text !== null ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
8585
- className: styles$B.value
8731
+ className: styles$A.value
8586
8732
  }, text)) : /*#__PURE__*/React.createElement("span", {
8587
- className: styles$B.noValue
8733
+ className: styles$A.noValue
8588
8734
  }, "Entrez les infos..."));
8589
8735
  };
8590
- SlideField.propTypes = propTypes$j;
8591
- SlideField.defaultProps = defaultProps$j;
8736
+ SlideField.propTypes = propTypes$i;
8737
+ SlideField.defaultProps = defaultProps$i;
8592
8738
 
8593
8739
  /* eslint-disable react/no-array-index-key, react/button-has-type, react/jsx-props-no-spreading */
8594
- var propTypes$i = {
8740
+ var propTypes$h = {
8595
8741
  unit: PropTypes.string,
8596
8742
  withInput: PropTypes.bool
8597
8743
  };
8598
- var defaultProps$i = {
8744
+ var defaultProps$h = {
8599
8745
  unit: '%',
8600
8746
  withInput: true
8601
8747
  };
8602
8748
  var SliderPixelField$1 = function SliderPixelField(props) {
8603
8749
  return /*#__PURE__*/React.createElement(SliderField, props);
8604
8750
  };
8605
- SliderPixelField$1.propTypes = propTypes$i;
8606
- SliderPixelField$1.defaultProps = defaultProps$i;
8751
+ SliderPixelField$1.propTypes = propTypes$h;
8752
+ SliderPixelField$1.defaultProps = defaultProps$h;
8607
8753
 
8608
8754
  /* eslint-disable react/no-array-index-key, react/button-has-type, react/jsx-props-no-spreading */
8609
- var propTypes$h = {
8755
+ var propTypes$g = {
8610
8756
  unit: PropTypes.string,
8611
8757
  withInput: PropTypes.bool
8612
8758
  };
8613
- var defaultProps$h = {
8759
+ var defaultProps$g = {
8614
8760
  unit: 'px',
8615
8761
  withInput: true
8616
8762
  };
8617
8763
  var SliderPixelField = function SliderPixelField(props) {
8618
8764
  return /*#__PURE__*/React.createElement(SliderField, props);
8619
8765
  };
8620
- SliderPixelField.propTypes = propTypes$h;
8621
- SliderPixelField.defaultProps = defaultProps$h;
8766
+ SliderPixelField.propTypes = propTypes$g;
8767
+ SliderPixelField.defaultProps = defaultProps$g;
8622
8768
 
8623
8769
  /* eslint-disable react/no-array-index-key, react/button-has-type, react/jsx-props-no-spreading */
8624
- var propTypes$g = {
8770
+ var propTypes$f = {
8625
8771
  unit: PropTypes.string,
8626
8772
  withInput: PropTypes.bool
8627
8773
  };
8628
- var defaultProps$g = {
8774
+ var defaultProps$f = {
8629
8775
  unit: 'pt',
8630
8776
  withInput: true
8631
8777
  };
8632
8778
  var SliderPointField = function SliderPointField(props) {
8633
8779
  return /*#__PURE__*/React.createElement(SliderField, props);
8634
8780
  };
8635
- SliderPointField.propTypes = propTypes$g;
8636
- SliderPointField.defaultProps = defaultProps$g;
8781
+ SliderPointField.propTypes = propTypes$f;
8782
+ SliderPointField.defaultProps = defaultProps$f;
8637
8783
 
8638
8784
  /* eslint-disable react/jsx-props-no-spreading */
8639
- var propTypes$f = {};
8640
- var defaultProps$f = {};
8785
+ var propTypes$e = {};
8786
+ var defaultProps$e = {};
8641
8787
  var SlidesField = function SlidesField(props) {
8642
8788
  return /*#__PURE__*/React.createElement(ItemsField, Object.assign({
8643
8789
  noItemLabel: /*#__PURE__*/React.createElement(FormattedMessage, {
@@ -8657,17 +8803,17 @@ var SlidesField = function SlidesField(props) {
8657
8803
  itemComponent: SlideField
8658
8804
  }, props));
8659
8805
  };
8660
- SlidesField.propTypes = propTypes$f;
8661
- SlidesField.defaultProps = defaultProps$f;
8806
+ SlidesField.propTypes = propTypes$e;
8807
+ SlidesField.defaultProps = defaultProps$e;
8662
8808
 
8663
- var styles$4 = {"container":"micromag-fields-static-field-container","icon":"micromag-fields-static-field-icon"};
8809
+ var styles$3 = {"container":"micromag-fields-static-field-container","icon":"micromag-fields-static-field-icon"};
8664
8810
 
8665
- var propTypes$e = {
8811
+ var propTypes$d = {
8666
8812
  value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]),
8667
8813
  name: PropTypes.string,
8668
8814
  className: PropTypes.string
8669
8815
  };
8670
- var defaultProps$e = {
8816
+ var defaultProps$d = {
8671
8817
  value: null,
8672
8818
  name: null,
8673
8819
  className: null
@@ -8677,25 +8823,25 @@ var StaticField = function StaticField(_ref) {
8677
8823
  name = _ref.name,
8678
8824
  className = _ref.className;
8679
8825
  return /*#__PURE__*/React.createElement("div", {
8680
- className: classNames([styles$4.container, _defineProperty({}, className, className !== null)])
8826
+ className: classNames([styles$3.container, _defineProperty({}, className, className !== null)])
8681
8827
  }, name === 'user' ? /*#__PURE__*/React.createElement("div", {
8682
- className: styles$4.icon
8828
+ className: styles$3.icon
8683
8829
  }) : null, /*#__PURE__*/React.createElement("div", {
8684
- className: styles$4.field
8830
+ className: styles$3.field
8685
8831
  }, value !== null ? value : null));
8686
8832
  };
8687
- StaticField.propTypes = propTypes$e;
8688
- StaticField.defaultProps = defaultProps$e;
8833
+ StaticField.propTypes = propTypes$d;
8834
+ StaticField.defaultProps = defaultProps$d;
8689
8835
 
8690
8836
  /* eslint-disable react/no-array-index-key, react/button-has-type, react/jsx-props-no-spreading */
8691
- var propTypes$d = {
8837
+ var propTypes$c = {
8692
8838
  options: PropTypes.arrayOf(PropTypes.string),
8693
8839
  isForm: PropTypes.bool,
8694
8840
  value: PropTypes.string,
8695
8841
  className: PropTypes.string,
8696
8842
  onChange: PropTypes.func
8697
8843
  };
8698
- var defaultProps$d = {
8844
+ var defaultProps$c = {
8699
8845
  options: ['_blank', 'self'],
8700
8846
  isForm: false,
8701
8847
  value: null,
@@ -8715,8 +8861,8 @@ var TargetField = function TargetField(_ref) {
8715
8861
  onChange: onChange
8716
8862
  })) : /*#__PURE__*/React.createElement("div", null, value);
8717
8863
  };
8718
- TargetField.propTypes = propTypes$d;
8719
- TargetField.defaultProps = defaultProps$d;
8864
+ TargetField.propTypes = propTypes$c;
8865
+ TargetField.defaultProps = defaultProps$c;
8720
8866
  TargetField.withForm = true;
8721
8867
 
8722
8868
  /**
@@ -8749,9 +8895,9 @@ var useCKEditor = function useCKEditor() {
8749
8895
  return loadedPackage || {};
8750
8896
  };
8751
8897
 
8752
- var styles$3 = {"container":"micromag-fields-text-editor-container","size-sm":"micromag-fields-text-editor-size-sm","size-lg":"micromag-fields-text-editor-size-lg"};
8898
+ var styles$2 = {"container":"micromag-fields-text-editor-container","size-sm":"micromag-fields-text-editor-size-sm","size-lg":"micromag-fields-text-editor-size-lg"};
8753
8899
 
8754
- var propTypes$c = {
8900
+ var propTypes$b = {
8755
8901
  value: PropTypes.string,
8756
8902
  size: PropTypes$1.formControlSize,
8757
8903
  className: PropTypes.string,
@@ -8765,7 +8911,7 @@ var propTypes$c = {
8765
8911
  onFocus: PropTypes.func,
8766
8912
  disabled: PropTypes.bool
8767
8913
  };
8768
- var defaultProps$c = {
8914
+ var defaultProps$b = {
8769
8915
  value: null,
8770
8916
  size: null,
8771
8917
  className: null,
@@ -8879,7 +9025,7 @@ var TextEditorField = function TextEditorField(_ref) {
8879
9025
  }, [onChange]);
8880
9026
  return /*#__PURE__*/React.createElement("div", {
8881
9027
  id: id,
8882
- className: classNames([styles$3.container, _defineProperty(_defineProperty({}, styles$3["size-".concat(size)], size !== null), className, className !== null)])
9028
+ className: classNames([styles$2.container, _defineProperty(_defineProperty({}, styles$2["size-".concat(size)], size !== null), className, className !== null)])
8883
9029
  }, Editor !== null ? /*#__PURE__*/React.createElement(CKEditor, {
8884
9030
  editor: !withFullEditor ? InlineEditor : Editor,
8885
9031
  config: finalEditorConfig,
@@ -8896,11 +9042,11 @@ var TextEditorField = function TextEditorField(_ref) {
8896
9042
  style: getStyleFromHighlight(highlightStyle)
8897
9043
  }) : null);
8898
9044
  };
8899
- TextEditorField.propTypes = propTypes$c;
8900
- TextEditorField.defaultProps = defaultProps$c;
9045
+ TextEditorField.propTypes = propTypes$b;
9046
+ TextEditorField.defaultProps = defaultProps$b;
8901
9047
 
8902
9048
  var _excluded$3 = ["value", "onChange", "inline", "textOnly", "onFocus", "disabled"];
8903
- var propTypes$b = {
9049
+ var propTypes$a = {
8904
9050
  value: PropTypes$1.textElement,
8905
9051
  inline: PropTypes.bool,
8906
9052
  textOnly: PropTypes.bool,
@@ -8908,7 +9054,7 @@ var propTypes$b = {
8908
9054
  onFocus: PropTypes.func,
8909
9055
  disabled: PropTypes.bool
8910
9056
  };
8911
- var defaultProps$b = {
9057
+ var defaultProps$a = {
8912
9058
  inline: false,
8913
9059
  textOnly: false,
8914
9060
  value: null,
@@ -8956,13 +9102,13 @@ var TextElement = function TextElement(_ref) {
8956
9102
  disabled: disabled
8957
9103
  }));
8958
9104
  };
8959
- TextElement.propTypes = propTypes$b;
8960
- TextElement.defaultProps = defaultProps$b;
9105
+ TextElement.propTypes = propTypes$a;
9106
+ TextElement.defaultProps = defaultProps$a;
8961
9107
 
8962
- var styles$2 = {"previewButton":"micromag-fields-text-modal-previewButton","dialog":"micromag-fields-text-modal-dialog","editor":"micromag-fields-text-modal-editor","dialogBody":"micromag-fields-text-modal-dialogBody","preview":"micromag-fields-text-modal-preview"};
9108
+ var styles$1 = {"previewButton":"micromag-fields-text-modal-previewButton","dialog":"micromag-fields-text-modal-dialog","editor":"micromag-fields-text-modal-editor","dialogBody":"micromag-fields-text-modal-dialogBody","preview":"micromag-fields-text-modal-preview"};
8963
9109
 
8964
9110
  var _excluded$2 = ["title", "value", "editorConfig", "inline", "withHighlightColors", "className", "onRequestClose", "onChange"];
8965
- var propTypes$a = {
9111
+ var propTypes$9 = {
8966
9112
  title: PropTypes.string,
8967
9113
  value: PropTypes.shape({
8968
9114
  body: PropTypes.string
@@ -8974,7 +9120,7 @@ var propTypes$a = {
8974
9120
  onRequestClose: PropTypes.func,
8975
9121
  className: PropTypes.string
8976
9122
  };
8977
- var defaultProps$a = {
9123
+ var defaultProps$9 = {
8978
9124
  title: null,
8979
9125
  value: null,
8980
9126
  editorConfig: null,
@@ -9051,10 +9197,10 @@ var TextModal = function TextModal(_ref) {
9051
9197
  }, [setModalOpen, onRequestClose]);
9052
9198
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("button", {
9053
9199
  type: "button",
9054
- className: styles$2.previewButton,
9200
+ className: styles$1.previewButton,
9055
9201
  onClick: onOpen
9056
9202
  }, /*#__PURE__*/React.createElement(TextElement, {
9057
- className: styles$2.preview,
9203
+ className: styles$1.preview,
9058
9204
  inline: true,
9059
9205
  value: value,
9060
9206
  disabled: true,
@@ -9067,13 +9213,13 @@ var TextModal = function TextModal(_ref) {
9067
9213
  "value": "Edit text"
9068
9214
  }]
9069
9215
  }),
9070
- className: classNames([styles$2.dialog, _defineProperty({}, className, className)]),
9071
- bodyClassName: styles$2.dialogBody,
9216
+ className: classNames([styles$1.dialog, _defineProperty({}, className, className)]),
9217
+ bodyClassName: styles$1.dialogBody,
9072
9218
  onClose: onClose,
9073
9219
  footer: /*#__PURE__*/React.createElement("div", {
9074
9220
  className: "p-2"
9075
9221
  }, /*#__PURE__*/React.createElement(Button, {
9076
- className: styles$2.close,
9222
+ className: styles$1.close,
9077
9223
  theme: "primary",
9078
9224
  onClick: onClose
9079
9225
  }, /*#__PURE__*/React.createElement(FormattedMessage, {
@@ -9086,18 +9232,18 @@ var TextModal = function TextModal(_ref) {
9086
9232
  }, /*#__PURE__*/React.createElement(TextEditorField, Object.assign({}, props, {
9087
9233
  value: bodyValue,
9088
9234
  onChange: onBodyChange,
9089
- className: styles$2.editor,
9235
+ className: styles$1.editor,
9090
9236
  inline: inline,
9091
9237
  withHighlightColors: withHighlightColors,
9092
9238
  withFullEditor: true,
9093
9239
  editorConfig: finalEditorConfig
9094
9240
  })))) : null);
9095
9241
  };
9096
- TextModal.propTypes = propTypes$a;
9097
- TextModal.defaultProps = defaultProps$a;
9242
+ TextModal.propTypes = propTypes$9;
9243
+ TextModal.defaultProps = defaultProps$9;
9098
9244
 
9099
9245
  var _excluded$1 = ["value", "fields", "sections", "onChange", "closeForm"];
9100
- var propTypes$9 = {
9246
+ var propTypes$8 = {
9101
9247
  value: PropTypes.shape({
9102
9248
  color: PropTypes.string,
9103
9249
  alpha: PropTypes.number
@@ -9112,7 +9258,7 @@ var propTypes$9 = {
9112
9258
  onChange: PropTypes.func,
9113
9259
  closeForm: PropTypes.func
9114
9260
  };
9115
- var defaultProps$9 = {
9261
+ var defaultProps$8 = {
9116
9262
  value: null,
9117
9263
  fields: [],
9118
9264
  isForm: false,
@@ -9160,41 +9306,10 @@ var TextStyleForm = function TextStyleForm(_ref) {
9160
9306
  })
9161
9307
  }, props));
9162
9308
  };
9163
- TextStyleForm.propTypes = propTypes$9;
9164
- TextStyleForm.defaultProps = defaultProps$9;
9309
+ TextStyleForm.propTypes = propTypes$8;
9310
+ TextStyleForm.defaultProps = defaultProps$8;
9165
9311
  TextStyleForm.withForm = true;
9166
9312
 
9167
- var styles$1 = {"container":"micromag-fields-toggle-container"};
9168
-
9169
- var propTypes$8 = {
9170
- value: PropTypes.bool,
9171
- defaultValue: PropTypes.bool,
9172
- className: PropTypes.string,
9173
- onChange: PropTypes.func
9174
- };
9175
- var defaultProps$8 = {
9176
- value: null,
9177
- defaultValue: null,
9178
- className: null,
9179
- onChange: null
9180
- };
9181
- var ToggleField = function ToggleField(_ref) {
9182
- var value = _ref.value,
9183
- defaultValue = _ref.defaultValue,
9184
- className = _ref.className,
9185
- onChange = _ref.onChange;
9186
- var finalValue = value === null && (defaultValue === true || defaultValue === 'true') ? true : value;
9187
- return /*#__PURE__*/React.createElement("div", {
9188
- className: classNames([styles$1.container, _defineProperty({}, className, className !== null)])
9189
- }, /*#__PURE__*/React.createElement(Switch, {
9190
- checked: finalValue !== null ? finalValue : false,
9191
- onChange: onChange
9192
- }));
9193
- };
9194
- ToggleField.propTypes = propTypes$8;
9195
- ToggleField.defaultProps = defaultProps$8;
9196
- ToggleField.isHorizontal = true;
9197
-
9198
9313
  var styles = {"container":"micromag-fields-tokens-container"};
9199
9314
 
9200
9315
  var propTypes$7 = {
@@ -9549,6 +9664,7 @@ var components = /*#__PURE__*/Object.freeze({
9549
9664
  AlignHorizontal: AlignHorizontal,
9550
9665
  AlignVertical: AlignVertical,
9551
9666
  Alignment: Alignment,
9667
+ Alternative: Alternative,
9552
9668
  Answer: AnswerField,
9553
9669
  Answers: AnswersField,
9554
9670
  Audio: AudioField,
@@ -9659,4 +9775,4 @@ var FieldsProvider = function FieldsProvider(_ref) {
9659
9775
  FieldsProvider.propTypes = propTypes;
9660
9776
  FieldsProvider.defaultProps = defaultProps;
9661
9777
 
9662
- export { AdFormatField as AdFormat, AlignHorizontal, AlignVertical, Alignment, AnswerField as Answer, AnswersField as Answers, AudioField as Audio, AutocompleteField as Autocomplete, Badge, BorderRadius, BorderStyle, BorderWidth, BoxStyleForm, ButtonLayout, CallToAction, CallToActionForm, CardLayout, Checkboxes, ClosedCaptionField as ClosedCaptions, ColorField as Color, ColorPickerField as ColorPicker, ContainerStyleField as ContainerStyle, Conversation, CustomAnswer, DateField as Date, DateElement, ElementField as Element, ElementList, FieldWithForm, Fields, FieldsProvider, ObjectFitSize as Fit, FontField as Font, FontFamily, FontSize, FontStyles$1 as FontStyle, FontStyleTransform, FontStyles as FontStyleWithAlign, FontWeight, FontsField as Fonts, GeoPosition, GridLayout, ImageField as Image, ImageStyleField as ImageStyle, ImagesField as Images, ImagesWithCaptionField as ImagesWithCaption, TextElement$1 as InputElement, InputGroup, ItemsField as Items, KeypadLayout, KeypadLayoutForm, MapField as Map, MarginField as Margin, MarkerField as Marker, MarkersField as Markers, MediaField as Media, MediaModal, MediaThumbnail, MessageField as Message, NumberField as Number, NumberWithIcon, PaddingField as Padding, Position, QuestionField as Question, Radios, ScreenLayoutField as ScreenLayout, SelectField as Select, SelectAdvancedField as SelectAdvanced, ShadowAngle, ShareIncentive, ShareIncentiveForm, SlideField as Slide, SliderField as Slider, SliderPixelField$1 as SliderPercentage, SliderPixelField as SliderPixel, SliderPointField as SliderPoint, SlidesField as Slides, Spacing, StaticField, TargetField as Target, TextField$1 as Text, TextEditorField as TextEditor, TextElement, TextModal, TextStyleForm, TextTransform, TextareaField as Textarea, ToggleField as Toggle, ToggleSection, Tokens, TrueFalse, UrlField as Url, VideoField as Video, VisualField as Visual, VisualsField as Visuals, VisualsWithCaptionField as VisualsWithCaption, manager as default, manager };
9778
+ export { AdFormatField as AdFormat, AlignHorizontal, AlignVertical, Alignment, Alternative, AnswerField as Answer, AnswersField as Answers, AudioField as Audio, AutocompleteField as Autocomplete, Badge, BorderRadius, BorderStyle, BorderWidth, BoxStyleForm, ButtonLayout, CallToAction, CallToActionForm, CardLayout, Checkboxes, ClosedCaptionField as ClosedCaptions, ColorField as Color, ColorPickerField as ColorPicker, ContainerStyleField as ContainerStyle, Conversation, CustomAnswer, DateField as Date, DateElement, ElementField as Element, ElementList, FieldWithForm, Fields, FieldsProvider, ObjectFitSize as Fit, FontField as Font, FontFamily, FontSize, FontStyles$1 as FontStyle, FontStyleTransform, FontStyles as FontStyleWithAlign, FontWeight, FontsField as Fonts, GeoPosition, GridLayout, ImageField as Image, ImageStyleField as ImageStyle, ImagesField as Images, ImagesWithCaptionField as ImagesWithCaption, TextElement$1 as InputElement, InputGroup, ItemsField as Items, KeypadLayout, KeypadLayoutForm, MapField as Map, MarginField as Margin, MarkerField as Marker, MarkersField as Markers, MediaField as Media, MediaModal, MediaThumbnail, MessageField as Message, NumberField as Number, NumberWithIcon, PaddingField as Padding, Position, QuestionField as Question, Radios, ScreenLayoutField as ScreenLayout, SelectField as Select, SelectAdvancedField as SelectAdvanced, ShadowAngle, ShareIncentive, ShareIncentiveForm, SlideField as Slide, SliderField as Slider, SliderPixelField$1 as SliderPercentage, SliderPixelField as SliderPixel, SliderPointField as SliderPoint, SlidesField as Slides, Spacing, StaticField, TargetField as Target, TextField$1 as Text, TextEditorField as TextEditor, TextElement, TextModal, TextStyleForm, TextTransform, TextareaField as Textarea, ToggleField as Toggle, ToggleSection, Tokens, TrueFalse, UrlField as Url, VideoField as Video, VisualField as Visual, VisualsField as Visuals, VisualsWithCaptionField as VisualsWithCaption, manager as default, manager };