Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pluralsight/react

Package Overview
Dependencies
Maintainers
1
Versions
630
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pluralsight/react - npm Package Compare versions

Comparing version 0.4.1-next-78435e to 0.4.1-next-797412

npm/browser/src/components/Avatar.js

92

npm/browser/_virtual/_rollupPluginBabelHelpers.js

@@ -22,2 +22,24 @@ function ownKeys(object, enumerableOnly) {

}
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
Object.defineProperty(Constructor, "prototype", {
writable: false
});
return Constructor;
}
function _defineProperty(obj, key, value) {

@@ -37,2 +59,42 @@ key = _toPropertyKey(key);

}
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
writable: true,
configurable: true
}
});
Object.defineProperty(subClass, "prototype", {
writable: false
});
if (superClass) _setPrototypeOf(subClass, superClass);
}
function _getPrototypeOf(o) {
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
};
return _getPrototypeOf(o);
}
function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);
}
function _isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
if (Reflect.construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
return true;
} catch (e) {
return false;
}
}
function _objectWithoutPropertiesLoose(source, excluded) {

@@ -65,2 +127,30 @@ if (source == null) return {};

}
function _assertThisInitialized(self) {
if (self === void 0) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return self;
}
function _possibleConstructorReturn(self, call) {
if (call && (typeof call === "object" || typeof call === "function")) {
return call;
} else if (call !== void 0) {
throw new TypeError("Derived constructors may only return object or undefined");
}
return _assertThisInitialized(self);
}
function _createSuper(Derived) {
var hasNativeReflectConstruct = _isNativeReflectConstruct();
return function _createSuperInternal() {
var Super = _getPrototypeOf(Derived),
result;
if (hasNativeReflectConstruct) {
var NewTarget = _getPrototypeOf(this).constructor;
result = Reflect.construct(Super, arguments, NewTarget);
} else {
result = Super.apply(this, arguments);
}
return _possibleConstructorReturn(this, result);
};
}
function _toPrimitive(input, hint) {

@@ -81,3 +171,3 @@ if (typeof input !== "object" || input === null) return input;

export { _defineProperty as defineProperty, _objectSpread2 as objectSpread2, _objectWithoutProperties as objectWithoutProperties, _objectWithoutPropertiesLoose as objectWithoutPropertiesLoose, _toPrimitive as toPrimitive, _toPropertyKey as toPropertyKey };
export { _assertThisInitialized as assertThisInitialized, _classCallCheck as classCallCheck, _createClass as createClass, _createSuper as createSuper, _defineProperty as defineProperty, _getPrototypeOf as getPrototypeOf, _inherits as inherits, _isNativeReflectConstruct as isNativeReflectConstruct, _objectSpread2 as objectSpread2, _objectWithoutProperties as objectWithoutProperties, _objectWithoutPropertiesLoose as objectWithoutPropertiesLoose, _possibleConstructorReturn as possibleConstructorReturn, _setPrototypeOf as setPrototypeOf, _toPrimitive as toPrimitive, _toPropertyKey as toPropertyKey };
//# sourceMappingURL=_rollupPluginBabelHelpers.js.map
export { Admonition as unsafe_Admonition, AdmonitionHeading as unsafe_AdmonitionHeading, AdmonitionText as unsafe_AdmonitionText } from './src/components/Admonition.js';
export { Avatar as unsafe_Avatar } from './src/components/Avatar.js';
export { Badge as unsafe_Badge } from './src/components/Badge.js';
export { Button as unsafe_Button } from './src/components/Button.js';
export { CircularProgress as unsafe_CircularProgress } from './src/components/CircularProgress.js';
export { ProgressBar as unsafe_ProgressBar } from './src/components/ProgressBar.js';
//# sourceMappingURL=index.js.map

34

npm/browser/src/components/Admonition.js

@@ -7,6 +7,5 @@ import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';

var _excluded = ["className"],
_excluded2 = ["sentiment", "children", "className", "onClose"],
_excluded3 = ["children", "className"],
_excluded4 = ["children", "className"];
var _excluded = ["sentiment", "children", "onClose"],
_excluded2 = ["children"],
_excluded3 = ["children"];
function MatchIcon(props) {

@@ -28,8 +27,6 @@ var iconProps = getIconProps(getAdmonitionIconProps());

function AdmonitionCloseButton(props) {
var className = props.className,
nativeProps = _objectWithoutProperties(props, _excluded);
var _getIconButtonProps = getIconButtonProps(getAdmonitionCloseButtonProps(splitClassNameProp(className))),
var _getIconButtonProps = getIconButtonProps(getAdmonitionCloseButtonProps(splitClassNameProp(props.className))),
button = _getIconButtonProps.button,
iconOptions = _getIconButtonProps.iconOptions;
return /*#__PURE__*/jsx("button", _objectSpread2(_objectSpread2(_objectSpread2({}, button), nativeProps), {}, {
return /*#__PURE__*/jsx("button", _objectSpread2(_objectSpread2(_objectSpread2({}, props), button), {}, {
children: /*#__PURE__*/jsx(CloseIcon, _objectSpread2({}, getIconProps(iconOptions)))

@@ -44,10 +41,9 @@ }));

children = props.children,
className = props.className,
onClose = props.onClose,
nativeDivProps = _objectWithoutProperties(props, _excluded2);
nativeDivProps = _objectWithoutProperties(props, _excluded);
var admonition = getAdmonitionProps({
classNames: splitClassNameProp(className),
classNames: splitClassNameProp(nativeDivProps.className),
sentiment: sentiment
});
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2(_objectSpread2({}, admonition.wrapper), nativeDivProps), {}, {
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2(_objectSpread2({}, nativeDivProps), admonition.wrapper), {}, {
ref: ref,

@@ -70,6 +66,5 @@ children: [/*#__PURE__*/jsx("span", _objectSpread2(_objectSpread2({}, admonition.iconWrapper), {}, {

var children = props.children,
className = props.className,
nativeProps = _objectWithoutProperties(props, _excluded3);
var heading = getAdmonitionHeadingProps(splitClassNameProp(className));
return /*#__PURE__*/jsx("p", _objectSpread2(_objectSpread2(_objectSpread2({}, heading), nativeProps), {}, {
nativeProps = _objectWithoutProperties(props, _excluded2);
var heading = getAdmonitionHeadingProps(splitClassNameProp(nativeProps.className));
return /*#__PURE__*/jsx("p", _objectSpread2(_objectSpread2(_objectSpread2({}, nativeProps), heading), {}, {
ref: ref,

@@ -86,6 +81,5 @@ children: /*#__PURE__*/jsx("strong", {

var children = props.children,
className = props.className,
nativeProps = _objectWithoutProperties(props, _excluded4);
var text = getAdmonitionTextProps(splitClassNameProp(className));
return /*#__PURE__*/jsx("small", _objectSpread2(_objectSpread2(_objectSpread2({}, text), nativeProps), {}, {
nativeProps = _objectWithoutProperties(props, _excluded3);
var text = getAdmonitionTextProps(splitClassNameProp(nativeProps.className));
return /*#__PURE__*/jsx("small", _objectSpread2(_objectSpread2(_objectSpread2({}, nativeProps), text), {}, {
ref: ref,

@@ -92,0 +86,0 @@ children: children

@@ -26,2 +26,24 @@ 'use strict';

}
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
Object.defineProperty(Constructor, "prototype", {
writable: false
});
return Constructor;
}
function _defineProperty(obj, key, value) {

@@ -41,2 +63,42 @@ key = _toPropertyKey(key);

}
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
writable: true,
configurable: true
}
});
Object.defineProperty(subClass, "prototype", {
writable: false
});
if (superClass) _setPrototypeOf(subClass, superClass);
}
function _getPrototypeOf(o) {
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
};
return _getPrototypeOf(o);
}
function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);
}
function _isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
if (Reflect.construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
return true;
} catch (e) {
return false;
}
}
function _objectWithoutPropertiesLoose(source, excluded) {

@@ -69,2 +131,30 @@ if (source == null) return {};

}
function _assertThisInitialized(self) {
if (self === void 0) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return self;
}
function _possibleConstructorReturn(self, call) {
if (call && (typeof call === "object" || typeof call === "function")) {
return call;
} else if (call !== void 0) {
throw new TypeError("Derived constructors may only return object or undefined");
}
return _assertThisInitialized(self);
}
function _createSuper(Derived) {
var hasNativeReflectConstruct = _isNativeReflectConstruct();
return function _createSuperInternal() {
var Super = _getPrototypeOf(Derived),
result;
if (hasNativeReflectConstruct) {
var NewTarget = _getPrototypeOf(this).constructor;
result = Reflect.construct(Super, arguments, NewTarget);
} else {
result = Super.apply(this, arguments);
}
return _possibleConstructorReturn(this, result);
};
}
function _toPrimitive(input, hint) {

@@ -85,8 +175,17 @@ if (typeof input !== "object" || input === null) return input;

exports.assertThisInitialized = _assertThisInitialized;
exports.classCallCheck = _classCallCheck;
exports.createClass = _createClass;
exports.createSuper = _createSuper;
exports.defineProperty = _defineProperty;
exports.getPrototypeOf = _getPrototypeOf;
exports.inherits = _inherits;
exports.isNativeReflectConstruct = _isNativeReflectConstruct;
exports.objectSpread2 = _objectSpread2;
exports.objectWithoutProperties = _objectWithoutProperties;
exports.objectWithoutPropertiesLoose = _objectWithoutPropertiesLoose;
exports.possibleConstructorReturn = _possibleConstructorReturn;
exports.setPrototypeOf = _setPrototypeOf;
exports.toPrimitive = _toPrimitive;
exports.toPropertyKey = _toPropertyKey;
//# sourceMappingURL=_rollupPluginBabelHelpers.js.map

@@ -6,2 +6,7 @@ 'use strict';

const Admonition = require('./src/components/Admonition.js');
const Avatar = require('./src/components/Avatar.js');
const Badge = require('./src/components/Badge.js');
const Button = require('./src/components/Button.js');
const CircularProgress = require('./src/components/CircularProgress.js');
const ProgressBar = require('./src/components/ProgressBar.js');

@@ -13,2 +18,7 @@

exports.unsafe_AdmonitionText = Admonition.AdmonitionText;
exports.unsafe_Avatar = Avatar.Avatar;
exports.unsafe_Badge = Badge.Badge;
exports.unsafe_Button = Button.Button;
exports.unsafe_CircularProgress = CircularProgress.CircularProgress;
exports.unsafe_ProgressBar = ProgressBar.ProgressBar;
//# sourceMappingURL=index.js.map

@@ -11,6 +11,5 @@ 'use strict';

var _excluded = ["className"],
_excluded2 = ["sentiment", "children", "className", "onClose"],
_excluded3 = ["children", "className"],
_excluded4 = ["children", "className"];
var _excluded = ["sentiment", "children", "onClose"],
_excluded2 = ["children"],
_excluded3 = ["children"];
function MatchIcon(props) {

@@ -32,8 +31,6 @@ var iconProps = headlessStyles.getIconProps(headlessStyles.getAdmonitionIconProps());

function AdmonitionCloseButton(props) {
var className = props.className,
nativeProps = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
var _getIconButtonProps = headlessStyles.getIconButtonProps(headlessStyles.getAdmonitionCloseButtonProps(headlessStyles.splitClassNameProp(className))),
var _getIconButtonProps = headlessStyles.getIconButtonProps(headlessStyles.getAdmonitionCloseButtonProps(headlessStyles.splitClassNameProp(props.className))),
button = _getIconButtonProps.button,
iconOptions = _getIconButtonProps.iconOptions;
return /*#__PURE__*/jsxRuntime.jsx("button", _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, button), nativeProps), {}, {
return /*#__PURE__*/jsxRuntime.jsx("button", _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, props), button), {}, {
children: /*#__PURE__*/jsxRuntime.jsx(icons.CloseIcon, _rollupPluginBabelHelpers.objectSpread2({}, headlessStyles.getIconProps(iconOptions)))

@@ -48,10 +45,9 @@ }));

children = props.children,
className = props.className,
onClose = props.onClose,
nativeDivProps = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded2);
nativeDivProps = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
var admonition = headlessStyles.getAdmonitionProps({
classNames: headlessStyles.splitClassNameProp(className),
classNames: headlessStyles.splitClassNameProp(nativeDivProps.className),
sentiment: sentiment
});
return /*#__PURE__*/jsxRuntime.jsxs("div", _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, admonition.wrapper), nativeDivProps), {}, {
return /*#__PURE__*/jsxRuntime.jsxs("div", _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, nativeDivProps), admonition.wrapper), {}, {
ref: ref,

@@ -74,6 +70,5 @@ children: [/*#__PURE__*/jsxRuntime.jsx("span", _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, admonition.iconWrapper), {}, {

var children = props.children,
className = props.className,
nativeProps = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded3);
var heading = headlessStyles.getAdmonitionHeadingProps(headlessStyles.splitClassNameProp(className));
return /*#__PURE__*/jsxRuntime.jsx("p", _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, heading), nativeProps), {}, {
nativeProps = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded2);
var heading = headlessStyles.getAdmonitionHeadingProps(headlessStyles.splitClassNameProp(nativeProps.className));
return /*#__PURE__*/jsxRuntime.jsx("p", _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, nativeProps), heading), {}, {
ref: ref,

@@ -90,6 +85,5 @@ children: /*#__PURE__*/jsxRuntime.jsx("strong", {

var children = props.children,
className = props.className,
nativeProps = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded4);
var text = headlessStyles.getAdmonitionTextProps(headlessStyles.splitClassNameProp(className));
return /*#__PURE__*/jsxRuntime.jsx("small", _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, text), nativeProps), {}, {
nativeProps = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded3);
var text = headlessStyles.getAdmonitionTextProps(headlessStyles.splitClassNameProp(nativeProps.className));
return /*#__PURE__*/jsxRuntime.jsx("small", _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, nativeProps), text), {}, {
ref: ref,

@@ -96,0 +90,0 @@ children: children

export { Admonition, AdmonitionHeading, AdmonitionText, } from './components/Admonition.tsx';
export { Avatar } from './components/Avatar.tsx';
export { Badge } from './components/Badge.tsx';
export { Button } from './components/Button.tsx';
export { CircularProgress } from './components/CircularProgress.tsx';
export { ProgressBar } from './components/ProgressBar.tsx';
{
"name": "@pluralsight/react",
"version": "0.4.1-next-78435e",
"version": "0.4.1-next-797412",
"description": "A React component library for Pando.",

@@ -51,4 +51,5 @@ "main": "npm/node/index.js",

"dependencies": {
"@pluralsight/headless-styles": "0.4.1-next-ca5e08",
"@pluralsight/icons": "0.4.1-next-ca5e08",
"@pluralsight/headless-styles": "0.4.1-next-3b6a3d",
"@pluralsight/icons": "0.4.1-next-3b6a3d",
"@pluralsight/react-utils": "0.4.1-next-3b6a3d",
"tslib": "latest"

@@ -65,3 +66,3 @@ },

"@rollup/plugin-commonjs": "^23.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"@rollup/plugin-node-resolve": "^15.0.2",
"@rollup/plugin-replace": "^5.0.0",

@@ -68,0 +69,0 @@ "@testing-library/dom": "^8.17.1",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc