Comparing version 1.0.6 to 1.0.7
@@ -16,4 +16,4 @@ // src/plugin.ts | ||
// src/components.ts | ||
import { OAvatar, OButton, OCard, OIcon } from "@onu-ui/components"; | ||
var components_default = [OAvatar, OButton, OIcon, OCard]; | ||
import { OAvatar, OAvatarGroup, OButton, OCard, OIcon } from "@onu-ui/components"; | ||
var components_default = [OAvatar, OAvatarGroup, OButton, OIcon, OCard]; | ||
@@ -37,3 +37,3 @@ // src/defaults.ts | ||
// ../preset/dist/index.mjs | ||
// ../../node_modules/.pnpm/@unocss+core@0.45.8/node_modules/@unocss/core/dist/index.mjs | ||
function escapeRegExp(string) { | ||
@@ -112,2 +112,4 @@ return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); | ||
}; | ||
// ../../node_modules/.pnpm/@unocss+preset-mini@0.45.8/node_modules/@unocss/preset-mini/dist/chunks/colors.mjs | ||
var directionMap = { | ||
@@ -661,2 +663,4 @@ "l": ["-left"], | ||
} | ||
// ../preset/src/shortcuts.ts | ||
var commonShortcuts = { | ||
@@ -682,2 +686,4 @@ "pr": "relative", | ||
}; | ||
// ../preset/src/index.ts | ||
function presetOnu() { | ||
@@ -694,6 +700,21 @@ return { | ||
error: "#FF5C5C", | ||
info: "#373e47" | ||
info: "#373e47", | ||
placeholder: "#dcdcdc" | ||
}, | ||
fontFamily: { | ||
sans: "Avenir, Helvetica, Arial, sans-serif" | ||
}, | ||
boxShadow: { | ||
xs: "var(--un-shadow-inset) 0 1px 1px 0 var(--un-shadow-color, rgba(0,0,0,0.03))" | ||
}, | ||
animation: { | ||
keyframes: { | ||
switching: `{0%{ box-shadow: 0 0 0 2px #1890ff66; } | ||
60%{ box-shadow: 0 0 0 4px #1890ff33; } | ||
80%{ box-shadow: 0 0 0 6px #1890ff1a; } | ||
100%{ box-shadow: 0 0 0 8px #1890ff0d; }}` | ||
}, | ||
durations: { | ||
switching: "0.3s" | ||
} | ||
} | ||
@@ -718,5 +739,4 @@ }, | ||
["o-disabled", { | ||
"opacity": 0.4, | ||
"pointer-events": "none", | ||
"cursor": "not-allowed" | ||
opacity: 0.4, | ||
cursor: "not-allowed" | ||
}] | ||
@@ -755,9 +775,9 @@ ], | ||
"o-solid": "bg-context border-context c-white", | ||
"o-light": `bg-context:12 hover-bg-context active-bg-context:64 | ||
"o-light": `!shadow-transparent bg-context:12 hover-bg-context active-bg-context:64 | ||
!border-context !hover-border-context !active-border-context:64 | ||
!c-context !hover-c-white !active-c-white`, | ||
"o-text": `!bg-transparent !hover-bg-context:32 !active-bg-context:12 | ||
"o-text": `!shadow-transparent !bg-transparent !hover-bg-context:32 !active-bg-context:12 | ||
!border-transparent | ||
!c-context`, | ||
"o-button-base": "fcc gap-1 inline-flex cursor-pointer rounded !outline-none c-context o-solid border", | ||
"o-button-base": "fcc gap-1 inline-flex cursor-pointer rounded shadow-context:50 !outline-none c-context o-solid border", | ||
"o-button-hover": "hover-border-context:64 hover-text-white hover-bg-context:64", | ||
@@ -767,14 +787,50 @@ "o-button-active": "active-border-context:32 active-text-white active-bg-context:32", | ||
"o-button-text": "o-text", | ||
"o-button-size-xs": "px-0.6em py-0.18em", | ||
"o-button-size-sm": "px-0.8em py-0.22em", | ||
"o-button-size-md": "px-1em py-0.25em", | ||
"o-button-size-lg": "px-1.1em py-0.3em", | ||
"o-button-size-xl": "px-1.2em py-0.4em", | ||
"o-avatar-base": "border-circle rounded shadow-sm", | ||
"o-avatar-icon": "text-2em", | ||
"o-card-base": "rounded-lg shadow-lg p-8 bg-gradient-from-rgba(255, 255, 255, 0.2) bg-gradient-to-rgba(255, 255, 255, 0.035) backdrop-blur-lg overflow-hidden" | ||
"o-button-xs": "px-2.5 h-6 text-xs shadow-xs", | ||
"o-button-sm": "px-3 h-7 text-sm shadow-sm", | ||
"o-button-md": "px-4 h-8 text-sm shadow-md", | ||
"o-button-lg": "px-4 h-9 text-md shadow-lg", | ||
"o-avatar-base": "fcc overflow-hidden shadow-sm aspect-square rounded-full bg-context text-white", | ||
"o-avatar-mode-bg": "bg-cover", | ||
"o-avatar-mode-img": "object-cover select-none", | ||
"o-avatar-xs": "h-6 text-xs shadow-xs", | ||
"o-avatar-sm": "h-8 text-sm shadow-sm", | ||
"o-avatar-md": "h-10 text-sm shadow-md", | ||
"o-avatar-lg": "h-15 text-md shadow-md", | ||
"o-avatar-group-base": "flex space-x--4 children-relative", | ||
"o-card-base": "rounded-lg shadow-lg p-8 bg-gradient-from-rgba(255, 255, 255, 0.2) bg-gradient-to-rgba(255, 255, 255, 0.035) backdrop-blur-lg overflow-hidden", | ||
"o-icon-base": "c-context text-md", | ||
"o-switch": "!animate-count-1 relative flex rounded-999px cursor-pointer items-center bg-context", | ||
"o-switch-size-small": "w-min h-1em leading-1em min-w-1.6em", | ||
"o-switch-size-medium": "w-min h-1.4em leading-1.4em min-w-2.2em", | ||
"o-switch-size-large": "w-min h-1.8em leading-1.8em min-w-3em", | ||
"o-switch-circle": "fcc rounded-999px bg-white", | ||
"o-switch-size-small-circle": "h-0.75em w-0.75em", | ||
"o-switch-size-medium-circle": "h-1em w-1em", | ||
"o-switch-size-large-circle": "h-1.45em w-1.45em", | ||
"o-switch-uncheck-circle": "absolute mr-0.1em left-0.1em", | ||
"o-switch-check-circle": "absolute ml-0.1em right-0.1em", | ||
"o-switch-small-slot-check": "ml-0.25em mr-1em", | ||
"o-switch-medium-slot-check": "ml-0.25em mr-1.25em", | ||
"o-switch-large-slot-check": "ml-0.25em mr-1.5em", | ||
"o-switch-small-slot-uncheck": "mr-0.25em ml-1em", | ||
"o-switch-medium-slot-uncheck": "mr-0.25em ml-1.25em", | ||
"o-switch-large-slot-uncheck": "mr-0.25em ml-1.5em" | ||
}, | ||
[/^o-button-(.*)$/, ([, s]) => { | ||
if (["xs", "sm", "md", "lg", "xl"].includes(s)) | ||
return `o-button-size-${s} text-${s}`; | ||
[/^o-avatar-group-(.*)$/, ([, s]) => { | ||
if (["xs", "sm", "md", "lg"].includes(s)) { | ||
const size = s; | ||
const avatarSizeMap = { | ||
xs: "h-6 text-xs shadow-xs", | ||
sm: "h-8 text-sm shadow-sm", | ||
md: "h-10 text-sm shadow-md", | ||
lg: "h-15 text-md shadow-md" | ||
}; | ||
const avatarGroupSpaceMap = { | ||
xs: "space-x--2", | ||
sm: "space-x--3", | ||
md: "space-x--4", | ||
lg: "space-x--6" | ||
}; | ||
return `important-${avatarGroupSpaceMap[size]} ${avatarSizeMap[size].split(" ").map((selector) => `important-children-${selector}`).join(" ")}`; | ||
} | ||
}] | ||
@@ -785,3 +841,3 @@ ] | ||
// ../utils/dist/index.mjs | ||
// ../utils/vue/install.ts | ||
var withInstall = (main, extra) => { | ||
@@ -799,2 +855,20 @@ main.install = (app) => { | ||
// ../utils/index.ts | ||
var toTypeString = (v) => Object.prototype.toString.call(v); | ||
var isDef = (val) => typeof val !== "undefined"; | ||
var isBoolean = (val) => typeof val === "boolean"; | ||
var isFunction = (val) => typeof val === "function"; | ||
var isNumber = (val) => typeof val === "number"; | ||
var isString = (val) => typeof val === "string"; | ||
var isObject = (val) => val !== null && typeof val === "object"; | ||
var isPlainObject = (val) => toTypeString(val) === "[object Object]"; | ||
var isArray = Array.isArray; | ||
var isMap = (val) => toTypeString(val) === "[object Map]"; | ||
var isSet = (val) => toTypeString(val) === "[object Set]"; | ||
var isDate = (val) => val instanceof Date; | ||
var isRegExp = (val) => val instanceof RegExp; | ||
var isSymbol = (val) => typeof val === "symbol"; | ||
var isPromise = (val) => isObject(val) && isFunction(val.then) && isFunction(val.catch); | ||
var isValue = (val) => val !== void 0 && val !== null; | ||
// src/index.ts | ||
@@ -805,4 +879,20 @@ var src_default = defaults_default; | ||
src_default as default, | ||
isArray, | ||
isBoolean, | ||
isDate, | ||
isDef, | ||
isFunction, | ||
isMap, | ||
isNumber, | ||
isObject, | ||
isPlainObject, | ||
isPromise, | ||
isRegExp, | ||
isSet, | ||
isString, | ||
isSymbol, | ||
isValue, | ||
presetOnu, | ||
toTypeString, | ||
withInstall | ||
}; |
{ | ||
"name": "onu-ui", | ||
"type": "module", | ||
"version": "1.0.6", | ||
"description": "Onu-UI for web components with unocss & vueuse", | ||
"version": "1.0.7", | ||
"description": "Onu-UI for web glassmorphism components generate by UnoCSS.", | ||
"keywords": [ | ||
@@ -35,4 +35,7 @@ "onu-ui", | ||
"dependencies": { | ||
"@onu-ui/components": "1.0.6" | ||
"@onu-ui/components": "1.0.7" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
@@ -39,0 +42,0 @@ "build": "tsup", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55034
1796
Updated@onu-ui/components@1.0.7