Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial: npm package setup #98

Merged
merged 44 commits into from
Nov 9, 2023
Merged
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
f02d598
updates
vselvarajijay Nov 5, 2023
d83e620
Merge branch 'akello-io:main' into main
vselvarajijay Nov 5, 2023
ae76b11
check-point - major UI refactor
vselvarajijay Nov 5, 2023
e3ac5d7
updates
vselvarajijay Nov 5, 2023
f9c1f0d
udpates to react component library
vselvarajijay Nov 5, 2023
6db1e2d
Merge branch 'akello-io:main' into main
vselvarajijay Nov 5, 2023
f4f995e
publishing npm updates
vselvarajijay Nov 5, 2023
bd2a287
adding FHIR types
vselvarajijay Nov 5, 2023
899e5d1
Setting up new App
vselvarajijay Nov 5, 2023
ab9377e
More additions to new app
vselvarajijay Nov 5, 2023
48a2bcb
Updates to app
vselvarajijay Nov 5, 2023
280090b
merge
vselvarajijay Nov 5, 2023
42ff175
clearing out env
vselvarajijay Nov 5, 2023
3141e46
removing pages from react component library
vselvarajijay Nov 6, 2023
b457bc2
working version of core...
vselvarajijay Nov 6, 2023
54e27da
working core with API
vselvarajijay Nov 6, 2023
43626b5
init AkelloAPIService
vselvarajijay Nov 6, 2023
259afe4
Working PoC with external npm packages
vselvarajijay Nov 6, 2023
2f64922
checking in updates
vselvarajijay Nov 6, 2023
92c48b3
bulk updates - rebuild app-ui with component library
vselvarajijay Nov 7, 2023
4f7b88f
getting login/logout working..
vselvarajijay Nov 7, 2023
1eec08a
safe state
vselvarajijay Nov 7, 2023
3a5335a
saving state - refactoring
vselvarajijay Nov 7, 2023
cc566b9
auth updates
vselvarajijay Nov 7, 2023
32536f7
cleaning up
vselvarajijay Nov 7, 2023
42a1572
holding state
vselvarajijay Nov 7, 2023
03c2dae
update
vselvarajijay Nov 7, 2023
ea4d8e7
updates
vselvarajijay Nov 7, 2023
59634bc
updates
vselvarajijay Nov 7, 2023
5740e88
updates
vselvarajijay Nov 7, 2023
a625531
updates
vselvarajijay Nov 7, 2023
2eae6e7
updates
vselvarajijay Nov 8, 2023
a89b53b
saving states
vselvarajijay Nov 8, 2023
cb6ff15
merge upstream fork
vselvarajijay Nov 8, 2023
b1119a1
fixing component
vselvarajijay Nov 8, 2023
228e035
Merge remote-tracking branch 'upstream/main'
vselvarajijay Nov 8, 2023
843aa1e
updates
vselvarajijay Nov 8, 2023
0a2b279
Merge remote-tracking branch 'upstream/main'
vselvarajijay Nov 8, 2023
e9b11ef
updates
vselvarajijay Nov 8, 2023
9cd2e0c
breaking out npm packages
vselvarajijay Nov 8, 2023
4141a40
updates
vselvarajijay Nov 8, 2023
6dee014
published react-insights
vselvarajijay Nov 8, 2023
6ed6982
checking in test-state
vselvarajijay Nov 9, 2023
da42d80
syncing fork
vselvarajijay Nov 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updates
vselvarajijay committed Nov 5, 2023
commit e3ac5d74672cecc994efc6ee2fbb2cf5ca965ece
31 changes: 30 additions & 1 deletion examples/example-registry-web-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions examples/example-registry-web-app/package.json
Original file line number Diff line number Diff line change
@@ -4,6 +4,8 @@
"private": true,
"dependencies": {
"@akello/react": "file:../../packages/react",
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.0.18",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
54 changes: 48 additions & 6 deletions examples/example-registry-web-app/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,63 @@
import React from 'react';
import './App.css';
import {Button, WelcomeBanner, WelcomeTemplate} from '@akello/react'

import {Button, WelcomeBanner, WelcomeTemplate, RegistrySelectRow, RegistryMemberships, TopNavigation} from '@akello/react'
import AkelloLogoBlue from './assets/logos/akello-corner-logo.svg'
import AppLogo from './assets/logos/logo.svg'

const data = {
first_name: 'Vijay',
registry_list: [
{
logo: AkelloLogoBlue,
name: 'Moderate Depression',
members: 3,
patients: 143
},
{
logo: AkelloLogoBlue,
name: 'Moderate Depression',
members: 3,
patients: 143
},
{
logo: AkelloLogoBlue,
name: 'Moderate Depression',
members: 3,
patients: 143
}
]
}


export default function App() {
return (
<div>
<div className="h-fit min-h-screen bg-blue-800 ">

<TopNavigation
classNames={'px-24 bg-ak-dark-blue'}
logo={AppLogo}
profile_photo={"https://pbs.twimg.com/profile_images/679362003652055040/e3WMaSAs_400x400.jpg"}
/>
<div className="h-fit min-h-screen bg-ak-dark-blue">
<WelcomeTemplate first_name={data.first_name} bannerStyles={"text-white"}>
<div>
Child
</div>
<RegistryMemberships>
{
data.registry_list.map((registry) => {
return (
<RegistrySelectRow
logo={registry.logo}
name={registry.name}
members={registry.members}
patients={registry.patients}
onClick={(registry_id) => {
console.log('clicked registry: ' + registry_id)
}}
/>
)
})
}
</RegistryMemberships>

</WelcomeTemplate>
</div>
</div>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions examples/example-registry-web-app/src/assets/logos/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion examples/example-registry-web-app/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -10,7 +10,18 @@ module.exports = {
themes: ["light", "dark", "cupcake"],
},
theme: {
extend: {},
fontFamily: {
display: ["Satisfy", "cursive"],
},
extend: {
colors: {
'ak-light-blue': '#3081FA',
'crx-red': '#FF755F',
'ak-dark-blue': '#001338',
'ak-yellow': '#FFEC1F'
},
}

},
plugins: [require("daisyui")],
safelist: [
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
export interface RegistrySelectRowProps {
logo: string;
name: string;
members: number;
patients: number;
onClick: (registry_id: string) => void;
}
declare const RegistrySelectRow: (props: RegistrySelectRowProps) => React.JSX.Element;
export default RegistrySelectRow;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "./RegistrySelectRow";
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react';
export interface TopNavigationProps {
logo: string;
profile_photo: string;
classNames: string;
}
declare const TopNavigation: (props: TopNavigationProps) => React.JSX.Element;
export default TopNavigation;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "./TopNavigation";
2 changes: 2 additions & 0 deletions packages/react/dist/cjs/02_molecules/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default as RegistrySelectRow } from "./RegistrySelectRow";
export { default as TopNavigation } from "./TopNavigation";
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import React, { ReactNode } from 'react';
export interface RegistryMembershipsProps {
children: ReactNode;
}
declare const RegistryMemberships: (props: RegistryMembershipsProps) => React.JSX.Element;
export default RegistryMemberships;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "./RegistryMemberships";
1 change: 1 addition & 0 deletions packages/react/dist/cjs/03_organisms/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as WelcomeBanner } from "./WelcomeBanner";
export { default as RegistryMemberships } from "./RegistryMemberships";
1 change: 1 addition & 0 deletions packages/react/dist/cjs/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './01_atoms';
export * from './02_molecules';
export * from './03_organisms';
export * from './04_templates';
52 changes: 52 additions & 0 deletions packages/react/dist/cjs/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/react/dist/cjs/index.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
export interface RegistrySelectRowProps {
logo: string;
name: string;
members: number;
patients: number;
onClick: (registry_id: string) => void;
}
declare const RegistrySelectRow: (props: RegistrySelectRowProps) => React.JSX.Element;
export default RegistrySelectRow;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "./RegistrySelectRow";
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react';
export interface TopNavigationProps {
logo: string;
profile_photo: string;
classNames: string;
}
declare const TopNavigation: (props: TopNavigationProps) => React.JSX.Element;
export default TopNavigation;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "./TopNavigation";
2 changes: 2 additions & 0 deletions packages/react/dist/esm/02_molecules/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default as RegistrySelectRow } from "./RegistrySelectRow";
export { default as TopNavigation } from "./TopNavigation";
Loading