Skip to content

Commit 1921e7b

Browse files
committed
add: support for react 19
change: packages and popper to @neolution-ch/react-popper fix: broken components and tests
1 parent edff3d5 commit 1921e7b

46 files changed

Lines changed: 5256 additions & 5226 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ node_modules
1010
.history
1111
npm-debug.log
1212
package-lock.json
13+
.vs

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.storybook/main.cjs

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,52 @@
1+
const path = require('path');
2+
13
module.exports = {
24
stories: [
3-
'../stories/**/*.stories.mdx',
5+
'../stories/**/*.mdx',
46
'../stories/**/*.stories.js'
57
],
68
addons: [
79
'@storybook/addon-links',
8-
'@storybook/addon-docs'
10+
'@storybook/addon-essentials',
11+
'@storybook/addon-storysource',
12+
'@storybook/addon-mdx-gfm',
913
],
10-
staticDirs: ['../static']
14+
framework: {
15+
name: '@storybook/react-webpack5',
16+
options: {},
17+
},
18+
staticDirs: ['../static'],
19+
webpackFinal: async (config) => {
20+
// Explicitly add babel-loader for all project JS/JSX/CJS files
21+
// (Storybook 8's auto-configured rule may not cover all paths)
22+
config.module.rules.push({
23+
test: /\.(js|jsx|mjs|cjs)$/,
24+
exclude: /node_modules/,
25+
use: [
26+
{
27+
loader: require.resolve('babel-loader'),
28+
options: {
29+
presets: [
30+
'@babel/preset-react',
31+
['@babel/preset-env', { targets: { browsers: ['last 2 versions'] } }],
32+
],
33+
plugins: [
34+
'@babel/plugin-proposal-export-default-from',
35+
'@babel/plugin-proposal-export-namespace-from',
36+
'@babel/plugin-proposal-object-rest-spread',
37+
],
38+
},
39+
},
40+
],
41+
});
42+
43+
config.resolve = {
44+
...config.resolve,
45+
alias: {
46+
...config.resolve.alias,
47+
reactstrap: path.resolve(__dirname, '../src/'),
48+
},
49+
};
50+
return config;
51+
},
1152
};
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { addons } from '@storybook/addons';
2-
import { STORY_RENDERED } from '@storybook/core-events'
1+
import { addons } from '@storybook/manager-api';
2+
import { STORY_RENDERED } from '@storybook/core-events';
33
import { create } from '@storybook/theming';
44

55
const theme = create({
@@ -28,7 +28,7 @@ addons.register('TitleAddon', api => {
2828
if (!storyData) {
2929
title = customTitle;
3030
} else {
31-
title = `${storyData.kind} - ${storyData.name}${customTitle}`
31+
title = `${storyData.title} - ${storyData.name}${customTitle}`
3232
}
3333

3434
if (document.title !== title) {

.storybook/webpack.config.cjs

Lines changed: 0 additions & 11 deletions
This file was deleted.

CODE_OF_CONDUCT.md

Lines changed: 0 additions & 76 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

ISSUE_TEMPLATE.md

Lines changed: 0 additions & 41 deletions
This file was deleted.

PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)