From f787fc794b018a1e8d3acf97ba8a34a27759a7e8 Mon Sep 17 00:00:00 2001 From: Heather Buchel Date: Wed, 30 Aug 2023 13:10:45 -0400 Subject: [PATCH] chore(react): inline type for Fieldset varatiation (#4393) --- docs/__tests__/__snapshots__/props-table.test.ts.snap | 2 +- packages/react/src/primitives/types/fieldset.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/__tests__/__snapshots__/props-table.test.ts.snap b/docs/__tests__/__snapshots__/props-table.test.ts.snap index 8247d97db55..1b4622299bf 100644 --- a/docs/__tests__/__snapshots__/props-table.test.ts.snap +++ b/docs/__tests__/__snapshots__/props-table.test.ts.snap @@ -3372,7 +3372,7 @@ exports[`Props Table 1`] = ` }, \\"variation\\": { \\"name\\": \\"variation\\", - \\"type\\": \\"'outlined' | 'plain'\\", + \\"type\\": \\"\\\\\\"outlined\\\\\\" | \\\\\\"plain\\\\\\" | undefined\\", \\"description\\": \\"Adds plain or outlined variation to the Fieldset\\", \\"category\\": \\"BaseFieldsetProps\\", \\"isOptional\\": true diff --git a/packages/react/src/primitives/types/fieldset.ts b/packages/react/src/primitives/types/fieldset.ts index ed779162599..11b5f4ac04e 100644 --- a/packages/react/src/primitives/types/fieldset.ts +++ b/packages/react/src/primitives/types/fieldset.ts @@ -5,8 +5,6 @@ import { BaseViewProps } from './view'; import { FlexContainerStyleProps } from './flex'; import { ElementType, PrimitiveProps } from './view'; -export type FieldsetVariation = 'outlined' | 'plain'; - /** @deprecated For internal use only */ export interface BaseFieldsetProps extends BaseViewProps, @@ -27,7 +25,7 @@ export interface BaseFieldsetProps * @description * Adds plain or outlined variation to the Fieldset */ - variation?: FieldsetVariation; + variation?: 'outlined' | 'plain'; /** * @description