@soul-refiner/design-system 2.14.67 → 2.14.69
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.
- package/dist/components/card/card.js +1 -1
- package/dist/components/card/course-seats/course-seats.js +72 -0
- package/dist/components/feedback/notification/notification.js +1 -1
- package/dist/components/surfaces/comment/comment.js +2 -2
- package/dist/src/components/card/card.d.ts +3 -2
- package/dist/src/components/card/card.d.ts.map +1 -1
- package/dist/src/components/card/course-seats/course-seats.d.ts +18 -0
- package/dist/src/components/card/course-seats/course-seats.d.ts.map +1 -0
- package/dist/src/components/card/course-seats/index.d.ts +3 -0
- package/dist/src/components/card/course-seats/index.d.ts.map +1 -0
- package/dist/src/components/feedback/notification/notification.d.ts +1 -1
- package/dist/src/components/feedback/notification/notification.d.ts.map +1 -1
- package/dist/src/components/surfaces/comment/comment.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("./action/action.js"),
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("./action/action.js"),s=require("./audio/audio.js"),i=require("./feature/feature.js"),a=require("./person/person.js"),t=require("./price/price.js"),u=require("./regular/regular.js"),o=require("./video/video.js"),d=require("./written/written.js"),j=require("./meeting/meeting.js"),n=require("./course-seats/course-seats.js");exports.Card=({type:p="regular",...c})=>({action:e.jsx(r.ActionCard,{...c}),"audio-episode":e.jsx(s.AudioEpisodeCard,{...c}),feature:e.jsx(i.FeatureCard,{...c}),person:e.jsx(a.PersonCard,{...c}),price:e.jsx(t.PriceCard,{...c}),regular:e.jsx(u.RegularCard,{...c}),"video-episode":e.jsx(o.VideoEpisodeCard,{...c}),"written-episode":e.jsx(d.WrittenEpisodeCard,{...c}),meeting:e.jsx(j.MeetingCard,{...c}),"course-seats":e.jsx(n.CourseSeatsCard,{...c})}[p]);
|
|
@@ -0,0 +1,72 @@
|
|
|
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"),a=require("../../actions/button/button.js"),o=require("../../iconography/avatar/avatar.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=l(r);const n=i.styled.div`
|
|
3
|
+
position: relative;
|
|
4
|
+
display: block;
|
|
5
|
+
box-shadow: var(--elevation-1);
|
|
6
|
+
border-radius: 16px;
|
|
7
|
+
background-color: var(--color-white);
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
transition: all 0.2s ease;
|
|
10
|
+
min-width: 390px;
|
|
11
|
+
|
|
12
|
+
&:hover {
|
|
13
|
+
border: 1px solid var(--color-primary-blue-3);
|
|
14
|
+
transform: translateY(-2px);
|
|
15
|
+
box-shadow: var(--elevation-2);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
${({$sx:e})=>e||""};
|
|
19
|
+
`,x=i.styled.div`
|
|
20
|
+
position: relative;
|
|
21
|
+
width: 100%;
|
|
22
|
+
min-height: 219.375px;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
|
|
25
|
+
img {
|
|
26
|
+
border-radius: 16px 16px 0 0;
|
|
27
|
+
}
|
|
28
|
+
`,p=i.styled.div`
|
|
29
|
+
padding: 8px 8px 16px 8px;
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
gap: 8px;
|
|
33
|
+
`,c=i.styled(s.H)`
|
|
34
|
+
font-size: 18px;
|
|
35
|
+
font-weight: 500;
|
|
36
|
+
color: var(--color-grey-2);
|
|
37
|
+
margin: 0;
|
|
38
|
+
line-height: 26px;
|
|
39
|
+
`,g=i.styled.div`
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
`,h=i.styled.span`
|
|
43
|
+
color: ${({$isOverAssigned:e})=>e?"var(--color-red-3)":"var(--color-grey-2)"};
|
|
44
|
+
font-weight: ${({$isOverAssigned:e})=>e?"600":"500"};
|
|
45
|
+
margin-left: 16px;
|
|
46
|
+
`,v=i.styled.div`
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
flex-wrap: wrap;
|
|
50
|
+
`,u=i.styled.div`
|
|
51
|
+
border: 2px solid var(--color-white);
|
|
52
|
+
border-radius: 50%;
|
|
53
|
+
position: relative;
|
|
54
|
+
`,y=i.styled.div`
|
|
55
|
+
margin-left: -8px;
|
|
56
|
+
width: 32px;
|
|
57
|
+
height: 32px;
|
|
58
|
+
border-radius: 50%;
|
|
59
|
+
background-color: var(--color-grey-8);
|
|
60
|
+
border: 2px solid var(--color-white);
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
font-size: 12px;
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
color: var(--color-grey-3);
|
|
67
|
+
z-index: 1;
|
|
68
|
+
`,f=i.styled.div`
|
|
69
|
+
display: flex;
|
|
70
|
+
gap: 12px;
|
|
71
|
+
margin-top: 8px;
|
|
72
|
+
`;exports.CourseSeatsCard=({courseId:r,courseName:i,alert:s,courseImage:l,assignedSeats:m,totalSeats:j,assignedUsers:b,onManageSeats:w,onAddSeats:$,sx:z})=>e.jsxs(n,{$sx:z,children:[s,e.jsx(x,{children:e.jsx(d.default,{alt:i,src:l,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:m>j,children:[m,"/",j," Available"]})]})}),b.length>0&&e.jsxs(v,{children:[b.slice(0,8).map((r,i)=>e.jsx(u,{children:e.jsx(o.Avatar,{image:r.imageUrl||"/images/default_avatar.png",size:24})},`${r.id}-${i}`)),b.length>8&&e.jsxs(y,{children:["+",b.length-8]})]}),e.jsxs(f,{children:[e.jsx(a.Button,{type:"outlined",size:"small",fluid:!0,onClick:()=>w(r),sx:"font-size: 14px;",children:"Manage Seats"}),e.jsx(a.Button,{type:"primary",fluid:!0,sx:"font-size: 14px;",size:"small",onClick:()=>$(r),children:"Add Seats"})]})]})]});
|
|
@@ -31,4 +31,4 @@
|
|
|
31
31
|
|
|
32
32
|
${e.Styles.flex}
|
|
33
33
|
${({$sx:r})=>r||""}
|
|
34
|
-
`;exports.Notification=({content:o,href:e,onClose:d,sx:p,title:g,type:f})=>{const j={error:r.jsx(a.AlertOctogon,{size:24}),info:r.jsx(u.Information,{size:24}),success:r.jsx(n.AlertCircle,{size:24}),warning:r.jsx(l.AlertTriangle,{size:24})};return r.
|
|
34
|
+
`;exports.Notification=({content:o,href:e,onClose:d,sx:p,title:g,type:f})=>{const j={error:r.jsx(a.AlertOctogon,{size:24}),info:r.jsx(u.Information,{size:24}),success:r.jsx(n.AlertCircle,{size:24}),warning:r.jsx(l.AlertTriangle,{size:24})};return r.jsx(x,{as:e?"a":"output",href:e,$dir:"column",$gap:8,$sx:p,$type:f,children:r.jsxs(s.Box,{$dir:"row",$gap:8,$flex:1,children:[j[f],d&&r.jsx(i.Button,{icon:r.jsx(c.Close,{size:24}),onClick:d,sx:"margin-left: auto;",type:"special"}),r.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[g&&r.jsx(t.P,{as:"span",$semiBold:!0,children:g}),r.jsx(t.P,{as:"span",children:o})]})]})})};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("react"),t=require("styled-components"),o=require("next/link"),
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("react"),t=require("styled-components"),o=require("next/link"),n=require("../../iconography/avatar/avatar.js"),i=require("../../atoms/box/box.js"),s=require("../../atoms/highlighter/highlighter.js"),l=require("../../atoms/typography/paragraph.js"),a=require("../../actions/button/button.js"),c=require("../portal/portal.js"),d=require("../../../common/regex.js"),p=require("../../../common/styles.js"),x=require("../../../icons/basic/emoticon_add.js"),u=require("../../../icons/message/comment.js"),h=require("./helpers.js"),g=require("../../input/responsive-text_area/responsive_text_area.js"),f=require("../../../icons/email/send_text.js"),m=require("../../actions/AccountSelector/selector.js"),j=require("../../feedback/emojiPicker/emoji-picker.js"),y=require("../../feedback/emojiPicker/emoji-reactions.js"),b=require("../../../icons/basic/trash_slash.js"),v=require("../../../icons/security/lock.js"),$=require("../../../icons/basic/eye.js"),w=require("../../../icons/time/calendar_dates.js");function k(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var S=k(r),C=k(t),E=k(o);const P={PRIVATE:"Private",MEETING_MEMBERS:"Meeting",PUBLIC:"Public",PUBLIC_WITH_MEETING:""},B={PRIVATE:e.jsx(v.Lock,{}),MEETING_MEMBERS:e.jsx(w.CalendarDates,{}),PUBLIC:e.jsx($.Eye,{}),PUBLIC_WITH_MEETING:e.jsx(e.Fragment,{})},q=C.default.div`
|
|
3
3
|
max-width: 700px;
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: row;
|
|
@@ -56,4 +56,4 @@
|
|
|
56
56
|
gap: 12px;
|
|
57
57
|
width: 100%;
|
|
58
58
|
padding: 8px 0;
|
|
59
|
-
`;exports.Comment=({avatarTooltipContent:r,avatarTooltipSx:t,content:o,createdDate:p,hasMoreReplies:v,id:$,onComment:w,onReact:k,latestReaction:C,onShowReplies:A,onEdit:U,isEditing:N,setIsEditing:D,dropdown:G,reactionModal:H,reactions:O,replies:F,userImageUri:V,userName:W,userReactions:Y,visibilityIcon:X,customPlaceHolder:J,userProfileUri:K,sx:Q,moveButtonsToLeft:Z=!1,useNewVersion:ee=!1,onDelete:re,visibility:te,shareDropdown:oe,belongsToLoggedUser:
|
|
59
|
+
`;exports.Comment=({avatarTooltipContent:r,avatarTooltipSx:t,content:o,createdDate:p,hasMoreReplies:v,id:$,onComment:w,onReact:k,latestReaction:C,onShowReplies:A,onEdit:U,isEditing:N,setIsEditing:D,dropdown:G,reactionModal:H,reactions:O,replies:F,userImageUri:V,userName:W,userReactions:Y,visibilityIcon:X,customPlaceHolder:J,userProfileUri:K,sx:Q,moveButtonsToLeft:Z=!1,useNewVersion:ee=!1,onDelete:re,visibility:te,shareDropdown:oe,belongsToLoggedUser:ne=!1,disableRedirectionToUserProfile:ie=!1,replyAccountOptions:se,selectedReplyAccount:le,onReplyAccountChange:ae,showAccountSelector:ce=!1,accountSelectorSize:de=32})=>{const[pe,xe]=S.default.useState(!1),[ue,he]=S.default.useState({x:0,y:0}),[ge,fe]=S.default.useState("up"),[me,je]=S.default.useState(!1),[ye,be]=S.default.useState(!1),[ve,$e]=S.default.useState(""),[we,ke]=S.default.useState(o),Se=S.default.useRef(null),[Ce,Ee]=S.default.useState(!1),Pe=S.default.Children.toArray(F);S.default.useEffect(()=>{(N||Ce)&&Se.current&&Se.current.focus()},[N,Ce]);const Be=e=>{e.stopPropagation(),xe(e=>!e),he({y:e.clientY,x:e.clientX}),fe(e.clientY>400?"up":"down")},qe=()=>{A&&A(),be(!0)},Re=h.abbrTimeBeforeDate(p),Te=O&&Object.entries(O).slice(0,5).sort((e,r)=>e[1]<r[1]?1:-1).map(([r,t])=>e.jsx(e.Fragment,{children:e.jsx(y.EmojiReaction,{size:16,emoji:r,isActive:Y?.includes(r),onReact:()=>k(r),showSparkle:r===C,count:t,showCount:!0},$+r)})),Ie=!!Pe?.length&&Pe.length>0,ze=Ie&&Pe.map((r,t)=>{if(!S.default.isValidElement(r))return null;const o=r.props?.id,n=t!==Pe.length-1||v;return e.jsxs(_,{$hasLine:n,children:[r,e.jsx(L,{})]},o)});return e.jsxs(q,{$sx:Q,id:"comment-"+$,$moveButtonsToLeft:Z,children:[e.jsx(n.Avatar,{as:ie?void 0:E.default,href:ie?void 0:K,image:V,size:32,tooltipContent:r,tooltipSx:t}),e.jsxs(i.Box,{$flex:1,$dir:"column",children:[e.jsxs(R,{$hasReplies:Ie||!!v,children:[N||Ce?e.jsx(g.ResponsiveTextArea,{inputStyles:"min-height: 104px;",wrapperStyles:"background:var(--color-grey-9); ",onChange:e=>{ke(e.target.value)},value:we,ref:Se,onBlur:async()=>{ee&&(U&&await U(we,$),Ee(!1))}}):e.jsxs(T,{onClick:()=>ee&&ne?Ee(!0):void 0,children:[e.jsxs(i.Box,{$dir:"row",$justify:"space-between",$align:"center",children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx(l.P,{as:ie?void 0:K?E.default:"span",href:ie?void 0:K,$bold:!0,$color:"grey-2",sx:"text-decoration:none !important; color:var(--color-grey-2) !important;",$fontSize:14,$lineHeight:20,children:W}),ee&&te&&("PUBLIC_WITH_MEETING"===te?e.jsxs(e.Fragment,{children:[B.PUBLIC,e.jsx(l.P,{$fontSize:14,children:P.PUBLIC}),B.MEETING_MEMBERS,e.jsx(l.P,{$fontSize:14,children:P.MEETING_MEMBERS})]}):e.jsxs(e.Fragment,{children:[B[te],e.jsx(l.P,{$fontSize:14,children:P[te]})]}))]}),ee&&ne?e.jsx(b.TrashSlash,{sx:"cursor: pointer;",onClick:e=>{e.stopPropagation(),e.preventDefault(),re&&re()}}):G]}),e.jsx(l.P,{sx:"white-space: pre-line;letter-spacing: -0.176px; word-break: break-word;",children:e.jsx(s.Highlighter,{highlightRender:r=>e.jsx(l.P,{as:"span",$color:"primary-blue-2",children:e.jsx(E.default,{href:r,target:"_blank",children:r})}),seperator:d.URL_REGEX,text:o})})]}),e.jsxs(i.Box,{$align:"flex-start",$dir:"row",$display:"flex",$gap:16,sx:"margin: 8px 0px; position: relative;",children:[N?e.jsxs(i.Box,{$display:"flex",$align:"center",$justify:"space-between",$gap:6,sx:"margin-top: 8px; width: 100%;",children:[e.jsx(x.Emoticon,{color:"primary-blue-2",onClick:Be,size:24,sx:`cursor: pointer; flex-shrink: 0;\n ${!Z&&"margin-right: auto;"}\n `}),e.jsx(a.Button,{onClick:()=>{D&&D(!N),ke(o)},sx:`background-color: transparent; border: none; box-shadow: none; color: var(--color-primary-blue-2);\n ${Z?"margin-left: 20px;":"margin-left: auto;"}\n &:hover, &:focus {\n border: none;\n outline: none;\n }\n `,size:"small",type:"outlined",children:"Cancel"}),e.jsx(a.Button,{onClick:()=>{U&&U(we,$),D&&D(!1)},size:"small",type:"primary",children:"Save"})]}):e.jsxs(e.Fragment,{children:[e.jsx(x.Emoticon,{color:"primary-blue-2",onClick:Be,size:24,sx:" cursor: pointer; flex-shrink: 0;"}),e.jsx(u.Comment,{color:"primary-blue-2",onClick:()=>je(e=>!e),size:24,sx:"border-radius: 50%; cursor: pointer; flex-shrink: 0;"}),e.jsx(l.P,{$color:"grey-7",children:"•"}),e.jsx(l.P,{$color:"grey-4",$fontSize:12,$lineHeight:24,sx:"flex-shrink: 0;",children:Re}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",marginLeft:"auto",width:"100%"},children:[e.jsxs(i.Box,{$display:"flex",$flow:"row wrap",$justify:"flex-end",$align:"flex-end",$gap:6,sx:` \n margin-left: auto;\n @media (max-width: 500px) {\n max-width: 100%;\n }\n ${Te?.length?"margin-bottom: 12px;":""}\n `,children:[Te,H]}),ee&&oe]})]}),pe&&e.jsx(c.Portal,{children:e.jsx(I,{$pickerOrientation:ge,$top:ue.y,$left:ue.x,children:e.jsx(j.CustomEmojiPicker,{open:pe,trigger:e.jsx(e.Fragment,{}),onSelect:({native:e})=>{k(e),xe(!1)},onClickOutside:()=>xe(!1)})})})]})]}),Ie&&ye&&e.jsx(z,{children:ze}),!ye&&!v&&Ie&&e.jsx(z,{children:e.jsxs(_,{$hasLine:!1,children:[e.jsx(a.Button,{onClick:qe,size:"small",sx:"color: var(--color-grey-3);",type:"text",children:"show replies"}),e.jsx(L,{})]})}),v&&e.jsx(z,{children:e.jsxs(_,{$hasLine:!1,children:[e.jsx(a.Button,{onClick:qe,size:"small",sx:"color: var(--color-grey-3);",type:"text",children:"show more replies"}),e.jsx(L,{})]})}),me&&e.jsxs(M,{children:[ce&&se&&ae?e.jsx(m.AccountSelector,{selectedOption:le??null,options:se,onOptionChange:ae,size:de,showChevron:se.length>1}):e.jsx(n.Avatar,{as:ie?void 0:E.default,href:ie?void 0:K,image:V,size:32,tooltipContent:r,tooltipSx:t}),e.jsx(g.ResponsiveTextArea,{bg:"var(--color-grey-10)",value:ve,onChange:e=>{$e(e.target.value)},placeholder:J||"Write a reply",maxCharacters:1e3,wrapperStyles:"margin: 16px 0; width: 100%;",actionComponent:e.jsxs(i.Box,{sx:"margin: auto 0 5px 0px;",$align:"center",$justify:"center",$gap:8,children:[X,e.jsx(a.Button,{disabled:!ve.length,icon:e.jsx(f.SendText,{}),onClick:e=>{e.stopPropagation(),e.preventDefault(),w(ve),$e("")},sx:"\n justify-content: center; \n background-color: var(--color-primary-blue-2);\n align-items: center; \n height: 40px;\n width: 40px;\n cursor: pointer;\n border: none;\n box-shadow: none;\n svg {\n fill: white;\n }\n &:disabled {\n svg {\n fill: var(--color-grey-7);\n }\n border: none !important;\n background-color: var(--color-grey-1);\n }\n ",type:"secondary"})]}),inputStyles:"font-size: 14px;"})]})]})]})};
|
|
@@ -8,8 +8,9 @@ import { RegularCardProps } from './regular/regular';
|
|
|
8
8
|
import { VideoEpisodeCardProps } from './video/video';
|
|
9
9
|
import { WrittenEpisodeCardProps } from './written/written';
|
|
10
10
|
import { MeetingCardProps } from './meeting/meeting';
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
import { CourseSeatsCardProps } from './course-seats/course-seats';
|
|
12
|
+
type CardType = 'action' | 'audio-episode' | 'feature' | 'person' | 'price' | 'regular' | 'video-episode' | 'written-episode' | 'meeting' | 'course-seats';
|
|
13
|
+
export type CardProps = (ActionCardProps | AudioEpisodeCardProps | FeatureCardProps | PersonCardProps | PriceCardProps | RegularCardProps | VideoEpisodeCardProps | WrittenEpisodeCardProps | MeetingCardProps | CourseSeatsCardProps) & {
|
|
13
14
|
type: CardType;
|
|
14
15
|
};
|
|
15
16
|
export declare const Card: ({ type, ...rest }: CardProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../src/components/card/card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,KAAK,QAAQ,GACT,QAAQ,GACR,eAAe,GACf,SAAS,GACT,QAAQ,GACR,OAAO,GACP,SAAS,GACT,eAAe,GACf,iBAAiB,GACjB,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../src/components/card/card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,KAAK,QAAQ,GACT,QAAQ,GACR,eAAe,GACf,SAAS,GACT,QAAQ,GACR,OAAO,GACP,SAAS,GACT,eAAe,GACf,iBAAiB,GACjB,SAAS,GACT,cAAc,CAAC;AAEnB,MAAM,MAAM,SAAS,GAAG,CACpB,eAAe,GACf,qBAAqB,GACrB,gBAAgB,GAChB,eAAe,GACf,cAAc,GACd,gBAAgB,GAChB,qBAAqB,GACrB,uBAAuB,GACvB,gBAAgB,GAChB,oBAAoB,CACvB,GAAG;IACF,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,IAAI,sBAAmC,SAAS,uEAiB5D,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CourseSeatsCardProps {
|
|
3
|
+
courseId: string;
|
|
4
|
+
courseName: string;
|
|
5
|
+
courseImage: string;
|
|
6
|
+
assignedSeats: number;
|
|
7
|
+
totalSeats: number;
|
|
8
|
+
alert: React.ReactNode;
|
|
9
|
+
assignedUsers: {
|
|
10
|
+
id: string;
|
|
11
|
+
imageUrl: string;
|
|
12
|
+
}[];
|
|
13
|
+
onManageSeats: (courseId: string) => void;
|
|
14
|
+
onAddSeats: (courseId: string) => void;
|
|
15
|
+
sx?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const CourseSeatsCard: ({ courseId, courseName, alert, courseImage, assignedSeats, totalSeats, assignedUsers, onManageSeats, onAddSeats, sx, }: CourseSeatsCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=course-seats.d.ts.map
|
|
@@ -0,0 +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;AAS1B,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,4CAkEtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/card/course-seats/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,YAAY,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -4,7 +4,7 @@ export interface NotificationProps {
|
|
|
4
4
|
href?: string;
|
|
5
5
|
onClose?: () => void;
|
|
6
6
|
sx?: string;
|
|
7
|
-
title
|
|
7
|
+
title?: string;
|
|
8
8
|
type: NotificationTypes;
|
|
9
9
|
}
|
|
10
10
|
export declare const Notification: ({ content, href, onClose, sx, title, type, }: NotificationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/notification/notification.tsx"],"names":[],"mappings":"AAeA,KAAK,iBAAiB,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAElE,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/notification/notification.tsx"],"names":[],"mappings":"AAeA,KAAK,iBAAiB,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAElE,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,iDAOtB,iBAAiB,4CAuCnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../../../src/components/surfaces/comment/comment.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAwB1B,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAI/C,KAAK,UAAU,GACX,QAAQ,GACR,SAAS,GACT,iBAAiB,GACjB,qBAAqB,CAAC;AAE1B,MAAM,WAAW,YAAY;IAC3B,oBAAoB,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,IAAI,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,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