@incognia/cosmik 0.6.3 → 0.7.1-beta.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/dist/Checkbox/index.d.ts +5 -0
- package/dist/Checkbox/index.d.ts.map +1 -0
- package/dist/cosmik.css +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs10.js.map +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs11.js.map +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs12.js.map +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs13.js.map +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs14.js.map +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs15.js.map +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs16.js.map +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs17.js.map +1 -1
- package/dist/index.cjs18.js +1 -9
- package/dist/index.cjs18.js.map +1 -1
- package/dist/index.cjs19.js +3 -13
- package/dist/index.cjs19.js.map +1 -1
- package/dist/index.cjs20.js +19 -1
- package/dist/index.cjs20.js.map +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs21.js.map +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs22.js.map +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs23.js.map +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs24.js.map +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs25.js.map +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs28.js.map +1 -1
- package/dist/index.cjs29.js +2 -0
- package/dist/index.cjs29.js.map +1 -0
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs7.js.map +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs8.js.map +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs9.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +32 -30
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +18 -261
- package/dist/index.es10.js.map +1 -1
- package/dist/index.es11.js +263 -6
- package/dist/index.es11.js.map +1 -1
- package/dist/index.es12.js +6 -6
- package/dist/index.es12.js.map +1 -1
- package/dist/index.es13.js +5 -13
- package/dist/index.es13.js.map +1 -1
- package/dist/index.es14.js +13 -3
- package/dist/index.es14.js.map +1 -1
- package/dist/index.es15.js +3 -104
- package/dist/index.es15.js.map +1 -1
- package/dist/index.es16.js +103 -32
- package/dist/index.es16.js.map +1 -1
- package/dist/index.es17.js +34 -2
- package/dist/index.es17.js.map +1 -1
- package/dist/index.es18.js +2 -30
- package/dist/index.es18.js.map +1 -1
- package/dist/index.es19.js +21 -590
- package/dist/index.es19.js.map +1 -1
- package/dist/index.es20.js +599 -2
- package/dist/index.es20.js.map +1 -1
- package/dist/index.es21.js +2 -151
- package/dist/index.es21.js.map +1 -1
- package/dist/index.es22.js +150 -15
- package/dist/index.es22.js.map +1 -1
- package/dist/index.es23.js +13 -339
- package/dist/index.es23.js.map +1 -1
- package/dist/index.es24.js +337 -40
- package/dist/index.es24.js.map +1 -1
- package/dist/index.es25.js +45 -2
- package/dist/index.es25.js.map +1 -1
- package/dist/index.es26.js +2 -2
- package/dist/index.es27.js +2 -2
- package/dist/index.es28.js +2 -4
- package/dist/index.es28.js.map +1 -1
- package/dist/index.es29.js +7 -0
- package/dist/index.es29.js.map +1 -0
- package/dist/index.es4.js +1 -1
- package/dist/index.es5.js +2 -2
- package/dist/index.es6.js +2 -2
- package/dist/index.es7.js +29 -86
- package/dist/index.es7.js.map +1 -1
- package/dist/index.es8.js +66 -110
- package/dist/index.es8.js.map +1 -1
- package/dist/index.es9.js +134 -20
- package/dist/index.es9.js.map +1 -1
- package/package.json +2 -1
package/dist/index.cjs24.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("./index.cjs22.js"),b=M.colorName,g={};for(const n of Object.keys(b))g[b[n]]=n;const l={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var y=l;for(const n of Object.keys(l)){if(!("channels"in l[n]))throw new Error("missing channels property: "+n);if(!("labels"in l[n]))throw new Error("missing channel labels property: "+n);if(l[n].labels.length!==l[n].channels)throw new Error("channel and label counts mismatch: "+n);const{channels:c,labels:s}=l[n];delete l[n].channels,delete l[n].labels,Object.defineProperty(l[n],"channels",{value:c}),Object.defineProperty(l[n],"labels",{value:s})}l.rgb.hsl=function(n){const c=n[0]/255,s=n[1]/255,t=n[2]/255,e=Math.min(c,s,t),o=Math.max(c,s,t),r=o-e;let a,i;o===e?a=0:c===o?a=(s-t)/r:s===o?a=2+(t-c)/r:t===o&&(a=4+(c-s)/r),a=Math.min(a*60,360),a<0&&(a+=360);const u=(e+o)/2;return o===e?i=0:u<=.5?i=r/(o+e):i=r/(2-o-e),[a,i*100,u*100]};l.rgb.hsv=function(n){let c,s,t,e,o;const r=n[0]/255,a=n[1]/255,i=n[2]/255,u=Math.max(r,a,i),f=u-Math.min(r,a,i),h=function(m){return(u-m)/6/f+1/2};return f===0?(e=0,o=0):(o=f/u,c=h(r),s=h(a),t=h(i),r===u?e=t-s:a===u?e=1/3+c-t:i===u&&(e=2/3+s-c),e<0?e+=1:e>1&&(e-=1)),[e*360,o*100,u*100]};l.rgb.hwb=function(n){const c=n[0],s=n[1];let t=n[2];const e=l.rgb.hsl(n)[0],o=1/255*Math.min(c,Math.min(s,t));return t=1-1/255*Math.max(c,Math.max(s,t)),[e,o*100,t*100]};l.rgb.cmyk=function(n){const c=n[0]/255,s=n[1]/255,t=n[2]/255,e=Math.min(1-c,1-s,1-t),o=(1-c-e)/(1-e)||0,r=(1-s-e)/(1-e)||0,a=(1-t-e)/(1-e)||0;return[o*100,r*100,a*100,e*100]};function d(n,c){return(n[0]-c[0])**2+(n[1]-c[1])**2+(n[2]-c[2])**2}l.rgb.keyword=function(n){const c=g[n];if(c)return c;let s=1/0,t;for(const e of Object.keys(b)){const o=b[e],r=d(n,o);r<s&&(s=r,t=e)}return t};l.keyword.rgb=function(n){return b[n]};l.rgb.xyz=function(n){let c=n[0]/255,s=n[1]/255,t=n[2]/255;c=c>.04045?((c+.055)/1.055)**2.4:c/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;const e=c*.4124+s*.3576+t*.1805,o=c*.2126+s*.7152+t*.0722,r=c*.0193+s*.1192+t*.9505;return[e*100,o*100,r*100]};l.rgb.lab=function(n){const c=l.rgb.xyz(n);let s=c[0],t=c[1],e=c[2];s/=95.047,t/=100,e/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,e=e>.008856?e**(1/3):7.787*e+16/116;const o=116*t-16,r=500*(s-t),a=200*(t-e);return[o,r,a]};l.hsl.rgb=function(n){const c=n[0]/360,s=n[1]/100,t=n[2]/100;let e,o,r;if(s===0)return r=t*255,[r,r,r];t<.5?e=t*(1+s):e=t+s-t*s;const a=2*t-e,i=[0,0,0];for(let u=0;u<3;u++)o=c+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?r=a+(e-a)*6*o:2*o<1?r=e:3*o<2?r=a+(e-a)*(2/3-o)*6:r=a,i[u]=r*255;return i};l.hsl.hsv=function(n){const c=n[0];let s=n[1]/100,t=n[2]/100,e=s;const o=Math.max(t,.01);t*=2,s*=t<=1?t:2-t,e*=o<=1?o:2-o;const r=(t+s)/2,a=t===0?2*e/(o+e):2*s/(t+s);return[c,a*100,r*100]};l.hsv.rgb=function(n){const c=n[0]/60,s=n[1]/100;let t=n[2]/100;const e=Math.floor(c)%6,o=c-Math.floor(c),r=255*t*(1-s),a=255*t*(1-s*o),i=255*t*(1-s*(1-o));switch(t*=255,e){case 0:return[t,i,r];case 1:return[a,t,r];case 2:return[r,t,i];case 3:return[r,a,t];case 4:return[i,r,t];case 5:return[t,r,a]}};l.hsv.hsl=function(n){const c=n[0],s=n[1]/100,t=n[2]/100,e=Math.max(t,.01);let o,r;r=(2-s)*t;const a=(2-s)*e;return o=s*e,o/=a<=1?a:2-a,o=o||0,r/=2,[c,o*100,r*100]};l.hwb.rgb=function(n){const c=n[0]/360;let s=n[1]/100,t=n[2]/100;const e=s+t;let o;e>1&&(s/=e,t/=e);const r=Math.floor(6*c),a=1-t;o=6*c-r,r&1&&(o=1-o);const i=s+o*(a-s);let u,f,h;switch(r){default:case 6:case 0:u=a,f=i,h=s;break;case 1:u=i,f=a,h=s;break;case 2:u=s,f=a,h=i;break;case 3:u=s,f=i,h=a;break;case 4:u=i,f=s,h=a;break;case 5:u=a,f=s,h=i;break}return[u*255,f*255,h*255]};l.cmyk.rgb=function(n){const c=n[0]/100,s=n[1]/100,t=n[2]/100,e=n[3]/100,o=1-Math.min(1,c*(1-e)+e),r=1-Math.min(1,s*(1-e)+e),a=1-Math.min(1,t*(1-e)+e);return[o*255,r*255,a*255]};l.xyz.rgb=function(n){const c=n[0]/100,s=n[1]/100,t=n[2]/100;let e,o,r;return e=c*3.2406+s*-1.5372+t*-.4986,o=c*-.9689+s*1.8758+t*.0415,r=c*.0557+s*-.204+t*1.057,e=e>.0031308?1.055*e**(1/2.4)-.055:e*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,e=Math.min(Math.max(0,e),1),o=Math.min(Math.max(0,o),1),r=Math.min(Math.max(0,r),1),[e*255,o*255,r*255]};l.xyz.lab=function(n){let c=n[0],s=n[1],t=n[2];c/=95.047,s/=100,t/=108.883,c=c>.008856?c**(1/3):7.787*c+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,t=t>.008856?t**(1/3):7.787*t+16/116;const e=116*s-16,o=500*(c-s),r=200*(s-t);return[e,o,r]};l.lab.xyz=function(n){const c=n[0],s=n[1],t=n[2];let e,o,r;o=(c+16)/116,e=s/500+o,r=o-t/200;const a=o**3,i=e**3,u=r**3;return o=a>.008856?a:(o-16/116)/7.787,e=i>.008856?i:(e-16/116)/7.787,r=u>.008856?u:(r-16/116)/7.787,e*=95.047,o*=100,r*=108.883,[e,o,r]};l.lab.lch=function(n){const c=n[0],s=n[1],t=n[2];let e;e=Math.atan2(t,s)*360/2/Math.PI,e<0&&(e+=360);const r=Math.sqrt(s*s+t*t);return[c,r,e]};l.lch.lab=function(n){const c=n[0],s=n[1],e=n[2]/360*2*Math.PI,o=s*Math.cos(e),r=s*Math.sin(e);return[c,o,r]};l.rgb.ansi16=function(n,c=null){const[s,t,e]=n;let o=c===null?l.rgb.hsv(n)[2]:c;if(o=Math.round(o/50),o===0)return 30;let r=30+(Math.round(e/255)<<2|Math.round(t/255)<<1|Math.round(s/255));return o===2&&(r+=60),r};l.hsv.ansi16=function(n){return l.rgb.ansi16(l.hsv.rgb(n),n[2])};l.rgb.ansi256=function(n){const c=n[0],s=n[1],t=n[2];return c===s&&s===t?c<8?16:c>248?231:Math.round((c-8)/247*24)+232:16+36*Math.round(c/255*5)+6*Math.round(s/255*5)+Math.round(t/255*5)};l.ansi16.rgb=function(n){let c=n%10;if(c===0||c===7)return n>50&&(c+=3.5),c=c/10.5*255,[c,c,c];const s=(~~(n>50)+1)*.5,t=(c&1)*s*255,e=(c>>1&1)*s*255,o=(c>>2&1)*s*255;return[t,e,o]};l.ansi256.rgb=function(n){if(n>=232){const o=(n-232)*10+8;return[o,o,o]}n-=16;let c;const s=Math.floor(n/36)/5*255,t=Math.floor((c=n%36)/6)/5*255,e=c%6/5*255;return[s,t,e]};l.rgb.hex=function(n){const s=(((Math.round(n[0])&255)<<16)+((Math.round(n[1])&255)<<8)+(Math.round(n[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s};l.hex.rgb=function(n){const c=n.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!c)return[0,0,0];let s=c[0];c[0].length===3&&(s=s.split("").map(a=>a+a).join(""));const t=parseInt(s,16),e=t>>16&255,o=t>>8&255,r=t&255;return[e,o,r]};l.rgb.hcg=function(n){const c=n[0]/255,s=n[1]/255,t=n[2]/255,e=Math.max(Math.max(c,s),t),o=Math.min(Math.min(c,s),t),r=e-o;let a,i;return r<1?a=o/(1-r):a=0,r<=0?i=0:e===c?i=(s-t)/r%6:e===s?i=2+(t-c)/r:i=4+(c-s)/r,i/=6,i%=1,[i*360,r*100,a*100]};l.hsl.hcg=function(n){const c=n[1]/100,s=n[2]/100,t=s<.5?2*c*s:2*c*(1-s);let e=0;return t<1&&(e=(s-.5*t)/(1-t)),[n[0],t*100,e*100]};l.hsv.hcg=function(n){const c=n[1]/100,s=n[2]/100,t=c*s;let e=0;return t<1&&(e=(s-t)/(1-t)),[n[0],t*100,e*100]};l.hcg.rgb=function(n){const c=n[0]/360,s=n[1]/100,t=n[2]/100;if(s===0)return[t*255,t*255,t*255];const e=[0,0,0],o=c%1*6,r=o%1,a=1-r;let i=0;switch(Math.floor(o)){case 0:e[0]=1,e[1]=r,e[2]=0;break;case 1:e[0]=a,e[1]=1,e[2]=0;break;case 2:e[0]=0,e[1]=1,e[2]=r;break;case 3:e[0]=0,e[1]=a,e[2]=1;break;case 4:e[0]=r,e[1]=0,e[2]=1;break;default:e[0]=1,e[1]=0,e[2]=a}return i=(1-s)*t,[(s*e[0]+i)*255,(s*e[1]+i)*255,(s*e[2]+i)*255]};l.hcg.hsv=function(n){const c=n[1]/100,s=n[2]/100,t=c+s*(1-c);let e=0;return t>0&&(e=c/t),[n[0],e*100,t*100]};l.hcg.hsl=function(n){const c=n[1]/100,t=n[2]/100*(1-c)+.5*c;let e=0;return t>0&&t<.5?e=c/(2*t):t>=.5&&t<1&&(e=c/(2*(1-t))),[n[0],e*100,t*100]};l.hcg.hwb=function(n){const c=n[1]/100,s=n[2]/100,t=c+s*(1-c);return[n[0],(t-c)*100,(1-t)*100]};l.hwb.hcg=function(n){const c=n[1]/100,t=1-n[2]/100,e=t-c;let o=0;return e<1&&(o=(t-e)/(1-e)),[n[0],e*100,o*100]};l.apple.rgb=function(n){return[n[0]/65535*255,n[1]/65535*255,n[2]/65535*255]};l.rgb.apple=function(n){return[n[0]/255*65535,n[1]/255*65535,n[2]/255*65535]};l.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]};l.gray.hsl=function(n){return[0,0,n[0]]};l.gray.hsv=l.gray.hsl;l.gray.hwb=function(n){return[0,100,n[0]]};l.gray.cmyk=function(n){return[0,0,0,n[0]]};l.gray.lab=function(n){return[n[0],0,0]};l.gray.hex=function(n){const c=Math.round(n[0]/100*255)&255,t=((c<<16)+(c<<8)+c).toString(16).toUpperCase();return"000000".substring(t.length)+t};l.rgb.gray=function(n){return[(n[0]+n[1]+n[2])/3/255*100]};exports.conversions=y;
|
|
2
2
|
//# sourceMappingURL=index.cjs24.js.map
|
package/dist/index.cjs24.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs24.js","sources":["../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js"],"sourcesContent":["const conversions = require('./conversions');\n\n/*\n\tThis function routes a model to all other models.\n\n\tall functions that are routed have a property `.conversion` attached\n\tto the returned synthetic function. This property is an array\n\tof strings, each with the steps in between the 'from' and 'to'\n\tcolor models (inclusive).\n\n\tconversions that are not possible simply are not included.\n*/\n\nfunction buildGraph() {\n\tconst graph = {};\n\t// https://jsperf.com/object-keys-vs-for-in-with-closure/3\n\tconst models = Object.keys(conversions);\n\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tgraph[models[i]] = {\n\t\t\t// http://jsperf.com/1-vs-infinity\n\t\t\t// micro-opt, but this is simple.\n\t\t\tdistance: -1,\n\t\t\tparent: null\n\t\t};\n\t}\n\n\treturn graph;\n}\n\n// https://en.wikipedia.org/wiki/Breadth-first_search\nfunction deriveBFS(fromModel) {\n\tconst graph = buildGraph();\n\tconst queue = [fromModel]; // Unshift -> queue -> pop\n\n\tgraph[fromModel].distance = 0;\n\n\twhile (queue.length) {\n\t\tconst current = queue.pop();\n\t\tconst adjacents = Object.keys(conversions[current]);\n\n\t\tfor (let len = adjacents.length, i = 0; i < len; i++) {\n\t\t\tconst adjacent = adjacents[i];\n\t\t\tconst node = graph[adjacent];\n\n\t\t\tif (node.distance === -1) {\n\t\t\t\tnode.distance = graph[current].distance + 1;\n\t\t\t\tnode.parent = current;\n\t\t\t\tqueue.unshift(adjacent);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn graph;\n}\n\nfunction link(from, to) {\n\treturn function (args) {\n\t\treturn to(from(args));\n\t};\n}\n\nfunction wrapConversion(toModel, graph) {\n\tconst path = [graph[toModel].parent, toModel];\n\tlet fn = conversions[graph[toModel].parent][toModel];\n\n\tlet cur = graph[toModel].parent;\n\twhile (graph[cur].parent) {\n\t\tpath.unshift(graph[cur].parent);\n\t\tfn = link(conversions[graph[cur].parent][cur], fn);\n\t\tcur = graph[cur].parent;\n\t}\n\n\tfn.conversion = path;\n\treturn fn;\n}\n\nmodule.exports = function (fromModel) {\n\tconst graph = deriveBFS(fromModel);\n\tconst conversion = {};\n\n\tconst models = Object.keys(graph);\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tconst toModel = models[i];\n\t\tconst node = graph[toModel];\n\n\t\tif (node.parent === null) {\n\t\t\t// No possible conversion, or this node is the source model.\n\t\t\tcontinue;\n\t\t}\n\n\t\tconversion[toModel] = wrapConversion(toModel, graph);\n\t}\n\n\treturn conversion;\n};\n\n"],"names":["conversions","require$$0","buildGraph","graph","models","len","i","deriveBFS","fromModel","queue","current","adjacents","adjacent","node","link","from","to","args","wrapConversion","toModel","path","fn","cur","route","conversion"],"mappings":"oHAAMA,EAAcC,EAAAA,YAapB,SAASC,GAAa,CACrB,MAAMC,EAAQ,CAAA,EAERC,EAAS,OAAO,KAAKJ,CAAW,EAEtC,QAASK,EAAMD,EAAO,OAAQE,EAAI,EAAGA,EAAID,EAAKC,IAC7CH,EAAMC,EAAOE,CAAC,CAAC,EAAI,CAGlB,SAAU,GACV,OAAQ,IACX,EAGC,OAAOH,CACR,CAGA,SAASI,EAAUC,EAAW,CAC7B,MAAML,EAAQD,IACRO,EAAQ,CAACD,CAAS,EAIxB,IAFAL,EAAMK,CAAS,EAAE,SAAW,EAErBC,EAAM,QAAQ,CACpB,MAAMC,EAAUD,EAAM,MAChBE,EAAY,OAAO,KAAKX,EAAYU,CAAO,CAAC,EAElD,QAASL,EAAMM,EAAU,OAAQL,EAAI,EAAGA,EAAID,EAAKC,IAAK,CACrD,MAAMM,EAAWD,EAAUL,CAAC,EACtBO,EAAOV,EAAMS,CAAQ,EAEvBC,EAAK,WAAa,KACrBA,EAAK,SAAWV,EAAMO,CAAO,EAAE,SAAW,EAC1CG,EAAK,OAASH,EACdD,EAAM,QAAQG,CAAQ,EAEvB,CACD,CAED,OAAOT,CACR,CAEA,SAASW,EAAKC,EAAMC,EAAI,CACvB,OAAO,SAAUC,EAAM,CACtB,OAAOD,EAAGD,EAAKE,CAAI,CAAC,CACtB,CACA,CAEA,SAASC,EAAeC,EAAShB,EAAO,CACvC,MAAMiB,EAAO,CAACjB,EAAMgB,CAAO,EAAE,OAAQA,CAAO,EAC5C,IAAIE,EAAKrB,EAAYG,EAAMgB,CAAO,EAAE,MAAM,EAAEA,CAAO,EAE/CG,EAAMnB,EAAMgB,CAAO,EAAE,OACzB,KAAOhB,EAAMmB,CAAG,EAAE,QACjBF,EAAK,QAAQjB,EAAMmB,CAAG,EAAE,MAAM,EAC9BD,EAAKP,EAAKd,EAAYG,EAAMmB,CAAG,EAAE,MAAM,EAAEA,CAAG,EAAGD,CAAE,EACjDC,EAAMnB,EAAMmB,CAAG,EAAE,OAGlB,OAAAD,EAAG,WAAaD,EACTC,CACR,KAEAE,EAAiB,SAAUf,EAAW,CACrC,MAAML,EAAQI,EAAUC,CAAS,EAC3BgB,EAAa,CAAA,EAEbpB,EAAS,OAAO,KAAKD,CAAK,EAChC,QAASE,EAAMD,EAAO,OAAQE,EAAI,EAAGA,EAAID,EAAKC,IAAK,CAClD,MAAMa,EAAUf,EAAOE,CAAC,EACXH,EAAMgB,CAAO,EAEjB,SAAW,OAKpBK,EAAWL,CAAO,EAAID,EAAeC,EAAShB,CAAK,EACnD,CAED,OAAOqB,CACR","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs24.js","sources":["../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js"],"sourcesContent":["/* MIT license */\n/* eslint-disable no-mixed-operators */\nconst cssKeywords = require('color-name');\n\n// NOTE: conversions should only return primitive values (i.e. arrays, or\n// values that give correct `typeof` results).\n// do not use box values types (i.e. Number(), String(), etc.)\n\nconst reverseKeywords = {};\nfor (const key of Object.keys(cssKeywords)) {\n\treverseKeywords[cssKeywords[key]] = key;\n}\n\nconst convert = {\n\trgb: {channels: 3, labels: 'rgb'},\n\thsl: {channels: 3, labels: 'hsl'},\n\thsv: {channels: 3, labels: 'hsv'},\n\thwb: {channels: 3, labels: 'hwb'},\n\tcmyk: {channels: 4, labels: 'cmyk'},\n\txyz: {channels: 3, labels: 'xyz'},\n\tlab: {channels: 3, labels: 'lab'},\n\tlch: {channels: 3, labels: 'lch'},\n\thex: {channels: 1, labels: ['hex']},\n\tkeyword: {channels: 1, labels: ['keyword']},\n\tansi16: {channels: 1, labels: ['ansi16']},\n\tansi256: {channels: 1, labels: ['ansi256']},\n\thcg: {channels: 3, labels: ['h', 'c', 'g']},\n\tapple: {channels: 3, labels: ['r16', 'g16', 'b16']},\n\tgray: {channels: 1, labels: ['gray']}\n};\n\nmodule.exports = convert;\n\n// Hide .channels and .labels properties\nfor (const model of Object.keys(convert)) {\n\tif (!('channels' in convert[model])) {\n\t\tthrow new Error('missing channels property: ' + model);\n\t}\n\n\tif (!('labels' in convert[model])) {\n\t\tthrow new Error('missing channel labels property: ' + model);\n\t}\n\n\tif (convert[model].labels.length !== convert[model].channels) {\n\t\tthrow new Error('channel and label counts mismatch: ' + model);\n\t}\n\n\tconst {channels, labels} = convert[model];\n\tdelete convert[model].channels;\n\tdelete convert[model].labels;\n\tObject.defineProperty(convert[model], 'channels', {value: channels});\n\tObject.defineProperty(convert[model], 'labels', {value: labels});\n}\n\nconvert.rgb.hsl = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst min = Math.min(r, g, b);\n\tconst max = Math.max(r, g, b);\n\tconst delta = max - min;\n\tlet h;\n\tlet s;\n\n\tif (max === min) {\n\t\th = 0;\n\t} else if (r === max) {\n\t\th = (g - b) / delta;\n\t} else if (g === max) {\n\t\th = 2 + (b - r) / delta;\n\t} else if (b === max) {\n\t\th = 4 + (r - g) / delta;\n\t}\n\n\th = Math.min(h * 60, 360);\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst l = (min + max) / 2;\n\n\tif (max === min) {\n\t\ts = 0;\n\t} else if (l <= 0.5) {\n\t\ts = delta / (max + min);\n\t} else {\n\t\ts = delta / (2 - max - min);\n\t}\n\n\treturn [h, s * 100, l * 100];\n};\n\nconvert.rgb.hsv = function (rgb) {\n\tlet rdif;\n\tlet gdif;\n\tlet bdif;\n\tlet h;\n\tlet s;\n\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst v = Math.max(r, g, b);\n\tconst diff = v - Math.min(r, g, b);\n\tconst diffc = function (c) {\n\t\treturn (v - c) / 6 / diff + 1 / 2;\n\t};\n\n\tif (diff === 0) {\n\t\th = 0;\n\t\ts = 0;\n\t} else {\n\t\ts = diff / v;\n\t\trdif = diffc(r);\n\t\tgdif = diffc(g);\n\t\tbdif = diffc(b);\n\n\t\tif (r === v) {\n\t\t\th = bdif - gdif;\n\t\t} else if (g === v) {\n\t\t\th = (1 / 3) + rdif - bdif;\n\t\t} else if (b === v) {\n\t\t\th = (2 / 3) + gdif - rdif;\n\t\t}\n\n\t\tif (h < 0) {\n\t\t\th += 1;\n\t\t} else if (h > 1) {\n\t\t\th -= 1;\n\t\t}\n\t}\n\n\treturn [\n\t\th * 360,\n\t\ts * 100,\n\t\tv * 100\n\t];\n};\n\nconvert.rgb.hwb = function (rgb) {\n\tconst r = rgb[0];\n\tconst g = rgb[1];\n\tlet b = rgb[2];\n\tconst h = convert.rgb.hsl(rgb)[0];\n\tconst w = 1 / 255 * Math.min(r, Math.min(g, b));\n\n\tb = 1 - 1 / 255 * Math.max(r, Math.max(g, b));\n\n\treturn [h, w * 100, b * 100];\n};\n\nconvert.rgb.cmyk = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\n\tconst k = Math.min(1 - r, 1 - g, 1 - b);\n\tconst c = (1 - r - k) / (1 - k) || 0;\n\tconst m = (1 - g - k) / (1 - k) || 0;\n\tconst y = (1 - b - k) / (1 - k) || 0;\n\n\treturn [c * 100, m * 100, y * 100, k * 100];\n};\n\nfunction comparativeDistance(x, y) {\n\t/*\n\t\tSee https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance\n\t*/\n\treturn (\n\t\t((x[0] - y[0]) ** 2) +\n\t\t((x[1] - y[1]) ** 2) +\n\t\t((x[2] - y[2]) ** 2)\n\t);\n}\n\nconvert.rgb.keyword = function (rgb) {\n\tconst reversed = reverseKeywords[rgb];\n\tif (reversed) {\n\t\treturn reversed;\n\t}\n\n\tlet currentClosestDistance = Infinity;\n\tlet currentClosestKeyword;\n\n\tfor (const keyword of Object.keys(cssKeywords)) {\n\t\tconst value = cssKeywords[keyword];\n\n\t\t// Compute comparative distance\n\t\tconst distance = comparativeDistance(rgb, value);\n\n\t\t// Check if its less, if so set as closest\n\t\tif (distance < currentClosestDistance) {\n\t\t\tcurrentClosestDistance = distance;\n\t\t\tcurrentClosestKeyword = keyword;\n\t\t}\n\t}\n\n\treturn currentClosestKeyword;\n};\n\nconvert.keyword.rgb = function (keyword) {\n\treturn cssKeywords[keyword];\n};\n\nconvert.rgb.xyz = function (rgb) {\n\tlet r = rgb[0] / 255;\n\tlet g = rgb[1] / 255;\n\tlet b = rgb[2] / 255;\n\n\t// Assume sRGB\n\tr = r > 0.04045 ? (((r + 0.055) / 1.055) ** 2.4) : (r / 12.92);\n\tg = g > 0.04045 ? (((g + 0.055) / 1.055) ** 2.4) : (g / 12.92);\n\tb = b > 0.04045 ? (((b + 0.055) / 1.055) ** 2.4) : (b / 12.92);\n\n\tconst x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);\n\tconst y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);\n\tconst z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);\n\n\treturn [x * 100, y * 100, z * 100];\n};\n\nconvert.rgb.lab = function (rgb) {\n\tconst xyz = convert.rgb.xyz(rgb);\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.hsl.rgb = function (hsl) {\n\tconst h = hsl[0] / 360;\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\tlet t2;\n\tlet t3;\n\tlet val;\n\n\tif (s === 0) {\n\t\tval = l * 255;\n\t\treturn [val, val, val];\n\t}\n\n\tif (l < 0.5) {\n\t\tt2 = l * (1 + s);\n\t} else {\n\t\tt2 = l + s - l * s;\n\t}\n\n\tconst t1 = 2 * l - t2;\n\n\tconst rgb = [0, 0, 0];\n\tfor (let i = 0; i < 3; i++) {\n\t\tt3 = h + 1 / 3 * -(i - 1);\n\t\tif (t3 < 0) {\n\t\t\tt3++;\n\t\t}\n\n\t\tif (t3 > 1) {\n\t\t\tt3--;\n\t\t}\n\n\t\tif (6 * t3 < 1) {\n\t\t\tval = t1 + (t2 - t1) * 6 * t3;\n\t\t} else if (2 * t3 < 1) {\n\t\t\tval = t2;\n\t\t} else if (3 * t3 < 2) {\n\t\t\tval = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n\t\t} else {\n\t\t\tval = t1;\n\t\t}\n\n\t\trgb[i] = val * 255;\n\t}\n\n\treturn rgb;\n};\n\nconvert.hsl.hsv = function (hsl) {\n\tconst h = hsl[0];\n\tlet s = hsl[1] / 100;\n\tlet l = hsl[2] / 100;\n\tlet smin = s;\n\tconst lmin = Math.max(l, 0.01);\n\n\tl *= 2;\n\ts *= (l <= 1) ? l : 2 - l;\n\tsmin *= lmin <= 1 ? lmin : 2 - lmin;\n\tconst v = (l + s) / 2;\n\tconst sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);\n\n\treturn [h, sv * 100, v * 100];\n};\n\nconvert.hsv.rgb = function (hsv) {\n\tconst h = hsv[0] / 60;\n\tconst s = hsv[1] / 100;\n\tlet v = hsv[2] / 100;\n\tconst hi = Math.floor(h) % 6;\n\n\tconst f = h - Math.floor(h);\n\tconst p = 255 * v * (1 - s);\n\tconst q = 255 * v * (1 - (s * f));\n\tconst t = 255 * v * (1 - (s * (1 - f)));\n\tv *= 255;\n\n\tswitch (hi) {\n\t\tcase 0:\n\t\t\treturn [v, t, p];\n\t\tcase 1:\n\t\t\treturn [q, v, p];\n\t\tcase 2:\n\t\t\treturn [p, v, t];\n\t\tcase 3:\n\t\t\treturn [p, q, v];\n\t\tcase 4:\n\t\t\treturn [t, p, v];\n\t\tcase 5:\n\t\t\treturn [v, p, q];\n\t}\n};\n\nconvert.hsv.hsl = function (hsv) {\n\tconst h = hsv[0];\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\tconst vmin = Math.max(v, 0.01);\n\tlet sl;\n\tlet l;\n\n\tl = (2 - s) * v;\n\tconst lmin = (2 - s) * vmin;\n\tsl = s * vmin;\n\tsl /= (lmin <= 1) ? lmin : 2 - lmin;\n\tsl = sl || 0;\n\tl /= 2;\n\n\treturn [h, sl * 100, l * 100];\n};\n\n// http://dev.w3.org/csswg/css-color/#hwb-to-rgb\nconvert.hwb.rgb = function (hwb) {\n\tconst h = hwb[0] / 360;\n\tlet wh = hwb[1] / 100;\n\tlet bl = hwb[2] / 100;\n\tconst ratio = wh + bl;\n\tlet f;\n\n\t// Wh + bl cant be > 1\n\tif (ratio > 1) {\n\t\twh /= ratio;\n\t\tbl /= ratio;\n\t}\n\n\tconst i = Math.floor(6 * h);\n\tconst v = 1 - bl;\n\tf = 6 * h - i;\n\n\tif ((i & 0x01) !== 0) {\n\t\tf = 1 - f;\n\t}\n\n\tconst n = wh + f * (v - wh); // Linear interpolation\n\n\tlet r;\n\tlet g;\n\tlet b;\n\t/* eslint-disable max-statements-per-line,no-multi-spaces */\n\tswitch (i) {\n\t\tdefault:\n\t\tcase 6:\n\t\tcase 0: r = v; g = n; b = wh; break;\n\t\tcase 1: r = n; g = v; b = wh; break;\n\t\tcase 2: r = wh; g = v; b = n; break;\n\t\tcase 3: r = wh; g = n; b = v; break;\n\t\tcase 4: r = n; g = wh; b = v; break;\n\t\tcase 5: r = v; g = wh; b = n; break;\n\t}\n\t/* eslint-enable max-statements-per-line,no-multi-spaces */\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.cmyk.rgb = function (cmyk) {\n\tconst c = cmyk[0] / 100;\n\tconst m = cmyk[1] / 100;\n\tconst y = cmyk[2] / 100;\n\tconst k = cmyk[3] / 100;\n\n\tconst r = 1 - Math.min(1, c * (1 - k) + k);\n\tconst g = 1 - Math.min(1, m * (1 - k) + k);\n\tconst b = 1 - Math.min(1, y * (1 - k) + k);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.rgb = function (xyz) {\n\tconst x = xyz[0] / 100;\n\tconst y = xyz[1] / 100;\n\tconst z = xyz[2] / 100;\n\tlet r;\n\tlet g;\n\tlet b;\n\n\tr = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);\n\tg = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);\n\tb = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);\n\n\t// Assume sRGB\n\tr = r > 0.0031308\n\t\t? ((1.055 * (r ** (1.0 / 2.4))) - 0.055)\n\t\t: r * 12.92;\n\n\tg = g > 0.0031308\n\t\t? ((1.055 * (g ** (1.0 / 2.4))) - 0.055)\n\t\t: g * 12.92;\n\n\tb = b > 0.0031308\n\t\t? ((1.055 * (b ** (1.0 / 2.4))) - 0.055)\n\t\t: b * 12.92;\n\n\tr = Math.min(Math.max(0, r), 1);\n\tg = Math.min(Math.max(0, g), 1);\n\tb = Math.min(Math.max(0, b), 1);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.lab = function (xyz) {\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.lab.xyz = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet x;\n\tlet y;\n\tlet z;\n\n\ty = (l + 16) / 116;\n\tx = a / 500 + y;\n\tz = y - b / 200;\n\n\tconst y2 = y ** 3;\n\tconst x2 = x ** 3;\n\tconst z2 = z ** 3;\n\ty = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;\n\tx = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;\n\tz = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;\n\n\tx *= 95.047;\n\ty *= 100;\n\tz *= 108.883;\n\n\treturn [x, y, z];\n};\n\nconvert.lab.lch = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet h;\n\n\tconst hr = Math.atan2(b, a);\n\th = hr * 360 / 2 / Math.PI;\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst c = Math.sqrt(a * a + b * b);\n\n\treturn [l, c, h];\n};\n\nconvert.lch.lab = function (lch) {\n\tconst l = lch[0];\n\tconst c = lch[1];\n\tconst h = lch[2];\n\n\tconst hr = h / 360 * 2 * Math.PI;\n\tconst a = c * Math.cos(hr);\n\tconst b = c * Math.sin(hr);\n\n\treturn [l, a, b];\n};\n\nconvert.rgb.ansi16 = function (args, saturation = null) {\n\tconst [r, g, b] = args;\n\tlet value = saturation === null ? convert.rgb.hsv(args)[2] : saturation; // Hsv -> ansi16 optimization\n\n\tvalue = Math.round(value / 50);\n\n\tif (value === 0) {\n\t\treturn 30;\n\t}\n\n\tlet ansi = 30\n\t\t+ ((Math.round(b / 255) << 2)\n\t\t| (Math.round(g / 255) << 1)\n\t\t| Math.round(r / 255));\n\n\tif (value === 2) {\n\t\tansi += 60;\n\t}\n\n\treturn ansi;\n};\n\nconvert.hsv.ansi16 = function (args) {\n\t// Optimization here; we already know the value and don't need to get\n\t// it converted for us.\n\treturn convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);\n};\n\nconvert.rgb.ansi256 = function (args) {\n\tconst r = args[0];\n\tconst g = args[1];\n\tconst b = args[2];\n\n\t// We use the extended greyscale palette here, with the exception of\n\t// black and white. normal palette only has 4 greyscale shades.\n\tif (r === g && g === b) {\n\t\tif (r < 8) {\n\t\t\treturn 16;\n\t\t}\n\n\t\tif (r > 248) {\n\t\t\treturn 231;\n\t\t}\n\n\t\treturn Math.round(((r - 8) / 247) * 24) + 232;\n\t}\n\n\tconst ansi = 16\n\t\t+ (36 * Math.round(r / 255 * 5))\n\t\t+ (6 * Math.round(g / 255 * 5))\n\t\t+ Math.round(b / 255 * 5);\n\n\treturn ansi;\n};\n\nconvert.ansi16.rgb = function (args) {\n\tlet color = args % 10;\n\n\t// Handle greyscale\n\tif (color === 0 || color === 7) {\n\t\tif (args > 50) {\n\t\t\tcolor += 3.5;\n\t\t}\n\n\t\tcolor = color / 10.5 * 255;\n\n\t\treturn [color, color, color];\n\t}\n\n\tconst mult = (~~(args > 50) + 1) * 0.5;\n\tconst r = ((color & 1) * mult) * 255;\n\tconst g = (((color >> 1) & 1) * mult) * 255;\n\tconst b = (((color >> 2) & 1) * mult) * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.ansi256.rgb = function (args) {\n\t// Handle greyscale\n\tif (args >= 232) {\n\t\tconst c = (args - 232) * 10 + 8;\n\t\treturn [c, c, c];\n\t}\n\n\targs -= 16;\n\n\tlet rem;\n\tconst r = Math.floor(args / 36) / 5 * 255;\n\tconst g = Math.floor((rem = args % 36) / 6) / 5 * 255;\n\tconst b = (rem % 6) / 5 * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hex = function (args) {\n\tconst integer = ((Math.round(args[0]) & 0xFF) << 16)\n\t\t+ ((Math.round(args[1]) & 0xFF) << 8)\n\t\t+ (Math.round(args[2]) & 0xFF);\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.hex.rgb = function (args) {\n\tconst match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);\n\tif (!match) {\n\t\treturn [0, 0, 0];\n\t}\n\n\tlet colorString = match[0];\n\n\tif (match[0].length === 3) {\n\t\tcolorString = colorString.split('').map(char => {\n\t\t\treturn char + char;\n\t\t}).join('');\n\t}\n\n\tconst integer = parseInt(colorString, 16);\n\tconst r = (integer >> 16) & 0xFF;\n\tconst g = (integer >> 8) & 0xFF;\n\tconst b = integer & 0xFF;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hcg = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst max = Math.max(Math.max(r, g), b);\n\tconst min = Math.min(Math.min(r, g), b);\n\tconst chroma = (max - min);\n\tlet grayscale;\n\tlet hue;\n\n\tif (chroma < 1) {\n\t\tgrayscale = min / (1 - chroma);\n\t} else {\n\t\tgrayscale = 0;\n\t}\n\n\tif (chroma <= 0) {\n\t\thue = 0;\n\t} else\n\tif (max === r) {\n\t\thue = ((g - b) / chroma) % 6;\n\t} else\n\tif (max === g) {\n\t\thue = 2 + (b - r) / chroma;\n\t} else {\n\t\thue = 4 + (r - g) / chroma;\n\t}\n\n\thue /= 6;\n\thue %= 1;\n\n\treturn [hue * 360, chroma * 100, grayscale * 100];\n};\n\nconvert.hsl.hcg = function (hsl) {\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\n\tconst c = l < 0.5 ? (2.0 * s * l) : (2.0 * s * (1.0 - l));\n\n\tlet f = 0;\n\tif (c < 1.0) {\n\t\tf = (l - 0.5 * c) / (1.0 - c);\n\t}\n\n\treturn [hsl[0], c * 100, f * 100];\n};\n\nconvert.hsv.hcg = function (hsv) {\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\n\tconst c = s * v;\n\tlet f = 0;\n\n\tif (c < 1.0) {\n\t\tf = (v - c) / (1 - c);\n\t}\n\n\treturn [hsv[0], c * 100, f * 100];\n};\n\nconvert.hcg.rgb = function (hcg) {\n\tconst h = hcg[0] / 360;\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tif (c === 0.0) {\n\t\treturn [g * 255, g * 255, g * 255];\n\t}\n\n\tconst pure = [0, 0, 0];\n\tconst hi = (h % 1) * 6;\n\tconst v = hi % 1;\n\tconst w = 1 - v;\n\tlet mg = 0;\n\n\t/* eslint-disable max-statements-per-line */\n\tswitch (Math.floor(hi)) {\n\t\tcase 0:\n\t\t\tpure[0] = 1; pure[1] = v; pure[2] = 0; break;\n\t\tcase 1:\n\t\t\tpure[0] = w; pure[1] = 1; pure[2] = 0; break;\n\t\tcase 2:\n\t\t\tpure[0] = 0; pure[1] = 1; pure[2] = v; break;\n\t\tcase 3:\n\t\t\tpure[0] = 0; pure[1] = w; pure[2] = 1; break;\n\t\tcase 4:\n\t\t\tpure[0] = v; pure[1] = 0; pure[2] = 1; break;\n\t\tdefault:\n\t\t\tpure[0] = 1; pure[1] = 0; pure[2] = w;\n\t}\n\t/* eslint-enable max-statements-per-line */\n\n\tmg = (1.0 - c) * g;\n\n\treturn [\n\t\t(c * pure[0] + mg) * 255,\n\t\t(c * pure[1] + mg) * 255,\n\t\t(c * pure[2] + mg) * 255\n\t];\n};\n\nconvert.hcg.hsv = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst v = c + g * (1.0 - c);\n\tlet f = 0;\n\n\tif (v > 0.0) {\n\t\tf = c / v;\n\t}\n\n\treturn [hcg[0], f * 100, v * 100];\n};\n\nconvert.hcg.hsl = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst l = g * (1.0 - c) + 0.5 * c;\n\tlet s = 0;\n\n\tif (l > 0.0 && l < 0.5) {\n\t\ts = c / (2 * l);\n\t} else\n\tif (l >= 0.5 && l < 1.0) {\n\t\ts = c / (2 * (1 - l));\n\t}\n\n\treturn [hcg[0], s * 100, l * 100];\n};\n\nconvert.hcg.hwb = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\tconst v = c + g * (1.0 - c);\n\treturn [hcg[0], (v - c) * 100, (1 - v) * 100];\n};\n\nconvert.hwb.hcg = function (hwb) {\n\tconst w = hwb[1] / 100;\n\tconst b = hwb[2] / 100;\n\tconst v = 1 - b;\n\tconst c = v - w;\n\tlet g = 0;\n\n\tif (c < 1) {\n\t\tg = (v - c) / (1 - c);\n\t}\n\n\treturn [hwb[0], c * 100, g * 100];\n};\n\nconvert.apple.rgb = function (apple) {\n\treturn [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];\n};\n\nconvert.rgb.apple = function (rgb) {\n\treturn [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];\n};\n\nconvert.gray.rgb = function (args) {\n\treturn [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];\n};\n\nconvert.gray.hsl = function (args) {\n\treturn [0, 0, args[0]];\n};\n\nconvert.gray.hsv = convert.gray.hsl;\n\nconvert.gray.hwb = function (gray) {\n\treturn [0, 100, gray[0]];\n};\n\nconvert.gray.cmyk = function (gray) {\n\treturn [0, 0, 0, gray[0]];\n};\n\nconvert.gray.lab = function (gray) {\n\treturn [gray[0], 0, 0];\n};\n\nconvert.gray.hex = function (gray) {\n\tconst val = Math.round(gray[0] / 100 * 255) & 0xFF;\n\tconst integer = (val << 16) + (val << 8) + val;\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.rgb.gray = function (rgb) {\n\tconst val = (rgb[0] + rgb[1] + rgb[2]) / 3;\n\treturn [val / 255 * 100];\n};\n"],"names":["cssKeywords","require$$0","reverseKeywords","key","convert","conversions","model","channels","labels","rgb","r","g","b","min","max","delta","h","s","l","rdif","gdif","bdif","v","diff","diffc","c","w","k","m","y","comparativeDistance","x","reversed","currentClosestDistance","currentClosestKeyword","keyword","value","distance","z","xyz","a","hsl","t2","t3","val","t1","i","smin","lmin","sv","hsv","hi","f","p","q","t","vmin","sl","hwb","wh","bl","ratio","n","cmyk","lab","y2","x2","z2","lch","hr","args","saturation","ansi","color","mult","rem","string","match","colorString","char","integer","chroma","grayscale","hue","hcg","pure","mg","apple","gray"],"mappings":"oHAEMA,EAAcC,EAAAA,UAMdC,EAAkB,CAAA,EACxB,UAAWC,KAAO,OAAO,KAAKH,CAAW,EACxCE,EAAgBF,EAAYG,CAAG,CAAC,EAAIA,EAGrC,MAAMC,EAAU,CACf,IAAK,CAAC,SAAU,EAAG,OAAQ,KAAK,EAChC,IAAK,CAAC,SAAU,EAAG,OAAQ,KAAK,EAChC,IAAK,CAAC,SAAU,EAAG,OAAQ,KAAK,EAChC,IAAK,CAAC,SAAU,EAAG,OAAQ,KAAK,EAChC,KAAM,CAAC,SAAU,EAAG,OAAQ,MAAM,EAClC,IAAK,CAAC,SAAU,EAAG,OAAQ,KAAK,EAChC,IAAK,CAAC,SAAU,EAAG,OAAQ,KAAK,EAChC,IAAK,CAAC,SAAU,EAAG,OAAQ,KAAK,EAChC,IAAK,CAAC,SAAU,EAAG,OAAQ,CAAC,KAAK,CAAC,EAClC,QAAS,CAAC,SAAU,EAAG,OAAQ,CAAC,SAAS,CAAC,EAC1C,OAAQ,CAAC,SAAU,EAAG,OAAQ,CAAC,QAAQ,CAAC,EACxC,QAAS,CAAC,SAAU,EAAG,OAAQ,CAAC,SAAS,CAAC,EAC1C,IAAK,CAAC,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AQA,EAAI,CAAC,EAAI,IAAO,MAAQA,EAAI,CAAC,EAAI,IAAO,KAAK,CAC/E,EAEAL,EAAQ,KAAK,IAAM,SAAUkE,EAAM,CAClC,MAAO,CAACA,EAAK,CAAC,EAAI,IAAM,IAAKA,EAAK,CAAC,EAAI,IAAM,IAAKA,EAAK,CAAC,EAAI,IAAM,GAAG,CACtE,EAEAlE,EAAQ,KAAK,IAAM,SAAUkE,EAAM,CAClC,MAAO,CAAC,EAAG,EAAGA,EAAK,CAAC,CAAC,CACtB,EAEAlE,EAAQ,KAAK,IAAMA,EAAQ,KAAK,IAEhCA,EAAQ,KAAK,IAAM,SAAUoF,EAAM,CAClC,MAAO,CAAC,EAAG,IAAKA,EAAK,CAAC,CAAC,CACxB,EAEApF,EAAQ,KAAK,KAAO,SAAUoF,EAAM,CACnC,MAAO,CAAC,EAAG,EAAG,EAAGA,EAAK,CAAC,CAAC,CACzB,EAEApF,EAAQ,KAAK,IAAM,SAAUoF,EAAM,CAClC,MAAO,CAACA,EAAK,CAAC,EAAG,EAAG,CAAC,CACtB,EAEApF,EAAQ,KAAK,IAAM,SAAUoF,EAAM,CAClC,MAAM5C,EAAM,KAAK,MAAM4C,EAAK,CAAC,EAAI,IAAM,GAAG,EAAI,IAGxCZ,IAFWhC,GAAO,KAAOA,GAAO,GAAKA,GAEpB,SAAS,EAAE,EAAE,YAAW,EAC/C,MAAO,SAAS,UAAUgC,EAAO,MAAM,EAAIA,CAC5C,EAEAxE,EAAQ,IAAI,KAAO,SAAUK,EAAK,CAEjC,MAAO,EADMA,EAAI,CAAC,EAAIA,EAAI,CAAC,EAAIA,EAAI,CAAC,GAAK,EAC3B,IAAM,GAAG,CACxB","x_google_ignoreList":[0]}
|
package/dist/index.cjs25.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index.cjs24.js"),i=l.conversions;function f(){const e={},n=Object.keys(i);for(let c=n.length,t=0;t<c;t++)e[n[t]]={distance:-1,parent:null};return e}function p(e){const n=f(),c=[e];for(n[e].distance=0;c.length;){const t=c.pop(),o=Object.keys(i[t]);for(let s=o.length,r=0;r<s;r++){const u=o[r],a=n[u];a.distance===-1&&(a.distance=n[t].distance+1,a.parent=t,c.unshift(u))}}return n}function d(e,n){return function(c){return n(e(c))}}function v(e,n){const c=[n[e].parent,e];let t=i[n[e].parent][e],o=n[e].parent;for(;n[o].parent;)c.unshift(n[o].parent),t=d(i[n[o].parent][o],t),o=n[o].parent;return t.conversion=c,t}var h=function(e){const n=p(e),c={},t=Object.keys(n);for(let o=t.length,s=0;s<o;s++){const r=t[s];n[r].parent!==null&&(c[r]=v(r,n))}return c};exports.route=h;
|
|
2
2
|
//# sourceMappingURL=index.cjs25.js.map
|
package/dist/index.cjs25.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs25.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.cjs25.js","sources":["../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js"],"sourcesContent":["const conversions = require('./conversions');\n\n/*\n\tThis function routes a model to all other models.\n\n\tall functions that are routed have a property `.conversion` attached\n\tto the returned synthetic function. This property is an array\n\tof strings, each with the steps in between the 'from' and 'to'\n\tcolor models (inclusive).\n\n\tconversions that are not possible simply are not included.\n*/\n\nfunction buildGraph() {\n\tconst graph = {};\n\t// https://jsperf.com/object-keys-vs-for-in-with-closure/3\n\tconst models = Object.keys(conversions);\n\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tgraph[models[i]] = {\n\t\t\t// http://jsperf.com/1-vs-infinity\n\t\t\t// micro-opt, but this is simple.\n\t\t\tdistance: -1,\n\t\t\tparent: null\n\t\t};\n\t}\n\n\treturn graph;\n}\n\n// https://en.wikipedia.org/wiki/Breadth-first_search\nfunction deriveBFS(fromModel) {\n\tconst graph = buildGraph();\n\tconst queue = [fromModel]; // Unshift -> queue -> pop\n\n\tgraph[fromModel].distance = 0;\n\n\twhile (queue.length) {\n\t\tconst current = queue.pop();\n\t\tconst adjacents = Object.keys(conversions[current]);\n\n\t\tfor (let len = adjacents.length, i = 0; i < len; i++) {\n\t\t\tconst adjacent = adjacents[i];\n\t\t\tconst node = graph[adjacent];\n\n\t\t\tif (node.distance === -1) {\n\t\t\t\tnode.distance = graph[current].distance + 1;\n\t\t\t\tnode.parent = current;\n\t\t\t\tqueue.unshift(adjacent);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn graph;\n}\n\nfunction link(from, to) {\n\treturn function (args) {\n\t\treturn to(from(args));\n\t};\n}\n\nfunction wrapConversion(toModel, graph) {\n\tconst path = [graph[toModel].parent, toModel];\n\tlet fn = conversions[graph[toModel].parent][toModel];\n\n\tlet cur = graph[toModel].parent;\n\twhile (graph[cur].parent) {\n\t\tpath.unshift(graph[cur].parent);\n\t\tfn = link(conversions[graph[cur].parent][cur], fn);\n\t\tcur = graph[cur].parent;\n\t}\n\n\tfn.conversion = path;\n\treturn fn;\n}\n\nmodule.exports = function (fromModel) {\n\tconst graph = deriveBFS(fromModel);\n\tconst conversion = {};\n\n\tconst models = Object.keys(graph);\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tconst toModel = models[i];\n\t\tconst node = graph[toModel];\n\n\t\tif (node.parent === null) {\n\t\t\t// No possible conversion, or this node is the source model.\n\t\t\tcontinue;\n\t\t}\n\n\t\tconversion[toModel] = wrapConversion(toModel, graph);\n\t}\n\n\treturn conversion;\n};\n\n"],"names":["conversions","require$$0","buildGraph","graph","models","len","i","deriveBFS","fromModel","queue","current","adjacents","adjacent","node","link","from","to","args","wrapConversion","toModel","path","fn","cur","route","conversion"],"mappings":"oHAAMA,EAAcC,EAAAA,YAapB,SAASC,GAAa,CACrB,MAAMC,EAAQ,CAAA,EAERC,EAAS,OAA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QI,EAAUC,CAAS,EAC3BgB,EAAa,CAAA,EAEbpB,EAAS,OAAO,KAAKD,CAAK,EAChC,QAASE,EAAMD,EAAO,OAAQE,EAAI,EAAGA,EAAID,EAAKC,IAAK,CAClD,MAAMa,EAAUf,EAAOE,CAAC,EACXH,EAAMgB,CAAO,EAEjB,SAAW,OAKpBK,EAAWL,CAAO,EAAID,EAAeC,EAAShB,CAAK,EACnD,CAED,OAAOqB,CACR","x_google_ignoreList":[0]}
|
package/dist/index.cjs27.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs27.js.map
|
package/dist/index.cjs28.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs28.js.map
|
package/dist/index.cjs28.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs28.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.cjs28.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var t=function(r){return!r||typeof r=="string"?!1:r instanceof Array||Array.isArray(r)||r.length>=0&&(r.splice instanceof Function||Object.getOwnPropertyDescriptor(r,r.length-1)&&r.constructor.name!=="String")};exports.isArrayish=t;
|
|
2
|
+
//# sourceMappingURL=index.cjs29.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs29.js","sources":["../node_modules/.pnpm/is-arrayish@0.3.2/node_modules/is-arrayish/index.js"],"sourcesContent":["module.exports = function isArrayish(obj) {\n\tif (!obj || typeof obj === 'string') {\n\t\treturn false;\n\t}\n\n\treturn obj instanceof Array || Array.isArray(obj) ||\n\t\t(obj.length >= 0 && (obj.splice instanceof Function ||\n\t\t\t(Object.getOwnPropertyDescriptor(obj, (obj.length - 1)) && obj.constructor.name !== 'String')));\n};\n"],"names":["isArrayish","obj"],"mappings":"gFAAA,IAAAA,EAAiB,SAAoBC,EAAK,CACzC,MAAI,CAACA,GAAO,OAAOA,GAAQ,SACnB,GAGDA,aAAe,OAAS,MAAM,QAAQA,CAAG,GAC9CA,EAAI,QAAU,IAAMA,EAAI,kBAAkB,UACzC,OAAO,yBAAyBA,EAAMA,EAAI,OAAS,IAAOA,EAAI,YAAY,OAAS,SACvF","x_google_ignoreList":[0]}
|
package/dist/index.cjs4.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs11.js"),l=require("./index.cjs3.js"),o={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{transparent:"transparent",white:"#fff",gray:{50:l.default.GRAY_50,100:l.default.GRAY_100,200:l.default.GRAY_200,300:l.default.GRAY_300,400:l.default.GRAY_400,500:l.default.GRAY_500,600:l.default.GRAY_600,700:l.default.GRAY_700,800:l.default.GRAY_800,900:l.default.GRAY_900},green:{50:l.default.GREEN_50,500:l.default.GREEN_500,600:l.default.GREEN_600,700:l.default.GREEN_700,800:l.default.GREEN_800},magenta:{50:l.default.MAGENTA_50,500:l.default.MAGENTA_500,600:l.default.MAGENTA_600,700:l.default.MAGENTA_700},purple:{50:l.default.PURPLE_50,100:l.default.PURPLE_100,200:l.default.PURPLE_200,300:l.default.PURPLE_300,400:l.default.PURPLE_400,500:l.default.PURPLE_500,600:l.default.PURPLE_600,700:l.default.PURPLE_700,800:l.default.PURPLE_800,900:l.default.PURPLE_900},robinblue:{50:l.default.ROBINBLUE_50,100:l.default.ROBINBLUE_100,200:l.default.ROBINBLUE_200,300:l.default.ROBINBLUE_300,400:l.default.ROBINBLUE_400,500:l.default.ROBINBLUE_500,600:l.default.ROBINBLUE_600,700:l.default.ROBINBLUE_700,800:l.default.ROBINBLUE_800,900:l.default.ROBINBLUE_900},yellow:{50:l.default.YELLOW_50,500:l.default.YELLOW_500,600:l.default.YELLOW_600,700:l.default.YELLOW_700},chart:{purple:l.default.CHART_PURPLE,magenta:l.default.CHART_MAGENTA,yellow:l.default.CHART_YELLOW,green:l.default.CHART_GREEN,robinblue:l.default.CHART_ROBINBLUE}},spacing:{0:"0",2:"2px",4:"4px",8:"8px",12:"12px",16:"16px",24:"24px",32:"32px",40:"40px",48:"48px",64:"64px",96:"96px"},backgroundColor:a=>({transparent:"transparent",white:a("colors.white"),gray:{...a("colors.gray"),"50-80":r.default(a("colors").gray[50]).alpha(.8).string(),"900-4":r.default(a("colors").gray[900]).alpha(.04).string(),"900-8":r.default(a("colors").gray[900]).alpha(.08).string(),"900-12":r.default(a("colors").gray[900]).alpha(.12).string(),"900-16":r.default(a("colors").gray[900]).alpha(.16).string(),"900-24":r.default(a("colors").gray[900]).alpha(.24).string(),"900-32":r.default(a("colors").gray[900]).alpha(.32).string()},robinblue:{...a("colors.robinblue"),"500-8":r.default(a("colors").robinblue[500]).alpha(.08).string(),"500-16":r.default(a("colors").robinblue[500]).alpha(.16).string(),"500-40":r.default(a("colors").robinblue[500]).alpha(.4).string()},purple:{...a("colors.purple"),"700-48":r.default(a("colors").purple[700]).alpha(.48).string()},green:a("colors.green"),yellow:a("colors.yellow"),magenta:a("colors.magenta"),chart:{...a("colors.chart"),"purple-80":r.default(a("colors").chart.purple).alpha(.8).string()}}),borderColor:a=>({DEFAULT:a("colors.gray.400"),gray:{400:r.default(a("colors").gray[400]).string(),700:r.default(a("colors").gray[700]).string(),"900-8":r.default(a("colors").gray[900]).alpha(.08).string(),"900-16":r.default(a("colors").gray[900]).alpha(.16).string(),"900-24":r.default(a("colors").gray[900]).alpha(.24).string()},purple:{...a("colors.purple"),"900-8":r.default(a("colors").purple[900]).alpha(.08).string()},robinblue:a("colors.robinblue"),green:a("colors.green"),yellow:a("colors.yellow"),magenta:a("colors.magenta"),white:a("colors.white"),transparent:a("colors.transparent")}),borderRadius:{none:"0",small:"4px",DEFAULT:"8px",full:"9999px"},borderWidth:{DEFAULT:"1px",2:"2px",1:"1px",0:"0"},boxShadow:{100:"0 0 0 1px rgba(61, 63, 62, .16)",200:"0 4px 6px -1px rgba(61, 63, 62, .16)",300:"0 8px 10px -4px rgba(61, 63, 62, .16)",400:"0 16px 24px -6px rgba(61, 63, 62, .16)",500:"0 24px 32px 0px rgba(61, 63, 62, .16)",DEFAULT:"0 4px 16px -1px rgba(61, 63, 62, .16)","field-hover":"inset 0 0px 0px 1px rgba(61, 63, 62, .16)","field-active":"0 0px 0px 1px rgba(61, 63, 62, .48)","error-field-hover":"0 0px 0px 1px rgba(201, 44, 70, .32)","error-field-active":"0 0px 0px 1px rgba(201, 44, 70, .48)","warning-field-hover":"0 0px 0px 1px rgba(176, 88, 0, .32)","warning-field-active":"0 0px 0px 1px rgba(176, 88, 0, .48)",none:"none"},fontFamily:{default:['"Inter Variable"',"sans-serif"],icons:['"Material Icons"'],iconsOutlined:['"Material Icons Outlined"']},fontSize:{sm:"12px",base:"14px",lg:"18px",xl:"20px","icon-sm":"16px","icon-md":"20px"},fontWeight:{thin:"200",normal:"400",medium:"600"},letterSpacing:{normal:"0"},lineHeight:{14:"14px",20:"20px",24:"24px",18:"18px",26:"26px"},animation:{"loading-ellipsis1":"ellipsis1 0.6s infinite","loading-ellipsis2":"ellipsis2 0.6s infinite","loading-ellipsis3":"ellipsis3 0.6s infinite"},keyframes:{ellipsis1:{"0%":{transform:"scale(0)"},"100%":{transform:"scale(1)"}},ellipsis3:{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)"}},ellipsis2:{"0%":{transform:"translate(0, 0)"},"100%":{transform:"translate(24px, 0)"}}},minHeight:a=>({0:"0",...a("spacing"),full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),minWidth:a=>({0:"0",...a("spacing"),full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),opacity:{0:"0",8:"0.08",16:"0.16",24:"0.24",32:"0.32",40:"0.40",48:"0.48",64:"0.64",80:"0.80",100:"1"},textColor:a=>({white:a("colors.white"),gray:a("colors.gray"),robinblue:a("colors.robinblue"),green:a("colors.green"),magenta:a("colors.magenta"),yellow:a("colors.yellow"),purple:a("colors.purple")})};exports.default=o;
|
|
2
2
|
//# sourceMappingURL=index.cjs4.js.map
|
package/dist/index.cjs5.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs12.js"),j=require("@radix-ui/react-alert-dialog"),N=require("class-variance-authority"),b=require("react"),d=require("./index.cjs6.js"),l=require("./index.cjs13.js");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const o=c(j),i=c(b),R=o.Root,w=o.Trigger,m=o.Portal,n=i.forwardRef(({className:e,...t},a)=>s.jsxRuntimeExports.jsx(o.Overlay,{className:l.cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));n.displayName=o.Overlay.displayName;const g=i.forwardRef(({className:e,...t},a)=>s.jsxRuntimeExports.jsxs(m,{children:[s.jsxRuntimeExports.jsx(n,{}),s.jsxRuntimeExports.jsx(o.Content,{ref:a,className:l.cn("fixed left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full","bg-white border-0 rounded shadow-200 min-w-[384px] p-24 top-24",e),...t})]}));g.displayName=o.Content.displayName;const u=({className:e,...t})=>s.jsxRuntimeExports.jsx("div",{className:l.cn("flex flex-col space-y-16 text-center sm:text-left font-display",e),...t});u.displayName="AlertDialogHeader";const p=({className:e,...t})=>s.jsxRuntimeExports.jsx("div",{className:l.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2","gap-8 mt-24",e),...t});p.displayName="AlertDialogFooter";const x=N.cva("flex items-center text-lg font-medium",{variants:{intent:{default:"text-gray-800",warning:"text-yellow-600",danger:"text-magenta-600"}},defaultVariants:{intent:"default"}}),f=i.forwardRef(({className:e,intent:t,...a},r)=>s.jsxRuntimeExports.jsx(o.Title,{ref:r,className:l.cn(x({intent:t}),e),...a}));f.displayName=o.Title.displayName;const D=i.forwardRef(({className:e,...t},a)=>s.jsxRuntimeExports.jsx(o.Description,{ref:a,className:l.cn("text-base text-muted-foreground",e),...t}));D.displayName=o.Description.displayName;const A=i.forwardRef(({className:e,intent:t,...a},r)=>s.jsxRuntimeExports.jsx(o.Action,{ref:r,className:l.cn(d.buttonVariants({intent:t}),e),...a}));A.displayName=o.Action.displayName;const y=i.forwardRef(({className:e,...t},a)=>s.jsxRuntimeExports.jsx(o.Cancel,{ref:a,className:l.cn(d.buttonVariants({intent:"secondary"}),"mt-2 sm:mt-0",e),...t}));y.displayName=o.Cancel.displayName;exports.AlertDialog=R;exports.AlertDialogAction=A;exports.AlertDialogCancel=y;exports.AlertDialogContent=g;exports.AlertDialogDescription=D;exports.AlertDialogFooter=p;exports.AlertDialogHeader=u;exports.AlertDialogOverlay=n;exports.AlertDialogPortal=m;exports.AlertDialogTitle=f;exports.AlertDialogTrigger=w;exports.titleVariants=x;
|
|
2
2
|
//# sourceMappingURL=index.cjs5.js.map
|
package/dist/index.cjs6.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.cjs12.js"),b=require("@radix-ui/react-slot"),u=require("class-variance-authority"),f=require("react"),y=require("./index.cjs13.js");function m(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const v=m(f),i=u.cva("inline-flex items-center justify-center rounded-full text-base font-medium outline-none transition-opacity transition-colors disabled:pointer-events-none disabled:opacity-40",{variants:{variant:{filled:"",outline:"border",ghost:"",link:""},intent:{primary:"",secondary:"",warning:"",danger:""},size:{md:"h-40 min-w-96 px-24",sm:"h-32 px-16",icon:"h-32 w-32","fit-content":""}},compoundVariants:[{variant:"filled",intent:"primary",className:"bg-robinblue-500 text-white fill-white hover:bg-robinblue-600 focus:bg-robinblue-600 active:bg-robinblue-700"},{variant:"filled",intent:"secondary",className:"bg-gray-900-8 text-gray-900 fill-gray-900 hover:bg-gray-900-12 focus:bg-gray-900-12 active:bg-gray-900-16"},{variant:"filled",intent:"warning",className:"bg-yellow-500 text-white fill-white hover:bg-yellow-600 focus:bg-yellow-600 active:bg-yellow-700"},{variant:"filled",intent:"danger",className:"bg-magenta-500 text-white fill-white hover:bg-magenta-600 focus:bg-magenta-600 active:bg-magenta-700"},{variant:"outline",intent:"primary",className:"text-robinblue-500 fill-robinblue-500 border-robinblue-500"},{variant:"outline",intent:"secondary",className:"text-gray-700 fill-gray-700 border-gray-900-24 hover:bg-gray-900-8 focus:bg-gray-900-8 active:bg-gray-900-12"},{variant:"outline",intent:"warning",className:"text-yellow-500 fill-yellow-500 border-yellow-500"},{variant:"outline",intent:"danger",className:"text-magenta-500 fill-magenta-500 border-magenta-500"},{variant:["outline","ghost"],intent:"primary",className:"hover:bg-robinblue-500-8 focus:bg-robinblue-500-8 active:bg-robinblue-500-12"},{variant:["outline","ghost"],intent:"secondary",className:"hover:bg-gray-900-8 focus:bg-gray-900-8 active:bg-gray-900-12"},{variant:["outline","ghost"],intent:"warning",className:"hover:bg-yellow-500-8 focus:bg-yellow-500-8 active:bg-yellow-500-12"},{variant:["outline","ghost"],intent:"danger",className:"hover:bg-magenta-500-8 focus:bg-magenta-500-8 active:bg-magenta-500-12"},{variant:["ghost","link"],intent:"primary",className:"text-robinblue-500 fill-robinblue-500 hover:text-robinblue-600 hover:fill-text-robinblue-600 focus:text-robinblue-600 focus:fill-robinblue-600 active:text-robinblue-700 active:fill-robinblue-700"},{variant:["ghost","link"],intent:"secondary",className:"text-gray-700 fill-gray-700 hover:text-gray-800 hover:fill-gray-800 focus:text-gray-800 focus:fill-gray-800 active:text-gray-900 active:fill-gray-900 "},{variant:["ghost","link"],intent:"warning",className:"text-yellow-500 fill-yellow-500 hover:text-yellow-600 hover:fill-text-yellow-600 focus:text-yellow-600 focus:fill-yellow-600 active:text-yellow-700 active:fill-yellow-700"},{variant:["ghost","link"],intent:"danger",className:"text-magenta-500 fill-magenta-500 hover:text-magenta-600 hover:fill-text-magenta-600 focus:text-magenta-600 focus:fill-magenta-600 active:text-magenta-700 active:fill-magenta-700"}],defaultVariants:{variant:"filled",intent:"primary",size:"md"}}),l=v.forwardRef(({className:e,variant:a,intent:t,size:n,asChild:r=!1,...o},s)=>{const g=r?b.Slot:"button";return c.jsxRuntimeExports.jsx(g,{className:y.cn(i({variant:a,intent:t,size:n,className:e})),ref:s,...o})});l.displayName="Button";exports.Button=l;exports.buttonVariants=i;
|
|
2
2
|
//# sourceMappingURL=index.cjs6.js.map
|
package/dist/index.cjs7.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs12.js"),b=require("@radix-ui/react-checkbox"),s=require("lucide-react"),l=require("react"),c=require("./index.cjs13.js");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const i=d(b),u=d(l),o=u.forwardRef(({className:e,...t},a)=>r.jsxRuntimeExports.jsx(i.Root,{ref:a,className:c.cn("peer h-16 w-16 shrink-0 rounded-small border border-gray-900-24","disabled:cursor-not-allowed disabled:bg-transparent","disabled:data-[state=checked]:bg-gray-900-8 disabled:data-[state=checked]:text-gray-800","disabled:data-[state=indeterminate]:bg-gray-900-8 disabled:data-[state=indeterminate]:text-gray-800","data-[state=checked]:bg-robinblue-500 data-[state=checked]:text-white","data-[state=indeterminate]:bg-robinblue-500 data-[state=indeterminate]:text-white","hover:bg-gray-900-8 hover:data-[state=checked]:bg-robinblue-600 hover:data-[state=indeterminate]:bg-robinblue-600","focus-visible:outline-none focus:bg-gray-900-16 focus:data-[state=checked]:bg-robinblue-700 focus:data-[state=indeterminate]:bg-robinblue-700","active:bg-gray-900-16 active:data-[state=checked]:bg-robinblue-700 active:data-[state=indeterminate]:bg-robinblue-700",e),...t,children:r.jsxRuntimeExports.jsx(i.Indicator,{className:c.cn("flex items-center justify-center text-current"),children:t.checked=="indeterminate"?r.jsxRuntimeExports.jsx(s.Minus,{className:"h-[14px] w-[14px]"}):r.jsxRuntimeExports.jsx(s.Check,{className:"h-[14px] w-[14px]"})})}));o.displayName=i.Root.displayName;exports.Checkbox=o;
|
|
2
2
|
//# sourceMappingURL=index.cjs7.js.map
|
package/dist/index.cjs7.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs7.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.cjs7.js","sources":["../src/Checkbox/index.tsx"],"sourcesContent":["'use client'\n\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox'\nimport { Check, Minus } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst Checkbox = React.forwardRef<\n React.ElementRef<typeof CheckboxPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n 'peer h-16 w-16 shrink-0 rounded-small border border-gray-900-24',\n 'disabled:cursor-not-allowed disabled:bg-transparent',\n 'disabled:data-[state=checked]:bg-gray-900-8 disabled:data-[state=checked]:text-gray-800',\n 'disabled:data-[state=indeterminate]:bg-gray-900-8 disabled:data-[state=indeterminate]:text-gray-800',\n 'data-[state=checked]:bg-robinblue-500 data-[state=checked]:text-white',\n 'data-[state=indeterminate]:bg-robinblue-500 data-[state=indeterminate]:text-white',\n 'hover:bg-gray-900-8 hover:data-[state=checked]:bg-robinblue-600 hover:data-[state=indeterminate]:bg-robinblue-600',\n 'focus-visible:outline-none focus:bg-gray-900-16 focus:data-[state=checked]:bg-robinblue-700 focus:data-[state=indeterminate]:bg-robinblue-700',\n 'active:bg-gray-900-16 active:data-[state=checked]:bg-robinblue-700 active:data-[state=indeterminate]:bg-robinblue-700',\n className\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n className={cn('flex items-center justify-center text-current')}\n >\n {props.checked == 'indeterminate' ? (\n <Minus className=\"h-[14px] w-[14px]\" />\n ) : (\n <Check className=\"h-[14px] w-[14px]\" />\n )}\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n))\n\nCheckbox.displayName = CheckboxPrimitive.Root.displayName\n\nexport { Checkbox }\n"],"names":["Checkbox","React","className","props","ref","jsx","CheckboxPrimitive","cn","Minus","Check"],"mappings":"sgBAOMA,EAAWC,EAAM,WAGrB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAC1BC,EAAA,kBAAA,IAACC,EAAkB,KAAlB,CACC,IAAAF,EACA,UAAWG,EAAA,GACT,kEACA,sDACA,0FACA,sGACA,wEACA,oFACA,oHACA,gJACA,wHACAL,CACF,EACC,GAAGC,EAEJ,SAAAE,EAAA,kBAAA,IAACC,EAAkB,UAAlB,CACC,UAAWC,KAAG,+CAA+C,EAE5D,SAAAJ,EAAM,SAAW,gBACfE,EAAA,kBAAA,IAAAG,EAAA,MAAA,CAAM,UAAU,mBAAoB,CAAA,EAErCH,EAAAA,kBAAAA,IAACI,EAAAA,MAAM,CAAA,UAAU,mBAAoB,CAAA,CAAA,CAEzC,CAAA,CACF,CACD,EAEDT,EAAS,YAAcM,EAAkB,KAAK"}
|
package/dist/index.cjs8.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs12.js"),j=require("@radix-ui/react-dialog"),D=require("lucide-react"),y=require("react"),R=require("./index.cjs6.js"),i=require("./index.cjs13.js");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const o=d(j),r=d(y),b=o.Root,N=o.Trigger,c=o.Portal,l=r.forwardRef(({className:e,...t},a)=>s.jsxRuntimeExports.jsx(o.Overlay,{ref:a,className:i.cn("fixed inset-0 z-50 bg-gray-900/48 backdrop-blur-sm overflow-y-auto max-h-screen data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));l.displayName=o.Overlay.displayName;const m=r.forwardRef(({className:e,children:t,hideCloseIcon:a,...n},f)=>s.jsxRuntimeExports.jsx(c,{children:s.jsxRuntimeExports.jsx(l,{children:s.jsxRuntimeExports.jsxs(o.Content,{ref:f,className:i.cn("fixed z-50 text-left bg-white border-0 rounded grid shadow-200 select-text min-w-[384px] left-[50%] translate-x-[-50%] top-24 font-normal p-24 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",e),...n,children:[t,!a&&s.jsxRuntimeExports.jsxs(o.Close,{className:i.cn(R.buttonVariants({variant:"link",intent:"secondary",size:"icon"}),"absolute right-8 top-8 disabled:pointer-events-none h-24 w-24"),children:[s.jsxRuntimeExports.jsx(D.X,{}),s.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})})}));m.displayName=o.Content.displayName;const p=({className:e,...t})=>s.jsxRuntimeExports.jsx("div",{className:i.cn("mb-16",e),...t});p.displayName="DialogHeader";const x=({className:e,...t})=>s.jsxRuntimeExports.jsx("div",{className:i.cn("flex justify-end gap-8 mx-[-8px] mb-[-8px] mt-24",e),...t});x.displayName="DialogFooter";const u=r.forwardRef(({className:e,...t},a)=>s.jsxRuntimeExports.jsx(o.Title,{ref:a,className:i.cn("font-medium text-lg text-gray-800",e),...t}));u.displayName=o.Title.displayName;const g=r.forwardRef(({className:e,...t},a)=>s.jsxRuntimeExports.jsx(o.Description,{ref:a,className:i.cn("mt-8 text-base text-gray-900",e),...t}));g.displayName=o.Description.displayName;exports.Dialog=b;exports.DialogContent=m;exports.DialogDescription=g;exports.DialogFooter=x;exports.DialogHeader=p;exports.DialogOverlay=l;exports.DialogPortal=c;exports.DialogTitle=u;exports.DialogTrigger=N;
|
|
2
2
|
//# sourceMappingURL=index.cjs8.js.map
|
package/dist/index.cjs8.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs8.js","sources":["../src/DropdownMenu/index.tsx"],"sourcesContent":["'use client'\n\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'\nimport { Check, ChevronRight, Circle } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst DropdownMenu = DropdownMenuPrimitive.Root\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean\n }\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'flex cursor-default select-none items-center rounded-small pl-8 py-8 text-base outline-none focus:bg-gray-900-8 data-[state=open]:bg-gray-900-8',\n inset && 'pl-32',\n className\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto mr-4 h-16 w-16\" />\n </DropdownMenuPrimitive.SubTrigger>\n))\nDropdownMenuSubTrigger.displayName =\n DropdownMenuPrimitive.SubTrigger.displayName\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded-[6px] border border-gray-900-8 bg-white p-2 text-gray-900 shadow-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-[0.25rem] data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n))\nDropdownMenuSubContent.displayName =\n DropdownMenuPrimitive.SubContent.displayName\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded-[6px] border border-gray-900-8 bg-white p-2 text-gray-900 shadow-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-[0.25rem] data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n))\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-small px-8 py-8 text-base outline-none transition-colors focus:bg-gray-900-8 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-40',\n inset && 'pl-[2rem]',\n className\n )}\n {...props}\n />\n))\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-[2px] py-8 pl-32 pr-4 text-base outline-none transition-colors focus:bg-gray-900-8 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-40',\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-8 flex h-[14px] w-[14px] items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Check className=\"h-16 w-16\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n))\nDropdownMenuCheckboxItem.displayName =\n DropdownMenuPrimitive.CheckboxItem.displayName\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-[2px] py-8 pl-32 pr-4 text-base outline-none transition-colors focus:bg-gray-900-8 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-40',\n className\n )}\n {...props}\n >\n <span className=\"absolute left-8 flex h-[14px] w-[14px] items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Circle className=\"h-8 w-8 fill-gray-900\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n))\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn('p-8 text-base font-medium', inset && 'pl-32', className)}\n {...props}\n />\n))\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn('-mx-2 my-2 h-[1px] bg-gray-900-8', className)}\n {...props}\n />\n))\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName\n\nconst DropdownMenuShortcut = (\n { className, ...props }: React.HTMLAttributes<HTMLSpanElement>\n) => {\n return (\n <span\n className={cn('ml-auto text-xs tracking-widest opacity-40', className)}\n {...props}\n />\n )\n}\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut'\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup\n}\n"],"names":["DropdownMenu","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","cn","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut"],"mappings":"2gBAOMA,EAAeC,EAAsB,KAErCC,EAAsBD,EAAsB,QAE5CE,EAAoBF,EAAsB,MAE1CG,EAAqBH,EAAsB,OAE3CI,EAAkBJ,EAAsB,IAExCK,EAAyBL,EAAsB,WAE/CM,EAAyBC,EAAM,WAKnC,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,SAAAC,EAAU,GAAGC,GAASC,IAC3CC,EAAA,kBAAA,KAACb,EAAsB,WAAtB,CACC,IAAAY,EACA,UAAWE,EAAA,GACT,kJACAL,GAAS,QACTD,CACF,EACC,GAAGG,EAEH,SAAA,CAAAD,EACDK,EAAAA,kBAAAA,IAACC,EAAa,aAAA,CAAA,UAAU,wBAAyB,CAAA,CAAA,CAAA,CACnD,CACD,EACDV,EAAuB,YACrBN,EAAsB,WAAW,YAE7B,MAAAiB,EAAyBV,EAAM,WAGnC,CAAC,CAAE,UAAAC,EAAW,GAAGG,CAAM,EAAGC,IAC1BG,EAAA,kBAAA,IAACf,EAAsB,WAAtB,CACC,IAAAY,EACA,UAAWE,EAAA,GACT,0cACAN,CACF,EACC,GAAGG,CAAA,CACN,CACD,EACDM,EAAuB,YACrBjB,EAAsB,WAAW,YAEnC,MAAMkB,EAAsBX,EAAM,WAGhC,CAAC,CAAE,UAAAC,EAAW,WAAAW,EAAa,EAAG,GAAGR,CAAS,EAAAC,IACzCG,EAAA,kBAAA,IAAAf,EAAsB,OAAtB,CACC,SAAAe,EAAA,kBAAA,IAACf,EAAsB,QAAtB,CACC,IAAAY,EACA,WAAAO,EACA,UAAWL,EAAA,GACT,0cACAN,CACF,EACC,GAAGG,CAAA,CAC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,EAAM,WAK9B,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,GAAGE,GAASC,IACjCG,EAAA,kBAAA,IAACf,EAAsB,MAAtB,CACC,IAAAY,EACA,UAAWE,EAAAA,GAAG,4BAA6BL,GAAS,QAASD,CAAS,EACrE,GAAGG,CAAA,CACN,CACD,EACDe,EAAkB,YAAc1B,EAAsB,MAAM,YAEtD,MAAA2B,EAAwBpB,EAAM,WAGlC,CAAC,CAAE,UAAAC,EAAW,GAAGG,CAAM,EAAGC,IAC1BG,EAAA,kBAAA,IAACf,EAAsB,UAAtB,CACC,IAAAY,EACA,UAAWE,EAAAA,GAAG,mCAAoCN,CAAS,EAC1D,GAAGG,CAAA,CACN,CACD,EACDgB,EAAsB,YAAc3B,EAAsB,UAAU,YAEpE,MAAM4B,EAAuB,CAC3B,CAAE,UAAApB,EAAW,GAAGG,KAGdI,EAAA,kBAAA,IAAC,OAAA,CACC,UAAWD,EAAAA,GAAG,6CAA8CN,CAAS,EACpE,GAAGG,CAAA,CAAA,EAIViB,EAAqB,YAAc"}
|
|
1
|
+
{"version":3,"file":"index.cjs8.js","sources":["../src/Dialog/index.tsx"],"sourcesContent":["'use client'\n\nimport * as DialogPrimitive from '@radix-ui/react-dialog'\nimport { X } from 'lucide-react'\nimport * as React from 'react'\nimport { buttonVariants } from '../Button'\nimport { cn } from '../lib/utils'\n\nconst Dialog = DialogPrimitive.Root\n\nconst DialogTrigger = DialogPrimitive.Trigger\n\nconst DialogPortal = DialogPrimitive.Portal\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\n 'fixed inset-0 z-50 bg-gray-900/48 backdrop-blur-sm overflow-y-auto max-h-screen data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n className\n )}\n {...props}\n />\n))\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName\n\ntype DialogContentProps = DialogPrimitive.DialogContentProps & {\n hideCloseIcon?: boolean\n}\n\ntype DialogContentType = React.ForwardRefExoticComponent<\n DialogContentProps & React.RefAttributes<HTMLDivElement>\n>\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<DialogContentType>,\n React.ComponentPropsWithoutRef<DialogContentType>\n>(({ className, children, hideCloseIcon, ...props }, ref) => (\n <DialogPortal>\n <DialogOverlay>\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n 'fixed z-50 text-left bg-white border-0 rounded grid shadow-200 select-text min-w-[384px] left-[50%] translate-x-[-50%] top-24 font-normal p-24 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]',\n className\n )}\n {...props}\n >\n {children}\n {!hideCloseIcon && (\n <DialogPrimitive.Close\n className={cn(\n buttonVariants({\n variant: 'link',\n intent: 'secondary',\n size: 'icon'\n }),\n 'absolute right-8 top-8 disabled:pointer-events-none h-24 w-24'\n )}\n >\n <X />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogOverlay>\n </DialogPortal>\n))\nDialogContent.displayName = DialogPrimitive.Content.displayName\n\nconst DialogHeader = (\n { className, ...props }: React.HTMLAttributes<HTMLDivElement>\n) => <div className={cn('mb-16', className)} {...props} />\nDialogHeader.displayName = 'DialogHeader'\n\nconst DialogFooter = (\n { className, ...props }: React.HTMLAttributes<HTMLDivElement>\n) => (\n <div\n className={cn(\n 'flex justify-end gap-8 mx-[-8px] mb-[-8px] mt-24',\n className\n )}\n {...props}\n />\n)\nDialogFooter.displayName = 'DialogFooter'\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn('font-medium text-lg text-gray-800', className)}\n {...props}\n />\n))\nDialogTitle.displayName = DialogPrimitive.Title.displayName\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn('mt-8 text-base text-gray-900', className)}\n {...props}\n />\n))\nDialogDescription.displayName = DialogPrimitive.Description.displayName\n\nexport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger\n}\n"],"names":["Dialog","DialogPrimitive","DialogTrigger","DialogPortal","DialogOverlay","React","className","props","ref","jsx","cn","DialogContent","children","hideCloseIcon","jsxs","buttonVariants","X","DialogHeader","DialogFooter","DialogTitle","DialogDescription"],"mappings":"iiBAQMA,EAASC,EAAgB,KAEzBC,EAAgBD,EAAgB,QAEhCE,EAAeF,EAAgB,OAE/BG,EAAgBC,EAAM,WAG1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAC1BC,EAAA,kBAAA,IAACR,EAAgB,QAAhB,CACC,IAAAO,EACA,UAAWE,EAAA,GACT,0MACAJ,CACF,EACC,GAAGC,CAAA,CACN,CACD,EACDH,EAAc,YAAcH,EAAgB,QAAQ,YAUpD,MAAMU,EAAgBN,EAAM,WAG1B,CAAC,CAAE,UAAAC,EAAW,SAAAM,EAAU,cAAAC,EAAe,GAAGN,GAASC,IAClDC,EAAAA,kBAAAA,IAAAN,EAAA,CACC,iCAACC,EACC,CAAA,SAAAU,EAAA,kBAAA,KAACb,EAAgB,QAAhB,CACC,IAAAO,EACA,UAAWE,EAAA,G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}
|
package/dist/index.cjs9.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs12.js"),j=require("@radix-ui/react-dropdown-menu"),p=require("lucide-react"),R=require("react"),s=require("./index.cjs13.js");function l(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const e=l(j),d=l(R),D=e.Root,M=e.Trigger,h=e.Group,N=e.Portal,S=e.Sub,E=e.RadioGroup,u=d.forwardRef(({className:t,inset:o,children:n,...r},i)=>a.jsxRuntimeExports.jsxs(e.SubTrigger,{ref:i,className:s.cn("flex cursor-default select-none items-center rounded-small pl-8 py-8 text-base outline-none focus:bg-gray-900-8 data-[state=open]:bg-gray-900-8",o&&"pl-32",t),...r,children:[n,a.jsxRuntimeExports.jsx(p.ChevronRight,{className:"ml-auto mr-4 h-16 w-16"})]}));u.displayName=e.SubTrigger.displayName;const c=d.forwardRef(({className:t,...o},n)=>a.jsxRuntimeExports.jsx(e.SubContent,{ref:n,className:s.cn("z-50 min-w-[8rem] overflow-hidden rounded-[6px] border border-gray-900-8 bg-white p-2 text-gray-900 shadow-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-[0.25rem] data-[side=top]:slide-in-from-bottom-2",t),...o}));c.displayName=e.SubContent.displayName;const m=d.forwardRef(({className:t,sideOffset:o=4,...n},r)=>a.jsxRuntimeExports.jsx(e.Portal,{children:a.jsxRuntimeExports.jsx(e.Content,{ref:r,sideOffset:o,className:s.cn("z-50 min-w-[8rem] overflow-hidden rounded-[6px] border border-gray-900-8 bg-white p-2 text-gray-900 shadow-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-[0.25rem] data-[side=top]:slide-in-from-bottom-2",t),...n})}));m.displayName=e.Content.displayName;const x=d.forwardRef(({className:t,inset:o,...n},r)=>a.jsxRuntimeExports.jsx(e.Item,{ref:r,className:s.cn("relative flex cursor-default select-none items-center rounded-small px-8 py-8 text-base outline-none transition-colors focus:bg-gray-900-8 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-40",o&&"pl-[2rem]",t),...n}));x.displayName=e.Item.displayName;const f=d.forwardRef(({className:t,children:o,checked:n,...r},i)=>a.jsxRuntimeExports.jsxs(e.CheckboxItem,{ref:i,className:s.cn("relative flex cursor-default select-none items-center rounded-[2px] py-8 pl-32 pr-4 text-base outline-none transition-colors focus:bg-gray-900-8 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-40",t),checked:n,...r,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-8 flex h-[14px] w-[14px] items-center justify-center",children:a.jsxRuntimeExports.jsx(e.ItemIndicator,{children:a.jsxRuntimeExports.jsx(p.Check,{className:"h-16 w-16"})})}),o]}));f.displayName=e.CheckboxItem.displayName;const b=d.forwardRef(({className:t,children:o,...n},r)=>a.jsxRuntimeExports.jsxs(e.RadioItem,{ref:r,className:s.cn("relative flex cursor-default select-none items-center rounded-[2px] py-8 pl-32 pr-4 text-base outline-none transition-colors focus:bg-gray-900-8 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-40",t),...n,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-8 flex h-[14px] w-[14px] items-center justify-center",children:a.jsxRuntimeExports.jsx(e.ItemIndicator,{children:a.jsxRuntimeExports.jsx(p.Circle,{className:"h-8 w-8 fill-gray-900"})})}),o]}));b.displayName=e.RadioItem.displayName;const w=d.forwardRef(({className:t,inset:o,...n},r)=>a.jsxRuntimeExports.jsx(e.Label,{ref:r,className:s.cn("p-8 text-base font-medium",o&&"pl-32",t),...n}));w.displayName=e.Label.displayName;const g=d.forwardRef(({className:t,...o},n)=>a.jsxRuntimeExports.jsx(e.Separator,{ref:n,className:s.cn("-mx-2 my-2 h-[1px] bg-gray-900-8",t),...o}));g.displayName=e.Separator.displayName;const y=({className:t,...o})=>a.jsxRuntimeExports.jsx("span",{className:s.cn("ml-auto text-xs tracking-widest opacity-40",t),...o});y.displayName="DropdownMenuShortcut";exports.DropdownMenu=D;exports.DropdownMenuCheckboxItem=f;exports.DropdownMenuContent=m;exports.DropdownMenuGroup=h;exports.DropdownMenuItem=x;exports.DropdownMenuLabel=w;exports.DropdownMenuPortal=N;exports.DropdownMenuRadioGroup=E;exports.DropdownMenuRadioItem=b;exports.DropdownMenuSeparator=g;exports.DropdownMenuShortcut=y;exports.DropdownMenuSub=S;exports.DropdownMenuSubContent=c;exports.DropdownMenuSubTrigger=u;exports.DropdownMenuTrigger=M;
|
|
2
2
|
//# sourceMappingURL=index.cjs9.js.map
|
package/dist/index.cjs9.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs9.js","sources":["../src/Loading/index.tsx"],"sourcesContent":["import { cn } from '../lib/utils'\nimport LoadingDot from './LoadingDot'\n\ntype Props = {\n className?: string\n}\n\nexport function Loading({ className }: Props) {\n return (\n <div\n role=\"alert\"\n aria-busy={true}\n className={cn('flex items-center justify-center', className)}\n >\n <div className=\"inline-block relative w-[76px] h-[48px]\">\n <LoadingDot className=\"left-8 animate-loading-ellipsis1\" />\n <LoadingDot className=\"left-8 animate-loading-ellipsis2\" />\n <LoadingDot className=\"left-32 animate-loading-ellipsis2\" />\n <LoadingDot className=\"left-[56px] animate-loading-ellipsis3\" />\n </div>\n </div>\n )\n}\n"],"names":["Loading","className","jsx","cn","jsxs","LoadingDot"],"mappings":"gLAOgB,SAAAA,EAAQ,CAAE,UAAAC,GAAoB,CAE1C,OAAAC,EAAA,kBAAA,IAAC,MAAA,CACC,KAAK,QACL,YAAW,GACX,UAAWC,EAAAA,GAAG,mCAAoCF,CAAS,EAE3D,SAAAG,EAAA,kBAAA,KAAC,MAAI,CAAA,UAAU,0CACb,SAAA,CAACF,EAAAA,kBAAAA,IAAAG,EAAA,QAAA,CAAW,UAAU,kCAAmC,CAAA,EACzDH,EAAAA,kBAAAA,IAACG,EAAW,QAAA,CAAA,UAAU,kCAAmC,CAAA,EACzDH,EAAAA,kBAAAA,IAACG,EAAW,QAAA,CAAA,UAAU,mCAAoC,CAAA,EAC1DH,EAAAA,kBAAAA,IAACG,EAAW,QAAA,CAAA,UAAU,uCAAwC,CAAA,CAAA,EAChE,CAAA,CAAA,CAGN"}
|
|
1
|
+
{"version":3,"file":"index.cjs9.js","sources":["../src/DropdownMenu/index.tsx"],"sourcesContent":["'use client'\n\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'\nimport { Check, ChevronRight, Circle } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst DropdownMenu = DropdownMenuPrimitive.Root\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean\n }\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'flex cursor-default select-none items-center rounded-small pl-8 py-8 text-base outline-none focus:bg-gray-900-8 data-[state=open]:bg-gray-900-8',\n inset && 'pl-32',\n className\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto mr-4 h-16 w-16\" />\n </DropdownMenuPrimitive.SubTrigger>\n))\nDropdownMenuSubTrigger.displayName =\n DropdownMenuPrimitive.SubTrigger.displayName\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded-[6px] border border-gray-900-8 bg-white p-2 text-gray-900 shadow-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-[0.25rem] data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n))\nDropdownMenuSubContent.displayName =\n DropdownMenuPrimitive.SubContent.displayName\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded-[6px] border border-gray-900-8 bg-white p-2 text-gray-900 shadow-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-[0.25rem] data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n))\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-small px-8 py-8 text-base outline-none transition-colors focus:bg-gray-900-8 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-40',\n inset && 'pl-[2rem]',\n className\n )}\n {...props}\n />\n))\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-[2px] py-8 pl-32 pr-4 text-base outline-none transition-colors focus:bg-gray-900-8 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-40',\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-8 flex h-[14px] w-[14px] items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Check className=\"h-16 w-16\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n))\nDropdownMenuCheckboxItem.displayName =\n DropdownMenuPrimitive.CheckboxItem.displayName\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-[2px] py-8 pl-32 pr-4 text-base outline-none transition-colors focus:bg-gray-900-8 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-40',\n className\n )}\n {...props}\n >\n <span className=\"absolute left-8 flex h-[14px] w-[14px] items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Circle className=\"h-8 w-8 fill-gray-900\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n))\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn('p-8 text-base font-medium', inset && 'pl-32', className)}\n {...props}\n />\n))\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn('-mx-2 my-2 h-[1px] bg-gray-900-8', className)}\n {...props}\n />\n))\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName\n\nconst DropdownMenuShortcut = (\n { className, ...props }: React.HTMLAttributes<HTMLSpanElement>\n) => {\n return (\n <span\n className={cn('ml-auto text-xs tracking-widest opacity-40', className)}\n {...props}\n />\n )\n}\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut'\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup\n}\n"],"names":["DropdownMenu","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","cn","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut"],"mappings":"2gBAOMA,EAAeC,EAAsB,KAErCC,EAAsBD,EAAsB,QAE5CE,EAAoBF,EAAsB,MAE1CG,EAAqBH,EAAsB,OAE3CI,EAAkBJ,EAAsB,IAExCK,EAAyBL,EAAsB,WAE/CM,EAAyBC,EAAM,WAKnC,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,SAAAC,EAAU,GAAGC,GAASC,IAC3CC,EAAA,kBAAA,KAACb,EAAsB,WAAtB,CACC,IAAAY,EACA,UAAWE,EAAA,GACT,kJACAL,GAAS,QACTD,CACF,EACC,GAAGG,EAEH,SAAA,CAAAD,EACDK,EAAAA,kBAAAA,IAACC,EAAa,aAAA,CAAA,UAAU,wBAAyB,CAAA,CAAA,CAAA,CACnD,CACD,EACDV,EAAuB,YACrBN,EAAsB,WAAW,YAE7B,MAAAiB,EAAyBV,EAAM,WAGnC,CAAC,CAAE,UAAAC,EAAW,GAAGG,CAAM,EAAGC,IAC1BG,EAAA,kBAAA,IAACf,EAAsB,WAAtB,CACC,IAAAY,EACA,UAAWE,EAAA,GACT,0cACAN,CACF,EACC,GAAGG,CAAA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UAAWE,EAAA,GACT,sOACAN,CACF,EACC,GAAGG,EAEJ,SAAA,CAAAI,EAAA,kBAAA,IAAC,OAAK,CAAA,UAAU,qEACd,SAAAA,EAAA,kBAAA,IAACf,EAAsB,cAAtB,CACC,SAAAe,EAAA,kBAAA,IAACU,SAAO,CAAA,UAAU,uBAAwB,CAAA,CAC5C,CAAA,EACF,EACCf,CAAA,CAAA,CACH,CACD,EACDc,EAAsB,YAAcxB,EAAsB,UAAU,YAE9D,MAAA0B,EAAoBnB,EAAM,WAK9B,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,GAAGE,GAASC,IACjCG,EAAA,kBAAA,IAACf,EAAsB,MAAtB,CACC,IAAAY,EACA,UAAWE,EAAAA,GAAG,4BAA6BL,GAAS,QAASD,CAAS,EACrE,GAAGG,CAAA,CACN,CACD,EACDe,EAAkB,YAAc1B,EAAsB,MAAM,YAEtD,MAAA2B,EAAwBpB,EAAM,WAGlC,CAAC,CAAE,UAAAC,EAAW,GAAGG,CAAM,EAAGC,IAC1BG,EAAA,kBAAA,IAACf,EAAsB,UAAtB,CACC,IAAAY,EACA,UAAWE,EAAAA,GAAG,mCAAoCN,CAAS,EAC1D,GAAGG,CAAA,CACN,CACD,EACDgB,EAAsB,YAAc3B,EAAsB,UAAU,YAEpE,MAAM4B,EAAuB,CAC3B,CAAE,UAAApB,EAAW,GAAGG,KAGdI,EAAA,kBAAA,IAAC,OAAA,CACC,UAAWD,EAAAA,GAAG,6CAA8CN,CAAS,EACpE,GAAGG,CAAA,CAAA,EAIViB,EAAqB,YAAc"}
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export { default as tailwindTheme } from './tailwind-theme-config';
|
|
|
11
11
|
*/
|
|
12
12
|
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from './AlertDialog';
|
|
13
13
|
export { Button, buttonVariants } from './Button';
|
|
14
|
+
export { Checkbox } from './Checkbox';
|
|
14
15
|
export { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './Dialog';
|
|
15
16
|
export { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem } from './DropdownMenu';
|
|
16
17
|
export { Loading } from './Loading';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,aAAa,CAAA;AAEpB;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAElE;;GAEG;AACH,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEjD,OAAO,EACL,MAAM,EACN,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,EACd,MAAM,UAAU,CAAA;AAEjB,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,aAAa,CAAA;AAEpB;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAElE;;GAEG;AACH,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EACL,MAAM,EACN,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,EACd,MAAM,UAAU,CAAA;AAEjB,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
package/dist/index.es.js
CHANGED
|
@@ -2,10 +2,11 @@ import "./index.es2.js";
|
|
|
2
2
|
import { default as t } from "./index.es3.js";
|
|
3
3
|
import { default as l } from "./index.es4.js";
|
|
4
4
|
import { AlertDialog as i, AlertDialogAction as D, AlertDialogCancel as p, AlertDialogContent as g, AlertDialogDescription as u, AlertDialogFooter as d, AlertDialogHeader as w, AlertDialogTitle as M, AlertDialogTrigger as m } from "./index.es5.js";
|
|
5
|
-
import { Button as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { Button as x, buttonVariants as A } from "./index.es6.js";
|
|
6
|
+
import { Checkbox as b } from "./index.es7.js";
|
|
7
|
+
import { Dialog as T, DialogContent as s, DialogDescription as S, DialogFooter as h, DialogHeader as I, DialogOverlay as k, DialogPortal as F, DialogTitle as G, DialogTrigger as H } from "./index.es8.js";
|
|
8
|
+
import { DropdownMenu as P, DropdownMenuCheckboxItem as R, DropdownMenuContent as v, DropdownMenuGroup as y, DropdownMenuItem as B, DropdownMenuLabel as O, DropdownMenuPortal as V, DropdownMenuRadioGroup as j, DropdownMenuRadioItem as q, DropdownMenuSeparator as z, DropdownMenuShortcut as E, DropdownMenuSub as J, DropdownMenuSubContent as K, DropdownMenuSubTrigger as N, DropdownMenuTrigger as Q } from "./index.es9.js";
|
|
9
|
+
import { Loading as W } from "./index.es10.js";
|
|
9
10
|
export {
|
|
10
11
|
i as AlertDialog,
|
|
11
12
|
D as AlertDialogAction,
|
|
@@ -16,34 +17,35 @@ export {
|
|
|
16
17
|
w as AlertDialogHeader,
|
|
17
18
|
M as AlertDialogTitle,
|
|
18
19
|
m as AlertDialogTrigger,
|
|
19
|
-
|
|
20
|
+
x as Button,
|
|
21
|
+
b as Checkbox,
|
|
20
22
|
t as Colors,
|
|
21
23
|
T as Dialog,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
24
|
+
s as DialogContent,
|
|
25
|
+
S as DialogDescription,
|
|
26
|
+
h as DialogFooter,
|
|
27
|
+
I as DialogHeader,
|
|
28
|
+
k as DialogOverlay,
|
|
29
|
+
F as DialogPortal,
|
|
30
|
+
G as DialogTitle,
|
|
31
|
+
H as DialogTrigger,
|
|
32
|
+
P as DropdownMenu,
|
|
33
|
+
R as DropdownMenuCheckboxItem,
|
|
34
|
+
v as DropdownMenuContent,
|
|
35
|
+
y as DropdownMenuGroup,
|
|
36
|
+
B as DropdownMenuItem,
|
|
37
|
+
O as DropdownMenuLabel,
|
|
38
|
+
V as DropdownMenuPortal,
|
|
39
|
+
j as DropdownMenuRadioGroup,
|
|
40
|
+
q as DropdownMenuRadioItem,
|
|
41
|
+
z as DropdownMenuSeparator,
|
|
42
|
+
E as DropdownMenuShortcut,
|
|
43
|
+
J as DropdownMenuSub,
|
|
44
|
+
K as DropdownMenuSubContent,
|
|
45
|
+
N as DropdownMenuSubTrigger,
|
|
46
|
+
Q as DropdownMenuTrigger,
|
|
47
|
+
W as Loading,
|
|
48
|
+
A as buttonVariants,
|
|
47
49
|
l as tailwindTheme
|
|
48
50
|
};
|
|
49
51
|
//# sourceMappingURL=index.es.js.map
|
package/dist/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|