@soul-refiner/design-system 2.14.107 → 2.14.108

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,5 +1,5 @@
1
1
  "use client";
2
- "use strict";var e=require("react/jsx-runtime"),r=require("react"),o=require("next/image"),i=require("styled-components"),n=require("../../atoms/box/box.js"),t=require("../../atoms/typography/heading.js"),s=require("../../atoms/typography/paragraph.js"),l=require("../../actions/rate/rate.js"),a=require("../../feedback/tooltip/tooltip.js"),d=require("../../../icons/basic/video.js"),c=require("../../../icons/basic/pencil.js");require("../../iconography/icon/icon.js");var p=require("../../../icons/arrow/forward_bold.js"),x=require("../../../icons/audio_video/trailer.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../../icons/basic/subtask.js"),require("../../../common/colors.js");var g=h(r),b=h(o);const u={draft:{label:"Draft",bgColor:"rgba(255, 255, 255, 0.9)",dotColor:"#94A3B8"},published:{label:"Published",bgColor:"rgba(255, 255, 255, 0.9)",dotColor:"#22C55E"},"pending-review":{label:"Pending Review",bgColor:"rgba(255, 255, 255, 0.9)",dotColor:"#F59E0B"},"in-review":{label:"In Review",bgColor:"rgba(255, 255, 255, 0.9)",dotColor:"#3B82F6"},"change-required":{label:"Change Required",bgColor:"#FEE2E2",dotColor:"#EF4444"},edited:{label:"Edited",bgColor:"rgba(255, 255, 255, 0.9)",dotColor:"#22C55E"}},$=i.styled.div`
2
+ "use strict";var e=require("react/jsx-runtime"),r=require("react"),o=require("next/image"),i=require("styled-components"),n=require("../../atoms/box/box.js"),t=require("../../atoms/typography/heading.js"),s=require("../../atoms/typography/paragraph.js"),l=require("../../actions/rate/rate.js"),a=require("../../feedback/tooltip/tooltip.js"),d=require("../../../icons/basic/video.js"),c=require("../../../icons/basic/pencil.js");require("../../iconography/icon/icon.js");var p=require("../../../icons/arrow/forward_bold.js"),x=require("../../../icons/audio_video/trailer.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../../icons/basic/subtask.js"),require("../../../common/colors.js");var g=h(r),b=h(o);const u={draft:{label:"Draft",bgColor:"rgba(255, 255, 255, 0.9)",dotColor:"#94A3B8"},published:{label:"Published",bgColor:"rgba(255, 255, 255, 0.9)",dotColor:"#22C55E"},"pending-review":{label:"Pending Review",bgColor:"rgba(255, 255, 255, 0.9)",dotColor:"#F59E0B"},"in-review":{label:"In Review",bgColor:"rgba(255, 255, 255, 0.9)",dotColor:"#3B82F6"},"change-required":{label:"Change Required",bgColor:"#FEE2E2",dotColor:"#EF4444"},edited:{label:"Edited",bgColor:"rgba(255, 255, 255, 0.9)",dotColor:"#22C55E"}},f=i.styled.div`
3
3
  cursor: pointer;
4
4
  display: inline-block;
5
5
  position: relative;
@@ -69,7 +69,7 @@
69
69
  }
70
70
 
71
71
  ${({$sx:e})=>e||""};
72
- `,f=i.styled.figure`
72
+ `,y=i.styled.figure`
73
73
  margin: 0px;
74
74
  border-radius: 16px;
75
75
  overflow: visible;
@@ -78,7 +78,7 @@
78
78
  border: none;
79
79
  gap: 0;
80
80
  line-height: 0;
81
- `,y=i.styled.div`
81
+ `,j=i.styled.div`
82
82
  position: relative;
83
83
  width: 339px;
84
84
  height: 191px;
@@ -102,7 +102,7 @@
102
102
  border-radius: 16px 16px 0 0;
103
103
  background-color: var(--color-page-bg);
104
104
  }
105
- `,j=i.styled.video`
105
+ `,$=i.styled.video`
106
106
  width: 100%;
107
107
  height: 100%;
108
108
  object-fit: cover;
@@ -192,7 +192,7 @@
192
192
  justify-content: space-between;
193
193
  align-items: flex-start;
194
194
  z-index: 3;
195
- `,H=i.styled.div`
195
+ `,q=i.styled.div`
196
196
  display: inline-flex;
197
197
  align-items: center;
198
198
  gap: 6px;
@@ -200,7 +200,7 @@
200
200
  border-radius: 20px;
201
201
  background-color: ${({$bgColor:e})=>e};
202
202
  backdrop-filter: blur(4px);
203
- `,q=i.styled.span`
203
+ `,H=i.styled.span`
204
204
  width: 8px;
205
205
  height: 8px;
206
206
  border-radius: 50%;
@@ -222,4 +222,4 @@
222
222
  &:hover {
223
223
  background-color: var(--color-white);
224
224
  }
225
- `;exports.SimpleCourseCard=({actions:r,content:o,href:i,image:h,numRating:B,priceText:T,price:E,rating:_,subtitle:L,supportLabel:F,supportIcon:I=e.jsx(d.Video,{size:16,color:"white"}),sx:M,title:R,additionalIcons:D,onHoverCardClick:A,trailerUrl:N,onTrailerClick:U,onShareClick:V,status:G,onEditClick:J})=>{const K=!!o,O=!!i,[Q,W]=g.default.useState(!1),X=g.default.useRef(null),Y=e=>{Q&&A&&(e.preventDefault(),A())},Z=()=>{K&&O&&(W(!0),X.current&&N&&X.current.play())},ee=()=>{W(!1),X.current&&(X.current.pause(),X.current.currentTime=0)},re=!i&&(G||J),oe=e.jsxs(e.Fragment,{children:[e.jsxs(f,{className:"normal-card",children:[e.jsxs(y,{children:[e.jsx(b.default,{alt:"",height:191,quality:100,src:h,width:339}),re&&e.jsxs(S,{children:[G&&e.jsxs(H,{$bgColor:u[G].bgColor,$dotColor:u[G].dotColor,children:[e.jsx(q,{$color:u[G].dotColor}),e.jsx(s.P,{$color:"grey-2",$fontSize:12,$lineHeight:16,children:u[G].label})]}),J&&e.jsx(a.Tooltip,{content:"Edit Course",place:"top",children:e.jsx(P,{onClick:e=>{e.preventDefault(),e.stopPropagation(),J()},children:e.jsx(c.Pencil,{size:16,color:"grey-3"})})})]})]}),e.jsx(m,{children:e.jsxs(w,{children:[e.jsxs(n.Box,{$dir:"column",$gap:8,children:[e.jsx(t.H,{$color:"grey-2",$textClampLines:2,sx:"font-weight:700",$fontSize:18,$lineHeight:26,dangerouslySetInnerHTML:{__html:R}}),e.jsx(s.P,{$color:"grey-4",sx:"font-weight:400",$fontSize:12,$lineHeight:16,dangerouslySetInnerHTML:{__html:L}})]}),e.jsxs(n.Box,{$dir:"row",$justify:"space-between",children:[e.jsxs(n.Box,{$align:"center",$dir:"row",$gap:4,children:[F&&e.jsxs(C,{children:[I,e.jsx(s.P,{$color:"white",$fontSize:10,$lineHeight:14,sx:"font-weight:500",children:F})]}),void 0!==_&&e.jsxs(e.Fragment,{children:[e.jsx(s.P,{$color:"grey-4",$fontSize:12,$lineHeight:16,children:_/20}),e.jsx(l.Rate,{isRateable:!1,percent:_,size:"small"})]}),void 0!==B&&e.jsxs(s.P,{$color:"grey-4",$fontSize:12,$lineHeight:16,children:["(",B,")"]})]}),e.jsx(n.Box,{children:e.jsx(s.P,{$color:"grey-2",$fontSize:16,$lineHeight:24,$bold:!0,children:E})})]})]})})]}),K&&N&&e.jsxs(f,{className:"hover-card",children:[e.jsxs(y,{children:[e.jsx(j,{ref:X,muted:!0,loop:!0,playsInline:!0,preload:"auto",children:Array.isArray(N)?N.map((r,o)=>e.jsx("source",{src:r},o)):e.jsx("source",{src:N,type:"video/mp4"})}),e.jsx(v,{})]}),e.jsx(m,{children:e.jsxs(k,{children:[e.jsxs(n.Box,{$align:"center",$dir:"row",$justify:"space-between",$gap:8,children:[e.jsxs(s.P,{$color:"primary-blue-2",$fontSize:16,$lineHeight:24,$bold:!0,children:[T," ",E]}),r&&e.jsx(n.Box,{onClick:e=>{e.preventDefault(),e.stopPropagation()},children:r})]}),e.jsxs(n.Box,{$dir:"column",$gap:4,children:[e.jsx(t.H,{$color:"grey-2",$textClampLines:2,$semiBold:!0,$fontSize:16,$lineHeight:26,dangerouslySetInnerHTML:{__html:R}}),e.jsx(s.P,{$color:"grey-4",$fontSize:12,$lineHeight:16,dangerouslySetInnerHTML:{__html:L}})]}),e.jsx(s.P,{$color:"grey-3",$fontSize:14,$lineHeight:20,$textClampLines:2,dangerouslySetInnerHTML:{__html:o}}),e.jsxs(n.Box,{$align:"center",$dir:"row",$justify:"space-between",children:[e.jsxs(n.Box,{$align:"center",$dir:"row",$gap:8,children:[F&&e.jsxs(C,{children:[I,e.jsx(s.P,{$color:"white",$fontSize:10,$lineHeight:14,sx:"font-weight:500",children:F})]}),void 0!==_&&e.jsxs(e.Fragment,{children:[e.jsx(s.P,{$color:"grey-4",$fontSize:12,$lineHeight:16,children:_/20}),e.jsx(l.Rate,{isRateable:!1,percent:_,size:"small"})]}),void 0!==B&&e.jsxs(s.P,{$color:"grey-4",$fontSize:12,$lineHeight:16,children:["(",B,")"]})]}),e.jsxs(n.Box,{$align:"center",$dir:"row",$gap:8,children:[U&&e.jsx(a.Tooltip,{content:"Trailer",place:"top",children:e.jsx(z,{onClick:e=>{e.preventDefault(),e.stopPropagation(),U()},children:e.jsx(x.Trailer,{size:16})})}),V&&e.jsx(a.Tooltip,{content:"Share",place:"top",children:e.jsx(z,{onClick:e=>{e.preventDefault(),e.stopPropagation(),V()},children:e.jsx(p.ForwardBold,{size:16})})}),D&&D.length>0&&e.jsx(e.Fragment,{children:g.default.Children.toArray(D)})]})]})]})})]})]});return i?e.jsx($,{as:"a",$sx:M,href:i,$hasContent:K,$isClickable:O,onClick:Y,onMouseEnter:Z,onMouseLeave:ee,children:oe}):e.jsx($,{as:"div",$sx:M,$hasContent:K,$isClickable:O,onMouseEnter:Z,onMouseLeave:ee,children:oe})};
225
+ `;exports.SimpleCourseCard=({actions:r,content:o,href:i,image:h,numRating:B,priceText:T,price:E,rating:_,subtitle:L,supportLabel:F,supportIcon:I=e.jsx(d.Video,{size:16,color:"white"}),sx:M,title:R,additionalIcons:D,onHoverCardClick:A,trailerUrl:N,onTrailerClick:U,onShareClick:V,status:G,onEditClick:J})=>{const K=!!o,O=!!i,[Q,W]=g.default.useState(!1),X=g.default.useRef(null),Y=e=>{Q&&A&&(e.preventDefault(),A())},Z=()=>{K&&O&&(W(!0),X.current&&N&&X.current.play())},ee=()=>{W(!1),X.current&&(X.current.pause(),X.current.currentTime=0)},re=!i&&(G||J),oe=e.jsxs(e.Fragment,{children:[e.jsxs(y,{className:"normal-card",children:[e.jsxs(j,{children:[e.jsx(b.default,{alt:"",height:191,quality:100,src:h,width:339}),re&&e.jsxs(S,{children:[G&&e.jsxs(q,{$bgColor:u[G].bgColor,$dotColor:u[G].dotColor,children:[e.jsx(H,{$color:u[G].dotColor}),e.jsx(s.P,{$color:"grey-2",$fontSize:12,$lineHeight:16,children:u[G].label})]}),J&&e.jsx(a.Tooltip,{content:"Edit Course",place:"top",children:e.jsx(P,{onClick:e=>{e.preventDefault(),e.stopPropagation(),J()},children:e.jsx(c.Pencil,{size:16,color:"grey-3"})})})]})]}),e.jsx(m,{children:e.jsxs(w,{children:[e.jsxs(n.Box,{$dir:"column",$gap:8,children:[e.jsx(t.H,{$color:"grey-2",$textClampLines:2,sx:"font-size: 18px !important; font-style: normal; font-weight: 700; line-height: 26px; letter-spacing: -0.252px;",dangerouslySetInnerHTML:{__html:R}}),e.jsx(s.P,{$color:"grey-4",sx:"font-size: 12px !important; font-style: normal; font-weight: 400; line-height: 16px;",dangerouslySetInnerHTML:{__html:L}})]}),e.jsxs(n.Box,{$dir:"row",$justify:"space-between",children:[e.jsxs(n.Box,{$align:"center",$dir:"row",$gap:4,children:[F&&e.jsxs(C,{children:[I,e.jsx(s.P,{$color:"white",$fontSize:10,$lineHeight:14,sx:"font-weight:500",children:F})]}),void 0!==_&&e.jsxs(e.Fragment,{children:[e.jsx(s.P,{$color:"grey-4",$fontSize:12,$lineHeight:16,children:_/20}),e.jsx(l.Rate,{isRateable:!1,percent:_,size:"small"})]}),void 0!==B&&e.jsxs(s.P,{$color:"grey-4",$fontSize:12,$lineHeight:16,children:["(",B,")"]})]}),e.jsx(n.Box,{children:e.jsx(s.P,{$color:"grey-3",sx:"font-size: 14px; font-style: normal; font-weight: 700; line-height: 20px;",children:E})})]})]})})]}),K&&N&&e.jsxs(y,{className:"hover-card",children:[e.jsxs(j,{children:[e.jsx($,{ref:X,muted:!0,loop:!0,playsInline:!0,preload:"auto",children:Array.isArray(N)?N.map((r,o)=>e.jsx("source",{src:r},o)):e.jsx("source",{src:N,type:"video/mp4"})}),e.jsx(v,{})]}),e.jsx(m,{children:e.jsxs(k,{children:[e.jsxs(n.Box,{$align:"center",$dir:"row",$justify:"space-between",$gap:8,children:[e.jsxs(s.P,{$color:"primary-blue-2",$fontSize:16,$lineHeight:24,$bold:!0,children:[T," ",E]}),r&&e.jsx(n.Box,{onClick:e=>{e.preventDefault(),e.stopPropagation()},children:r})]}),e.jsxs(n.Box,{$dir:"column",$gap:4,children:[e.jsx(t.H,{$color:"grey-2",$textClampLines:2,$semiBold:!0,$fontSize:16,$lineHeight:26,dangerouslySetInnerHTML:{__html:R}}),e.jsx(s.P,{$color:"grey-4",$fontSize:12,$lineHeight:16,dangerouslySetInnerHTML:{__html:L}})]}),e.jsx(s.P,{$color:"grey-3",$fontSize:14,$lineHeight:20,$textClampLines:2,dangerouslySetInnerHTML:{__html:o}}),e.jsxs(n.Box,{$align:"center",$dir:"row",$justify:"space-between",children:[e.jsxs(n.Box,{$align:"center",$dir:"row",$gap:8,children:[F&&e.jsxs(C,{children:[I,e.jsx(s.P,{$color:"white",$fontSize:10,$lineHeight:14,sx:"font-weight:500",children:F})]}),void 0!==_&&e.jsxs(e.Fragment,{children:[e.jsx(s.P,{$color:"grey-4",$fontSize:12,$lineHeight:16,children:_/20}),e.jsx(l.Rate,{isRateable:!1,percent:_,size:"small"})]}),void 0!==B&&e.jsxs(s.P,{$color:"grey-4",$fontSize:12,$lineHeight:16,children:["(",B,")"]})]}),e.jsxs(n.Box,{$align:"center",$dir:"row",$gap:8,children:[U&&e.jsx(a.Tooltip,{content:"Trailer",place:"top",children:e.jsx(z,{onClick:e=>{e.preventDefault(),e.stopPropagation(),U()},children:e.jsx(x.Trailer,{size:16})})}),V&&e.jsx(a.Tooltip,{content:"Share",place:"top",children:e.jsx(z,{onClick:e=>{e.preventDefault(),e.stopPropagation(),V()},children:e.jsx(p.ForwardBold,{size:16})})}),D&&D.length>0&&e.jsx(e.Fragment,{children:g.default.Children.toArray(D)})]})]})]})})]})]});return i?e.jsx(f,{as:"a",$sx:M,href:i,$hasContent:K,$isClickable:O,onClick:Y,onMouseEnter:Z,onMouseLeave:ee,children:oe}):e.jsx(f,{as:"div",$sx:M,$hasContent:K,$isClickable:O,onMouseEnter:Z,onMouseLeave:ee,children:oe})};
@@ -1 +1 @@
1
- {"version":3,"file":"simple-course.d.ts","sourceRoot":"","sources":["../../../../../src/components/card/simple-course/simple-course.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,MAAM,MAAM,YAAY,GACpB,OAAO,GACP,WAAW,GACX,gBAAgB,GAChB,WAAW,GACX,iBAAiB,GACjB,QAAQ,CAAC;AAEb,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;IACvC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAsCD,eAAO,MAAM,gBAAgB,8NAqB1B,qBAAqB,4CAgSvB,CAAC"}
1
+ {"version":3,"file":"simple-course.d.ts","sourceRoot":"","sources":["../../../../../src/components/card/simple-course/simple-course.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,MAAM,MAAM,YAAY,GACpB,OAAO,GACP,WAAW,GACX,gBAAgB,GAChB,WAAW,GACX,iBAAiB,GACjB,QAAQ,CAAC;AAEb,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;IACvC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAsCD,eAAO,MAAM,gBAAgB,8NAqB1B,qBAAqB,4CA+RvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soul-refiner/design-system",
3
- "version": "2.14.107",
3
+ "version": "2.14.108",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "license": "MIT",