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

cf-component-button

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cf-component-button - npm Package Compare versions

Comparing version 4.3.2 to 5.0.0

11

es/index.js

@@ -1,6 +0,11 @@

import Button from './Button';
import ButtonUnstyled from './Button';
import ButtonTheme from './ButtonTheme';
import ButtonGroup from './ButtonGroup';
import ButtonGroupUnstyled from './ButtonGroup';
import ButtonGroupTheme from './ButtonGroupTheme';
export { Button, ButtonTheme, ButtonGroup, ButtonGroupTheme };
import { applyTheme } from 'cf-style-container';
var Button = applyTheme(ButtonUnstyled, ButtonTheme);
var ButtonGroup = applyTheme(ButtonGroupUnstyled, ButtonGroupTheme);
export { Button, ButtonTheme, ButtonUnstyled, ButtonGroup, ButtonGroupTheme, ButtonGroupUnstyled };

@@ -6,3 +6,3 @@ 'use strict';

});
exports.ButtonGroupTheme = exports.ButtonGroup = exports.ButtonTheme = exports.Button = undefined;
exports.ButtonGroupUnstyled = exports.ButtonGroupTheme = exports.ButtonGroup = exports.ButtonUnstyled = exports.ButtonTheme = exports.Button = undefined;

@@ -25,7 +25,14 @@ var _Button = require('./Button');

var _cfStyleContainer = require('cf-style-container');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.Button = _Button2.default;
var Button = (0, _cfStyleContainer.applyTheme)(_Button2.default, _ButtonTheme2.default);
var ButtonGroup = (0, _cfStyleContainer.applyTheme)(_ButtonGroup2.default, _ButtonGroupTheme2.default);
exports.Button = Button;
exports.ButtonTheme = _ButtonTheme2.default;
exports.ButtonGroup = _ButtonGroup2.default;
exports.ButtonGroupTheme = _ButtonGroupTheme2.default;
exports.ButtonUnstyled = _Button2.default;
exports.ButtonGroup = ButtonGroup;
exports.ButtonGroupTheme = _ButtonGroupTheme2.default;
exports.ButtonGroupUnstyled = _ButtonGroup2.default;
{
"name": "cf-component-button",
"description": "Cloudflare Button Component",
"version": "4.3.2",
"version": "5.0.0",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "module": "es/index.js",

@@ -15,13 +15,4 @@ # cf-component-button

import React from 'react';
import { applyTheme } from 'cf-style-container';
import {
ButtonGroup as ButtonGroupUnstyled,
Button as ButtonUnstyled,
ButtonTheme,
ButtonGroupTheme
} from 'cf-component-button';
import { Button, ButtonGroup } from 'cf-component-button';
const Button = applyTheme(ButtonUnstyled, ButtonTheme);
const ButtonGroup = applyTheme(ButtonGroupUnstyled, ButtonGroupTheme);
const ButtonComponent = () => (

@@ -28,0 +19,0 @@ <ButtonGroup>

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