@raelmartins/realtors-portal 0.0.1
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/index.d.mts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +57 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ThemeConfig } from '@chakra-ui/react';
|
|
4
|
+
|
|
5
|
+
declare const LibraryProvider: ({ children, theme }: {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
theme?: ThemeConfig;
|
|
8
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
interface DashboardPageProps {
|
|
11
|
+
apiKey: string;
|
|
12
|
+
userName?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const DashboardPage: ({ apiKey, userName }: DashboardPageProps) => react_jsx_runtime.JSX.Element;
|
|
15
|
+
|
|
16
|
+
export { DashboardPage, type DashboardPageProps, LibraryProvider };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ThemeConfig } from '@chakra-ui/react';
|
|
4
|
+
|
|
5
|
+
declare const LibraryProvider: ({ children, theme }: {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
theme?: ThemeConfig;
|
|
8
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
interface DashboardPageProps {
|
|
11
|
+
apiKey: string;
|
|
12
|
+
userName?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const DashboardPage: ({ apiKey, userName }: DashboardPageProps) => react_jsx_runtime.JSX.Element;
|
|
15
|
+
|
|
16
|
+
export { DashboardPage, type DashboardPageProps, LibraryProvider };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
var _react = require('@chakra-ui/react');var _reactquery = require('@tanstack/react-query');var _jsxruntime = require('react/jsx-runtime');var p=new (0, _reactquery.QueryClient)({defaultOptions:{queries:{staleTime:1e3*60}}}),m=_react.extendTheme.call(void 0, {colors:{brand:{500:"#ff0000"}}}),l= exports.LibraryProvider =({children:e,theme:r})=>_jsxruntime.jsx.call(void 0, _reactquery.QueryClientProvider,{client:p,children:_jsxruntime.jsx.call(void 0, _react.ChakraProvider,{theme:r||m,children:e})});var b=({apiKey:e,userName:r})=>_jsxruntime.jsxs.call(void 0, _react.Box,{p:5,border:"1px solid",borderColor:"gray.200",children:[_jsxruntime.jsx.call(void 0, _react.Heading,{children:"Module Dashboard"}),_jsxruntime.jsxs.call(void 0, _react.Box,{children:["Welcome, ",r]})]});exports.DashboardPage = b; exports.LibraryProvider = l;
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["c:\\Github Repos\\Myxellia(Matador)\\realtors-portal\\dist\\index.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ,yCAAkE,mDAA6E,+CAAwC,IAAK,CAAC,CAAC,IAAI,4BAAC,CAAC,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,gCAAC,CAAE,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,2BAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,6BAAC,+BAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,6BAAC,qBAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAA0G,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,8BAAC,UAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,6BAAC,cAAE,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,CAAC,8BAAC,UAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,uDAA+C","file":"C:\\Github Repos\\Myxellia(Matador)\\realtors-portal\\dist\\index.js","sourcesContent":[null]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{ChakraProvider as t,extendTheme as d}from"@chakra-ui/react";import{QueryClient as n,QueryClientProvider as s}from"@tanstack/react-query";import{jsx as o}from"react/jsx-runtime";var p=new n({defaultOptions:{queries:{staleTime:1e3*60}}}),m=d({colors:{brand:{500:"#ff0000"}}}),l=({children:e,theme:r})=>o(s,{client:p,children:o(t,{theme:r||m,children:e})});import{Box as a,Heading as h}from"@chakra-ui/react";import{jsx as f,jsxs as i}from"react/jsx-runtime";var b=({apiKey:e,userName:r})=>i(a,{p:5,border:"1px solid",borderColor:"gray.200",children:[f(h,{children:"Module Dashboard"}),i(a,{children:["Welcome, ",r]})]});export{b as DashboardPage,l as LibraryProvider};
|
|
3
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/providers/LibraryProvider.tsx","../src/pages/Dashboard/index.tsx"],"sourcesContent":["import React from 'react';\r\nimport { ChakraProvider, extendTheme, ThemeConfig } from '@chakra-ui/react';\r\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\r\n\r\n// 1. Create a segregated Query Client so you don't mess with the Host App's cache\r\nconst libraryQueryClient = new QueryClient({\r\n defaultOptions: { queries: { staleTime: 1000 * 60 } }\r\n});\r\n\r\n// 2. Define your specific theme overrides if needed\r\nconst libraryTheme = extendTheme({\r\n colors: { brand: { 500: '#ff0000' } } // Unique branding for this module\r\n});\r\n\r\nexport const LibraryProvider = ({\r\n children,\r\n theme\r\n}: {\r\n children: React.ReactNode;\r\n theme?: ThemeConfig;\r\n}) => {\r\n return (\r\n <QueryClientProvider client={libraryQueryClient}>\r\n <ChakraProvider theme={theme ? theme : libraryTheme}>\r\n {children}\r\n </ChakraProvider>\r\n </QueryClientProvider>\r\n );\r\n};\r\n","'use client';\r\n\r\nimport React from 'react';\r\nimport { Box, Heading } from '@chakra-ui/react';\r\n// import { useMyCustomHook } from '../../hooks/useMyCustomHook';\r\n\r\nexport interface DashboardPageProps {\r\n apiKey: string; // Forces host to pass required config\r\n userName?: string;\r\n}\r\n\r\nexport const DashboardPage = ({ apiKey, userName }: DashboardPageProps) => {\r\n // const { data, isLoading } = useMyCustomHook(apiKey);\r\n\r\n // if (isLoading) return <Box>Loading Module...</Box>;\r\n\r\n return (\r\n <Box p={5} border='1px solid' borderColor='gray.200'>\r\n <Heading>Module Dashboard</Heading>\r\n <Box>Welcome, {userName}</Box>\r\n {/* ... complex UI ... */}\r\n </Box>\r\n );\r\n};\r\n"],"mappings":";AACA,OAAS,kBAAAA,EAAgB,eAAAC,MAAgC,mBACzD,OAAS,eAAAC,EAAa,uBAAAC,MAA2B,wBAqB3C,cAAAC,MAAA,oBAlBN,IAAMC,EAAqB,IAAIH,EAAY,CACzC,eAAgB,CAAE,QAAS,CAAE,UAAW,IAAO,EAAG,CAAE,CACtD,CAAC,EAGKI,EAAeL,EAAY,CAC/B,OAAQ,CAAE,MAAO,CAAE,IAAK,SAAU,CAAE,CACtC,CAAC,EAEYM,EAAkB,CAAC,CAC9B,SAAAC,EACA,MAAAC,CACF,IAKIL,EAACD,EAAA,CAAoB,OAAQE,EAC3B,SAAAD,EAACJ,EAAA,CAAe,MAAOS,GAAgBH,EACpC,SAAAE,EACH,EACF,ECvBJ,OAAS,OAAAE,EAAK,WAAAC,MAAe,mBAevB,cAAAC,EACA,QAAAC,MADA,oBAPC,IAAMC,EAAgB,CAAC,CAAE,OAAAC,EAAQ,SAAAC,CAAS,IAM7CH,EAACH,EAAA,CAAI,EAAG,EAAG,OAAO,YAAY,YAAY,WACxC,UAAAE,EAACD,EAAA,CAAQ,4BAAgB,EACzBE,EAACH,EAAA,CAAI,sBAAUM,GAAS,GAE1B","names":["ChakraProvider","extendTheme","QueryClient","QueryClientProvider","jsx","libraryQueryClient","libraryTheme","LibraryProvider","children","theme","Box","Heading","jsx","jsxs","DashboardPage","apiKey","userName"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@raelmartins/realtors-portal",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "The full blown realtors portal project for myxellia",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsc --noEmit && tsup",
|
|
13
|
+
"dev": "tsup --watch"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/MATADOR-TRUST/realtors-portal.git"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"myxellia",
|
|
21
|
+
"realtor",
|
|
22
|
+
"portal"
|
|
23
|
+
],
|
|
24
|
+
"author": "Martins Akeredolu (raelmartins)",
|
|
25
|
+
"license": "ISC",
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/MATADOR-TRUST/realtors-portal/issues"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/MATADOR-TRUST/realtors-portal#readme",
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"react": ">=18",
|
|
32
|
+
"react-dom": ">=18",
|
|
33
|
+
"next": ">=13",
|
|
34
|
+
"@chakra-ui/react": ">=2",
|
|
35
|
+
"@tanstack/react-query": ">=4",
|
|
36
|
+
"axios": ">=1",
|
|
37
|
+
"react-icons": "*",
|
|
38
|
+
"@emotion/react": ">=11",
|
|
39
|
+
"@emotion/styled": ">=11",
|
|
40
|
+
"framer-motion": ">=12"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"tsup": "^8.0.0",
|
|
44
|
+
"typescript": "^5.0.0",
|
|
45
|
+
"react": "^18.0.0",
|
|
46
|
+
"next": "^14.0.0",
|
|
47
|
+
"@types/react": "^18.0.0",
|
|
48
|
+
"@chakra-ui/react": "^2.10.9",
|
|
49
|
+
"@emotion/react": "^11.14.0",
|
|
50
|
+
"@emotion/styled": "^11.14.1",
|
|
51
|
+
"framer-motion": "^12.29.2",
|
|
52
|
+
"react-dom": "^18",
|
|
53
|
+
"@tanstack/react-query": "^4",
|
|
54
|
+
"axios": "^1",
|
|
55
|
+
"react-icons": "*"
|
|
56
|
+
}
|
|
57
|
+
}
|