@gearbox-protocol/permissionless-ui 1.22.0-next.59 → 1.22.0-next.60

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),Q=require("@radix-ui/react-slider"),m=require("react");require("@gearbox-protocol/sdk");const k=require("../../utils/cn.cjs");require("sonner");require("luxon");function L(t){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const u=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(c,r,u.get?u:{enumerable:!0,get:()=>t[r]})}}return c.default=t,Object.freeze(c)}const M=L(Q),Y=L(m),I={additionalSuccess:"hsl(var(--success))",additionalSuccessLight:"#88c497",additionalWarning:"hsl(var(--warning))",additionalAlert:"hsl(var(--destructive))",additionalLiquidation:"hsl(var(--liquidation))",mainPrimary:"hsl(var(--primary))",mainAccent:"hsl(var(--accent))",textPrimary:"hsl(var(--foreground))",textSecondary:"hsl(var(--secondary-foreground))",gray40:"hsl(var(--gray-40))",gray50:"hsl(var(--gray-50))",gray60:"hsl(var(--gray-60))"};function $(t){if(t)return I[t]??t}function p(t){return{start:t.start??0,end:t.end??0}}function ee(t,c){if(c)for(const r of c){const{start:u,end:g}=p(r);if(t>=u&&t<=g)return $(r.color)}}function te(t,c){if(c)for(const r of c){const{start:u,end:g}=p(r);if(t>=u&&t<=g)return $(r.color)??"hsl(var(--success))"}}const ne=18,D=ne/2;function _(t){return D-D*t/50}function E(t,c,r,u,g){let y=t,v=1/0;for(const b of c){const x=Math.abs(t-b);x<v&&(v=x,y=b)}return v<r?Math.max(u,Math.min(g,y)):t}const F=Y.forwardRef(({className:t,variant:c="default",value:r,onValueChange:u,min:g,max:y,step:v,from:b,to:x,colorIntervals:o,precision:C,markerStep:f,onChangeValue:T,onSubmitValue:q,colorIntervalLabel:A,epsilon:S=8,...U},z)=>{const s=g??b??0,i=y??x??100,V=Array.isArray(C)?C[0]:C,K=v??(V?1/V:void 0),N=m.useMemo(()=>{if(Array.isArray(r))return r;if(typeof r=="number")return[r]},[r]),j=m.useMemo(()=>{const e=new Set;if(o?.length)for(const n of o){const{start:a,end:d}=p(n);e.add(a),e.add(d)}if(f)for(let n=s;n<=i+f*.001;n+=f)e.add(Math.min(n,i));return[...e]},[o,f,s,i]),W=e=>{const n=e.map(a=>j.length>0?E(a,j,S,s,i):a);u?.(n),T&&n.length>0&&T(n[0])},X=e=>{const n=e.map(a=>j.length>0?E(a,j,S,s,i):a);q&&n.length>0&&q(n[0])},R=N?.[0]??0,B=ee(R,o)??{default:"hsl(var(--primary))",success:"hsl(var(--success))",warning:"hsl(var(--warning))",danger:"hsl(var(--destructive))"}[c],H=(N??[0]).length,Z=m.useMemo(()=>Array.from({length:H},(e,n)=>`thumb-${n}`),[H]),P=m.useMemo(()=>{if(!f)return;const e=[s];for(let n=s+f;n<i;n+=f)e.push(n);return e[e.length-1]!==i&&e.push(i),e},[s,i,f]),G=m.useMemo(()=>{if(!o?.length)return;const e=o[o.length-1],{start:n,end:a}=p(e),d=i-s;if(d<=0)return;const h=(n-s)/d*100,w=(a-s)/d*100,O=_(h),J=_(w);return{left:`calc(${(h+w)/2}% + ${(O+J)/2}px)`,transform:"translateX(-50%)"}},[o,s,i]);return l.jsxs("div",{className:"relative w-full px-[9px] pb-3",children:[l.jsx("div",{className:"relative",children:l.jsxs(M.Root,{ref:z,className:k.cn("relative flex w-full touch-none select-none items-center",t),min:s,max:i,step:K,value:N,onValueChange:W,onValueCommit:X,...U,children:[l.jsxs(M.Track,{className:"relative h-1 grow overflow-hidden rounded-full bg-gray-40 mx-[9px]",children:[o?.map((e,n)=>{const{start:a,end:d}=p(e),h=i-s;if(h<=0)return null;const w=(a-s)/h*100,O=(d-a)/h*100;return l.jsx("div",{className:"absolute h-full",style:{left:`${w}%`,width:`${O}%`,backgroundColor:$(e.color)??"hsl(var(--success))"}},`interval-${n}-${a}-${d}`)}),!o?.length&&l.jsx(M.Range,{className:"absolute h-full",style:{backgroundColor:B}})]}),P&&P.length>0&&l.jsx("div",{className:"absolute inset-0 pointer-events-none flex items-center",children:l.jsx("div",{className:"relative w-full",children:P.map(e=>{const n=i-s;if(n<=0)return null;const a=(e-s)/n*100,d=_(a),h=o?.length?te(e,o):e<=R?B:void 0;return l.jsx("div",{className:"absolute h-2.5 w-2.5 rounded-full -translate-x-1/2 -translate-y-1/2",style:{left:`calc(${a}% + ${d}px)`,top:"50%",backgroundColor:h??"hsl(var(--gray-40))"}},`mark-${e}`)})})}),Z.map(e=>l.jsx(M.Thumb,{className:k.cn("relative block h-[18px] w-[18px] rounded-full bg-foreground","cursor-grab active:cursor-grabbing","focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50","after:absolute after:h-1.5 after:w-1.5 after:rounded-full after:bg-accent","after:top-1/2 after:left-1/2 after:-translate-x-1/2 after:-translate-y-1/2")},e))]})}),A&&o&&o.length>0&&l.jsx("div",{className:"relative h-[14px] mt-2.5",children:l.jsx("div",{className:"absolute text-[11px] font-medium leading-[126%] text-success whitespace-nowrap",style:G,children:A})})]})});F.displayName="Slider";exports.Slider=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),Q=require("@gearbox-protocol/sdk"),Y=require("@radix-ui/react-slider"),m=require("react"),k=require("../../utils/cn.cjs");require("sonner");require("luxon");function H(t){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const u=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(c,r,u.get?u:{enumerable:!0,get:()=>t[r]})}}return c.default=t,Object.freeze(c)}const w=H(Y),I=H(m),ee={additionalSuccess:"hsl(var(--success))",additionalSuccessLight:"#88c497",additionalWarning:"hsl(var(--warning))",additionalAlert:"hsl(var(--destructive))",additionalLiquidation:"hsl(var(--liquidation))",mainPrimary:"hsl(var(--primary))",mainAccent:"hsl(var(--accent))",textPrimary:"hsl(var(--foreground))",textSecondary:"hsl(var(--secondary-foreground))",gray40:"hsl(var(--gray-40))",gray50:"hsl(var(--gray-50))",gray60:"hsl(var(--gray-60))"};function O(t){if(t)return ee[t]??t}function p(t){return{start:t.start??0,end:t.end??0}}function te(t,c){if(c)for(const r of c){const{start:u,end:g}=p(r);if(t>=u&&t<=g)return O(r.color)}}function ne(t,c){if(c)for(const r of c){const{start:u,end:g}=p(r);if(t>=u&&t<=g)return O(r.color)??"hsl(var(--success))"}}const re=18,B=re/2;function A(t){return B-B*t/50}function D(t,c,r,u,g){let y=t,v=1/0;for(const b of c){const x=Math.abs(t-b);x<v&&(v=x,y=b)}return v<r?Math.max(u,Math.min(g,y)):t}const F=I.forwardRef(({className:t,variant:c="default",value:r,onValueChange:u,min:g,max:y,step:v,from:b,to:x,colorIntervals:o,precision:C,markerStep:f=100,onChangeValue:$,onSubmitValue:T,colorIntervalLabel:q,epsilon:S=8,...U},z)=>{const s=g??b??0,i=y??x??100,V=Array.isArray(C)?C[0]:C,G=v??(V?Number(Q.LEVERAGE_DECIMALS)/V:void 0),N=m.useMemo(()=>{if(Array.isArray(r))return r;if(typeof r=="number")return[r]},[r]),M=m.useMemo(()=>{const e=new Set;if(o?.length)for(const n of o){const{start:a,end:d}=p(n);e.add(a),e.add(d)}if(f)for(let n=s;n<=i+f*.001;n+=f)e.add(Math.min(n,i));return[...e]},[o,f,s,i]),K=e=>{const n=e.map(a=>M.length>0?D(a,M,S,s,i):a);u?.(n),$&&n.length>0&&$(n[0])},W=e=>{const n=e.map(a=>M.length>0?D(a,M,S,s,i):a);T&&n.length>0&&T(n[0])},R=N?.[0]??0,E=te(R,o)??{default:"hsl(var(--primary))",success:"hsl(var(--success))",warning:"hsl(var(--warning))",danger:"hsl(var(--destructive))"}[c],L=(N??[0]).length,X=m.useMemo(()=>Array.from({length:L},(e,n)=>`thumb-${n}`),[L]),P=m.useMemo(()=>{if(!f)return;const e=[s];for(let n=s+f;n<i;n+=f)e.push(n);return e[e.length-1]!==i&&e.push(i),e},[s,i,f]),Z=m.useMemo(()=>{if(!o?.length)return;const e=o[o.length-1],{start:n,end:a}=p(e),d=i-s;if(d<=0)return;const h=(n-s)/d*100,j=(a-s)/d*100,_=A(h),J=A(j);return{left:`calc(${(h+j)/2}% + ${(_+J)/2}px)`,transform:"translateX(-50%)"}},[o,s,i]);return l.jsxs("div",{className:"relative w-full px-[9px] pb-3",children:[l.jsx("div",{className:"relative",children:l.jsxs(w.Root,{ref:z,className:k.cn("relative flex w-full touch-none select-none items-center",t),min:s,max:i,step:G,value:N,onValueChange:K,onValueCommit:W,...U,children:[l.jsxs(w.Track,{className:"relative h-1 grow overflow-hidden rounded-full bg-gray-40 mx-[9px]",children:[o?.map((e,n)=>{const{start:a,end:d}=p(e),h=i-s;if(h<=0)return null;const j=(a-s)/h*100,_=(d-a)/h*100;return l.jsx("div",{className:"absolute h-full",style:{left:`${j}%`,width:`${_}%`,backgroundColor:O(e.color)??"hsl(var(--success))"}},`interval-${n}-${a}-${d}`)}),!o?.length&&l.jsx(w.Range,{className:"absolute h-full",style:{backgroundColor:E}})]}),P&&P.length>0&&l.jsx("div",{className:"absolute inset-0 pointer-events-none flex items-center",children:l.jsx("div",{className:"relative w-full",children:P.map(e=>{const n=i-s;if(n<=0)return null;const a=(e-s)/n*100,d=A(a),h=o?.length?ne(e,o):e<=R?E:void 0;return l.jsx("div",{className:"absolute h-2.5 w-2.5 rounded-full -translate-x-1/2 -translate-y-1/2",style:{left:`calc(${a}% + ${d}px)`,top:"50%",backgroundColor:h??"hsl(var(--gray-40))"}},`mark-${e}`)})})}),X.map(e=>l.jsx(w.Thumb,{className:k.cn("relative block h-[18px] w-[18px] rounded-full bg-foreground","cursor-grab active:cursor-grabbing","focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50","after:absolute after:h-1.5 after:w-1.5 after:rounded-full after:bg-accent","after:top-1/2 after:left-1/2 after:-translate-x-1/2 after:-translate-y-1/2")},e))]})}),q&&o&&o.length>0&&l.jsx("div",{className:"relative h-[14px] mt-2.5",children:l.jsx("div",{className:"absolute text-[11px] font-medium leading-[126%] text-success whitespace-nowrap",style:Z,children:q})})]})});F.displayName="Slider";exports.Slider=F;
@@ -1,12 +1,12 @@
1
- import { jsxs as T, jsx as d } from "react/jsx-runtime";
1
+ import { jsxs as P, jsx as d } from "react/jsx-runtime";
2
+ import { LEVERAGE_DECIMALS as J } from "@gearbox-protocol/sdk";
2
3
  import * as N from "@radix-ui/react-slider";
3
- import * as J from "react";
4
+ import * as Q from "react";
4
5
  import { useMemo as v } from "react";
5
- import "@gearbox-protocol/sdk";
6
- import { cn as q } from "../../utils/cn.js";
6
+ import { cn as k } from "../../utils/cn.js";
7
7
  import "sonner";
8
8
  import "luxon";
9
- const Q = {
9
+ const Y = {
10
10
  additionalSuccess: "hsl(var(--success))",
11
11
  additionalSuccessLight: "#88c497",
12
12
  additionalWarning: "hsl(var(--warning))",
@@ -20,9 +20,9 @@ const Q = {
20
20
  gray50: "hsl(var(--gray-50))",
21
21
  gray60: "hsl(var(--gray-60))"
22
22
  };
23
- function O(n) {
23
+ function E(n) {
24
24
  if (n)
25
- return Q[n] ?? n;
25
+ return Y[n] ?? n;
26
26
  }
27
27
  function p(n) {
28
28
  return {
@@ -30,27 +30,27 @@ function p(n) {
30
30
  end: n.end ?? 0
31
31
  };
32
32
  }
33
- function Y(n, c) {
33
+ function I(n, c) {
34
34
  if (c)
35
35
  for (const i of c) {
36
36
  const { start: h, end: m } = p(i);
37
37
  if (n >= h && n <= m)
38
- return O(i.color);
38
+ return E(i.color);
39
39
  }
40
40
  }
41
- function I(n, c) {
41
+ function tt(n, c) {
42
42
  if (c)
43
43
  for (const i of c) {
44
44
  const { start: h, end: m } = p(i);
45
45
  if (n >= h && n <= m)
46
- return O(i.color) ?? "hsl(var(--success))";
46
+ return E(i.color) ?? "hsl(var(--success))";
47
47
  }
48
48
  }
49
- const tt = 18, F = tt / 2;
50
- function V(n) {
51
- return F - F * n / 50;
49
+ const et = 18, q = et / 2;
50
+ function T(n) {
51
+ return q - q * n / 50;
52
52
  }
53
- function S(n, c, i, h, m) {
53
+ function D(n, c, i, h, m) {
54
54
  let y = n, g = 1 / 0;
55
55
  for (const b of c) {
56
56
  const x = Math.abs(n - b);
@@ -58,7 +58,7 @@ function S(n, c, i, h, m) {
58
58
  }
59
59
  return g < i ? Math.max(h, Math.min(m, y)) : n;
60
60
  }
61
- const et = J.forwardRef(
61
+ const nt = Q.forwardRef(
62
62
  ({
63
63
  className: n,
64
64
  variant: c = "default",
@@ -73,14 +73,14 @@ const et = J.forwardRef(
73
73
  to: x,
74
74
  colorIntervals: a,
75
75
  precision: M,
76
- markerStep: f,
76
+ markerStep: f = 100,
77
77
  onChangeValue: R,
78
78
  onSubmitValue: _,
79
- colorIntervalLabel: B,
80
- epsilon: H = 8,
81
- ...U
82
- }, D) => {
83
- const r = m ?? b ?? 0, o = y ?? x ?? 100, E = Array.isArray(M) ? M[0] : M, K = g ?? (E ? 1 / E : void 0), $ = v(() => {
79
+ colorIntervalLabel: L,
80
+ epsilon: O = 8,
81
+ ...F
82
+ }, U) => {
83
+ const r = m ?? b ?? 0, o = y ?? x ?? 100, B = Array.isArray(M) ? M[0] : M, G = g ?? (B ? Number(J) / B : void 0), A = v(() => {
84
84
  if (Array.isArray(i)) return i;
85
85
  if (typeof i == "number") return [i];
86
86
  }, [i]), w = v(() => {
@@ -94,70 +94,70 @@ const et = J.forwardRef(
94
94
  for (let e = r; e <= o + f * 1e-3; e += f)
95
95
  t.add(Math.min(e, o));
96
96
  return [...t];
97
- }, [a, f, r, o]), W = (t) => {
97
+ }, [a, f, r, o]), K = (t) => {
98
98
  const e = t.map(
99
- (s) => w.length > 0 ? S(s, w, H, r, o) : s
99
+ (s) => w.length > 0 ? D(s, w, O, r, o) : s
100
100
  );
101
101
  h?.(e), R && e.length > 0 && R(e[0]);
102
- }, X = (t) => {
102
+ }, W = (t) => {
103
103
  const e = t.map(
104
- (s) => w.length > 0 ? S(s, w, H, r, o) : s
104
+ (s) => w.length > 0 ? D(s, w, O, r, o) : s
105
105
  );
106
106
  _ && e.length > 0 && _(e[0]);
107
- }, L = $?.[0] ?? 0, j = Y(L, a) ?? {
107
+ }, H = A?.[0] ?? 0, S = I(H, a) ?? {
108
108
  default: "hsl(var(--primary))",
109
109
  success: "hsl(var(--success))",
110
110
  warning: "hsl(var(--warning))",
111
111
  danger: "hsl(var(--destructive))"
112
- }[c], k = ($ ?? [0]).length, Z = v(
113
- () => Array.from({ length: k }, (t, e) => `thumb-${e}`),
114
- [k]
115
- ), A = v(() => {
112
+ }[c], j = (A ?? [0]).length, X = v(
113
+ () => Array.from({ length: j }, (t, e) => `thumb-${e}`),
114
+ [j]
115
+ ), $ = v(() => {
116
116
  if (!f) return;
117
117
  const t = [r];
118
118
  for (let e = r + f; e < o; e += f)
119
119
  t.push(e);
120
120
  return t[t.length - 1] !== o && t.push(o), t;
121
- }, [r, o, f]), z = v(() => {
121
+ }, [r, o, f]), Z = v(() => {
122
122
  if (!a?.length) return;
123
123
  const t = a[a.length - 1], { start: e, end: s } = p(t), l = o - r;
124
124
  if (l <= 0) return;
125
- const u = (e - r) / l * 100, C = (s - r) / l * 100, P = V(u), G = V(C);
125
+ const u = (e - r) / l * 100, C = (s - r) / l * 100, V = T(u), z = T(C);
126
126
  return {
127
- left: `calc(${(u + C) / 2}% + ${(P + G) / 2}px)`,
127
+ left: `calc(${(u + C) / 2}% + ${(V + z) / 2}px)`,
128
128
  transform: "translateX(-50%)"
129
129
  };
130
130
  }, [a, r, o]);
131
- return /* @__PURE__ */ T("div", { className: "relative w-full px-[9px] pb-3", children: [
132
- /* @__PURE__ */ d("div", { className: "relative", children: /* @__PURE__ */ T(
131
+ return /* @__PURE__ */ P("div", { className: "relative w-full px-[9px] pb-3", children: [
132
+ /* @__PURE__ */ d("div", { className: "relative", children: /* @__PURE__ */ P(
133
133
  N.Root,
134
134
  {
135
- ref: D,
136
- className: q(
135
+ ref: U,
136
+ className: k(
137
137
  "relative flex w-full touch-none select-none items-center",
138
138
  n
139
139
  ),
140
140
  min: r,
141
141
  max: o,
142
- step: K,
143
- value: $,
144
- onValueChange: W,
145
- onValueCommit: X,
146
- ...U,
142
+ step: G,
143
+ value: A,
144
+ onValueChange: K,
145
+ onValueCommit: W,
146
+ ...F,
147
147
  children: [
148
- /* @__PURE__ */ T(N.Track, { className: "relative h-1 grow overflow-hidden rounded-full bg-gray-40 mx-[9px]", children: [
148
+ /* @__PURE__ */ P(N.Track, { className: "relative h-1 grow overflow-hidden rounded-full bg-gray-40 mx-[9px]", children: [
149
149
  a?.map((t, e) => {
150
150
  const { start: s, end: l } = p(t), u = o - r;
151
151
  if (u <= 0) return null;
152
- const C = (s - r) / u * 100, P = (l - s) / u * 100;
152
+ const C = (s - r) / u * 100, V = (l - s) / u * 100;
153
153
  return /* @__PURE__ */ d(
154
154
  "div",
155
155
  {
156
156
  className: "absolute h-full",
157
157
  style: {
158
158
  left: `${C}%`,
159
- width: `${P}%`,
160
- backgroundColor: O(t.color) ?? "hsl(var(--success))"
159
+ width: `${V}%`,
160
+ backgroundColor: E(t.color) ?? "hsl(var(--success))"
161
161
  }
162
162
  },
163
163
  `interval-${e}-${s}-${l}`
@@ -168,15 +168,15 @@ const et = J.forwardRef(
168
168
  {
169
169
  className: "absolute h-full",
170
170
  style: {
171
- backgroundColor: j
171
+ backgroundColor: S
172
172
  }
173
173
  }
174
174
  )
175
175
  ] }),
176
- A && A.length > 0 && /* @__PURE__ */ d("div", { className: "absolute inset-0 pointer-events-none flex items-center", children: /* @__PURE__ */ d("div", { className: "relative w-full", children: A.map((t) => {
176
+ $ && $.length > 0 && /* @__PURE__ */ d("div", { className: "absolute inset-0 pointer-events-none flex items-center", children: /* @__PURE__ */ d("div", { className: "relative w-full", children: $.map((t) => {
177
177
  const e = o - r;
178
178
  if (e <= 0) return null;
179
- const s = (t - r) / e * 100, l = V(s), u = a?.length ? I(t, a) : t <= L ? j : void 0;
179
+ const s = (t - r) / e * 100, l = T(s), u = a?.length ? tt(t, a) : t <= H ? S : void 0;
180
180
  return /* @__PURE__ */ d(
181
181
  "div",
182
182
  {
@@ -190,10 +190,10 @@ const et = J.forwardRef(
190
190
  `mark-${t}`
191
191
  );
192
192
  }) }) }),
193
- Z.map((t) => /* @__PURE__ */ d(
193
+ X.map((t) => /* @__PURE__ */ d(
194
194
  N.Thumb,
195
195
  {
196
- className: q(
196
+ className: k(
197
197
  "relative block h-[18px] w-[18px] rounded-full bg-foreground",
198
198
  "cursor-grab active:cursor-grabbing",
199
199
  "focus-visible:outline-none",
@@ -207,18 +207,18 @@ const et = J.forwardRef(
207
207
  ]
208
208
  }
209
209
  ) }),
210
- B && a && a.length > 0 && /* @__PURE__ */ d("div", { className: "relative h-[14px] mt-2.5", children: /* @__PURE__ */ d(
210
+ L && a && a.length > 0 && /* @__PURE__ */ d("div", { className: "relative h-[14px] mt-2.5", children: /* @__PURE__ */ d(
211
211
  "div",
212
212
  {
213
213
  className: "absolute text-[11px] font-medium leading-[126%] text-success whitespace-nowrap",
214
- style: z,
215
- children: B
214
+ style: Z,
215
+ children: L
216
216
  }
217
217
  ) })
218
218
  ] });
219
219
  }
220
220
  );
221
- et.displayName = "Slider";
221
+ nt.displayName = "Slider";
222
222
  export {
223
- et as Slider
223
+ nt as Slider
224
224
  };
@@ -43,6 +43,7 @@ export interface SliderProps extends Omit<React.ComponentPropsWithoutRef<typeof
43
43
  colorIntervals?: ColorInterval[];
44
44
  /**
45
45
  * Precision for step calculation (legacy API).
46
+ * Converted to step using legacy formula: Number(LEVERAGE_DECIMALS) / precision.
46
47
  * Can be number or array (first element used).
47
48
  * Prefer using `step` directly for explicit control.
48
49
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/permissionless-ui",
3
- "version": "1.22.0-next.59",
3
+ "version": "1.22.0-next.60",
4
4
  "description": "Internal UI components",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/index.js",