New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@useblu/ocean-components

Package Overview
Dependencies
Maintainers
4
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@useblu/ocean-components - npm Package Compare versions

Comparing version 0.1.0-beta.6 to 0.1.0-beta.7

8

dist/Button/Button.d.ts

@@ -15,3 +15,3 @@ import React from 'react';

*/
variant?: 'primary' | 'secondary' | 'ghost' | 'inverse';
variant?: 'primary' | 'secondary' | 'text' | 'inverse';
/**

@@ -23,9 +23,9 @@ * The size of the button.

/**
* If true, the button will take up the full width of its container.
* Spans the full width of the Button parent.
* @default false
*/
fullWidth?: boolean;
blocked?: boolean;
}>;
declare function ButtonBase<T extends React.ElementType = 'button'>({ children, className, size, variant, fullWidth, component, ...rest }: ButtonProps<T>, ref: React.Ref<HTMLButtonElement>): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
declare function ButtonBase<T extends React.ElementType = 'button'>({ children, className, size, variant, blocked, component, ...rest }: ButtonProps<T>, ref: React.Ref<HTMLButtonElement>): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
declare const Button: typeof ButtonBase;
export default Button;

@@ -180,4 +180,4 @@ import React from 'react';

function ButtonBase(_a, ref) {
var children = _a.children, className = _a.className, _b = _a.size, size = _b === void 0 ? 'md' : _b, _c = _a.variant, variant = _c === void 0 ? 'primary' : _c, _d = _a.fullWidth, fullWidth = _d === void 0 ? false : _d, component = _a.component, rest = __rest(_a, ["children", "className", "size", "variant", "fullWidth", "component"]);
return React.createElement(component || 'button', __assign({ ref: ref, className: classnames('ods-btn', "ods-btn--" + size, "ods-btn--" + variant, fullWidth && 'ods-btn--full-width', className) }, rest), children);
var children = _a.children, className = _a.className, _b = _a.size, size = _b === void 0 ? 'md' : _b, _c = _a.variant, variant = _c === void 0 ? 'primary' : _c, _d = _a.blocked, blocked = _d === void 0 ? false : _d, component = _a.component, rest = __rest(_a, ["children", "className", "size", "variant", "blocked", "component"]);
return React.createElement(component || 'button', __assign({ ref: ref, className: classnames('ods-btn', "ods-btn--" + size, "ods-btn--" + variant, blocked && 'ods-btn--blocked', className) }, rest), children);
}

@@ -184,0 +184,0 @@ var Button = React.forwardRef(ButtonBase);

@@ -186,4 +186,4 @@ 'use strict';

function ButtonBase(_a, ref) {
var children = _a.children, className = _a.className, _b = _a.size, size = _b === void 0 ? 'md' : _b, _c = _a.variant, variant = _c === void 0 ? 'primary' : _c, _d = _a.fullWidth, fullWidth = _d === void 0 ? false : _d, component = _a.component, rest = __rest(_a, ["children", "className", "size", "variant", "fullWidth", "component"]);
return React.createElement(component || 'button', __assign({ ref: ref, className: classnames('ods-btn', "ods-btn--" + size, "ods-btn--" + variant, fullWidth && 'ods-btn--full-width', className) }, rest), children);
var children = _a.children, className = _a.className, _b = _a.size, size = _b === void 0 ? 'md' : _b, _c = _a.variant, variant = _c === void 0 ? 'primary' : _c, _d = _a.blocked, blocked = _d === void 0 ? false : _d, component = _a.component, rest = __rest(_a, ["children", "className", "size", "variant", "blocked", "component"]);
return React.createElement(component || 'button', __assign({ ref: ref, className: classnames('ods-btn', "ods-btn--" + size, "ods-btn--" + variant, blocked && 'ods-btn--blocked', className) }, rest), children);
}

@@ -190,0 +190,0 @@ var Button = React.forwardRef(ButtonBase);

{
"name": "@useblu/ocean-components",
"version": "0.1.0-beta.6",
"version": "0.1.0-beta.7",
"description": "React components that implement Ocean's Design System.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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