@ostack.tech/ui-kform 0.12.2 → 0.12.4

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.
@@ -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 { AbsolutePath, Path } from '@ostack.tech/kform';
2
- import { Link } from '@ostack.tech/ui';
3
- import { ComponentPropsWithoutRef } from 'react';
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 interface PathLinkProps extends Omit<ComponentPropsWithoutRef<typeof Link<"a">>, "href"> {
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: import('react').ForwardRefExoticComponent<PathLinkProps & import('react').RefAttributes<HTMLAnchorElement>>;
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.2",
4
+ "version": "0.12.4",
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.2",
53
+ "@ostack.tech/ui": "~0.12.4",
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",
@@ -162,6 +162,7 @@
162
162
  &__tab-text {
163
163
  display: flex;
164
164
  flex-direction: column;
165
+ justify-content: center;
165
166
  height: 100%;
166
167
  }
167
168
 
@@ -41,6 +41,7 @@
41
41
 
42
42
  max-height: calc(100dvh - var(--#{$prefix}top-bar-height));
43
43
  overflow: auto;
44
+ scrollbar-width: thin;
44
45
  }
45
46
 
46
47
  &__sidebar-item-content {