diff --git a/packages/@holaplexui-playground/package.json b/packages/@holaplexui-playground/package.json index 9233302..0223c34 100644 --- a/packages/@holaplexui-playground/package.json +++ b/packages/@holaplexui-playground/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "scripts": { - "dev": "next dev -p 3001", + "dev": "next dev -p 3003", "build": "next build", "start": "next start", "lint": "next lint" diff --git a/packages/@holaplexui-playground/pages/form.tsx b/packages/@holaplexui-playground/pages/form.tsx index 39d023e..ba03a16 100644 --- a/packages/@holaplexui-playground/pages/form.tsx +++ b/packages/@holaplexui-playground/pages/form.tsx @@ -1,4 +1,4 @@ -import { Form } from '@holaplex/ui-library-react'; +import { Form, Icon } from '@holaplex/ui-library-react'; function HidePasswordIcon({ size = 16, color = 'none', className = '' }) { return ( @@ -68,11 +68,12 @@ function ShowPasswordIcon({ size = 16, color = 'none', className = '' }) { export default function App() { return ( -
+
+ Forgot Password?
} @@ -84,6 +85,7 @@ export default function App() { hidePasswordIcon={} /> +
diff --git a/packages/@holaplexui-playground/pages/popover.tsx b/packages/@holaplexui-playground/pages/popover.tsx index fd0db26..3ad1922 100644 --- a/packages/@holaplexui-playground/pages/popover.tsx +++ b/packages/@holaplexui-playground/pages/popover.tsx @@ -3,10 +3,10 @@ import { Icon, PopoverBox } from '@holaplex/ui-library-react'; export default function App() { return (
-
+
+ } diff --git a/packages/@holaplexui-playground/styles/globals.css b/packages/@holaplexui-playground/styles/globals.css index f73b227..efa1c35 100644 --- a/packages/@holaplexui-playground/styles/globals.css +++ b/packages/@holaplexui-playground/styles/globals.css @@ -26,7 +26,7 @@ a { } .form-label { - @apply flex flex-col gap-2; + @apply flex flex-col gap-1; } .form-label-text { @@ -83,3 +83,15 @@ a { .popover { @apply rounded-md p-6 bg-black text-white flex flex-col gap-4; } + +.modal-content { + @apply flex flex-col bg-white h-full transform !overflow-visible align-middle transition-all overflow-y-auto rounded-md shadow-md max-h-screen max-w-md sm:h-auto sm:max-w-lg; +} + +.modal-close { + @apply top-1 right-1 rounded-full bg-gray-50 p-2 hover:bg-gray-100 hover:text-gray-400; +} + +.modal-title { + @apply text-lg font-medium leading-6; +} diff --git a/packages/@holaplexui-playground/tailwind.config.js b/packages/@holaplexui-playground/tailwind.config.js index bf2d2eb..4715e6a 100644 --- a/packages/@holaplexui-playground/tailwind.config.js +++ b/packages/@holaplexui-playground/tailwind.config.js @@ -2,7 +2,8 @@ module.exports = { content: [ './pages/**/*.{js,ts,jsx,tsx}', - './components/**/*.{js,ts,jsx,tsx}' + './components/**/*.{js,ts,jsx,tsx}', + './../../node_modules/@holaplex/ui-library-react/dist/index.{js,mjs}' ], theme: { extend: {} diff --git a/packages/@holaplexui-react/package.json b/packages/@holaplexui-react/package.json index 594ad53..12e9c35 100644 --- a/packages/@holaplexui-react/package.json +++ b/packages/@holaplexui-react/package.json @@ -1,7 +1,7 @@ { "name": "@holaplex/ui-library-react", "author": "Holaplex Inc.", - "version": "0.7.0", + "version": "0.8.0", "description": "Holaplex react ui library components", "private": false, "files": [ diff --git a/packages/@holaplexui-react/src/components/Form.tsx b/packages/@holaplexui-react/src/components/Form.tsx index 8524ddf..166f343 100644 --- a/packages/@holaplexui-react/src/components/Form.tsx +++ b/packages/@holaplexui-react/src/components/Form.tsx @@ -74,7 +74,7 @@ const FormInput = forwardRef(function FormInput( ref={ref as LegacyRef | undefined} type={props.type ?? 'text'} className={clsx( - 'w-full block', + 'w-full', { 'pl-12': icon, }, @@ -118,7 +118,7 @@ const FormPassword = forwardRef(function FormPassword( ref={ref as LegacyRef | undefined} type={showPassword ? 'text' : 'password'} className={clsx( - 'w-full absolute left-0 top-0', + 'w-full', { 'pl-12': icon, 'pr-12': showPasswordIcon && hidePasswordIcon, @@ -140,7 +140,7 @@ const FormPassword = forwardRef(function FormPassword( {showPasswordIcon && hidePasswordIcon && (
setShowPassword(!showPassword)} @@ -172,7 +172,7 @@ const FormSelect = forwardRef(function FormSelect( {...props} ref={ref as LegacyRef | undefined} className={clsx( - 'w-full block', + 'w-full', { 'pl-12': icon, 'pr-12': dropDownIcon, diff --git a/packages/@holaplexui-react/src/components/Modal.tsx b/packages/@holaplexui-react/src/components/Modal.tsx index f6c262b..c725daa 100644 --- a/packages/@holaplexui-react/src/components/Modal.tsx +++ b/packages/@holaplexui-react/src/components/Modal.tsx @@ -1,7 +1,7 @@ import { Dialog, Transition } from '@headlessui/react'; import { XMarkIcon } from '@heroicons/react/24/solid'; import clsx from 'clsx'; -import React, { Dispatch, Fragment, ReactNode, SetStateAction } from 'react'; +import { Dispatch, Fragment, ReactNode, SetStateAction } from 'react'; type ModalProps = { children: ReactNode; @@ -15,7 +15,7 @@ type ModalProps = { export function Modal(props: ModalProps) { return ( - props.setOpen(false)}> + props.setOpen(false)}>
@@ -59,8 +59,8 @@ export function Modal(props: ModalProps) { > props.setOpen(false)} - className="absolute -top-2 -right-2 z-50 rounded-full bg-white p-1 hover:bg-gray-100 hover:text-gray-400" + className={clsx('absolute z-50', 'modal-close')} > - {/* */} - + {props.title && ( - + {props.title} )}