glints-aries 4.0.204 → 4.0.206

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.
@@ -6,7 +6,7 @@ import { space12, space16, space24, space4 } from '../utilities/spacing';
6
6
  export var StyledCardContainer = styled.div.withConfig({
7
7
  displayName: "CardStyle__StyledCardContainer",
8
8
  componentId: "sc-tpku8j-0"
9
- })(["border-radius:", ";box-shadow:0px 0px 5px 0px rgba(71,71,71,0.1),0px 1px 2px 0px rgba(71,71,71,0.2);color:", ";"], borderRadius8, Neutral.B18);
9
+ })(["border-radius:", ";box-shadow:0px 0px 5px 0px rgba(71,71,71,0.1),0px 1px 2px 0px rgba(71,71,71,0.2);color:", ";background-color:", ";"], borderRadius8, Neutral.B18, Neutral.B100);
10
10
  export var StyledCardHeaderWrapper = styled.div.withConfig({
11
11
  displayName: "CardStyle__StyledCardHeaderWrapper",
12
12
  componentId: "sc-tpku8j-1"
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
3
  var _excluded = ["canClear", "suffix", "value", "onChange"];
4
- import React, { useState } from 'react';
4
+ import React, { useEffect, useState } from 'react';
5
5
  import { Icon } from '../Icon';
6
6
  import { Input } from '../Input/Input';
7
7
  export var TextInput = /*#__PURE__*/React.forwardRef(function TextInput(_ref, ref) {
@@ -38,6 +38,9 @@ export var TextInput = /*#__PURE__*/React.forwardRef(function TextInput(_ref, re
38
38
  setSuffixValue(currSuffix);
39
39
  onChange == null ? void 0 : onChange(e);
40
40
  };
41
+ useEffect(function () {
42
+ setSuffixValue(suffix);
43
+ }, [suffix]);
41
44
  return /*#__PURE__*/React.createElement(Input, _extends({
42
45
  ref: ref,
43
46
  type: "text",
@@ -13,7 +13,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
13
13
  var StyledCardContainer = _styledComponents["default"].div.withConfig({
14
14
  displayName: "CardStyle__StyledCardContainer",
15
15
  componentId: "sc-tpku8j-0"
16
- })(["border-radius:", ";box-shadow:0px 0px 5px 0px rgba(71,71,71,0.1),0px 1px 2px 0px rgba(71,71,71,0.2);color:", ";"], _borderRadius.borderRadius8, _colors.Neutral.B18);
16
+ })(["border-radius:", ";box-shadow:0px 0px 5px 0px rgba(71,71,71,0.1),0px 1px 2px 0px rgba(71,71,71,0.2);color:", ";background-color:", ";"], _borderRadius.borderRadius8, _colors.Neutral.B18, _colors.Neutral.B100);
17
17
  exports.StyledCardContainer = StyledCardContainer;
18
18
  var StyledCardHeaderWrapper = _styledComponents["default"].div.withConfig({
19
19
  displayName: "CardStyle__StyledCardHeaderWrapper",
@@ -45,6 +45,9 @@ var TextInput = /*#__PURE__*/_react["default"].forwardRef(function TextInput(_re
45
45
  setSuffixValue(currSuffix);
46
46
  onChange == null ? void 0 : onChange(e);
47
47
  };
48
+ (0, _react.useEffect)(function () {
49
+ setSuffixValue(suffix);
50
+ }, [suffix]);
48
51
  return /*#__PURE__*/_react["default"].createElement(_Input.Input, (0, _extends2["default"])({
49
52
  ref: ref,
50
53
  type: "text",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glints-aries",
3
- "version": "4.0.204",
3
+ "version": "4.0.206",
4
4
  "description": "Glints ui-kit for frontend",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./es/index.js",