@bpmn-io/form-js-viewer 0.12.0 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1887,11 +1887,17 @@ function InputAdorner(props) {
1887
1887
  children: [pre !== null && jsxs("span", {
1888
1888
  class: "fjs-input-adornment border-right border-radius-left",
1889
1889
  onClick: onAdornmentClick,
1890
- children: [" ", pre, " "]
1890
+ children: [" ", isString(pre) ? jsx("span", {
1891
+ class: "fjs-input-adornment-text",
1892
+ children: pre
1893
+ }) : pre, " "]
1891
1894
  }), children, post !== null && jsxs("span", {
1892
1895
  class: "fjs-input-adornment border-left border-radius-right",
1893
1896
  onClick: onAdornmentClick,
1894
- children: [" ", post, " "]
1897
+ children: [" ", isString(post) ? jsx("span", {
1898
+ class: "fjs-input-adornment-text",
1899
+ children: post
1900
+ }) : post, " "]
1895
1901
  })]
1896
1902
  });
1897
1903
  }
@@ -4003,21 +4009,23 @@ var ImageIcon = (({
4003
4009
  fill: "#000"
4004
4010
  })));
4005
4011
 
4006
- const iconsByType = {
4007
- button: ButtonIcon,
4008
- checkbox: CheckboxIcon,
4009
- checklist: ChecklistIcon,
4010
- columns: ColumnsIcon,
4011
- datetime: DatetimeIcon,
4012
- image: ImageIcon,
4013
- number: NumberIcon,
4014
- radio: RadioIcon,
4015
- select: SelectIcon,
4016
- taglist: TaglistIcon,
4017
- text: TextIcon,
4018
- textfield: TextfieldIcon,
4019
- textarea: TextareaIcon,
4020
- default: FormIcon
4012
+ const iconsByType = type => {
4013
+ return {
4014
+ button: ButtonIcon,
4015
+ checkbox: CheckboxIcon,
4016
+ checklist: ChecklistIcon,
4017
+ columns: ColumnsIcon,
4018
+ datetime: DatetimeIcon,
4019
+ image: ImageIcon,
4020
+ number: NumberIcon,
4021
+ radio: RadioIcon,
4022
+ select: SelectIcon,
4023
+ taglist: TaglistIcon,
4024
+ text: TextIcon,
4025
+ textfield: TextfieldIcon,
4026
+ textarea: TextareaIcon,
4027
+ default: FormIcon
4028
+ }[type];
4021
4029
  };
4022
4030
 
4023
4031
  const formFields = [Button, Checkbox, Checklist, Default, Image, Numberfield, Datetime, Radio, Select, Taglist, Text, Textfield, Textarea];