Skip to content

Commit

Permalink
@0.5.11 (minor): ImageBlock.props.styles is now type any (#13)
Browse files Browse the repository at this point in the history
initial published as @hanzo/ui v0.5.10
  • Loading branch information
artemis-prime authored Feb 14, 2024
1 parent 27d1137 commit 9b2a868
Show file tree
Hide file tree
Showing 194 changed files with 284 additions and 283 deletions.
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/config.json

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/prerelease-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
comment:
if: |
github.repository_owner == 'luxdefi-ui' &&
github.repository_owner == 'hanzoai-ui' &&
${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
name: Write comment to the PR
Expand All @@ -28,7 +28,7 @@ jobs:
for (const artifact of allArtifacts.data.artifacts) {
// Extract the PR number and package version from the artifact name
const match = /^npm-package-luxdefi-ui@(.*?)-pr-(\d+)/.exec(artifact.name);
const match = /^npm-package-hanzoai-ui@(.*?)-pr-(\d+)/.exec(artifact.name);
if (match) {
require("fs").appendFileSync(
Expand All @@ -49,7 +49,7 @@ jobs:
A new prerelease is available for testing:
```sh
npx luxdefi-ui@${{ env.BETA_PACKAGE_VERSION }}
npx hanzoai-ui@${{ env.BETA_PACKAGE_VERSION }}
```
- name: "Remove the autorelease label once published"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
prerelease:
if: |
github.repository_owner == 'luxdefi' &&
github.repository_owner == 'hanzoai' &&
contains(github.event.pull_request.labels.*.name, 'πŸš€ autorelease')
name: Build & Publish a beta release to NPM
runs-on: ubuntu-latest
Expand Down Expand Up @@ -56,5 +56,5 @@ jobs:
- name: Upload packaged artifact
uses: actions/upload-artifact@v2
with:
name: npm-package-luxdefi-ui@${{ steps.package-version.outputs.current-version }}-pr-${{ github.event.number }} # encode the PR number into the artifact name
name: npm-package-hanzoai-ui@${{ steps.package-version.outputs.current-version }}-pr-${{ github.event.number }} # encode the PR number into the artifact name
path: packages/cli/dist/index.js
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
release:
if: ${{ github.repository_owner == 'luxdefi-ui' }}
if: ${{ github.repository_owner == 'hanzoai-ui' }}
name: Create a PR for release workflow
runs-on: ubuntu-latest
steps:
Expand Down
42 changes: 25 additions & 17 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
MIT License
BSD License

Copyright (c) 2023 Lux Partners Limited
Copyright (c) 2015-present, Hanzo, Inc.
All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name Hanzo nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# @luxdefi/ui
# @hanzoai/ui

Accessible and customizable components that you can copy and paste into your DeFi apps.

![hero](apps/www/public/og.jpg)

## Documentation

Visit http://ui.lux.finance to view the documentation.
Visit http://ui.hanzo.ai to view the documentation.

## Contributing

Please read the [contributing guide](/CONTRIBUTING.md).

## License

Licensed under the [MIT license](https://github.com/luxdefi/ui/blob/main/LICENSE.md).
Licensed under the [BSD 3 Clause](./LICENSE.md) License.
2 changes: 1 addition & 1 deletion apps/www/__registry__/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
> Files inside this directory is autogenerated by `./scripts/build-registry.ts`. **Do not edit them manually.** - luxdefi
> Files inside this directory is autogenerated by `./scripts/build-registry.ts`. **Do not edit them manually.** - hanzoai
2 changes: 1 addition & 1 deletion apps/www/app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export async function generateMetadata({
title: doc.title,
description: doc.description,
images: [siteConfig.ogImage],
creator: "@luxdefi",
creator: "@hanzoai",
},
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/www/app/examples/cards/components/github-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function DemoGithub() {
<Card>
<CardHeader className="grid grid-cols-[1fr_110px] items-start gap-4 space-y-0">
<div className="space-y-1">
<CardTitle>luxdefi/ui</CardTitle>
<CardTitle>hanzoai/ui</CardTitle>
<CardDescription>
Beautifully designed components that you can copy and paste into
your apps. Accessible. Customizable. Open Source.
Expand Down
4 changes: 2 additions & 2 deletions apps/www/app/examples/dashboard/components/user-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ export function UserNav() {
<DropdownMenuTrigger asChild>
<Button variant="ghost" className="relative h-8 w-8 rounded-full">
<Avatar className="h-8 w-8">
<AvatarImage src="/avatars/01.png" alt="@luxdefi" />
<AvatarImage src="/avatars/01.png" alt="@hanzoai" />
<AvatarFallback>SC</AvatarFallback>
</Avatar>
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-56" align="end" forceMount>
<DropdownMenuLabel className="font-normal">
<div className="flex flex-col space-y-1">
<p className="text-sm font-medium leading-none">luxdefi</p>
<p className="text-sm font-medium leading-none">hanzoai</p>
<p className="text-xs leading-none text-muted-foreground">
[email protected]
</p>
Expand Down
6 changes: 3 additions & 3 deletions apps/www/app/examples/forms/profile-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ type ProfileFormValues = z.infer<typeof profileFormSchema>
const defaultValues: Partial<ProfileFormValues> = {
bio: "I own a computer.",
urls: [
{ value: "https://luxdefi.com" },
{ value: "http://twitter.com/luxdefi" },
{ value: "https://hanzo.ai" },
{ value: "http://twitter.com/hanzoai" },
],
}

Expand Down Expand Up @@ -95,7 +95,7 @@ export function ProfileForm() {
<FormItem>
<FormLabel>Username</FormLabel>
<FormControl>
<Input placeholder="luxdefi" {...field} />
<Input placeholder="hanzoai" {...field} />
</FormControl>
<FormDescription>
This is your public display name. It can be your real name or a
Expand Down
4 changes: 2 additions & 2 deletions apps/www/app/examples/tasks/components/user-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ export function UserNav() {
<DropdownMenuTrigger asChild>
<Button variant="ghost" className="relative h-8 w-8 rounded-full">
<Avatar className="h-9 w-9">
<AvatarImage src="/avatars/03.png" alt="@luxdefi" />
<AvatarImage src="/avatars/03.png" alt="@hanzoai" />
<AvatarFallback>SC</AvatarFallback>
</Avatar>
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-56" align="end" forceMount>
<DropdownMenuLabel className="font-normal">
<div className="flex flex-col space-y-1">
<p className="text-sm font-medium leading-none">luxdefi</p>
<p className="text-sm font-medium leading-none">hanzoai</p>
<p className="text-xs leading-none text-muted-foreground">
[email protected]
</p>
Expand Down
8 changes: 4 additions & 4 deletions apps/www/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ export const metadata: Metadata = {
],
authors: [
{
name: "luxdefi",
url: "https://ui.lux.network",
name: "hanzoai",
url: "https://ui.hanzo.ai",
},
],
creator: "luxdefi",
creator: "hanzoai",
openGraph: {
type: "website",
locale: "en_US",
Expand All @@ -56,7 +56,7 @@ export const metadata: Metadata = {
title: siteConfig.name,
description: siteConfig.description,
images: [siteConfig.ogImage],
creator: "@luxdefi",
creator: "@hanzoai",
},
icons: {
icon: "/favicon.ico",
Expand Down
14 changes: 7 additions & 7 deletions apps/www/components/examples-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,37 +16,37 @@ const examples = [
{
name: "Dashboard",
href: "/examples/dashboard",
code: "https://github.com/luxdefi/ui/tree/main/apps/www/app/examples/dashboard",
code: "https://github.com/hanzoai/ui/tree/main/apps/www/app/examples/dashboard",
},
{
name: "Cards",
href: "/examples/cards",
code: "https://github.com/luxdefi/ui/tree/main/apps/www/app/examples/cards",
code: "https://github.com/hanzoai/ui/tree/main/apps/www/app/examples/cards",
},
{
name: "Tasks",
href: "/examples/tasks",
code: "https://github.com/luxdefi/ui/tree/main/apps/www/app/examples/tasks",
code: "https://github.com/hanzoai/ui/tree/main/apps/www/app/examples/tasks",
},
{
name: "Playground",
href: "/examples/playground",
code: "https://github.com/luxdefi/ui/tree/main/apps/www/app/examples/playground",
code: "https://github.com/hanzoai/ui/tree/main/apps/www/app/examples/playground",
},
{
name: "Forms",
href: "/examples/forms",
code: "https://github.com/luxdefi/ui/tree/main/apps/www/app/examples/forms",
code: "https://github.com/hanzoai/ui/tree/main/apps/www/app/examples/forms",
},
{
name: "Music",
href: "/examples/music",
code: "https://github.com/luxdefi/ui/tree/main/apps/www/app/examples/music",
code: "https://github.com/hanzoai/ui/tree/main/apps/www/app/examples/music",
},
{
name: "Authentication",
href: "/examples/authentication",
code: "https://github.com/luxdefi/ui/tree/main/apps/www/app/examples/authentication",
code: "https://github.com/hanzoai/ui/tree/main/apps/www/app/examples/authentication",
},
]

Expand Down
4 changes: 2 additions & 2 deletions apps/www/config/site.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const siteConfig = {
name: "luxdefi/ui",
url: "https://ui.luxdefi.com",
ogImage: "https://ui.luxdefi.com/og.jpg",
url: "https://ui.hanzo.ai",
ogImage: "https://ui.hanzo.ai/og.jpg",
description:
"Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.",
links: {
Expand Down
4 changes: 2 additions & 2 deletions apps/www/content/docs/about.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Powered by amazing open source projects.

## About

[ui.luxdefi.com](https://ui.luxdefi.com) is a project by [luxdefi](https://luxdefi.com).
[ui.hanzo.ai](https://ui.hanzo.ai) is a project by [luxdefi](https://hanzo.ai).

## Credits

Expand All @@ -17,4 +17,4 @@ description: Powered by amazing open source projects.

## License

MIT Β© [luxdefi](https://luxdefi.com)
MIT Β© [luxdefi](https://hanzo.ai)
4 changes: 2 additions & 2 deletions apps/www/content/docs/components-json.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ See the <Link href="/docs/cli">CLI section</Link> for more information.

## $schema

You can see the JSON Schema for `components.json` [here](https://ui.luxdefi.com/schema.json).
You can see the JSON Schema for `components.json` [here](https://ui.hanzo.ai/schema.json).

```json title="components.json"
{
"$schema": "https://ui.luxdefi.com/schema.json"
"$schema": "https://ui.hanzo.ai/schema.json"
}
```

Expand Down
2 changes: 1 addition & 1 deletion apps/www/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Which frameworks are supported?
</AccordionTrigger>
<AccordionContent>

You can use any framework that supports React. [Next.js](https://ui.luxdefi.com/docs/installation/next), [Astro](https://ui.luxdefi.com/docs/installation/astro), [Remix](https://ui.luxdefi.com/docs/installation/remix), [Gatsby](https://ui.luxdefi.com/docs/installation/gatsby) etc.
You can use any framework that supports React. [Next.js](https://ui.hanzo.ai/docs/installation/next), [Astro](https://ui.hanzo.ai/docs/installation/astro), [Remix](https://ui.hanzo.ai/docs/installation/remix), [Gatsby](https://ui.hanzo.ai/docs/installation/gatsby) etc.

</AccordionContent>
</AccordionItem>
Expand Down
2 changes: 1 addition & 1 deletion apps/www/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@luxdefi/ui-demo-www",
"name": "@hanzoai/ui-demo-www",
"version": "0.0.1",
"private": true,
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@luxdefi/ui-mono",
"name": "@hanzo/ui-mono",
"version": "0.0.1",
"license": "MIT",
"license": "BSD-3-Clause",
"type": "module",
"author": {
"name": "@lx/ui",
"url": "https://twitter.com/luxdefi"
"name": "hanzoai dev dudes",
"url": "https://twitter.com/hanzoai"
},
"scripts": {
"build": "turbo run build",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@ interface ImageBlock extends Block, ImageDef {
sizes?: string
/** if true, any alignement specifiers are ignored */
fill?: boolean
style?: {
objectFit?: string
objectPosition?: string
width?: number | string
height?: number | string
}
style?: any
}
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'

import type { LinkDef, SiteDef } from '../types'
import { Copyright } from '../common'
import { Copyright } from '.'
import { NavItems } from '../primitives'
import { legal } from '../siteDef/footer/legal'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'

import type { SiteDef } from '../../types'
import { NavItems } from '../../primitives'
import { Icons, DrawerMenu, Logo } from '../../common'
import { Icons, DrawerMenu, Logo } from '..'
import { cn } from '../../util'

import MobileNav from './mobile-nav'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Link from 'next/link'

import { type TShirtSize } from '../types'
import { cn } from '../util'
import { Icons } from '../common'
import { Icons } from '.'

const Logo: React.FC<{
size?: TShirtSize
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 9b2a868

Please sign in to comment.