diff --git a/packages/ui/package.json b/packages/ui/package.json index fa41dca580..329e8d5961 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -56,12 +56,11 @@ "dependencies": { "@ifrc-go/icons": "^2.0.1", "@togglecorp/fujs": "^2.1.1", - "jiti": "^2.5.1", "react-focus-on": "^3.9.1", "sanitize-html": "^2.11.0" }, "peerDependencies": { - "@ifrc-go/icons": "^1.3.1", + "@ifrc-go/icons": "^2.0.1", "react": "^18.2.0", "react-dom": "^18.2.0" }, @@ -91,9 +90,8 @@ "postcss": "^8.5.3", "postcss-nested": "^7.0.2", "postcss-normalize": "^13.0.1", + "jiti": "^2.5.1", "postcss-preset-env": "^10.1.5", - "react-focus-on": "^3.9.1", - "sanitize-html": "^2.11.0", "stylelint": "^16.17.0", "stylelint-config-concentric": "^2.0.2", "stylelint-config-recommended": "^15.0.0", diff --git a/packages/ui/src/components/ChartContainer/index.tsx b/packages/ui/src/components/ChartContainer/index.tsx index 7e17d210ba..6b48e6a618 100644 --- a/packages/ui/src/components/ChartContainer/index.tsx +++ b/packages/ui/src/components/ChartContainer/index.tsx @@ -2,7 +2,7 @@ import { _cs } from '@togglecorp/fujs'; import styles from './styles.module.css'; -interface Props { +export interface Props { className?: string; children: React.ReactNode; chartData: { diff --git a/packages/ui/src/components/Checkbox/index.tsx b/packages/ui/src/components/Checkbox/index.tsx index 4f7ee4a666..f6defa2e51 100644 --- a/packages/ui/src/components/Checkbox/index.tsx +++ b/packages/ui/src/components/Checkbox/index.tsx @@ -1,4 +1,7 @@ -import { useCallback } from 'react'; +import { + useCallback, + useId, +} from 'react'; import { _cs } from '@togglecorp/fujs'; import InputError from '../InputError'; @@ -64,6 +67,7 @@ function Checkbox(props: Props) { [name, onChange, invertedLogic], ); + const inputId = useId(); const checked = invertedLogic ? !value : value; const className = _cs( @@ -77,12 +81,14 @@ function Checkbox(props: Props) { ); return ( -