takeat-design-system-ui-kit 0.4.13 → 0.4.14
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/cjs/components/Badge/index.js +1 -1
- package/dist/cjs/components/Badge/index.js.map +1 -1
- package/dist/cjs/components/Badge/styles.d.ts +1 -1
- package/dist/cjs/components/Badge/styles.js +4 -4
- package/dist/cjs/components/Badge/styles.js.map +1 -1
- package/dist/cjs/components/Button/index.js +1 -2
- package/dist/cjs/components/Button/index.js.map +1 -1
- package/dist/cjs/components/Button/styles.d.ts +3 -3
- package/dist/cjs/components/Button/styles.js +55 -55
- package/dist/cjs/components/Button/styles.js.map +1 -1
- package/dist/cjs/components/FieldInfo/index.js +1 -1
- package/dist/cjs/components/FieldInfo/index.js.map +1 -1
- package/dist/cjs/components/FieldInfo/styles.d.ts +2 -2
- package/dist/cjs/components/FieldInfo/styles.js +6 -6
- package/dist/cjs/components/FieldInfo/styles.js.map +1 -1
- package/dist/cjs/components/Input/index.js +1 -1
- package/dist/cjs/components/Input/index.js.map +1 -1
- package/dist/cjs/components/Input/styles.d.ts +3 -3
- package/dist/cjs/components/Input/styles.js +6 -6
- package/dist/cjs/components/Input/styles.js.map +1 -1
- package/dist/esm/components/Badge/index.js +1 -1
- package/dist/esm/components/Badge/index.js.map +1 -1
- package/dist/esm/components/Badge/styles.d.ts +1 -1
- package/dist/esm/components/Badge/styles.js +4 -4
- package/dist/esm/components/Badge/styles.js.map +1 -1
- package/dist/esm/components/Button/index.js +1 -2
- package/dist/esm/components/Button/index.js.map +1 -1
- package/dist/esm/components/Button/styles.d.ts +3 -3
- package/dist/esm/components/Button/styles.js +55 -55
- package/dist/esm/components/Button/styles.js.map +1 -1
- package/dist/esm/components/FieldInfo/index.js +1 -1
- package/dist/esm/components/FieldInfo/index.js.map +1 -1
- package/dist/esm/components/FieldInfo/styles.d.ts +2 -2
- package/dist/esm/components/FieldInfo/styles.js +6 -6
- package/dist/esm/components/FieldInfo/styles.js.map +1 -1
- package/dist/esm/components/Input/index.js +1 -1
- package/dist/esm/components/Input/index.js.map +1 -1
- package/dist/esm/components/Input/styles.d.ts +3 -3
- package/dist/esm/components/Input/styles.js +6 -6
- package/dist/esm/components/Input/styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -15,6 +15,6 @@ exports.Badge = (0, react_1.forwardRef)(function Badge(_a, ref) {
|
|
|
15
15
|
outlined: "\n background-color: transparent;\n color: ".concat(theme.colors[customColor].default, ";\n border-color: ").concat(theme.colors[customColor].default, ";\n\n svg {\n fill: ").concat(theme.colors[customColor].default, ";\n }\n "),
|
|
16
16
|
tonal: "\n background-color: ".concat((0, functions_1.getBrighterColor)(theme.colors[customColor].default, 70), ";\n color: ").concat(theme.colors.neutral.darker, ";\n border-color: transparent;\n\n svg {\n fill: ").concat(theme.colors[customColor].default, ";\n }\n "),
|
|
17
17
|
};
|
|
18
|
-
return ((0, jsx_runtime_1.jsx)(styles_1.BadgeContainer, tslib_1.__assign({ customColor: customColor, variant: variantsChanges[variant], ref: ref }, props, { children: children })));
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.BadgeContainer, tslib_1.__assign({ "$customColor": customColor, variant: variantsChanges[variant], ref: ref }, props, { children: children })));
|
|
19
19
|
});
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Badge/index.tsx"],"names":[],"mappings":";;;;;AAAA,+BAA0D;AAC1D,mCAA0C;AAE1C,uDAA6C;AAC7C,mDAAyD;AAO5C,QAAA,KAAK,GAAG,IAAA,kBAAU,EAAC,SAAS,KAAK,CAC5C,EAKa,EACb,GAA+B;IAL7B,IAAA,mBAAuB,EAAvB,WAAW,mBAAG,SAAS,KAAA,EACvB,eAAmB,EAAnB,OAAO,mBAAG,SAAS,KAAA,EACnB,QAAQ,cAAA,EACL,KAAK,sBAJV,sCAKC,CADS;IAIV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KAAK,EAAE,oCACe,IAAA,4BAAgB,EAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,6BAClE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,+EAI1B,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,qBAE5C;KACF,CAAC;IAEF,OAAO,CACL,uBAAC,uBAAc,qCACC,WAAW,EACzB,OAAO,EAAE,eAAe,CAAC,OAAO,CAAC,EACjC,GAAG,EAAE,GAAG,IACJ,KAAK,cAER,QAAQ,IACM,CAClB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ColorType } from "../../utils/consts";
|
|
2
2
|
interface BadgeContainerProps {
|
|
3
|
-
customColor: ColorType;
|
|
3
|
+
$customColor: ColorType;
|
|
4
4
|
variant: string;
|
|
5
5
|
}
|
|
6
6
|
export declare const BadgeContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, BadgeContainerProps>> & string;
|
|
@@ -4,11 +4,11 @@ exports.BadgeContainer = void 0;
|
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var styled_components_1 = tslib_1.__importDefault(require("styled-components"));
|
|
6
6
|
exports.BadgeContainer = styled_components_1.default.span(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 8px;\n border-radius: 40px;\n border: ", ";\n background: ", ";\n\n color: ", ";\n text-align: center;\n font-family: Poppins;\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: 16px; /* 133.333% */\n letter-spacing: 0.5px;\n\n svg {\n font-size: 16px;\n fill: ", ";\n }\n\n ", "\n"], ["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 8px;\n border-radius: 40px;\n border: ", ";\n background: ", ";\n\n color: ", ";\n text-align: center;\n font-family: Poppins;\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: 16px; /* 133.333% */\n letter-spacing: 0.5px;\n\n svg {\n font-size: 16px;\n fill: ", ";\n }\n\n ", "\n"])), function (_a) {
|
|
7
|
-
var theme = _a.theme, customColor = _a
|
|
8
|
-
return "1px solid ".concat(theme.colors[customColor].default);
|
|
7
|
+
var theme = _a.theme, $customColor = _a.$customColor;
|
|
8
|
+
return "1px solid ".concat(theme.colors[$customColor].default);
|
|
9
9
|
}, function (_a) {
|
|
10
|
-
var theme = _a.theme, customColor = _a
|
|
11
|
-
return theme.colors[customColor].default;
|
|
10
|
+
var theme = _a.theme, $customColor = _a.$customColor;
|
|
11
|
+
return theme.colors[$customColor].default;
|
|
12
12
|
}, function (_a) {
|
|
13
13
|
var theme = _a.theme;
|
|
14
14
|
return theme.colors.neutral.white;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/Badge/styles.ts"],"names":[],"mappings":";;;;AAAA,gFAAuC;AAQ1B,QAAA,cAAc,GAAG,2BAAM,CAAC,IAAI,udAAqB,8GAMlD,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/Badge/styles.ts"],"names":[],"mappings":";;;;AAAA,gFAAuC;AAQ1B,QAAA,cAAc,GAAG,2BAAM,CAAC,IAAI,udAAqB,8GAMlD,EACyC,mBACrC,EACsB,gBAE3B,EAAyC,+NAWxC,EAAyC,cAGjD,EAAwB,IAC3B,KApBW,UAAC,EAAuB;QAArB,KAAK,WAAA,EAAE,YAAY,kBAAA;IAC9B,OAAA,oBAAa,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,OAAO,CAAE;AAAjD,CAAiD,EACrC,UAAC,EAAuB;QAArB,KAAK,WAAA,EAAE,YAAY,kBAAA;IAClC,OAAA,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,OAAO;AAAlC,CAAkC,EAE3B,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK;AAA1B,CAA0B,EAWxC,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK;AAA1B,CAA0B,EAGjD,UAAC,EAAW;QAAT,OAAO,aAAA;IAAO,OAAA,OAAO;AAAP,CAAO,EAC1B"}
|
|
@@ -22,8 +22,7 @@ exports.Button = (0, react_1.forwardRef)(function Button(_a, ref) {
|
|
|
22
22
|
var colorVariants = customColor
|
|
23
23
|
? (0, react_1.useMemo)(function () { return (0, functions_1.generateColorVariants)(customColor); }, [customColor])
|
|
24
24
|
: undefined;
|
|
25
|
-
// const onlyIcon = !!icon && !children;
|
|
26
25
|
var textAndIcon = !!icon && !!children;
|
|
27
|
-
return ((0, jsx_runtime_1.jsx)(ButtonToRender, tslib_1.__assign({ ref: ref, hasIcon: !!icon, textAndIcon: textAndIcon, isSelected: isSelected, colorVariants: colorVariants }, props, { disabled: isLoading || props.disabled, children: isLoading ? ((0, jsx_runtime_1.jsx)(Spinner_1.Spinner, { color: theme.colors.neutral.light })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [icon, children] })) })));
|
|
26
|
+
return ((0, jsx_runtime_1.jsx)(ButtonToRender, tslib_1.__assign({ ref: ref, "$hasIcon": !!icon, "$textAndIcon": textAndIcon, isSelected: isSelected, "$colorVariants": colorVariants }, props, { disabled: isLoading || props.disabled, children: isLoading ? ((0, jsx_runtime_1.jsx)(Spinner_1.Spinner, { color: theme.colors.neutral.light })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [icon, children] })) })));
|
|
28
27
|
});
|
|
29
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Button/index.tsx"],"names":[],"mappings":";;;;;AAAA,+BAAyE;AACzE,mCAMkB;AAClB,mDAA8D;AAC9D,sCAAqC;AACrC,uDAA6C;AAEhC,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,sBAAa;IACtB,QAAQ,EAAE,sBAAa;IACvB,KAAK,EAAE,oBAAW;IAClB,IAAI,EAAE,mBAAU;IAChB,SAAS,EAAE,wBAAe;CAC3B,CAAC;AAWW,QAAA,MAAM,GAAG,IAAA,kBAAU,EAAC,SAAS,MAAM,CAC9C,EAQc,EACd,GAAiC;IAR/B,IAAA,eAAmB,EAAnB,OAAO,mBAAG,SAAS,KAAA,EACnB,IAAI,UAAA,EACJ,WAAW,iBAAA,EACX,SAAS,eAAA,EACT,UAAU,gBAAA,EACV,QAAQ,cAAA,EACL,KAAK,sBAPV,yEAQC,CADS;IAIV,IAAM,KAAK,GAAG,IAAA,4BAAQ,GAAE,CAAC;IACzB,IAAM,cAAc,GAAG,sBAAc,CAAC,OAAO,CAAC,CAAC;IAC/C,IAAM,aAAa,GAAG,WAAW;QAC/B,CAAC,CAAC,IAAA,eAAO,EAAC,cAAM,OAAA,IAAA,iCAAqB,EAAC,WAAW,CAAC,EAAlC,CAAkC,EAAE,CAAC,WAAW,CAAC,CAAC;QAClE,CAAC,CAAC,SAAS,CAAC;IAEd,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Button/index.tsx"],"names":[],"mappings":";;;;;AAAA,+BAAyE;AACzE,mCAMkB;AAClB,mDAA8D;AAC9D,sCAAqC;AACrC,uDAA6C;AAEhC,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,sBAAa;IACtB,QAAQ,EAAE,sBAAa;IACvB,KAAK,EAAE,oBAAW;IAClB,IAAI,EAAE,mBAAU;IAChB,SAAS,EAAE,wBAAe;CAC3B,CAAC;AAWW,QAAA,MAAM,GAAG,IAAA,kBAAU,EAAC,SAAS,MAAM,CAC9C,EAQc,EACd,GAAiC;IAR/B,IAAA,eAAmB,EAAnB,OAAO,mBAAG,SAAS,KAAA,EACnB,IAAI,UAAA,EACJ,WAAW,iBAAA,EACX,SAAS,eAAA,EACT,UAAU,gBAAA,EACV,QAAQ,cAAA,EACL,KAAK,sBAPV,yEAQC,CADS;IAIV,IAAM,KAAK,GAAG,IAAA,4BAAQ,GAAE,CAAC;IACzB,IAAM,cAAc,GAAG,sBAAc,CAAC,OAAO,CAAC,CAAC;IAC/C,IAAM,aAAa,GAAG,WAAW;QAC/B,CAAC,CAAC,IAAA,eAAO,EAAC,cAAM,OAAA,IAAA,iCAAqB,EAAC,WAAW,CAAC,EAAlC,CAAkC,EAAE,CAAC,WAAW,CAAC,CAAC;QAClE,CAAC,CAAC,SAAS,CAAC;IAEd,IAAM,WAAW,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,QAAQ,CAAC;IAEzC,OAAO,CACL,uBAAC,cAAc,qBACb,GAAG,EAAE,GAAG,cACE,CAAC,CAAC,IAAI,kBACF,WAAW,EACzB,UAAU,EAAE,UAAU,oBACN,aAAa,IACzB,KAAK,IACT,QAAQ,EAAE,SAAS,IAAI,KAAK,CAAC,QAAQ,YAEpC,SAAS,CAAC,CAAC,CAAC,CACX,uBAAC,iBAAO,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,GAAI,CAC/C,CAAC,CAAC,CAAC,CACF,6DACG,IAAI,EACJ,QAAQ,IACR,CACJ,IACc,CAClB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ColorVariants } from "../../utils/globalTypes";
|
|
2
2
|
export interface PrimaryButtonProps {
|
|
3
|
-
hasIcon?: boolean;
|
|
4
|
-
textAndIcon?: boolean;
|
|
5
|
-
colorVariants?: ColorVariants;
|
|
3
|
+
$hasIcon?: boolean;
|
|
4
|
+
$textAndIcon?: boolean;
|
|
5
|
+
$colorVariants?: ColorVariants;
|
|
6
6
|
}
|
|
7
7
|
export declare const PrimaryButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, PrimaryButtonProps>> & string;
|
|
8
8
|
export declare const OutlineButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof PrimaryButtonProps> & PrimaryButtonProps, "ref"> & {
|
|
@@ -7,15 +7,15 @@ exports.PrimaryButton = styled_components_1.default.button(templateObject_1 || (
|
|
|
7
7
|
var theme = _a.theme;
|
|
8
8
|
return theme.components.button.height[theme.device];
|
|
9
9
|
}, function (_a) {
|
|
10
|
-
var theme = _a.theme, hasIcon = _a
|
|
11
|
-
return textAndIcon
|
|
10
|
+
var theme = _a.theme, $hasIcon = _a.$hasIcon, $textAndIcon = _a.$textAndIcon;
|
|
11
|
+
return $textAndIcon
|
|
12
12
|
? "padding: 0 12px 0 ".concat(theme.spacing.xs, ";")
|
|
13
|
-
: hasIcon
|
|
13
|
+
: $hasIcon
|
|
14
14
|
? "padding: 0 ".concat(theme.spacing.xs, ";")
|
|
15
15
|
: "padding: 0 ".concat(theme.spacing.s, ";");
|
|
16
16
|
}, function (_a) {
|
|
17
|
-
var theme = _a.theme, colorVariants = _a
|
|
18
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
17
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
18
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
19
19
|
}, function (_a) {
|
|
20
20
|
var theme = _a.theme;
|
|
21
21
|
return theme.radius.l;
|
|
@@ -29,17 +29,17 @@ exports.PrimaryButton = styled_components_1.default.button(templateObject_1 || (
|
|
|
29
29
|
var theme = _a.theme;
|
|
30
30
|
return theme.components.button.fontSize[theme.device];
|
|
31
31
|
}, function (_a) {
|
|
32
|
-
var theme = _a.theme, colorVariants = _a
|
|
33
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.dark) || theme.colors.primary.dark;
|
|
32
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
33
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.dark) || theme.colors.primary.dark;
|
|
34
34
|
}, function (_a) {
|
|
35
|
-
var theme = _a.theme, colorVariants = _a
|
|
36
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
35
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
36
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
37
37
|
}, function (_a) {
|
|
38
|
-
var theme = _a.theme, colorVariants = _a
|
|
39
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.darker) || theme.colors.primary.darker;
|
|
38
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
39
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.darker) || theme.colors.primary.darker;
|
|
40
40
|
}, function (_a) {
|
|
41
|
-
var theme = _a.theme, colorVariants = _a
|
|
42
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.darker) || theme.colors.primary.darker;
|
|
41
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
42
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.darker) || theme.colors.primary.darker;
|
|
43
43
|
}, function (_a) {
|
|
44
44
|
var theme = _a.theme;
|
|
45
45
|
return theme.colors.neutral.lighter;
|
|
@@ -51,20 +51,20 @@ exports.PrimaryButton = styled_components_1.default.button(templateObject_1 || (
|
|
|
51
51
|
return theme.colors.neutral.light;
|
|
52
52
|
});
|
|
53
53
|
exports.OutlineButton = (0, styled_components_1.default)(exports.PrimaryButton)(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n background-color: transparent;\n border: 1px solid\n ", ";\n color: ", ";\n\n svg {\n fill: ", ";\n }\n\n &:hover {\n background-color: ", ";\n\n @media (hover: none) {\n background-color: transparent;\n }\n }\n\n &:active {\n background-color: ", ";\n }\n\n &:disabled {\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n }\n"], ["\n background-color: transparent;\n border: 1px solid\n ", ";\n color: ", ";\n\n svg {\n fill: ", ";\n }\n\n &:hover {\n background-color: ", ";\n\n @media (hover: none) {\n background-color: transparent;\n }\n }\n\n &:active {\n background-color: ", ";\n }\n\n &:disabled {\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n }\n"])), function (_a) {
|
|
54
|
-
var theme = _a.theme, colorVariants = _a
|
|
55
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
54
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
55
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
56
56
|
}, function (_a) {
|
|
57
|
-
var theme = _a.theme, colorVariants = _a
|
|
58
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
57
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
58
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
59
59
|
}, function (_a) {
|
|
60
|
-
var theme = _a.theme, colorVariants = _a
|
|
61
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
60
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
61
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
62
62
|
}, function (_a) {
|
|
63
|
-
var theme = _a.theme, colorVariants = _a
|
|
64
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.lightest) || theme.colors.primary.lightest;
|
|
63
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
64
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.lightest) || theme.colors.primary.lightest;
|
|
65
65
|
}, function (_a) {
|
|
66
|
-
var theme = _a.theme, colorVariants = _a
|
|
67
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.lighter) || theme.colors.primary.lighter;
|
|
66
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
67
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.lighter) || theme.colors.primary.lighter;
|
|
68
68
|
}, function (_a) {
|
|
69
69
|
var theme = _a.theme;
|
|
70
70
|
return theme.colors.neutral.lightest;
|
|
@@ -76,23 +76,23 @@ exports.OutlineButton = (0, styled_components_1.default)(exports.PrimaryButton)(
|
|
|
76
76
|
return theme.colors.neutral.light;
|
|
77
77
|
});
|
|
78
78
|
exports.TonalButton = (0, styled_components_1.default)(exports.PrimaryButton)(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n\n svg {\n fill: ", ";\n }\n\n &:hover {\n background-color: ", ";\n\n @media (hover: none) {\n background-color: ", ";\n }\n }\n\n &:active {\n background-color: ", ";\n }\n\n &:disabled {\n background-color: ", ";\n color: ", ";\n }\n"], ["\n background-color: ", ";\n color: ", ";\n\n svg {\n fill: ", ";\n }\n\n &:hover {\n background-color: ", ";\n\n @media (hover: none) {\n background-color: ", ";\n }\n }\n\n &:active {\n background-color: ", ";\n }\n\n &:disabled {\n background-color: ", ";\n color: ", ";\n }\n"])), function (_a) {
|
|
79
|
-
var theme = _a.theme, colorVariants = _a
|
|
80
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.lightest) || theme.colors.primary.lightest;
|
|
79
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
80
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.lightest) || theme.colors.primary.lightest;
|
|
81
81
|
}, function (_a) {
|
|
82
|
-
var theme = _a.theme, colorVariants = _a
|
|
83
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.darker) || theme.colors.primary.darker;
|
|
82
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
83
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.darker) || theme.colors.primary.darker;
|
|
84
84
|
}, function (_a) {
|
|
85
85
|
var theme = _a.theme;
|
|
86
86
|
return theme.colors.primary.darker;
|
|
87
87
|
}, function (_a) {
|
|
88
|
-
var theme = _a.theme, colorVariants = _a
|
|
89
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.lighter) || theme.colors.primary.lighter;
|
|
88
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
89
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.lighter) || theme.colors.primary.lighter;
|
|
90
90
|
}, function (_a) {
|
|
91
|
-
var theme = _a.theme, colorVariants = _a
|
|
92
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.lightest) || theme.colors.primary.lightest;
|
|
91
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
92
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.lightest) || theme.colors.primary.lightest;
|
|
93
93
|
}, function (_a) {
|
|
94
|
-
var theme = _a.theme, colorVariants = _a
|
|
95
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.light) || theme.colors.primary.light;
|
|
94
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
95
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.light) || theme.colors.primary.light;
|
|
96
96
|
}, function (_a) {
|
|
97
97
|
var theme = _a.theme;
|
|
98
98
|
return theme.colors.neutral.lighter;
|
|
@@ -101,29 +101,29 @@ exports.TonalButton = (0, styled_components_1.default)(exports.PrimaryButton)(te
|
|
|
101
101
|
return theme.colors.neutral.light;
|
|
102
102
|
});
|
|
103
103
|
exports.TextButton = (0, styled_components_1.default)(exports.PrimaryButton)(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n background-color: transparent;\n color: ", ";\n\n svg {\n fill: ", ";\n transition: all 0.3s;\n }\n\n &:hover {\n background-color: transparent;\n color: ", ";\n svg {\n fill: ", ";\n }\n\n @media (hover: none) {\n color: ", ";\n svg {\n fill: ", ";\n }\n }\n }\n\n &:active {\n background-color: transparent;\n color: ", ";\n svg {\n fill: ", ";\n }\n }\n\n &:disabled {\n background-color: transparent;\n color: ", ";\n\n svg {\n fill: ", ";\n }\n }\n"], ["\n background-color: transparent;\n color: ", ";\n\n svg {\n fill: ", ";\n transition: all 0.3s;\n }\n\n &:hover {\n background-color: transparent;\n color: ", ";\n svg {\n fill: ", ";\n }\n\n @media (hover: none) {\n color: ", ";\n svg {\n fill: ", ";\n }\n }\n }\n\n &:active {\n background-color: transparent;\n color: ", ";\n svg {\n fill: ", ";\n }\n }\n\n &:disabled {\n background-color: transparent;\n color: ", ";\n\n svg {\n fill: ", ";\n }\n }\n"])), function (_a) {
|
|
104
|
-
var theme = _a.theme, colorVariants = _a
|
|
105
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
104
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
105
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
106
106
|
}, function (_a) {
|
|
107
|
-
var theme = _a.theme, colorVariants = _a
|
|
108
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
107
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
108
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
109
109
|
}, function (_a) {
|
|
110
|
-
var theme = _a.theme, colorVariants = _a
|
|
111
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.dark) || theme.colors.primary.dark;
|
|
110
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
111
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.dark) || theme.colors.primary.dark;
|
|
112
112
|
}, function (_a) {
|
|
113
|
-
var theme = _a.theme, colorVariants = _a
|
|
114
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.dark) || theme.colors.primary.dark;
|
|
113
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
114
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.dark) || theme.colors.primary.dark;
|
|
115
115
|
}, function (_a) {
|
|
116
|
-
var theme = _a.theme, colorVariants = _a
|
|
117
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
116
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
117
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
118
118
|
}, function (_a) {
|
|
119
|
-
var theme = _a.theme, colorVariants = _a
|
|
120
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
119
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
120
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
121
121
|
}, function (_a) {
|
|
122
|
-
var theme = _a.theme, colorVariants = _a
|
|
123
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.darker) || theme.colors.primary.darker;
|
|
122
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
123
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.darker) || theme.colors.primary.darker;
|
|
124
124
|
}, function (_a) {
|
|
125
|
-
var theme = _a.theme, colorVariants = _a
|
|
126
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.darker) || theme.colors.primary.darker;
|
|
125
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
126
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.darker) || theme.colors.primary.darker;
|
|
127
127
|
}, function (_a) {
|
|
128
128
|
var theme = _a.theme;
|
|
129
129
|
return theme.colors.neutral.light;
|
|
@@ -132,18 +132,18 @@ exports.TextButton = (0, styled_components_1.default)(exports.PrimaryButton)(tem
|
|
|
132
132
|
return theme.colors.neutral.light;
|
|
133
133
|
});
|
|
134
134
|
exports.SegmentedButton = (0, styled_components_1.default)(exports.OutlineButton)(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n border-radius: 0;\n background-color: ", ";\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &:first-child {\n border-top-left-radius: ", ";\n border-bottom-left-radius: ", ";\n }\n\n &:last-child {\n border-top-right-radius: ", ";\n border-bottom-right-radius: ", ";\n }\n\n &:not(:last-child) {\n border-right: 0;\n }\n\n &:disabled {\n background-color: transparent;\n color: ", ";\n }\n"], ["\n border-radius: 0;\n background-color: ", ";\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &:first-child {\n border-top-left-radius: ", ";\n border-bottom-left-radius: ", ";\n }\n\n &:last-child {\n border-top-right-radius: ", ";\n border-bottom-right-radius: ", ";\n }\n\n &:not(:last-child) {\n border-right: 0;\n }\n\n &:disabled {\n background-color: transparent;\n color: ", ";\n }\n"])), function (_a) {
|
|
135
|
-
var theme = _a.theme, isSelected = _a.isSelected, colorVariants = _a
|
|
135
|
+
var theme = _a.theme, isSelected = _a.isSelected, $colorVariants = _a.$colorVariants;
|
|
136
136
|
return isSelected
|
|
137
|
-
? (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default
|
|
137
|
+
? ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default
|
|
138
138
|
: "transparent";
|
|
139
139
|
}, function (_a) {
|
|
140
|
-
var theme = _a.theme, isSelected = _a.isSelected, colorVariants = _a
|
|
140
|
+
var theme = _a.theme, isSelected = _a.isSelected, $colorVariants = _a.$colorVariants;
|
|
141
141
|
return isSelected
|
|
142
142
|
? theme.colors.neutral.lightest
|
|
143
|
-
: (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
143
|
+
: ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
144
144
|
}, function (_a) {
|
|
145
|
-
var theme = _a.theme, colorVariants = _a
|
|
146
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
145
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
146
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
147
147
|
}, function (_a) {
|
|
148
148
|
var theme = _a.theme;
|
|
149
149
|
return theme.radius.l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/Button/styles.ts"],"names":[],"mappings":";;;;AAAA,gFAAuC;AAS1B,QAAA,aAAa,GAAG,2BAAM,CAAC,MAAM,+8BAAoB,qCAElD,EAA2D,kDAGnE,EAKsC,wBACpB,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/Button/styles.ts"],"names":[],"mappings":";;;;AAAA,gFAAuC;AAS1B,QAAA,aAAa,GAAG,2BAAM,CAAC,MAAM,+8BAAoB,qCAElD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S;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,OAAO,CAAC,EAAE;AAAhB,CAAgB,EACtB,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ;AAA7B,CAA6B,EAKrD,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,OAAO,CAAC,EAAE;AAAhB,CAAgB,EAG5C"}
|
|
@@ -7,6 +7,6 @@ var react_1 = require("react");
|
|
|
7
7
|
var styles_1 = require("./styles");
|
|
8
8
|
exports.FieldInfo = (0, react_1.forwardRef)(function FieldInfo(_a, ref) {
|
|
9
9
|
var isError = _a.isError, isDisabled = _a.isDisabled, children = _a.children, props = tslib_1.__rest(_a, ["isError", "isDisabled", "children"]);
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)(styles_1.FieldInfoContainer, tslib_1.__assign({ isDisabled: isDisabled, isError: isError, ref: ref }, props, { children: children })));
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.FieldInfoContainer, tslib_1.__assign({ "$isDisabled": isDisabled, "$isError": isError, ref: ref }, props, { children: children })));
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/FieldInfo/index.tsx"],"names":[],"mappings":";;;;;AAAA,+BAA0C;AAC1C,mCAA8C;AAOjC,QAAA,SAAS,GAAG,IAAA,kBAAU,EAAC,SAAS,SAAS,CACpD,EAA2D,EAC3D,GAA8B;IAD5B,IAAA,OAAO,aAAA,EAAE,UAAU,gBAAA,EAAE,QAAQ,cAAA,EAAK,KAAK,sBAAzC,qCAA2C,CAAF;IAGzC,OAAO,CACL,uBAAC,2BAAkB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/FieldInfo/index.tsx"],"names":[],"mappings":";;;;;AAAA,+BAA0C;AAC1C,mCAA8C;AAOjC,QAAA,SAAS,GAAG,IAAA,kBAAU,EAAC,SAAS,SAAS,CACpD,EAA2D,EAC3D,GAA8B;IAD5B,IAAA,OAAO,aAAA,EAAE,UAAU,gBAAA,EAAE,QAAQ,cAAA,EAAK,KAAK,sBAAzC,qCAA2C,CAAF;IAGzC,OAAO,CACL,uBAAC,2BAAkB,oCACJ,UAAU,cACb,OAAO,EACjB,GAAG,EAAE,GAAG,IACJ,KAAK,cAER,QAAQ,IACU,CACtB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface FieldInfoContainerProps {
|
|
2
|
-
isError?: boolean;
|
|
3
|
-
isDisabled?: boolean;
|
|
2
|
+
$isError?: boolean;
|
|
3
|
+
$isDisabled?: boolean;
|
|
4
4
|
}
|
|
5
5
|
export declare const FieldInfoContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FieldInfoContainerProps>> & string;
|
|
6
6
|
export {};
|
|
@@ -7,10 +7,10 @@ exports.FieldInfoContainer = styled_components_1.default.div(templateObject_1 ||
|
|
|
7
7
|
var theme = _a.theme;
|
|
8
8
|
return theme.spacing.xxs;
|
|
9
9
|
}, function (_a) {
|
|
10
|
-
var theme = _a.theme, isError = _a
|
|
11
|
-
return isError
|
|
10
|
+
var theme = _a.theme, $isError = _a.$isError, $isDisabled = _a.$isDisabled;
|
|
11
|
+
return $isError
|
|
12
12
|
? theme.colors.red.default
|
|
13
|
-
: isDisabled
|
|
13
|
+
: $isDisabled
|
|
14
14
|
? theme.colors.neutral.light
|
|
15
15
|
: theme.colors.neutral.dark;
|
|
16
16
|
}, function (_a) {
|
|
@@ -26,10 +26,10 @@ exports.FieldInfoContainer = styled_components_1.default.div(templateObject_1 ||
|
|
|
26
26
|
var theme = _a.theme;
|
|
27
27
|
return theme.components.fieldInfo.fontSize[theme.device];
|
|
28
28
|
}, function (_a) {
|
|
29
|
-
var theme = _a.theme, isError = _a
|
|
30
|
-
return isError
|
|
29
|
+
var theme = _a.theme, $isError = _a.$isError, $isDisabled = _a.$isDisabled;
|
|
30
|
+
return $isError
|
|
31
31
|
? theme.colors.red.default
|
|
32
|
-
: isDisabled
|
|
32
|
+
: $isDisabled
|
|
33
33
|
? theme.colors.neutral.light
|
|
34
34
|
: theme.colors.neutral.dark;
|
|
35
35
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/FieldInfo/styles.ts"],"names":[],"mappings":";;;;AAAA,gFAAuC;AAO1B,QAAA,kBAAkB,GAAG,2BAAM,CAAC,GAAG,8YAAyB,qDAG5D,EAAgC,cAC9B,EAKwB,kBACpB,EACsC,gEAGpC,EACoC,eACzC,EAAgE,4EAIrE,EAAgE,qCAI3D,EAKyB,gCAGpC,KA7BQ,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,OAAO,CAAC,GAAG;AAAjB,CAAiB,EAC9B,UAAC,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/FieldInfo/styles.ts"],"names":[],"mappings":";;;;AAAA,gFAAuC;AAO1B,QAAA,kBAAkB,GAAG,2BAAM,CAAC,GAAG,8YAAyB,qDAG5D,EAAgC,cAC9B,EAKwB,kBACpB,EACsC,gEAGpC,EACoC,eACzC,EAAgE,4EAIrE,EAAgE,qCAI3D,EAKyB,gCAGpC,KA7BQ,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,OAAO,CAAC,GAAG;AAAjB,CAAiB,EAC9B,UAAC,EAAgC;QAA9B,KAAK,WAAA,EAAE,QAAQ,cAAA,EAAE,WAAW,iBAAA;IACtC,OAAA,QAAQ;QACN,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO;QAC1B,CAAC,CAAC,WAAW;YACX,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK;YAC5B,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI;AAJ/B,CAI+B,EACpB,UAAC,EAAS;QAAP,KAAK,WAAA;IACnB,OAAA,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC;AAAjD,CAAiD,EAGpC,UAAC,EAAS;QAAP,KAAK,WAAA;IACrB,OAAA,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC;AAAjD,CAAiD,EACzC,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC;AAAjD,CAAiD,EAIrE,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC;AAAjD,CAAiD,EAI3D,UAAC,EAAgC;QAA9B,KAAK,WAAA,EAAE,QAAQ,cAAA,EAAE,WAAW,iBAAA;IACrC,OAAA,QAAQ;QACN,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO;QAC1B,CAAC,CAAC,WAAW;YACX,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK;YAC5B,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI;AAJ/B,CAI+B,EAGnC"}
|
|
@@ -25,7 +25,7 @@ exports.Input = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
25
25
|
var isPasswordField = props.type === "password";
|
|
26
26
|
var inputType = isPasswordField && passwordShowing ? "text" : props.type;
|
|
27
27
|
var passwordIcon = isPasswordField ? (passwordShowing ? ((0, jsx_runtime_1.jsx)(icons_1.IconEyeSlash, { style: { cursor: "pointer" }, onClick: togglePasswordVisibility })) : ((0, jsx_runtime_1.jsx)(icons_1.IconEye, { style: { cursor: "pointer" }, onClick: togglePasswordVisibility }))) : (iconRight);
|
|
28
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.InputWrapper, { className: props.className, style: tslib_1.__assign({ width: (_b = props.style) === null || _b === void 0 ? void 0 : _b.width }, containerStyles), children: [label && (0, jsx_runtime_1.jsx)("label", { children: label }), (0, jsx_runtime_1.jsxs)(styles_1.InputContainer, { hasIconLeft: !!iconLeft, hasIconRight: !!passwordIcon, hasError: !!error, children: [iconLeft && (0, jsx_runtime_1.jsx)("div", { className: "icon-left", children: iconLeft }), isCurrency ? ((0, jsx_runtime_1.jsx)(CurrencyInput, tslib_1.__assign({ control: control, hasPrefix: hasPrefix, minimumFractionDigits: minimumFractionDigits }, props, { type: inputType, ref: ref }))) : mask ? ((0, jsx_runtime_1.jsx)(MaskInput, tslib_1.__assign({ mask: mask, maskChar: maskChar, register: register }, props, { type: inputType, ref: ref }))) : ((0, jsx_runtime_1.jsx)(NormalInput, tslib_1.__assign({ isLoading: isLoading }, props, { type: inputType, ref: ref, register: register }))), isLoading ? ((0, jsx_runtime_1.jsx)(Spinner_1.Spinner, { size: spinnerSize, color: theme.colors.neutral.light, style: {
|
|
28
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.InputWrapper, { className: props.className, style: tslib_1.__assign({ width: (_b = props.style) === null || _b === void 0 ? void 0 : _b.width }, containerStyles), children: [label && (0, jsx_runtime_1.jsx)("label", { children: label }), (0, jsx_runtime_1.jsxs)(styles_1.InputContainer, { "$hasIconLeft": !!iconLeft, "$hasIconRight": !!passwordIcon, "$hasError": !!error, children: [iconLeft && (0, jsx_runtime_1.jsx)("div", { className: "icon-left", children: iconLeft }), isCurrency ? ((0, jsx_runtime_1.jsx)(CurrencyInput, tslib_1.__assign({ control: control, hasPrefix: hasPrefix, minimumFractionDigits: minimumFractionDigits }, props, { type: inputType, ref: ref }))) : mask ? ((0, jsx_runtime_1.jsx)(MaskInput, tslib_1.__assign({ mask: mask, maskChar: maskChar, register: register }, props, { type: inputType, ref: ref }))) : ((0, jsx_runtime_1.jsx)(NormalInput, tslib_1.__assign({ isLoading: isLoading }, props, { type: inputType, ref: ref, register: register }))), isLoading ? ((0, jsx_runtime_1.jsx)(Spinner_1.Spinner, { size: spinnerSize, color: theme.colors.neutral.light, style: {
|
|
29
29
|
position: "absolute",
|
|
30
30
|
right: 16,
|
|
31
31
|
top: "calc(50% - ".concat(spinnerSize / 2, "px)"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Input/index.tsx"],"names":[],"mappings":";;;;;AAAA,+BAAkE;AAClE,mCAAwD;AACxD,mDAAoE;AACpE,8EAA8C;AAC9C,uDAA6C;AAC7C,sCAAqC;AACrC,kCAAkE;AAClE,2DAAuD;AACvD,mDAA0D;AAC1D,0CAAyC;AAoB5B,QAAA,KAAK,GAAG,IAAA,kBAAU,EAC7B,UACE,EAgBa,EACb,GAAmC;;IAhBjC,IAAA,KAAK,WAAA,EACL,IAAI,UAAA,EACJ,KAAK,WAAA,EACL,SAAS,eAAA,EACT,QAAQ,cAAA,EACR,IAAI,UAAA,EACJ,gBAAe,EAAf,QAAQ,mBAAG,IAAI,KAAA,EACf,eAAe,qBAAA,EACf,UAAU,gBAAA,EACV,SAAS,eAAA,EACT,qBAAqB,2BAAA,EACrB,OAAO,aAAA,EACP,QAAQ,cAAA,EACR,SAAS,eAAA,EACN,KAAK,sBAfV,kLAgBC,CADS;IAIV,IAAM,KAAK,GAAG,IAAA,4BAAQ,GAAE,CAAC;IACzB,IAAM,WAAW,GACf,QAAQ,CACN,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAClE,GAAG,CAAC,C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AAK,CAAC,QAAQ,sDAAG;gBACf,MAAM,EAAE;oBACN,YAAY;oBACZ,KAAK,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC,SAAS;iBAC/D;aACF,CAAC,CAAA;SAAA,EAEJ,IAAI,EAAC,MAAM,EACX,WAAW,EAAE,GAAG,IAChB,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AASF,IAAM,SAAS,GAAG,IAAA,kBAAU,EAC1B,UACE,EAAiE,EACjE,GAAiC;IAD/B,IAAA,IAAI,UAAA,EAAE,QAAQ,cAAA,EAAE,QAAQ,cAAA,EAAE,SAAS,eAAA,EAAK,KAAK,sBAA/C,6CAAiD,CAAF;IAG/C,OAAO,CACL,uBAAC,0BAAc,qBACb,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,IACd,KAAK,IACT,QAAQ,EAAE,SAAS,IAAI,KAAK,CAAC,QAAQ,IACjC,QAAQ,IACZ,GAAG,EAAE,UAAC,CAAC;YACL,IAAI,QAAQ,EAAE,CAAC;gBACb,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YAClB,CAAC;YACD,IAAI,GAAG,EAAE,CAAC;gBACR,YAAY;gBACZ,GAAG,CAAC,OAAO,GAAG,CAAC,CAAC;YAClB,CAAC;QACH,CAAC,IACD,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -3,9 +3,9 @@ interface InputWrapperProps {
|
|
|
3
3
|
}
|
|
4
4
|
export declare const InputWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, InputWrapperProps>> & string;
|
|
5
5
|
interface InputContainerProps {
|
|
6
|
-
hasError?: boolean;
|
|
7
|
-
hasIconLeft?: boolean;
|
|
8
|
-
hasIconRight?: boolean;
|
|
6
|
+
$hasError?: boolean;
|
|
7
|
+
$hasIconLeft?: boolean;
|
|
8
|
+
$hasIconRight?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export declare const InputContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, InputContainerProps>> & string;
|
|
11
11
|
export {};
|
|
@@ -71,14 +71,14 @@ exports.InputContainer = styled_components_1.default.div(templateObject_2 || (te
|
|
|
71
71
|
var theme = _a.theme;
|
|
72
72
|
return theme.components.input.input.fontSize[theme.device];
|
|
73
73
|
}, function (_a) {
|
|
74
|
-
var hasIconLeft = _a
|
|
75
|
-
return hasIconLeft && "padding-left: 40px;";
|
|
74
|
+
var $hasIconLeft = _a.$hasIconLeft;
|
|
75
|
+
return $hasIconLeft && "padding-left: 40px;";
|
|
76
76
|
}, function (_a) {
|
|
77
|
-
var hasIconRight = _a
|
|
78
|
-
return hasIconRight && "padding-right: 40px;";
|
|
77
|
+
var $hasIconRight = _a.$hasIconRight;
|
|
78
|
+
return $hasIconRight && "padding-right: 40px;";
|
|
79
79
|
}, function (_a) {
|
|
80
|
-
var hasError = _a
|
|
81
|
-
return hasError &&
|
|
80
|
+
var $hasError = _a.$hasError, theme = _a.theme;
|
|
81
|
+
return $hasError &&
|
|
82
82
|
"border-color: ".concat(theme.colors.red.default, ";\n padding-right: 36px;");
|
|
83
83
|
}, function (_a) {
|
|
84
84
|
var theme = _a.theme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/Input/styles.ts"],"names":[],"mappings":";;;;AAAA,gFAAuC;AAM1B,QAAA,YAAY,GAAG,2BAAM,CAAC,GAAG,mlBAAmB,+EAIhD,EAAgC,gBAE9B,EAAwC,gKAQlC,EACwC,gIAK5C,EAAwC,iEAKtC,EAAyC,kCAGxC,EAAyC,0BAIxD,KA5BQ,UAAC,EAAS;QAAP,KAAK,WAAA;I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AK,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM;AAA3B,CAA2B,EAQtC,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI;AAAtB,CAAsB,EAKzC,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK;AAA1B,CAA0B,EAG9C,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK;AAA1B,CAA0B,EAIxD"}
|
|
@@ -12,6 +12,6 @@ export var Badge = forwardRef(function Badge(_a, ref) {
|
|
|
12
12
|
outlined: "\n background-color: transparent;\n color: ".concat(theme.colors[customColor].default, ";\n border-color: ").concat(theme.colors[customColor].default, ";\n\n svg {\n fill: ").concat(theme.colors[customColor].default, ";\n }\n "),
|
|
13
13
|
tonal: "\n background-color: ".concat(getBrighterColor(theme.colors[customColor].default, 70), ";\n color: ").concat(theme.colors.neutral.darker, ";\n border-color: transparent;\n\n svg {\n fill: ").concat(theme.colors[customColor].default, ";\n }\n "),
|
|
14
14
|
};
|
|
15
|
-
return (_jsx(BadgeContainer, __assign({ customColor: customColor, variant: variantsChanges[variant], ref: ref }, props, { children: children })));
|
|
15
|
+
return (_jsx(BadgeContainer, __assign({ "$customColor": customColor, variant: variantsChanges[variant], ref: ref }, props, { children: children })));
|
|
16
16
|
});
|
|
17
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Badge/index.tsx"],"names":[],"mappings":";;AAAA,OAAc,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EA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EACvB,eAAmB,EAAnB,OAAO,mBAAG,SAAS,KAAA,EACnB,QAAQ,cAAA,EACL,KAAK,cAJV,sCAKC,CADS;IAIV,IAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,IAAM,eAAe,GAAG;QACtB,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,+DAEC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,oCAC1B,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,6CAGvC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,qBAE5C;QACD,KAAK,EAAE,oCACe,gBAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,6BAClE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,+EAI1B,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,qBAE5C;KACF,CAAC;IAEF,OAAO,CACL,KAAC,cAAc,6BACC,WAAW,EACzB,OAAO,EAAE,eAAe,CAAC,OAAO,CAAC,EACjC,GAAG,EAAE,GAAG,IACJ,KAAK,cAER,QAAQ,IACM,CAClB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ColorType } from "../../utils/consts";
|
|
2
2
|
interface BadgeContainerProps {
|
|
3
|
-
customColor: ColorType;
|
|
3
|
+
$customColor: ColorType;
|
|
4
4
|
variant: string;
|
|
5
5
|
}
|
|
6
6
|
export declare const BadgeContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, BadgeContainerProps>> & string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __makeTemplateObject } from "tslib";
|
|
2
2
|
import styled from "styled-components";
|
|
3
3
|
export var BadgeContainer = styled.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 8px;\n border-radius: 40px;\n border: ", ";\n background: ", ";\n\n color: ", ";\n text-align: center;\n font-family: Poppins;\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: 16px; /* 133.333% */\n letter-spacing: 0.5px;\n\n svg {\n font-size: 16px;\n fill: ", ";\n }\n\n ", "\n"], ["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 8px;\n border-radius: 40px;\n border: ", ";\n background: ", ";\n\n color: ", ";\n text-align: center;\n font-family: Poppins;\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: 16px; /* 133.333% */\n letter-spacing: 0.5px;\n\n svg {\n font-size: 16px;\n fill: ", ";\n }\n\n ", "\n"])), function (_a) {
|
|
4
|
-
var theme = _a.theme, customColor = _a
|
|
5
|
-
return "1px solid ".concat(theme.colors[customColor].default);
|
|
4
|
+
var theme = _a.theme, $customColor = _a.$customColor;
|
|
5
|
+
return "1px solid ".concat(theme.colors[$customColor].default);
|
|
6
6
|
}, function (_a) {
|
|
7
|
-
var theme = _a.theme, customColor = _a
|
|
8
|
-
return theme.colors[customColor].default;
|
|
7
|
+
var theme = _a.theme, $customColor = _a.$customColor;
|
|
8
|
+
return theme.colors[$customColor].default;
|
|
9
9
|
}, function (_a) {
|
|
10
10
|
var theme = _a.theme;
|
|
11
11
|
return theme.colors.neutral.white;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/Badge/styles.ts"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAQvC,MAAM,CAAC,IAAM,cAAc,GAAG,MAAM,CAAC,IAAI,+cAAqB,8GAMlD,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/Badge/styles.ts"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAQvC,MAAM,CAAC,IAAM,cAAc,GAAG,MAAM,CAAC,IAAI,+cAAqB,8GAMlD,EACyC,mBACrC,EACsB,gBAE3B,EAAyC,+NAWxC,EAAyC,cAGjD,EAAwB,IAC3B,KApBW,UAAC,EAAuB;QAArB,KAAK,WAAA,EAAE,YAAY,kBAAA;IAC9B,OAAA,oBAAa,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,OAAO,CAAE;AAAjD,CAAiD,EACrC,UAAC,EAAuB;QAArB,KAAK,WAAA,EAAE,YAAY,kBAAA;IAClC,OAAA,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,OAAO;AAAlC,CAAkC,EAE3B,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK;AAA1B,CAA0B,EAWxC,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK;AAA1B,CAA0B,EAGjD,UAAC,EAAW;QAAT,OAAO,aAAA;IAAO,OAAA,OAAO;AAAP,CAAO,CAC3B,CAAC"}
|
|
@@ -19,8 +19,7 @@ export var Button = forwardRef(function Button(_a, ref) {
|
|
|
19
19
|
var colorVariants = customColor
|
|
20
20
|
? useMemo(function () { return generateColorVariants(customColor); }, [customColor])
|
|
21
21
|
: undefined;
|
|
22
|
-
// const onlyIcon = !!icon && !children;
|
|
23
22
|
var textAndIcon = !!icon && !!children;
|
|
24
|
-
return (_jsx(ButtonToRender, __assign({ ref: ref, hasIcon: !!icon, textAndIcon: textAndIcon, isSelected: isSelected, colorVariants: colorVariants }, props, { disabled: isLoading || props.disabled, children: isLoading ? (_jsx(Spinner, { color: theme.colors.neutral.light })) : (_jsxs(_Fragment, { children: [icon, children] })) })));
|
|
23
|
+
return (_jsx(ButtonToRender, __assign({ ref: ref, "$hasIcon": !!icon, "$textAndIcon": textAndIcon, isSelected: isSelected, "$colorVariants": colorVariants }, props, { disabled: isLoading || props.disabled, children: isLoading ? (_jsx(Spinner, { color: theme.colors.neutral.light })) : (_jsxs(_Fragment, { children: [icon, children] })) })));
|
|
25
24
|
});
|
|
26
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Button/index.tsx"],"names":[],"mappings":";;AAAA,OAAc,EAAwB,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EACL,aAAa,EACb,aAAa,EACb,eAAe,EACf,UAAU,EACV,WAAW,GACZ,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,MAAM,CAAC,IAAM,cAAc,GAAG;IAC5B,OAAO,EAAE,aAAa;IACtB,QAAQ,EAAE,aAAa;IACvB,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,UAAU;IAChB,SAAS,EAAE,eAAe;CAC3B,CAAC;AAWF,MAAM,CAAC,IAAM,MAAM,GAAG,UAAU,CAAC,SAAS,MAAM,CAC9C,EAQc,EACd,GAAiC;IAR/B,IAAA,eAAmB,EAAnB,OAAO,mBAAG,SAAS,KAAA,EACnB,IAAI,UAAA,EACJ,WAAW,iBAAA,EACX,SAAS,eAAA,EACT,UAAU,gBAAA,EACV,QAAQ,cAAA,EACL,KAAK,cAPV,yEAQC,CADS;IAIV,IAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,IAAM,cAAc,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;IAC/C,IAAM,aAAa,GAAG,WAAW;QAC/B,CAAC,CAAC,OAAO,CAAC,cAAM,OAAA,qBAAqB,CAAC,WAAW,CAAC,EAAlC,CAAkC,EAAE,CAAC,WAAW,CAAC,CAAC;QAClE,CAA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EAAE,GAAG,cACE,CAAC,CAAC,IAAI,kBACF,WAAW,EACzB,UAAU,EAAE,UAAU,oBACN,aAAa,IACzB,KAAK,IACT,QAAQ,EAAE,SAAS,IAAI,KAAK,CAAC,QAAQ,YAEpC,SAAS,CAAC,CAAC,CAAC,CACX,KAAC,OAAO,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,GAAI,CAC/C,CAAC,CAAC,CAAC,CACF,8BACG,IAAI,EACJ,QAAQ,IACR,CACJ,IACc,CAClB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ColorVariants } from "../../utils/globalTypes";
|
|
2
2
|
export interface PrimaryButtonProps {
|
|
3
|
-
hasIcon?: boolean;
|
|
4
|
-
textAndIcon?: boolean;
|
|
5
|
-
colorVariants?: ColorVariants;
|
|
3
|
+
$hasIcon?: boolean;
|
|
4
|
+
$textAndIcon?: boolean;
|
|
5
|
+
$colorVariants?: ColorVariants;
|
|
6
6
|
}
|
|
7
7
|
export declare const PrimaryButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, PrimaryButtonProps>> & string;
|
|
8
8
|
export declare const OutlineButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof PrimaryButtonProps> & PrimaryButtonProps, "ref"> & {
|
|
@@ -4,15 +4,15 @@ export var PrimaryButton = styled.button(templateObject_1 || (templateObject_1 =
|
|
|
4
4
|
var theme = _a.theme;
|
|
5
5
|
return theme.components.button.height[theme.device];
|
|
6
6
|
}, function (_a) {
|
|
7
|
-
var theme = _a.theme, hasIcon = _a
|
|
8
|
-
return textAndIcon
|
|
7
|
+
var theme = _a.theme, $hasIcon = _a.$hasIcon, $textAndIcon = _a.$textAndIcon;
|
|
8
|
+
return $textAndIcon
|
|
9
9
|
? "padding: 0 12px 0 ".concat(theme.spacing.xs, ";")
|
|
10
|
-
: hasIcon
|
|
10
|
+
: $hasIcon
|
|
11
11
|
? "padding: 0 ".concat(theme.spacing.xs, ";")
|
|
12
12
|
: "padding: 0 ".concat(theme.spacing.s, ";");
|
|
13
13
|
}, function (_a) {
|
|
14
|
-
var theme = _a.theme, colorVariants = _a
|
|
15
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
14
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
15
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
16
16
|
}, function (_a) {
|
|
17
17
|
var theme = _a.theme;
|
|
18
18
|
return theme.radius.l;
|
|
@@ -26,17 +26,17 @@ export var PrimaryButton = styled.button(templateObject_1 || (templateObject_1 =
|
|
|
26
26
|
var theme = _a.theme;
|
|
27
27
|
return theme.components.button.fontSize[theme.device];
|
|
28
28
|
}, function (_a) {
|
|
29
|
-
var theme = _a.theme, colorVariants = _a
|
|
30
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.dark) || theme.colors.primary.dark;
|
|
29
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
30
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.dark) || theme.colors.primary.dark;
|
|
31
31
|
}, function (_a) {
|
|
32
|
-
var theme = _a.theme, colorVariants = _a
|
|
33
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
32
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
33
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
34
34
|
}, function (_a) {
|
|
35
|
-
var theme = _a.theme, colorVariants = _a
|
|
36
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.darker) || theme.colors.primary.darker;
|
|
35
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
36
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.darker) || theme.colors.primary.darker;
|
|
37
37
|
}, function (_a) {
|
|
38
|
-
var theme = _a.theme, colorVariants = _a
|
|
39
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.darker) || theme.colors.primary.darker;
|
|
38
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
39
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.darker) || theme.colors.primary.darker;
|
|
40
40
|
}, function (_a) {
|
|
41
41
|
var theme = _a.theme;
|
|
42
42
|
return theme.colors.neutral.lighter;
|
|
@@ -48,20 +48,20 @@ export var PrimaryButton = styled.button(templateObject_1 || (templateObject_1 =
|
|
|
48
48
|
return theme.colors.neutral.light;
|
|
49
49
|
});
|
|
50
50
|
export var OutlineButton = styled(PrimaryButton)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: transparent;\n border: 1px solid\n ", ";\n color: ", ";\n\n svg {\n fill: ", ";\n }\n\n &:hover {\n background-color: ", ";\n\n @media (hover: none) {\n background-color: transparent;\n }\n }\n\n &:active {\n background-color: ", ";\n }\n\n &:disabled {\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n }\n"], ["\n background-color: transparent;\n border: 1px solid\n ", ";\n color: ", ";\n\n svg {\n fill: ", ";\n }\n\n &:hover {\n background-color: ", ";\n\n @media (hover: none) {\n background-color: transparent;\n }\n }\n\n &:active {\n background-color: ", ";\n }\n\n &:disabled {\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n }\n"])), function (_a) {
|
|
51
|
-
var theme = _a.theme, colorVariants = _a
|
|
52
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
51
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
52
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
53
53
|
}, function (_a) {
|
|
54
|
-
var theme = _a.theme, colorVariants = _a
|
|
55
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
54
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
55
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
56
56
|
}, function (_a) {
|
|
57
|
-
var theme = _a.theme, colorVariants = _a
|
|
58
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
57
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
58
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
59
59
|
}, function (_a) {
|
|
60
|
-
var theme = _a.theme, colorVariants = _a
|
|
61
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.lightest) || theme.colors.primary.lightest;
|
|
60
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
61
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.lightest) || theme.colors.primary.lightest;
|
|
62
62
|
}, function (_a) {
|
|
63
|
-
var theme = _a.theme, colorVariants = _a
|
|
64
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.lighter) || theme.colors.primary.lighter;
|
|
63
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
64
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.lighter) || theme.colors.primary.lighter;
|
|
65
65
|
}, function (_a) {
|
|
66
66
|
var theme = _a.theme;
|
|
67
67
|
return theme.colors.neutral.lightest;
|
|
@@ -73,23 +73,23 @@ export var OutlineButton = styled(PrimaryButton)(templateObject_2 || (templateOb
|
|
|
73
73
|
return theme.colors.neutral.light;
|
|
74
74
|
});
|
|
75
75
|
export var TonalButton = styled(PrimaryButton)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n\n svg {\n fill: ", ";\n }\n\n &:hover {\n background-color: ", ";\n\n @media (hover: none) {\n background-color: ", ";\n }\n }\n\n &:active {\n background-color: ", ";\n }\n\n &:disabled {\n background-color: ", ";\n color: ", ";\n }\n"], ["\n background-color: ", ";\n color: ", ";\n\n svg {\n fill: ", ";\n }\n\n &:hover {\n background-color: ", ";\n\n @media (hover: none) {\n background-color: ", ";\n }\n }\n\n &:active {\n background-color: ", ";\n }\n\n &:disabled {\n background-color: ", ";\n color: ", ";\n }\n"])), function (_a) {
|
|
76
|
-
var theme = _a.theme, colorVariants = _a
|
|
77
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.lightest) || theme.colors.primary.lightest;
|
|
76
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
77
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.lightest) || theme.colors.primary.lightest;
|
|
78
78
|
}, function (_a) {
|
|
79
|
-
var theme = _a.theme, colorVariants = _a
|
|
80
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.darker) || theme.colors.primary.darker;
|
|
79
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
80
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.darker) || theme.colors.primary.darker;
|
|
81
81
|
}, function (_a) {
|
|
82
82
|
var theme = _a.theme;
|
|
83
83
|
return theme.colors.primary.darker;
|
|
84
84
|
}, function (_a) {
|
|
85
|
-
var theme = _a.theme, colorVariants = _a
|
|
86
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.lighter) || theme.colors.primary.lighter;
|
|
85
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
86
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.lighter) || theme.colors.primary.lighter;
|
|
87
87
|
}, function (_a) {
|
|
88
|
-
var theme = _a.theme, colorVariants = _a
|
|
89
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.lightest) || theme.colors.primary.lightest;
|
|
88
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
89
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.lightest) || theme.colors.primary.lightest;
|
|
90
90
|
}, function (_a) {
|
|
91
|
-
var theme = _a.theme, colorVariants = _a
|
|
92
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.light) || theme.colors.primary.light;
|
|
91
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
92
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.light) || theme.colors.primary.light;
|
|
93
93
|
}, function (_a) {
|
|
94
94
|
var theme = _a.theme;
|
|
95
95
|
return theme.colors.neutral.lighter;
|
|
@@ -98,29 +98,29 @@ export var TonalButton = styled(PrimaryButton)(templateObject_3 || (templateObje
|
|
|
98
98
|
return theme.colors.neutral.light;
|
|
99
99
|
});
|
|
100
100
|
export var TextButton = styled(PrimaryButton)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background-color: transparent;\n color: ", ";\n\n svg {\n fill: ", ";\n transition: all 0.3s;\n }\n\n &:hover {\n background-color: transparent;\n color: ", ";\n svg {\n fill: ", ";\n }\n\n @media (hover: none) {\n color: ", ";\n svg {\n fill: ", ";\n }\n }\n }\n\n &:active {\n background-color: transparent;\n color: ", ";\n svg {\n fill: ", ";\n }\n }\n\n &:disabled {\n background-color: transparent;\n color: ", ";\n\n svg {\n fill: ", ";\n }\n }\n"], ["\n background-color: transparent;\n color: ", ";\n\n svg {\n fill: ", ";\n transition: all 0.3s;\n }\n\n &:hover {\n background-color: transparent;\n color: ", ";\n svg {\n fill: ", ";\n }\n\n @media (hover: none) {\n color: ", ";\n svg {\n fill: ", ";\n }\n }\n }\n\n &:active {\n background-color: transparent;\n color: ", ";\n svg {\n fill: ", ";\n }\n }\n\n &:disabled {\n background-color: transparent;\n color: ", ";\n\n svg {\n fill: ", ";\n }\n }\n"])), function (_a) {
|
|
101
|
-
var theme = _a.theme, colorVariants = _a
|
|
102
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
101
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
102
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
103
103
|
}, function (_a) {
|
|
104
|
-
var theme = _a.theme, colorVariants = _a
|
|
105
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
104
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
105
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
106
106
|
}, function (_a) {
|
|
107
|
-
var theme = _a.theme, colorVariants = _a
|
|
108
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.dark) || theme.colors.primary.dark;
|
|
107
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
108
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.dark) || theme.colors.primary.dark;
|
|
109
109
|
}, function (_a) {
|
|
110
|
-
var theme = _a.theme, colorVariants = _a
|
|
111
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.dark) || theme.colors.primary.dark;
|
|
110
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
111
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.dark) || theme.colors.primary.dark;
|
|
112
112
|
}, function (_a) {
|
|
113
|
-
var theme = _a.theme, colorVariants = _a
|
|
114
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
113
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
114
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
115
115
|
}, function (_a) {
|
|
116
|
-
var theme = _a.theme, colorVariants = _a
|
|
117
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
116
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
117
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
118
118
|
}, function (_a) {
|
|
119
|
-
var theme = _a.theme, colorVariants = _a
|
|
120
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.darker) || theme.colors.primary.darker;
|
|
119
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
120
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.darker) || theme.colors.primary.darker;
|
|
121
121
|
}, function (_a) {
|
|
122
|
-
var theme = _a.theme, colorVariants = _a
|
|
123
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.darker) || theme.colors.primary.darker;
|
|
122
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
123
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.darker) || theme.colors.primary.darker;
|
|
124
124
|
}, function (_a) {
|
|
125
125
|
var theme = _a.theme;
|
|
126
126
|
return theme.colors.neutral.light;
|
|
@@ -129,18 +129,18 @@ export var TextButton = styled(PrimaryButton)(templateObject_4 || (templateObjec
|
|
|
129
129
|
return theme.colors.neutral.light;
|
|
130
130
|
});
|
|
131
131
|
export var SegmentedButton = styled(OutlineButton)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border-radius: 0;\n background-color: ", ";\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &:first-child {\n border-top-left-radius: ", ";\n border-bottom-left-radius: ", ";\n }\n\n &:last-child {\n border-top-right-radius: ", ";\n border-bottom-right-radius: ", ";\n }\n\n &:not(:last-child) {\n border-right: 0;\n }\n\n &:disabled {\n background-color: transparent;\n color: ", ";\n }\n"], ["\n border-radius: 0;\n background-color: ", ";\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &:first-child {\n border-top-left-radius: ", ";\n border-bottom-left-radius: ", ";\n }\n\n &:last-child {\n border-top-right-radius: ", ";\n border-bottom-right-radius: ", ";\n }\n\n &:not(:last-child) {\n border-right: 0;\n }\n\n &:disabled {\n background-color: transparent;\n color: ", ";\n }\n"])), function (_a) {
|
|
132
|
-
var theme = _a.theme, isSelected = _a.isSelected, colorVariants = _a
|
|
132
|
+
var theme = _a.theme, isSelected = _a.isSelected, $colorVariants = _a.$colorVariants;
|
|
133
133
|
return isSelected
|
|
134
|
-
? (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default
|
|
134
|
+
? ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default
|
|
135
135
|
: "transparent";
|
|
136
136
|
}, function (_a) {
|
|
137
|
-
var theme = _a.theme, isSelected = _a.isSelected, colorVariants = _a
|
|
137
|
+
var theme = _a.theme, isSelected = _a.isSelected, $colorVariants = _a.$colorVariants;
|
|
138
138
|
return isSelected
|
|
139
139
|
? theme.colors.neutral.lightest
|
|
140
|
-
: (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
140
|
+
: ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
141
141
|
}, function (_a) {
|
|
142
|
-
var theme = _a.theme, colorVariants = _a
|
|
143
|
-
return (colorVariants === null || colorVariants === void 0 ? void 0 : colorVariants.default) || theme.colors.primary.default;
|
|
142
|
+
var theme = _a.theme, $colorVariants = _a.$colorVariants;
|
|
143
|
+
return ($colorVariants === null || $colorVariants === void 0 ? void 0 : $colorVariants.default) || theme.colors.primary.default;
|
|
144
144
|
}, function (_a) {
|
|
145
145
|
var theme = _a.theme;
|
|
146
146
|
return theme.radius.l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/Button/styles.ts"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AASvC,MAAM,CAAC,IAAM,aAAa,GAAG,MAAM,CAAC,MAAM,u8BAAoB,qCAElD,EAA2D,kDAGnE,EAKsC,wBACpB,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/Button/styles.ts"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AASvC,MAAM,CAAC,IAAM,aAAa,GAAG,MAAM,CAAC,MAAM,u8BAAoB,qCAElD,EAA2D,kDAGnE,EAKsC,wBACpB,EACqC,sBACxC,EAA6B,6GAKvC,EAA+B,+CAGvB,EAA8C,kBAChD,EAA6D,6PAepD,EAC+B,2DAG7B,EACqC,uDAKvC,EACmC,+DAKnD,EACqD,kDAIrC,EAA2C,gBACtD,EAAyC,oDAIxC,EAAyC,iBAGtD,KAhEW,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;AAA5C,CAA4C,EAGnE,UAAC,EAAiC;QAA/B,KAAK,WAAA,EAAE,QAAQ,cAAA,EAAE,YAAY,kBAAA;IAChC,OAAA,YAAY;QACV,CAAC,CAAC,4BAAqB,KAAK,CAAC,OAAO,CAAC,EAAE,MAAG;QAC1C,CAAC,CAAC,QAAQ;YACR,CAAC,CAAC,qBAAc,KAAK,CAAC,OAAO,CAAC,EAAE,MAAG;YACnC,CAAC,CAAC,qBAAc,KAAK,CAAC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AC,OAAO,CAAC,OAAO;AAAvD,CAAuD,EAI/B,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,MAAM,CAAC,CAAC;AAAd,CAAc,EAC1B,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,MAAM,CAAC,CAAC;AAAd,CAAc,EAI/B,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,MAAM,CAAC,CAAC;AAAd,CAAc,EAC1B,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,MAAM,CAAC,CAAC;AAAd,CAAc,EASlD,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK;AAA1B,CAA0B,CAErD,CAAC;AAEF,SAAS;AAET,MAAM,CAAC,IAAM,eAAe,GAAG,MAAM,CAAC,KAAK,6SAAA,uGAM5B,EAA+B,2BACtB,EAA4C,+DAKrD,EAA+B,mCAG7C,KATc,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,OAAO,CAAC,EAAE;AAAhB,CAAgB,EACtB,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ;AAA7B,CAA6B,EAKrD,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,OAAO,CAAC,EAAE;AAAhB,CAAgB,CAG7C,CAAC"}
|
|
@@ -4,6 +4,6 @@ import { forwardRef } from "react";
|
|
|
4
4
|
import { FieldInfoContainer } from "./styles";
|
|
5
5
|
export var FieldInfo = forwardRef(function FieldInfo(_a, ref) {
|
|
6
6
|
var isError = _a.isError, isDisabled = _a.isDisabled, children = _a.children, props = __rest(_a, ["isError", "isDisabled", "children"]);
|
|
7
|
-
return (_jsx(FieldInfoContainer, __assign({ isDisabled: isDisabled, isError: isError, ref: ref }, props, { children: children })));
|
|
7
|
+
return (_jsx(FieldInfoContainer, __assign({ "$isDisabled": isDisabled, "$isError": isError, ref: ref }, props, { children: children })));
|
|
8
8
|
});
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/FieldInfo/index.tsx"],"names":[],"mappings":";;AAAA,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAO9C,MAAM,CAAC,IAAM,SAAS,GAAG,UAAU,CAAC,SAAS,SAAS,CACpD,EAA2D,EAC3D,GAA8B;IAD5B,IAAA,OAAO,aAAA,EAAE,UAAU,gBAAA,EAAE,QAAQ,cAAA,EAAK,KAAK,cAAzC,qCAA2C,CAAF;IAGzC,OAAO,CACL,KAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/FieldInfo/index.tsx"],"names":[],"mappings":";;AAAA,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAO9C,MAAM,CAAC,IAAM,SAAS,GAAG,UAAU,CAAC,SAAS,SAAS,CACpD,EAA2D,EAC3D,GAA8B;IAD5B,IAAA,OAAO,aAAA,EAAE,UAAU,gBAAA,EAAE,QAAQ,cAAA,EAAK,KAAK,cAAzC,qCAA2C,CAAF;IAGzC,OAAO,CACL,KAAC,kBAAkB,4BACJ,UAAU,cACb,OAAO,EACjB,GAAG,EAAE,GAAG,IACJ,KAAK,cAER,QAAQ,IACU,CACtB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface FieldInfoContainerProps {
|
|
2
|
-
isError?: boolean;
|
|
3
|
-
isDisabled?: boolean;
|
|
2
|
+
$isError?: boolean;
|
|
3
|
+
$isDisabled?: boolean;
|
|
4
4
|
}
|
|
5
5
|
export declare const FieldInfoContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FieldInfoContainerProps>> & string;
|
|
6
6
|
export {};
|
|
@@ -4,10 +4,10 @@ export var FieldInfoContainer = styled.div(templateObject_1 || (templateObject_1
|
|
|
4
4
|
var theme = _a.theme;
|
|
5
5
|
return theme.spacing.xxs;
|
|
6
6
|
}, function (_a) {
|
|
7
|
-
var theme = _a.theme, isError = _a
|
|
8
|
-
return isError
|
|
7
|
+
var theme = _a.theme, $isError = _a.$isError, $isDisabled = _a.$isDisabled;
|
|
8
|
+
return $isError
|
|
9
9
|
? theme.colors.red.default
|
|
10
|
-
: isDisabled
|
|
10
|
+
: $isDisabled
|
|
11
11
|
? theme.colors.neutral.light
|
|
12
12
|
: theme.colors.neutral.dark;
|
|
13
13
|
}, function (_a) {
|
|
@@ -23,10 +23,10 @@ export var FieldInfoContainer = styled.div(templateObject_1 || (templateObject_1
|
|
|
23
23
|
var theme = _a.theme;
|
|
24
24
|
return theme.components.fieldInfo.fontSize[theme.device];
|
|
25
25
|
}, function (_a) {
|
|
26
|
-
var theme = _a.theme, isError = _a
|
|
27
|
-
return isError
|
|
26
|
+
var theme = _a.theme, $isError = _a.$isError, $isDisabled = _a.$isDisabled;
|
|
27
|
+
return $isError
|
|
28
28
|
? theme.colors.red.default
|
|
29
|
-
: isDisabled
|
|
29
|
+
: $isDisabled
|
|
30
30
|
? theme.colors.neutral.light
|
|
31
31
|
: theme.colors.neutral.dark;
|
|
32
32
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/FieldInfo/styles.ts"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAOvC,MAAM,CAAC,IAAM,kBAAkB,GAAG,MAAM,CAAC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C,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC;AAAjD,CAAiD,EAIrE,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC;AAAjD,CAAiD,EAI3D,UAAC,EAAgC;QAA9B,KAAK,WAAA,EAAE,QAAQ,cAAA,EAAE,WAAW,iBAAA;IACrC,OAAA,QAAQ;QACN,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO;QAC1B,CAAC,CAAC,WAAW;YACX,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK;YAC5B,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI;AAJ/B,CAI+B,CAGpC,CAAC"}
|
|
@@ -22,7 +22,7 @@ export var Input = forwardRef(function (_a, ref) {
|
|
|
22
22
|
var isPasswordField = props.type === "password";
|
|
23
23
|
var inputType = isPasswordField && passwordShowing ? "text" : props.type;
|
|
24
24
|
var passwordIcon = isPasswordField ? (passwordShowing ? (_jsx(IconEyeSlash, { style: { cursor: "pointer" }, onClick: togglePasswordVisibility })) : (_jsx(IconEye, { style: { cursor: "pointer" }, onClick: togglePasswordVisibility }))) : (iconRight);
|
|
25
|
-
return (_jsxs(InputWrapper, { className: props.className, style: __assign({ width: (_b = props.style) === null || _b === void 0 ? void 0 : _b.width }, containerStyles), children: [label && _jsx("label", { children: label }), _jsxs(InputContainer, { hasIconLeft: !!iconLeft, hasIconRight: !!passwordIcon, hasError: !!error, children: [iconLeft && _jsx("div", { className: "icon-left", children: iconLeft }), isCurrency ? (_jsx(CurrencyInput, __assign({ control: control, hasPrefix: hasPrefix, minimumFractionDigits: minimumFractionDigits }, props, { type: inputType, ref: ref }))) : mask ? (_jsx(MaskInput, __assign({ mask: mask, maskChar: maskChar, register: register }, props, { type: inputType, ref: ref }))) : (_jsx(NormalInput, __assign({ isLoading: isLoading }, props, { type: inputType, ref: ref, register: register }))), isLoading ? (_jsx(Spinner, { size: spinnerSize, color: theme.colors.neutral.light, style: {
|
|
25
|
+
return (_jsxs(InputWrapper, { className: props.className, style: __assign({ width: (_b = props.style) === null || _b === void 0 ? void 0 : _b.width }, containerStyles), children: [label && _jsx("label", { children: label }), _jsxs(InputContainer, { "$hasIconLeft": !!iconLeft, "$hasIconRight": !!passwordIcon, "$hasError": !!error, children: [iconLeft && _jsx("div", { className: "icon-left", children: iconLeft }), isCurrency ? (_jsx(CurrencyInput, __assign({ control: control, hasPrefix: hasPrefix, minimumFractionDigits: minimumFractionDigits }, props, { type: inputType, ref: ref }))) : mask ? (_jsx(MaskInput, __assign({ mask: mask, maskChar: maskChar, register: register }, props, { type: inputType, ref: ref }))) : (_jsx(NormalInput, __assign({ isLoading: isLoading }, props, { type: inputType, ref: ref, register: register }))), isLoading ? (_jsx(Spinner, { size: spinnerSize, color: theme.colors.neutral.light, style: {
|
|
26
26
|
position: "absolute",
|
|
27
27
|
right: 16,
|
|
28
28
|
top: "calc(50% - ".concat(spinnerSize / 2, "px)"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Input/index.tsx"],"names":[],"mappings":";;AAAA,OAAc,EAAgB,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAE,UAAU,EAAyB,MAAM,iBAAiB,CAAC;AACpE,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,YAAY,EAAE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,CAAC,CAAC,SAAS;iBAC/D;aACF,CAAC,CAAA;SAAA,EAEJ,IAAI,EAAC,MAAM,EACX,WAAW,EAAE,GAAG,IAChB,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AASF,IAAM,SAAS,GAAG,UAAU,CAC1B,UACE,EAAiE,EACjE,GAAiC;IAD/B,IAAA,IAAI,UAAA,EAAE,QAAQ,cAAA,EAAE,QAAQ,cAAA,EAAE,SAAS,eAAA,EAAK,KAAK,cAA/C,6CAAiD,CAAF;IAG/C,OAAO,CACL,KAAC,cAAc,aACb,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,IACd,KAAK,IACT,QAAQ,EAAE,SAAS,IAAI,KAAK,CAAC,QAAQ,IACjC,QAAQ,IACZ,GAAG,EAAE,UAAC,CAAC;YACL,IAAI,QAAQ,EAAE,CAAC;gBACb,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YAClB,CAAC;YACD,IAAI,GAAG,EAAE,CAAC;gBACR,YAAY;gBACZ,GAAG,CAAC,OAAO,GAAG,CAAC,CAAC;YAClB,CAAC;QACH,CAAC,IACD,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -3,9 +3,9 @@ interface InputWrapperProps {
|
|
|
3
3
|
}
|
|
4
4
|
export declare const InputWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, InputWrapperProps>> & string;
|
|
5
5
|
interface InputContainerProps {
|
|
6
|
-
hasError?: boolean;
|
|
7
|
-
hasIconLeft?: boolean;
|
|
8
|
-
hasIconRight?: boolean;
|
|
6
|
+
$hasError?: boolean;
|
|
7
|
+
$hasIconLeft?: boolean;
|
|
8
|
+
$hasIconRight?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export declare const InputContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, InputContainerProps>> & string;
|
|
11
11
|
export {};
|
|
@@ -68,14 +68,14 @@ export var InputContainer = styled.div(templateObject_2 || (templateObject_2 = _
|
|
|
68
68
|
var theme = _a.theme;
|
|
69
69
|
return theme.components.input.input.fontSize[theme.device];
|
|
70
70
|
}, function (_a) {
|
|
71
|
-
var hasIconLeft = _a
|
|
72
|
-
return hasIconLeft && "padding-left: 40px;";
|
|
71
|
+
var $hasIconLeft = _a.$hasIconLeft;
|
|
72
|
+
return $hasIconLeft && "padding-left: 40px;";
|
|
73
73
|
}, function (_a) {
|
|
74
|
-
var hasIconRight = _a
|
|
75
|
-
return hasIconRight && "padding-right: 40px;";
|
|
74
|
+
var $hasIconRight = _a.$hasIconRight;
|
|
75
|
+
return $hasIconRight && "padding-right: 40px;";
|
|
76
76
|
}, function (_a) {
|
|
77
|
-
var hasError = _a
|
|
78
|
-
return hasError &&
|
|
77
|
+
var $hasError = _a.$hasError, theme = _a.theme;
|
|
78
|
+
return $hasError &&
|
|
79
79
|
"border-color: ".concat(theme.colors.red.default, ";\n padding-right: 36px;");
|
|
80
80
|
}, function (_a) {
|
|
81
81
|
var theme = _a.theme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/Input/styles.ts"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAMvC,MAAM,CAAC,IAAM,YAAY,GAAG,MAAM,CAAC,GAAG,2kBAAmB,+EAIhD,EAAgC,gBAE9B,EAAwC,gKAQlC,EACwC,gIAK5C,EAAwC,iEAKtC,EAAyC,kCAGxC,EAAyC,0BAIxD,KA5BQ,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,OAAO,CAAC,GAAG;AAAjB,CAAiB,EAE9B,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,MAAM,CA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