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

armstrong-react-types

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

armstrong-react-types - npm Package Compare versions

Comparing version 1.0.0-alpha.28 to 1.0.0-alpha.29

2

dist/components/form/inputs/checkboxInput.d.ts
/// <reference types="react" />
import * as React from "react";
export interface ICheckboxInputProps extends React.HTMLProps<CheckboxInput> {
label: string;
labelContent: string | React.ReactElement<any>;
}

@@ -6,0 +6,0 @@ export declare class CheckboxInput extends React.Component<ICheckboxInputProps, {}> {

@@ -23,7 +23,7 @@ "use strict";

CheckboxInput.prototype.render = function () {
var id = "radio_" + Math.random();
var id = "checkbox_" + Math.random();
return (React.createElement("div", {className: "checkbox"},
React.createElement("input", __assign({id: id}, _.omit(this.props, "label"), {type: "checkbox"})),
React.createElement("input", __assign({id: id}, _.omit(this.props, "labelContent"), {type: "checkbox"})),
React.createElement("label", {htmlFor: id}),
React.createElement("label", {className: "checkbox-label", htmlFor: id}, this.props.label)));
React.createElement("label", {className: "checkbox-label", htmlFor: id}, this.props.labelContent)));
};

@@ -30,0 +30,0 @@ return CheckboxInput;

{
"name": "armstrong-react",
"version": "1.0.0-alpha.28",
"version": "1.0.0-alpha.29",
"dependencies": {

@@ -5,0 +5,0 @@ "classnames": {

{
"name": "armstrong-react-types",
"version": "1.0.0-alpha.28",
"version": "1.0.0-alpha.29",
"description": "Rocketmakers Armstrong library of React components (For projects using npm @types from Typescript 2.0)",

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

@@ -53,2 +53,6 @@ <p align="center">

#### Form - Checkbox
CheckboxInput now takes "labelContent" which can be a string or a component. Previously it only supported a "label" string
## Introduction

@@ -55,0 +59,0 @@

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