Skip to content

Commit ce3e251

Browse files
authored
Merge pull request #647 from materializecss/release-2.3.0
Release 2.3.0
2 parents 7413f94 + 86cc527 commit ce3e251

File tree

139 files changed

+16425
-15214
lines changed

Some content is hidden

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

139 files changed

+16425
-15214
lines changed

.all-contributorsrc

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

.gitattributes

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

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ node_modules/
2828
# Ignore lock
2929
yarn.lock
3030

31-
#dist/
31+
#dist/
32+
*storybook.log
33+
storybook-static

.storybook/main.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import type { StorybookConfig } from '@storybook/html-vite';
2+
3+
const config: StorybookConfig = {
4+
stories: ['../components/**/*.mdx', '../components/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
5+
addons: ['@storybook/addon-themes', '@storybook/addon-docs'],
6+
framework: {
7+
name: '@storybook/html-vite',
8+
options: {}
9+
},
10+
docs: {
11+
//👇 See the table below for the list of supported options
12+
defaultName: 'Documentation'
13+
}
14+
};
15+
export default config;

.storybook/manager.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { addons } from 'storybook/manager-api';
2+
import yourTheme from './my-theme';
3+
4+
addons.setConfig({
5+
theme: yourTheme
6+
});

.storybook/material-icons.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@import '@fontsource/material-icons';
2+
3+
/* Font source only provides @font-face, so we need this class definition here */
4+
.material-icons {
5+
font-family: 'Material Icons';
6+
font-weight: normal;
7+
font-style: normal;
8+
font-size: 24px;
9+
line-height: 1;
10+
letter-spacing: normal;
11+
text-transform: none;
12+
display: inline-block;
13+
white-space: nowrap;
14+
word-wrap: normal;
15+
direction: ltr;
16+
-webkit-font-feature-settings: 'liga';
17+
-webkit-font-smoothing: antialiased;
18+
}

.storybook/my-theme.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { create } from 'storybook/theming';
2+
3+
export default create({
4+
// base: 'light',
5+
brandTitle: 'My custom Storybook',
6+
brandUrl: 'https://example.com',
7+
brandImage: 'https://storybook.js.org/images/placeholders/350x150.png',
8+
brandTarget: '_self'
9+
});

.storybook/preview.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import type { Preview } from '@storybook/html';
2+
import { withThemeByDataAttribute } from '@storybook/addon-themes';
3+
import './material-icons.css';
4+
import '../sass/materialize.scss';
5+
6+
const preview: Preview = {
7+
decorators: [
8+
// Decorator to be able to switch between light and dark themes
9+
withThemeByDataAttribute({
10+
themes: {
11+
light: 'light',
12+
dark: 'dark'
13+
},
14+
defaultTheme: 'light',
15+
attributeName: 'theme'
16+
})
17+
],
18+
parameters: {
19+
docs: {
20+
toc: true // Enables the table of contents in auto generated docs
21+
},
22+
actions: { argTypesRegex: '^on[A-Z].*' },
23+
controls: {
24+
matchers: {
25+
color: /(background|color)$/i,
26+
date: /Date$/i
27+
}
28+
}
29+
}
30+
};
31+
32+
export default preview;

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,13 @@ Materialize is compatible with:
6262
- Edge
6363

6464
## Testing
65-
We use Jasmine as our testing framework and we're trying to write a robust test suite for our components. If you want to help, [here's a starting guide on how to write tests in Jasmine](CONTRIBUTING.md#jasmine-testing-guide).
65+
We use Jasmine as our testing framework and we're trying to write a robust test suite for our components. If you want to help, [here's a starting guide on how to write tests in Jasmine](docs/CONTRIBUTING.md#jasmine-testing-guide).
66+
67+
## Quick Testing and Development
68+
For quick testing install live-server node package globally and run `npm run demo`
6669

6770
## Contributing
68-
Check out the [CONTRIBUTING document](CONTRIBUTING.md) in the root of the repository to learn how you can contribute. You can also browse the [help-wanted](https://github.com/materializecss/materialize/labels/help-wanted) tag in our issue tracker to find things to do.
71+
Check out the [CONTRIBUTING document](docs/CONTRIBUTING.md) in the root of the repository to learn how you can contribute. You can also browse the [help-wanted](https://github.com/materializecss/materialize/labels/help-wanted) tag in our issue tracker to find things to do.
6972

7073
## Sponsors
7174
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/materialize#sponsor)]

0 commit comments

Comments
 (0)