@scbt-ecom/ui 0.105.0 → 0.106.0

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,2 +1,2 @@
1
- import{jsx as d}from"react/jsx-runtime";import{cva as n}from"../../../../../../../node_modules/class-variance-authority/dist/index.js";import{cn as e}from"../../../../../../shared/utils/cn.js";const a=n("desktop:grid mobile:hidden items-center",{variants:{columnsVariant:{twoCols:"grid-cols-[248px_1fr] gap-16",threeCols:"grid-cols-[248px_1fr_1fr] gap-12"},tableVariant:{filled:"px-4 py-3 even:bg-color-primary-light-default",separator:"pr-4 py-4 border-b border-solid border-warm-grey-200"}}}),b=({row:o,tableVariant:p,columnsVariant:m,classes:r})=>d("div",{className:e(a({columnsVariant:m,tableVariant:p}),r==null?void 0:r.row),children:o==null?void 0:o.map(({cell:t},i)=>d("div",{className:e("desk-body-regular-l text-color-dark",{"font-medium":i!==0},r==null?void 0:r.cell),children:t&&t},i))});export{b as DesktopRow};
1
+ import{jsx as e}from"react/jsx-runtime";import{cva as n}from"../../../../../../../node_modules/class-variance-authority/dist/index.js";import{cn as i}from"../../../../../../shared/utils/cn.js";const a=n("desktop:grid mobile:hidden items-center",{variants:{columnsVariant:{twoCols:"grid-cols-[248px_1fr] gap-16 ",threeCols:"grid-cols-[248px_1fr_1fr] gap-12"},tableVariant:{filled:"px-4 py-3 even:bg-color-primary-light-default",separator:"pr-4 py-4 border-b border-solid border-warm-grey-200"}}}),b=({row:o,tableVariant:d,columnsVariant:p,classes:r})=>e("div",{className:i(a({columnsVariant:p,tableVariant:d}),r==null?void 0:r.row),children:o==null?void 0:o.map(({cell:m},t)=>e("div",{className:i("desk-body-regular-l text-color-dark",{"font-medium":t!==0},r==null?void 0:r.cell),dangerouslySetInnerHTML:{__html:m}},t))});export{b as DesktopRow};
2
2
  //# sourceMappingURL=DesktopRow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DesktopRow.js","sources":["../../../../../../../../lib/widgets/usefulInfo/ui/subEntities/table/ui/DesktopRow.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority'\nimport type { EntityTableProps, TableRow } from '../Table'\nimport { cn } from '$/shared/utils'\n\nexport type DesktopRowClasses = {\n row?: string\n cell?: string\n}\n\ntype DesktopRowProps = {\n row: TableRow['row']\n tableVariant: EntityTableProps['tableVariant']\n columnsVariant: EntityTableProps['columnsVariant']\n classes?: DesktopRowClasses\n}\n\nconst desktopRowConfig = cva('desktop:grid mobile:hidden items-center', {\n variants: {\n columnsVariant: {\n twoCols: 'grid-cols-[248px_1fr] gap-16',\n threeCols: 'grid-cols-[248px_1fr_1fr] gap-12'\n },\n tableVariant: {\n filled: 'px-4 py-3 even:bg-color-primary-light-default',\n separator: 'pr-4 py-4 border-b border-solid border-warm-grey-200'\n }\n }\n})\n\nexport const DesktopRow = ({ row, tableVariant, columnsVariant, classes }: DesktopRowProps) => {\n return (\n <div className={cn(desktopRowConfig({ columnsVariant, tableVariant }), classes?.row)}>\n {row?.map(({ cell }, cellIndex) => (\n <div\n key={cellIndex}\n className={cn('desk-body-regular-l text-color-dark', { 'font-medium': cellIndex !== 0 }, classes?.cell)}\n >\n {cell && cell}\n </div>\n ))}\n </div>\n )\n}\n"],"names":["desktopRowConfig","cva","DesktopRow","row","tableVariant","columnsVariant","classes","cn","cell","cellIndex","jsx"],"mappings":"iMAgBA,MAAMA,EAAmBC,EAAI,0CAA2C,CACtE,SAAU,CACR,eAAgB,CACd,QAAS,+BACT,UAAW,kCAAA,EAEb,aAAc,CACZ,OAAQ,gDACR,UAAW,sDAAA,CACb,CAEJ,CAAC,EAEYC,EAAa,CAAC,CAAE,IAAAC,EAAK,aAAAC,EAAc,eAAAC,EAAgB,QAAAC,OAE3D,MAAA,CAAI,UAAWC,EAAGP,EAAiB,CAAE,eAAAK,EAAgB,aAAAD,CAAA,CAAc,EAAGE,GAAA,YAAAA,EAAS,GAAG,EAChF,SAAAH,GAAA,YAAAA,EAAK,IAAI,CAAC,CAAE,KAAAK,GAAQC,IACnBC,EAAC,MAAA,CAEC,UAAWH,EAAG,sCAAuC,CAAE,cAAeE,IAAc,CAAA,EAAKH,GAAA,YAAAA,EAAS,IAAI,EAErG,SAAAE,GAAQA,CAAA,EAHJC,CAAA,GAMX"}
1
+ {"version":3,"file":"DesktopRow.js","sources":["../../../../../../../../lib/widgets/usefulInfo/ui/subEntities/table/ui/DesktopRow.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority'\nimport type { EntityTableProps, TableRow } from '../Table'\nimport { cn } from '$/shared/utils'\n\nexport type DesktopRowClasses = {\n row?: string\n cell?: string\n}\n\ntype DesktopRowProps = {\n row: TableRow['row']\n tableVariant: EntityTableProps['tableVariant']\n columnsVariant: EntityTableProps['columnsVariant']\n classes?: DesktopRowClasses\n}\n\nconst desktopRowConfig = cva('desktop:grid mobile:hidden items-center', {\n variants: {\n columnsVariant: {\n twoCols: 'grid-cols-[248px_1fr] gap-16 ',\n threeCols: 'grid-cols-[248px_1fr_1fr] gap-12'\n },\n tableVariant: {\n filled: 'px-4 py-3 even:bg-color-primary-light-default',\n separator: 'pr-4 py-4 border-b border-solid border-warm-grey-200'\n }\n }\n})\n\nexport const DesktopRow = ({ row, tableVariant, columnsVariant, classes }: DesktopRowProps) => {\n return (\n <div className={cn(desktopRowConfig({ columnsVariant, tableVariant }), classes?.row)}>\n {row?.map(({ cell }, cellIndex) => (\n <div\n key={cellIndex}\n className={cn('desk-body-regular-l text-color-dark', { 'font-medium': cellIndex !== 0 }, classes?.cell)}\n dangerouslySetInnerHTML={{ __html: cell }}\n />\n ))}\n </div>\n )\n}\n"],"names":["desktopRowConfig","cva","DesktopRow","row","tableVariant","columnsVariant","classes","cn","cell","cellIndex","jsx"],"mappings":"iMAgBA,MAAMA,EAAmBC,EAAI,0CAA2C,CACtE,SAAU,CACR,eAAgB,CACd,QAAS,gCACT,UAAW,kCAAA,EAEb,aAAc,CACZ,OAAQ,gDACR,UAAW,sDAAA,CACb,CAEJ,CAAC,EAEYC,EAAa,CAAC,CAAE,IAAAC,EAAK,aAAAC,EAAc,eAAAC,EAAgB,QAAAC,OAE3D,MAAA,CAAI,UAAWC,EAAGP,EAAiB,CAAE,eAAAK,EAAgB,aAAAD,CAAA,CAAc,EAAGE,GAAA,YAAAA,EAAS,GAAG,EAChF,SAAAH,GAAA,YAAAA,EAAK,IAAI,CAAC,CAAE,KAAAK,GAAQC,IACnBC,EAAC,MAAA,CAEC,UAAWH,EAAG,sCAAuC,CAAE,cAAeE,IAAc,CAAA,EAAKH,GAAA,YAAAA,EAAS,IAAI,EACtG,wBAAyB,CAAE,OAAQE,CAAA,CAAK,EAFnCC,CAAA,GAKX"}
@@ -1,2 +1,2 @@
1
- import{jsx as t,jsxs as l}from"react/jsx-runtime";import{cva as f}from"../../../../../../../node_modules/class-variance-authority/dist/index.js";import{cn as o}from"../../../../../../shared/utils/cn.js";const n=f("mobile:flex desktop:hidden flex-col gap-2",{variants:{tableVariant:{filled:"px-4 py-4 odd:bg-color-primary-light-default",separator:"py-4 border-b border-solid border-warm-grey-200 first:border-none"}}}),x=({row:d,tableVariant:b,columnsVariant:i,headingsExist:m,classes:r})=>t("div",{className:o(n({tableVariant:b}),r==null?void 0:r.row),children:d==null?void 0:d.map(({cell:g,heading:p},e)=>l("div",{className:o("grid grid-cols-2 gap-3",{"grid-cols-1 gap-0":!m},r==null?void 0:r.wrapper),children:[p&&t("div",{className:o("mob-body-regular-l text-color-secondary",r==null?void 0:r.heading),children:p}),t("div",{className:o("mob-body-regular-l text-color-dark",{"font-medium":e!==0&&i==="twoCols"||i==="threeCols"||i==="twoCols"&&m},r==null?void 0:r.cell),children:g})]},e))});export{x as MobileRow};
1
+ import{jsx as t,jsxs as l}from"react/jsx-runtime";import{cva as n}from"../../../../../../../node_modules/class-variance-authority/dist/index.js";import{cn as o}from"../../../../../../shared/utils/cn.js";const f=n("mobile:flex desktop:hidden flex-col gap-2",{variants:{tableVariant:{filled:"px-4 py-4 odd:bg-color-primary-light-default",separator:"py-4 border-b border-solid border-warm-grey-200 first:border-none"}}}),x=({row:d,tableVariant:b,columnsVariant:i,headingsExist:m,classes:r})=>t("div",{className:o(f({tableVariant:b}),r==null?void 0:r.row),children:d==null?void 0:d.map(({cell:g,heading:e},p)=>l("div",{className:o("grid grid-cols-2 gap-3",{"grid-cols-1 gap-0":!m},r==null?void 0:r.wrapper),children:[e&&t("div",{className:o("mob-body-regular-l text-color-secondary",r==null?void 0:r.heading),children:e}),t("div",{className:o("mob-body-regular-l text-color-dark",{"font-medium":p!==0&&i==="twoCols"||i==="threeCols"||i==="twoCols"&&m},r==null?void 0:r.cell),dangerouslySetInnerHTML:{__html:g}})]},p))});export{x as MobileRow};
2
2
  //# sourceMappingURL=MobileRow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MobileRow.js","sources":["../../../../../../../../lib/widgets/usefulInfo/ui/subEntities/table/ui/MobileRow.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority'\nimport type { EntityTableProps } from '../Table'\nimport { cn } from '$/shared/utils'\n\ninterface FormattedRow {\n cell: string\n heading?: string\n}\n\nexport type MobileRowClasses = {\n row?: string\n wrapper?: string\n heading?: string\n cell?: string\n}\n\nexport interface MobileRowProps {\n row: FormattedRow[]\n tableVariant: EntityTableProps['tableVariant']\n columnsVariant: EntityTableProps['columnsVariant']\n headingsExist: boolean\n classes?: MobileRowClasses\n}\n\nconst mobileRowConfig = cva('mobile:flex desktop:hidden flex-col gap-2', {\n variants: {\n tableVariant: {\n filled: 'px-4 py-4 odd:bg-color-primary-light-default',\n separator: 'py-4 border-b border-solid border-warm-grey-200 first:border-none'\n }\n }\n})\n\nexport const MobileRow = ({ row, tableVariant, columnsVariant, headingsExist, classes }: MobileRowProps) => {\n return (\n <div className={cn(mobileRowConfig({ tableVariant }), classes?.row)}>\n {row?.map(({ cell, heading }, cellIndex) => (\n <div key={cellIndex} className={cn('grid grid-cols-2 gap-3', { 'grid-cols-1 gap-0': !headingsExist }, classes?.wrapper)}>\n {heading && <div className={cn('mob-body-regular-l text-color-secondary', classes?.heading)}>{heading}</div>}\n <div\n className={cn(\n 'mob-body-regular-l text-color-dark',\n {\n 'font-medium':\n (cellIndex !== 0 && columnsVariant === 'twoCols') ||\n columnsVariant === 'threeCols' ||\n (columnsVariant === 'twoCols' && headingsExist)\n },\n classes?.cell\n )}\n >\n {cell}\n </div>\n </div>\n ))}\n </div>\n )\n}\n"],"names":["mobileRowConfig","cva","MobileRow","row","tableVariant","columnsVariant","headingsExist","classes","jsx","cn","cell","heading","cellIndex","jsxs"],"mappings":"2MAwBA,MAAMA,EAAkBC,EAAI,4CAA6C,CACvE,SAAU,CACR,aAAc,CACZ,OAAQ,+CACR,UAAW,mEAAA,CACb,CAEJ,CAAC,EAEYC,EAAY,CAAC,CAAE,IAAAC,EAAK,aAAAC,EAAc,eAAAC,EAAgB,cAAAC,EAAe,QAAAC,KAE1EC,EAAC,MAAA,CAAI,UAAWC,EAAGT,EAAgB,CAAE,aAAAI,CAAA,CAAc,EAAGG,GAAA,YAAAA,EAAS,GAAG,EAC/D,SAAAJ,GAAA,YAAAA,EAAK,IAAI,CAAC,CAAE,KAAAO,EAAM,QAAAC,CAAA,EAAWC,IAC5BC,EAAC,MAAA,CAAoB,UAAWJ,EAAG,yBAA0B,CAAE,oBAAqB,CAACH,CAAA,EAAiBC,GAAA,YAAAA,EAAS,OAAO,EACnH,SAAA,CAAAI,GAAWH,EAAC,OAAI,UAAWC,EAAG,0CAA2CF,GAAA,YAAAA,EAAS,OAAO,EAAI,SAAAI,CAAA,CAAQ,EACtGH,EAAC,MAAA,CACC,UAAWC,EACT,qCACA,CACE,cACGG,IAAc,GAAKP,IAAmB,WACvCA,IAAmB,aAClBA,IAAmB,WAAaC,CAAA,EAErCC,GAAA,YAAAA,EAAS,IAAA,EAGV,SAAAG,CAAA,CAAA,CACH,GAfQE,CAgBV,GAEJ"}
1
+ {"version":3,"file":"MobileRow.js","sources":["../../../../../../../../lib/widgets/usefulInfo/ui/subEntities/table/ui/MobileRow.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority'\nimport type { EntityTableProps } from '../Table'\nimport { cn } from '$/shared/utils'\n\ninterface FormattedRow {\n cell: string\n heading?: string\n}\n\nexport type MobileRowClasses = {\n row?: string\n wrapper?: string\n heading?: string\n cell?: string\n}\n\nexport interface MobileRowProps {\n row: FormattedRow[]\n tableVariant: EntityTableProps['tableVariant']\n columnsVariant: EntityTableProps['columnsVariant']\n headingsExist: boolean\n classes?: MobileRowClasses\n}\n\nconst mobileRowConfig = cva('mobile:flex desktop:hidden flex-col gap-2', {\n variants: {\n tableVariant: {\n filled: 'px-4 py-4 odd:bg-color-primary-light-default',\n separator: 'py-4 border-b border-solid border-warm-grey-200 first:border-none'\n }\n }\n})\n\nexport const MobileRow = ({ row, tableVariant, columnsVariant, headingsExist, classes }: MobileRowProps) => {\n return (\n <div className={cn(mobileRowConfig({ tableVariant }), classes?.row)}>\n {row?.map(({ cell, heading }, cellIndex) => (\n <div key={cellIndex} className={cn('grid grid-cols-2 gap-3', { 'grid-cols-1 gap-0': !headingsExist }, classes?.wrapper)}>\n {heading && <div className={cn('mob-body-regular-l text-color-secondary', classes?.heading)}>{heading}</div>}\n <div\n className={cn(\n 'mob-body-regular-l text-color-dark',\n {\n 'font-medium':\n (cellIndex !== 0 && columnsVariant === 'twoCols') ||\n columnsVariant === 'threeCols' ||\n (columnsVariant === 'twoCols' && headingsExist)\n },\n classes?.cell\n )}\n dangerouslySetInnerHTML={{ __html: cell }}\n />\n </div>\n ))}\n </div>\n )\n}\n"],"names":["mobileRowConfig","cva","MobileRow","row","tableVariant","columnsVariant","headingsExist","classes","jsx","cn","cell","heading","cellIndex","jsxs"],"mappings":"2MAwBA,MAAMA,EAAkBC,EAAI,4CAA6C,CACvE,SAAU,CACR,aAAc,CACZ,OAAQ,+CACR,UAAW,mEAAA,CACb,CAEJ,CAAC,EAEYC,EAAY,CAAC,CAAE,IAAAC,EAAK,aAAAC,EAAc,eAAAC,EAAgB,cAAAC,EAAe,QAAAC,KAE1EC,EAAC,MAAA,CAAI,UAAWC,EAAGT,EAAgB,CAAE,aAAAI,CAAA,CAAc,EAAGG,GAAA,YAAAA,EAAS,GAAG,EAC/D,SAAAJ,GAAA,YAAAA,EAAK,IAAI,CAAC,CAAE,KAAAO,EAAM,QAAAC,CAAA,EAAWC,IAC5BC,EAAC,MAAA,CAAoB,UAAWJ,EAAG,yBAA0B,CAAE,oBAAqB,CAACH,CAAA,EAAiBC,GAAA,YAAAA,EAAS,OAAO,EACnH,SAAA,CAAAI,GAAWH,EAAC,OAAI,UAAWC,EAAG,0CAA2CF,GAAA,YAAAA,EAAS,OAAO,EAAI,SAAAI,CAAA,CAAQ,EACtGH,EAAC,MAAA,CACC,UAAWC,EACT,qCACA,CACE,cACGG,IAAc,GAAKP,IAAmB,WACvCA,IAAmB,aAClBA,IAAmB,WAAaC,CAAA,EAErCC,GAAA,YAAAA,EAAS,IAAA,EAEX,wBAAyB,CAAE,OAAQG,CAAA,CAAK,CAAA,CAC1C,GAdQE,CAeV,GAEJ"}