Fix report
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
@@ -5,7 +5,9 @@
|
||||
```ts
|
||||
/// <reference types="react" />
|
||||
|
||||
import { Field as Field_2 } from '@base-ui-components/react/field';
|
||||
import { ForwardRefExoticComponent } from 'react';
|
||||
import { Input as Input_2 } from '@base-ui-components/react/input';
|
||||
import { default as React_2 } from 'react';
|
||||
import * as React_3 from 'react';
|
||||
import { RefAttributes } from 'react';
|
||||
@@ -216,6 +218,35 @@ export type DisplayProps =
|
||||
| 'block'
|
||||
| Partial<Record<Breakpoint, 'flex' | 'none' | 'inline' | 'block'>>;
|
||||
|
||||
// @public (undocumented)
|
||||
export const Field: {
|
||||
Root: React_2.ForwardRefExoticComponent<
|
||||
Omit<Field_2.Root.Props & React_2.RefAttributes<HTMLDivElement>, 'ref'> &
|
||||
React_2.RefAttributes<HTMLDivElement>
|
||||
>;
|
||||
Label: React_2.ForwardRefExoticComponent<
|
||||
Omit<Field_2.Label.Props & React_2.RefAttributes<any>, 'ref'> &
|
||||
React_2.RefAttributes<any>
|
||||
>;
|
||||
Description: React_2.ForwardRefExoticComponent<
|
||||
Omit<
|
||||
Field_2.Description.Props & React_2.RefAttributes<HTMLParagraphElement>,
|
||||
'ref'
|
||||
> &
|
||||
React_2.RefAttributes<HTMLParagraphElement>
|
||||
>;
|
||||
Error: React_2.ForwardRefExoticComponent<
|
||||
Omit<Field_2.Error.Props & React_2.RefAttributes<HTMLDivElement>, 'ref'> &
|
||||
React_2.RefAttributes<HTMLDivElement>
|
||||
>;
|
||||
Validity: ({
|
||||
children,
|
||||
...props
|
||||
}: React_2.ComponentPropsWithoutRef<
|
||||
typeof Field_2.Validity
|
||||
>) => React_2.JSX.Element;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
export type FlexDirectionProps =
|
||||
| 'row'
|
||||
@@ -331,6 +362,12 @@ export interface InlineProps extends SpaceProps, ColorProps {
|
||||
style?: React.CSSProperties;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export const Input: React_2.ForwardRefExoticComponent<
|
||||
Omit<Input_2.Props & React_2.RefAttributes<HTMLInputElement>, 'ref'> &
|
||||
React_2.RefAttributes<HTMLInputElement>
|
||||
>;
|
||||
|
||||
// @public (undocumented)
|
||||
export type JustifyContentProps =
|
||||
| 'stretch'
|
||||
|
||||
@@ -75,6 +75,7 @@ const FieldValidity = ({
|
||||
</FieldPrimitive.Validity>
|
||||
);
|
||||
|
||||
/** @public */
|
||||
export const Field = {
|
||||
Root: FieldRoot,
|
||||
Label: FieldLabel,
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright 2024 The Backstage Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export { Field } from './Field';
|
||||
@@ -18,6 +18,7 @@ import React from 'react';
|
||||
import { Input as InputPrimitive } from '@base-ui-components/react/input';
|
||||
import clsx from 'clsx';
|
||||
|
||||
/** @public */
|
||||
const Input = React.forwardRef<
|
||||
React.ElementRef<typeof InputPrimitive>,
|
||||
React.ComponentPropsWithoutRef<typeof InputPrimitive>
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright 2024 The Backstage Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export { Input } from './Input';
|
||||
@@ -35,3 +35,5 @@ export * from './components/Button';
|
||||
export * from './components/Icon';
|
||||
export * from './components/Checkbox';
|
||||
export * from './components/Table';
|
||||
export * from './components/Field';
|
||||
export * from './components/Input';
|
||||
|
||||
Reference in New Issue
Block a user