@invoicebox/ui 0.1.0-alpha.161 → 0.1.0-alpha.162
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/payment/PaymentCard/components/QiwiLogo.d.ts +1 -0
- package/dist/components/payment/PaymentCard/components/QiwiLogo.js +25 -0
- package/dist/components/payment/PaymentCard/components/WbPayIcon.d.ts +1 -0
- package/dist/components/payment/PaymentCard/components/WbPayIcon.js +76 -0
- package/dist/components/payment/PaymentCard/index.d.ts +1 -0
- package/dist/components/payment/PaymentCard/index.js +5 -3
- package/dist/components/payment/PaymentCard/index.stories.d.ts +2 -0
- package/dist/components/payment/PaymentCard/index.stories.js +22 -1
- package/dist/components/payment/PaymentCard/styles.d.ts +1 -0
- package/dist/components/payment/PaymentCard/styles.js +7 -3
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const QiwiLogo: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.QiwiLogo = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
var QiwiLogo = exports.QiwiLogo = function QiwiLogo() {
|
|
10
|
+
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
11
|
+
width: "26",
|
|
12
|
+
height: "26",
|
|
13
|
+
viewBox: "0 0 26 26",
|
|
14
|
+
fill: "none",
|
|
15
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
16
|
+
}, /*#__PURE__*/_react["default"].createElement("circle", {
|
|
17
|
+
cx: "13",
|
|
18
|
+
cy: "13",
|
|
19
|
+
r: "13",
|
|
20
|
+
fill: "#FF8C00"
|
|
21
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
22
|
+
d: "M17.6489 15.7718C17.6843 16.039 17.6046 16.1548 17.516 16.1548C17.4274 16.1548 17.3033 16.0479 17.1704 15.8342C17.0375 15.6204 16.9844 15.3799 17.0552 15.2552C17.0995 15.1751 17.1881 15.1394 17.3122 15.184C17.5337 15.2552 17.6223 15.6115 17.6489 15.7718ZM16.3996 16.3507C16.6743 16.5823 16.754 16.8584 16.6122 17.0455C16.5325 17.1523 16.3996 17.2058 16.249 17.2058C16.0983 17.2058 15.9389 17.1523 15.8325 17.0544C15.5845 16.8406 15.5136 16.4843 15.6731 16.2884C15.7351 16.2082 15.8414 16.1637 15.9566 16.1637C16.1072 16.1726 16.2578 16.2439 16.3996 16.3507ZM15.9389 18.5774C17.1084 18.5774 18.3754 18.9782 19.7753 20.234C19.9171 20.3587 20.1031 20.2073 19.9791 20.047C18.5969 18.2924 17.321 17.9628 16.054 17.6778C14.4947 17.3305 13.6972 16.4487 13.1391 15.4868C13.0239 15.2909 12.9796 15.3265 12.9707 15.5759C12.9619 15.8787 12.9796 16.2795 13.0505 16.6714C12.9884 16.6714 12.9264 16.6714 12.8644 16.6714C10.6405 16.6714 8.83304 14.8544 8.83304 12.6189C8.83304 10.3833 10.6405 8.56634 12.8644 8.56634C15.0883 8.56634 16.8958 10.3833 16.8958 12.6189C16.8958 12.7792 16.8869 12.9395 16.8692 13.0909C16.5768 13.0375 15.992 13.0286 15.5845 13.0642C15.4338 13.0731 15.4516 13.1533 15.5667 13.1711C16.8958 13.4116 17.8172 14.2399 18.021 15.754C18.0299 15.7896 18.0742 15.7985 18.0919 15.7718C18.6412 14.8544 18.9513 13.7767 18.9513 12.6278C18.9513 9.24324 16.2224 6.5 12.8555 6.5C9.48869 6.5 6.75977 9.24324 6.75977 12.6278C6.75977 16.0123 9.48869 18.7555 12.8555 18.7555C13.7504 18.7555 14.6364 18.5774 15.9389 18.5774Z",
|
|
23
|
+
fill: "white"
|
|
24
|
+
}));
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const WbPayIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.WbPayIcon = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
var WbPayIcon = exports.WbPayIcon = function WbPayIcon() {
|
|
10
|
+
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
11
|
+
width: "56",
|
|
12
|
+
height: "26",
|
|
13
|
+
viewBox: "0 0 56 26",
|
|
14
|
+
fill: "none",
|
|
15
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
16
|
+
}, /*#__PURE__*/_react["default"].createElement("rect", {
|
|
17
|
+
width: "56",
|
|
18
|
+
height: "26",
|
|
19
|
+
rx: "10",
|
|
20
|
+
fill: "url(#paint0_linear_10675_23361)"
|
|
21
|
+
}), /*#__PURE__*/_react["default"].createElement("g", {
|
|
22
|
+
clipPath: "url(#clip0_10675_23361)"
|
|
23
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
24
|
+
d: "M29.4834 10.2451H31.1105V10.9286C31.6721 10.3681 32.4353 10.0264 33.3569 10.0264C35.4448 10.0264 36.9136 11.571 36.9136 13.4848C36.9136 15.3985 35.4448 16.9432 33.3569 16.9432C31.2689 16.9432 31.6577 16.6014 31.1105 16.0683V19.308H29.4834V10.2314V10.2451ZM35.272 13.4848C35.272 12.3639 34.336 11.53 33.1985 11.53C32.0609 11.53 31.1105 12.3912 31.1105 13.4848C31.1105 14.5783 32.0753 15.4532 33.1985 15.4532C34.3216 15.4532 35.272 14.6057 35.272 13.4848Z",
|
|
25
|
+
fill: "#F6F6F9"
|
|
26
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
27
|
+
d: "M41.0323 10.0127C41.9538 10.0127 42.7314 10.3681 43.2786 10.9149V10.2314H44.9058V16.7108H43.2786V16.0683C42.717 16.6014 41.9538 16.9432 41.0323 16.9432C38.9443 16.9432 37.4756 15.4122 37.4756 13.4848C37.4756 11.5574 38.9443 10.0264 41.0323 10.0264V10.0127ZM43.293 13.4848C43.293 12.3775 42.3282 11.53 41.2051 11.53C40.0819 11.53 39.1315 12.3639 39.1315 13.4848C39.1315 14.6057 40.0675 15.4532 41.2051 15.4532C42.3426 15.4532 43.293 14.5783 43.293 13.4848Z",
|
|
28
|
+
fill: "#F6F6F9"
|
|
29
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
30
|
+
d: "M48.548 16.3281L45.3369 10.2314H47.1945L49.3544 14.551L51.0679 10.2314H52.9111L48.8936 19.5541H47.0937L48.5336 16.3281H48.548Z",
|
|
31
|
+
fill: "#F6F6F9"
|
|
32
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
33
|
+
d: "M23.6373 6.19916C23.0325 5.07825 22.0821 4.17606 20.9013 3.60194C19.5622 2.95947 17.8054 2.95947 14.3064 2.95947H13.1112C9.59771 2.95947 7.85536 2.95947 6.51621 3.60194C5.33545 4.17606 4.38508 5.07825 3.78029 6.19916C3.10352 7.47042 3.10352 9.13811 3.10352 12.4598V13.526C3.10352 16.8614 3.10352 18.5154 3.78029 19.7867C4.38508 20.9076 5.33545 21.8098 6.51621 22.3839C7.85536 23.0264 9.61211 23.0264 13.1112 23.0264H14.3064C17.8198 23.0264 19.5622 23.0264 20.9013 22.3839C22.0821 21.8098 23.0325 20.9076 23.6373 19.7867C24.314 18.5154 24.314 16.8477 24.314 13.526V12.4598C24.314 9.12444 24.314 7.47042 23.6373 6.19916ZM12.4344 16.67H11.3113L9.7417 12.8426L8.18655 16.67H7.06339L4.47147 10.2453H6.22822L7.71137 13.9088L9.19452 10.2453H10.3177L11.7864 13.9088L13.2696 10.2453H15.0119L12.42 16.67H12.4344ZM19.087 16.8887C17.0855 16.8887 15.4583 15.3578 15.4583 13.444V7.18336H17.0711V10.5871C17.6471 10.218 18.3382 9.99929 19.087 9.99929C21.1029 9.99929 22.7157 11.5029 22.7157 13.444C22.7157 15.3851 21.0597 16.9024 19.0726 16.9024L19.087 16.8887Z",
|
|
34
|
+
fill: "#F6F6F9"
|
|
35
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
36
|
+
d: "M19.1019 11.5439C17.9499 11.5439 17.0859 12.3641 17.0859 13.444C17.0859 14.5239 18.0075 15.3577 19.1019 15.3577C20.1962 15.3577 21.1322 14.4966 21.1322 13.444C21.1322 12.3915 20.2682 11.5439 19.1163 11.5439H19.1019Z",
|
|
37
|
+
fill: "#F6F6F9"
|
|
38
|
+
})), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("linearGradient", {
|
|
39
|
+
id: "paint0_linear_10675_23361",
|
|
40
|
+
x1: "-0.117975",
|
|
41
|
+
y1: "1.56069",
|
|
42
|
+
x2: "57.8089",
|
|
43
|
+
y2: "17.4528",
|
|
44
|
+
gradientUnits: "userSpaceOnUse"
|
|
45
|
+
}, /*#__PURE__*/_react["default"].createElement("stop", {
|
|
46
|
+
stopColor: "#ED3CCA"
|
|
47
|
+
}), /*#__PURE__*/_react["default"].createElement("stop", {
|
|
48
|
+
offset: "0.145833",
|
|
49
|
+
stopColor: "#DF34D2"
|
|
50
|
+
}), /*#__PURE__*/_react["default"].createElement("stop", {
|
|
51
|
+
offset: "0.291667",
|
|
52
|
+
stopColor: "#D02BD9"
|
|
53
|
+
}), /*#__PURE__*/_react["default"].createElement("stop", {
|
|
54
|
+
offset: "0.432292",
|
|
55
|
+
stopColor: "#BF22E1"
|
|
56
|
+
}), /*#__PURE__*/_react["default"].createElement("stop", {
|
|
57
|
+
offset: "0.572917",
|
|
58
|
+
stopColor: "#AE1AE8"
|
|
59
|
+
}), /*#__PURE__*/_react["default"].createElement("stop", {
|
|
60
|
+
offset: "0.713542",
|
|
61
|
+
stopColor: "#9A10F0"
|
|
62
|
+
}), /*#__PURE__*/_react["default"].createElement("stop", {
|
|
63
|
+
offset: "0.854167",
|
|
64
|
+
stopColor: "#8306F7"
|
|
65
|
+
}), /*#__PURE__*/_react["default"].createElement("stop", {
|
|
66
|
+
offset: "1",
|
|
67
|
+
stopColor: "#7C1AF8"
|
|
68
|
+
})), /*#__PURE__*/_react["default"].createElement("clipPath", {
|
|
69
|
+
id: "clip0_10675_23361"
|
|
70
|
+
}, /*#__PURE__*/_react["default"].createElement("rect", {
|
|
71
|
+
width: "49.6",
|
|
72
|
+
height: "19.8824",
|
|
73
|
+
fill: "white",
|
|
74
|
+
transform: "translate(3.2002 3.05859)"
|
|
75
|
+
}))));
|
|
76
|
+
};
|
|
@@ -23,7 +23,9 @@ var PaymentCard = exports.PaymentCard = function PaymentCard(_ref) {
|
|
|
23
23
|
_ref$isDisabled = _ref.isDisabled,
|
|
24
24
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
25
25
|
children = _ref.children,
|
|
26
|
-
comment = _ref.comment
|
|
26
|
+
comment = _ref.comment,
|
|
27
|
+
_ref$isCircleIconLayo = _ref.isCircleIconLayout,
|
|
28
|
+
isCircleIconLayout = _ref$isCircleIconLayo === void 0 ? true : _ref$isCircleIconLayo;
|
|
27
29
|
var palette = (0, _palette.useComponentPalette)('paymentCard');
|
|
28
30
|
return /*#__PURE__*/_react["default"].createElement(S.Wrapper, {
|
|
29
31
|
$pallete: palette,
|
|
@@ -39,10 +41,10 @@ var PaymentCard = exports.PaymentCard = function PaymentCard(_ref) {
|
|
|
39
41
|
$pallete: palette,
|
|
40
42
|
variant: "bodyMRegular",
|
|
41
43
|
$ellipsis: !children
|
|
42
|
-
}, title), children), /*#__PURE__*/_react["default"].createElement(S.IconWrapper, {
|
|
44
|
+
}, title), children), isCircleIconLayout ? /*#__PURE__*/_react["default"].createElement(S.IconWrapper, {
|
|
43
45
|
$pallete: palette,
|
|
44
46
|
$isActive: isActive
|
|
45
|
-
}, icon || /*#__PURE__*/_react["default"].createElement(_DefaultLogo.DefaultLogo, null)), comment && /*#__PURE__*/_react["default"].createElement(S.Comment, {
|
|
47
|
+
}, icon || /*#__PURE__*/_react["default"].createElement(_DefaultLogo.DefaultLogo, null)) : /*#__PURE__*/_react["default"].createElement(S.OutContainerIconWrapper, null, icon || /*#__PURE__*/_react["default"].createElement(_DefaultLogo.DefaultLogo, null)), comment && /*#__PURE__*/_react["default"].createElement(S.Comment, {
|
|
46
48
|
$pallete: palette,
|
|
47
49
|
$isActive: isActive,
|
|
48
50
|
variant: "captionSRegular"
|
|
@@ -4,6 +4,8 @@ import { PaymentCard } from '.';
|
|
|
4
4
|
declare const meta: Meta<typeof PaymentCard>;
|
|
5
5
|
export default meta;
|
|
6
6
|
export declare const Default: StoryObj<typeof PaymentCard>;
|
|
7
|
+
export declare const DefaultCircleLogo: StoryObj<typeof PaymentCard>;
|
|
8
|
+
export declare const NotCircleLogo: StoryObj<typeof PaymentCard>;
|
|
7
9
|
export declare const WithChildren: StoryObj<typeof PaymentCard>;
|
|
8
10
|
export declare const OverflowText: StoryObj<typeof PaymentCard>;
|
|
9
11
|
export declare const OverflowTextWithChildren: StoryObj<typeof PaymentCard>;
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = exports.WithChildren = exports.OverflowTextWithChildren = exports.OverflowText = exports.Default = void 0;
|
|
6
|
+
exports["default"] = exports.WithChildren = exports.OverflowTextWithChildren = exports.OverflowText = exports.NotCircleLogo = exports.DefaultCircleLogo = exports.Default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _ = require(".");
|
|
9
|
+
var _QiwiLogo = require("./components/QiwiLogo");
|
|
10
|
+
var _WbPayIcon = require("./components/WbPayIcon");
|
|
9
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
12
|
var meta = {
|
|
11
13
|
title: 'payment/PaymentCard',
|
|
@@ -21,6 +23,25 @@ var Default = exports.Default = {
|
|
|
21
23
|
comment: 'Комиссия 10 руб'
|
|
22
24
|
}
|
|
23
25
|
};
|
|
26
|
+
var DefaultCircleLogo = exports.DefaultCircleLogo = {
|
|
27
|
+
args: {
|
|
28
|
+
title: 'Альфа-банк',
|
|
29
|
+
isActive: false,
|
|
30
|
+
isDisabled: false,
|
|
31
|
+
comment: 'Комиссия 10 руб',
|
|
32
|
+
icon: /*#__PURE__*/_react["default"].createElement(_QiwiLogo.QiwiLogo, null)
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
var NotCircleLogo = exports.NotCircleLogo = {
|
|
36
|
+
args: {
|
|
37
|
+
title: 'Альфа-банк',
|
|
38
|
+
isActive: false,
|
|
39
|
+
isDisabled: false,
|
|
40
|
+
comment: 'Комиссия 10 руб',
|
|
41
|
+
icon: /*#__PURE__*/_react["default"].createElement(_WbPayIcon.WbPayIcon, null),
|
|
42
|
+
isCircleIconLayout: false
|
|
43
|
+
}
|
|
44
|
+
};
|
|
24
45
|
var WithChildren = exports.WithChildren = {
|
|
25
46
|
args: {
|
|
26
47
|
title: 'Альфа-банк',
|
|
@@ -49,6 +49,7 @@ export declare const Title: import("styled-components/dist/types").IStyledCompon
|
|
|
49
49
|
$ellipsis: boolean;
|
|
50
50
|
$pallete: TPaymentCardPalette;
|
|
51
51
|
}>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../common/Typography").TProps & import("react").RefAttributes<HTMLInputElement>>, keyof import("react").Component<any, {}, any>>;
|
|
52
|
+
export declare const OutContainerIconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
52
53
|
export declare const IconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
53
54
|
$isActive: boolean;
|
|
54
55
|
$pallete: TPaymentCardPalette;
|
|
@@ -4,7 +4,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.Wrapper = exports.Title = exports.RadioWrapper = exports.IconWrapper = exports.Content = exports.Comment = void 0;
|
|
7
|
+
exports.Wrapper = exports.Title = exports.RadioWrapper = exports.OutContainerIconWrapper = exports.IconWrapper = exports.Content = exports.Comment = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
9
|
var _Typography = require("../../common/Typography");
|
|
10
10
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -43,9 +43,13 @@ var Title = exports.Title = (0, _styledComponents["default"])(_Typography.Typogr
|
|
|
43
43
|
var $pallete = _ref5.$pallete;
|
|
44
44
|
return $pallete.title;
|
|
45
45
|
});
|
|
46
|
+
var OutContainerIconWrapper = exports.OutContainerIconWrapper = _styledComponents["default"].div.withConfig({
|
|
47
|
+
displayName: "styles__OutContainerIconWrapper",
|
|
48
|
+
componentId: "sc-ykxt4t-4"
|
|
49
|
+
})(["flex-shrink:0;"]);
|
|
46
50
|
var IconWrapper = exports.IconWrapper = _styledComponents["default"].div.withConfig({
|
|
47
51
|
displayName: "styles__IconWrapper",
|
|
48
|
-
componentId: "sc-ykxt4t-
|
|
52
|
+
componentId: "sc-ykxt4t-5"
|
|
49
53
|
})(["flex-shrink:0;flex-grow:0;width:36px;height:36px;border-radius:50%;background-color:", ";display:flex;align-items:center;justify-content:center;"], function (_ref6) {
|
|
50
54
|
var $isActive = _ref6.$isActive,
|
|
51
55
|
$pallete = _ref6.$pallete;
|
|
@@ -53,7 +57,7 @@ var IconWrapper = exports.IconWrapper = _styledComponents["default"].div.withCon
|
|
|
53
57
|
});
|
|
54
58
|
var Comment = exports.Comment = (0, _styledComponents["default"])(_Typography.Typography).withConfig({
|
|
55
59
|
displayName: "styles__Comment",
|
|
56
|
-
componentId: "sc-ykxt4t-
|
|
60
|
+
componentId: "sc-ykxt4t-6"
|
|
57
61
|
})(["color:", ";position:absolute;bottom:0;right:0;padding:0 8px;box-sizing:border-box;background:", ";border-radius:6px 0 0 0;", ""], function (_ref7) {
|
|
58
62
|
var $pallete = _ref7.$pallete;
|
|
59
63
|
return $pallete.comment;
|