Skip to content

Number field, swatch and gallery thumbnails for storefronts, on data-slot 1.1.3 - #343

Merged
silveltman merged 32 commits into
mainfrom
t3/fulldev-ui-upstream-components
Nov 26, 2026
Merged

silveltman merged 32 commits into
mainfrom
t3/fulldev-ui-upstream-components

Conversation

@silveltman

@silveltman silveltman commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

The new Shopify theme (fulldotdev/liquid-template#23) had to draw its own quantity picker, color swatches, product gallery, product card, cart line and filter panel, because Fulldev UI lacked them. This brings Fulldev UI up to date with data-slot and shadcn/ui and adds the parts that belong in a component library, on Astro, React and native Liquid.

In the library, on all three platforms

  • Number field, for quantities. shadcn/ui has none, so it follows shadcn's input group pattern and data-slot's choice of a native <input type="number">; React uses Base UI's NumberField. The buttons step the input as its arrow keys do, fire input and change, and are disabled when a step would not change the value.
  • Swatch: a color or image dot for option toggles and filter labels.
  • Carousel indicator: data-slot's indicator part as a gallery thumbnail. In Liquid it can link to its slide, so it also works without JavaScript.

Left in the theme

Product card, cart line and totals, filter panel and active filter chips, the search result row and the sold-out strike-through state. They combine existing parts (card, item, field, checkbox, badge) with Shopify logic; shadcn/ui would make them blocks, not components.

Upstream and fixes

  • @data-slot/* 1.1.3 (two performance fixes) and the shadcn CLI 4.23.1. shadcn/ui's components and styles have not changed since the last sync, so nothing else needed porting.
  • Liquid: the native select's arrow no longer covers its text, and an input group addon at the start no longer touches the border.

Next for the theme

liquid-template can swap its own quantity input, swatches and gallery thumbnails for these parts once this is released.

vp run check, the build, 33 unit tests and 74 browser tests pass, Liquid in Chromium, Firefox and WebKit.

Council review

Rounds: 12

Delegate Round 1 Round 2 Round 3 Round 4 Round 5 Round 6 Round 7 Round 8 Round 9 Round 10 Round 11 Round 12
Claude Opus 8/10 8.5/10 8.5/10 9/10 9.5/10 10/10 9.5/10 9.5/10 9.5/10 10/10 10/10 not asked
GPT Sol 7/10 7/10 7.5/10 8/10 8.5/10 9/10 9.5/10 9.5/10 9.5/10 9.5/10 9.5/10 10/10
Gemini Neon 6/10 7/10 9/10 9/10 9.5/10 9.5/10 9.5/10 10/10 10/10 10/10 10/10 not asked
Muse Wonder Full 8/10 7/10 8.5/10 8.5/10 9/10 9.5/10 9.5/10 10/10 10/10 10/10 10/10 not asked

Round 12 re-checked only GPT Sol's last finding, a demo detail.

Created with Claude Opus 5.5 in Claude Code.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

silveltman and others added 30 commits November 26, 2026 17:02
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…iquid

Fix the Liquid native select arrow padding and input group addon alignment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…OG images and a changeset

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d infer addon sides

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… slide, show swatches in a filter

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…links alone where Embla is inactive

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ument Liquid step button state

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nvalid ring in input groups

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ld in one place, pick the keypad from the step

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…icators as buttons

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…resolve Liquid slide hashes to the containing slide

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…licks, hide indicators while Embla is inactive

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s once

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nput a number input, test Astro bounds and events

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…elds, one focus ring on Liquid thumbnails

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ced in markup order

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…iquid, mark Astro thumbnails on click

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o inner outline in input groups

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…React

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ndexes, document type=button

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the buttons need a numeric step

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…23.1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
silveltman and others added 2 commits November 26, 2026 20:44
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ontrol the input

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for fulldev-ui ready!

Name Link
🔨 Latest commit e8ea385
🔍 Latest deploy log https://app.netlify.com/projects/fulldev-ui/deploys/6b088eefa04af5356622ea67
😎 Deploy Preview https://deploy-preview-343--fulldev-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@silveltman
silveltman merged commit d61fe62 into main Nov 26, 2026
7 checks passed
@silveltman
silveltman deleted the t3/fulldev-ui-upstream-components branch November 26, 2026 19:59
@fulldev-release fulldev-release Bot mentioned this pull request Nov 26, 2026
silveltman pushed a commit that referenced this pull request Nov 26, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## fulldev-ui@0.27.0

### Minor Changes

- [#343](#343)
[`d61fe62`](d61fe62)
Thanks [@silveltman](https://github.com/silveltman)! - Add three
storefront parts in Astro, React and native Liquid: `NumberField`, a
number input with decrement and increment buttons for quantities;
`Swatch`, a color or image beside an option or filter value; and
`CarouselIndicator`, a thumbnail that shows its slide, for a product
gallery. In Astro and Liquid the number field is a native `<input
type="number">` in an input group, as data-slot leaves number fields to
the browser, and its buttons fire `input` and `change`; in React it is
Base UI's NumberField. In Liquid an indicator can link to its slide's
id, so it also works without JavaScript. In React, `CarouselIndicator`
goes inside the official shadcn/ui carousel. In Liquid, a native select
keeps its text clear of the arrow, and an input group addon before the
input gets its padding at the start, so a start icon no longer touches
the border; `data-align='inline-start'` or `'inline-end'` names the
side, as in Astro. Data-slot packages move to 1.1.3.

<!-- codesmith:footer -->
---
<a
href="https://dashboardbackend.blacksmith.sh/track/run-proof?expires=1798315217&installation_model_id=442937&pr_number=344&ref=codesmith_pr_footer&repository=fulldotdev%2Fui&return_to=https%3A%2F%2Fgithub.com%2Ffulldotdev%2Fui%2Fpull%2F344&variant=run_proof&signature=3e9b86eb70419813330f8dcb6d317a93b1c1b4f1103bd00160e26b725fa7d4ef"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/proof-run-proof-v2-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/proof-run-proof-v2-light.svg"><img
alt="Run Proof"
src="https://pr-comments-assets.blacksmith.sh/codesmith/proof-run-proof-v2-dark-3x.png"
width="102" height="28"></picture></a>
<sup><a
href="https://app.blacksmith.sh/fulldotdev/codesmith/ui/pr/344?autoLogin=true&ref=codesmith_pr_footer">Open
in [code]smith</a> · Need help on this PR? Tag
<code>@codesmith-bot</code> with what you need.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->

Co-authored-by: fulldev-release[bot] <336258566+fulldev-release[bot]@users.noreply.github.com>
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