@availity/theme-provider 0.1.1 → 0.2.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 +14 -4
- package/package.json +4 -8
- package/src/lib/theme-provider.tsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.2.0](https://github.com/Availity/element/compare/@availity/theme-provider@0.1.2...@availity/theme-provider@0.2.0) (2023-03-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **theme:** update theme for button ([164f831](https://github.com/Availity/element/commit/164f83114c732da85f53bcf772f22b5436f2e9ff))
|
|
11
|
+
|
|
12
|
+
## [0.1.2](https://github.com/Availity/element/compare/@availity/theme-provider@0.1.1...@availity/theme-provider@0.1.2) (2023-02-22)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* update exports ([af3f9f6](https://github.com/Availity/element/commit/af3f9f6715132b020bf96881dbc70906738bcda7))
|
|
18
|
+
|
|
5
19
|
## [0.1.1](https://github.com/Availity/element/compare/@availity/theme-provider@0.1.0...@availity/theme-provider@0.1.1) (2023-02-22)
|
|
6
20
|
|
|
7
21
|
## 0.1.0 (2023-02-21)
|
|
@@ -17,7 +31,3 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/s
|
|
|
17
31
|
### Features
|
|
18
32
|
|
|
19
33
|
* **theme-provider:** create component ([c532d6e](https://github.com/Availity/element/commit/c532d6e21c29f428c05a3b2159c18d95555dbbbb))
|
|
20
|
-
|
|
21
|
-
# Changelog
|
|
22
|
-
|
|
23
|
-
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
package/package.json
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/theme-provider",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Theme provider for the Element design system",
|
|
5
|
+
"browser": "./dist/index.js",
|
|
5
6
|
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
6
8
|
"types": "./dist/index.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"import": "./dist/index.mjs",
|
|
10
|
-
"require": "./dist/index.js"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
9
|
"scripts": {
|
|
14
10
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
|
15
11
|
"dev": "tsup src/index.ts --format esm,cjs --watch --dts",
|
|
@@ -19,7 +15,7 @@
|
|
|
19
15
|
"publish:canary": "yarn npm publish --access public --tag canary"
|
|
20
16
|
},
|
|
21
17
|
"dependencies": {
|
|
22
|
-
"@availity/theme": "0.
|
|
18
|
+
"@availity/theme": "0.2.0",
|
|
23
19
|
"@emotion/react": "^11.10.5",
|
|
24
20
|
"@emotion/styled": "^11.10.5",
|
|
25
21
|
"@mui/material": "^5.11.6",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { lightTheme } from '@availity/theme';
|
|
2
2
|
import { ThemeProvider as MuiThemeProvider, createTheme } from '@mui/material/styles';
|
|
3
|
-
import type { Theme } from '@mui/material/styles';
|
|
3
|
+
import type { Theme, ThemeOptions } from '@mui/material/styles';
|
|
4
4
|
import CssBaseline from '@mui/material/CssBaseline';
|
|
5
5
|
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
|
|
6
6
|
import { LocalizationProvider } from '@mui/x-date-pickers';
|
|
@@ -8,7 +8,7 @@ import { LocalizationProvider } from '@mui/x-date-pickers';
|
|
|
8
8
|
// TODO: how do we add icon support?
|
|
9
9
|
// import '../styles/material-icons.css'
|
|
10
10
|
|
|
11
|
-
const defaultTheme = createTheme(lightTheme);
|
|
11
|
+
const defaultTheme = createTheme(lightTheme as ThemeOptions);
|
|
12
12
|
|
|
13
13
|
export interface ThemeProviderProps {
|
|
14
14
|
children: React.ReactNode;
|