@itcase/storybook-config 1.2.43 → 1.2.45

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.
@@ -6245,7 +6245,7 @@ const iconAppearance = {
6245
6245
  const iconConfig = {
6246
6246
  appearance: iconAppearance};
6247
6247
  const Icon = urlWithAssetPrefix(React.forwardRef(function Icon(props, ref) {
6248
- const { id, appearance, className, dataTestId, dataTour, width, height, badgeClass, href, imageSrc, link, linkRel, linkTarget, notification, saveFillStroke, showTooltip, SvgImage, before, after, isActive, isDisabled, isSkeleton, onClick, onMouseEnter, onMouseLeave, } = props;
6248
+ const { id, appearance, className, dataTestId, dataTour, width, height, badgeClass, href, imageSrc, link, linkRel, linkTarget, notification, saveFillStroke, showTooltip, SvgImage, svgImageStyles, before, after, isActive, isDisabled, isSkeleton, onClick, onMouseEnter, onMouseLeave, } = props;
6249
6249
  const ImageComponent = React.useMemo(() => {
6250
6250
  if (SvgImage) {
6251
6251
  const SvgComponent = SvgImage;
@@ -6256,7 +6256,7 @@ const Icon = urlWithAssetPrefix(React.forwardRef(function Icon(props, ref) {
6256
6256
  if (height) {
6257
6257
  sizes.height = height;
6258
6258
  }
6259
- return jsxRuntimeExports.jsx(SvgComponent, { ...sizes });
6259
+ return jsxRuntimeExports.jsx(SvgComponent, { ...sizes, ...svgImageStyles });
6260
6260
  }
6261
6261
  if (imageSrc) {
6262
6262
  if (imageSrc.endsWith('.svg')) {
@@ -6268,7 +6268,7 @@ const Icon = urlWithAssetPrefix(React.forwardRef(function Icon(props, ref) {
6268
6268
  return jsxRuntimeExports.jsx("img", { src: imageSrc });
6269
6269
  }
6270
6270
  return null;
6271
- }, [SvgImage, imageSrc, width, height, saveFillStroke]);
6271
+ }, [SvgImage, imageSrc, width, height, svgImageStyles, saveFillStroke]);
6272
6272
  const appearanceConfig = useAppearanceConfig(appearance, iconConfig, isDisabled);
6273
6273
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
6274
6274
  const { alignmentClass, fillActiveClass, fillActiveHoverClass, fillClass, fillDisabledClass, fillHoverClass, fillSizeClass, borderColorClass, borderColorHoverClass, borderTypeClass, borderWidthClass, badgeAppearance, badgeAppearanceSize, badgeShape, badgeSize, badgeTextColor, badgeTextSize, badgeValue, centeringClass, iconFillActiveClass, iconFillActiveHoverClass, iconFillClass, iconFillDisabledClass, iconFillHoverClass, iconSizeClass, shapeClass, shapeStrengthClass, tooltipAppearance, tooltipText, tooltipTextSize, tooltipTitle, tooltipTitleSize, } = propsGenerator;
@@ -6225,7 +6225,7 @@ const iconAppearance = {
6225
6225
  const iconConfig = {
6226
6226
  appearance: iconAppearance};
6227
6227
  const Icon = urlWithAssetPrefix(React__default.forwardRef(function Icon(props, ref) {
6228
- const { id, appearance, className, dataTestId, dataTour, width, height, badgeClass, href, imageSrc, link, linkRel, linkTarget, notification, saveFillStroke, showTooltip, SvgImage, before, after, isActive, isDisabled, isSkeleton, onClick, onMouseEnter, onMouseLeave, } = props;
6228
+ const { id, appearance, className, dataTestId, dataTour, width, height, badgeClass, href, imageSrc, link, linkRel, linkTarget, notification, saveFillStroke, showTooltip, SvgImage, svgImageStyles, before, after, isActive, isDisabled, isSkeleton, onClick, onMouseEnter, onMouseLeave, } = props;
6229
6229
  const ImageComponent = useMemo(() => {
6230
6230
  if (SvgImage) {
6231
6231
  const SvgComponent = SvgImage;
@@ -6236,7 +6236,7 @@ const Icon = urlWithAssetPrefix(React__default.forwardRef(function Icon(props, r
6236
6236
  if (height) {
6237
6237
  sizes.height = height;
6238
6238
  }
6239
- return jsxRuntimeExports.jsx(SvgComponent, { ...sizes });
6239
+ return jsxRuntimeExports.jsx(SvgComponent, { ...sizes, ...svgImageStyles });
6240
6240
  }
6241
6241
  if (imageSrc) {
6242
6242
  if (imageSrc.endsWith('.svg')) {
@@ -6248,7 +6248,7 @@ const Icon = urlWithAssetPrefix(React__default.forwardRef(function Icon(props, r
6248
6248
  return jsxRuntimeExports.jsx("img", { src: imageSrc });
6249
6249
  }
6250
6250
  return null;
6251
- }, [SvgImage, imageSrc, width, height, saveFillStroke]);
6251
+ }, [SvgImage, imageSrc, width, height, svgImageStyles, saveFillStroke]);
6252
6252
  const appearanceConfig = useAppearanceConfig(appearance, iconConfig, isDisabled);
6253
6253
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
6254
6254
  const { alignmentClass, fillActiveClass, fillActiveHoverClass, fillClass, fillDisabledClass, fillHoverClass, fillSizeClass, borderColorClass, borderColorHoverClass, borderTypeClass, borderWidthClass, badgeAppearance, badgeAppearanceSize, badgeShape, badgeSize, badgeTextColor, badgeTextSize, badgeValue, centeringClass, iconFillActiveClass, iconFillActiveHoverClass, iconFillClass, iconFillDisabledClass, iconFillHoverClass, iconSizeClass, shapeClass, shapeStrengthClass, tooltipAppearance, tooltipText, tooltipTextSize, tooltipTitle, tooltipTitleSize, } = propsGenerator;
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _rollupPluginBabelHelpers = require('../../_rollupPluginBabelHelpers-Wvf9ehn_.js');
4
4
  var React = require('react');
5
- var Notification = require('../../Notification-DdI13c8_.js');
5
+ var Notification = require('../../Notification-9brero6A.js');
6
6
  require('@itcase/common');
7
7
  require('lodash/camelCase');
8
8
  require('lodash/castArray');
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var Notification = require('../../Notification-DdI13c8_.js');
4
+ var Notification = require('../../Notification-9brero6A.js');
5
5
  require('@itcase/common');
6
6
  require('lodash/camelCase');
7
7
  require('lodash/castArray');
@@ -14,7 +14,7 @@ require('./components/FormSubmitWrapper.js');
14
14
  require('lodash/camelCase');
15
15
  require('@itcase/common');
16
16
  require('msw');
17
- require('../Notification-DdI13c8_.js');
17
+ require('../Notification-9brero6A.js');
18
18
  require('lodash/upperFirst');
19
19
  require('lodash/maxBy');
20
20
 
@@ -5,6 +5,7 @@
5
5
  .sb-main-centered {
6
6
  & #storybook-root {
7
7
  min-height: 100%;
8
+ max-height: none;
8
9
  position: relative;
9
10
  flex-direction: column;
10
11
  align-items: center;
@@ -34,17 +35,14 @@
34
35
 
35
36
  .sb-layout {
36
37
  &-relative {
37
- position: relative;
38
38
  min-height: 100vh;
39
+ position: relative;
39
40
  display: flex;
40
41
  justify-content: center;
41
- align-items: center;
42
+ align-items: center;
42
43
  & > div {
43
44
  position: relative;
44
- left: auto !important;
45
- top: auto !important;
46
- right: auto !important;
47
- bottom: auto !important;
45
+ inset: auto auto auto auto !important;
48
46
  }
49
47
  }
50
48
  &-top {
@@ -53,8 +51,8 @@
53
51
  justify-content: center;
54
52
  align-items: flex-start;
55
53
  &-full {
56
- min-height: 100vh;
57
54
  min-width: 100vw;
55
+ min-height: 100vh;
58
56
  display: flex;
59
57
  justify-content: center;
60
58
  align-items: flex-start;
@@ -102,7 +100,6 @@
102
100
  display: flex;
103
101
  justify-content: center;
104
102
  align-items: center;
105
- & > div[class*='group width_fill'],
106
103
  & > div[class*='group width_fill'] {
107
104
  width: auto;
108
105
  }
@@ -112,7 +109,6 @@
112
109
  display: flex;
113
110
  justify-content: center;
114
111
  align-items: center;
115
- & > div[class*='group width_fill'],
116
112
  & > div[class*='group width_fill'] {
117
113
  width: auto;
118
114
  }
@@ -1,6 +1,6 @@
1
1
  import { _ as _objectWithoutProperties } from '../_rollupPluginBabelHelpers-47UUmXIE.js';
2
2
  import React__default from 'react';
3
- import { U as UIProvider, N as NotificationsProvider, a as NotificationWrapper } from '../Notification-DXT7_18x.js';
3
+ import { U as UIProvider, N as NotificationsProvider, a as NotificationWrapper } from '../Notification-B-qQJcvG.js';
4
4
  import '@itcase/common';
5
5
  import 'lodash/camelCase';
6
6
  import 'lodash/castArray';
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { U as UIProvider, N as NotificationsProvider, a as NotificationWrapper } from '../Notification-DXT7_18x.js';
2
+ import { U as UIProvider, N as NotificationsProvider, a as NotificationWrapper } from '../Notification-B-qQJcvG.js';
3
3
  import '@itcase/common';
4
4
  import 'lodash/camelCase';
5
5
  import 'lodash/castArray';
@@ -12,6 +12,6 @@ import './components/FormSubmitWrapper.js';
12
12
  import 'lodash/camelCase';
13
13
  import '@itcase/common';
14
14
  import 'msw';
15
- import './Notification-DXT7_18x.js';
15
+ import './Notification-B-qQJcvG.js';
16
16
  import 'lodash/upperFirst';
17
17
  import 'lodash/maxBy';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/storybook-config",
3
- "version": "1.2.43",
3
+ "version": "1.2.45",
4
4
  "author": "ITCase",
5
5
  "description": "Storybook configuration package",
6
6
  "engines": {
@@ -83,34 +83,35 @@
83
83
  },
84
84
  "dependencies": {
85
85
  "@gorhom/bottom-sheet": "^5.2.8",
86
- "@itcase/config": "^1.6.51",
86
+ "@itcase/config": "^1.6.52",
87
87
  "@itcase/storybook-addon-auth": "^1.0.5",
88
88
  "@react-native-async-storage/async-storage": "^3.0.1",
89
89
  "@react-native-community/datetimepicker": "^8.6.0",
90
90
  "@storybook/addon-designs": "^11.1.2",
91
- "@storybook/addon-docs": "^10.2.14",
92
- "@storybook/addon-links": "^10.2.14",
91
+ "@storybook/addon-docs": "^10.2.15",
92
+ "@storybook/addon-links": "^10.2.15",
93
93
  "@storybook/addon-ondevice-actions": "10.2.3",
94
94
  "@storybook/addon-ondevice-backgrounds": "10.2.3",
95
95
  "@storybook/addon-ondevice-controls": "10.2.3",
96
96
  "@storybook/addon-ondevice-notes": "^10.2.3",
97
97
  "@storybook/addon-react-native-web": "^0.0.29",
98
98
  "@storybook/addon-styling-webpack": "^3.0.0",
99
- "@storybook/addon-themes": "^10.2.14",
100
- "@storybook/addon-vitest": "^10.2.14",
99
+ "@storybook/addon-themes": "^10.2.15",
100
+ "@storybook/addon-vitest": "^10.2.15",
101
101
  "@storybook/addon-webpack5-compiler-swc": "^4.0.2",
102
- "@storybook/builder-vite": "^10.2.14",
103
- "@storybook/nextjs": "^10.2.14",
104
- "@storybook/nextjs-vite": "^10.2.14",
105
- "@storybook/react": "^10.2.14",
102
+ "@storybook/builder-vite": "^10.2.15",
103
+ "@storybook/nextjs": "^10.2.15",
104
+ "@storybook/nextjs-vite": "^10.2.15",
105
+ "@storybook/react": "^10.2.15",
106
106
  "@storybook/react-native": "10.2.3",
107
107
  "@storybook/react-native-ui-lite": "10.2.3",
108
- "@storybook/react-native-web-vite": "^10.2.14",
109
- "@storybook/react-vite": "^10.2.14",
110
- "@storybook/react-webpack5": "^10.2.14",
108
+ "@storybook/react-native-web-vite": "^10.2.15",
109
+ "@storybook/react-vite": "^10.2.15",
110
+ "@storybook/react-webpack5": "^10.2.15",
111
111
  "@vitejs/plugin-react": "^5.1.4",
112
112
  "@vitest/browser-playwright": "^4.0.18",
113
113
  "babel-loader": "^10.0.0",
114
+ "babel-plugin-react-docgen": "^4.2.1",
114
115
  "babel-plugin-react-native-web": "^0.21.2",
115
116
  "babel-plugin-transform-inline-environment-variables": "^0.4.4",
116
117
  "chalk": "^5.6.2",
@@ -123,7 +124,7 @@
123
124
  "react-native-svg": "^15.15.3",
124
125
  "react-native-web": "^0.21.2",
125
126
  "react-native-worklets": "^0.7.4",
126
- "storybook": "^10.2.14",
127
+ "storybook": "^10.2.15",
127
128
  "storybook-addon-source-link": "^2.0.1",
128
129
  "vite": "^7.3.1",
129
130
  "vite-plugin-babel": "^1.5.1",
@@ -136,11 +137,11 @@
136
137
  "@babel/preset-env": "^7.29.0",
137
138
  "@babel/preset-react": "^7.28.5",
138
139
  "@babel/runtime": "^7.28.6",
139
- "@commitlint/cli": "^20.4.2",
140
- "@commitlint/config-conventional": "^20.4.2",
140
+ "@commitlint/cli": "^20.4.3",
141
+ "@commitlint/config-conventional": "^20.4.3",
141
142
  "@itcase/common": "^1.2.41",
142
- "@itcase/lint": "^1.1.97",
143
- "@itcase/ui": "^1.9.66",
143
+ "@itcase/lint": "^1.1.98",
144
+ "@itcase/ui": "^1.9.67",
144
145
  "@react-native-community/cli": "20.1.2",
145
146
  "@react-native-community/cli-platform-android": "20.1.2",
146
147
  "@react-native-community/cli-platform-ios": "20.1.2",
@@ -148,22 +149,23 @@
148
149
  "@react-native/eslint-config": "0.84.1",
149
150
  "@react-native/metro-config": "0.84.1",
150
151
  "@react-native/typescript-config": "0.84.1",
151
- "@rollup/plugin-babel": "^6.1.0",
152
- "@rollup/plugin-commonjs": "^29.0.0",
152
+ "@rollup/plugin-babel": "^7.0.0",
153
+ "@rollup/plugin-commonjs": "^29.0.1",
153
154
  "@rollup/plugin-json": "^6.1.0",
154
155
  "@rollup/plugin-node-resolve": "^16.0.3",
155
- "@storybook/addon-docs": "^10.2.14",
156
- "@types/react": "^19",
157
- "@types/react-dom": "^19",
156
+ "@storybook/addon-docs": "^10.2.15",
157
+ "@types/react": "^18",
158
+ "@types/react-dom": "^18",
159
+ "react-docgen": "^8.0.2",
160
+ "react-docgen-typescript": "^2.4.0",
158
161
  "babel-plugin-transform-inline-environment-variables": "^0.4.4",
159
- "conventional-changelog-conventionalcommits": "^9.2.0",
162
+ "conventional-changelog-conventionalcommits": "^9.3.0",
160
163
  "eslint": "9.39.2",
161
164
  "glob": "^13.0.6",
162
165
  "husky": "^9.1.7",
163
- "lint-staged": "^16.3.1",
166
+ "lint-staged": "^16.3.2",
164
167
  "next": "^16.1.6",
165
168
  "prettier": "^3.8.1",
166
- "react-docgen-typescript": "^2.4.0",
167
169
  "react": "^18",
168
170
  "react-dom": "^18",
169
171
  "react-native": "0.84.1",