@beequip/hexagon 0.22.3 → 0.22.5
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.
- package/dist/components/Input/index.js +5 -6
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/Input/styles.d.ts +3 -1
- package/dist/components/Input/styles.js +1 -1
- package/dist/components/Input/styles.js.map +1 -1
- package/dist/components/Portal/index.js +2 -2
- package/dist/components/Portal/index.js.map +1 -1
- package/dist/components/Text/styles.js +2 -2
- package/dist/components/Text/styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -35,11 +35,7 @@ exports.Input = React.forwardRef(function (_a, ref) {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}, [onChange]);
|
|
38
|
-
var showClearHandle = showClear &&
|
|
39
|
-
hasValue &&
|
|
40
|
-
isFocussed &&
|
|
41
|
-
!disabled &&
|
|
42
|
-
autoComplete === 'off';
|
|
38
|
+
var showClearHandle = showClear && hasValue && !disabled && autoComplete === 'off';
|
|
43
39
|
return (React.createElement(styles_1.StyledInputWrapper, { "$isFocussed": isFocussed, "$disabled": disabled, "$error": props.error, className: className },
|
|
44
40
|
prefix && (React.createElement(styles_1.StyledPreFix, { className: "hexagon-input-prefix" }, prefix)),
|
|
45
41
|
React.createElement(styles_1.StyledInputInner, null,
|
|
@@ -53,7 +49,10 @@ exports.Input = React.forwardRef(function (_a, ref) {
|
|
|
53
49
|
setIsFocussed(false);
|
|
54
50
|
}, className: "hexagon-input", autoComplete: autoComplete, disabled: disabled, type: type, onChange: handleChange }, props)),
|
|
55
51
|
helpText && React.createElement(styles_1.StyledHelpText, null, helpText)),
|
|
56
|
-
showClearHandle && (React.createElement(styles_1.StyledClearHandle, { className: "hexagon-input-clear", onMouseDown: function (e) {
|
|
52
|
+
showClearHandle && (React.createElement(styles_1.StyledClearHandle, { className: "hexagon-input-clear", tabIndex: -1, "$isFocussed": isFocussed, onMouseDown: function (e) {
|
|
53
|
+
e.preventDefault();
|
|
54
|
+
handleClear();
|
|
55
|
+
} },
|
|
57
56
|
React.createElement(Cross_1.Cross, { width: 20 }))),
|
|
58
57
|
postfix && (React.createElement(styles_1.StyledPostFix, { className: "hexagon-input-postfix" }, postfix))));
|
|
59
58
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Input/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAC9B,kDAAgD;AAChD,mCAQiB;AAYJ,QAAA,KAAK,GAAG,KAAK,CAAC,UAAU,CACjC,UACI,EAcC,EACD,GAAG;IAdC,IAAA,IAAI,UAAA,EACJ,QAAQ,cAAA,EACR,OAAO,aAAA,EACP,MAAM,YAAA,EACN,SAAS,eAAA,EACT,OAAO,aAAA,EACP,MAAM,YAAA,EACN,oBAAoB,EAApB,YAAY,mBAAG,KAAK,KAAA,EACpB,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAChB,YAAa,EAAb,IAAI,mBAAG,MAAM,KAAA,EACb,iBAAgB,EAAhB,SAAS,mBAAG,IAAI,KAAA,EAChB,QAAQ,cAAA,EACL,KAAK,sBAbZ,wIAcC,CADW;IAIZ,IAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAmB,IAAI,CAAC,CAAA;IACrD,KAAK,CAAC,mBAAmB,CACrB,GAAG,EACH,cAAM,OAAA,QAAQ,CAAC,OAA2B,EAApC,CAAoC,CAC7C,CAAA;IAED,uCAAuC;IACjC,IAAA,KAAA,eAA0B,KAAK,CAAC,QAAQ,CAAU,KAAK,CAAC,IAAA,EAAvD,QAAQ,QAAA,EAAE,WAAW,QAAkC,CAAA;IAE9D,KAAK,CAAC,SAAS,CAAC;QACZ,IAAI,QAAQ,CAAC,OAAO,EAAE;YAClB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;SACjD;IACL,CAAC,EAAE,EAAE,CA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;YACjB,CAAC;YAED,oBAAC,aAAK,IAAC,KAAK,EAAE,EAAE,GAAI,CACJ,CACvB;QAEA,OAAO,IAAI,CACR,oBAAC,sBAAa,IAAC,SAAS,EAAC,uBAAuB,IAC3C,OAAO,CACI,CACnB,CACgB,CACxB,CAAA;AACL,CAAC,CACJ,CAAA"}
|
|
@@ -30,6 +30,8 @@ export declare const StyledInput: import("styled-components/dist/types").IStyled
|
|
|
30
30
|
export declare const StyledHelpText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../HelpText").HelpTextProps, never>> & string & Omit<({ className, bottomMargin, inline, children, }: import("../HelpText").HelpTextProps) => JSX.Element, keyof React.Component<any, {}, any>>;
|
|
31
31
|
export declare const StyledInputInner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
32
32
|
export declare const StyledPreFix: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
33
|
-
export declare const StyledClearHandle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
33
|
+
export declare const StyledClearHandle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
34
|
+
$isFocussed?: boolean | undefined;
|
|
35
|
+
}>> & string;
|
|
34
36
|
export declare const StyledPostFix: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
35
37
|
export {};
|
|
@@ -44,7 +44,7 @@ exports.StyledHelpText = (0, styled_components_1.default)(HelpText_1.HelpText)(t
|
|
|
44
44
|
exports.StyledInputInner = styled_components_1.default.div(templateObject_6 || (templateObject_6 = tslib_1.__makeTemplateObject(["\n position: relative;\n width: 100%;\n"], ["\n position: relative;\n width: 100%;\n"])));
|
|
45
45
|
var prePostStyles = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = tslib_1.__makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n color: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n transition: background-color 0.2s ease-in-out 0s;\n"], ["\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n color: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n transition: background-color 0.2s ease-in-out 0s;\n"])), function (props) { return props.theme.font.default; }, function (props) { return props.theme.font.sizes.s; }, function (props) { return props.theme.colors.grey[900]; });
|
|
46
46
|
exports.StyledPreFix = styled_components_1.default.div(templateObject_8 || (templateObject_8 = tslib_1.__makeTemplateObject(["\n ", ";\n padding-left: ", "px;\n"], ["\n ", ";\n padding-left: ", "px;\n"])), prePostStyles, function (props) { return props.theme.baseline; });
|
|
47
|
-
exports.StyledClearHandle = styled_components_1.default.div(templateObject_9 || (templateObject_9 = tslib_1.__makeTemplateObject(["\n ", ";\n padding-right: ", "px;\n cursor: pointer;\n\n &:hover {\n svg {\n fill: ", ";\n }\n }\n"], ["\n ", ";\n padding-right: ", "px;\n cursor: pointer;\n\n &:hover {\n svg {\n fill: ", ";\n }\n }\n"])), prePostStyles, function (props) { return props.theme.baseline; }, function (props) { return props.theme.colors.grey[900]; });
|
|
47
|
+
exports.StyledClearHandle = styled_components_1.default.div(templateObject_9 || (templateObject_9 = tslib_1.__makeTemplateObject(["\n ", ";\n padding-right: ", "px;\n cursor: pointer;\n opacity: ", ";\n pointer-events: ", ";\n transition: opacity 0.2s ease-in-out;\n\n &:hover {\n svg {\n fill: ", ";\n }\n }\n"], ["\n ", ";\n padding-right: ", "px;\n cursor: pointer;\n opacity: ", ";\n pointer-events: ", ";\n transition: opacity 0.2s ease-in-out;\n\n &:hover {\n svg {\n fill: ", ";\n }\n }\n"])), prePostStyles, function (props) { return props.theme.baseline; }, function (props) { return (props.$isFocussed ? 1 : 0); }, function (props) { return (props.$isFocussed ? 'auto' : 'none'); }, function (props) { return props.theme.colors.grey[900]; });
|
|
48
48
|
exports.StyledPostFix = styled_components_1.default.div(templateObject_10 || (templateObject_10 = tslib_1.__makeTemplateObject(["\n ", ";\n padding-right: ", "px;\n"], ["\n ", ";\n padding-right: ", "px;\n"])), prePostStyles, function (props) { return props.theme.baseline; });
|
|
49
49
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
|
|
50
50
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Input/styles.ts"],"names":[],"mappings":";;;;AACA,uDAA+C;AAC/C,wCAAsC;AAgBtC;;;;;;;;;;;;GAYG;AACU,QAAA,kBAAkB,OAAG,uBAAG,weAAyB,qHAKtC,EAGyB,wBAC5B,EAA2C,mCAClC,EAA8C,gBAC9D,EAOuC,aAC3C,EAAmC,qMAO5C,KArBuB,UAAC,KAAK;IACtB,OAAA,KAAK,CAAC,SAAS;QACX,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC;QAClC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU;AAFzC,CAEyC,EAC5B,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,EAAhC,CAAgC,EAClC,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,EAAnC,CAAmC,EAC9D,UAAC,KAAK;IACJ,OAAA,KAAK,CAAC,SAAS;QACX,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC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
|
@@ -5,7 +5,7 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
var React = require("react");
|
|
6
6
|
var ReactDOM = require("react-dom");
|
|
7
7
|
var styled_components_1 = require("styled-components");
|
|
8
|
-
var StyledContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n background: white;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 999;\n transform: translateY(", ");\n transition: transform cubic-bezier(0.62, 0.28, 0.23, 0.99) 0.7s;\n overflow-y: scroll;\n -webkit-overflow-scrolling: touch;\n"], ["\n background: white;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 999;\n transform: translateY(", ");\n transition: transform cubic-bezier(0.62, 0.28, 0.23, 0.99) 0.7s;\n overflow-y: scroll;\n -webkit-overflow-scrolling: touch;\n"])), function (props) { return (props
|
|
8
|
+
var StyledContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n background: white;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 999;\n transform: translateY(", ");\n transition: transform cubic-bezier(0.62, 0.28, 0.23, 0.99) 0.7s;\n overflow-y: scroll;\n -webkit-overflow-scrolling: touch;\n"], ["\n background: white;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 999;\n transform: translateY(", ");\n transition: transform cubic-bezier(0.62, 0.28, 0.23, 0.99) 0.7s;\n overflow-y: scroll;\n -webkit-overflow-scrolling: touch;\n"])), function (props) { return (props.$portalOpen ? '0' : '100%'); });
|
|
9
9
|
// TODO: Use hooks
|
|
10
10
|
var Portal = /** @class */ (function (_super) {
|
|
11
11
|
tslib_1.__extends(Portal, _super);
|
|
@@ -43,7 +43,7 @@ var Portal = /** @class */ (function (_super) {
|
|
|
43
43
|
if (!this.el) {
|
|
44
44
|
return null;
|
|
45
45
|
}
|
|
46
|
-
return (React.createElement(React.Fragment, null, ReactDOM.createPortal(React.createElement(StyledContainer, { portalOpen: this.props.portalOpen }, this.props.children), this.el)));
|
|
46
|
+
return (React.createElement(React.Fragment, null, ReactDOM.createPortal(React.createElement(StyledContainer, { "$portalOpen": this.props.portalOpen }, this.props.children), this.el)));
|
|
47
47
|
};
|
|
48
48
|
return Portal;
|
|
49
49
|
}(React.Component));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Portal/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAC9B,oCAAqC;AACrC,uDAAsC;AAEtC,IAAM,eAAe,GAAG,2BAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Portal/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAC9B,oCAAqC;AACrC,uDAAsC;AAEtC,IAAM,eAAe,GAAG,2BAAM,CAAC,GAAG,yXAA0B,+JAQhC,EAA6C,6IAIxE,KAJ2B,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,EAAlC,CAAkC,CAIxE,CAAA;AAOD,kBAAkB;AAClB;IAA4B,kCAAqC;IAAjE;;IAgDA,CAAC;IA3CU,kCAAiB,GAAxB;QACI,IAAI,CAAC,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;QACvC,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;QAC9C,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAA;QAEnD,IAAI,IAAI,CAAC,UAAU,EAAE;YACjB,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;YACpC,IAAI,IAAI,CAAC,OAAO,EAAE;gBACd,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA;aAChD;SACJ;IACL,CAAC;IACM,mCAAkB,GAAzB,UAA0B,SAAsB;QAC5C,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,KAAK,SAAS,CAAC,UAAU,IAAI,IAAI,CAAC,OAAO,EAAE;YAChE,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE;gBACvB,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;aAC7C;iBAAM;gBACH,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA;aAChD;SACJ;IACL,CAAC;IACM,qCAAoB,GAA3B;QACI,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,EAAE,EAAE;YAC5C,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;YACpC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA;SAChD;IACL,CAAC;IACM,uBAAM,GAAb;QACI,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,OAAO,IAAI,CAAA;SACd;QAED,OAAO,CACH,0CACK,QAAQ,CAAC,YAAY,CAClB,oBAAC,eAAe,mBAAc,IAAI,CAAC,KAAK,CAAC,UAAU,IAC9C,IAAI,CAAC,KAAK,CAAC,QAAQ,CACN,EAClB,IAAI,CAAC,EAAE,CACV,CACF,CACN,CAAA;IACL,CAAC;IACL,aAAC;AAAD,CAAC,AAhDD,CAA4B,KAAK,CAAC,SAAS,GAgD1C;AAhDY,wBAAM"}
|
|
@@ -15,9 +15,9 @@ exports.StyledText = styled_components_1.default.p(templateObject_1 || (template
|
|
|
15
15
|
medium: 500,
|
|
16
16
|
bold: 'bold',
|
|
17
17
|
}), function (props) {
|
|
18
|
-
return props
|
|
18
|
+
return props.$color === 'light'
|
|
19
19
|
? 'white'
|
|
20
|
-
: props
|
|
20
|
+
: props.$color === 'grey'
|
|
21
21
|
? props.theme.colors.text.light
|
|
22
22
|
: props.theme.colors.text.default;
|
|
23
23
|
}, function (props) { return props.theme.font.lineHeight; }, function (props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Text/styles.ts"],"names":[],"mappings":";;;;AAAA,yCAAkC;AAClC,uDAA4D;AAC5D,8BAA2B;AASd,QAAA,UAAU,GAAG,2BAAM,CAAC,CAAC,qOAAiB,QAC7C,EAA6C,sBAChC,EAAmC,oBACrC,EAKX,sBACa,EAIb,gBACO,EAKgC,sBAC1B,EAAsC,yBAEnD,EACqE,KAC1E,KAvBK,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,OAAO,IAAI,iBAAiB,EAAlC,CAAkC,EAChC,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAxB,CAAwB,EACrC,IAAA,oBAAS,EAAC,OAAO,EAAE;IAC5B,EAAE,EAAE,UAAC,KAAuB,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAzB,CAAyB;IAC1D,CAAC,EAAE,UAAC,KAAuB,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAxB,CAAwB;IACxD,CAAC,EAAE,UAAC,KAAuB,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAxB,CAAwB;IACxD,CAAC,EAAE,UAAC,KAAuB,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAxB,CAAwB;CAC3D,CAAC,EACa,IAAA,oBAAS,EAAC,SAAS,EAAE;IAChC,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,GAAG;IACX,IAA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