From 7d519751adea19d7dd2366464d70d9a005150908 Mon Sep 17 00:00:00 2001 From: Brion Date: Mon, 27 Nov 2023 08:31:58 +0530 Subject: [PATCH 1/4] fix(react): refactor update path --- packages/react/src/components/Avatar/Avatar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/components/Avatar/Avatar.tsx b/packages/react/src/components/Avatar/Avatar.tsx index dec40e81..15f859e9 100644 --- a/packages/react/src/components/Avatar/Avatar.tsx +++ b/packages/react/src/components/Avatar/Avatar.tsx @@ -19,7 +19,7 @@ import MuiAvatar, {AvatarProps as MuiAvatarProps} from '@mui/material/Avatar'; import clsx from 'clsx'; import {ElementType, FC, ReactElement, useMemo} from 'react'; -import usePastelColorGenerator from 'src/hooks/use-pastel-color-generator'; +import usePastelColorGenerator from '../../hooks/use-pastel-color-generator'; import {WithWrapperProps} from '../../models'; import {composeComponentDisplayName} from '../../utils'; import './avatar.scss'; From fffa0fabcdcde84d57f596cf611688c19f4bcee6 Mon Sep 17 00:00:00 2001 From: Brion Date: Mon, 27 Nov 2023 08:32:38 +0530 Subject: [PATCH 2/4] chore(react): expose `generatePastelColor` and hook --- packages/react/src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react/src/index.ts b/packages/react/src/index.ts index 0ec20844..d22be757 100644 --- a/packages/react/src/index.ts +++ b/packages/react/src/index.ts @@ -18,6 +18,8 @@ export * from './components'; export * from './theme'; +export * from './hooks/use-pastel-color-generator'; +export {default} from './utils/generate-pastel-color'; export { Alert, AlertTitle, From 62be1d780f0c514c554a94aed088ea9ec1f893b3 Mon Sep 17 00:00:00 2001 From: Nipuni Paaris Date: Mon, 27 Nov 2023 09:48:12 +0530 Subject: [PATCH 3/4] Update packages/react/src/index.ts --- packages/react/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/index.ts b/packages/react/src/index.ts index d22be757..4bd038c4 100644 --- a/packages/react/src/index.ts +++ b/packages/react/src/index.ts @@ -19,7 +19,7 @@ export * from './components'; export * from './theme'; export * from './hooks/use-pastel-color-generator'; -export {default} from './utils/generate-pastel-color'; +export { default } from './utils/generate-pastel-color'; export { Alert, AlertTitle, From d27b47e7335cb5ef3483c2fe8c6226c62dd387d6 Mon Sep 17 00:00:00 2001 From: Nipuni Paaris Date: Mon, 27 Nov 2023 09:49:14 +0530 Subject: [PATCH 4/4] Update packages/react/src/index.ts --- packages/react/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/index.ts b/packages/react/src/index.ts index 4bd038c4..d22be757 100644 --- a/packages/react/src/index.ts +++ b/packages/react/src/index.ts @@ -19,7 +19,7 @@ export * from './components'; export * from './theme'; export * from './hooks/use-pastel-color-generator'; -export { default } from './utils/generate-pastel-color'; +export {default} from './utils/generate-pastel-color'; export { Alert, AlertTitle,