@availity/theme-provider 0.5.1 → 1.0.0
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.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.0.0](https://github.com/Availity/element/compare/@availity/theme-provider@1.0.0-alpha.0...@availity/theme-provider@1.0.0) (2025-02-25)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `theme` updated to version `0.5.1`
|
|
10
|
+
* `mui-alert` updated to version `0.5.1`
|
|
11
|
+
|
|
12
|
+
### ⚠ BREAKING CHANGES
|
|
13
|
+
|
|
14
|
+
* upgrade to @mui/material v6
|
|
15
|
+
|
|
16
|
+
### Miscellaneous Chores
|
|
17
|
+
|
|
18
|
+
* element v1 release ([a6e3567](https://github.com/Availity/element/commit/a6e35671185b9f13d25c7a39c4488ecb8774633e))
|
|
19
|
+
|
|
20
|
+
## [1.0.0-alpha.0](https://github.com/Availity/element/compare/@availity/theme-provider@0.5.1...@availity/theme-provider@1.0.0-alpha.0) (2025-02-24)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### ⚠ BREAKING CHANGES
|
|
24
|
+
|
|
25
|
+
* upgraded to @mui/material v6
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* upgrade @mui/material ([571453a](https://github.com/Availity/element/commit/571453a34b21c344594ab4c03bc497d19aba942b))
|
|
30
|
+
* upgrade to MUI v6 ([7febd6f](https://github.com/Availity/element/commit/7febd6fd4fd58e87e1c97a832cea3b4595a35d58))
|
|
31
|
+
|
|
5
32
|
## [0.5.1](https://github.com/Availity/element/compare/@availity/theme-provider@0.5.0...@availity/theme-provider@0.5.1) (2025-02-05)
|
|
6
33
|
|
|
7
34
|
### Dependency Updates
|
package/dist/index.js
CHANGED
|
@@ -28,11 +28,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
30
|
// src/index.ts
|
|
31
|
-
var
|
|
32
|
-
__export(
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
33
|
ThemeProvider: () => ThemeProvider
|
|
34
34
|
});
|
|
35
|
-
module.exports = __toCommonJS(
|
|
35
|
+
module.exports = __toCommonJS(index_exports);
|
|
36
36
|
|
|
37
37
|
// src/lib/theme-provider.tsx
|
|
38
38
|
var import_theme = require("@availity/theme");
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Markdown } from '@storybook/blocks';
|
|
2
2
|
import { Meta } from '@storybook/addon-docs';
|
|
3
3
|
import ReadMe from './README.md?raw';
|
|
4
|
+
import CHANGELOG from './CHANGELOG.md?raw';
|
|
4
5
|
|
|
5
6
|
<Meta title="Design System/ThemeProvider/Introduction" />
|
|
6
7
|
|
|
7
8
|
<Markdown>{ReadMe}</Markdown>
|
|
9
|
+
|
|
10
|
+
<Markdown>{CHANGELOG}</Markdown>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/theme-provider",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Theme provider for the Element design system",
|
|
5
5
|
"browser": "./dist/index.js",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,17 +23,17 @@
|
|
|
23
23
|
"publish:canary": "yarn npm publish --access public --tag canary"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@availity/theme": "0.
|
|
27
|
-
"@emotion/react": "^11.
|
|
28
|
-
"@emotion/styled": "^11.
|
|
29
|
-
"@mui/material": "^
|
|
30
|
-
"@mui/x-date-pickers": "^7.
|
|
26
|
+
"@availity/theme": "1.0.0",
|
|
27
|
+
"@emotion/react": "^11.14.0",
|
|
28
|
+
"@emotion/styled": "^11.14.0",
|
|
29
|
+
"@mui/material": "^6.4.5",
|
|
30
|
+
"@mui/x-date-pickers": "^7.26.0",
|
|
31
31
|
"dayjs": "^1.11.13"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"react": "18.2.0",
|
|
35
35
|
"react-dom": "18.2.0",
|
|
36
|
-
"tsup": "^8.
|
|
36
|
+
"tsup": "^8.3.6",
|
|
37
37
|
"typescript": "~5.4.5"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Alert } from '@availity/mui-alert';
|
|
2
3
|
import { ThemeProvider } from './theme-provider';
|
|
3
4
|
|
|
5
|
+
/** Wraps entire app for theme, locale, and date context */
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Design System/ThemeProvider',
|
|
8
|
+
component: ThemeProvider,
|
|
9
|
+
tags: ['autodocs']
|
|
10
|
+
};
|
|
11
|
+
|
|
4
12
|
export const Default: StoryObj<typeof ThemeProvider> = {
|
|
5
13
|
render: () => (
|
|
6
14
|
<>
|
|
7
|
-
<ThemeProvider>
|
|
8
|
-
<
|
|
15
|
+
<ThemeProvider theme="lightTheme">
|
|
16
|
+
<Alert severity="info" sx={{mb: 2}}>This alert is inside the ThemeProvider using "lightTheme"</Alert>
|
|
17
|
+
</ThemeProvider>
|
|
18
|
+
<ThemeProvider theme="legacyBS">
|
|
19
|
+
<Alert severity="info">This alert is inside the ThemeProvider using "legacyBS" theme</Alert>
|
|
9
20
|
</ThemeProvider>
|
|
10
|
-
<div>This component is outside the ThemeProvider</div>
|
|
11
21
|
</>
|
|
12
22
|
),
|
|
13
23
|
};
|
|
14
|
-
|
|
15
|
-
export default {
|
|
16
|
-
title: 'Design System/ThemeProvider',
|
|
17
|
-
};
|