@alixpartners/ui-components 1.21.8 → 1.21.10
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/CHANGELOG.md +9 -0
- package/dist/esm/common/common.js +1 -13
- package/dist/esm/common/common.js.map +1 -1
- package/dist/esm/common/defaultTextInput.js +65 -5
- package/dist/esm/common/defaultTextInput.js.map +1 -1
- package/dist/esm/common/embeddedButtonIcon.js +4 -33
- package/dist/esm/common/embeddedButtonIcon.js.map +1 -1
- package/dist/esm/components/ApChip/ApChip.js +6 -6
- package/dist/esm/components/ApChip/ApChip.js.map +1 -1
- package/dist/esm/components/ApChip/styles.js +179 -15
- package/dist/esm/components/ApChip/styles.js.map +1 -1
- package/dist/esm/components/ApInput/ApInput.js +0 -2
- package/dist/esm/components/ApInput/ApInput.js.map +1 -1
- package/dist/esm/components/ApInput/ApInput.styles.js +5 -5
- package/dist/esm/components/ApInput/ApInput.styles.js.map +1 -1
- package/dist/esm/components/ApMenu/ApMenuTrigger.js +9 -5
- package/dist/esm/components/ApMenu/ApMenuTrigger.js.map +1 -1
- package/dist/esm/components/ApMenu/ApMenuTriggerBordered.js +10 -6
- package/dist/esm/components/ApMenu/ApMenuTriggerBordered.js.map +1 -1
- package/dist/esm/components/ApSimpleSearch/ApSimpleSearch.js +6 -11
- package/dist/esm/components/ApSimpleSearch/ApSimpleSearch.js.map +1 -1
- package/dist/esm/components/ApSimpleSearch/styles.js +76 -13
- package/dist/esm/components/ApSimpleSearch/styles.js.map +1 -1
- package/dist/types/common/defaultTextInput.d.ts +2 -0
- package/dist/types/common/embeddedButtonIcon.d.ts +0 -1
- package/dist/types/components/ApChip/ApChip.d.ts +4 -3
- package/dist/types/components/ApChip/styles.d.ts +2 -0
- package/dist/types/components/ApMenu/ApMenuTrigger.d.ts +2 -2
- package/dist/types/components/ApMenu/ApMenuTriggerBordered.d.ts +3 -2
- package/dist/types/components/ApSimpleSearch/ApSimpleSearch.d.ts +2 -2
- package/dist/types/components/ApSimpleSearch/styles.d.ts +5 -1
- package/dist/umd/index.js +13 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 1.21.10 (December 2, 2022)
|
|
2
|
+
|
|
3
|
+
- Update `ApSimpleSearch` to a new styleguide
|
|
4
|
+
- Update `ApInput` to a new styleguide
|
|
5
|
+
|
|
6
|
+
## 1.21.9 (November 29, 2022)
|
|
7
|
+
|
|
8
|
+
- Update `ApChip` to a new styleguide
|
|
9
|
+
|
|
1
10
|
## 1.21.8 (November 28, 2022)
|
|
2
11
|
|
|
3
12
|
- fix font line-height
|
|
@@ -13,7 +13,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.getCommonDisabled = exports.getCommonFocus = exports.getFocusCss = exports.commonButtonStyles = exports.commonTransition = void 0;
|
|
15
15
|
var theme_1 = require("../utils/theme");
|
|
16
|
-
var types_1 = require("../utils/types");
|
|
17
16
|
exports.commonTransition = {
|
|
18
17
|
transition: 'all .2s linear',
|
|
19
18
|
};
|
|
@@ -22,19 +21,8 @@ exports.commonButtonStyles = __assign(__assign(__assign(__assign({}, theme_1.fon
|
|
|
22
21
|
width: '20px',
|
|
23
22
|
} });
|
|
24
23
|
exports.getFocusCss = function (theme) {
|
|
25
|
-
var _a;
|
|
26
|
-
var focusStyles = (_a = {},
|
|
27
|
-
_a[types_1.LIGHT] = {
|
|
28
|
-
color1: theme_1.colors.white,
|
|
29
|
-
color2: theme_1.colors.grey3,
|
|
30
|
-
},
|
|
31
|
-
_a[types_1.DARK] = {
|
|
32
|
-
color1: theme_1.colors.black,
|
|
33
|
-
color2: theme_1.colors.grey4,
|
|
34
|
-
},
|
|
35
|
-
_a);
|
|
36
24
|
return {
|
|
37
|
-
boxShadow: "0 0 0
|
|
25
|
+
boxShadow: "0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1)",
|
|
38
26
|
};
|
|
39
27
|
};
|
|
40
28
|
exports.getCommonFocus = function (theme) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/common/common.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,wCAA0D;
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/common/common.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,wCAA0D;AAG7C,QAAA,gBAAgB,GAAG;IAC9B,UAAU,EAAE,gBAAgB;CAC7B,CAAA;AAEY,QAAA,kBAAkB,2CAC1B,YAAI,KACP,uBAAuB,EAAE,cAAM,CAAC,WAAW,EAC3C,UAAU,EAAE,QAAQ,EACpB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,KAAK,EACnB,SAAS,EAAE,YAAY,EACvB,KAAK,EAAE,cAAM,CAAC,KAAK,EACnB,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,aAAa,EACtB,UAAU,EAAE,mBAAW,CAAC,MAAM,EAC9B,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,QAAQ,EACxB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,SAAS,EACnB,OAAO,EAAE,UAAU,EACnB,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,QAAQ,EACnB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,QAAQ,KAChB,wBAAwB,KAC5B,UAAU,EAAE;QACV,WAAW,EAAE,KAAK;QAClB,KAAK,EAAE,MAAM;KACd,IACF;AAEY,QAAA,WAAW,GAAG,UAAC,KAAkB;IAC5C,OAAO;QACL,SAAS,EAAE,0EAA0E;KACtF,CAAA;AACH,CAAC,CAAA;AAEY,QAAA,cAAc,GAAG,UAAC,KAAkB;IAC/C,OAAO;QACL,gBAAgB,eACX,mBAAW,CAAC,KAAK,CAAC,CACtB;KACF,CAAA;AACH,CAAC,CAAA;AAEY,QAAA,iBAAiB,GAAG,UAAC,QAAa;IAC7C,IAAI,QAAQ,EAAE;QACZ,OAAO;YACL,MAAM,EAAE,aAAa;SACtB,CAAA;KACF;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA"}
|
|
@@ -11,18 +11,78 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.StyledDefaultTextInput = void 0;
|
|
14
|
+
exports.StyledDefaultTextInput = exports.getInputStyles = void 0;
|
|
15
15
|
var styled_components_1 = require("styled-components");
|
|
16
|
+
var types_1 = require("../utils/types");
|
|
16
17
|
var theme_1 = require("../utils/theme");
|
|
17
18
|
var common_1 = require("./common");
|
|
19
|
+
exports.getInputStyles = function (theme, disabled) {
|
|
20
|
+
var _a;
|
|
21
|
+
var lightActionStyles = disabled ? {} : {
|
|
22
|
+
':hover:enabled': {
|
|
23
|
+
backgroundColor: theme_1.colors.green50,
|
|
24
|
+
borderColor: theme_1.colors.grey700
|
|
25
|
+
},
|
|
26
|
+
':focus:enabled': {
|
|
27
|
+
backgroundColor: theme_1.colors.green50,
|
|
28
|
+
borderColor: theme_1.colors.grey700
|
|
29
|
+
},
|
|
30
|
+
':active:enabled': {
|
|
31
|
+
backgroundColor: theme_1.colors.green50,
|
|
32
|
+
borderColor: theme_1.colors.grey700
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
var darkActionStyles = disabled ? {} : {
|
|
36
|
+
':hover': {
|
|
37
|
+
color: theme_1.colors.white,
|
|
38
|
+
borderColor: theme_1.colors.white,
|
|
39
|
+
backgroundColor: theme_1.colors.transparent,
|
|
40
|
+
'& + svg': {
|
|
41
|
+
fill: theme_1.colors.white
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
':focus': {
|
|
45
|
+
color: theme_1.colors.white,
|
|
46
|
+
borderColor: theme_1.colors.white,
|
|
47
|
+
backgroundColor: theme_1.colors.transparent,
|
|
48
|
+
'& + svg': {
|
|
49
|
+
fill: theme_1.colors.white
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
':active': {
|
|
53
|
+
color: theme_1.colors.white,
|
|
54
|
+
borderColor: theme_1.colors.white,
|
|
55
|
+
backgroundColor: theme_1.colors.grey600,
|
|
56
|
+
'& + svg': {
|
|
57
|
+
fill: theme_1.colors.white
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
var inputStyles = (_a = {},
|
|
62
|
+
_a[types_1.LIGHT] = __assign({ '::placeholder': {
|
|
63
|
+
color: theme_1.colors.grey500,
|
|
64
|
+
}, borderColor: theme_1.colors.grey300, caretColor: disabled ? theme_1.colors.grey400 : theme_1.colors.grey700, color: disabled ? theme_1.colors.grey400 : theme_1.colors.grey700, svg: {
|
|
65
|
+
fill: disabled ? theme_1.colors.grey400 : theme_1.colors.grey700,
|
|
66
|
+
} }, lightActionStyles),
|
|
67
|
+
_a[types_1.DARK] = __assign({ '::placeholder': {
|
|
68
|
+
color: theme_1.colors.grey400,
|
|
69
|
+
}, color: disabled ? theme_1.colors.grey500 : theme_1.colors.white, backgroundColor: theme_1.colors.transparent, borderColor: disabled ? theme_1.colors.grey500 : theme_1.colors.grey400, svg: {
|
|
70
|
+
fill: disabled ? theme_1.colors.grey500 : theme_1.colors.grey400,
|
|
71
|
+
} }, darkActionStyles),
|
|
72
|
+
_a);
|
|
73
|
+
return inputStyles[theme];
|
|
74
|
+
};
|
|
18
75
|
exports.StyledDefaultTextInput = styled_components_1.default.input(__assign(__assign({}, theme_1.font), { '::-ms-clear': {
|
|
19
76
|
display: 'none',
|
|
20
77
|
}, '::-ms-reveal': {
|
|
21
78
|
display: 'none',
|
|
22
|
-
}, '
|
|
23
|
-
color: theme_1.colors.grey3,
|
|
24
|
-
}, WebkitTapHighlightColor: theme_1.colors.transparent, border: "1px solid " + theme_1.colors.grey2, borderRadius: '2px', boxSizing: 'border-box', caretColor: theme_1.colors.grey3, color: theme_1.colors.grey7, display: 'inline-flex', fontSize: '16px', fontWeight: theme_1.fontWeights.regular, height: theme_1.scaffolding.xl, justifyContent: 'center', lineHeight: '13px', outline: 'none', padding: "0px " + theme_1.scaffolding.sm, position: 'relative', width: '100%' }), function (_a) {
|
|
79
|
+
}, WebkitTapHighlightColor: theme_1.colors.transparent, borderRadius: '1px', boxSizing: 'border-box', border: '1px solid', display: 'inline-flex', fontSize: '16px', fontWeight: theme_1.fontWeights.regular, height: '40px', justifyContent: 'center', lineHeight: '20px', outline: 'none', position: 'relative', width: '100%' }), function (_a) {
|
|
25
80
|
var disabled = _a.disabled, theme = _a.theme;
|
|
26
|
-
return (__assign(__assign({}, common_1.getCommonDisabled(disabled)), common_1.getCommonFocus(theme)));
|
|
81
|
+
return (__assign(__assign(__assign({}, common_1.getCommonDisabled(disabled)), common_1.getCommonFocus(theme)), exports.getInputStyles(theme, disabled)));
|
|
82
|
+
}, function (_a) {
|
|
83
|
+
var small = _a.small;
|
|
84
|
+
return small ? {
|
|
85
|
+
height: '32px'
|
|
86
|
+
} : {};
|
|
27
87
|
});
|
|
28
88
|
//# sourceMappingURL=defaultTextInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultTextInput.js","sourceRoot":"","sources":["../../../src/common/defaultTextInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,uDAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"defaultTextInput.js","sourceRoot":"","sources":["../../../src/common/defaultTextInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,uDAAsC;AACtC,wCAA4C;AAC5C,wCAA0D;AAC1D,mCAA4D;AAmB/C,QAAA,cAAc,GAAG,UAAC,KAAU,EAAE,QAAkB;;IAC3D,IAAM,iBAAiB,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAA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AAmB;QAAjB,QAAQ,cAAA,EAAE,KAAK,WAAA;IAAO,OAAA,gCACpB,0BAAiB,CAAC,QAAQ,CAAC,GAC3B,uBAAc,CAAC,KAAK,CAAC,GACrB,sBAAc,CAAC,KAAK,EAAE,QAAQ,CAAC,EAClC;AAJuB,CAIvB,EACF,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,CAAC,CAAC;QACrB,MAAM,EAAE,MAAM;KACf,CAAC,CAAC,CAAC,EAAE;AAFS,CAET,CACP,CAAA"}
|
|
@@ -11,41 +11,12 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.StyledEmbeddedButtonIcon =
|
|
14
|
+
exports.StyledEmbeddedButtonIcon = void 0;
|
|
15
15
|
var styled_components_1 = require("styled-components");
|
|
16
16
|
var theme_1 = require("../utils/theme");
|
|
17
|
-
var types_1 = require("../utils/types");
|
|
18
17
|
var common_1 = require("./common");
|
|
19
|
-
exports.
|
|
20
|
-
var _a;
|
|
21
|
-
|
|
22
|
-
_a[types_1.OUTLINE] = __assign(__assign({}, common_1.getCommonFocus(types_1.LIGHT)), { '.ap-icon': {
|
|
23
|
-
fill: disabled ? theme_1.colors.grey3 : theme_1.colors.grey4
|
|
24
|
-
}, ':hover:enabled': {
|
|
25
|
-
'.ap-icon': {
|
|
26
|
-
// fill: colors.grey8
|
|
27
|
-
fill: theme_1.colors.green1
|
|
28
|
-
}
|
|
29
|
-
} }),
|
|
30
|
-
_a[types_1.SOLID] = {
|
|
31
|
-
'.ap-icon': {
|
|
32
|
-
fill: theme_1.colors.grey3
|
|
33
|
-
},
|
|
34
|
-
// This is a special exception for the focus state because of a unique fill style
|
|
35
|
-
':focus:enabled': {
|
|
36
|
-
boxShadow: "0 0 0 1px " + theme_1.colors.grey4 + ", 0 0 0 2px " + theme_1.colors.grey3
|
|
37
|
-
},
|
|
38
|
-
':hover:enabled': {
|
|
39
|
-
'.ap-icon': {
|
|
40
|
-
fill: theme_1.colors.white
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
_a);
|
|
45
|
-
return chipButtonStyles[variant];
|
|
46
|
-
};
|
|
47
|
-
exports.StyledEmbeddedButtonIcon = styled_components_1.default.button(__assign(__assign({}, common_1.commonTransition), { backgroundColor: theme_1.colors.transparent, border: 'none', borderRadius: '100%', display: 'inline-flex', height: '20px', outline: 'none', padding: '0px', width: '20px' }), function (_a) {
|
|
48
|
-
var disabled = _a.disabled, variant = _a.variant;
|
|
49
|
-
return (__assign(__assign(__assign({}, common_1.getCommonDisabled(disabled)), exports.getEmbeddedButtonIconStyles(disabled, variant)), { cursor: disabled ? 'not-allowed' : 'pointer' }));
|
|
18
|
+
exports.StyledEmbeddedButtonIcon = styled_components_1.default.button(__assign(__assign({}, common_1.commonTransition), { backgroundColor: theme_1.colors.transparent, border: 'none', borderRadius: '100%', display: 'inline-flex', height: '24px', outline: 'none', padding: '0px', width: '24px' }), function (_a) {
|
|
19
|
+
var disabled = _a.disabled, theme = _a.theme;
|
|
20
|
+
return (__assign(__assign(__assign({}, common_1.getCommonDisabled(disabled)), common_1.getCommonFocus(theme)), { cursor: disabled ? 'not-allowed' : 'pointer' }));
|
|
50
21
|
});
|
|
51
22
|
//# sourceMappingURL=embeddedButtonIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embeddedButtonIcon.js","sourceRoot":"","sources":["../../../src/common/embeddedButtonIcon.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,uDAAsC;AAEtC,wCAAuC;
|
|
1
|
+
{"version":3,"file":"embeddedButtonIcon.js","sourceRoot":"","sources":["../../../src/common/embeddedButtonIcon.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,uDAAsC;AAEtC,wCAAuC;AAKvC,mCAA8E;AASjE,QAAA,wBAAwB,GAAG,2BAAM,CAAC,MAAM,uBAE9C,yBAAgB,KACnB,eAAe,EAAE,cAAM,CAAC,WAAW,EACnC,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,KAAK,EACd,KAAK,EAAE,MAAM,KAEf,UAAC,EAAmB;QAAjB,QAAQ,cAAA,EAAE,KAAK,WAAA;IAAO,OAAA,gCACpB,0BAAiB,CAAC,QAAQ,CAAC,GAC3B,uBAAc,CAAC,KAAK,CAAC,KACxB,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,IAC5C;AAJuB,CAIvB,CACH,CAAA"}
|
|
@@ -24,17 +24,17 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.ApChip = void 0;
|
|
26
26
|
var React = require("react");
|
|
27
|
+
var types_1 = require("../../utils/types");
|
|
27
28
|
var ApIcon_1 = require("../ApIcon");
|
|
28
29
|
var styles_1 = require("./styles");
|
|
29
30
|
exports.ApChip = function (_a) {
|
|
30
|
-
var children = _a.children, className = _a.className, disabled = _a.disabled,
|
|
31
|
-
return (React.createElement(styles_1.StyledChip, __assign({}, props, { disabled: disabled, className: "ap-chip " + (className ? className : ''), small: small }),
|
|
32
|
-
React.createElement(styles_1.StyledChipLeftChild, null,
|
|
33
|
-
|
|
34
|
-
React.createElement(styles_1.StyledChipRightChild, null,
|
|
35
|
-
React.createElement(ApIcon_1.ApIcon, __assign({ iconName: iconName, iconSize: 13 }, iconProps)))));
|
|
31
|
+
var children = _a.children, className = _a.className, disabled = _a.disabled, icon = _a.icon, iconProps = _a.iconProps, small = _a.small, selected = _a.selected, props = __rest(_a, ["children", "className", "disabled", "icon", "iconProps", "small", "selected"]);
|
|
32
|
+
return (React.createElement(styles_1.StyledChip, __assign({}, props, { disabled: disabled, className: "ap-chip " + (className ? className : ''), small: small, selected: selected }),
|
|
33
|
+
React.createElement(styles_1.StyledChipLeftChild, null, icon && (React.createElement(ApIcon_1.ApIcon, __assign({ iconName: icon, iconSize: small ? 16 : 20 }, iconProps)))),
|
|
34
|
+
React.createElement(styles_1.StyledChipRightChild, null, children)));
|
|
36
35
|
};
|
|
37
36
|
exports.ApChip.defaultProps = {
|
|
38
37
|
disabled: false,
|
|
38
|
+
theme: types_1.LIGHT
|
|
39
39
|
};
|
|
40
40
|
//# sourceMappingURL=ApChip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApChip.js","sourceRoot":"","sources":["../../../../src/components/ApChip/ApChip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAA8B;
|
|
1
|
+
{"version":3,"file":"ApChip.js","sourceRoot":"","sources":["../../../../src/components/ApChip/ApChip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAA8B;AAC9B,2CAAqE;AACrE,oCAA8C;AAC9C,mCAAgF;AAanE,QAAA,MAAM,GAA0B,UAAC,EAS7C;IARC,IAAA,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,QAAQ,cAAA,EACR,IAAI,UAAA,EACJ,SAAS,eAAA,EACT,KAAK,WAAA,EACL,QAAQ,cAAA,EACL,KAAK,cARoC,+EAS7C,CADS;IAER,OAAO,CACL,oBAAC,mBAAU,eACL,KAAY,IAChB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,cAAW,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAE,EAClD,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ;QAElB,oBAAC,4BAAmB,QACjB,IAAI,IAAI,CACL,oBAAC,eAAM,aACP,QAAQ,EAAE,IAAI,EACd,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IACrB,SAAS,EACb,CACH,CACmB;QACtB,oBAAC,6BAAoB,QAClB,QAAQ,CACY,CACZ,CACd,CAAA;AACH,CAAC,CAAA;AAED,cAAM,CAAC,YAAY,GAAG;IACpB,QAAQ,EAAE,KAAK;IACf,KAAK,EAAE,aAAK;CACb,CAAA"}
|
|
@@ -3,31 +3,195 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
6
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.Title = exports.Column = exports.Container = exports.StyledChip = exports.StyledChipRightChild = exports.StyledChipLeftChild = exports.StyledChipChild = void 0;
|
|
18
|
+
exports.Title = exports.Column = exports.Container = exports.StyledChip = exports.getChipStyles = exports.StyledChipRightChild = exports.StyledChipLeftChild = exports.StyledChipChild = void 0;
|
|
8
19
|
var styled_components_1 = require("styled-components");
|
|
9
20
|
var theme_1 = require("../../utils/theme");
|
|
21
|
+
var types_1 = require("../../utils/types");
|
|
10
22
|
exports.StyledChipChild = styled_components_1.default.span({
|
|
11
23
|
display: 'inline-flex',
|
|
12
24
|
whiteSpace: 'nowrap'
|
|
13
25
|
});
|
|
14
26
|
exports.StyledChipLeftChild = styled_components_1.default.span({
|
|
15
|
-
display: 'inline-flex'
|
|
16
|
-
marginRight: theme_1.scaffolding.xxs,
|
|
17
|
-
whiteSpace: 'nowrap'
|
|
27
|
+
display: 'inline-flex'
|
|
18
28
|
});
|
|
19
|
-
exports.StyledChipRightChild = styled_components_1.default.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: inline-flex;\n margin-left:
|
|
20
|
-
exports.
|
|
21
|
-
|
|
22
|
-
|
|
29
|
+
exports.StyledChipRightChild = styled_components_1.default.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: inline-flex;\n margin-left: 4px;\n white-space: nowrap;\n"], ["\n display: inline-flex;\n margin-left: 4px;\n white-space: nowrap;\n"])));
|
|
30
|
+
exports.getChipStyles = function (disabled, theme, isSelected) {
|
|
31
|
+
var _a, _b;
|
|
32
|
+
var lightActionStyles = disabled ? {} : {
|
|
33
|
+
':hover': {
|
|
34
|
+
color: theme_1.colors.grey700,
|
|
35
|
+
borderColor: theme_1.colors.grey700,
|
|
36
|
+
backgroundColor: theme_1.colors.grey50,
|
|
37
|
+
svg: {
|
|
38
|
+
fill: theme_1.colors.grey700
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
':focus': {
|
|
42
|
+
color: theme_1.colors.grey700,
|
|
43
|
+
borderColor: theme_1.colors.grey700,
|
|
44
|
+
backgroundColor: theme_1.colors.grey50,
|
|
45
|
+
svg: {
|
|
46
|
+
fill: theme_1.colors.grey700
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
':active': {
|
|
50
|
+
color: theme_1.colors.grey700,
|
|
51
|
+
borderColor: theme_1.colors.grey700,
|
|
52
|
+
backgroundColor: theme_1.colors.grey200,
|
|
53
|
+
svg: {
|
|
54
|
+
fill: theme_1.colors.grey700
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
var lightSelectedActionStyles = disabled ? {} : {
|
|
59
|
+
':hover': {
|
|
60
|
+
color: theme_1.colors.green700,
|
|
61
|
+
borderColor: theme_1.colors.green700,
|
|
62
|
+
backgroundColor: theme_1.colors.green100,
|
|
63
|
+
svg: {
|
|
64
|
+
fill: theme_1.colors.grey700
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
':focus': {
|
|
68
|
+
color: theme_1.colors.green700,
|
|
69
|
+
borderColor: theme_1.colors.green700,
|
|
70
|
+
backgroundColor: theme_1.colors.green100,
|
|
71
|
+
svg: {
|
|
72
|
+
fill: theme_1.colors.grey700
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
':active': {
|
|
76
|
+
color: theme_1.colors.green700,
|
|
77
|
+
borderColor: theme_1.colors.green700,
|
|
78
|
+
backgroundColor: theme_1.colors.green200,
|
|
79
|
+
svg: {
|
|
80
|
+
fill: theme_1.colors.grey700
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
var darkActionStyles = disabled ? {} : {
|
|
85
|
+
':hover': {
|
|
86
|
+
color: theme_1.colors.white,
|
|
87
|
+
borderColor: theme_1.colors.white,
|
|
88
|
+
backgroundColor: theme_1.colors.grey600,
|
|
89
|
+
svg: {
|
|
90
|
+
fill: theme_1.colors.white
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
':focus': {
|
|
94
|
+
color: theme_1.colors.white,
|
|
95
|
+
borderColor: theme_1.colors.white,
|
|
96
|
+
backgroundColor: theme_1.colors.grey600,
|
|
97
|
+
svg: {
|
|
98
|
+
fill: theme_1.colors.white
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
':active': {
|
|
102
|
+
color: theme_1.colors.white,
|
|
103
|
+
borderColor: theme_1.colors.white,
|
|
104
|
+
backgroundColor: theme_1.colors.grey500,
|
|
105
|
+
svg: {
|
|
106
|
+
fill: theme_1.colors.white
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
var darkSelectedActionStyles = disabled ? {} : {
|
|
111
|
+
':hover': {
|
|
112
|
+
color: theme_1.colors.green200,
|
|
113
|
+
borderColor: theme_1.colors.green200,
|
|
114
|
+
backgroundColor: theme_1.colors.green800,
|
|
115
|
+
svg: {
|
|
116
|
+
fill: theme_1.colors.green200
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
':focus': {
|
|
120
|
+
color: theme_1.colors.green200,
|
|
121
|
+
borderColor: theme_1.colors.green200,
|
|
122
|
+
backgroundColor: theme_1.colors.green800,
|
|
123
|
+
svg: {
|
|
124
|
+
fill: theme_1.colors.green200
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
':active': {
|
|
128
|
+
color: theme_1.colors.green200,
|
|
129
|
+
borderColor: theme_1.colors.green200,
|
|
130
|
+
backgroundColor: theme_1.colors.green700,
|
|
131
|
+
svg: {
|
|
132
|
+
fill: theme_1.colors.green200
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
var chipSelectedStyles = (_a = {},
|
|
137
|
+
_a[types_1.LIGHT] = __assign({ color: disabled ? theme_1.colors.grey400 : theme_1.colors.green600, backgroundColor: theme_1.colors.green50, border: '2px solid', borderColor: disabled ? theme_1.colors.grey200 : theme_1.colors.green600, svg: {
|
|
138
|
+
fill: disabled ? theme_1.colors.grey400 : theme_1.colors.green600,
|
|
139
|
+
} }, lightSelectedActionStyles),
|
|
140
|
+
_a[types_1.DARK] = __assign({ color: disabled ? theme_1.colors.grey400 : theme_1.colors.green300, backgroundColor: theme_1.colors.transparent, border: '2px solid', borderColor: disabled ? theme_1.colors.grey200 : theme_1.colors.green300, svg: {
|
|
141
|
+
fill: disabled ? theme_1.colors.grey400 : theme_1.colors.green300,
|
|
142
|
+
} }, darkSelectedActionStyles),
|
|
143
|
+
_a);
|
|
144
|
+
var chipStyles = (_b = {},
|
|
145
|
+
_b[types_1.LIGHT] = __assign({ color: disabled ? theme_1.colors.grey400 : theme_1.colors.grey500, border: '1px solid', borderColor: disabled ? theme_1.colors.grey200 : theme_1.colors.grey300, svg: {
|
|
146
|
+
fill: disabled ? theme_1.colors.grey400 : theme_1.colors.grey500,
|
|
147
|
+
} }, lightActionStyles),
|
|
148
|
+
_b[types_1.DARK] = __assign({ color: disabled ? theme_1.colors.grey400 : theme_1.colors.grey300, border: '1px solid', background: disabled ? theme_1.colors.white : 'transparent', borderColor: disabled ? theme_1.colors.grey200 : theme_1.colors.grey500, svg: {
|
|
149
|
+
fill: disabled ? theme_1.colors.grey400 : theme_1.colors.grey300,
|
|
150
|
+
} }, darkActionStyles),
|
|
151
|
+
_b);
|
|
152
|
+
var selectedStyles = isSelected ? chipSelectedStyles[theme] : {};
|
|
153
|
+
return __assign(__assign({}, chipStyles[theme]), selectedStyles);
|
|
154
|
+
};
|
|
155
|
+
exports.StyledChip = styled_components_1.default.div({
|
|
156
|
+
padding: '0 16px',
|
|
157
|
+
alignItems: 'center',
|
|
158
|
+
border: 'none',
|
|
159
|
+
display: 'inline-flex',
|
|
160
|
+
height: '40px',
|
|
161
|
+
justifyContent: 'space-between',
|
|
162
|
+
lineHeight: '20px',
|
|
163
|
+
minWidth: '32px',
|
|
164
|
+
outline: 'none',
|
|
165
|
+
position: 'relative',
|
|
166
|
+
textAlign: 'center',
|
|
167
|
+
textDecoration: 'none',
|
|
168
|
+
whiteSpace: 'nowrap',
|
|
169
|
+
borderWidth: '1px',
|
|
170
|
+
borderStyle: 'solid',
|
|
171
|
+
borderRadius: '32px',
|
|
172
|
+
boxSizing: 'border-box',
|
|
173
|
+
fontSize: '16px',
|
|
174
|
+
cursor: 'pointer',
|
|
175
|
+
marginRight: '8px'
|
|
176
|
+
}, function (_a) {
|
|
177
|
+
var disabled = _a.disabled, theme = _a.theme, selected = _a.selected;
|
|
178
|
+
return (__assign({}, exports.getChipStyles(disabled, theme, selected)));
|
|
179
|
+
}, function (_a) {
|
|
23
180
|
var small = _a.small;
|
|
24
|
-
return small
|
|
181
|
+
return (small ? {
|
|
182
|
+
height: '32px',
|
|
183
|
+
fontSize: '13px',
|
|
184
|
+
lineHeight: '16px',
|
|
185
|
+
padding: '0 12px'
|
|
186
|
+
} : {});
|
|
25
187
|
}, function (_a) {
|
|
26
188
|
var disabled = _a.disabled;
|
|
27
|
-
return disabled
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
exports.
|
|
32
|
-
|
|
189
|
+
return (disabled ? {
|
|
190
|
+
cursor: 'not-allowed'
|
|
191
|
+
} : {});
|
|
192
|
+
});
|
|
193
|
+
exports.Container = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin: 16px 80px;\n display: flex;\n flexDirection: column;\n"], ["\n margin: 16px 80px;\n display: flex;\n flexDirection: column;\n"])));
|
|
194
|
+
exports.Column = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n margin: 24px;\n"], ["\n display: flex;\n flex-direction: column;\n margin: 24px;\n"])));
|
|
195
|
+
exports.Title = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin-bottom: 12px;\n padding-bottom: 12px;\n border-bottom: 1px solid ", ";\n white-space: nowrap;\n"], ["\n margin-bottom: 12px;\n padding-bottom: 12px;\n border-bottom: 1px solid ", ";\n white-space: nowrap;\n"])), theme_1.colors.grey4);
|
|
196
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
33
197
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/ApChip/styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/ApChip/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,uDAAsC;AACtC,2CAA0C;AAC1C,2CAA4D;AAG/C,QAAA,eAAe,GAAG,2BAAM,CAAC,IAAI,CAAC;IACzC,OAAO,EAAE,aAAa;IACtB,UAAU,EAAE,QAAQ;CACrB,CAAC,CAAA;AAEW,QAAA,mBAAmB,GAAG,2BAAM,CAAC,IAAI,CAAC;IAC7C,OAAO,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ule", { value: true });
|
|
41
41
|
exports.ApInput = void 0;
|
|
42
42
|
var React = require("react");
|
|
43
|
-
var theme_1 = require("../../utils/theme");
|
|
44
43
|
var ApIcon_1 = require("../ApIcon");
|
|
45
44
|
var ApInput_styles_1 = require("./ApInput.styles");
|
|
46
45
|
exports.ApInput = function (_a) {
|
|
@@ -64,7 +63,6 @@ exports.ApInput = function (_a) {
|
|
|
64
63
|
setValueLength(event.target.value.length);
|
|
65
64
|
}, placeholder: placeholder, value: value, className: "ap-input-field" }, props))),
|
|
66
65
|
errorMessage ? (React.createElement(ApInput_styles_1.ErrorWrapper, null,
|
|
67
|
-
React.createElement(ApIcon_1.ApIcon, { iconName: "outline_error", iconColor: theme_1.colors.red1, iconSize: 16 }),
|
|
68
66
|
React.createElement(ApInput_styles_1.ErrorMessage, null, errorMessage))) : null));
|
|
69
67
|
};
|
|
70
68
|
//# sourceMappingURL=ApInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApInput.js","sourceRoot":"","sources":["../../../../src/components/ApInput/ApInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAA8B;
|
|
1
|
+
{"version":3,"file":"ApInput.js","sourceRoot":"","sources":["../../../../src/components/ApInput/ApInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAA8B;AAG9B,oCAAkC;AAElC,mDAUyB;AAmBZ,QAAA,OAAO,GAA4B,UAAC,EAahD;IAZC,IAAA,SAAS,eAAA,EACT,QAAQ,cAAA,EACR,YAAY,kBAAA,EACZ,IAAI,UAAA,EACJ,KAAK,WAAA,EACL,IAAI,UAAA,EACJ,SAAS,eAAA,EACT,QAAQ,cAAA,EACR,WAAW,iBAAA,EACX,MAAM,YAAA,EACN,KAAK,WAAA,EACF,KAAK,cAZuC,6HAahD,CADS;IAEF,IAAA,KAAA,OAAgC,KAAK,CAAC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X,oBAAC,6BAAY,QAAE,YAAY,CAAgB,CAC9B,CAChB,CAAC,CAAC,CAAC,IAAI,CACA,CACX,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -7,14 +7,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.ErrorMessage = exports.ErrorWrapper = exports.Label = exports.LabelWrapper = exports.Counter = exports.Input = exports.InputWrapper = exports.Wrapper = exports.RightSymbol = void 0;
|
|
8
8
|
var styled_components_1 = require("styled-components");
|
|
9
9
|
var theme_1 = require("../../utils/theme");
|
|
10
|
-
exports.RightSymbol = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n padding-right: 12px;\n height: 40px;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n"], ["\n position: absolute;\n padding-right: 12px;\n height: 40px;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n"])));
|
|
10
|
+
exports.RightSymbol = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n padding-right: 12px;\n height: 40px;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2;\n"], ["\n position: absolute;\n padding-right: 12px;\n height: 40px;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2;\n"])));
|
|
11
11
|
exports.Wrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
12
12
|
exports.InputWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n display: flex;\n"], ["\n position: relative;\n display: flex;\n"])));
|
|
13
|
-
exports.Input = styled_components_1.default.input(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 40px;\n box-sizing: border-box;\n width: 100%;\n min-width: 120px;\n padding-right: 32px;\n border: 1px solid ", ";\n border-radius: 1px;\n background-color: transparent;\n display: flex;\n justify-content: space-between;\n align-items: center;\n color: ", ";\n font-size: 16px;\n line-height:
|
|
14
|
-
exports.Counter = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: ", ";\n font-size: 11px;\n"], ["\n color: ", ";\n font-size: 11px;\n"])), theme_1.colors.
|
|
13
|
+
exports.Input = styled_components_1.default.input(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 40px;\n box-sizing: border-box;\n width: 100%;\n min-width: 120px;\n padding-right: 32px;\n border: 1px solid ", ";\n border-radius: 1px;\n background-color: transparent;\n display: flex;\n justify-content: space-between;\n align-items: center;\n color: ", ";\n font-size: 16px;\n line-height: 20px;\n appearance: none;\n text-indent: 12px;\n overflow: hidden;\n text-overflow: ellipsis;\n z-index: 1;\n &:hover,\n &:focus {\n border-color: ", ";\n background-color: ", ";\n outline: none;\n }\n &:active {\n border-color: ", ";\n background-color: ", ";\n outline: none;\n }\n &:disabled {\n pointer-events: none;\n color: ", ";\n border-color: ", ";\n cursor: not-allowed;\n }\n"], ["\n height: 40px;\n box-sizing: border-box;\n width: 100%;\n min-width: 120px;\n padding-right: 32px;\n border: 1px solid ", ";\n border-radius: 1px;\n background-color: transparent;\n display: flex;\n justify-content: space-between;\n align-items: center;\n color: ", ";\n font-size: 16px;\n line-height: 20px;\n appearance: none;\n text-indent: 12px;\n overflow: hidden;\n text-overflow: ellipsis;\n z-index: 1;\n &:hover,\n &:focus {\n border-color: ", ";\n background-color: ", ";\n outline: none;\n }\n &:active {\n border-color: ", ";\n background-color: ", ";\n outline: none;\n }\n &:disabled {\n pointer-events: none;\n color: ", ";\n border-color: ", ";\n cursor: not-allowed;\n }\n"])), theme_1.colors.grey300, theme_1.colors.grey700, theme_1.colors.grey500, theme_1.colors.green50, theme_1.colors.grey500, theme_1.colors.green100, theme_1.colors.grey400, theme_1.colors.grey300);
|
|
14
|
+
exports.Counter = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: ", ";\n font-size: 11px;\n"], ["\n color: ", ";\n font-size: 11px;\n"])), theme_1.colors.grey700);
|
|
15
15
|
exports.LabelWrapper = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n width: 100%;\n justify-content: space-between;\n margin-bottom: 4px;\n"], ["\n display: flex;\n width: 100%;\n justify-content: space-between;\n margin-bottom: 4px;\n"])));
|
|
16
16
|
exports.Label = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n color: ", ";\n font-size: 13px;\n"], ["\n color: ", ";\n font-size: 13px;\n"])), theme_1.colors.grey5);
|
|
17
|
-
exports.ErrorWrapper = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-top: 4px;\n font-size: 16px;\n color: ", ";\n"], ["\n display: flex;\n align-items: center;\n margin-top: 4px;\n font-size: 16px;\n color: ", ";\n"])), theme_1.colors.
|
|
18
|
-
exports.ErrorMessage = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n
|
|
17
|
+
exports.ErrorWrapper = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-top: 4px;\n font-size: 16px;\n color: ", ";\n"], ["\n display: flex;\n align-items: center;\n margin-top: 4px;\n font-size: 16px;\n color: ", ";\n"])), theme_1.colors.red600);
|
|
18
|
+
exports.ErrorMessage = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n font-size: 13px;\n line-height: 16px;\n color: ", ";\n"], ["\n display: flex;\n font-size: 13px;\n line-height: 16px;\n color: ", ";\n"])), theme_1.colors.red600);
|
|
19
19
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
20
20
|
//# sourceMappingURL=ApInput.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApInput.styles.js","sourceRoot":"","sources":["../../../../src/components/ApInput/ApInput.styles.ts"],"names":[],"mappings":";;;;;;;AAAA,uDAAsC;AAEtC,2CAA0C;AAE7B,QAAA,WAAW,GAAG,2BAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"ApInput.styles.js","sourceRoot":"","sources":["../../../../src/components/ApInput/ApInput.styles.ts"],"names":[],"mappings":";;;;;;;AAAA,uDAAsC;AAEtC,2CAA0C;AAE7B,QAAA,WAAW,GAAG,2BAAM,CAAC,GAAG,yOAAA,sKASpC,KAAA;AAEY,QAAA,OAAO,GAAG,2BAAM,CAAC,GAAG,oHAAA,iDAGhC,KAAA;AAEY,QAAA,YAAY,GAAG,2BAAM,CAAC,GAAG,gHAAA,6CAGrC,KAAA;AAEY,QAAA,KAAK,GAAG,2BAAM,CAAC,KAAK,gzBAAA,iIAMX,EAAc,oJAMzB,EAAc,qMAUL,EAAc,2BACV,EAAc,8DAIlB,EAAc,2BACV,EAAe,oFAK1B,EAAc,uBACP,EAAc,oCAGjC,KA/BqB,cAAM,CAAC,OAAO,EAMzB,cAAM,CAAC,OAAO,EAUL,cAAM,CAAC,OAAO,EACV,cAAM,CAAC,OAAO,EAIlB,cAAM,CAAC,OAAO,EACV,cAAM,CAAC,QAAQ,EAK1B,cAAM,CAAC,OAAO,EACP,cAAM,CAAC,OAAO,EAGjC;AAEY,QAAA,OAAO,GAAG,2BAAM,CAAC,GAAG,2GAAA,aACtB,EAAc,yBAExB,KAFU,cAAM,CAAC,OAAO,EAExB;AAEY,QAAA,YAAY,GAAG,2BAAM,CAAC,GAAG,mKAAA,gGAKrC,KAAA;AAEY,QAAA,KAAK,GAAG,2BAAM,CAAC,GAAG,2GAAA,aACpB,EAAY,yBAEtB,KAFU,cAAM,CAAC,KAAK,EAEtB;AAEY,QAAA,YAAY,GAAG,2BAAM,CAAC,GAAG,yKAAA,+FAK3B,EAAa,KACvB,KADU,cAAM,CAAC,MAAM,EACvB;AACY,QAAA,YAAY,GAAG,2BAAM,CAAC,GAAG,mJAAA,yEAI3B,EAAa,KACvB,KADU,cAAM,CAAC,MAAM,EACvB"}
|
|
@@ -23,16 +23,20 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.ApMenuTrigger = void 0;
|
|
26
|
+
/* tslint:disable */
|
|
27
|
+
var React = require("react");
|
|
26
28
|
var react_1 = require("react");
|
|
29
|
+
/* tslint:enable */
|
|
27
30
|
var theme_1 = require("../../utils/theme");
|
|
28
31
|
var styles_1 = require("./styles");
|
|
29
|
-
|
|
32
|
+
var ApMenuTriggerInternal = react_1.forwardRef(function (_a, ref) {
|
|
30
33
|
var children = _a.children, icon = _a.icon, isOpen = _a.isOpen, props = __rest(_a, ["children", "icon", "isOpen"]);
|
|
31
|
-
return (
|
|
32
|
-
|
|
33
|
-
icon &&
|
|
34
|
+
return (React.createElement(styles_1.TriggerWrapper, __assign({}, props, { ref: ref }),
|
|
35
|
+
React.createElement(styles_1.BorderedTrigger, null,
|
|
36
|
+
icon && React.createElement(styles_1.TriggerIcon, { iconName: icon }),
|
|
34
37
|
" ",
|
|
35
38
|
children),
|
|
36
|
-
|
|
39
|
+
React.createElement(styles_1.BorderedCaret, { iconName: 'caret', iconColor: theme_1.colors.grey700, isOpen: isOpen })));
|
|
37
40
|
});
|
|
41
|
+
exports.ApMenuTrigger = react_1.memo(ApMenuTriggerInternal);
|
|
38
42
|
//# sourceMappingURL=ApMenuTrigger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApMenuTrigger.js","sourceRoot":"","sources":["../../../../src/components/ApMenu/ApMenuTrigger.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"ApMenuTrigger.js","sourceRoot":"","sources":["../../../../src/components/ApMenu/ApMenuTrigger.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,6BAA8B;AAC9B,+BAAwC;AACxC,mBAAmB;AACnB,2CAA0C;AAC1C,mCAKkB;AAElB,IAAM,qBAAqB,GAAG,kBAAU,CACtC,UAAC,EAAyC,EAAE,GAAQ;IAAjD,IAAA,QAAQ,cAAA,EAAE,IAAI,UAAA,EAAE,MAAM,YAAA,EAAK,KAAK,cAAlC,8BAAoC,CAAF;IACjC,OAAO,CACL,oBAAC,uBAAc,eAAK,KAAK,IAAE,GAAG,EAAE,GAAG;QACjC,oBAAC,wBAAe;YACb,IAAI,IAAI,oBAAC,oBAAW,IAAC,QAAQ,EAAE,IAAI,GAAI;;YAAI,QAAQ,CACpC;QAClB,oBAAC,sBAAa,IAAC,QAAQ,EAAC,OAAO,EAAC,SAAS,EAAE,cAAM,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,GAAI,CAC9D,CAClB,CAAA;AACH,CAAC,CACF,CAAC;AAEW,QAAA,aAAa,GAAG,YAAI,CAAC,qBAAqB,CAAC,CAAC"}
|
|
@@ -22,17 +22,21 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
return t;
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.ApMenuTriggerBordered = void 0;
|
|
25
|
+
exports.ApMenuTriggerBordered = exports.ApMenuTriggerBorderedInternal = void 0;
|
|
26
|
+
/* tslint:disable */
|
|
27
|
+
var React = require("react");
|
|
26
28
|
var react_1 = require("react");
|
|
29
|
+
/* tslint:enable */
|
|
27
30
|
var theme_1 = require("../../utils/theme");
|
|
28
31
|
var styles_1 = require("./styles");
|
|
29
|
-
exports.
|
|
32
|
+
exports.ApMenuTriggerBorderedInternal = react_1.forwardRef(function (_a, ref) {
|
|
30
33
|
var children = _a.children, icon = _a.icon, isOpen = _a.isOpen, props = __rest(_a, ["children", "icon", "isOpen"]);
|
|
31
|
-
return (
|
|
32
|
-
|
|
33
|
-
icon &&
|
|
34
|
+
return (React.createElement(styles_1.BorderedTriggerWrapper, __assign({ icon: icon }, props, { ref: ref }),
|
|
35
|
+
React.createElement(styles_1.BorderedTrigger, null,
|
|
36
|
+
icon && React.createElement(styles_1.TriggerIcon, { iconName: icon }),
|
|
34
37
|
" ",
|
|
35
38
|
children),
|
|
36
|
-
|
|
39
|
+
React.createElement(styles_1.BorderedCaret, { iconName: 'caret', iconColor: theme_1.colors.grey700, isOpen: isOpen })));
|
|
37
40
|
});
|
|
41
|
+
exports.ApMenuTriggerBordered = react_1.memo(exports.ApMenuTriggerBorderedInternal);
|
|
38
42
|
//# sourceMappingURL=ApMenuTriggerBordered.js.map
|