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

shira

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shira - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

lib/index.cjs.js

29

lib/index.d.ts

@@ -1,2 +0,29 @@

import { Button } from './Button';
/// <reference types="react" />
interface ButtonProps {
/**
* Is this the principal call to action on the page?
*/
primary?: boolean;
/**
* What background color to use
*/
backgroundColor?: string;
/**
* How large should the button be?
*/
size?: 'small' | 'medium' | 'large';
/**
* Button contents
*/
label: string;
/**
* Optional click handler
*/
onClick?: () => void;
}
/**
* Primary UI component for user interaction
*/
declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => JSX.Element;
export { Button };

9

package.json
{
"name": "shira",
"version": "1.0.0",
"version": "1.0.1",
"description": "UI components",
"main": "lib/index.js",
"main": "lib/index.cjs.js",
"module": "lib/index.esm.js",
"repository": "git@github.com:taslim-a-hussain/shira.git",
"author": "Taslim A Hussain",
"license": "MIT",
"types": "lib/index.d.ts",
"files": [

@@ -28,3 +30,5 @@ "lib"

"react-dom": "^18.2.0",
"rimraf": "^3.0.2",
"rollup": "^2.76.0",
"rollup-plugin-dts": "^4.2.2",
"rollup-plugin-peer-deps-external": "^2.2.4",

@@ -42,2 +46,3 @@ "rollup-plugin-postcss": "^4.0.2",

"scripts": {
"prebuild": "rimraf lib",
"build": "rollup -c",

@@ -44,0 +49,0 @@ "storybook": "start-storybook -p 6006",

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