@soul-refiner/design-system 2.11.0-alpha.1 → 2.11.0-alpha.2

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"),styled=require("styled-components"),button=require("../../actions/button/button.js"),playlistItem=require("./playlist-item.js");function _interopDefaultCompat(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var React__default=_interopDefaultCompat(React);const TrailerListItem=({trailer:t,title:e,handleSetPlayingTrailer:l})=>React__default.default.createElement(playlistItem.PlaylistItem,{onClick:()=>l(!0),playable:!0,thumbnail:t.thumbnail,title:e+" Trailer"}),ButtonViewAll=({showingAll:t,orientation:e="horizontal",toggleShowingAll:l})=>(console.log(t,e),React__default.default.createElement(ButtonViewAllWrapper,{$showAll:t,$orientation:e},React__default.default.createElement(button.Button,{onClick:l,size:"small",type:"text"},t?"Collapse":"View all"))),ButtonViewAllWrapper=styled.styled.span`
2
+ "use strict";var React=require("react"),styled=require("styled-components"),button=require("../../actions/button/button.js"),playlistItem=require("./playlist-item.js");function _interopDefaultCompat(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var React__default=_interopDefaultCompat(React);const TrailerListItem=({trailer:t,title:e,handleSetPlayingTrailer:l})=>React__default.default.createElement(playlistItem.PlaylistItem,{onClick:()=>l(!0),playable:!0,thumbnail:t.thumbnail,title:e+" Trailer"}),ButtonViewAll=({showingAll:t,orientation:e="horizontal",toggleShowingAll:l})=>React__default.default.createElement(ButtonViewAllWrapper,{$showAll:t,$orientation:e},React__default.default.createElement(button.Button,{onClick:l,size:"small",type:"text"},t?"Collapse":"View all")),ButtonViewAllWrapper=styled.styled.span`
3
3
  margin-left: auto;
4
4
  button {
5
5
  background-color: var(--color-grey-2);
@@ -17,16 +17,11 @@
17
17
  object-fit: cover !important;
18
18
  }
19
19
 
20
- ${({$orientation:e,$showAll:t})=>"vertical"===e?`max-width: 960px; height: max-content; ${t&&`position: fixed;
21
- top: 0;
22
- right: 0;
23
- width: 100%;
24
- max-width: 960px;
25
- height: 100%;
26
- z-index: 1000;
27
- margin-left: auto;
28
- overflow: hidden;
29
- `} `:""}
20
+ ${({$orientation:e,$showAll:t})=>"vertical"===e?`max-width: 960px; height: max-content; ${t&&`position: fixed;
21
+ top: 0;
22
+ right: 0;
23
+
24
+ `} `:""}' : ''}
30
25
  `,PipWrapper=styled.styled.div`
31
26
  background-color: var(--color-grey-0);
32
27
  max-width: 100%;
@@ -143,7 +138,7 @@
143
138
  flex: 1;
144
139
  width: 100%;
145
140
  ${({$showingAll:e})=>e?`
146
- z-index: 10;overflow-y: auto;`:"height: 100%;"}
141
+ height: 100%; z-index: 10;`:"height: 100%;"}
147
142
  background: black;
148
143
  box-sizing: border-box;
149
144
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soul-refiner/design-system",
3
- "version": "2.11.0-alpha.1",
3
+ "version": "2.11.0-alpha.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "license": "MIT",