react-justified-layout-ts 1.1.15 → 1.1.16
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/package.json
CHANGED
|
@@ -1,44 +1,47 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "react-justified-layout-ts",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "A component based off Flickr's justified layout that is compatible with Typescript",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"types": "./dist/index.d.ts",
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"react-use
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"@storybook
|
|
24
|
-
"@storybook/addon-
|
|
25
|
-
"@storybook/addon-
|
|
26
|
-
"@storybook/addon-
|
|
27
|
-
"@storybook/addon-
|
|
28
|
-
"@storybook/
|
|
29
|
-
"@storybook/
|
|
30
|
-
"@storybook/react
|
|
31
|
-
"@storybook/
|
|
32
|
-
"@
|
|
33
|
-
"react": "^18.2.
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
},
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "react-justified-layout-ts",
|
|
3
|
+
"version": "1.1.16",
|
|
4
|
+
"description": "A component based off Flickr's justified layout that is compatible with Typescript",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {},
|
|
8
|
+
"scripts": {
|
|
9
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
10
|
+
"typescript": "tsc && copyfiles -u 1 src/**/*.css dist/",
|
|
11
|
+
"storybook": "storybook dev -p 6006",
|
|
12
|
+
"build-storybook": "storybook build"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [],
|
|
15
|
+
"author": "Alan19",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@types/node": "^20.10.7",
|
|
19
|
+
"react-use": "^17.5.0",
|
|
20
|
+
"react-use-measure": "^2.1.1"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@chromatic-com/storybook": "^1.5.0",
|
|
24
|
+
"@storybook/addon-essentials": "^8.1.5",
|
|
25
|
+
"@storybook/addon-interactions": "^8.1.5",
|
|
26
|
+
"@storybook/addon-links": "^8.1.5",
|
|
27
|
+
"@storybook/addon-onboarding": "^8.1.5",
|
|
28
|
+
"@storybook/addon-webpack5-compiler-swc": "^1.0.3",
|
|
29
|
+
"@storybook/blocks": "^8.1.5",
|
|
30
|
+
"@storybook/react": "^8.1.5",
|
|
31
|
+
"@storybook/react-webpack5": "^8.1.5",
|
|
32
|
+
"@storybook/test": "^8.1.5",
|
|
33
|
+
"@types/react": "^18.2.47",
|
|
34
|
+
"copyfiles": "^2.4.1",
|
|
35
|
+
"react": "^18.2.0",
|
|
36
|
+
"rimraf": "^5.0.7",
|
|
37
|
+
"storybook": "^8.1.5",
|
|
38
|
+
"typescript": "^5.3.3"
|
|
39
|
+
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"react": "^18.2.0"
|
|
42
|
+
},
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "git+https://github.com/Alan19/react-justified-layout-ts.git"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -181,7 +181,9 @@ export const Primary: Story = {
|
|
|
181
181
|
itemSpacing: undefined,
|
|
182
182
|
layoutItems: displayedImages.map(value => value.aspectRatio),
|
|
183
183
|
targetRowHeightTolerance: undefined,
|
|
184
|
-
children: displayedImages.map(value => <div style={{position: "relative"}}
|
|
184
|
+
children: displayedImages.map(value => <div style={{position: "relative"}}>
|
|
185
|
+
<div style={{top: 16, left: 16, position: "absolute"}}>Testing</div>
|
|
186
|
+
<img src={value.webp}/></div>)
|
|
185
187
|
},
|
|
186
188
|
};
|
|
187
189
|
|
|
@@ -216,7 +218,7 @@ export const Single: Story = {
|
|
|
216
218
|
export const SingleWithDiv: Story = {
|
|
217
219
|
name: "Complex Single Element",
|
|
218
220
|
args: {
|
|
219
|
-
children: [<div><img src={'https://alcorsiteartbucket.s3.amazonaws.com/webp/alcor_wow.webp'}
|
|
221
|
+
children: [<div><img src={'https://alcorsiteartbucket.s3.amazonaws.com/webp/alcor_wow.webp'}/></div>],
|
|
220
222
|
width: 847,
|
|
221
223
|
showWidows: true,
|
|
222
224
|
targetRowHeight: undefined,
|