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.208 to 1.0.209

11

build/components/nav.d.ts

@@ -5,4 +5,15 @@ import React from 'react';

logoText?: string;
navigation: NavigationType[];
userNavigation: UserNavigationType[];
}
export declare type NavigationType = {
name: string;
href: string;
current: boolean;
};
export declare type UserNavigationType = {
name: string;
action(): void;
};
export declare const Nav: React.FC<IProps>;
export {};

38

build/index.js

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

};
var navigation = [{
name: 'Dashboard',
href: '#',
current: true
}, {
name: 'Team',
href: '#',
current: false
}, {
name: 'Projects',
href: '#',
current: false
}, {
name: 'Calendar',
href: '#',
current: false
}, {
name: 'Reports',
href: '#',
current: false
}];
var userNavigation = [{
name: 'Sign out',
href: '#'
}];

@@ -373,3 +348,5 @@ function classNames() {

var logoComp = _ref.logoComp,
logoText = _ref.logoText;
logoText = _ref.logoText,
navigation = _ref.navigation,
userNavigation = _ref.userNavigation;
return React__default.createElement("div", {

@@ -433,4 +410,5 @@ className: "flex flex-col w-full"

var active = _ref3.active;
return React__default.createElement("a", {
href: item.href,
return React__default.createElement("button", {
type: "button",
onClick: item.action,
className: classNames(active ? 'bg-aleodoni-secondary' : '', 'block px-4 py-2 text-sm text-gray-100')

@@ -484,4 +462,4 @@ }, item.name);

key: item.name,
as: "a",
href: item.href,
as: "button",
onClick: item.action,
className: "block px-3 py-2 rounded-md text-base font-medium text-gray-200 hover:text-white hover:bg-aleodoni-secondary"

@@ -488,0 +466,0 @@ }, item.name);

@@ -334,27 +334,2 @@ import React, { useState, Fragment } from 'react';

};
var navigation = [{
name: 'Dashboard',
href: '#',
current: true
}, {
name: 'Team',
href: '#',
current: false
}, {
name: 'Projects',
href: '#',
current: false
}, {
name: 'Calendar',
href: '#',
current: false
}, {
name: 'Reports',
href: '#',
current: false
}];
var userNavigation = [{
name: 'Sign out',
href: '#'
}];

@@ -371,3 +346,5 @@ function classNames() {

var logoComp = _ref.logoComp,
logoText = _ref.logoText;
logoText = _ref.logoText,
navigation = _ref.navigation,
userNavigation = _ref.userNavigation;
return React.createElement("div", {

@@ -431,4 +408,5 @@ className: "flex flex-col w-full"

var active = _ref3.active;
return React.createElement("a", {
href: item.href,
return React.createElement("button", {
type: "button",
onClick: item.action,
className: classNames(active ? 'bg-aleodoni-secondary' : '', 'block px-4 py-2 text-sm text-gray-100')

@@ -482,4 +460,4 @@ }, item.name);

key: item.name,
as: "a",
href: item.href,
as: "button",
onClick: item.action,
className: "block px-3 py-2 rounded-md text-base font-medium text-gray-200 hover:text-white hover:bg-aleodoni-secondary"

@@ -486,0 +464,0 @@ }, item.name);

{
"name": "@aleodoni-common/tailwind-components",
"version": "1.0.208",
"version": "1.0.209",
"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