@mxenabled/mxui 1.6.0-alpha.5 → 2.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/README.md +32 -0
- package/dist/components/icon/Icon.d.ts +1 -9
- package/dist/components/icon/icons/index.d.ts +0 -13
- package/dist/components/icon/index.d.ts +1 -1
- package/dist/components/selectionbox/SelectionBox.d.ts +3 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.es.js +568 -928
- package/dist/index.es.js.map +1 -1
- package/dist/themes/Augmentations.d.ts +0 -43
- package/dist/themes/Palette.d.ts +0 -21
- package/dist/themes/Typography.d.ts +55 -31
- package/package.json +42 -48
- package/dist/components/icon/icons/AccountsFilledIcon.d.ts +0 -3
- package/dist/components/icon/icons/AccountsIcon.d.ts +0 -3
- package/dist/components/icon/icons/ArrowLeftIcon.d.ts +0 -3
- package/dist/components/icon/icons/AttentionFilledIcon.d.ts +0 -3
- package/dist/components/icon/icons/CalendarIcon.d.ts +0 -3
- package/dist/components/icon/icons/CheckmarkFilledIcon.d.ts +0 -3
- package/dist/components/icon/icons/ChevronDownIcon.d.ts +0 -3
- package/dist/components/icon/icons/ChevronLeftIcon.d.ts +0 -3
- package/dist/components/icon/icons/ChevronRightIcon.d.ts +0 -3
- package/dist/components/icon/icons/CloseIcon.d.ts +0 -3
- package/dist/components/icon/icons/EditIcon.d.ts +0 -3
- package/dist/components/icon/icons/FilterIcon.d.ts +0 -3
- package/dist/components/icon/icons/HeartIcon.d.ts +0 -3
- package/dist/components/tokenprovider/Constants.d.ts +0 -9
- package/dist/components/tokenprovider/Hooks.d.ts +0 -1
- package/dist/components/tokenprovider/TokenProvider.d.ts +0 -11
- package/dist/components/tokenprovider/index.d.ts +0 -3
package/README.md
CHANGED
|
@@ -26,3 +26,35 @@ Follow the setup instructions found in
|
|
|
26
26
|
|
|
27
27
|
Teams are currently adding components as needed, so the list in storybook right now is what has been built so far.
|
|
28
28
|
|
|
29
|
+
## Upgrading from 1.x to 2.x
|
|
30
|
+
This major change introcuces a number of breaking changes due to dependency upgrades for React 19 and MUI 7. It also
|
|
31
|
+
includes removal of deprected components and theme values.
|
|
32
|
+
|
|
33
|
+
- React has been upgraded to version 19.
|
|
34
|
+
- See https://react.dev/blog/2024/04/25/react-19-upgrade-guide for more details.
|
|
35
|
+
- MUI has been upgraded to version 7.
|
|
36
|
+
- See https://mui.com/material-ui/migration/upgrade-to-v6/ for changes from 5 to 6.
|
|
37
|
+
- See https://mui.com/material-ui/migration/upgrade-to-v7/ for changes from 6 to 7.
|
|
38
|
+
- MUI-X has been upgraded to version 8.
|
|
39
|
+
- See https://mui.com/x/migration/migration-pickers-v7/ for Date picker changes
|
|
40
|
+
- See https://mui.com/x/migration/migration-data-grid-v7/ for Data Grid changes
|
|
41
|
+
- See https://mui.com/x/migration/migration-charts-v7/ for Chart changes
|
|
42
|
+
- Vite has been upgraded to version 7.
|
|
43
|
+
- See https://vite.dev/guide/migration.html for more details.
|
|
44
|
+
- Storybook has been upgraded to version 9.
|
|
45
|
+
- See https://storybook.js.org/docs/releases/migration-guide for more details
|
|
46
|
+
- `TokenProvider` and it's dependency `@mxenabled/mx-design-tokens` has been removed.
|
|
47
|
+
- The palette color `border` has been removed. Utilize `neutral`, `grey` or `divider` instead.
|
|
48
|
+
- The palette color properties for `lighter` & `darker` have been removed. Utilize `light` & `dark` instead.
|
|
49
|
+
- Custom Typography variants have been removed. Use the standard MUI variants instead.
|
|
50
|
+
- H1 -> h1
|
|
51
|
+
- H2 -> h2
|
|
52
|
+
- H3 -> h3
|
|
53
|
+
- Body -> body1
|
|
54
|
+
- Small -> body2
|
|
55
|
+
- XSmall -> caption
|
|
56
|
+
- Tiny -> tiny
|
|
57
|
+
- Button -> button
|
|
58
|
+
- Paragraph -> subtitle1
|
|
59
|
+
- ParagraphSmall -> subtitle2
|
|
60
|
+
- Deprecated icons have been removed. Use Material Symbol icons via the `Icon` component or directly from the MX-Icons package instead.
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import { IconProps as MuiIconProps } from '@mui/material/Icon';
|
|
2
|
-
export declare enum IconWeight {
|
|
3
|
-
Lighter = 100,
|
|
4
|
-
Light = 200,
|
|
5
|
-
Normal = 300,
|
|
6
|
-
Dark = 400,
|
|
7
|
-
Darker = 500
|
|
8
|
-
}
|
|
9
2
|
export interface IconProps extends MuiIconProps {
|
|
10
3
|
fill?: boolean;
|
|
11
4
|
name: string;
|
|
12
5
|
size?: number;
|
|
13
|
-
weight?: IconWeight;
|
|
14
6
|
}
|
|
15
|
-
export declare const Icon: ({ color, fill, name, size, sx,
|
|
7
|
+
export declare const Icon: ({ color, fill, name, size, sx, ...rest }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
export { AccountsFilledIcon } from './AccountsFilledIcon';
|
|
2
|
-
export { AccountsIcon } from './AccountsIcon';
|
|
3
|
-
export { ArrowLeftIcon } from './ArrowLeftIcon';
|
|
4
|
-
export { AttentionFilledIcon } from './AttentionFilledIcon';
|
|
5
|
-
export { CalendarIcon } from './CalendarIcon';
|
|
6
|
-
export { CheckmarkFilledIcon } from './CheckmarkFilledIcon';
|
|
7
|
-
export { ChevronDownIcon } from './ChevronDownIcon';
|
|
8
|
-
export { ChevronLeftIcon } from './ChevronLeftIcon';
|
|
9
|
-
export { ChevronRightIcon } from './ChevronRightIcon';
|
|
10
|
-
export { CloseIcon } from './CloseIcon';
|
|
11
|
-
export { EditIcon } from './EditIcon';
|
|
12
|
-
export { FilterIcon } from './FilterIcon';
|
|
13
|
-
export { HeartIcon } from './HeartIcon';
|
|
14
1
|
export { MXLogoIcon } from './MXLogoIcon';
|
|
15
2
|
export { MXLogoCopyrightIcon } from './MXLogoCopyrightIcon';
|
|
16
3
|
export { MXLogoFilledIcon } from './MXLogoFilledIcon';
|
|
@@ -13,6 +13,8 @@ type SelectionBoxProps = BaseSelectionBoxProps & (({
|
|
|
13
13
|
component?: typeof Radio;
|
|
14
14
|
} & Partial<RadioProps>) | ({
|
|
15
15
|
component: typeof Checkbox;
|
|
16
|
-
} & Partial<CheckboxProps>))
|
|
16
|
+
} & Partial<CheckboxProps>)) & {
|
|
17
|
+
onChange?: (event: React.SyntheticEvent, checked: boolean) => void;
|
|
18
|
+
};
|
|
17
19
|
declare const SelectionBox: React.FC<SelectionBoxProps>;
|
|
18
20
|
export default SelectionBox;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,5 @@ export * from './components/merchantlogo';
|
|
|
8
8
|
export * from './components/text';
|
|
9
9
|
export * from './components/textfield';
|
|
10
10
|
export * from './components/toast';
|
|
11
|
-
export * from './components/tokenprovider';
|
|
12
11
|
export * from './components/selectionbox';
|
|
13
12
|
export * from './themes';
|