ununura-shared
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -15,3 +15,6 @@ declare enum UnunuraIdentifier { | ||
Shadow = "shadow", | ||
Rounded = "rounded" | ||
Rounded = "rounded", | ||
ZIndex = "z", | ||
Display = "display", | ||
Float = "float" | ||
} | ||
@@ -37,2 +40,4 @@ declare enum UnunuraGlobals { | ||
declare const MEYER_RESET_CSS: () => string; | ||
declare const browserFonts: string[]; | ||
declare const googleFonts: string[]; | ||
declare const UNUNURA_RESPONSIVE: (target: UnunuraContextualizeResponsive) => string; | ||
@@ -97,2 +102,2 @@ | ||
export { ANTIALIASED_RESET_CSS, CSSInject, CSSResourceSizer, MEYER_RESET_CSS, NOVOUT_RESET_CSS, NULLABLE, Nullable, Option, RESOLVED_VIRTUAL_CSS_INJECT_FILENAME, STANDARD_EXCLUDE_SCAN, STANDARD_INCLUDE_SCAN, UNUNURA_RESPONSIVE, UnunuraBounce, UnunuraContextualize, UnunuraContextualizeResponsive, UnunuraContextualizeStack, UnunuraContextualizeTheme, UnunuraCoreOptions, UnunuraGlobals, UnunuraIdentifier, UnunuraKeys, VIRTUAL_CSS_INJECT_FILENAME, VueSFC, findResource, findResourceInStart, isBorderStyle, isCSSColor, isCloseMultipleKey, isCommonIdentifier, isContextCloseKey, isContextIdentifier, isContextKey, isContextOpenKey, isCursor, isDefaultFont, isFlexHorizontal, isFlexVertical, isGlobal, isGoogleFont, isHTTPSImage, isHex, isIdentifier, isImage, isImageRepeat, isImageSize, isKey, isNullable, isNumber, isNumberSuffix, isOpenMultipleKey, isResponsiveContextIdentifier, isScroll, isSizer, isSlashImage, isThemeContextIdentifier, isUniqueKey, isVueFile }; | ||
export { ANTIALIASED_RESET_CSS, CSSInject, CSSResourceSizer, MEYER_RESET_CSS, NOVOUT_RESET_CSS, NULLABLE, Nullable, Option, RESOLVED_VIRTUAL_CSS_INJECT_FILENAME, STANDARD_EXCLUDE_SCAN, STANDARD_INCLUDE_SCAN, UNUNURA_RESPONSIVE, UnunuraBounce, UnunuraContextualize, UnunuraContextualizeResponsive, UnunuraContextualizeStack, UnunuraContextualizeTheme, UnunuraCoreOptions, UnunuraGlobals, UnunuraIdentifier, UnunuraKeys, VIRTUAL_CSS_INJECT_FILENAME, VueSFC, browserFonts, findResource, findResourceInStart, googleFonts, isBorderStyle, isCSSColor, isCloseMultipleKey, isCommonIdentifier, isContextCloseKey, isContextIdentifier, isContextKey, isContextOpenKey, isCursor, isDefaultFont, isFlexHorizontal, isFlexVertical, isGlobal, isGoogleFont, isHTTPSImage, isHex, isIdentifier, isImage, isImageRepeat, isImageSize, isKey, isNullable, isNumber, isNumberSuffix, isOpenMultipleKey, isResponsiveContextIdentifier, isScroll, isSizer, isSlashImage, isThemeContextIdentifier, isUniqueKey, isVueFile }; |
@@ -35,4 +35,6 @@ "use strict"; | ||
VIRTUAL_CSS_INJECT_FILENAME: () => VIRTUAL_CSS_INJECT_FILENAME, | ||
browserFonts: () => browserFonts, | ||
findResource: () => findResource, | ||
findResourceInStart: () => findResourceInStart, | ||
googleFonts: () => googleFonts, | ||
isBorderStyle: () => isBorderStyle, | ||
@@ -89,2 +91,5 @@ isCSSColor: () => isCSSColor, | ||
UnunuraIdentifier2["Rounded"] = "rounded"; | ||
UnunuraIdentifier2["ZIndex"] = "z"; | ||
UnunuraIdentifier2["Display"] = "display"; | ||
UnunuraIdentifier2["Float"] = "float"; | ||
return UnunuraIdentifier2; | ||
@@ -173,2 +178,78 @@ })(UnunuraIdentifier || {}); | ||
`; | ||
var browserFonts = [ | ||
"Arial", | ||
"Arial Black", | ||
"Bahnschrift", | ||
"Calibri", | ||
"Cambria", | ||
"Cambria Math", | ||
"Candara", | ||
"Comic Sans MS", | ||
"Consolas", | ||
"Constantia", | ||
"Corbel", | ||
"Courier New", | ||
"Ebrima", | ||
"Franklin Gothic Medium", | ||
"Gabriola", | ||
"Gadugi", | ||
"Georgia", | ||
"HoloLens MDL2 Assets", | ||
"Impact", | ||
"Ink Free", | ||
"Javanese Text", | ||
"Leelawadee UI", | ||
"Lucida Console", | ||
"Lucida Sans Unicode", | ||
"Malgun Gothic", | ||
"Marlett", | ||
"Microsoft Himalaya", | ||
"Microsoft JhengHei", | ||
"Microsoft New Tai Lue", | ||
"Microsoft PhagsPa", | ||
"Microsoft Sans Serif", | ||
"Microsoft Tai Le", | ||
"Microsoft YaHei", | ||
"Microsoft Yi Baiti", | ||
"MingLiU-ExtB", | ||
"Mongolian Baiti", | ||
"MS Gothic", | ||
"MV Boli", | ||
"Myanmar Text", | ||
"Nirmala UI", | ||
"Palatino Linotype", | ||
"Segoe MDL2 Assets", | ||
"Segoe Print", | ||
"Segoe Script", | ||
"Segoe UI", | ||
"Segoe UI Historic", | ||
"Segoe UI Emoji", | ||
"Segoe UI Symbol", | ||
"SimSun", | ||
"Sitka", | ||
"Sylfaen", | ||
"Symbol", | ||
"Tahoma", | ||
"Times New Roman", | ||
"Trebuchet MS", | ||
"Verdana", | ||
"Webdings", | ||
"Wingdings", | ||
"Yu Gothic" | ||
]; | ||
var googleFonts = [ | ||
"Roboto", | ||
"Lato", | ||
"OpenSans", | ||
"Oswald", | ||
"Poppins", | ||
"Raleway", | ||
"Montserrat", | ||
"Inter", | ||
"Ubuntu", | ||
"Mukta", | ||
"Nunito", | ||
"Rubik", | ||
"Lora" | ||
]; | ||
var UNUNURA_RESPONSIVE = (target) => { | ||
@@ -345,64 +426,4 @@ return { | ||
].some((c) => c.toLowerCase() === i.toLowerCase()); | ||
var isDefaultFont = (i) => [ | ||
"Arial", | ||
"Arial Black", | ||
"Bahnschrift", | ||
"Calibri", | ||
"Cambria", | ||
"Cambria Math", | ||
"Candara", | ||
"Comic Sans MS", | ||
"Consolas", | ||
"Constantia", | ||
"Corbel", | ||
"Courier New", | ||
"Ebrima", | ||
"Franklin Gothic Medium", | ||
"Gabriola", | ||
"Gadugi", | ||
"Georgia", | ||
"HoloLens MDL2 Assets", | ||
"Impact", | ||
"Ink Free", | ||
"Javanese Text", | ||
"Leelawadee UI", | ||
"Lucida Console", | ||
"Lucida Sans Unicode", | ||
"Malgun Gothic", | ||
"Marlett", | ||
"Microsoft Himalaya", | ||
"Microsoft JhengHei", | ||
"Microsoft New Tai Lue", | ||
"Microsoft PhagsPa", | ||
"Microsoft Sans Serif", | ||
"Microsoft Tai Le", | ||
"Microsoft YaHei", | ||
"Microsoft Yi Baiti", | ||
"MingLiU-ExtB", | ||
"Mongolian Baiti", | ||
"MS Gothic", | ||
"MV Boli", | ||
"Myanmar Text", | ||
"Nirmala UI", | ||
"Palatino Linotype", | ||
"Segoe MDL2 Assets", | ||
"Segoe Print", | ||
"Segoe Script", | ||
"Segoe UI", | ||
"Segoe UI Historic", | ||
"Segoe UI Emoji", | ||
"Segoe UI Symbol", | ||
"SimSun", | ||
"Sitka", | ||
"Sylfaen", | ||
"Symbol", | ||
"Tahoma", | ||
"Times New Roman", | ||
"Trebuchet MS", | ||
"Verdana", | ||
"Webdings", | ||
"Wingdings", | ||
"Yu Gothic" | ||
].some((c) => c.toLowerCase() === i.toLowerCase()); | ||
var isGoogleFont = (i) => ["Roboto", "Lato", "Poppins", "Raleway", "Montserrat"].some((d) => i.toLowerCase() === d.toLowerCase()); | ||
var isDefaultFont = (i) => [...browserFonts].some((c) => c.toLowerCase() === i.toLowerCase()); | ||
var isGoogleFont = (i) => [...googleFonts].some((d) => i.toLowerCase() === d.toLowerCase()); | ||
var isImageSize = (i) => ["auto", "cover", "contain"].some((d) => i.toLowerCase() === d.toLowerCase()); | ||
@@ -527,4 +548,6 @@ var isFlexHorizontal = (i) => ["flex-start", "flex-end", "center", "space-between", "space-around", "space-evenly", "initial", "inherit"].some( | ||
VIRTUAL_CSS_INJECT_FILENAME, | ||
browserFonts, | ||
findResource, | ||
findResourceInStart, | ||
googleFonts, | ||
isBorderStyle, | ||
@@ -531,0 +554,0 @@ isCSSColor, |
{ | ||
"name": "ununura-shared", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Atomic CSS Engine.", | ||
@@ -31,3 +31,3 @@ "author": "Novout", | ||
}, | ||
"gitHead": "06561bac5b2aa62a55758e67825b2e289a6b57a4" | ||
"gitHead": "d2bb2f6d4ef792f6dbfa85844a9a1bdc87992700" | ||
} |
Sorry, the diff of this file is not supported yet
31667
1168