Skip to content

Commit 91a495a

Browse files
authored
Merge pull request #23 from davidcalhoun/bump
initial add of React 18 support
2 parents 085e1a1 + 2e1c70a commit 91a495a

File tree

127 files changed

+33325
-15918
lines changed

Some content is hidden

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

127 files changed

+33325
-15918
lines changed

.storybook/main.js

Lines changed: 15 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,17 @@
1-
module.exports = {
2-
stories: ['../src/**/*.stories.mdx'],
1+
/** @type { import('@storybook/react-webpack5').StorybookConfig } */
2+
const config = {
3+
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
34
addons: [
4-
'@storybook/addon-docs',
5-
'@storybook/addon-essentials',
6-
{
7-
name: '@storybook/addon-postcss',
8-
options: {
9-
styleLoaderOptions: {},
10-
cssLoaderOptions: {
11-
modules: true,
12-
sourceMap: true,
13-
importLoaders: 1,
14-
},
15-
postcssLoaderOptions: {
16-
implementation: require('postcss')
17-
},
18-
},
19-
}
5+
"@storybook/addon-links",
6+
"@storybook/addon-essentials",
7+
"@storybook/addon-interactions",
208
],
21-
webpackFinal: async (config) => {
22-
// Finds and removes the old CSS rule.
23-
const cssRuleIndex = config.module.rules.findIndex(rule => rule.test.toString().includes('.css'));
24-
if (cssRuleIndex !== -1) {
25-
//config.module.rules.splice(cssRuleIndex, 1);
26-
}
27-
28-
//console.log(11, config.module.rules[cssRuleIndex])
29-
30-
// Tweaks needed for PostCSS and CSS modules.
31-
// config.module.rules.push({
32-
// test: /\.css$/,
33-
// use: [
34-
// 'style-loader',
35-
// {
36-
// loader: 'css-loader',
37-
// options: {
38-
// modules: true,
39-
// importLoaders: 1
40-
// }
41-
// },
42-
// 'postcss-loader'
43-
// ]
44-
// });
45-
46-
// Returns the modified config.
47-
return config;
48-
}
49-
};
9+
framework: {
10+
name: "@storybook/react-webpack5",
11+
options: {},
12+
},
13+
docs: {
14+
autodocs: "tag",
15+
},
16+
};
17+
export default config;

.storybook/preview.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/** @type { import('@storybook/react').Preview } */
2+
const preview = {
3+
parameters: {
4+
actions: { argTypesRegex: "^on[A-Z].*" },
5+
controls: {
6+
matchers: {
7+
color: /(background|color)$/i,
8+
date: /Date$/,
9+
},
10+
},
11+
},
12+
};
13+
14+
export default preview;

.travis.yml

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

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# react-hover-slideshow
2-
[![Build Status](https://travis-ci.org/davidcalhoun/react-hover-slideshow.svg?branch=master)](https://travis-ci.org/davidcalhoun/react-hover-slideshow)
32
[![Downloads][downloads-image]][npm-url]
43

54
Iterates through an image slideshow based on cursor/touch position.

0 commit comments

Comments
 (0)