@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.
@@ -1,3 +1,4 @@
1
- import { type JSX } from 'react';
2
1
  import type { ButtonProps } from './Button.model';
3
- export declare function Button({ priority, ...props }: ButtonProps): JSX.Element;
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
- import type { JSX } from "react";
3
- type WrapperProps = ButtonProps & {
2
+ declare const _default: import("react").ComponentType<ButtonProps & {
4
3
  priority?: boolean;
5
- };
6
- export default function ButtonWrapper({ priority, ...props }: WrapperProps): JSX.Element;
7
- export {};
4
+ }>;
5
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { LinkProps } from './Link.model';
2
+ declare const LinkClient: React.FC<LinkProps>;
3
+ export default LinkClient;
@@ -1,3 +1,4 @@
1
- import { type FC } from "react";
2
- import type { LinkProps } from "./Link.model";
3
- export declare const Link: FC<LinkProps>;
1
+ import type { LinkProps } from './Link.model';
2
+ export declare const Link: import("react").ComponentType<LinkProps & {
3
+ priority?: boolean;
4
+ }>;
@@ -0,0 +1,5 @@
1
+ import type { LinkProps } from './Link.model';
2
+ declare const _default: import("react").ComponentType<LinkProps & {
3
+ priority?: boolean;
4
+ }>;
5
+ export default _default;
@@ -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,3 @@
1
+ import type { LinkProps } from './Link.model';
2
+ import type { JSX } from "react";
3
+ export default function LinkServer(props: LinkProps): JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { LinkViewProps } from './Link.model';
2
+ import type { JSX } from "react";
3
+ export declare function LinkView({ variant, href, children, className, style, target, itemProp, hasBackground, ariaLabel, LinkTag, hasHandlers, ...rest }: LinkViewProps): JSX.Element;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prokodo/ui",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "type": "module",
5
5
  "description": "Modern, customizable UI components built with React and TypeScript — developed by prokodo for high-performance web interfaces.",
6
6
  "sideEffects": false,