@prom-ui/core 0.0.100 → 0.0.102-alpha.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/Avatar/cjs/index.development.js +0 -2
- package/Avatar/cjs/index.development.v2.js +151 -0
- package/Avatar/cjs/index.production.js +1 -1
- package/Avatar/cjs/index.production.v2.js +1 -0
- package/Avatar/cjs/style.development.v2.css +1 -0
- package/Avatar/cjs/style.production.v2.css +1 -0
- package/Avatar/index.js +14 -2
- package/Avatar/package.json +1 -1
- package/Body/cjs/index.development.js +0 -2
- package/Body/cjs/index.development.v2.js +12 -0
- package/Body/cjs/index.production.js +1 -1
- package/Body/cjs/index.production.v2.js +1 -0
- package/Body/cjs/style.development.v2.css +1 -0
- package/Body/cjs/style.production.v2.css +1 -0
- package/Body/index.js +14 -2
- package/Body/package.json +1 -1
- package/Box/cjs/index.development.js +0 -2
- package/Box/cjs/index.development.v2.js +18 -0
- package/Box/cjs/index.production.js +1 -1
- package/Box/cjs/index.production.v2.js +1 -0
- package/Box/cjs/style.development.v2.css +1 -0
- package/Box/cjs/style.production.v2.css +1 -0
- package/Box/index.js +14 -2
- package/Box/package.json +1 -1
- package/Button/cjs/index.development.js +0 -2
- package/Button/cjs/index.development.v2.js +93 -0
- package/Button/cjs/index.production.js +1 -1
- package/Button/cjs/index.production.v2.js +1 -0
- package/Button/cjs/style.development.v2.css +1 -0
- package/Button/cjs/style.production.v2.css +1 -0
- package/Button/index.js +14 -2
- package/Button/package.json +1 -1
- package/ButtonPageUp/cjs/index.development.v2.js +174 -0
- package/ButtonPageUp/cjs/index.production.v2.js +1 -0
- package/ButtonPageUp/index.js +2 -2
- package/ButtonPageUp/package.json +1 -1
- package/Checkbox/cjs/index.development.js +0 -2
- package/Checkbox/cjs/index.development.v2.js +109 -0
- package/Checkbox/cjs/index.production.js +1 -1
- package/Checkbox/cjs/index.production.v2.js +1 -0
- package/Checkbox/cjs/style.development.v2.css +1 -0
- package/Checkbox/cjs/style.production.v2.css +1 -0
- package/Checkbox/index.js +14 -2
- package/Checkbox/package.json +1 -1
- package/Flex/cjs/index.development.js +0 -2
- package/Flex/cjs/index.development.v2.js +23 -0
- package/Flex/cjs/index.production.js +1 -1
- package/Flex/cjs/index.production.v2.js +1 -0
- package/Flex/cjs/style.development.v2.css +1 -0
- package/Flex/cjs/style.production.v2.css +1 -0
- package/Flex/index.js +14 -2
- package/Flex/package.json +1 -1
- package/Grid/cjs/index.development.js +0 -2
- package/Grid/cjs/index.development.v2.js +23 -0
- package/Grid/cjs/index.production.js +1 -1
- package/Grid/cjs/index.production.v2.js +1 -0
- package/Grid/cjs/style.development.v2.css +1 -0
- package/Grid/cjs/style.production.v2.css +1 -0
- package/Grid/index.js +14 -2
- package/Grid/package.json +1 -1
- package/Icon/cjs/index.development.js +0 -2
- package/Icon/cjs/index.development.v2.js +39 -0
- package/Icon/cjs/index.production.js +1 -1
- package/Icon/cjs/index.production.v2.js +1 -0
- package/Icon/cjs/style.development.v2.css +1 -0
- package/Icon/cjs/style.production.v2.css +1 -0
- package/Icon/index.js +14 -2
- package/Icon/package.json +1 -1
- package/Image/cjs/index.development.js +0 -2
- package/Image/cjs/index.development.v2.js +18 -0
- package/Image/cjs/index.production.js +1 -1
- package/Image/cjs/index.production.v2.js +1 -0
- package/Image/cjs/style.development.v2.css +1 -0
- package/Image/cjs/style.production.v2.css +1 -0
- package/Image/index.js +14 -2
- package/Image/package.json +1 -1
- package/ImageEmoji/cjs/index.development.v2.js +90 -0
- package/ImageEmoji/cjs/index.production.v2.js +1 -0
- package/ImageEmoji/index.js +2 -2
- package/ImageEmoji/package.json +1 -1
- package/Input/cjs/index.development.js +0 -2
- package/Input/cjs/index.development.v2.js +37 -0
- package/Input/cjs/index.production.js +1 -1
- package/Input/cjs/index.production.v2.js +1 -0
- package/Input/cjs/style.development.v2.css +1 -0
- package/Input/cjs/style.production.v2.css +1 -0
- package/Input/index.js +14 -2
- package/Input/package.json +1 -1
- package/KeyPress/cjs/index.development.v2.js +56 -0
- package/KeyPress/cjs/index.production.v2.js +1 -0
- package/KeyPress/index.js +2 -2
- package/KeyPress/package.json +1 -1
- package/Line/cjs/index.development.js +0 -2
- package/Line/cjs/index.development.v2.js +18 -0
- package/Line/cjs/index.production.js +1 -1
- package/Line/cjs/index.production.v2.js +1 -0
- package/Line/cjs/style.development.v2.css +1 -0
- package/Line/cjs/style.production.v2.css +1 -0
- package/Line/index.js +14 -2
- package/Line/package.json +1 -1
- package/Link/cjs/index.development.js +0 -2
- package/Link/cjs/index.development.v2.js +20 -0
- package/Link/cjs/index.production.js +1 -1
- package/Link/cjs/index.production.v2.js +1 -0
- package/Link/cjs/style.development.v2.css +1 -0
- package/Link/cjs/style.production.v2.css +1 -0
- package/Link/index.js +14 -2
- package/Link/package.json +1 -1
- package/List/cjs/index.development.js +0 -2
- package/List/cjs/index.development.v2.js +23 -0
- package/List/cjs/index.production.js +1 -1
- package/List/cjs/index.production.v2.js +1 -0
- package/List/cjs/style.development.v2.css +1 -0
- package/List/cjs/style.production.v2.css +1 -0
- package/List/index.js +14 -2
- package/List/package.json +1 -1
- package/Media/cjs/index.development.v2.js +98 -0
- package/Media/cjs/index.production.v2.js +1 -0
- package/Media/index.js +2 -2
- package/Media/package.json +1 -1
- package/OutsideClick/cjs/index.development.v2.js +84 -0
- package/OutsideClick/cjs/index.production.v2.js +1 -0
- package/OutsideClick/index.js +2 -2
- package/OutsideClick/package.json +1 -1
- package/Overlay/cjs/index.development.js +0 -2
- package/Overlay/cjs/index.development.v2.js +473 -0
- package/Overlay/cjs/index.production.js +1 -1
- package/Overlay/cjs/index.production.v2.js +1 -0
- package/Overlay/cjs/style.development.v2.css +1 -0
- package/Overlay/cjs/style.production.v2.css +1 -0
- package/Overlay/index.js +14 -2
- package/Overlay/package.json +1 -1
- package/Picture/cjs/index.development.js +0 -2
- package/Picture/cjs/index.development.v2.js +23 -0
- package/Picture/cjs/index.production.js +1 -1
- package/Picture/cjs/index.production.v2.js +1 -0
- package/Picture/cjs/style.development.v2.css +1 -0
- package/Picture/cjs/style.production.v2.css +1 -0
- package/Picture/index.js +14 -2
- package/Picture/package.json +1 -1
- package/PortableOverlay/cjs/index.development.js +0 -2
- package/PortableOverlay/cjs/index.development.v2.js +109 -0
- package/PortableOverlay/cjs/index.production.js +1 -1
- package/PortableOverlay/cjs/index.production.v2.js +1 -0
- package/PortableOverlay/cjs/style.development.v2.css +1 -0
- package/PortableOverlay/cjs/style.production.v2.css +1 -0
- package/PortableOverlay/index.js +14 -2
- package/PortableOverlay/package.json +1 -1
- package/Portal/cjs/index.development.v2.js +57 -0
- package/Portal/cjs/index.production.v2.js +1 -0
- package/Portal/index.js +2 -2
- package/Portal/package.json +1 -1
- package/QRCode/cjs/index.development.js +0 -2
- package/QRCode/cjs/index.development.v2.js +50 -0
- package/QRCode/cjs/index.production.js +1 -1
- package/QRCode/cjs/index.production.v2.js +1 -0
- package/QRCode/cjs/style.development.v2.css +1 -0
- package/QRCode/cjs/style.production.v2.css +1 -0
- package/QRCode/index.js +14 -2
- package/QRCode/package.json +1 -1
- package/Rating/cjs/index.development.js +0 -2
- package/Rating/cjs/index.development.v2.js +105 -0
- package/Rating/cjs/index.production.js +1 -1
- package/Rating/cjs/index.production.v2.js +1 -0
- package/Rating/cjs/style.development.v2.css +1 -0
- package/Rating/cjs/style.production.v2.css +1 -0
- package/Rating/index.js +14 -2
- package/Rating/package.json +1 -1
- package/SafeQuery/cjs/index.development.js +0 -2
- package/SafeQuery/cjs/index.development.v2.js +179 -0
- package/SafeQuery/cjs/index.production.js +1 -1
- package/SafeQuery/cjs/index.production.v2.js +1 -0
- package/SafeQuery/cjs/style.development.v2.css +1 -0
- package/SafeQuery/cjs/style.production.v2.css +1 -0
- package/SafeQuery/index.js +14 -2
- package/SafeQuery/package.json +1 -1
- package/Scroll/cjs/index.development.js +0 -2
- package/Scroll/cjs/index.development.v2.js +38 -0
- package/Scroll/cjs/index.production.js +1 -1
- package/Scroll/cjs/index.production.v2.js +1 -0
- package/Scroll/cjs/style.development.v2.css +1 -0
- package/Scroll/cjs/style.production.v2.css +1 -0
- package/Scroll/index.js +14 -2
- package/Scroll/package.json +1 -1
- package/ScrollControls/cjs/index.development.js +0 -2
- package/ScrollControls/cjs/index.development.v2.js +241 -0
- package/ScrollControls/cjs/index.production.js +1 -1
- package/ScrollControls/cjs/index.production.v2.js +1 -0
- package/ScrollControls/cjs/style.development.v2.css +1 -0
- package/ScrollControls/cjs/style.production.v2.css +1 -0
- package/ScrollControls/index.js +14 -2
- package/ScrollControls/package.json +1 -1
- package/SideOverlay/cjs/index.development.js +0 -2
- package/SideOverlay/cjs/index.development.v2.js +208 -0
- package/SideOverlay/cjs/index.production.js +1 -1
- package/SideOverlay/cjs/index.production.v2.js +1 -0
- package/SideOverlay/cjs/style.development.v2.css +1 -0
- package/SideOverlay/cjs/style.production.v2.css +1 -0
- package/SideOverlay/index.js +14 -2
- package/SideOverlay/package.json +1 -1
- package/SimpleSlider/cjs/index.development.js +0 -2
- package/SimpleSlider/cjs/index.development.v2.js +433 -0
- package/SimpleSlider/cjs/index.production.js +1 -1
- package/SimpleSlider/cjs/index.production.v2.js +1 -0
- package/SimpleSlider/cjs/style.development.v2.css +1 -0
- package/SimpleSlider/cjs/style.production.v2.css +1 -0
- package/SimpleSlider/index.js +14 -2
- package/SimpleSlider/package.json +1 -1
- package/Skeleton/cjs/index.development.js +0 -2
- package/Skeleton/cjs/index.development.v2.js +101 -0
- package/Skeleton/cjs/index.production.js +1 -1
- package/Skeleton/cjs/index.production.v2.js +1 -0
- package/Skeleton/cjs/style.development.v2.css +1 -0
- package/Skeleton/cjs/style.production.v2.css +1 -0
- package/Skeleton/index.js +14 -2
- package/Skeleton/package.json +1 -1
- package/Spinner/cjs/index.development.js +0 -2
- package/Spinner/cjs/index.development.v2.js +83 -0
- package/Spinner/cjs/index.production.js +1 -1
- package/Spinner/cjs/index.production.v2.js +1 -0
- package/Spinner/cjs/style.development.v2.css +1 -0
- package/Spinner/cjs/style.production.v2.css +1 -0
- package/Spinner/index.d.ts +5 -0
- package/Spinner/index.js +14 -2
- package/Spinner/package.json +1 -1
- package/Text/cjs/index.development.js +1 -3
- package/Text/cjs/index.development.v2.js +18 -0
- package/Text/cjs/index.production.js +1 -1
- package/Text/cjs/index.production.v2.js +1 -0
- package/Text/cjs/style.development.css +1 -1
- package/Text/cjs/style.development.v2.css +1 -0
- package/Text/cjs/style.production.css +1 -1
- package/Text/cjs/style.production.v2.css +1 -0
- package/Text/index.js +14 -2
- package/Text/package.json +1 -1
- package/TextEmoji/cjs/index.development.v2.js +94 -0
- package/TextEmoji/cjs/index.production.v2.js +1 -0
- package/TextEmoji/index.js +2 -2
- package/TextEmoji/package.json +1 -1
- package/Tooltip/cjs/index.development.js +0 -2
- package/Tooltip/cjs/index.development.v2.js +149 -0
- package/Tooltip/cjs/index.production.js +1 -1
- package/Tooltip/cjs/index.production.v2.js +1 -0
- package/Tooltip/cjs/style.development.v2.css +1 -0
- package/Tooltip/cjs/style.production.v2.css +1 -0
- package/Tooltip/index.js +14 -2
- package/Tooltip/package.json +1 -1
- package/Tumbler/cjs/index.development.js +0 -2
- package/Tumbler/cjs/index.development.v2.js +108 -0
- package/Tumbler/cjs/index.production.js +1 -1
- package/Tumbler/cjs/index.production.v2.js +1 -0
- package/Tumbler/cjs/style.development.v2.css +1 -0
- package/Tumbler/cjs/style.production.v2.css +1 -0
- package/Tumbler/index.js +14 -2
- package/Tumbler/package.json +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var reactTransitionGroup = require('react-transition-group');
|
|
7
|
+
var classNames = require('classnames');
|
|
8
|
+
var Spinner = require('@prom-ui/core/Spinner');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
function _interopNamespace(e) {
|
|
13
|
+
if (e && e.__esModule) return e;
|
|
14
|
+
var n = Object.create(null);
|
|
15
|
+
if (e) {
|
|
16
|
+
Object.keys(e).forEach(function (k) {
|
|
17
|
+
if (k !== 'default') {
|
|
18
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
19
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return e[k]; }
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
n["default"] = e;
|
|
27
|
+
return Object.freeze(n);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
31
|
+
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
32
|
+
|
|
33
|
+
/******************************************************************************
|
|
34
|
+
Copyright (c) Microsoft Corporation.
|
|
35
|
+
|
|
36
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
37
|
+
purpose with or without fee is hereby granted.
|
|
38
|
+
|
|
39
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
40
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
41
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
42
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
43
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
44
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
45
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
46
|
+
***************************************************************************** */
|
|
47
|
+
|
|
48
|
+
var __assign = function() {
|
|
49
|
+
__assign = Object.assign || function __assign(t) {
|
|
50
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
51
|
+
s = arguments[i];
|
|
52
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
55
|
+
};
|
|
56
|
+
return __assign.apply(this, arguments);
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
function __rest(s, e) {
|
|
60
|
+
var t = {};
|
|
61
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
62
|
+
t[p] = s[p];
|
|
63
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
64
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
65
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
66
|
+
t[p[i]] = s[p[i]];
|
|
67
|
+
}
|
|
68
|
+
return t;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
var css = {"root":"Tumbler__root___tbqBR","view":"Tumbler__view___mdLlw","viewCircle":"Tumbler__viewCircle___2fnqc","input":"Tumbler__input___7lx3h","inputLoading":"Tumbler__inputLoading___KyFmD","spinner":"Tumbler__spinner___2VatE","spinnerEnterActive":"Tumbler__spinnerEnterActive___CL5Zt","spinnerEnterDone":"Tumbler__spinnerEnterDone___-3a-o","spinnerExitActive":"Tumbler__spinnerExitActive___MjHhx","spinnerExitDone":"Tumbler__spinnerExitDone___zzBA4"};
|
|
72
|
+
|
|
73
|
+
var Tumbler = React__namespace.forwardRef(function (_a, ref) {
|
|
74
|
+
var _b;
|
|
75
|
+
|
|
76
|
+
var className = _a.className,
|
|
77
|
+
_c = _a.loading,
|
|
78
|
+
loading = _c === void 0 ? false : _c,
|
|
79
|
+
_d = _a.type,
|
|
80
|
+
type = _d === void 0 ? 'checkbox' : _d,
|
|
81
|
+
props = __rest(_a, ["className", "loading", "type"]);
|
|
82
|
+
|
|
83
|
+
return React__namespace.createElement("div", {
|
|
84
|
+
className: classNames__default["default"](css.root, className)
|
|
85
|
+
}, React__namespace.createElement("input", __assign({
|
|
86
|
+
ref: ref,
|
|
87
|
+
className: classNames__default["default"](css.input, (_b = {}, _b[css.inputLoading] = loading, _b)),
|
|
88
|
+
type: type
|
|
89
|
+
}, props)), React__namespace.createElement("div", {
|
|
90
|
+
className: css.view
|
|
91
|
+
}, React__namespace.createElement("div", {
|
|
92
|
+
className: css.viewCircle
|
|
93
|
+
}, React__namespace.createElement(reactTransitionGroup.CSSTransition, {
|
|
94
|
+
in: loading,
|
|
95
|
+
timeout: 100,
|
|
96
|
+
classNames: {
|
|
97
|
+
enterActive: css.spinnerEnterActive,
|
|
98
|
+
enterDone: css.spinnerEnterDone,
|
|
99
|
+
exitActive: css.spinnerExitActive,
|
|
100
|
+
exitDone: css.spinnerExitDone
|
|
101
|
+
},
|
|
102
|
+
unmountOnExit: true
|
|
103
|
+
}, React__namespace.createElement(Spinner.Spinner, {
|
|
104
|
+
className: css.spinner
|
|
105
|
+
})))));
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
exports.Tumbler = Tumbler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-transition-group"),r=require("classnames"),n=require("@prom-ui/core/Spinner");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var c=o(e),i=a(r),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},l.apply(this,arguments)};var u="_17yYC",s="w66K2",f="xvJqd",p="Kg91O",m="y1iJD",y="CNMl7",d="C2P5b",v="cgEXP",O="k-mzv",b="XD0-8",g=c.forwardRef((function(e,r){var a,o=e.className,g=e.loading,j=void 0!==g&&g,E=e.type,x=void 0===E?"checkbox":E,N=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["className","loading","type"]);return c.createElement("div",{className:i.default(u,o)},c.createElement("input",l({ref:r,className:i.default(p,(a={},a[m]=j,a)),type:x},N)),c.createElement("div",{className:s},c.createElement("div",{className:f},c.createElement(t.CSSTransition,{in:j,timeout:100,classNames:{enterActive:d,enterDone:v,exitActive:O,exitDone:b},unmountOnExit:!0},c.createElement(n.Spinner,{className:y})))))}));exports.Tumbler=g
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-transition-group"),r=require("classnames"),n=require("@prom-ui/core/Spinner");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var c=o(e),i=a(r),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},l.apply(this,arguments)};var u="_17yYC",s="w66K2",f="xvJqd",p="Kg91O",m="y1iJD",y="CNMl7",d="C2P5b",v="cgEXP",O="k-mzv",b="XD0-8",g=c.forwardRef((function(e,r){var a,o=e.className,g=e.loading,j=void 0!==g&&g,E=e.type,x=void 0===E?"checkbox":E,N=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["className","loading","type"]);return c.createElement("div",{className:i.default(u,o)},c.createElement("input",l({ref:r,className:i.default(p,(a={},a[m]=j,a)),type:x},N)),c.createElement("div",{className:s},c.createElement("div",{className:f},c.createElement(t.CSSTransition,{in:j,timeout:100,classNames:{enterActive:d,enterDone:v,exitActive:O,exitDone:b},unmountOnExit:!0},c.createElement(n.Spinner,{className:y})))))}));exports.Tumbler=g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-transition-group"),r=require("classnames"),n=require("@prom-ui/core/Spinner");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var c=o(e),i=a(r),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},l.apply(this,arguments)};var u="tbqBR",s="mdLlw",f="_2fnqc",p="_7lx3h",m="KyFmD",d="_2VatE",y="CL5Zt",b="_-3a-o",O="MjHhx",v="zzBA4",j=c.forwardRef((function(e,r){var a,o=e.className,j=e.loading,g=void 0!==j&&j,x=e.type,E=void 0===x?"checkbox":x,h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["className","loading","type"]);return c.createElement("div",{className:i.default(u,o)},c.createElement("input",l({ref:r,className:i.default(p,(a={},a[m]=g,a)),type:E},h)),c.createElement("div",{className:s},c.createElement("div",{className:f},c.createElement(t.CSSTransition,{in:g,timeout:100,classNames:{enterActive:y,enterDone:b,exitActive:O,exitDone:v},unmountOnExit:!0},c.createElement(n.Spinner,{className:d})))))}));exports.Tumbler=j;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.Tumbler__root___tbqBR{position:relative;display:block;width:34px;height:20px;padding:3px 0;box-sizing:border-box;margin:calc((var(--pds-line-height) - 20px)/2)0;flex-shrink:0}.Tumbler__view___mdLlw{height:100%;border-radius:1em;background:var(--black-400);transition:background-color 120ms ease-in-out}.Tumbler__viewCircle___2fnqc{box-sizing:border-box;position:absolute;top:0;left:0;width:20px;height:20px;border-radius:100%;transform:translateX(0);display:flex;align-items:center;justify-content:center;color:var(--violet-500);background:var(--white);border:1px var(--black-400) solid;box-shadow:1px 1px 4px 0 var(--black-400);transition:120ms ease-in-out;transition-property:background-color,border-color,transform}.Tumbler__input___7lx3h{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;padding:0;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:1;cursor:pointer}.Tumbler__input___7lx3h:disabled{cursor:default}.Tumbler__input___7lx3h:focus-visible+.Tumbler__view___mdLlw .Tumbler__viewCircle___2fnqc{outline:var(--pds-round-xxs) auto Highlight;outline:var(--pds-round-xxs) auto -webkit-focus-ring-color}.Tumbler__input___7lx3h:checked+.Tumbler__view___mdLlw{background-color:var(--violet-50)}.Tumbler__input___7lx3h:checked+.Tumbler__view___mdLlw .Tumbler__viewCircle___2fnqc{transform:translateX(14px);color:var(--white);background-color:var(--violet-500);border-color:var(--violet-500)}.Tumbler__input___7lx3h:disabled+.Tumbler__view___mdLlw{background-color:var(--black-200)}.Tumbler__input___7lx3h:disabled+.Tumbler__view___mdLlw .Tumbler__viewCircle___2fnqc{box-shadow:none;color:var(--violet-500);background-color:var(--black-400);border-color:var(--black-400)}.Tumbler__inputLoading___KyFmD{pointer-events:none;cursor:default}.Tumbler__spinner___2VatE{opacity:0;transition:opacity 100ms ease-in-out;width:1em;height:1em}.Tumbler__spinnerEnterActive___CL5Zt,.Tumbler__spinnerEnterDone___-3a-o{opacity:1}.Tumbler__spinnerExitActive___MjHhx,.Tumbler__spinnerExitDone___zzBA4{opacity:0}@media (hover){.Tumbler__input___7lx3h:hover+.Tumbler__view___mdLlw .Tumbler__viewCircle___2fnqc{border-color:var(--black-500)}.Tumbler__input___7lx3h:checked:hover+.Tumbler__view___mdLlw .Tumbler__viewCircle___2fnqc{border-color:var(--violet-500)}.Tumbler__input___7lx3h:disabled:hover+.Tumbler__view___mdLlw .Tumbler__viewCircle___2fnqc{border-color:var(--black-400)}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.tbqBR{position:relative;display:block;width:34px;height:20px;padding:3px 0;box-sizing:border-box;margin:calc((var(--pds-line-height) - 20px)/2)0;flex-shrink:0}.mdLlw{height:100%;border-radius:1em;background:var(--black-400);transition:background-color 120ms ease-in-out}._2fnqc{box-sizing:border-box;position:absolute;top:0;left:0;width:20px;height:20px;border-radius:100%;transform:translateX(0);display:flex;align-items:center;justify-content:center;color:var(--violet-500);background:var(--white);border:1px var(--black-400) solid;box-shadow:1px 1px 4px 0 var(--black-400);transition:120ms ease-in-out;transition-property:background-color,border-color,transform}._7lx3h{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;padding:0;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:1;cursor:pointer}._7lx3h:disabled{cursor:default}._7lx3h:focus-visible+.mdLlw ._2fnqc{outline:var(--pds-round-xxs) auto Highlight;outline:var(--pds-round-xxs) auto -webkit-focus-ring-color}._7lx3h:checked+.mdLlw{background-color:var(--violet-50)}._7lx3h:checked+.mdLlw ._2fnqc{transform:translateX(14px);color:var(--white);background-color:var(--violet-500);border-color:var(--violet-500)}._7lx3h:disabled+.mdLlw{background-color:var(--black-200)}._7lx3h:disabled+.mdLlw ._2fnqc{box-shadow:none;color:var(--violet-500);background-color:var(--black-400);border-color:var(--black-400)}.KyFmD{pointer-events:none;cursor:default}._2VatE{opacity:0;transition:opacity 100ms ease-in-out;width:1em;height:1em}.CL5Zt,._-3a-o{opacity:1}.MjHhx,.zzBA4{opacity:0}@media (hover){._7lx3h:hover+.mdLlw ._2fnqc{border-color:var(--black-500)}._7lx3h:checked:hover+.mdLlw ._2fnqc{border-color:var(--violet-500)}._7lx3h:disabled:hover+.mdLlw ._2fnqc{border-color:var(--black-400)}}
|
package/Tumbler/index.js
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
if (process.env.NODE_ENV === 'production') {
|
|
4
|
-
|
|
4
|
+
if (process.env.PROM_UI_CSS_HASH === 'v2') {
|
|
5
|
+
module.exports = require('./cjs/index.production.v2.js');
|
|
6
|
+
require('./cjs/style.production.v2.js');
|
|
7
|
+
} else {
|
|
8
|
+
module.exports = require('./cjs/index.production.js');
|
|
9
|
+
require('./cjs/style.production.js');
|
|
10
|
+
}
|
|
5
11
|
} else {
|
|
6
|
-
|
|
12
|
+
if (process.env.PROM_UI_CSS_HASH === 'v2') {
|
|
13
|
+
module.exports = require('./cjs/index.development.v2.js');
|
|
14
|
+
require('./cjs/style.development.v2.js');
|
|
15
|
+
} else {
|
|
16
|
+
module.exports = require('./cjs/index.development.js');
|
|
17
|
+
require('./cjs/style.development.js');
|
|
18
|
+
}
|
|
7
19
|
}
|
package/Tumbler/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prom-ui/core",
|
|
3
3
|
"author": "e.marchenko",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.102-alpha.0",
|
|
5
5
|
"description": "core ui blocks",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "jest",
|
|
8
8
|
"prebuild": "node ./preBuild.js",
|
|
9
|
-
"build": "NODE_ENV=development rollup --config ./rollup.config.js",
|
|
10
|
-
"postbuild": "NODE_ENV=production rollup --config ./rollup.config.js",
|
|
9
|
+
"build": "NODE_ENV=development rollup --config ./rollup.config.js && NODE_ENV=development CSS_HASH=v2 rollup --config ./rollup.config.js",
|
|
10
|
+
"postbuild": "NODE_ENV=production rollup --config ./rollup.config.js && NODE_ENV=production CSS_HASH=v2 rollup --config ./rollup.config.js",
|
|
11
11
|
"prepublishOnly": "npm run build"
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"optional": true
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "036ea427481d20af868c4bae3f238612324bd2db"
|
|
67
67
|
}
|