@prokodo/ui 0.0.35 → 0.0.37
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/components/button/Button.client.js +2 -2
- package/dist/components/button/Button.js +6 -15
- package/dist/components/button/Button.lazy.js +7 -19
- package/dist/components/button/Button.server.js +2 -2
- package/dist/components/link/Link.client.js +21 -0
- package/dist/components/link/Link.js +11 -60
- package/dist/components/link/Link.lazy.js +12 -0
- package/dist/components/link/Link.server.js +20 -0
- package/dist/components/link/Link.view.js +55 -0
- package/dist/constants/project.js +1 -1
- package/dist/helpers/createIsland.js +32 -0
- package/dist/helpers/createLazyWrapper.js +30 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/button/Button.d.ts +3 -2
- package/dist/types/components/button/Button.lazy.d.ts +3 -5
- package/dist/types/components/link/Link.client.d.ts +3 -0
- package/dist/types/components/link/Link.d.ts +4 -3
- package/dist/types/components/link/Link.lazy.d.ts +5 -0
- package/dist/types/components/link/Link.model.d.ts +4 -0
- package/dist/types/components/link/Link.server.d.ts +3 -0
- package/dist/types/components/link/Link.view.d.ts +3 -0
- package/dist/types/helpers/createIsland.d.ts +14 -0
- package/dist/types/helpers/createLazyWrapper.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { type JSX } from 'react';
|
|
2
1
|
import type { ButtonProps } from './Button.model';
|
|
3
|
-
export declare
|
|
2
|
+
export declare const Button: import("react").ComponentType<ButtonProps & {
|
|
3
|
+
priority?: boolean;
|
|
4
|
+
}>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { ButtonProps } from './Button.model';
|
|
2
|
-
|
|
3
|
-
type WrapperProps = ButtonProps & {
|
|
2
|
+
declare const _default: import("react").ComponentType<ButtonProps & {
|
|
4
3
|
priority?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export default
|
|
7
|
-
export {};
|
|
4
|
+
}>;
|
|
5
|
+
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { LinkProps } from './Link.model';
|
|
2
|
+
export declare const Link: import("react").ComponentType<LinkProps & {
|
|
3
|
+
priority?: boolean;
|
|
4
|
+
}>;
|
|
@@ -20,3 +20,7 @@ export type LinkClickProps = LinkDefaultProps & {
|
|
|
20
20
|
onPress: MouseEventHandler<HTMLAnchorElement>;
|
|
21
21
|
};
|
|
22
22
|
export type LinkProps = LinkHrefProps | LinkClickProps;
|
|
23
|
+
export type LinkViewProps = LinkProps & {
|
|
24
|
+
LinkTag: 'a' | 'span';
|
|
25
|
+
hasHandlers: boolean;
|
|
26
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ComponentType } from 'react';
|
|
2
|
+
export interface IslandOptions<P extends object> {
|
|
3
|
+
name: string;
|
|
4
|
+
Server: ComponentType<P>;
|
|
5
|
+
loadLazy: () => Promise<{
|
|
6
|
+
default: ComponentType<P & {
|
|
7
|
+
priority?: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
}>;
|
|
10
|
+
isInteractive?: (props: Readonly<P>) => boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function createIsland<P extends object>({ name, Server, loadLazy, isInteractive: customInteractive, }: IslandOptions<P>): ComponentType<P & {
|
|
13
|
+
priority?: boolean;
|
|
14
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ComponentType } from 'react';
|
|
2
|
+
export interface LazyWrapperOptions<P extends object> {
|
|
3
|
+
name: string;
|
|
4
|
+
Client: ComponentType<P>;
|
|
5
|
+
Server: ComponentType<P>;
|
|
6
|
+
}
|
|
7
|
+
export declare function createLazyWrapper<P extends object>({ name, Client, Server, }: LazyWrapperOptions<P>): ComponentType<P & {
|
|
8
|
+
priority?: boolean;
|
|
9
|
+
}>;
|
package/package.json
CHANGED