@nomos-ui/core 0.0.9 → 0.1.0

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,5 @@
1
1
  import { ReactNode } from "react";
2
+ import { RouterAdapter } from "../types";
2
3
  /**
3
4
  * Configuration for custom Link components to support different routing systems
4
5
  *
@@ -29,6 +30,7 @@ export type ProviderConfig = {
29
30
  components?: {
30
31
  Link?: React.ElementType | LinkConfig;
31
32
  };
33
+ adapter: RouterAdapter;
32
34
  };
33
35
  /**
34
36
  * Props for the Provider component
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/components/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,YAAY,EAAE,WAAW,GAAG,gBAAgB,CAAC;IAC7C,UAAU,CAAC,EAAE;QACX,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,UAAU,CAAC;KACvC,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG;IAC3C,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,YAAY,kDAA6C,CAAC;AAEvE;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CAMrE"}
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/components/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,YAAY,EAAE,WAAW,GAAG,gBAAgB,CAAC;IAC7C,UAAU,CAAC,EAAE;QACX,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,UAAU,CAAC;KACvC,CAAC;IACF,OAAO,EAAE,aAAa,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG;IAC3C,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,YAAY,kDAA6C,CAAC;AAEvE;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CAMrE"}
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/components/provider.tsx"],"names":[],"mappings":";;;AA0DA,2BAMC;;AAhED,iCAAiD;AA0CpC,QAAA,YAAY,GAAG,IAAA,qBAAa,EAA0B,EAAE,CAAC,CAAC;AAEvE;;;;;;;;;;;;;GAaG;AACH,SAAwB,QAAQ,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAiB;IACpE,OAAO,CACL,uBAAC,oBAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,YACvC,QAAQ,GACa,CACzB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/components/provider.tsx"],"names":[],"mappings":";;;AA4DA,2BAMC;;AAlED,iCAAiD;AA4CpC,QAAA,YAAY,GAAG,IAAA,qBAAa,EAA0B,EAAE,CAAC,CAAC;AAEvE;;;;;;;;;;;;;GAaG;AACH,SAAwB,QAAQ,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAiB;IACpE,OAAO,CACL,uBAAC,oBAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,YACvC,QAAQ,GACa,CACzB,CAAC;AACJ,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import Provider, { ProviderConfig } from "../components/provider";
2
2
  import { useProvider } from "../hooks/use-provider";
3
+ import { RouterAdapter } from "../types";
3
4
  export { Provider, useProvider };
4
- export type { ProviderConfig };
5
+ export type { ProviderConfig, RouterAdapter };
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exports/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,EAAE,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AACjC,YAAY,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exports/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,EAAE,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AACjC,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/exports/index.ts"],"names":[],"mappings":";;;;;;AAAA,sEAAkE;AAGzD,mBAHF,kBAAQ,CAGE;AAFjB,wDAAoD;AAEjC,4FAFV,0BAAW,OAEU"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/exports/index.ts"],"names":[],"mappings":";;;;;;AAAA,sEAAkE;AAIzD,mBAJF,kBAAQ,CAIE;AAHjB,wDAAoD;AAGjC,4FAHV,0BAAW,OAGU"}
@@ -0,0 +1,17 @@
1
+ import { LinkConfig } from "../components/provider";
2
+ export type RouterAdapter = {
3
+ useSearchParams: () => {
4
+ get: (key: string) => string | null;
5
+ };
6
+ useUpdateSearchParams: () => (params: {
7
+ name: string;
8
+ value: string;
9
+ }[]) => void;
10
+ useParams: () => {
11
+ get: (key: string) => string | null;
12
+ };
13
+ components: {
14
+ Link: LinkConfig;
15
+ };
16
+ };
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,MAAM,MAAM,aAAa,GAAG;IAC1B,eAAe,EAAE,MAAM;QAAE,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IAC/D,qBAAqB,EAAE,MAAM,CAC3B,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,KACtC,IAAI,CAAC;IACV,SAAS,EAAE,MAAM;QAAE,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IACzD,UAAU,EAAE;QACV,IAAI,EAAE,UAAU,CAAC;KAClB,CAAC;CACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomos-ui/core",
3
- "version": "0.0.9",
3
+ "version": "0.1.0",
4
4
  "description": "The Shadcn library for building robust React layouts",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/exports/index.js",