bitwrench 2.1.0 → 2.1.1
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/README.md +1 -0
- package/dist/bitwrench-bccl.cjs.js +1 -1
- package/dist/bitwrench-bccl.cjs.min.js +1 -1
- package/dist/bitwrench-bccl.cjs.min.js.gz +0 -0
- package/dist/bitwrench-bccl.esm.js +1 -1
- package/dist/bitwrench-bccl.esm.min.js +1 -1
- package/dist/bitwrench-bccl.esm.min.js.gz +0 -0
- package/dist/bitwrench-bccl.umd.js +1 -1
- package/dist/bitwrench-bccl.umd.min.js +1 -1
- package/dist/bitwrench-bccl.umd.min.js.gz +0 -0
- package/dist/bitwrench-code-edit.cjs.js +1 -1
- package/dist/bitwrench-code-edit.cjs.min.js +1 -1
- package/dist/bitwrench-code-edit.es5.js +1 -1
- package/dist/bitwrench-code-edit.es5.min.js +1 -1
- package/dist/bitwrench-code-edit.esm.js +1 -1
- package/dist/bitwrench-code-edit.esm.min.js +1 -1
- package/dist/bitwrench-code-edit.umd.js +1 -1
- package/dist/bitwrench-code-edit.umd.min.js +1 -1
- package/dist/bitwrench-code-edit.umd.min.js.gz +0 -0
- package/dist/bitwrench-debug.js +1 -1
- package/dist/bitwrench-debug.min.js +1 -1
- package/dist/bitwrench-lean.cjs.js +3 -3
- package/dist/bitwrench-lean.cjs.min.js +2 -2
- package/dist/bitwrench-lean.cjs.min.js.gz +0 -0
- package/dist/bitwrench-lean.es5.js +3 -3
- package/dist/bitwrench-lean.es5.min.js +2 -2
- package/dist/bitwrench-lean.es5.min.js.gz +0 -0
- package/dist/bitwrench-lean.esm.js +3 -3
- package/dist/bitwrench-lean.esm.min.js +2 -2
- package/dist/bitwrench-lean.esm.min.js.gz +0 -0
- package/dist/bitwrench-lean.umd.js +3 -3
- package/dist/bitwrench-lean.umd.min.js +2 -2
- package/dist/bitwrench-lean.umd.min.js.gz +0 -0
- package/dist/bitwrench-util-color.cjs.js +1 -1
- package/dist/bitwrench-util-color.cjs.min.js +1 -1
- package/dist/bitwrench-util-color.es5.js +1 -1
- package/dist/bitwrench-util-color.es5.min.js +1 -1
- package/dist/bitwrench-util-color.esm.js +1 -1
- package/dist/bitwrench-util-color.esm.min.js +1 -1
- package/dist/bitwrench-util-color.umd.js +1 -1
- package/dist/bitwrench-util-color.umd.min.js +1 -1
- package/dist/bitwrench-util-css.cjs.js +1 -1
- package/dist/bitwrench-util-css.cjs.min.js +1 -1
- package/dist/bitwrench-util-css.es5.js +1 -1
- package/dist/bitwrench-util-css.es5.min.js +1 -1
- package/dist/bitwrench-util-css.esm.js +1 -1
- package/dist/bitwrench-util-css.esm.min.js +1 -1
- package/dist/bitwrench-util-css.umd.js +1 -1
- package/dist/bitwrench-util-css.umd.min.js +1 -1
- package/dist/bitwrench-util-css.umd.min.js.gz +0 -0
- package/dist/bitwrench.cjs.js +3 -3
- package/dist/bitwrench.cjs.min.js +2 -2
- package/dist/bitwrench.cjs.min.js.gz +0 -0
- package/dist/bitwrench.css +1 -1
- package/dist/bitwrench.es5.js +3 -3
- package/dist/bitwrench.es5.min.js +2 -2
- package/dist/bitwrench.es5.min.js.gz +0 -0
- package/dist/bitwrench.esm.js +3 -3
- package/dist/bitwrench.esm.min.js +2 -2
- package/dist/bitwrench.esm.min.js.gz +0 -0
- package/dist/bitwrench.umd.js +3 -3
- package/dist/bitwrench.umd.min.js +2 -2
- package/dist/bitwrench.umd.min.js.gz +0 -0
- package/dist/builds.json +58 -58
- package/dist/bwserve.cjs.js +2 -2
- package/dist/bwserve.esm.js +2 -2
- package/dist/sri.json +52 -52
- package/docs/bitwrench_api.md +1 -1
- package/package.json +1 -1
- package/readme.html +2 -3
- package/src/version.js +3 -3
|
Binary file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! bitwrench-util-color v2.1.
|
|
1
|
+
/*! bitwrench-util-color v2.1.1 | BSD-2-Clause | https://deftio.github.io/bitwrench/pages */
|
|
2
2
|
"use strict";function r(r,o,t,e,a,n){n||(n={});var i=n.clip||!1,l=n.expScale||1,s=(r-o)/(t-o);1!==l&&(s=Math.pow(s,l));var u=s*(a-e)+e;if(i){var c=Math.min(e,a),f=Math.max(e,a);u=Math.max(c,Math.min(f,u))}return u}function o(r,o,t,e,a){void 0===e&&(e=255),void 0===a&&(a=!0),Array.isArray(r)&&(o=r[1],t=r[2],e=void 0!==r[3]?r[3]:255,r=r[0]);var n,i,l,s=r/360,u=o/100,c=t/100;if(0===u)n=i=l=255*c;else{var f=function(r,o,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?r+6*(o-r)*t:t<.5?o:t<2/3?r+(o-r)*(2/3-t)*6:r},h=c<.5?c*(1+u):c+u-c*u,g=2*c-h;n=255*f(g,h,s+1/3),i=255*f(g,h,s),l=255*f(g,h,s-1/3)}return a&&(n=Math.round(n),i=Math.round(i),l=Math.round(l),e=Math.round(e)),[n,i,l,e,"rgb"]}function t(r,o,t,e,a){void 0===e&&(e=255),void 0===a&&(a=!0),Array.isArray(r)&&(o=r[1],t=r[2],e=void 0!==r[3]?r[3]:255,r=r[0]),r/=255,o/=255,t/=255;var n,i,l=Math.max(r,o,t),s=Math.min(r,o,t),u=(l+s)/2;if(l===s)n=i=0;else{var c=l-s;switch(i=u>.5?c/(2-l-s):c/(l+s),l){case r:n=((o-t)/c+(o<t?6:0))/6;break;case o:n=((t-r)/c+2)/6;break;case t:n=((r-o)/c+4)/6}}return n*=360,i*=100,u*=100,a&&(n=Math.round(n),i=Math.round(i),u=Math.round(u),e=Math.round(e)),[n,i,u,e,"hsl"]}function e(r,t){void 0===t&&(t=255);var e=[0,0,0,t,"rgb"];if(Array.isArray(r)){for(var a=[0,0,0,255,"rgb"],n=0;n<r.length&&n<a.length;n++)a[n]=r[n];return a}if("#"===(r=String(r).replace(/\s/g,""))[0]){var i=r.slice(1);if(3===i.length||4===i.length)for(var l=0;l<i.length;l++)e[l]=parseInt(i[l]+i[l],16);else if(6===i.length||8===i.length)for(var s=0;s<i.length;s+=2)e[s/2]=parseInt(i.substring(s,s+2),16)}else{var u=r.match(/^(rgb|hsl)a?\(([^)]+)\)$/i);if(u){var c=u[1].toLowerCase(),f=u[2].split(",").map(function(r){return parseFloat(r)});if("rgb"===c)e[0]=f[0]||0,e[1]=f[1]||0,e[2]=f[2]||0,e[3]=void 0!==f[3]?255*f[3]:t,e[4]="rgb";else if("hsl"===c){return o(f[0]||0,f[1]||0,f[2]||0,void 0!==f[3]?255*f[3]:t)}}}return e}function a(o,t,a,n,i){var l=Array.isArray(n)?n:["#000","#fff"];if(1===(l=0===l.length?["#000","#fff"]:l).length)return l[0];var s,u,c,f=r(o,t,a,0,(l=l.map(function(r){return e(r)})).length-1,{clip:!0,expScale:i}),h=(s=Math.floor(f),u=0,c=l.length-2,Math.max(u,Math.min(c,s))),g=f-h,v=function(o){return r(g,0,1,l[h][o],l[h+1][o],{clip:!0})};return[v(0),v(1),v(2),v(3),"rgb"]}Object.defineProperty(exports,"__esModule",{value:!0});var n={colorParse:e,colorRgbToHsl:t,colorHslToRgb:o,colorInterp:a};function i(r){r&&(r.colorParse=e,r.colorRgbToHsl=t,r.colorHslToRgb=o,r.colorInterp=a)}"undefined"!=typeof window&&window.bw&&i(window.bw),exports.colorHslToRgb=o,exports.colorInterp=a,exports.colorParse=e,exports.colorRgbToHsl=t,exports.default=n,exports.install=i,exports.utilColor=n;
|
|
3
3
|
//# sourceMappingURL=bitwrench-util-color.cjs.min.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! bitwrench-util-color v2.1.
|
|
1
|
+
/*! bitwrench-util-color v2.1.1 | BSD-2-Clause | https://deftio.github.io/bitwrench/pages */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! bitwrench-util-color v2.1.
|
|
1
|
+
/*! bitwrench-util-color v2.1.1 | BSD-2-Clause | https://deftio.github.io/bitwrench/pages */
|
|
2
2
|
!function(r,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((r="undefined"!=typeof globalThis?globalThis:r||self).bwUtilColor={})}(this,function(r){"use strict";function o(r,o,e,t,n,a){a||(a={});var i=a.clip||!1,l=a.expScale||1,f=(r-o)/(e-o);1!==l&&(f=Math.pow(f,l));var s=f*(n-t)+t;if(i){var u=Math.min(t,n),c=Math.max(t,n);s=Math.max(u,Math.min(c,s))}return s}function e(r,o,e,t,n){void 0===t&&(t=255),void 0===n&&(n=!0),Array.isArray(r)&&(o=r[1],e=r[2],t=void 0!==r[3]?r[3]:255,r=r[0]);var a,i,l,f=r/360,s=o/100,u=e/100;if(0===s)a=i=l=255*u;else{var c=function(r,o,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?r+6*(o-r)*e:e<.5?o:e<2/3?r+(o-r)*(2/3-e)*6:r},h=u<.5?u*(1+s):u+s-u*s,d=2*u-h;a=255*c(d,h,f+1/3),i=255*c(d,h,f),l=255*c(d,h,f-1/3)}return n&&(a=Math.round(a),i=Math.round(i),l=Math.round(l),t=Math.round(t)),[a,i,l,t,"rgb"]}function t(r,o,e,t,n){void 0===t&&(t=255),void 0===n&&(n=!0),Array.isArray(r)&&(o=r[1],e=r[2],t=void 0!==r[3]?r[3]:255,r=r[0]),r/=255,o/=255,e/=255;var a,i,l=Math.max(r,o,e),f=Math.min(r,o,e),s=(l+f)/2;if(l===f)a=i=0;else{var u=l-f;switch(i=s>.5?u/(2-l-f):u/(l+f),l){case r:a=((o-e)/u+(o<e?6:0))/6;break;case o:a=((e-r)/u+2)/6;break;case e:a=((r-o)/u+4)/6}}return a*=360,i*=100,s*=100,n&&(a=Math.round(a),i=Math.round(i),s=Math.round(s),t=Math.round(t)),[a,i,s,t,"hsl"]}function n(r,o){void 0===o&&(o=255);var t=[0,0,0,o,"rgb"];if(Array.isArray(r)){for(var n=[0,0,0,255,"rgb"],a=0;a<r.length&&a<n.length;a++)n[a]=r[a];return n}if("#"===(r=String(r).replace(/\s/g,""))[0]){var i=r.slice(1);if(3===i.length||4===i.length)for(var l=0;l<i.length;l++)t[l]=parseInt(i[l]+i[l],16);else if(6===i.length||8===i.length)for(var f=0;f<i.length;f+=2)t[f/2]=parseInt(i.substring(f,f+2),16)}else{var s=r.match(/^(rgb|hsl)a?\(([^)]+)\)$/i);if(s){var u=s[1].toLowerCase(),c=s[2].split(",").map(function(r){return parseFloat(r)});if("rgb"===u)t[0]=c[0]||0,t[1]=c[1]||0,t[2]=c[2]||0,t[3]=void 0!==c[3]?255*c[3]:o,t[4]="rgb";else if("hsl"===u){return e(c[0]||0,c[1]||0,c[2]||0,void 0!==c[3]?255*c[3]:o)}}}return t}function a(r,e,t,a,i){var l=Array.isArray(a)?a:["#000","#fff"];if(1===(l=0===l.length?["#000","#fff"]:l).length)return l[0];var f,s,u,c=o(r,e,t,0,(l=l.map(function(r){return n(r)})).length-1,{clip:!0,expScale:i}),h=(f=Math.floor(c),s=0,u=l.length-2,Math.max(s,Math.min(u,f))),d=c-h,g=function(r){return o(d,0,1,l[h][r],l[h+1][r],{clip:!0})};return[g(0),g(1),g(2),g(3),"rgb"]}var i={colorParse:n,colorRgbToHsl:t,colorHslToRgb:e,colorInterp:a};function l(r){r&&(r.colorParse=n,r.colorRgbToHsl=t,r.colorHslToRgb=e,r.colorInterp=a)}"undefined"!=typeof window&&window.bw&&l(window.bw),r.colorHslToRgb=e,r.colorInterp=a,r.colorParse=n,r.colorRgbToHsl=t,r.default=i,r.install=l,r.utilColor=i,Object.defineProperty(r,"__esModule",{value:!0})});
|
|
3
3
|
//# sourceMappingURL=bitwrench-util-color.es5.min.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! bitwrench-util-color v2.1.
|
|
1
|
+
/*! bitwrench-util-color v2.1.1 | BSD-2-Clause | https://deftio.github.io/bitwrench/pages */
|
|
2
2
|
/**
|
|
3
3
|
* bitwrench-util-color.js - Legacy color parsing and conversion utilities
|
|
4
4
|
*
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! bitwrench-util-color v2.1.
|
|
1
|
+
/*! bitwrench-util-color v2.1.1 | BSD-2-Clause | https://deftio.github.io/bitwrench/pages */
|
|
2
2
|
function r(r,a,n,t,o,e){e||(e={});var i=e.clip||!1,l=e.expScale||1,h=(r-a)/(n-a);1!==l&&(h=Math.pow(h,l));var f=h*(o-t)+t;if(i){var u=Math.min(t,o),s=Math.max(t,o);f=Math.max(u,Math.min(s,f))}return f}function a(r,a,n,t,o){void 0===t&&(t=255),void 0===o&&(o=!0),Array.isArray(r)&&(a=r[1],n=r[2],t=void 0!==r[3]?r[3]:255,r=r[0]);var e,i,l,h=r/360,f=a/100,u=n/100;if(0===f)e=i=l=255*u;else{var s=function(r,a,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?r+6*(a-r)*n:n<.5?a:n<2/3?r+(a-r)*(2/3-n)*6:r},c=u<.5?u*(1+f):u+f-u*f,g=2*u-c;e=255*s(g,c,h+1/3),i=255*s(g,c,h),l=255*s(g,c,h-1/3)}return o&&(e=Math.round(e),i=Math.round(i),l=Math.round(l),t=Math.round(t)),[e,i,l,t,"rgb"]}function n(r,a,n,t,o){void 0===t&&(t=255),void 0===o&&(o=!0),Array.isArray(r)&&(a=r[1],n=r[2],t=void 0!==r[3]?r[3]:255,r=r[0]),r/=255,a/=255,n/=255;var e,i,l=Math.max(r,a,n),h=Math.min(r,a,n),f=(l+h)/2;if(l===h)e=i=0;else{var u=l-h;switch(i=f>.5?u/(2-l-h):u/(l+h),l){case r:e=((a-n)/u+(a<n?6:0))/6;break;case a:e=((n-r)/u+2)/6;break;case n:e=((r-a)/u+4)/6}}return e*=360,i*=100,f*=100,o&&(e=Math.round(e),i=Math.round(i),f=Math.round(f),t=Math.round(t)),[e,i,f,t,"hsl"]}function t(r,n){void 0===n&&(n=255);var t=[0,0,0,n,"rgb"];if(Array.isArray(r)){for(var o=[0,0,0,255,"rgb"],e=0;e<r.length&&e<o.length;e++)o[e]=r[e];return o}if("#"===(r=String(r).replace(/\s/g,""))[0]){var i=r.slice(1);if(3===i.length||4===i.length)for(var l=0;l<i.length;l++)t[l]=parseInt(i[l]+i[l],16);else if(6===i.length||8===i.length)for(var h=0;h<i.length;h+=2)t[h/2]=parseInt(i.substring(h,h+2),16)}else{var f=r.match(/^(rgb|hsl)a?\(([^)]+)\)$/i);if(f){var u=f[1].toLowerCase(),s=f[2].split(",").map(function(r){return parseFloat(r)});if("rgb"===u)t[0]=s[0]||0,t[1]=s[1]||0,t[2]=s[2]||0,t[3]=void 0!==s[3]?255*s[3]:n,t[4]="rgb";else if("hsl"===u){return a(s[0]||0,s[1]||0,s[2]||0,void 0!==s[3]?255*s[3]:n)}}}return t}function o(a,n,o,e,i){var l=Array.isArray(e)?e:["#000","#fff"];if(1===(l=0===l.length?["#000","#fff"]:l).length)return l[0];var h,f,u,s=r(a,n,o,0,(l=l.map(function(r){return t(r)})).length-1,{clip:!0,expScale:i}),c=(h=Math.floor(s),f=0,u=l.length-2,Math.max(f,Math.min(u,h))),g=s-c,v=function(a){return r(g,0,1,l[c][a],l[c+1][a],{clip:!0})};return[v(0),v(1),v(2),v(3),"rgb"]}var e={colorParse:t,colorRgbToHsl:n,colorHslToRgb:a,colorInterp:o};function i(r){r&&(r.colorParse=t,r.colorRgbToHsl=n,r.colorHslToRgb=a,r.colorInterp=o)}"undefined"!=typeof window&&window.bw&&i(window.bw);export{a as colorHslToRgb,o as colorInterp,t as colorParse,n as colorRgbToHsl,e as default,i as install,e as utilColor};
|
|
3
3
|
//# sourceMappingURL=bitwrench-util-color.esm.min.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! bitwrench-util-color v2.1.
|
|
1
|
+
/*! bitwrench-util-color v2.1.1 | BSD-2-Clause | https://deftio.github.io/bitwrench/pages */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! bitwrench-util-color v2.1.
|
|
1
|
+
/*! bitwrench-util-color v2.1.1 | BSD-2-Clause | https://deftio.github.io/bitwrench/pages */
|
|
2
2
|
!function(r,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((r="undefined"!=typeof globalThis?globalThis:r||self).bwUtilColor={})}(this,function(r){"use strict";function o(r,o,e,t,n,a){a||(a={});var i=a.clip||!1,l=a.expScale||1,f=(r-o)/(e-o);1!==l&&(f=Math.pow(f,l));var s=f*(n-t)+t;if(i){var u=Math.min(t,n),c=Math.max(t,n);s=Math.max(u,Math.min(c,s))}return s}function e(r,o,e,t,n){void 0===t&&(t=255),void 0===n&&(n=!0),Array.isArray(r)&&(o=r[1],e=r[2],t=void 0!==r[3]?r[3]:255,r=r[0]);var a,i,l,f=r/360,s=o/100,u=e/100;if(0===s)a=i=l=255*u;else{var c=function(r,o,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?r+6*(o-r)*e:e<.5?o:e<2/3?r+(o-r)*(2/3-e)*6:r},h=u<.5?u*(1+s):u+s-u*s,d=2*u-h;a=255*c(d,h,f+1/3),i=255*c(d,h,f),l=255*c(d,h,f-1/3)}return n&&(a=Math.round(a),i=Math.round(i),l=Math.round(l),t=Math.round(t)),[a,i,l,t,"rgb"]}function t(r,o,e,t,n){void 0===t&&(t=255),void 0===n&&(n=!0),Array.isArray(r)&&(o=r[1],e=r[2],t=void 0!==r[3]?r[3]:255,r=r[0]),r/=255,o/=255,e/=255;var a,i,l=Math.max(r,o,e),f=Math.min(r,o,e),s=(l+f)/2;if(l===f)a=i=0;else{var u=l-f;switch(i=s>.5?u/(2-l-f):u/(l+f),l){case r:a=((o-e)/u+(o<e?6:0))/6;break;case o:a=((e-r)/u+2)/6;break;case e:a=((r-o)/u+4)/6}}return a*=360,i*=100,s*=100,n&&(a=Math.round(a),i=Math.round(i),s=Math.round(s),t=Math.round(t)),[a,i,s,t,"hsl"]}function n(r,o){void 0===o&&(o=255);var t=[0,0,0,o,"rgb"];if(Array.isArray(r)){for(var n=[0,0,0,255,"rgb"],a=0;a<r.length&&a<n.length;a++)n[a]=r[a];return n}if("#"===(r=String(r).replace(/\s/g,""))[0]){var i=r.slice(1);if(3===i.length||4===i.length)for(var l=0;l<i.length;l++)t[l]=parseInt(i[l]+i[l],16);else if(6===i.length||8===i.length)for(var f=0;f<i.length;f+=2)t[f/2]=parseInt(i.substring(f,f+2),16)}else{var s=r.match(/^(rgb|hsl)a?\(([^)]+)\)$/i);if(s){var u=s[1].toLowerCase(),c=s[2].split(",").map(function(r){return parseFloat(r)});if("rgb"===u)t[0]=c[0]||0,t[1]=c[1]||0,t[2]=c[2]||0,t[3]=void 0!==c[3]?255*c[3]:o,t[4]="rgb";else if("hsl"===u){return e(c[0]||0,c[1]||0,c[2]||0,void 0!==c[3]?255*c[3]:o)}}}return t}function a(r,e,t,a,i){var l=Array.isArray(a)?a:["#000","#fff"];if(1===(l=0===l.length?["#000","#fff"]:l).length)return l[0];var f,s,u,c=o(r,e,t,0,(l=l.map(function(r){return n(r)})).length-1,{clip:!0,expScale:i}),h=(f=Math.floor(c),s=0,u=l.length-2,Math.max(s,Math.min(u,f))),d=c-h,g=function(r){return o(d,0,1,l[h][r],l[h+1][r],{clip:!0})};return[g(0),g(1),g(2),g(3),"rgb"]}var i={colorParse:n,colorRgbToHsl:t,colorHslToRgb:e,colorInterp:a};function l(r){r&&(r.colorParse=n,r.colorRgbToHsl=t,r.colorHslToRgb=e,r.colorInterp=a)}"undefined"!=typeof window&&window.bw&&l(window.bw),r.colorHslToRgb=e,r.colorInterp=a,r.colorParse=n,r.colorRgbToHsl=t,r.default=i,r.install=l,r.utilColor=i,Object.defineProperty(r,"__esModule",{value:!0})});
|
|
3
3
|
//# sourceMappingURL=bitwrench-util-color.umd.min.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! bitwrench-util-css v2.1.
|
|
1
|
+
/*! bitwrench-util-css v2.1.1 | BSD-2-Clause | https://deftio.github.io/bitwrench/pages */
|
|
2
2
|
"use strict";function t(t){return.25*t+"rem"}Object.defineProperty(exports,"__esModule",{value:!0});var n={p:function(n){return{padding:t(n)}},pt:function(n){return{paddingTop:t(n)}},pb:function(n){return{paddingBottom:t(n)}},pl:function(n){return{paddingLeft:t(n)}},pr:function(n){return{paddingRight:t(n)}},px:function(n){return{paddingLeft:t(n),paddingRight:t(n)}},py:function(n){return{paddingTop:t(n),paddingBottom:t(n)}},m:function(n){return{margin:t(n)}},mt:function(n){return{marginTop:t(n)}},mb:function(n){return{marginBottom:t(n)}},ml:function(n){return{marginLeft:t(n)}},mr:function(n){return{marginRight:t(n)}},mx:function(n){return{marginLeft:t(n),marginRight:t(n)}},my:function(n){return{marginTop:t(n),marginBottom:t(n)}},gap:function(n){return{gap:t(n)}},w:function(n){return{width:t(n)}},h:function(n){return{height:t(n)}},rounded:function(n){return{borderRadius:t(n)}},textSm:function(){return{fontSize:"0.875rem"}},textBase:function(){return{fontSize:"1rem"}},textLg:function(){return{fontSize:"1.125rem"}},textXl:function(){return{fontSize:"1.25rem"}},text2xl:function(){return{fontSize:"1.5rem"}},text3xl:function(){return{fontSize:"1.875rem"}}},e={flex:{display:"flex"},flexCol:{display:"flex",flexDirection:"column"},flexRow:{display:"flex",flexDirection:"row"},flexWrap:{display:"flex",flexWrap:"wrap"},block:{display:"block"},inline:{display:"inline"},hidden:{display:"none"},bold:{fontWeight:"700"},semibold:{fontWeight:"600"},italic:{fontStyle:"italic"},textCenter:{textAlign:"center"},textRight:{textAlign:"right"},justifyCenter:{justifyContent:"center"},justifyBetween:{justifyContent:"space-between"},justifyEnd:{justifyContent:"flex-end"},alignCenter:{alignItems:"center"},alignStart:{alignItems:"flex-start"},alignEnd:{alignItems:"flex-end"},wFull:{width:"100%"},hFull:{height:"100%"},transition:{transition:"all 0.2s ease"}},r={},i=/\s+/,o=/^([a-zA-Z]+?)(\d+)$/,u=/^bg-\[([^\]]+)\]$/,f=/^text-\[([^\]]+)\]$/,a=/^bg-(.+)$/,l=/^text-(.+)$/;function c(t){if(r[t]){var i=r[t];return"function"==typeof i?i(t):i}if(e[t])return e[t];var c=o.exec(t);if(c){var g=c[1],d=parseInt(c[2],10);if(n[g])return n[g](d)}if(n[t])return n[t]();var p=u.exec(t);if(p)return{background:p[1]};var s=f.exec(t);if(s)return{color:s[1]};var x=a.exec(t);if(x)return{background:x[1]};var m=l.exec(t);return m?{color:m[1]}:null}function g(t){if(!t||"string"!=typeof t)return{};for(var n=t.trim().split(i),e={},r=0;r<n.length;r++){var o=c(n[r]);if(o)for(var u=Object.keys(o),f=0;f<u.length;f++)e[u[f]]=o[u[f]]}return e}function d(t){t&&(t.utilCSS=g,t.u=g)}g.css=function(t){for(var n=g(t),e=[],r=Object.keys(n),i=0;i<r.length;i++){var o=r[i].replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});e.push(o+":"+n[r[i]])}return e.join(";")},g.cls=function(t){if(!t||"string"!=typeof t)return"";for(var n=t.trim().split(i),e=[],r=0;r<n.length;r++){var o=n[r];if(c(o)){var u="bw_"+o.replace(/([A-Z])/g,function(t){return"_"+t.toLowerCase()}).replace(/(\d+)/g,function(t){return"_"+t});e.push(u)}}return e.join(" ")},g.extend=function(t){if(t&&"object"==typeof t)for(var n=Object.keys(t),e=0;e<n.length;e++)r[n[e]]=t[n[e]]},"undefined"!=typeof window&&window.bw&&d(window.bw);var p={utilCSS:g,install:d};exports.default=p,exports.install=d,exports.utilCSS=g;
|
|
3
3
|
//# sourceMappingURL=bitwrench-util-css.cjs.min.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! bitwrench-util-css v2.1.
|
|
1
|
+
/*! bitwrench-util-css v2.1.1 | BSD-2-Clause | https://deftio.github.io/bitwrench/pages */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! bitwrench-util-css v2.1.
|
|
1
|
+
/*! bitwrench-util-css v2.1.1 | BSD-2-Clause | https://deftio.github.io/bitwrench/pages */
|
|
2
2
|
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).bwUtilCSS={})}(this,function(t){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function e(t){return.25*t+"rem"}var r={p:function(t){return{padding:e(t)}},pt:function(t){return{paddingTop:e(t)}},pb:function(t){return{paddingBottom:e(t)}},pl:function(t){return{paddingLeft:e(t)}},pr:function(t){return{paddingRight:e(t)}},px:function(t){return{paddingLeft:e(t),paddingRight:e(t)}},py:function(t){return{paddingTop:e(t),paddingBottom:e(t)}},m:function(t){return{margin:e(t)}},mt:function(t){return{marginTop:e(t)}},mb:function(t){return{marginBottom:e(t)}},ml:function(t){return{marginLeft:e(t)}},mr:function(t){return{marginRight:e(t)}},mx:function(t){return{marginLeft:e(t),marginRight:e(t)}},my:function(t){return{marginTop:e(t),marginBottom:e(t)}},gap:function(t){return{gap:e(t)}},w:function(t){return{width:e(t)}},h:function(t){return{height:e(t)}},rounded:function(t){return{borderRadius:e(t)}},textSm:function(){return{fontSize:"0.875rem"}},textBase:function(){return{fontSize:"1rem"}},textLg:function(){return{fontSize:"1.125rem"}},textXl:function(){return{fontSize:"1.25rem"}},text2xl:function(){return{fontSize:"1.5rem"}},text3xl:function(){return{fontSize:"1.875rem"}}},i={flex:{display:"flex"},flexCol:{display:"flex",flexDirection:"column"},flexRow:{display:"flex",flexDirection:"row"},flexWrap:{display:"flex",flexWrap:"wrap"},block:{display:"block"},inline:{display:"inline"},hidden:{display:"none"},bold:{fontWeight:"700"},semibold:{fontWeight:"600"},italic:{fontStyle:"italic"},textCenter:{textAlign:"center"},textRight:{textAlign:"right"},justifyCenter:{justifyContent:"center"},justifyBetween:{justifyContent:"space-between"},justifyEnd:{justifyContent:"flex-end"},alignCenter:{alignItems:"center"},alignStart:{alignItems:"flex-start"},alignEnd:{alignItems:"flex-end"},wFull:{width:"100%"},hFull:{height:"100%"},transition:{transition:"all 0.2s ease"}},o={},f=/\s+/,u=/^([a-zA-Z]+?)(\d+)$/,l=/^bg-\[([^\]]+)\]$/,a=/^text-\[([^\]]+)\]$/,c=/^bg-(.+)$/,d=/^text-(.+)$/;function p(t){if(o[t]){var n=o[t];return"function"==typeof n?n(t):n}if(i[t])return i[t];var e=u.exec(t);if(e){var f=e[1],p=parseInt(e[2],10);if(r[f])return r[f](p)}if(r[t])return r[t]();var s=l.exec(t);if(s)return{background:s[1]};var g=a.exec(t);if(g)return{color:g[1]};var m=c.exec(t);if(m)return{background:m[1]};var y=d.exec(t);return y?{color:y[1]}:null}function s(t){if(!t||"string"!=typeof t)return{};for(var n=t.trim().split(f),e={},r=0;r<n.length;r++){var i=p(n[r]);if(i)for(var o=Object.keys(i),u=0;u<o.length;u++)e[o[u]]=i[o[u]]}return e}function g(t){t&&(t.utilCSS=s,t.u=s)}s.css=function(t){for(var n=s(t),e=[],r=Object.keys(n),i=0;i<r.length;i++){var o=r[i].replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});e.push(o+":"+n[r[i]])}return e.join(";")},s.cls=function(t){if(!t||"string"!=typeof t)return"";for(var n=t.trim().split(f),e=[],r=0;r<n.length;r++){var i=n[r];if(p(i)){var o="bw_"+i.replace(/([A-Z])/g,function(t){return"_"+t.toLowerCase()}).replace(/(\d+)/g,function(t){return"_"+t});e.push(o)}}return e.join(" ")},s.extend=function(t){if(t&&"object"===n(t))for(var e=Object.keys(t),r=0;r<e.length;r++)o[e[r]]=t[e[r]]},"undefined"!=typeof window&&window.bw&&g(window.bw);var m={utilCSS:s,install:g};t.default=m,t.install=g,t.utilCSS=s,Object.defineProperty(t,"__esModule",{value:!0})});
|
|
3
3
|
//# sourceMappingURL=bitwrench-util-css.es5.min.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! bitwrench-util-css v2.1.
|
|
1
|
+
/*! bitwrench-util-css v2.1.1 | BSD-2-Clause | https://deftio.github.io/bitwrench/pages */
|
|
2
2
|
function t(t){return.25*t+"rem"}var n={p:function(n){return{padding:t(n)}},pt:function(n){return{paddingTop:t(n)}},pb:function(n){return{paddingBottom:t(n)}},pl:function(n){return{paddingLeft:t(n)}},pr:function(n){return{paddingRight:t(n)}},px:function(n){return{paddingLeft:t(n),paddingRight:t(n)}},py:function(n){return{paddingTop:t(n),paddingBottom:t(n)}},m:function(n){return{margin:t(n)}},mt:function(n){return{marginTop:t(n)}},mb:function(n){return{marginBottom:t(n)}},ml:function(n){return{marginLeft:t(n)}},mr:function(n){return{marginRight:t(n)}},mx:function(n){return{marginLeft:t(n),marginRight:t(n)}},my:function(n){return{marginTop:t(n),marginBottom:t(n)}},gap:function(n){return{gap:t(n)}},w:function(n){return{width:t(n)}},h:function(n){return{height:t(n)}},rounded:function(n){return{borderRadius:t(n)}},textSm:function(){return{fontSize:"0.875rem"}},textBase:function(){return{fontSize:"1rem"}},textLg:function(){return{fontSize:"1.125rem"}},textXl:function(){return{fontSize:"1.25rem"}},text2xl:function(){return{fontSize:"1.5rem"}},text3xl:function(){return{fontSize:"1.875rem"}}},e={flex:{display:"flex"},flexCol:{display:"flex",flexDirection:"column"},flexRow:{display:"flex",flexDirection:"row"},flexWrap:{display:"flex",flexWrap:"wrap"},block:{display:"block"},inline:{display:"inline"},hidden:{display:"none"},bold:{fontWeight:"700"},semibold:{fontWeight:"600"},italic:{fontStyle:"italic"},textCenter:{textAlign:"center"},textRight:{textAlign:"right"},justifyCenter:{justifyContent:"center"},justifyBetween:{justifyContent:"space-between"},justifyEnd:{justifyContent:"flex-end"},alignCenter:{alignItems:"center"},alignStart:{alignItems:"flex-start"},alignEnd:{alignItems:"flex-end"},wFull:{width:"100%"},hFull:{height:"100%"},transition:{transition:"all 0.2s ease"}},r={},i=/\s+/,o=/^([a-zA-Z]+?)(\d+)$/,u=/^bg-\[([^\]]+)\]$/,f=/^text-\[([^\]]+)\]$/,a=/^bg-(.+)$/,l=/^text-(.+)$/;function c(t){if(r[t]){var i=r[t];return"function"==typeof i?i(t):i}if(e[t])return e[t];var c=o.exec(t);if(c){var g=c[1],d=parseInt(c[2],10);if(n[g])return n[g](d)}if(n[t])return n[t]();var p=u.exec(t);if(p)return{background:p[1]};var s=f.exec(t);if(s)return{color:s[1]};var x=a.exec(t);if(x)return{background:x[1]};var m=l.exec(t);return m?{color:m[1]}:null}function g(t){if(!t||"string"!=typeof t)return{};for(var n=t.trim().split(i),e={},r=0;r<n.length;r++){var o=c(n[r]);if(o)for(var u=Object.keys(o),f=0;f<u.length;f++)e[u[f]]=o[u[f]]}return e}function d(t){t&&(t.utilCSS=g,t.u=g)}g.css=function(t){for(var n=g(t),e=[],r=Object.keys(n),i=0;i<r.length;i++){var o=r[i].replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});e.push(o+":"+n[r[i]])}return e.join(";")},g.cls=function(t){if(!t||"string"!=typeof t)return"";for(var n=t.trim().split(i),e=[],r=0;r<n.length;r++){var o=n[r];if(c(o)){var u="bw_"+o.replace(/([A-Z])/g,function(t){return"_"+t.toLowerCase()}).replace(/(\d+)/g,function(t){return"_"+t});e.push(u)}}return e.join(" ")},g.extend=function(t){if(t&&"object"==typeof t)for(var n=Object.keys(t),e=0;e<n.length;e++)r[n[e]]=t[n[e]]},"undefined"!=typeof window&&window.bw&&d(window.bw);var p={utilCSS:g,install:d};export{p as default,d as install,g as utilCSS};
|
|
3
3
|
//# sourceMappingURL=bitwrench-util-css.esm.min.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! bitwrench-util-css v2.1.
|
|
1
|
+
/*! bitwrench-util-css v2.1.1 | BSD-2-Clause | https://deftio.github.io/bitwrench/pages */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! bitwrench-util-css v2.1.
|
|
1
|
+
/*! bitwrench-util-css v2.1.1 | BSD-2-Clause | https://deftio.github.io/bitwrench/pages */
|
|
2
2
|
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).bwUtilCSS={})}(this,function(t){"use strict";function n(t){return.25*t+"rem"}var e={p:function(t){return{padding:n(t)}},pt:function(t){return{paddingTop:n(t)}},pb:function(t){return{paddingBottom:n(t)}},pl:function(t){return{paddingLeft:n(t)}},pr:function(t){return{paddingRight:n(t)}},px:function(t){return{paddingLeft:n(t),paddingRight:n(t)}},py:function(t){return{paddingTop:n(t),paddingBottom:n(t)}},m:function(t){return{margin:n(t)}},mt:function(t){return{marginTop:n(t)}},mb:function(t){return{marginBottom:n(t)}},ml:function(t){return{marginLeft:n(t)}},mr:function(t){return{marginRight:n(t)}},mx:function(t){return{marginLeft:n(t),marginRight:n(t)}},my:function(t){return{marginTop:n(t),marginBottom:n(t)}},gap:function(t){return{gap:n(t)}},w:function(t){return{width:n(t)}},h:function(t){return{height:n(t)}},rounded:function(t){return{borderRadius:n(t)}},textSm:function(){return{fontSize:"0.875rem"}},textBase:function(){return{fontSize:"1rem"}},textLg:function(){return{fontSize:"1.125rem"}},textXl:function(){return{fontSize:"1.25rem"}},text2xl:function(){return{fontSize:"1.5rem"}},text3xl:function(){return{fontSize:"1.875rem"}}},r={flex:{display:"flex"},flexCol:{display:"flex",flexDirection:"column"},flexRow:{display:"flex",flexDirection:"row"},flexWrap:{display:"flex",flexWrap:"wrap"},block:{display:"block"},inline:{display:"inline"},hidden:{display:"none"},bold:{fontWeight:"700"},semibold:{fontWeight:"600"},italic:{fontStyle:"italic"},textCenter:{textAlign:"center"},textRight:{textAlign:"right"},justifyCenter:{justifyContent:"center"},justifyBetween:{justifyContent:"space-between"},justifyEnd:{justifyContent:"flex-end"},alignCenter:{alignItems:"center"},alignStart:{alignItems:"flex-start"},alignEnd:{alignItems:"flex-end"},wFull:{width:"100%"},hFull:{height:"100%"},transition:{transition:"all 0.2s ease"}},i={},o=/\s+/,f=/^([a-zA-Z]+?)(\d+)$/,u=/^bg-\[([^\]]+)\]$/,l=/^text-\[([^\]]+)\]$/,a=/^bg-(.+)$/,c=/^text-(.+)$/;function d(t){if(i[t]){var n=i[t];return"function"==typeof n?n(t):n}if(r[t])return r[t];var o=f.exec(t);if(o){var d=o[1],g=parseInt(o[2],10);if(e[d])return e[d](g)}if(e[t])return e[t]();var p=u.exec(t);if(p)return{background:p[1]};var s=l.exec(t);if(s)return{color:s[1]};var x=a.exec(t);if(x)return{background:x[1]};var m=c.exec(t);return m?{color:m[1]}:null}function g(t){if(!t||"string"!=typeof t)return{};for(var n=t.trim().split(o),e={},r=0;r<n.length;r++){var i=d(n[r]);if(i)for(var f=Object.keys(i),u=0;u<f.length;u++)e[f[u]]=i[f[u]]}return e}function p(t){t&&(t.utilCSS=g,t.u=g)}g.css=function(t){for(var n=g(t),e=[],r=Object.keys(n),i=0;i<r.length;i++){var o=r[i].replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});e.push(o+":"+n[r[i]])}return e.join(";")},g.cls=function(t){if(!t||"string"!=typeof t)return"";for(var n=t.trim().split(o),e=[],r=0;r<n.length;r++){var i=n[r];if(d(i)){var f="bw_"+i.replace(/([A-Z])/g,function(t){return"_"+t.toLowerCase()}).replace(/(\d+)/g,function(t){return"_"+t});e.push(f)}}return e.join(" ")},g.extend=function(t){if(t&&"object"==typeof t)for(var n=Object.keys(t),e=0;e<n.length;e++)i[n[e]]=t[n[e]]},"undefined"!=typeof window&&window.bw&&p(window.bw);var s={utilCSS:g,install:p};t.default=s,t.install=p,t.utilCSS=g,Object.defineProperty(t,"__esModule",{value:!0})});
|
|
3
3
|
//# sourceMappingURL=bitwrench-util-css.umd.min.js.map
|
|
Binary file
|
package/dist/bitwrench.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! bitwrench v2.1.
|
|
1
|
+
/*! bitwrench v2.1.1 | BSD-2-Clause | https://deftio.github.io/bitwrench/pages */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
@@ -8,10 +8,10 @@ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentS
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
const VERSION_INFO = {
|
|
11
|
-
version: '2.1.
|
|
11
|
+
version: '2.1.1',
|
|
12
12
|
name: 'bitwrench',
|
|
13
13
|
license: 'BSD-2-Clause',
|
|
14
|
-
buildDate: '2026-07-
|
|
14
|
+
buildDate: '2026-07-15T12:53:25.643Z'
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
/**
|