You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@fower/core

Package Overview
Dependencies
Maintainers
2
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.51.1 to 1.52.0

32

dist/core.cjs.development.js

@@ -81,24 +81,20 @@ 'use strict';

function _createForOfIteratorHelperLoose(o, allowArrayLike) {
var it;
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
if (it) return (it = it.call(o)).next.bind(it);
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;
return function () {
if (i >= o.length) return {
done: true
};
return {
done: false,
value: o[i++]
};
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;
return function () {
if (i >= o.length) return {
done: true
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
return {
done: false,
value: o[i++]
};
};
}
it = o[Symbol.iterator]();
return it.next.bind(it);
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}

@@ -105,0 +101,0 @@

@@ -1,2 +0,2 @@

"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("deepmerge")),r=require("@fower/utils"),i=e(require("string-hash")),o=require("@fower/color-helper"),n=require("@fower/css-object-processor");function s(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)}function l(e,t){if(null==e)return{};var r,i,o={},n=Object.keys(e);for(i=0;i<n.length;i++)t.indexOf(r=n[i])>=0||(o[r]=e[r]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function d(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return c(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}require("@fower/atomic-props");var p=function(){function e(){var e=this;this.config={unit:"px",inline:!1,important:!1,mode:{currentMode:"light",autoDarkMode:{enabled:!1,mappings:{white:"black",black:"white",50:"900",100:"800",200:"700",300:"600",400:"500",500:"400",600:"300",700:"200",800:"100",900:"50"}},modeList:["light","dark"],classPrefix:""},prefix:"",pseudos:["active","checked","disabled","enabled","default","empty","focus","focus-within","invalid","hover","link","visited","first-child","last-child","after","before","placeholder","selection"],theme:{breakpoints:{}},plugins:[]},this.atomCache=new Map,this.getAtomIds=function(){return Array.from(e.atomCache.keys())},this.compositions=new Map,this.getConfig=function(){return e.config},this.setConfig=function(r,i){void 0===i&&(i="deepmerge"),e.config="replace"===i?r:"merge"===i?u({},e.config,r):t(e.config,r)},this.getTheme=function(){return e.config.theme},this.setTheme=function(r){e.config.theme=t(e.config.theme||{},r)},this.getMode=function(){var t;return(null==(t=e.config.mode)?void 0:t.currentMode)||""},this.setMode=function(t){if(r.isBrowser){var i=e.config.mode.currentMode;i&&document.documentElement.classList.remove(i),t&&document.documentElement.classList.add(t),localStorage.setItem("fower-mode",t),e.setConfig({mode:{currentMode:t}})}},this.use=function(){var t;(t=e.config.plugins).push.apply(t,arguments)},this.addAtom=function(t,r){var i={isMatch:function(e){return"string"==typeof t?e===t:t instanceof RegExp&&t.test(e)},handleAtom:"function"==typeof r?r:function(e){return e.style=r,e}};return e.use(i),i},this.composeAtom=function(t,r){e.compositions.set(t,r)}}return a(e,[{key:"theme",get:function(){return this.config.theme}}]),e}(),f=new p,h=["excludedProps"],m=/^(m[xytrbl]?-?|p[xytrbl]?|space[xy]?|top-?|right-?|bottom-?|left-?|[wh]|square|circle|min[hw]|max[hw]|opacity|delay|duration|translate[xyz]|scale[xy]?|rotate[xy]?|skew[xy]?|text|zIndex-?|leading|stroke|fontWeight|outlineOffset|order|flex(Grow|Shrink|Basis)?|(row|column)?Gap|gridTemplateColumns|border(Top|Right|Bottom|Left)?|rounded(Top(Left|Right)?|Right|Bottom(Left|Right)?|Left)?)(-?\d+[a-z]*?|-auto)$/i,y=function(){function e(e){var t=this;this.options=e,this.propKeys=[],this.value="",this.id="",this.type="",this.setId=function(){var e,r=t.meta,o=t.key,n=t.value,s=r.important,a=l(r,["pseudoPrefix","childSelector","important"]),u=Object.values(a).sort();return s&&u.push("i"),r.global?(e=i(JSON.stringify(n)).toString(),t.id=e,e):(e="boolean"==typeof n&&!0===n?o:Array.isArray(n)?o+"-"+n.join("-"):o+"-"+String(n),u.length&&(e=e+"--"+u.join("--")),e=e.replace(/[#().]/g,"").replace(/\%/g,"p").replace(/\s+/g,"-"),e=/^[a-zA-Z0-9-]+$/.test(e)?e:"css-"+i(e),t.isFalsePropValue&&(e+="--false"),t.id=e,e)},this.propKey=e.propKey,this.propValue=e.propValue,this.propKeys=[this.propKey],this.key=e.key||this.propKey,this.value=e.value||this.propValue,this.style=e.style||{},this.handled=this.getInitialHandled(),this.isValid=this.getIsValid(),this.inserted=!1,this.meta=u({},e.meta)||{},this.preprocessAtom()}var t=e.prototype;return t.preprocessAtom=function(){var e=this.postfixPreprocessor();return this.setId(),e},t.postfixPreprocessor=function(){var e=f.config,t=e.pseudos,r=void 0===t?[]:t,i=e.mode.modeList,o=this.propKey,n=this.propValue,s=Object.keys(e.theme.breakpoints),a=i||[],u=r,l="--("+s.join("|")+")",c="--("+a.join("|")+")",d="--("+u.join("|")+")",p=new RegExp(c),h=new RegExp(d),m=new RegExp(l),y=/--[told](\d{1,2}|100)($|--)/i;if(y.test(n)){var g=n.split("--"),v=g[1];this.value=g[0],this.meta.colorPostfix=v}var b=p.test(o),k=h.test(o),S=m.test(o),x=/--i/i.test(o),A=y.test(o),j=/--\$\w+/i.test(o);if(!(b||k||S||x||A))return this.digitPreprocessor();var w,C=o.split("--");if(this.key=C[0],b&&(this.meta.mode=C.find((function(e){return a.includes(e)}))),k){var O=C.find((function(e){return u.includes(e)}));this.meta.pseudoPrefix=["after","before","placeholder","selection"].includes(O)?"::":":",this.meta.pseudo=O}if(S){var V=C.find((function(e){return s.includes(e)}));this.meta.breakpoint=V}return x&&(this.meta.important=!!C.find((function(e){return"i"===e}))),A&&(this.meta.colorPostfix=C.find((function(e){return y.test("--"+e)}))),j&&(this.meta.parentClass=null==(w=C.find((function(e){return e.startsWith("$")})))?void 0:w.replace(/^\$/,"")),this.digitPreprocessor(),this},t.digitPreprocessor=function(){if(!m.test(this.key))return this;var e=f.config.theme.spacings,t=/^([a-z]+)(\d+)$/i.test(this.key),r=this.key.toString(),i=r.match(/^([a-z]+)(\d+)$/i)||r.match(/^([a-z]*)-(-?\d+[a-z]*?)$/i)||r.match(/^([a-z]+)-(auto)$/i);if(!i)return this;var o=i[2];return this.key=i[1],this.value=t?e[""+o.toLowerCase()]:o,this},t.getInitialHandled=function(){return this.options.handled?this.options.handled:!!this.isFalsePropValue||!!h.includes(this.propKey)},t.getIsValid=function(){return!this.isFalsePropValue&&!h.includes(this.propKey)},a(e,[{key:"isValueProp",get:function(){return"string"==typeof this.propValue||"number"==typeof this.propValue}},{key:"styleKeys",get:function(){return Object.keys(this.style||{}).join("-")}},{key:"styleKeysHash",get:function(){var e=l(this.meta,["colorPostfix"]);return Object.keys(this.style||{}).join("-")+JSON.stringify(e)}},{key:"isFalsePropValue",get:function(){return"boolean"==typeof this.propValue&&!this.propValue}},{key:"isTruePropValue",get:function(){return"boolean"==typeof this.propValue&&this.propValue}}]),e}(),g=new(function(){function e(){var e;this.$style=null,this.cssString="",this.ssrAtomIds=null,r.isBrowser&&(this.$style=null==(e=globalThis.document)||null==e.querySelector?void 0:e.querySelector("[data-fower]"))}var t=e.prototype;return t.createStyleElement=function(){var e=document.createElement("style");return e.dataset.fower="",document.head.append(e),e},t.getSsrAtomIds=function(){var e,t;return this.$style?this.ssrAtomIds?this.ssrAtomIds:(null==(e=this.$style)||null==(t=e.dataset.fower)?void 0:t.split(","))||[]:[]},t.insertStyleToHtml=function(e){if(r.isBrowser){this.$style||(this.$style=this.createStyleElement());for(var t,i=d(e);!(t=i()).done;){var o=t.value;try{this.$style.sheet.insertRule(o)}catch(e){console.warn(e)}}}},t.insertStyles=function(e){if(void 0===e&&(e=[]),e.length)return r.isBrowser?this.insertStyleToHtml(e):void(this.cssString=this.cssString+" "+e.join(" "))},t.getStyle=function(){return this.cssString},e}()),v=/(-columns|(^|[^e]-)padding|[^t]-spacing|l-align|rows|(^|(^border|[dkmnptx]|le|ne)-)width|^border|tom|[ek]-start|(o|[^e]-du)ration|us|(^|[^tv]-)left|(^|-)top|tance|rgin|e-offset|(er|g|n|t)-block|(^|[^tv]-)right|basis|[gnt]-inline|gap|(^|[^e]-)height|ness|(^|[^p]-)inset|[ek]-end|elay|tline|ve|dent|-rotate|n-rule|(c|ck|d|ne|t)-size)$/,b=["color","backgroundColor","borderColor"],k=["children","onClick","onChange","onBlur","className","placeholder"],S=function(){function e(e){var t,r;void 0===e&&(e={}),this.props=e,this.atoms=[],this.data={},this.getClassNameById=function(e){return f.config.prefix+e},this.traverseProps(e),null!=(t=f.config.mode)&&null!=(r=t.autoDarkMode)&&r.enabled&&this.autoDarkMode()}var t=e.prototype;return t.traverseProps=function(e){if(!r.isEmptyObj(e)){for(var t,i=this.config,o=i.pseudos,n=void 0===o?[]:o,s=i.mode.modeList,a=i.theme.breakpoints||{},l=Object.keys(a),c=s||[],p=n,h=e.excludedProps,m=void 0===h?[]:h,g=Object.entries(e),v=d(this.plugins);!(t=v()).done;){var b=t.value;b.init&&b.init(e)}if(null!=e&&e.className)for(var S,x=d(e.className.split(/\s+/));!(S=x()).done;)g.push([S.value,!0]);for(var A=0,j=g;A<j.length;A++){var w=j[A],C=w[0],O=w[1];if(!m.includes(C)&&!k.includes(C)&&this.isValidProp(C,O))if("css"!==C){if(C.startsWith("_")){var V=C.replace(/^_/,""),P=Array.isArray(O)?O.reduce((function(e,t){var r;return u({},e,((r={})[t]=!0,r))}),{}):O;if(c.includes(V)){this.parseCSSObject(P,{mode:V});continue}if(l.includes(V)){this.parseCSSObject(P,{breakpoint:a[V]});continue}if(p.includes(V)){this.parseCSSObject(P,{pseudoPrefix:":",pseudo:V});continue}}if(!Array.isArray(O)||/^bgGradient[XY].*/i.test(C)&&!Array.isArray(O[0])){var K=f.compositions.get(C);if(K){this.parseCSSObject(K,{});var M=new y({propKey:C,propValue:O});M.handled=!0,M.style={},this.addAtom(M)}else{var T=new y({propKey:C,propValue:O});try{this.mutateAtom(T),T.handled&&this.addAtom(T)}catch(e){continue}}}else this.parseResponsiveValue(C,O)}else this.parseCSSObject(O,{})}for(var I,R=d(this.plugins);!(I=R()).done;){var $=I.value;$.afterAtomStyleCreate&&$.afterAtomStyleCreate(this)}}},t.getAutoDarkModeAtom=function(e){var t;if(e.meta.mode)return null;if(!e.style)return null;var i=Object.entries(e.style);if(null==i||!i.length)return null;var o,n={},s=f.config,a=s.mode.autoDarkMode.mappings,l=s.theme.colors,c=i[0],d=c[0],p=c[1];if(!b.includes(d))return null;if(!l[p])return null;var h=(p.match(/^([a-z]+)(\d+)$/i)||[])[2];if(!1===a[p])return null;var m="color"===d,g="backgroundColor"===d,v="borderColor"===d;return l[o=a[p]?a[p]:p.replace(h,a[h])]?(m?n.propKey=o:g?n.propKey="bg"+r.upFirst(o):v&&(n.propKey="border"+r.upFirst(o)),n.propValue=!0):m?(n.propKey="color",n.propValue=o):g?(n.propKey="bg",n.propValue=o):v&&(n.propKey="borderColor",n.propValue=o),n.style=((t={})[d]=o,t),new y(u({},n,{meta:u({},e.meta,{mode:"dark"})}))},t.autoDarkMode=function(){for(var e,t=d(this.atoms);!(e=t()).done;){var r=e.value;if(!this.atoms.find((function(e){return b.includes(e.type)&&"dark"===e.meta.mode}))){var i=this.getAutoDarkModeAtom(r);if(i){var o=f.atomCache.get(i.id);this.addAtom(o||i)}}}},t.formatCssValue=function(e,t){if(!v.test(e))return t;var i;if(r.isPercentNumber(String(t)))return String(t).replace("p","%");if(!r.isNumber(t))return t;if((i=Number(t))<1&&i>0)return 100*i+"%";var o=f.config;return"none"!==o.unit?o.transformUnit?o.transformUnit(i):t+f.config.unit:i},t.styleToString=function(e,t){var i=this,n=t.important,s=t.colorPostfix;return Object.entries(e).reduce((function(e,t){var a=t[1],u=r.jsKeyToCssKey(t[0]),l=n?" !important":"",c=f.theme.colors;try{return e+(u+": ")+(a=s?o.formatColor((null==c?void 0:c[a])||a,s):i.formatCssValue(u,(null==c?void 0:c[a])||a))+l+";"}catch(e){return""}}),"")},t.addAtom=function(e){var t;f.atomCache.get(e.id)||f.atomCache.set(e.id,e);for(var r=g.getSsrAtomIds(),i=((null==(t=this.config.theme)?void 0:t.colors)||{}).modes,o=0,n=Object.entries(void 0===i?{}:i);o<n.length;o++){var s=n[o],a=s[0],l=s[1];if(e.style){var c=Object.entries(e.style);if(c.length){var d=c[0],p=d[0],h=l[d[1]];if(h){var m="--"+a,y=JSON.parse(JSON.stringify(e));y.key=e.key+m,y.id=e.id+m,y.meta=u({mode:a},e.meta),y.style[p]=h,r.includes(y.id)&&(y.inserted=!0),this.atoms.push(y)}}}}r.includes(e.id)&&(e.inserted=!0),this.atoms.push(e)},t.isValidProp=function(e,t){return"css"===e||!!e.startsWith("_")||!!Array.isArray(t)||!!["string","boolean","number","undefined"].includes(typeof t)},t.mutateAtom=function(e){for(var t,r=d(this.plugins);!(t=r()).done;){var i=t.value;null!=i.isMatch&&i.isMatch(e.key,this)&&i.beforeHandleAtom&&(e=i.beforeHandleAtom(e,this))}var o=f.atomCache.get(e.id);if(o)throw o.propKeys.push(e.propKey),this.addAtom(o),new Error("atom is cached, add to this.atoms directly, no need to mutate");if(e.handled)throw this.addAtom(e),new Error("atom is handled, add to this.atoms directly ,no need to mutate");for(var n,s=d(this.plugins);!(n=s()).done;){var a=n.value;if(null!=a.isMatch&&a.isMatch(e.key,this)){a.handleAtom&&(e=null==a.handleAtom?void 0:a.handleAtom(e,this)),e.handled=!0;break}}},t.parseResponsiveValue=function(e,t){var r=Object.keys(this.config.theme.breakpoints),i=t.reduce((function(t,i,o){var n;return u({},t,((n={})[e+(0===o?"":"--"+r[o-1])]=i,n))}),{});this.parseCSSObject(i)},t.parseCSSObject=function(e,t){void 0===t&&(t={});for(var r,i=d(n.parse(e));!(r=i()).done;){var o=r.value,s=o.selector,a=o.selectorType,l=o.style,c=Object.entries(l);if(c.length){var p=c[0],h={propKey:p[0],propValue:p[1],meta:u({},t)};if("pseudo"===a&&h.meta){var m=s.match(/(:+)(.+)/)||[],g=m[2];h.meta.pseudoPrefix=m[1],h.meta.pseudo=g}"child"===a&&h.meta&&(h.meta.childSelector=s),"sibling"===a&&h.meta&&(h.meta.siblingSelector=s);var v=new y(h);try{this.mutateAtom(v)}catch(e){continue}v.style||(v.style=l,v.handled=!0);var b=f.atomCache.get(v.id);this.addAtom(b||v)}}},t.makeResponsiveStyle=function(e,t){return"@media (min-width: "+this.config.theme.breakpoints[e]+") {"+t+"}"},t.getClassNames=function(){var e=this,t=[];this.atoms.reduce((function(r,i){if(!i.style||!Object.keys(i.style).length)return r;var o=r.findIndex((function(e){return e.styleKeysHash===i.styleKeysHash}));if(!i.isValid)return r;var n=e.getClassNameById(i.id);return-1===o?(t.push(n),r=[].concat(r,[i])):(r.splice(o,1,i),t.splice(o,1,n)),r}),[]);var r,i=this.props.className,o=(void 0===i?"":i).split(/\s+/).filter((function(e){return!t.includes(e)&&!!e}));return t=t.concat(o),this.hasResponsive&&(r=t).push.apply(r,Object.keys(this.config.theme.breakpoints).map((function(e){return"r-"+e}))),t},t.toStyle=function(){var e=this;return this.atoms.reduce((function(t,i){if(!i.isValid)return t;var o=f.theme.colors,n=Object.entries(i.style).reduce((function(t,i){var n,s=i[0],a=i[1],l=e.formatCssValue(r.jsKeyToCssKey(s),o[a]||a);return u({},t,((n={})[s]=l,n))}),{});return u({},t,n)}),{})},t.toRules=function(e){void 0===e&&(e=!1);for(var t,i=this.config.mode.classPrefix,o=void 0===i?"":i,n=[],s=Object.keys(this.config.theme.breakpoints),a=d(this.atoms);!(t=a()).done;){var u=t.value,l="",c=u.id,p=u.style,f=void 0===p?{}:p,h=u.meta;if(u.isValid&&!r.isEmptyObj(f)){var m=h.pseudo,y=h.pseudoPrefix,g=h.mode,v=h.breakpoint,b=void 0===v?"":v,k=h.childSelector,S=h.siblingSelector,x=h.parentClass;if(e||!u.inserted){u.inserted=!0;var A=this.getClassNameById(c),j=h.global?h.global:"."+A;if(g&&(j="."+o+g+" "+j),k&&(j=j+" "+k),S&&(j=""+j+S),m){var w=y+m;x?j="."+x+w+" "+j:j+=w}b&&(j=j+"."+s.slice(0,s.indexOf(b)+1).map((function(e){return"r-"+e})).join(".")),l=j+" { "+this.styleToString(f,u.meta)+" }",b&&(l=this.makeResponsiveStyle(b,l)),n.push(l)}}}return n},t.getParsedProps=function(){var e=this.props,t=this.atoms;return r.isEmptyObj(e)?{}:Object.entries(e).reduce((function(e,r){var i=r[0],o=r[1];return/.*--(\d+)?[a-z]+$/i.test(i)||t.find((function(e){return[e.propKey,e.key,e.id,"css"].includes(i)||e.propKeys.includes(i)}))||(e[i]=o),e}),{})},t.insertRules=function(){var e=this.toRules();g.insertStyles(e)},a(e,[{key:"uniqueClassName",get:function(){return r.objectToClassName(Object.keys(this.props))}},{key:"hasResponsive",get:function(){return this.atoms.some((function(e){return!!e.meta.breakpoint}))}},{key:"store",get:function(){return f}},{key:"config",get:function(){return f.config}},{key:"plugins",get:function(){return f.config.plugins}}]),e}();function x(e){for(var t=Object.entries(e),r=new S({}),i=0,o=t;i<o.length;i++){var n=o[i],s=n[0],a=n[1],u=new y({propKey:s,propValue:a,value:a,meta:{global:s},style:a});r.addAtom(u)}r.insertRules()}x({"*, ::before, ::after":{borderWidth:0,borderStyle:"solid",borderColor:"#d4d4d4",boxSizing:"border-box"}});var A=f.setConfig,j=f.getConfig,w=f.setTheme,C=f.getTheme,O=f.setMode,V=f.getMode,P=f.addAtom,K=f.composeAtom;exports.Atom=y,exports.Parser=S,exports.Store=p,exports.addAtom=P,exports.composeAtom=K,exports.createStyle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=t.reduce((function(e,t){var r;return u({},e,"string"==typeof t?((r={})[t]=!0,r):{css:t})}),{}),o=new S(i),n=o.toStyle();return n},exports.css=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(!t.length)return"";var o=new S(r.argsToProps(t));return o.insertRules(),o.getClassNames().join(" ")},exports.digitReg=m,exports.getConfig=j,exports.getMode=V,exports.getTheme=C,exports.injectGlobalStyle=x,exports.keyframes=function(e,t){var i=Object.entries(e).reduce((function(e,t){var i=t[0],o=Object.entries(t[1]).reduce((function(e,t){return e+(t[0]+": ")+t[1]+";"}),"");return e+(r.jsKeyToCssKey(i)+" {")+o+"}"}),""),o=t||"keyframes-"+r.hash(JSON.stringify(e));return g.insertStyles(["\n @keyframes "+o+" {\n "+i+"\n }\n "]),o},exports.setConfig=A,exports.setMode=O,exports.setTheme=w,exports.store=f,exports.styleSheet=g;
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("deepmerge")),r=require("@fower/utils"),i=e(require("string-hash")),o=require("@fower/color-helper"),n=require("@fower/css-object-processor");function s(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)}function l(e,t){if(null==e)return{};var r,i,o={},n=Object.keys(e);for(i=0;i<n.length;i++)t.indexOf(r=n[i])>=0||(o[r]=e[r]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function d(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return c(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}require("@fower/atomic-props");var p=function(){function e(){var e=this;this.config={unit:"px",inline:!1,important:!1,mode:{currentMode:"light",autoDarkMode:{enabled:!1,mappings:{white:"black",black:"white",50:"900",100:"800",200:"700",300:"600",400:"500",500:"400",600:"300",700:"200",800:"100",900:"50"}},modeList:["light","dark"],classPrefix:""},prefix:"",pseudos:["active","checked","disabled","enabled","default","empty","focus","focus-within","invalid","hover","link","visited","first-child","last-child","after","before","placeholder","selection"],theme:{breakpoints:{}},plugins:[]},this.atomCache=new Map,this.getAtomIds=function(){return Array.from(e.atomCache.keys())},this.compositions=new Map,this.getConfig=function(){return e.config},this.setConfig=function(r,i){void 0===i&&(i="deepmerge"),e.config="replace"===i?r:"merge"===i?u({},e.config,r):t(e.config,r)},this.getTheme=function(){return e.config.theme},this.setTheme=function(r){e.config.theme=t(e.config.theme||{},r)},this.getMode=function(){var t;return(null==(t=e.config.mode)?void 0:t.currentMode)||""},this.setMode=function(t){if(r.isBrowser){var i=e.config.mode.currentMode;i&&document.documentElement.classList.remove(i),t&&document.documentElement.classList.add(t),localStorage.setItem("fower-mode",t),e.setConfig({mode:{currentMode:t}})}},this.use=function(){var t;(t=e.config.plugins).push.apply(t,arguments)},this.addAtom=function(t,r){var i={isMatch:function(e){return"string"==typeof t?e===t:t instanceof RegExp&&t.test(e)},handleAtom:"function"==typeof r?r:function(e){return e.style=r,e}};return e.use(i),i},this.composeAtom=function(t,r){e.compositions.set(t,r)}}return a(e,[{key:"theme",get:function(){return this.config.theme}}]),e}(),f=new p,h=["excludedProps"],m=/^(m[xytrbl]?-?|p[xytrbl]?|space[xy]?|top-?|right-?|bottom-?|left-?|[wh]|square|circle|min[hw]|max[hw]|opacity|delay|duration|translate[xyz]|scale[xy]?|rotate[xy]?|skew[xy]?|text|zIndex-?|leading|stroke|fontWeight|outlineOffset|order|flex(Grow|Shrink|Basis)?|(row|column)?Gap|gridTemplateColumns|border(Top|Right|Bottom|Left)?|rounded(Top(Left|Right)?|Right|Bottom(Left|Right)?|Left)?)(-?\d+[a-z]*?|-auto)$/i,y=function(){function e(e){var t=this;this.options=e,this.propKeys=[],this.value="",this.id="",this.type="",this.setId=function(){var e,r=t.meta,o=t.key,n=t.value,s=r.important,a=l(r,["pseudoPrefix","childSelector","important"]),u=Object.values(a).sort();return s&&u.push("i"),r.global?(e=i(JSON.stringify(n)).toString(),t.id=e,e):(e="boolean"==typeof n&&!0===n?o:Array.isArray(n)?o+"-"+n.join("-"):o+"-"+String(n),u.length&&(e=e+"--"+u.join("--")),e=e.replace(/[#().]/g,"").replace(/\%/g,"p").replace(/\s+/g,"-"),e=/^[a-zA-Z0-9-]+$/.test(e)?e:"css-"+i(e),t.isFalsePropValue&&(e+="--false"),t.id=e,e)},this.propKey=e.propKey,this.propValue=e.propValue,this.propKeys=[this.propKey],this.key=e.key||this.propKey,this.value=e.value||this.propValue,this.style=e.style||{},this.handled=this.getInitialHandled(),this.isValid=this.getIsValid(),this.inserted=!1,this.meta=u({},e.meta)||{},this.preprocessAtom()}var t=e.prototype;return t.preprocessAtom=function(){var e=this.postfixPreprocessor();return this.setId(),e},t.postfixPreprocessor=function(){var e=f.config,t=e.pseudos,r=void 0===t?[]:t,i=e.mode.modeList,o=this.propKey,n=this.propValue,s=Object.keys(e.theme.breakpoints),a=i||[],u=r,l="--("+s.join("|")+")",c="--("+a.join("|")+")",d="--("+u.join("|")+")",p=new RegExp(c),h=new RegExp(d),m=new RegExp(l),y=/--[told](\d{1,2}|100)($|--)/i;if(y.test(n)){var g=n.split("--"),v=g[1];this.value=g[0],this.meta.colorPostfix=v}var b=p.test(o),k=h.test(o),S=m.test(o),x=/--i/i.test(o),A=y.test(o),j=/--\$\w+/i.test(o);if(!(b||k||S||x||A))return this.digitPreprocessor();var w,C=o.split("--");if(this.key=C[0],b&&(this.meta.mode=C.find((function(e){return a.includes(e)}))),k){var O=C.find((function(e){return u.includes(e)}));this.meta.pseudoPrefix=["after","before","placeholder","selection"].includes(O)?"::":":",this.meta.pseudo=O}if(S){var V=C.find((function(e){return s.includes(e)}));this.meta.breakpoint=V}return x&&(this.meta.important=!!C.find((function(e){return"i"===e}))),A&&(this.meta.colorPostfix=C.find((function(e){return y.test("--"+e)}))),j&&(this.meta.parentClass=null==(w=C.find((function(e){return e.startsWith("$")})))?void 0:w.replace(/^\$/,"")),this.digitPreprocessor(),this},t.digitPreprocessor=function(){if(!m.test(this.key))return this;var e=f.config.theme.spacings,t=/^([a-z]+)(\d+)$/i.test(this.key),r=this.key.toString(),i=r.match(/^([a-z]+)(\d+)$/i)||r.match(/^([a-z]*)-(-?\d+[a-z]*?)$/i)||r.match(/^([a-z]+)-(auto)$/i);if(!i)return this;var o=i[2];return this.key=i[1],this.value=t?e[""+o.toLowerCase()]:o,this},t.getInitialHandled=function(){return this.options.handled?this.options.handled:!!this.isFalsePropValue||!!h.includes(this.propKey)},t.getIsValid=function(){return!this.isFalsePropValue&&!h.includes(this.propKey)},a(e,[{key:"isValueProp",get:function(){return"string"==typeof this.propValue||"number"==typeof this.propValue}},{key:"styleKeys",get:function(){return Object.keys(this.style||{}).join("-")}},{key:"styleKeysHash",get:function(){var e=l(this.meta,["colorPostfix"]);return Object.keys(this.style||{}).join("-")+JSON.stringify(e)}},{key:"isFalsePropValue",get:function(){return"boolean"==typeof this.propValue&&!this.propValue}},{key:"isTruePropValue",get:function(){return"boolean"==typeof this.propValue&&this.propValue}}]),e}(),g=new(function(){function e(){var e;this.$style=null,this.cssString="",this.ssrAtomIds=null,r.isBrowser&&(this.$style=null==(e=globalThis.document)||null==e.querySelector?void 0:e.querySelector("[data-fower]"))}var t=e.prototype;return t.createStyleElement=function(){var e=document.createElement("style");return e.dataset.fower="",document.head.append(e),e},t.getSsrAtomIds=function(){var e,t;return this.$style?this.ssrAtomIds?this.ssrAtomIds:(null==(e=this.$style)||null==(t=e.dataset.fower)?void 0:t.split(","))||[]:[]},t.insertStyleToHtml=function(e){if(r.isBrowser){this.$style||(this.$style=this.createStyleElement());for(var t,i=d(e);!(t=i()).done;){var o=t.value;try{this.$style.sheet.insertRule(o)}catch(e){console.warn(e)}}}},t.insertStyles=function(e){if(void 0===e&&(e=[]),e.length)return r.isBrowser?this.insertStyleToHtml(e):void(this.cssString=this.cssString+" "+e.join(" "))},t.getStyle=function(){return this.cssString},e}()),v=/(-columns|(^|[^e]-)padding|[^t]-spacing|l-align|rows|(^|(^border|[dkmnptx]|le|ne)-)width|^border|tom|[ek]-start|(o|[^e]-du)ration|us|(^|[^tv]-)left|(^|-)top|tance|rgin|e-offset|(er|g|n|t)-block|(^|[^tv]-)right|basis|[gnt]-inline|gap|(^|[^e]-)height|ness|(^|[^p]-)inset|[ek]-end|elay|tline|ve|dent|-rotate|n-rule|(c|ck|d|ne|t)-size)$/,b=["color","backgroundColor","borderColor"],k=["children","onClick","onChange","onBlur","className","placeholder"],S=function(){function e(e){var t,r;void 0===e&&(e={}),this.props=e,this.atoms=[],this.data={},this.getClassNameById=function(e){return f.config.prefix+e},this.traverseProps(e),null!=(t=f.config.mode)&&null!=(r=t.autoDarkMode)&&r.enabled&&this.autoDarkMode()}var t=e.prototype;return t.traverseProps=function(e){if(!r.isEmptyObj(e)){for(var t,i=this.config,o=i.pseudos,n=void 0===o?[]:o,s=i.mode.modeList,a=i.theme.breakpoints||{},l=Object.keys(a),c=s||[],p=n,h=e.excludedProps,m=void 0===h?[]:h,g=Object.entries(e),v=d(this.plugins);!(t=v()).done;){var b=t.value;b.init&&b.init(e)}if(null!=e&&e.className)for(var S,x=d(e.className.split(/\s+/));!(S=x()).done;)g.push([S.value,!0]);for(var A=0,j=g;A<j.length;A++){var w=j[A],C=w[0],O=w[1];if(!m.includes(C)&&!k.includes(C)&&this.isValidProp(C,O))if("css"!==C){if(C.startsWith("_")){var V=C.replace(/^_/,""),P=Array.isArray(O)?O.reduce((function(e,t){var r;return u({},e,((r={})[t]=!0,r))}),{}):O;if(c.includes(V)){this.parseCSSObject(P,{mode:V});continue}if(l.includes(V)){this.parseCSSObject(P,{breakpoint:a[V]});continue}if(p.includes(V)){this.parseCSSObject(P,{pseudoPrefix:":",pseudo:V});continue}}if(!Array.isArray(O)||/^bgGradient[XY].*/i.test(C)&&!Array.isArray(O[0])){var K=f.compositions.get(C);if(K){this.parseCSSObject(K,{});var M=new y({propKey:C,propValue:O});M.handled=!0,M.style={},this.addAtom(M)}else{var T=new y({propKey:C,propValue:O});try{this.mutateAtom(T),T.handled&&this.addAtom(T)}catch(e){continue}}}else this.parseResponsiveValue(C,O)}else this.parseCSSObject(O,{})}for(var I,R=d(this.plugins);!(I=R()).done;){var $=I.value;$.afterAtomStyleCreate&&$.afterAtomStyleCreate(this)}}},t.getAutoDarkModeAtom=function(e){var t;if(e.meta.mode)return null;if(!e.style)return null;var i=Object.entries(e.style);if(null==i||!i.length)return null;var o,n={},s=f.config,a=s.mode.autoDarkMode.mappings,l=s.theme.colors,c=i[0],d=c[0],p=c[1];if(!b.includes(d))return null;if(!l[p])return null;var h=(p.match(/^([a-z]+)(\d+)$/i)||[])[2];if(!1===a[p])return null;var m="color"===d,g="backgroundColor"===d,v="borderColor"===d;return l[o=a[p]?a[p]:p.replace(h,a[h])]?(m?n.propKey=o:g?n.propKey="bg"+r.upFirst(o):v&&(n.propKey="border"+r.upFirst(o)),n.propValue=!0):m?(n.propKey="color",n.propValue=o):g?(n.propKey="bg",n.propValue=o):v&&(n.propKey="borderColor",n.propValue=o),n.style=((t={})[d]=o,t),new y(u({},n,{meta:u({},e.meta,{mode:"dark"})}))},t.autoDarkMode=function(){for(var e,t=d(this.atoms);!(e=t()).done;){var r=e.value;if(!this.atoms.find((function(e){return b.includes(e.type)&&"dark"===e.meta.mode}))){var i=this.getAutoDarkModeAtom(r);if(i){var o=f.atomCache.get(i.id);this.addAtom(o||i)}}}},t.formatCssValue=function(e,t){if(!v.test(e))return t;var i;if(r.isPercentNumber(String(t)))return String(t).replace("p","%");if(!r.isNumber(t))return t;if((i=Number(t))<1&&i>0)return 100*i+"%";var o=f.config;return"none"!==o.unit?o.transformUnit?o.transformUnit(i):t+f.config.unit:i},t.styleToString=function(e,t){var i=this,n=t.important,s=t.colorPostfix;return Object.entries(e).reduce((function(e,t){var a=t[1],u=r.jsKeyToCssKey(t[0]),l=n?" !important":"",c=f.theme.colors;try{return e+(u+": ")+(a=s?o.formatColor((null==c?void 0:c[a])||a,s):i.formatCssValue(u,(null==c?void 0:c[a])||a))+l+";"}catch(e){return""}}),"")},t.addAtom=function(e){var t;f.atomCache.get(e.id)||f.atomCache.set(e.id,e);for(var r=g.getSsrAtomIds(),i=((null==(t=this.config.theme)?void 0:t.colors)||{}).modes,o=0,n=Object.entries(void 0===i?{}:i);o<n.length;o++){var s=n[o],a=s[0],l=s[1];if(e.style){var c=Object.entries(e.style);if(c.length){var d=c[0],p=d[0],h=l[d[1]];if(h){var m="--"+a,y=JSON.parse(JSON.stringify(e));y.key=e.key+m,y.id=e.id+m,y.meta=u({mode:a},e.meta),y.style[p]=h,r.includes(y.id)&&(y.inserted=!0),this.atoms.push(y)}}}}r.includes(e.id)&&(e.inserted=!0),this.atoms.push(e)},t.isValidProp=function(e,t){return"css"===e||!!e.startsWith("_")||!!Array.isArray(t)||!!["string","boolean","number","undefined"].includes(typeof t)},t.mutateAtom=function(e){for(var t,r=d(this.plugins);!(t=r()).done;){var i=t.value;null!=i.isMatch&&i.isMatch(e.key,this)&&i.beforeHandleAtom&&(e=i.beforeHandleAtom(e,this))}var o=f.atomCache.get(e.id);if(o)throw o.propKeys.push(e.propKey),this.addAtom(o),new Error("atom is cached, add to this.atoms directly, no need to mutate");if(e.handled)throw this.addAtom(e),new Error("atom is handled, add to this.atoms directly ,no need to mutate");for(var n,s=d(this.plugins);!(n=s()).done;){var a=n.value;if(null!=a.isMatch&&a.isMatch(e.key,this)){a.handleAtom&&(e=null==a.handleAtom?void 0:a.handleAtom(e,this)),e.handled=!0;break}}},t.parseResponsiveValue=function(e,t){var r=Object.keys(this.config.theme.breakpoints),i=t.reduce((function(t,i,o){var n;return u({},t,((n={})[e+(0===o?"":"--"+r[o-1])]=i,n))}),{});this.parseCSSObject(i)},t.parseCSSObject=function(e,t){void 0===t&&(t={});for(var r,i=d(n.parse(e));!(r=i()).done;){var o=r.value,s=o.selector,a=o.selectorType,l=o.style,c=Object.entries(l);if(c.length){var p=c[0],h={propKey:p[0],propValue:p[1],meta:u({},t)};if("pseudo"===a&&h.meta){var m=s.match(/(:+)(.+)/)||[],g=m[2];h.meta.pseudoPrefix=m[1],h.meta.pseudo=g}"child"===a&&h.meta&&(h.meta.childSelector=s),"sibling"===a&&h.meta&&(h.meta.siblingSelector=s);var v=new y(h);try{this.mutateAtom(v)}catch(e){continue}v.style||(v.style=l,v.handled=!0);var b=f.atomCache.get(v.id);this.addAtom(b||v)}}},t.makeResponsiveStyle=function(e,t){return"@media (min-width: "+this.config.theme.breakpoints[e]+") {"+t+"}"},t.getClassNames=function(){var e=this,t=[];this.atoms.reduce((function(r,i){if(!i.style||!Object.keys(i.style).length)return r;var o=r.findIndex((function(e){return e.styleKeysHash===i.styleKeysHash}));if(!i.isValid)return r;var n=e.getClassNameById(i.id);return-1===o?(t.push(n),r=[].concat(r,[i])):(r.splice(o,1,i),t.splice(o,1,n)),r}),[]);var r,i=this.props.className,o=(void 0===i?"":i).split(/\s+/).filter((function(e){return!t.includes(e)&&!!e}));return t=t.concat(o),this.hasResponsive&&(r=t).push.apply(r,Object.keys(this.config.theme.breakpoints).map((function(e){return"r-"+e}))),t},t.toStyle=function(){var e=this;return this.atoms.reduce((function(t,i){if(!i.isValid)return t;var o=f.theme.colors,n=Object.entries(i.style).reduce((function(t,i){var n,s=i[0],a=i[1],l=e.formatCssValue(r.jsKeyToCssKey(s),o[a]||a);return u({},t,((n={})[s]=l,n))}),{});return u({},t,n)}),{})},t.toRules=function(e){void 0===e&&(e=!1);for(var t,i=this.config.mode.classPrefix,o=void 0===i?"":i,n=[],s=Object.keys(this.config.theme.breakpoints),a=d(this.atoms);!(t=a()).done;){var u=t.value,l="",c=u.id,p=u.style,f=void 0===p?{}:p,h=u.meta;if(u.isValid&&!r.isEmptyObj(f)){var m=h.pseudo,y=h.pseudoPrefix,g=h.mode,v=h.breakpoint,b=void 0===v?"":v,k=h.childSelector,S=h.siblingSelector,x=h.parentClass;if(e||!u.inserted){u.inserted=!0;var A=this.getClassNameById(c),j=h.global?h.global:"."+A;if(g&&(j="."+o+g+" "+j),k&&(j=j+" "+k),S&&(j=""+j+S),m){var w=y+m;x?j="."+x+w+" "+j:j+=w}b&&(j=j+"."+s.slice(0,s.indexOf(b)+1).map((function(e){return"r-"+e})).join(".")),l=j+" { "+this.styleToString(f,u.meta)+" }",b&&(l=this.makeResponsiveStyle(b,l)),n.push(l)}}}return n},t.getParsedProps=function(){var e=this.props,t=this.atoms;return r.isEmptyObj(e)?{}:Object.entries(e).reduce((function(e,r){var i=r[0],o=r[1];return/.*--(\d+)?[a-z]+$/i.test(i)||t.find((function(e){return[e.propKey,e.key,e.id,"css"].includes(i)||e.propKeys.includes(i)}))||(e[i]=o),e}),{})},t.insertRules=function(){var e=this.toRules();g.insertStyles(e)},a(e,[{key:"uniqueClassName",get:function(){return r.objectToClassName(Object.keys(this.props))}},{key:"hasResponsive",get:function(){return this.atoms.some((function(e){return!!e.meta.breakpoint}))}},{key:"store",get:function(){return f}},{key:"config",get:function(){return f.config}},{key:"plugins",get:function(){return f.config.plugins}}]),e}();function x(e){for(var t=Object.entries(e),r=new S({}),i=0,o=t;i<o.length;i++){var n=o[i],s=n[0],a=n[1],u=new y({propKey:s,propValue:a,value:a,meta:{global:s},style:a});r.addAtom(u)}r.insertRules()}x({"*, ::before, ::after":{borderWidth:0,borderStyle:"solid",borderColor:"#d4d4d4",boxSizing:"border-box"}});var A=f.setConfig,j=f.getConfig,w=f.setTheme,C=f.getTheme,O=f.setMode,V=f.getMode,P=f.addAtom,K=f.composeAtom;exports.Atom=y,exports.Parser=S,exports.Store=p,exports.addAtom=P,exports.composeAtom=K,exports.createStyle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=t.reduce((function(e,t){var r;return u({},e,"string"==typeof t?((r={})[t]=!0,r):{css:t})}),{}),o=new S(i),n=o.toStyle();return n},exports.css=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(!t.length)return"";var o=new S(r.argsToProps(t));return o.insertRules(),o.getClassNames().join(" ")},exports.digitReg=m,exports.getConfig=j,exports.getMode=V,exports.getTheme=C,exports.injectGlobalStyle=x,exports.keyframes=function(e,t){var i=Object.entries(e).reduce((function(e,t){var i=t[0],o=Object.entries(t[1]).reduce((function(e,t){return e+(t[0]+": ")+t[1]+";"}),"");return e+(r.jsKeyToCssKey(i)+" {")+o+"}"}),""),o=t||"keyframes-"+r.hash(JSON.stringify(e));return g.insertStyles(["\n @keyframes "+o+" {\n "+i+"\n }\n "]),o},exports.setConfig=A,exports.setMode=O,exports.setTheme=w,exports.store=f,exports.styleSheet=g;
//# sourceMappingURL=core.cjs.production.min.js.map

@@ -75,24 +75,20 @@ import deepmerge from 'deepmerge';

function _createForOfIteratorHelperLoose(o, allowArrayLike) {
var it;
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
if (it) return (it = it.call(o)).next.bind(it);
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;
return function () {
if (i >= o.length) return {
done: true
};
return {
done: false,
value: o[i++]
};
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;
return function () {
if (i >= o.length) return {
done: true
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
return {
done: false,
value: o[i++]
};
};
}
it = o[Symbol.iterator]();
return it.next.bind(it);
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}

@@ -99,0 +95,0 @@

{
"name": "@fower/core",
"version": "1.51.1",
"version": "1.52.0",
"license": "MIT",

@@ -25,9 +25,9 @@ "main": "dist/index.js",

"dependencies": {
"@fower/atomic-props": "^1.51.1",
"@fower/css-object-processor": "^1.51.1",
"@fower/utils": "^1.51.1",
"@fower/atomic-props": "^1.52.0",
"@fower/css-object-processor": "^1.52.0",
"@fower/utils": "^1.52.0",
"deepmerge": "^4.2.2",
"string-hash": "^1.1.3"
},
"gitHead": "1ec656228ab8faf114ed877f049f2cc88cf8fbaf"
"gitHead": "efb1e73d33488cb12080dc07f57018c7ef2f04d2"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc