Skip to content

[ENG-46310] feat(webkit): add Chip (inputs)#659

Closed
HerbertJulio wants to merge 1 commit into
devfrom
feat/ENG-46310-inputs-chips
Closed

[ENG-46310] feat(webkit): add Chip (inputs)#659
HerbertJulio wants to merge 1 commit into
devfrom
feat/ENG-46310-inputs-chips

Conversation

@HerbertJulio

Copy link
Copy Markdown
Contributor

ENG-46310

Adds the Chip component (inputs/chips), following the Figma Chip set (node 476:948) and our spec-driven pipeline. Aligns with how .specs/table.md already consumes it (<Chip :label removable @remove />, e.g. the data table's #filters slot).

API

  • Props: label (fallback text for the default slot), size (small | medium), removable (renders a trailing × button).
  • Event: remove — emitted when removable and the × is activated.
  • Slot: default (falls back to label).
  • Monolithic; inline Tailwind + data-* variants (no JS class presets, no <style>); tokens mapped to DESIGN.md (--bg-surface-raised, --border-default, --shape-elements, label typography). The × is a real <button aria-label="Remove"> with a visible focus ring; the chip root is a non-interactive container.

Stories

Default, Sizes (small/medium), Removable (wires remove to the Actions panel) — with the "Show code" copy-paste-ready panel (runnable SFC, shown by default).

Checks

pnpm --filter webkit lint ✓ · type-coverage 100% ✓. Write-time hooks (tokens / references / spec-compliance) passed. (type-check / build:dts surface only the unrelated pre-existing navigation-menu-popup.vue error already present on main; the Chip itself is dts-valid.)

@HerbertJulio HerbertJulio requested a review from a team as a code owner June 24, 2026 15:07
@HerbertJulio HerbertJulio force-pushed the feat/ENG-46310-inputs-chips branch from f719464 to c0c7426 Compare June 24, 2026 17:01
// already wrapped in <template>) — unwrap once, then wrap in a runnable SFC.
transform: (code) => {
let src = String(code).trim()
if (/<script[\s>]/.test(src)) return src
@HerbertJulio HerbertJulio changed the base branch from main to dev June 24, 2026 19:42
@HerbertJulio

Copy link
Copy Markdown
Contributor Author

Substituído pelo #664 (na verdade ver link acima), refeito a partir da dev: story em stories/components/, export direto @aziontech/webkit/chips, título Components/Inputs/Chip. Alerta do CodeQL resolvido com /i no regex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants