Skip to content

Commit

Permalink
chore: removed hotsurf inner pakage
Browse files Browse the repository at this point in the history
  • Loading branch information
yungblud committed Feb 6, 2024
1 parent 2ec2393 commit aa05934
Show file tree
Hide file tree
Showing 60 changed files with 232 additions and 9,406 deletions.
7 changes: 4 additions & 3 deletions packages/accounts-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,22 @@
"react-native-web": "^0.18.12",
"styled-components": "6.1.8",
"react-native": "^0.70.6",
"fstvllife-design-system": "0.2.7-rc.1"
"@coldsurfers/hotsurf": "0.2.8-rc.5"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/react-native": "0.70.6",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.53.0",
"eslint": "^8.56.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-coldsurfers": "^1.1.3",
"eslint-config-next": "14.1.0",
"eslint-config-prettier": "^8.10.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"prettier": "^3.2.4",
Expand Down
10 changes: 3 additions & 7 deletions packages/accounts-client/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

import type { Metadata } from 'next'
import StyledComponentsRegistry from '../registry/StyledComponentsRegistry'
import StyleSheetRegistry from '../registry/StyleSheetRegistry'
import StyledRegistry from '../registry/StyledComponentsRegistry'

export const metadata: Metadata = {
title: 'Create Next App',
Expand All @@ -17,11 +15,9 @@ export default function RootLayout({
return (
<html lang="en">
<body>
<StyledComponentsRegistry>
<StyleSheetRegistry>
{children}
</StyleSheetRegistry>
</StyledComponentsRegistry>
<StyledComponentsRegistry>
<StyleSheetRegistry>{children}</StyleSheetRegistry>
</StyledComponentsRegistry>
</body>
</html>
)
Expand Down
21 changes: 17 additions & 4 deletions packages/accounts-client/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
'use client'

import {Button, LoginForm} from 'fstvllife-design-system'
import { Button, LoginForm } from '@coldsurfers/hotsurf'
import { useState } from 'react'
import styled from 'styled-components'
import { View } from 'react-native'
import { Modal } from '../components/Modal'

const Wrapper = styled.section`
position: absolute;
Expand All @@ -16,15 +19,25 @@ const Wrapper = styled.section`
display: flex;
flex-direction: column;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
box-shadow:
0 1px 3px rgba(0, 0, 0, 0.12),
0 1px 2px rgba(0, 0, 0, 0.24);
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
`


export default function Home() {
const [visible, setVisible] = useState(false)
return (
<Wrapper>
<LoginForm formTitle="ColdSurf Accounts" onPressLoginButton={() => {}} />
<LoginForm
formTitle="ColdSurf Accounts"
onPressLoginButton={() => setVisible(true)}
/>
<Modal visible={visible}>
<View style={{ width: 300, height: 250 }}>
<Button text="Modal Btn" onPress={() => setVisible(false)} />
</View>
</Modal>
</Wrapper>
)
}
31 changes: 31 additions & 0 deletions packages/accounts-client/src/components/Modal.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { PropsWithChildren } from 'react'
import { Modal as RNModal, View } from 'react-native'

interface ModalProps {
visible?: boolean
}

export const Modal = ({
children,
visible = false,
}: PropsWithChildren<ModalProps>) => (
<>
<RNModal visible={visible} style={{ flex: 1 }} transparent>
<View
style={{
position: 'absolute',
zIndex: 99,
top: 0,
left: 0,
right: 0,
bottom: 0,
backgroundColor: 'rgba(0, 0, 0, 0.5)',
alignItems: 'center',
justifyContent: 'center',
}}
>
{children}
</View>
</RNModal>
</>
)
10 changes: 8 additions & 2 deletions packages/accounts-client/src/registry/StyleSheetRegistry.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
// @ts-nocheck

'use client'

import { useServerInsertedHTML } from 'next/navigation'
import { StyleSheet } from 'react-native'

export default function StyleSheetRegistry({ children }: { children: React.ReactNode }) {
export default function StyleSheetRegistry({
children,
}: {
children: React.ReactNode
}) {
useServerInsertedHTML(() => {
const sheet = StyleSheet.getSheet()
return (
Expand All @@ -14,4 +20,4 @@ export default function StyleSheetRegistry({ children }: { children: React.React
)
})
return <>{children}</>
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ export default function StyledComponentsRegistry({
{children}
</StyleSheetManager>
)
}
}
1 change: 0 additions & 1 deletion packages/billets-admin-client/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const nextConfig = {

return config
},
transpilePackages: ['@coldsurfers/hotsurf'],
compiler: {
styledComponents: true,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/billets-admin-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@types/react-dom": "18.0.10",
"date-fns": "^2.29.3",
"eslint-config-next": "13.1.1",
"@coldsurfers/hotsurf": "0.2.6",
"@coldsurfers/hotsurf": "0.2.8-rc.5",
"graphql": "^16.6.0",
"next": "13.1.1",
"react": "18.2.0",
Expand Down
37 changes: 0 additions & 37 deletions packages/hotsurf/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions packages/hotsurf/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions packages/hotsurf/.prettierrc.json

This file was deleted.

23 changes: 0 additions & 23 deletions packages/hotsurf/alias.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/hotsurf/commitlint.config.cjs

This file was deleted.

65 changes: 0 additions & 65 deletions packages/hotsurf/package.json

This file was deleted.

16 changes: 0 additions & 16 deletions packages/hotsurf/rollup.config.native.js

This file was deleted.

22 changes: 0 additions & 22 deletions packages/hotsurf/rollup.config.web.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/hotsurf/src/BottomSticky/index.ts

This file was deleted.

Loading

0 comments on commit aa05934

Please sign in to comment.