diff --git a/change/@fluentui-react-divider-a68ce562-55b2-4c91-80ca-f4c8d1fb48f7.json b/change/@fluentui-react-divider-a68ce562-55b2-4c91-80ca-f4c8d1fb48f7.json new file mode 100644 index 0000000000000..4251535ccda82 --- /dev/null +++ b/change/@fluentui-react-divider-a68ce562-55b2-4c91-80ca-f4c8d1fb48f7.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "refactor: reduce bundle size by removing the getIntrinsicElementProps helper", + "packageName": "@fluentui/react-divider", + "email": "dmytrokirpa@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/packages/react-components/react-divider/library/src/components/Divider/__snapshots__/Divider.test.tsx.snap b/packages/react-components/react-divider/library/src/components/Divider/__snapshots__/Divider.test.tsx.snap index 676f771030c76..3601ca9ebac2f 100644 --- a/packages/react-components/react-divider/library/src/components/Divider/__snapshots__/Divider.test.tsx.snap +++ b/packages/react-components/react-divider/library/src/components/Divider/__snapshots__/Divider.test.tsx.snap @@ -28,6 +28,7 @@ exports[`Divider renders a divider with a different color 1`] = `
`; diff --git a/packages/react-components/react-divider/library/src/components/Divider/useDivider.ts b/packages/react-components/react-divider/library/src/components/Divider/useDivider.ts index 4d2ad24d7cc42..4b6dadc9ec033 100644 --- a/packages/react-components/react-divider/library/src/components/Divider/useDivider.ts +++ b/packages/react-components/react-divider/library/src/components/Divider/useDivider.ts @@ -1,5 +1,5 @@ import * as React from 'react'; -import { getIntrinsicElementProps, useId, slot } from '@fluentui/react-utilities'; +import { useId, slot } from '@fluentui/react-utilities'; import type { DividerProps, DividerState } from './Divider.types'; /** @@ -8,7 +8,7 @@ import type { DividerProps, DividerState } from './Divider.types'; * @param ref - User-provided ref to be passed to the Divider component. */ export const useDivider_unstable = (props: DividerProps, ref: React.Ref