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

@aleodoni-common/tailwind-components

Package Overview
Dependencies
Maintainers
1
Versions
217
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aleodoni-common/tailwind-components - npm Package Compare versions

Comparing version 1.0.38 to 1.0.39

build/types/boolean.d.ts

3

build/components/input.d.ts
import React, { InputHTMLAttributes } from 'react';
import * as SolidIcons from '@heroicons/react/solid';
import * as OutlineIcons from '@heroicons/react/outline';
import { BooleanType } from '../types/boolean';
declare type IconName = keyof typeof SolidIcons | keyof typeof OutlineIcons;

@@ -8,5 +9,5 @@ interface IInput extends InputHTMLAttributes<HTMLInputElement> {

aleodoni_inputicon?: IconName;
aleodoni_outlineicon?: boolean;
aleodoni_outlineicon?: BooleanType;
}
export declare const Input: React.FC<IInput>;
export {};

@@ -32,3 +32,3 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

_props$aleodoni_outli = props.aleodoni_outlineicon,
aleodoni_outlineicon = _props$aleodoni_outli === void 0 ? false : _props$aleodoni_outli,
aleodoni_outlineicon = _props$aleodoni_outli === void 0 ? 'false' : _props$aleodoni_outli,
_props$type = props.type,

@@ -38,5 +38,6 @@ type = _props$type === void 0 ? 'text' : _props$type;

var TheIcon;
var isOutline = !(aleodoni_outlineicon === 'false');
if (aleodoni_inputicon) {
TheIcon = aleodoni_outlineicon ? OutlineIcons[aleodoni_inputicon] : SolidIcons[aleodoni_inputicon];
TheIcon = isOutline ? OutlineIcons[aleodoni_inputicon] : SolidIcons[aleodoni_inputicon];
}

@@ -43,0 +44,0 @@

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

_props$aleodoni_outli = props.aleodoni_outlineicon,
aleodoni_outlineicon = _props$aleodoni_outli === void 0 ? false : _props$aleodoni_outli,
aleodoni_outlineicon = _props$aleodoni_outli === void 0 ? 'false' : _props$aleodoni_outli,
_props$type = props.type,

@@ -36,5 +36,6 @@ type = _props$type === void 0 ? 'text' : _props$type;

var TheIcon;
var isOutline = !(aleodoni_outlineicon === 'false');
if (aleodoni_inputicon) {
TheIcon = aleodoni_outlineicon ? OutlineIcons[aleodoni_inputicon] : SolidIcons[aleodoni_inputicon];
TheIcon = isOutline ? OutlineIcons[aleodoni_inputicon] : SolidIcons[aleodoni_inputicon];
}

@@ -41,0 +42,0 @@

{
"name": "@aleodoni-common/tailwind-components",
"version": "1.0.38",
"version": "1.0.39",
"main": "./build/index.js",

@@ -5,0 +5,0 @@ "module": "build/index.modern.js",

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