@aleodoni-common/tailwind-components
Advanced tools
Comparing version 1.0.208 to 1.0.209
@@ -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 {}; |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176181
2320