@rmwc/line-ripple
Advanced tools
Comparing version 6.0.0-alpha.3 to 6.0.0-alpha.4
"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 __rest = (this && this.__rest) || function (s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var base_1 = require("@rmwc/base"); | ||
@@ -47,3 +26,3 @@ var line_ripple_1 = require("@material/line-ripple"); | ||
} | ||
}), foundation = _a.foundation, elements = __rest(_a, ["foundation"]); | ||
}), foundation = _a.foundation, elements = tslib_1.__rest(_a, ["foundation"]); | ||
var rootEl = elements.rootEl; | ||
@@ -61,3 +40,3 @@ // Active | ||
rootEl.setProp('onTransitionEnd', function (evt) { return foundation.handleTransitionEnd(evt); }, true); | ||
return __assign({ foundation: foundation }, elements); | ||
return tslib_1.__assign({ foundation: foundation }, elements); | ||
}; |
"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 __rest = (this && this.__rest) || function (s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var react_1 = __importDefault(require("react")); | ||
var tslib_1 = require("tslib"); | ||
var react_1 = tslib_1.__importDefault(require("react")); | ||
var foundation_1 = require("./foundation"); | ||
function LineRipple(props) { | ||
var active = props.active, center = props.center, rest = __rest(props, ["active", "center"]); | ||
var active = props.active, center = props.center, rest = tslib_1.__rest(props, ["active", "center"]); | ||
var rootEl = foundation_1.useLineRippleFoundation(props).rootEl; | ||
return (react_1.default.createElement("div", __assign({}, rootEl.props(__assign(__assign({}, rest), { className: 'mdc-line-ripple' })), { ref: rootEl.setRef }))); | ||
return (react_1.default.createElement("div", tslib_1.__assign({}, rootEl.props(tslib_1.__assign(tslib_1.__assign({}, rest), { className: 'mdc-line-ripple' })), { ref: rootEl.setRef }))); | ||
} | ||
exports.LineRipple = LineRipple; |
@@ -1,23 +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); | ||
}; | ||
var __rest = (this && this.__rest) || function (s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
}; | ||
import { __assign, __rest } from "tslib"; | ||
import { useFoundation } from '@rmwc/base'; | ||
@@ -24,0 +3,0 @@ import { MDCLineRippleFoundation } from '@material/line-ripple'; |
@@ -1,23 +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); | ||
}; | ||
var __rest = (this && this.__rest) || function (s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
}; | ||
import { __assign, __rest } from "tslib"; | ||
import React from 'react'; | ||
@@ -24,0 +3,0 @@ import { useLineRippleFoundation } from './foundation'; |
{ | ||
"name": "@rmwc/line-ripple", | ||
"version": "6.0.0-alpha.3", | ||
"version": "6.0.0-alpha.4", | ||
"description": "RMWC LineRipple component", | ||
@@ -36,6 +36,6 @@ "main": "dist/index.js", | ||
"@material/line-ripple": "^3.1.0", | ||
"@rmwc/base": "^6.0.0-alpha.3", | ||
"@rmwc/base": "^6.0.0-alpha.4", | ||
"@rmwc/types": "^6.0.0-alpha.3" | ||
}, | ||
"gitHead": "7e3321fd3f7e7ea8b8145d46ab8a7ecb45ca4a19" | ||
"gitHead": "823d68f65bba10f48b716d3a78aa7855dd419988" | ||
} |
12111
252
Updated@rmwc/base@^6.0.0-alpha.4