@soul-refiner/design-system 1.6.7 → 1.6.9
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.
|
@@ -3,7 +3,7 @@ export const HideButRender = ({ children, displaceContent = false, show = false,
|
|
|
3
3
|
return (React.createElement("div", { style: {
|
|
4
4
|
visibility: show ? 'visible' : 'hidden',
|
|
5
5
|
position: displaceContent || show ? 'initial' : 'absolute',
|
|
6
|
-
zIndex: -100,
|
|
6
|
+
zIndex: show ? 'initial' : -100,
|
|
7
7
|
...styles,
|
|
8
8
|
} }, children));
|
|
9
9
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import Image from 'next/image';
|
|
3
4
|
import styled from 'styled-components';
|
|
4
5
|
import { Button, P, Box, H } from '../..';
|
|
5
6
|
import { GraduationCap, Search as SearchIcon, Plus, Close, } from '../../../icons';
|
|
@@ -55,7 +56,10 @@ export const CoursesSelection = ({ closeOnChange = true, closeOnBlur = true, dis
|
|
|
55
56
|
alignItems: 'center',
|
|
56
57
|
marginTop: '16px',
|
|
57
58
|
} },
|
|
58
|
-
React.createElement(
|
|
59
|
+
React.createElement(Image, { alt: "", height: 64, width: 114, src: course.imageSrc, quality: 100, style: {
|
|
60
|
+
borderRadius: '8px',
|
|
61
|
+
marginRight: '16px',
|
|
62
|
+
} }),
|
|
59
63
|
React.createElement(P, { sx: "margin-left: 16px;" }, course.name),
|
|
60
64
|
React.createElement(Close, { sx: "cursor: pointer; margin-left: auto;", onClick: () => setCourseIsSelected({
|
|
61
65
|
...courseIsSelected,
|
|
@@ -115,12 +119,6 @@ const OptionWrapper = styled.div `
|
|
|
115
119
|
`;
|
|
116
120
|
}}
|
|
117
121
|
`;
|
|
118
|
-
const StyledImage = styled.img `
|
|
119
|
-
border-radius: 8px;
|
|
120
|
-
width: 113.78px;
|
|
121
|
-
height: 64px;
|
|
122
|
-
margin-right: 16px;
|
|
123
|
-
`;
|
|
124
122
|
const IconWrapper = styled.div `
|
|
125
123
|
padding: 12px;
|
|
126
124
|
border-radius: 8px;
|
|
@@ -79,10 +79,14 @@ export const VideoPlayer = ({ activeIndex, pip, playable, playlist, onPipChange,
|
|
|
79
79
|
React.createElement(P, { "$color": "grey-8", "$fontSize": 14, "$lineHeight": 20, "$semiBold": true }, "All lessons")),
|
|
80
80
|
React.createElement(HorizontalPlaylistWrapper, null, playlist.map((playlistItem, index) => (React.createElement(PlaylistItem, { key: playlistItem.id, duration: playlistItem.duration, onClick: () => handleMediaItemChange(index), playable: playable, progress: playlistItem.progress, shortDescription: playlistItem.shortDescription, thumbnail: playlistItem.thumbnail, title: playlistItem.title })))))),
|
|
81
81
|
orientation === 'vertical' && (React.createElement(Box, { "$dir": "column", "$gap": 24 },
|
|
82
|
+
!!trailer && (React.createElement(Box, { "$dir": "column", "$gap": 8, sx: "margin: 0px 24px;" },
|
|
83
|
+
React.createElement(Box, { "$align": "center", "$justify": "space-between", sx: "padding: 8px 0px 8px 14px;" },
|
|
84
|
+
React.createElement(P, { "$color": "grey-8", "$fontSize": 14, "$lineHeight": 20, "$semiBold": true }, "Trailer")),
|
|
85
|
+
React.createElement(PlaylistItem, { onClick: () => setPlayingTrailer(true), playable: true, thumbnail: trailer.thumbnail, title: `${title} Trailer` }))),
|
|
82
86
|
React.createElement(Box, { "$align": "center", "$justify": "space-between", sx: "padding: 8px 0px; margin: 0px 24px; border-bottom: 1px solid var(--color-grey-3);" },
|
|
83
87
|
React.createElement(P, { "$color": "grey-8", "$fontSize": 14, "$lineHeight": 20, "$semiBold": true }, "All lessons"),
|
|
84
88
|
React.createElement(Button, { onClick: toggleShowingAll, size: "small", sx: "background-color: var(--color-grey-2); border-color: var(--color-grey-8); color: var(--color-grey-8);", type: "text" }, showingAll ? 'Collapse' : 'View all')),
|
|
85
|
-
React.createElement(VerticalPlaylistWrapper, { "$showingAll": showingAll }, playlist.map((playlistItem, index) => (React.createElement(PlaylistItem, { key: playlistItem.id, duration: playlistItem.duration, onClick: () => handleMediaItemChange(index), progress: playlistItem.progress, shortDescription: playlistItem.shortDescription, thumbnail: playlistItem.thumbnail, title: playlistItem.title })))))))));
|
|
89
|
+
React.createElement(VerticalPlaylistWrapper, { "$showingAll": showingAll }, playlist.map((playlistItem, index) => (React.createElement(PlaylistItem, { key: playlistItem.id, duration: playlistItem.duration, onClick: () => handleMediaItemChange(index), playable: playable, progress: playlistItem.progress, shortDescription: playlistItem.shortDescription, thumbnail: playlistItem.thumbnail, title: playlistItem.title })))))))));
|
|
86
90
|
};
|
|
87
91
|
const Wrapper = styled.div `
|
|
88
92
|
display: flex;
|