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

@pluralsight/headless-styles

Package Overview
Dependencies
Maintainers
1
Versions
1418
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pluralsight/headless-styles - npm Package Compare versions

Comparing version 0.0.0-alpha-f6cedf to 0.0.0-alpha-ffc250

build/components/Button/buttonJS.d.ts

9

build/components/Button/buttonCSS.d.ts

@@ -1,10 +0,5 @@

import type { ButtonHTMLAttributes, DetailedHTMLProps } from 'react';
interface ButtonOptions extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
kind?: 'text' | 'text-weak' | 'weak' | 'medium' | 'strong';
size?: 'xs' | 's' | 'm' | 'l';
}
import type { ButtonOptions, ButtonType } from './types';
export declare function getButtonProps(options?: ButtonOptions): {
className: string;
type: "button" | "submit" | "reset" | undefined;
type: ButtonType;
};
export {};

@@ -0,10 +1,5 @@

import { getDefaultOptions } from './shared';
import styles from './buttonCSS.module.css';
const defaultButtonOptions = {
kind: 'text',
size: 'm',
};
export function getButtonProps(options) {
var _a, _b;
const kind = (_a = options === null || options === void 0 ? void 0 : options.kind) !== null && _a !== void 0 ? _a : defaultButtonOptions.kind;
const size = (_b = options === null || options === void 0 ? void 0 : options.size) !== null && _b !== void 0 ? _b : defaultButtonOptions.size;
const { kind, size } = getDefaultOptions(options);
const formattedSize = `size-${size}`;

@@ -11,0 +6,0 @@ return {

export { getButtonProps } from './components/Button/buttonCSS';
export { getJSButtonProps } from './components/Button/buttonJS';
export { getButtonProps } from './components/Button/buttonCSS';
export { getJSButtonProps } from './components/Button/buttonJS';
{
"name": "@pluralsight/headless-styles",
"version": "0.0.0-alpha-f6cedf",
"version": "0.0.0-alpha-ffc250",
"description": "Headless styles for Pluralsight.",

@@ -18,2 +18,5 @@ "main": "./build/index.js",

},
"dependencies": {
"@pluralsight/design-tokens": "alpha"
},
"devDependencies": {

@@ -20,0 +23,0 @@ "@types/copyfiles": "^2",

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