Commit Graph

67 Commits

Author SHA1 Message Date
maoyingjie 68d45c66f9 fix: disable link navigation and align breadcrumb actions and date focus 2026-10-29 09:03:52 +08:00
maoyingjie dc859fb8ae feat(styles): export shared field variant maps and restore the border fallback
HD-05 scope, against heroui ce90ea3 styles sources:

- add labelVariants/descriptionVariants/fieldErrorVariants/
  textFieldVariants/switchGroupVariants (+ VariantProps types) to
  @heroui-vue/styles and re-export them from @heroui-vue/components;
  variant keys, defaultVariants and slot sets match the pinned
  *.styles.ts files key for key (hv- namespace only)
- Label/Description/FieldError/useTextField/SwitchGroup now consume
  those mappings instead of inline class strings, so the state classes
  have a single source; rendered class output is unchanged and pinned
  by tests/shared-field-styles.test.ts (mapping output <-> component
  output)
- restore the global border-color fallback
  (*, ::after, ::before, ::backdrop, ::file-selector-button ->
  border-color: var(--border, currentColor)) in a new base/base.css,
  imported layer(base) right after preflight like the pinned entry:
  a low-priority default that components, utilities and consumer CSS
  override without !important
- view-transition globals from the pinned base.css stay unported: no
  View Transitions API usage exists in the library or docs site
- shared-styles package contract: packed runtime exports from both
  entries, variant-output assertions, CSS tokens incl. the fallback,
  strict nodenext+bundler type contract, and a real-browser consumer
  fixture (light/dark --border, explicit colors, consumer overrides,
  currentColor fallback) wired into check-package.mjs
- docs: styling layers/border fallback/exports notes, five component
  API pages, compatibility matrix and upstream source records

Full suite 111 files / 1634 tests, typecheck and build:docs pass;
shared-styles + api-root-aliases + handbook-styles verified against
the final tarballs.
2026-10-28 23:36:59 +08:00
maoyingjie 53e76f676d fix(demos): restore form, overlay and toast demos to the pinned cn baseline
HD-02 scope, all against heroui ce90ea3 cn sources:

- card: add the text-primary class to the coin icons (source parity);
  card-with-form drops the added required validation and inline business
  note, restores the plain href="#" forgot-password link and the baseline
  alert("表单提交成功!") submit feedback (autocomplete kept: no visible
  impact, allowed by the task card)
- input-group-with-textarea: restore the four Tooltips and the Enter Kbd
  hint; drop the stale "Tooltip 组件尚未迁移" note from input-group.md
- alert-dialog: restore the h-px top light line in custom-styles and the
  truncated/missing description text in sizes/custom-portal/
  custom-animations (+ controlled); align the fluid-slide icon with the
  modal mapping (IconArrowBarUp for gravity-ui:arrow-up-from-line)
- toast: restore the upstream demo layout shells (variants/simple/
  custom-indicator/custom-queue) and the action button default variant:
  ToastActionButton now falls back to the Button defaults (primary/md)
  like upstream ToastActionButton, so variants' actions render primary,
  danger stays danger and default stays tertiary; toast.md defaults fixed
- submit demos: restore baseline feedback and structure — alert() for
  card/fieldset/form/checkbox/checkbox-group/switch/select/combo-box/
  autocomplete and console.log for search/number/time field form examples;
  modal-with-form returns to the close-only footer (no submit/result row);
  drop the added inline status/result rows and the max-w-full/
  max-sm:min-w-0 width guards from the restored demos
- radio-group-validation: add the missing text-muted to the result line;
  label.md invalid example gives the real control its invalid state and
  matches the baseline input shape

Tests re-pinned to the baseline contracts (alert/console/close behavior,
four tooltips + Kbd, positional modal footer); full suite 110 files /
1617 tests, typecheck, build:docs and the m35-m36 tarball contract pass.
2026-10-28 14:10:10 +08:00
maoyingjie f8de4529f6 fix(dropdown): preserve grouped root attrs and events without breaking seams 2026-10-28 12:35:35 +08:00
maoyingjie 6f9d039c85 docs: record control state audit evidence and handoff 2026-10-28 00:09:28 +08:00
maoyingjie dd0d7b22ee fix(docs): restore pinned color demos and color values 2026-10-27 23:24:15 +08:00
maoyingjie 26df6e88a2 docs: complete handbook and prepare component verification tasks 2026-10-27 21:46:42 +08:00
maoyingjie 202e3a5b5d fix: enforce handbook scrollbar and reduced motion contracts 2026-10-27 21:10:51 +08:00
maoyingjie 2c221e0995 feat: complete public Form migration and validation focus contract 2026-10-27 18:28:13 +08:00
maoyingjie fa8b22719e fix: complete Avatar image composition and fallback migration 2026-10-27 18:05:26 +08:00
maoyingjie ee5fce9adb feat: migrate public ColorPicker composition 2026-10-27 17:47:52 +08:00
maoyingjie 8d9adda8da feat: publish ColorSwatchPicker and shared swatch picker parts 2026-10-27 14:42:29 +08:00
maoyingjie 71b8c77ba8 docs: record ColorField migration and client verification 2026-10-27 11:55:00 +08:00
maoyingjie ce6c43eb47 feat: migrate public ColorSlider with docs and tests 2026-10-27 09:16:32 +08:00
maoyingjie ae364578ce feat: add public ColorArea components, docs, and package contract 2026-10-26 23:51:31 +08:00
maoyingjie ff7c4ee45a feat: migrate public DateRangePicker with shared range field and calendar owners 2026-10-26 23:05:36 +08:00
maoyingjie 9a69f92233 feat: migrate public DatePicker with shared field and calendar owners 2026-10-26 22:01:27 +08:00
maoyingjie 07f6aeadb6 feat: migrate RangeCalendar public components and demos 2026-10-26 21:25:25 +08:00
maoyingjie 97263d82e1 feat: migrate public TimeField with shared date input parts 2026-10-26 17:56:41 +08:00
maoyingjie 270dea5cff feat: migrate ColorSwatch and public color boundary 2026-10-26 13:25:21 +08:00
maoyingjie 60af6ee40b chore: remove legacy SSR checks and consolidate migration maintenance 2026-10-26 10:32:22 +08:00
maoyingjie 647c39035d merge: integrate public collection picker migration
# Conflicts:
#	AGENTS.md
#	docs/compatibility.md
#	docs/upstream.md
#	docs/verification.md
#	package.json
#	packages/styles/src/index.ts
#	packages/vue/src/index.ts
#	packages/vue/src/types.ts
#	tests/package/README.md
2026-10-25 20:55:18 +08:00
maoyingjie fc1f98a15e feat: establish composed color picker protocol 2026-10-25 19:52:12 +08:00
maoyingjie 5e688680e9 feat(autocomplete): migrate Autocomplete with popover-owned filtering
Port the fixed-baseline Autocomplete onto the B02a collection protocol. The
trigger is the single Tab entry; opening moves focus to the search box inside the
popover, which owns filtering, aria-activedescendant and keyboard navigation
while the list only tracks an active row.

- Seven parts: root (field, value/open models, form value, owner wiring),
  trigger (anchor + activation), value (scoped slot with selectedItems and
  selectedText instead of copied item subtrees), indicator, clear button,
  popover (measured trigger width), filter (owns the search text and composes the
  inner SearchFieldInput into the combobox control).
- Filter exposes input-value/update:inputValue/inputChange, matching ComboBox.
- Confirming the active row in multiple mode now toggles it instead of replacing
  the accepted set (ComboBox shared the same bug).
- ComboBox shows the accepted label on the first render via a display value that
  falls back to the selected record, so preselected fields are readable before
  the selection watcher runs (including SSR).
- Popovers measure the anchor with a ResizeObserver because Reka does not publish
  the anchor size; the caller's root class is merged again so the trigger fills
  the field width.
- 24 baseline previews, Chinese doc page, navigation, 17 behaviour tests, 5
  demo/document contracts and an independent tarball consumption script for both
  pickers.

Not included: the full bundler/NodeNext type matrix (B02d).
2026-10-25 17:20:17 +08:00
maoyingjie 46e4df7e85 feat(combo-box): migrate ComboBox with input-owned focus and filtering
Port the fixed-baseline ComboBox onto the B02a collection protocol: the input
keeps real DOM focus, the list only tracks an active row, and filtering reuses
the owner filter instead of a second collection kernel.

- Five parts: root (field text control, value/input/open models, form value,
  owner wiring), InputGroup (composes the caller's Input into the combobox
  control and anchors the popover), Trigger, Value, Popover.
- Closed-state metadata is planned from the slot tree, so filtering, the initial
  value label and form-value="text" work before the list has mounted.
- Selection text syncs on selection changes only, so allows-custom-value typing
  is not overwritten; read-only and disabled are injected onto the composed
  input because it reads the text-field protocol, not the field context.
- 24 baseline previews, the Chinese doc page, navigation, 19 behaviour tests and
  6 demo/document contracts. Async demo uses a local async source with abort,
  loading and incremental append (documented adaptations).

Not included: independent tarball consumption (B02d).
2026-10-25 16:59:16 +08:00
maoyingjie db18d0d3da feat: establish composed color field and input group protocols 2026-10-25 15:20:02 +08:00
maoyingjie 712b6c6037 feat: establish color slider geometry and picker composition 2026-10-25 14:37:48 +08:00
maoyingjie a042f5c44c feat: establish shared color channel and text input protocols 2026-10-25 14:20:12 +08:00
maoyingjie 57d7cbb2d6 feat: establish shared color state and area interaction foundation 2026-10-25 11:10:47 +08:00
maoyingjie af6bfda3ee feat: migrate Tag, TagGroup and ErrorMessage with collection and focus contracts
Port the fixed HeroUI baseline tag/tag-group/error-message components onto the
existing collection selection/registry protocols instead of a second state model.

- TagGroup owns selection, disabled scope, removal requests and name/description
  wiring; TagGroupList renders the role=grid node and Tag renders role=row.
- Removal has one path: a press inside the remove subtree is a removal request,
  so custom remove buttons work without a second event source; focus follows the
  next neighbour only after the item is actually gone.
- ErrorMessage keeps the baseline slot marker and reuses the field part ids
  without gaining validation or aria-invalid semantics.
- Ship the 12 tag-group and 2 error-message previews, both doc pages, navigation,
  a 35-case behavioural suite and independent tarball consumption checks.
2026-10-25 10:45:43 +08:00
maoyingjie cfc97fdc07 feat: establish shared calendar range selection foundation 2026-10-25 10:22:22 +08:00
maoyingjie 835d2e4d90 feat: migrate Calendar and calendar year picker 2026-10-24 20:59:19 +08:00
maoyingjie 06ddb6662a feat: migrate Menu and Dropdown with selection and submenus
Port HeroUI menu family and Dropdown from ce90ea3: Reka DropdownMenu base,
MenuKey[] selection with section owners, 17 official demos, dropdown docs
and B01 tests. Long-press stays demo-level; submenu close is level-scoped.
2026-10-24 20:43:04 +08:00
maoyingjie 4aebcb39cc merge: retain concurrent official docs visual corrections 2026-10-24 07:32:45 +08:00
maoyingjie dd066b3723 merge: preserve documentation shell updates alongside Toast and Table 2026-10-24 07:30:53 +08:00
maoyingjie c2563e87a8 fix(docs): restore official visual hierarchy and component previews 2026-10-24 07:26:15 +08:00
maoyingjie 8c04632438 merge: integrate reviewed Toast and Table with Select and DateField main 2026-10-24 07:25:36 +08:00
maoyingjie ed41af5294 feat: migrate Toast and Table with reviewed state focus and SSR contracts 2026-10-24 07:19:26 +08:00
maoyingjie b2246f0058 feat(docs): align documentation shell with HeroUI baseline 2026-10-24 07:18:36 +08:00
maoyingjie 01f0776805 feat: migrate DateField and shared date input group 2026-10-23 23:56:18 +08:00
maoyingjie 3c878d2582 Merge Select migration and browser verification
# Conflicts:
#	AGENTS.md
#	docs/migration-handoff.md
#	docs/upstream.md
#	docs/verification.md
#	package.json
#	packages/styles/src/index.ts
#	packages/vue/src/index.ts
#	packages/vue/src/types.ts
#	tests/package/README.md
2026-10-23 23:00:28 +08:00
maoyingjie 2b569451b6 feat: migrate Select with field, collection and SSR contracts 2026-10-23 22:05:44 +08:00
maoyingjie 0cfe7b6195 merge: integrate reviewed AlertDialog Drawer with ListBox main 2026-10-23 18:36:19 +08:00
maoyingjie 0ec20aaa6a feat: migrate AlertDialog and Drawer with reviewed overlay lifecycles 2026-10-23 18:34:07 +08:00
maoyingjie 65db60a7ac feat: migrate ListBox with virtual collection and accessible parts 2026-10-23 15:02:30 +08:00
maoyingjie dea5ded716 feat: establish private collection selection foundation 2026-10-23 14:11:49 +08:00
maoyingjie 9f44ffb310 merge: integrate reviewed M30-M32 with NumberField Slider and migration lessons 2026-10-23 13:55:44 +08:00
maoyingjie 1fa2929a24 feat: migrate Pagination Header and InputOTP with field and event regressions 2026-10-23 13:49:44 +08:00
maoyingjie 4da45b109e feat: migrate Slider with native range semantics and strict ESM declarations 2026-10-23 13:12:26 +08:00
maoyingjie 23527d4e4c feat: migrate NumberField with form integration and docs 2026-10-23 11:48:29 +08:00