@tenon-io/tenon-ui
Advanced tools
Comparing version 1.0.0-alpha.18 to 1.0.0-alpha.19
@@ -15,2 +15,4 @@ import _Form from './modules/forms/tenonForm/Form'; | ||
export { _Notification as Notification }; | ||
import _Spinner from './modules/notifications/Spinner'; | ||
export { _Spinner as Spinner }; | ||
import _SpinnerButton from './modules/forms/SpinnerButton'; | ||
@@ -17,0 +19,0 @@ export { _SpinnerButton as SpinnerButton }; |
@@ -12,2 +12,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
import React, { Component, Fragment } from 'react'; | ||
import Spinner from '../notifications/Spinner'; | ||
import PropTypes from 'prop-types'; | ||
@@ -63,3 +64,3 @@ | ||
statusMessage: '' | ||
}, _this.standardSpinnerSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTgiIGhlaWdodD0iNTgiIHZpZXdCb3g9IjAgMCA1OCA1OCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIgMSkiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIxLjUiPiAgICAgICAgICAgIDxjaXJjbGUgY3g9IjQyLjYwMSIgY3k9IjExLjQ2MiIgcj0iNSIgZmlsbC1vcGFjaXR5PSIxIiBmaWxsPSIjZmZmIj4gICAgICAgICAgICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iZmlsbC1vcGFjaXR5IiAgICAgICAgICAgICAgICAgICAgIGJlZ2luPSIwcyIgZHVyPSIxLjNzIiAgICAgICAgICAgICAgICAgICAgIHZhbHVlcz0iMTswOzA7MDswOzA7MDswIiBjYWxjTW9kZT0ibGluZWFyIiAgICAgICAgICAgICAg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XRlIGF0dHJpYnV0ZU5hbWU9ImZpbGwtb3BhY2l0eSIgICAgICAgICAgICAgICAgICAgICBiZWdpbj0iMHMiIGR1cj0iMS4zcyIgICAgICAgICAgICAgICAgICAgICB2YWx1ZXM9IjA7MDswOzA7MDswOzE7MCIgY2FsY01vZGU9ImxpbmVhciIgICAgICAgICAgICAgICAgICAgICByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz4gICAgICAgICAgICA8L2NpcmNsZT4gICAgICAgICAgICA8Y2lyY2xlIGN4PSIyNyIgY3k9IjUiIHI9IjUiIGZpbGwtb3BhY2l0eT0iMCIgZmlsbD0iI2ZmZiI+ICAgICAgICAgICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImZpbGwtb3BhY2l0eSIgICAgICAgICAgICAgICAgICAgICBiZWdpbj0iMHMiIGR1cj0iMS4zcyIgICAgICAgICAgICAgICAgICAgICB2YWx1ZXM9IjA7MDswOzA7MDswOzA7MSIgY2FsY01vZGU9ImxpbmVhciIgICAgICAgICAgICAgICAgICAgICByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz4gICAgICAgICAgICA8L2NpcmNsZT4gICAgICAgIDwvZz4gICAgPC9nPjwvc3ZnPg==', _this.onClickHandler = function () { | ||
}, _this.onClickHandler = function () { | ||
var _this$props = _this.props, | ||
@@ -158,6 +159,9 @@ isBusy = _this$props.isBusy, | ||
children, | ||
showVisualSpinner ? React.createElement('img', { | ||
showVisualSpinner ? spinnerImgSrc ? React.createElement('img', { | ||
className: 'button-spinner-icon', | ||
src: spinnerImgSrc ? spinnerImgSrc : this.standardSpinnerSvg, | ||
src: spinnerImgSrc, | ||
alt: busyText | ||
}) : React.createElement(Spinner, { | ||
className: 'button-spinner-icon', | ||
title: busyText | ||
}) : null | ||
@@ -164,0 +168,0 @@ ) |
'use strict'; | ||
exports.__esModule = true; | ||
exports.Tab = exports.Tabs = exports.SpinnerButton = exports.Notification = exports.TextArea = exports.Input = exports.InputController = exports.H = exports.LevelBoundary = exports.Heading = exports.Form = undefined; | ||
exports.Tab = exports.Tabs = exports.SpinnerButton = exports.Spinner = exports.Notification = exports.TextArea = exports.Input = exports.InputController = exports.H = exports.LevelBoundary = exports.Heading = exports.Form = undefined; | ||
@@ -76,2 +76,6 @@ var _Heading2 = require('./modules/layout/Heading'); | ||
var _Spinner2 = require('./modules/notifications/Spinner'); | ||
var _Spinner3 = _interopRequireDefault(_Spinner2); | ||
var _SpinnerButton2 = require('./modules/forms/SpinnerButton'); | ||
@@ -91,3 +95,4 @@ | ||
exports.Notification = _Notification3.default; | ||
exports.Spinner = _Spinner3.default; | ||
exports.SpinnerButton = _SpinnerButton3.default; | ||
exports.Tabs = _Tabs3.default; |
@@ -11,2 +11,6 @@ 'use strict'; | ||
var _Spinner = require('../notifications/Spinner'); | ||
var _Spinner2 = _interopRequireDefault(_Spinner); | ||
var _propTypes = require('prop-types'); | ||
@@ -73,3 +77,3 @@ | ||
statusMessage: '' | ||
}, _this.standardSpinnerSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTgiIGhlaWdodD0iNTgiIHZpZXdCb3g9IjAgMCA1OCA1OCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIgMSkiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSIxLjUiPiAgICAgICAgICAgIDxjaXJjbGUgY3g9IjQyLjYwMSIgY3k9IjExLjQ2MiIgcj0iNSIgZmlsbC1vcGFjaXR5PSIxIiBmaWxsPSIjZmZmIj4gICAgICAgICAgICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iZmlsbC1vcGFjaXR5IiAgICAgICAgICAgICAgICAgICAgIGJlZ2luPSIwcyIgZHVyPSIxLjNzIiAgICAgICAgICAgICAgICA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HI9IjUiIGZpbGwtb3BhY2l0eT0iMCIgZmlsbD0iI2ZmZiI+ICAgICAgICAgICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImZpbGwtb3BhY2l0eSIgICAgICAgICAgICAgICAgICAgICBiZWdpbj0iMHMiIGR1cj0iMS4zcyIgICAgICAgICAgICAgICAgICAgICB2YWx1ZXM9IjA7MDswOzA7MDswOzE7MCIgY2FsY01vZGU9ImxpbmVhciIgICAgICAgICAgICAgICAgICAgICByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz4gICAgICAgICAgICA8L2NpcmNsZT4gICAgICAgICAgICA8Y2lyY2xlIGN4PSIyNyIgY3k9IjUiIHI9IjUiIGZpbGwtb3BhY2l0eT0iMCIgZmlsbD0iI2ZmZiI+ICAgICAgICAgICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImZpbGwtb3BhY2l0eSIgICAgICAgICAgICAgICAgICAgICBiZWdpbj0iMHMiIGR1cj0iMS4zcyIgICAgICAgICAgICAgICAgICAgICB2YWx1ZXM9IjA7MDswOzA7MDswOzA7MSIgY2FsY01vZGU9ImxpbmVhciIgICAgICAgICAgICAgICAgICAgICByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz4gICAgICAgICAgICA8L2NpcmNsZT4gICAgICAgIDwvZz4gICAgPC9nPjwvc3ZnPg==', _this.onClickHandler = function () { | ||
}, _this.onClickHandler = function () { | ||
var _this$props = _this.props, | ||
@@ -168,6 +172,9 @@ isBusy = _this$props.isBusy, | ||
children, | ||
showVisualSpinner ? _react2.default.createElement('img', { | ||
showVisualSpinner ? spinnerImgSrc ? _react2.default.createElement('img', { | ||
className: 'button-spinner-icon', | ||
src: spinnerImgSrc ? spinnerImgSrc : this.standardSpinnerSvg, | ||
src: spinnerImgSrc, | ||
alt: busyText | ||
}) : _react2.default.createElement(_Spinner2.default, { | ||
className: 'button-spinner-icon', | ||
title: busyText | ||
}) : null | ||
@@ -174,0 +181,0 @@ ) |
{ | ||
"name": "@tenon-io/tenon-ui", | ||
"version": "1.0.0-alpha.18", | ||
"version": "1.0.0-alpha.19", | ||
"description": "Tenon ui components library", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
166308
39
3807