@nomos-ui/core 0.0.2 → 0.0.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.
@@ -17,13 +17,13 @@
17
17
  * - hrefKey: "href"
18
18
  */
19
19
  export type LinkConfig = {
20
- component: React.JSX.Element;
20
+ component: React.ElementType;
21
21
  hrefKey?: string;
22
22
  };
23
23
  export type ProviderContext = {
24
24
  children: React.ReactNode;
25
25
  components?: {
26
- Link?: React.JSX.Element | LinkConfig;
26
+ Link?: React.ElementType | LinkConfig;
27
27
  };
28
28
  };
29
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":"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"}
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,WAAW,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,WAAW,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 | import("react").JSX.Element | LinkConfig;
16
+ component: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | LinkConfig;
17
17
  hrefKey: string;
18
18
  };
19
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"use-provider.d.ts","sourceRoot":"","sources":["../../src/hooks/use-provider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAmB,MAAM,wBAAwB,CAAC;AAErE;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW;;;;;;;EAwB1B"}
1
+ {"version":3,"file":"use-provider.d.ts","sourceRoot":"","sources":["../../src/hooks/use-provider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAmB,MAAM,wBAAwB,CAAC;AAErE;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW;;;;;;;EAyB1B"}
@@ -25,7 +25,8 @@ function useProvider() {
25
25
  ...context.components,
26
26
  Link: context?.components?.Link?.component
27
27
  ? {
28
- component: context?.components?.Link?.component || "a",
28
+ component: context?.components?.Link?.component ||
29
+ "a",
29
30
  hrefKey: context?.components?.Link?.hrefKey || "href",
30
31
  }
31
32
  : {
@@ -1 +1 @@
1
- {"version":3,"file":"use-provider.js","sourceRoot":"","sources":["../../src/hooks/use-provider.tsx"],"names":[],"mappings":";;AAcA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wBACnD,GAAyB;oBAC5B,OAAO,EACJ,OAAO,EAAE,UAAU,EAAE,IAAmB,EAAE,OAAO,IAAI,MAAM;iBAC/D;gBACH,CAAC,CAAC;oBACE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,IAAK,GAAyB;oBAClE,OAAO,EAAE,MAAM;iBAChB;SACN;KACF,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomos-ui/core",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "The Shadcn library for building robust React layouts",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/exports/index.js",
@@ -19,8 +19,12 @@
19
19
  },
20
20
  "typesVersions": {
21
21
  "*": {
22
- "dashboard": ["./dist/exports/dashboard/index.d.ts"],
23
- "types": ["./dist/types/index.d.ts"]
22
+ "dashboard": [
23
+ "./dist/exports/dashboard/index.d.ts"
24
+ ],
25
+ "types": [
26
+ "./dist/types/index.d.ts"
27
+ ]
24
28
  }
25
29
  },
26
30
  "scripts": {
@@ -63,7 +67,11 @@
63
67
  "url": "https://github.com/uanela/nomos-ui/issues"
64
68
  },
65
69
  "homepage": "https://github.com/uanela/nomos-ui",
66
- "files": ["dist", "README.md", "LICENSE"],
70
+ "files": [
71
+ "dist",
72
+ "README.md",
73
+ "LICENSE"
74
+ ],
67
75
  "sideEffects": false,
68
76
  "packageManager": "pnpm@10.13.1",
69
77
  "dependencies": {},