@soul-refiner/design-system 2.4.3 → 2.4.5
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,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var React=require("react"),Image=require("next/image"),styled=require("styled-components"),box=require("../../atoms/box/box.js"),button=require("../../actions/button/button.js"),dropdown=require("../../actions/dropdown/dropdown.js"),heading=require("../../atoms/typography/heading.js"),paragraph=require("../../atoms/typography/paragraph.js"),ellipsis_horizontal=require("../../../icons/basic/ellipsis_horizontal.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React),Image__default=_interopDefaultCompat(Image);const PersonCard=({actions:e,dotsActions:t,href:a,image:
|
|
2
|
+
"use strict";var React=require("react"),Image=require("next/image"),styled=require("styled-components"),box=require("../../atoms/box/box.js"),button=require("../../actions/button/button.js"),dropdown=require("../../actions/dropdown/dropdown.js"),heading=require("../../atoms/typography/heading.js"),paragraph=require("../../atoms/typography/paragraph.js"),ellipsis_horizontal=require("../../../icons/basic/ellipsis_horizontal.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React),Image__default=_interopDefaultCompat(Image);const PersonCard=({actions:e,dotsActions:t,href:a,image:o,subtitle:i,sx:r,title:l})=>React__default.default.createElement(Wrapper,{$image:o,as:a?"a":"div",href:a},React__default.default.createElement(Person,{$sx:r},t&&!!t.length&&React__default.default.createElement(dropdown.Dropdown,{containerSx:"",hasArrow:!0,maintainState:!1,onClick:e=>e.preventDefault(),options:t,sx:"position: absolute; top: 8px; right: 8px; z-index: 24; display: none;",trigger:React__default.default.createElement(button.Button,{className:"icon",icon:React__default.default.createElement(ellipsis_horizontal.EllipsisHorizontal,null),onClick:e=>e.stopPropagation(),showChevron:!1,size:"small",type:"outlined"})}),React__default.default.createElement(Image__default.default,{alt:"",height:400,quality:100,src:o,width:312}),React__default.default.createElement(Figcaption,null,React__default.default.createElement(heading.H,{as:"span",$bold:!0,$color:"white",$fontSize:24,$lineHeight:36},l),React__default.default.createElement(paragraph.P,{as:"span",$color:"white",$fontSize:14,$lineHeight:20},i),e&&React__default.default.createElement(box.Box,{$display:"flex",$dir:"row",$gap:8,sx:"margin-top: 16px;"},React__default.default.Children.toArray(e))))),Wrapper=styled.styled.div`
|
|
3
3
|
width: 312px;
|
|
4
4
|
height: 400px;
|
|
5
5
|
display: block;
|
|
@@ -15,16 +15,6 @@
|
|
|
15
15
|
border-radius: 16px;
|
|
16
16
|
object-fit: cover;
|
|
17
17
|
}
|
|
18
|
-
`,Shadow=styled.styled.div`
|
|
19
|
-
border-radius: 16px;
|
|
20
|
-
position: absolute;
|
|
21
|
-
top: 0px;
|
|
22
|
-
left: 0px;
|
|
23
|
-
right: 0px;
|
|
24
|
-
width: 100%;
|
|
25
|
-
height: 100%;
|
|
26
|
-
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 66.67%, #000 98.25%),
|
|
27
|
-
transparent 50% / cover no-repeat;
|
|
28
18
|
`,Person=styled.styled.figure`
|
|
29
19
|
position: relative;
|
|
30
20
|
width: 100%;
|
|
@@ -43,8 +33,19 @@
|
|
|
43
33
|
`,Figcaption=styled.styled.figcaption`
|
|
44
34
|
position: relative;
|
|
45
35
|
width: 100%;
|
|
36
|
+
height: auto;
|
|
37
|
+
background: linear-gradient(
|
|
38
|
+
to top,
|
|
39
|
+
rgba(0, 0, 0, 0.9) 20%,
|
|
40
|
+
rgba(0, 0, 0, 0.3) 70%,
|
|
41
|
+
rgba(0, 0, 0, 0.01) 100%
|
|
42
|
+
);
|
|
46
43
|
box-sizing: border-box;
|
|
44
|
+
border-bottom-left-radius: 16px;
|
|
45
|
+
border-bottom-right-radius: 16px;
|
|
47
46
|
display: flex;
|
|
48
47
|
flex-direction: column;
|
|
49
48
|
padding: 16px 24px;
|
|
49
|
+
box-shadow: 0 -10px 20px 0 rgba(0, 0, 0, 0.001);
|
|
50
|
+
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
50
51
|
`;exports.PersonCard=PersonCard;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var React=require("react"),styled=require("styled-components"),heading=require("../../atoms/typography/heading.js"),paragraph=require("../../atoms/typography/paragraph.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const CalendarDate=({monthAbbreviation:e,date:t,
|
|
2
|
+
"use strict";var React=require("react"),styled=require("styled-components"),heading=require("../../atoms/typography/heading.js"),paragraph=require("../../atoms/typography/paragraph.js");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var React__default=_interopDefaultCompat(React);const CalendarDate=({monthAbbreviation:e,date:t,isDisabled:a,dayOfWeek:r,startTime:l,endTime:n,sx:d,size:i="large"})=>React__default.default.createElement(Container,{$sx:d},React__default.default.createElement(CalendarContainer,{$size:i},React__default.default.createElement(MonthContainer,{$size:i},"large"===i&&React__default.default.createElement(heading.H.Seven,{$color:"white",$textAlign:"center",$semiBold:!0},e),"small"===i&&React__default.default.createElement(paragraph.P,{$color:"white",$textAlign:"center",$fontSize:14},e)),React__default.default.createElement(DateContainer,{$size:i},"large"===i&&React__default.default.createElement(heading.H.One,{$textAlign:"center",$semiBold:!0},t),"small"===i&&React__default.default.createElement(heading.H.Six,{$color:"grey-2",$textAlign:"center"},t))),r&&l&&n&&React__default.default.createElement(TimeContainer,null,React__default.default.createElement(paragraph.P,{as:"span",$color:a?"grey-7":"red-5"},r+`, ${l} -> `+n))),Container=styled.styled.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
align-items: center;
|
|
@@ -2,10 +2,11 @@ import React from 'react';
|
|
|
2
2
|
export interface CalendarDateProps {
|
|
3
3
|
monthAbbreviation: string;
|
|
4
4
|
date: number;
|
|
5
|
+
isDisabled?: boolean;
|
|
5
6
|
dayOfWeek?: string;
|
|
6
7
|
startTime?: string;
|
|
7
8
|
endTime?: string;
|
|
8
9
|
sx?: string;
|
|
9
10
|
size?: 'small' | 'large';
|
|
10
11
|
}
|
|
11
|
-
export declare const CalendarDate: ({ monthAbbreviation, date, dayOfWeek, startTime, endTime, sx, size, }: CalendarDateProps) => React.JSX.Element;
|
|
12
|
+
export declare const CalendarDate: ({ monthAbbreviation, date, isDisabled, dayOfWeek, startTime, endTime, sx, size, }: CalendarDateProps) => React.JSX.Element;
|