Skip to content

UI #1055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 56 commits into
base: main
Choose a base branch
from
Open

UI #1055

wants to merge 56 commits into from

Conversation

tszhong0411
Copy link
Owner

@tszhong0411 tszhong0411 commented Apr 18, 2025

Description

  • Updated the image in aspect ratio demo
  • Updated to latest styles of shadcn/ui
  • Updated to cva beta
  • Updated introduction in docs
  • Updated code style from ? <component /> : null to && <component />
  • Updated to use oklch colors.
  • Updated to divide long tailwindcss classes into multiple lines
  • Added oklab and oklch to known word list.
  • Added Ark UI badges
  • Added Chart, Calendar
  • Replaced <Callout /> with <Alert />
  • Replaced <VisuallyHidden /> with sr-only
  • Removed <BlurFade /> and <BlurImage />
  • Removed unnecessary size-4 classes.
  • Removed <Progress /> which is using @ark-ui/react
  • Removed <Slider /> which is using @ark-ui/react
  • Removed <Combobox /> which is using @ark-ui/react
  • Removed <CommandFooter />
  • Renamed toaster to sonner
  • Renamed getAvatarAbbreviation() to getAbbreviation()

Copy link

changeset-bot bot commented Apr 18, 2025

🦋 Changeset detected

Latest commit: f5f990a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@tszhong0411/utils Minor
@tszhong0411/ui Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Apr 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 19, 2025 6:27am
honghongme ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 19, 2025 6:27am

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates multiple UI demos by revising component usage, updating design tokens and styling, and removing deprecated components. Key changes include:

  • Replacing old color and style patterns with updated design tokens (e.g. using oklch colors and new CSS variables).
  • Refactoring components such as Command, Combobox, and Calendar to use updated UI kit patterns.
  • Removing deprecated demos (Callout, BlurFade, BlurImage) and updating documentation accordingly.

Reviewed Changes

Copilot reviewed 195 out of 197 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
apps/docs/src/components/demos/drawer/drawer.tsx Updated fill color for demo graphics using a new CSS variable.
apps/docs/src/components/demos/command/command.tsx Replaced legacy keyboard shortcut elements with CommandShortcut.
apps/docs/src/components/demos/combobox/combobox.tsx Replaced combobox with a Popover/Command pattern and refactored state handling.
apps/docs/src/components/demos/chart/chart.tsx Introduced a new area chart demo and updated chart configuration.
apps/docs/src/components/demos/callout/(warning, error, callout) Removed Callout demos.
apps/docs/src/components/demos/calendar/(range, calendar).tsx Added new Calendar demos with range and single selection modes.
apps/docs/src/components/demos/button/(pending, icon).tsx Updated button demos to include a loader icon and simplified icon usage.
apps/docs/src/components/demos/blur-image/blur-image.tsx Removed BlurImage demo.
apps/docs/src/components/demos/blur-fade/blur-fade.tsx Removed BlurFade demo.
apps/docs/src/components/demos/aspect-ratio/aspect-ratio.tsx Updated image source and alt text for improved clarity.
apps/docs/src/components/demos/alert/(destructive, alert).tsx Added new Alert demos with distinct styling for success and error.
apps/docs/src/app/(main)/[[...slug]]/page.tsx Updated conditional rendering for link badges.
apps/docs/src/app/(main)/[[...slug]]/link-badges.tsx Refactored LinkBadges to use simplified conditional rendering.
Files not reviewed (2)
  • .cspell.json: Language not supported
  • apps/docs/package.json: Language not supported
Comments suppressed due to low confidence (1)

apps/docs/src/components/demos/drawer/drawer.tsx:112

  • Replacing 'hsl(var(--foreground))' with 'var(--primary)' may affect accessibility if the contrast is altered. Verify that this change maintains sufficient visual contrast according to the design guidelines.
fill: 'var(--primary)',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant