Socket
Socket
Sign inDemoInstall

@uiw/react-color-github

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-color-github - npm Package Compare versions

Comparing version 1.4.3 to 2.0.0

10

cjs/index.d.ts

@@ -7,12 +7,12 @@ import React from 'react';

LeftTop = "LT",
LeftBotton = "LB",
LeftBottom = "LB",
Right = "R",
RightTop = "RT",
RightBotton = "RB",
RightBottom = "RB",
Top = "T",
TopRight = "TR",
TopLeft = "TL",
Botton = "B",
BottonLeft = "BL",
BottonRight = "BR"
Bottom = "B",
BottomLeft = "BL",
BottomRight = "BR"
}

@@ -19,0 +19,0 @@ export interface GithubRectRenderProps extends SwatchRectRenderProps {

@@ -22,12 +22,12 @@ "use strict";

GithubPlacement["LeftTop"] = "LT";
GithubPlacement["LeftBotton"] = "LB";
GithubPlacement["LeftBottom"] = "LB";
GithubPlacement["Right"] = "R";
GithubPlacement["RightTop"] = "RT";
GithubPlacement["RightBotton"] = "RB";
GithubPlacement["RightBottom"] = "RB";
GithubPlacement["Top"] = "T";
GithubPlacement["TopRight"] = "TR";
GithubPlacement["TopLeft"] = "TL";
GithubPlacement["Botton"] = "B";
GithubPlacement["BottonLeft"] = "BL";
GithubPlacement["BottonRight"] = "BR";
GithubPlacement["Bottom"] = "B";
GithubPlacement["BottomLeft"] = "BL";
GithubPlacement["BottomRight"] = "BR";
return GithubPlacement;

@@ -96,11 +96,11 @@ }({});

arrStyl.borderColor = 'var(--github-background-color) transparent transparent';
if (placement === GithubPlacement.BottonRight) {
if (placement === GithubPlacement.BottomRight) {
arrBrStyl.top = '100%';
arrStyl.top = '100%';
}
if (placement === GithubPlacement.Botton) {
if (placement === GithubPlacement.Bottom) {
arrBrStyl.top = '100%';
arrStyl.top = '100%';
}
if (placement === GithubPlacement.BottonLeft) {
if (placement === GithubPlacement.BottomLeft) {
arrBrStyl.top = '100%';

@@ -111,3 +111,3 @@ arrStyl.top = '100%';

if (/^(B|T)/.test(placement)) {
if (placement === GithubPlacement.Top || placement === GithubPlacement.Botton) {
if (placement === GithubPlacement.Top || placement === GithubPlacement.Bottom) {
arrBrStyl.left = '50%';

@@ -118,7 +118,7 @@ arrBrStyl.marginLeft = -8;

}
if (placement === GithubPlacement.TopRight || placement === GithubPlacement.BottonRight) {
if (placement === GithubPlacement.TopRight || placement === GithubPlacement.BottomRight) {
arrBrStyl.right = 10;
arrStyl.right = 11;
}
if (placement === GithubPlacement.TopLeft || placement === GithubPlacement.BottonLeft) {
if (placement === GithubPlacement.TopLeft || placement === GithubPlacement.BottomLeft) {
arrBrStyl.left = 7;

@@ -155,3 +155,3 @@ arrStyl.left = 8;

}
if (placement === GithubPlacement.LeftBotton || placement === GithubPlacement.RightBotton) {
if (placement === GithubPlacement.LeftBottom || placement === GithubPlacement.RightBottom) {
arrBrStyl.top = '100%';

@@ -158,0 +158,0 @@ arrStyl.top = '100%';

@@ -7,12 +7,12 @@ import React from 'react';

LeftTop = "LT",
LeftBotton = "LB",
LeftBottom = "LB",
Right = "R",
RightTop = "RT",
RightBotton = "RB",
RightBottom = "RB",
Top = "T",
TopRight = "TR",
TopLeft = "TL",
Botton = "B",
BottonLeft = "BL",
BottonRight = "BR"
Bottom = "B",
BottomLeft = "BL",
BottomRight = "BR"
}

@@ -19,0 +19,0 @@ export interface GithubRectRenderProps extends SwatchRectRenderProps {

@@ -15,12 +15,12 @@ import _extends from "@babel/runtime/helpers/extends";

GithubPlacement["LeftTop"] = "LT";
GithubPlacement["LeftBotton"] = "LB";
GithubPlacement["LeftBottom"] = "LB";
GithubPlacement["Right"] = "R";
GithubPlacement["RightTop"] = "RT";
GithubPlacement["RightBotton"] = "RB";
GithubPlacement["RightBottom"] = "RB";
GithubPlacement["Top"] = "T";
GithubPlacement["TopRight"] = "TR";
GithubPlacement["TopLeft"] = "TL";
GithubPlacement["Botton"] = "B";
GithubPlacement["BottonLeft"] = "BL";
GithubPlacement["BottonRight"] = "BR";
GithubPlacement["Bottom"] = "B";
GithubPlacement["BottomLeft"] = "BL";
GithubPlacement["BottomRight"] = "BR";
return GithubPlacement;

@@ -85,11 +85,11 @@ }({});

arrStyl.borderColor = 'var(--github-background-color) transparent transparent';
if (placement === GithubPlacement.BottonRight) {
if (placement === GithubPlacement.BottomRight) {
arrBrStyl.top = '100%';
arrStyl.top = '100%';
}
if (placement === GithubPlacement.Botton) {
if (placement === GithubPlacement.Bottom) {
arrBrStyl.top = '100%';
arrStyl.top = '100%';
}
if (placement === GithubPlacement.BottonLeft) {
if (placement === GithubPlacement.BottomLeft) {
arrBrStyl.top = '100%';

@@ -100,3 +100,3 @@ arrStyl.top = '100%';

if (/^(B|T)/.test(placement)) {
if (placement === GithubPlacement.Top || placement === GithubPlacement.Botton) {
if (placement === GithubPlacement.Top || placement === GithubPlacement.Bottom) {
arrBrStyl.left = '50%';

@@ -107,7 +107,7 @@ arrBrStyl.marginLeft = -8;

}
if (placement === GithubPlacement.TopRight || placement === GithubPlacement.BottonRight) {
if (placement === GithubPlacement.TopRight || placement === GithubPlacement.BottomRight) {
arrBrStyl.right = 10;
arrStyl.right = 11;
}
if (placement === GithubPlacement.TopLeft || placement === GithubPlacement.BottonLeft) {
if (placement === GithubPlacement.TopLeft || placement === GithubPlacement.BottomLeft) {
arrBrStyl.left = 7;

@@ -144,3 +144,3 @@ arrStyl.left = 8;

}
if (placement === GithubPlacement.LeftBotton || placement === GithubPlacement.RightBotton) {
if (placement === GithubPlacement.LeftBottom || placement === GithubPlacement.RightBottom) {
arrBrStyl.top = '100%';

@@ -147,0 +147,0 @@ arrStyl.top = '100%';

{
"name": "@uiw/react-color-github",
"version": "1.4.3",
"version": "2.0.0",
"description": "Color Github Picker",

@@ -39,4 +39,4 @@ "author": "Kenny Wong <wowohoo@qq.com>",

"dependencies": {
"@uiw/color-convert": "1.4.3",
"@uiw/react-color-swatch": "1.4.3"
"@uiw/color-convert": "2.0.0",
"@uiw/react-color-swatch": "2.0.0"
},

@@ -43,0 +43,0 @@ "devDependencies": {

@@ -52,12 +52,12 @@ React Color Github

LeftTop = "LT",
LeftBotton = "LB",
LeftBottom = "LB",
Right = "R",
RightTop = "RT",
RightBotton = "RB",
RightBottom = "RB",
Top = "T",
TopRight = "TR",
TopLeft = "TL",
Botton = "B",
BottonLeft = "BL",
BottonRight = "BR"
Bottom = "B",
BottomLeft = "BL",
BottomRight = "BR"
}

@@ -64,0 +64,0 @@ export interface GithubRectRenderProps extends SwatchRectRenderProps {

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