Skip to content

Commit

Permalink
feat: adjust playground add avatar classname for styling
Browse files Browse the repository at this point in the history
  • Loading branch information
kespinola committed Jan 13, 2023
1 parent cbc1f9c commit f44e950
Show file tree
Hide file tree
Showing 23 changed files with 48 additions and 176 deletions.
2 changes: 1 addition & 1 deletion packages/@holaplexui-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@holaplexui/react": "*",
"@holaplex/ui-libarary-react": "*",
"@next/font": "13.1.1",
"@types/node": "18.11.18",
"@types/react": "18.0.26",
Expand Down
2 changes: 1 addition & 1 deletion packages/@holaplexui-playground/pages/avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Avatar, AvatarSize } from '@holaplexui/react';
import { Avatar, AvatarSize } from '@holaplex/ui-library-react';

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/@holaplexui-playground/pages/buttongroup.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ButtonGroup } from '@holaplexui/react';
import { ButtonGroup } from '@holaplex/ui-library-react';
import { useState } from 'react';

export default function App() {
Expand Down
2 changes: 1 addition & 1 deletion packages/@holaplexui-playground/pages/buttons.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button } from '@holaplexui/react';
import { Button } from '@holaplex/ui-library-react';

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/@holaplexui-playground/pages/flex.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Flex, FlexDirection } from '@holaplexui/react';
import { Flex, FlexDirection } from '@holaplex/ui-library-react';

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/@holaplexui-playground/pages/grid.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Row, Col } from '@holaplexui/react';
import { Row, Col } from '@holaplex/ui-library-react';

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/@holaplexui-playground/pages/icons.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icon } from '@holaplexui/react';
import { Icon } from '@holaplex/ui-library-react';

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/@holaplexui-playground/pages/image.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Img, ImgBackdrop } from '@holaplexui/react';
import { Img, ImgBackdrop } from '@holaplex/ui-library-react';

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/@holaplexui-playground/pages/list.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { List, ListGridSize } from '@holaplexui/react';
import { List, ListGridSize } from '@holaplex/ui-library-react';
import Image from 'next/image';
import { useState } from 'react';

Expand Down
2 changes: 1 addition & 1 deletion packages/@holaplexui-playground/pages/modal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Modal } from '@holaplexui/react';
import { Modal } from '@holaplex/ui-library-react';
import { useState } from 'react';

export default function App() {
Expand Down
2 changes: 1 addition & 1 deletion packages/@holaplexui-playground/pages/price.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Price } from '@holaplexui/react';
import { Price } from '@holaplex/ui-library-react';

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/@holaplexui-playground/pages/search.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import clsx from 'clsx';
import { Search } from '@holaplexui/react';
import { Search } from '@holaplex/ui-library-react';
import { useRef } from 'react';

export default function App() {
Expand Down
2 changes: 1 addition & 1 deletion packages/@holaplexui-playground/pages/select.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Select } from '@holaplexui/react';
import { Select } from '@holaplex/ui-library-react';
import { useState } from 'react';

export default function App() {
Expand Down
2 changes: 1 addition & 1 deletion packages/@holaplexui-playground/pages/share.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Share } from '@holaplexui/react';
import { Share } from '@holaplex/ui-library-react';

export default function App() {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/@holaplexui-playground/pages/spinners.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Spinner } from '@holaplexui/react';
import { Spinner } from '@holaplex/ui-library-react';

export default function App() {
return (
Expand Down
30 changes: 30 additions & 0 deletions packages/@holaplexui-playground/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,33 @@ a {
color-scheme: dark;
}
}

.spinner-border {
vertical-align: -0.125em;
border: solid currentColor;
border-right-color: transparent;
}

.form-label {
@apply mb-6 flex flex-col gap-2;
}

.avatar {
@apply bg-blue-500;
}

.form-label-text {
@apply font-semibold text-white;
}

.form-error {
@apply whitespace-nowrap text-left text-sm text-red-500;
}

.form-input {
@apply flex w-full flex-row items-center justify-start rounded-md border border-gray-800 bg-gray-800 p-2 text-white focus-within:border-white focus:ring-0 focus:ring-offset-0;
}

.form-input-error {
@apply border-red-500;
}
13 changes: 0 additions & 13 deletions packages/@holaplexui-react/index.html

This file was deleted.

2 changes: 1 addition & 1 deletion packages/@holaplexui-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@holaplex/ui-library-react",
"author": "Holaplex Inc.",
"version": "0.2.0",
"version": "0.3.0",
"description": "Holaplex react ui library components",
"private": false,
"type": "module",
Expand Down
36 changes: 0 additions & 36 deletions packages/@holaplexui-react/src/App.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions packages/@holaplexui-react/src/components/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ export function Avatar({ src, circle, size, handle }: AvatarProps) {
src={src}
alt="avatar"
className={clsx(
'aspect-square object-cover',
'avatar aspect-square object-cover',
'duration-100 ease-out group-hover:origin-center group-hover:scale-105 group-hover:ease-in'
)}
/>
) : (
<div
className={clsx(
'aspect-square',
'bg-theme-default text-white',
'avatar',
'font-semibold',
'duration-100 ease-out group-hover:origin-center group-hover:scale-105 group-hover:ease-in',
'flex flex-col justify-center items-center',
Expand Down
25 changes: 0 additions & 25 deletions packages/@holaplexui-react/src/components/style.css
Original file line number Diff line number Diff line change
@@ -1,25 +0,0 @@
.spinner-border {
vertical-align: -0.125em;
border: solid currentColor;
border-right-color: transparent;
}

.form-label {
@apply mb-6 flex flex-col gap-2;
}

.form-label-text {
@apply font-semibold text-white;
}

.form-error {
@apply whitespace-nowrap text-left text-sm text-red-500;
}

.form-input {
@apply flex w-full flex-row items-center justify-start rounded-md border border-gray-800 bg-gray-800 p-2 text-white focus-within:border-white focus:ring-0 focus:ring-offset-0;
}

.form-input-error {
@apply border-red-500;
}
74 changes: 0 additions & 74 deletions packages/@holaplexui-react/src/index.css

This file was deleted.

10 changes: 0 additions & 10 deletions packages/@holaplexui-react/src/main.tsx

This file was deleted.

0 comments on commit f44e950

Please sign in to comment.