@edvisor/product-language 0.4.0 → 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 +10 -8
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -6011,23 +6011,23 @@ const LabeledInput = props => {
6011
6011
  const Controls = /*#__PURE__*/styled.div.withConfig({
6012
6012
  displayName: "stepper__Controls",
6013
6013
  componentId: "sc-15wnbc-0"
6014
- })(["height:34px;width:26px;padding:", " ", ";box-sizing:border-box;"], Padding.xxxs, Padding.xxxs);
6014
+ })(["height:34px;width:26px;padding:", " ", ";box-sizing:border-box;:hover{cursor:pointer;}"], Padding.xxxs, Padding.xxxs);
6015
6015
  const Up = /*#__PURE__*/styled(Center).withConfig({
6016
6016
  displayName: "stepper__Up",
6017
6017
  componentId: "sc-15wnbc-1"
6018
- })(["background:", ";width:22px;height:14px;border-radius:3px 3px 0px 0px;margin-bottom:", ";display:flex;align-items:center;justify-content:center;margin-top:", ""], Surface.Neutral.Default, Margin.xxxs, Margin.xs);
6018
+ })(["background:", ";width:22px;height:14px;border-radius:3px;margin-bottom:", ";display:flex;align-items:center;justify-content:center;margin-top:", ";"], Surface.Neutral.Default, Margin.xxxs, Margin.xxs);
6019
6019
  const TriangleUp = /*#__PURE__*/styled.div.withConfig({
6020
6020
  displayName: "stepper__TriangleUp",
6021
6021
  componentId: "sc-15wnbc-2"
6022
- })(["width:0px;height:0px;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid ", ";"], Icons.Default);
6022
+ })(["width:0px;height:0px;border-left:3.5px solid transparent;border-right:3.5px solid transparent;border-bottom:3.5px solid ", ";"], Icons.Default);
6023
6023
  const TriangleDown = /*#__PURE__*/styled.div.withConfig({
6024
6024
  displayName: "stepper__TriangleDown",
6025
6025
  componentId: "sc-15wnbc-3"
6026
- })(["width:0px;height:0px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid ", ";"], Icons.Default);
6026
+ })(["width:0px;height:0px;border-left:3.5px solid transparent;border-right:3.5px solid transparent;border-top:3.5px solid ", ";"], Icons.Default);
6027
6027
  const Down = /*#__PURE__*/styled(Center).withConfig({
6028
6028
  displayName: "stepper__Down",
6029
6029
  componentId: "sc-15wnbc-4"
6030
- })(["background:", ";width:22px;height:14px;border-radius:0px 0px 3px 3px;"], Surface.Neutral.Default);
6030
+ })(["background:", ";width:22px;height:14px;border-radius:3px;"], Surface.Neutral.Default);
6031
6031
  const Stepper = props => {
6032
6032
  return jsxs(Controls, {
6033
6033
  children: [jsx(Up, Object.assign({
@@ -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.0",
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/",