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

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.
@@ -215,23 +215,22 @@
215
215
  padding: 8px;
216
216
  width: auto !important;
217
217
  min-width: 34px;
218
+ display: flex;
219
+ overflow: hidden;
220
+ }
221
+
222
+ .fjs-container .fjs-input-adornment span {
223
+ width: 100%;
218
224
  text-align: center;
219
225
  overflow: hidden;
220
226
  text-overflow: ellipsis;
221
- display: flex;
227
+ white-space: nowrap;
222
228
  }
223
229
 
224
230
  .fjs-container .fjs-input-adornment svg {
225
- display: block;
226
231
  margin: auto;
227
- width: 15px;
228
- }
229
-
230
- .fjs-container .fjs-input-adornment span {
231
- color: var(--color-background-adornment);
232
232
  }
233
233
 
234
-
235
234
  .fjs-container .fjs-input[type='text'],
236
235
  .fjs-container .fjs-input[type='email'],
237
236
  .fjs-container .fjs-input[type='tel'],
package/dist/index.cjs CHANGED
@@ -1889,11 +1889,17 @@ function InputAdorner(props) {
1889
1889
  children: [pre !== null && jsxRuntime.jsxs("span", {
1890
1890
  class: "fjs-input-adornment border-right border-radius-left",
1891
1891
  onClick: onAdornmentClick,
1892
- children: [" ", pre, " "]
1892
+ children: [" ", minDash.isString(pre) ? jsxRuntime.jsx("span", {
1893
+ class: "fjs-input-adornment-text",
1894
+ children: pre
1895
+ }) : pre, " "]
1893
1896
  }), children, post !== null && jsxRuntime.jsxs("span", {
1894
1897
  class: "fjs-input-adornment border-left border-radius-right",
1895
1898
  onClick: onAdornmentClick,
1896
- children: [" ", post, " "]
1899
+ children: [" ", minDash.isString(post) ? jsxRuntime.jsx("span", {
1900
+ class: "fjs-input-adornment-text",
1901
+ children: post
1902
+ }) : post, " "]
1897
1903
  })]
1898
1904
  });
1899
1905
  }
@@ -4005,21 +4011,23 @@ var ImageIcon = (({
4005
4011
  fill: "#000"
4006
4012
  })));
4007
4013
 
4008
- const iconsByType = {
4009
- button: ButtonIcon,
4010
- checkbox: CheckboxIcon,
4011
- checklist: ChecklistIcon,
4012
- columns: ColumnsIcon,
4013
- datetime: DatetimeIcon,
4014
- image: ImageIcon,
4015
- number: NumberIcon,
4016
- radio: RadioIcon,
4017
- select: SelectIcon,
4018
- taglist: TaglistIcon,
4019
- text: TextIcon,
4020
- textfield: TextfieldIcon,
4021
- textarea: TextareaIcon,
4022
- default: FormIcon
4014
+ const iconsByType = type => {
4015
+ return {
4016
+ button: ButtonIcon,
4017
+ checkbox: CheckboxIcon,
4018
+ checklist: ChecklistIcon,
4019
+ columns: ColumnsIcon,
4020
+ datetime: DatetimeIcon,
4021
+ image: ImageIcon,
4022
+ number: NumberIcon,
4023
+ radio: RadioIcon,
4024
+ select: SelectIcon,
4025
+ taglist: TaglistIcon,
4026
+ text: TextIcon,
4027
+ textfield: TextfieldIcon,
4028
+ textarea: TextareaIcon,
4029
+ default: FormIcon
4030
+ }[type];
4023
4031
  };
4024
4032
 
4025
4033
  const formFields = [Button, Checkbox, Checklist, Default, Image, Numberfield, Datetime, Radio, Select, Taglist, Text, Textfield, Textarea];