@symbo.ls/scratch 3.14.595 → 3.14.599
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
# @symbo.ls/scratch
|
|
2
2
|
|
|
3
|
+
## 3.14.599
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Manual patch bump triggered via workflow_dispatch (scope: all).
|
|
8
|
+
No source change behind this bump — released to refresh dist or
|
|
9
|
+
coordinate a cross-package version line.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
- @symbo.ls/utils@3.14.599
|
|
12
|
+
|
|
3
13
|
## 3.14.595
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
6
16
|
|
|
7
17
|
- Auto-generated cross-repo patch release.
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
- @symbo.ls/utils@3.14.595
|
|
8
20
|
|
|
9
21
|
## 3.14.577
|
|
10
22
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var p=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var q=Object.prototype.hasOwnProperty;var G=(e,t)=>{for(var n in t)p(e,n,{get:t[n],enumerable:!0})},B=(e,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of f(t))!q.call(e,c)&&c!==n&&p(e,c,{get:()=>t[c],enumerable:!(s=I(t,c))||s.enumerable});return e};var C=e=>B(p({},"__esModule",{value:!0}),e);var M={};G(M,{applySpacingSequence:()=>A,checkIfBoxSize:()=>y,getSpacingBasedOnRatio:()=>N,getSpacingByKey:()=>h,splitSpacedValue:()=>F});module.exports=C(M);var m=require("@symbo.ls/utils"),u=require("@symbo.ls/utils"),g=require("../factory.js"),o=require("../utils/index.js");const b=e=>{const n=(0,g.getActiveConfig)().spacing||{},s=parseFloat(e.spacingRatio),c={...n,ratio:Number.isFinite(s)?s:n.ratio,sequence:{},scales:{}};return(0,o.generateSequence)(c),c},k=e=>{for(const t in e){const n=e[t];if(!(t.slice(0,1)==="@"))continue;const{type:c,base:r,ratio:i,range:a,subSequence:S,h1Matches:l,unit:d}=e;(0,u.merge)(n,{type:c,base:r,ratio:i,range:a,subSequence:S,h1Matches:l,unit:d,sequence:{},scales:{},templates:{},vars:{}}),(0,o.generateSequence)(n),(0,o.applyMediaSequenceVars)(e,t)}},y=e=>{const t=e.toLowerCase(),n=t.includes("width")||t.includes("height"),s=t.includes("border")||t.includes("outline");return n&&!s},A=()=>{const e=(0,g.getActiveConfig)(),{spacing:t}=e;(0,o.generateSequence)(t),(0,o.applySequenceVars)(t),k(t)},V=e=>{const t=(0,g.getActiveConfig)(),{spacing:n}=t;return!e||!e.sequence?n:Object.keys(e.sequence).length>0?e:(0,o.generateSequence)(e)},h=(e,t="padding",n,s)=>{const c=V(n);if((0,u.isString)(e)){if(/^(?:env|var)\(/.test(e.trim()))return{[t]:e};if(!s&&e.includes("(")){const i=(0,o.getFnPrefixAndValue)(e);s=i[0],e=i[1]}}const r=s?[e]:(0,m.arrayzeValue)(e);if((0,u.isArray)(r)){if(r.length>1){let i="";t==="borderWidth"&&(t="border",i="Width");const a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},S=(l,d)=>(0,o.getSequenceValuePropertyPair)(r[d],t+l+i,c,s);return a[r.length].map((l,d)=>S(l,d))}return(0,o.getSequenceValuePropertyPair)(e,t,c,s)}},N=(e,t,n,s)=>{const c=(0,g.getActiveConfig)(),{spacing:r}=c;let i=n||e[t];if((0,u.isString)(i)&&/^(?:env|var)\(/.test(i.trim()))return{[t]:i};if(!s&&(0,u.isString)(i)&&i.includes("(")){const a=(0,o.getFnPrefixAndValue)(i);s=a[0],i=a[1]}if(e.spacingRatio){const a=b(e);return h(i,t,a,s)}return h(i,t,r,s)},F=e=>{const t=n=>{const s=["+","-","*","/"].includes(n),c=o.CSS_UNITS.some(i=>e.includes(i));return s||c?n:n.length<3&&/[A-Z]/.test(n)?n+"_default":n};return e.split(",").map(n=>n.trim()).map(t).join(",").split(" ").map(t).join(" ")};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{arrayzeValue as I}from"@symbo.ls/utils";import{isArray as
|
|
1
|
+
import{arrayzeValue as I}from"@symbo.ls/utils";import{isArray as f,isString as S,merge as q}from"@symbo.ls/utils";import{getActiveConfig as l}from"../factory.js";import{CSS_UNITS as G,applyMediaSequenceVars as B,applySequenceVars as C,generateSequence as d,getFnPrefixAndValue as p,getSequenceValuePropertyPair as h}from"../utils/index.js";const b=e=>{const n=l().spacing||{},s=parseFloat(e.spacingRatio),c={...n,ratio:Number.isFinite(s)?s:n.ratio,sequence:{},scales:{}};return d(c),c},k=e=>{for(const t in e){const n=e[t];if(!(t.slice(0,1)==="@"))continue;const{type:c,base:o,ratio:i,range:r,subSequence:g,h1Matches:a,unit:u}=e;q(n,{type:c,base:o,ratio:i,range:r,subSequence:g,h1Matches:a,unit:u,sequence:{},scales:{},templates:{},vars:{}}),d(n),B(e,t)}},M=e=>{const t=e.toLowerCase(),n=t.includes("width")||t.includes("height"),s=t.includes("border")||t.includes("outline");return n&&!s},O=()=>{const e=l(),{spacing:t}=e;d(t),C(t),k(t)},y=e=>{const t=l(),{spacing:n}=t;return!e||!e.sequence?n:Object.keys(e.sequence).length>0?e:d(e)},m=(e,t="padding",n,s)=>{const c=y(n);if(S(e)){if(/^(?:env|var)\(/.test(e.trim()))return{[t]:e};if(!s&&e.includes("(")){const i=p(e);s=i[0],e=i[1]}}const o=s?[e]:I(e);if(f(o)){if(o.length>1){let i="";t==="borderWidth"&&(t="border",i="Width");const r={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},g=(a,u)=>h(o[u],t+a+i,c,s);return r[o.length].map((a,u)=>g(a,u))}return h(e,t,c,s)}},j=(e,t,n,s)=>{const c=l(),{spacing:o}=c;let i=n||e[t];if(S(i)&&/^(?:env|var)\(/.test(i.trim()))return{[t]:i};if(!s&&S(i)&&i.includes("(")){const r=p(i);s=r[0],i=r[1]}if(e.spacingRatio){const r=b(e);return m(i,t,r,s)}return m(i,t,o,s)},w=e=>{const t=n=>{const s=["+","-","*","/"].includes(n),c=G.some(i=>e.includes(i));return s||c?n:n.length<3&&/[A-Z]/.test(n)?n+"_default":n};return e.split(",").map(n=>n.trim()).map(t).join(",").split(" ").map(t).join(" ")};export{O as applySpacingSequence,M as checkIfBoxSize,j as getSpacingBasedOnRatio,m as getSpacingByKey,w as splitSpacedValue};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@symbo.ls/scratch",
|
|
3
3
|
"description": "Φ / CSS framework and methodology.",
|
|
4
4
|
"author": "symbo.ls",
|
|
5
|
-
"version": "3.14.
|
|
5
|
+
"version": "3.14.599",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
8
8
|
"*.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"prepublishOnly": "npm run build"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@symbo.ls/utils": "^3.14.
|
|
36
|
+
"@symbo.ls/utils": "^3.14.599",
|
|
37
37
|
"color-contrast-checker": "^1.5.0"
|
|
38
38
|
},
|
|
39
39
|
"gitHead": "9fc1b79b41cdc725ca6b24aec64920a599634681",
|