@okta/odyssey-react-mui 0.14.3 → 0.14.6
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 +38 -0
- package/README.md +29 -0
- package/dist/themes/odyssey/components.d.ts.map +1 -1
- package/dist/themes/odyssey/components.js +331 -112
- package/dist/themes/odyssey/components.js.map +1 -1
- package/dist/themes/odyssey/components.types.d.ts +1 -0
- package/dist/themes/odyssey/components.types.d.ts.map +1 -1
- package/dist/themes/odyssey/components.types.js.map +1 -1
- package/dist/themes/odyssey/mixins.d.ts +14 -0
- package/dist/themes/odyssey/mixins.d.ts.map +1 -0
- package/dist/themes/odyssey/mixins.js +19 -0
- package/dist/themes/odyssey/mixins.js.map +1 -0
- package/dist/themes/odyssey/mixins.types.d.ts +27 -0
- package/dist/themes/odyssey/mixins.types.d.ts.map +1 -0
- package/dist/themes/odyssey/mixins.types.js +13 -0
- package/dist/themes/odyssey/mixins.types.js.map +1 -0
- package/dist/themes/odyssey/palette.js +13 -13
- package/dist/themes/odyssey/palette.js.map +1 -1
- package/dist/themes/odyssey/theme.d.ts +1 -0
- package/dist/themes/odyssey/theme.d.ts.map +1 -1
- package/dist/themes/odyssey/theme.js +3 -0
- package/dist/themes/odyssey/theme.js.map +1 -1
- package/package.json +5 -4
- package/src/themes/odyssey/components.ts +296 -111
- package/src/themes/odyssey/components.types.ts +1 -0
- package/src/themes/odyssey/mixins.ts +21 -0
- package/src/themes/odyssey/mixins.types.ts +29 -0
- package/src/themes/odyssey/palette.ts +13 -13
- package/src/themes/odyssey/theme.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
### [0.14.6](https://github.com/okta/odyssey/compare/v0.14.5...v0.14.6) (2022-08-18)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **odyssey-react-mui:** add borderRadius and borderStyle variables ([b144cf6](https://github.com/okta/odyssey/commit/b144cf6ea2930d6a3ac5fbbe85610931f8debd1e))
|
|
11
|
+
- **odyssey-react-mui:** add theme for Tabs, Tab ([b4c9fc6](https://github.com/okta/odyssey/commit/b4c9fc6d7f0395e900aa842f9dfeb2ea7366b11c))
|
|
12
|
+
- **odyssey-react-mui:** set theme.palette.action.disabled ([b3ce58a](https://github.com/okta/odyssey/commit/b3ce58a60fb5df7be895d54bc45b81fb5da4f719))
|
|
13
|
+
- **odyssey-react-mui:** update palette.text.disabled ([c9cb834](https://github.com/okta/odyssey/commit/c9cb8344a707f788c47819a008c8dcb32937fbda))
|
|
14
|
+
|
|
15
|
+
### [0.14.5](https://github.com/okta/odyssey/compare/v0.14.4...v0.14.5) (2022-08-11)
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
- added information about ThemeProvider and useTheme to README ([2b2490e](https://github.com/okta/odyssey/commit/2b2490e402bbfb492752a030333871f9a5f8b561))
|
|
20
|
+
- **odyssey-react-mui:** add borderWidth and maxWidth theme variables ([05a2fef](https://github.com/okta/odyssey/commit/05a2fef7eb676262e293c80c5de9d24c70c6892d))
|
|
21
|
+
- **odyssey-react-mui:** add themes for Banner and Toast ([236c2bd](https://github.com/okta/odyssey/commit/236c2bdab1f7e03b0d431730d240de1f1c0ead2b))
|
|
22
|
+
- upgraded Storybook and Material-UI ([ab495f9](https://github.com/okta/odyssey/commit/ab495f9eef6769a2d2e46f488b1a98dc29bc772d))
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
- **odyssey-react-mui:** fix Button :focus-visible styles ([91aaa06](https://github.com/okta/odyssey/commit/91aaa06290433126815c065d382b4261fb7b1c7d))
|
|
27
|
+
|
|
28
|
+
### [0.14.4](https://github.com/okta/odyssey/compare/v0.14.3...v0.14.4) (2022-08-04)
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
- **odyssey-react-mui:** add Icon components ([9ba7b4b](https://github.com/okta/odyssey/commit/9ba7b4bdbc17fed37d54e68406dc3527bfc7d703))
|
|
33
|
+
- **odyssey-react-mui:** add MUI themes ([63bd3a3](https://github.com/okta/odyssey/commit/63bd3a3ff1799858f69196abe5f860670e2ac624))
|
|
34
|
+
- **odyssey-react-mui:** add support for InputAdornments ([98f4e39](https://github.com/okta/odyssey/commit/98f4e3968b733bda09756047abc1d07beec8ad57))
|
|
35
|
+
- **odyssey-react-mui:** enable palette theming for components ([f6d4979](https://github.com/okta/odyssey/commit/f6d4979b1b48b0903c677149185d233fb0a62e6b))
|
|
36
|
+
- **odyssey-react-mui:** enable spacing theming for components ([ee3aed5](https://github.com/okta/odyssey/commit/ee3aed58a3632a557109365a503512cb29b50746))
|
|
37
|
+
- **odyssey-react-mui:** storybook updates with MUI theme changes in development ([2563a95](https://github.com/okta/odyssey/commit/2563a95a4b10e0c1ab80050aff3bbb018500cbc7))
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
- updated peerDependencies for odyssey-react-mui to restrict the Material UI version ([d599952](https://github.com/okta/odyssey/commit/d599952cd923a46c78096333e47db801524a9922))
|
|
42
|
+
- upgraded Material UI to fix custom theme values ([a39077a](https://github.com/okta/odyssey/commit/a39077aad95227d8af5285ff6fdee24462f49b20))
|
|
43
|
+
|
|
6
44
|
### [0.14.3](https://github.com/okta/odyssey/compare/v0.14.2...v0.14.3) (2022-07-14)
|
|
7
45
|
|
|
8
46
|
### Features
|
package/README.md
CHANGED
|
@@ -44,6 +44,35 @@ Import named ESM exports:
|
|
|
44
44
|
import { PasswordInput } from "@okta/odyssey-react-mui";
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
+
Add the Material-UI `ThemeProvider` around your whole app:
|
|
48
|
+
|
|
49
|
+
```jsx
|
|
50
|
+
import { ThemeProvider } from "@mui/material/styles";
|
|
51
|
+
import { odysseyTheme } from "@okta/odyssey-react-mui";
|
|
52
|
+
|
|
53
|
+
const YourAppRoot = ({ children }) => (
|
|
54
|
+
<ThemeProvider theme={odysseyTheme}>{children}</ThemeProvider>
|
|
55
|
+
);
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Upgrade Piecemeal
|
|
59
|
+
|
|
60
|
+
It’s possible to have 2 versions of Odyssey running at the same time, so when adding MUI, you can do it piecemeal.
|
|
61
|
+
|
|
62
|
+
This is how you setup two `ThemeProvider`s like so:
|
|
63
|
+
|
|
64
|
+
```jsx
|
|
65
|
+
import { ThemeProvider as MuiThemeProvider } from "@mui/material/styles";
|
|
66
|
+
import { odysseyTheme } from "@okta/odyssey-react-mui";
|
|
67
|
+
import { ThemeProvider } from "@okta/odyssey-react-theme";
|
|
68
|
+
|
|
69
|
+
const YourAppRoot = ({ children }) => (
|
|
70
|
+
<MuiThemeProvider theme={odysseyTheme}>
|
|
71
|
+
<ThemeProvider>{children}</ThemeProvider>
|
|
72
|
+
</MuiThemeProvider>
|
|
73
|
+
);
|
|
74
|
+
```
|
|
75
|
+
|
|
47
76
|
## Components
|
|
48
77
|
|
|
49
78
|
Components are published in an ESM format transpiled for the modern browsers
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/themes/odyssey/components.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/themes/odyssey/components.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAIlD,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,YAAY,CAgvBjD,CAAC"}
|