@ostack.tech/ui-kform 0.3.0 → 0.3.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 (129) hide show
  1. package/dist/chunks/en-C1hDoCmB.js.map +1 -1
  2. package/dist/locales/en-GB.js.map +1 -1
  3. package/dist/locales/en-US.js.map +1 -1
  4. package/dist/locales/fr.js.map +1 -1
  5. package/dist/locales/pt.js.map +1 -1
  6. package/dist/ostack-ui-kform.js +5176 -5176
  7. package/dist/ostack-ui-kform.js.map +1 -1
  8. package/dist/types/components/Annexes/Annex.d.ts +5 -5
  9. package/dist/types/components/Annexes/AnnexTab.d.ts +1 -1
  10. package/dist/types/components/Annexes/Annexes.d.ts +4 -4
  11. package/dist/types/components/Annexes/AnnexesContext.d.ts +5 -5
  12. package/dist/types/components/Annexes/AnnexesManager.d.ts +3 -3
  13. package/dist/types/components/Annexes/AnnexesMenu.d.ts +3 -3
  14. package/dist/types/components/Annexes/AnnexesTabList.d.ts +3 -3
  15. package/dist/types/components/Annexes/index.d.ts +3 -3
  16. package/dist/types/components/CheckboxControl/CheckboxControl.d.ts +6 -6
  17. package/dist/types/components/CheckboxControl/index.d.ts +1 -1
  18. package/dist/types/components/CheckboxGroupControl/CheckboxGroupControl.d.ts +6 -6
  19. package/dist/types/components/CheckboxGroupControl/index.d.ts +1 -1
  20. package/dist/types/components/ControlField/ControlField.d.ts +4 -4
  21. package/dist/types/components/ControlField/ControlFieldContext.d.ts +4 -4
  22. package/dist/types/components/ControlField/index.d.ts +2 -2
  23. package/dist/types/components/DateControl/DateControl.d.ts +6 -6
  24. package/dist/types/components/DateControl/index.d.ts +1 -1
  25. package/dist/types/components/DateRangeControl/DateRangeControl.d.ts +6 -6
  26. package/dist/types/components/DateRangeControl/index.d.ts +1 -1
  27. package/dist/types/components/FileControl/FileControl.d.ts +6 -6
  28. package/dist/types/components/FileControl/index.d.ts +1 -1
  29. package/dist/types/components/FormApp/FormApp.d.ts +8 -8
  30. package/dist/types/components/FormApp/FormAppContext.d.ts +7 -7
  31. package/dist/types/components/FormApp/FormAppElement.d.ts +3 -3
  32. package/dist/types/components/FormApp/FormAppIssueMessages.d.ts +3 -3
  33. package/dist/types/components/FormApp/FormAppStatus.d.ts +1 -1
  34. package/dist/types/components/FormApp/index.d.ts +4 -4
  35. package/dist/types/components/FormPages/FormPage.d.ts +6 -6
  36. package/dist/types/components/FormPages/FormPageHeader.d.ts +3 -3
  37. package/dist/types/components/FormPages/FormPageSidebarItem.d.ts +1 -1
  38. package/dist/types/components/FormPages/FormPages.d.ts +3 -3
  39. package/dist/types/components/FormPages/FormPagesContext.d.ts +5 -5
  40. package/dist/types/components/FormPages/FormPagesNavigation.d.ts +4 -4
  41. package/dist/types/components/FormPages/FormPagesSelect.d.ts +3 -3
  42. package/dist/types/components/FormPages/FormPagesSelectOption.d.ts +1 -1
  43. package/dist/types/components/FormPages/FormPagesSidebar.d.ts +2 -2
  44. package/dist/types/components/FormPages/index.d.ts +3 -3
  45. package/dist/types/components/FormStepper/FormStep.d.ts +1 -1
  46. package/dist/types/components/FormStepper/FormStepContent.d.ts +4 -4
  47. package/dist/types/components/FormStepper/FormStepList.d.ts +3 -3
  48. package/dist/types/components/FormStepper/FormStepper.d.ts +4 -4
  49. package/dist/types/components/FormStepper/FormStepperContext.d.ts +5 -5
  50. package/dist/types/components/FormStepper/index.d.ts +3 -3
  51. package/dist/types/components/IssueAlert/IssueAlert.d.ts +4 -4
  52. package/dist/types/components/IssueAlert/index.d.ts +1 -1
  53. package/dist/types/components/IssueMessage/IssueMessage.d.ts +2 -2
  54. package/dist/types/components/IssueMessage/index.d.ts +1 -1
  55. package/dist/types/components/IssueMessages/IssueMessages.d.ts +4 -4
  56. package/dist/types/components/IssueMessages/index.d.ts +1 -1
  57. package/dist/types/components/IssuesPanel/IssuesPanel.d.ts +4 -4
  58. package/dist/types/components/IssuesPanel/IssuesPanelControls.d.ts +4 -4
  59. package/dist/types/components/IssuesPanel/IssuesPanelMessagesCard.d.ts +6 -6
  60. package/dist/types/components/IssuesPanel/IssuesPanelSummaryCard.d.ts +5 -5
  61. package/dist/types/components/IssuesPanel/index.d.ts +1 -1
  62. package/dist/types/components/IssuesPopover/IssuesPopover.d.ts +4 -4
  63. package/dist/types/components/IssuesPopover/index.d.ts +1 -1
  64. package/dist/types/components/LoadAction/LoadAction.d.ts +3 -3
  65. package/dist/types/components/LoadAction/index.d.ts +1 -1
  66. package/dist/types/components/NumericControl/NumericControl.d.ts +6 -6
  67. package/dist/types/components/NumericControl/index.d.ts +1 -1
  68. package/dist/types/components/PathLink/PathLink.d.ts +3 -3
  69. package/dist/types/components/PathLink/index.d.ts +1 -1
  70. package/dist/types/components/RadioGroupControl/RadioGroupControl.d.ts +6 -6
  71. package/dist/types/components/RadioGroupControl/index.d.ts +1 -1
  72. package/dist/types/components/SaveAction/SaveAction.d.ts +3 -3
  73. package/dist/types/components/SaveAction/index.d.ts +1 -1
  74. package/dist/types/components/SelectControl/SelectControl.d.ts +7 -7
  75. package/dist/types/components/SelectControl/index.d.ts +1 -1
  76. package/dist/types/components/SelectMultipleControl/SelectMultipleControl.d.ts +7 -7
  77. package/dist/types/components/SelectMultipleControl/index.d.ts +1 -1
  78. package/dist/types/components/SubmitAction/SubmitAction.d.ts +4 -4
  79. package/dist/types/components/SubmitAction/index.d.ts +1 -1
  80. package/dist/types/components/TableControl/TableControl.d.ts +8 -8
  81. package/dist/types/components/TableControl/TableControlAddRowTrigger.d.ts +3 -3
  82. package/dist/types/components/TableControl/TableControlApi.d.ts +4 -4
  83. package/dist/types/components/TableControl/TableControlCell.d.ts +3 -3
  84. package/dist/types/components/TableControl/TableControlColumn.d.ts +4 -4
  85. package/dist/types/components/TableControl/TableControlContent.d.ts +3 -3
  86. package/dist/types/components/TableControl/TableControlContext.d.ts +7 -7
  87. package/dist/types/components/TableControl/TableControlPagination.d.ts +1 -1
  88. package/dist/types/components/TableControl/TableControlRemoveRowTrigger.d.ts +3 -3
  89. package/dist/types/components/TableControl/TableControlRow.d.ts +3 -3
  90. package/dist/types/components/TableControl/TableControlRowsPerPage.d.ts +1 -1
  91. package/dist/types/components/TableControl/index.d.ts +8 -8
  92. package/dist/types/components/TextControl/TextControl.d.ts +6 -6
  93. package/dist/types/components/TextControl/index.d.ts +1 -1
  94. package/dist/types/components/TopBar/TopBar.d.ts +2 -2
  95. package/dist/types/components/TopBar/TopBarActions.d.ts +3 -3
  96. package/dist/types/components/TopBar/index.d.ts +2 -2
  97. package/dist/types/components/ValidateAction/ValidateAction.d.ts +2 -2
  98. package/dist/types/components/ValidateAction/index.d.ts +1 -1
  99. package/dist/types/index.d.ts +36 -36
  100. package/dist/types/locales/en-GB.d.ts +1 -1
  101. package/dist/types/locales/en-US.d.ts +1 -1
  102. package/dist/types/locales/en.d.ts +1 -1
  103. package/dist/types/locales/fr.d.ts +1 -1
  104. package/dist/types/locales/index.d.ts +4 -4
  105. package/dist/types/locales/pt.d.ts +1 -1
  106. package/dist/types/providers/LocalizationProvider/LocalizationContext.d.ts +2 -2
  107. package/dist/types/providers/LocalizationProvider/LocalizationObject.d.ts +14 -14
  108. package/dist/types/providers/LocalizationProvider/LocalizationProvider.d.ts +3 -3
  109. package/dist/types/providers/LocalizationProvider/index.d.ts +4 -4
  110. package/dist/types/providers/LocalizationProvider/useLocale.d.ts +1 -1
  111. package/dist/types/providers/PrefixSuffixProvider/PrefixSuffixContext.d.ts +1 -1
  112. package/dist/types/providers/PrefixSuffixProvider/PrefixSuffixProvider.d.ts +2 -2
  113. package/dist/types/providers/PrefixSuffixProvider/defaultPrefixSuffix.d.ts +1 -1
  114. package/dist/types/providers/PrefixSuffixProvider/index.d.ts +4 -4
  115. package/dist/types/providers/PrefixSuffixProvider/usePrefix.d.ts +1 -1
  116. package/dist/types/utils/dateRestrictions.d.ts +2 -2
  117. package/dist/types/utils/displayStatusConversions.d.ts +2 -2
  118. package/dist/types/utils/mostSpecificPath.d.ts +1 -1
  119. package/dist/types/utils/options.d.ts +2 -2
  120. package/dist/types/utils/pathSpecificity.d.ts +1 -1
  121. package/dist/types/utils/selectionTransformations.d.ts +4 -4
  122. package/dist/types/utils/useControlAutofocus.d.ts +2 -2
  123. package/dist/types/utils/useControlIssues.d.ts +3 -3
  124. package/dist/types/utils/useFormLoader.d.ts +3 -3
  125. package/dist/types/utils/useFormSaver.d.ts +3 -3
  126. package/dist/types/utils/useRegisterControl.d.ts +3 -3
  127. package/dist/types/utils/useReportValidationFailures.d.ts +1 -1
  128. package/dist/types/utils/useTemporalStringTransformer.d.ts +3 -3
  129. package/package.json +8 -23
@@ -1,8 +1,8 @@
1
- import { type Path } from "@ostack.tech/kform";
2
- import { type InputController, type InputOptions } from "@ostack.tech/kform-react";
3
- import { Input, TextArea } from "@ostack.tech/ui";
4
- import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ComponentRef, type ReactNode, type Ref } from "react";
5
- import { type IssueMessages, type IssueMessagesByCode } from "../IssueMessages";
1
+ import { Path } from '@ostack.tech/kform';
2
+ import { InputController, InputOptions } from '@ostack.tech/kform-react';
3
+ import { Input, TextArea } from '@ostack.tech/ui';
4
+ import { ComponentPropsWithoutRef, ComponentPropsWithRef, ComponentRef, ReactNode, Ref } from 'react';
5
+ import { IssueMessages, IssueMessagesByCode } from '../IssueMessages';
6
6
  /** Properties of the text control component. */
7
7
  export type TextControlProps<T extends string | null = string | null> = TextControlPropsSingleline<T> | TextControlPropsMultiline<T>;
8
8
  export type TextControlPropsSingleline<T extends string | null = string | null> = Omit<ComponentPropsWithoutRef<typeof Input>, "defaultValue" | "value" | "status"> & TextControlPropsBase<T> & {
@@ -63,4 +63,4 @@ export type TextControlPropsBase<T extends string | null = string | null> = Omit
63
63
  * The component further supports either single or multiple lines via the
64
64
  * `multiline` prop.
65
65
  */
66
- export declare const TextControl: import("react").ForwardRefExoticComponent<TextControlProps<string | null> & import("react").RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
66
+ export declare const TextControl: import('react').ForwardRefExoticComponent<TextControlProps<string | null> & import('react').RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
@@ -1 +1 @@
1
- export * from "./TextControl.tsx";
1
+ export * from './TextControl.tsx';
@@ -1,6 +1,6 @@
1
- import { type ComponentPropsWithoutRef } from "react";
1
+ import { ComponentPropsWithoutRef } from 'react';
2
2
  /** Properties of the top bar component. */
3
3
  export interface TopBarProps extends ComponentPropsWithoutRef<"div"> {
4
4
  }
5
5
  /** Top bar component. */
6
- export declare const TopBar: import("react").ForwardRefExoticComponent<TopBarProps & import("react").RefAttributes<HTMLDivElement>>;
6
+ export declare const TopBar: import('react').ForwardRefExoticComponent<TopBarProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,7 @@
1
- import { Stack } from "@ostack.tech/ui";
2
- import { type ComponentPropsWithoutRef } from "react";
1
+ import { Stack } from '@ostack.tech/ui';
2
+ import { ComponentPropsWithoutRef } from 'react';
3
3
  /** Properties of the top bar actions component. */
4
4
  export interface TopBarActionsProps extends ComponentPropsWithoutRef<typeof Stack> {
5
5
  }
6
6
  /** Container used to display actions within the top bar. */
7
- export declare const TopBarActions: import("react").ForwardRefExoticComponent<TopBarActionsProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ export declare const TopBarActions: import('react').ForwardRefExoticComponent<TopBarActionsProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,2 +1,2 @@
1
- export * from "./TopBar.tsx";
2
- export * from "./TopBarActions.tsx";
1
+ export * from './TopBar.tsx';
2
+ export * from './TopBarActions.tsx';
@@ -1,5 +1,5 @@
1
- import { type ButtonProps } from "@ostack.tech/ui";
2
- import { type ReactNode } from "react";
1
+ import { ButtonProps } from '@ostack.tech/ui';
2
+ import { ReactNode } from 'react';
3
3
  /** Properties of the validate action. */
4
4
  export interface ValidateActionProps extends Omit<ButtonProps, "children"> {
5
5
  /** Action's label. */
@@ -1 +1 @@
1
- export * from "./ValidateAction.tsx";
1
+ export * from './ValidateAction.tsx';
@@ -1,36 +1,36 @@
1
- export * from "./locales";
2
- export * from "./components/Annexes";
3
- export * from "./components/CheckboxControl";
4
- export * from "./components/CheckboxGroupControl";
5
- export * from "./components/ControlField";
6
- export * from "./components/DateControl";
7
- export * from "./components/DateRangeControl";
8
- export * from "./components/FileControl";
9
- export * from "./components/FormApp";
10
- export * from "./components/FormPages";
11
- export * from "./components/FormStepper";
12
- export * from "./components/IssueAlert";
13
- export * from "./components/IssueMessages";
14
- export * from "./components/IssuesPanel";
15
- export * from "./components/IssuesPopover";
16
- export * from "./components/LoadAction";
17
- export * from "./components/NumericControl";
18
- export * from "./components/PathLink";
19
- export * from "./components/RadioGroupControl";
20
- export * from "./components/SaveAction";
21
- export * from "./components/SelectControl";
22
- export * from "./components/SelectMultipleControl";
23
- export * from "./components/SubmitAction";
24
- export * from "./components/TableControl";
25
- export * from "./components/TextControl";
26
- export * from "./components/TopBar";
27
- export * from "./components/ValidateAction";
28
- export * from "./providers/LocalizationProvider";
29
- export * from "./providers/PrefixSuffixProvider";
30
- export * from "./utils/displayStatusConversions.ts";
31
- export * from "./utils/options.ts";
32
- export * from "./utils/useControlIssues.tsx";
33
- export * from "./utils/useFormLoader.tsx";
34
- export * from "./utils/useFormSaver.tsx";
35
- export * from "./utils/useFormValidator.ts";
36
- export * from "./utils/useRegisterControl.tsx";
1
+ export * from './locales';
2
+ export * from './components/Annexes';
3
+ export * from './components/CheckboxControl';
4
+ export * from './components/CheckboxGroupControl';
5
+ export * from './components/ControlField';
6
+ export * from './components/DateControl';
7
+ export * from './components/DateRangeControl';
8
+ export * from './components/FileControl';
9
+ export * from './components/FormApp';
10
+ export * from './components/FormPages';
11
+ export * from './components/FormStepper';
12
+ export * from './components/IssueAlert';
13
+ export * from './components/IssueMessages';
14
+ export * from './components/IssuesPanel';
15
+ export * from './components/IssuesPopover';
16
+ export * from './components/LoadAction';
17
+ export * from './components/NumericControl';
18
+ export * from './components/PathLink';
19
+ export * from './components/RadioGroupControl';
20
+ export * from './components/SaveAction';
21
+ export * from './components/SelectControl';
22
+ export * from './components/SelectMultipleControl';
23
+ export * from './components/SubmitAction';
24
+ export * from './components/TableControl';
25
+ export * from './components/TextControl';
26
+ export * from './components/TopBar';
27
+ export * from './components/ValidateAction';
28
+ export * from './providers/LocalizationProvider';
29
+ export * from './providers/PrefixSuffixProvider';
30
+ export * from './utils/displayStatusConversions.ts';
31
+ export * from './utils/options.ts';
32
+ export * from './utils/useControlIssues.tsx';
33
+ export * from './utils/useFormLoader.tsx';
34
+ export * from './utils/useFormSaver.tsx';
35
+ export * from './utils/useFormValidator.ts';
36
+ export * from './utils/useRegisterControl.tsx';
@@ -1,3 +1,3 @@
1
- import { type LocalizationObject } from "../providers/LocalizationProvider";
1
+ import { LocalizationObject } from '../providers/LocalizationProvider';
2
2
  /** `en-GB` locale. */
3
3
  export declare const enGB: LocalizationObject;
@@ -1,3 +1,3 @@
1
- import { type LocalizationObject } from "../providers/LocalizationProvider";
1
+ import { LocalizationObject } from '../providers/LocalizationProvider';
2
2
  /** `en-US` locale. */
3
3
  export declare const enUS: LocalizationObject;
@@ -1,3 +1,3 @@
1
- import { type LocalizationObject } from "../providers/LocalizationProvider";
1
+ import { LocalizationObject } from '../providers/LocalizationProvider';
2
2
  /** `en` locale (partial). */
3
3
  export declare const en: Omit<LocalizationObject, "languageTag" | "baseLocale">;
@@ -1,3 +1,3 @@
1
- import { type LocalizationObject } from "../providers/LocalizationProvider";
1
+ import { LocalizationObject } from '../providers/LocalizationProvider';
2
2
  /** `fr` locale. */
3
3
  export declare const fr: LocalizationObject;
@@ -1,4 +1,4 @@
1
- export * from "./en-GB.tsx";
2
- export * from "./en-US.tsx";
3
- export * from "./fr.tsx";
4
- export * from "./pt.tsx";
1
+ export * from './en-GB.tsx';
2
+ export * from './en-US.tsx';
3
+ export * from './fr.tsx';
4
+ export * from './pt.tsx';
@@ -1,3 +1,3 @@
1
- import { type LocalizationObject } from "../providers/LocalizationProvider";
1
+ import { LocalizationObject } from '../providers/LocalizationProvider';
2
2
  /** `pt` locale. */
3
3
  export declare const pt: LocalizationObject;
@@ -1,8 +1,8 @@
1
- import { type LocalizationObject } from "./LocalizationObject.ts";
1
+ import { LocalizationObject } from './LocalizationObject.ts';
2
2
  /** Value of the localisation context. */
3
3
  export interface LocalizationContextValue {
4
4
  locale: LocalizationObject;
5
5
  setLocale: (locale: LocalizationObject) => void;
6
6
  }
7
7
  /** Localisation context. */
8
- export declare const LocalizationContext: import("react").Context<LocalizationContextValue | null>;
8
+ export declare const LocalizationContext: import('react').Context<LocalizationContextValue | null>;
@@ -1,17 +1,17 @@
1
- import { type LocalizationObject as UiLocalizationObject } from "@ostack.tech/ui";
2
- import { type AnnexesManagerProps } from "../../components/Annexes";
3
- import { type DateRangeControlProps } from "../../components/DateRangeControl";
4
- import { type FileControlProps } from "../../components/FileControl";
5
- import { type FormAppProps } from "../../components/FormApp";
6
- import { type FormPageProps, type FormPagesNavigationProps } from "../../components/FormPages";
7
- import { type IssueMessagesProps } from "../../components/IssueMessages";
8
- import { type IssuesPanelProps } from "../../components/IssuesPanel";
9
- import { type IssuesPopoverProps } from "../../components/IssuesPopover";
10
- import { type LoadActionProps } from "../../components/LoadAction";
11
- import { type SaveActionProps } from "../../components/SaveAction";
12
- import { type SubmitActionProps } from "../../components/SubmitAction";
13
- import { type TableControlAddRowTriggerProps, type TableControlRemoveRowTriggerProps } from "../../components/TableControl";
14
- import { type ValidateActionProps } from "../../components/ValidateAction";
1
+ import { LocalizationObject as UiLocalizationObject } from '@ostack.tech/ui';
2
+ import { AnnexesManagerProps } from '../../components/Annexes';
3
+ import { DateRangeControlProps } from '../../components/DateRangeControl';
4
+ import { FileControlProps } from '../../components/FileControl';
5
+ import { FormAppProps } from '../../components/FormApp';
6
+ import { FormPageProps, FormPagesNavigationProps } from '../../components/FormPages';
7
+ import { IssueMessagesProps } from '../../components/IssueMessages';
8
+ import { IssuesPanelProps } from '../../components/IssuesPanel';
9
+ import { IssuesPopoverProps } from '../../components/IssuesPopover';
10
+ import { LoadActionProps } from '../../components/LoadAction';
11
+ import { SaveActionProps } from '../../components/SaveAction';
12
+ import { SubmitActionProps } from '../../components/SubmitAction';
13
+ import { TableControlAddRowTriggerProps, TableControlRemoveRowTriggerProps } from '../../components/TableControl';
14
+ import { ValidateActionProps } from '../../components/ValidateAction';
15
15
  /** Localization object representation. */
16
16
  export interface LocalizationObject {
17
17
  baseLocale: UiLocalizationObject;
@@ -1,5 +1,5 @@
1
- import { type ReactNode } from "react";
2
- import { type LocalizationObject } from "./LocalizationObject.ts";
1
+ import { ReactNode } from 'react';
2
+ import { LocalizationObject } from './LocalizationObject.ts';
3
3
  /** Properties of the localisation provider. */
4
4
  export interface LocalizationProviderProps {
5
5
  /** Uncontrolled locale to use. */
@@ -18,4 +18,4 @@ export interface LocalizationProviderProps {
18
18
  * Localisation provider (also sets the `@ostack.tech/ui` localisation
19
19
  * provider).
20
20
  */
21
- export declare function LocalizationProvider({ defaultLocale, locale: controlledLocale, onLocaleChange, children, }: LocalizationProviderProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
21
+ export declare function LocalizationProvider({ defaultLocale, locale: controlledLocale, onLocaleChange, children, }: LocalizationProviderProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
@@ -1,4 +1,4 @@
1
- export * from "./LocalizationContext.ts";
2
- export * from "./LocalizationObject.ts";
3
- export * from "./LocalizationProvider.tsx";
4
- export * from "./useLocale.ts";
1
+ export * from './LocalizationContext.ts';
2
+ export * from './LocalizationObject.ts';
3
+ export * from './LocalizationProvider.tsx';
4
+ export * from './useLocale.ts';
@@ -1,4 +1,4 @@
1
- import { type LocalizationObject } from "./LocalizationObject.ts";
1
+ import { LocalizationObject } from './LocalizationObject.ts';
2
2
  /** Hook used to get and set the current locale. */
3
3
  export declare function useLocale(): [
4
4
  LocalizationObject,
@@ -1,2 +1,2 @@
1
1
  /** Prefix-suffix context. */
2
- export declare const PrefixSuffixContext: import("react").Context<string | null>;
2
+ export declare const PrefixSuffixContext: import('react').Context<string | null>;
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
2
  /** Properties of the prefix-suffix provider. */
3
3
  export interface PrefixSuffixProviderProps {
4
4
  /** Suffix to add to ostack/UI's prefix. */
@@ -6,4 +6,4 @@ export interface PrefixSuffixProviderProps {
6
6
  children: ReactNode;
7
7
  }
8
8
  /** Prefix-suffix provider. */
9
- export declare function PrefixSuffixProvider({ prefixSuffix, children, }: PrefixSuffixProviderProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
9
+ export declare function PrefixSuffixProvider({ prefixSuffix, children, }: PrefixSuffixProviderProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
@@ -1,5 +1,5 @@
1
1
  /** Store holding the default prefix-suffix. */
2
- export declare const defaultPrefixSuffixStore: import("zustand").StoreApi<{
2
+ export declare const defaultPrefixSuffixStore: import('zustand').StoreApi<{
3
3
  defaultPrefixSuffix: string;
4
4
  }>;
5
5
  /**
@@ -1,4 +1,4 @@
1
- export { setDefaultPrefixSuffix } from "./defaultPrefixSuffix.ts";
2
- export * from "./PrefixSuffixContext.ts";
3
- export * from "./PrefixSuffixProvider.tsx";
4
- export * from "./usePrefix.ts";
1
+ export { setDefaultPrefixSuffix } from './defaultPrefixSuffix.ts';
2
+ export * from './PrefixSuffixContext.ts';
3
+ export * from './PrefixSuffixProvider.tsx';
4
+ export * from './usePrefix.ts';
@@ -1,4 +1,4 @@
1
- import { type PrefixFn } from "@ostack.tech/ui";
1
+ import { PrefixFn } from '@ostack.tech/ui';
2
2
  /**
3
3
  * Hook which returns a function which can be used to prefix a string with the
4
4
  * current prefix.
@@ -1,5 +1,5 @@
1
- import { type Schema } from "@ostack.tech/kform";
2
- import { type Temporal } from "@ostack.tech/kform-react";
1
+ import { Schema } from '@ostack.tech/kform';
2
+ import { Temporal } from '@ostack.tech/kform-react';
3
3
  /** Returns the minimum date allowed based on a temporal schema's restrictions. */
4
4
  export declare function minDateRestriction<T extends Temporal | null>(schema: Schema<T>): Date | undefined;
5
5
  /** Returns the maximum date allowed based on a temporal schema's restrictions. */
@@ -1,5 +1,5 @@
1
- import { type DisplayStatus } from "@ostack.tech/kform";
2
- import { type ControlStatus } from "@ostack.tech/ui";
1
+ import { DisplayStatus } from '@ostack.tech/kform';
2
+ import { ControlStatus } from '@ostack.tech/ui';
3
3
  /** Transforms ostack/KForm's display status into ostack/UI's control status. */
4
4
  export declare function displayStatusToControlStatus(displayStatus: DisplayStatus | undefined): ControlStatus | undefined;
5
5
  /** Transforms ostack/KForm's display status into a "danger" or "warning" colour. */
@@ -1,4 +1,4 @@
1
- import { AbsolutePath } from "@ostack.tech/kform";
1
+ import { AbsolutePath } from '@ostack.tech/kform';
2
2
  /**
3
3
  * Function which selects the most "specific" path from a list of paths, given a
4
4
  * path to match. `currentActivePath` contains the path that is currently
@@ -1,5 +1,5 @@
1
- import { type OptionProps, type OptionsGroupProps } from "@ostack.tech/ui";
2
- import { type Key, type ReactNode } from "react";
1
+ import { OptionProps, OptionsGroupProps } from '@ostack.tech/ui';
2
+ import { Key, ReactNode } from 'react';
3
3
  /** Object representation of an options group. */
4
4
  export type OptionsGroupObject<T = unknown> = Omit<OptionsGroupProps, "children"> & {
5
5
  /** Group's options. */
@@ -1,4 +1,4 @@
1
- import { type AbsolutePath } from "@ostack.tech/kform";
1
+ import { AbsolutePath } from '@ostack.tech/kform';
2
2
  /**
3
3
  * Given two paths, returns a number > 0 if the first path is more specific than
4
4
  * the second, a number < 0 if the first path is less specific than the second,
@@ -1,7 +1,7 @@
1
- import { type Schema } from "@ostack.tech/kform";
2
- import { type Listable } from "@ostack.tech/kform-react";
3
- import { type JSX } from "react";
4
- import { type OptionObject, type OptionsGroupObject } from "./options.ts";
1
+ import { Schema } from '@ostack.tech/kform';
2
+ import { Listable } from '@ostack.tech/kform-react';
3
+ import { JSX } from 'react';
4
+ import { OptionObject, OptionsGroupObject } from './options.ts';
5
5
  /**
6
6
  * Parses a selection value from the (string) index of an option (or empty
7
7
  * string).
@@ -1,5 +1,5 @@
1
- import { type Controller } from "@ostack.tech/kform-react";
2
- import { type RefObject } from "react";
1
+ import { Controller } from '@ostack.tech/kform-react';
2
+ import { RefObject } from 'react';
3
3
  /**
4
4
  * Function used to scroll an element into view.
5
5
  *
@@ -1,6 +1,6 @@
1
- import { type SealedValidationIssue } from "@ostack.tech/kform";
2
- import { type ComponentPropsWithRef, type ReactNode } from "react";
3
- import { IssueMessages, type IssueMessagesByCode } from "../components/IssueMessages";
1
+ import { SealedValidationIssue } from '@ostack.tech/kform';
2
+ import { ComponentPropsWithRef, ReactNode } from 'react';
3
+ import { IssueMessages, IssueMessagesByCode } from '../components/IssueMessages';
4
4
  /** Options of the `useControlIssues` hook. */
5
5
  export interface UseControlIssuesOptions {
6
6
  /** Mapping from path to issues to display. */
@@ -1,6 +1,6 @@
1
- import { AbsolutePath } from "@ostack.tech/kform";
2
- import { type FileSystemHandle, type FileWithHandle, type WellKnownDirectory } from "browser-fs-access";
3
- import { type ReactNode } from "react";
1
+ import { AbsolutePath } from '@ostack.tech/kform';
2
+ import { FileSystemHandle, FileWithHandle, WellKnownDirectory } from 'browser-fs-access';
3
+ import { ReactNode } from 'react';
4
4
  /**
5
5
  * Options that can be passed to the {@link useFormLoader} hook, or to its
6
6
  * resulting `load` function.
@@ -1,6 +1,6 @@
1
- import { AbsolutePath } from "@ostack.tech/kform";
2
- import { type FileSystemHandle, type WellKnownDirectory } from "browser-fs-access";
3
- import { type ReactNode } from "react";
1
+ import { AbsolutePath } from '@ostack.tech/kform';
2
+ import { FileSystemHandle, WellKnownDirectory } from 'browser-fs-access';
3
+ import { ReactNode } from 'react';
4
4
  /**
5
5
  * Options that can be passed to the {@link useFormSaver} hook, or to its
6
6
  * resulting `save`/`saveAs` functions.
@@ -1,6 +1,6 @@
1
- import { type DisplayStatus, type SealedValidationIssue } from "@ostack.tech/kform";
2
- import { type Controller } from "@ostack.tech/kform-react";
3
- import { type FocusEvent, type ReactNode, type Ref, type RefObject } from "react";
1
+ import { DisplayStatus, SealedValidationIssue } from '@ostack.tech/kform';
2
+ import { Controller } from '@ostack.tech/kform-react';
3
+ import { FocusEvent, ReactNode, Ref, RefObject } from 'react';
4
4
  /** Options when registering the control. */
5
5
  export interface UseRegisterControlOptions<T> {
6
6
  controller: Controller<T>;
@@ -1,4 +1,4 @@
1
- import { type LocatedValidationInfo } from "@ostack.tech/kform-react";
1
+ import { LocatedValidationInfo } from '@ostack.tech/kform-react';
2
2
  type ReportValidationFailuresInfo = Pick<LocatedValidationInfo, "path" | "issues">;
3
3
  /** Hook used to report validation failures that occur. */
4
4
  export declare function useReportValidationFailures(info?: ReportValidationFailuresInfo[]): void;
@@ -1,6 +1,6 @@
1
- import { type Schema } from "@ostack.tech/kform";
2
- import { type Temporal } from "@ostack.tech/kform-react";
3
- import { type DateFormatterOptions, type DateParserOptions, type DateTransformerOptions } from "@ostack.tech/ui";
1
+ import { Schema } from '@ostack.tech/kform';
2
+ import { Temporal } from '@ostack.tech/kform-react';
3
+ import { DateFormatterOptions, DateParserOptions, DateTransformerOptions } from '@ostack.tech/ui';
4
4
  /** Temporal string transformer. */
5
5
  export interface TemporalStringTransformer {
6
6
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ostack.tech/ui-kform",
3
3
  "description": "Integration of ostack/UI with ostack/KForm.",
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "homepage": "https://ui.ostack.tech/",
6
6
  "author": {
7
7
  "name": "Opensoft",
@@ -13,9 +13,6 @@
13
13
  "directory": "packages/ui-kform/"
14
14
  },
15
15
  "type": "module",
16
- "engines": {
17
- "node": ">=10"
18
- },
19
16
  "main": "dist/ostack-ui-kform.js",
20
17
  "types": "dist/types/index.d.ts",
21
18
  "sass": "scss/index.scss",
@@ -25,21 +22,9 @@
25
22
  "types": "./dist/types/index.d.ts",
26
23
  "import": "./dist/ostack-ui-kform.js"
27
24
  },
28
- "./locales/en-GB": {
29
- "types": "./dist/types/locales/en-GB.d.ts",
30
- "import": "./dist/locales/en-GB.js"
31
- },
32
- "./locales/en-US": {
33
- "types": "./dist/types/locales/en-US.d.ts",
34
- "import": "./dist/locales/en-US.js"
35
- },
36
- "./locales/fr": {
37
- "types": "./dist/types/locales/fr.d.ts",
38
- "import": "./dist/locales/fr.js"
39
- },
40
- "./locales/pt": {
41
- "types": "./dist/types/locales/pt.d.ts",
42
- "import": "./dist/locales/pt.js"
25
+ "./locales/*": {
26
+ "types": "./dist/types/locales/*.d.ts",
27
+ "import": "./dist/locales/*.js"
43
28
  },
44
29
  "./css": "./dist/ostack-ui-kform.css",
45
30
  "./scss": "./scss/index.scss",
@@ -54,9 +39,9 @@
54
39
  "scripts": {
55
40
  "clean": "rimraf dist/ scss/",
56
41
  "build": "npm run build:js && npm run build:css",
57
- "build:js": "vite build && tsc -b tsconfig.build.json",
58
- "build:css": "npm run copy-scss && sass -I ../../node_modules/ scss/index.scss dist/ostack-ui-kform.css",
59
- "copy-scss": "cpy 'src/**/*.scss' '!src/**/*.stories.scss' scss/"
42
+ "build:js": "vite build",
43
+ "build:css": "npm run copy:scss && sass -I ../../node_modules/ scss/index.scss dist/ostack-ui-kform.css",
44
+ "copy:scss": "cpy 'src/**/*.scss' '!src/**/*.stories.scss' scss/"
60
45
  },
61
46
  "dependencies": {
62
47
  "browser-fs-access": "^0.38.0"
@@ -67,7 +52,7 @@
67
52
  "@fortawesome/free-solid-svg-icons": "^6.2.0 || ^7.0.0",
68
53
  "@ostack.tech/kform": "~0.31.0",
69
54
  "@ostack.tech/kform-react": "~0.31.0",
70
- "@ostack.tech/ui": "~0.3.0",
55
+ "@ostack.tech/ui": "~0.3.1",
71
56
  "@types/react": "^18.0.0 || ^19.0.0",
72
57
  "@types/react-dom": "^18.0.0 || ^19.0.0",
73
58
  "date-fns": "^4.1.0",