@soul-refiner/design-system 2.11.0-alpha.0 → 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})=>
|
|
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,15 +17,11 @@
|
|
|
17
17
|
object-fit: cover !important;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
${({$orientation:e,$showAll:t})=>"vertical"===e?`max-width: 960px;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
height: 100vh;
|
|
26
|
-
z-index: 1000;
|
|
27
|
-
overflow: hidden;
|
|
28
|
-
`} `:""}
|
|
20
|
+
${({$orientation:e,$showAll:t})=>"vertical"===e?`max-width: 960px; height: max-content; ${t&&`position: fixed;
|
|
21
|
+
top: 0;
|
|
22
|
+
right: 0;
|
|
23
|
+
|
|
24
|
+
`} `:""}' : ''}
|
|
29
25
|
`,PipWrapper=styled.styled.div`
|
|
30
26
|
background-color: var(--color-grey-0);
|
|
31
27
|
max-width: 100%;
|
|
@@ -128,8 +124,10 @@
|
|
|
128
124
|
padding: 1rem;
|
|
129
125
|
${({$showingAll:e})=>e?`
|
|
130
126
|
position: fixed;
|
|
131
|
-
|
|
132
|
-
|
|
127
|
+
flex: 1;
|
|
128
|
+
overflow-y: auto;
|
|
129
|
+
height: 100vh;
|
|
130
|
+
padding-bottom: 20px;`:"height: 100%;"}
|
|
133
131
|
background: black;
|
|
134
132
|
box-sizing: border-box;
|
|
135
133
|
display: flex;
|
|
@@ -140,7 +138,7 @@
|
|
|
140
138
|
flex: 1;
|
|
141
139
|
width: 100%;
|
|
142
140
|
${({$showingAll:e})=>e?`
|
|
143
|
-
height:
|
|
141
|
+
height: 100%; z-index: 10;`:"height: 100%;"}
|
|
144
142
|
background: black;
|
|
145
143
|
box-sizing: border-box;
|
|
146
144
|
display: flex;
|
package/package.json
CHANGED
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@soul-refiner/design-system",
|
|
3
|
-
"version": "2.11.0-alpha.
|
|
4
|
-
"main": "dist/index.js",
|
|
5
|
-
"types": "dist/src/index.d.ts",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"publishConfig": {
|
|
8
|
-
"registry": "https://registry.npmjs.org"
|
|
9
|
-
},
|
|
10
|
-
"include": [
|
|
11
|
-
"/dist"
|
|
12
|
-
],
|
|
13
|
-
"files": [
|
|
14
|
-
"dist/**/*"
|
|
15
|
-
],
|
|
16
|
-
"exports": {
|
|
17
|
-
".": {
|
|
18
|
-
"import": {
|
|
19
|
-
"types": "./dist/src/index.d.ts",
|
|
20
|
-
"default": "./dist/index.js"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@rollup/plugin-commonjs": "^25.0.7",
|
|
26
|
-
"@rollup/plugin-json": "^6.1.0",
|
|
27
|
-
"@storybook/addon-essentials": "^7.6.7",
|
|
28
|
-
"@storybook/addon-interactions": "^7.6.7",
|
|
29
|
-
"@storybook/addon-links": "^7.6.7",
|
|
30
|
-
"@storybook/addon-themes": "^7.2.3",
|
|
31
|
-
"@storybook/addons": "^7.6.7",
|
|
32
|
-
"@storybook/blocks": "^7.6.7",
|
|
33
|
-
"@storybook/nextjs": "~7.5.3",
|
|
34
|
-
"@storybook/preview-api": "^7.6.13",
|
|
35
|
-
"@storybook/react": "~7.2.1",
|
|
36
|
-
"@storybook/testing-library": "~0.2.0",
|
|
37
|
-
"@types/react": "^18.2.48",
|
|
38
|
-
"@types/react-dom": "18.2.0",
|
|
39
|
-
"@types/react-show-more-text": "^1.4.5",
|
|
40
|
-
"@types/styled-components": "~5.1.26",
|
|
41
|
-
"chromatic": "~6.17.4",
|
|
42
|
-
"husky": "~8.0.0",
|
|
43
|
-
"prettier": "~2.8.8",
|
|
44
|
-
"pretty-quick": "~3.1.3",
|
|
45
|
-
"prop-types": "~15.8.1",
|
|
46
|
-
"rollup": "^4.12.0",
|
|
47
|
-
"rollup-plugin-node-externals": "^7.0.1",
|
|
48
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
49
|
-
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
50
|
-
"rollup-plugin-typescript2": "^0.36.0",
|
|
51
|
-
"rollup-plugin-uglify": "^6.0.4",
|
|
52
|
-
"storybook": "~7.5.3",
|
|
53
|
-
"tailwindcss": "^3.4.1",
|
|
54
|
-
"tsc-alias": "^1.8.8",
|
|
55
|
-
"tsconfig-paths-webpack-plugin": "~4.0.1",
|
|
56
|
-
"tslib": "^2.6.2",
|
|
57
|
-
"typescript": "~5.0.4",
|
|
58
|
-
"webpack": "~5.89.0"
|
|
59
|
-
},
|
|
60
|
-
"scripts": {
|
|
61
|
-
"build": "yarn rollup --config",
|
|
62
|
-
"build:tailwind": "npx tailwindcss -i ./src/styles/globals.css -o ./dist/styles/output.css",
|
|
63
|
-
"format": "prettier --write .",
|
|
64
|
-
"storybook": "yarn build:tailwind && storybook dev -p 6006",
|
|
65
|
-
"build-storybook": "storybook build",
|
|
66
|
-
"prepare": "husky install"
|
|
67
|
-
},
|
|
68
|
-
"dependencies": {
|
|
69
|
-
"@emoji-mart/react": "~1.1.1",
|
|
70
|
-
"@emotion/react": "^11.11.4",
|
|
71
|
-
"@emotion/styled": "^11.11.0",
|
|
72
|
-
"@mui/material": "^5.15.13",
|
|
73
|
-
"@mui/x-date-pickers": "^6.19.6",
|
|
74
|
-
"@radix-ui/react-dropdown-menu": "^2.0.6",
|
|
75
|
-
"@radix-ui/react-popover": "^1.0.7",
|
|
76
|
-
"@radix-ui/react-separator": "^1.0.3",
|
|
77
|
-
"@radix-ui/react-slot": "^1.0.2",
|
|
78
|
-
"@radix-ui/react-tooltip": "^1.0.7",
|
|
79
|
-
"@udecode/cn": "~29.0.1",
|
|
80
|
-
"@udecode/plate": "^30.6.1",
|
|
81
|
-
"@udecode/react-utils": "^29.0.1",
|
|
82
|
-
"class-variance-authority": "~0.7.0",
|
|
83
|
-
"date-fns": "^3.4.0",
|
|
84
|
-
"emoji-mart": "~5.5.2",
|
|
85
|
-
"lucide-react": "~0.307.0",
|
|
86
|
-
"next": "~13.5",
|
|
87
|
-
"react": "18.2.0",
|
|
88
|
-
"react-dnd": "~16.0.1",
|
|
89
|
-
"react-dnd-html5-backend": "~16.0.1",
|
|
90
|
-
"react-dom": "~18.2.0",
|
|
91
|
-
"react-h5-audio-player": "~3.9.1",
|
|
92
|
-
"react-is": "~18.2.0",
|
|
93
|
-
"react-player": "~2.13.0",
|
|
94
|
-
"react-show-more-text": "^1.7.1",
|
|
95
|
-
"react-tooltip": "~5.18.0",
|
|
96
|
-
"scheduler": "~0.23.0",
|
|
97
|
-
"slate": "~0.101.5",
|
|
98
|
-
"slate-history": "~0.100.0",
|
|
99
|
-
"slate-hyperscript": "~0.100.0",
|
|
100
|
-
"slate-react": "~0.101.5",
|
|
101
|
-
"styled-components": "~6.1.13",
|
|
102
|
-
"tailwind-merge": "~2.2.0",
|
|
103
|
-
"tailwindcss-animate": "~1.0.7"
|
|
104
|
-
},
|
|
105
|
-
"peerDependencies": {
|
|
106
|
-
"next": "~13.5",
|
|
107
|
-
"react": "~18.2.0",
|
|
108
|
-
"react-dom": "~18.2.0",
|
|
109
|
-
"react-h5-audio-player": "~3.9.1",
|
|
110
|
-
"react-player": "~2.13.0",
|
|
111
|
-
"styled-components": "6.1.8"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@soul-refiner/design-system",
|
|
3
|
+
"version": "2.11.0-alpha.2",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/src/index.d.ts",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org"
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"/dist"
|
|
12
|
+
],
|
|
13
|
+
"files": [
|
|
14
|
+
"dist/**/*"
|
|
15
|
+
],
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"import": {
|
|
19
|
+
"types": "./dist/src/index.d.ts",
|
|
20
|
+
"default": "./dist/index.js"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
26
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
27
|
+
"@storybook/addon-essentials": "^7.6.7",
|
|
28
|
+
"@storybook/addon-interactions": "^7.6.7",
|
|
29
|
+
"@storybook/addon-links": "^7.6.7",
|
|
30
|
+
"@storybook/addon-themes": "^7.2.3",
|
|
31
|
+
"@storybook/addons": "^7.6.7",
|
|
32
|
+
"@storybook/blocks": "^7.6.7",
|
|
33
|
+
"@storybook/nextjs": "~7.5.3",
|
|
34
|
+
"@storybook/preview-api": "^7.6.13",
|
|
35
|
+
"@storybook/react": "~7.2.1",
|
|
36
|
+
"@storybook/testing-library": "~0.2.0",
|
|
37
|
+
"@types/react": "^18.2.48",
|
|
38
|
+
"@types/react-dom": "18.2.0",
|
|
39
|
+
"@types/react-show-more-text": "^1.4.5",
|
|
40
|
+
"@types/styled-components": "~5.1.26",
|
|
41
|
+
"chromatic": "~6.17.4",
|
|
42
|
+
"husky": "~8.0.0",
|
|
43
|
+
"prettier": "~2.8.8",
|
|
44
|
+
"pretty-quick": "~3.1.3",
|
|
45
|
+
"prop-types": "~15.8.1",
|
|
46
|
+
"rollup": "^4.12.0",
|
|
47
|
+
"rollup-plugin-node-externals": "^7.0.1",
|
|
48
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
49
|
+
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
50
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
51
|
+
"rollup-plugin-uglify": "^6.0.4",
|
|
52
|
+
"storybook": "~7.5.3",
|
|
53
|
+
"tailwindcss": "^3.4.1",
|
|
54
|
+
"tsc-alias": "^1.8.8",
|
|
55
|
+
"tsconfig-paths-webpack-plugin": "~4.0.1",
|
|
56
|
+
"tslib": "^2.6.2",
|
|
57
|
+
"typescript": "~5.0.4",
|
|
58
|
+
"webpack": "~5.89.0"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "yarn rollup --config",
|
|
62
|
+
"build:tailwind": "npx tailwindcss -i ./src/styles/globals.css -o ./dist/styles/output.css",
|
|
63
|
+
"format": "prettier --write .",
|
|
64
|
+
"storybook": "yarn build:tailwind && storybook dev -p 6006",
|
|
65
|
+
"build-storybook": "storybook build",
|
|
66
|
+
"prepare": "husky install"
|
|
67
|
+
},
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"@emoji-mart/react": "~1.1.1",
|
|
70
|
+
"@emotion/react": "^11.11.4",
|
|
71
|
+
"@emotion/styled": "^11.11.0",
|
|
72
|
+
"@mui/material": "^5.15.13",
|
|
73
|
+
"@mui/x-date-pickers": "^6.19.6",
|
|
74
|
+
"@radix-ui/react-dropdown-menu": "^2.0.6",
|
|
75
|
+
"@radix-ui/react-popover": "^1.0.7",
|
|
76
|
+
"@radix-ui/react-separator": "^1.0.3",
|
|
77
|
+
"@radix-ui/react-slot": "^1.0.2",
|
|
78
|
+
"@radix-ui/react-tooltip": "^1.0.7",
|
|
79
|
+
"@udecode/cn": "~29.0.1",
|
|
80
|
+
"@udecode/plate": "^30.6.1",
|
|
81
|
+
"@udecode/react-utils": "^29.0.1",
|
|
82
|
+
"class-variance-authority": "~0.7.0",
|
|
83
|
+
"date-fns": "^3.4.0",
|
|
84
|
+
"emoji-mart": "~5.5.2",
|
|
85
|
+
"lucide-react": "~0.307.0",
|
|
86
|
+
"next": "~13.5",
|
|
87
|
+
"react": "18.2.0",
|
|
88
|
+
"react-dnd": "~16.0.1",
|
|
89
|
+
"react-dnd-html5-backend": "~16.0.1",
|
|
90
|
+
"react-dom": "~18.2.0",
|
|
91
|
+
"react-h5-audio-player": "~3.9.1",
|
|
92
|
+
"react-is": "~18.2.0",
|
|
93
|
+
"react-player": "~2.13.0",
|
|
94
|
+
"react-show-more-text": "^1.7.1",
|
|
95
|
+
"react-tooltip": "~5.18.0",
|
|
96
|
+
"scheduler": "~0.23.0",
|
|
97
|
+
"slate": "~0.101.5",
|
|
98
|
+
"slate-history": "~0.100.0",
|
|
99
|
+
"slate-hyperscript": "~0.100.0",
|
|
100
|
+
"slate-react": "~0.101.5",
|
|
101
|
+
"styled-components": "~6.1.13",
|
|
102
|
+
"tailwind-merge": "~2.2.0",
|
|
103
|
+
"tailwindcss-animate": "~1.0.7"
|
|
104
|
+
},
|
|
105
|
+
"peerDependencies": {
|
|
106
|
+
"next": "~13.5",
|
|
107
|
+
"react": "~18.2.0",
|
|
108
|
+
"react-dom": "~18.2.0",
|
|
109
|
+
"react-h5-audio-player": "~3.9.1",
|
|
110
|
+
"react-player": "~2.13.0",
|
|
111
|
+
"styled-components": "6.1.8"
|
|
112
|
+
}
|
|
113
|
+
}
|