@nomos-ui/core 0.0.1 → 0.0.2
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,4 +1,3 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
1
|
/**
|
|
3
2
|
* Configuration for custom Link components to support different routing systems
|
|
4
3
|
*
|
|
@@ -18,13 +17,13 @@ import { ReactNode } from "react";
|
|
|
18
17
|
* - hrefKey: "href"
|
|
19
18
|
*/
|
|
20
19
|
export type LinkConfig = {
|
|
21
|
-
component:
|
|
20
|
+
component: React.JSX.Element;
|
|
22
21
|
hrefKey?: string;
|
|
23
22
|
};
|
|
24
23
|
export type ProviderContext = {
|
|
25
24
|
children: React.ReactNode;
|
|
26
25
|
components?: {
|
|
27
|
-
Link?:
|
|
26
|
+
Link?: React.JSX.Element | LinkConfig;
|
|
28
27
|
};
|
|
29
28
|
};
|
|
30
29
|
export declare const ProviderContext: import("react").Context<Omit<ProviderContext, "children">>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/components/provider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/components/provider.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE;QACX,IAAI,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,UAAU,CAAC;KACvC,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,eAAe,4DAE3B,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAMvE"}
|
|
@@ -13,7 +13,7 @@ import { LinkConfig } from "../components/provider";
|
|
|
13
13
|
export declare function useProvider(): {
|
|
14
14
|
components: {
|
|
15
15
|
Link: {
|
|
16
|
-
component: string |
|
|
16
|
+
component: string | import("react").JSX.Element | LinkConfig;
|
|
17
17
|
hrefKey: string;
|
|
18
18
|
};
|
|
19
19
|
};
|