@ostack.tech/ui-kform 0.7.0 → 0.8.0
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.
- package/dist/ostack-ui-kform.css.map +1 -1
- package/dist/ostack-ui-kform.js +4 -8
- package/dist/ostack-ui-kform.js.map +1 -1
- package/dist/types/components/Annexes/AnnexesManager.d.ts +1 -1
- package/dist/types/components/Annexes/AnnexesMenu.d.ts +1 -1
- package/dist/types/components/IssuesPanel/IssuesPanel.d.ts +5 -5
- package/dist/types/components/PathLink/PathLink.d.ts +2 -2
- package/dist/types/components/SaveAction/SaveAction.d.ts +1 -1
- package/dist/types/components/SubmitAction/SubmitAction.d.ts +2 -2
- package/dist/types/components/TableControl/TableControlAddRowTrigger.d.ts +1 -1
- package/dist/types/components/TableControl/TableControlRemoveRowTrigger.d.ts +1 -1
- package/package.json +2 -2
|
@@ -29,7 +29,7 @@ export interface AnnexesManagerProps extends ComponentPropsWithoutRef<"nav"> {
|
|
|
29
29
|
/** Properties to pass to the menu container element. */
|
|
30
30
|
menuContainerProps?: ComponentPropsWithRef<"div">;
|
|
31
31
|
/** Properties to pass to the menu trigger component. */
|
|
32
|
-
menuTriggerProps?: Omit<ComponentPropsWithRef<typeof Button
|
|
32
|
+
menuTriggerProps?: Omit<ComponentPropsWithRef<typeof Button<"button">>, "icon">;
|
|
33
33
|
/** Properties to pass to the menu content component. */
|
|
34
34
|
menuContentProps?: ComponentPropsWithRef<typeof DropdownMenuContent>;
|
|
35
35
|
/** Properties to pass to the menu component. */
|
|
@@ -3,7 +3,7 @@ import { ComponentPropsWithoutRef, ComponentPropsWithRef } from 'react';
|
|
|
3
3
|
import { AnnexesManager } from './AnnexesManager.tsx';
|
|
4
4
|
/** Properties of the annexes' menu. */
|
|
5
5
|
export interface AnnexesMenuProps extends Pick<ComponentPropsWithoutRef<typeof AnnexesManager>, "menuButtonText" | "addAnnexText" | "removeAnnexButtonLabel" | "removeAnnexKeyboardHint" | "removeAnnexConfirmDialogTitle" | "removeAnnexConfirmDialogMessage" | "removeAnnexConfirmDialogOkText" | "removeAnnexConfirmDialogCancelText">, ComponentPropsWithoutRef<typeof DropdownMenu> {
|
|
6
|
-
menuTriggerProps?: Omit<ComponentPropsWithRef<typeof Button
|
|
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. */
|
|
@@ -86,15 +86,15 @@ export interface IssuesPanelProps extends Pick<IssuesTrackerOptions, "issuesOrde
|
|
|
86
86
|
/** Properties to pass to the pagination element. */
|
|
87
87
|
paginationProps?: ComponentPropsWithRef<"div">;
|
|
88
88
|
/** Properties to pass to the "focus" button component. */
|
|
89
|
-
focusButtonProps?: Omit<ComponentPropsWithRef<typeof IconButton
|
|
89
|
+
focusButtonProps?: Omit<ComponentPropsWithRef<typeof IconButton<"button">>, "label">;
|
|
90
90
|
/** Properties to pass to the "previous issue" button component. */
|
|
91
|
-
previousIssueButtonProps?: Omit<ComponentPropsWithRef<typeof IconButton
|
|
91
|
+
previousIssueButtonProps?: Omit<ComponentPropsWithRef<typeof IconButton<"button">>, "label">;
|
|
92
92
|
/** Properties to pass to the "next issue" button component. */
|
|
93
|
-
nextIssueButtonProps?: Omit<ComponentPropsWithRef<typeof IconButton
|
|
93
|
+
nextIssueButtonProps?: Omit<ComponentPropsWithRef<typeof IconButton<"button">>, "label">;
|
|
94
94
|
/** Properties to pass to the "first issue" button component. */
|
|
95
|
-
firstIssueButtonProps?: Omit<ComponentPropsWithRef<typeof IconButton
|
|
95
|
+
firstIssueButtonProps?: Omit<ComponentPropsWithRef<typeof IconButton<"button">>, "label">;
|
|
96
96
|
/** Properties to pass to the "last issue" button component. */
|
|
97
|
-
lastIssueButtonProps?: Omit<ComponentPropsWithRef<typeof IconButton
|
|
97
|
+
lastIssueButtonProps?: Omit<ComponentPropsWithRef<typeof IconButton<"button">>, "label">;
|
|
98
98
|
/** Properties to pass to the icon component. */
|
|
99
99
|
iconProps?: Omit<ComponentPropsWithRef<typeof Icon>, "icon">;
|
|
100
100
|
/** Properties to pass to the title component. */
|
|
@@ -2,7 +2,7 @@ import { AbsolutePath, Path } from '@ostack.tech/kform';
|
|
|
2
2
|
import { Link } from '@ostack.tech/ui';
|
|
3
3
|
import { ComponentPropsWithoutRef } from 'react';
|
|
4
4
|
/** Properties of the path link component. */
|
|
5
|
-
export interface PathLinkProps extends Omit<ComponentPropsWithoutRef<typeof Link
|
|
5
|
+
export interface PathLinkProps extends Omit<ComponentPropsWithoutRef<typeof Link<"a">>, "href"> {
|
|
6
6
|
/** KForm path to link to. */
|
|
7
7
|
to: string | Path;
|
|
8
8
|
/**
|
|
@@ -13,4 +13,4 @@ export interface PathLinkProps extends Omit<ComponentPropsWithoutRef<typeof Link
|
|
|
13
13
|
buildHref?: (path: AbsolutePath) => string;
|
|
14
14
|
}
|
|
15
15
|
/** Link to a KForm path. */
|
|
16
|
-
export declare
|
|
16
|
+
export declare const PathLink: import('react').ForwardRefExoticComponent<PathLinkProps & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
@@ -43,7 +43,7 @@ export interface SaveActionProps<T = unknown> extends Omit<ButtonProps, "childre
|
|
|
43
43
|
*/
|
|
44
44
|
saveAsKeybinds?: string | string[] | null;
|
|
45
45
|
/** Properties to pass to the save options button component. */
|
|
46
|
-
saveOptionsProps?: Omit<Partial<ComponentPropsWithRef<typeof IconButton
|
|
46
|
+
saveOptionsProps?: Omit<Partial<ComponentPropsWithRef<typeof IconButton<"button">>>, "label">;
|
|
47
47
|
/** Properties to pass to the save options dropdown menu component. */
|
|
48
48
|
dropdownMenuProps?: ComponentPropsWithRef<typeof DropdownMenuContent>;
|
|
49
49
|
}
|
|
@@ -84,9 +84,9 @@ export interface SubmitActionProps<T = unknown, TSubmitResult = unknown> extends
|
|
|
84
84
|
/** Properties to pass to the confirmation dialog footer component. */
|
|
85
85
|
dialogFooterProps?: Omit<ComponentPropsWithRef<typeof AlertDialogFooter>, "children">;
|
|
86
86
|
/** Properties to pass to the confirmation dialog OK button component. */
|
|
87
|
-
dialogOkButtonProps?: Omit<ComponentPropsWithRef<typeof Button
|
|
87
|
+
dialogOkButtonProps?: Omit<ComponentPropsWithRef<typeof Button<"button">>, "children">;
|
|
88
88
|
/** Properties to pass to the confirmation dialog cancel button component. */
|
|
89
|
-
dialogCancelButtonProps?: Omit<ComponentPropsWithRef<typeof Button
|
|
89
|
+
dialogCancelButtonProps?: Omit<ComponentPropsWithRef<typeof Button<"button">>, "children">;
|
|
90
90
|
/** Properties to pass to the alert used to confirm warnings. */
|
|
91
91
|
confirmWarningsAlertProps?: Omit<ComponentPropsWithRef<typeof Alert>, "children">;
|
|
92
92
|
/** Properties to pass to the checkbox used to confirm warnings. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button } from '@ostack.tech/ui';
|
|
2
2
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
3
3
|
/** Properties of the table control add row trigger component. */
|
|
4
|
-
export interface TableControlAddRowTriggerProps extends ComponentPropsWithoutRef<typeof Button
|
|
4
|
+
export interface TableControlAddRowTriggerProps extends ComponentPropsWithoutRef<typeof Button<"button">> {
|
|
5
5
|
/**
|
|
6
6
|
* Text displayed on the button rendered by default when no `children` are
|
|
7
7
|
* provided. If `children` are provided, this property has no effect.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconButton } from '@ostack.tech/ui';
|
|
2
2
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
3
3
|
/** Properties of the table control remove row trigger component. */
|
|
4
|
-
export interface TableControlRemoveRowTriggerProps extends Omit<Partial<ComponentPropsWithoutRef<typeof IconButton
|
|
4
|
+
export interface TableControlRemoveRowTriggerProps extends Omit<Partial<ComponentPropsWithoutRef<typeof IconButton<"button">>>, "children"> {
|
|
5
5
|
/**
|
|
6
6
|
* Whether to show a confirmation message when removing a row.
|
|
7
7
|
*
|
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.
|
|
4
|
+
"version": "0.8.0",
|
|
5
5
|
"homepage": "https://ui.ostack.tech/",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Opensoft",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@fortawesome/free-solid-svg-icons": "^6.2.0 || ^7.0.0",
|
|
53
53
|
"@ostack.tech/kform": "~0.32.0",
|
|
54
54
|
"@ostack.tech/kform-react": "~0.32.0",
|
|
55
|
-
"@ostack.tech/ui": "~0.
|
|
55
|
+
"@ostack.tech/ui": "~0.8.0",
|
|
56
56
|
"@types/react": "^18.0.0 || ^19.0.0",
|
|
57
57
|
"@types/react-dom": "^18.0.0 || ^19.0.0",
|
|
58
58
|
"date-fns": "^4.1.0",
|