Commit Graph

627 Commits

Author SHA1 Message Date
Lope 1f28ce9b28 Update Ark UI to 5.39.0 (#10949) 2026-08-24 18:05:23 +01:00
water 51eb0ff050 docs(next-app): add optional Emotion registry for Suspense streaming (#10943)
* feat(Button): add accessibleWhenDisabled prop for accessible disabled state

When the `accessibleWhenDisabled` prop is set to `true`, the Button
component uses `aria-disabled` instead of the native `disabled`
attribute, keeping the button focusable and accessible to assistive
technologies.

- Add `accessibleWhenDisabled` prop to `ButtonBaseProps`
- Use `aria-disabled` instead of `disabled` when the prop is enabled
- Set `data-disabled` for CSS styling in both modes
- Suppress click events when `aria-disabled` is active
- IconButton and CloseButton inherit the feature via ButtonProps

Closes #10929

* fix: add Emotion style registry for Next.js App Router to prevent hydration errors with Suspense streaming

- Add EmotionRegistry component to sandbox/next-app template with
  delta-tracking cache to avoid duplicated styles
- Add @emotion/cache dependency to sandbox/next-app
- Document the Emotion style registry in the Next.js App Router guide
  including the full EmotionRegistry component code and layout usage
- Update install command to include @emotion/cache

Fixes #10942

* revert: drop unrelated Button accessibleWhenDisabled change

This belongs in #10932, not the Next.js Emotion registry docs.

* test: add Next.js streaming sandbox for Emotion hydration

Reproduces the Suspense/Cache Components mismatch and the Emotion registry fix.

* revert: keep the default next-app template without an Emotion registry

Streaming hydration belongs in the dedicated next-app-streaming sandbox.

* chore: stop ignoring Next agent files in the streaming sandbox

* docs(next-app): make the Emotion registry an optional streaming step

Keep the default install one-pass. Document the registry only for Suspense and Cache Components.

* chore: sync lockfile after dropping @emotion/cache from next-app

CI frozen-lockfile failed because the default template no longer depends on it.

---------

Co-authored-by: waterWang <waterWang@users.noreply.github.com>
Co-authored-by: Segun Adebayo <joseshegs@gmail.com>
2026-08-22 16:25:02 +02:00
Segun Adebayo 7b027d44d0 chore(deps): update @ark-ui/react to 5.38.2 (#10939)
* chore(deps): update @ark-ui/react to 5.38.1

Bumps @ark-ui/react 5.37.2 -> 5.38.1 in packages/react and apps/www, which
pulls @zag-js/menu and @zag-js/popper 1.41.2 -> 1.43.0.

Fixes the Menu.ContextTrigger positioning bug: the positioner reported a
placement before one had been computed, skipping the off-screen guard that
hides it until the anchor point is known, so the menu flashed at the top-left
on first right-click. Long-press on touch had a second cause, it never
triggered a reposition on open.

Adds two changesets scoped to Chakra-supported components, split by bump type.
Entries for Ark's Field.Textarea autoresize fix and the composeRefs fix are
left out, neither is reachable from Chakra.

Closes #10855

* chore(deps): update @ark-ui/react to 5.38.2

Retargets the bump from 5.38.1 to 5.38.2, which pulls @zag-js 1.43.1.

5.38.1 broke the docs deploy: Ark's new hideMode="activity" imported React's
optional `Activity` export statically, and webpack rejects it as a missing
named export even on React 19.2.6, which exposes it at runtime. 5.38.2 resolves
it via Reflect.get and falls back to display-none. `pnpm next build` in apps/www
now compiles and prerenders every route.

Also folds the rest of 5.38.2 into the fixes changeset, scoped to
Chakra-supported components. Notable: a TagsInput XSS fix (the hidden
width-measuring element set tag values with innerHTML) and Escape being
swallowed right after an overlay opens.

pnpm-workspace.yaml picks up minimumReleaseAgeExclude entries that pnpm 11
writes automatically for same-day releases. Without them CI installs would be
refused by the supply-chain policy.
2026-08-17 20:52:57 +02:00
Kevin Dev 🇷🇼 afc8b48988 feat: add DateInput component (#10877)
* feat: add DateInput component

* fix: date inputs examples

* refactor: drop redundant JSDoc from DateInput.Segments

* docs: add date input documentation

* refactor(date-input): remove unused comments

* chore: cleanup slot recipe

* fix(date-input): address review feedback

Let the control hug its content instead of forcing full width, so the
examples no longer need to rein it back in with maxWidth.

Apply the focus-ring fix to the subtle and flushed variants, which were
still using :focus-visible styles that never match the segment group.

Drop the separate focus-ring changeset; DateInput ships new in this PR.

* fix(www): merge static props over generated types

writeStaticProps overwrote generated output wholesale, so a hand-authored
file shadowed live recipe and Ark data indefinitely. Merge it under the
generated output instead, and only when the run actually extracted the
component -- an existing output file for a component with no source (e.g.
password-input) is just the previous run's copy of the static file.

Ark now publishes date-input types, so its static file is no longer needed.
Declare index explicitly on DateInputSegmentsProps since extractTypes does
not resolve it through Omit.

* docs: date input prop tables and segment composition

Document RootProvider, Segments, Segment and HiddenInput -- the first three
are used by examples on the page but had no prop table. Show the expanded
SegmentGroup form so those anatomy slots are discoverable.

* docs: drop unneeded use client from date input examples

These examples pass only primitives to client components, so they render
fine from a server component. Keep it where a hook, handler, or a
non-serializable value (CalendarDate, DateFormatter, icon component)
crosses the boundary.

Also remove the date input nav entry and clear stale "new" badges.

* docs: show full date input anatomy and move shortcut to its own section

Usage now shows every anatomy part instead of the Segments shortcut, and
the shortcut moves to a Shortcuts section between Usage and Examples to
match the other component docs.

* fix(date-input): fill available width by default

Control and segmentGroup were fit-content, so the input would not flow to
its container and needed manual width overrides. Match DatePicker: full
width root and control, with the segment group flexing to fill.

Constrain the examples with maxW so they read at a sensible size.

* docs: rename date input min-max example

Drop the "with" prefix -- min and max are constraints on the component,
not something composed with it, matching date-picker-min-max and
floating-panel-min-max.

Regenerating the examples registry also picks up the overlay return-value
example, whose entry was stale.

* docs: add date input variants and locale examples

The recipe defines outline, subtle and flushed but no example exercised
any of them. Locale is worth showing on its own since it changes segment
order, placeholder text and separators.

* docs: rework date input changeset

Match the new-component shape used for FloatingPanel: bold header, import
and anatomy fences, then the details worth scanning for.

* revert: restore unrelated mdx files to main

Merge c664d048c reformatted four files it had no reason to touch: the
pre-commit prettier hook runs over everything a merge stages. Restore them
so this branch only carries date input changes.

main is prettier-dirty for these paths and needs a separate formatting
pass, including the leading semicolons prettier adds to JSX snippets in
migration.mdx.

Committed with --no-verify so the same hook does not reapply the diff.

* docs: add date input time and locale examples

Add granularity (date and time), time zone and default value examples,
and give leading-zeros and with-clear-trigger a default value -- neither
showed its own subject while the input was empty.

RTL now wraps LocaleProvider, which derives direction from the locale.
It previously set dir="rtl" with an Arabic label but the default en-US
locale, so the segments stayed mm/dd/yyyy and were merely mirrored.

Import parseDate from @internationalized/date everywhere instead of the
@chakra-ui/react re-export. The two differ: the re-export returns
DateValue and accepts a Date, so controlled examples need an explicit
useState<DateValue[]> and year-picker constructs CalendarDate directly.

Pin @internationalized/date with a workspace override. CalendarDate uses
private fields, so two copies produce mutually incompatible types.

---------

Co-authored-by: Segun Adebayo <joseshegs@gmail.com>
2026-08-16 20:01:38 +02:00
Segun Adebayo 0fe305592d perf(react): cache compiled recipes and memoize variant resolution
Recipe components (Button, Badge, Skeleton, etc.) previously recompiled
their recipe and re-resolved variant styles per instance/render, which
dominated render time in large lists and tables.

- Cache compiled recipes per system instance, keyed by recipe key
- Memoize cva/sva variant resolution so results are referentially stable
- Drop the per-instance structuredClone of recipe configs
- Fix recipe merging so it no longer throws or mutates source configs
- Use tsgo (@typescript/native-preview) for faster typecheck
2026-07-06 14:27:33 +02:00
Segun Adebayo 1de9c58314 chore(cli): replace node-fetch with native fetch API
Node 22+ provides a global fetch, so node-fetch is no longer needed.
HTTPS_PROXY support moves from https-proxy-agent (the `agent` option) to
undici's ProxyAgent via the standard `dispatcher` option, centralized in
a small request() helper. Also drops the now-unused node-fetch dependency
from apps/www, removing the deprecated transitive node-domexception.

Resolves discussion #10039.
2026-06-27 15:33:48 +02:00
Segun Adebayo f703e187c7 fix(deps): replace find-up with find-up-simple to fix docs build
find-up v8 pulls unicorn-magic@0.3.0, whose package.json uses bare
condition keys in "exports" with no main entry. tsx's module resolver
rejects this (ERR_PACKAGE_PATH_NOT_EXPORTED), breaking the docs
prebuild (scripts/composition.ts etc.) and the Vercel docs deploy.

We only ever use findUpSync(name, { type }). Switch to find-up-simple
(same author, zero dependencies, identical findUpSync API, clean
exports) instead of pinning find-up back to v7. Updates the 5 import
sites in scripts/ and apps/www.

Verified: full docs build, root typecheck, and prettier all pass.
2026-06-27 15:13:14 +02:00
Segun Adebayo ff2067e7ad fix(deps): update non-major dependencies
Applies the non-major bumps from Renovate PR #10525 onto current main,
skipping entries main has already advanced past (@ark-ui/react is
already 5.37.2 > the PR's 5.37.1; @internationalized/date and the pnpm
packageManager pin are also ahead).

Notable: storybook 10.3.3 -> 10.4.2, vite 8.0.2 -> 8.0.16, vitest
4.1.1 -> 4.1.8, rollup 4.57.1 -> 4.61.1, esbuild ^0.27.3 -> ^0.28.0,
next 15.5.18 -> 15.5.19, prettier 3.8.1 -> 3.8.3, plus assorted
patch/minor deps across packages, apps, and sandboxes.

Verified green: typecheck, lint, format:check, build, and the full
vitest suite (978 tests).
2026-06-27 15:02:12 +02:00
Segun Adebayo 475f0c3763 chore(deps): bump find-up v8, ts-morph v28, babel v7.29.7
Batches three Renovate dependency updates:

- find-up 7.0.0 -> 8.0.0 (#10670): only findUpSync is used (API
  unchanged); no path-exists re-export usage; repo already requires
  Node >=20.
- ts-morph 27.0.2 -> 28.0.0 (#10819): used only in apps/www; stable
  core API (Project/createSourceFile/getSourceFile) unaffected by the
  TS 6.0 internals change.
- @babel/core, @babel/parser, @babel/plugin-transform-typescript ->
  7.29.7 (#10835): lockfile-only, existing ^7.26.0 ranges in
  packages/cli already permit it.

Verified: root typecheck, CLI build, and runtime smoke tests for
find-up and ts-morph all pass.
2026-06-27 14:49:51 +02:00
Bernd Busse f8b356ce83 chore(cli): migrate from deprecated tsconfck to get-tsconfig (#10823)
* chore(cli): migrate from deprecated tsconfck to get-tsconfig

* refactor(cli): skip unresolvable tsconfig references and expand test coverage

---------

Co-authored-by: Segun Adebayo <joseshegs@gmail.com>
2026-06-11 19:05:49 +02:00
Segun Adebayo dd9fa1c44b chore(deps): update Node.js engine requirement and pnpm version 2026-06-11 17:40:39 +02:00
Adebesin Tolulope (Lope) 238e20a41a chore(deps): update @ark-ui/react to 5.37.2 (#10847)
* chore(deps): update @ark-ui/react to 5.37.2

Bumps @ark-ui/react 5.36.2 -> 5.37.2 (pulls newer @zag-js internally).
Aligns @internationalized/date to 3.12.2 in the compositions app to match
the version the updated Zag date-utils resolves to. Adds a minor changeset
scoped to the Chakra-supported components affected by the Ark release.

* docs(changeset): tighten ark 5.37.2 changeset per review

Make it concise; drop DateInput-specific entries (Chakra has no DateInput),
Drawer (Chakra's Drawer is built on Ark Dialog, not the Ark Drawer machine),
FloatingPanel type re-exports, and the declaration-path fix.
2026-06-09 20:21:23 +02:00
renovate[bot] 5911ad27e9 fix(deps): update eslint (#10836)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-03 22:26:47 +02:00
renovate[bot] ae3031babc fix(deps): update eslint to v8.59.4 (#10826)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-25 16:45:15 +02:00
Segun Adebayo 155fa13888 chore: update lockfile 2026-05-22 07:58:01 +01:00
renovate[bot] 22cdae3749 fix(deps): update panda to v1.11.1 (#10805)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-20 21:37:33 +01:00
Kevin Dev 🇷🇼 1ef580069c feat: float panel component (#10752)
* feat: implementation for float panel component with storybook

* feat: doc floating panel

* fix: minor changes on the ui

* chore: add changeset

* refactor: cleanup code

* refactor: rework examples

* fix: next version

* refactor: cleanup examples

* chore: update

* docs: prep for docs

---------

Co-authored-by: Segun Adebayo <joseshegs@gmail.com>
2026-05-20 16:56:27 +01:00
renovate[bot] 44d31683f6 fix(deps): update dependency @changesets/changelog-github to v0.7.0 (#10818)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-18 09:30:38 +01:00
renovate[bot] 34c614ea10 fix(deps): update react to v19.2.6 (#10811)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-11 20:54:10 +01:00
renovate[bot] b42c9a2dca fix(deps): update eslint (#10810)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-11 20:53:53 +01:00
renovate[bot] 5a6039a4bf chore(deps): update dependency @babel/parser to v7.29.3 (#10804)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-09 02:01:29 +01:00
renovate[bot] f59e7b9f09 fix(deps): update eslint to v8.59.1 (#10791)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-02 00:26:38 +02:00
renovate[bot] 7f54ef0fb9 chore(deps): update dependency release-it to v20 (#10792)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-02 00:26:23 +02:00
Segun Adebayo 4dfd1eeaea chore: bump ark-ui 2026-04-22 17:59:48 +02:00
renovate[bot] 7c8de0baa4 fix(deps): update panda to v1.10.0 (#10783)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-21 15:10:11 +02:00
renovate[bot] e1a799b66d fix(deps): update changesets (#10782)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-21 15:09:08 +02:00
Segun Adebayo d041e108d2 build: use lower ark-ui version for now 2026-04-21 12:23:57 +02:00
Segun Adebayo af36e215b0 fix: regression and bump ark-ui 2026-04-20 22:39:10 +02:00
renovate[bot] 730c0b33bd fix(deps): update eslint (#10776)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-17 01:41:54 +02:00
renovate[bot] 4ea94e7f66 fix(deps): update react to v19.2.5 (#10777)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-17 00:11:43 +02:00
renovate[bot] 5343647f8a fix(deps): update panda to v1.9.1 (#10744)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-08 11:07:41 +02:00
renovate[bot] 7df7eb7c88 chore(deps): update storybook monorepo to v10 (major) (#10759)
chore(deps): update storybook monorepo to v10

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-06 13:51:08 +02:00
renovate[bot] 1721396cc7 fix(deps): update eslint (#10743)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-05 20:35:10 +02:00
Segun Adebayo adc52c70d3 fix: storybook build 2026-03-24 16:54:49 +02:00
Segun Adebayo 04b0ee45b8 docs: tanstack router setup 2026-03-24 16:28:13 +02:00
renovate[bot] 34d412952e chore(deps): update dependency @vitejs/plugin-react to v6 (#10707)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-23 14:26:43 +02:00
renovate[bot] a93e931e2c chore(deps): update dependency @babel/parser to v7.29.2 (#10725)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-23 14:19:28 +02:00
renovate[bot] 82cb4aca72 fix(deps): update eslint (#10726)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-23 14:19:11 +02:00
renovate[bot] 1ab16bd0d0 fix(deps): update dependency globals to v17 (#10708)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-17 17:48:23 +02:00
renovate[bot] c7e3a59b0e fix(deps): update panda to v1.9.0 (#10540)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-17 17:45:49 +02:00
renovate[bot] 5677a83d3a fix(deps): update dependency emojibase-data to v17 (#10669)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-17 17:45:21 +02:00
renovate[bot] bbfa19efd9 fix(deps): update dependency globby to v16 (#10709)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-17 17:37:35 +02:00
renovate[bot] ba939f23a4 fix(deps): update eslint (#10706)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-17 17:37:05 +02:00
renovate[bot] 771457bfa8 fix(deps): update eslint (#10688)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-09 12:53:58 +00:00
renovate[bot] 3a728e5e87 fix(deps): update changesets (#10689)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-09 12:34:13 +00:00
Segun Adebayo f902811daf chore: bump ark-ui 2026-03-03 13:16:17 +00:00
Segun Adebayo d5e7073c4b refactor: recharts and charts package 2026-03-03 11:15:22 +00:00
Kevin Dev 🇷🇼 f11219da7f feat: add datepicker (#10597)
* feat: date picker implementation

* feat(date-picker): add more examples to the date picker

* feat(datepicker): add more examples to the datepicker

* feat(datepicker): add more examples to the datepicker examples

* feat(datepicker): removed the button css

* refactor: refactored the codebase and added the value attribute

* refactor: refactored the codebase

* refactor: refactored the mulitselection

* refactor: refactored to a detailed documentation

* refactor: added minor references

* fix: minor refactory to the codeabse

* fix: added calendar examples

* fix: added calendar padding

* fix: added margin to the calendar

* fix: fixed dependecies

* fix: fixed eslint error

* fix: fixed duplications jscodeshift

* feat: added minor examples to the story book

* refactor: datepicker

* refactor: examples

* chore: add time grid example

* docs: fix build

* docs: refactor

* refactor: update DatePicker examples

* docs: refactor

* refactor: examples and recipe

* refactor: examples

* refactor: examples

* refactor: examples and recipe

* fix: typecheck

* refactor: examples and recipe

* refactor: rename examples

* chore: rework storybook

* chore: bump ark-ui

* chore: add more examples

* docs: changeset

* docs: update

* docs: update

* docs: update

* docs: restructure

* docs: fix ts error

* docs: refactor

* revert: sidebar raf

* fix: type imports

* refactor: update scroll spy logic and improve TOC component

* chore: bump ark ui

* chore: update @ark-ui/react to version 5.34.0 and bump related dependencies

* refactor: simplify example

* docs: ready

---------

Co-authored-by: Segun Adebayo <joseshegs@gmail.com>
2026-02-27 02:33:55 +00:00
renovate[bot] 6e8eece3be fix(deps): update dependency cross-env to v10 (#10656)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-25 13:07:11 +00:00
renovate[bot] bf2a746d4b fix(deps): update eslint (#10655)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-25 11:23:59 +00:00