@beequip/hexagon 0.13.0 → 0.15.1
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/assets/icons/CheckCircle.js +2 -2
- package/dist/assets/icons/CheckCircle.js.map +1 -1
- package/dist/assets/icons/ChevronDown.js +1 -1
- package/dist/assets/icons/ChevronDown.js.map +1 -1
- package/dist/assets/icons/ChevronLeft.js +1 -1
- package/dist/assets/icons/ChevronLeft.js.map +1 -1
- package/dist/assets/icons/ChevronRight.js +1 -1
- package/dist/assets/icons/ChevronRight.js.map +1 -1
- package/dist/assets/icons/ChevronUp.js +1 -1
- package/dist/assets/icons/ChevronUp.js.map +1 -1
- package/dist/assets/icons/Cross.js +4 -3
- package/dist/assets/icons/Cross.js.map +1 -1
- package/dist/assets/icons/ExclamationCircle.js +2 -2
- package/dist/assets/icons/ExclamationCircle.js.map +1 -1
- package/dist/assets/icons/ExclamationTriangle.d.ts +3 -0
- package/dist/assets/icons/ExclamationTriangle.js +11 -0
- package/dist/assets/icons/ExclamationTriangle.js.map +1 -0
- package/dist/assets/icons/InfoCircle.js +4 -2
- package/dist/assets/icons/InfoCircle.js.map +1 -1
- package/dist/assets/icons/MessageSquareCheck.d.ts +3 -0
- package/dist/assets/icons/MessageSquareCheck.js +11 -0
- package/dist/assets/icons/MessageSquareCheck.js.map +1 -0
- package/dist/assets/icons/MessageSquareDots.d.ts +3 -0
- package/dist/assets/icons/MessageSquareDots.js +11 -0
- package/dist/assets/icons/MessageSquareDots.js.map +1 -0
- package/dist/components/Autocomplete/Item/styles.js +1 -1
- package/dist/components/Badge/styles.js +1 -1
- package/dist/components/Badge/styles.js.map +1 -1
- package/dist/components/Button/index.stories.js +1 -0
- package/dist/components/Button/index.stories.js.map +1 -1
- package/dist/components/Button/styles.js +39 -39
- package/dist/components/Button/styles.js.map +1 -1
- package/dist/components/Card/index.d.ts +2 -1
- package/dist/components/Card/index.js +2 -1
- package/dist/components/Card/index.js.map +1 -1
- package/dist/components/Card/index.stories.d.ts +2 -1
- package/dist/components/Card/index.stories.js +10 -5
- package/dist/components/Card/index.stories.js.map +1 -1
- package/dist/components/Card/styles.js +14 -2
- package/dist/components/Card/styles.js.map +1 -1
- package/dist/components/Checkbox/styles.js +2 -2
- package/dist/components/Checkbox/styles.js.map +1 -1
- package/dist/components/Error/index.js +2 -2
- package/dist/components/Error/index.js.map +1 -1
- package/dist/components/Heading/styles.js +10 -8
- package/dist/components/Heading/styles.js.map +1 -1
- package/dist/components/Input/CurrencyInput/index.js +1 -1
- package/dist/components/Input/CurrencyInput/index.js.map +1 -1
- package/dist/components/Input/CurrencyInput/styles.js +1 -1
- package/dist/components/Input/CurrencyInput/styles.js.map +1 -1
- package/dist/components/Input/index.js +3 -3
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/Input/index.stories.d.ts +2 -0
- package/dist/components/Input/index.stories.js +9 -1
- package/dist/components/Input/index.stories.js.map +1 -1
- package/dist/components/Input/styles.d.ts +8 -3
- package/dist/components/Input/styles.js +13 -5
- package/dist/components/Input/styles.js.map +1 -1
- package/dist/components/Modal/styles.js +1 -1
- package/dist/components/Modal/styles.js.map +1 -1
- package/dist/components/Notification/index.js +4 -3
- package/dist/components/Notification/index.js.map +1 -1
- package/dist/components/Notification/styles.js +13 -11
- package/dist/components/Notification/styles.js.map +1 -1
- package/dist/components/Radio/styles.js +1 -1
- package/dist/components/Radio/styles.js.map +1 -1
- package/dist/components/Select/index.js +2 -3
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/Select/styles.js +2 -2
- package/dist/components/Select/styles.js.map +1 -1
- package/dist/components/Tag/index.d.ts +1 -1
- package/dist/components/Tag/index.stories.d.ts +4 -0
- package/dist/components/Tag/index.stories.js +20 -1
- package/dist/components/Tag/index.stories.js.map +1 -1
- package/dist/components/Tag/styles.js +18 -7
- package/dist/components/Tag/styles.js.map +1 -1
- package/dist/theme/theme.d.ts +35 -11
- package/dist/theme/theme.js +67 -30
- package/dist/theme/theme.js.map +1 -1
- package/dist/theme/types.d.ts +8 -0
- package/dist/theme/types.js.map +1 -1
- package/package.json +2 -1
- package/dist/components/RemoveButton/index.d.ts +0 -5
- package/dist/components/RemoveButton/index.js +0 -13
- package/dist/components/RemoveButton/index.js.map +0 -1
- package/dist/components/RemoveButton/index.stories.d.ts +0 -5
- package/dist/components/RemoveButton/index.stories.js +0 -20
- package/dist/components/RemoveButton/index.stories.js.map +0 -1
- package/dist/components/RemoveButton/styles.d.ts +0 -2
- package/dist/components/RemoveButton/styles.js +0 -9
- package/dist/components/RemoveButton/styles.js.map +0 -1
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.StyledCheckbox = exports.StyledCheck = exports.StyledCheckboxLabel = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var styled_components_1 = require("styled-components");
|
|
6
|
-
exports.StyledCheckboxLabel = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n
|
|
7
|
-
exports.StyledCheck = styled_components_1.default.input(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n height: 16px;\n width: 16px;\n cursor: pointer;\n"], ["\n height: 16px;\n width: 16px;\n cursor: pointer;\n"])));
|
|
6
|
+
exports.StyledCheckboxLabel = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n cursor: pointer;\n margin-left: 8px;\n"], ["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n cursor: pointer;\n margin-left: 8px;\n"])), function (props) { return props.theme.font.heading; }, function (props) { return props.theme.font.sizes.s; }, function (props) { return props.theme.font.lineHeight; }, function (props) { return props.theme.colors.text.default; });
|
|
7
|
+
exports.StyledCheck = styled_components_1.default.input(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n height: 16px;\n width: 16px;\n cursor: pointer;\n margin: 0;\n margin-top: 1px;\n"], ["\n height: 16px;\n width: 16px;\n cursor: pointer;\n margin: 0;\n margin-top: 1px;\n"])));
|
|
8
8
|
exports.StyledCheckbox = styled_components_1.default.label(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n display: flex;\n cursor: pointer;\n"], ["\n display: flex;\n cursor: pointer;\n"])));
|
|
9
9
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
10
10
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Checkbox/styles.ts"],"names":[],"mappings":";;;;AAAA,uDAAsC;AAEzB,QAAA,mBAAmB,GAAG,2BAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Checkbox/styles.ts"],"names":[],"mappings":";;;;AAAA,uDAAsC;AAEzB,QAAA,mBAAmB,GAAG,2BAAM,CAAC,GAAG,oNAAA,qBAC1B,EAAiC,oBACnC,EAAiC,sBAC/B,EAAoC,gBAC1C,EAAwC,kDAGpD,KANkB,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAxB,CAAwB,EACnC,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAxB,CAAwB,EAC/B,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAA3B,CAA2B,EAC1C,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAA/B,CAA+B,EAGpD;AAEY,QAAA,WAAW,GAAG,2BAAM,CAAC,KAAK,gLAAA,qGAMtC,KAAA;AAEY,QAAA,cAAc,GAAG,2BAAM,CAAC,KAAK,yHAAA,8CAGzC,KAAA"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Error = void 0;
|
|
4
4
|
var React = require("react");
|
|
5
|
-
var
|
|
5
|
+
var ExclamationTriangle_1 = require("../../assets/icons/ExclamationTriangle");
|
|
6
6
|
var theme_1 = require("../../theme");
|
|
7
7
|
var Error = function () {
|
|
8
|
-
return React.createElement(
|
|
8
|
+
return React.createElement(ExclamationTriangle_1.ExclamationTriangle, { width: 24, color: theme_1.theme.colors.error });
|
|
9
9
|
};
|
|
10
10
|
exports.Error = Error;
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Error/index.tsx"],"names":[],"mappings":";;;AAAA,6BAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Error/index.tsx"],"names":[],"mappings":";;;AAAA,6BAA8B;AAC9B,8EAA4E;AAC5E,qCAAmC;AAE5B,IAAM,KAAK,GAAa;IAC3B,OAAO,oBAAC,yCAAmB,IAAC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,aAAK,CAAC,MAAM,CAAC,KAAK,GAAI,CAAA;AACxE,CAAC,CAAA;AAFY,QAAA,KAAK,SAEjB"}
|
|
@@ -10,10 +10,10 @@ exports.StyledHeading = styled_components_1.default.h2(templateObject_1 || (temp
|
|
|
10
10
|
}, function (props) { return props.theme.font.heading; }, styled_map_1.default('size', {
|
|
11
11
|
1: function (props) { return props.theme.font.sizes.xxxl; },
|
|
12
12
|
2: function (props) { return props.theme.font.sizes.xxl; },
|
|
13
|
-
3: function (props) { return props.theme.font.sizes.
|
|
14
|
-
4: function (props) { return props.theme.font.sizes.
|
|
13
|
+
3: function (props) { return props.theme.font.sizes.xl; },
|
|
14
|
+
4: function (props) { return props.theme.font.sizes.l; },
|
|
15
15
|
5: function (props) { return props.theme.font.sizes.m; },
|
|
16
|
-
6: function (props) { return props.theme.font.sizes.
|
|
16
|
+
6: function (props) { return props.theme.font.sizes.s; },
|
|
17
17
|
}), styled_map_1.default('margin', {
|
|
18
18
|
0: function (props) { return props.theme.spacing[0] + 'px'; },
|
|
19
19
|
1: function (props) { return props.theme.spacing[1] + 'px'; },
|
|
@@ -21,12 +21,14 @@ exports.StyledHeading = styled_components_1.default.h2(templateObject_1 || (temp
|
|
|
21
21
|
3: function (props) { return props.theme.spacing[3] + 'px'; },
|
|
22
22
|
4: function (props) { return props.theme.spacing[4] + 'px'; },
|
|
23
23
|
5: function (props) { return props.theme.spacing[5] + 'px'; },
|
|
24
|
+
6: function (props) { return props.theme.spacing[6] + 'px'; },
|
|
24
25
|
}), styled_map_1.default('size', {
|
|
25
|
-
1: '
|
|
26
|
-
2: '
|
|
27
|
-
3: '
|
|
28
|
-
4: '
|
|
26
|
+
1: '48px',
|
|
27
|
+
2: '42px',
|
|
28
|
+
3: '36px',
|
|
29
|
+
4: '30px',
|
|
29
30
|
5: '24px',
|
|
31
|
+
6: '21px',
|
|
30
32
|
}), function (props) {
|
|
31
33
|
return props.weight
|
|
32
34
|
? props.weight
|
|
@@ -36,7 +38,7 @@ exports.StyledHeading = styled_components_1.default.h2(templateObject_1 || (temp
|
|
|
36
38
|
3: 900,
|
|
37
39
|
4: 900,
|
|
38
40
|
5: 800,
|
|
39
|
-
6:
|
|
41
|
+
6: 600,
|
|
40
42
|
});
|
|
41
43
|
}, function (props) { return props.theme.colors.text.heading; });
|
|
42
44
|
var templateObject_1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Heading/styles.ts"],"names":[],"mappings":";;;;AAAA,yCAAkC;AAClC,uDAAsC;AAGzB,QAAA,aAAa,GAAG,2BAAM,CAAC,EAAE,gQAAc,oCAElC,EAAoB,sBACnB,EAAiC,oBACnC,EAOX,wBACe,
|
|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,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAA/B,CAA+B,EACpD"}
|
|
@@ -49,7 +49,7 @@ var CurrencyInput = function (props) {
|
|
|
49
49
|
}
|
|
50
50
|
}, [valueFromProp, currentValue]);
|
|
51
51
|
return (React.createElement(styles_2.StyledCurrencyInputWrapper, null,
|
|
52
|
-
React.createElement(styles_1.
|
|
52
|
+
React.createElement(styles_1.StyledPreFix, null, prefix ? prefix : '€'),
|
|
53
53
|
React.createElement(styles_2.StyledCurrencyInput, tslib_1.__assign({ type: "text", value: currentValue, onChange: handleChange, onBlur: handleBlur, "data-hook": hook, inputMode: "decimal" }, rest)),
|
|
54
54
|
helpText && React.createElement(styles_1.StyledHelpText, null, helpText)));
|
|
55
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Input/CurrencyInput/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Input/CurrencyInput/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAC9B,oCAAwD;AACxD,mCAA0E;AAC1E,yCAIoB;AAiBb,IAAM,aAAa,GAAG,UAAC,KAAyB;IAE/C,IAAO,aAAa,GAOpB,KAAK,MAPe,EACpB,IAAI,GAMJ,KAAK,KAND,EACJ,MAAM,GAKN,KAAK,OALC,EACN,QAAQ,GAIR,KAAK,SAJG,EACR,QAAQ,GAGR,KAAK,SAHG,EACR,MAAM,GAEN,KAAK,OAFC,EACH,IAAI,kBACP,KAAK,EARH,6DAQL,CADU,CACF;IAEH,IAAA,KAAA,eAAqC,KAAK,CAAC,QAAQ,CACrD,aAAa,KAAK,SAAS,IAAI,aAAa,KAAK,IAAI;QACjD,CAAC,CAAC,yBAAa,CAAC,aAAa,CAAC;QAC9B,CAAC,CAAC,EAAE,CACX,IAA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AAK,CAAC,SAAS,CAAC;QACZ,IAAI,aAAa,IAAI,aAAa,KAAK,QAAQ,CAAC,YAAY,EAAE,EAAE,CAAC,EAAE;YAC/D,kBAAkB,CAAC,yBAAa,CAAC,aAAa,CAAC,CAAC,CAAA;SACnD;IACL,CAAC,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC,CAAA;IAEjC,OAAO,CACH,oBAAC,mCAA0B;QACvB,oBAAC,qBAAY,QAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAgB;QACpD,oBAAC,4BAAmB,qBAChB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,YAAY,EACtB,MAAM,EAAE,UAAU,eACP,IAAI,EACf,SAAS,EAAC,SAAS,IACf,IAAI,EACV;QACD,QAAQ,IAAI,oBAAC,uBAAc,QAAE,QAAQ,CAAkB,CAC/B,CAChC,CAAA;AACL,CAAC,CAAA;AAxFY,QAAA,aAAa,iBAwFzB;AAED,qBAAa,CAAC,YAAY,GAAG;IACzB,YAAY,EAAE,KAAK;CACtB,CAAA"}
|
|
@@ -4,7 +4,7 @@ exports.StyledTooltip = exports.StyledCurrencyInputWrapper = exports.StyledCurre
|
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var styled_components_1 = require("styled-components");
|
|
6
6
|
var styles_1 = require("../styles");
|
|
7
|
-
exports.StyledCurrencyInput = styled_components_1.default.input(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", ";\n padding-left: 16px;\n"], ["\n ", ";\n padding-left: 16px;\n"])), styles_1.inputStyles);
|
|
7
|
+
exports.StyledCurrencyInput = styled_components_1.default.input(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", ";\n padding-left: 16px;\n border-radius: 0 5px 5px 0;\n"], ["\n ", ";\n padding-left: 16px;\n border-radius: 0 5px 5px 0;\n"])), styles_1.inputStyles);
|
|
8
8
|
exports.StyledCurrencyInputWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n display: flex;\n position: relative;\n"], ["\n display: flex;\n position: relative;\n"])));
|
|
9
9
|
exports.StyledTooltip = styled_components_1.default.div(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n font-family: ", ";\n margin-left: ", "px;\n"], ["\n font-family: ", ";\n margin-left: ", "px;\n"])), function (props) { return props.theme.font.default; }, function (props) { return props.theme.baseline; });
|
|
10
10
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/Input/CurrencyInput/styles.ts"],"names":[],"mappings":";;;;AAAA,uDAAsC;AACtC,oCAAuC;AAM1B,QAAA,mBAAmB,GAAG,2BAAM,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/Input/CurrencyInput/styles.ts"],"names":[],"mappings":";;;;AAAA,uDAAsC;AACtC,oCAAuC;AAM1B,QAAA,mBAAmB,GAAG,2BAAM,CAAC,KAAK,oJAA0B,QACnE,EAAW,+DAGhB,KAHK,oBAAW,EAGhB;AAEY,QAAA,0BAA0B,GAAG,2BAAM,CAAC,GAAG,4HAAA,iDAGnD,KAAA;AAEY,QAAA,aAAa,GAAG,2BAAM,CAAC,GAAG,iIAAA,qBACpB,EAAiC,sBACjC,EAA6B,OAC/C,KAFkB,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAxB,CAAwB,EACjC,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,QAAQ,EAApB,CAAoB,EAC/C"}
|
|
@@ -10,11 +10,11 @@ var styles_1 = require("./styles");
|
|
|
10
10
|
var Input = function (_a) {
|
|
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
|
-
prefix && React.createElement(styles_1.
|
|
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 }, props)),
|
|
15
|
+
React.createElement(styles_1.StyledInput, tslib_1.__assign({ "data-hook": hook, prefix: prefix, postfix: postfix }, props)),
|
|
16
16
|
helpText && React.createElement(styles_1.StyledHelpText, null, helpText)),
|
|
17
|
-
postfix && React.createElement(styles_1.
|
|
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 })))));
|
|
@@ -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,
|
|
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"}
|
|
@@ -3,3 +3,5 @@ import { InputProps } from '.';
|
|
|
3
3
|
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Default: Story<InputProps>;
|
|
6
|
+
export declare const WithPrefix: Story<InputProps>;
|
|
7
|
+
export declare const WithPostfix: Story<InputProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Default = void 0;
|
|
3
|
+
exports.WithPostfix = exports.WithPrefix = exports.Default = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var react_1 = require("react");
|
|
6
6
|
var _1 = require(".");
|
|
@@ -14,4 +14,12 @@ var Template = function (_a) {
|
|
|
14
14
|
return react_1.default.createElement(_1.Input, tslib_1.__assign({}, args));
|
|
15
15
|
};
|
|
16
16
|
exports.Default = Template.bind({});
|
|
17
|
+
exports.WithPrefix = Template.bind({});
|
|
18
|
+
exports.WithPrefix.args = {
|
|
19
|
+
prefix: '€',
|
|
20
|
+
};
|
|
21
|
+
exports.WithPostfix = Template.bind({});
|
|
22
|
+
exports.WithPostfix.args = {
|
|
23
|
+
postfix: 'mnd',
|
|
24
|
+
};
|
|
17
25
|
//# sourceMappingURL=index.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../src/components/Input/index.stories.tsx"],"names":[],"mappings":";;;;AACA,+BAAyB;AACzB,sBAAqC;AAErC,kBAAe;IACX,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,QAAK;IAChB,UAAU,EAAE,CAAC,UAAA,KAAK,IAAI,OAAA,8BAAC,KAAK,OAAG,EAAT,CAAS,CAAC;CAC3B,CAAA;AAET,IAAM,QAAQ,GAAsB,UAAC,EAAW;QAAN,IAAI,sBAAT,EAAW,CAAF;IAAO,OAAA,8BAAC,QAAK,uBAAK,IAAI,EAAI,CAAA;CAAA,CAAA;AAE3D,QAAA,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../src/components/Input/index.stories.tsx"],"names":[],"mappings":";;;;AACA,+BAAyB;AACzB,sBAAqC;AAErC,kBAAe;IACX,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,QAAK;IAChB,UAAU,EAAE,CAAC,UAAA,KAAK,IAAI,OAAA,8BAAC,KAAK,OAAG,EAAT,CAAS,CAAC;CAC3B,CAAA;AAET,IAAM,QAAQ,GAAsB,UAAC,EAAW;QAAN,IAAI,sBAAT,EAAW,CAAF;IAAO,OAAA,8BAAC,QAAK,uBAAK,IAAI,EAAI,CAAA;CAAA,CAAA;AAE3D,QAAA,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE3B,QAAA,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC3C,kBAAU,CAAC,IAAI,GAAG;IACd,MAAM,EAAE,GAAG;CACd,CAAA;AAEY,QAAA,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC5C,mBAAW,CAAC,IAAI,GAAG;IACf,OAAO,EAAE,KAAK;CACjB,CAAA"}
|
|
@@ -3,11 +3,16 @@ interface InputStylesProps {
|
|
|
3
3
|
error?: string | React.ReactNode;
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
}
|
|
6
|
+
interface PreOrPostFix {
|
|
7
|
+
prefix?: string;
|
|
8
|
+
postfix?: string;
|
|
9
|
+
}
|
|
6
10
|
export declare const StyledInputWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
-
export declare const inputStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<InputStylesProps, any>>;
|
|
8
|
-
export declare const StyledInput: import("styled-components").StyledComponent<"input", any, InputStylesProps, never>;
|
|
11
|
+
export declare const inputStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<InputStylesProps & PreOrPostFix, any>>;
|
|
12
|
+
export declare const StyledInput: import("styled-components").StyledComponent<"input", any, InputStylesProps & PreOrPostFix, never>;
|
|
9
13
|
export declare const StyledHelpText: import("styled-components").StyledComponent<import("react").FC<import("../HelpText").HelpTextProps>, any, {}, never>;
|
|
10
14
|
export declare const StyledInputInner: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
15
|
export declare const StyledTooltip: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
-
export declare const
|
|
16
|
+
export declare const StyledPreFix: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
17
|
+
export declare const StyledPostFix: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
18
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.StyledPostFix = exports.StyledPreFix = exports.StyledTooltip = exports.StyledInputInner = exports.StyledHelpText = exports.StyledInput = exports.inputStyles = exports.StyledInputWrapper = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var styled_components_1 = require("styled-components");
|
|
6
6
|
var HelpText_1 = require("../HelpText");
|
|
7
7
|
exports.StyledInputWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n display: flex;\n position: relative;\n"], ["\n display: flex;\n position: relative;\n"])));
|
|
8
|
-
exports.inputStyles = styled_components_1.css(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n font-family: ", ";\n font-weight: 500;\n font-size: ", ";\n color: ", ";\n align-items: center;\n max-width: 100%;\n overflow-wrap: break-word;\n border-style: solid;\n border-width: ", "px;\n border-color: ", ";\n border-radius: ", "
|
|
8
|
+
exports.inputStyles = styled_components_1.css(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n font-family: ", ";\n font-weight: 500;\n font-size: ", ";\n color: ", ";\n align-items: center;\n max-width: 100%;\n overflow-wrap: break-word;\n border-style: solid;\n border-width: ", "px;\n border-color: ", ";\n border-radius: ", ";\n background-color: ", ";\n overflow: hidden;\n transition: background-color 0.2s ease-in-out 0s,\n border-color 0.2s ease-in-out 0s;\n padding: 16px 16px;\n height: 40px;\n width: 100%;\n\n &[type='text'],\n &[type='number'],\n &[type='email'],\n &[type='tel'],\n &[type='search'] {\n -webkit-appearance: none;\n }\n\n &[type='number'] {\n &::-webkit-inner-spin-button,\n &::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n }\n\n // hide the helptext if it is available\n + div {\n opacity: 0;\n }\n\n &:focus {\n border-color: ", ";\n outline: none;\n\n // show the helptext if it is available\n + div {\n opacity: 1;\n }\n }\n\n &::placeholder {\n color: ", ";\n font-weight: 500;\n }\n"], ["\n font-family: ", ";\n font-weight: 500;\n font-size: ", ";\n color: ", ";\n align-items: center;\n max-width: 100%;\n overflow-wrap: break-word;\n border-style: solid;\n border-width: ", "px;\n border-color: ", ";\n border-radius: ", ";\n background-color: ", ";\n overflow: hidden;\n transition: background-color 0.2s ease-in-out 0s,\n border-color 0.2s ease-in-out 0s;\n padding: 16px 16px;\n height: 40px;\n width: 100%;\n\n &[type='text'],\n &[type='number'],\n &[type='email'],\n &[type='tel'],\n &[type='search'] {\n -webkit-appearance: none;\n }\n\n &[type='number'] {\n &::-webkit-inner-spin-button,\n &::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n }\n\n // hide the helptext if it is available\n + div {\n opacity: 0;\n }\n\n &:focus {\n border-color: ", ";\n outline: none;\n\n // show the helptext if it is available\n + div {\n opacity: 1;\n }\n }\n\n &::placeholder {\n color: ", ";\n font-weight: 500;\n }\n"])), function (props) { return props.theme.font.default; }, function (props) { return props.theme.font.sizes.s; }, function (props) {
|
|
9
9
|
return props.disabled
|
|
10
10
|
? props.theme.colors.grey[2]
|
|
11
11
|
: props.theme.colors.input.color;
|
|
@@ -13,7 +13,13 @@ exports.inputStyles = styled_components_1.css(templateObject_2 || (templateObjec
|
|
|
13
13
|
return props.error
|
|
14
14
|
? props.theme.colors.input.error
|
|
15
15
|
: props.theme.colors.input.border;
|
|
16
|
-
}, function (props) {
|
|
16
|
+
}, function (props) {
|
|
17
|
+
return props.prefix
|
|
18
|
+
? '0 5px 5px 0'
|
|
19
|
+
: props.postfix
|
|
20
|
+
? '5px 0 0 5px'
|
|
21
|
+
: props.theme.borderRadius.default + "px";
|
|
22
|
+
}, function (props) {
|
|
17
23
|
return props.disabled
|
|
18
24
|
? props.theme.colors.grey[4]
|
|
19
25
|
: props.theme.colors.input.background;
|
|
@@ -22,6 +28,8 @@ exports.StyledInput = styled_components_1.default.input(templateObject_3 || (tem
|
|
|
22
28
|
exports.StyledHelpText = styled_components_1.default(HelpText_1.HelpText)(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n display: inline-block;\n position: absolute;\n top: 50%;\n right: 20px;\n transition: opacity 200ms;\n pointer-events: none;\n\n > div {\n color: ", " !important;\n }\n"], ["\n display: inline-block;\n position: absolute;\n top: 50%;\n right: 20px;\n transition: opacity 200ms;\n pointer-events: none;\n\n > div {\n color: ", " !important;\n }\n"])), function (props) { return props.theme.colors.grey[2]; });
|
|
23
29
|
exports.StyledInputInner = styled_components_1.default.div(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n position: relative;\n width: 100%;\n"], ["\n position: relative;\n width: 100%;\n"])));
|
|
24
30
|
exports.StyledTooltip = styled_components_1.default.div(templateObject_6 || (templateObject_6 = tslib_1.__makeTemplateObject(["\n font-family: ", ";\n margin-left: ", "px;\n line-height: 1.6;\n"], ["\n font-family: ", ";\n margin-left: ", "px;\n line-height: 1.6;\n"])), function (props) { return props.theme.font.default; }, function (props) { return props.theme.baseline; });
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
var prePostStyles = styled_components_1.css(templateObject_7 || (templateObject_7 = tslib_1.__makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n color: ", ";\n background-color: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 40px;\n padding: 0 ", "px;\n"], ["\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n color: ", ";\n background-color: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 40px;\n padding: 0 ", "px;\n"])), function (props) { return props.theme.font.default; }, function (props) { return props.theme.font.sizes.s; }, function (props) { return props.theme.colors.grey[1]; }, function (props) { return props.theme.colors.grey[4]; }, function (props) { return props.theme.baseline * 2; });
|
|
32
|
+
exports.StyledPreFix = styled_components_1.default.div(templateObject_8 || (templateObject_8 = tslib_1.__makeTemplateObject(["\n ", ";\n border-radius: 5px 0 0 5px;\n"], ["\n ", ";\n border-radius: 5px 0 0 5px;\n"])), prePostStyles);
|
|
33
|
+
exports.StyledPostFix = styled_components_1.default.div(templateObject_9 || (templateObject_9 = tslib_1.__makeTemplateObject(["\n ", ";\n border-radius: 0 5px 5px 0;\n"], ["\n ", ";\n border-radius: 0 5px 5px 0;\n"])), prePostStyles);
|
|
34
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
27
35
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Input/styles.ts"],"names":[],"mappings":";;;;AAAA,uDAA+C;AAC/C,wCAAsC;
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Input/styles.ts"],"names":[],"mappings":";;;;AAAA,uDAA+C;AAC/C,wCAAsC;AAYzB,QAAA,kBAAkB,GAAG,2BAAM,CAAC,GAAG,4HAAA,iDAG3C,KAAA;AAEY,QAAA,WAAW,GAAG,uBAAG,muCAAiC,qBAC5C,EAAiC,2CAEnC,EAAiC,gBACrC,EAG+B,iIAKxB,EAAgC,yBAChC,EAGyB,wBACxB,EAKgC,2BAC7B,EAGyB,+oBA8BzB,EAAuC,mLAU9C,EAA6C,uCAG7D,KApEkB,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAxB,CAAwB,EAEnC,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAxB,CAAwB,EACrC,UAAA,KAAK;IACV,OAAA,KAAK,CAAC,QAAQ;QACV,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;QAC5B,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK;AAFpC,CA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AM,CAAC,GAAG,0HAAA,+CAGzC,KAAA;AAEY,QAAA,aAAa,GAAG,2BAAM,CAAC,GAAG,wJAAA,qBACpB,EAAiC,sBACjC,EAA6B,8BAE/C,KAHkB,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAxB,CAAwB,EACjC,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,QAAQ,EAApB,CAAoB,EAE/C;AAED,IAAM,aAAa,GAAG,uBAAG,6TAAA,qBACN,EAAiC,oBACnC,EAAiC,uCAErC,EAAmC,2BACxB,EAAmC,sHAK1C,EAAiC,OACjD,KAVkB,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAxB,CAAwB,EACnC,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAxB,CAAwB,EAErC,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAA1B,CAA0B,EACxB,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAA1B,CAA0B,EAK1C,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,EAAxB,CAAwB,CACjD,CAAA;AAEY,QAAA,YAAY,GAAG,2BAAM,CAAC,GAAG,2HAAA,QAChC,EAAa,sCAElB,KAFK,aAAa,EAElB;AAEY,QAAA,aAAa,GAAG,2BAAM,CAAC,GAAG,2HAAA,QACjC,EAAa,sCAElB,KAFK,aAAa,EAElB"}
|
|
@@ -37,6 +37,6 @@ exports.Shade = react_pose_1.default.div({
|
|
|
37
37
|
exports.StyledShade = styled_components_1.default(exports.Shade)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n position: absolute;\n background: rgba(0, 0, 0, 0.8);\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100vh;\n"], ["\n position: absolute;\n background: rgba(0, 0, 0, 0.8);\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100vh;\n"])));
|
|
38
38
|
exports.StyledButton = styled_components_1.default(Button_1.Button)(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n background: none;\n border: none;\n position: absolute;\n top: 0;\n right: 0;\n width: 57px;\n height: 57px;\n padding: 0;\n z-index: 10;\n\n ", "\n\n &:hover {\n background: none;\n\n svg {\n fill: orange;\n }\n }\n\n svg {\n fill: black;\n }\n"], ["\n background: none;\n border: none;\n position: absolute;\n top: 0;\n right: 0;\n width: 57px;\n height: 57px;\n padding: 0;\n z-index: 10;\n\n ", "\n\n &:hover {\n background: none;\n\n svg {\n fill: orange;\n }\n }\n\n svg {\n fill: black;\n }\n"])), theme_1.media.s(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n right: 10px;\n top: 10px;\n "], ["\n right: 10px;\n top: 10px;\n "]))));
|
|
39
39
|
exports.StyledContainer = styled_components_1.default.div(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n position: fixed;\n width: 100%;\n top: 0;\n align-items: center;\n justify-content: center;\n display: flex;\n z-index: 500;\n height: ", ";\n"], ["\n position: fixed;\n width: 100%;\n top: 0;\n align-items: center;\n justify-content: center;\n display: flex;\n z-index: 500;\n height: ", ";\n"])), function (props) { return (props.modalOpen ? '100%' : 'auto'); });
|
|
40
|
-
exports.StyledModal = styled_components_1.default(exports.ModalContent)(templateObject_6 || (templateObject_6 = tslib_1.__makeTemplateObject(["\n position: relative;\n max-width: 700px;\n height: 100%;\n background: white;\n z-index: 1;\n padding: ", "px ", "px;\n overflow: auto;\n\n ", "\n"], ["\n position: relative;\n max-width: 700px;\n height: 100%;\n background: white;\n z-index: 1;\n padding: ", "px ", "px;\n overflow: auto;\n\n ", "\n"])), theme_1.baseline * 4, theme_1.baseline * 2, theme_1.media.xs(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n padding: ", "px;\n max-height: calc(100vh - 40px);\n height: auto;\n border-radius: ", "px;\n "], ["\n padding: ", "px;\n max-height: calc(100vh - 40px);\n height: auto;\n border-radius: ", "px;\n "])), theme_1.baseline * 6, function (props) { return props.theme.borderRadius.
|
|
40
|
+
exports.StyledModal = styled_components_1.default(exports.ModalContent)(templateObject_6 || (templateObject_6 = tslib_1.__makeTemplateObject(["\n position: relative;\n max-width: 700px;\n height: 100%;\n background: white;\n z-index: 1;\n padding: ", "px ", "px;\n overflow: auto;\n\n ", "\n"], ["\n position: relative;\n max-width: 700px;\n height: 100%;\n background: white;\n z-index: 1;\n padding: ", "px ", "px;\n overflow: auto;\n\n ", "\n"])), theme_1.baseline * 4, theme_1.baseline * 2, theme_1.media.xs(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n padding: ", "px;\n max-height: calc(100vh - 40px);\n height: auto;\n border-radius: ", "px;\n "], ["\n padding: ", "px;\n max-height: calc(100vh - 40px);\n height: auto;\n border-radius: ", "px;\n "])), theme_1.baseline * 6, function (props) { return props.theme.borderRadius.large; }));
|
|
41
41
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
42
42
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Modal/styles.ts"],"names":[],"mappings":";;;;AAAA,yCAA8B;AAC9B,qCAA6C;AAC7C,uDAAsC;AACtC,oCAAkC;AAErB,QAAA,YAAY,GAAG,oBAAK,CAAC,GAAG,CAAC;IAClC,KAAK,EAAE;QACH,CAAC,EAAE,CAAC;QACJ,OAAO,EAAE,CAAC;QACV,UAAU,EAAE;YACR,CAAC,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE;YACpB,OAAO,EAAE,EAAE,QAAQ,EAAE,GA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GAAG,CAAC,EAAM,gBAAQ,GAAG,CAAC,EAGvC,aAAK,CAAC,EAAE,6MAAA,qBACK,EAAY,8FAGN,EAAuC,WAC3D,KAJc,gBAAQ,GAAG,CAAC,EAGN,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,EAA9B,CAA8B,GAE/D"}
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Notification = void 0;
|
|
4
4
|
var React = require("react");
|
|
5
|
-
var
|
|
5
|
+
var MessageSquareCheck_1 = require("../../assets/icons/MessageSquareCheck");
|
|
6
|
+
var ExclamationTriangle_1 = require("../../assets/icons/ExclamationTriangle");
|
|
6
7
|
var ExclamationCircle_1 = require("../../assets/icons/ExclamationCircle");
|
|
7
|
-
var
|
|
8
|
+
var MessageSquareDots_1 = require("../../assets/icons/MessageSquareDots");
|
|
8
9
|
var styles_1 = require("./styles");
|
|
9
10
|
var Notification = function (_a) {
|
|
10
11
|
var hook = _a.hook, type = _a.type, children = _a.children;
|
|
11
12
|
return (React.createElement(styles_1.StyledNotification, { "data-hook": hook, type: type },
|
|
12
13
|
React.createElement("div", { style: { display: 'flex', alignItems: 'flex-start' } },
|
|
13
|
-
React.createElement(styles_1.StyledIcon, { type: type }, type === 'error' ? (React.createElement(
|
|
14
|
+
React.createElement(styles_1.StyledIcon, { type: type }, type === 'error' ? (React.createElement(ExclamationTriangle_1.ExclamationTriangle, { width: 24 })) : type === 'success' ? (React.createElement(MessageSquareCheck_1.MessageSquareCheck, { width: 24 })) : type === 'warning' ? (React.createElement(ExclamationCircle_1.ExclamationCircle, { width: 24 })) : (React.createElement(MessageSquareDots_1.MessageSquareDots, { width: 24 }))),
|
|
14
15
|
React.createElement("span", null, children))));
|
|
15
16
|
};
|
|
16
17
|
exports.Notification = Notification;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Notification/index.tsx"],"names":[],"mappings":";;;AAAA,6BAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Notification/index.tsx"],"names":[],"mappings":";;;AAAA,6BAA8B;AAC9B,4EAA0E;AAC1E,8EAA4E;AAC5E,0EAAwE;AACxE,0EAAwE;AACxE,mCAAyD;AAWlD,IAAM,YAAY,GAAgC,UAAC,EAIzD;QAHG,IAAI,UAAA,EACJ,IAAI,UAAA,EACJ,QAAQ,cAAA;IAER,OAAO,CACH,oBAAC,2BAAkB,iBAAY,IAAI,EAAE,IAAI,EAAE,IAAI;QAC3C,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE;YACrD,oBAAC,mBAAU,IAAC,IAAI,EAAE,IAAI,IACjB,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,CAChB,oBAAC,yCAAmB,IAAC,KAAK,EAAE,EAAE,GAAI,CACrC,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,CACrB,oBAAC,uCAAkB,IAAC,KAAK,EAAE,EAAE,GAAI,CACpC,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,CACrB,oBAAC,qCAAiB,IAAC,KAAK,EAAE,EAAE,GAAI,CACnC,CAAC,CAAC,CAAC,CACA,oBAAC,qCAAiB,IAAC,KAAK,EAAE,EAAE,GAAI,CACnC,CACQ;YACb,kCAAO,QAAQ,CAAQ,CACrB,CACW,CACxB,CAAA;AACL,CAAC,CAAA;AAvBY,QAAA,YAAY,gBAuBxB"}
|
|
@@ -5,12 +5,14 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
var styled_components_1 = require("styled-components");
|
|
6
6
|
var styled_map_1 = require("styled-map");
|
|
7
7
|
var Box_1 = require("../Box");
|
|
8
|
-
exports.StyledNotification = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", ";\n font-family: ", ";\n font-size: ", ";\n padding: ", "px\n ", "px;\n background-color: ", ";\n color: ", ";\n line-height:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
exports.StyledNotification = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", ";\n font-family: ", ";\n font-size: ", ";\n padding: ", "px\n ", "px;\n background-color: ", ";\n color: ", ";\n line-height: 24px;\n display: flex;\n flex-direction: column;\n align-items: ", ";\n text-align: ", ";\n border: 1px solid;\n border-radius: 5px;\n border-color: ", ";\n a {\n color: inherit;\n }\n"], ["\n ", ";\n font-family: ", ";\n font-size: ", ";\n padding: ", "px\n ", "px;\n background-color: ", ";\n color: ", ";\n line-height: 24px;\n display: flex;\n flex-direction: column;\n align-items: ", ";\n text-align: ", ";\n border: 1px solid;\n border-radius: 5px;\n border-color: ", ";\n a {\n color: inherit;\n }\n"])), function (props) { return Box_1.mb(2, props.theme.spacing); }, function (props) { return props.theme.font.default; }, function (props) { return props.theme.font.sizes.s; }, function (props) { return props.theme.baseline * 1.5; }, function (props) { return props.theme.baseline * 2; }, function (props) {
|
|
9
|
+
return styled_map_1.default('type', {
|
|
10
|
+
error: props.theme.colors.red[4],
|
|
11
|
+
warning: props.theme.colors.orange[4],
|
|
12
|
+
message: props.theme.colors.blue[3],
|
|
13
|
+
success: props.theme.colors.green[3],
|
|
14
|
+
});
|
|
15
|
+
}, function (props) { return props.theme.colors.grey[1]; }, function (props) {
|
|
14
16
|
return props.contentAlign === 'center'
|
|
15
17
|
? 'center'
|
|
16
18
|
: props.contentAlign === 'right'
|
|
@@ -18,13 +20,13 @@ exports.StyledNotification = styled_components_1.default.div(templateObject_1 ||
|
|
|
18
20
|
: 'flex-start';
|
|
19
21
|
}, function (props) { return (props.contentAlign ? props.contentAlign : 'left'); }, function (props) {
|
|
20
22
|
return styled_map_1.default('type', {
|
|
21
|
-
error: props.theme.colors.
|
|
22
|
-
warning:
|
|
23
|
-
message:
|
|
24
|
-
success: props.theme.colors.
|
|
23
|
+
error: props.theme.colors.red[2],
|
|
24
|
+
warning: '#FFD68F',
|
|
25
|
+
message: '#A8CDFF',
|
|
26
|
+
success: props.theme.colors.green[2],
|
|
25
27
|
});
|
|
26
28
|
});
|
|
27
|
-
exports.StyledIcon = styled_components_1.default.div(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n display: inline-flex;\n width:
|
|
29
|
+
exports.StyledIcon = styled_components_1.default.div(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n display: inline-flex;\n width: 24px;\n color: ", ";\n margin-right: ", "px;\n flex-shrink: 0;\n"], ["\n display: inline-flex;\n width: 24px;\n color: ", ";\n margin-right: ", "px;\n flex-shrink: 0;\n"])), function (props) {
|
|
28
30
|
return styled_map_1.default('type', {
|
|
29
31
|
error: props.theme.colors.error,
|
|
30
32
|
warning: props.theme.colors.warning,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Notification/styles.ts"],"names":[],"mappings":";;;;AAAA,uDAAsC;AACtC,yCAAkC;AAElC,8BAA2B;AAEd,QAAA,kBAAkB,GAAG,2BAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Notification/styles.ts"],"names":[],"mappings":";;;;AAAA,uDAAsC;AACtC,yCAAkC;AAElC,8BAA2B;AAEd,QAAA,kBAAkB,GAAG,2BAAM,CAAC,GAAG,wcAAmB,QACzD,EAAmC,sBACtB,EAAiC,oBACnC,EAAiC,kBACnC,EAAmC,cACxC,EAAiC,6BACnB,EAMd,gBACG,EAAmC,+FAI7B,EAKO,qBACR,EAA2D,wEAGzD,EAMV,8CAIT,KAnCK,UAAA,KAAK,IAAI,OAAA,QAAE,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,EAA1B,CA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AC,MAAM,EAAE;QACd,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;QAChC,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;KACvC,CAAC;AALF,CAKE,EAIT;AAEY,QAAA,UAAU,GAAG,2BAAM,CAAC,GAAG,8LAElC,4DAGW,EAMH,uBACU,EAA+B,4BAElD,KATY,UAAA,KAAK;IACV,OAAA,oBAAS,CAAC,MAAM,EAAE;QACd,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK;QAC/B,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO;QACnC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO;QACnC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO;KACtC,CAAC;AALF,CAKE,EACU,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAtB,CAAsB,EAElD"}
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.StyledRadioLabel = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var styled_components_1 = require("styled-components");
|
|
6
|
-
exports.StyledRadioLabel = styled_components_1.default.label(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n line-height: ", ";\n font-weight:
|
|
6
|
+
exports.StyledRadioLabel = styled_components_1.default.label(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n line-height: ", ";\n font-weight: 500;\n margin-right: 16px;\n user-select: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n\n input {\n margin: 0 8px 4px 0;\n height: 16px;\n width: 16px;\n }\n"], ["\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n line-height: ", ";\n font-weight: 500;\n margin-right: 16px;\n user-select: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n\n input {\n margin: 0 8px 4px 0;\n height: 16px;\n width: 16px;\n }\n"])), function (props) { return props.theme.font.default; }, function (props) { return props.theme.font.sizes.s; }, function (props) { return props.theme.colors.text.default; }, function (props) { return props.theme.font.lineHeight; });
|
|
7
7
|
var templateObject_1;
|
|
8
8
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Radio/styles.ts"],"names":[],"mappings":";;;;AAAA,uDAAsC;AAEzB,QAAA,gBAAgB,GAAG,2BAAM,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Radio/styles.ts"],"names":[],"mappings":";;;;AAAA,uDAAsC;AAEzB,QAAA,gBAAgB,GAAG,2BAAM,CAAC,KAAK,oZAAqB,qBAC9C,EAAiC,oBACnC,EAAiC,gBACrC,EAAwC,sBAClC,EAAoC,kPAatD,KAhBkB,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAxB,CAAwB,EACnC,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAxB,CAAwB,EACrC,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAA/B,CAA+B,EAClC,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAA3B,CAA2B,EAatD"}
|
|
@@ -3,9 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Select = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var React = require("react");
|
|
6
|
-
var
|
|
6
|
+
var fa_1 = require("react-icons/fa");
|
|
7
7
|
var styles_1 = require("./styles");
|
|
8
|
-
var theme_1 = require("../../theme/theme");
|
|
9
8
|
var Select = function (_a) {
|
|
10
9
|
var error = _a.error, value = _a.value, hook = _a.hook, loading = _a.loading, options = _a.options, placeholder = _a.placeholder, children = _a.children, props = tslib_1.__rest(_a, ["error", "value", "hook", "loading", "options", "placeholder", "children"]);
|
|
11
10
|
return (React.createElement("div", { style: { position: 'relative' } },
|
|
@@ -13,7 +12,7 @@ var Select = function (_a) {
|
|
|
13
12
|
placeholder && (React.createElement(styles_1.StyledOption, { value: "", disabled: Boolean(value) }, placeholder)),
|
|
14
13
|
options.map(function (item) { return (React.createElement(styles_1.StyledOption, { key: item.id, value: item.id }, item.name)); }))) : (children)),
|
|
15
14
|
React.createElement(styles_1.StyledChevron, null,
|
|
16
|
-
React.createElement(
|
|
15
|
+
React.createElement(fa_1.FaChevronDown, { size: 12 }))));
|
|
17
16
|
};
|
|
18
17
|
exports.Select = Select;
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAC9B,qCAA8C;AAC9C,mCAAoE;AAW7D,IAAM,MAAM,GAA0B,UAAC,EAS7C;IARG,IAAA,KAAK,WAAA,EACL,KAAK,WAAA,EACL,IAAI,UAAA,EACJ,OAAO,aAAA,EACP,OAAO,aAAA,EACP,WAAW,iBAAA,EACX,QAAQ,cAAA,EACL,KAAK,sBARkC,2EAS7C,CADW;IAER,OAAO,CACH,6BAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE;QAChC,oBAAC,qBAAY,qBACT,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,CAAC,KAAK,EACb,KAAK,EAAE,KAAK,IAAI,EAAE,eACP,IAAI,IACX,KAAK,GAER,OAAO,CAAC,CAAC,CAAC,CACP,oBAAC,qBAAY,IAAC,KAAK,EAAC,EAAE,EAAC,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,uBAEhC,CAClB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CACV;YACK,WAAW,IAAI,CACZ,oBAAC,qBAAY,IAAC,KAAK,EAAC,EAAE,EAAC,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,IAC1C,WAAW,CACD,CAClB;YACA,OAAO,CAAC,GAAG,CAAC,UAAA,IAAI,IAAI,OAAA,CACjB,oBAAC,qBAAY,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,IACrC,IAAI,CAAC,IAAI,CACC,CAClB,EAJoB,CAIpB,CAAC,CACH,CACN,CAAC,CAAC,CAAC,CACA,QAAQ,CACX,CACU;QACf,oBAAC,sBAAa;YACV,oBAAC,kBAAa,IAAC,IAAI,EAAE,EAAE,GAAI,CACf,CACd,CACT,CAAA;AACL,CAAC,CAAA;AA7CY,QAAA,MAAM,UA6ClB"}
|
|
@@ -4,7 +4,7 @@ exports.StyledChevron = exports.StyledOption = exports.StyledSelect = void 0;
|
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var styled_map_1 = require("styled-map");
|
|
6
6
|
var styled_components_1 = require("styled-components");
|
|
7
|
-
exports.StyledSelect = styled_components_1.default.select(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n display: block;\n appearance: none;\n padding: 0
|
|
7
|
+
exports.StyledSelect = styled_components_1.default.select(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n display: block;\n appearance: none;\n padding: 0 16px;\n height: 40px;\n line-height: 40px;\n width: 100%;\n border-style: solid;\n border-radius: ", "px;\n border-width: ", "px;\n border-color: ", ";\n color: ", ";\n background-color: ", ";\n cursor: ", ";\n &:focus {\n outline: none;\n border-color: ", ";\n }\n &::-ms-expand {\n display: none;\n }\n"], ["\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n display: block;\n appearance: none;\n padding: 0 16px;\n height: 40px;\n line-height: 40px;\n width: 100%;\n border-style: solid;\n border-radius: ", "px;\n border-width: ", "px;\n border-color: ", ";\n color: ", ";\n background-color: ", ";\n cursor: ", ";\n &:focus {\n outline: none;\n border-color: ", ";\n }\n &::-ms-expand {\n display: none;\n }\n"])), function (props) { return props.theme.font.default; }, function (props) { return props.theme.font.sizes.s; }, function (props) { return props.theme.borderRadius.input; }, function (props) { return props.theme.borderWidth; }, function (props) {
|
|
8
8
|
return props.error
|
|
9
9
|
? props.theme.colors.input.error
|
|
10
10
|
: props.theme.colors.input.border;
|
|
@@ -19,6 +19,6 @@ exports.StyledSelect = styled_components_1.default.select(templateObject_1 || (t
|
|
|
19
19
|
default: 'pointer',
|
|
20
20
|
}), function (props) { return props.theme.colors.input.focus; });
|
|
21
21
|
exports.StyledOption = styled_components_1.default.option(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (props) { return props.theme.colors.input.color; });
|
|
22
|
-
exports.StyledChevron = styled_components_1.default.div(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n position: absolute;\n top:
|
|
22
|
+
exports.StyledChevron = styled_components_1.default.div(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n position: absolute;\n top: 12px;\n right: 15px;\n pointer-events: none;\n"], ["\n position: absolute;\n top: 12px;\n right: 15px;\n pointer-events: none;\n"])));
|
|
23
23
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
24
24
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Select/styles.ts"],"names":[],"mappings":";;;;AAAA,yCAAkC;AAClC,uDAAsC;AAGzB,QAAA,YAAY,GAAG,2BAAM,CAAC,MAAM,8jBAKxC,qBACkB,EAAiC,oBACnC,EAAiC,wMAS7B,EAAuC,yBACxC,EAAgC,yBAChC,EAGyB,gBAChC,EAK+B,2BACpB,EAA4C,iBACtD,EAGR,kEAGkB,EAAuC,gEAK9D,KAlCkB,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAxB,CAAwB,EACnC,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAxB,CAAwB,EAS7B,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,EAA9B,CAA8B,EACxC,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,WAAW,EAAvB,CAAuB,EAChC,UAAA,KAAK;IACjB,OAAA,KAAK,CAAC,KAAK;QACP,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK;QAChC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM;AAFrC,CAEqC,EAChC,UAAA,KAAK;IACV,OAAA,KAAK,CAAC,KAAK;QACP,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW;QACtC,CAAC,CAAC,KAAK,CAAC,QAAQ;YAChB,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;YAC5B,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK;AAJpC,CAIoC,EACpB,UAAA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,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK;QAChC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM;AAFrC,CAEqC,EAChC,UAAA,KAAK;IACV,OAAA,KAAK,CAAC,KAAK;QACP,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW;QACtC,CAAC,CAAC,KAAK,CAAC,QAAQ;YAChB,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;YAC5B,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK;AAJpC,CAIoC,EACpB,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,EAAnC,CAAmC,EACtD,oBAAS,CAAC;IAChB,QAAQ,EAAE,aAAa;IACvB,OAAO,EAAE,SAAS;CACrB,CAAC,EAGkB,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAA9B,CAA8B,EAK9D;AAEY,QAAA,YAAY,GAAG,2BAAM,CAAC,MAAM,iGAAA,eAC5B,EAAuC,KACnD,KADY,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAA9B,CAA8B,EACnD;AAEY,QAAA,aAAa,GAAG,2BAAM,CAAC,GAAG,qKAAA,0FAKtC,KAAA"}
|
|
@@ -3,3 +3,7 @@ import { TagProps } from './';
|
|
|
3
3
|
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Default: Story<TagProps>;
|
|
6
|
+
export declare const Error: Story<TagProps>;
|
|
7
|
+
export declare const Success: Story<TagProps>;
|
|
8
|
+
export declare const Warning: Story<TagProps>;
|
|
9
|
+
export declare const Disabled: Story<TagProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Default = void 0;
|
|
3
|
+
exports.Disabled = exports.Warning = exports.Success = exports.Error = exports.Default = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var react_1 = require("react");
|
|
6
6
|
var _1 = require("./");
|
|
@@ -14,4 +14,23 @@ var Template = function (_a) {
|
|
|
14
14
|
return react_1.default.createElement(_1.Tag, tslib_1.__assign({}, args), "Hexagon");
|
|
15
15
|
};
|
|
16
16
|
exports.Default = Template.bind({});
|
|
17
|
+
exports.Default.args = {
|
|
18
|
+
kind: 'default',
|
|
19
|
+
};
|
|
20
|
+
exports.Error = Template.bind({});
|
|
21
|
+
exports.Error.args = {
|
|
22
|
+
kind: 'error',
|
|
23
|
+
};
|
|
24
|
+
exports.Success = Template.bind({});
|
|
25
|
+
exports.Success.args = {
|
|
26
|
+
kind: 'success',
|
|
27
|
+
};
|
|
28
|
+
exports.Warning = Template.bind({});
|
|
29
|
+
exports.Warning.args = {
|
|
30
|
+
kind: 'warning',
|
|
31
|
+
};
|
|
32
|
+
exports.Disabled = Template.bind({});
|
|
33
|
+
exports.Disabled.args = {
|
|
34
|
+
kind: 'disabled',
|
|
35
|
+
};
|
|
17
36
|
//# sourceMappingURL=index.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../src/components/Tag/index.stories.tsx"],"names":[],"mappings":";;;;AACA,+BAAyB;AACzB,uBAAkC;AAElC,kBAAe;IACX,KAAK,EAAE,aAAa;IACpB,SAAS,EAAE,MAAG;IACd,UAAU,EAAE,CAAC,UAAA,KAAK,IAAI,OAAA,8BAAC,KAAK,OAAG,EAAT,CAAS,CAAC;CAC3B,CAAA;AAET,IAAM,QAAQ,GAAoB,UAAC,EAAW;QAAN,IAAI,sBAAT,EAAW,CA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