@okta/odyssey-react-mui 1.0.0 → 1.0.1
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 +36 -0
- package/README.md +8 -11
- package/dist/Box.js +2 -0
- package/dist/Box.js.map +1 -1
- package/dist/Fieldset.js +2 -3
- package/dist/Fieldset.js.map +1 -1
- package/dist/src/Box.d.ts +1 -0
- package/dist/src/Box.d.ts.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/package.json +5 -4
- package/src/Box.tsx +9 -2
- package/src/Fieldset.tsx +2 -2
- package/src/labs/README.md +12 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okta/odyssey-react-mui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "React MUI components for Odyssey, Okta's design system",
|
|
5
5
|
"author": "Okta, Inc.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,12 +40,13 @@
|
|
|
40
40
|
"@mui/material": "^5.12.3",
|
|
41
41
|
"@mui/utils": "^5.11.2",
|
|
42
42
|
"@mui/x-date-pickers": "^5.0.15",
|
|
43
|
-
"@okta/odyssey-design-tokens": "1.0.
|
|
43
|
+
"@okta/odyssey-design-tokens": "1.0.1",
|
|
44
44
|
"date-fns": "^2.30.0",
|
|
45
45
|
"i18next": "^22.4.15",
|
|
46
46
|
"material-react-table": "^1.14.0",
|
|
47
47
|
"react-i18next": "^12.2.2",
|
|
48
|
-
"ts-node": "^10.9.1"
|
|
48
|
+
"ts-node": "^10.9.1",
|
|
49
|
+
"word-wrap": "~1.2.5"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
51
52
|
"@emotion/react": "^11",
|
|
@@ -53,5 +54,5 @@
|
|
|
53
54
|
"react": ">=17 <19",
|
|
54
55
|
"react-dom": ">=17 <19"
|
|
55
56
|
},
|
|
56
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "e59c6f57fab14c9b2f83826558af3a88157b3815"
|
|
57
58
|
}
|
package/src/Box.tsx
CHANGED
|
@@ -16,12 +16,19 @@ import { ReactNode, forwardRef } from "react";
|
|
|
16
16
|
export type BoxProps = {
|
|
17
17
|
children?: ReactNode;
|
|
18
18
|
component?: MuiBoxProps["component"];
|
|
19
|
+
id?: MuiBoxProps["id"];
|
|
19
20
|
sx?: MuiBoxProps["sx"];
|
|
20
21
|
};
|
|
21
22
|
|
|
22
23
|
export const Box = forwardRef<HTMLElement, BoxProps>(
|
|
23
|
-
({ children, component, sx }, ref) => (
|
|
24
|
-
<MuiBox
|
|
24
|
+
({ children, component, id, sx }, ref) => (
|
|
25
|
+
<MuiBox
|
|
26
|
+
ref={ref}
|
|
27
|
+
children={children}
|
|
28
|
+
component={component}
|
|
29
|
+
id={id}
|
|
30
|
+
sx={sx}
|
|
31
|
+
/>
|
|
25
32
|
)
|
|
26
33
|
);
|
|
27
34
|
|
package/src/Fieldset.tsx
CHANGED
|
@@ -15,7 +15,7 @@ import { memo, ReactElement, useMemo } from "react";
|
|
|
15
15
|
|
|
16
16
|
import { Callout } from "./Callout";
|
|
17
17
|
import { FieldsetContext } from "./FieldsetContext";
|
|
18
|
-
import { Legend,
|
|
18
|
+
import { Legend, Support } from "./Typography";
|
|
19
19
|
import { useOdysseyDesignTokens } from "./OdysseyDesignTokensContext";
|
|
20
20
|
import { useUniqueId } from "./useUniqueId";
|
|
21
21
|
|
|
@@ -89,7 +89,7 @@ const Fieldset = ({
|
|
|
89
89
|
>
|
|
90
90
|
<Legend>{legend}</Legend>
|
|
91
91
|
|
|
92
|
-
{description && <
|
|
92
|
+
{description && <Support>{description}</Support>}
|
|
93
93
|
|
|
94
94
|
{alert}
|
|
95
95
|
|
package/src/labs/README.md
CHANGED
|
@@ -2,19 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
## Production Readiness
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Odyssey is production-ready and available to use for real things. The API
|
|
6
|
+
is stable for the duration of the point-release, meaning that while Odyssey is
|
|
7
|
+
in version 1.x.x, there will be no changes that break the API.
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
**Odyssey Labs** is the home for components that are usable, but not feature-complete.
|
|
10
|
+
At minimum, they'll provide a good jumping-off point for your project; however, they
|
|
11
|
+
are not guaranteed to have full support for the full suite of things that Odyssey
|
|
12
|
+
provides, such as RTL support, internationalization, etc.
|
|
10
13
|
|
|
11
|
-
|
|
12
|
-
the API stable. Patch versions are intended for backwards-compatible
|
|
13
|
-
changes and minor versions are intended for backwards-incompatible changes.
|
|
14
|
+
This project follows semantic versioning conventions:
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
- **Major point releases** may include breaking changes, but the API is stable for the duration of
|
|
17
|
+
the major point release (for example, 1.x.x)
|
|
18
|
+
- **Minor point releases** include new features and are backwards-compatible (eg, x.1.x)
|
|
19
|
+
- **Patch releases** include bug fixes (eg, x.x.1)
|
|
18
20
|
|
|
19
21
|
## Getting Started
|
|
20
22
|
|