@dropzone-ui/core
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,585 +0,2 @@ | ||
function ___$insertStyle(css) { | ||
if (!css || typeof window === 'undefined') { | ||
return; | ||
} | ||
const style = document.createElement('style'); | ||
style.setAttribute('type', 'text/css'); | ||
style.innerHTML = css; | ||
document.head.appendChild(style); | ||
return css; | ||
} | ||
/** | ||
* The full list of named Colors provided by | ||
* https://htmlcolorcodes.com/es/nombres-de-los-colores/ | ||
*/ | ||
var NAMED_COLORS = { | ||
//RED | ||
indianred: "#CD5C5C", | ||
lightcoral: "#F08080", | ||
salmon: "#FA8072", | ||
darksalmon: "#E9967A", | ||
lightsalmon: "#FFA07A", | ||
crimson: "#DC143C", | ||
red: "#FF0000", | ||
firebrick: "#B22222", | ||
darkred: "#8B0000", | ||
//PINK | ||
pink: "#FFC0CB", | ||
lightpink: "#FFB6C1", | ||
hotpink: "#FF69B4", | ||
deeppink: "#FF1493", | ||
mediumvioletred: "#C71585", | ||
palevioletred: "#DB7093", | ||
//ORANGE | ||
//"lightsalmon: "#FFA07A", | ||
coral: "#FF7F50", | ||
tomato: "#FF6347", | ||
orangered: "#FF4500", | ||
darkorange: "#FF8C00", | ||
orange: "#FFA500", | ||
//YELLOW | ||
gold: "#FFD700", | ||
yellow: "#FFFF00", | ||
lightyellow: "#FFFFE0", | ||
lemonchiffon: "#FFFACD", | ||
lightgoldenrodyellow: "#FAFAD2", | ||
papayawhip: "#FFEFD5", | ||
moccasin: "#FFE4B5", | ||
peachpuff: "#FFDAB9", | ||
palegoldenrod: "#EEE8AA", | ||
khaki: "#F0E68C", | ||
darkkhaki: "#BDB76B", | ||
//PURPLE | ||
lavender: "#E6E6FA", | ||
thistle: "#D8BFD8", | ||
plum: "#DDA0DD", | ||
violet: "#EE82EE", | ||
orchid: "#DA70D6", | ||
fuchsia: "#FF00FF", | ||
magenta: "#FF00FF", | ||
mediumorchid: "#BA55D3", | ||
mediumpurple: "#9370DB", | ||
rebeccapurple: "#663399", | ||
blueviolet: "#8A2BE2", | ||
darkviolet: "#9400D3", | ||
darkorchid: "#9932CC", | ||
darkmagenta: "#8B008B", | ||
purple: "#800080", | ||
indigo: "#4B0082", | ||
slateblue: "#6A5ACD", | ||
darkslateblue: "#483D8B", | ||
mediumslateblue: "#7B68EE", | ||
//GREEN | ||
greenyellow: "#ADFF2F", | ||
chartreuse: "#7FFF00", | ||
lawngreen: "#7CFC00", | ||
lime: "#00FF00", | ||
limegreen: "#32CD32", | ||
palegreen: "#98FB98", | ||
lightgreen: "#90EE90", | ||
mediumspringgreen: "#00FA9A", | ||
springgreen: "#00FF7F", | ||
mediumseagreen: "#3CB371", | ||
seagreen: "#2E8B57", | ||
forestgreen: "#228B22", | ||
green: "#008000", | ||
darkgreen: "#006400", | ||
yellowgreen: "#9ACD32", | ||
olivedrab: "#6B8E23", | ||
olive: "#808000", | ||
darkolivegreen: "#556B2F", | ||
mediumaquamarine: "#66CDAA", | ||
darkseagreen: "#8FBC8B", | ||
lightseagreen: "#20B2AA", | ||
darkcyan: "#008B8B", | ||
teal: "#008080", | ||
//BLUE | ||
aqua: "#00FFFF", | ||
cyan: "#00FFFF", | ||
lightcyan: "#E0FFFF", | ||
paleturquoise: "#AFEEEE", | ||
aquamarine: "#7FFFD4", | ||
turquoise: "#40E0D0", | ||
mediumturquoise: "#48D1CC", | ||
darkturquoise: "#00CED1", | ||
cadetblue: "#5F9EA0", | ||
steelblue: "#4682B4", | ||
lightsteelblue: "#B0C4DE", | ||
powderblue: "#B0E0E6", | ||
lightblue: "#ADD8E6", | ||
skyblue: "#87CEEB", | ||
lightskyblue: "#87CEFA", | ||
deepskyblue: "#00BFFF", | ||
dodgerblue: "#1E90FF", | ||
cornflowerblue: "#6495ED", | ||
//"mediumslateblue: "#7B68EE", | ||
royalblue: "#4169E1", | ||
blue: "#0000FF", | ||
mediumblue: "#0000CD", | ||
darkblue: "#00008B", | ||
navy: "#000080", | ||
midnightblue: "#191970", | ||
//BROWN | ||
cornsilk: "#FFF8DC", | ||
blanchedalmond: "#FFEBCD", | ||
bisque: "#FFE4C4", | ||
navajowhite: "#FFDEAD", | ||
wheat: "#F5DEB3", | ||
burlywood: "#DEB887", | ||
tan: "#D2B48C", | ||
rosybrown: "#BC8F8F", | ||
sandybrown: "#F4A460", | ||
goldenrod: "#DAA520", | ||
darkgoldenrod: "#B8860B", | ||
peru: "#CD853F", | ||
chocolate: "#D2691E", | ||
saddlebrown: "#8B4513", | ||
sienna: "#A0522D", | ||
brown: "#A52A2A", | ||
maroon: "#800000", | ||
//WHITE | ||
white: "#FFFFFF", | ||
snow: "#FFFAFA", | ||
honeydew: "#F0FFF0", | ||
mintcream: "#F5FFFA", | ||
azure: "#F0FFFF", | ||
aliceblue: "#F0F8FF", | ||
ghostwhite: "#F8F8FF", | ||
whitesmoke: "#F5F5F5", | ||
seashell: "#FFF5EE", | ||
beige: "#F5F5DC", | ||
oldlace: "#FDF5E6", | ||
floralwhite: "#FFFAF0", | ||
ivory: "#FFFFF0", | ||
antiquewhite: "#FAEBD7", | ||
linen: "#FAF0E6", | ||
lavenderblush: "#FFF0F5", | ||
mistyrose: "#FFE4E1", | ||
//GREY | ||
gainsboro: "#DCDCDC", | ||
lightgray: "#D3D3D3", | ||
silver: "#C0C0C0", | ||
darkgray: "#A9A9A9", | ||
gray: "#808080", | ||
dimgray: "#696969", | ||
lightslategray: "#778899", | ||
slategray: "#708090", | ||
darkslategray: "#2F4F4F", | ||
black: "#000000" | ||
}; | ||
/** | ||
* Make the color into a darker color | ||
* @param colorInput | ||
* @returns the darked color in | ||
*/ | ||
var darkerColor = function (colorInput, percentage) { | ||
if (percentage === void 0) { percentage = 25; } | ||
var darkedColor = ""; | ||
var reduce = (100 - percentage) / 100; | ||
var component1 = 0; | ||
var component2 = 0; | ||
var component3 = 0; | ||
if (isHexColor(colourNameToHex(colorInput))) { | ||
component1 = hexTodec(colorInput.charAt(1)) * 16 + hexTodec(colorInput.charAt(2)); | ||
component2 = hexTodec(colorInput.charAt(3)) * 16 + hexTodec(colorInput.charAt(4)); | ||
component3 = hexTodec(colorInput.charAt(5)) * 16 + hexTodec(colorInput.charAt(6)); | ||
darkedColor = "rgb(".concat(component1 * reduce, ", ").concat(component2 * reduce, ",").concat(component3 * reduce, ")"); | ||
} | ||
else { | ||
if (colorInput.includes("rgba")) { | ||
var slicer = colorInput.replace("rgba(", ""); | ||
var components = slicer.split(","); | ||
darkedColor = "rgb(".concat(parseInt(components[0], 10) * reduce, ", ").concat(parseInt(components[1], 10) * reduce, ",").concat(parseInt(components[2], 10) * reduce, ")"); | ||
//return darkedColor; | ||
} | ||
else if (colorInput.includes("rgb")) { | ||
var slicer = colorInput.replace("rgb(", ""); | ||
var components = slicer.split(","); | ||
darkedColor = "rgb(".concat(parseInt(components[0], 10) * reduce, ", ").concat(parseInt(components[1], 10) * reduce, ",").concat(parseInt(components[2], 10) * reduce, ")"); | ||
// return darkedColor; | ||
} | ||
} | ||
return darkedColor; | ||
}; | ||
/** | ||
* Make the color into a brighted color | ||
* @param colorInput | ||
* @returns the brighted color | ||
*/ | ||
var brighterColor = function (colorInput, percentage) { | ||
if (percentage === void 0) { percentage = 25; } | ||
var brightedColor = ""; | ||
var increase = (100 + percentage) / 100; | ||
var component1 = 0; | ||
var component2 = 0; | ||
var component3 = 0; | ||
if (isHexColor(colourNameToHex(colorInput))) { | ||
component1 = hexTodec(colorInput.charAt(1)) * 16 + hexTodec(colorInput.charAt(2)); | ||
component2 = hexTodec(colorInput.charAt(3)) * 16 + hexTodec(colorInput.charAt(4)); | ||
component3 = hexTodec(colorInput.charAt(5)) * 16 + hexTodec(colorInput.charAt(6)); | ||
brightedColor = "rgb(".concat(component1 * increase, ", ").concat(component2 * increase, ",").concat(component3 * increase, ")"); | ||
} | ||
else { | ||
if (colorInput.includes("rgba")) { | ||
var slicer = colorInput.replace("rgba(", ""); | ||
var components = slicer.split(","); | ||
brightedColor = "rgb(".concat(parseInt(components[0], 10) * increase, ", ").concat(parseInt(components[1], 10) * increase, ",").concat(parseInt(components[2], 10) * increase, ")"); | ||
//return darkedColor; | ||
} | ||
else if (colorInput.includes("rgb")) { | ||
var slicer = colorInput.replace("rgb(", ""); | ||
var components = slicer.split(","); | ||
brightedColor = "rgb(".concat(parseInt(components[0], 10) * increase, ", ").concat(parseInt(components[1], 10) * increase, ",").concat(parseInt(components[2], 10) * increase, ")"); | ||
// return darkedColor; | ||
} | ||
} | ||
return brightedColor; | ||
}; | ||
/** | ||
* In order to managae rgba() we convert hex colors into rgba() | ||
* If the given color is already a rgb() color, it can add the percentage to convert it into rgba() | ||
* | ||
* | ||
* @param colorInput color in hex or in rgb | ||
* @param perc percentage for RGBA() color | ||
* @returns the rgba representation of a hex color | ||
*/ | ||
var hexColorToRGB = function (colorInput, perc, defaultColor) { | ||
if (perc === void 0) { perc = 0; } | ||
var resultDefault = defaultColor ? defaultColor : "rgba(255, 255, 255, 0.6)"; | ||
if (!colorInput) { | ||
return resultDefault; | ||
} | ||
//work only in uppercase | ||
var color = colorInput.toUpperCase(); | ||
// is already a rgba color | ||
if (color.includes("RGBA")) { | ||
return color; | ||
} | ||
//return rbg => rgba | ||
if (color.includes("RGB")) { | ||
return color.replace('RGB', "rgba").replace(')', ", ".concat(perc, ")")); | ||
} | ||
// if is a hex color or named color | ||
if (!isHexColor(colourNameToHex(color))) { | ||
return resultDefault; | ||
} | ||
var resultOk = ""; | ||
//let strVar: string = ""; | ||
var component1 = 0; | ||
var component2 = 0; | ||
var component3 = 0; | ||
//If passed all validations, proceed to transform | ||
component1 = hexTodec(color.charAt(1)) * 16 + hexTodec(color.charAt(2)); | ||
component2 = hexTodec(color.charAt(3)) * 16 + hexTodec(color.charAt(4)); | ||
component3 = hexTodec(color.charAt(5)) * 16 + hexTodec(color.charAt(6)); | ||
resultOk = "rgba(".concat(component1, ", ").concat(component2, ",").concat(component3, " , ").concat(perc, ")"); | ||
return resultOk; | ||
}; | ||
/** | ||
* Validates wheteher the color is hexadecimal css color | ||
* Example: #FF56AC | ||
* | ||
* | ||
* @param colorInput the color inpt to test | ||
* @returns true if the inputColor is a hexadecimal css color | ||
*/ | ||
var isHexColor = function (colorInput) { | ||
// if first element is no '#' return default background color | ||
if (colorInput.charAt(0) !== '#') { | ||
return false; | ||
} | ||
// if color lenght is not exactly 7 return default | ||
if (colorInput.length !== 7) { | ||
return false; | ||
} | ||
// if one of the letters is not included in hex array return default | ||
for (var i = 1; i < colorInput.length; i++) { | ||
if (!hexArray.includes(colorInput.charAt(i))) { | ||
return false; | ||
} | ||
} | ||
return true; | ||
}; | ||
/** | ||
* Converts a named color into hexadecimal color | ||
* from a list of well known namd colors if found. | ||
* When not given returns a "" | ||
* When not found in the list, returns the same value given | ||
* @param colour the named color | ||
* @returns The hex representation of the color or "" or the same color | ||
*/ | ||
function colourNameToHex(colour) { | ||
/** | ||
* When not given | ||
*/ | ||
if (!colour) { | ||
return ""; | ||
} | ||
/** | ||
* when named color is found | ||
*/ | ||
if (NAMED_COLORS[colour.toLocaleLowerCase()] !== undefined) { | ||
return NAMED_COLORS[colour.toLocaleLowerCase()]; | ||
} | ||
/** | ||
* When the named color was not found | ||
*/ | ||
return colour; | ||
} | ||
/** | ||
* hexArray & decArray | ||
* | ||
* arrays of numbers used to convert hexadecimal numbers into decimal and viceversa | ||
*/ | ||
var hexArray = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F']; | ||
var decArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]; | ||
/** | ||
* Converts hex number in string representation to decimal number | ||
* | ||
* | ||
* @param letter the string hex number | ||
* @returns a decimal number | ||
*/ | ||
var hexTodec = function (letter) { | ||
if (hexArray.includes(letter)) { | ||
return decArray[hexArray.indexOf(letter)]; | ||
} | ||
else { | ||
return 0; | ||
} | ||
}; | ||
/** | ||
* Asure a base color. When not given or when given an incorrect color format | ||
* default color is this kind of grey #5d6475 | ||
* | ||
* @param color param color given by user | ||
* @returns returns the same color | ||
*/ | ||
var asureColor = function (color) { | ||
if (color !== undefined && color !== "") { | ||
return color; | ||
} | ||
else { | ||
return "#5d6475"; | ||
} | ||
}; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
var __assign = function() { | ||
__assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
/** | ||
* Merge props that come form user and those ones that are by default | ||
* if incommingProps is null this returns the default props value | ||
* | ||
* @param incommingProps prop that comes from props attributoo of a React Node | ||
* @param defaultProps default prop defined for that React Node | ||
* @returns merged props | ||
*/ | ||
function mergeProps(incommingProps, defaultProps) { | ||
if (!incommingProps) { | ||
return defaultProps; | ||
} | ||
else { | ||
return __assign(__assign({}, defaultProps), incommingProps); | ||
} | ||
} | ||
/* import aac from "./aac.png"; | ||
import accdb from "./accdb.png"; | ||
import abw from "./abw.png"; | ||
import freearc from "./freearc.png"; | ||
import avi from "./avi.png"; | ||
import azw from "./azw.png"; | ||
import octet from "./octet.png"; | ||
import bmp from "./bmp.png"; | ||
import bz from "./bz.png"; | ||
import bz2 from "./bz2.png"; | ||
import cda from "./cda.png"; | ||
import csh from "./csh.png"; | ||
import css from "./css.png"; | ||
import csv from "./csv.png"; | ||
import docx from "./docx.png"; | ||
import drawio from "./drawio.png"; | ||
import eot from "./eot.png"; | ||
import epub from "./epub.png"; | ||
import gzip from "./gzip.png"; | ||
import gif from "./gif.png"; | ||
import html from "./html.png"; | ||
//import ico from "./ico.png"; | ||
import icalendar from "./icalendar.png"; | ||
import jar from "./java.png"; | ||
import jpeg from "./jpeg.png"; | ||
import javascript from "./javascript.png"; | ||
import json from "./json.png"; | ||
import jsonld from "./jsonld.png"; | ||
import midi from "./midi.png"; | ||
//import mjs from "./js.png"; | ||
import mp3 from "./mp3.png"; | ||
import mp4 from "./mp4.png"; | ||
import mpeg from "./mpeg.png"; | ||
import mpkg from "./mpkg.png"; | ||
import odp from "./odp.png"; | ||
import ods from "./ods.png"; | ||
import odt from "./odt.png"; | ||
//import oga from "./oga.png"; | ||
//import ogv from "./ogv.png"; | ||
//import ogx from "./ogx.png"; | ||
import opus from "./opus.png"; | ||
import otf from "./otf.png"; | ||
import png from "./png.png"; | ||
import pdf from "./pdf.png"; | ||
import php from "./php.png"; | ||
import pptx from "./pptx.png"; | ||
import psd from "./psd.png"; | ||
import rar from "./rar.png"; | ||
import rtf from "./rtf.png"; | ||
import sh from "./sh.png"; | ||
//import svg from "./svg.png"; | ||
import sass from "./sass.png"; | ||
import swf from "./swf.png"; | ||
import tar from "./rar.png"; | ||
import tiff from "./tiff.png"; | ||
import ttf from "./ttf.png"; | ||
//import ts from "./ts.png"; | ||
import typescript from "./typescript.png"; | ||
import text from "./text.png"; | ||
import vsd from "./vsd.png"; | ||
import wav from "./wav.png"; | ||
import weba from "./webm.png"; | ||
import webm from "./webm.png"; | ||
import webp from "./webp.png"; | ||
import wma from "./wma.png"; | ||
import wmv from "./wmv.png"; | ||
import woff from "./woff.png"; | ||
//import xhtml from "./xhtml.png"; | ||
import xlsx from "./xlsx.png"; | ||
import xml from "./xml.png"; | ||
import xul from "./xul.png"; | ||
import zip from "./zip.png"; | ||
//import threegp from "./3gp.png"; | ||
import sevenzip from "./7z.png"; | ||
import python from "./python.png"; | ||
import java from "./java.png"; | ||
import react from "./react.png"; | ||
import vue from "./vue.png"; */ | ||
var sevenzip = "https://user-images.githubusercontent.com/43678736/132086517-72a51a12-e403-4675-bfd7-22c23affa730.png"; | ||
var aac = "https://user-images.githubusercontent.com/43678736/132086518-7026d4f1-ea16-4ed0-89fd-37c1aa8ac3ed.png"; | ||
var abw = "https://user-images.githubusercontent.com/43678736/132086519-863c63b4-917e-4471-94ff-7e15651cc14b.png"; | ||
var accdb = "https://user-images.githubusercontent.com/43678736/132086520-9bc6aa3b-51c9-4da2-9ef7-349162b86d0b.png"; | ||
var avi = "https://user-images.githubusercontent.com/43678736/132086521-dbd6cf0d-d4d7-4b92-bb26-17e8a51a9383.png"; | ||
var azw = "https://user-images.githubusercontent.com/43678736/132086522-070f48e8-78a8-4294-8dbb-aab81525e164.png"; | ||
var bmp = "https://user-images.githubusercontent.com/43678736/132086595-90ab7f90-f87e-4900-94d9-d0b26745df48.png"; | ||
var bz = "https://user-images.githubusercontent.com/43678736/132086597-e285ad5c-613a-4679-a270-493e5be4ffd9.png"; | ||
var bz2 = "https://user-images.githubusercontent.com/43678736/132086598-623c410a-084a-4395-a448-211b2ff61cfe.png"; | ||
var c = "https://user-images.githubusercontent.com/43678736/132086599-7a5cd692-b4df-45f5-80d9-384cb3e0c314.png"; | ||
var cda = "https://user-images.githubusercontent.com/43678736/132086600-8b70a007-512d-4252-9c66-eabd3ddd6573.png"; | ||
var csh = "https://user-images.githubusercontent.com/43678736/132086601-e62e5d1a-d8a2-4475-a14f-85922cec9272.png"; | ||
var css = "https://user-images.githubusercontent.com/43678736/132086602-4c772934-f608-4f01-8459-c4622cee8ad5.png"; | ||
var csv = "https://user-images.githubusercontent.com/43678736/132086604-b5b019fe-572e-477e-92c2-3769a48a1304.png"; | ||
//export const default = "https://user-images.githubusercontent.com/43678736/132086605-d03db898-045c-477e-bae6-156699833eb0.png"; | ||
var docx = "https://user-images.githubusercontent.com/43678736/132086606-715ccb66-4702-4f7d-9b09-ac93ba17b643.png"; | ||
var docx2 = "https://user-images.githubusercontent.com/43678736/132086607-a246b386-52c9-4fe1-a7e4-204894e6722d.png"; | ||
var drawio = "https://user-images.githubusercontent.com/43678736/132086608-bcae9d57-8e54-488c-90c4-4952ae530b5e.png"; | ||
var dw = "https://user-images.githubusercontent.com/43678736/132086616-0c7842d6-d20e-4ede-988b-3dd063a4de8d.png"; | ||
var eml = "https://user-images.githubusercontent.com/43678736/132086617-1e351075-ffaf-4b81-a1fe-0b7b338772a2.png"; | ||
var eot = "https://user-images.githubusercontent.com/43678736/132086618-397d6bd2-9fda-43ed-a135-cb40388c35af.png"; | ||
var eps = "https://user-images.githubusercontent.com/43678736/132086619-9daf0b61-dbb0-4d47-8a12-9fba13b88856.png"; | ||
var epub = "https://user-images.githubusercontent.com/43678736/132086620-2586ba40-c583-4589-b1a4-8bb5b258b44d.png"; | ||
var freearc = "https://user-images.githubusercontent.com/43678736/132086621-3b95fb64-2533-4ccc-abcd-bd2beba572e9.png"; | ||
var gif = "https://user-images.githubusercontent.com/43678736/132086622-af705a0c-2b25-4ba7-8ab6-bd69ec97f7e2.png"; | ||
var gzip = "https://user-images.githubusercontent.com/43678736/132086624-89141a46-64e4-4fa0-bf69-54a0eb4d48c9.png"; | ||
var html = "https://user-images.githubusercontent.com/43678736/132086625-1b8f2652-1de0-4475-8c12-7da4a9973ffb.png"; | ||
var icalendar = "https://user-images.githubusercontent.com/43678736/132086626-38699705-1e6f-4bca-984b-03167b236faa.png"; | ||
var ind = "https://user-images.githubusercontent.com/43678736/132086627-2f24067a-00bc-424a-af36-349a9ba14b6c.png"; | ||
var ini = "https://user-images.githubusercontent.com/43678736/132086649-20c9c9e6-8e63-4d87-9b8e-8fe8eba12ada.png"; | ||
var java = "https://user-images.githubusercontent.com/43678736/132086650-f1166246-b361-4c30-a04e-9781c555d14a.png"; | ||
var jar = "https://user-images.githubusercontent.com/43678736/132086650-f1166246-b361-4c30-a04e-9781c555d14a.png"; | ||
var javascript = "https://user-images.githubusercontent.com/43678736/132086652-4562942e-aaea-466c-968f-380fffabf3f9.png"; | ||
var jpeg = "https://user-images.githubusercontent.com/43678736/132086653-0487e7e2-1ee3-49e2-8cfe-3e20f1f7490a.png"; | ||
var jsf = "https://user-images.githubusercontent.com/43678736/132086654-c510bd8f-8de7-4afe-8c20-cc810b004b07.png"; | ||
var json = "https://user-images.githubusercontent.com/43678736/132086656-6e96c815-e4e2-4ffd-9d71-57e9cc2450bc.png"; | ||
var jsonld = "https://user-images.githubusercontent.com/43678736/132086658-5d27d3c2-394f-43fb-b512-9b414a257875.png"; | ||
var midi = "https://user-images.githubusercontent.com/43678736/132086659-98f3ef6e-b9f3-4b6d-b18f-469b5334ba27.png"; | ||
var mov = "https://user-images.githubusercontent.com/43678736/132086660-adcecedd-56b4-4286-8b0f-69417f77e961.png"; | ||
var mp3 = "https://user-images.githubusercontent.com/43678736/132086661-a5484553-06c7-4ffa-a8f9-96b57b1b0344.png"; | ||
var mp4 = "https://user-images.githubusercontent.com/43678736/132086662-05ad1597-d5e5-4efa-833e-2876e966a745.png"; | ||
var mpeg = "https://user-images.githubusercontent.com/43678736/132086663-90c58955-f7fb-4bdb-ac53-92667d16d4a3.png"; | ||
var mpkg = "https://user-images.githubusercontent.com/43678736/132086664-9a7530e7-6d78-4ef3-a176-20cf7f57b555.png"; | ||
var octet = "https://user-images.githubusercontent.com/43678736/132086666-ab3c505d-b2c0-4177-9a06-aed5d9c39ee4.png"; | ||
var odp = "https://user-images.githubusercontent.com/43678736/132086667-6c7dcbcc-8d83-41a2-8e0a-85b09e2791ae.png"; | ||
var ods = "https://user-images.githubusercontent.com/43678736/132086668-9f246e91-cf2e-49cf-9617-e1fbb71abbbb.png"; | ||
var odt = "https://user-images.githubusercontent.com/43678736/132086669-46113762-84d1-4b32-9441-b0138ce17a5d.png"; | ||
//ogg type | ||
var oga = "https://user-images.githubusercontent.com/43678736/145835364-2054509d-3448-4d34-921f-73dd6e297fc7.png"; | ||
var ogv = "https://user-images.githubusercontent.com/43678736/145835367-19172bf8-cd5a-4cbe-b512-d0de1d91f269.png"; | ||
var ogx = "https://user-images.githubusercontent.com/43678736/145835373-a57ef0f5-3968-483b-9f55-6d67e7f1dcea.png"; | ||
var opus = "https://user-images.githubusercontent.com/43678736/132086670-0f96e770-cedc-4635-a5f9-cf97894c1d7a.png"; | ||
var otf = "https://user-images.githubusercontent.com/43678736/132086671-02ad35ef-ec3a-4a65-abd5-5bf794dfcf7b.png"; | ||
var pdf = "https://user-images.githubusercontent.com/43678736/132086672-3a856fda-823d-4997-b802-c7c640e6ef44.png"; | ||
var php = "https://user-images.githubusercontent.com/43678736/132086673-0c4409ab-754e-4619-8cfa-179d0ccf1bd9.png"; | ||
var png = "https://user-images.githubusercontent.com/43678736/132086674-fdb56d02-5845-49b7-8462-6357bc963464.png"; | ||
var pptx = "https://user-images.githubusercontent.com/43678736/132086675-c879645d-acb4-41a6-ab3c-4e6c2048badb.png"; | ||
var pptx2 = "https://user-images.githubusercontent.com/43678736/132086676-6de1bbd7-764f-4197-9aa4-405a60ce6734.png"; | ||
var proj = "https://user-images.githubusercontent.com/43678736/132086683-3dc0a8b8-72f8-4fa1-a08a-fcfd75b465e1.png"; | ||
var psd = "https://user-images.githubusercontent.com/43678736/132086685-4e327c4c-a409-4b83-b36a-8d88936b314b.png"; | ||
var pst = "https://user-images.githubusercontent.com/43678736/132086686-3888e43a-5abf-41f7-9940-4b86e436521f.png"; | ||
var publisher = "https://user-images.githubusercontent.com/43678736/132086687-d92b56ff-f7f7-4be7-bbf4-47b8a33f4c6f.png"; | ||
var python = "https://user-images.githubusercontent.com/43678736/132086688-8e82fae4-3a9b-49c0-bf99-77189525514c.png"; | ||
var tar = "https://user-images.githubusercontent.com/43678736/132086689-fe1fef9f-d2db-455b-8f4b-09acd095f571.png"; | ||
var rar = "https://user-images.githubusercontent.com/43678736/132086689-fe1fef9f-d2db-455b-8f4b-09acd095f571.png"; | ||
var react = "https://user-images.githubusercontent.com/43678736/132086691-d472576b-ec6a-4332-acd2-dd6a00b72952.png"; | ||
var richtextformat = "https://user-images.githubusercontent.com/43678736/132086692-df6e3518-2e6a-4553-883d-e21694980449.png"; | ||
var rtf = "https://user-images.githubusercontent.com/43678736/132086693-9d43571e-0c86-438f-b247-e2cb42e19e06.png"; | ||
var sass = "https://user-images.githubusercontent.com/43678736/132086694-4e661d6a-1118-441e-8bc3-c52fcb2133b6.png"; | ||
var settings = "https://user-images.githubusercontent.com/43678736/132086696-0dd21f83-b9fc-490c-9ed5-bd88151dc9bb.png"; | ||
var sh = "https://user-images.githubusercontent.com/43678736/132086697-1d82d724-35b6-4f06-847a-3c59a5deda6e.png"; | ||
var swf = "https://user-images.githubusercontent.com/43678736/132086698-19384230-dbd7-4e05-bc69-ef4537b6aae3.png"; | ||
var text = "https://user-images.githubusercontent.com/43678736/132086699-5993a482-04f4-4915-b105-9037f527cf61.png"; | ||
var tiff = "https://user-images.githubusercontent.com/43678736/132086700-c23461c8-6819-46e1-aecd-0a1f8d3507bb.png"; | ||
var ttf = "https://user-images.githubusercontent.com/43678736/132086701-c8044c09-8d95-4af1-9410-66761001d7da.png"; | ||
var typescript = "https://user-images.githubusercontent.com/43678736/132086702-59294337-ed99-4302-badd-316b2c1ff62f.png"; | ||
var url = "https://user-images.githubusercontent.com/43678736/132086703-86d97476-b76e-4949-b89a-31ecb03f3b6e.png"; | ||
var vsd = "https://user-images.githubusercontent.com/43678736/132086704-8fd51e7c-afa2-47a3-ab2f-d0bcd0ecae9f.png"; | ||
var vue = "https://user-images.githubusercontent.com/43678736/132086705-33294da1-5c0f-49f7-b890-e4857cec0a6d.png"; | ||
var wav = "https://user-images.githubusercontent.com/43678736/132086706-22f805d0-39d4-494b-824e-47dc75d05eb7.png"; | ||
var webm = "https://user-images.githubusercontent.com/43678736/132086707-e61a84de-d396-4dbf-8d1b-1d6ee19e1ac8.png"; | ||
var weba = "https://user-images.githubusercontent.com/43678736/132086707-e61a84de-d396-4dbf-8d1b-1d6ee19e1ac8.png"; | ||
var webp = "https://user-images.githubusercontent.com/43678736/132086708-21d096dd-7148-40aa-97f1-cbb099339740.png"; | ||
var wma = "https://user-images.githubusercontent.com/43678736/132086709-811d4e90-3cfa-4044-a956-aeda9c67fc92.png"; | ||
var wmv = "https://user-images.githubusercontent.com/43678736/132086710-c5479c6c-0249-4542-adad-48b0ef40b775.png"; | ||
var woff = "https://user-images.githubusercontent.com/43678736/132086711-1524a3e7-3e33-4822-a34f-ff3235404045.png"; | ||
var xlsx = "https://user-images.githubusercontent.com/43678736/132086712-17e2c491-f6e4-4586-aef6-06bcc5f4b0e5.png"; | ||
var xlsx2 = "https://user-images.githubusercontent.com/43678736/132086714-7ddf285d-2b83-4115-80a5-f02f510300a1.png"; | ||
var xml = "https://user-images.githubusercontent.com/43678736/132086715-204b5a8b-9c5a-4bac-8294-9237ebc16089.png"; | ||
var xul = "https://user-images.githubusercontent.com/43678736/132086716-64511d20-58cb-45a8-85df-f4d9408b469d.png"; | ||
var zip = "https://user-images.githubusercontent.com/43678736/132086718-a8499333-6282-4820-aa1f-4d133eb54648.png"; | ||
//export { aac, abw, accdb, avi, azw, bmp, bz, bz2, cda, csh, css, csv, docx, drawio, eot, epub, freearc, gif, gzip, html, icalendar, jar, java, javascript, jpeg, json, jsonld, midi, mp3, mp4, mpeg, mpkg, octet, odp, ods, odt, opus, otf, pdf, php, png, pptx, psd, python, rar, react, rtf,sass, sevenzip, sh, swf, tar, text, tiff, ttf, typescript, vsd, vue, wav, weba, webm, webp, wma, wmv, woff, xlsx, xml, xul, zip }; | ||
export { NAMED_COLORS, aac, abw, accdb, asureColor, avi, azw, bmp, brighterColor, bz, bz2, c, cda, colourNameToHex, csh, css, csv, darkerColor, docx, docx2, drawio, dw, eml, eot, eps, epub, freearc, gif, gzip, hexColorToRGB, hexTodec, html, icalendar, ind, ini, isHexColor, jar, java, javascript, jpeg, jsf, json, jsonld, mergeProps, midi, mov, mp3, mp4, mpeg, mpkg, octet, odp, ods, odt, oga, ogv, ogx, opus, otf, pdf, php, png, pptx, pptx2, proj, psd, pst, publisher, python, rar, react, richtextformat, rtf, sass, settings, sevenzip, sh, swf, tar, text, tiff, ttf, typescript, url, vsd, vue, wav, weba, webm, webp, wma, wmv, woff, xlsx, xlsx2, xml, xul, zip }; | ||
var e={indianred:"#CD5C5C",lightcoral:"#F08080",salmon:"#FA8072",darksalmon:"#E9967A",lightsalmon:"#FFA07A",crimson:"#DC143C",red:"#FF0000",firebrick:"#B22222",darkred:"#8B0000",pink:"#FFC0CB",lightpink:"#FFB6C1",hotpink:"#FF69B4",deeppink:"#FF1493",mediumvioletred:"#C71585",palevioletred:"#DB7093",coral:"#FF7F50",tomato:"#FF6347",orangered:"#FF4500",darkorange:"#FF8C00",orange:"#FFA500",gold:"#FFD700",yellow:"#FFFF00",lightyellow:"#FFFFE0",lemonchiffon:"#FFFACD",lightgoldenrodyellow:"#FAFAD2",papayawhip:"#FFEFD5",moccasin:"#FFE4B5",peachpuff:"#FFDAB9",palegoldenrod:"#EEE8AA",khaki:"#F0E68C",darkkhaki:"#BDB76B",lavender:"#E6E6FA",thistle:"#D8BFD8",plum:"#DDA0DD",violet:"#EE82EE",orchid:"#DA70D6",fuchsia:"#FF00FF",magenta:"#FF00FF",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",rebeccapurple:"#663399",blueviolet:"#8A2BE2",darkviolet:"#9400D3",darkorchid:"#9932CC",darkmagenta:"#8B008B",purple:"#800080",indigo:"#4B0082",slateblue:"#6A5ACD",darkslateblue:"#483D8B",mediumslateblue:"#7B68EE",greenyellow:"#ADFF2F",chartreuse:"#7FFF00",lawngreen:"#7CFC00",lime:"#00FF00",limegreen:"#32CD32",palegreen:"#98FB98",lightgreen:"#90EE90",mediumspringgreen:"#00FA9A",springgreen:"#00FF7F",mediumseagreen:"#3CB371",seagreen:"#2E8B57",forestgreen:"#228B22",green:"#008000",darkgreen:"#006400",yellowgreen:"#9ACD32",olivedrab:"#6B8E23",olive:"#808000",darkolivegreen:"#556B2F",mediumaquamarine:"#66CDAA",darkseagreen:"#8FBC8B",lightseagreen:"#20B2AA",darkcyan:"#008B8B",teal:"#008080",aqua:"#00FFFF",cyan:"#00FFFF",lightcyan:"#E0FFFF",paleturquoise:"#AFEEEE",aquamarine:"#7FFFD4",turquoise:"#40E0D0",mediumturquoise:"#48D1CC",darkturquoise:"#00CED1",cadetblue:"#5F9EA0",steelblue:"#4682B4",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",lightblue:"#ADD8E6",skyblue:"#87CEEB",lightskyblue:"#87CEFA",deepskyblue:"#00BFFF",dodgerblue:"#1E90FF",cornflowerblue:"#6495ED",royalblue:"#4169E1",blue:"#0000FF",mediumblue:"#0000CD",darkblue:"#00008B",navy:"#000080",midnightblue:"#191970",cornsilk:"#FFF8DC",blanchedalmond:"#FFEBCD",bisque:"#FFE4C4",navajowhite:"#FFDEAD",wheat:"#F5DEB3",burlywood:"#DEB887",tan:"#D2B48C",rosybrown:"#BC8F8F",sandybrown:"#F4A460",goldenrod:"#DAA520",darkgoldenrod:"#B8860B",peru:"#CD853F",chocolate:"#D2691E",saddlebrown:"#8B4513",sienna:"#A0522D",brown:"#A52A2A",maroon:"#800000",white:"#FFFFFF",snow:"#FFFAFA",honeydew:"#F0FFF0",mintcream:"#F5FFFA",azure:"#F0FFFF",aliceblue:"#F0F8FF",ghostwhite:"#F8F8FF",whitesmoke:"#F5F5F5",seashell:"#FFF5EE",beige:"#F5F5DC",oldlace:"#FDF5E6",floralwhite:"#FFFAF0",ivory:"#FFFFF0",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lavenderblush:"#FFF0F5",mistyrose:"#FFE4E1",gainsboro:"#DCDCDC",lightgray:"#D3D3D3",silver:"#C0C0C0",darkgray:"#A9A9A9",gray:"#808080",dimgray:"#696969",lightslategray:"#778899",slategray:"#708090",darkslategray:"#2F4F4F",black:"#000000"},t=function(e,t){void 0===t&&(t=25);var a="",c=(100-t)/100,r=0,u=0,b=0;if(s(n(e)))r=16*g(e.charAt(1))+g(e.charAt(2)),u=16*g(e.charAt(3))+g(e.charAt(4)),b=16*g(e.charAt(5))+g(e.charAt(6)),a="rgb(".concat(r*c,", ").concat(u*c,",").concat(b*c,")");else if(e.includes("rgba")){var o=e.replace("rgba(","").split(",");a="rgb(".concat(parseInt(o[0],10)*c,", ").concat(parseInt(o[1],10)*c,",").concat(parseInt(o[2],10)*c,")")}else if(e.includes("rgb")){o=e.replace("rgb(","").split(",");a="rgb(".concat(parseInt(o[0],10)*c,", ").concat(parseInt(o[1],10)*c,",").concat(parseInt(o[2],10)*c,")")}return a},a=function(e,t){void 0===t&&(t=25);var a="",c=(100+t)/100,r=0,u=0,b=0;if(s(n(e)))r=16*g(e.charAt(1))+g(e.charAt(2)),u=16*g(e.charAt(3))+g(e.charAt(4)),b=16*g(e.charAt(5))+g(e.charAt(6)),a="rgb(".concat(r*c,", ").concat(u*c,",").concat(b*c,")");else if(e.includes("rgba")){var o=e.replace("rgba(","").split(",");a="rgb(".concat(parseInt(o[0],10)*c,", ").concat(parseInt(o[1],10)*c,",").concat(parseInt(o[2],10)*c,")")}else if(e.includes("rgb")){o=e.replace("rgb(","").split(",");a="rgb(".concat(parseInt(o[0],10)*c,", ").concat(parseInt(o[1],10)*c,",").concat(parseInt(o[2],10)*c,")")}return a},c=function(e,t,a){void 0===t&&(t=0);var c=a||"rgba(255, 255, 255, 0.6)";if(!e)return c;var r=e.toUpperCase();if(r.includes("RGBA"))return r;if(r.includes("RGB"))return r.replace("RGB","rgba").replace(")",", ".concat(t,")"));if(!s(n(r)))return c;var u,b,o;return u=16*g(r.charAt(1))+g(r.charAt(2)),b=16*g(r.charAt(3))+g(r.charAt(4)),o=16*g(r.charAt(5))+g(r.charAt(6)),"rgba(".concat(u,", ").concat(b,",").concat(o," , ").concat(t,")")},s=function(e){if("#"!==e.charAt(0))return!1;if(7!==e.length)return!1;for(var t=1;t<e.length;t++)if(!r.includes(e.charAt(t)))return!1;return!0};function n(t){return t?void 0!==e[t.toLocaleLowerCase()]?e[t.toLocaleLowerCase()]:t:""}var r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],u=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],g=function(e){return r.includes(e)?u[r.indexOf(e)]:0},b=function(e){return void 0!==e&&""!==e?e:"#5d6475"},o=function(){return o=Object.assign||function(e){for(var t,a=1,c=arguments.length;a<c;a++)for(var s in t=arguments[a])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},o.apply(this,arguments)};function i(e,t){return e?o(o({},t),e):t}var d="https://user-images.githubusercontent.com/43678736/132086517-72a51a12-e403-4675-bfd7-22c23affa730.png",h="https://user-images.githubusercontent.com/43678736/132086518-7026d4f1-ea16-4ed0-89fd-37c1aa8ac3ed.png",p="https://user-images.githubusercontent.com/43678736/132086519-863c63b4-917e-4471-94ff-7e15651cc14b.png",m="https://user-images.githubusercontent.com/43678736/132086520-9bc6aa3b-51c9-4da2-9ef7-349162b86d0b.png",f="https://user-images.githubusercontent.com/43678736/132086521-dbd6cf0d-d4d7-4b92-bb26-17e8a51a9383.png",F="https://user-images.githubusercontent.com/43678736/132086522-070f48e8-78a8-4294-8dbb-aab81525e164.png",l="https://user-images.githubusercontent.com/43678736/132086595-90ab7f90-f87e-4900-94d9-d0b26745df48.png",A="https://user-images.githubusercontent.com/43678736/132086597-e285ad5c-613a-4679-a270-493e5be4ffd9.png",D="https://user-images.githubusercontent.com/43678736/132086598-623c410a-084a-4395-a448-211b2ff61cfe.png",E="https://user-images.githubusercontent.com/43678736/132086599-7a5cd692-b4df-45f5-80d9-384cb3e0c314.png",B="https://user-images.githubusercontent.com/43678736/132086600-8b70a007-512d-4252-9c66-eabd3ddd6573.png",C="https://user-images.githubusercontent.com/43678736/132086601-e62e5d1a-d8a2-4475-a14f-85922cec9272.png",k="https://user-images.githubusercontent.com/43678736/132086602-4c772934-f608-4f01-8459-c4622cee8ad5.png",v="https://user-images.githubusercontent.com/43678736/132086604-b5b019fe-572e-477e-92c2-3769a48a1304.png",y="https://user-images.githubusercontent.com/43678736/132086606-715ccb66-4702-4f7d-9b09-ac93ba17b643.png",w="https://user-images.githubusercontent.com/43678736/132086607-a246b386-52c9-4fe1-a7e4-204894e6722d.png",I="https://user-images.githubusercontent.com/43678736/132086608-bcae9d57-8e54-488c-90c4-4952ae530b5e.png",q="https://user-images.githubusercontent.com/43678736/132086616-0c7842d6-d20e-4ede-988b-3dd063a4de8d.png",L="https://user-images.githubusercontent.com/43678736/132086617-1e351075-ffaf-4b81-a1fe-0b7b338772a2.png",O="https://user-images.githubusercontent.com/43678736/132086618-397d6bd2-9fda-43ed-a135-cb40388c35af.png",j="https://user-images.githubusercontent.com/43678736/132086619-9daf0b61-dbb0-4d47-8a12-9fba13b88856.png",G="https://user-images.githubusercontent.com/43678736/132086620-2586ba40-c583-4589-b1a4-8bb5b258b44d.png",R="https://user-images.githubusercontent.com/43678736/132086621-3b95fb64-2533-4ccc-abcd-bd2beba572e9.png",x="https://user-images.githubusercontent.com/43678736/132086622-af705a0c-2b25-4ba7-8ab6-bd69ec97f7e2.png",z="https://user-images.githubusercontent.com/43678736/132086624-89141a46-64e4-4fa0-bf69-54a0eb4d48c9.png",P="https://user-images.githubusercontent.com/43678736/132086625-1b8f2652-1de0-4475-8c12-7da4a9973ffb.png",U="https://user-images.githubusercontent.com/43678736/132086626-38699705-1e6f-4bca-984b-03167b236faa.png",H="https://user-images.githubusercontent.com/43678736/132086627-2f24067a-00bc-424a-af36-349a9ba14b6c.png",J="https://user-images.githubusercontent.com/43678736/132086649-20c9c9e6-8e63-4d87-9b8e-8fe8eba12ada.png",K="https://user-images.githubusercontent.com/43678736/132086650-f1166246-b361-4c30-a04e-9781c555d14a.png",M="https://user-images.githubusercontent.com/43678736/132086650-f1166246-b361-4c30-a04e-9781c555d14a.png",N="https://user-images.githubusercontent.com/43678736/132086652-4562942e-aaea-466c-968f-380fffabf3f9.png",Q="https://user-images.githubusercontent.com/43678736/132086653-0487e7e2-1ee3-49e2-8cfe-3e20f1f7490a.png",S="https://user-images.githubusercontent.com/43678736/132086654-c510bd8f-8de7-4afe-8c20-cc810b004b07.png",T="https://user-images.githubusercontent.com/43678736/132086656-6e96c815-e4e2-4ffd-9d71-57e9cc2450bc.png",V="https://user-images.githubusercontent.com/43678736/132086658-5d27d3c2-394f-43fb-b512-9b414a257875.png",W="https://user-images.githubusercontent.com/43678736/132086659-98f3ef6e-b9f3-4b6d-b18f-469b5334ba27.png",X="https://user-images.githubusercontent.com/43678736/132086660-adcecedd-56b4-4286-8b0f-69417f77e961.png",Y="https://user-images.githubusercontent.com/43678736/132086661-a5484553-06c7-4ffa-a8f9-96b57b1b0344.png",Z="https://user-images.githubusercontent.com/43678736/132086662-05ad1597-d5e5-4efa-833e-2876e966a745.png",$="https://user-images.githubusercontent.com/43678736/132086663-90c58955-f7fb-4bdb-ac53-92667d16d4a3.png",_="https://user-images.githubusercontent.com/43678736/132086664-9a7530e7-6d78-4ef3-a176-20cf7f57b555.png",ee="https://user-images.githubusercontent.com/43678736/132086666-ab3c505d-b2c0-4177-9a06-aed5d9c39ee4.png",te="https://user-images.githubusercontent.com/43678736/132086667-6c7dcbcc-8d83-41a2-8e0a-85b09e2791ae.png",ae="https://user-images.githubusercontent.com/43678736/132086668-9f246e91-cf2e-49cf-9617-e1fbb71abbbb.png",ce="https://user-images.githubusercontent.com/43678736/132086669-46113762-84d1-4b32-9441-b0138ce17a5d.png",se="https://user-images.githubusercontent.com/43678736/145835364-2054509d-3448-4d34-921f-73dd6e297fc7.png",ne="https://user-images.githubusercontent.com/43678736/145835367-19172bf8-cd5a-4cbe-b512-d0de1d91f269.png",re="https://user-images.githubusercontent.com/43678736/145835373-a57ef0f5-3968-483b-9f55-6d67e7f1dcea.png",ue="https://user-images.githubusercontent.com/43678736/132086670-0f96e770-cedc-4635-a5f9-cf97894c1d7a.png",ge="https://user-images.githubusercontent.com/43678736/132086671-02ad35ef-ec3a-4a65-abd5-5bf794dfcf7b.png",be="https://user-images.githubusercontent.com/43678736/132086672-3a856fda-823d-4997-b802-c7c640e6ef44.png",oe="https://user-images.githubusercontent.com/43678736/132086673-0c4409ab-754e-4619-8cfa-179d0ccf1bd9.png",ie="https://user-images.githubusercontent.com/43678736/132086674-fdb56d02-5845-49b7-8462-6357bc963464.png",de="https://user-images.githubusercontent.com/43678736/132086675-c879645d-acb4-41a6-ab3c-4e6c2048badb.png",he="https://user-images.githubusercontent.com/43678736/132086676-6de1bbd7-764f-4197-9aa4-405a60ce6734.png",pe="https://user-images.githubusercontent.com/43678736/132086683-3dc0a8b8-72f8-4fa1-a08a-fcfd75b465e1.png",me="https://user-images.githubusercontent.com/43678736/132086685-4e327c4c-a409-4b83-b36a-8d88936b314b.png",fe="https://user-images.githubusercontent.com/43678736/132086686-3888e43a-5abf-41f7-9940-4b86e436521f.png",Fe="https://user-images.githubusercontent.com/43678736/132086687-d92b56ff-f7f7-4be7-bbf4-47b8a33f4c6f.png",le="https://user-images.githubusercontent.com/43678736/132086688-8e82fae4-3a9b-49c0-bf99-77189525514c.png",Ae="https://user-images.githubusercontent.com/43678736/132086689-fe1fef9f-d2db-455b-8f4b-09acd095f571.png",De="https://user-images.githubusercontent.com/43678736/132086689-fe1fef9f-d2db-455b-8f4b-09acd095f571.png",Ee="https://user-images.githubusercontent.com/43678736/132086691-d472576b-ec6a-4332-acd2-dd6a00b72952.png",Be="https://user-images.githubusercontent.com/43678736/132086692-df6e3518-2e6a-4553-883d-e21694980449.png",Ce="https://user-images.githubusercontent.com/43678736/132086693-9d43571e-0c86-438f-b247-e2cb42e19e06.png",ke="https://user-images.githubusercontent.com/43678736/132086694-4e661d6a-1118-441e-8bc3-c52fcb2133b6.png",ve="https://user-images.githubusercontent.com/43678736/132086696-0dd21f83-b9fc-490c-9ed5-bd88151dc9bb.png",ye="https://user-images.githubusercontent.com/43678736/132086697-1d82d724-35b6-4f06-847a-3c59a5deda6e.png",we="https://user-images.githubusercontent.com/43678736/132086698-19384230-dbd7-4e05-bc69-ef4537b6aae3.png",Ie="https://user-images.githubusercontent.com/43678736/132086699-5993a482-04f4-4915-b105-9037f527cf61.png",qe="https://user-images.githubusercontent.com/43678736/132086700-c23461c8-6819-46e1-aecd-0a1f8d3507bb.png",Le="https://user-images.githubusercontent.com/43678736/132086701-c8044c09-8d95-4af1-9410-66761001d7da.png",Oe="https://user-images.githubusercontent.com/43678736/132086702-59294337-ed99-4302-badd-316b2c1ff62f.png",je="https://user-images.githubusercontent.com/43678736/132086703-86d97476-b76e-4949-b89a-31ecb03f3b6e.png",Ge="https://user-images.githubusercontent.com/43678736/132086704-8fd51e7c-afa2-47a3-ab2f-d0bcd0ecae9f.png",Re="https://user-images.githubusercontent.com/43678736/132086705-33294da1-5c0f-49f7-b890-e4857cec0a6d.png",xe="https://user-images.githubusercontent.com/43678736/132086706-22f805d0-39d4-494b-824e-47dc75d05eb7.png",ze="https://user-images.githubusercontent.com/43678736/132086707-e61a84de-d396-4dbf-8d1b-1d6ee19e1ac8.png",Pe="https://user-images.githubusercontent.com/43678736/132086707-e61a84de-d396-4dbf-8d1b-1d6ee19e1ac8.png",Ue="https://user-images.githubusercontent.com/43678736/132086708-21d096dd-7148-40aa-97f1-cbb099339740.png",He="https://user-images.githubusercontent.com/43678736/132086709-811d4e90-3cfa-4044-a956-aeda9c67fc92.png",Je="https://user-images.githubusercontent.com/43678736/132086710-c5479c6c-0249-4542-adad-48b0ef40b775.png",Ke="https://user-images.githubusercontent.com/43678736/132086711-1524a3e7-3e33-4822-a34f-ff3235404045.png",Me="https://user-images.githubusercontent.com/43678736/132086712-17e2c491-f6e4-4586-aef6-06bcc5f4b0e5.png",Ne="https://user-images.githubusercontent.com/43678736/132086714-7ddf285d-2b83-4115-80a5-f02f510300a1.png",Qe="https://user-images.githubusercontent.com/43678736/132086715-204b5a8b-9c5a-4bac-8294-9237ebc16089.png",Se="https://user-images.githubusercontent.com/43678736/132086716-64511d20-58cb-45a8-85df-f4d9408b469d.png",Te="https://user-images.githubusercontent.com/43678736/132086718-a8499333-6282-4820-aa1f-4d133eb54648.png";export{e as NAMED_COLORS,h as aac,p as abw,m as accdb,b as asureColor,f as avi,F as azw,l as bmp,a as brighterColor,A as bz,D as bz2,E as c,B as cda,n as colourNameToHex,C as csh,k as css,v as csv,t as darkerColor,y as docx,w as docx2,I as drawio,q as dw,L as eml,O as eot,j as eps,G as epub,R as freearc,x as gif,z as gzip,c as hexColorToRGB,g as hexTodec,P as html,U as icalendar,H as ind,J as ini,s as isHexColor,M as jar,K as java,N as javascript,Q as jpeg,S as jsf,T as json,V as jsonld,i as mergeProps,W as midi,X as mov,Y as mp3,Z as mp4,$ as mpeg,_ as mpkg,ee as octet,te as odp,ae as ods,ce as odt,se as oga,ne as ogv,re as ogx,ue as opus,ge as otf,be as pdf,oe as php,ie as png,de as pptx,he as pptx2,pe as proj,me as psd,fe as pst,Fe as publisher,le as python,De as rar,Ee as react,Be as richtextformat,Ce as rtf,ke as sass,ve as settings,d as sevenzip,ye as sh,we as swf,Ae as tar,Ie as text,qe as tiff,Le as ttf,Oe as typescript,je as url,Ge as vsd,Re as vue,xe as wav,Pe as weba,ze as webm,Ue as webp,He as wma,Je as wmv,Ke as woff,Me as xlsx,Ne as xlsx2,Qe as xml,Se as xul,Te as zip}; | ||
//# sourceMappingURL=index.es.js.map |
@@ -1,688 +0,2 @@ | ||
'use strict'; | ||
function ___$insertStyle(css) { | ||
if (!css || typeof window === 'undefined') { | ||
return; | ||
} | ||
const style = document.createElement('style'); | ||
style.setAttribute('type', 'text/css'); | ||
style.innerHTML = css; | ||
document.head.appendChild(style); | ||
return css; | ||
} | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
/** | ||
* The full list of named Colors provided by | ||
* https://htmlcolorcodes.com/es/nombres-de-los-colores/ | ||
*/ | ||
var NAMED_COLORS = { | ||
//RED | ||
indianred: "#CD5C5C", | ||
lightcoral: "#F08080", | ||
salmon: "#FA8072", | ||
darksalmon: "#E9967A", | ||
lightsalmon: "#FFA07A", | ||
crimson: "#DC143C", | ||
red: "#FF0000", | ||
firebrick: "#B22222", | ||
darkred: "#8B0000", | ||
//PINK | ||
pink: "#FFC0CB", | ||
lightpink: "#FFB6C1", | ||
hotpink: "#FF69B4", | ||
deeppink: "#FF1493", | ||
mediumvioletred: "#C71585", | ||
palevioletred: "#DB7093", | ||
//ORANGE | ||
//"lightsalmon: "#FFA07A", | ||
coral: "#FF7F50", | ||
tomato: "#FF6347", | ||
orangered: "#FF4500", | ||
darkorange: "#FF8C00", | ||
orange: "#FFA500", | ||
//YELLOW | ||
gold: "#FFD700", | ||
yellow: "#FFFF00", | ||
lightyellow: "#FFFFE0", | ||
lemonchiffon: "#FFFACD", | ||
lightgoldenrodyellow: "#FAFAD2", | ||
papayawhip: "#FFEFD5", | ||
moccasin: "#FFE4B5", | ||
peachpuff: "#FFDAB9", | ||
palegoldenrod: "#EEE8AA", | ||
khaki: "#F0E68C", | ||
darkkhaki: "#BDB76B", | ||
//PURPLE | ||
lavender: "#E6E6FA", | ||
thistle: "#D8BFD8", | ||
plum: "#DDA0DD", | ||
violet: "#EE82EE", | ||
orchid: "#DA70D6", | ||
fuchsia: "#FF00FF", | ||
magenta: "#FF00FF", | ||
mediumorchid: "#BA55D3", | ||
mediumpurple: "#9370DB", | ||
rebeccapurple: "#663399", | ||
blueviolet: "#8A2BE2", | ||
darkviolet: "#9400D3", | ||
darkorchid: "#9932CC", | ||
darkmagenta: "#8B008B", | ||
purple: "#800080", | ||
indigo: "#4B0082", | ||
slateblue: "#6A5ACD", | ||
darkslateblue: "#483D8B", | ||
mediumslateblue: "#7B68EE", | ||
//GREEN | ||
greenyellow: "#ADFF2F", | ||
chartreuse: "#7FFF00", | ||
lawngreen: "#7CFC00", | ||
lime: "#00FF00", | ||
limegreen: "#32CD32", | ||
palegreen: "#98FB98", | ||
lightgreen: "#90EE90", | ||
mediumspringgreen: "#00FA9A", | ||
springgreen: "#00FF7F", | ||
mediumseagreen: "#3CB371", | ||
seagreen: "#2E8B57", | ||
forestgreen: "#228B22", | ||
green: "#008000", | ||
darkgreen: "#006400", | ||
yellowgreen: "#9ACD32", | ||
olivedrab: "#6B8E23", | ||
olive: "#808000", | ||
darkolivegreen: "#556B2F", | ||
mediumaquamarine: "#66CDAA", | ||
darkseagreen: "#8FBC8B", | ||
lightseagreen: "#20B2AA", | ||
darkcyan: "#008B8B", | ||
teal: "#008080", | ||
//BLUE | ||
aqua: "#00FFFF", | ||
cyan: "#00FFFF", | ||
lightcyan: "#E0FFFF", | ||
paleturquoise: "#AFEEEE", | ||
aquamarine: "#7FFFD4", | ||
turquoise: "#40E0D0", | ||
mediumturquoise: "#48D1CC", | ||
darkturquoise: "#00CED1", | ||
cadetblue: "#5F9EA0", | ||
steelblue: "#4682B4", | ||
lightsteelblue: "#B0C4DE", | ||
powderblue: "#B0E0E6", | ||
lightblue: "#ADD8E6", | ||
skyblue: "#87CEEB", | ||
lightskyblue: "#87CEFA", | ||
deepskyblue: "#00BFFF", | ||
dodgerblue: "#1E90FF", | ||
cornflowerblue: "#6495ED", | ||
//"mediumslateblue: "#7B68EE", | ||
royalblue: "#4169E1", | ||
blue: "#0000FF", | ||
mediumblue: "#0000CD", | ||
darkblue: "#00008B", | ||
navy: "#000080", | ||
midnightblue: "#191970", | ||
//BROWN | ||
cornsilk: "#FFF8DC", | ||
blanchedalmond: "#FFEBCD", | ||
bisque: "#FFE4C4", | ||
navajowhite: "#FFDEAD", | ||
wheat: "#F5DEB3", | ||
burlywood: "#DEB887", | ||
tan: "#D2B48C", | ||
rosybrown: "#BC8F8F", | ||
sandybrown: "#F4A460", | ||
goldenrod: "#DAA520", | ||
darkgoldenrod: "#B8860B", | ||
peru: "#CD853F", | ||
chocolate: "#D2691E", | ||
saddlebrown: "#8B4513", | ||
sienna: "#A0522D", | ||
brown: "#A52A2A", | ||
maroon: "#800000", | ||
//WHITE | ||
white: "#FFFFFF", | ||
snow: "#FFFAFA", | ||
honeydew: "#F0FFF0", | ||
mintcream: "#F5FFFA", | ||
azure: "#F0FFFF", | ||
aliceblue: "#F0F8FF", | ||
ghostwhite: "#F8F8FF", | ||
whitesmoke: "#F5F5F5", | ||
seashell: "#FFF5EE", | ||
beige: "#F5F5DC", | ||
oldlace: "#FDF5E6", | ||
floralwhite: "#FFFAF0", | ||
ivory: "#FFFFF0", | ||
antiquewhite: "#FAEBD7", | ||
linen: "#FAF0E6", | ||
lavenderblush: "#FFF0F5", | ||
mistyrose: "#FFE4E1", | ||
//GREY | ||
gainsboro: "#DCDCDC", | ||
lightgray: "#D3D3D3", | ||
silver: "#C0C0C0", | ||
darkgray: "#A9A9A9", | ||
gray: "#808080", | ||
dimgray: "#696969", | ||
lightslategray: "#778899", | ||
slategray: "#708090", | ||
darkslategray: "#2F4F4F", | ||
black: "#000000" | ||
}; | ||
/** | ||
* Make the color into a darker color | ||
* @param colorInput | ||
* @returns the darked color in | ||
*/ | ||
var darkerColor = function (colorInput, percentage) { | ||
if (percentage === void 0) { percentage = 25; } | ||
var darkedColor = ""; | ||
var reduce = (100 - percentage) / 100; | ||
var component1 = 0; | ||
var component2 = 0; | ||
var component3 = 0; | ||
if (isHexColor(colourNameToHex(colorInput))) { | ||
component1 = hexTodec(colorInput.charAt(1)) * 16 + hexTodec(colorInput.charAt(2)); | ||
component2 = hexTodec(colorInput.charAt(3)) * 16 + hexTodec(colorInput.charAt(4)); | ||
component3 = hexTodec(colorInput.charAt(5)) * 16 + hexTodec(colorInput.charAt(6)); | ||
darkedColor = "rgb(".concat(component1 * reduce, ", ").concat(component2 * reduce, ",").concat(component3 * reduce, ")"); | ||
} | ||
else { | ||
if (colorInput.includes("rgba")) { | ||
var slicer = colorInput.replace("rgba(", ""); | ||
var components = slicer.split(","); | ||
darkedColor = "rgb(".concat(parseInt(components[0], 10) * reduce, ", ").concat(parseInt(components[1], 10) * reduce, ",").concat(parseInt(components[2], 10) * reduce, ")"); | ||
//return darkedColor; | ||
} | ||
else if (colorInput.includes("rgb")) { | ||
var slicer = colorInput.replace("rgb(", ""); | ||
var components = slicer.split(","); | ||
darkedColor = "rgb(".concat(parseInt(components[0], 10) * reduce, ", ").concat(parseInt(components[1], 10) * reduce, ",").concat(parseInt(components[2], 10) * reduce, ")"); | ||
// return darkedColor; | ||
} | ||
} | ||
return darkedColor; | ||
}; | ||
/** | ||
* Make the color into a brighted color | ||
* @param colorInput | ||
* @returns the brighted color | ||
*/ | ||
var brighterColor = function (colorInput, percentage) { | ||
if (percentage === void 0) { percentage = 25; } | ||
var brightedColor = ""; | ||
var increase = (100 + percentage) / 100; | ||
var component1 = 0; | ||
var component2 = 0; | ||
var component3 = 0; | ||
if (isHexColor(colourNameToHex(colorInput))) { | ||
component1 = hexTodec(colorInput.charAt(1)) * 16 + hexTodec(colorInput.charAt(2)); | ||
component2 = hexTodec(colorInput.charAt(3)) * 16 + hexTodec(colorInput.charAt(4)); | ||
component3 = hexTodec(colorInput.charAt(5)) * 16 + hexTodec(colorInput.charAt(6)); | ||
brightedColor = "rgb(".concat(component1 * increase, ", ").concat(component2 * increase, ",").concat(component3 * increase, ")"); | ||
} | ||
else { | ||
if (colorInput.includes("rgba")) { | ||
var slicer = colorInput.replace("rgba(", ""); | ||
var components = slicer.split(","); | ||
brightedColor = "rgb(".concat(parseInt(components[0], 10) * increase, ", ").concat(parseInt(components[1], 10) * increase, ",").concat(parseInt(components[2], 10) * increase, ")"); | ||
//return darkedColor; | ||
} | ||
else if (colorInput.includes("rgb")) { | ||
var slicer = colorInput.replace("rgb(", ""); | ||
var components = slicer.split(","); | ||
brightedColor = "rgb(".concat(parseInt(components[0], 10) * increase, ", ").concat(parseInt(components[1], 10) * increase, ",").concat(parseInt(components[2], 10) * increase, ")"); | ||
// return darkedColor; | ||
} | ||
} | ||
return brightedColor; | ||
}; | ||
/** | ||
* In order to managae rgba() we convert hex colors into rgba() | ||
* If the given color is already a rgb() color, it can add the percentage to convert it into rgba() | ||
* | ||
* | ||
* @param colorInput color in hex or in rgb | ||
* @param perc percentage for RGBA() color | ||
* @returns the rgba representation of a hex color | ||
*/ | ||
var hexColorToRGB = function (colorInput, perc, defaultColor) { | ||
if (perc === void 0) { perc = 0; } | ||
var resultDefault = defaultColor ? defaultColor : "rgba(255, 255, 255, 0.6)"; | ||
if (!colorInput) { | ||
return resultDefault; | ||
} | ||
//work only in uppercase | ||
var color = colorInput.toUpperCase(); | ||
// is already a rgba color | ||
if (color.includes("RGBA")) { | ||
return color; | ||
} | ||
//return rbg => rgba | ||
if (color.includes("RGB")) { | ||
return color.replace('RGB', "rgba").replace(')', ", ".concat(perc, ")")); | ||
} | ||
// if is a hex color or named color | ||
if (!isHexColor(colourNameToHex(color))) { | ||
return resultDefault; | ||
} | ||
var resultOk = ""; | ||
//let strVar: string = ""; | ||
var component1 = 0; | ||
var component2 = 0; | ||
var component3 = 0; | ||
//If passed all validations, proceed to transform | ||
component1 = hexTodec(color.charAt(1)) * 16 + hexTodec(color.charAt(2)); | ||
component2 = hexTodec(color.charAt(3)) * 16 + hexTodec(color.charAt(4)); | ||
component3 = hexTodec(color.charAt(5)) * 16 + hexTodec(color.charAt(6)); | ||
resultOk = "rgba(".concat(component1, ", ").concat(component2, ",").concat(component3, " , ").concat(perc, ")"); | ||
return resultOk; | ||
}; | ||
/** | ||
* Validates wheteher the color is hexadecimal css color | ||
* Example: #FF56AC | ||
* | ||
* | ||
* @param colorInput the color inpt to test | ||
* @returns true if the inputColor is a hexadecimal css color | ||
*/ | ||
var isHexColor = function (colorInput) { | ||
// if first element is no '#' return default background color | ||
if (colorInput.charAt(0) !== '#') { | ||
return false; | ||
} | ||
// if color lenght is not exactly 7 return default | ||
if (colorInput.length !== 7) { | ||
return false; | ||
} | ||
// if one of the letters is not included in hex array return default | ||
for (var i = 1; i < colorInput.length; i++) { | ||
if (!hexArray.includes(colorInput.charAt(i))) { | ||
return false; | ||
} | ||
} | ||
return true; | ||
}; | ||
/** | ||
* Converts a named color into hexadecimal color | ||
* from a list of well known namd colors if found. | ||
* When not given returns a "" | ||
* When not found in the list, returns the same value given | ||
* @param colour the named color | ||
* @returns The hex representation of the color or "" or the same color | ||
*/ | ||
function colourNameToHex(colour) { | ||
/** | ||
* When not given | ||
*/ | ||
if (!colour) { | ||
return ""; | ||
} | ||
/** | ||
* when named color is found | ||
*/ | ||
if (NAMED_COLORS[colour.toLocaleLowerCase()] !== undefined) { | ||
return NAMED_COLORS[colour.toLocaleLowerCase()]; | ||
} | ||
/** | ||
* When the named color was not found | ||
*/ | ||
return colour; | ||
} | ||
/** | ||
* hexArray & decArray | ||
* | ||
* arrays of numbers used to convert hexadecimal numbers into decimal and viceversa | ||
*/ | ||
var hexArray = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F']; | ||
var decArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]; | ||
/** | ||
* Converts hex number in string representation to decimal number | ||
* | ||
* | ||
* @param letter the string hex number | ||
* @returns a decimal number | ||
*/ | ||
var hexTodec = function (letter) { | ||
if (hexArray.includes(letter)) { | ||
return decArray[hexArray.indexOf(letter)]; | ||
} | ||
else { | ||
return 0; | ||
} | ||
}; | ||
/** | ||
* Asure a base color. When not given or when given an incorrect color format | ||
* default color is this kind of grey #5d6475 | ||
* | ||
* @param color param color given by user | ||
* @returns returns the same color | ||
*/ | ||
var asureColor = function (color) { | ||
if (color !== undefined && color !== "") { | ||
return color; | ||
} | ||
else { | ||
return "#5d6475"; | ||
} | ||
}; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
var __assign = function() { | ||
__assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
/** | ||
* Merge props that come form user and those ones that are by default | ||
* if incommingProps is null this returns the default props value | ||
* | ||
* @param incommingProps prop that comes from props attributoo of a React Node | ||
* @param defaultProps default prop defined for that React Node | ||
* @returns merged props | ||
*/ | ||
function mergeProps(incommingProps, defaultProps) { | ||
if (!incommingProps) { | ||
return defaultProps; | ||
} | ||
else { | ||
return __assign(__assign({}, defaultProps), incommingProps); | ||
} | ||
} | ||
/* import aac from "./aac.png"; | ||
import accdb from "./accdb.png"; | ||
import abw from "./abw.png"; | ||
import freearc from "./freearc.png"; | ||
import avi from "./avi.png"; | ||
import azw from "./azw.png"; | ||
import octet from "./octet.png"; | ||
import bmp from "./bmp.png"; | ||
import bz from "./bz.png"; | ||
import bz2 from "./bz2.png"; | ||
import cda from "./cda.png"; | ||
import csh from "./csh.png"; | ||
import css from "./css.png"; | ||
import csv from "./csv.png"; | ||
import docx from "./docx.png"; | ||
import drawio from "./drawio.png"; | ||
import eot from "./eot.png"; | ||
import epub from "./epub.png"; | ||
import gzip from "./gzip.png"; | ||
import gif from "./gif.png"; | ||
import html from "./html.png"; | ||
//import ico from "./ico.png"; | ||
import icalendar from "./icalendar.png"; | ||
import jar from "./java.png"; | ||
import jpeg from "./jpeg.png"; | ||
import javascript from "./javascript.png"; | ||
import json from "./json.png"; | ||
import jsonld from "./jsonld.png"; | ||
import midi from "./midi.png"; | ||
//import mjs from "./js.png"; | ||
import mp3 from "./mp3.png"; | ||
import mp4 from "./mp4.png"; | ||
import mpeg from "./mpeg.png"; | ||
import mpkg from "./mpkg.png"; | ||
import odp from "./odp.png"; | ||
import ods from "./ods.png"; | ||
import odt from "./odt.png"; | ||
//import oga from "./oga.png"; | ||
//import ogv from "./ogv.png"; | ||
//import ogx from "./ogx.png"; | ||
import opus from "./opus.png"; | ||
import otf from "./otf.png"; | ||
import png from "./png.png"; | ||
import pdf from "./pdf.png"; | ||
import php from "./php.png"; | ||
import pptx from "./pptx.png"; | ||
import psd from "./psd.png"; | ||
import rar from "./rar.png"; | ||
import rtf from "./rtf.png"; | ||
import sh from "./sh.png"; | ||
//import svg from "./svg.png"; | ||
import sass from "./sass.png"; | ||
import swf from "./swf.png"; | ||
import tar from "./rar.png"; | ||
import tiff from "./tiff.png"; | ||
import ttf from "./ttf.png"; | ||
//import ts from "./ts.png"; | ||
import typescript from "./typescript.png"; | ||
import text from "./text.png"; | ||
import vsd from "./vsd.png"; | ||
import wav from "./wav.png"; | ||
import weba from "./webm.png"; | ||
import webm from "./webm.png"; | ||
import webp from "./webp.png"; | ||
import wma from "./wma.png"; | ||
import wmv from "./wmv.png"; | ||
import woff from "./woff.png"; | ||
//import xhtml from "./xhtml.png"; | ||
import xlsx from "./xlsx.png"; | ||
import xml from "./xml.png"; | ||
import xul from "./xul.png"; | ||
import zip from "./zip.png"; | ||
//import threegp from "./3gp.png"; | ||
import sevenzip from "./7z.png"; | ||
import python from "./python.png"; | ||
import java from "./java.png"; | ||
import react from "./react.png"; | ||
import vue from "./vue.png"; */ | ||
var sevenzip = "https://user-images.githubusercontent.com/43678736/132086517-72a51a12-e403-4675-bfd7-22c23affa730.png"; | ||
var aac = "https://user-images.githubusercontent.com/43678736/132086518-7026d4f1-ea16-4ed0-89fd-37c1aa8ac3ed.png"; | ||
var abw = "https://user-images.githubusercontent.com/43678736/132086519-863c63b4-917e-4471-94ff-7e15651cc14b.png"; | ||
var accdb = "https://user-images.githubusercontent.com/43678736/132086520-9bc6aa3b-51c9-4da2-9ef7-349162b86d0b.png"; | ||
var avi = "https://user-images.githubusercontent.com/43678736/132086521-dbd6cf0d-d4d7-4b92-bb26-17e8a51a9383.png"; | ||
var azw = "https://user-images.githubusercontent.com/43678736/132086522-070f48e8-78a8-4294-8dbb-aab81525e164.png"; | ||
var bmp = "https://user-images.githubusercontent.com/43678736/132086595-90ab7f90-f87e-4900-94d9-d0b26745df48.png"; | ||
var bz = "https://user-images.githubusercontent.com/43678736/132086597-e285ad5c-613a-4679-a270-493e5be4ffd9.png"; | ||
var bz2 = "https://user-images.githubusercontent.com/43678736/132086598-623c410a-084a-4395-a448-211b2ff61cfe.png"; | ||
var c = "https://user-images.githubusercontent.com/43678736/132086599-7a5cd692-b4df-45f5-80d9-384cb3e0c314.png"; | ||
var cda = "https://user-images.githubusercontent.com/43678736/132086600-8b70a007-512d-4252-9c66-eabd3ddd6573.png"; | ||
var csh = "https://user-images.githubusercontent.com/43678736/132086601-e62e5d1a-d8a2-4475-a14f-85922cec9272.png"; | ||
var css = "https://user-images.githubusercontent.com/43678736/132086602-4c772934-f608-4f01-8459-c4622cee8ad5.png"; | ||
var csv = "https://user-images.githubusercontent.com/43678736/132086604-b5b019fe-572e-477e-92c2-3769a48a1304.png"; | ||
//export const default = "https://user-images.githubusercontent.com/43678736/132086605-d03db898-045c-477e-bae6-156699833eb0.png"; | ||
var docx = "https://user-images.githubusercontent.com/43678736/132086606-715ccb66-4702-4f7d-9b09-ac93ba17b643.png"; | ||
var docx2 = "https://user-images.githubusercontent.com/43678736/132086607-a246b386-52c9-4fe1-a7e4-204894e6722d.png"; | ||
var drawio = "https://user-images.githubusercontent.com/43678736/132086608-bcae9d57-8e54-488c-90c4-4952ae530b5e.png"; | ||
var dw = "https://user-images.githubusercontent.com/43678736/132086616-0c7842d6-d20e-4ede-988b-3dd063a4de8d.png"; | ||
var eml = "https://user-images.githubusercontent.com/43678736/132086617-1e351075-ffaf-4b81-a1fe-0b7b338772a2.png"; | ||
var eot = "https://user-images.githubusercontent.com/43678736/132086618-397d6bd2-9fda-43ed-a135-cb40388c35af.png"; | ||
var eps = "https://user-images.githubusercontent.com/43678736/132086619-9daf0b61-dbb0-4d47-8a12-9fba13b88856.png"; | ||
var epub = "https://user-images.githubusercontent.com/43678736/132086620-2586ba40-c583-4589-b1a4-8bb5b258b44d.png"; | ||
var freearc = "https://user-images.githubusercontent.com/43678736/132086621-3b95fb64-2533-4ccc-abcd-bd2beba572e9.png"; | ||
var gif = "https://user-images.githubusercontent.com/43678736/132086622-af705a0c-2b25-4ba7-8ab6-bd69ec97f7e2.png"; | ||
var gzip = "https://user-images.githubusercontent.com/43678736/132086624-89141a46-64e4-4fa0-bf69-54a0eb4d48c9.png"; | ||
var html = "https://user-images.githubusercontent.com/43678736/132086625-1b8f2652-1de0-4475-8c12-7da4a9973ffb.png"; | ||
var icalendar = "https://user-images.githubusercontent.com/43678736/132086626-38699705-1e6f-4bca-984b-03167b236faa.png"; | ||
var ind = "https://user-images.githubusercontent.com/43678736/132086627-2f24067a-00bc-424a-af36-349a9ba14b6c.png"; | ||
var ini = "https://user-images.githubusercontent.com/43678736/132086649-20c9c9e6-8e63-4d87-9b8e-8fe8eba12ada.png"; | ||
var java = "https://user-images.githubusercontent.com/43678736/132086650-f1166246-b361-4c30-a04e-9781c555d14a.png"; | ||
var jar = "https://user-images.githubusercontent.com/43678736/132086650-f1166246-b361-4c30-a04e-9781c555d14a.png"; | ||
var javascript = "https://user-images.githubusercontent.com/43678736/132086652-4562942e-aaea-466c-968f-380fffabf3f9.png"; | ||
var jpeg = "https://user-images.githubusercontent.com/43678736/132086653-0487e7e2-1ee3-49e2-8cfe-3e20f1f7490a.png"; | ||
var jsf = "https://user-images.githubusercontent.com/43678736/132086654-c510bd8f-8de7-4afe-8c20-cc810b004b07.png"; | ||
var json = "https://user-images.githubusercontent.com/43678736/132086656-6e96c815-e4e2-4ffd-9d71-57e9cc2450bc.png"; | ||
var jsonld = "https://user-images.githubusercontent.com/43678736/132086658-5d27d3c2-394f-43fb-b512-9b414a257875.png"; | ||
var midi = "https://user-images.githubusercontent.com/43678736/132086659-98f3ef6e-b9f3-4b6d-b18f-469b5334ba27.png"; | ||
var mov = "https://user-images.githubusercontent.com/43678736/132086660-adcecedd-56b4-4286-8b0f-69417f77e961.png"; | ||
var mp3 = "https://user-images.githubusercontent.com/43678736/132086661-a5484553-06c7-4ffa-a8f9-96b57b1b0344.png"; | ||
var mp4 = "https://user-images.githubusercontent.com/43678736/132086662-05ad1597-d5e5-4efa-833e-2876e966a745.png"; | ||
var mpeg = "https://user-images.githubusercontent.com/43678736/132086663-90c58955-f7fb-4bdb-ac53-92667d16d4a3.png"; | ||
var mpkg = "https://user-images.githubusercontent.com/43678736/132086664-9a7530e7-6d78-4ef3-a176-20cf7f57b555.png"; | ||
var octet = "https://user-images.githubusercontent.com/43678736/132086666-ab3c505d-b2c0-4177-9a06-aed5d9c39ee4.png"; | ||
var odp = "https://user-images.githubusercontent.com/43678736/132086667-6c7dcbcc-8d83-41a2-8e0a-85b09e2791ae.png"; | ||
var ods = "https://user-images.githubusercontent.com/43678736/132086668-9f246e91-cf2e-49cf-9617-e1fbb71abbbb.png"; | ||
var odt = "https://user-images.githubusercontent.com/43678736/132086669-46113762-84d1-4b32-9441-b0138ce17a5d.png"; | ||
//ogg type | ||
var oga = "https://user-images.githubusercontent.com/43678736/145835364-2054509d-3448-4d34-921f-73dd6e297fc7.png"; | ||
var ogv = "https://user-images.githubusercontent.com/43678736/145835367-19172bf8-cd5a-4cbe-b512-d0de1d91f269.png"; | ||
var ogx = "https://user-images.githubusercontent.com/43678736/145835373-a57ef0f5-3968-483b-9f55-6d67e7f1dcea.png"; | ||
var opus = "https://user-images.githubusercontent.com/43678736/132086670-0f96e770-cedc-4635-a5f9-cf97894c1d7a.png"; | ||
var otf = "https://user-images.githubusercontent.com/43678736/132086671-02ad35ef-ec3a-4a65-abd5-5bf794dfcf7b.png"; | ||
var pdf = "https://user-images.githubusercontent.com/43678736/132086672-3a856fda-823d-4997-b802-c7c640e6ef44.png"; | ||
var php = "https://user-images.githubusercontent.com/43678736/132086673-0c4409ab-754e-4619-8cfa-179d0ccf1bd9.png"; | ||
var png = "https://user-images.githubusercontent.com/43678736/132086674-fdb56d02-5845-49b7-8462-6357bc963464.png"; | ||
var pptx = "https://user-images.githubusercontent.com/43678736/132086675-c879645d-acb4-41a6-ab3c-4e6c2048badb.png"; | ||
var pptx2 = "https://user-images.githubusercontent.com/43678736/132086676-6de1bbd7-764f-4197-9aa4-405a60ce6734.png"; | ||
var proj = "https://user-images.githubusercontent.com/43678736/132086683-3dc0a8b8-72f8-4fa1-a08a-fcfd75b465e1.png"; | ||
var psd = "https://user-images.githubusercontent.com/43678736/132086685-4e327c4c-a409-4b83-b36a-8d88936b314b.png"; | ||
var pst = "https://user-images.githubusercontent.com/43678736/132086686-3888e43a-5abf-41f7-9940-4b86e436521f.png"; | ||
var publisher = "https://user-images.githubusercontent.com/43678736/132086687-d92b56ff-f7f7-4be7-bbf4-47b8a33f4c6f.png"; | ||
var python = "https://user-images.githubusercontent.com/43678736/132086688-8e82fae4-3a9b-49c0-bf99-77189525514c.png"; | ||
var tar = "https://user-images.githubusercontent.com/43678736/132086689-fe1fef9f-d2db-455b-8f4b-09acd095f571.png"; | ||
var rar = "https://user-images.githubusercontent.com/43678736/132086689-fe1fef9f-d2db-455b-8f4b-09acd095f571.png"; | ||
var react = "https://user-images.githubusercontent.com/43678736/132086691-d472576b-ec6a-4332-acd2-dd6a00b72952.png"; | ||
var richtextformat = "https://user-images.githubusercontent.com/43678736/132086692-df6e3518-2e6a-4553-883d-e21694980449.png"; | ||
var rtf = "https://user-images.githubusercontent.com/43678736/132086693-9d43571e-0c86-438f-b247-e2cb42e19e06.png"; | ||
var sass = "https://user-images.githubusercontent.com/43678736/132086694-4e661d6a-1118-441e-8bc3-c52fcb2133b6.png"; | ||
var settings = "https://user-images.githubusercontent.com/43678736/132086696-0dd21f83-b9fc-490c-9ed5-bd88151dc9bb.png"; | ||
var sh = "https://user-images.githubusercontent.com/43678736/132086697-1d82d724-35b6-4f06-847a-3c59a5deda6e.png"; | ||
var swf = "https://user-images.githubusercontent.com/43678736/132086698-19384230-dbd7-4e05-bc69-ef4537b6aae3.png"; | ||
var text = "https://user-images.githubusercontent.com/43678736/132086699-5993a482-04f4-4915-b105-9037f527cf61.png"; | ||
var tiff = "https://user-images.githubusercontent.com/43678736/132086700-c23461c8-6819-46e1-aecd-0a1f8d3507bb.png"; | ||
var ttf = "https://user-images.githubusercontent.com/43678736/132086701-c8044c09-8d95-4af1-9410-66761001d7da.png"; | ||
var typescript = "https://user-images.githubusercontent.com/43678736/132086702-59294337-ed99-4302-badd-316b2c1ff62f.png"; | ||
var url = "https://user-images.githubusercontent.com/43678736/132086703-86d97476-b76e-4949-b89a-31ecb03f3b6e.png"; | ||
var vsd = "https://user-images.githubusercontent.com/43678736/132086704-8fd51e7c-afa2-47a3-ab2f-d0bcd0ecae9f.png"; | ||
var vue = "https://user-images.githubusercontent.com/43678736/132086705-33294da1-5c0f-49f7-b890-e4857cec0a6d.png"; | ||
var wav = "https://user-images.githubusercontent.com/43678736/132086706-22f805d0-39d4-494b-824e-47dc75d05eb7.png"; | ||
var webm = "https://user-images.githubusercontent.com/43678736/132086707-e61a84de-d396-4dbf-8d1b-1d6ee19e1ac8.png"; | ||
var weba = "https://user-images.githubusercontent.com/43678736/132086707-e61a84de-d396-4dbf-8d1b-1d6ee19e1ac8.png"; | ||
var webp = "https://user-images.githubusercontent.com/43678736/132086708-21d096dd-7148-40aa-97f1-cbb099339740.png"; | ||
var wma = "https://user-images.githubusercontent.com/43678736/132086709-811d4e90-3cfa-4044-a956-aeda9c67fc92.png"; | ||
var wmv = "https://user-images.githubusercontent.com/43678736/132086710-c5479c6c-0249-4542-adad-48b0ef40b775.png"; | ||
var woff = "https://user-images.githubusercontent.com/43678736/132086711-1524a3e7-3e33-4822-a34f-ff3235404045.png"; | ||
var xlsx = "https://user-images.githubusercontent.com/43678736/132086712-17e2c491-f6e4-4586-aef6-06bcc5f4b0e5.png"; | ||
var xlsx2 = "https://user-images.githubusercontent.com/43678736/132086714-7ddf285d-2b83-4115-80a5-f02f510300a1.png"; | ||
var xml = "https://user-images.githubusercontent.com/43678736/132086715-204b5a8b-9c5a-4bac-8294-9237ebc16089.png"; | ||
var xul = "https://user-images.githubusercontent.com/43678736/132086716-64511d20-58cb-45a8-85df-f4d9408b469d.png"; | ||
var zip = "https://user-images.githubusercontent.com/43678736/132086718-a8499333-6282-4820-aa1f-4d133eb54648.png"; | ||
//export { aac, abw, accdb, avi, azw, bmp, bz, bz2, cda, csh, css, csv, docx, drawio, eot, epub, freearc, gif, gzip, html, icalendar, jar, java, javascript, jpeg, json, jsonld, midi, mp3, mp4, mpeg, mpkg, octet, odp, ods, odt, opus, otf, pdf, php, png, pptx, psd, python, rar, react, rtf,sass, sevenzip, sh, swf, tar, text, tiff, ttf, typescript, vsd, vue, wav, weba, webm, webp, wma, wmv, woff, xlsx, xml, xul, zip }; | ||
exports.NAMED_COLORS = NAMED_COLORS; | ||
exports.aac = aac; | ||
exports.abw = abw; | ||
exports.accdb = accdb; | ||
exports.asureColor = asureColor; | ||
exports.avi = avi; | ||
exports.azw = azw; | ||
exports.bmp = bmp; | ||
exports.brighterColor = brighterColor; | ||
exports.bz = bz; | ||
exports.bz2 = bz2; | ||
exports.c = c; | ||
exports.cda = cda; | ||
exports.colourNameToHex = colourNameToHex; | ||
exports.csh = csh; | ||
exports.css = css; | ||
exports.csv = csv; | ||
exports.darkerColor = darkerColor; | ||
exports.docx = docx; | ||
exports.docx2 = docx2; | ||
exports.drawio = drawio; | ||
exports.dw = dw; | ||
exports.eml = eml; | ||
exports.eot = eot; | ||
exports.eps = eps; | ||
exports.epub = epub; | ||
exports.freearc = freearc; | ||
exports.gif = gif; | ||
exports.gzip = gzip; | ||
exports.hexColorToRGB = hexColorToRGB; | ||
exports.hexTodec = hexTodec; | ||
exports.html = html; | ||
exports.icalendar = icalendar; | ||
exports.ind = ind; | ||
exports.ini = ini; | ||
exports.isHexColor = isHexColor; | ||
exports.jar = jar; | ||
exports.java = java; | ||
exports.javascript = javascript; | ||
exports.jpeg = jpeg; | ||
exports.jsf = jsf; | ||
exports.json = json; | ||
exports.jsonld = jsonld; | ||
exports.mergeProps = mergeProps; | ||
exports.midi = midi; | ||
exports.mov = mov; | ||
exports.mp3 = mp3; | ||
exports.mp4 = mp4; | ||
exports.mpeg = mpeg; | ||
exports.mpkg = mpkg; | ||
exports.octet = octet; | ||
exports.odp = odp; | ||
exports.ods = ods; | ||
exports.odt = odt; | ||
exports.oga = oga; | ||
exports.ogv = ogv; | ||
exports.ogx = ogx; | ||
exports.opus = opus; | ||
exports.otf = otf; | ||
exports.pdf = pdf; | ||
exports.php = php; | ||
exports.png = png; | ||
exports.pptx = pptx; | ||
exports.pptx2 = pptx2; | ||
exports.proj = proj; | ||
exports.psd = psd; | ||
exports.pst = pst; | ||
exports.publisher = publisher; | ||
exports.python = python; | ||
exports.rar = rar; | ||
exports.react = react; | ||
exports.richtextformat = richtextformat; | ||
exports.rtf = rtf; | ||
exports.sass = sass; | ||
exports.settings = settings; | ||
exports.sevenzip = sevenzip; | ||
exports.sh = sh; | ||
exports.swf = swf; | ||
exports.tar = tar; | ||
exports.text = text; | ||
exports.tiff = tiff; | ||
exports.ttf = ttf; | ||
exports.typescript = typescript; | ||
exports.url = url; | ||
exports.vsd = vsd; | ||
exports.vue = vue; | ||
exports.wav = wav; | ||
exports.weba = weba; | ||
exports.webm = webm; | ||
exports.webp = webp; | ||
exports.wma = wma; | ||
exports.wmv = wmv; | ||
exports.woff = woff; | ||
exports.xlsx = xlsx; | ||
exports.xlsx2 = xlsx2; | ||
exports.xml = xml; | ||
exports.xul = xul; | ||
exports.zip = zip; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={indianred:"#CD5C5C",lightcoral:"#F08080",salmon:"#FA8072",darksalmon:"#E9967A",lightsalmon:"#FFA07A",crimson:"#DC143C",red:"#FF0000",firebrick:"#B22222",darkred:"#8B0000",pink:"#FFC0CB",lightpink:"#FFB6C1",hotpink:"#FF69B4",deeppink:"#FF1493",mediumvioletred:"#C71585",palevioletred:"#DB7093",coral:"#FF7F50",tomato:"#FF6347",orangered:"#FF4500",darkorange:"#FF8C00",orange:"#FFA500",gold:"#FFD700",yellow:"#FFFF00",lightyellow:"#FFFFE0",lemonchiffon:"#FFFACD",lightgoldenrodyellow:"#FAFAD2",papayawhip:"#FFEFD5",moccasin:"#FFE4B5",peachpuff:"#FFDAB9",palegoldenrod:"#EEE8AA",khaki:"#F0E68C",darkkhaki:"#BDB76B",lavender:"#E6E6FA",thistle:"#D8BFD8",plum:"#DDA0DD",violet:"#EE82EE",orchid:"#DA70D6",fuchsia:"#FF00FF",magenta:"#FF00FF",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",rebeccapurple:"#663399",blueviolet:"#8A2BE2",darkviolet:"#9400D3",darkorchid:"#9932CC",darkmagenta:"#8B008B",purple:"#800080",indigo:"#4B0082",slateblue:"#6A5ACD",darkslateblue:"#483D8B",mediumslateblue:"#7B68EE",greenyellow:"#ADFF2F",chartreuse:"#7FFF00",lawngreen:"#7CFC00",lime:"#00FF00",limegreen:"#32CD32",palegreen:"#98FB98",lightgreen:"#90EE90",mediumspringgreen:"#00FA9A",springgreen:"#00FF7F",mediumseagreen:"#3CB371",seagreen:"#2E8B57",forestgreen:"#228B22",green:"#008000",darkgreen:"#006400",yellowgreen:"#9ACD32",olivedrab:"#6B8E23",olive:"#808000",darkolivegreen:"#556B2F",mediumaquamarine:"#66CDAA",darkseagreen:"#8FBC8B",lightseagreen:"#20B2AA",darkcyan:"#008B8B",teal:"#008080",aqua:"#00FFFF",cyan:"#00FFFF",lightcyan:"#E0FFFF",paleturquoise:"#AFEEEE",aquamarine:"#7FFFD4",turquoise:"#40E0D0",mediumturquoise:"#48D1CC",darkturquoise:"#00CED1",cadetblue:"#5F9EA0",steelblue:"#4682B4",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",lightblue:"#ADD8E6",skyblue:"#87CEEB",lightskyblue:"#87CEFA",deepskyblue:"#00BFFF",dodgerblue:"#1E90FF",cornflowerblue:"#6495ED",royalblue:"#4169E1",blue:"#0000FF",mediumblue:"#0000CD",darkblue:"#00008B",navy:"#000080",midnightblue:"#191970",cornsilk:"#FFF8DC",blanchedalmond:"#FFEBCD",bisque:"#FFE4C4",navajowhite:"#FFDEAD",wheat:"#F5DEB3",burlywood:"#DEB887",tan:"#D2B48C",rosybrown:"#BC8F8F",sandybrown:"#F4A460",goldenrod:"#DAA520",darkgoldenrod:"#B8860B",peru:"#CD853F",chocolate:"#D2691E",saddlebrown:"#8B4513",sienna:"#A0522D",brown:"#A52A2A",maroon:"#800000",white:"#FFFFFF",snow:"#FFFAFA",honeydew:"#F0FFF0",mintcream:"#F5FFFA",azure:"#F0FFFF",aliceblue:"#F0F8FF",ghostwhite:"#F8F8FF",whitesmoke:"#F5F5F5",seashell:"#FFF5EE",beige:"#F5F5DC",oldlace:"#FDF5E6",floralwhite:"#FFFAF0",ivory:"#FFFFF0",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lavenderblush:"#FFF0F5",mistyrose:"#FFE4E1",gainsboro:"#DCDCDC",lightgray:"#D3D3D3",silver:"#C0C0C0",darkgray:"#A9A9A9",gray:"#808080",dimgray:"#696969",lightslategray:"#778899",slategray:"#708090",darkslategray:"#2F4F4F",black:"#000000"},t=function(e){if("#"!==e.charAt(0))return!1;if(7!==e.length)return!1;for(var t=1;t<e.length;t++)if(!r.includes(e.charAt(t)))return!1;return!0};function s(t){return t?void 0!==e[t.toLocaleLowerCase()]?e[t.toLocaleLowerCase()]:t:""}var r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],c=function(e){return r.includes(e)?a[r.indexOf(e)]:0},o=function(){return o=Object.assign||function(e){for(var t,s=1,r=arguments.length;s<r;s++)for(var a in t=arguments[s])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},o.apply(this,arguments)};exports.NAMED_COLORS=e,exports.aac="https://user-images.githubusercontent.com/43678736/132086518-7026d4f1-ea16-4ed0-89fd-37c1aa8ac3ed.png",exports.abw="https://user-images.githubusercontent.com/43678736/132086519-863c63b4-917e-4471-94ff-7e15651cc14b.png",exports.accdb="https://user-images.githubusercontent.com/43678736/132086520-9bc6aa3b-51c9-4da2-9ef7-349162b86d0b.png",exports.asureColor=function(e){return void 0!==e&&""!==e?e:"#5d6475"},exports.avi="https://user-images.githubusercontent.com/43678736/132086521-dbd6cf0d-d4d7-4b92-bb26-17e8a51a9383.png",exports.azw="https://user-images.githubusercontent.com/43678736/132086522-070f48e8-78a8-4294-8dbb-aab81525e164.png",exports.bmp="https://user-images.githubusercontent.com/43678736/132086595-90ab7f90-f87e-4900-94d9-d0b26745df48.png",exports.brighterColor=function(e,r){void 0===r&&(r=25);var a="",o=(100+r)/100,n=0,u=0,p=0;if(t(s(e)))n=16*c(e.charAt(1))+c(e.charAt(2)),u=16*c(e.charAt(3))+c(e.charAt(4)),p=16*c(e.charAt(5))+c(e.charAt(6)),a="rgb(".concat(n*o,", ").concat(u*o,",").concat(p*o,")");else if(e.includes("rgba")){var g=e.replace("rgba(","").split(",");a="rgb(".concat(parseInt(g[0],10)*o,", ").concat(parseInt(g[1],10)*o,",").concat(parseInt(g[2],10)*o,")")}else if(e.includes("rgb")){g=e.replace("rgb(","").split(",");a="rgb(".concat(parseInt(g[0],10)*o,", ").concat(parseInt(g[1],10)*o,",").concat(parseInt(g[2],10)*o,")")}return a},exports.bz="https://user-images.githubusercontent.com/43678736/132086597-e285ad5c-613a-4679-a270-493e5be4ffd9.png",exports.bz2="https://user-images.githubusercontent.com/43678736/132086598-623c410a-084a-4395-a448-211b2ff61cfe.png",exports.c="https://user-images.githubusercontent.com/43678736/132086599-7a5cd692-b4df-45f5-80d9-384cb3e0c314.png",exports.cda="https://user-images.githubusercontent.com/43678736/132086600-8b70a007-512d-4252-9c66-eabd3ddd6573.png",exports.colourNameToHex=s,exports.csh="https://user-images.githubusercontent.com/43678736/132086601-e62e5d1a-d8a2-4475-a14f-85922cec9272.png",exports.css="https://user-images.githubusercontent.com/43678736/132086602-4c772934-f608-4f01-8459-c4622cee8ad5.png",exports.csv="https://user-images.githubusercontent.com/43678736/132086604-b5b019fe-572e-477e-92c2-3769a48a1304.png",exports.darkerColor=function(e,r){void 0===r&&(r=25);var a="",o=(100-r)/100,n=0,u=0,p=0;if(t(s(e)))n=16*c(e.charAt(1))+c(e.charAt(2)),u=16*c(e.charAt(3))+c(e.charAt(4)),p=16*c(e.charAt(5))+c(e.charAt(6)),a="rgb(".concat(n*o,", ").concat(u*o,",").concat(p*o,")");else if(e.includes("rgba")){var g=e.replace("rgba(","").split(",");a="rgb(".concat(parseInt(g[0],10)*o,", ").concat(parseInt(g[1],10)*o,",").concat(parseInt(g[2],10)*o,")")}else if(e.includes("rgb")){g=e.replace("rgb(","").split(",");a="rgb(".concat(parseInt(g[0],10)*o,", ").concat(parseInt(g[1],10)*o,",").concat(parseInt(g[2],10)*o,")")}return a},exports.docx="https://user-images.githubusercontent.com/43678736/132086606-715ccb66-4702-4f7d-9b09-ac93ba17b643.png",exports.docx2="https://user-images.githubusercontent.com/43678736/132086607-a246b386-52c9-4fe1-a7e4-204894e6722d.png",exports.drawio="https://user-images.githubusercontent.com/43678736/132086608-bcae9d57-8e54-488c-90c4-4952ae530b5e.png",exports.dw="https://user-images.githubusercontent.com/43678736/132086616-0c7842d6-d20e-4ede-988b-3dd063a4de8d.png",exports.eml="https://user-images.githubusercontent.com/43678736/132086617-1e351075-ffaf-4b81-a1fe-0b7b338772a2.png",exports.eot="https://user-images.githubusercontent.com/43678736/132086618-397d6bd2-9fda-43ed-a135-cb40388c35af.png",exports.eps="https://user-images.githubusercontent.com/43678736/132086619-9daf0b61-dbb0-4d47-8a12-9fba13b88856.png",exports.epub="https://user-images.githubusercontent.com/43678736/132086620-2586ba40-c583-4589-b1a4-8bb5b258b44d.png",exports.freearc="https://user-images.githubusercontent.com/43678736/132086621-3b95fb64-2533-4ccc-abcd-bd2beba572e9.png",exports.gif="https://user-images.githubusercontent.com/43678736/132086622-af705a0c-2b25-4ba7-8ab6-bd69ec97f7e2.png",exports.gzip="https://user-images.githubusercontent.com/43678736/132086624-89141a46-64e4-4fa0-bf69-54a0eb4d48c9.png",exports.hexColorToRGB=function(e,r,a){void 0===r&&(r=0);var o=a||"rgba(255, 255, 255, 0.6)";if(!e)return o;var n=e.toUpperCase();if(n.includes("RGBA"))return n;if(n.includes("RGB"))return n.replace("RGB","rgba").replace(")",", ".concat(r,")"));if(!t(s(n)))return o;var u,p,g;return u=16*c(n.charAt(1))+c(n.charAt(2)),p=16*c(n.charAt(3))+c(n.charAt(4)),g=16*c(n.charAt(5))+c(n.charAt(6)),"rgba(".concat(u,", ").concat(p,",").concat(g," , ").concat(r,")")},exports.hexTodec=c,exports.html="https://user-images.githubusercontent.com/43678736/132086625-1b8f2652-1de0-4475-8c12-7da4a9973ffb.png",exports.icalendar="https://user-images.githubusercontent.com/43678736/132086626-38699705-1e6f-4bca-984b-03167b236faa.png",exports.ind="https://user-images.githubusercontent.com/43678736/132086627-2f24067a-00bc-424a-af36-349a9ba14b6c.png",exports.ini="https://user-images.githubusercontent.com/43678736/132086649-20c9c9e6-8e63-4d87-9b8e-8fe8eba12ada.png",exports.isHexColor=t,exports.jar="https://user-images.githubusercontent.com/43678736/132086650-f1166246-b361-4c30-a04e-9781c555d14a.png",exports.java="https://user-images.githubusercontent.com/43678736/132086650-f1166246-b361-4c30-a04e-9781c555d14a.png",exports.javascript="https://user-images.githubusercontent.com/43678736/132086652-4562942e-aaea-466c-968f-380fffabf3f9.png",exports.jpeg="https://user-images.githubusercontent.com/43678736/132086653-0487e7e2-1ee3-49e2-8cfe-3e20f1f7490a.png",exports.jsf="https://user-images.githubusercontent.com/43678736/132086654-c510bd8f-8de7-4afe-8c20-cc810b004b07.png",exports.json="https://user-images.githubusercontent.com/43678736/132086656-6e96c815-e4e2-4ffd-9d71-57e9cc2450bc.png",exports.jsonld="https://user-images.githubusercontent.com/43678736/132086658-5d27d3c2-394f-43fb-b512-9b414a257875.png",exports.mergeProps=function(e,t){return e?o(o({},t),e):t},exports.midi="https://user-images.githubusercontent.com/43678736/132086659-98f3ef6e-b9f3-4b6d-b18f-469b5334ba27.png",exports.mov="https://user-images.githubusercontent.com/43678736/132086660-adcecedd-56b4-4286-8b0f-69417f77e961.png",exports.mp3="https://user-images.githubusercontent.com/43678736/132086661-a5484553-06c7-4ffa-a8f9-96b57b1b0344.png",exports.mp4="https://user-images.githubusercontent.com/43678736/132086662-05ad1597-d5e5-4efa-833e-2876e966a745.png",exports.mpeg="https://user-images.githubusercontent.com/43678736/132086663-90c58955-f7fb-4bdb-ac53-92667d16d4a3.png",exports.mpkg="https://user-images.githubusercontent.com/43678736/132086664-9a7530e7-6d78-4ef3-a176-20cf7f57b555.png",exports.octet="https://user-images.githubusercontent.com/43678736/132086666-ab3c505d-b2c0-4177-9a06-aed5d9c39ee4.png",exports.odp="https://user-images.githubusercontent.com/43678736/132086667-6c7dcbcc-8d83-41a2-8e0a-85b09e2791ae.png",exports.ods="https://user-images.githubusercontent.com/43678736/132086668-9f246e91-cf2e-49cf-9617-e1fbb71abbbb.png",exports.odt="https://user-images.githubusercontent.com/43678736/132086669-46113762-84d1-4b32-9441-b0138ce17a5d.png",exports.oga="https://user-images.githubusercontent.com/43678736/145835364-2054509d-3448-4d34-921f-73dd6e297fc7.png",exports.ogv="https://user-images.githubusercontent.com/43678736/145835367-19172bf8-cd5a-4cbe-b512-d0de1d91f269.png",exports.ogx="https://user-images.githubusercontent.com/43678736/145835373-a57ef0f5-3968-483b-9f55-6d67e7f1dcea.png",exports.opus="https://user-images.githubusercontent.com/43678736/132086670-0f96e770-cedc-4635-a5f9-cf97894c1d7a.png",exports.otf="https://user-images.githubusercontent.com/43678736/132086671-02ad35ef-ec3a-4a65-abd5-5bf794dfcf7b.png",exports.pdf="https://user-images.githubusercontent.com/43678736/132086672-3a856fda-823d-4997-b802-c7c640e6ef44.png",exports.php="https://user-images.githubusercontent.com/43678736/132086673-0c4409ab-754e-4619-8cfa-179d0ccf1bd9.png",exports.png="https://user-images.githubusercontent.com/43678736/132086674-fdb56d02-5845-49b7-8462-6357bc963464.png",exports.pptx="https://user-images.githubusercontent.com/43678736/132086675-c879645d-acb4-41a6-ab3c-4e6c2048badb.png",exports.pptx2="https://user-images.githubusercontent.com/43678736/132086676-6de1bbd7-764f-4197-9aa4-405a60ce6734.png",exports.proj="https://user-images.githubusercontent.com/43678736/132086683-3dc0a8b8-72f8-4fa1-a08a-fcfd75b465e1.png",exports.psd="https://user-images.githubusercontent.com/43678736/132086685-4e327c4c-a409-4b83-b36a-8d88936b314b.png",exports.pst="https://user-images.githubusercontent.com/43678736/132086686-3888e43a-5abf-41f7-9940-4b86e436521f.png",exports.publisher="https://user-images.githubusercontent.com/43678736/132086687-d92b56ff-f7f7-4be7-bbf4-47b8a33f4c6f.png",exports.python="https://user-images.githubusercontent.com/43678736/132086688-8e82fae4-3a9b-49c0-bf99-77189525514c.png",exports.rar="https://user-images.githubusercontent.com/43678736/132086689-fe1fef9f-d2db-455b-8f4b-09acd095f571.png",exports.react="https://user-images.githubusercontent.com/43678736/132086691-d472576b-ec6a-4332-acd2-dd6a00b72952.png",exports.richtextformat="https://user-images.githubusercontent.com/43678736/132086692-df6e3518-2e6a-4553-883d-e21694980449.png",exports.rtf="https://user-images.githubusercontent.com/43678736/132086693-9d43571e-0c86-438f-b247-e2cb42e19e06.png",exports.sass="https://user-images.githubusercontent.com/43678736/132086694-4e661d6a-1118-441e-8bc3-c52fcb2133b6.png",exports.settings="https://user-images.githubusercontent.com/43678736/132086696-0dd21f83-b9fc-490c-9ed5-bd88151dc9bb.png",exports.sevenzip="https://user-images.githubusercontent.com/43678736/132086517-72a51a12-e403-4675-bfd7-22c23affa730.png",exports.sh="https://user-images.githubusercontent.com/43678736/132086697-1d82d724-35b6-4f06-847a-3c59a5deda6e.png",exports.swf="https://user-images.githubusercontent.com/43678736/132086698-19384230-dbd7-4e05-bc69-ef4537b6aae3.png",exports.tar="https://user-images.githubusercontent.com/43678736/132086689-fe1fef9f-d2db-455b-8f4b-09acd095f571.png",exports.text="https://user-images.githubusercontent.com/43678736/132086699-5993a482-04f4-4915-b105-9037f527cf61.png",exports.tiff="https://user-images.githubusercontent.com/43678736/132086700-c23461c8-6819-46e1-aecd-0a1f8d3507bb.png",exports.ttf="https://user-images.githubusercontent.com/43678736/132086701-c8044c09-8d95-4af1-9410-66761001d7da.png",exports.typescript="https://user-images.githubusercontent.com/43678736/132086702-59294337-ed99-4302-badd-316b2c1ff62f.png",exports.url="https://user-images.githubusercontent.com/43678736/132086703-86d97476-b76e-4949-b89a-31ecb03f3b6e.png",exports.vsd="https://user-images.githubusercontent.com/43678736/132086704-8fd51e7c-afa2-47a3-ab2f-d0bcd0ecae9f.png",exports.vue="https://user-images.githubusercontent.com/43678736/132086705-33294da1-5c0f-49f7-b890-e4857cec0a6d.png",exports.wav="https://user-images.githubusercontent.com/43678736/132086706-22f805d0-39d4-494b-824e-47dc75d05eb7.png",exports.weba="https://user-images.githubusercontent.com/43678736/132086707-e61a84de-d396-4dbf-8d1b-1d6ee19e1ac8.png",exports.webm="https://user-images.githubusercontent.com/43678736/132086707-e61a84de-d396-4dbf-8d1b-1d6ee19e1ac8.png",exports.webp="https://user-images.githubusercontent.com/43678736/132086708-21d096dd-7148-40aa-97f1-cbb099339740.png",exports.wma="https://user-images.githubusercontent.com/43678736/132086709-811d4e90-3cfa-4044-a956-aeda9c67fc92.png",exports.wmv="https://user-images.githubusercontent.com/43678736/132086710-c5479c6c-0249-4542-adad-48b0ef40b775.png",exports.woff="https://user-images.githubusercontent.com/43678736/132086711-1524a3e7-3e33-4822-a34f-ff3235404045.png",exports.xlsx="https://user-images.githubusercontent.com/43678736/132086712-17e2c491-f6e4-4586-aef6-06bcc5f4b0e5.png",exports.xlsx2="https://user-images.githubusercontent.com/43678736/132086714-7ddf285d-2b83-4115-80a5-f02f510300a1.png",exports.xml="https://user-images.githubusercontent.com/43678736/132086715-204b5a8b-9c5a-4bac-8294-9237ebc16089.png",exports.xul="https://user-images.githubusercontent.com/43678736/132086716-64511d20-58cb-45a8-85df-f4d9408b469d.png",exports.zip="https://user-images.githubusercontent.com/43678736/132086718-a8499333-6282-4820-aa1f-4d133eb54648.png"; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@dropzone-ui/core", | ||
"version": "1.0.0", | ||
"description": "Core and base utilities for dropzone-ui", | ||
"version": "1.0.1", | ||
"description": "The best and most complete React library for managing file uploads. Multilanguage support. Server side support. Material design styles. Code generator on webpage.", | ||
"main": "./build/index.js", | ||
@@ -13,4 +13,19 @@ "module": "./build/index.es.js", | ||
"keywords": [ | ||
"dropzone", | ||
"react-dropzone", | ||
"file upload", | ||
"file", | ||
"upload", | ||
"react-component", | ||
"react", | ||
"ui", | ||
"dropzone-ui", | ||
"material", | ||
"drag", | ||
"drop", | ||
"mui", | ||
"material-ui", | ||
"typescript", | ||
"front-end", | ||
"framework", | ||
"kamui", | ||
@@ -25,13 +40,20 @@ "react" | ||
"homepage": "http://www.dropzone-ui.com", | ||
"peerDependencies": { | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2" | ||
}, | ||
"dependencies": {}, | ||
"peerDependencies": {}, | ||
"devDependencies": { | ||
"@rollup/plugin-commonjs": "^21.0.1", | ||
"@rollup/plugin-node-resolve": "^13.1.3", | ||
"@testing-library/jest-dom": "^5.16.2", | ||
"@storybook/addon-actions": "^6.4.15", | ||
"@storybook/addon-essentials": "^6.4.15", | ||
"@storybook/addon-links": "^6.4.15", | ||
"@storybook/node-logger": "^6.4.15", | ||
"@storybook/preset-create-react-app": "^4.0.0", | ||
"@storybook/react": "^6.4.15", | ||
"@storybook/testing-react": "^1.2.3", | ||
"@testing-library/jest-dom": "^5.16.0", | ||
"@testing-library/react": "^12.0.0", | ||
"@types/jest": "^27.4.0", | ||
"@types/node": "^17.0.8", | ||
"@types/testing-library__jest-dom": "^5.14.2", | ||
"@types/testing-library__react": "^10.2.0", | ||
"@typescript-eslint/eslint-plugin": "^5.10.1", | ||
@@ -50,11 +72,9 @@ "@typescript-eslint/parser": "^5.10.1", | ||
"prettier": "^2.5.1", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"rollup": "^2.63.0", | ||
"rollup-plugin-json": "^4.0.0", | ||
"rollup-plugin-jsx": "^1.0.3", | ||
"rollup-plugin-peer-deps-external": "^2.2.4", | ||
"rollup-plugin-peer-deps-external": "^2.2.3", | ||
"rollup-plugin-sass": "^1.2.10", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"rollup-plugin-typescript2": "^0.31.2", | ||
"rollup-plugin-typescript2": "^0.31.1", | ||
"sass-loader": "^12.4.0", | ||
@@ -68,2 +88,4 @@ "style-loader": "^3.3.1", | ||
"scripts": { | ||
"storybook": "start-storybook -p 6006", | ||
"build-storybook": "build-storybook", | ||
"build": "rollup -c", | ||
@@ -74,2 +96,2 @@ "lint": "eslint src/*.tsx --quiet --fix", | ||
} | ||
} | ||
} |
@@ -0,1 +1,2 @@ | ||
{ | ||
@@ -14,5 +15,5 @@ "compilerOptions": { | ||
}, | ||
"include": ["src/**/*", "tests"], | ||
"include": ["src/**/*"], | ||
"exclude": ["node_modules", "build"], | ||
"baseUrl": "./", | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
190759
0
18
41
350
1