react-justified-layout-ts 1.1.15 → 1.1.17

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.
@@ -0,0 +1,3 @@
1
+ .justified-row img {
2
+ height: 100%
3
+ }
package/package.json CHANGED
@@ -1,44 +1,46 @@
1
- {
2
- "name": "react-justified-layout-ts",
3
- "version": "1.1.15",
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
- "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1",
9
- "typescript": "tsc",
10
- "storybook": "storybook dev -p 6006",
11
- "build-storybook": "storybook build"
12
- },
13
- "keywords": [],
14
- "author": "Alan19",
15
- "license": "MIT",
16
- "dependencies": {
17
- "@types/node": "^20.10.7",
18
- "react-use": "^17.5.0",
19
- "react-use-measure": "^2.1.1"
20
- },
21
- "devDependencies": {
22
- "@chromatic-com/storybook": "^1.5.0",
23
- "@storybook/addon-essentials": "^8.1.5",
24
- "@storybook/addon-interactions": "^8.1.5",
25
- "@storybook/addon-links": "^8.1.5",
26
- "@storybook/addon-onboarding": "^8.1.5",
27
- "@storybook/addon-webpack5-compiler-swc": "^1.0.3",
28
- "@storybook/blocks": "^8.1.5",
29
- "@storybook/react": "^8.1.5",
30
- "@storybook/react-webpack5": "^8.1.5",
31
- "@storybook/test": "^8.1.5",
32
- "@types/react": "^18.2.47",
33
- "react": "^18.2.0",
34
- "storybook": "^8.1.5",
35
- "typescript": "^5.3.3"
36
- },
37
- "peerDependencies": {
38
- "react": "^18.2.0"
39
- },
40
- "repository": {
41
- "type": "git",
42
- "url": "git+https://github.com/Alan19/react-justified-layout-ts.git"
43
- }
44
- }
1
+ {
2
+ "name": "react-justified-layout-ts",
3
+ "version": "1.1.17",
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
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1",
9
+ "typescript": "tsc && copyfiles -u 1 src/**/*.css dist/",
10
+ "storybook": "storybook dev -p 6006",
11
+ "build-storybook": "storybook build"
12
+ },
13
+ "keywords": [],
14
+ "author": "Alan19",
15
+ "license": "MIT",
16
+ "dependencies": {
17
+ "@types/node": "^20.10.7",
18
+ "react-use": "^17.5.0",
19
+ "react-use-measure": "^2.1.1"
20
+ },
21
+ "devDependencies": {
22
+ "@chromatic-com/storybook": "^1.5.0",
23
+ "@storybook/addon-essentials": "^8.1.5",
24
+ "@storybook/addon-interactions": "^8.1.5",
25
+ "@storybook/addon-links": "^8.1.5",
26
+ "@storybook/addon-onboarding": "^8.1.5",
27
+ "@storybook/addon-webpack5-compiler-swc": "^1.0.3",
28
+ "@storybook/blocks": "^8.1.5",
29
+ "@storybook/react": "^8.1.5",
30
+ "@storybook/react-webpack5": "^8.1.5",
31
+ "@storybook/test": "^8.1.5",
32
+ "@types/react": "^18.2.47",
33
+ "copyfiles": "^2.4.1",
34
+ "react": "^18.2.0",
35
+ "rimraf": "^5.0.7",
36
+ "storybook": "^8.1.5",
37
+ "typescript": "^5.3.3"
38
+ },
39
+ "peerDependencies": {
40
+ "react": "^18.2.0"
41
+ },
42
+ "repository": {
43
+ "type": "git",
44
+ "url": "git+https://github.com/Alan19/react-justified-layout-ts.git"
45
+ }
46
+ }
@@ -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"}}><div style={{top: 16, left: 16, position: "absolute"}}>Testing</div><img src={value.webp} /></div> )
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'} /></div>],
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,