From 82cafc655311cfbc770fd24f23afd5b06cfd37ed Mon Sep 17 00:00:00 2001 From: David Matejka Date: Wed, 27 Dec 2023 20:12:01 +0100 Subject: [PATCH] chore: ae up --- build/api/admin.api.md | 97 ++++---- build/api/layout.api.md | 266 +++++++++++--------- build/api/react-auto.api.md | 2 - build/api/react-binding-ui.api.md | 7 +- build/api/react-binding.api.md | 23 +- build/api/react-choice-field-ui.api.md | 15 +- build/api/react-datagrid-ui.api.md | 31 ++- build/api/react-form-fields-ui.api.md | 3 +- build/api/react-i18n.api.md | 3 +- build/api/react-utils.api.md | 8 +- build/api/ui.api.md | 325 +++++++++++++------------ build/api/utilities.api.md | 241 ++---------------- 12 files changed, 428 insertions(+), 593 deletions(-) diff --git a/build/api/admin.api.md b/build/api/admin.api.md index b4938bd84f..02a9690112 100644 --- a/build/api/admin.api.md +++ b/build/api/admin.api.md @@ -78,6 +78,7 @@ import { InputHTMLAttributes } from 'react'; import { JsonObject } from '@contember/react-binding'; import { JsonValue } from '@contember/binding'; import { JsonValue as JsonValue_2 } from '@contember/react-binding'; +import { JSX as JSX_2 } from 'react/jsx-runtime'; import type { KeyboardEvent as KeyboardEvent_2 } from 'react'; import { LabelMiddleware } from '@contember/react-binding'; import { LayoutPageProps } from '@contember/ui'; @@ -284,7 +285,7 @@ export interface ApiKeyListProps { } // @public (undocumented) -export const ApplicationEntrypoint: (props: ApplicationEntrypointProps) => JSX.Element; +export const ApplicationEntrypoint: (props: ApplicationEntrypointProps) => JSX_2.Element; // @public (undocumented) export interface ApplicationEntrypointProps extends ContemberClientProps, Omit { @@ -489,7 +490,7 @@ export type ChangePasswordErrors = 'TOO_WEAK' | 'NOT_A_PERSON' | 'INVALID_PASSWO export const ClearFieldButton: React.NamedExoticComponent; // @internal (undocumented) -export const ClearFieldButtonInner: (props: ClearFieldButtonInnerProps) => JSX.Element; +export const ClearFieldButtonInner: (props: ClearFieldButtonInnerProps) => JSX_2.Element; // @public (undocumented) export interface ClearFieldButtonInnerInternalProps { @@ -525,7 +526,7 @@ export interface CommonToolbarButton extends IconSourceSpecification { } // @public (undocumented) -export const ConcealableField: React.MemoExoticComponent<({ buttonProps, concealTimeout, renderConcealedValue, isExtended, children }: ConcealableFieldProps) => JSX.Element>; +export const ConcealableField: React.MemoExoticComponent<({ buttonProps, concealTimeout, renderConcealedValue, isExtended, children }: ConcealableFieldProps) => JSX_2.Element>; // @public (undocumented) export interface ConcealableFieldProps { @@ -680,7 +681,7 @@ export const createEmptyTableRowElement: (columnCount?: number) => { export const createMarkHtmlDeserializer: (markType: string, tagMatcher: (el: HTMLElement) => boolean, attributeMatcher: (el: HTMLElement) => boolean) => HtmlDeserializerPlugin; // @public (undocumented) -export const CreatePage: PageComponent<({ pageName, children, rendererProps, redirectOnSuccess, onPersistSuccess, ...entityProps }: CreatePageProps) => JSX.Element>; +export const CreatePage: PageComponent<({ pageName, children, rendererProps, redirectOnSuccess, onPersistSuccess, ...entityProps }: CreatePageProps) => JSX_2.Element>; // @public (undocumented) export type CreatePageProps = Omit & EntitySubTreeAdditionalProps & EntitySubTreeAdditionalCreationProps & { @@ -712,7 +713,7 @@ export interface CreateResetPasswordRequestFormProps { } // @public (undocumented) -export const CreateScope: ({ children, redirectOnSuccess, onPersistSuccess, stateComponent, stateProps, ...entityProps }: CreateScopeProps) => JSX.Element; +export const CreateScope: ({ children, redirectOnSuccess, onPersistSuccess, stateComponent, stateProps, ...entityProps }: CreateScopeProps) => JSX_2.Element; // @public (undocumented) export type CreateScopeProps = Omit & EntitySubTreeAdditionalProps & EntitySubTreeAdditionalCreationProps & DataBindingProviderStateComponent & { @@ -781,7 +782,7 @@ export interface CustomMarkPlugin { } // @public (undocumented) -export const DataGridPage: PageComponent<({ children, rendererProps, pageName: _INTENTIONALLY_OMITTED_pageName, ...dataGridProps }: DataGridPageProps) => JSX.Element>; +export const DataGridPage: PageComponent<({ children, rendererProps, pageName: _INTENTIONALLY_OMITTED_pageName, ...dataGridProps }: DataGridPageProps) => JSX_2.Element>; // @public (undocumented) export type DataGridPageProps = DataGridProps & { @@ -800,7 +801,7 @@ export const DataGridPageRenderer: React.NamedExoticComponent({ stateComponent, stateProps, skipBindingStateUpdateAfterPersist, refreshDataBindingOnPersist, ...props }: DataGridScopeProps) => JSX.Element; +export const DataGridScope: ({ stateComponent, stateProps, skipBindingStateUpdateAfterPersist, refreshDataBindingOnPersist, ...props }: DataGridScopeProps) => JSX_2.Element; // @public (undocumented) export type DataGridScopeProps = PropsWithChildren> & DataBindingProviderStateComponent & { @@ -831,7 +832,7 @@ export interface DerivedFieldLinkProps JSX.Element>; +export const DetailPage: PageComponent<({ pageName, children, rendererProps, ...entityProps }: DetailPageProps) => JSX_2.Element>; // @public (undocumented) export type DetailPageProps = SugaredQualifiedSingleEntity & EntitySubTreeAdditionalProps & { @@ -841,7 +842,7 @@ export type DetailPageProps = SugaredQualifiedSingleEntity & EntitySubTreeAdditi }; // @public (undocumented) -export const DetailScope: ({ children, stateComponent, stateProps, ...entityProps }: DetailScopeProps) => JSX.Element; +export const DetailScope: ({ children, stateComponent, stateProps, ...entityProps }: DetailScopeProps) => JSX_2.Element; // @public (undocumented) export type DetailScopeProps = SugaredQualifiedSingleEntity & EntitySubTreeAdditionalProps & DataBindingProviderStateComponent & { @@ -857,7 +858,7 @@ export interface DimensionDatum { } // @public (undocumented) -export function DimensionsRenderer(props: DimensionsRendererProps): JSX.Element | null; +export function DimensionsRenderer(props: DimensionsRendererProps): JSX_2.Element | null; // @public (undocumented) export interface DimensionsRendererProps { @@ -880,7 +881,7 @@ export interface DimensionsRendererProps { } // @public (undocumented) -export const DimensionsSwitcher: React.MemoExoticComponent<(props: DimensionsSwitcherProps) => JSX.Element>; +export const DimensionsSwitcher: React.MemoExoticComponent<(props: DimensionsSwitcherProps) => JSX_2.Element>; // @public (undocumented) export interface DimensionsSwitcherBaseProps extends Omit { @@ -945,7 +946,7 @@ export type DisplayTextFieldProps = Omit JSX.Element; +export const DragHandle: () => JSX_2.Element; // @public (undocumented) export type DynamicRequestParameters = RequestParameters; @@ -1093,7 +1094,7 @@ export type EditorWithBlocks = Editor_2 & WithBlockElements; export type EditorWithEssentials = WithEssentials & E; // @public (undocumented) -export const EditPage: PageComponent<({ pageName, children, rendererProps, redirectOnSuccess, onPersistSuccess, refreshDataBindingOnPersist, skipBindingStateUpdateAfterPersist, ...entityProps }: EditPageProps) => JSX.Element>; +export const EditPage: PageComponent<({ pageName, children, rendererProps, redirectOnSuccess, onPersistSuccess, refreshDataBindingOnPersist, skipBindingStateUpdateAfterPersist, ...entityProps }: EditPageProps) => JSX_2.Element>; // @public (undocumented) export type EditPageProps = SugaredQualifiedSingleEntity & EntitySubTreeAdditionalProps & { @@ -1106,7 +1107,7 @@ export type EditPageProps = SugaredQualifiedSingleEntity & EntitySubTreeAddition }; // @public (undocumented) -export const EditScope: ({ children, onPersistSuccess, redirectOnSuccess, refreshDataBindingOnPersist, skipBindingStateUpdateAfterPersist, stateComponent, stateProps, ...entityProps }: EditScopeProps) => JSX.Element; +export const EditScope: ({ children, onPersistSuccess, redirectOnSuccess, refreshDataBindingOnPersist, skipBindingStateUpdateAfterPersist, stateComponent, stateProps, ...entityProps }: EditScopeProps) => JSX_2.Element; // @public (undocumented) export type EditScopeProps = SugaredQualifiedSingleEntity & EntitySubTreeAdditionalProps & DataBindingProviderStateComponent & { @@ -1181,7 +1182,7 @@ export const EmbedHandlers: { }; // @public (undocumented) -export function FeedbackRenderer({ accessorTreeState, children }: FeedbackRendererProps): JSX.Element | null; +export function FeedbackRenderer({ accessorTreeState, children }: FeedbackRendererProps): JSX_2.Element | null; // @public (undocumented) export interface FeedbackRendererProps { @@ -1373,7 +1374,7 @@ export interface GenericFileMetadataExtractorProps { } // @public -export const GenericPage: PageComponent<({ children, ...props }: GenericPageProps) => JSX.Element>; +export const GenericPage: PageComponent<({ children, ...props }: GenericPageProps) => JSX_2.Element>; // @public (undocumented) export type GenericPageProps = Omit & { @@ -1584,7 +1585,7 @@ export interface HoveringToolbarContentsProps { } // @public (undocumented) -export const HoveringToolbars: React.MemoExoticComponent<({ blockButtons, inlineButtons, shouldDisplayInlineToolbar: shouldDisplayInlineToolbarProp, showLabels, toolbarScheme, ...props }: HoveringToolbarsProps) => JSX.Element>; +export const HoveringToolbars: React.MemoExoticComponent<({ blockButtons, inlineButtons, shouldDisplayInlineToolbar: shouldDisplayInlineToolbarProp, showLabels, toolbarScheme, ...props }: HoveringToolbarsProps) => JSX_2.Element>; // @public (undocumented) export interface HoveringToolbarsProps { @@ -1751,7 +1752,7 @@ export type IDPAutoInitState = { }; // @public (undocumented) -export const IDPInitButton: ({ provider, onError }: IDPInitButtonProps) => JSX.Element; +export const IDPInitButton: ({ provider, onError }: IDPInitButtonProps) => JSX_2.Element; // @public (undocumented) export interface IDPInitButtonProps { @@ -1762,7 +1763,7 @@ export interface IDPInitButtonProps { } // @public (undocumented) -export const IDPResponseHandler: ({ onLogin }: IDPResponseHandlerProps) => JSX.Element | null; +export const IDPResponseHandler: ({ onLogin }: IDPResponseHandlerProps) => JSX_2.Element | null; // @public (undocumented) export interface IDPResponseHandlerProps { @@ -1896,7 +1897,7 @@ export interface InnerRoutingLinkProps extends Omit> { // (undocumented) - render(): JSX.Element; + render(): JSX_2.Element; } // @public (undocumented) @@ -2122,7 +2123,7 @@ export interface ListMembersQueryVariables { } // @public (undocumented) -export const ListPage: PageComponent<(({ children, rendererProps, pageName, ...entityListProps }: ListPageProps) => JSX.Element)>; +export const ListPage: PageComponent<(({ children, rendererProps, pageName, ...entityListProps }: ListPageProps) => JSX_2.Element)>; // @public (undocumented) export type ListPageProps = SugaredQualifiedEntityList & EntityListSubTreeAdditionalProps & { @@ -2147,7 +2148,7 @@ export interface ListRolesQueryVariables { } // @public (undocumented) -export const ListScope: ({ children, stateComponent, stateProps, ...entityListProps }: ListScopeProps) => JSX.Element; +export const ListScope: ({ children, stateComponent, stateProps, ...entityListProps }: ListScopeProps) => JSX_2.Element; // @public (undocumented) export type ListScopeProps = SugaredQualifiedEntityList & EntityListSubTreeAdditionalProps & DataBindingProviderStateComponent & { @@ -2162,10 +2163,10 @@ export interface ListUserQueryResult { } // @public (undocumented) -export const Login: ({ onLogin, resetLink }: LoginProps) => JSX.Element; +export const Login: ({ onLogin, resetLink }: LoginProps) => JSX_2.Element; // @public (undocumented) -export const LoginEntrypoint: (props: LoginEntrypointProps) => JSX.Element; +export const LoginEntrypoint: (props: LoginEntrypointProps) => JSX_2.Element; // @public (undocumented) export interface LoginEntrypointProps { @@ -2328,7 +2329,7 @@ export type MiscPageLayoutProps = Omit & { }; // @public (undocumented) -export const MultiEditPage: PageComponent<(({ children, rendererProps, pageName, ...entityListProps }: MultiEditPageProps) => JSX.Element)>; +export const MultiEditPage: PageComponent<(({ children, rendererProps, pageName, ...entityListProps }: MultiEditPageProps) => JSX_2.Element)>; // @public (undocumented) export type MultiEditPageProps = SugaredQualifiedEntityList & EntityListSubTreeAdditionalProps & { @@ -2338,7 +2339,7 @@ export type MultiEditPageProps = SugaredQua }; // @public (undocumented) -export const MultiEditScope: ({ children, refreshDataBindingOnPersist, skipBindingStateUpdateAfterPersist, stateComponent, stateProps, ...entityListProps }: MultiEditScopeProps) => JSX.Element; +export const MultiEditScope: ({ children, refreshDataBindingOnPersist, skipBindingStateUpdateAfterPersist, stateComponent, stateProps, ...entityListProps }: MultiEditScopeProps) => JSX_2.Element; // @public (undocumented) export type MultiEditScopeProps = SugaredQualifiedEntityList & EntityListSubTreeAdditionalProps & DataBindingProviderStateComponent & { @@ -2386,7 +2387,7 @@ export const navigationBackLinkDictionary: { }; // @public (undocumented) -export const NavigationProvider: (props: NavigationProviderProps) => JSX.Element; +export const NavigationProvider: (props: NavigationProviderProps) => JSX_2.Element; // @public (undocumented) export interface NavigationProviderProps { @@ -2433,7 +2434,7 @@ export const orderedListElementType: "orderedList"; export const orderedListToolbarButton: ElementToolbarButton; // @public (undocumented) -export const OtpManagement: () => JSX.Element; +export const OtpManagement: () => JSX_2.Element; // @public (undocumented) export type OutdatedApplicationDictionary = typeof outdatedApplicationDictionary; @@ -2475,7 +2476,7 @@ export interface OverrideInsertElementWithReferenceOptions { // @public export const Page: { -

(props: PageProps

): JSX.Element | null; +

(props: PageProps

): JSX_2.Element | null; displayName: string; getPageName(props: PageProps): string; }; @@ -2528,7 +2529,7 @@ export interface PageRequest

= Req } // @public -export const Pages: ({ children, layout, bindingFeedbackRenderer }: PagesProps) => JSX.Element; +export const Pages: ({ children, layout, bindingFeedbackRenderer }: PagesProps) => JSX_2.Element; // @public (undocumented) export type PagesMap = Record; @@ -2573,7 +2574,7 @@ export const paragraphHtmlDeserializer: HtmlDeserializerPlugin; export const paragraphNumberedToolbarButton: ElementToolbarButton; // @public (undocumented) -export function ParagraphRenderer({ attributes, children, element }: ParagraphRendererProps): JSX.Element; +export function ParagraphRenderer({ attributes, children, element }: ParagraphRendererProps): JSX_2.Element; // @public (undocumented) export interface ParagraphRendererProps extends Omit { @@ -2683,10 +2684,10 @@ export interface ProjectGridProps { } // @public (undocumented) -export const ProjectList: (props: ProjectListProps) => JSX.Element; +export const ProjectList: (props: ProjectListProps) => JSX_2.Element; // @public (undocumented) -export const ProjectListButtons: (props: ProjectListProps) => JSX.Element; +export const ProjectListButtons: (props: ProjectListProps) => JSX_2.Element; // @public (undocumented) export interface ProjectListProps { @@ -2766,7 +2767,7 @@ export interface ReferenceElementOptions { } // @public (undocumented) -export const ReferenceElementRenderer: React.MemoExoticComponent<(props: ReferenceElementRendererProps) => JSX.Element>; +export const ReferenceElementRenderer: React.MemoExoticComponent<(props: ReferenceElementRendererProps) => JSX_2.Element>; // @public (undocumented) export interface ReferenceElementRendererProps extends RenderElementProps, ReferenceElementOptions { @@ -2780,10 +2781,10 @@ export interface ReferenceElementRendererProps extends RenderElementProps, Refer export const referenceElementType: "reference"; // @public (undocumented) -export const renderAnyFilePreview: ({ objectUrl }: RenderFilePreviewOptions) => JSX.Element; +export const renderAnyFilePreview: ({ objectUrl }: RenderFilePreviewOptions) => JSX_2.Element; // @public (undocumented) -export const renderAudioFilePreview: ({ objectUrl }: RenderFilePreviewOptions) => JSX.Element; +export const renderAudioFilePreview: ({ objectUrl }: RenderFilePreviewOptions) => JSX_2.Element; // @public (undocumented) export const renderByJoining: SelectedDimensionRenderer; @@ -2799,10 +2800,10 @@ export interface RenderFilePreviewOptions { } // @public (undocumented) -export const renderImageFilePreview: ({ objectUrl }: RenderFilePreviewOptions) => JSX.Element; +export const renderImageFilePreview: ({ objectUrl }: RenderFilePreviewOptions) => JSX_2.Element; // @public (undocumented) -export const renderVideoFilePreview: ({ objectUrl }: RenderFilePreviewOptions) => JSX.Element; +export const renderVideoFilePreview: ({ objectUrl }: RenderFilePreviewOptions) => JSX_2.Element; // @public export const Repeater: (props: RepeaterProps) => ReactElement; @@ -2826,7 +2827,7 @@ export const repeaterDictionary: { }; // @public (undocumented) -export const RepeaterFieldContainer: React.MemoExoticComponent<({ accessor, addButtonText, children, createNewEntity, addButtonComponent: AddButton, addButtonComponentExtraProps, addButtonProps, emptyMessage, emptyMessageComponent, enableAddingNew, formatMessage, isEmpty, label, ...rest }: RepeaterFieldContainerProps) => JSX.Element>; +export const RepeaterFieldContainer: React.MemoExoticComponent<({ accessor, addButtonText, children, createNewEntity, addButtonComponent: AddButton, addButtonComponentExtraProps, addButtonProps, emptyMessage, emptyMessageComponent, enableAddingNew, formatMessage, isEmpty, label, ...rest }: RepeaterFieldContainerProps) => JSX_2.Element>; // @public (undocumented) export interface RepeaterFieldContainerPrivateProps extends Omit { @@ -2851,7 +2852,7 @@ export type RepeaterFieldContainerPublicProps = EmptyMessageOuterProps & AddEnti }; // @public (undocumented) -export const RepeaterHandle: React.MemoExoticComponent<() => JSX.Element>; +export const RepeaterHandle: React.MemoExoticComponent<() => JSX_2.Element>; // @public (undocumented) export const RepeaterInner: ((props: RepeaterInnerProps) => ReactElement) & StaticRenderProvider, "accessor">; @@ -3286,7 +3287,7 @@ export class SideDimensions extends PureComponent { // (undocumented) static displayName: string; // (undocumented) - render(): JSX.Element; + render(): JSX_2.Element; // (undocumented) static staticRender(props: SideDimensionsProps, environment: Environment): ReactElement | null; } @@ -3313,7 +3314,7 @@ export namespace SideDimensions { // (undocumented) getLabelMiddleware(): LabelMiddleware | undefined; // (undocumented) - render(): JSX.Element; + render(): JSX_2.Element; // (undocumented) static staticRender(props: SingleDimensionProps, environment: Environment): ReactNode; } @@ -3406,7 +3407,7 @@ export interface SortableBlockProps extends RepeaterItemProps, SortableBlockOwnP // @public (undocumented) export const SortableRepeaterContainer: { - ({ helperClass, ...props }: SortableRepeaterContainerProps): JSX.Element; + ({ helperClass, ...props }: SortableRepeaterContainerProps): JSX_2.Element; displayName: string; }; @@ -3497,7 +3498,7 @@ export const tableElementPlugin: CustomElementPlugin; export const tableElementType: "table"; // @public (undocumented) -export const TablePage: PageComponent<(({ rendererProps, children, pageName, ...entityListProps }: TablePageProps) => JSX.Element)>; +export const TablePage: PageComponent<(({ rendererProps, children, pageName, ...entityListProps }: TablePageProps) => JSX_2.Element)>; // @public (undocumented) export type TablePageProps = SugaredQualifiedEntityList & EntityListSubTreeAdditionalProps & { @@ -3579,7 +3580,7 @@ export const Tile: React.NamedExoticComponent; // @public (undocumented) export const TileList: ({ children }: { children?: ReactNode; -}) => JSX.Element; +}) => JSX_2.Element; // @public (undocumented) export type TileProps = BoxOwnProps; @@ -3914,10 +3915,10 @@ password: GQLVariableType; }>, TenantMutationResponse>; // @public (undocumented) -export const useResponseHandlerFeedback: ({ onLogin }: IDPResponseHandlerProps) => JSX.Element | null; +export const useResponseHandlerFeedback: ({ onLogin }: IDPResponseHandlerProps) => JSX_2.Element | null; // @public (undocumented) -export const UserListPage: (props: UserListPageProps) => JSX.Element; +export const UserListPage: (props: UserListPageProps) => JSX_2.Element; // @public (undocumented) export type UserListPageProps = UseRoleRendererFactoryProps & { @@ -3962,7 +3963,7 @@ export interface UsersListProps { } // @public @deprecated (undocumented) -export const UsersManagement: (props: UserListPageProps) => JSX.Element; +export const UsersManagement: (props: UserListPageProps) => JSX_2.Element; // @public (undocumented) export const useSaveBacklink: () => () => void; diff --git a/build/api/layout.api.md b/build/api/layout.api.md index 8891880849..592127a2f2 100644 --- a/build/api/layout.api.md +++ b/build/api/layout.api.md @@ -12,21 +12,18 @@ import { CSSProperties } from 'react'; import { ElementType } from 'react'; import { ForwardRefExoticComponent } from 'react'; import { FunctionComponentElement } from 'react'; -import { JSXElementConstructor } from 'react'; +import { JSX as JSX_2 } from 'react/jsx-runtime'; +import { JSX as JSX_3 } from 'react'; import { MemoExoticComponent } from 'react'; import { NamedExoticComponent } from 'react'; import { NestedClassName } from '@contember/utilities'; -import { PascalCase } from '@contember/utilities'; import { PolymorphicComponent } from '@contember/utilities'; import { PolymorphicComponentPropsWithRef } from '@contember/utilities'; -import { Predicate } from '@contember/utilities'; import { PropsWithChildren } from 'react'; -import { default as React_2 } from 'react'; import { ReactElement } from 'react'; import { ReactNode } from 'react'; import { RefAttributes } from 'react'; import { RefObject } from 'react'; -import { RequiredDeepPlainObject } from '@contember/utilities'; import { StackOwnProps } from '@contember/ui'; // @public (undocumented) @@ -68,57 +65,57 @@ export const commonSlots: readonly ("Actions" | "Back" | "Logo" | "Navigation" | export const CommonSlotSources: Readonly & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "Actions"; }; readonly Back: { ({ name, children }: Omit & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "Back"; }; readonly Logo: { ({ name, children }: Omit & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "Logo"; }; readonly Navigation: { ({ name, children }: Omit & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "Navigation"; }; readonly Sidebar: { ({ name, children }: Omit & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "Sidebar"; }; readonly Title: { ({ name, children }: Omit & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "Title"; }; readonly Profile: { ({ name, children }: Omit & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "Profile"; }; readonly Switchers: { ({ name, children }: Omit & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "Switchers"; }; @@ -127,42 +124,58 @@ export const CommonSlotSources: Readonly): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "Actions"; }; readonly Back: { - ({ className, ...props }: Omit): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "Back"; }; readonly Logo: { - ({ className, ...props }: Omit): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "Logo"; }; readonly Navigation: { - ({ className, ...props }: Omit): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "Navigation"; }; readonly Sidebar: { - ({ className, ...props }: Omit): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "Sidebar"; }; readonly Title: { - ({ className, ...props }: Omit): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "Title"; }; readonly Profile: { - ({ className, ...props }: Omit): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "Profile"; }; readonly Switchers: { - ({ className, ...props }: Omit): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "Switchers"; }; @@ -215,15 +228,15 @@ export const contentSlots: readonly ("ContentFooter" | "ContentHeader")[]; export const ContentSlotSources: Readonly & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "ContentFooter"; }; readonly ContentHeader: { ({ name, children }: Omit & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "ContentHeader"; }; @@ -232,12 +245,16 @@ export const ContentSlotSources: Readonly): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "ContentFooter"; }; readonly ContentHeader: { - ({ className, ...props }: Omit): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "ContentHeader"; }; @@ -278,7 +295,7 @@ export function createLayoutContentPanelComponent({ defaultAs, defaultComponentC defaultComponentClassName: string | string[]; displayName: string; name: string; -}): ( = "section">(props: PolymorphicComponentPropsWithRef) => ReactElement> | null) & { +}): ( = "section">(props: PolymorphicComponentPropsWithRef) => ReactNode) & { displayName?: string | undefined; } & ContentComponentAttributes; @@ -290,35 +307,39 @@ export function createLayoutSidebarComponent({ defaultAs, defaultBehavior, defau defaultVisibility?: PanelVisibility; displayName: string; name: string; -}): ( = "aside">(props: PolymorphicComponentPropsWithRef) => ReactElement> | null) & { +}): ( = "aside">(props: PolymorphicComponentPropsWithRef) => ReactNode) & { displayName?: string | undefined; } & SidebarComponentAttributes; // @public (undocumented) -function createSlotComponents>(slots: ReadonlyArray>): readonly [readonly PascalCase[], Readonly]: { +function createSlotComponents(slots: readonly K[]): readonly [readonly K[], Readonly & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: P; - }; }>>, Readonly]: { - ({ className, ...props }: Omit): JSX.Element; + }; }>>, Readonly & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: P_1; }; }>>]; // @public (undocumented) -function createSlotSourceComponent(slot: T, displayName?: string): { +function createSlotSourceComponent(slot: T): { ({ name, children }: Omit & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: T; }; // @public (undocumented) -function createSlotTargetComponent(name: T, displayName?: string): { - ({ className, ...props }: Omit): JSX.Element; +function createSlotTargetComponent(name: T): { + ({ className, ...props }: Omit & { + name?: string; + }): JSX_2.Element; displayName: string; slot: T; }; @@ -327,13 +348,12 @@ function createSlotTargetComponent(name: T, displayName?: stri export function diffContainerInsetsFromElementRects(outerRect: ElementRect, innerRect: ElementRect): ContainerInsets; // @public (undocumented) -const Directive: DirectiveComponentType; +const Directive: DirectiveComponentType; // @public (undocumented) -interface DirectiveComponentType = Record> extends React.ExoticComponent>> { - // (undocumented) +type DirectiveComponentType = Record> = React.ExoticComponent> & { displayName?: string | undefined; -} +}; // @public (undocumented) type DirectiveProps = { @@ -373,7 +393,7 @@ export type ElementRect = { }; // @public (undocumented) -export function FocusScope({ active, children, pressToSkipToLastLabel, pressToSkipToFirstLabel, }: FocusScopeProps): JSX.Element; +export function FocusScope({ active, children, pressToSkipToLastLabel, pressToSkipToFirstLabel, }: FocusScopeProps): JSX_2.Element; // @public (undocumented) export const focusScopeDictionary: { @@ -398,22 +418,22 @@ export const footerSlots: readonly ("FooterCenter" | "FooterEnd" | "FooterStart" export const FooterSlotSources: Readonly & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "FooterCenter"; }; readonly FooterEnd: { ({ name, children }: Omit & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "FooterEnd"; }; readonly FooterStart: { ({ name, children }: Omit & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "FooterStart"; }; @@ -422,17 +442,23 @@ export const FooterSlotSources: Readonly): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "FooterCenter"; }; readonly FooterEnd: { - ({ className, ...props }: Omit): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "FooterEnd"; }; readonly FooterStart: { - ({ className, ...props }: Omit): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "FooterStart"; }; @@ -467,22 +493,22 @@ export const headerSlots: readonly ("HeaderCenter" | "HeaderEnd" | "HeaderStart" export const HeaderSlotSources: Readonly & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "HeaderCenter"; }; readonly HeaderEnd: { ({ name, children }: Omit & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "HeaderEnd"; }; readonly HeaderStart: { ({ name, children }: Omit & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "HeaderStart"; }; @@ -491,17 +517,23 @@ export const HeaderSlotSources: Readonly): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "HeaderCenter"; }; readonly HeaderEnd: { - ({ className, ...props }: Omit): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "HeaderEnd"; }; readonly HeaderStart: { - ({ className, ...props }: Omit): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "HeaderStart"; }; @@ -511,7 +543,7 @@ export const HeaderSlotTargets: Readonly(props: InsetsConsumerProps) => React.ReactElement | null) & { +export type InsetsConsumerComponentType = ((props: InsetsConsumerProps) => ReactNode) & { displayName?: string | undefined; }; @@ -522,34 +554,25 @@ export type InsetsConsumerProps = PolymorphicComponentPro export const InsetsProvider: InsetsProviderComponentType; // @public (undocumented) -export type InsetsProviderComponentType = ((props: InsetsProviderProps) => React_2.ReactElement | null) & { +export type InsetsProviderComponentType = ((props: InsetsProviderProps) => ReactNode) & { displayName?: string | undefined; }; // @public (undocumented) export type InsetsProviderProps = PolymorphicComponentPropsWithRef; -// @public (undocumented) -const isComponentClassName: Predicate; - -// @public (undocumented) -const isOneOfPanelBehaviors: (value: unknown) => value is "static" | "collapsible" | "overlay" | "modal"; - -// @public (undocumented) -const isOneOfPanelVisibilities: (value: unknown) => value is "visible" | "hidden"; - // @public (undocumented) export const LayoutKit: { - ContentPanelMain: ( = "section">(props: PolymorphicComponentPropsWithRef) => ReactElement> | null) & { + ContentPanelMain: ( = "section">(props: PolymorphicComponentPropsWithRef) => ReactNode) & { displayName?: string | undefined; } & ContentComponentAttributes; Footer: BarComponentType; Frame: FrameComponentType; Header: BarComponentType; - SidebarLeft: ( = "aside">(props: PolymorphicComponentPropsWithRef) => ReactElement> | null) & { + SidebarLeft: ( = "aside">(props: PolymorphicComponentPropsWithRef) => ReactNode) & { displayName?: string | undefined; } & SidebarComponentAttributes; - SidebarRight: ( = "aside">(props: PolymorphicComponentPropsWithRef) => ReactElement> | null) & { + SidebarRight: ( = "aside">(props: PolymorphicComponentPropsWithRef) => ReactNode) & { displayName?: string | undefined; } & SidebarComponentAttributes; ToggleMenuButton: NamedExoticComponent; @@ -590,13 +613,10 @@ declare namespace LayoutPrimitives { Root, panelBehaviorsList, PanelBehavior, - isOneOfPanelBehaviors, MaybePanelBehavior, panelVisibilityList, PanelVisibility, - isOneOfPanelVisibilities, MaybePanelVisibility, - isComponentClassName, OwnContainerProps, ContainerProps, ContainerComponentType, @@ -893,7 +913,7 @@ const Root: ContainerComponentType; export const SafeAreaInsetsContext: Context; // @public (undocumented) -export const SafeAreaInsetsProvider: MemoExoticComponent<({ children, insets: insetsProp }: SafeAreaInsetsProviderProps) => JSX.Element>; +export const SafeAreaInsetsProvider: MemoExoticComponent<({ children, insets: insetsProp }: SafeAreaInsetsProviderProps) => JSX_2.Element>; // @public (undocumented) export type SafeAreaInsetsProviderProps = { @@ -948,22 +968,22 @@ export const sidebarLeftSlots: readonly ("SidebarLeftBody" | "SidebarLeftFooter" export const SidebarLeftSlotSources: Readonly & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "SidebarLeftBody"; }; readonly SidebarLeftFooter: { ({ name, children }: Omit & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "SidebarLeftFooter"; }; readonly SidebarLeftHeader: { ({ name, children }: Omit & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "SidebarLeftHeader"; }; @@ -972,17 +992,23 @@ export const SidebarLeftSlotSources: Readonly): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "SidebarLeftBody"; }; readonly SidebarLeftFooter: { - ({ className, ...props }: Omit): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "SidebarLeftFooter"; }; readonly SidebarLeftHeader: { - ({ className, ...props }: Omit): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "SidebarLeftHeader"; }; @@ -998,22 +1024,22 @@ export const sidebarRightSlots: readonly ("SidebarRightBody" | "SidebarRightFoot export const SidebarRightSlotSources: Readonly & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "SidebarRightBody"; }; readonly SidebarRightFooter: { ({ name, children }: Omit & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "SidebarRightFooter"; }; readonly SidebarRightHeader: { ({ name, children }: Omit & { - name?: Capitalize | undefined; - }): JSX.Element; + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "SidebarRightHeader"; }; @@ -1022,17 +1048,23 @@ export const SidebarRightSlotSources: Readonly): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "SidebarRightBody"; }; readonly SidebarRightFooter: { - ({ className, ...props }: Omit): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "SidebarRightFooter"; }; readonly SidebarRightHeader: { - ({ className, ...props }: Omit): JSX.Element; + ({ className, ...props }: Omit & { + name?: string | undefined; + }): JSX_2.Element; displayName: string; slot: "SidebarRightHeader"; }; @@ -1040,7 +1072,7 @@ export const SidebarRightSlotTargets: Readonly = Readonly<{ - readonly [P in PascalCase]: ComponentType; + readonly [P in K]: ComponentType; }>; declare namespace Slots { @@ -1077,13 +1109,13 @@ export { Slots } // @public (undocumented) type SlotSourceComponentsRecord = Readonly<{ - readonly [P in PascalCase]: ReturnType>; + readonly [P in K]: ReturnType>; }>; // @public (undocumented) -type SlotSourceProps = { +type SlotSourceProps = { children: ReactNode; - name: K; + name: string; }; // @public (undocumented) @@ -1091,15 +1123,15 @@ type SlotsRefMap = Map; // @public (undocumented) type SlotTargetComponentsRecord = Readonly<{ - readonly [P in PascalCase]: ReturnType>; + readonly [P in K]: ReturnType>; }>; // @public (undocumented) -type SlotTargetProps = ComponentClassNameProps & { +type SlotTargetProps = ComponentClassNameProps & { as?: ElementType; fallback?: ReactNode; - name: Name; - aliases?: [Name, ...Name[]]; + name: string; + aliases?: [string, ...string[]]; display?: boolean | 'contents' | 'block' | 'flex' | 'grid' | 'inline' | 'inline-flex' | 'inline-grid' | 'inline-block' | 'inherit' | 'initial' | 'none' | 'unset'; }; @@ -1113,7 +1145,7 @@ type SlotTargetsRegistryContextType = { const Source: NamedExoticComponent; // @public (undocumented) -const StateContext: Context; +const StateContext: Context>; // @public (undocumented) const Target: NamedExoticComponent; @@ -1182,10 +1214,10 @@ function useClosePanelOnEscape(behaviors?: Array): (even export const useContainerInsetsContext: () => ContainerInsets; // @public (undocumented) -function useDirectiveLifecycle(name: K, content: V): boolean; +function useDirectiveLifecycle, K extends keyof T & string, V extends T[K]>(name: K, content: V): boolean; // @public (undocumented) -function useDirectives(): T; +function useDirectives>(): T; // @public (undocumented) export function useElementInsetCustomProperties(elementRef: RefObject, prefix?: string): CSSProperties | undefined; diff --git a/build/api/react-auto.api.md b/build/api/react-auto.api.md index 4439ec24d4..d181016e79 100644 --- a/build/api/react-auto.api.md +++ b/build/api/react-auto.api.md @@ -4,8 +4,6 @@ ```ts -/// - import { ComponentType } from 'react'; import { DataGridContainerPublicProps } from '@contember/react-datagrid-ui'; import { EntityAccessor } from '@contember/react-binding'; diff --git a/build/api/react-binding-ui.api.md b/build/api/react-binding-ui.api.md index a5ae5905ea..fbfec35966 100644 --- a/build/api/react-binding-ui.api.md +++ b/build/api/react-binding-ui.api.md @@ -20,6 +20,7 @@ import { HTMLAnchorElementProps } from '@contember/ui'; import { HTMLImageElementProps } from '@contember/ui'; import { HTMLVideoElementProps } from '@contember/ui'; import { IconProps } from '@contember/ui'; +import { JSX as JSX_2 } from 'react/jsx-runtime'; import { MemoExoticComponent } from 'react'; import { NamedExoticComponent } from 'react'; import { PersistOptions } from '@contember/react-binding'; @@ -87,7 +88,7 @@ export interface CoalesceFieldViewProps JSX.Element>; +export const CreateNewEntityButton: MemoExoticComponent<({ createNewEntity, iconProps, children, ...buttonProps }: CreateNewEntityButtonProps) => JSX_2.Element>; // @public (undocumented) export type CreateNewEntityButtonProps = ButtonProps & { @@ -113,7 +114,7 @@ export type DateFieldViewProps = { } & DateFieldViewFormattingProps & FieldFallbackViewPublicProps; // @public -export const DeleteEntityButton: MemoExoticComponent<(props: DeleteEntityButtonProps) => JSX.Element | null>; +export const DeleteEntityButton: MemoExoticComponent<(props: DeleteEntityButtonProps) => JSX_2.Element | null>; // @public (undocumented) export type DeleteEntityButtonProps = { @@ -122,7 +123,7 @@ export type DeleteEntityButtonProps = { } & ButtonProps; // @public (undocumented) -export const EmptyMessage: MemoExoticComponent<({ children, component, padding, ...rest }: EmptyMessageProps) => JSX.Element>; +export const EmptyMessage: MemoExoticComponent<({ children, component, padding, ...rest }: EmptyMessageProps) => JSX_2.Element>; // @public (undocumented) export type EmptyMessageComponentProps = BoxProps & { diff --git a/build/api/react-binding.api.md b/build/api/react-binding.api.md index a5ec56a757..00aab3bada 100644 --- a/build/api/react-binding.api.md +++ b/build/api/react-binding.api.md @@ -24,6 +24,7 @@ import type { GetEntityByKey } from '@contember/binding'; import { GraphQlClientError } from '@contember/react-client'; import type { HasManyRelationMarker } from '@contember/binding'; import type { HasOneRelationMarker } from '@contember/binding'; +import { JSX as JSX_2 } from 'react/jsx-runtime'; import { MarkerTreeRoot } from '@contember/binding'; import { NamedExoticComponent } from 'react'; import type { Persist } from '@contember/binding'; @@ -46,11 +47,11 @@ import type { TreeRootAccessor } from '@contember/binding'; import { TreeRootId } from '@contember/binding'; // @public (undocumented) -export function AccessorProvider(props: EntityProviderProps): JSX.Element; +export function AccessorProvider(props: EntityProviderProps): JSX_2.Element; // @public (undocumented) export const AccessorTree: { - ({ state, children }: AccessorTreeProps): JSX.Element; + ({ state, children }: AccessorTreeProps): JSX_2.Element; displayName: string; }; @@ -103,7 +104,7 @@ export const accessorTreeStateReducer: (previousState: AccessorTreeState, action export const addEntityAtIndex: (entityList: EntityListAccessor, sortableByField: RelativeSingleField, index: number, preprocess?: EntityAccessor.BatchUpdatesHandler) => void; // @public (undocumented) -export function BindingOperationsProvider(props: BindingOperationsProviderProps): JSX.Element; +export function BindingOperationsProvider(props: BindingOperationsProviderProps): JSX_2.Element; // @public (undocumented) export interface BindingOperationsProviderProps { @@ -126,7 +127,7 @@ export type CompleteMarkerProvider(statelessRender: EnvironmentAwareFunctionComponent, displayName?: string): NamedExoticComponent; // @public (undocumented) -export function Component(statefulRender: EnvironmentAwareFunctionComponent, staticRender: (props: StaticRenderProviderProps, environment: Environment) => ReactElement | null, displayName?: string): NamedExoticComponent; +export function Component(statefulRender: EnvironmentAwareFunctionComponent, staticRender: (props: StaticRenderProviderProps, environment: Environment) => ReactNode, displayName?: string): NamedExoticComponent; // @public (undocumented) export function Component(statefulRender: EnvironmentAwareFunctionComponent, markerProvisions: MarkerProvider, displayName?: string): NamedExoticComponent; @@ -183,7 +184,7 @@ export interface EntityBaseProps { } // @public (undocumented) -export function EntityKeyProvider(props: EntityKeyProviderProps): JSX.Element; +export function EntityKeyProvider(props: EntityKeyProviderProps): JSX_2.Element; // @public (undocumented) export interface EntityKeyProviderProps { @@ -258,7 +259,7 @@ export type EntitySubTreeProps = { } & EntitySubTreeAdditionalProps & (SugaredQualifiedSingleEntity | (SugaredUnconstrainedQualifiedSingleEntity & EntitySubTreeAdditionalCreationProps)); // @public (undocumented) -export function EntityView(props: EntityViewProps): JSX.Element; +export function EntityView(props: EntityViewProps): JSX_2.Element; // @public (undocumented) export interface EntityViewProps { @@ -271,7 +272,7 @@ export interface EntityViewProps { // @public (undocumented) export interface EnvironmentAwareFunctionComponent

{ // (undocumented) - (props: PropsWithChildren

, environment: Environment): ReactElement | null; + (props: PropsWithChildren

, environment: Environment): ReactNode; // (undocumented) displayName?: string | undefined; } @@ -286,7 +287,7 @@ export interface EnvironmentDeltaProvider { } // @public (undocumented) -export const EnvironmentExtensionProvider: (props: EnvironmentWithExtensionProps) => ReactElement | null; +export const EnvironmentExtensionProvider: (props: EnvironmentWithExtensionProps) => ReactNode; // @public (undocumented) export const EnvironmentMiddleware: NamedExoticComponent; @@ -463,7 +464,7 @@ export const LabelMiddlewareContext: Context; export const LabelMiddlewareProvider: ({ value, children }: { value: LabelMiddleware; children: ReactNode; -}) => JSX.Element; +}) => JSX_2.Element; // @public (undocumented) export interface LeafMarkerProvider { @@ -546,7 +547,7 @@ export interface StaticRenderProps { // @public (undocumented) export interface StaticRenderProvider { // (undocumented) - staticRender: (props: StaticRenderProviderProps, environment: Environment) => ReactElement | null; + staticRender: (props: StaticRenderProviderProps, environment: Environment) => ReactNode; } // @public (undocumented) @@ -564,7 +565,7 @@ export interface SugaredFieldProps ex } // @public (undocumented) -export function TreeRootIdProvider(props: TreeRootIdProviderProps): JSX.Element; +export function TreeRootIdProvider(props: TreeRootIdProviderProps): JSX_2.Element; // @public (undocumented) export interface TreeRootIdProviderProps { diff --git a/build/api/react-choice-field-ui.api.md b/build/api/react-choice-field-ui.api.md index 029bbee54d..19225469fa 100644 --- a/build/api/react-choice-field-ui.api.md +++ b/build/api/react-choice-field-ui.api.md @@ -11,6 +11,7 @@ import { DynamicMultiChoiceFieldRendererProps } from '@contember/react-choice-fi import { DynamicMultipleChoiceFieldProps } from '@contember/react-choice-field'; import { DynamicSingleChoiceFieldProps } from '@contember/react-choice-field'; import { FieldContainerProps } from '@contember/ui'; +import { JSX as JSX_2 } from 'react/jsx-runtime'; import { MemoExoticComponent } from 'react'; import type { Props } from 'react-select'; import { PublicCommonReactSelectStylesProps } from '@contember/ui'; @@ -38,7 +39,7 @@ export const choiceFieldDictionary: { export const MultiSelectField: ComponentType; // @internal (undocumented) -export const MultiSelectFieldInner: MemoExoticComponent<({ currentValues, data, errors, onAdd, onClear, onRemove, reactSelectProps, placeholder, menuZIndex, onMove, onSearch, isLoading, createNewForm: _INTENTIONALLY_OMITTED_createNewForm, onAddNew, ...props }: MultiSelectFieldInnerProps) => JSX.Element>; +export const MultiSelectFieldInner: MemoExoticComponent<({ currentValues, data, errors, onAdd, onClear, onRemove, reactSelectProps, placeholder, menuZIndex, onMove, onSearch, isLoading, createNewForm: _INTENTIONALLY_OMITTED_createNewForm, onAddNew, ...props }: MultiSelectFieldInnerProps) => JSX_2.Element>; // @public (undocumented) export type MultiSelectFieldInnerProps = DynamicMultiChoiceFieldRendererProps & MultiSelectFieldRendererPublicProps & { @@ -49,7 +50,7 @@ export type MultiSelectFieldInnerProps = DynamicMultiChoiceFieldRendererProps & export type MultiSelectFieldProps = MultiSelectFieldRendererPublicProps & DynamicMultipleChoiceFieldProps; // @internal (undocumented) -export const MultiSelectFieldRenderer: MemoExoticComponent<(props: MultiSelectFieldRendererProps) => JSX.Element>; +export const MultiSelectFieldRenderer: MemoExoticComponent<(props: MultiSelectFieldRendererProps) => JSX_2.Element>; // @public (undocumented) export type MultiSelectFieldRendererProps = MultiSelectFieldInnerProps & BaseDynamicChoiceField; @@ -57,7 +58,7 @@ export type MultiSelectFieldRendererProps = MultiSelectFieldInnerProps & BaseDyn // @public (undocumented) export type MultiSelectFieldRendererPublicProps = Pick & PublicCommonReactSelectStylesProps & { placeholder?: string; - reactSelectProps?: Partial>; + reactSelectProps?: Partial>; createNewForm?: ReactElement; }; @@ -70,7 +71,7 @@ export const RadioField: ComponentType; export type RadioFieldProps = RadioFieldRendererPublicProps & (StaticSingleChoiceFieldProps | SimpleDynamicSingleChoiceFieldProps); // @public (undocumented) -export const RadioFieldRenderer: MemoExoticComponent<((props: RadioFieldRendererProps) => JSX.Element)>; +export const RadioFieldRenderer: MemoExoticComponent<((props: RadioFieldRendererProps) => JSX_2.Element)>; // @public (undocumented) export type RadioFieldRendererProps = SingleChoiceFieldRendererProps & RadioFieldRendererPublicProps; @@ -82,7 +83,7 @@ export type RadioFieldRendererPublicProps = Omit; // @public (undocumented) -export const SelectFieldInner: ({ placeholder, allowNull, currentValue, data, errors, menuZIndex, onSelect, onClear, reactSelectProps, onSearch, isLoading, createNewForm: _INTENTIONALLY_OMITTED_createNewForm, onAddNew, ...props }: SelectFieldInnerProps) => JSX.Element; +export const SelectFieldInner: ({ placeholder, allowNull, currentValue, data, errors, menuZIndex, onSelect, onClear, reactSelectProps, onSearch, isLoading, createNewForm: _INTENTIONALLY_OMITTED_createNewForm, onAddNew, ...props }: SelectFieldInnerProps) => JSX_2.Element; // @public (undocumented) export type SelectFieldInnerProps = SingleChoiceFieldRendererProps & SelectFieldRendererPublicProps & { @@ -93,7 +94,7 @@ export type SelectFieldInnerProps = SingleChoiceFieldRendererProps< export type SelectFieldProps = SelectFieldRendererPublicProps & (StaticSingleChoiceFieldProps | DynamicSingleChoiceFieldProps); // @internal (undocumented) -export const SelectFieldRenderer: MemoExoticComponent<(({ createNewForm, ...props }: SelectFieldRendererProps) => JSX.Element)>; +export const SelectFieldRenderer: MemoExoticComponent<(({ createNewForm, ...props }: SelectFieldRendererProps) => JSX_2.Element)>; // @public (undocumented) export type SelectFieldRendererProps = SelectFieldInnerProps & ChoiceFieldProps; @@ -102,7 +103,7 @@ export type SelectFieldRendererProps = SelectFieldInnerProps & C export type SelectFieldRendererPublicProps = Omit & PublicCommonReactSelectStylesProps & { placeholder?: string; allowNull?: boolean; - reactSelectProps?: Partial>; + reactSelectProps?: Partial>; createNewForm?: ReactElement; }; diff --git a/build/api/react-datagrid-ui.api.md b/build/api/react-datagrid-ui.api.md index ad772400cb..4c76ae2240 100644 --- a/build/api/react-datagrid-ui.api.md +++ b/build/api/react-datagrid-ui.api.md @@ -4,8 +4,6 @@ ```ts -/// - import { BooleanCellRendererProps } from '@contember/react-datagrid'; import { BooleanFilterArtifacts } from '@contember/react-datagrid'; import { CoalesceCellRendererProps } from '@contember/react-datagrid'; @@ -36,6 +34,7 @@ import { FunctionComponent } from 'react'; import { GenericTextCellFilterArtifacts } from '@contember/react-datagrid'; import { HasManySelectProps } from '@contember/react-datagrid'; import { HasOneSelectProps } from '@contember/react-datagrid'; +import { JSX as JSX_2 } from 'react/jsx-runtime'; import { Justification } from '@contember/ui'; import { MemoExoticComponent } from 'react'; import { NamedExoticComponent } from 'react'; @@ -64,7 +63,7 @@ format?: ((date: boolean) => ReactNode) | undefined; } & FieldFallbackViewProps>; // @public (undocumented) -export const BooleanCellFilter: ({ setFilter, filter }: FilterRendererProps) => JSX.Element; +export const BooleanCellFilter: ({ setFilter, filter }: FilterRendererProps) => JSX_2.Element; // @public export const CoalesceTextCell: FunctionComponent; export function DataGridHeaderCell(props: DataGridHeaderCellProps): ReactElement; // @public (undocumented) -export const DataGridHeaderCellFilterDropdown: (props: DataGridHeaderCellFilterDropdownProps) => JSX.Element | null; +export const DataGridHeaderCellFilterDropdown: (props: DataGridHeaderCellFilterDropdownProps) => JSX_2.Element | null; // @public (undocumented) export type DataGridHeaderCellFilterDropdownProps = DataGridRenderingCommonProps & { @@ -279,7 +278,7 @@ export type DataGridHeaderProps = DataGridRenderingCommonProps & DataGridHeaderP export type DataGridHeaderPublicProps = DataGridLayoutControlPublicProps & DataGridColumnHidingPublicProps & DataGridFullFiltersPublicProps; // @public (undocumented) -export const DataGridLayoutControl: ({ stateMethods: { setLayout }, desiredState: { layout }, tile }: DataGridLayoutControlProps) => JSX.Element | null; +export const DataGridLayoutControl: ({ stateMethods: { setLayout }, desiredState: { layout }, tile }: DataGridLayoutControlProps) => JSX_2.Element | null; // @public (undocumented) export type DataGridLayoutControlProps = DataGridRenderingCommonProps & DataGridLayoutControlPublicProps; @@ -290,7 +289,7 @@ export type DataGridLayoutControlPublicProps = { }; // @public (undocumented) -export const DataGridPagingSummary: ({ pagingInfo, displayedState: { paging: { pageIndex } } }: DataGridPagingSummaryProps) => JSX.Element; +export const DataGridPagingSummary: ({ pagingInfo, displayedState: { paging: { pageIndex } } }: DataGridPagingSummaryProps) => JSX_2.Element; // @public (undocumented) export type DataGridPagingSummaryProps = DataGridRenderingCommonProps; @@ -305,7 +304,7 @@ export const DataGridTable: NamedExoticComponent; export type DataGridTableHead = DataGridRenderingCommonProps; // @public (undocumented) -export const DataGridTableHead: (props: DataGridTableHead) => JSX.Element; +export const DataGridTableHead: (props: DataGridTableHead) => JSX_2.Element; // @public (undocumented) export type DataGridTableProps = DataGridRenderingCommonProps & DataGridTablePublicProps & EntityListBaseProps; @@ -317,7 +316,7 @@ export type DataGridTablePublicProps = { } & DataGridTableRowPublicProps; // @public (undocumented) -export const DataGridTableRow: ({ desiredState, displayedState, onEntityClick, isEntitySelected, selectedEntityIds }: DataGridTableRowProps) => JSX.Element; +export const DataGridTableRow: ({ desiredState, displayedState, onEntityClick, isEntitySelected, selectedEntityIds }: DataGridTableRowProps) => JSX_2.Element; // @public (undocumented) export type DataGridTableRowProps = DataGridRenderingCommonProps & DataGridTableRowPublicProps; @@ -330,7 +329,7 @@ export type DataGridTableRowPublicProps = { }; // @public (undocumented) -export const DataGridTiles: MemoExoticComponent<({ accessor, tileSize, tile, emptyMessage, emptyMessageComponent }: DataGridTilesProps) => JSX.Element>; +export const DataGridTiles: MemoExoticComponent<({ accessor, tileSize, tile, emptyMessage, emptyMessageComponent }: DataGridTilesProps) => JSX_2.Element>; // @public (undocumented) export type DataGridTilesProps = DataGridRenderingCommonProps & DataGridTilesPublicProps; @@ -365,7 +364,7 @@ options: Record; }>; // @public (undocumented) -export const EnumCellFilter: ({ filter, setFilter, environment, field, options, showNullConditionFilter }: FilterRendererProps) => JSX.Element; +export const EnumCellFilter: ({ filter, setFilter, environment, field, options, showNullConditionFilter }: FilterRendererProps) => JSX_2.Element; // @public (undocumented) export type EnumCellFilterExtraProps = NullConditionFilterPublicProps & EnumCellRendererProps & { @@ -384,7 +383,7 @@ export const GenericCell: FunctionComponent({ filter, setFilter }: { filter: Filter; setFilter: (filter: Filter) => void; -}) => JSX.Element; +}) => JSX_2.Element; // @public export const HasManyAbsentCell: FunctionComponent; // @public (undocumented) -export const HasManyAbsentCellFilter: ({ filter, setFilter }: FilterRendererProps) => JSX.Element; +export const HasManyAbsentCellFilter: ({ filter, setFilter }: FilterRendererProps) => JSX_2.Element; // @public export const HasManySelectCell: FunctionComponent; @@ -407,7 +406,7 @@ export type NullConditionArtifacts = { }; // @public (undocumented) -export const NullConditionFilter: ({ filter, setFilter, field, environment, showNullConditionFilter }: NullConditionFilterProps) => JSX.Element | null; +export const NullConditionFilter: ({ filter, setFilter, field, environment, showNullConditionFilter }: NullConditionFilterProps) => JSX_2.Element | null; // @public (undocumented) export type NullConditionFilterProps = FilterRendererProps & NullConditionFilterPublicProps & { @@ -429,7 +428,7 @@ format?: ((value: number | null) => ReactNode) | undefined; } & NullConditionFilterPublicProps>; // @public (undocumented) -export const NumberCellFilter: ({ filter, setFilter, environment, field, showNullConditionFilter }: FilterRendererProps) => JSX.Element; +export const NumberCellFilter: ({ filter, setFilter, environment, field, showNullConditionFilter }: FilterRendererProps) => JSX_2.Element; // @public (undocumented) export type NumberCellFilterExtraProps = NullConditionFilterPublicProps & NumberCellRendererProps; @@ -440,7 +439,7 @@ export type NumberCellValueRendererProps = NumberCellRendererProps & FieldFallba }; // @public -export const SelectCellFilter: ({ filter, setFilter, options, allOptions, onSearch, isLoading }: SelectCellFilterProps) => JSX.Element; +export const SelectCellFilter: ({ filter, setFilter, options, allOptions, onSearch, isLoading }: SelectCellFilterProps) => JSX_2.Element; // @public (undocumented) export type SelectCellFilterProps = FilterRendererProps & SelectCellFilterExtraProps; @@ -455,7 +454,7 @@ format?: ((value: string | null) => ReactNode) | undefined; }>; // @public (undocumented) -export const TextCellFilter: ({ filter, setFilter, ...props }: FilterRendererProps) => JSX.Element; +export const TextCellFilter: ({ filter, setFilter, ...props }: FilterRendererProps) => JSX_2.Element; // @public (undocumented) export type TextCellValueRendererProps = TextCellRendererProps & FieldFallbackViewPublicProps & { diff --git a/build/api/react-form-fields-ui.api.md b/build/api/react-form-fields-ui.api.md index d169eb1657..c8a95bc4b8 100644 --- a/build/api/react-form-fields-ui.api.md +++ b/build/api/react-form-fields-ui.api.md @@ -15,6 +15,7 @@ import { FieldAccessor } from '@contember/react-binding'; import { FieldBasicProps } from '@contember/react-binding'; import { FieldContainerProps } from '@contember/ui'; import { FieldValue } from '@contember/react-binding'; +import { JSX as JSX_2 } from 'react/jsx-runtime'; import { MemoExoticComponent } from 'react'; import { NamedExoticComponent } from 'react'; import type { NonOptionalControlProps } from '@contember/ui'; @@ -114,7 +115,7 @@ export interface SimpleRelativeSingleFieldMetadata JSX.Element>; +export const SimpleRelativeSingleFieldProxy: MemoExoticComponent<({ render, defaultValue, isNonbearing, onBeforeUpdate, onInitialize, onUpdate, description, display, evenly, footer, horizontal, gap, label, labelDescription, labelPosition, reverse, useLabelElement, className, componentClassName, style, errors, field: fieldName, required, size, containerClassName, containerStyle, suppressErrors, ...rest }: SimpleRelativeSingleFieldProxyProps & SimpleRelativeSingleFieldProxyRendererProps) => JSX_2.Element>; // @public (undocumented) export type SimpleRelativeSingleFieldProxyExcludeHandledProps

= Omit | Exclude | Exclude>; diff --git a/build/api/react-i18n.api.md b/build/api/react-i18n.api.md index 460b4b056c..aec9439929 100644 --- a/build/api/react-i18n.api.md +++ b/build/api/react-i18n.api.md @@ -4,6 +4,7 @@ ```ts +import { JSX as JSX_2 } from 'react/jsx-runtime'; import { ReactNode } from 'react'; // @public (undocumented) @@ -11,7 +12,7 @@ export class I18nError extends Error { } // @public (undocumented) -export function I18nProvider({ localeCode, dictionaries, children }: I18nProviderProps): JSX.Element; +export function I18nProvider({ localeCode, dictionaries, children }: I18nProviderProps): JSX_2.Element; // @public (undocumented) export interface I18nProviderProps { diff --git a/build/api/react-utils.api.md b/build/api/react-utils.api.md index f51338b36f..b9b0216917 100644 --- a/build/api/react-utils.api.md +++ b/build/api/react-utils.api.md @@ -7,7 +7,7 @@ import { Context } from 'react'; import { DispatchWithoutAction } from 'react'; import { EventHandler } from 'react'; -import { KebabCase } from '@contember/utilities'; +import { JSX as JSX_2 } from 'react/jsx-runtime'; import { MemoExoticComponent } from 'react'; import { MutableRefObject } from 'react'; import { NamedExoticComponent } from 'react'; @@ -21,12 +21,12 @@ import { SyntheticEvent } from 'react'; export const ColorSchemeContext: Context; // @public (undocumented) -export const ColorSchemeProvider: MemoExoticComponent<(({ children, scheme }: ColorSchemeProviderProps) => JSX.Element)>; +export const ColorSchemeProvider: MemoExoticComponent<({ children, scheme }: ColorSchemeProviderProps) => JSX_2.Element>; // @public (undocumented) -export type ColorSchemeProviderProps> = { +export type ColorSchemeProviderProps = { children: React.ReactNode; - scheme?: T; + scheme?: string; }; // @public (undocumented) diff --git a/build/api/ui.api.md b/build/api/ui.api.md index e8a453940a..4359ee77ed 100644 --- a/build/api/ui.api.md +++ b/build/api/ui.api.md @@ -26,6 +26,7 @@ import type { FunctionComponent } from 'react'; import type { GroupBase } from 'react-select'; import { HTMLAttributes } from 'react'; import { IconName } from '@blueprintjs/icons'; +import { JSX as JSX_2 } from 'react/jsx-runtime'; import { Key } from 'react'; import { KeyboardEventHandler } from 'react'; import { LucideIcon } from 'lucide-react'; @@ -35,7 +36,6 @@ import { MouseEventHandler } from 'react'; import { MutableRefObject } from 'react'; import { NamedExoticComponent } from 'react'; import { Narrow } from '@contember/utilities'; -import { Narrowable } from '@contember/utilities'; import { NestedClassName } from '@contember/utilities'; import { NonOptional } from '@contember/utilities'; import { PointerEventHandler } from 'react'; @@ -56,7 +56,6 @@ import { SyntheticEvent } from 'react'; import { TextareaHTMLAttributes } from 'react'; import { TouchEventHandler } from 'react'; import { TransitionEventHandler } from 'react'; -import { Try } from '@contember/utilities'; import { UIEventHandler } from 'react'; import { useCloseOnClickOutside as useCloseOnClickOutside_2 } from '@contember/react-utils'; import { useCloseOnEscape as useCloseOnEscape_2 } from '@contember/react-utils'; @@ -99,7 +98,7 @@ export interface ActiveSectionTabsMap { } // @public (undocumented) -export const Aether: MemoExoticComponent<({ children, className, ...divProps }: AetherProps) => JSX.Element>; +export const Aether: MemoExoticComponent<({ children, className, ...divProps }: AetherProps) => JSX_2.Element>; // @public (undocumented) export type AetherProps = HTMLDivElementProps; @@ -214,7 +213,7 @@ export interface ButtonBasedProps extends Omit JSX.Element>; +export const ButtonGroup: MemoExoticComponent<({ borderRadius, children, className, componentClassName, display, focusRing, inset, direction, size, }: ButtonGroupProps) => JSX_2.Element>; // @public (undocumented) export interface ButtonGroupProps extends ComponentClassNameProps { @@ -235,7 +234,7 @@ export interface ButtonGroupProps extends ComponentClassNameProps { } // @public (undocumented) -export const ButtonList: MemoExoticComponent<({ children, className, componentClassName, display, gap, inset, direction, size, }: ButtonListProps) => JSX.Element>; +export const ButtonList: MemoExoticComponent<({ children, className, componentClassName, display, gap, inset, direction, size, }: ButtonListProps) => JSX_2.Element>; // @public (undocumented) export interface ButtonListProps extends ComponentClassNameProps { @@ -306,10 +305,10 @@ export type CardProps = Omit & Omit | "CheckboxButtonComponent" | keyof DeprecatedCheckboxProps> & Omit & DeprecatedCheckboxProps & RefAttributes>>; +export const Checkbox: MemoExoticComponent | "CheckboxButtonComponent" | keyof DeprecatedCheckboxProps> & Omit & DeprecatedCheckboxProps & RefAttributes>>; // @public (undocumented) -export const CheckboxButton: ({ id, name, placeholder, checked, indeterminate, style, ...props }: CheckboxButtonProps) => JSX.Element; +export const CheckboxButton: ({ id, name, placeholder, checked, indeterminate, style, ...props }: CheckboxButtonProps) => JSX_2.Element; // @public (undocumented) export interface CheckboxButtonProps extends NonOptionalVisuallyDependentControlProps { @@ -385,10 +384,10 @@ export type ContemberIconName = keyof typeof ContemberIcons; // Warning: (ae-forgotten-export) The symbol "ContemberLogoImage_2" needs to be exported by the entry point index.d.ts // // @public @deprecated (undocumented) -export const ContemberLogoImage: ({ withLabel }: ContemberLogoImage_2) => JSX.Element; +export const ContemberLogoImage: ({ withLabel }: ContemberLogoImage_2) => JSX_2.Element; // @public (undocumented) -export function ContentStatus({ label }: ContentStatusProps): JSX.Element; +export function ContentStatus({ label }: ContentStatusProps): JSX_2.Element; // @public (undocumented) export namespace ContentStatus { @@ -536,7 +535,7 @@ export type DeprecatedCheckboxProps = { }; // @public (undocumented) -export const Description: MemoExoticComponent<({ className, children }: DescriptionProps) => JSX.Element>; +export const Description: MemoExoticComponent<({ className, children }: DescriptionProps) => JSX_2.Element>; // @public (undocumented) export interface DescriptionProps { @@ -549,13 +548,13 @@ export interface DescriptionProps { // @public (undocumented) export const DevBar: ({ breakpoint, children, }: PropsWithChildren<{ breakpoint?: number | undefined; -}>) => JSX.Element; +}>) => JSX_2.Element; // @public (undocumented) -export function DevError(props: DevErrorProps): JSX.Element; +export function DevError(props: DevErrorProps): JSX_2.Element; // @public (undocumented) -export function DevErrorBadge({ errorCount, onOpen }: DevErrorBadgeProps): JSX.Element; +export function DevErrorBadge({ errorCount, onOpen }: DevErrorBadgeProps): JSX_2.Element; // @public (undocumented) export interface DevErrorBadgeProps { @@ -566,7 +565,7 @@ export interface DevErrorBadgeProps { } // @public (undocumented) -export function DevErrorList({ currentError, currentErrorIndex, currentErrorSource, errorCount, onClose, onNext, onPrevious, }: DevErrorListProps): JSX.Element; +export function DevErrorList({ currentError, currentErrorIndex, currentErrorSource, errorCount, onClose, onNext, onPrevious, }: DevErrorListProps): JSX_2.Element; // @public (undocumented) export interface DevErrorListProps { @@ -600,10 +599,10 @@ export const DevPanel: ({ heading, icon, children, preview }: { heading: ReactNode; children: ReactNode; preview?: ReactNode; -}) => JSX.Element; +}) => JSX_2.Element; // @public (undocumented) -export const DialogModal: MemoExoticComponent<({ bodyClassName, bodyProps, children, className, dividers, footer, footerClassName, footerProps, header, headerClassName, headerProps, layout, onClose, ...rest }: DialogModalProps) => JSX.Element>; +export const DialogModal: MemoExoticComponent<({ bodyClassName, bodyProps, children, className, dividers, footer, footerClassName, footerProps, header, headerClassName, headerProps, layout, onClose, ...rest }: DialogModalProps) => JSX_2.Element>; // @public (undocumented) export type DialogModalProps = { @@ -627,7 +626,7 @@ export interface DialogOptions { } // @public (undocumented) -export const DialogProvider: MemoExoticComponent<(props: DialogProviderProps) => JSX.Element>; +export const DialogProvider: MemoExoticComponent<(props: DialogProviderProps) => JSX_2.Element>; // @public (undocumented) export interface DialogProviderProps { @@ -654,7 +653,7 @@ export interface DialogSettings { } // @public (undocumented) -export function DimensionSwitcher({ dimensions }: DimensionSwitcherProps): JSX.Element; +export function DimensionSwitcher({ dimensions }: DimensionSwitcherProps): JSX_2.Element; // @public (undocumented) export namespace DimensionSwitcher { @@ -683,7 +682,7 @@ export interface DimensionSwitcherValue { } // @public (undocumented) -export const Divider: MemoExoticComponent<({ className, componentClassName, gap, ...rest }: DividerProps) => JSX.Element>; +export const Divider: MemoExoticComponent<({ className, componentClassName, gap, ...rest }: DividerProps) => JSX_2.Element>; // @public (undocumented) export interface DividerOwnProps extends ComponentClassNameProps { @@ -694,7 +693,7 @@ export interface DividerOwnProps extends ComponentClassNameProps { export type DividerProps = Omit & DividerOwnProps; // @public (undocumented) -export const Dropdown: MemoExoticComponent<(props: DropdownProps) => JSX.Element>; +export const Dropdown: MemoExoticComponent<(props: DropdownProps) => JSX_2.Element>; // @public (undocumented) export type DropdownAlignment = Default | 'center' | 'start' | 'end' | 'top' | 'right'; @@ -804,7 +803,7 @@ suppressContentEditableWarning?: boolean | undefined; suppressHydrationWarning?: boolean | undefined; accessKey?: string | undefined; autoFocus?: boolean | undefined; -contentEditable?: "inherit" | (boolean | "false" | "true") | undefined; +contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined; contextMenu?: string | undefined; dir?: string | undefined; draggable?: (boolean | "false" | "true") | undefined; @@ -812,7 +811,6 @@ hidden?: boolean | undefined; id?: string | undefined; lang?: string | undefined; nonce?: string | undefined; -placeholder?: string | undefined; slot?: string | undefined; spellCheck?: (boolean | "false" | "true") | undefined; tabIndex?: number | undefined; @@ -845,54 +843,59 @@ security?: string | undefined; unselectable?: "on" | "off" | undefined; inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined; is?: string | undefined; -'aria-activedescendant'?: string | undefined; -'aria-atomic'?: (boolean | "false" | "true") | undefined; -'aria-autocomplete'?: "both" | "none" | "inline" | "list" | undefined; -'aria-busy'?: (boolean | "false" | "true") | undefined; -'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined; -'aria-colcount'?: number | undefined; -'aria-colindex'?: number | undefined; -'aria-colspan'?: number | undefined; -'aria-controls'?: string | undefined; -'aria-current'?: boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date" | undefined; -'aria-describedby'?: string | undefined; -'aria-details'?: string | undefined; -'aria-disabled'?: (boolean | "false" | "true") | undefined; -'aria-dropeffect'?: "none" | "copy" | "move" | "link" | "execute" | "popup" | undefined; -'aria-errormessage'?: string | undefined; -'aria-expanded'?: (boolean | "false" | "true") | undefined; -'aria-flowto'?: string | undefined; -'aria-grabbed'?: (boolean | "false" | "true") | undefined; -'aria-haspopup'?: boolean | "listbox" | "grid" | "menu" | "false" | "true" | "dialog" | "tree" | undefined; -'aria-hidden'?: (boolean | "false" | "true") | undefined; -'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined; -'aria-keyshortcuts'?: string | undefined; -'aria-label'?: string | undefined; -'aria-labelledby'?: string | undefined; -'aria-level'?: number | undefined; -'aria-live'?: "off" | "assertive" | "polite" | undefined; -'aria-modal'?: (boolean | "false" | "true") | undefined; -'aria-multiline'?: (boolean | "false" | "true") | undefined; -'aria-multiselectable'?: (boolean | "false" | "true") | undefined; -'aria-orientation'?: "horizontal" | "vertical" | undefined; -'aria-owns'?: string | undefined; -'aria-placeholder'?: string | undefined; -'aria-posinset'?: number | undefined; -'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined; -'aria-readonly'?: (boolean | "false" | "true") | undefined; -'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined; -'aria-required'?: (boolean | "false" | "true") | undefined; -'aria-roledescription'?: string | undefined; -'aria-rowcount'?: number | undefined; -'aria-rowindex'?: number | undefined; -'aria-rowspan'?: number | undefined; -'aria-selected'?: (boolean | "false" | "true") | undefined; -'aria-setsize'?: number | undefined; -'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined; -'aria-valuemax'?: number | undefined; -'aria-valuemin'?: number | undefined; -'aria-valuenow'?: number | undefined; -'aria-valuetext'?: string | undefined; +"aria-activedescendant"?: string | undefined; +"aria-atomic"?: (boolean | "false" | "true") | undefined; +"aria-autocomplete"?: "both" | "none" | "inline" | "list" | undefined; +"aria-braillelabel"?: string | undefined; +"aria-brailleroledescription"?: string | undefined; +"aria-busy"?: (boolean | "false" | "true") | undefined; +"aria-checked"?: boolean | "mixed" | "false" | "true" | undefined; +"aria-colcount"?: number | undefined; +"aria-colindex"?: number | undefined; +"aria-colindextext"?: string | undefined; +"aria-colspan"?: number | undefined; +"aria-controls"?: string | undefined; +"aria-current"?: boolean | "page" | "false" | "true" | "step" | "location" | "date" | "time" | undefined; +"aria-describedby"?: string | undefined; +"aria-description"?: string | undefined; +"aria-details"?: string | undefined; +"aria-disabled"?: (boolean | "false" | "true") | undefined; +"aria-dropeffect"?: "none" | "copy" | "move" | "link" | "execute" | "popup" | undefined; +"aria-errormessage"?: string | undefined; +"aria-expanded"?: (boolean | "false" | "true") | undefined; +"aria-flowto"?: string | undefined; +"aria-grabbed"?: (boolean | "false" | "true") | undefined; +"aria-haspopup"?: boolean | "listbox" | "grid" | "menu" | "false" | "true" | "dialog" | "tree" | undefined; +"aria-hidden"?: (boolean | "false" | "true") | undefined; +"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined; +"aria-keyshortcuts"?: string | undefined; +"aria-label"?: string | undefined; +"aria-labelledby"?: string | undefined; +"aria-level"?: number | undefined; +"aria-live"?: "off" | "assertive" | "polite" | undefined; +"aria-modal"?: (boolean | "false" | "true") | undefined; +"aria-multiline"?: (boolean | "false" | "true") | undefined; +"aria-multiselectable"?: (boolean | "false" | "true") | undefined; +"aria-orientation"?: "horizontal" | "vertical" | undefined; +"aria-owns"?: string | undefined; +"aria-placeholder"?: string | undefined; +"aria-posinset"?: number | undefined; +"aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined; +"aria-readonly"?: (boolean | "false" | "true") | undefined; +"aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined; +"aria-required"?: (boolean | "false" | "true") | undefined; +"aria-roledescription"?: string | undefined; +"aria-rowcount"?: number | undefined; +"aria-rowindex"?: number | undefined; +"aria-rowindextext"?: string | undefined; +"aria-rowspan"?: number | undefined; +"aria-selected"?: (boolean | "false" | "true") | undefined; +"aria-setsize"?: number | undefined; +"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined; +"aria-valuemax"?: number | undefined; +"aria-valuemin"?: number | undefined; +"aria-valuenow"?: number | undefined; +"aria-valuetext"?: string | undefined; children?: ReactNode; dangerouslySetInnerHTML?: { __html: string | TrustedHTML; @@ -1100,7 +1103,7 @@ suppressContentEditableWarning?: boolean | undefined; suppressHydrationWarning?: boolean | undefined; accessKey?: string | undefined; autoFocus?: boolean | undefined; -contentEditable?: "inherit" | (boolean | "false" | "true") | undefined; +contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined; contextMenu?: string | undefined; dir?: string | undefined; draggable?: (boolean | "false" | "true") | undefined; @@ -1108,7 +1111,6 @@ hidden?: boolean | undefined; id?: string | undefined; lang?: string | undefined; nonce?: string | undefined; -placeholder?: string | undefined; slot?: string | undefined; spellCheck?: (boolean | "false" | "true") | undefined; tabIndex?: number | undefined; @@ -1141,54 +1143,59 @@ security?: string | undefined; unselectable?: "on" | "off" | undefined; inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined; is?: string | undefined; -'aria-activedescendant'?: string | undefined; -'aria-atomic'?: (boolean | "false" | "true") | undefined; -'aria-autocomplete'?: "both" | "none" | "inline" | "list" | undefined; -'aria-busy'?: (boolean | "false" | "true") | undefined; -'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined; -'aria-colcount'?: number | undefined; -'aria-colindex'?: number | undefined; -'aria-colspan'?: number | undefined; -'aria-controls'?: string | undefined; -'aria-current'?: boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date" | undefined; -'aria-describedby'?: string | undefined; -'aria-details'?: string | undefined; -'aria-disabled'?: (boolean | "false" | "true") | undefined; -'aria-dropeffect'?: "none" | "copy" | "move" | "link" | "execute" | "popup" | undefined; -'aria-errormessage'?: string | undefined; -'aria-expanded'?: (boolean | "false" | "true") | undefined; -'aria-flowto'?: string | undefined; -'aria-grabbed'?: (boolean | "false" | "true") | undefined; -'aria-haspopup'?: boolean | "listbox" | "grid" | "menu" | "false" | "true" | "dialog" | "tree" | undefined; -'aria-hidden'?: (boolean | "false" | "true") | undefined; -'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined; -'aria-keyshortcuts'?: string | undefined; -'aria-label'?: string | undefined; -'aria-labelledby'?: string | undefined; -'aria-level'?: number | undefined; -'aria-live'?: "off" | "assertive" | "polite" | undefined; -'aria-modal'?: (boolean | "false" | "true") | undefined; -'aria-multiline'?: (boolean | "false" | "true") | undefined; -'aria-multiselectable'?: (boolean | "false" | "true") | undefined; -'aria-orientation'?: "horizontal" | "vertical" | undefined; -'aria-owns'?: string | undefined; -'aria-placeholder'?: string | undefined; -'aria-posinset'?: number | undefined; -'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined; -'aria-readonly'?: (boolean | "false" | "true") | undefined; -'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined; -'aria-required'?: (boolean | "false" | "true") | undefined; -'aria-roledescription'?: string | undefined; -'aria-rowcount'?: number | undefined; -'aria-rowindex'?: number | undefined; -'aria-rowspan'?: number | undefined; -'aria-selected'?: (boolean | "false" | "true") | undefined; -'aria-setsize'?: number | undefined; -'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined; -'aria-valuemax'?: number | undefined; -'aria-valuemin'?: number | undefined; -'aria-valuenow'?: number | undefined; -'aria-valuetext'?: string | undefined; +"aria-activedescendant"?: string | undefined; +"aria-atomic"?: (boolean | "false" | "true") | undefined; +"aria-autocomplete"?: "both" | "none" | "inline" | "list" | undefined; +"aria-braillelabel"?: string | undefined; +"aria-brailleroledescription"?: string | undefined; +"aria-busy"?: (boolean | "false" | "true") | undefined; +"aria-checked"?: boolean | "mixed" | "false" | "true" | undefined; +"aria-colcount"?: number | undefined; +"aria-colindex"?: number | undefined; +"aria-colindextext"?: string | undefined; +"aria-colspan"?: number | undefined; +"aria-controls"?: string | undefined; +"aria-current"?: boolean | "page" | "false" | "true" | "step" | "location" | "date" | "time" | undefined; +"aria-describedby"?: string | undefined; +"aria-description"?: string | undefined; +"aria-details"?: string | undefined; +"aria-disabled"?: (boolean | "false" | "true") | undefined; +"aria-dropeffect"?: "none" | "copy" | "move" | "link" | "execute" | "popup" | undefined; +"aria-errormessage"?: string | undefined; +"aria-expanded"?: (boolean | "false" | "true") | undefined; +"aria-flowto"?: string | undefined; +"aria-grabbed"?: (boolean | "false" | "true") | undefined; +"aria-haspopup"?: boolean | "listbox" | "grid" | "menu" | "false" | "true" | "dialog" | "tree" | undefined; +"aria-hidden"?: (boolean | "false" | "true") | undefined; +"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined; +"aria-keyshortcuts"?: string | undefined; +"aria-label"?: string | undefined; +"aria-labelledby"?: string | undefined; +"aria-level"?: number | undefined; +"aria-live"?: "off" | "assertive" | "polite" | undefined; +"aria-modal"?: (boolean | "false" | "true") | undefined; +"aria-multiline"?: (boolean | "false" | "true") | undefined; +"aria-multiselectable"?: (boolean | "false" | "true") | undefined; +"aria-orientation"?: "horizontal" | "vertical" | undefined; +"aria-owns"?: string | undefined; +"aria-placeholder"?: string | undefined; +"aria-posinset"?: number | undefined; +"aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined; +"aria-readonly"?: (boolean | "false" | "true") | undefined; +"aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined; +"aria-required"?: (boolean | "false" | "true") | undefined; +"aria-roledescription"?: string | undefined; +"aria-rowcount"?: number | undefined; +"aria-rowindex"?: number | undefined; +"aria-rowindextext"?: string | undefined; +"aria-rowspan"?: number | undefined; +"aria-selected"?: (boolean | "false" | "true") | undefined; +"aria-setsize"?: number | undefined; +"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined; +"aria-valuemax"?: number | undefined; +"aria-valuemin"?: number | undefined; +"aria-valuenow"?: number | undefined; +"aria-valuetext"?: string | undefined; dangerouslySetInnerHTML?: { __html: string | TrustedHTML; } | undefined; @@ -1478,7 +1485,7 @@ export type EmptyStateContainerProps = ComponentClassNameProps & PropsWithChildr }>; // @public (undocumented) -export const ErrorList: MemoExoticComponent<({ errors }: ErrorListProps) => JSX.Element | null>; +export const ErrorList: MemoExoticComponent<({ errors }: ErrorListProps) => JSX_2.Element | null>; // @public (undocumented) export interface ErrorListProps { @@ -1490,7 +1497,7 @@ export interface ErrorListProps { export type ErrorType = Error | unknown; // @public -export const FieldContainer: MemoExoticComponent<({ children, className: classNameProp, componentClassName, description, errors, display, footer, evenly, gap, horizontal, label, labelDescription, labelPosition, required, reverse, size, style, useLabelElement, ...props }: FieldContainerProps) => JSX.Element>; +export const FieldContainer: MemoExoticComponent<({ children, className: classNameProp, componentClassName, description, errors, display, footer, evenly, gap, horizontal, label, labelDescription, labelPosition, required, reverse, size, style, useLabelElement, ...props }: FieldContainerProps) => JSX_2.Element>; // @public (undocumented) export type FieldContainerLabelPosition = 'bottom' | 'left' | 'right' | 'top'; @@ -1748,7 +1755,7 @@ export const isSpecialLinkClick: (e: MouseEvent) => boolean; export type Justification = Default | 'justifyStart' | 'justifyCenter' | 'justifyEnd'; // @public (undocumented) -export const Label: MemoExoticComponent<({ className, isDisabled, isActive, isFocused, isHover, children, size, weight, }: LabelProps) => JSX.Element>; +export const Label: MemoExoticComponent<({ className, isDisabled, isActive, isFocused, isHover, children, size, weight, }: LabelProps) => JSX_2.Element>; // @public (undocumented) export interface LabelOwnProps { @@ -1772,10 +1779,10 @@ export interface LabelOwnProps { export type LabelProps = LabelOwnProps & HTMLSpanElementProps; // @public @deprecated -export const Layout: MemoExoticComponent<({ className, children, sidebarHeader, sidebarFooter, switchers, navigation, scheme, theme, themeContent, themeControls, pageScheme, pageTheme, pageThemeContent, pageThemeControls, titleScheme, titleTheme, titleThemeContent, titleThemeControls, }: LayoutProps) => JSX.Element>; +export const Layout: MemoExoticComponent<({ className, children, sidebarHeader, sidebarFooter, switchers, navigation, scheme, theme, themeContent, themeControls, pageScheme, pageTheme, pageThemeContent, pageThemeControls, titleScheme, titleTheme, titleThemeContent, titleThemeControls, }: LayoutProps) => JSX_2.Element>; // @public @deprecated (undocumented) -export const LayoutChrome: MemoExoticComponent<({ children, navigation, pageScheme, pageTheme, pageThemeContent, pageThemeControls, scheme, sidebarFooter, sidebarHeader, switchers, theme, themeContent, themeControls, titleScheme, titleTheme, titleThemeContent, titleThemeControls, }: LayoutChromeProps) => JSX.Element>; +export const LayoutChrome: MemoExoticComponent<({ children, navigation, pageScheme, pageTheme, pageThemeContent, pageThemeControls, scheme, sidebarFooter, sidebarHeader, switchers, theme, themeContent, themeControls, titleScheme, titleTheme, titleThemeContent, titleThemeControls, }: LayoutChromeProps) => JSX_2.Element>; // @public (undocumented) export interface LayoutChromeProps extends ThemeScheme { @@ -1808,13 +1815,13 @@ export interface LayoutChromeProps extends ThemeScheme { } // @public @deprecated (undocumented) -export const LayoutPage: MemoExoticComponent<({ actions, afterTitle, children, fit, navigation, pageContentLayout, side, title, ...props }: LayoutPageProps) => JSX.Element>; +export const LayoutPage: MemoExoticComponent<({ actions, afterTitle, children, fit, navigation, pageContentLayout, side, title, ...props }: LayoutPageProps) => JSX_2.Element>; // @public @deprecated (undocumented) -export const LayoutPageAside: MemoExoticComponent<({ children }: HTMLDivElementProps) => JSX.Element>; +export const LayoutPageAside: MemoExoticComponent<({ children }: HTMLDivElementProps) => JSX_2.Element>; // @public @deprecated (undocumented) -export const LayoutPageContent: MemoExoticComponent<({ children, layout, pageContentLayout }: LayoutPageContentProps) => JSX.Element>; +export const LayoutPageContent: MemoExoticComponent<({ children, layout, pageContentLayout }: LayoutPageContentProps) => JSX_2.Element>; // @public (undocumented) export type LayoutPageContentProps = { @@ -1839,7 +1846,7 @@ export interface LayoutPageProps extends Omit JSX.Element>; +export const LayoutPageStickyContainer: MemoExoticComponent<({ bottom, className: classNameProp, children, left, right, style: styleProp, top, ...rest }: LayoutPageStickyContainerProps) => JSX_2.Element>; // @public (undocumented) export type LayoutPageStickyContainerProps = { @@ -1873,7 +1880,7 @@ export interface LinkCompatibleProps { } // @public @deprecated (undocumented) -export function Logo({ children, image, size }: LogoProps): JSX.Element; +export function Logo({ children, image, size }: LogoProps): JSX_2.Element; // @public (undocumented) export namespace Logo { @@ -1882,7 +1889,7 @@ export namespace Logo { } // @public @deprecated (undocumented) -export const LogoLabel: MemoExoticComponent<({ className, children, size }: LogoLabelProps) => JSX.Element>; +export const LogoLabel: MemoExoticComponent<({ className, children, size }: LogoLabelProps) => JSX_2.Element>; // @public (undocumented) export interface LogoLabelProps { @@ -1905,7 +1912,7 @@ export interface LogoProps { } // @public @deprecated (undocumented) -export const LogoSymbol: MemoExoticComponent<({ className, children, size }: LogoSymbolProps) => JSX.Element>; +export const LogoSymbol: MemoExoticComponent<({ className, children, size }: LogoSymbolProps) => JSX_2.Element>; // @public (undocumented) export interface LogoSymbolProps { @@ -1949,7 +1956,7 @@ export interface MenuItemPropsTitleRequired { } // @public (undocumented) -export function MenuLink({ active, className: classNameProp, componentClassName, disabled, children, external, href, icon, onClick: onClickProp, ...rest }: MenuLinkProps): JSX.Element; +export function MenuLink({ active, className: classNameProp, componentClassName, disabled, children, external, href, icon, onClick: onClickProp, ...rest }: MenuLinkProps): JSX_2.Element; // @public (undocumented) export type MenuLinkProps = HTMLAnchorElementProps & ComponentClassNameProps & { @@ -1972,7 +1979,7 @@ export type MenuProps = HTMLDivElementProps & { }; // @public -export const Message: MemoExoticComponent<({ action, background, borderRadius, children, className, display, elevated, icon, important, intent, padding, size, textAlign, ...props }: MessageProps) => JSX.Element>; +export const Message: MemoExoticComponent<({ action, background, borderRadius, children, className, display, elevated, icon, important, intent, padding, size, textAlign, ...props }: MessageProps) => JSX_2.Element>; // @public @deprecated (undocumented) export type MessageDistinction = Default | 'striking'; @@ -2027,7 +2034,7 @@ export const MonthInputStringRegExp: RegExp; export function MouseMoveProvider({ elementRef, children, }: { elementRef: RefObject; children?: ReactNode; -}): JSX.Element; +}): JSX_2.Element; // @public (undocumented) export type NavigationContext = (to: T) => NavigationLinkProps; @@ -2077,7 +2084,7 @@ export type OwnVisuallyHiddenProps = PropsWithChildren<{ }>; // @public @deprecated (undocumented) -export const PageLayoutContent: MemoExoticComponent<({ children, layout, pageContentLayout }: LayoutPageContentProps) => JSX.Element>; +export const PageLayoutContent: MemoExoticComponent<({ children, layout, pageContentLayout }: LayoutPageContentProps) => JSX_2.Element>; // @public (undocumented) export interface ParsedStackFrame { @@ -2117,7 +2124,7 @@ export interface PortalProps { } // @public -export const PortalProvider: MemoExoticComponent<(props: PortalProviderProps) => JSX.Element>; +export const PortalProvider: MemoExoticComponent<(props: PortalProviderProps) => JSX_2.Element>; // @public (undocumented) export const PortalProviderContext: Context>; @@ -2157,7 +2164,7 @@ export interface ProcessedError { } // @public (undocumented) -export const ProgressBar: MemoExoticComponent<({ progress }: ProgressBarProps) => JSX.Element>; +export const ProgressBar: MemoExoticComponent<({ progress }: ProgressBarProps) => JSX_2.Element>; // @public (undocumented) export interface ProgressBarProps { @@ -2166,7 +2173,7 @@ export interface ProgressBarProps { } // @public (undocumented) -export const Providers: ({ children, portalProviderProps, styleProviderProps, }: ProvidersProps) => JSX.Element; +export const Providers: ({ children, portalProviderProps, styleProviderProps, }: ProvidersProps) => JSX_2.Element; // @public (undocumented) export type ProvidersProps = { @@ -2181,7 +2188,7 @@ export type PublicCommonReactSelectStylesProps = { }; // @public (undocumented) -export const Radio: MemoExoticComponent<(props: RadioProps) => JSX.Element>; +export const Radio: MemoExoticComponent<(props: RadioProps) => JSX_2.Element>; // @public (undocumented) export interface RadioButtonProps { @@ -2254,10 +2261,10 @@ export interface RenderDialogContentProps { } // @public (undocumented) -export const RepeaterItemContainer: MemoExoticComponent & RepeaterItemContainerOwnProps & RefAttributes>>; +export const RepeaterItemContainer: MemoExoticComponent & RepeaterItemContainerOwnProps & RefAttributes>>; // @public (undocumented) -export const RepeaterItemContainerHeader: MemoExoticComponent<({ label, actions, index }: RepeaterItemContainerHeaderProps) => JSX.Element>; +export const RepeaterItemContainerHeader: MemoExoticComponent<({ label, actions, index }: RepeaterItemContainerHeaderProps) => JSX_2.Element>; // @public (undocumented) export type RepeaterItemContainerHeaderProps = { @@ -2343,7 +2350,7 @@ export interface SectionTabProps { } // @public (undocumented) -export const SectionTabs: MemoExoticComponent<() => JSX.Element | null>; +export const SectionTabs: MemoExoticComponent<() => JSX_2.Element | null>; // @public (undocumented) export interface SectionTabsMap { @@ -2358,7 +2365,7 @@ export interface SectionTabsProps { } // @public (undocumented) -export const SectionTabsProvider: MemoExoticComponent<({ children }: SectionTabsProps) => JSX.Element>; +export const SectionTabsProvider: MemoExoticComponent<({ children }: SectionTabsProps) => JSX_2.Element>; // @public (undocumented) export type SectionTabsRegistrationContextType = [ @@ -2368,7 +2375,7 @@ export type SectionTabsRegistrationContextType = [ // @public (undocumented) export const Select: ((props: Omit, "style" | "type" | keyof ControlConstraintProps> & { - options: SelectOption>[]; + options: SelectOption>[]; isSearchable?: ComponentProps['isSearchable']; styles?: StylesConfig | undefined; } & RefAttributes>) => ReactElement | null) & { @@ -2376,10 +2383,10 @@ export const Select: ((props: Omit, " }; // @public (undocumented) -export const SelectComponent: ({ active, className: outerClassName, defaultValue: defaultValueProp, disabled, distinction, focused, hovered, id, intent, isSearchable, loading, name, notNull, onBlur, onChange, onFocus, onFocusChange, onValidationStateChange, options, placeholder, readOnly, required, scheme, size, styles, validationState, value: valueProp, ...outerProps }: SelectProps, forwardedRef: ForwardedRef>) => JSX.Element; +export const SelectComponent: ({ active, className: outerClassName, defaultValue: defaultValueProp, disabled, distinction, focused, hovered, id, intent, isSearchable, loading, name, notNull, onBlur, onChange, onFocus, onFocusChange, onValidationStateChange, options, placeholder, readOnly, required, scheme, size, styles, validationState, value: valueProp, ...outerProps }: SelectProps, forwardedRef: ForwardedRef>) => JSX_2.Element; // @public (undocumented) -export const SelectCreateNewWrapper: ({ onClick, children }: SelectCreateNewWrapperProps) => JSX.Element; +export const SelectCreateNewWrapper: ({ onClick, children }: SelectCreateNewWrapperProps) => JSX_2.Element; // @public (undocumented) export interface SelectCreateNewWrapperProps { @@ -2436,7 +2443,7 @@ export type SlugInputProps = TextInputProps & { }; // @public (undocumented) -export const Spacer: MemoExoticComponent<({ className, componentClassName, gap, grow, shrink, ...rest }: SpacerProps) => JSX.Element>; +export const Spacer: MemoExoticComponent<({ className, componentClassName, gap, grow, shrink, ...rest }: SpacerProps) => JSX_2.Element>; // @public (undocumented) export interface SpacerOwnProps extends ComponentClassNameProps { @@ -2452,10 +2459,10 @@ export interface SpacerOwnProps extends ComponentClassNameProps { export type SpacerProps = Omit & SpacerOwnProps; // @public (undocumented) -export const Spinner: MemoExoticComponent<() => JSX.Element>; +export const Spinner: MemoExoticComponent<() => JSX_2.Element>; // @public -export const SpinnerContainer: MemoExoticComponent<({ enabled, children, size }: SpinnerContainerProps) => JSX.Element>; +export const SpinnerContainer: MemoExoticComponent<({ enabled, children, size }: SpinnerContainerProps) => JSX_2.Element>; // @public (undocumented) export interface SpinnerContainerProps extends SpinnerOverlayProps { @@ -2466,7 +2473,7 @@ export interface SpinnerContainerProps extends SpinnerOverlayProps { } // @public -export const SpinnerOverlay: MemoExoticComponent<({ size }: SpinnerOverlayProps) => JSX.Element>; +export const SpinnerOverlay: MemoExoticComponent<({ size }: SpinnerOverlayProps) => JSX_2.Element>; // @public (undocumented) export type SpinnerOverlayProps = ComponentClassNameProps & { @@ -2512,7 +2519,7 @@ export type StackProps = Omit & StackO // @public (undocumented) export const StyleProvider: { - ({ children, ...props }: PropsWithChildren): JSX.Element; + ({ children, ...props }: PropsWithChildren): JSX_2.Element; displayName: string; }; @@ -2561,10 +2568,10 @@ export interface TabItem { } // @public (undocumented) -export const Table: MemoExoticComponent<({ bare, className: classNameProp, ...props }: TableProps) => JSX.Element>; +export const Table: MemoExoticComponent<({ bare, className: classNameProp, ...props }: TableProps) => JSX_2.Element>; // @public (undocumented) -export const TableCell: MemoExoticComponent<({ shrunk, numeric, ...props }: TableCellProps) => JSX.Element>; +export const TableCell: MemoExoticComponent<({ shrunk, numeric, ...props }: TableCellProps) => JSX_2.Element>; // @public (undocumented) export interface TableCellProps { @@ -2586,7 +2593,7 @@ export interface TableCellProps { export const TableColumnsIcon: LucideIcon; // @public (undocumented) -export const TableHeaderCell: MemoExoticComponent<({ shrunk, ...props }: TableHeaderCellProps) => JSX.Element>; +export const TableHeaderCell: MemoExoticComponent<({ shrunk, ...props }: TableHeaderCellProps) => JSX_2.Element>; // @public (undocumented) export interface TableHeaderCellProps { @@ -2621,7 +2628,7 @@ export interface TableProps { } // @public (undocumented) -export const TableRow: MemoExoticComponent<({ active, children, justification, onClick: onClick }: TableRowProps) => JSX.Element>; +export const TableRow: MemoExoticComponent<({ active, children, justification, onClick: onClick }: TableRowProps) => JSX_2.Element>; // @public (undocumented) export interface TableRowProps { @@ -2746,7 +2753,7 @@ export type TimeInputString = string; export const TimeInputStringRegExp: RegExp; // @public @deprecated (undocumented) -export const TitleBar: MemoExoticComponent<({ after, navigation, children, actions, ...props }: TitleBarProps) => JSX.Element>; +export const TitleBar: MemoExoticComponent<({ after, navigation, children, actions, ...props }: TitleBarProps) => JSX_2.Element>; // @public @deprecated (undocumented) export interface TitleBarProps extends ThemeScheme { @@ -2874,7 +2881,7 @@ export function Trio({ className, column, start, center, end, clickThroughSpace, center?: ReactNode; end?: ReactNode; clickThroughSpace?: boolean; -}): JSX.Element | null; +}): JSX_2.Element | null; // @public (undocumented) export namespace Trio { @@ -3015,7 +3022,7 @@ export type VisuallyDependentControlProps = ControlStateProps & ControlDisplayPr export const VisuallyHidden: VisuallyHiddenComponentType; // @public (undocumented) -export type VisuallyHiddenComponentType = ((props: VisuallyHiddenProps) => React.ReactElement | null) & { +export type VisuallyHiddenComponentType = ((props: VisuallyHiddenProps) => ReactNode) & { displayName?: string | undefined; }; diff --git a/build/api/utilities.api.md b/build/api/utilities.api.md index f6d0e9abde..b8470ad4c1 100644 --- a/build/api/utilities.api.md +++ b/build/api/utilities.api.md @@ -4,23 +4,7 @@ ```ts -import { CamelCase } from 'type-fest'; -import { DelimiterCase } from 'type-fest'; -import { KebabCase } from 'type-fest'; -import { LiteralToPrimitiveDeep } from 'type-fest'; -import { MergeExclusive } from 'type-fest'; -import { Opaque } from 'type-fest'; -import { PascalCase } from 'type-fest'; -import { Replace } from 'type-fest'; -import { Simplify } from 'type-fest'; -import { UnionToIntersection } from 'type-fest'; -import { UnwrapOpaque } from 'type-fest'; - -// @public (undocumented) -export type AnyArray = Array | ReadonlyArray; - -// @public (undocumented) -export type AnyRecord = Record; +import { ReactNode } from 'react'; // @public (undocumented) export type AsProp = { @@ -38,11 +22,6 @@ export class AssertionError extends Error { // @public (undocumented) export function assertNever(_: never): never; -export { CamelCase } - -// @public (undocumented) -export function capitalize(str: string): string; - // @public (undocumented) export type ClassNameStateMap = { [key: string]: string | number | boolean | null | undefined; @@ -51,17 +30,11 @@ export type ClassNameStateMap = { // @internal export const COLOR_SCHEME_CLASS_NAME_REG_EXP: RegExp; -// @public (undocumented) -export type ColorSchemeClassName = KebabCase> = `scheme-${T}`; - // @public -export function colorSchemeClassName = KebabCase>(scheme: S): ColorSchemeClassName; - -// @public (undocumented) -export function colorSchemeClassName = KebabCase>(scheme: null | undefined): undefined; +export function colorSchemeClassName(scheme: string): string; // @public (undocumented) -export function colorSchemeClassName = KebabCase>(scheme: S | null | undefined): ColorSchemeClassName | undefined; +export function colorSchemeClassName(scheme: string | null | undefined): string | undefined; // @public (undocumented) export interface ComponentClassNameProps { @@ -71,11 +44,15 @@ export interface ComponentClassNameProps { componentClassName?: string | string[]; } +// Warning: (ae-unresolved-link) The @link reference could not be resolved: An overload for "colorSchemeClassName" was not found that matches the TSDoc selector ":3" +// // @public -export function contentThemeClassName = KebabCase>(theme: ContentTheme | null | undefined): `theme-${ContentTheme}-content` | undefined; +export function contentThemeClassName(theme: string | null | undefined): string | undefined; +// Warning: (ae-unresolved-link) The @link reference could not be resolved: An overload for "colorSchemeClassName" was not found that matches the TSDoc selector ":3" +// // @public -export function controlsThemeClassName = KebabCase>(theme: ControlsTheme | null | undefined): `theme-${ControlsTheme}-controls` | undefined; +export function controlsThemeClassName(theme: string | null | undefined): string | undefined; // @public (undocumented) export function dataAttribute(value: unknown): string | true | undefined; @@ -88,29 +65,14 @@ export const dateToStringWithoutTimezone: (date: Date, { includeTime }?: { // @public (undocumented) export function deduplicateClassName(classNameArray: string[]): string[]; -// @public (undocumented) -export type DeepPartial = T extends Function ? T : T extends Array ? Array> : T extends object ? { - [Key in keyof T]?: DeepPartial; -} : T | undefined; - -export { DelimiterCase } - // @internal export function deprecate(removal: SemverString, condition: boolean, deprecated: string, replacement: string | null): void; -// @internal (undocumented) -export function extend(base: B, extension: E): B | E | readonly (B & object & any[])[number][] | Readonly<{ - [k: string]: unknown; -}>; - // @public export type ExtendableProps = OverrideProps & Omit; // @public (undocumented) -export function fallback(current: R, condition: boolean, mapped: R): R; - -// @public (undocumented) -export function filterThemedClassName(nestedClassName: NestedClassName, defaultColorSchemeContext: ColorSchemeClassName): string[]; +export function filterThemedClassName(nestedClassName: NestedClassName, defaultColorSchemeContext: string): string[]; // @public (undocumented) export function flatClassNameList(className: NestedClassName): string[]; @@ -121,9 +83,6 @@ export function getElementDimensions(element: HTMLElement): Promise void): void; -// @public (undocumented) -export function getMatchingParentElement(element: HTMLElement | null, predicate: (element: HTMLElement | null) => boolean | Promise): HTMLElement; - // @public (undocumented) export function getSizeFromResizeObserverEntryFactory(box: ResizeObserverOptions['box']): (entry: ResizeObserverEntry) => { height: number; @@ -133,100 +92,19 @@ export function getSizeFromResizeObserverEntryFactory(box: ResizeObserverOptions // @public export type InheritableElementProps = ExtendableProps, Props>; -// @public (undocumented) -export function isArrayOfMembersSatisfyingFactory(predicate: (value: unknown) => value is T): (value: unknown) => value is Array; - -// @public (undocumented) -export function isBoolean(value: unknown): value is boolean; - // @internal -export function isColorSchemeClassName(value: string): value is ColorSchemeClassName; - -// @public (undocumented) -export function isDefined(value: unknown): value is Exclude; - -// @public (undocumented) -export function isFalse(value: unknown): value is false; - -// @public (undocumented) -export function isHTMLElement(value: unknown): value is HTMLElement; - -// @public (undocumented) -export function isNonEmptyArray(value: unknown): value is [T, ...T[]]; - -// @public (undocumented) -export function isNonEmptyString(value: unknown): value is string; - -// @public (undocumented) -export const isNonEmptyTrimmedEndString: (value: unknown) => value is string; - -// @public (undocumented) -export const isNonEmptyTrimmedStartString: (value: unknown) => value is string; - -// @public (undocumented) -export const isNonEmptyTrimmedString: (value: unknown) => value is string; +export function isColorSchemeClassName(value: string): boolean; // @public (undocumented) export function isNonNegativeNumber(value: unknown): value is number; -// @public (undocumented) -export function isNotNull(value: unknown): value is T; - -// @public (undocumented) -export function isNotNullish(value: T): value is Exclude; - -// @public (undocumented) -export function isNull(value: unknown): value is null; - -// @public (undocumented) -export function isNumber(value: unknown): value is number; - -// @public (undocumented) -export function isNumericString(value: string): value is string; - -// @public (undocumented) -export function isObject(value: unknown): value is Object; - -// @public (undocumented) -export function isOneOfFactory(members: T extends Array | ReadonlyArray ? T : never): (value: unknown) => value is U; - -// @public (undocumented) -export function isPlainObject>(value: unknown): value is T; - -// @public -export function isScrollable(element: HTMLElement | null): boolean; - -// @public (undocumented) -export function isSingleWordString(value: unknown): value is string; - -// @public (undocumented) -export function isSlugString(value: unknown): value is SlugString; - -// @public (undocumented) -export function isString(value: unknown): value is string; - -// @public (undocumented) -export function isTrue(value: unknown): value is true; - -// @public (undocumented) -export function isUndefined(value: unknown): value is undefined; - -export { KebabCase } - -// @public (undocumented) -export type KeyofBase = keyof any; - // @public export function listClassName(list: NestedClassName): string; -export { LiteralToPrimitiveDeep } - -export { MergeExclusive } - // Warning: (ae-forgotten-export) The symbol "NarrowRaw" needs to be exported by the entry point index.d.ts // // @public (undocumented) -export type Narrow = Try>; +export type Narrow = A extends [] ? A : NarrowRaw; // @public export type Narrowable = string | number | bigint | boolean; @@ -234,43 +112,19 @@ export type Narrowable = string | number | bigint | boolean; // @public (undocumented) export type NestedClassName = string | false | null | undefined | (string | false | null | undefined)[] | NestedClassName[]; -// @public (undocumented) -export type NonNullableRequired = { - [P in keyof T]-?: NonNullable; -}; - // @public export type NonOptional = { [P in keyof Required]: Pick extends Required> ? T[P] : (T[P] | undefined); }; -// @public (undocumented) -export type ObjectKeyValue = T extends { - [P in K]: T[P]; -} ? T[K] : never; - // @public (undocumented) export function omit(object: T, properties: ReadonlyArray, strict?: boolean): Omit; -export { Opaque } - -// @public -export function parseTransformMatrix(transform?: string): { - scaleX: number; - skewY: number; - skewX: number; - scaleY: number; - translateX: number; - translateY: number; -} | undefined; - -export { PascalCase } - // @public (undocumented) export function pick(object: T, properties: ReadonlyArray): Pick; // @public -export type PolymorphicComponent = ((props: PolymorphicComponentPropsWithRef) => React.ReactElement | null) & { +export type PolymorphicComponent = ((props: PolymorphicComponentPropsWithRef) => ReactNode) & { displayName?: string | undefined; }; @@ -288,40 +142,15 @@ export type PolymorphicRef = React.ComponentPropsWi // @public (undocumented) export type Predicate = (value: T) => value is U; -// @public (undocumented) -export type Primitive = string | number | boolean | null | undefined; - // @public (undocumented) export type PropsOf> = JSX.LibraryManagedAttributes>; -// @public (undocumented) -export function px(value: V): `${V}px`; - -// @public (undocumented) -export function px(value: V): ''; - -// @public (undocumented) -export function px(value: V): ''; - -// @public (undocumented) -export function px(value: V): ''; - -// @public (undocumented) +// @public export function px(value?: V): string; // @public export function range(start: number, end: number, step?: number): number[]; -export { Replace } - -// @public (undocumented) -export type RequiredDeepPlainObject> = RequiredDeepPlainObject>, K extends keyof T & string = keyof T & string> = { - [P in K]-?: T[P] extends Record ? RequiredDeepPlainObject : T[P]; -}; - -// @public (undocumented) -export function satisfiesOneOfFactory>>(...predicates: T): Predicate>; - // @public (undocumented) export type SemverString = `${number}.${number}.${number}`; @@ -333,25 +162,6 @@ export const shouldCancelStart: (event: { target?: unknown; }) => boolean; -export { Simplify } - -// @public (undocumented) -export type SlugString = Opaque; - -// Warning: (tsdoc-param-tag-with-invalid-name) The @param block should be followed by a valid parameter name: The identifier cannot non-word characters -// Warning: (tsdoc-param-tag-with-invalid-name) The @param block should be followed by a valid parameter name: The identifier cannot non-word characters -// -// @public -export function stateClassName(state?: ClassNameStateMap | null, { glue, removeFalsy }?: StateClassNameOptions): string[]; - -// @public (undocumented) -export interface StateClassNameOptions { - // (undocumented) - glue?: string; - // (undocumented) - removeFalsy?: boolean; -} - // @public (undocumented) export function stateDataAttributes(state: Record): { [k: string]: string | true | undefined; @@ -373,8 +183,10 @@ export function svgSizeProps(width: number, height?: number, crop?: number): Svg // @internal export const THEME_CLASS_NAME_REG_EXP: RegExp; +// Warning: (ae-unresolved-link) The @link reference could not be resolved: An overload for "colorSchemeClassName" was not found that matches the TSDoc selector ":3" +// // @public -export function themeClassName = KebabCase>(theme: Theme | null | undefined): readonly [`theme-${Theme}-content` | undefined, `theme-${Theme}-controls` | undefined]; +export function themeClassName(theme: string | null | undefined): readonly [string | undefined, string | undefined]; // @public (undocumented) export type ThemeConfig = { @@ -382,31 +194,12 @@ export type ThemeConfig = { controls: string | undefined; }; -// @public (undocumented) -export type ThemeContentClassName = KebabCase> = `theme-${T}-content`; - -// @public (undocumented) -export type ThemeControlsClassName = KebabCase> = `theme-${T}-controls`; - // @public (undocumented) export function toKebabCase(value: string): string; -// @public -export function trimString(value: string, characters: string): string; - -// @public (undocumented) -export type Try = A1 extends A2 ? A1 : Catch; - -// @public (undocumented) -export type TypeofStringLiteral = string extends T ? never : T; - // @public (undocumented) export type UnionOfPredicateTypes = T extends Array<(value: any) => value is infer U> ? U : never; -export { UnionToIntersection } - -export { UnwrapOpaque } - // (No @packageDocumentation comment for this package) ```