@ostack.tech/ui-kform 0.15.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/dist/chunks/en-CaLvO1z0.js +133 -0
  2. package/dist/chunks/en-CaLvO1z0.js.map +1 -0
  3. package/dist/locales/en-GB.js +10 -8
  4. package/dist/locales/en-GB.js.map +1 -1
  5. package/dist/locales/en-US.js +10 -8
  6. package/dist/locales/en-US.js.map +1 -1
  7. package/dist/locales/fr-FR.js +133 -145
  8. package/dist/locales/fr-FR.js.map +1 -1
  9. package/dist/locales/pt-PT.js +133 -145
  10. package/dist/locales/pt-PT.js.map +1 -1
  11. package/dist/ostack-ui-kform.js +5559 -7867
  12. package/dist/ostack-ui-kform.js.map +1 -1
  13. package/dist/types/components/Annexes/Annex.d.ts +5 -5
  14. package/dist/types/components/Annexes/AnnexRegistrar.d.ts +1 -1
  15. package/dist/types/components/Annexes/AnnexTab.d.ts +2 -2
  16. package/dist/types/components/Annexes/Annexes.d.ts +4 -4
  17. package/dist/types/components/Annexes/AnnexesContext.d.ts +5 -5
  18. package/dist/types/components/Annexes/AnnexesManager.d.ts +3 -3
  19. package/dist/types/components/Annexes/AnnexesMenu.d.ts +4 -4
  20. package/dist/types/components/Annexes/AnnexesTabList.d.ts +3 -3
  21. package/dist/types/components/Annexes/RepetitiveAnnexRegistrar.d.ts +2 -2
  22. package/dist/types/components/Annexes/index.d.ts +5 -5
  23. package/dist/types/components/CheckboxControl/CheckboxControl.d.ts +6 -6
  24. package/dist/types/components/CheckboxControl/index.d.ts +1 -1
  25. package/dist/types/components/CheckboxGroupControl/CheckboxGroupControl.d.ts +6 -6
  26. package/dist/types/components/CheckboxGroupControl/index.d.ts +1 -1
  27. package/dist/types/components/ControlField/ControlField.d.ts +4 -4
  28. package/dist/types/components/ControlField/ControlFieldContext.d.ts +4 -4
  29. package/dist/types/components/ControlField/index.d.ts +2 -2
  30. package/dist/types/components/DateControl/DateControl.d.ts +6 -6
  31. package/dist/types/components/DateControl/index.d.ts +1 -1
  32. package/dist/types/components/DateRangeControl/DateRangeControl.d.ts +6 -6
  33. package/dist/types/components/DateRangeControl/index.d.ts +1 -1
  34. package/dist/types/components/FileControl/FileControl.d.ts +6 -6
  35. package/dist/types/components/FileControl/index.d.ts +1 -1
  36. package/dist/types/components/FormApp/FormApp.d.ts +9 -9
  37. package/dist/types/components/FormApp/FormAppContext.d.ts +7 -7
  38. package/dist/types/components/FormApp/FormAppElement.d.ts +3 -3
  39. package/dist/types/components/FormApp/FormAppIssueMessages.d.ts +3 -3
  40. package/dist/types/components/FormApp/FormAppStatus.d.ts +2 -2
  41. package/dist/types/components/FormApp/index.d.ts +4 -4
  42. package/dist/types/components/FormPages/FormPage.d.ts +6 -6
  43. package/dist/types/components/FormPages/FormPageHeader.d.ts +3 -3
  44. package/dist/types/components/FormPages/FormPageRegistrar.d.ts +1 -1
  45. package/dist/types/components/FormPages/FormPageSidebarItem.d.ts +2 -2
  46. package/dist/types/components/FormPages/FormPages.d.ts +3 -3
  47. package/dist/types/components/FormPages/FormPagesContext.d.ts +5 -5
  48. package/dist/types/components/FormPages/FormPagesNavigation.d.ts +4 -4
  49. package/dist/types/components/FormPages/FormPagesSelect.d.ts +2 -2
  50. package/dist/types/components/FormPages/FormPagesSelectOption.d.ts +2 -2
  51. package/dist/types/components/FormPages/FormPagesSidebar.d.ts +2 -2
  52. package/dist/types/components/FormPages/index.d.ts +4 -4
  53. package/dist/types/components/FormStepper/FormStep.d.ts +6 -6
  54. package/dist/types/components/FormStepper/FormStepButton.d.ts +2 -2
  55. package/dist/types/components/FormStepper/FormStepList.d.ts +3 -3
  56. package/dist/types/components/FormStepper/FormStepRegistrar.d.ts +1 -1
  57. package/dist/types/components/FormStepper/FormStepper.d.ts +4 -4
  58. package/dist/types/components/FormStepper/FormStepperContext.d.ts +5 -5
  59. package/dist/types/components/FormStepper/FormStepperFinishTrigger.d.ts +1 -1
  60. package/dist/types/components/FormStepper/FormStepperNextTrigger.d.ts +1 -1
  61. package/dist/types/components/FormStepper/FormStepperPreviousTrigger.d.ts +1 -1
  62. package/dist/types/components/FormStepper/FormStepperState.d.ts +1 -1
  63. package/dist/types/components/FormStepper/index.d.ts +7 -7
  64. package/dist/types/components/IssueMessage/IssueMessage.d.ts +4 -4
  65. package/dist/types/components/IssueMessage/index.d.ts +1 -1
  66. package/dist/types/components/IssueMessages/IssueMessages.d.ts +4 -4
  67. package/dist/types/components/IssueMessages/index.d.ts +1 -1
  68. package/dist/types/components/IssuesAlert/IssuesAlert.d.ts +4 -4
  69. package/dist/types/components/IssuesAlert/index.d.ts +1 -1
  70. package/dist/types/components/IssuesPanel/IssuesPanel.d.ts +4 -4
  71. package/dist/types/components/IssuesPanel/IssuesPanelControls.d.ts +5 -5
  72. package/dist/types/components/IssuesPanel/IssuesPanelMessagesCard.d.ts +6 -6
  73. package/dist/types/components/IssuesPanel/IssuesPanelSummaryCard.d.ts +5 -5
  74. package/dist/types/components/IssuesPanel/index.d.ts +1 -1
  75. package/dist/types/components/IssuesPopover/IssuesPopover.d.ts +4 -4
  76. package/dist/types/components/IssuesPopover/index.d.ts +1 -1
  77. package/dist/types/components/LoadAction/LoadAction.d.ts +4 -4
  78. package/dist/types/components/LoadAction/index.d.ts +1 -1
  79. package/dist/types/components/NumericControl/NumericControl.d.ts +6 -6
  80. package/dist/types/components/NumericControl/index.d.ts +1 -1
  81. package/dist/types/components/PathLink/PathLink.d.ts +2 -2
  82. package/dist/types/components/PathLink/index.d.ts +1 -1
  83. package/dist/types/components/PrintAction/PrintAction.d.ts +3 -3
  84. package/dist/types/components/PrintAction/index.d.ts +1 -1
  85. package/dist/types/components/RadioGroupControl/RadioGroupControl.d.ts +6 -6
  86. package/dist/types/components/RadioGroupControl/index.d.ts +1 -1
  87. package/dist/types/components/SaveAction/SaveAction.d.ts +4 -4
  88. package/dist/types/components/SaveAction/index.d.ts +1 -1
  89. package/dist/types/components/SelectControl/SelectControl.d.ts +7 -7
  90. package/dist/types/components/SelectControl/index.d.ts +1 -1
  91. package/dist/types/components/SelectMultipleControl/SelectMultipleControl.d.ts +7 -7
  92. package/dist/types/components/SelectMultipleControl/index.d.ts +1 -1
  93. package/dist/types/components/SubmitAction/SubmitAction.d.ts +5 -5
  94. package/dist/types/components/SubmitAction/index.d.ts +1 -1
  95. package/dist/types/components/TableControl/TableControl.d.ts +8 -8
  96. package/dist/types/components/TableControl/TableControlAddRowTrigger.d.ts +3 -3
  97. package/dist/types/components/TableControl/TableControlApi.d.ts +4 -4
  98. package/dist/types/components/TableControl/TableControlCell.d.ts +3 -3
  99. package/dist/types/components/TableControl/TableControlColumn.d.ts +4 -4
  100. package/dist/types/components/TableControl/TableControlContent.d.ts +3 -3
  101. package/dist/types/components/TableControl/TableControlContext.d.ts +7 -7
  102. package/dist/types/components/TableControl/TableControlPagination.d.ts +1 -1
  103. package/dist/types/components/TableControl/TableControlRemoveRowTrigger.d.ts +3 -3
  104. package/dist/types/components/TableControl/TableControlRow.d.ts +3 -3
  105. package/dist/types/components/TableControl/TableControlRowsPerPage.d.ts +1 -1
  106. package/dist/types/components/TableControl/index.d.ts +8 -8
  107. package/dist/types/components/TextControl/TextControl.d.ts +6 -6
  108. package/dist/types/components/TextControl/index.d.ts +1 -1
  109. package/dist/types/components/TopBar/TopBar.d.ts +2 -2
  110. package/dist/types/components/TopBar/TopBarActions.d.ts +3 -3
  111. package/dist/types/components/TopBar/TopBarContext.d.ts +1 -1
  112. package/dist/types/components/TopBar/index.d.ts +3 -3
  113. package/dist/types/components/UnknownValue/UnknownValue.d.ts +2 -2
  114. package/dist/types/components/UnknownValue/index.d.ts +1 -1
  115. package/dist/types/components/ValidateAction/ValidateAction.d.ts +3 -3
  116. package/dist/types/components/ValidateAction/index.d.ts +1 -1
  117. package/dist/types/index.d.ts +39 -39
  118. package/dist/types/locales/en-GB.d.ts +1 -1
  119. package/dist/types/locales/en-US.d.ts +1 -1
  120. package/dist/types/locales/en.d.ts +1 -1
  121. package/dist/types/locales/fr-FR.d.ts +1 -1
  122. package/dist/types/locales/index.d.ts +4 -4
  123. package/dist/types/locales/pt-PT.d.ts +1 -1
  124. package/dist/types/providers/ActivePathProvider/ActivePathContext.d.ts +2 -2
  125. package/dist/types/providers/ActivePathProvider/ActivePathProvider.d.ts +3 -3
  126. package/dist/types/providers/ActivePathProvider/index.d.ts +2 -2
  127. package/dist/types/providers/LocalizationProvider/LocalizationContext.d.ts +2 -2
  128. package/dist/types/providers/LocalizationProvider/LocalizationObject.d.ts +20 -20
  129. package/dist/types/providers/LocalizationProvider/LocalizationProvider.d.ts +3 -3
  130. package/dist/types/providers/LocalizationProvider/index.d.ts +4 -4
  131. package/dist/types/providers/LocalizationProvider/useLocale.d.ts +1 -1
  132. package/dist/types/providers/PrefixSuffixProvider/PrefixSuffixContext.d.ts +1 -1
  133. package/dist/types/providers/PrefixSuffixProvider/PrefixSuffixProvider.d.ts +2 -2
  134. package/dist/types/providers/PrefixSuffixProvider/defaultPrefixSuffix.d.ts +1 -1
  135. package/dist/types/providers/PrefixSuffixProvider/index.d.ts +4 -4
  136. package/dist/types/providers/PrefixSuffixProvider/usePrefix.d.ts +1 -1
  137. package/dist/types/utils/dateRestrictions.d.ts +2 -2
  138. package/dist/types/utils/displayStatusConversions.d.ts +2 -2
  139. package/dist/types/utils/mostSpecificPath.d.ts +1 -1
  140. package/dist/types/utils/options.d.ts +2 -2
  141. package/dist/types/utils/pathSpecificity.d.ts +1 -1
  142. package/dist/types/utils/selectionTransformations.d.ts +4 -4
  143. package/dist/types/utils/useControlAutofocus.d.ts +2 -2
  144. package/dist/types/utils/useControlIssues.d.ts +3 -3
  145. package/dist/types/utils/useFormLoader.d.ts +3 -3
  146. package/dist/types/utils/useFormSaver.d.ts +3 -3
  147. package/dist/types/utils/useRegisterControl.d.ts +3 -3
  148. package/dist/types/utils/useReportValidationFailures.d.ts +1 -1
  149. package/dist/types/utils/useResetOnChange.d.ts +3 -3
  150. package/dist/types/utils/useTemporalStringTransformer.d.ts +3 -3
  151. package/package.json +5 -5
  152. package/dist/chunks/en-Cb79GQnj.js +0 -145
  153. package/dist/chunks/en-Cb79GQnj.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import { ErrorBoundary, TabContent } from '@ostack.tech/ui';
2
- import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode } from 'react';
3
- import { IssueMessagesByCode } from '../IssueMessages';
4
- import { AnnexObject } from './Annexes.tsx';
1
+ import { ErrorBoundary, TabContent } from "@ostack.tech/ui";
2
+ import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactNode } from "react";
3
+ import type { IssueMessagesByCode } from "../IssueMessages";
4
+ import type { AnnexObject } from "./Annexes.tsx";
5
5
  /** Properties of the annex component. */
6
6
  export interface AnnexProps extends AnnexObject, Omit<ComponentPropsWithoutRef<typeof TabContent>, "value" | "title" | "children"> {
7
7
  /** Sets the annex as disabled. */
@@ -43,4 +43,4 @@ export interface AnnexProps extends AnnexObject, Omit<ComponentPropsWithoutRef<t
43
43
  children?: ReactNode;
44
44
  }
45
45
  /** Component containing the content of an annex. */
46
- export declare const Annex: import('react').ForwardRefExoticComponent<AnnexProps & import('react').RefAttributes<HTMLDivElement>>;
46
+ export declare const Annex: import("react").ForwardRefExoticComponent<AnnexProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
- import { ResolvedAnnexObject } from './AnnexesContext.ts';
1
+ import { type ResolvedAnnexObject } from "./AnnexesContext.ts";
2
2
  /** Properties of the `AnnexRegistrar` component. */
3
3
  export interface AnnexRegistrarProps extends ResolvedAnnexObject {
4
4
  index?: number;
@@ -1,5 +1,5 @@
1
- import { AbsolutePath } from '@ostack.tech/kform';
1
+ import type { AbsolutePath } from "@ostack.tech/kform";
2
2
  export interface AnnexTabProps {
3
3
  path: AbsolutePath;
4
4
  }
5
- export declare function AnnexTab({ path }: AnnexTabProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function AnnexTab({ path }: AnnexTabProps): import("react").JSX.Element;
@@ -1,6 +1,6 @@
1
- import { AbsolutePath, Path } from '@ostack.tech/kform';
2
- import { Tabs } from '@ostack.tech/ui';
3
- import { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { type AbsolutePath, Path } from "@ostack.tech/kform";
2
+ import { Tabs } from "@ostack.tech/ui";
3
+ import { type ComponentPropsWithoutRef, type ReactNode } from "react";
4
4
  /** Properties of the annexes component. */
5
5
  export interface AnnexesProps extends Omit<ComponentPropsWithoutRef<typeof Tabs>, "defaultValue" | "value" | "onValueChange" | "showAllTabsWhilePrinting"> {
6
6
  /** Base path for all declared annexes. */
@@ -95,4 +95,4 @@ export interface AnnexObject<T = any> {
95
95
  getValue?: (value: T) => T | null | undefined | Promise<T | null | undefined>;
96
96
  }
97
97
  /** Root component used to render form annexes. */
98
- export declare const Annexes: import('react').ForwardRefExoticComponent<AnnexesProps & import('react').RefAttributes<HTMLDivElement>>;
98
+ export declare const Annexes: import("react").ForwardRefExoticComponent<AnnexesProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,6 @@
1
- import { AbsolutePath, DisplayStatus, FormManager, Path, Schema, SealedValidationIssue, TableRowId } from '@ostack.tech/kform';
2
- import { ReactNode } from 'react';
3
- import { AnnexesProps, AnnexObject } from './Annexes.tsx';
1
+ import { AbsolutePath, type DisplayStatus, type FormManager, type Path, type Schema, type SealedValidationIssue, type TableRowId } from "@ostack.tech/kform";
2
+ import { type ReactNode } from "react";
3
+ import type { AnnexesProps, AnnexObject } from "./Annexes.tsx";
4
4
  /** Value of the annexes' context. */
5
5
  export type AnnexesContextValue = AnnexesStore;
6
6
  /** Resolved annex object. */
@@ -57,7 +57,7 @@ export interface AnnexesActions {
57
57
  /** Annexes' store. */
58
58
  export type AnnexesStore = ReturnType<typeof useCreateAnnexesContext>;
59
59
  /** Annexes' context. */
60
- export declare const AnnexesContext: import('react').Context<(Omit<import('zustand').StoreApi<AnnexesState>, "subscribe"> & {
60
+ export declare const AnnexesContext: import("react").Context<(Omit<import("zustand").StoreApi<AnnexesState>, "subscribe"> & {
61
61
  subscribe: {
62
62
  (listener: (selectedState: AnnexesState, previousSelectedState: AnnexesState) => void): () => void;
63
63
  <U>(selector: (state: AnnexesState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
@@ -73,7 +73,7 @@ export interface UseCreateAnnexesContextOptions extends Pick<AnnexesProps, "defa
73
73
  resolvedAnnexes: ResolvedAnnexObject[];
74
74
  }
75
75
  /** Hook used to create the annexes' context. */
76
- export declare function useCreateAnnexesContext({ formManager, basePath, resolvedAnnexes, defaultActiveAnnex, activeAnnex, onActiveAnnexChange, onAnnexAdd, onAnnexRemove, }: UseCreateAnnexesContextOptions): Omit<import('zustand').StoreApi<AnnexesState>, "subscribe"> & {
76
+ export declare function useCreateAnnexesContext({ formManager, basePath, resolvedAnnexes, defaultActiveAnnex, activeAnnex, onActiveAnnexChange, onAnnexAdd, onAnnexRemove, }: UseCreateAnnexesContextOptions): Omit<import("zustand").StoreApi<AnnexesState>, "subscribe"> & {
77
77
  subscribe: {
78
78
  (listener: (selectedState: AnnexesState, previousSelectedState: AnnexesState) => void): () => void;
79
79
  <U>(selector: (state: AnnexesState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
@@ -1,5 +1,5 @@
1
- import { Button, DropdownMenu, DropdownMenuContent, TabList } from '@ostack.tech/ui';
2
- import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode } from 'react';
1
+ import { type Button, type DropdownMenu, type DropdownMenuContent, type TabList } from "@ostack.tech/ui";
2
+ import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactNode } from "react";
3
3
  /** Properties of the annexes' manager component. */
4
4
  export interface AnnexesManagerProps extends ComponentPropsWithoutRef<"nav"> {
5
5
  /** Text of the menu button. */
@@ -48,4 +48,4 @@ export interface AnnexesManagerProps extends ComponentPropsWithoutRef<"nav"> {
48
48
  * changing, adding, and removing annexes, as well as a list of tabs for each
49
49
  * existing annex.
50
50
  */
51
- export declare const AnnexesManager: import('react').ForwardRefExoticComponent<AnnexesManagerProps & import('react').RefAttributes<HTMLElement>>;
51
+ export declare const AnnexesManager: import("react").ForwardRefExoticComponent<AnnexesManagerProps & import("react").RefAttributes<HTMLElement>>;
@@ -1,10 +1,10 @@
1
- import { Button, DropdownMenu, DropdownMenuContent } from '@ostack.tech/ui';
2
- import { ComponentPropsWithoutRef, ComponentPropsWithRef } from 'react';
3
- import { AnnexesManager } from './AnnexesManager.tsx';
1
+ import { Button, DropdownMenu, DropdownMenuContent } from "@ostack.tech/ui";
2
+ import { type ComponentPropsWithoutRef, type ComponentPropsWithRef } from "react";
3
+ import type { AnnexesManager } from "./AnnexesManager.tsx";
4
4
  /** Properties of the annexes' menu. */
5
5
  export interface AnnexesMenuProps extends Pick<ComponentPropsWithoutRef<typeof AnnexesManager>, "menuButtonText" | "menuButtonLabel" | "addAnnexText" | "removeAnnexButtonLabel" | "removeAnnexKeyboardHint" | "removeAnnexConfirmDialogTitle" | "removeAnnexConfirmDialogMessage" | "removeAnnexConfirmDialogOkText" | "removeAnnexConfirmDialogCancelText">, ComponentPropsWithoutRef<typeof DropdownMenu> {
6
6
  menuTriggerProps?: Omit<ComponentPropsWithRef<typeof Button<"button">>, "icon">;
7
7
  menuContentProps?: ComponentPropsWithRef<typeof DropdownMenuContent>;
8
8
  }
9
9
  /** Component that allows to navigate between, add, and remove annexes. */
10
- export declare function AnnexesMenu({ menuButtonText, menuButtonLabel, addAnnexText, removeAnnexButtonLabel, removeAnnexKeyboardHint, removeAnnexConfirmDialogTitle, removeAnnexConfirmDialogMessage, removeAnnexConfirmDialogOkText, removeAnnexConfirmDialogCancelText, defaultOpen, open: controlledOpen, onOpenChange, menuTriggerProps, menuContentProps, ...otherProps }: AnnexesMenuProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function AnnexesMenu({ menuButtonText, menuButtonLabel, addAnnexText, removeAnnexButtonLabel, removeAnnexKeyboardHint, removeAnnexConfirmDialogTitle, removeAnnexConfirmDialogMessage, removeAnnexConfirmDialogOkText, removeAnnexConfirmDialogCancelText, defaultOpen, open: controlledOpen, onOpenChange, menuTriggerProps, menuContentProps, ...otherProps }: AnnexesMenuProps): import("react").JSX.Element;
@@ -1,8 +1,8 @@
1
- import { TabList } from '@ostack.tech/ui';
2
- import { ComponentPropsWithoutRef } from 'react';
1
+ import { TabList } from "@ostack.tech/ui";
2
+ import { type ComponentPropsWithoutRef } from "react";
3
3
  /** Properties of the annex tab list component. */
4
4
  export interface AnnexTabListProps extends ComponentPropsWithoutRef<typeof TabList> {
5
5
  hideNonActiveOnSmallScreens: boolean;
6
6
  }
7
7
  /** List of annex tabs. */
8
- export declare const AnnexesTabList: import('react').ForwardRefExoticComponent<AnnexTabListProps & import('react').RefAttributes<HTMLDivElement>>;
8
+ export declare const AnnexesTabList: import("react").ForwardRefExoticComponent<AnnexTabListProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,6 @@
1
- import { ResolvedAnnexObject } from './AnnexesContext.ts';
1
+ import { type ResolvedAnnexObject } from "./AnnexesContext.ts";
2
2
  /** Properties of the `RepetitiveAnnexRegistrar` component. */
3
3
  export interface RepetitiveAnnexRegistrarProps extends ResolvedAnnexObject {
4
4
  }
5
5
  /** Component used to register a repetitive form annex. */
6
- export declare function RepetitiveAnnexRegistrar({ path, maxAnnexes, ...annexProps }: RepetitiveAnnexRegistrarProps): import("react/jsx-runtime").JSX.Element[] | undefined;
6
+ export declare function RepetitiveAnnexRegistrar({ path, maxAnnexes, ...annexProps }: RepetitiveAnnexRegistrarProps): import("react").JSX.Element[] | undefined;
@@ -1,5 +1,5 @@
1
- export * from './Annex.tsx';
2
- export * from './Annexes.tsx';
3
- export * from './AnnexesManager.tsx';
4
- export { AnnexRegistrar } from './AnnexRegistrar.tsx';
5
- export { RepetitiveAnnexRegistrar } from './RepetitiveAnnexRegistrar.tsx';
1
+ export * from "./Annex.tsx";
2
+ export * from "./Annexes.tsx";
3
+ export * from "./AnnexesManager.tsx";
4
+ export { AnnexRegistrar } from "./AnnexRegistrar.tsx";
5
+ export { RepetitiveAnnexRegistrar } from "./RepetitiveAnnexRegistrar.tsx";
@@ -1,8 +1,8 @@
1
- import { Path } from '@ostack.tech/kform';
2
- import { InputController, InputOptions } from '@ostack.tech/kform-react';
3
- import { Checkbox, CheckboxChecked } from '@ostack.tech/ui';
4
- import { ComponentPropsWithoutRef, ComponentPropsWithRef, ComponentRef, ReactNode, Ref } from 'react';
5
- import { IssueMessages, IssueMessagesByCode } from '../IssueMessages';
1
+ import type { Path } from "@ostack.tech/kform";
2
+ import { type InputController, type InputOptions } from "@ostack.tech/kform-react";
3
+ import { Checkbox, type CheckboxChecked } from "@ostack.tech/ui";
4
+ import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ComponentRef, type ReactNode, type Ref } from "react";
5
+ import type { IssueMessages, IssueMessagesByCode } from "../IssueMessages";
6
6
  /** Properties of the checkbox control component. */
7
7
  export interface CheckboxControlProps<T extends boolean | null = boolean | null> extends Omit<InputOptions<T, CheckboxChecked, ComponentRef<typeof Checkbox>>, "enabled" | "format" | "parse">, Omit<ComponentPropsWithoutRef<typeof Checkbox>, "defaultChecked" | "checked" | "status" | "validate" | "validationMode"> {
8
8
  /** Path to the value. */
@@ -45,4 +45,4 @@ export interface CheckboxControlProps<T extends boolean | null = boolean | null>
45
45
  * Checkbox control component supporting (possibly nullable) schemas of type
46
46
  * "Boolean". `null` values are represented as an "indeterminate" checkbox.
47
47
  */
48
- export declare const CheckboxControl: import('react').ForwardRefExoticComponent<CheckboxControlProps<boolean | null> & import('react').RefAttributes<HTMLButtonElement>>;
48
+ export declare const CheckboxControl: import("react").ForwardRefExoticComponent<CheckboxControlProps<boolean | null> & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1 +1 @@
1
- export * from './CheckboxControl.tsx';
1
+ export * from "./CheckboxControl.tsx";
@@ -1,8 +1,8 @@
1
- import { Path } from '@ostack.tech/kform';
2
- import { Listable, ListableInputController, ListableInputOptions } from '@ostack.tech/kform-react';
3
- import { Checkbox, CheckboxGroup } from '@ostack.tech/ui';
4
- import { ComponentPropsWithoutRef, ComponentPropsWithRef, ComponentRef, Key, ReactNode, Ref } from 'react';
5
- import { IssueMessages, IssueMessagesByCode } from '../IssueMessages';
1
+ import type { Path } from "@ostack.tech/kform";
2
+ import { type Listable, type ListableInputController, type ListableInputOptions } from "@ostack.tech/kform-react";
3
+ import { Checkbox, CheckboxGroup } from "@ostack.tech/ui";
4
+ import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ComponentRef, type Key, type ReactNode, type Ref } from "react";
5
+ import type { IssueMessages, IssueMessagesByCode } from "../IssueMessages";
6
6
  /** Checkbox in object notation. */
7
7
  export type CheckboxObject<T = unknown> = Omit<ComponentPropsWithRef<typeof Checkbox>, "defaultChecked" | "checked" | "value" | "children"> & {
8
8
  /** Option value. */
@@ -62,4 +62,4 @@ export interface CheckboxGroupControlProps<T = unknown, TListable extends Listab
62
62
  * the control contains no elements. Note, however, that the form may still hold
63
63
  * an empty listable as value if set programmatically.
64
64
  */
65
- export declare const CheckboxGroupControl: import('react').ForwardRefExoticComponent<CheckboxGroupControlProps<unknown, Listable<unknown> | null> & import('react').RefAttributes<HTMLDivElement>>;
65
+ export declare const CheckboxGroupControl: import("react").ForwardRefExoticComponent<CheckboxGroupControlProps<unknown, Listable<unknown> | null> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- export * from './CheckboxGroupControl.tsx';
1
+ export * from "./CheckboxGroupControl.tsx";
@@ -1,6 +1,6 @@
1
- import { Path } from '@ostack.tech/kform';
2
- import { Field } from '@ostack.tech/ui';
3
- import { ComponentPropsWithoutRef } from 'react';
1
+ import { Path } from "@ostack.tech/kform";
2
+ import { Field } from "@ostack.tech/ui";
3
+ import { type ComponentPropsWithoutRef } from "react";
4
4
  /** Properties of the control field component. */
5
5
  export interface ControlFieldProps extends ComponentPropsWithoutRef<typeof Field> {
6
6
  /** Path of the field; inner control paths will be relative to this path. */
@@ -47,4 +47,4 @@ export interface ControlFieldProps extends ComponentPropsWithoutRef<typeof Field
47
47
  * Aria descriptions and error messages are set on the control based on the
48
48
  * provided helper texts or feedbacks.
49
49
  */
50
- export declare const ControlField: import('react').ForwardRefExoticComponent<ControlFieldProps & import('react').RefAttributes<HTMLDivElement>>;
50
+ export declare const ControlField: import("react").ForwardRefExoticComponent<ControlFieldProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,5 @@
1
- import { AbsolutePath, FormManager, Schema, SealedValidationIssue } from '@ostack.tech/kform';
2
- import { Controller } from '@ostack.tech/kform-react';
1
+ import type { AbsolutePath, FormManager, Schema, SealedValidationIssue } from "@ostack.tech/kform";
2
+ import type { Controller } from "@ostack.tech/kform-react";
3
3
  /** Value of the control field context. */
4
4
  export type ControlFieldContextValue = ControlFieldStore;
5
5
  /** State of the control field. */
@@ -17,9 +17,9 @@ export interface ControlState {
17
17
  /** Control field store. */
18
18
  export type ControlFieldStore = ReturnType<typeof useCreateControlFieldContext>;
19
19
  /** Control field context. */
20
- export declare const ControlFieldContext: import('react').Context<import('zustand').StoreApi<ControlFieldState> | null>;
20
+ export declare const ControlFieldContext: import("react").Context<import("zustand").StoreApi<ControlFieldState> | null>;
21
21
  /** Hook which creates the control field context value. */
22
- export declare function useCreateControlFieldContext(): import('zustand').StoreApi<ControlFieldState>;
22
+ export declare function useCreateControlFieldContext(): import("zustand").StoreApi<ControlFieldState>;
23
23
  /** Hook that returns access to the control field's store. */
24
24
  export declare function useControlFieldStore<T>(selector: (state: Partial<ControlFieldState>) => T): T;
25
25
  /** Hook exposing whether a component is being rendered within a control field. */
@@ -1,2 +1,2 @@
1
- export * from './ControlField.tsx';
2
- export { useIsInControlField, useRegisterControllerWithinControlField, } from './ControlFieldContext.ts';
1
+ export * from "./ControlField.tsx";
2
+ export { useIsInControlField, useRegisterControllerWithinControlField, } from "./ControlFieldContext.ts";
@@ -1,8 +1,8 @@
1
- import { Path } from '@ostack.tech/kform';
2
- import { Temporal, TemporalInputController, TemporalInputOptions } from '@ostack.tech/kform-react';
3
- import { DateInput } from '@ostack.tech/ui';
4
- import { ComponentPropsWithoutRef, ComponentPropsWithRef, ComponentRef, ReactNode, Ref } from 'react';
5
- import { IssueMessages, IssueMessagesByCode } from '../IssueMessages';
1
+ import type { Path } from "@ostack.tech/kform";
2
+ import { type Temporal, type TemporalInputController, type TemporalInputOptions } from "@ostack.tech/kform-react";
3
+ import { DateInput } from "@ostack.tech/ui";
4
+ import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ComponentRef, type ReactNode, type Ref } from "react";
5
+ import type { IssueMessages, IssueMessagesByCode } from "../IssueMessages";
6
6
  /** Properties of the date control component. */
7
7
  export interface DateControlProps<T extends Temporal | null = Temporal | null> extends Omit<TemporalInputOptions<T, string, ComponentRef<typeof DateInput>>, "enabled" | "formatFromString" | "parseToString">, Omit<ComponentPropsWithoutRef<typeof DateInput>, "defaultValue" | "value" | "onValueChange" | "status" | "validate" | "validationMode"> {
8
8
  /** Path to the value. */
@@ -42,4 +42,4 @@ export interface DateControlProps<T extends Temporal | null = Temporal | null> e
42
42
  issueMessagesProps?: Omit<ComponentPropsWithRef<typeof IssueMessages>, "path" | "issues" | "messages" | "unwrapped">;
43
43
  }
44
44
  /** Date control component supporting nullable temporal schemas. */
45
- export declare const DateControl: import('react').ForwardRefExoticComponent<DateControlProps<Temporal | null> & import('react').RefAttributes<HTMLInputElement>>;
45
+ export declare const DateControl: import("react").ForwardRefExoticComponent<DateControlProps<Temporal | null> & import("react").RefAttributes<HTMLInputElement>>;
@@ -1 +1 @@
1
- export * from './DateControl.tsx';
1
+ export * from "./DateControl.tsx";
@@ -1,8 +1,8 @@
1
- import { Path } from '@ostack.tech/kform';
2
- import { Temporal, TemporalInputController, TemporalInputOptions } from '@ostack.tech/kform-react';
3
- import { DateRangeInput } from '@ostack.tech/ui';
4
- import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode, Ref } from 'react';
5
- import { IssueMessages, IssueMessagesByCode } from '../IssueMessages';
1
+ import type { Path } from "@ostack.tech/kform";
2
+ import { type Temporal, type TemporalInputController, type TemporalInputOptions } from "@ostack.tech/kform-react";
3
+ import { DateRangeInput } from "@ostack.tech/ui";
4
+ import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactNode, type Ref } from "react";
5
+ import type { IssueMessages, IssueMessagesByCode } from "../IssueMessages";
6
6
  /** Properties of the date-range control component. */
7
7
  export interface DateRangeControlProps<TStart extends Temporal | null = Temporal | null, TEnd extends Temporal | null = TStart> extends Omit<ComponentPropsWithoutRef<typeof DateRangeInput>, "defaultValue" | "value" | "validate" | "validationMode"> {
8
8
  /** Path to the start value. */
@@ -76,4 +76,4 @@ export interface DateRangeControlProps<TStart extends Temporal | null = Temporal
76
76
  onEndTouchedStatusChange?: TemporalInputOptions<TEnd, string>["onTouchedStatusChange"];
77
77
  }
78
78
  /** Date-range control component supporting nullable temporal schemas. */
79
- export declare const DateRangeControl: import('react').ForwardRefExoticComponent<DateRangeControlProps<Temporal | null, Temporal | null> & import('react').RefAttributes<HTMLDivElement>>;
79
+ export declare const DateRangeControl: import("react").ForwardRefExoticComponent<DateRangeControlProps<Temporal | null, Temporal | null> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- export * from './DateRangeControl.tsx';
1
+ export * from "./DateRangeControl.tsx";
@@ -1,8 +1,8 @@
1
- import { File as KFormFile, Path } from '@ostack.tech/kform';
2
- import { FileInputController, FileInputOptions } from '@ostack.tech/kform-react';
3
- import { Input } from '@ostack.tech/ui';
4
- import { ComponentPropsWithoutRef, ComponentPropsWithRef, ComponentRef, ReactNode, Ref } from 'react';
5
- import { IssueMessages, IssueMessagesByCode } from '../IssueMessages';
1
+ import type { File as KFormFile, Path } from "@ostack.tech/kform";
2
+ import { type FileInputController, type FileInputOptions } from "@ostack.tech/kform-react";
3
+ import { Input } from "@ostack.tech/ui";
4
+ import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ComponentRef, type ReactNode, type Ref } from "react";
5
+ import type { IssueMessages, IssueMessagesByCode } from "../IssueMessages";
6
6
  /**
7
7
  * File control's interaction with the selected file:
8
8
  *
@@ -65,4 +65,4 @@ export interface FileControlProps<T extends KFormFile | null = KFormFile | null>
65
65
  issueMessagesProps?: Omit<ComponentPropsWithRef<typeof IssueMessages>, "path" | "issues" | "messages" | "unwrapped">;
66
66
  }
67
67
  /** File control component supporting (possibly nullable) file schemas. */
68
- export declare const FileControl: import('react').ForwardRefExoticComponent<FileControlProps<KFormFile | null> & import('react').RefAttributes<HTMLInputElement>>;
68
+ export declare const FileControl: import("react").ForwardRefExoticComponent<FileControlProps<KFormFile | null> & import("react").RefAttributes<HTMLInputElement>>;
@@ -1 +1 @@
1
- export * from './FileControl.tsx';
1
+ export * from "./FileControl.tsx";
@@ -1,10 +1,10 @@
1
- import { AbsolutePath, Path, Schema, SchemaKt } from '@ostack.tech/kform';
2
- import { Controller, FormOptions } from '@ostack.tech/kform-react';
3
- import { Responsive, Root } from '@ostack.tech/ui';
4
- import { ComponentPropsWithoutRef, ReactNode, Ref } from 'react';
5
- import { OnActivePathChangeNavigationOptions } from '../../providers/ActivePathProvider';
6
- import { LocalizationObject } from '../../providers/LocalizationProvider';
7
- import { IssueMessagesByCode } from '../IssueMessages';
1
+ import { AbsolutePath, type Path, type Schema, type SchemaKt } from "@ostack.tech/kform";
2
+ import { type Controller, type FormOptions } from "@ostack.tech/kform-react";
3
+ import { type Responsive, Root } from "@ostack.tech/ui";
4
+ import { type ComponentPropsWithoutRef, type ReactNode, type Ref } from "react";
5
+ import { type OnActivePathChangeNavigationOptions } from "../../providers/ActivePathProvider";
6
+ import type { LocalizationObject } from "../../providers/LocalizationProvider";
7
+ import type { IssueMessagesByCode } from "../IssueMessages";
8
8
  /** Mode of displaying issue messages. */
9
9
  export type IssuesDisplayMode = "inline" | "panel";
10
10
  /** Properties of the form app component. */
@@ -148,7 +148,7 @@ export type FormAppApi<T = unknown> = Controller<T> & {
148
148
  * ostack/UI's `locale` is automatically provided to the ostack/UI `Root`
149
149
  * component from the provided `FormApp` `locale`.
150
150
  */
151
- export declare const FormApp: import('react').ForwardRefExoticComponent<Pick<Omit<import('@ostack.tech/ui').RootProps & import('react').RefAttributes<HTMLDivElement>, "ref">, "reportError" | "errorReportingUrl" | "errorReportingMethod" | "encodeErrorReport" | "encodedErrorReportMimeType" | "errorReportingOptions" | "baseDocumentTitle" | "enableErrorReporting" | "documentTitleBaseSeparator" | "documentTitleBreadcrumbsSeparator" | "portalsContainer" | "tooltipsDelayDuration" | "tooltipsSkipDelayDuration" | "disableTooltipsHoverableContent" | "toastsLabel" | "toastsDuration" | "toastsSwipeDirection" | "toastsSwipeThreshold" | "toastViewportPosition" | "toastViewportHotkey" | "toastViewportLabel" | "toastViewportProps" | "errorBoundaryProps"> & Omit<import('@ostack.tech/kform-react').ControllerOptions<any, import('@ostack.tech/kform-react').FormControllerState<any>>, "formManager"> & import('@ostack.tech/kform-react').FormOwnOptions<any, unknown> & Omit<Omit<import('react').DetailedHTMLProps<import('react').FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref">, "onReset" | "onSubmit"> & {
151
+ export declare const FormApp: import("react").ForwardRefExoticComponent<Pick<Omit<import("@ostack.tech/ui").RootProps & import("react").RefAttributes<HTMLDivElement>, "ref">, "reportError" | "errorReportingUrl" | "errorReportingMethod" | "encodeErrorReport" | "encodedErrorReportMimeType" | "errorReportingOptions" | "baseDocumentTitle" | "enableErrorReporting" | "documentTitleBaseSeparator" | "documentTitleBreadcrumbsSeparator" | "portalsContainer" | "tooltipsDelayDuration" | "tooltipsSkipDelayDuration" | "disableTooltipsHoverableContent" | "toastsLabel" | "toastsDuration" | "toastsSwipeDirection" | "toastsSwipeThreshold" | "toastViewportPosition" | "toastViewportHotkey" | "toastViewportLabel" | "toastViewportProps" | "errorBoundaryProps"> & Omit<import("@ostack.tech/kform-react").ControllerOptions<any, import("@ostack.tech/kform-react").FormControllerState<any>>, "formManager"> & import("@ostack.tech/kform-react").FormOwnOptions<any, unknown> & Omit<Omit<import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref">, "onReset" | "onSubmit"> & {
152
152
  /** Schema of the form. */
153
153
  schema: SchemaKt | Schema<any>;
154
154
  /** Title of the form. */
@@ -260,4 +260,4 @@ export declare const FormApp: import('react').ForwardRefExoticComponent<Pick<Omi
260
260
  minHeight?: Responsive<number | string>;
261
261
  /** Reference to the form app's API. */
262
262
  apiRef?: Ref<FormAppApi<any> | undefined> | undefined;
263
- } & import('react').RefAttributes<HTMLFormElement>>;
263
+ } & import("react").RefAttributes<HTMLFormElement>>;
@@ -1,8 +1,8 @@
1
- import { AbsolutePath, Path, PathMultimap, PathMultimapEntryId } from '@ostack.tech/kform';
2
- import { Controller } from '@ostack.tech/kform-react';
3
- import { ReactNode } from 'react';
4
- import { IssueMessagesByCode, IssueMessageValue } from '../IssueMessages';
5
- import { IssuesDisplayMode } from './FormApp.tsx';
1
+ import { AbsolutePath, type Path, PathMultimap, type PathMultimapEntryId } from "@ostack.tech/kform";
2
+ import { type Controller } from "@ostack.tech/kform-react";
3
+ import { type ReactNode } from "react";
4
+ import type { IssueMessagesByCode, IssueMessageValue } from "../IssueMessages";
5
+ import type { IssuesDisplayMode } from "./FormApp.tsx";
6
6
  /** Value of the form app context. */
7
7
  export interface FormAppContextValue<T = unknown> {
8
8
  formTitle?: string;
@@ -66,7 +66,7 @@ export interface FormAppActions {
66
66
  /** Form app store. */
67
67
  export type FormAppStore<T> = ReturnType<typeof useCreateFormAppContext<T>>["store"];
68
68
  /** Form app context. */
69
- export declare const FormAppContext: import('react').Context<FormAppContextValue<unknown> | null>;
69
+ export declare const FormAppContext: import("react").Context<FormAppContextValue<unknown> | null>;
70
70
  /** Options used to create the data table context value. */
71
71
  export interface UseCreateFormAppContextOptions<T> extends Omit<FormAppContextValue<T>, "store"> {
72
72
  controller: Controller<T>;
@@ -81,7 +81,7 @@ export declare function useCreateFormAppContext<T>({ formTitle, controller, disa
81
81
  displayIssueCodes: boolean;
82
82
  issueMessagesDataKey: string;
83
83
  formAppElement: HTMLFormElement | null;
84
- store: Omit<import('zustand').StoreApi<FormAppState<T>>, "subscribe"> & {
84
+ store: Omit<import("zustand").StoreApi<FormAppState<T>>, "subscribe"> & {
85
85
  subscribe: {
86
86
  (listener: (selectedState: FormAppState<T>, previousSelectedState: FormAppState<T>) => void): () => void;
87
87
  <U>(selector: (state: FormAppState<T>) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
@@ -1,9 +1,9 @@
1
- import { ComponentPropsWithoutRef, Dispatch, SetStateAction } from 'react';
2
- import { FormAppProps } from './FormApp.tsx';
1
+ import { type ComponentPropsWithoutRef, type Dispatch, type SetStateAction } from "react";
2
+ import type { FormAppProps } from "./FormApp.tsx";
3
3
  /** Properties of the form application element component. */
4
4
  export interface FormAppElementProps extends Omit<ComponentPropsWithoutRef<"form">, "onSubmit" | "onReset">, Pick<FormAppProps, "minHeight"> {
5
5
  formAppElement: HTMLFormElement | null;
6
6
  setFormAppElement: Dispatch<SetStateAction<HTMLFormElement | null>>;
7
7
  }
8
8
  /** Form application element. */
9
- export declare const FormAppElement: import('react').ForwardRefExoticComponent<FormAppElementProps & import('react').RefAttributes<HTMLFormElement>>;
9
+ export declare const FormAppElement: import("react").ForwardRefExoticComponent<FormAppElementProps & import("react").RefAttributes<HTMLFormElement>>;
@@ -1,6 +1,6 @@
1
- import { Path } from '@ostack.tech/kform';
2
- import { ReactNode } from 'react';
3
- import { IssueMessagesByCode } from '../IssueMessages';
1
+ import type { Path } from "@ostack.tech/kform";
2
+ import type { ReactNode } from "react";
3
+ import type { IssueMessagesByCode } from "../IssueMessages";
4
4
  /** Properties of the form app issue messages component. */
5
5
  export interface FormAppIssueMessagesProps {
6
6
  /** Base path for the paths used in `messages`. */
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from "react";
2
2
  /** Properties of the form app status component. */
3
3
  export interface FormAppStatusProps {
4
4
  /**
@@ -20,4 +20,4 @@ export interface FormAppStatusProps {
20
20
  children: ReactNode;
21
21
  }
22
22
  /** Component used to apply a different form app status to part of the form. */
23
- export declare function FormAppStatus({ disabled, readOnly, children, }: FormAppStatusProps): import("react/jsx-runtime").JSX.Element;
23
+ export declare function FormAppStatus({ disabled, readOnly, children, }: FormAppStatusProps): import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- export * from './FormApp.tsx';
2
- export { useActiveIssuesPanelBreadcrumb, useDisplayIssueCodesInIssueMessages, useFocus, useFormAppElement, useFormIsDisabled, useFormIsReadOnly, useFormTitle, useIsRegistered, useIssuesDisplayMode, useOnPathFocus, useRegisterController, useRegisteredIssueMessage, useRegisterIssueMessages, useRegisterLabel, useSetBottomPanelHeight, useSetLeftSidebarWidth, useSetTopBarHeight, useStartIssuesNavigation, } from './FormAppContext.ts';
3
- export * from './FormAppIssueMessages.tsx';
4
- export * from './FormAppStatus.tsx';
1
+ export * from "./FormApp.tsx";
2
+ export { useActiveIssuesPanelBreadcrumb, useDisplayIssueCodesInIssueMessages, useFocus, useFormAppElement, useFormIsDisabled, useFormIsReadOnly, useFormTitle, useIsRegistered, useIssuesDisplayMode, useOnPathFocus, useRegisterController, useRegisteredIssueMessage, useRegisterIssueMessages, useRegisterLabel, useSetBottomPanelHeight, useSetLeftSidebarWidth, useSetTopBarHeight, useStartIssuesNavigation, } from "./FormAppContext.ts";
3
+ export * from "./FormAppIssueMessages.tsx";
4
+ export * from "./FormAppStatus.tsx";
@@ -1,8 +1,8 @@
1
- import { Container, ErrorBoundary, IconButton, Popover, PopoverContent, Stack } from '@ostack.tech/ui';
2
- import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode } from 'react';
3
- import { IssueMessages, IssueMessagesByCode } from '../IssueMessages';
4
- import { IssuesPopover } from '../IssuesPopover';
5
- import { FormPageObject } from './FormPages.tsx';
1
+ import { Container, ErrorBoundary, type IconButton, type Popover, type PopoverContent, type Stack } from "@ostack.tech/ui";
2
+ import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactNode } from "react";
3
+ import type { IssueMessages, IssueMessagesByCode } from "../IssueMessages";
4
+ import type { IssuesPopover } from "../IssuesPopover";
5
+ import type { FormPageObject } from "./FormPages.tsx";
6
6
  /** Properties of the form page component. */
7
7
  export interface FormPageProps extends FormPageObject, Omit<ComponentPropsWithoutRef<"section">, "title" | "children"> {
8
8
  /** Sets the form page as disabled. */
@@ -83,4 +83,4 @@ export interface FormPageProps extends FormPageObject, Omit<ComponentPropsWithou
83
83
  children?: ReactNode;
84
84
  }
85
85
  /** Form page component. */
86
- export declare const FormPage: import('react').ForwardRefExoticComponent<FormPageProps & import('react').RefAttributes<HTMLElement>>;
86
+ export declare const FormPage: import("react").ForwardRefExoticComponent<FormPageProps & import("react").RefAttributes<HTMLElement>>;
@@ -1,7 +1,7 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
- import { FormPageProps } from './FormPage.tsx';
1
+ import { type ComponentPropsWithoutRef } from "react";
2
+ import type { FormPageProps } from "./FormPage.tsx";
3
3
  /** Properties of the form page header. */
4
4
  export interface FormPageHeaderProps extends ComponentPropsWithoutRef<"div">, Pick<FormPageProps, "helperText" | "helperButtonLabel" | "ownIssueMessages" | "codeProps" | "titleProps" | "headerPopoverContainerProps" | "issuesPopoverProps" | "issueMessagesProps" | "helperButtonProps" | "helperPopoverProps" | "helperPopoverContentProps"> {
5
5
  }
6
6
  /** Form page header. */
7
- export declare const FormPageHeader: import('react').ForwardRefExoticComponent<FormPageHeaderProps & import('react').RefAttributes<HTMLDivElement>>;
7
+ export declare const FormPageHeader: import("react").ForwardRefExoticComponent<FormPageHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
- import { ResolvedFormPageObject } from './FormPagesContext.ts';
1
+ import { type ResolvedFormPageObject } from "./FormPagesContext.ts";
2
2
  /** Properties of the `FormPageRegistrar` component. */
3
3
  export interface FormPageRegistrarProps extends ResolvedFormPageObject {
4
4
  }
@@ -1,6 +1,6 @@
1
- import { AbsolutePath } from '@ostack.tech/kform';
1
+ import type { AbsolutePath } from "@ostack.tech/kform";
2
2
  interface FormPageSidebarItemProps {
3
3
  path: AbsolutePath;
4
4
  }
5
- export declare function FormPageSidebarItem({ path }: FormPageSidebarItemProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function FormPageSidebarItem({ path }: FormPageSidebarItemProps): import("react").JSX.Element;
6
6
  export {};
@@ -1,5 +1,5 @@
1
- import { AbsolutePath, Path } from '@ostack.tech/kform';
2
- import { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { type AbsolutePath, Path } from "@ostack.tech/kform";
2
+ import { type ComponentPropsWithoutRef, type ReactNode } from "react";
3
3
  /** Properties of the form page component. */
4
4
  export interface FormPagesProps extends ComponentPropsWithoutRef<"div"> {
5
5
  /** Base path for all declared form pages. */
@@ -40,4 +40,4 @@ export interface FormPageObject<T = any> {
40
40
  issuesPanelLabel?: ReactNode | ((value: T) => ReactNode);
41
41
  }
42
42
  /** Root component used to render form pages. */
43
- export declare const FormPages: import('react').ForwardRefExoticComponent<FormPagesProps & import('react').RefAttributes<HTMLDivElement>>;
43
+ export declare const FormPages: import("react").ForwardRefExoticComponent<FormPagesProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,6 @@
1
- import { AbsolutePath, DisplayStatus, Path, SealedValidationIssue } from '@ostack.tech/kform';
2
- import { ReactNode } from 'react';
3
- import { FormPageObject, FormPagesProps } from './FormPages.tsx';
1
+ import { AbsolutePath, type DisplayStatus, type Path, type SealedValidationIssue } from "@ostack.tech/kform";
2
+ import { type ReactNode } from "react";
3
+ import type { FormPageObject, FormPagesProps } from "./FormPages.tsx";
4
4
  /** Value of the form pages context. */
5
5
  export type FormPagesContextValue = FormPagesStore;
6
6
  /** Resolved form page object. */
@@ -40,7 +40,7 @@ export interface FormPagesActions {
40
40
  /** Form pages store. */
41
41
  export type FormPagesStore = ReturnType<typeof useCreateFormPagesContext>;
42
42
  /** Form pages context. */
43
- export declare const FormPagesContext: import('react').Context<(Omit<import('zustand').StoreApi<FormPagesState>, "subscribe"> & {
43
+ export declare const FormPagesContext: import("react").Context<(Omit<import("zustand").StoreApi<FormPagesState>, "subscribe"> & {
44
44
  subscribe: {
45
45
  (listener: (selectedState: FormPagesState, previousSelectedState: FormPagesState) => void): () => void;
46
46
  <U>(selector: (state: FormPagesState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
@@ -55,7 +55,7 @@ export interface UseCreateFormPagesContextOptions extends Pick<FormPagesProps, "
55
55
  resolvedPages: ResolvedFormPageObject[];
56
56
  }
57
57
  /** Hook used to create the form pages context. */
58
- export declare function useCreateFormPagesContext({ basePath, resolvedPages, defaultActivePage, activePage, onActivePageChange, }: UseCreateFormPagesContextOptions): Omit<import('zustand').StoreApi<FormPagesState>, "subscribe"> & {
58
+ export declare function useCreateFormPagesContext({ basePath, resolvedPages, defaultActivePage, activePage, onActivePageChange, }: UseCreateFormPagesContextOptions): Omit<import("zustand").StoreApi<FormPagesState>, "subscribe"> & {
59
59
  subscribe: {
60
60
  (listener: (selectedState: FormPagesState, previousSelectedState: FormPagesState) => void): () => void;
61
61
  <U>(selector: (state: FormPagesState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
@@ -1,6 +1,6 @@
1
- import { ComponentPropsWithoutRef, ComponentPropsWithRef } from 'react';
2
- import { FormPagesSelect } from './FormPagesSelect.tsx';
3
- import { FormPagesSidebar } from './FormPagesSidebar.tsx';
1
+ import { type ComponentPropsWithoutRef, type ComponentPropsWithRef } from "react";
2
+ import { FormPagesSelect } from "./FormPagesSelect.tsx";
3
+ import { FormPagesSidebar } from "./FormPagesSidebar.tsx";
4
4
  /** Properties of the form pages navigation component. */
5
5
  export interface FormPagesNavigationProps extends ComponentPropsWithoutRef<"nav"> {
6
6
  /** Properties to pass to the sidebar component. */
@@ -9,4 +9,4 @@ export interface FormPagesNavigationProps extends ComponentPropsWithoutRef<"nav"
9
9
  selectProps?: ComponentPropsWithRef<typeof FormPagesSelect>;
10
10
  }
11
11
  /** Component allowing the navigation between form pages. */
12
- export declare const FormPagesNavigation: import('react').ForwardRefExoticComponent<FormPagesNavigationProps & import('react').RefAttributes<HTMLElement>>;
12
+ export declare const FormPagesNavigation: import("react").ForwardRefExoticComponent<FormPagesNavigationProps & import("react").RefAttributes<HTMLElement>>;
@@ -1,6 +1,6 @@
1
- import { SelectSingleProps } from '@ostack.tech/ui';
1
+ import { type SelectSingleProps } from "@ostack.tech/ui";
2
2
  /** Properties of the form pages select component. */
3
3
  export interface FormPagesSelectProps extends Omit<SelectSingleProps, "defaultValue" | "value" | "onValueChange" | "showClearButton"> {
4
4
  }
5
5
  /** Select component allowing the navigation between form pages. */
6
- export declare const FormPagesSelect: import('react').ForwardRefExoticComponent<FormPagesSelectProps & import('react').RefAttributes<HTMLButtonElement>>;
6
+ export declare const FormPagesSelect: import("react").ForwardRefExoticComponent<FormPagesSelectProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,6 +1,6 @@
1
- import { AbsolutePath } from '@ostack.tech/kform';
1
+ import type { AbsolutePath } from "@ostack.tech/kform";
2
2
  interface FormPagesSelectOptionProps {
3
3
  path: AbsolutePath;
4
4
  }
5
- export declare function FormPagesSelectOption({ path }: FormPagesSelectOptionProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function FormPagesSelectOption({ path }: FormPagesSelectOptionProps): import("react").JSX.Element;
6
6
  export {};