@prom-ui/core 0.0.51 → 0.0.60
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/Body/package.json +1 -1
- package/Box/package.json +1 -1
- package/Button/package.json +1 -1
- package/ButtonPageUp/package.json +1 -1
- package/Checkbox/package.json +1 -1
- package/Flex/package.json +1 -1
- package/Grid/package.json +1 -1
- package/Icon/package.json +1 -1
- package/Image/package.json +1 -1
- package/ImageEmoji/package.json +1 -1
- package/Input/package.json +1 -1
- package/KeyPress/package.json +1 -1
- package/Line/package.json +1 -1
- package/Link/package.json +1 -1
- package/List/package.json +1 -1
- package/Media/package.json +1 -1
- package/OutsideClick/package.json +1 -1
- package/Overlay/package.json +1 -1
- package/Picture/package.json +1 -1
- package/PortableOverlay/package.json +1 -1
- package/Portal/package.json +1 -1
- package/QRCode/cjs/index.development.js +52 -0
- package/QRCode/cjs/index.production.js +1 -0
- package/QRCode/cjs/style.development.css +1 -0
- package/QRCode/cjs/style.production.css +1 -0
- package/QRCode/index.d.ts +17 -0
- package/QRCode/index.js +7 -0
- package/QRCode/package.json +12 -0
- package/Rating/package.json +1 -1
- package/SafeQuery/package.json +1 -1
- package/Scroll/package.json +1 -1
- package/ScrollControls/package.json +1 -1
- package/SideOverlay/package.json +1 -1
- package/SimpleSlider/package.json +1 -1
- package/Skeleton/package.json +1 -1
- package/Spinner/package.json +1 -1
- package/Text/package.json +1 -1
- package/TextEmoji/package.json +1 -1
- package/Tooltip/package.json +1 -1
- package/Tumbler/package.json +1 -1
- package/package.json +3 -2
package/Body/package.json
CHANGED
package/Box/package.json
CHANGED
package/Button/package.json
CHANGED
package/Checkbox/package.json
CHANGED
package/Flex/package.json
CHANGED
package/Grid/package.json
CHANGED
package/Icon/package.json
CHANGED
package/Image/package.json
CHANGED
package/ImageEmoji/package.json
CHANGED
package/Input/package.json
CHANGED
package/KeyPress/package.json
CHANGED
package/Line/package.json
CHANGED
package/Link/package.json
CHANGED
package/List/package.json
CHANGED
package/Media/package.json
CHANGED
package/Overlay/package.json
CHANGED
package/Picture/package.json
CHANGED
package/Portal/package.json
CHANGED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var qrcode_react = require('qrcode.react');
|
|
7
|
+
|
|
8
|
+
function _interopNamespace(e) {
|
|
9
|
+
if (e && e.__esModule) return e;
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n["default"] = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
27
|
+
|
|
28
|
+
var css = {"root":"QRCode__root___ZFxvt"};
|
|
29
|
+
|
|
30
|
+
var QRCode = function (_a) {
|
|
31
|
+
var value = _a.value,
|
|
32
|
+
_b = _a.size,
|
|
33
|
+
size = _b === void 0 ? 100 : _b,
|
|
34
|
+
_c = _a.bgColor,
|
|
35
|
+
bgColor = _c === void 0 ? 'var(--white)' : _c,
|
|
36
|
+
_d = _a.fgColor,
|
|
37
|
+
fgColor = _d === void 0 ? 'var(--black-900)' : _d,
|
|
38
|
+
_e = _a.level,
|
|
39
|
+
level = _e === void 0 ? 'L' : _e;
|
|
40
|
+
return React__namespace.createElement(qrcode_react.QRCodeSVG, {
|
|
41
|
+
value: value,
|
|
42
|
+
size: size,
|
|
43
|
+
bgColor: bgColor,
|
|
44
|
+
fgColor: fgColor,
|
|
45
|
+
level: level,
|
|
46
|
+
className: css.root
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
exports.QRCode = QRCode;
|
|
51
|
+
|
|
52
|
+
require('./style.development.css');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("qrcode.react");function t(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var o=t(e),c="ZFxvt";exports.QRCode=function(e){var t=e.value,l=e.size,u=void 0===l?100:l,a=e.bgColor,i=void 0===a?"var(--white)":a,n=e.fgColor,v=void 0===n?"var(--black-900)":n,s=e.level,d=void 0===s?"L":s;return o.createElement(r.QRCodeSVG,{value:t,size:u,bgColor:i,fgColor:v,level:d,className:c})},require("./style.production.css");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.QRCode__root___ZFxvt{display:block}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ZFxvt{display:block}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare type QRCodeProps = {
|
|
3
|
+
/** Значение, например ссылка на сайт */
|
|
4
|
+
value: string;
|
|
5
|
+
/** Размер в px */
|
|
6
|
+
size?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Error correction
|
|
9
|
+
* <br>
|
|
10
|
+
* https://en.wikipedia.org/wiki/QR_code#Error_correction */
|
|
11
|
+
level?: 'L' | 'M' | 'Q' | 'H';
|
|
12
|
+
/** Цвет фона */
|
|
13
|
+
bgColor?: string;
|
|
14
|
+
/** Основной цвет */
|
|
15
|
+
fgColor?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const QRCode: React.FC<QRCodeProps>;
|
package/QRCode/index.js
ADDED
package/Rating/package.json
CHANGED
package/SafeQuery/package.json
CHANGED
package/Scroll/package.json
CHANGED
package/SideOverlay/package.json
CHANGED
package/Skeleton/package.json
CHANGED
package/Spinner/package.json
CHANGED
package/Text/package.json
CHANGED
package/TextEmoji/package.json
CHANGED
package/Tooltip/package.json
CHANGED
package/Tumbler/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prom-ui/core",
|
|
3
3
|
"author": "e.marchenko",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.60",
|
|
5
5
|
"description": "core ui blocks",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "jest",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"evokit-picture": "^3.2.0",
|
|
42
42
|
"evokit-text": "^3.2.0",
|
|
43
43
|
"intersection-observer": "^0.12.0",
|
|
44
|
+
"qrcode.react": "^3.1.0",
|
|
44
45
|
"react-easy-swipe": "^0.0.22",
|
|
45
46
|
"react-popper-tooltip": "^4.4.2",
|
|
46
47
|
"react-responsive": "^8.1.0",
|
|
@@ -62,5 +63,5 @@
|
|
|
62
63
|
"optional": true
|
|
63
64
|
}
|
|
64
65
|
},
|
|
65
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "ea42d65edbdee7a36c55754fd8fa9049569cd2a2"
|
|
66
67
|
}
|