@edvisor/product-language 0.4.1 → 0.4.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.
Files changed (2) hide show
  1. package/index.js +5 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -8584,7 +8584,7 @@ const Search = /*#__PURE__*/styled.span.withConfig({
8584
8584
  const ErrorMessage = /*#__PURE__*/styled.div.withConfig({
8585
8585
  displayName: "value__ErrorMessage",
8586
8586
  componentId: "sc-1aps7dx-7"
8587
- })(["display:flex;flex-direction:'row';margin-bottom:", ";position:absolute;width:100%;& path{fill:", ";}"], Margin.xxs, Icons.Warning);
8587
+ })(["display:", ";flex-direction:'row';margin-bottom:", ";width:100%;& path{fill:", ";}"], props => is(props.visible) ? 'flex' : 'none', Margin.xxs, Icons.Warning);
8588
8588
 
8589
8589
  const Value = props => {
8590
8590
  const search = /*#__PURE__*/createRef();
@@ -8734,11 +8734,13 @@ const Value = props => {
8734
8734
  IconPrefix: IconMinor.Xmark
8735
8735
  }), is(searchable) ? jsx(IconMinor.MagnifyingGlass, {}) : open ? jsx(IconMinor.ChevronUpSolid, {}) : jsx(IconMinor.ChevronDownSolid, {})]
8736
8736
  }))]
8737
- })), safeArray(errors).map(e => jsxs(ErrorMessage, {
8737
+ })), safeArray(errors).map(e => jsxs(ErrorMessage, Object.assign({
8738
+ visible: !open
8739
+ }, {
8738
8740
  children: [jsx(IconMinor.CircleExclamation, {}), jsx(Body, {
8739
8741
  children: e.message
8740
8742
  })]
8741
- }, e.message))]
8743
+ }), e.message))]
8742
8744
  });
8743
8745
  };
8744
8746
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edvisor/product-language",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "license": "MIT",
5
5
  "description": "Edvisor.io product-language components",
6
6
  "repository": "https://github.com/edvisor-io/front-end/",