@ostack.tech/ui-kform 0.12.1 → 0.12.3
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 +1 -0
- package/dist/ostack-ui-kform.js +21 -21
- package/dist/ostack-ui-kform.js.map +1 -1
- package/dist/types/components/FormApp/FormApp.d.ts +0 -10
- package/dist/types/components/PathLink/PathLink.d.ts +8 -11
- package/package.json +2 -2
- package/scss/components/FormPages/_FormPages.scss +1 -0
|
@@ -86,11 +86,6 @@ export type FormAppProps<T = any> = Pick<ComponentPropsWithoutRef<typeof Root>,
|
|
|
86
86
|
* @default false
|
|
87
87
|
*/
|
|
88
88
|
displayIssueCodes?: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* When provided, the form app's active path will be controlled by a URL
|
|
91
|
-
* search parameter with the provided name.
|
|
92
|
-
*/
|
|
93
|
-
activePathSearchParam?: string;
|
|
94
89
|
/** Uncontrolled default active path to use. */
|
|
95
90
|
defaultActivePath?: string | Path;
|
|
96
91
|
/** Controlled active path to use. */
|
|
@@ -223,11 +218,6 @@ export declare const FormApp: import('react').ForwardRefExoticComponent<Pick<Omi
|
|
|
223
218
|
* @default false
|
|
224
219
|
*/
|
|
225
220
|
displayIssueCodes?: boolean;
|
|
226
|
-
/**
|
|
227
|
-
* When provided, the form app's active path will be controlled by a URL
|
|
228
|
-
* search parameter with the provided name.
|
|
229
|
-
*/
|
|
230
|
-
activePathSearchParam?: string;
|
|
231
221
|
/** Uncontrolled default active path to use. */
|
|
232
222
|
defaultActivePath?: string | Path;
|
|
233
223
|
/** Controlled active path to use. */
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Path } from '@ostack.tech/kform';
|
|
2
|
+
import { LinkAs, LinkOwnProps, PolymorphicComponent, PolymorphicProps } from '@ostack.tech/ui';
|
|
3
|
+
/** Elements a path link can be rendered as. */
|
|
4
|
+
export type PathLinkAs = LinkAs;
|
|
4
5
|
/** Properties of the path link component. */
|
|
5
|
-
export
|
|
6
|
+
export type PathLinkProps<TAs extends PathLinkAs = "button"> = PolymorphicProps<PathLinkAs, TAs, "button", PathLinkOwnProps>;
|
|
7
|
+
/** Own properties of the path link component. */
|
|
8
|
+
export interface PathLinkOwnProps extends LinkOwnProps {
|
|
6
9
|
/** KForm path to link to. */
|
|
7
10
|
to: string | Path;
|
|
8
|
-
/**
|
|
9
|
-
* Function used to build the link's `href` from the path.
|
|
10
|
-
*
|
|
11
|
-
* @default (path) => path.toString()
|
|
12
|
-
*/
|
|
13
|
-
buildHref?: (path: AbsolutePath) => string;
|
|
14
11
|
}
|
|
15
12
|
/** Link to a KForm path. */
|
|
16
|
-
export declare const PathLink:
|
|
13
|
+
export declare const PathLink: PolymorphicComponent<PathLinkAs, "button", PathLinkOwnProps>;
|
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.12.
|
|
4
|
+
"version": "0.12.3",
|
|
5
5
|
"homepage": "https://ui.ostack.tech/",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Opensoft",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@fortawesome/free-solid-svg-icons": "^6.2.0 || ^7.0.0",
|
|
51
51
|
"@ostack.tech/kform": "~0.32.0",
|
|
52
52
|
"@ostack.tech/kform-react": "~0.32.0",
|
|
53
|
-
"@ostack.tech/ui": "~0.12.
|
|
53
|
+
"@ostack.tech/ui": "~0.12.3",
|
|
54
54
|
"@types/react": "^18.0.0 || ^19.0.0",
|
|
55
55
|
"@types/react-dom": "^18.0.0 || ^19.0.0",
|
|
56
56
|
"date-fns": "^4.1.0",
|