Comparing version 1.0.4 to 1.0.5
@@ -162,3 +162,7 @@ // src/plugin.ts | ||
]; | ||
var positionMap = Object.assign({}, ...basePositionMap.map((p) => ({ [p.replace(/ /, "-")]: p })), ...basePositionMap.map((p) => ({ [p.replace(/\b(\w)\w+/g, "$1").replace(/ /, "")]: p }))); | ||
var positionMap = Object.assign( | ||
{}, | ||
...basePositionMap.map((p) => ({ [p.replace(/ /, "-")]: p })), | ||
...basePositionMap.map((p) => ({ [p.replace(/\b(\w)\w+/g, "$1").replace(/ /, "")]: p })) | ||
); | ||
var globalKeywords = [ | ||
@@ -655,2 +659,22 @@ "inherit", | ||
} | ||
var commonShortcuts = { | ||
"pr": "relative", | ||
"pa": "absolute", | ||
"pf": "fixed", | ||
"p-c": "pa top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2", | ||
"f-c": "flex justify-center items-center", | ||
"f-c-c": "f-c flex-col", | ||
"fc": "flex justify-center", | ||
"fcc": "flex justify-center items-center", | ||
"fs": "flex justify-start", | ||
"fsc": "flex justify-start items-center", | ||
"fe": "flex justify-end", | ||
"fec": "flex justify-end items-center", | ||
"fb": "flex justify-between", | ||
"fbc": "flex justify-between items-center", | ||
"fa": "flex justify-around", | ||
"fac": "flex justify-around items-center", | ||
"fw": "flex justify-wrap", | ||
"fwr": "flex justify-wrap-reverse" | ||
}; | ||
function presetOnu() { | ||
@@ -661,3 +685,9 @@ return { | ||
colors: { | ||
context: "rgba(var(--onu-c-context),%alpha)" | ||
context: "rgba(var(--onu-c-context),%alpha)", | ||
primary: "#a855f7", | ||
secondary: "#1ABCFE", | ||
success: "#0ACF83", | ||
warning: "#FF9F43", | ||
error: "#FF5C5C", | ||
info: "#373e47" | ||
}, | ||
@@ -677,2 +707,7 @@ fontFamily: { | ||
} | ||
}], | ||
["o-solid", { | ||
"background-color": "rgba(var(--onu-c-context), 1) !important", | ||
"border-color": "rgba(var(--onu-c-context), 1)", | ||
"color": "white !important" | ||
}] | ||
@@ -701,3 +736,3 @@ ], | ||
shortcuts: { | ||
"o-bg-base": "bg-white dark:bg-[#222]", | ||
...commonShortcuts, | ||
"o-border-base": "border-gray-400/50", | ||
@@ -710,3 +745,6 @@ "o-border-300": "border-gray-400/40", | ||
"o-borderless": "!border-none !shadow-none", | ||
"o-button-base": "border cursor-pointer o-border-base rounded shadow-sm px-1em py-0.25em inline-flex items-center gap-1 op80 !outline-none", | ||
"o-solid": "!bg-context !border-context !c-white", | ||
"o-light": "!bg-transparent !border-context !c-context", | ||
"o-button-base": "fcc gap-1 inline-flex px-1em py-0.25em cursor-pointer rounded text-sm !outline-none c-context o-solid border", | ||
"o-button-light": "o-light", | ||
"o-button-link": "decoration-none", | ||
@@ -713,0 +751,0 @@ "o-button-hover": "op100 !border-context text-context", |
{ | ||
"name": "onu-ui", | ||
"type": "module", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Onu-UI for web components with unocss & vueuse", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@onu-ui/components": "1.0.4" | ||
"@onu-ui/components": "1.0.5" | ||
}, | ||
@@ -38,0 +38,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
45092
1565
Updated@onu-ui/components@1.0.5