@qiwi/pijma-desktop-extra 0.1.0
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/README.md +0 -0
- package/lib/dts/main/amount/AmountProps.d.ts +9 -0
- package/lib/dts/main/amount/index.d.ts +3 -0
- package/lib/dts/main/checkbox/CheckboxProps.d.ts +9 -0
- package/lib/dts/main/checkbox/index.d.ts +7 -0
- package/lib/dts/main/chip/ChipProps.d.ts +4 -0
- package/lib/dts/main/chip/index.d.ts +4 -0
- package/lib/dts/main/date-picker/DatePickerProps.d.ts +4 -0
- package/lib/dts/main/date-picker/DatePickerState.d.ts +7 -0
- package/lib/dts/main/date-picker/index.d.ts +5 -0
- package/lib/dts/main/date-picker/locale.d.ts +3 -0
- package/lib/dts/main/date-picker/wrap.d.ts +6 -0
- package/lib/dts/main/date-range-picker/DateRangePickerState.d.ts +5 -0
- package/lib/dts/main/date-range-picker/DateRangerPickerProps.d.ts +11 -0
- package/lib/dts/main/date-range-picker/index.d.ts +15 -0
- package/lib/dts/main/divider/DividerProps.d.ts +7 -0
- package/lib/dts/main/divider/index.d.ts +3 -0
- package/lib/dts/main/dropdown/Container.d.ts +24 -0
- package/lib/dts/main/dropdown/ContainerProps.d.ts +13 -0
- package/lib/dts/main/dropdown/DropdownProps.d.ts +10 -0
- package/lib/dts/main/dropdown/index.d.ts +14 -0
- package/lib/dts/main/empty-page/index.d.ts +5 -0
- package/lib/dts/main/error-message/ErrorMessageProps.d.ts +6 -0
- package/lib/dts/main/error-message/index.d.ts +6 -0
- package/lib/dts/main/file-uploader/FileUploaderControl.d.ts +4 -0
- package/lib/dts/main/file-uploader/FileUploaderControlProps.d.ts +12 -0
- package/lib/dts/main/file-uploader/FileUploaderProps.d.ts +15 -0
- package/lib/dts/main/file-uploader/FileUploaderStyles.d.ts +16 -0
- package/lib/dts/main/file-uploader/index.d.ts +4 -0
- package/lib/dts/main/footer/index.d.ts +6 -0
- package/lib/dts/main/header/HeaderProps.d.ts +21 -0
- package/lib/dts/main/header/index.d.ts +5 -0
- package/lib/dts/main/icon/IconProps.d.ts +7 -0
- package/lib/dts/main/icon/index.d.ts +5 -0
- package/lib/dts/main/index.d.ts +29 -0
- package/lib/dts/main/logo/index.d.ts +2 -0
- package/lib/dts/main/menu/MenuProps.d.ts +8 -0
- package/lib/dts/main/menu/index.d.ts +10 -0
- package/lib/dts/main/menu/interfaces.d.ts +9 -0
- package/lib/dts/main/navigation-menu/NavigationMenuProps.d.ts +13 -0
- package/lib/dts/main/navigation-menu/index.d.ts +5 -0
- package/lib/dts/main/obfuscatedPan/ObfuscatedPanProps.d.ts +4 -0
- package/lib/dts/main/obfuscatedPan/index.d.ts +3 -0
- package/lib/dts/main/offset/OffsetProps.d.ts +6 -0
- package/lib/dts/main/offset/index.d.ts +6 -0
- package/lib/dts/main/paginator/PaginatorProps.d.ts +10 -0
- package/lib/dts/main/paginator/index.d.ts +25 -0
- package/lib/dts/main/product/ProductProps.d.ts +8 -0
- package/lib/dts/main/product/ProductState.d.ts +3 -0
- package/lib/dts/main/product/index.d.ts +10 -0
- package/lib/dts/main/select/SelectProps.d.ts +15 -0
- package/lib/dts/main/select/SelectState.d.ts +5 -0
- package/lib/dts/main/select/index.d.ts +14 -0
- package/lib/dts/main/spinner/index.d.ts +2 -0
- package/lib/dts/main/spreader/index.d.ts +6 -0
- package/lib/dts/main/step/StepProps.d.ts +10 -0
- package/lib/dts/main/step/StepStyle.d.ts +9 -0
- package/lib/dts/main/step/index.d.ts +4 -0
- package/lib/dts/main/step/interfaces.d.ts +1 -0
- package/lib/dts/main/stepper/StepperControl.d.ts +4 -0
- package/lib/dts/main/stepper/StepperControlProps.d.ts +10 -0
- package/lib/dts/main/stepper/StepperProps.d.ts +6 -0
- package/lib/dts/main/stepper/index.d.ts +4 -0
- package/lib/dts/main/table/column.d.ts +1 -0
- package/lib/dts/main/table/constants.d.ts +3 -0
- package/lib/dts/main/table/index.d.ts +3 -0
- package/lib/dts/main/theme/color.d.ts +78 -0
- package/lib/dts/main/theme/dimen.d.ts +9 -0
- package/lib/dts/main/theme/grid.d.ts +1 -0
- package/lib/dts/main/theme/index.d.ts +3 -0
- package/lib/dts/main/theme/text.d.ts +19 -0
- package/lib/dts/main/trinary-check-icon/TrinaryCheckboxProps.d.ts +5 -0
- package/lib/dts/main/trinary-check-icon/index.d.ts +4 -0
- package/lib/dts/main/user-profile/UserProfileProps.d.ts +4 -0
- package/lib/dts/main/user-profile/index.d.ts +5 -0
- package/lib/dts/test/amount.d.ts +1 -0
- package/lib/dts/test/checkbox.d.ts +1 -0
- package/lib/dts/test/datePicker.d.ts +1 -0
- package/lib/dts/test/dateRangePicker.d.ts +1 -0
- package/lib/dts/test/divider.d.ts +1 -0
- package/lib/dts/test/dropdown.d.ts +1 -0
- package/lib/dts/test/errorMessage.d.ts +1 -0
- package/lib/dts/test/header.d.ts +1 -0
- package/lib/dts/test/icon.d.ts +1 -0
- package/lib/dts/test/navigationMenu.d.ts +1 -0
- package/lib/dts/test/obfuscatedPan.d.ts +1 -0
- package/lib/dts/test/offset.d.ts +1 -0
- package/lib/dts/test/paginator.d.ts +1 -0
- package/lib/dts/test/product.d.ts +1 -0
- package/lib/dts/test/select.d.ts +1 -0
- package/lib/dts/test/spinner.d.ts +1 -0
- package/lib/dts/test/table.d.ts +1 -0
- package/lib/dts/test/trinary-check-icon.d.ts +1 -0
- package/lib/dts/test/userProfile.d.ts +1 -0
- package/lib/es5/main/amount/AmountProps.js +4 -0
- package/lib/es5/main/amount/index.js +27 -0
- package/lib/es5/main/checkbox/CheckboxProps.js +4 -0
- package/lib/es5/main/checkbox/index.js +65 -0
- package/lib/es5/main/chip/ChipProps.js +4 -0
- package/lib/es5/main/chip/index.js +57 -0
- package/lib/es5/main/date-picker/DatePickerProps.js +4 -0
- package/lib/es5/main/date-picker/DatePickerState.js +4 -0
- package/lib/es5/main/date-picker/index.js +177 -0
- package/lib/es5/main/date-picker/locale.js +59 -0
- package/lib/es5/main/date-picker/wrap.js +28 -0
- package/lib/es5/main/date-range-picker/DateRangePickerState.js +4 -0
- package/lib/es5/main/date-range-picker/DateRangerPickerProps.js +4 -0
- package/lib/es5/main/date-range-picker/index.js +243 -0
- package/lib/es5/main/divider/DividerProps.js +4 -0
- package/lib/es5/main/divider/index.js +42 -0
- package/lib/es5/main/dropdown/Container.js +145 -0
- package/lib/es5/main/dropdown/ContainerProps.js +4 -0
- package/lib/es5/main/dropdown/DropdownProps.js +4 -0
- package/lib/es5/main/dropdown/index.js +86 -0
- package/lib/es5/main/empty-page/index.js +89 -0
- package/lib/es5/main/error-message/ErrorMessageProps.js +4 -0
- package/lib/es5/main/error-message/index.js +71 -0
- package/lib/es5/main/file-uploader/FileUploaderControl.js +28 -0
- package/lib/es5/main/file-uploader/FileUploaderControlProps.js +4 -0
- package/lib/es5/main/file-uploader/FileUploaderProps.js +4 -0
- package/lib/es5/main/file-uploader/FileUploaderStyles.js +60 -0
- package/lib/es5/main/file-uploader/index.js +109 -0
- package/lib/es5/main/footer/index.js +115 -0
- package/lib/es5/main/header/HeaderProps.js +4 -0
- package/lib/es5/main/header/index.js +110 -0
- package/lib/es5/main/icon/IconProps.js +4 -0
- package/lib/es5/main/icon/index.js +54 -0
- package/lib/es5/main/index.js +34 -0
- package/lib/es5/main/logo/index.js +96 -0
- package/lib/es5/main/menu/MenuProps.js +4 -0
- package/lib/es5/main/menu/index.js +137 -0
- package/lib/es5/main/menu/interfaces.js +4 -0
- package/lib/es5/main/navigation-menu/NavigationMenuProps.js +4 -0
- package/lib/es5/main/navigation-menu/index.js +65 -0
- package/lib/es5/main/obfuscatedPan/ObfuscatedPanProps.js +4 -0
- package/lib/es5/main/obfuscatedPan/index.js +22 -0
- package/lib/es5/main/offset/OffsetProps.js +4 -0
- package/lib/es5/main/offset/index.js +34 -0
- package/lib/es5/main/paginator/PaginatorProps.js +4 -0
- package/lib/es5/main/paginator/index.js +140 -0
- package/lib/es5/main/product/ProductProps.js +4 -0
- package/lib/es5/main/product/ProductState.js +4 -0
- package/lib/es5/main/product/index.js +139 -0
- package/lib/es5/main/select/SelectProps.js +4 -0
- package/lib/es5/main/select/SelectState.js +4 -0
- package/lib/es5/main/select/index.js +156 -0
- package/lib/es5/main/spinner/index.js +22 -0
- package/lib/es5/main/spreader/index.js +22 -0
- package/lib/es5/main/step/StepProps.js +4 -0
- package/lib/es5/main/step/StepStyle.js +54 -0
- package/lib/es5/main/step/index.js +46 -0
- package/lib/es5/main/step/interfaces.js +4 -0
- package/lib/es5/main/stepper/StepperControl.js +32 -0
- package/lib/es5/main/stepper/StepperControlProps.js +4 -0
- package/lib/es5/main/stepper/StepperProps.js +4 -0
- package/lib/es5/main/stepper/index.js +54 -0
- package/lib/es5/main/table/column.js +27 -0
- package/lib/es5/main/table/constants.js +25 -0
- package/lib/es5/main/table/index.js +101 -0
- package/lib/es5/main/theme/color.js +127 -0
- package/lib/es5/main/theme/dimen.js +32 -0
- package/lib/es5/main/theme/grid.js +11 -0
- package/lib/es5/main/theme/index.js +25 -0
- package/lib/es5/main/theme/text.js +33 -0
- package/lib/es5/main/trinary-check-icon/TrinaryCheckboxProps.js +4 -0
- package/lib/es5/main/trinary-check-icon/index.js +63 -0
- package/lib/es5/main/user-profile/UserProfileProps.js +4 -0
- package/lib/es5/main/user-profile/index.js +73 -0
- package/lib/es5/test/amount.js +21 -0
- package/lib/es5/test/checkbox.js +47 -0
- package/lib/es5/test/datePicker.js +35 -0
- package/lib/es5/test/dateRangePicker.js +39 -0
- package/lib/es5/test/divider.js +24 -0
- package/lib/es5/test/dropdown.js +71 -0
- package/lib/es5/test/errorMessage.js +29 -0
- package/lib/es5/test/header.js +119 -0
- package/lib/es5/test/icon.js +31 -0
- package/lib/es5/test/navigationMenu.js +105 -0
- package/lib/es5/test/obfuscatedPan.js +21 -0
- package/lib/es5/test/offset.js +18 -0
- package/lib/es5/test/paginator.js +23 -0
- package/lib/es5/test/product.js +52 -0
- package/lib/es5/test/select.js +30 -0
- package/lib/es5/test/spinner.js +18 -0
- package/lib/es5/test/table.js +73 -0
- package/lib/es5/test/trinary-check-icon.js +32 -0
- package/lib/es5/test/userProfile.js +26 -0
- package/lib/es6/main/amount/AmountProps.js +1 -0
- package/lib/es6/main/amount/index.js +15 -0
- package/lib/es6/main/checkbox/CheckboxProps.js +1 -0
- package/lib/es6/main/checkbox/index.js +40 -0
- package/lib/es6/main/chip/ChipProps.js +1 -0
- package/lib/es6/main/chip/index.js +38 -0
- package/lib/es6/main/date-picker/DatePickerProps.js +1 -0
- package/lib/es6/main/date-picker/DatePickerState.js +1 -0
- package/lib/es6/main/date-picker/index.js +143 -0
- package/lib/es6/main/date-picker/locale.js +32 -0
- package/lib/es6/main/date-picker/wrap.js +214 -0
- package/lib/es6/main/date-range-picker/DateRangePickerState.js +1 -0
- package/lib/es6/main/date-range-picker/DateRangerPickerProps.js +1 -0
- package/lib/es6/main/date-range-picker/index.js +207 -0
- package/lib/es6/main/divider/DividerProps.js +1 -0
- package/lib/es6/main/divider/index.js +15 -0
- package/lib/es6/main/dropdown/Container.js +75 -0
- package/lib/es6/main/dropdown/ContainerProps.js +1 -0
- package/lib/es6/main/dropdown/DropdownProps.js +1 -0
- package/lib/es6/main/dropdown/index.js +47 -0
- package/lib/es6/main/empty-page/index.js +70 -0
- package/lib/es6/main/error-message/ErrorMessageProps.js +1 -0
- package/lib/es6/main/error-message/index.js +42 -0
- package/lib/es6/main/file-uploader/FileUploaderControl.js +15 -0
- package/lib/es6/main/file-uploader/FileUploaderControlProps.js +1 -0
- package/lib/es6/main/file-uploader/FileUploaderProps.js +1 -0
- package/lib/es6/main/file-uploader/FileUploaderStyles.js +16 -0
- package/lib/es6/main/file-uploader/index.js +77 -0
- package/lib/es6/main/footer/index.js +90 -0
- package/lib/es6/main/header/HeaderProps.js +1 -0
- package/lib/es6/main/header/index.js +84 -0
- package/lib/es6/main/icon/IconProps.js +1 -0
- package/lib/es6/main/icon/index.js +24 -0
- package/lib/es6/main/index.js +29 -0
- package/lib/es6/main/logo/index.js +83 -0
- package/lib/es6/main/menu/MenuProps.js +1 -0
- package/lib/es6/main/menu/index.js +116 -0
- package/lib/es6/main/menu/interfaces.js +1 -0
- package/lib/es6/main/navigation-menu/NavigationMenuProps.js +1 -0
- package/lib/es6/main/navigation-menu/index.js +38 -0
- package/lib/es6/main/obfuscatedPan/ObfuscatedPanProps.js +1 -0
- package/lib/es6/main/obfuscatedPan/index.js +10 -0
- package/lib/es6/main/offset/OffsetProps.js +1 -0
- package/lib/es6/main/offset/index.js +7 -0
- package/lib/es6/main/paginator/PaginatorProps.js +1 -0
- package/lib/es6/main/paginator/index.js +115 -0
- package/lib/es6/main/product/ProductProps.js +1 -0
- package/lib/es6/main/product/ProductState.js +1 -0
- package/lib/es6/main/product/index.js +89 -0
- package/lib/es6/main/select/SelectProps.js +1 -0
- package/lib/es6/main/select/SelectState.js +1 -0
- package/lib/es6/main/select/index.js +118 -0
- package/lib/es6/main/spinner/index.js +9 -0
- package/lib/es6/main/spreader/index.js +11 -0
- package/lib/es6/main/step/StepProps.js +1 -0
- package/lib/es6/main/step/StepStyle.js +36 -0
- package/lib/es6/main/step/index.js +24 -0
- package/lib/es6/main/step/interfaces.js +1 -0
- package/lib/es6/main/stepper/StepperControl.js +18 -0
- package/lib/es6/main/stepper/StepperControlProps.js +1 -0
- package/lib/es6/main/stepper/StepperProps.js +1 -0
- package/lib/es6/main/stepper/index.js +37 -0
- package/lib/es6/main/table/column.js +16 -0
- package/lib/es6/main/table/constants.js +4 -0
- package/lib/es6/main/table/index.js +116 -0
- package/lib/es6/main/theme/color.js +79 -0
- package/lib/es6/main/theme/dimen.js +8 -0
- package/lib/es6/main/theme/grid.js +1 -0
- package/lib/es6/main/theme/index.js +3 -0
- package/lib/es6/main/theme/text.js +12 -0
- package/lib/es6/main/trinary-check-icon/TrinaryCheckboxProps.js +1 -0
- package/lib/es6/main/trinary-check-icon/index.js +43 -0
- package/lib/es6/main/user-profile/UserProfileProps.js +1 -0
- package/lib/es6/main/user-profile/index.js +32 -0
- package/lib/es6/test/amount.js +16 -0
- package/lib/es6/test/checkbox.js +42 -0
- package/lib/es6/test/datePicker.js +30 -0
- package/lib/es6/test/dateRangePicker.js +34 -0
- package/lib/es6/test/divider.js +19 -0
- package/lib/es6/test/dropdown.js +66 -0
- package/lib/es6/test/errorMessage.js +24 -0
- package/lib/es6/test/header.js +114 -0
- package/lib/es6/test/icon.js +26 -0
- package/lib/es6/test/navigationMenu.js +98 -0
- package/lib/es6/test/obfuscatedPan.js +16 -0
- package/lib/es6/test/offset.js +13 -0
- package/lib/es6/test/paginator.js +18 -0
- package/lib/es6/test/product.js +47 -0
- package/lib/es6/test/select.js +25 -0
- package/lib/es6/test/spinner.js +13 -0
- package/lib/es6/test/table.js +64 -0
- package/lib/es6/test/trinary-check-icon.js +27 -0
- package/lib/es6/test/userProfile.js +21 -0
- package/package.json +83 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "ErrorMessage", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return ErrorMessage;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _inherits = require("@swc/helpers/lib/_inherits.js").default;
|
|
12
|
+
var _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
13
|
+
var _taggedTemplateLiteralLoose = require("@swc/helpers/lib/_tagged_template_literal_loose.js").default;
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
var _pijmaCore = require("@qiwi/pijma-core");
|
|
16
|
+
var _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
17
|
+
var _icon = require("../icon/index.js");
|
|
18
|
+
function _templateObject() {
|
|
19
|
+
var data = _taggedTemplateLiteralLoose([
|
|
20
|
+
"\n font-size: 20px;\n font-weight: bold;\n line-height: 1.15;\n margin-bottom: 8px;\n"
|
|
21
|
+
]);
|
|
22
|
+
_templateObject = function _templateObject() {
|
|
23
|
+
return data;
|
|
24
|
+
};
|
|
25
|
+
return data;
|
|
26
|
+
}
|
|
27
|
+
function _templateObject1() {
|
|
28
|
+
var data = _taggedTemplateLiteralLoose([
|
|
29
|
+
"\n font-size: 16px;\n font-weight: 300;\n"
|
|
30
|
+
]);
|
|
31
|
+
_templateObject1 = function _templateObject1() {
|
|
32
|
+
return data;
|
|
33
|
+
};
|
|
34
|
+
return data;
|
|
35
|
+
}
|
|
36
|
+
var ErrorMessageTitle = (0, _pijmaCore.styled)("div")(_templateObject());
|
|
37
|
+
var ErrorMessageText = (0, _pijmaCore.styled)("div")(_templateObject1());
|
|
38
|
+
var ErrorMessage = /*#__PURE__*/ function(Component) {
|
|
39
|
+
"use strict";
|
|
40
|
+
_inherits(ErrorMessage, Component);
|
|
41
|
+
function ErrorMessage() {
|
|
42
|
+
return Component.apply(this, arguments);
|
|
43
|
+
}
|
|
44
|
+
var _proto = ErrorMessage.prototype;
|
|
45
|
+
_proto.render = function render() {
|
|
46
|
+
var _props = this.props, message = _props.message, title = _props.title, icon = _props.icon, iconColor = _props.iconColor;
|
|
47
|
+
return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_pijmaCore.Flex, {
|
|
48
|
+
mt: 4,
|
|
49
|
+
children: [
|
|
50
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.FlexItem, {
|
|
51
|
+
mr: 3,
|
|
52
|
+
children: icon ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(_icon.B2bIcon, {
|
|
53
|
+
icon: icon,
|
|
54
|
+
iconColor: iconColor
|
|
55
|
+
}) : null
|
|
56
|
+
}),
|
|
57
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsxs)(_pijmaCore.FlexItem, {
|
|
58
|
+
children: [
|
|
59
|
+
title ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(ErrorMessageTitle, {
|
|
60
|
+
children: title
|
|
61
|
+
}) : null,
|
|
62
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsx)(ErrorMessageText, {
|
|
63
|
+
children: message
|
|
64
|
+
})
|
|
65
|
+
]
|
|
66
|
+
})
|
|
67
|
+
]
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
return ErrorMessage;
|
|
71
|
+
}(_react.Component);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var FileUploaderControl = function(param) {
|
|
12
|
+
var value = param.value, children = param.children, onChange = param.onChange, onUpload = param.onUpload;
|
|
13
|
+
var invokeChange = function(files) {
|
|
14
|
+
return onChange && onChange(files);
|
|
15
|
+
};
|
|
16
|
+
return children({
|
|
17
|
+
onChange: function(uploadFiles) {
|
|
18
|
+
var nextFiles = value.concat(uploadFiles);
|
|
19
|
+
onUpload && onUpload(uploadFiles);
|
|
20
|
+
invokeChange(nextFiles);
|
|
21
|
+
},
|
|
22
|
+
removeFile: function(index) {
|
|
23
|
+
var files = value.slice(0, index).concat(value.slice(index + 1));
|
|
24
|
+
invokeChange(files);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
var _default = FileUploaderControl;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
ChipsContainer: function() {
|
|
13
|
+
return ChipsContainer;
|
|
14
|
+
},
|
|
15
|
+
default: function() {
|
|
16
|
+
return _default;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
var _taggedTemplateLiteralLoose = require("@swc/helpers/lib/_tagged_template_literal_loose.js").default;
|
|
20
|
+
var _pijmaCore = require("@qiwi/pijma-core");
|
|
21
|
+
function _templateObject() {
|
|
22
|
+
var data = _taggedTemplateLiteralLoose([
|
|
23
|
+
"\n display: flex;\n flex-wrap: wrap;\n"
|
|
24
|
+
]);
|
|
25
|
+
_templateObject = function _templateObject() {
|
|
26
|
+
return data;
|
|
27
|
+
};
|
|
28
|
+
return data;
|
|
29
|
+
}
|
|
30
|
+
function _templateObject1() {
|
|
31
|
+
var data = _taggedTemplateLiteralLoose([
|
|
32
|
+
"\n text-align: center;\n border: 1px dashed #ccc;\n border-radius: 10px;\n cursor: ",
|
|
33
|
+
";\n transition: background 0.2s;\n background: ",
|
|
34
|
+
";\n border-style: ",
|
|
35
|
+
";\n pointer-events: ",
|
|
36
|
+
";\n opacity: ",
|
|
37
|
+
";\n"
|
|
38
|
+
]);
|
|
39
|
+
_templateObject1 = function _templateObject1() {
|
|
40
|
+
return data;
|
|
41
|
+
};
|
|
42
|
+
return data;
|
|
43
|
+
}
|
|
44
|
+
var ChipsContainer = (0, _pijmaCore.styled)(_pijmaCore.Box)(_templateObject());
|
|
45
|
+
var _default = _pijmaCore.styled.div(_templateObject1(), function(param) {
|
|
46
|
+
var noDialog = param.noDialog;
|
|
47
|
+
return noDialog ? "inherit" : "pointer";
|
|
48
|
+
}, function(param) {
|
|
49
|
+
var active = param.active;
|
|
50
|
+
return active ? "#e6e6e6" : "transparent";
|
|
51
|
+
}, function(param) {
|
|
52
|
+
var active = param.active;
|
|
53
|
+
return active ? "solid" : "dashed";
|
|
54
|
+
}, function(param) {
|
|
55
|
+
var disabled = param.disabled;
|
|
56
|
+
return disabled ? "none" : "inherit";
|
|
57
|
+
}, function(param) {
|
|
58
|
+
var disabled = param.disabled;
|
|
59
|
+
return disabled ? "0.6" : "1";
|
|
60
|
+
});
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "FileUploader", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return FileUploader;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _extends = require("@swc/helpers/lib/_extends.js").default;
|
|
12
|
+
var _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default;
|
|
13
|
+
var _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
14
|
+
var _objectWithoutPropertiesLoose = require("@swc/helpers/lib/_object_without_properties_loose.js").default;
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
var _pijmaCore = require("@qiwi/pijma-core");
|
|
17
|
+
var _pijmaDesktop = require("@qiwi/pijma-desktop");
|
|
18
|
+
var _react = /*#__PURE__*/ _interopRequireDefault(require("react"));
|
|
19
|
+
var _reactDropzone = /*#__PURE__*/ _interopRequireDefault(require("react-dropzone"));
|
|
20
|
+
var _chip = require("../chip/index.js");
|
|
21
|
+
var _fileUploaderControl = /*#__PURE__*/ _interopRequireDefault(require("./FileUploaderControl.js"));
|
|
22
|
+
var _fileUploaderStyles = /*#__PURE__*/ _interopRequireWildcard(require("./FileUploaderStyles.js"));
|
|
23
|
+
var FileUploader = function(_param) {
|
|
24
|
+
var files = _param.value, multiple = _param.multiple, text = _param.text, _accept = _param.accept, accept = _accept === void 0 ? [] : _accept, disabled = _param.disabled, noDialog = _param.noDialog, _maxFiles = _param.maxFiles, maxFiles = _maxFiles === void 0 ? 5 : _maxFiles, maxSize = _param.maxSize, minSize = _param.minSize, events = _objectWithoutPropertiesLoose(_param, [
|
|
25
|
+
"value",
|
|
26
|
+
"multiple",
|
|
27
|
+
"text",
|
|
28
|
+
"accept",
|
|
29
|
+
"disabled",
|
|
30
|
+
"noDialog",
|
|
31
|
+
"maxFiles",
|
|
32
|
+
"maxSize",
|
|
33
|
+
"minSize"
|
|
34
|
+
]);
|
|
35
|
+
return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_fileUploaderControl.default, {
|
|
36
|
+
value: files,
|
|
37
|
+
onUpload: events.onUpload,
|
|
38
|
+
onChange: events.onChange,
|
|
39
|
+
children: function(param) {
|
|
40
|
+
var onChange = param.onChange, removeFile = param.removeFile;
|
|
41
|
+
return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_pijmaCore.Box, {
|
|
42
|
+
cursor: disabled ? "no-drop" : "inherit",
|
|
43
|
+
children: [
|
|
44
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsx)(_reactDropzone.default, {
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
accept: accept,
|
|
47
|
+
multiple: multiple,
|
|
48
|
+
noClick: noDialog,
|
|
49
|
+
maxFiles: maxFiles,
|
|
50
|
+
minSize: minSize,
|
|
51
|
+
maxSize: maxSize,
|
|
52
|
+
onDropAccepted: onChange,
|
|
53
|
+
onDropRejected: events.onDropRejected,
|
|
54
|
+
children: function(param) {
|
|
55
|
+
var getRootProps = param.getRootProps, getInputProps = param.getInputProps, isDragActive = param.isDragActive;
|
|
56
|
+
return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_fileUploaderStyles.default, _extends({
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
active: isDragActive,
|
|
59
|
+
disabled: disabled,
|
|
60
|
+
noDialog: noDialog
|
|
61
|
+
}, getRootProps(), {
|
|
62
|
+
children: [
|
|
63
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsxs)(_pijmaCore.Box, {
|
|
64
|
+
height: 32,
|
|
65
|
+
py: 6,
|
|
66
|
+
children: [
|
|
67
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Box, {
|
|
68
|
+
mb: 5,
|
|
69
|
+
children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Icon, {
|
|
70
|
+
name: "download"
|
|
71
|
+
})
|
|
72
|
+
}),
|
|
73
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaDesktop.Text, {
|
|
74
|
+
size: "s",
|
|
75
|
+
children: text || /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
76
|
+
children: [
|
|
77
|
+
"Перенесите в эту область доверенность",
|
|
78
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsx)("br", {}),
|
|
79
|
+
"или нажмите для выбора файла"
|
|
80
|
+
]
|
|
81
|
+
})
|
|
82
|
+
})
|
|
83
|
+
]
|
|
84
|
+
}),
|
|
85
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsx)("input", _extends({}, getInputProps()))
|
|
86
|
+
]
|
|
87
|
+
}));
|
|
88
|
+
}
|
|
89
|
+
}),
|
|
90
|
+
files.length > 0 && /*#__PURE__*/ (0, _jsxRuntime.jsx)(_fileUploaderStyles.ChipsContainer, {
|
|
91
|
+
mt: 3,
|
|
92
|
+
children: files.map(function(f, index) {
|
|
93
|
+
return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Box, {
|
|
94
|
+
mr: "5px",
|
|
95
|
+
mb: "5px",
|
|
96
|
+
children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_chip.Chip, {
|
|
97
|
+
text: f.name,
|
|
98
|
+
onRemove: function() {
|
|
99
|
+
return removeFile(index);
|
|
100
|
+
}
|
|
101
|
+
})
|
|
102
|
+
}, index);
|
|
103
|
+
})
|
|
104
|
+
})
|
|
105
|
+
]
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "Footer", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return Footer;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default;
|
|
12
|
+
var _taggedTemplateLiteralLoose = require("@swc/helpers/lib/_tagged_template_literal_loose.js").default;
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
var _pijmaCore = require("@qiwi/pijma-core");
|
|
15
|
+
var _react = /*#__PURE__*/ _interopRequireDefault(require("react"));
|
|
16
|
+
var _reactI18Next = require("react-i18next");
|
|
17
|
+
var _spreader = /*#__PURE__*/ _interopRequireDefault(require("../spreader/index.js"));
|
|
18
|
+
function _templateObject() {
|
|
19
|
+
var data = _taggedTemplateLiteralLoose([
|
|
20
|
+
"\n margin-top: 75px;\n color: #4a4a4a;\n margin-bottom: 50px;\n color: #4a4a4a;\n"
|
|
21
|
+
]);
|
|
22
|
+
_templateObject = function _templateObject() {
|
|
23
|
+
return data;
|
|
24
|
+
};
|
|
25
|
+
return data;
|
|
26
|
+
}
|
|
27
|
+
function _templateObject1() {
|
|
28
|
+
var data = _taggedTemplateLiteralLoose([
|
|
29
|
+
"\n cursor: pointer;\n text-decoration: none;\n color: #4a4a4a;\n :hover {\n color: ",
|
|
30
|
+
";\n }\n"
|
|
31
|
+
]);
|
|
32
|
+
_templateObject1 = function _templateObject1() {
|
|
33
|
+
return data;
|
|
34
|
+
};
|
|
35
|
+
return data;
|
|
36
|
+
}
|
|
37
|
+
var Wrapper = (0, _pijmaCore.styled)(_spreader.default)(_templateObject());
|
|
38
|
+
var References = (0, _pijmaCore.styled)("a")(_templateObject1(), function(props) {
|
|
39
|
+
return props.theme.color.gray.dark;
|
|
40
|
+
});
|
|
41
|
+
function setLang(lng) {
|
|
42
|
+
localStorage.setItem("i18nextLng", lng);
|
|
43
|
+
}
|
|
44
|
+
var Footer = function(param) {
|
|
45
|
+
var email = param.email;
|
|
46
|
+
var ref = (0, _reactI18Next.useTranslation)(), t = ref.t, i18n = ref.i18n;
|
|
47
|
+
var lang = i18n.language.replace(/(\w+).*/, "$1");
|
|
48
|
+
return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(Wrapper, {
|
|
49
|
+
children: [
|
|
50
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsxs)(_pijmaCore.Flex, {
|
|
51
|
+
p: 0,
|
|
52
|
+
m: 0,
|
|
53
|
+
justify: "space-between",
|
|
54
|
+
children: [
|
|
55
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsxs)("div", {
|
|
56
|
+
children: [
|
|
57
|
+
"\xa9 ",
|
|
58
|
+
new Date().getFullYear(),
|
|
59
|
+
", ",
|
|
60
|
+
t("footer:qiwi"),
|
|
61
|
+
" № 2241"
|
|
62
|
+
]
|
|
63
|
+
}),
|
|
64
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsx)(References, {
|
|
65
|
+
href: email || "/#",
|
|
66
|
+
children: t("footer:support")
|
|
67
|
+
})
|
|
68
|
+
]
|
|
69
|
+
}),
|
|
70
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsxs)(_pijmaCore.Flex, {
|
|
71
|
+
p: 0,
|
|
72
|
+
m: 0,
|
|
73
|
+
justify: "space-between",
|
|
74
|
+
children: [
|
|
75
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsx)("span", {
|
|
76
|
+
children: "\xa0"
|
|
77
|
+
}),
|
|
78
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsxs)("span", {
|
|
79
|
+
children: [
|
|
80
|
+
lang === "ru" ? /*#__PURE__*/ (0, _jsxRuntime.jsx)("span", {
|
|
81
|
+
children: "РУС"
|
|
82
|
+
}) : /*#__PURE__*/ (0, _jsxRuntime.jsx)("a", {
|
|
83
|
+
style: {
|
|
84
|
+
paddingLeft: 0
|
|
85
|
+
},
|
|
86
|
+
id: "switch-ru",
|
|
87
|
+
href: location.href,
|
|
88
|
+
onClick: function() {
|
|
89
|
+
return setLang("ru");
|
|
90
|
+
},
|
|
91
|
+
children: "РУС"
|
|
92
|
+
}),
|
|
93
|
+
" ",
|
|
94
|
+
"/",
|
|
95
|
+
" ",
|
|
96
|
+
lang === "en" ? /*#__PURE__*/ (0, _jsxRuntime.jsx)("span", {
|
|
97
|
+
children: "EN"
|
|
98
|
+
}) : /*#__PURE__*/ (0, _jsxRuntime.jsx)("a", {
|
|
99
|
+
style: {
|
|
100
|
+
paddingLeft: 0
|
|
101
|
+
},
|
|
102
|
+
id: "switch-en",
|
|
103
|
+
href: location.href,
|
|
104
|
+
onClick: function() {
|
|
105
|
+
return setLang("en");
|
|
106
|
+
},
|
|
107
|
+
children: "EN"
|
|
108
|
+
})
|
|
109
|
+
]
|
|
110
|
+
})
|
|
111
|
+
]
|
|
112
|
+
})
|
|
113
|
+
]
|
|
114
|
+
});
|
|
115
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "Header", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return Header;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _inherits = require("@swc/helpers/lib/_inherits.js").default;
|
|
12
|
+
var _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
13
|
+
var _taggedTemplateLiteralLoose = require("@swc/helpers/lib/_tagged_template_literal_loose.js").default;
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
var _pijmaCore = require("@qiwi/pijma-core");
|
|
16
|
+
var _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
17
|
+
var _logo = require("../logo/index.js");
|
|
18
|
+
var _navigationMenu = require("../navigation-menu/index.js");
|
|
19
|
+
var _product = require("../product/index.js");
|
|
20
|
+
var _spinner = require("../spinner/index.js");
|
|
21
|
+
var _theme = require("../theme/index.js");
|
|
22
|
+
var _userProfile = require("../user-profile/index.js");
|
|
23
|
+
function _templateObject() {
|
|
24
|
+
var data = _taggedTemplateLiteralLoose([
|
|
25
|
+
"\n width: 100%;\n position: relative;\n top: 0;\n left: 0;\n height: 80px;\n padding: 0;\n margin: 0 auto;\n color: ",
|
|
26
|
+
";\n background: ",
|
|
27
|
+
";\n font-size: 11pt;\n"
|
|
28
|
+
]);
|
|
29
|
+
_templateObject = function _templateObject() {
|
|
30
|
+
return data;
|
|
31
|
+
};
|
|
32
|
+
return data;
|
|
33
|
+
}
|
|
34
|
+
function _templateObject1() {
|
|
35
|
+
var data = _taggedTemplateLiteralLoose([
|
|
36
|
+
"\n width: ",
|
|
37
|
+
";\n margin: 0 auto;\n height: 100%;\n"
|
|
38
|
+
]);
|
|
39
|
+
_templateObject1 = function _templateObject1() {
|
|
40
|
+
return data;
|
|
41
|
+
};
|
|
42
|
+
return data;
|
|
43
|
+
}
|
|
44
|
+
var HeaderContainer = (0, _pijmaCore.styled)("header")(_templateObject(), _theme.COLOR.TEXT.Secondary2, _theme.COLOR.BACKGROUND.Primary);
|
|
45
|
+
var HeaderContent = (0, _pijmaCore.styled)("div")(_templateObject1(), _theme.DIMEN.SITE_WIDTH);
|
|
46
|
+
var Header = /*#__PURE__*/ function(Component) {
|
|
47
|
+
"use strict";
|
|
48
|
+
_inherits(Header, Component);
|
|
49
|
+
function Header() {
|
|
50
|
+
return Component.apply(this, arguments);
|
|
51
|
+
}
|
|
52
|
+
var _proto = Header.prototype;
|
|
53
|
+
_proto.render = function render() {
|
|
54
|
+
var _props = this.props, isLoading = _props.isLoading, title = _props.title, selectorData = _props.selectorData, link = _props.link, navItems = _props.navItems, navActiveItem = _props.navActiveItem, userName = _props.userName, onItemChange = _props.onItemChange, onLogout = _props.onLogout;
|
|
55
|
+
return /*#__PURE__*/ (0, _jsxRuntime.jsx)(HeaderContainer, {
|
|
56
|
+
children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(HeaderContent, {
|
|
57
|
+
children: isLoading ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Flex, {
|
|
58
|
+
justify: "center",
|
|
59
|
+
align: "center",
|
|
60
|
+
css: {
|
|
61
|
+
height: "100%"
|
|
62
|
+
},
|
|
63
|
+
children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_spinner.B2bSpinner, {})
|
|
64
|
+
}) : /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_pijmaCore.Flex, {
|
|
65
|
+
p: 0,
|
|
66
|
+
m: 0,
|
|
67
|
+
justify: "space-between",
|
|
68
|
+
align: "center",
|
|
69
|
+
children: [
|
|
70
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsxs)(_pijmaCore.Flex, {
|
|
71
|
+
align: "center",
|
|
72
|
+
children: [
|
|
73
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.FlexItem, {
|
|
74
|
+
mr: 10,
|
|
75
|
+
children: /*#__PURE__*/ (0, _jsxRuntime.jsx)("a", {
|
|
76
|
+
href: "http://" + window.location.host + "/service/core/merchants",
|
|
77
|
+
children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_logo.Logo, {})
|
|
78
|
+
})
|
|
79
|
+
}),
|
|
80
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsx)(_product.Product, {
|
|
81
|
+
title: title,
|
|
82
|
+
selectorData: selectorData,
|
|
83
|
+
onChange: onItemChange
|
|
84
|
+
}),
|
|
85
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.FlexItem, {
|
|
86
|
+
ml: 10,
|
|
87
|
+
p: 0,
|
|
88
|
+
children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_navigationMenu.NavigationMenu, {
|
|
89
|
+
link: link,
|
|
90
|
+
items: navItems,
|
|
91
|
+
active: navActiveItem && navActiveItem.pathname || ""
|
|
92
|
+
})
|
|
93
|
+
})
|
|
94
|
+
]
|
|
95
|
+
}),
|
|
96
|
+
/*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.FlexItem, {
|
|
97
|
+
m: 0,
|
|
98
|
+
p: 0,
|
|
99
|
+
children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_userProfile.UserProfile, {
|
|
100
|
+
onClick: onLogout,
|
|
101
|
+
userName: userName
|
|
102
|
+
})
|
|
103
|
+
})
|
|
104
|
+
]
|
|
105
|
+
})
|
|
106
|
+
})
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
return Header;
|
|
110
|
+
}(_react.Component);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "B2bIcon", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return B2bIcon;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _inherits = require("@swc/helpers/lib/_inherits.js").default;
|
|
12
|
+
var _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
13
|
+
var _taggedTemplateLiteralLoose = require("@swc/helpers/lib/_tagged_template_literal_loose.js").default;
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
var _pijmaCore = require("@qiwi/pijma-core");
|
|
16
|
+
var _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
17
|
+
function _templateObject() {
|
|
18
|
+
var data = _taggedTemplateLiteralLoose([
|
|
19
|
+
"\n width: ",
|
|
20
|
+
"px;\n height: ",
|
|
21
|
+
"px;\n float: left;\n display: inline-block;\n"
|
|
22
|
+
]);
|
|
23
|
+
_templateObject = function _templateObject() {
|
|
24
|
+
return data;
|
|
25
|
+
};
|
|
26
|
+
return data;
|
|
27
|
+
}
|
|
28
|
+
var IconSizeWrapper = (0, _pijmaCore.styled)("div")(_templateObject(), function(props) {
|
|
29
|
+
return props.w ? props.w : "24";
|
|
30
|
+
}, function(props) {
|
|
31
|
+
return props.h ? props.h : "24";
|
|
32
|
+
});
|
|
33
|
+
var B2bIcon = /*#__PURE__*/ function(Component) {
|
|
34
|
+
"use strict";
|
|
35
|
+
_inherits(B2bIcon, Component);
|
|
36
|
+
function B2bIcon() {
|
|
37
|
+
return Component.apply(this, arguments);
|
|
38
|
+
}
|
|
39
|
+
var _proto = B2bIcon.prototype;
|
|
40
|
+
_proto.render = function render() {
|
|
41
|
+
var _props = this.props, icon = _props.icon, iconColor = _props.iconColor, h = _props.h, w = _props.w;
|
|
42
|
+
return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_react.Fragment, {
|
|
43
|
+
children: typeof icon === "string" ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(IconSizeWrapper, {
|
|
44
|
+
h: h,
|
|
45
|
+
w: w,
|
|
46
|
+
children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Icon, {
|
|
47
|
+
name: icon,
|
|
48
|
+
color: iconColor
|
|
49
|
+
})
|
|
50
|
+
}) : icon
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
return B2bIcon;
|
|
54
|
+
}(_react.Component);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
var _exportStar = require("@swc/helpers/lib/_export_star.js").default;
|
|
6
|
+
_exportStar(require("@qiwi/pijma-core"), exports);
|
|
7
|
+
_exportStar(require("./amount/index.js"), exports);
|
|
8
|
+
_exportStar(require("./divider/index.js"), exports);
|
|
9
|
+
_exportStar(require("./dropdown/index.js"), exports);
|
|
10
|
+
_exportStar(require("./logo/index.js"), exports);
|
|
11
|
+
_exportStar(require("./obfuscatedPan/index.js"), exports);
|
|
12
|
+
_exportStar(require("./offset/index.js"), exports);
|
|
13
|
+
_exportStar(require("./spinner/index.js"), exports);
|
|
14
|
+
_exportStar(require("./spreader/index.js"), exports);
|
|
15
|
+
_exportStar(require("./step/index.js"), exports);
|
|
16
|
+
_exportStar(require("./trinary-check-icon/index.js"), exports);
|
|
17
|
+
_exportStar(require("./checkbox/index.js"), exports);
|
|
18
|
+
_exportStar(require("./chip/index.js"), exports);
|
|
19
|
+
_exportStar(require("./date-picker/index.js"), exports);
|
|
20
|
+
_exportStar(require("./date-range-picker/index.js"), exports);
|
|
21
|
+
_exportStar(require("./error-message/index.js"), exports);
|
|
22
|
+
_exportStar(require("./file-uploader/index.js"), exports);
|
|
23
|
+
_exportStar(require("./footer/index.js"), exports);
|
|
24
|
+
_exportStar(require("./icon/index.js"), exports);
|
|
25
|
+
_exportStar(require("./menu/index.js"), exports);
|
|
26
|
+
_exportStar(require("./navigation-menu/index.js"), exports);
|
|
27
|
+
_exportStar(require("./paginator/index.js"), exports);
|
|
28
|
+
_exportStar(require("./product/index.js"), exports);
|
|
29
|
+
_exportStar(require("./select/index.js"), exports);
|
|
30
|
+
_exportStar(require("./stepper/index.js"), exports);
|
|
31
|
+
_exportStar(require("./user-profile/index.js"), exports);
|
|
32
|
+
_exportStar(require("./header/index.js"), exports);
|
|
33
|
+
_exportStar(require("./empty-page/index.js"), exports);
|
|
34
|
+
_exportStar(require("./table/index.js"), exports);
|