New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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

to
0.4.1-next-bd2e6b

npm/browser/src/components/Grid.js

2

npm/browser/index.js

@@ -6,2 +6,3 @@ export { Admonition as unsafe_Admonition, AdmonitionHeading as unsafe_AdmonitionHeading, AdmonitionText as unsafe_AdmonitionText } from './src/components/Admonition.js';

export { CircularProgress as unsafe_CircularProgress } from './src/components/CircularProgress.js';
export { Grid as unsafe_Grid, GridItem as unsafe_GridItem } from './src/components/Grid.js';
export { Icon as unsafe_Icon } from './src/components/Icon.js';

@@ -14,3 +15,4 @@ export { IconButton as unsafe_IconButton } from './src/components/IconButton.js';

export { TextLink as unsafe_TextLink } from './src/components/TextLink.js';
export { FormControlProvider as unsafe_FormControlProvider, useFormControl as unsafe_useFormControl } from './src/context/FormControl.js';
export { useTheme } from '@pluralsight/react-utils';
//# sourceMappingURL=index.js.map

11

npm/browser/src/components/Icon.js

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

var _excluded = ["ariaLabel", "ariaHidden", "customSize", "size"];
var _excluded = ["ariaHidden", "ariaLabel", "customSize", "icon", "size"];
function IconEl(props, ref) {
var _props$icon;
var ariaLabel = props.ariaLabel,
ariaHidden = props.ariaHidden,
// @ts-expect-error ariaLabel only exists if ariaHidden is false
var ariaHidden = props.ariaHidden,
ariaLabel = props.ariaLabel,
customSize = props.customSize,
icon = props.icon,
size = props.size,

@@ -22,3 +23,3 @@ nativeProps = _objectWithoutProperties(props, _excluded);

});
var Icon = (_props$icon = props.icon) !== null && _props$icon !== void 0 ? _props$icon : null;
var Icon = icon !== null && icon !== void 0 ? icon : null;
if (!Icon) {

@@ -25,0 +26,0 @@ return null;

@@ -10,2 +10,3 @@ 'use strict';

const CircularProgress = require('./src/components/CircularProgress.js');
const Grid = require('./src/components/Grid.js');
const Icon = require('./src/components/Icon.js');

@@ -18,2 +19,3 @@ const IconButton = require('./src/components/IconButton.js');

const TextLink = require('./src/components/TextLink.js');
const FormControl = require('./src/context/FormControl.js');
const reactUtils = require('@pluralsight/react-utils');

@@ -30,2 +32,4 @@

exports.unsafe_CircularProgress = CircularProgress.CircularProgress;
exports.unsafe_Grid = Grid.Grid;
exports.unsafe_GridItem = Grid.GridItem;
exports.unsafe_Icon = Icon.Icon;

@@ -44,2 +48,4 @@ exports.unsafe_IconButton = IconButton.IconButton;

exports.unsafe_TextLink = TextLink.TextLink;
exports.unsafe_FormControlProvider = FormControl.FormControlProvider;
exports.unsafe_useFormControl = FormControl.useFormControl;
Object.defineProperty(exports, 'useTheme', {

@@ -46,0 +52,0 @@ enumerable: true,

@@ -10,8 +10,9 @@ 'use strict';

var _excluded = ["ariaLabel", "ariaHidden", "customSize", "size"];
var _excluded = ["ariaHidden", "ariaLabel", "customSize", "icon", "size"];
function IconEl(props, ref) {
var _props$icon;
var ariaLabel = props.ariaLabel,
ariaHidden = props.ariaHidden,
// @ts-expect-error ariaLabel only exists if ariaHidden is false
var ariaHidden = props.ariaHidden,
ariaLabel = props.ariaLabel,
customSize = props.customSize,
icon = props.icon,
size = props.size,

@@ -26,3 +27,3 @@ nativeProps = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);

});
var Icon = (_props$icon = props.icon) !== null && _props$icon !== void 0 ? _props$icon : null;
var Icon = icon !== null && icon !== void 0 ? icon : null;
if (!Icon) {

@@ -29,0 +30,0 @@ return null;

import { type SVGAttributes } from 'react';
import type { IconOptions } from '@pluralsight/headless-styles/types';
import type { UsesIconProps } from './shared/types.ts';
interface IconProps extends IconOptions, Required<UsesIconProps>, SVGAttributes<SVGSVGElement> {
}
type IconProps = IconOptions & Required<UsesIconProps> & SVGAttributes<SVGSVGElement>;
export declare const Icon: import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<HTMLSpanElement>>;
export {};

@@ -6,2 +6,3 @@ export { Admonition, AdmonitionHeading, AdmonitionText, } from './components/Admonition.tsx';

export { CircularProgress } from './components/CircularProgress.tsx';
export { Grid, GridItem } from './components/Grid.tsx';
export { Icon } from './components/Icon.tsx';

@@ -14,2 +15,3 @@ export { IconButton } from './components/IconButton.tsx';

export { TextLink } from './components/TextLink.tsx';
export { FormControlProvider, useFormControl } from './context/FormControl.tsx';
export { useTheme } from '@pluralsight/react-utils';
{
"name": "@pluralsight/react",
"version": "0.4.1-next-b75471",
"version": "0.4.1-next-bd2e6b",
"description": "A React component library for Pando.",

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

"dependencies": {
"@pluralsight/headless-styles": "0.4.1-next-b3c10f",
"@pluralsight/react-utils": "0.4.1-next-b3c10f",
"@pluralsight/headless-styles": "0.4.1-next-e195e7",
"@pluralsight/react-utils": "0.4.1-next-e195e7",
"tslib": "latest"

@@ -62,3 +62,3 @@ },

"@babel/runtime": "^7.20.13",
"@pluralsight/icons": "0.4.1-next-b3c10f",
"@pluralsight/icons": "0.4.1-next-e195e7",
"@rollup/plugin-alias": "^5.0.0",

@@ -83,2 +83,3 @@ "@rollup/plugin-babel": "^6.0.3",

"@typescript-eslint/parser": "^5.59.2",
"core-js": "^3.30.2",
"eslint": "^8.39.0",

@@ -85,0 +86,0 @@ "eslint-import-resolver-typescript": "^3.5.5",

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