@beequip/hexagon 0.17.2 → 0.17.3

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.
@@ -8,4 +8,4 @@ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>
8
8
  postfix?: string;
9
9
  prefix?: string;
10
10
  }
11
- export declare const Input: React.FC<InputProps>;
11
+ export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
@@ -7,19 +7,18 @@ var react_tooltip_1 = require("react-tooltip");
7
7
  var InfoCircle_1 = require("../../assets/icons/InfoCircle");
8
8
  var theme_1 = require("../../theme/theme");
9
9
  var styles_1 = require("./styles");
10
- var Input = function (_a) {
10
+ exports.Input = React.forwardRef(function (_a, ref) {
11
11
  var hook = _a.hook, helpText = _a.helpText, tooltip = _a.tooltip, postfix = _a.postfix, prefix = _a.prefix, props = tslib_1.__rest(_a, ["hook", "helpText", "tooltip", "postfix", "prefix"]);
12
12
  return (React.createElement(styles_1.StyledInputWrapper, null,
13
13
  prefix && React.createElement(styles_1.StyledPreFix, null, prefix),
14
14
  React.createElement(styles_1.StyledInputInner, null,
15
- React.createElement(styles_1.StyledInput, tslib_1.__assign({ "data-hook": hook, prefix: prefix, postfix: postfix }, props)),
15
+ React.createElement(styles_1.StyledInput, tslib_1.__assign({ "data-hook": hook, prefix: prefix, postfix: postfix, ref: ref }, props)),
16
16
  helpText && React.createElement(styles_1.StyledHelpText, null, helpText)),
17
17
  postfix && React.createElement(styles_1.StyledPostFix, null, postfix),
18
18
  tooltip && (React.createElement(styles_1.StyledTooltip, null,
19
19
  React.createElement(react_tooltip_1.default, null),
20
20
  React.createElement(InfoCircle_1.InfoCircle, { "data-background-color": theme_1.GREY1, "data-multiline": true, "data-place": tooltip.place, "data-tip": tooltip.content, "data-offset": "{'top': 10, 'left': 10}", width: 16, color: theme_1.PRIMARY })))));
21
- };
22
- exports.Input = Input;
21
+ });
23
22
  exports.Input.defaultProps = {
24
23
  autoComplete: 'off',
25
24
  disabled: false,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Input/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAC9B,+CAAwC;AACxC,4DAA0D;AAC1D,2CAAkD;AAElD,mCAQiB;AAYV,IAAM,KAAK,GAAyB,UAAC,EAO3C;IANG,IAAA,IAAI,UAAA,EACJ,QAAQ,cAAA,EACR,OAAO,aAAA,EACP,OAAO,aAAA,EACP,MAAM,YAAA,EACH,KAAK,sBANgC,oDAO3C,CADW;IAER,OAAO,CACH,oBAAC,2BAAkB;QACd,MAAM,IAAI,oBAAC,qBAAY,QAAE,MAAM,CAAgB;QAChD,oBAAC,yBAAgB;YACb,oBAAC,oBAAW,kCACG,IAAI,EACf,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,IACZ,KAAK,EACX;YACD,QAAQ,IAAI,oBAAC,uBAAc,QAAE,QAAQ,CAAkB,CACzC;QAClB,OAAO,IAAI,oBAAC,sBAAa,QAAE,OAAO,CAAiB;QACnD,OAAO,IAAI,CACR,oBAAC,sBAAa;YACV,oBAAC,uBAAY,OAAG;YAChB,oBAAC,uBAAU,6BACgB,aAAK,oBACZ,IAAI,gBACR,OAAO,CAAC,KAAK,cACf,OAAO,CAAC,OAAO,iBACb,yBAAyB,EACrC,KAAK,EAAE,EAAE,EACT,KAAK,EAAE,eAAO,GAChB,CACU,CACnB,CACgB,CACxB,CAAA;AACL,CAAC,CAAA;AArCY,QAAA,KAAK,SAqCjB;AAED,aAAK,CAAC,YAAY,GAAG;IACjB,YAAY,EAAE,KAAK;IACnB,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE,MAAM;CACf,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Input/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAC9B,+CAAwC;AACxC,4DAA0D;AAC1D,2CAAkD;AAElD,mCAQiB;AAYJ,QAAA,KAAK,GAAG,KAAK,CAAC,UAAU,CACjC,UACI,EAAsD,EACtD,GAAG;IADD,IAAA,IAAI,UAAA,EAAE,QAAQ,cAAA,EAAE,OAAO,aAAA,EAAE,OAAO,aAAA,EAAE,MAAM,YAAA,EAAK,KAAK,sBAApD,oDAAsD,CAAF;IAGpD,OAAO,CACH,oBAAC,2BAAkB;QACd,MAAM,IAAI,oBAAC,qBAAY,QAAE,MAAM,CAAgB;QAChD,oBAAC,yBAAgB;YACb,oBAAC,oBAAW,kCACG,IAAI,EACf,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,GAAG,IACJ,KAAK,EACX;YACD,QAAQ,IAAI,oBAAC,uBAAc,QAAE,QAAQ,CAAkB,CACzC;QAClB,OAAO,IAAI,oBAAC,sBAAa,QAAE,OAAO,CAAiB;QACnD,OAAO,IAAI,CACR,oBAAC,sBAAa;YACV,oBAAC,uBAAY,OAAG;YAChB,oBAAC,uBAAU,6BACgB,aAAK,oBACZ,IAAI,gBACR,OAAO,CAAC,KAAK,cACf,OAAO,CAAC,OAAO,iBACb,yBAAyB,EACrC,KAAK,EAAE,EAAE,EACT,KAAK,EAAE,eAAO,GAChB,CACU,CACnB,CACgB,CACxB,CAAA;AACL,CAAC,CACJ,CAAA;AAED,aAAK,CAAC,YAAY,GAAG;IACjB,YAAY,EAAE,KAAK;IACnB,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE,MAAM;CACf,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beequip/hexagon",
3
- "version": "0.17.2",
3
+ "version": "0.17.3",
4
4
  "description": "Component library for BEEQUIP",
5
5
  "main": "dist/index.js",
6
6
  "files": [