Skip to content

Commit

Permalink
Moved component library
Browse files Browse the repository at this point in the history
  • Loading branch information
sivert-io committed Mar 15, 2023
1 parent 9f99343 commit 69b7e6f
Show file tree
Hide file tree
Showing 32 changed files with 730 additions and 19 deletions.
3 changes: 1 addition & 2 deletions dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"react-icons": "^4.7.1",
"typescript": "4.9.4",
"@gryt/ui": "link:../dist"
"typescript": "4.9.4"
},
"devDependencies": {
"autoprefixer": "^10.4.13",
Expand Down
Binary file added dev/public/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dev/public/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dev/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dev/public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dev/public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/public/favicon.ico
Binary file not shown.
Binary file added dev/public/images/cowboy.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dev/public/images/duck.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dev/public/images/gryt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dev/public/images/meta/index.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dev/public/images/minimal.jpeg
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.
1 change: 0 additions & 1 deletion dev/public/next.svg

This file was deleted.

1 change: 1 addition & 0 deletions dev/public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
1 change: 0 additions & 1 deletion dev/public/thirteen.svg

This file was deleted.

1 change: 0 additions & 1 deletion dev/public/vercel.svg

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
63 changes: 63 additions & 0 deletions dev/src/pages/components/avatars.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import { Avatar } from '@/index'
import React from 'react'
import { ComponentsWrapper } from '..'

export default function badges() {
return (
<ComponentsWrapper>
<div
className='grid gap-9 place-content-center w-full'
style={{
gridTemplateColumns: 'repeat(auto-fit, 64px)',
gridAutoFlow: 'dense'
}}
>
<div className='flex flex-col gap-2 items-center'>
<h1 className='font-semibold text-lg'>Sqround</h1>
<Avatar src='/images/duck.jpeg' status='online' />
</div>

<div className='flex flex-col gap-2 items-center'>
<h1 className='font-semibold text-lg'>Round</h1>
<Avatar src='/images/duck.jpeg' type='round' />
</div>

<div className='flex flex-col gap-2 items-center'>
<h1 className='font-semibold text-lg'>Square</h1>
<Avatar src='/images/duck.jpeg' status='ingame' type='square' />
</div>
</div>

<div className='flex flex-col gap-2 place-items-center w-full'>
<h1 className='font-semibold text-lg'>Grid of avatars</h1>

<div
className='grid gap-4 place-content-center w-full'
style={{
gridTemplateColumns: 'repeat(6, 64px)',
gridAutoFlow: 'dense'
}}
>
<Avatar src='/images/duck.jpeg' status='online' />
<Avatar src='/images/duck.jpeg' status='away' />
<Avatar src='/images/duck.jpeg' status='ingame' />
<Avatar src='/images/duck.jpeg' status='online' />
<Avatar src='/images/duck.jpeg' status='busy' />
<Avatar src='/images/duck.jpeg' status='offline' />
<Avatar src='/images/duck.jpeg' status='away' />
<Avatar src='/images/duck.jpeg' status='busy' />
<Avatar src='/images/duck.jpeg' status='ingame' />
<Avatar src='/images/duck.jpeg' status='online' />
<Avatar src='/images/duck.jpeg' status='busy' />
<Avatar src='/images/duck.jpeg' status='online' />
<Avatar src='/images/duck.jpeg' status='away' />
<Avatar src='/images/duck.jpeg' status='ingame' />
<Avatar src='/images/duck.jpeg' status='offline' />
<Avatar src='/images/duck.jpeg' status='online' />
<Avatar src='/images/duck.jpeg' status='away' />
<Avatar src='/images/duck.jpeg' status='offline' />
</div>
</div>
</ComponentsWrapper>
)
}
118 changes: 118 additions & 0 deletions dev/src/pages/components/badges.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
import {
BsCalendarEventFill,
BsCartFill,
BsCheckCircleFill,
BsDoorOpenFill,
BsExclamationTriangleFill,
BsFillExclamationCircleFill,
BsHandIndexFill,
BsInfoSquareFill,
BsXCircleFill
} from 'react-icons/bs'
import React from 'react'
import { ComponentsWrapper } from '..'
import { Badge } from '@/index'

export default function badges() {
return (
<ComponentsWrapper>
<div
className='grid gap-9 place-content-center w-full'
style={{
gridTemplateColumns: 'repeat(auto-fit, 280px)',
gridAutoFlow: 'dense'
}}
>
<div className='flex flex-col gap-2 items-center'>
<h1 className='font-semibold text-lg'>Regular</h1>
<Badge>Normal</Badge>
<Badge type='badge-primary'>Primary</Badge>
<Badge type='badge-secondary'>Secondary</Badge>
<Badge type='badge-accent'>Accent</Badge>
<Badge type='badge-ghost'>Ghost</Badge>
<Badge type='badge-outline'>Outline</Badge>
<Badge type='badge-error'>Error</Badge>
<Badge type='badge-warning'>Warning</Badge>
<Badge type='badge-info'>Info</Badge>
<Badge type='badge-success'>Success</Badge>
</div>

<div className='flex flex-col gap-2 items-center'>
<h1 className='font-semibold text-lg'>Icon and text</h1>
<Badge>
<BsCartFill className='w-4 h-4' /> Normal
</Badge>
<Badge type='badge-primary'>
<BsHandIndexFill className='w-4 h-4' /> Primary
</Badge>
<Badge type='badge-secondary'>
<BsCheckCircleFill className='w-4 h-4' />
Secondary
</Badge>
<Badge type='badge-accent'>
<BsXCircleFill className='w-4 h-4' />
Accent
</Badge>
<Badge type='badge-ghost'>
<BsCalendarEventFill className='w-4 h-4' />
Ghost
</Badge>
<Badge type='badge-outline'>
<BsDoorOpenFill className='w-4 h-4' />
Outline
</Badge>
<Badge type='badge-error'>
<BsExclamationTriangleFill className='w-4 h-4' />
Error
</Badge>
<Badge type='badge-warning'>
<BsFillExclamationCircleFill className='w-4 h-4' />
Warning
</Badge>
<Badge type='badge-info'>
<BsInfoSquareFill className='w-4 h-4' />
Info
</Badge>
<Badge type='badge-success'>
<BsCheckCircleFill className='w-4 h-4' />
Success
</Badge>
</div>

<div className='flex flex-col gap-2 items-center'>
<h1 className='font-semibold text-lg'>Icons only</h1>
<Badge>
<BsCartFill className='w-4 h-4' />
</Badge>
<Badge type='badge-primary'>
<BsHandIndexFill className='w-4 h-4' />
</Badge>
<Badge type='badge-secondary'>
<BsCheckCircleFill className='w-4 h-4' />
</Badge>
<Badge type='badge-accent'>
<BsXCircleFill className='w-4 h-4' />
</Badge>
<Badge type='badge-ghost'>
<BsCalendarEventFill className='w-4 h-4' />
</Badge>
<Badge type='badge-outline'>
<BsDoorOpenFill className='w-4 h-4' />
</Badge>
<Badge type='badge-error'>
<BsExclamationTriangleFill className='w-4 h-4' />
</Badge>
<Badge type='badge-warning'>
<BsFillExclamationCircleFill className='w-4 h-4' />
</Badge>
<Badge type='badge-info'>
<BsInfoSquareFill className='w-4 h-4' />
</Badge>
<Badge type='badge-success'>
<BsCheckCircleFill className='w-4 h-4' />
</Badge>
</div>
</div>
</ComponentsWrapper>
)
}
143 changes: 143 additions & 0 deletions dev/src/pages/components/buttons.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
import {
BsCalendarEventFill,
BsCartFill,
BsCheckCircleFill,
BsDoorOpenFill,
BsExclamationTriangleFill,
BsFillExclamationCircleFill,
BsHandIndexFill,
BsInfoSquareFill,
BsLink,
BsXCircleFill
} from 'react-icons/bs'
import React from 'react'
import { ComponentsWrapper } from '..'
import { Button } from '@/index'

export default function buttons() {
return (
<ComponentsWrapper>
<div
className='grid gap-9 place-content-center w-full'
style={{
gridTemplateColumns: 'repeat(auto-fit, 280px)',
gridAutoFlow: 'dense'
}}
>
<div className='flex flex-col gap-2 items-center'>
<h1 className='font-semibold text-lg'>Regular</h1>
<Button>Normal</Button>
<Button type='btn-primary'>Primary</Button>
<Button type='btn-secondary'>Secondary</Button>
<Button type='btn-accent'>Accent</Button>
<Button type='btn-ghost'>Ghost</Button>
<Button type='btn-outline'>Outline</Button>
<Button type='btn-active'>Active</Button>
<Button type='btn-disabled'>Disabled</Button>
<Button type='btn-error'>Error</Button>
<Button type='btn-warning'>Warning</Button>
<Button type='btn-info'>Info</Button>
<Button type='btn-success'>Success</Button>
<Button type='btn-link'>Link</Button>
</div>

<div className='flex flex-col gap-2 items-center'>
<h1 className='font-semibold text-lg'>Icon and text</h1>
<Button>
<BsCartFill className='w-4 h-4' /> Normal
</Button>
<Button type='btn-primary'>
<BsHandIndexFill className='w-4 h-4' /> Primary
</Button>
<Button type='btn-secondary'>
<BsCheckCircleFill className='w-4 h-4' />
Secondary
</Button>
<Button type='btn-accent'>
<BsXCircleFill className='w-4 h-4' />
Accent
</Button>
<Button type='btn-ghost'>
<BsCalendarEventFill className='w-4 h-4' />
Ghost
</Button>
<Button type='btn-outline'>
<BsDoorOpenFill className='w-4 h-4' />
Outline
</Button>
<Button type='btn-active'>
<BsDoorOpenFill className='w-4 h-4' />
Active
</Button>
<Button type='btn-disabled'>
<BsDoorOpenFill className='w-4 h-4' />
Disabled
</Button>
<Button type='btn-error'>
<BsExclamationTriangleFill className='w-4 h-4' />
Error
</Button>
<Button type='btn-warning'>
<BsFillExclamationCircleFill className='w-4 h-4' />
Warning
</Button>
<Button type='btn-info'>
<BsInfoSquareFill className='w-4 h-4' />
Info
</Button>
<Button type='btn-success'>
<BsCheckCircleFill className='w-4 h-4' />
Success
</Button>
<Button type='btn-link'>
<BsLink className='w-4 h-4' />
Link
</Button>
</div>

<div className='flex flex-col gap-2 items-center'>
<h1 className='font-semibold text-lg'>Icons only</h1>
<Button iconOnly='btn-square'>
<BsCartFill className='w-4 h-4' />
</Button>
<Button type='btn-primary' iconOnly='btn-square'>
<BsHandIndexFill className='w-4 h-4' />
</Button>
<Button type='btn-secondary' iconOnly='btn-square'>
<BsCheckCircleFill className='w-4 h-4' />
</Button>
<Button type='btn-accent' iconOnly='btn-square'>
<BsXCircleFill className='w-4 h-4' />
</Button>
<Button type='btn-ghost' iconOnly='btn-square'>
<BsCalendarEventFill className='w-4 h-4' />
</Button>
<Button type='btn-outline' iconOnly='btn-square'>
<BsDoorOpenFill className='w-4 h-4' />
</Button>
<Button type='btn-active' iconOnly='btn-square'>
<BsDoorOpenFill className='w-4 h-4' />
</Button>
<Button type='btn-disabled' iconOnly='btn-square'>
<BsDoorOpenFill className='w-4 h-4' />
</Button>
<Button type='btn-error' iconOnly='btn-square'>
<BsExclamationTriangleFill className='w-4 h-4' />
</Button>
<Button type='btn-warning' iconOnly='btn-square'>
<BsFillExclamationCircleFill className='w-4 h-4' />
</Button>
<Button type='btn-info' iconOnly='btn-square'>
<BsInfoSquareFill className='w-4 h-4' />
</Button>
<Button type='btn-success' iconOnly='btn-square'>
<BsCheckCircleFill className='w-4 h-4' />
</Button>
<Button type='btn-link' iconOnly='btn-square'>
<BsLink className='w-4 h-4' />
</Button>
</div>
</div>
</ComponentsWrapper>
)
}
Loading

1 comment on commit 69b7e6f

@vercel
Copy link

@vercel vercel bot commented on 69b7e6f Mar 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

gryt-ui – ./

gryt-ui-git-main-gryt.vercel.app
gryt-ui.vercel.app
gryt-ui-gryt.vercel.app

Please sign in to comment.