@proscom/ui-react
Advanced tools
Comparing version 0.1.14 to 0.1.15
@@ -1,12 +0,2 @@ | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
import { __assign } from "tslib"; | ||
import { useEffect, useState } from 'react'; | ||
@@ -13,0 +3,0 @@ import { usePropsRef } from './usePropsRef'; |
@@ -1,12 +0,2 @@ | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
import { __assign } from "tslib"; | ||
import { useState } from 'react'; | ||
@@ -13,0 +3,0 @@ import { useFactoryRef } from './useFactoryRef'; |
@@ -1,12 +0,2 @@ | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
import { __assign } from "tslib"; | ||
import React from 'react'; | ||
@@ -13,0 +3,0 @@ export function renderSlot(slot, props, slotComponent) { |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./useClickOutside"), exports); | ||
__exportStar(require("./useControlledState"), exports); | ||
__exportStar(require("./useCountdown"), exports); | ||
__exportStar(require("./useDelegateFocus"), exports); | ||
__exportStar(require("./useFactoryRef"), exports); | ||
__exportStar(require("./useFocus"), exports); | ||
__exportStar(require("./useImmediateState"), exports); | ||
__exportStar(require("./useLiveInput"), exports); | ||
__exportStar(require("./useLatestCallbackRef"), exports); | ||
__exportStar(require("./useLatestCallbacksRef"), exports); | ||
__exportStar(require("./useMixinClassRef"), exports); | ||
__exportStar(require("./useMountedRef"), exports); | ||
__exportStar(require("./usePropsRef"), exports); | ||
__exportStar(require("./useTimeoutRef"), exports); | ||
__exportStar(require("./useTodayDate"), exports); | ||
__exportStar(require("./useToggle"), exports); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./useClickOutside"), exports); | ||
tslib_1.__exportStar(require("./useControlledState"), exports); | ||
tslib_1.__exportStar(require("./useCountdown"), exports); | ||
tslib_1.__exportStar(require("./useDelegateFocus"), exports); | ||
tslib_1.__exportStar(require("./useFactoryRef"), exports); | ||
tslib_1.__exportStar(require("./useFocus"), exports); | ||
tslib_1.__exportStar(require("./useImmediateState"), exports); | ||
tslib_1.__exportStar(require("./useLiveInput"), exports); | ||
tslib_1.__exportStar(require("./useLatestCallbackRef"), exports); | ||
tslib_1.__exportStar(require("./useLatestCallbacksRef"), exports); | ||
tslib_1.__exportStar(require("./useMixinClassRef"), exports); | ||
tslib_1.__exportStar(require("./useMountedRef"), exports); | ||
tslib_1.__exportStar(require("./usePropsRef"), exports); | ||
tslib_1.__exportStar(require("./useTimeoutRef"), exports); | ||
tslib_1.__exportStar(require("./useTodayDate"), exports); | ||
tslib_1.__exportStar(require("./useToggle"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useCountdownState = exports.useCountdown = void 0; | ||
var tslib_1 = require("tslib"); | ||
var react_1 = require("react"); | ||
@@ -61,3 +51,3 @@ var usePropsRef_1 = require("./usePropsRef"); | ||
var _a = react_1.useState(target ? target.getTime() - renderDate.getTime() : null), timeLeft = _a[0], setTimeLeft = _a[1]; | ||
useCountdown(target, __assign(__assign({}, options), { onTick: function (timeLeft) { | ||
useCountdown(target, tslib_1.__assign(tslib_1.__assign({}, options), { onTick: function (timeLeft) { | ||
var _a; | ||
@@ -64,0 +54,0 @@ if (timeLeft > 0) { |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useToggle = void 0; | ||
var tslib_1 = require("tslib"); | ||
var react_1 = require("react"); | ||
@@ -44,3 +34,3 @@ var useFactoryRef_1 = require("./useFactoryRef"); | ||
}); }); | ||
return __assign(__assign({}, funcsRef), { value: value, | ||
return tslib_1.__assign(tslib_1.__assign({}, funcsRef), { value: value, | ||
change: change }); | ||
@@ -47,0 +37,0 @@ } |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./hooks"), exports); | ||
__exportStar(require("./utils"), exports); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./hooks"), exports); | ||
tslib_1.__exportStar(require("./utils"), exports); | ||
//# sourceMappingURL=ui-react.js.map |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./renderSlot"), exports); | ||
__exportStar(require("./SingleTimeoutManager"), exports); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./renderSlot"), exports); | ||
tslib_1.__exportStar(require("./SingleTimeoutManager"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.renderSlot = void 0; | ||
var react_1 = __importDefault(require("react")); | ||
var tslib_1 = require("tslib"); | ||
var react_1 = tslib_1.__importDefault(require("react")); | ||
function renderSlot(slot, props, slotComponent) { | ||
if (slotComponent) { | ||
var Component = slotComponent; | ||
return react_1.default.createElement(Component, __assign({}, props)); | ||
return react_1.default.createElement(Component, tslib_1.__assign({}, props)); | ||
} | ||
@@ -24,0 +11,0 @@ else if (typeof slot === 'function') { |
{ | ||
"name": "@proscom/ui-react", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"description": "Proscom React utilities", | ||
@@ -37,3 +37,4 @@ "author": "Andrew Starostin <a.starostin@proscom.ru>", | ||
"dependencies": { | ||
"@proscom/ui-utils": "^0.1.13" | ||
"@proscom/ui-utils": "^0.1.15", | ||
"tslib": "^2.0.0" | ||
}, | ||
@@ -48,3 +49,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "abe4b27457f99cb1fdc505cf07e3ec872dc5ba27" | ||
"gitHead": "995ff5b892b5634d27bb15bfb481fe9d2aa85fd3" | ||
} |
@@ -0,0 +0,0 @@ import { useRef } from "react"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
142250
3
2545
+ Addedtslib@^2.0.0
Updated@proscom/ui-utils@^0.1.15