@itcase/storybook-config 1.1.70 → 1.1.72

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.
@@ -403,10 +403,16 @@ function withLayoutDecorator() {
403
403
  };
404
404
  var layoutClass = layouts[(parameters == null ? void 0 : parameters.layout) || ''];
405
405
  if (!layoutClass) {
406
- return /*#__PURE__*/React.createElement(Story, null);
406
+ return /*#__PURE__*/React.createElement("div", {
407
+ style: maxWidthStyle
408
+ }, /*#__PURE__*/React.createElement(Story, null));
407
409
  }
410
+ var maxWidthStyle = {
411
+ maxWidth: (parameters == null ? void 0 : parameters.maxWidth) + 'px'
412
+ };
408
413
  return /*#__PURE__*/React.createElement("div", {
409
- className: layoutClass
414
+ className: layoutClass,
415
+ style: maxWidthStyle
410
416
  }, /*#__PURE__*/React.createElement(Story, null));
411
417
  };
412
418
  }
@@ -4,7 +4,7 @@ const ADDONS_VITE = [
4
4
  '@storybook/addon-designs',
5
5
  '@storybook/addon-docs',
6
6
  '@storybook/addon-vitest',
7
- 'storybook-addon-source-link',
7
+ //'storybook-addon-source-link',
8
8
  ]
9
9
 
10
10
  export { ADDONS_VITE }
@@ -4,7 +4,7 @@ const ADDONS_VITE = [
4
4
  '@storybook/addon-designs',
5
5
  '@storybook/addon-docs',
6
6
  '@storybook/addon-vitest',
7
- 'storybook-addon-source-link',
7
+ //'storybook-addon-source-link',
8
8
  ]
9
9
 
10
10
  export { ADDONS_VITE }
@@ -8,15 +8,8 @@ const VIEWPORTS = {
8
8
  height: '100%',
9
9
  },
10
10
  },
11
- form: {
12
- name: 'Form',
13
- styles: {
14
- width: '520px',
15
- height: '800px',
16
- },
17
- },
18
11
  formLarge: {
19
- name: 'Form',
12
+ name: 'Form Large',
20
13
  styles: {
21
14
  width: '800px',
22
15
  height: '800px',
@@ -8,15 +8,8 @@ const VIEWPORTS = {
8
8
  height: '100%',
9
9
  },
10
10
  },
11
- form: {
12
- name: 'Form',
13
- styles: {
14
- width: '520px',
15
- height: '800px',
16
- },
17
- },
18
11
  formLarge: {
19
- name: 'Form',
12
+ name: 'Form Large',
20
13
  styles: {
21
14
  width: '800px',
22
15
  height: '800px',
@@ -401,10 +401,16 @@ function withLayoutDecorator() {
401
401
  };
402
402
  var layoutClass = layouts[(parameters == null ? void 0 : parameters.layout) || ''];
403
403
  if (!layoutClass) {
404
- return /*#__PURE__*/React.createElement(Story, null);
404
+ return /*#__PURE__*/React.createElement("div", {
405
+ style: maxWidthStyle
406
+ }, /*#__PURE__*/React.createElement(Story, null));
405
407
  }
408
+ var maxWidthStyle = {
409
+ maxWidth: (parameters == null ? void 0 : parameters.maxWidth) + 'px'
410
+ };
406
411
  return /*#__PURE__*/React.createElement("div", {
407
- className: layoutClass
412
+ className: layoutClass,
413
+ style: maxWidthStyle
408
414
  }, /*#__PURE__*/React.createElement(Story, null));
409
415
  };
410
416
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/storybook-config",
3
- "version": "1.1.70",
3
+ "version": "1.1.72",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets",
6
6
  "engines": {
@@ -69,17 +69,17 @@
69
69
  "@itcase/config": "^1.0.55",
70
70
  "@itcase/storybook-addon-auth": "^1.0.5",
71
71
  "@storybook/addon-designs": "^10.0.2",
72
- "@storybook/addon-docs": "^9.0.18",
73
- "@storybook/addon-links": "^9.0.18",
72
+ "@storybook/addon-docs": "^9.1.0",
73
+ "@storybook/addon-links": "^9.1.0",
74
74
  "@storybook/addon-styling-webpack": "^2.0.0",
75
- "@storybook/addon-themes": "^9.0.18",
75
+ "@storybook/addon-themes": "^9.1.0",
76
76
  "@storybook/addon-webpack5-compiler-swc": "^3.0.0",
77
- "@storybook/addon-vitest": "^9.0.18",
77
+ "@storybook/addon-vitest": "^9.1.0",
78
78
  "@vitejs/plugin-react": "^4.7.0",
79
- "@storybook/nextjs": "^9.0.18",
80
- "@storybook/react-vite": "^9.0.18",
81
- "@storybook/react-webpack5": "^9.0.18",
82
- "chalk": "^5.4.1",
79
+ "@storybook/nextjs": "^9.1.0",
80
+ "@storybook/react-vite": "^9.1.0",
81
+ "@storybook/react-webpack5": "^9.1.0",
82
+ "chalk": "^5.5.0",
83
83
  "http-proxy-middleware": "^3.0.5",
84
84
  "msw": "^2.10.4",
85
85
  "msw-storybook-addon": "^2.0.5",
@@ -108,16 +108,16 @@
108
108
  "eslint": "9.32.0",
109
109
  "glob": "^11.0.3",
110
110
  "husky": "^9.1.7",
111
- "lint-staged": "^16.1.2",
111
+ "lint-staged": "^16.1.4",
112
112
  "prettier": "^3.6.2",
113
113
  "react": "^18",
114
114
  "react-dom": "^18",
115
- "rollup": "^4.46.1",
115
+ "rollup": "^4.46.2",
116
116
  "rollup-plugin-copy": "^3.5.0",
117
117
  "rollup-plugin-peer-deps-external": "^2.2.4",
118
118
  "semantic-release": "^24.2.7",
119
- "storybook": "^9.0.18",
120
- "stylelint": "^16.22.0",
121
- "typescript": "^5.8.3"
119
+ "storybook": "^9.1.0",
120
+ "stylelint": "^16.23.0",
121
+ "typescript": "^5.9.2"
122
122
  }
123
123
  }