@okta/odyssey-react-mui 1.0.0 → 1.0.2
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 +74 -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/src/theme/components.d.ts.map +1 -1
- package/dist/theme/components.js +3 -3
- package/dist/theme/components.js.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/package.json +17 -8
- package/scripts/properties-to-ts.js +7 -7
- package/src/Box.tsx +9 -2
- package/src/Fieldset.tsx +2 -2
- package/src/labs/README.md +12 -10
- package/src/theme/components.tsx +6 -5
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okta/odyssey-react-mui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "React MUI components for Odyssey, Okta's design system",
|
|
5
5
|
"author": "Okta, Inc.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"sideEffects": false,
|
|
8
|
-
"type": "module",
|
|
9
8
|
"main": "dist/index.js",
|
|
10
9
|
"module": "dist/index.js",
|
|
11
10
|
"types": "dist/src/index.d.ts",
|
|
@@ -23,9 +22,18 @@
|
|
|
23
22
|
}
|
|
24
23
|
},
|
|
25
24
|
"exports": {
|
|
26
|
-
"./icons":
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
"./icons": {
|
|
26
|
+
"types": "./dist/src/icons.generated/index.d.ts",
|
|
27
|
+
"default": "./dist/icons.generated/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./labs": {
|
|
30
|
+
"types": "./dist/src/labs/index.d.ts",
|
|
31
|
+
"default": "./dist/labs/index.js"
|
|
32
|
+
},
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./dist/src/index.d.ts",
|
|
35
|
+
"default": "./dist/index.js"
|
|
36
|
+
},
|
|
29
37
|
"./README.md": "./README.md"
|
|
30
38
|
},
|
|
31
39
|
"repository": {
|
|
@@ -40,12 +48,13 @@
|
|
|
40
48
|
"@mui/material": "^5.12.3",
|
|
41
49
|
"@mui/utils": "^5.11.2",
|
|
42
50
|
"@mui/x-date-pickers": "^5.0.15",
|
|
43
|
-
"@okta/odyssey-design-tokens": "1.0.
|
|
51
|
+
"@okta/odyssey-design-tokens": "1.0.2",
|
|
44
52
|
"date-fns": "^2.30.0",
|
|
45
53
|
"i18next": "^22.4.15",
|
|
46
54
|
"material-react-table": "^1.14.0",
|
|
47
55
|
"react-i18next": "^12.2.2",
|
|
48
|
-
"ts-node": "^10.9.1"
|
|
56
|
+
"ts-node": "^10.9.1",
|
|
57
|
+
"word-wrap": "~1.2.5"
|
|
49
58
|
},
|
|
50
59
|
"peerDependencies": {
|
|
51
60
|
"@emotion/react": "^11",
|
|
@@ -53,5 +62,5 @@
|
|
|
53
62
|
"react": ">=17 <19",
|
|
54
63
|
"react-dom": ">=17 <19"
|
|
55
64
|
},
|
|
56
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "06d0b602d3bf239b43a739dd3a63ec2fb7f0ba01"
|
|
57
66
|
}
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
// Part of this has been copied over from @okta/ui-build-tools' own internal node script
|
|
14
14
|
// https://github.com/okta/ui-build-tools/blob/master/packages/clis/i18n/properties-to-json.js
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
const { resolve, join, basename, extname } = require("node:path");
|
|
17
|
+
const {
|
|
18
18
|
readFileSync,
|
|
19
19
|
writeFileSync,
|
|
20
20
|
rmSync,
|
|
21
21
|
existsSync,
|
|
22
22
|
mkdirSync,
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
} = require("node:fs");
|
|
24
|
+
const properties = require("properties");
|
|
25
|
+
const readdir = require("recursive-readdir");
|
|
26
|
+
const yargs = require("yargs");
|
|
27
|
+
const { hideBin } = require("yargs/helpers");
|
|
28
28
|
|
|
29
29
|
const convert = (baseFiles, propertiesTargetDir) => {
|
|
30
30
|
for (const src of baseFiles) {
|
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
|
|
package/src/theme/components.tsx
CHANGED
|
@@ -48,6 +48,7 @@ import {
|
|
|
48
48
|
WarningFilledIcon,
|
|
49
49
|
} from "../icons.generated";
|
|
50
50
|
import { DesignTokens } from "./theme";
|
|
51
|
+
import { CSSProperties } from "react";
|
|
51
52
|
|
|
52
53
|
export const components = (
|
|
53
54
|
odysseyTokens: DesignTokens
|
|
@@ -1451,14 +1452,14 @@ export const components = (
|
|
|
1451
1452
|
|
|
1452
1453
|
[`&::-webkit-search-cancel-button`]: {
|
|
1453
1454
|
display: "none",
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
},
|
|
1455
|
+
MozAppearance: "none",
|
|
1456
|
+
WebkitAppearance: "none",
|
|
1457
|
+
} satisfies CSSProperties,
|
|
1457
1458
|
|
|
1458
1459
|
[`&::-moz-search-cancel-button`]: {
|
|
1459
1460
|
display: "none",
|
|
1460
|
-
|
|
1461
|
-
},
|
|
1461
|
+
MozAppearance: "none",
|
|
1462
|
+
} satisfies CSSProperties,
|
|
1462
1463
|
|
|
1463
1464
|
[`&::-ms-clear`]: {
|
|
1464
1465
|
display: "none",
|