@soul-refiner/design-system 2.14.70 → 2.14.71
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,18 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("next/image"),i=require("styled-components"),s=require("../../atoms/typography/heading.js"),t=require("../../atoms/typography/paragraph.js"),
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("next/image"),i=require("styled-components"),s=require("../../atoms/typography/heading.js"),t=require("../../atoms/typography/paragraph.js"),l=require("../../actions/button/button.js"),a=require("../../iconography/avatar/avatar.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=o(r);const n=i.styled.div`
|
|
3
3
|
position: relative;
|
|
4
|
-
display:
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
5
6
|
box-shadow: var(--elevation-1);
|
|
6
7
|
border-radius: 16px;
|
|
7
8
|
background-color: var(--color-white);
|
|
8
9
|
overflow: hidden;
|
|
9
10
|
transition: all 0.2s ease;
|
|
10
11
|
min-width: 390px;
|
|
12
|
+
height: 100%;
|
|
11
13
|
|
|
12
14
|
&:hover {
|
|
13
15
|
border: 1px solid var(--color-primary-blue-3);
|
|
14
|
-
transform: translateY(-
|
|
15
|
-
box-shadow: var(--elevation-2);
|
|
16
|
+
transform: translateY(-1px);
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
${({$sx:e})=>e||""};
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
width: 100%;
|
|
22
23
|
min-height: 219.375px;
|
|
23
24
|
overflow: hidden;
|
|
25
|
+
flex-shrink: 0;
|
|
24
26
|
|
|
25
27
|
img {
|
|
26
28
|
border-radius: 16px 16px 0 0;
|
|
@@ -30,6 +32,7 @@
|
|
|
30
32
|
display: flex;
|
|
31
33
|
flex-direction: column;
|
|
32
34
|
gap: 8px;
|
|
35
|
+
flex: 1;
|
|
33
36
|
`,c=i.styled(s.H)`
|
|
34
37
|
font-size: 18px;
|
|
35
38
|
font-weight: 500;
|
|
@@ -43,11 +46,16 @@
|
|
|
43
46
|
color: ${({$isOverAssigned:e})=>e?"var(--color-red-3)":"var(--color-grey-2)"};
|
|
44
47
|
font-weight: ${({$isOverAssigned:e})=>e?"600":"500"};
|
|
45
48
|
margin-left: 16px;
|
|
46
|
-
`,
|
|
49
|
+
`,f=i.styled.div`
|
|
50
|
+
min-height: 32px;
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: flex-start;
|
|
53
|
+
flex: 1;
|
|
54
|
+
`,u=i.styled.div`
|
|
47
55
|
display: flex;
|
|
48
56
|
align-items: center;
|
|
49
57
|
flex-wrap: wrap;
|
|
50
|
-
`,
|
|
58
|
+
`,v=i.styled.div`
|
|
51
59
|
border: 2px solid var(--color-white);
|
|
52
60
|
border-radius: 50%;
|
|
53
61
|
position: relative;
|
|
@@ -65,8 +73,8 @@
|
|
|
65
73
|
font-weight: 600;
|
|
66
74
|
color: var(--color-grey-3);
|
|
67
75
|
z-index: 1;
|
|
68
|
-
`,
|
|
76
|
+
`,m=i.styled.div`
|
|
69
77
|
display: flex;
|
|
70
78
|
gap: 12px;
|
|
71
|
-
margin-top:
|
|
72
|
-
`;exports.CourseSeatsCard=({courseId:r,courseName:i,alert:s,courseImage:
|
|
79
|
+
margin-top: auto;
|
|
80
|
+
`;exports.CourseSeatsCard=({courseId:r,courseName:i,alert:s,courseImage:o,assignedSeats:j,totalSeats:b,assignedUsers:w,onManageSeats:$,onAddSeats:z,sx:S})=>e.jsxs(n,{$sx:S,children:[s,e.jsx(x,{children:e.jsx(d.default,{alt:i,src:o,fill:!0,style:{objectFit:"cover"}})}),e.jsxs(p,{children:[e.jsx(c,{children:i}),e.jsx(g,{children:e.jsxs(t.P,{$fontSize:14,$color:"grey-3",children:["Seat:",e.jsxs(h,{$isOverAssigned:j>b,children:[j,"/",b," Available"]})]})}),e.jsx(f,{children:w.length>0&&e.jsxs(u,{children:[w.slice(0,8).map((r,i)=>e.jsx(v,{children:e.jsx(a.Avatar,{image:r.imageUrl||"/images/default_avatar.png",size:24})},`${r.id}-${i}`)),w.length>8&&e.jsxs(y,{children:["+",w.length-8]})]})}),e.jsxs(m,{children:[e.jsx(l.Button,{type:"outlined",size:"small",fluid:!0,onClick:()=>$(r),sx:"font-size: 14px;",children:"Manage Seats"}),e.jsx(l.Button,{type:"primary",fluid:!0,sx:"font-size: 14px;",size:"small",onClick:()=>z(r),children:"Add Seats"})]})]})]});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course-seats.d.ts","sourceRoot":"","sources":["../../../../../src/components/card/course-seats/course-seats.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"course-seats.d.ts","sourceRoot":"","sources":["../../../../../src/components/card/course-seats/course-seats.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,aAAa,EAAE;QACb,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,EAAE,MAAM,CAAC;KAClB,EAAE,CAAC;IACJ,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,eAAe,2HAWzB,oBAAoB,4CAoEtB,CAAC"}
|