diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e346240b73..c610074570f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## [`master`](https://github.com/elastic/eui/tree/master) - Added `tableCaption` prop to `EuiBasicTable` and improved the default one ([#2782](https://github.com/elastic/eui/pull/2782)) +- Converted `EuiDescribedFormGroup` to TypeScript ([#2810](https://github.com/elastic/eui/pull/2810)) - Changed SASS comments to non-compiled comments in invisibles files ([#2807](https://github.com/elastic/eui/pull/2807)) ## [`18.3.0`](https://github.com/elastic/eui/tree/v18.3.0) diff --git a/src/components/flex/flex_group.tsx b/src/components/flex/flex_group.tsx index 895db2d7278..50588ce2a60 100644 --- a/src/components/flex/flex_group.tsx +++ b/src/components/flex/flex_group.tsx @@ -28,6 +28,7 @@ const gutterSizeToClassNameMap = { }; export const GUTTER_SIZES = keysOf(gutterSizeToClassNameMap); +export type EuiFlexGroupGutterSize = keyof typeof gutterSizeToClassNameMap; const alignItemsToClassNameMap = { stretch: null, diff --git a/src/components/flex/index.ts b/src/components/flex/index.ts index b99ac168275..1f4b0660279 100644 --- a/src/components/flex/index.ts +++ b/src/components/flex/index.ts @@ -1,4 +1,4 @@ -export { EuiFlexGroup } from './flex_group'; +export { EuiFlexGroup, EuiFlexGroupGutterSize } from './flex_group'; export { EuiFlexGrid } from './flex_grid'; diff --git a/src/components/form/described_form_group/__snapshots__/described_form_group.test.js.snap b/src/components/form/described_form_group/__snapshots__/described_form_group.test.tsx.snap similarity index 96% rename from src/components/form/described_form_group/__snapshots__/described_form_group.test.js.snap rename to src/components/form/described_form_group/__snapshots__/described_form_group.test.tsx.snap index 3e2ad107f75..ab5e77d8b1a 100644 --- a/src/components/form/described_form_group/__snapshots__/described_form_group.test.js.snap +++ b/src/components/form/described_form_group/__snapshots__/described_form_group.test.tsx.snap @@ -6,14 +6,11 @@ exports[`EuiDescribedFormGroup is rendered 1`] = ` className="testClass1 testClass2" data-test-subj="test subject string" description="Test description" - fullWidth={false} - gutterSize="l" title={