Skip to content

Commit

Permalink
chore(react): inline type for Fieldset varatiation (#4393)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbuchel authored Aug 30, 2023
1 parent 9471ea5 commit f787fc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/__tests__/__snapshots__/props-table.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions packages/react/src/primitives/types/fieldset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -27,7 +25,7 @@ export interface BaseFieldsetProps
* @description
* Adds plain or outlined variation to the Fieldset
*/
variation?: FieldsetVariation;
variation?: 'outlined' | 'plain';

/**
* @description
Expand Down

0 comments on commit f787fc7

Please sign in to comment.