@soul-refiner/design-system 1.1.7 → 1.1.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.
- package/dist/components/card/action/action.js +1 -1
- package/dist/components/card/audio/audio.js +1 -1
- package/dist/components/card/feature/feature.js +1 -1
- package/dist/components/card/meeting/meeting.js +1 -1
- package/dist/components/card/person/person.js +1 -1
- package/dist/components/card/regular/regular.js +1 -1
- package/dist/components/card/video/video.js +1 -1
- package/dist/components/card/written/written.js +1 -1
- package/dist/components/custom/courses_selection/courses_selection.js +2 -2
- package/dist/components/custom/users_selection/users_selection.js +3 -2
- package/dist/components/iconography/avatar/avatar.js +1 -1
- package/dist/components/media/video/video.js +1 -1
- package/dist/components/media/video-player/playlist-item.js +1 -1
- package/dist/components/media/video-player/video.js +1 -1
- package/dist/components/navigation/inner/inner.d.ts +2 -1
- package/dist/components/navigation/inner/inner.js +2 -2
- package/dist/components/surfaces/post/post.js +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ export const ActionCard = ({ actions, content, href, image, logo, subtitle, sx,
|
|
|
7
7
|
const isAnchor = !!href;
|
|
8
8
|
return (React.createElement(Wrapper, { as: isAnchor ? 'a' : 'div', href: href },
|
|
9
9
|
React.createElement(Action, { "$backgroundImage": image, "$sx": sx },
|
|
10
|
-
React.createElement(Image, { alt: "", height: 160, src: image, width: 310 }),
|
|
10
|
+
React.createElement(Image, { alt: "", height: 160, quality: 100, src: image, width: 310 }),
|
|
11
11
|
React.createElement(Figcaption, null,
|
|
12
12
|
React.createElement(LogoWrapper, null, logo),
|
|
13
13
|
React.createElement(H, { as: "span", "$mediumBold": true, "$color": "grey-2", "$fontSize": 18, "$lineHeight": 26 }, title),
|
|
@@ -8,7 +8,7 @@ export const AudioEpisodeCard = ({ actions, actionDropdown, content, cta, href,
|
|
|
8
8
|
return (React.createElement(Wrapper, { "$sx": sx, href: href },
|
|
9
9
|
React.createElement(Figure, null,
|
|
10
10
|
actionDropdown && React.createElement(DropdownWrapper, null, actionDropdown),
|
|
11
|
-
React.createElement(Image, { alt: "", className: "thumbnail", height: 228, src: image, width: 228 }),
|
|
11
|
+
React.createElement(Image, { alt: "", className: "thumbnail", height: 228, quality: 100, src: image, width: 228 }),
|
|
12
12
|
React.createElement(Figcaption, null,
|
|
13
13
|
React.createElement(Box, { "$display": "block", className: "hidden" }, cta),
|
|
14
14
|
React.createElement(Box, { "$align": "center", "$dir": "row", "$gap": 16 },
|
|
@@ -28,7 +28,7 @@ export const FeatureCard = ({ content = '', editable, href, image, onDelete, onS
|
|
|
28
28
|
const isLink = !!href;
|
|
29
29
|
return (React.createElement(Wrapper, { as: isLink ? 'a' : 'div', href: href },
|
|
30
30
|
React.createElement(Figure, { "$editing": editing, "$isLink": isLink, "$sx": sx },
|
|
31
|
-
React.createElement(Image, { alt: title, height: 352, src: image, width: 352 }),
|
|
31
|
+
React.createElement(Image, { alt: title, height: 352, quality: 100, src: image, width: 352 }),
|
|
32
32
|
!editing && (React.createElement(Title, null,
|
|
33
33
|
editingTitle,
|
|
34
34
|
React.createElement("figure", null,
|
|
@@ -35,7 +35,7 @@ export const MeetingCard = ({ href, image, sx, title, actions, course, startDate
|
|
|
35
35
|
});
|
|
36
36
|
return (React.createElement(Wrapper, { "$isLink": !!href, "$sx": sx, as: href ? 'a' : 'div', href: href },
|
|
37
37
|
React.createElement(Figure, null,
|
|
38
|
-
React.createElement(Image, { alt: "", height: 160, src: image, width: 312 }),
|
|
38
|
+
React.createElement(Image, { alt: "", height: 160, quality: 100, src: image, width: 312 }),
|
|
39
39
|
React.createElement(OverlayTopContainer, { id: "overlayTop" }, dotsActions && !!dotsActions.length && (React.createElement(Dropdown, { hasArrow: true, maintainState: false, options: dotsActions, trigger: React.createElement(Button, { icon: React.createElement(EllipsisHorizontal, null), showChevron: false, type: "outlined", size: "small", className: "icon" }), onClick: (e) => e.preventDefault() }))),
|
|
40
40
|
React.createElement(OverlayBottomContainer, { id: "overlayBottom" },
|
|
41
41
|
shareModal && (React.createElement(Modal, null,
|
|
@@ -8,7 +8,7 @@ export const PersonCard = ({ actions, dotsActions, href, image, subtitle, sx, ti
|
|
|
8
8
|
return (React.createElement(Wrapper, { "$image": image, as: href ? 'a' : 'div', href: href },
|
|
9
9
|
React.createElement(Person, { "$sx": sx },
|
|
10
10
|
dotsActions && !!dotsActions.length && (React.createElement(Dropdown, { containerSx: "", hasArrow: true, maintainState: false, onClick: (e) => e.preventDefault(), options: dotsActions, sx: "position: absolute; top: 8px; right: 8px; z-index: 24; display: none;", trigger: React.createElement(Button, { className: "icon", icon: React.createElement(EllipsisHorizontal, null), onClick: (event) => event.stopPropagation(), showChevron: false, size: "small", type: "outlined" }) })),
|
|
11
|
-
React.createElement(Image, { alt: "", height: 400, src: image, width: 312 }),
|
|
11
|
+
React.createElement(Image, { alt: "", height: 400, quality: 100, src: image, width: 312 }),
|
|
12
12
|
React.createElement(Shadow, null),
|
|
13
13
|
React.createElement(Figcaption, null,
|
|
14
14
|
React.createElement(H, { as: "span", "$bold": true, "$color": "white", "$fontSize": 24, "$lineHeight": 36 }, title),
|
|
@@ -5,7 +5,7 @@ import styled from 'styled-components';
|
|
|
5
5
|
import { Box } from '../../';
|
|
6
6
|
export const RegularCard = ({ children, href, image, sx, }) => {
|
|
7
7
|
return (React.createElement(Wrapper, { "$isLink": !!href, "$sx": sx, as: href ? 'a' : 'div', href: href },
|
|
8
|
-
React.createElement(Image, { alt: "", height: 352, src: image, width: 352 }),
|
|
8
|
+
React.createElement(Image, { alt: "", height: 352, quality: 100, src: image, width: 352 }),
|
|
9
9
|
React.createElement(Box, { "$dir": "column", "$padding": 24 }, children)));
|
|
10
10
|
};
|
|
11
11
|
const Wrapper = styled.div `
|
|
@@ -8,7 +8,7 @@ export const VideoEpisodeCard = ({ actions, actionDropdown, content, cta, href,
|
|
|
8
8
|
return (React.createElement(Wrapper, { "$sx": sx, href: href },
|
|
9
9
|
React.createElement(Figure, null,
|
|
10
10
|
actionDropdown && React.createElement(DropdownWrapper, null, actionDropdown),
|
|
11
|
-
React.createElement(Image, { alt: "", className: "thumbnail", height: 213, src: image, width: 379 }),
|
|
11
|
+
React.createElement(Image, { alt: "", className: "thumbnail", height: 213, quality: 100, src: image, width: 379 }),
|
|
12
12
|
React.createElement(Figcaption, null,
|
|
13
13
|
React.createElement(Box, { "$display": "block", className: "hidden" }, cta),
|
|
14
14
|
React.createElement(Box, { "$align": "center", "$dir": "row", "$gap": 16 },
|
|
@@ -8,7 +8,7 @@ export const WrittenEpisodeCard = ({ actions, actionDropdown, content, cta, href
|
|
|
8
8
|
return (React.createElement(Wrapper, { "$sx": sx, href: href },
|
|
9
9
|
React.createElement(Figure, null,
|
|
10
10
|
actionDropdown && React.createElement(DropdownWrapper, null, actionDropdown),
|
|
11
|
-
React.createElement(Image, { alt: "", className: "thumbnail", height: 228, src: image, width: 176 }),
|
|
11
|
+
React.createElement(Image, { alt: "", className: "thumbnail", height: 228, quality: 100, src: image, width: 176 }),
|
|
12
12
|
React.createElement(Figcaption, null,
|
|
13
13
|
React.createElement(Box, { "$display": "block", className: "hidden" }, cta),
|
|
14
14
|
React.createElement(Box, { "$align": "center", "$dir": "row", "$gap": 16 },
|
|
@@ -55,7 +55,7 @@ export const CoursesSelection = ({ closeOnChange = true, closeOnBlur = true, dis
|
|
|
55
55
|
alignItems: 'center',
|
|
56
56
|
marginTop: '16px',
|
|
57
57
|
} },
|
|
58
|
-
React.createElement(
|
|
58
|
+
React.createElement(StyledImage, { alt: "", height: 64, src: course.imageSrc, width: 114 }),
|
|
59
59
|
React.createElement(P, { sx: "margin-left: 16px;" }, course.name),
|
|
60
60
|
React.createElement(Close, { sx: "cursor: pointer; margin-left: auto;", onClick: () => setCourseIsSelected({
|
|
61
61
|
...courseIsSelected,
|
|
@@ -115,7 +115,7 @@ const OptionWrapper = styled.div `
|
|
|
115
115
|
`;
|
|
116
116
|
}}
|
|
117
117
|
`;
|
|
118
|
-
const
|
|
118
|
+
const StyledImage = styled.img `
|
|
119
119
|
border-radius: 8px;
|
|
120
120
|
width: 113.78px;
|
|
121
121
|
height: 64px;
|
|
@@ -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, Search, Checkbox, Box } from '../../';
|
|
5
6
|
export const UsersSelection = ({ closeOnBlur = true, disabled = false, offset = [0, 0], sx, containerSx, searchSx, users, label, title, userIsChecked, setUserIsChecked, icon, ...rest }) => {
|
|
@@ -44,7 +45,7 @@ export const UsersSelection = ({ closeOnBlur = true, disabled = false, offset =
|
|
|
44
45
|
[user.id]: !userIsChecked[user.id],
|
|
45
46
|
}) },
|
|
46
47
|
React.createElement(Box, { "$display": "flex", "$align": "center" },
|
|
47
|
-
React.createElement(
|
|
48
|
+
React.createElement(StyledImage, { alt: "", height: 40, src: user.imageSrc, width: 40 }),
|
|
48
49
|
React.createElement(P, { "$color": 'grey-4', "$fontSize": 14, "$lineHeight": 20, "$mediumBold": true, "$textClampLines": 1 }, user.fullName),
|
|
49
50
|
React.createElement(Checkbox, { selected: userIsChecked[user.id], sx: "margin-left: auto;" }))),
|
|
50
51
|
React.createElement(Spacer, null))))))));
|
|
@@ -102,7 +103,7 @@ const OptionWrapper = styled.div `
|
|
|
102
103
|
`;
|
|
103
104
|
}}
|
|
104
105
|
`;
|
|
105
|
-
const
|
|
106
|
+
const StyledImage = styled(Image) `
|
|
106
107
|
border-radius: 50%;
|
|
107
108
|
width: 40px;
|
|
108
109
|
height: 40px;
|
|
@@ -71,7 +71,7 @@ const Avatar = ({ as = 'button', href, image, size = 64, status, subtitle, sx, t
|
|
|
71
71
|
${sx}
|
|
72
72
|
`, ...rest },
|
|
73
73
|
React.createElement(Container, { as: as, "$size": size, href: href },
|
|
74
|
-
!displayDefault && (React.createElement(Image, { alt: "avatar image", height: size, onError: () => setDisplayDefault(true), src: image ?? '', width: size })),
|
|
74
|
+
!displayDefault && (React.createElement(Image, { alt: "avatar image", height: size, onError: () => setDisplayDefault(true), quality: 100, sizes: "96 | 72 | 64 | 56 | 48 | 40 | 36 | 32 | 24 | 16", src: image ?? '', width: size })),
|
|
75
75
|
displayDefault && React.createElement(Default, null),
|
|
76
76
|
React.createElement("div", null,
|
|
77
77
|
React.createElement(Icon, null))),
|
|
@@ -19,7 +19,7 @@ export const Video = ({ controls = true, loop = false, muted, playsInline, src,
|
|
|
19
19
|
srcLang: subtitle.locale,
|
|
20
20
|
})),
|
|
21
21
|
},
|
|
22
|
-
}, controls: controls, height: "100%", light: thumbnail ? (React.createElement(Image, { alt: "thumbnail for trailer", layout: "fill", priority: true, src: thumbnail, style: { objectFit: 'contain' } })) : undefined, loop: loop, muted: muted, pip: false, playsinline: playsInline, playing: true, ref: ref, style: {
|
|
22
|
+
}, controls: controls, height: "100%", light: thumbnail ? (React.createElement(Image, { alt: "thumbnail for trailer", layout: "fill", priority: true, quality: 100, src: thumbnail, style: { objectFit: 'contain' } })) : undefined, loop: loop, muted: muted, pip: false, playsinline: playsInline, playing: true, ref: ref, style: {
|
|
23
23
|
backgroundColor: 'var(--color-grey-0)',
|
|
24
24
|
maxHeight: 720,
|
|
25
25
|
maxWidth: 1280,
|
|
@@ -8,7 +8,7 @@ import { PlaySolid } from '../../../icons/audio_video';
|
|
|
8
8
|
export const PlaylistItem = ({ duration, onClick, playable, progress = 0, shortDescription, thumbnail, title, }) => {
|
|
9
9
|
return (React.createElement(Wrapper, { onClick: playable ? onClick : undefined, "$playable": playable },
|
|
10
10
|
React.createElement(PlaySolid, { color: "white", size: 16, sx: "position: absolute; left: 8px; bottom: 4px;" }),
|
|
11
|
-
React.createElement(Image, { alt: `thumbnail for ${title}`, height: 75, src: thumbnail, width: 133 }),
|
|
11
|
+
React.createElement(Image, { alt: `thumbnail for ${title}`, height: 75, quality: 100, src: thumbnail, width: 133 }),
|
|
12
12
|
React.createElement(ProgressBar, { progressPercent: progress / duration }),
|
|
13
13
|
React.createElement(Box, { "$dir": "column", "$gap": 4, sx: "margin-left: 16px; margin-right: auto; flex: 0 1 auto; flex-basis: content;" },
|
|
14
14
|
React.createElement(P, { "$color": "grey-10", "$semiBold": true }, title),
|
|
@@ -46,7 +46,7 @@ export const VideoPlayer = ({ activeIndex, pip, playable, playlist, onPipChange,
|
|
|
46
46
|
srcLang: subtitle.locale,
|
|
47
47
|
})),
|
|
48
48
|
},
|
|
49
|
-
}, controls: true, height: "100%", light: React.createElement(Image, { alt: `thumbnail for ${title}`, layout: "fill", priority: true, style: {
|
|
49
|
+
}, controls: true, height: "100%", light: React.createElement(Image, { alt: `thumbnail for ${title}`, layout: "fill", priority: true, quality: 100, style: {
|
|
50
50
|
objectFit: 'contain',
|
|
51
51
|
}, src: mediaItem.thumbnail }), progressInterval: 4000, onDisablePIP: () => onPipChange && onPipChange(false), onEnablePIP: () => onPipChange && onPipChange(true), onProgress: onProgress, onReady: handleReady, pip: pip, playIcon: playable ? (React.createElement(PlaySolid, { color: "white", size: 24, sx: "position: absolute; width: 54px; height: 54px;" })) : (React.createElement(LockCircle, { color: "white", size: 24, sx: "position: absolute; width: 54px; height: 54px;" })), playing: playable, ref: ref, style: {
|
|
52
52
|
backgroundColor: 'var(--color-grey-0)',
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
declare const InnerNav: {
|
|
6
6
|
({ children }: React.PropsWithChildren): React.JSX.Element;
|
|
7
7
|
Item: {
|
|
8
|
-
({ active, href, icon, label, sx }: InnerNavItemProps): React.JSX.Element;
|
|
8
|
+
({ active, href, icon, label, sx, onClick, }: InnerNavItemProps): React.JSX.Element;
|
|
9
9
|
displayName: string;
|
|
10
10
|
};
|
|
11
11
|
Dropdown: {
|
|
@@ -58,6 +58,7 @@ export interface InnerNavItemProps {
|
|
|
58
58
|
icon?: React.ReactElement;
|
|
59
59
|
label: React.ReactNode;
|
|
60
60
|
sx?: string;
|
|
61
|
+
onClick?: () => void;
|
|
61
62
|
}
|
|
62
63
|
/*************************************************************************************************************************
|
|
63
64
|
* Dropdown
|
|
@@ -53,8 +53,8 @@ const NavWrapper = styled.nav `
|
|
|
53
53
|
background-color: var(--color-blue-10);
|
|
54
54
|
border-right: 1px solid var(--color-grey-9);
|
|
55
55
|
`;
|
|
56
|
-
const InnerNavItem = ({ active, href, icon, label, sx }) => {
|
|
57
|
-
return (React.createElement(Item, { "$active": active, "$sx": sx, href: href || '#', scroll: false },
|
|
56
|
+
const InnerNavItem = ({ active, href, icon, label, sx, onClick, }) => {
|
|
57
|
+
return (React.createElement(Item, { "$active": active, "$sx": sx, href: href || '#', scroll: false, onClick: onClick },
|
|
58
58
|
icon,
|
|
59
59
|
label));
|
|
60
60
|
};
|
|
@@ -20,7 +20,7 @@ export const Post = ({ actions, author, authorActive, authorHref, authorImage, a
|
|
|
20
20
|
React.createElement(P, { "$textClampLines": isPaywalled ? 2 : undefined }, content))),
|
|
21
21
|
!!images?.length && (React.createElement(ImagesWrapper, { "$numImages": images.length, "$isPaywalled": isPaywalled },
|
|
22
22
|
images.slice(0, 4).map((url, i) => (React.createElement(ImageWrapper, { key: `${componentId}${url.slice(0, 15)}${i}` },
|
|
23
|
-
React.createElement(Image, { alt: "", fill: true, src: url })))),
|
|
23
|
+
React.createElement(Image, { alt: "", fill: true, quality: 100, src: url })))),
|
|
24
24
|
images.length > 4 && (React.createElement(H, { as: "p", className: "more-than", "$color": "grey-10", "$fontSize": 28, "$lineHeight": 36, "$semiBold": true },
|
|
25
25
|
"+",
|
|
26
26
|
images.length - 4)))),
|