@soul-refiner/design-system 2.4.2 → 2.4.4

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:i,subtitle:o,sx:r,title:l})=>React__default.default.createElement(Wrapper,{$image:i,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:i,width:312}),React__default.default.createElement(Shadow,null),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},o),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`
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;
@@ -37,6 +37,8 @@
37
37
  }
38
38
  }
39
39
  `,Wrapper=styled.styled.output`
40
+ background: 'white';
41
+
40
42
  ${({$isAnimated:e})=>!e&&`
41
43
  position: fixed;
42
44
  bottom: 24px;
@@ -47,7 +49,6 @@
47
49
  display: flex;
48
50
  box-shadow: var(--elevation-2);
49
51
  border-radius: var(--small);
50
-
51
52
  &::before {
52
53
  position: absolute;
53
54
  content: '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soul-refiner/design-system",
3
- "version": "2.4.2",
3
+ "version": "2.4.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "license": "MIT",