@warp-ds/uno
Advanced tools
Comparing version 1.0.0-alpha.13 to 1.0.0-alpha.14
{ | ||
"name": "@warp-ds/uno", | ||
"repository": "git@github.com:warp-ds/drive.git", | ||
"version": "1.0.0-alpha.13", | ||
"version": "1.0.0-alpha.14", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -41,3 +41,3 @@ import { positionMap, globalKeywords, makeGlobalStaticRules } from '#utils'; | ||
//arbitrary | ||
[/^bg-\[url\('(.+)'\)]/, ([, p]) => ({ 'background-image': `url(${p})` })], | ||
[/^bg-\[url\('(.+)'\)]/, ([, p]) => ({ 'background-image': `url('${p}')` })], | ||
]; |
@@ -27,2 +27,11 @@ import { escapeSelector } from '@unocss/core'; | ||
[/^border-([rltb])-(.+)$/, handlerBorderStyle], | ||
[ | ||
/^border-([rltb])?-?\[(\d+)\]$/, | ||
handlerArbitraryBorderSize, | ||
{ | ||
autocomplete: [ | ||
'border-<directions>-[$width]', | ||
], | ||
}, | ||
], | ||
// divide | ||
@@ -45,2 +54,8 @@ [/^divide-([xy])-(\d+)$/, handlerDivideBorder, { autocomplete: `divide-<x|y>-(${Object.keys(lineWidth).join('|')})-(reverse)` }], | ||
function handlerArbitraryBorderSize([, a, v]) { | ||
if (a in directionMap && v != null) return directionMap[a].map((i) => [`border${i}-width`, v]); | ||
return [[`border-width`, v]]; | ||
} | ||
function handlerBorderStyle([, a = "", s]) { | ||
@@ -47,0 +62,0 @@ if (borderStyles.includes(s) && a in directionMap) return directionMap[a].map((i) => [`border${i}-style`, s]); |
Sorry, the diff of this file is too big to display
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
195660
5491