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

@labrnth/link

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@labrnth/link - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

7

CHANGELOG.md

@@ -12,2 +12,9 @@ # Change Log

## 0.1.3 - 15/04/2021
### Changed
- Updated the typings.
- Updated the `README.md` format.
## 0.1.2 - 13/04/2021

@@ -14,0 +21,0 @@

3

dist/index.d.ts
import React from 'react';
declare const colorValues: readonly ["red", "green", "blue", "yellow", "white", "black"];
declare type ColorTypes = typeof colorValues[number];
export interface LinkProps {
export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
children: React.ReactNode;
component?: any;
color?: ColorTypes;
[key: string]: unknown;
}

@@ -10,0 +9,0 @@ declare const Link: React.FC<LinkProps>;

@@ -23,3 +23,3 @@ import{css as l,jsx as a}from"@emotion/react";import c from"prop-types";import{useTheme as p}from"@labrnth/theme";var i=["red","green","blue","yellow","white","black"],r=(t,o)=>{let e=p();switch(t){case"red":return o?e.colors.red[100]:e.colors.red[500];case"green":return o?e.colors.green[100]:e.colors.green[500];case"blue":return o?e.colors.blue[100]:e.colors.blue[500];case"yellow":return o?e.colors.yellow[100]:e.colors.yellow[500];case"white":return o?e.colors.gray[100]:e.colors.gray.white;case"black":default:return o?e.colors.gray[100]:e.colors.gray[1e3]}},n=({children:t,component:o="a",color:e="black",...s})=>a(o,{className:"Link",css:l`

}
`,...s},t);n.displayName="Link";n.propTypes={children:c.node.isRequired,component:c.any,color:c.oneOf(i)};var f=n;export{f as default};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vc3JjL2luZGV4LnRzeCJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiLyoqIEBqc3hSdW50aW1lIGNsYXNzaWMgKi9cbi8qKiBA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UFPLElBQUksS0FBTyxFQUFNLE9BQU8sSUFBSSxTQUMxRCxRQUNILE1BQU8sR0FBYSxFQUFNLE9BQU8sTUFBTSxLQUFPLEVBQU0sT0FBTyxNQUFNLFNBQzlELE9BQ0gsTUFBTyxHQUFhLEVBQU0sT0FBTyxLQUFLLEtBQU8sRUFBTSxPQUFPLEtBQUssU0FDNUQsU0FDSCxNQUFPLEdBQWEsRUFBTSxPQUFPLE9BQU8sS0FBTyxFQUFNLE9BQU8sT0FBTyxTQUNoRSxRQUNILE1BQU8sR0FBYSxFQUFNLE9BQU8sS0FBSyxLQUFPLEVBQU0sT0FBTyxLQUFLLFVBQzVELGdCQUVILE1BQU8sR0FBYSxFQUFNLE9BQU8sS0FBSyxLQUFPLEVBQU0sT0FBTyxLQUFLLE9BRy9ELEVBQTRCLENBQUMsQ0FDakMsV0FDQSxVQUFXLEVBQVksSUFDdkIsUUFBUSxXQUNMLEtBR0QsRUFBQyxFQUFELENBQ0UsVUFBVSxPQUNWLElBQUs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEsaUJBTU0sRUFBUztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEsOEJBS0ksRUFBUyxFQUFPO0FBQUE7QUFBQTtBQUFBO0FBQUEscUNBSVQsRUFBUztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEsOEJBS2hCLEVBQVMsRUFBTztBQUFBO0FBQUEsV0FHcEMsR0FFSCxHQUtQLEVBQUssWUFBYyxPQUVuQixFQUFLLFVBQVksQ0FDZixTQUFVLEVBQVUsS0FBSyxXQUV6QixVQUFXLEVBQVUsSUFDckIsTUFBTyxFQUFVLE1BQU0sSUFHekIsR0FBTyxHQUFRIiwKICAibmFtZXMiOiBbXQp9Cg==
`,...s},t);n.displayName="Link";n.propTypes={children:c.node.isRequired,component:c.any,color:c.oneOf(i)};var h=n;export{h as default};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlc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tdCn0K

@@ -99,2 +99,2 @@ var __create = Object.create;

var src_default = Link;
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vc3JjL2luZGV4LnRzeCJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiLyoqIEBqc3hSdW50aW1lIGNsYXNzaWMgKi9cbi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgY3NzLCBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcbmltcG9ydCB7IFRoZW1lU2NoZW1hLCB1c2VUaGVtZSB9IGZyb20gJ0BsYWJybnRoL3RoZW1lJztcblxuY29uc3QgY29sb3JWYWx1ZXMgPSBbXG4gICdyZWQnLFxuICAnZ3JlZW4nLFxuICAnYmx1ZScsXG4gICd5ZWxsb3cnLFxuICAnd2hpdGUnLFxuICAnYmxhY2snLFxuXSBhcyBjb25zdDtcbnR5cGUgQ29sb3JUeXBlcyA9IHR5cGVvZiBjb2xvclZhbHVlc1tudW1iZXJdO1xuXG5leHBvcnQgaW50ZXJmYWNlIExpbmtQcm9wcyB7XG4gIGNoaWxkcmVuOiBSZWFjdC5SZWFjdE5vZGU7XG4gIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tZXhwbGljaXQtYW55XG4gIGNvbXBvbmVudD86IGFueTtcbiAgY29sb3I/OiBDb2xvclR5cGVzO1xuICBba2V5OiBzdHJpbmddOiB1bmtub3duO1xufVxuXG5jb25zdCBnZXRDb2xvciA9IChjb2xvcjogQ29sb3JUeXBlcywgYmFja2dyb3VuZD86IGJvb2xlYW4pID0+IHtcbiAgY29uc3QgdGhlbWU6IFRoZW1lU2NoZW1hID0gdXNlVGhlbWUoKTtcbiAgc3dpdGNoIChjb2xvcikge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FBQU8sYUFBYSxNQUFNLE9BQU8sS0FBSyxPQUFPLE1BQU0sT0FBTyxLQUFLO0FBQUEsU0FDNUQ7QUFBQTtBQUVILGFBQU8sYUFBYSxNQUFNLE9BQU8sS0FBSyxPQUFPLE1BQU0sT0FBTyxLQUFLO0FBQUE7QUFBQTtBQUdyRSxJQUFNLE9BQTRCLENBQUM7QUFBQSxFQUNqQztBQUFBLEVBQ0EsV0FBVyxZQUFZO0FBQUEsRUFDdkIsUUFBUTtBQUFBLEtBQ0w7QUFBQSxNQUNDO0FBQ0osU0FDRSxzQ0FBQyxXQUFEO0FBQUEsSUFDRSxXQUFVO0FBQUEsSUFDVixLQUFLO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBLGlCQU1NLFNBQVM7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBLDhCQUtJLFNBQVMsT0FBTztBQUFBO0FBQUE7QUFBQTtBQUFBLHFDQUlULFNBQVM7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBLDhCQUtoQixTQUFTLE9BQU87QUFBQTtBQUFBO0FBQUEsT0FHcEM7QUFBQSxLQUVIO0FBQUE7QUFLUCxLQUFLLGNBQWM7QUFFbkIsS0FBSyxZQUFZO0FBQUEsRUFDZixVQUFVLDBCQUFVLEtBQUs7QUFBQSxFQUV6QixXQUFXLDBCQUFVO0FBQUEsRUFDckIsT0FBTywwQkFBVSxNQUFNO0FBQUE7QUFHekIsSUFBTyxjQUFROyIsCiAgIm5hbWVzIjogW10KfQo=
{
"name": "@labrnth/link",
"version": "0.1.2",
"version": "0.1.3",
"description": "A link component.",

@@ -5,0 +5,0 @@ "source": "./src/index.tsx",

@@ -21,6 +21,6 @@ # @labrnth/link

| Prop | Type | Default | Description |
| --------- | ------------------------------------------------------ | --------- | ------------------------------------- |
| color | `['red', 'green', 'blue', 'yellow', 'white', 'black']` | `'black'` | The colour of the link. |
| component | `any` | `a` | The underlying component of the link. |
| children | `React.ReactNode` | | The contents of the link. |
| Prop | Type | Default | Description |
| --------- | -------------------------------------------------- | ------- | ------------------------------------- |
| color | `red`, `green`, `blue`, `yellow`, `white`, `black` | `black` | The colour of the link. |
| component | `any` | `a` | The underlying component of the link. |
| children | `React.ReactNode` | | The contents of the link. |

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