@soul-refiner/design-system 2.14.164 → 2.14.166
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/audio/audio-course.js +85 -0
- package/dist/components/card/card.js +1 -1
- package/dist/components/card/video/video-course.js +86 -0
- package/dist/components/editor/simple_editor/navbar.js +3 -3
- package/dist/src/components/card/audio/audio-course.d.ts +19 -0
- package/dist/src/components/card/audio/audio-course.d.ts.map +1 -0
- package/dist/src/components/card/card.d.ts +4 -2
- package/dist/src/components/card/card.d.ts.map +1 -1
- package/dist/src/components/card/video/video-course.d.ts +19 -0
- package/dist/src/components/card/video/video-course.d.ts.map +1 -0
- package/dist/src/components/editor/simple_editor/navbar.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),i=require("react"),r=require("next/image"),t=require("styled-components"),a=require("../../atoms/box/box.js"),o=require("../../atoms/typography/heading.js"),s=require("../../atoms/typography/paragraph.js"),n=require("../../actions/rate/rate.js"),l=require("../../../icons/shopping/cart_filled.js"),x=require("../styles.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=d(i),c=d(r);const h=t.styled.a`
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
display: block;
|
|
5
|
+
position: relative;
|
|
6
|
+
z-index: 5;
|
|
7
|
+
user-select: none;
|
|
8
|
+
height: 228px;
|
|
9
|
+
width: 213px;
|
|
10
|
+
transition: transform 0.3s;
|
|
11
|
+
|
|
12
|
+
figure {
|
|
13
|
+
transition: width 0.3s;
|
|
14
|
+
width: 213px;
|
|
15
|
+
${({$hasPurchaseText:e})=>e?"background: linear-gradient(180deg, rgba(0, 0, 0, 0.70) 25.1px, rgba(0, 0, 0, 0.00) 56px);":""}
|
|
16
|
+
|
|
17
|
+
img {
|
|
18
|
+
box-shadow: var(--elevation-3);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:hover {
|
|
23
|
+
transform: translate(-34px, -55px);
|
|
24
|
+
z-index: 6;
|
|
25
|
+
|
|
26
|
+
.not-hover {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.thumbnail {
|
|
31
|
+
border-radius: 16px 16px 0px 0px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
figure {
|
|
35
|
+
position: absolute;
|
|
36
|
+
width: 280px;
|
|
37
|
+
max-width: 280px;
|
|
38
|
+
aspect-ratio: 280 / 434;
|
|
39
|
+
box-shadow: var(--elevation-3);
|
|
40
|
+
background: linear-gradient(
|
|
41
|
+
0deg,
|
|
42
|
+
#ffffff 50%,
|
|
43
|
+
rgba(255, 255, 255, 0.85) 55%,
|
|
44
|
+
rgba(255, 255, 255, 0.1) 80%
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
img {
|
|
48
|
+
box-shadow: none;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
figcaption {
|
|
53
|
+
display: flex;
|
|
54
|
+
margin-top: -80px;
|
|
55
|
+
padding: 24px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
${({$sx:e})=>e||""};
|
|
60
|
+
`,g=t.styled.figure`
|
|
61
|
+
margin: 0px;
|
|
62
|
+
border-radius: 16px;
|
|
63
|
+
|
|
64
|
+
.thumbnail {
|
|
65
|
+
border-radius: 16px;
|
|
66
|
+
object-fit: cover;
|
|
67
|
+
position: relative;
|
|
68
|
+
z-index: -1;
|
|
69
|
+
width: 100%;
|
|
70
|
+
height: 228px;
|
|
71
|
+
aspect-ratio: 228 / 228;
|
|
72
|
+
}
|
|
73
|
+
`,u=t.styled.figcaption`
|
|
74
|
+
display: none;
|
|
75
|
+
flex-flow: column nowrap;
|
|
76
|
+
gap: 8px;
|
|
77
|
+
padding: 8px;
|
|
78
|
+
width: 100%;
|
|
79
|
+
position: relative;
|
|
80
|
+
box-sizing: border-box;
|
|
81
|
+
`,$=t.styled.div`
|
|
82
|
+
position: absolute;
|
|
83
|
+
top: 8px;
|
|
84
|
+
right: 8px;
|
|
85
|
+
`;exports.AudioCourseCard=({actions:i,actionDropdown:r,content:t,cta:d,href:f,image:b,logo:m,numRating:j,purchaseText:y,rating:w,subtitle:v,supportLabel:q,sx:z,title:P})=>e.jsx(h,{$sx:z,href:f,$hasPurchaseText:!!y,children:e.jsxs(g,{children:[r&&e.jsx($,{children:r}),!!y&&e.jsxs(x.PurchaseTextWrapper,{className:"not-hover",children:[e.jsx(l.CartFilled,{color:"yellow-5",size:24}),e.jsx(s.P,{$bold:!0,$color:"white",children:y})]}),e.jsx(c.default,{alt:"",className:"thumbnail",height:228,quality:100,src:b,width:228}),e.jsxs(u,{children:[e.jsx(a.Box,{$display:"block",children:d}),e.jsxs(a.Box,{$align:"center",$dir:"row",$gap:16,children:[m,e.jsxs(a.Box,{$dir:"column",$gap:4,sx:"width: calc(100% - 56px);",children:[e.jsx(o.H,{$color:"grey-2",$semiBold:!0,$fontSize:18,$textClampLines:1,children:P}),e.jsxs(s.P,{$color:"grey-4",$fontSize:12,$lineHeight:16,$textClampLines:1,$sx:"display: flex; gap: 8px;",children:[v,q&&e.jsx(s.P,{as:"span",$color:"grey-4",$fontSize:12,$lineHeight:16,sx:"display: inline-block; flex: 1; text-align: right;",children:q})]})]})]}),e.jsx(s.P,{$color:"grey-5",$fontSize:14,$lineHeight:20,$mediumBold:!0,$textClampLines:6,dangerouslySetInnerHTML:{__html:t}}),e.jsxs(a.Box,{$align:"center",$dir:"row",children:[e.jsx(n.Rate,{isRateable:!1,percent:w,size:"small"}),e.jsxs(s.P,{$color:"grey-4",$fontSize:12,$lineHeight:16,sx:"margin: 0px auto 0px 4px;",children:["(",j,")"]}),e.jsx(a.Box,{$align:"center",$dir:"row",$gap:8,children:p.default.Children.toArray(i)})]})]})]})});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("./action/action.js"),s=require("./audio/audio.js"),i=require("./feature/feature.js"),
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("./action/action.js"),s=require("./audio/audio.js"),i=require("./audio/audio-course.js"),o=require("./feature/feature.js"),u=require("./person/person.js"),a=require("./price/price.js"),d=require("./regular/regular.js"),t=require("./video/video.js"),j=require("./video/video-course.js"),n=require("./written/written.js"),c=require("./meeting/meeting.js"),C=require("./course-seats/course-seats.js"),p=require("./simple-course/simple-course.js"),x=require("./simple-course/horizontal-course-card.js"),l=require("./learning-course/learning-course.js");exports.Card=({type:q="regular",...g})=>({action:e.jsx(r.ActionCard,{...g}),"audio-course":e.jsx(i.AudioCourseCard,{...g}),"audio-episode":e.jsx(s.AudioEpisodeCard,{...g}),feature:e.jsx(o.FeatureCard,{...g}),person:e.jsx(u.PersonCard,{...g}),price:e.jsx(a.PriceCard,{...g}),regular:e.jsx(d.RegularCard,{...g}),"video-course":e.jsx(j.VideoCourseCard,{...g}),"video-episode":e.jsx(t.VideoEpisodeCard,{...g}),"written-episode":e.jsx(n.WrittenEpisodeCard,{...g}),meeting:e.jsx(c.MeetingCard,{...g}),"course-seats":e.jsx(C.CourseSeatsCard,{...g}),"simple-course":e.jsx(p.SimpleCourseCard,{...g}),"horizontal-course":e.jsx(x.HorizontalCourseCard,{...g}),"learning-course":e.jsx(l.LearningCourseCard,{...g})}[q]);
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),i=require("react"),r=require("next/image"),t=require("styled-components"),a=require("../../atoms/box/box.js"),o=require("../../atoms/typography/heading.js"),n=require("../../atoms/typography/paragraph.js"),s=require("../../actions/rate/rate.js"),l=require("../../../icons/shopping/cart_filled.js"),d=require("../styles.js");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=x(i),h=x(r);const c=t.styled.a`
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
display: block;
|
|
5
|
+
position: relative;
|
|
6
|
+
z-index: 1;
|
|
7
|
+
user-select: none;
|
|
8
|
+
height: 213px;
|
|
9
|
+
width: 379px;
|
|
10
|
+
transition: transform 0.3s;
|
|
11
|
+
|
|
12
|
+
figure {
|
|
13
|
+
transition: width 0.3s;
|
|
14
|
+
width: 379px;
|
|
15
|
+
${({$hasPurchaseText:e})=>e?"background: linear-gradient(180deg, rgba(0, 0, 0, 0.70) 25.1px, rgba(0, 0, 0, 0.00) 56px);":""}
|
|
16
|
+
|
|
17
|
+
img {
|
|
18
|
+
box-shadow: var(--elevation-3);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@media (min-width: 768px) {
|
|
23
|
+
&:hover {
|
|
24
|
+
transform: translate(-13px, -55px);
|
|
25
|
+
z-index: 6;
|
|
26
|
+
|
|
27
|
+
.not-hover {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.thumbnail {
|
|
32
|
+
border-radius: 16px 16px 0px 0px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
figure {
|
|
36
|
+
position: absolute;
|
|
37
|
+
width: 406px;
|
|
38
|
+
box-shadow: var(--elevation-3);
|
|
39
|
+
background: linear-gradient(
|
|
40
|
+
0deg,
|
|
41
|
+
#ffffff 50%,
|
|
42
|
+
rgba(255, 255, 255, 0.85) 55%,
|
|
43
|
+
rgba(255, 255, 255, 0.1) 80%
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
img {
|
|
47
|
+
box-shadow: none;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
figcaption {
|
|
52
|
+
display: flex;
|
|
53
|
+
margin-top: -40px;
|
|
54
|
+
padding: 24px;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
${({$sx:e})=>e||""};
|
|
60
|
+
`,g=t.styled.figure`
|
|
61
|
+
max-width: 410px;
|
|
62
|
+
width: max-content;
|
|
63
|
+
margin: 0px;
|
|
64
|
+
border-radius: 16px;
|
|
65
|
+
|
|
66
|
+
.thumbnail {
|
|
67
|
+
position: relative;
|
|
68
|
+
object-fit: cover;
|
|
69
|
+
z-index: -1;
|
|
70
|
+
width: 100%;
|
|
71
|
+
aspect-ratio: 379 / 213;
|
|
72
|
+
height: 213px;
|
|
73
|
+
border-radius: 16px;
|
|
74
|
+
}
|
|
75
|
+
`,u=t.styled.figcaption`
|
|
76
|
+
display: none;
|
|
77
|
+
flex-flow: column nowrap;
|
|
78
|
+
gap: 8px;
|
|
79
|
+
padding: 8px;
|
|
80
|
+
position: relative;
|
|
81
|
+
width: 100%;
|
|
82
|
+
`,m=t.styled.div`
|
|
83
|
+
position: absolute;
|
|
84
|
+
top: 8px;
|
|
85
|
+
right: 8px;
|
|
86
|
+
`;exports.VideoCourseCard=({actions:i,actionDropdown:r,content:t,cta:x,href:$,image:f,logo:b,numRating:j,purchaseText:y,rating:w,subtitle:v,supportLabel:q,sx:z,title:H})=>e.jsx(c,{$sx:z,href:$,$hasPurchaseText:!!y,children:e.jsxs(g,{children:[r&&e.jsx(m,{children:r}),!!y&&e.jsxs(d.PurchaseTextWrapper,{className:"not-hover",children:[e.jsx(l.CartFilled,{color:"yellow-5",size:24}),e.jsx(n.P,{$bold:!0,$color:"white",children:y})]}),e.jsx(h.default,{alt:"",className:"thumbnail",height:213,quality:100,src:f,width:379}),e.jsxs(u,{children:[e.jsx(a.Box,{$display:"block",children:x}),e.jsxs(a.Box,{$align:"center",$dir:"row",$gap:16,children:[b,e.jsxs(a.Box,{$dir:"column",$gap:4,sx:"max-width: 60%;",children:[e.jsx(o.H,{$color:"grey-2",$textClampLines:1,$semiBold:!0,$fontSize:18,dangerouslySetInnerHTML:{__html:H}}),e.jsx(n.P,{$color:"grey-4",$fontSize:12,$lineHeight:16,dangerouslySetInnerHTML:{__html:v}})]}),q&&e.jsx(n.P,{$color:"grey-4",$fontSize:12,$lineHeight:16,sx:"margin-left: auto; align-self: flex-end; margin-bottom: 2.5px;",children:q})]}),e.jsx(n.P,{$color:"grey-5",$fontSize:14,$lineHeight:20,$mediumBold:!0,$textClampLines:4,dangerouslySetInnerHTML:{__html:t}}),e.jsxs(a.Box,{$align:"center",$dir:"row",children:[e.jsx(s.Rate,{isRateable:!1,percent:w,size:"small"}),e.jsxs(n.P,{$color:"grey-4",$fontSize:12,$lineHeight:16,sx:"margin: 0px auto 0px 4px;",children:["(",j,")"]}),e.jsx(a.Box,{$align:"center",$dir:"row",$gap:8,children:p.default.Children.toArray(i)})]})]})]})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("styled-components"),n=require("@udecode/plate-common"),o=require("@udecode/plate-media"),i=require("../../feedback/tooltip/tooltip.js"),
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("styled-components"),n=require("@udecode/plate-common"),o=require("@udecode/plate-media"),i=require("@udecode/plate-link"),c=require("../../feedback/tooltip/tooltip.js"),s=require("../navbar/alignment_dropdown.js"),l=require("../navbar/style_dropdown.js"),d=require("../../../icons/basic/bold.js"),a=require("../../../icons/basic/image.js"),u=require("../../../icons/basic/italic.js"),p=require("../../../icons/basic/link.js"),x=require("../../../icons/text/list_ordered.js"),j=require("../../../icons/text/list_unordered.js"),g=require("../../../icons/arrow/redo.js"),h=require("../../../icons/basic/underline.js"),f=require("../../../icons/arrow/undo.js"),y=require("../../../icons/audio_video/microphone.js"),v=require("../constants.js"),E=require("../styles/menu_button.js");function M(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var k=M(t);const T="undefined"!=typeof window?window.SpeechRecognition||window.webkitSpeechRecognition:void 0,m=r.styled.nav`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: 12px;
|
|
4
4
|
justify-content: center;
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
align-items: center;
|
|
16
16
|
width: fit-content;
|
|
17
17
|
flex-shrink: 0;
|
|
18
|
-
`,
|
|
18
|
+
`,L=r.styled.div`
|
|
19
19
|
width: 1px;
|
|
20
20
|
height: 28px;
|
|
21
21
|
background-color: var(--color-grey-9);
|
|
22
|
-
`;exports.EditorBar=({handleUploadImage:t,showLink:r=!0,showImage:M=!0})=>{const
|
|
22
|
+
`;exports.EditorBar=({handleUploadImage:t,showLink:r=!0,showImage:M=!0})=>{const R=n.useEditorRef("main"),b=k.default.useRef(null),[q,A]=k.default.useState(!1),_=k.default.useRef(null),B=k.default.useRef(""),N=n.useEditorSelector(e=>n.isMarkActive(e,v.MARK_BOLD),[]),I=n.useEditorSelector(e=>n.isMarkActive(e,v.MARK_ITALIC),[]),C=n.useEditorSelector(e=>n.isMarkActive(e,v.MARK_UNDERLINE),[]),S=n.useEditorSelector(e=>n.someNode(e,{match:{type:n.getPluginType(e,v.ELEMENT_OL)}}),[]),U=n.useEditorSelector(e=>n.someNode(e,{match:{type:n.getPluginType(e,v.ELEMENT_UL)}}),[]),z=k.default.useRef(R.selection);k.default.useEffect(()=>{R.selection&&(z.current=R.selection)},[R.selection]),k.default.useEffect(()=>()=>{_.current&&(_.current.stop(),_.current=null)},[]);const $=k.default.useCallback(e=>{if(!e)return;const t=z.current;t?(R.select(t),R.insertText(e+" ")):n.insertNode(R,{type:v.ELEMENT_PARAGRAPH,children:[{text:e+" "}]})},[R]);return e.jsxs(m,{"aria-label":"editor-navigation",children:[e.jsxs(w,{children:[e.jsx(c.Tooltip,{content:"Undo",place:"top",children:e.jsx(E.MenuButton,{$active:!1,onClick:()=>R.undo(),children:e.jsx(f.Undo,{size:24,color:"grey-5"})})}),e.jsx(c.Tooltip,{content:"Redo",place:"top",children:e.jsx(E.MenuButton,{$active:!1,onClick:()=>R.redo(),children:e.jsx(g.Redo,{size:24,color:"grey-5"})})})]}),e.jsx(L,{}),e.jsx(w,{children:e.jsx(l.StyleDropdown,{editorRef:R})}),e.jsx(L,{}),e.jsx(w,{children:e.jsx(E.MenuButton,{$active:!1,as:"div",children:e.jsx(s.AlignmentDropdown,{editorRef:R})})}),e.jsx(L,{}),e.jsxs(w,{children:[e.jsx(c.Tooltip,{content:"Bold",place:"top",children:e.jsx(E.MenuButton,{$active:N,onClick:()=>{R&&n.toggleMark(R,{key:v.MARK_BOLD})},children:e.jsx(d.Bold,{size:24,color:"grey-5"})})}),e.jsx(c.Tooltip,{content:"Italic",place:"top",children:e.jsx(E.MenuButton,{$active:I,onClick:()=>{R&&n.toggleMark(R,{key:v.MARK_ITALIC})},children:e.jsx(u.Italic,{size:24,color:"grey-5"})})}),e.jsx(c.Tooltip,{content:"Underline",place:"top",children:e.jsx(E.MenuButton,{$active:C,onClick:()=>{R&&n.toggleMark(R,{key:v.MARK_UNDERLINE})},children:e.jsx(h.Underline,{size:24,color:"grey-5"})})})]}),e.jsx(L,{}),e.jsxs(w,{children:[r&&e.jsx(c.Tooltip,{content:"Link",place:"top",children:e.jsx(E.MenuButton,{$active:!1,onClick:()=>{R&&i.triggerFloatingLink(R,{focused:!0})},children:e.jsx(p.Link,{size:24,color:"grey-5"})})}),M&&e.jsx(c.Tooltip,{content:"Image",place:"top",children:e.jsx(E.MenuButton,{$active:!1,as:"label",onChange:async()=>{const e=b.current?.files;if(!e)return;const r=await t(e);r&&(o.insertImage(R,r),n.insertNode(R,{type:v.ELEMENT_PARAGRAPH,children:[{text:" "}]}))},children:e.jsxs("div",{children:[e.jsx("input",{accept:"image/*",ref:b,style:{display:"none"},type:"file"}),e.jsx(a.Image,{size:24,color:"grey-5"})]})})}),T&&e.jsx(c.Tooltip,{content:q?"Stop and insert speech":"Speech to text",place:"top",children:e.jsx(E.MenuButton,{$active:q,onClick:()=>{if(!R)return;if(q)return _.current?void _.current.stop():void A(!1);if(_.current&&!q&&(_.current.stop(),_.current=null),!T)return;B.current="";const e=new T;e.continuous=!0,e.interimResults=!1,e.lang=navigator.language||"en-US",e.onresult=e=>{for(let t=e.resultIndex;t<e.results.length;t++){const r=e.results[t];if(r.isFinal&&r.length>0){const e=r[0].transcript;"string"==typeof e&&(B.current+=e)}}},e.onend=()=>{if(_.current===e){_.current=null,A(!1);const e=B.current.trim();B.current="",e&&$(e)}},e.onerror=e=>{console.error("Speech recognition error:",e.error),_.current=null,A(!1),B.current="","not-allowed"!==e.error&&"service-not-allowed"!==e.error||console.warn("Microphone access denied or not available")};try{e.start(),_.current=e,A(!0)}catch{A(!1)}},"aria-pressed":q,children:e.jsx(y.Microphone,{size:24,color:"grey-5"})})})]}),e.jsx(L,{}),e.jsxs(w,{children:[e.jsx(c.Tooltip,{content:"Unordered List",place:"top",children:e.jsx(E.MenuButton,{$active:U,onClick:()=>{R&&n.toggleNodeType(R,{activeType:n.getPluginType(R,v.ELEMENT_UL)})},children:e.jsx(j.ListUnordered,{size:24,color:"grey-5"})})}),e.jsx(c.Tooltip,{content:"Ordered List",place:"top",children:e.jsx(E.MenuButton,{$active:S,onClick:()=>{R&&n.toggleNodeType(R,{activeType:n.getPluginType(R,v.ELEMENT_OL)})},children:e.jsx(x.ListOrdered,{size:24,color:"grey-5"})})})]})]})};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface AudioCourseCardProps {
|
|
3
|
+
actions: React.ReactElement[];
|
|
4
|
+
actionDropdown?: React.ReactElement;
|
|
5
|
+
content: string;
|
|
6
|
+
cta: React.ReactElement;
|
|
7
|
+
href: string;
|
|
8
|
+
image: string;
|
|
9
|
+
logo?: React.ReactElement;
|
|
10
|
+
numRating: number;
|
|
11
|
+
purchaseText?: string;
|
|
12
|
+
rating: number;
|
|
13
|
+
subtitle: string;
|
|
14
|
+
supportLabel?: string;
|
|
15
|
+
sx?: string;
|
|
16
|
+
title: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const AudioCourseCard: ({ actions, actionDropdown, content, cta, href, image, logo, numRating, purchaseText, rating, subtitle, supportLabel, sx, title, }: AudioCourseCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
//# sourceMappingURL=audio-course.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-course.d.ts","sourceRoot":"","sources":["../../../../../src/components/card/audio/audio-course.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;IAC9B,cAAc,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,eAAe,sIAezB,oBAAoB,4CA6EtB,CAAC"}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ActionCardProps } from './action/action';
|
|
3
3
|
import { AudioEpisodeCardProps } from './audio/audio';
|
|
4
|
+
import { AudioCourseCardProps } from './audio/audio-course';
|
|
4
5
|
import { FeatureCardProps } from './feature/feature';
|
|
5
6
|
import { PersonCardProps } from './person/person';
|
|
6
7
|
import { PriceCardProps } from './price/price';
|
|
7
8
|
import { RegularCardProps } from './regular/regular';
|
|
8
9
|
import { VideoEpisodeCardProps } from './video/video';
|
|
10
|
+
import { VideoCourseCardProps } from './video/video-course';
|
|
9
11
|
import { WrittenEpisodeCardProps } from './written/written';
|
|
10
12
|
import { MeetingCardProps } from './meeting/meeting';
|
|
11
13
|
import { CourseSeatsCardProps } from './course-seats/course-seats';
|
|
12
14
|
import { SimpleCourseCardProps } from './simple-course/simple-course';
|
|
13
15
|
import { HorizontalCourseCardProps } from './simple-course/horizontal-course-card';
|
|
14
16
|
import { LearningCourseCardProps } from './learning-course/learning-course';
|
|
15
|
-
type CardType = 'action' | 'audio-episode' | 'feature' | 'person' | 'price' | 'regular' | 'video-episode' | 'written-episode' | 'meeting' | 'course-seats' | 'simple-course' | 'horizontal-course' | 'learning-course';
|
|
16
|
-
export type CardProps = (ActionCardProps | AudioEpisodeCardProps | FeatureCardProps | PersonCardProps | PriceCardProps | RegularCardProps | VideoEpisodeCardProps | WrittenEpisodeCardProps | MeetingCardProps | CourseSeatsCardProps | SimpleCourseCardProps | HorizontalCourseCardProps | LearningCourseCardProps) & {
|
|
17
|
+
type CardType = 'action' | 'audio-course' | 'audio-episode' | 'feature' | 'person' | 'price' | 'regular' | 'video-course' | 'video-episode' | 'written-episode' | 'meeting' | 'course-seats' | 'simple-course' | 'horizontal-course' | 'learning-course';
|
|
18
|
+
export type CardProps = (ActionCardProps | AudioCourseCardProps | AudioEpisodeCardProps | FeatureCardProps | PersonCardProps | PriceCardProps | RegularCardProps | VideoCourseCardProps | VideoEpisodeCardProps | WrittenEpisodeCardProps | MeetingCardProps | CourseSeatsCardProps | SimpleCourseCardProps | HorizontalCourseCardProps | LearningCourseCardProps) & {
|
|
17
19
|
type: CardType;
|
|
18
20
|
};
|
|
19
21
|
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,eAA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AChB,CAAC;AAEF,eAAO,MAAM,IAAI,sBAAmC,SAAS,uEA0B5D,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface VideoCourseCardProps {
|
|
3
|
+
actions: React.ReactElement[];
|
|
4
|
+
actionDropdown?: React.ReactElement;
|
|
5
|
+
content: string;
|
|
6
|
+
cta: React.ReactElement;
|
|
7
|
+
href: string;
|
|
8
|
+
image: string;
|
|
9
|
+
logo?: React.ReactElement;
|
|
10
|
+
numRating: number;
|
|
11
|
+
purchaseText?: string;
|
|
12
|
+
rating: number;
|
|
13
|
+
subtitle: string;
|
|
14
|
+
supportLabel?: string;
|
|
15
|
+
sx?: string;
|
|
16
|
+
title: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const VideoCourseCard: ({ actions, actionDropdown, content, cta, href, image, logo, numRating, purchaseText, rating, subtitle, supportLabel, sx, title, }: VideoCourseCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
//# sourceMappingURL=video-course.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-course.d.ts","sourceRoot":"","sources":["../../../../../src/components/card/video/video-course.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;IAC9B,cAAc,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,eAAe,sIAezB,oBAAoB,4CA6EtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/simple_editor/navbar.tsx"],"names":[],"mappings":"AAoCA,MAAM,WAAW,cAAc;IAC7B,iBAAiB,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACxD,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qEAAqE;IACrE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAYD,eAAO,MAAM,SAAS,gDAInB,cAAc,
|
|
1
|
+
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/simple_editor/navbar.tsx"],"names":[],"mappings":"AAoCA,MAAM,WAAW,cAAc;IAC7B,iBAAiB,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACxD,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qEAAqE;IACrE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAYD,eAAO,MAAM,SAAS,gDAInB,cAAc,4CAuShB,CAAC"}
|