@gearbox-protocol/ui-kit 3.14.0-next.51 → 3.14.0-next.52

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 e=require("react/jsx-runtime"),A=require("@gearbox-protocol/sdk"),t=require("../../table/grid-table.cjs"),l=require("../../table/table-sm.cjs"),a=require("../../typed-intl/index.cjs"),C=require("../../../hooks/use-media-query.cjs");require("react");const n=require("../../../utils/cn.cjs");require("sonner");require("@gearbox-protocol/sdk/common-utils");const v=require("../../../utils/templates.cjs");require("luxon");require("../../../utils/z-index.cjs");const G=require("./cells/details.cjs"),T=require("./cells/hash.cjs"),O=require("./cells/protocol.cjs");require("../../tooltip/simple-tooltip.cjs");require("../../tooltip/tooltip.cjs");require("../../token-symbol/token-symbol.cjs");const q=require("./types.cjs");function M({data:s,details:y,tokens:m,protocols:g,hideBorder:i,index:d,underlyingToken:H,explorerUrl:o}){const f=C.useIsMobile(),u=g?.[s.protocol.toLowerCase()]||q.GEARBOX_PROTOCOL_INFO,c=q.isMulticallOperation(s),r=d.index===0,x=r&&d.outOf===0||!r,p=()=>{if(s.operationType==="OpenCreditAccount"){const _=s,N=m[H];return e.jsxs(e.Fragment,{children:[" ","(",v.tokenTemplate(_.from,N)," ",">"," x",A.formatLeverage(_.leverage),")"]})}return null},b=()=>u&&e.jsx(O.Protocol,{isUnderlying:!r,protocol:u}),h=()=>c?null:s.operation,j=()=>e.jsx(G.Details,{tokensList:m,data:y});return f?e.jsxs(e.Fragment,{children:[r&&e.jsx(t.GridTableRow,{noHover:!0,children:e.jsx(t.GridTableCell,{span:"full",className:"pb-2 pt-4",children:e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsxs("div",{className:"text-xs",children:[s.date," ",s.time,c&&` - ${s.operation}`,p()]}),o&&e.jsx(T.Hash,{txHash:s.txHash,etherscanAddress:o})]})})}),x&&e.jsx(t.GridTableRow,{noHover:!0,className:n.cn(i&&"[&>*]:!border-b-0"),children:e.jsx(t.GridTableCell,{span:"full",className:n.cn(!r&&"pl-4"),children:e.jsxs(l.TableLineSm,{columns:3,columnsXs:2,columnsSm:3,children:[e.jsx(l.TableCellSm,{title:e.jsx(a.FormattedMessageTyped,{messageId:"components.creditAccountHistory.table.protocol"}),children:b()}),e.jsx(l.TableCellSm,{title:e.jsx(a.FormattedMessageTyped,{messageId:"components.creditAccountHistory.table.operation"}),children:h()}),e.jsx(l.TableCellSm,{title:e.jsx(a.FormattedMessageTyped,{messageId:"components.creditAccountHistory.table.details"}),className:"items-start",children:j()})]})})})]}):e.jsxs(e.Fragment,{children:[r&&e.jsx(t.GridTableRow,{noHover:!0,children:e.jsx(t.GridTableCell,{span:"full",className:"pb-2 pt-4",children:e.jsxs("div",{className:"flex flex-col sm:flex-row justify-between sm:items-center gap-1 sm:gap-0",children:[e.jsxs("div",{className:"text-xs sm:text-sm",children:[s.date," ",s.time,c&&` - ${s.operation}`,p()]}),o&&e.jsx(T.Hash,{txHash:s.txHash,etherscanAddress:o})]})})}),x&&e.jsxs(t.GridTableRow,{className:n.cn(!r&&!i&&"[&>*]:!border-t-0",i&&"[&>*]:!border-b-0","hover:[&>*]:bg-transparent"),children:[e.jsx(t.GridTableCell,{className:n.cn(r?"":"pl-8 sm:pl-4","text-xs sm:text-sm"),children:b()}),e.jsx(t.GridTableCell,{className:"text-xs sm:text-sm",children:h()}),e.jsx(t.GridTableCell,{className:"text-xs sm:text-sm",children:j()})]})]})}exports.HistoryLine=M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),A=require("@gearbox-protocol/sdk"),t=require("../../table/grid-table.cjs"),l=require("../../table/table-sm.cjs"),a=require("../../typed-intl/index.cjs"),C=require("../../../hooks/use-media-query.cjs");require("react");const n=require("../../../utils/cn.cjs");require("sonner");require("@gearbox-protocol/sdk/common-utils");const v=require("../../../utils/templates.cjs");require("luxon");require("../../../utils/z-index.cjs");const G=require("./cells/details.cjs"),T=require("./cells/hash.cjs"),O=require("./cells/protocol.cjs");require("../../tooltip/simple-tooltip.cjs");require("../../tooltip/tooltip.cjs");require("../../token-symbol/token-symbol.cjs");const q=require("./types.cjs");function M({data:s,details:y,tokens:m,protocols:g,hideBorder:i,index:d,underlyingToken:H,explorerUrl:o}){const f=C.useIsMobile(),u=g?.[s.protocol.toLowerCase()]||q.GEARBOX_PROTOCOL_INFO,c=q.isMulticallOperation(s),r=d.index===0,x=r&&d.outOf===0||!r,p=()=>{if(s.operationType==="OpenCreditAccount"){const _=s,N=m[H];return e.jsxs(e.Fragment,{children:[" ","(",v.tokenTemplate(_.from,N)," ",">"," x",A.formatLeverage(_.leverage),")"]})}return null},b=()=>u&&e.jsx(O.Protocol,{isUnderlying:!r,protocol:u}),h=()=>c?null:s.operation,j=()=>e.jsx(G.Details,{tokensList:m,data:y});return f?e.jsxs(e.Fragment,{children:[r&&e.jsx(t.GridTableRow,{noHover:!0,children:e.jsx(t.GridTableCell,{span:"full",className:"pb-2 pt-4",children:e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsxs("div",{className:"text-xs",children:[s.date," ",s.time,c&&` - ${s.operation}`,p()]}),o&&e.jsx(T.Hash,{txHash:s.txHash,etherscanAddress:o})]})})}),x&&e.jsx(t.GridTableRow,{noHover:!0,className:n.cn(i&&"[&>*]:!border-b-0"),children:e.jsx(t.GridTableCell,{span:"full",className:n.cn(!r&&"pl-4"),children:e.jsxs(l.TableLineSm,{columns:3,columnsXs:2,columnsSm:3,children:[e.jsx(l.TableCellSm,{title:e.jsx(a.FormattedMessageTyped,{messageId:"components.creditAccountHistory.table.protocol"}),children:b()}),e.jsx(l.TableCellSm,{title:e.jsx(a.FormattedMessageTyped,{messageId:"components.creditAccountHistory.table.operation"}),children:h()}),e.jsx(l.TableCellSm,{title:e.jsx(a.FormattedMessageTyped,{messageId:"components.creditAccountHistory.table.details"}),className:"items-start",children:j()})]})})})]}):e.jsxs(e.Fragment,{children:[r&&e.jsx(t.GridTableRow,{noHover:!0,children:e.jsx(t.GridTableCell,{span:"full",className:"pb-2 pt-4",children:e.jsxs("div",{className:"flex flex-col sm:flex-row justify-between sm:items-center gap-1 sm:gap-2",children:[e.jsxs("div",{className:"text-xs sm:text-sm",children:[s.date," ",s.time,c&&` - ${s.operation}`,p()]}),o&&e.jsx(T.Hash,{txHash:s.txHash,etherscanAddress:o})]})})}),x&&e.jsxs(t.GridTableRow,{className:n.cn(!r&&!i&&"[&>*]:!border-t-0",i&&"[&>*]:!border-b-0","hover:[&>*]:bg-transparent"),children:[e.jsx(t.GridTableCell,{className:n.cn(r?"":"pl-8 sm:pl-4","text-xs sm:text-sm"),children:b()}),e.jsx(t.GridTableCell,{className:"text-xs sm:text-sm",children:h()}),e.jsx(t.GridTableCell,{className:"text-xs sm:text-sm",children:j()})]})]})}exports.HistoryLine=M;
@@ -87,7 +87,7 @@ function oe({
87
87
  }
88
88
  )
89
89
  ] }) : /* @__PURE__ */ o(a, { children: [
90
- r && /* @__PURE__ */ e(l, { noHover: !0, children: /* @__PURE__ */ e(s, { span: "full", className: "pb-2 pt-4", children: /* @__PURE__ */ o("div", { className: "flex flex-col sm:flex-row justify-between sm:items-center gap-1 sm:gap-0", children: [
90
+ r && /* @__PURE__ */ e(l, { noHover: !0, children: /* @__PURE__ */ e(s, { span: "full", className: "pb-2 pt-4", children: /* @__PURE__ */ o("div", { className: "flex flex-col sm:flex-row justify-between sm:items-center gap-1 sm:gap-2", children: [
91
91
  /* @__PURE__ */ o("div", { className: "text-xs sm:text-sm", children: [
92
92
  t.date,
93
93
  " ",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/ui-kit",
3
- "version": "3.14.0-next.51",
3
+ "version": "3.14.0-next.52",
4
4
  "description": "Internal UI components",
5
5
  "repository": {
6
6
  "type": "git",