From 39b99f06199c88c27f58fc76699a6d73dc321dae Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 31 Oct 2026 15:55:33 +0000 Subject: [PATCH 1/4] feat!: 0.5.0 config recipes, text-by-default content, one css override API Acts on the code-quality and architecture review of 0.4.1. Breaking for consuming apps; migrate with .agents/skills/fyrst-ui-0.5-migration. Styling - Component styles are Panda config recipes (fy*) in packages/preset/src/recipes, registered by a library-only componentsPreset with staticCss. The token-only design-preset is unchanged. Panda warnings drop from 50 to 2. - Every component takes a slot-keyed `css` prop (CssMap); it replaces classRoot/classIcon/classContent/classClose, classes, classWrapper, classCarousel and classTrigger. CardRoot borderColor is removed. - Semantic colors surface, border and text.muted replace most _light blocks; brand.50/200 replace hex literals in Button. - Guard test for Panda's recipe base sub-layer: no !important in base, and reviewed base/variant overlaps only (caught a focused invalid field showing the primary border, and 0px indeterminate progress). Safety and a11y - Content props render as text; `html` opts in through one RichText component. vue/no-v-html is on again. - Flyout rebuilt on Reka Popover (Escape, outside click, focus, pin on click while hover-open). Carousel wheel capture is opt-in. - Disabled link buttons drop href; FieldError role/aria-live conflict fixed; required mark is aria-hidden. Fixes and cleanup - Published package loads in plain Node (forceImportExtension); vue/* require resolves .cjs; style.css is icons only again. - useFormData reads on demand and accepts refs; useFieldControl replaces seven copies of control wiring; typed CarouselContextKey. - Test codegen runs once in globalSetup; lint covers tests and build scripts; typecheck runs in CI; peer ranges widened; dead files and scripts removed. Verified: lint, typecheck, build, 75 component + 28 Nuxt/consumer tests, playground build, and a computed-style diff against 0.4.1. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01R1C6tazHHpKbPFLceHczXa --- .../skills/fyrst-ui-0.5-migration/SKILL.md | 402 ++++++++++++++++++ .github/workflows/ci.yml | 3 + .gitignore | 11 - AGENTS.md | 90 ++-- CHANGELOG.md | 44 ++ README.md | 59 ++- bun.lock | 147 ++----- ...26-10-31-0.5.0-recipes-and-safe-content.md | 53 +++ eslint.config.mjs | 14 +- package.json | 29 +- packages/components/README.md | 3 +- packages/components/build.icons.mts | 124 ++---- packages/components/package.json | 26 +- packages/components/panda.config.ts | 17 +- .../components/Accordion/AccordionRoot.vue | 105 +++-- .../src/components/Accordion/index.ts | 5 +- .../src/components/Accordion/types.ts | 8 +- .../src/components/Alert/AlertRoot.vue | 55 +-- .../components/src/components/Alert/index.ts | 3 +- .../components/src/components/Alert/types.ts | 4 + .../src/components/Badge/BadgeRoot.vue | 19 +- .../components/src/components/Badge/index.ts | 2 + .../src/components/Button/Button.vue | 109 ++--- .../components/src/components/Button/index.ts | 3 + .../src/components/Card/CardBody.vue | 18 +- .../src/components/Card/CardHeader.vue | 62 +-- .../src/components/Card/CardRoot.vue | 41 +- .../components/src/components/Card/index.ts | 5 +- .../components/src/components/Card/types.ts | 12 + .../src/components/Carousel/CarouselItem.vue | 17 +- .../Carousel/CarouselNavigation.vue | 60 +-- .../src/components/Carousel/CarouselRoot.vue | 99 ++--- .../src/components/Carousel/index.ts | 5 +- .../src/components/Carousel/types.ts | 15 + .../src/components/Dialog/DialogRoot.vue | 26 +- .../components/src/components/Dialog/index.ts | 2 + .../src/components/Field/FieldBase.vue | 54 +-- .../src/components/Field/FieldCheckbox.vue | 50 +-- .../src/components/Field/FieldError.vue | 38 +- .../src/components/Field/FieldFooter.vue | 25 ++ .../src/components/Field/FieldInput.vue | 63 +-- .../src/components/Field/FieldLabel.vue | 60 +-- .../src/components/Field/FieldMessage.vue | 40 +- .../src/components/Field/FieldRadioGroup.vue | 52 +-- .../src/components/Field/FieldRequired.vue | 14 +- .../src/components/Field/FieldSelect.vue | 60 +-- .../src/components/Field/FieldSwitch.vue | 51 +-- .../src/components/Field/FieldTextarea.vue | 61 +-- .../src/components/Field/FieldUrl.vue | 67 +-- .../src/components/Field/fieldFooterStyles.ts | 9 - .../components/src/components/Field/index.ts | 3 +- .../components/src/components/Field/types.ts | 20 + .../src/components/Flyout/FlyoutDropdown.vue | 48 ++- .../src/components/Flyout/FlyoutRoot.vue | 160 ++++--- .../components/src/components/Flyout/index.ts | 4 +- .../components/src/components/Flyout/types.ts | 14 + .../src/components/Form/FormPrompt.vue | 57 +-- .../src/components/Form/FormPromptFooter.vue | 46 +- .../components/src/components/Form/index.ts | 3 + .../src/components/Hero/HeroLead.vue | 76 ++-- .../components/src/components/Hero/index.ts | 4 +- .../src/components/List/ListItem.vue | 90 ++-- .../src/components/List/ListRoot.vue | 50 +-- .../components/src/components/List/index.ts | 7 +- .../components/src/components/List/types.ts | 27 +- .../src/components/Loader/Loader.vue | 40 +- .../components/src/components/Loader/index.ts | 3 + .../src/components/Loader/styles.ts | 81 ---- .../PricingCard/PricingCardBadge.vue | 14 +- .../PricingCard/PricingCardBody.vue | 28 +- .../PricingCard/PricingCardHeader.vue | 20 +- .../PricingCard/PricingCardPricing.vue | 16 +- .../PricingCard/PricingCardRoot.vue | 34 +- .../src/components/PricingCard/index.ts | 7 +- .../src/components/PricingCard/types.ts | 36 +- .../src/components/Progress/ProgressRoot.vue | 26 +- .../src/components/Progress/index.ts | 3 +- .../src/components/Progress/styles.ts | 400 ----------------- .../src/components/Progress/types.ts | 11 +- .../src/components/Switch/SwitchRoot.vue | 20 +- .../components/src/components/Switch/index.ts | 4 +- .../components/src/components/Switch/types.ts | 11 +- .../components/src/components/Tab/TabItem.vue | 30 +- .../components/src/components/Tab/TabRoot.vue | 20 +- .../components/src/components/Tab/index.ts | 3 +- .../components/src/components/Tab/types.ts | 12 +- .../components/src/composables/carousel.ts | 220 +++++----- packages/components/src/composables/flyout.ts | 88 +++- packages/components/src/composables/form.ts | 42 +- packages/components/src/index.ts | 32 +- packages/components/src/internal/RichText.vue | 32 ++ .../src/internal/controls/ControlCheckbox.vue | 127 +----- .../src/internal/controls/ControlInput.vue | 54 +-- .../internal/controls/ControlRadioGroup.vue | 134 +----- .../src/internal/controls/ControlSelect.vue | 133 +----- .../src/internal/controls/ControlSwitch.vue | 68 +-- .../src/internal/controls/ControlTextarea.vue | 64 +-- .../src/internal/controls/ControlUrl.vue | 71 +--- .../src/internal/controls/context.ts | 2 + .../components/src/internal/controls/index.ts | 18 +- .../components/src/internal/controls/types.ts | 4 + .../src/internal/controls/urlUtils.ts | 68 ++- .../src/internal/controls/useFieldControl.ts | 37 ++ packages/components/src/internal/css.ts | 28 ++ packages/components/test/button.test.ts | 56 ++- packages/components/test/carousel.test.ts | 44 ++ packages/components/test/content.test.ts | 57 +++ packages/components/test/field.test.ts | 74 +++- packages/components/test/flyout.test.ts | 103 +++++ packages/components/test/global-setup.ts | 15 + packages/components/test/recipes.test.ts | 98 +++++ packages/components/test/setup.ts | 16 +- packages/components/test/utils.test.ts | 73 ++++ packages/components/vite.config.ts | 64 +-- packages/components/vitest.config.ts | 1 + packages/components/vue-entries.ts | 52 +-- packages/nuxt/package.json | 9 +- packages/nuxt/playground/pages/accordion.vue | 9 +- packages/nuxt/playground/pages/button.vue | 2 +- packages/nuxt/playground/pages/card.vue | 1 + packages/nuxt/playground/pages/carousel.vue | 11 +- packages/nuxt/playground/pages/field.vue | 2 +- packages/nuxt/playground/pages/flyout.vue | 18 +- packages/nuxt/playground/pages/hero.vue | 9 +- .../nuxt/playground/pages/pricing-card.vue | 12 +- packages/nuxt/src/index.ts | 0 packages/nuxt/test/consumer-contract.test.ts | 26 +- packages/nuxt/test/panda-lib.test.ts | 61 ++- packages/nuxt/test/preset-tokens.test.ts | 2 +- packages/nuxt/tsup.config.ts | 0 packages/preset/package.json | 6 +- packages/preset/panda.config.ts | 11 - packages/preset/src/animation.ts | 8 + packages/preset/src/components.ts | 33 ++ .../src/recipes/accordion.ts} | 23 +- .../styles.ts => preset/src/recipes/alert.ts} | 5 +- .../styles.ts => preset/src/recipes/badge.ts} | 5 +- .../src/recipes/button.ts} | 15 +- .../styles.ts => preset/src/recipes/card.ts} | 93 +--- packages/preset/src/recipes/carousel.ts | 36 ++ packages/preset/src/recipes/checkbox.ts | 122 ++++++ .../src/recipes/control.ts} | 42 +- .../src/recipes/dialog.ts} | 38 +- packages/preset/src/recipes/field.ts | 65 +++ packages/preset/src/recipes/flyout.ts | 31 ++ packages/preset/src/recipes/form-prompt.ts | 71 ++++ .../src/recipes/hero-lead.ts} | 10 +- packages/preset/src/recipes/index.ts | 52 +++ .../styles.ts => preset/src/recipes/list.ts} | 7 +- packages/preset/src/recipes/loader.ts | 43 ++ .../src/recipes/pricing-card.ts} | 15 +- packages/preset/src/recipes/progress.ts | 96 +++++ packages/preset/src/recipes/select.ts | 54 +++ .../src/recipes/switch.ts} | 20 +- .../styles.ts => preset/src/recipes/tab.ts} | 8 +- .../src/recipes/url.ts} | 42 +- packages/preset/src/tokens/semantic-tokens.ts | 30 ++ packages/preset/src/tokens/tokens.ts | 16 +- packages/preset/tsconfig.json | 6 + panda.config.ts | 6 +- 160 files changed, 3581 insertions(+), 3234 deletions(-) create mode 100644 .agents/skills/fyrst-ui-0.5-migration/SKILL.md create mode 100644 changelog/2026-10-31-0.5.0-recipes-and-safe-content.md create mode 100644 packages/components/src/components/Card/types.ts create mode 100644 packages/components/src/components/Carousel/types.ts create mode 100644 packages/components/src/components/Field/FieldFooter.vue delete mode 100644 packages/components/src/components/Field/fieldFooterStyles.ts create mode 100644 packages/components/src/components/Field/types.ts create mode 100644 packages/components/src/components/Flyout/types.ts delete mode 100644 packages/components/src/components/Loader/styles.ts delete mode 100644 packages/components/src/components/Progress/styles.ts create mode 100644 packages/components/src/internal/RichText.vue create mode 100644 packages/components/src/internal/controls/useFieldControl.ts create mode 100644 packages/components/src/internal/css.ts create mode 100644 packages/components/test/content.test.ts create mode 100644 packages/components/test/flyout.test.ts create mode 100644 packages/components/test/global-setup.ts create mode 100644 packages/components/test/recipes.test.ts create mode 100644 packages/components/test/utils.test.ts delete mode 100644 packages/nuxt/src/index.ts delete mode 100644 packages/nuxt/tsup.config.ts delete mode 100644 packages/preset/panda.config.ts create mode 100644 packages/preset/src/components.ts rename packages/{components/src/components/Accordion/styles.ts => preset/src/recipes/accordion.ts} (86%) rename packages/{components/src/components/Alert/styles.ts => preset/src/recipes/alert.ts} (96%) rename packages/{components/src/components/Badge/styles.ts => preset/src/recipes/badge.ts} (95%) rename packages/{components/src/components/Button/styles.ts => preset/src/recipes/button.ts} (88%) rename packages/{components/src/components/Card/styles.ts => preset/src/recipes/card.ts} (67%) create mode 100644 packages/preset/src/recipes/carousel.ts create mode 100644 packages/preset/src/recipes/checkbox.ts rename packages/{components/src/internal/controls/controlStyles.ts => preset/src/recipes/control.ts} (64%) rename packages/{components/src/components/Dialog/styles.ts => preset/src/recipes/dialog.ts} (66%) create mode 100644 packages/preset/src/recipes/field.ts create mode 100644 packages/preset/src/recipes/flyout.ts create mode 100644 packages/preset/src/recipes/form-prompt.ts rename packages/{components/src/components/Hero/styles.ts => preset/src/recipes/hero-lead.ts} (93%) create mode 100644 packages/preset/src/recipes/index.ts rename packages/{components/src/components/List/styles.ts => preset/src/recipes/list.ts} (94%) create mode 100644 packages/preset/src/recipes/loader.ts rename packages/{components/src/components/PricingCard/styles.ts => preset/src/recipes/pricing-card.ts} (81%) create mode 100644 packages/preset/src/recipes/progress.ts create mode 100644 packages/preset/src/recipes/select.ts rename packages/{components/src/internal/controls/switchStyles.ts => preset/src/recipes/switch.ts} (87%) rename packages/{components/src/components/Tab/styles.ts => preset/src/recipes/tab.ts} (92%) rename packages/{components/src/internal/controls/urlStyles.ts => preset/src/recipes/url.ts} (77%) create mode 100644 packages/preset/tsconfig.json diff --git a/.agents/skills/fyrst-ui-0.5-migration/SKILL.md b/.agents/skills/fyrst-ui-0.5-migration/SKILL.md new file mode 100644 index 0000000..ca956bc --- /dev/null +++ b/.agents/skills/fyrst-ui-0.5-migration/SKILL.md @@ -0,0 +1,402 @@ +--- +name: fyrst-ui-0.5-migration +description: >- + Migrate a consumer project from @fyrst/ui 0.3.x / 0.4.x to 0.5.x. Use when the + app bumps @fyrst/ui to 0.5, or still uses any of: classRoot / classIcon / + classContent / classClose (AlertRoot, CardRoot), :classes on AccordionRoot, + classWrapper / classCarousel (CarouselRoot), classTrigger (FlyoutRoot), + CardRoot borderColor, HTML inside label / title / headline / description / + message / error / list or accordion item strings, useFormData(...).jsonData / + .formData, useCarousel(props, el, slots), inject('handleNext') or other + carousel string keys, Flyout #trigger / #dropdown slots, the flyout-enter / + flyout-leave transition classes, SwitchCssMap / ProgressCssMap / + SwitchStyles / ProgressStyles / ListStyles / PricingCardStyles types, or tests + and CSS that target @fyrst/ui atomic class names. +--- + +# Migrate a @fyrst/ui consumer from 0.4.x to 0.5.x + +You are migrating a **consuming** project (app, storefront, or library) that renders `@fyrst/ui` Vue components, directly or through `@fyrst/ui/nuxt`. + +0.5.0 is a breaking **minor** (0.x semver). The Panda contract from 0.3.x stays: `designSystem: '@fyrst/ui'`, Panda `^2.4`. If the app is on 0.2.x or Panda 1, run [`../panda-v2-migration/SKILL.md`](../panda-v2-migration/SKILL.md) first, then this skill. + +Work through the sections in order. Each one says how to find affected code, what to change, and how to check it. Skip a section only after its search comes back empty. + +## Sources + +- Repo `CHANGELOG.md`, section `[0.5.0]`, and `changelog/2026-10-31-0.5.0-recipes-and-safe-content.md`. +- Root `README.md`: "Styling components" and "Text and HTML content". +- Panda: [Consume with Panda](https://panda-css.com/docs/design-systems/consume-with-panda), [Config recipes](https://panda-css.com/docs/concepts/recipes#config-recipe), [Cascade layers](https://panda-css.com/docs/concepts/cascade-layers). + +Do not invent `@fyrst/ui` props. If this skill and the installed package's `.d.ts` disagree, the `.d.ts` wins. Read them under `node_modules/@fyrst/ui/dist/`. + +## Hard rules + +- Keep `designSystem: '@fyrst/ui'` in every `panda.config.*`. Do not add a fyrst preset to `presets`, do not `include` the package, and do not add `@pandacss/preset-base`. +- Do **not** add `html` to silence a diff. Add it only where the string is authored by the app team and is meant to contain markup. Never for user input, API or server error text, CMS fields you do not sanitize, or translations from an external service. +- Every value in a component `css` prop goes through `css.raw()` from the app's own `styled-system/css`. A bare object compiles and type-checks but produces **no CSS**. +- Do not re-declare `@fyrst/ui` component styles (`cva`, `sva`, copied recipe objects) in the app. Extend the `fy*` recipe instead (section 4). +- Public-repo hygiene: no customer names, client domains, or screenshots of customer UIs in commits or PRs. + +## What changed (summary) + +| Area | 0.4.x | 0.5.x | +| --- | --- | --- | +| Content props | Rendered with `v-html` | Rendered as **text**. `html` prop opts into HTML | +| Style overrides | `classRoot`, `classIcon`, `classContent`, `classClose`, `classes`, `classWrapper`, `classCarousel`, `classTrigger`, plus `css` on some components | One `css` prop on every component, keyed by slot (`root` = outermost element) | +| Component CSS | Atomic classes from `cva` / `sva` (`d_inline-flex`, `bg_primary`, …) | Config recipes `fy*` with classes like `fy-button`, `fy-button--size_md`, `fy-alert__root` | +| Override precedence | Merged into the same atomic classes; sometimes lost to compound variants | Recipes in the `recipes` layer, overrides in `utilities`: overrides always win | +| `CardRoot` `borderColor` | Deprecated no-op | Removed | +| `useFormData` | `{ formData, jsonData }` readonly refs, cached at first read | `{ getFormData(), getJson() }`, read on each call; accepts element, ref, or getter | +| `useCarousel` | `(props, carouselRef, slots)` | `(options, carouselRef)`; `carouselItems` is `HTMLElement[]` | +| Carousel children | `inject('handleNext')` and other string keys | `inject(CarouselContextKey)` | +| Carousel wheel | Always hijacked vertical wheel | Off. `wheel-navigation` turns it on | +| Flyout | Hover div plus `v-if` panel, `flyout-*` Transition | Reka Popover: Escape, outside click, focus handling. `#trigger` must render one element | +| Removed types | `SwitchCssMap`, `ProgressCssMap`, `SwitchStyles`, `ProgressStyles`, `ListStyles`, `PricingCardStyles` | `CssMap` and per-component `*Css` types | +| Component `name` | `FyButton`, `FyLoader` | `FyrstButton`, `FyrstLoader` | +| `@fyrst/ui/vue/*` `require` | Resolved the ESM `.js` | Resolves the `.cjs` build | +| Peers | `vue ^3.5.44`, `reka-ui ^2.11`, `nuxt ^4.6.3` | `vue ^3.5.0`, `reka-ui ^2.6.0`, `nuxt ^4.0.0` (widened) | + +Additive, no action needed: semantic colors `surface`, `surface.raised`, `border`, `border.hover`, `border.subtle`, `text.muted`; base `brand.50`, `brand.200`; `CssMap` and `*Css` type exports; `CarouselContextKey`; `FieldSharedProps`; `FlyoutRoot` `direction` and `openOnHover`; `CarouselNavigation` `prevLabel` / `nextLabel`; plain Node can now import the package. + +# Step-by-step + +## 0. Preconditions + +1. Clean git tree. Note the current `@fyrst/ui` version. +2. Run the app's build and test once and keep the output as the "before" baseline. +3. If the app has visual regression tests, record a baseline now. + +## 1. Upgrade + +```bash +bun add @fyrst/ui@^0.5.0 # or npm / pnpm / yarn equivalent +panda codegen --clean +``` + +If the app pins `reka-ui` below `2.6.0`, raise it. `vue`, `nuxt`, and `@pandacss/dev` ranges from 0.4.x still satisfy the peers. + +## 2. Content props: text by default, `html` to opt in + +**Find.** Every place a content prop may carry markup. Search templates and the data that feeds them: + +```bash +rg -n --type-add 'vue:*.vue' -t vue -t ts -t js \ + -e '<(Fyrst)?(Button|HeroLead|CardHeader|CardRoot|ListRoot|ListItem|AccordionRoot|TabRoot|TabItem|FlyoutRoot|Field[A-Z]\w*|PricingCard\w*)\b' \ + -e '(Button|Hero\.Lead|Card\.(Root|Header)|List\.(Root|Item)|Accordion\.Root|Tab\.(Root|Item)|Flyout\.Root|Field\.\w+|PricingCard\.\w+)\b' +rg -n "<(b|strong|em|i|mark|code|br|a|span|small|sup|sub)\b|&[a-z]+;|&#" -g '*.vue' -g '*.ts' -g '*.js' -g '*.json' -g '*.yml' -g '*.yaml' +``` + +Props that changed: + +| Component | Props | +| --- | --- | +| `Button` | `label` | +| `CardHeader` (and `CardRoot` `header` object) | `title`, `subtitle` | +| `HeroLead` | `headline`, `description` | +| `ListRoot` / `ListItem` | item `content` | +| `PricingCardRoot` / `PricingCardBody` | `features` | +| `AccordionRoot` | item `title`, `content` | +| `TabRoot` / `TabItem` | item `label` | +| `FlyoutRoot` | `label` | +| `FieldBase`, every `Field*`, `FieldMessage`, `FieldError` | `message`, `error` | + +**Decide per string.** + +- Plain text that happened to go through `v-html` (most labels): no change. If the string contained entities such as `&` or ` `, replace them with the literal characters, or they now show as typed. +- App-authored markup (`'Build faster'`): add `html`: + + ```vue + + + + + ``` + + `html` sits on the component that owns the copy: `AccordionRoot`, `ListRoot`, `TabRoot` (all items), `ListItem` / `TabItem` (one item; an item's own `html` wins), `CardHeader`, `HeroLead`, `Button`, `FlyoutRoot`, `PricingCardRoot` or `PricingCardBody`, and `Field*` / `FieldBase` (message and error). A `TabRoot` / `ListRoot` item object can carry `html: true` / `false` itself. +- Markup built from data you do not control (server validation messages, user names, CMS text): **keep it as text**. If the design needs formatting, use the component's slot (`#title`, `#content`, `#label`, `#description`, …) and render Vue nodes. +- Field `error` / `message` from a backend: leave `html` off. That was an XSS path in 0.4.x. + +**Check.** Pages with markup render it; no visible `` / `&` text appears; `rg -n ' html\b' -g '*.vue'` lists only app-authored strings. + +## 3. Style overrides: one `css` prop, values through `css.raw()` + +**Find.** + +```bash +rg -n -e 'class-(root|icon|content|close|wrapper|carousel|trigger)\b' \ + -e '\bclass(Root|Icon|Content|Close|Wrapper|Carousel|Trigger)\b' \ + -e ':classes=' -g '*.vue' -g '*.ts' -g '*.tsx' +rg -n ':css="' -g '*.vue' +rg -n '\bcss:\s*\{' -g '*.ts' -g '*.vue' +``` + +**Rename.** + +| Component | 0.4.x | 0.5.x | +| --- | --- | --- | +| `AlertRoot` | `classRoot`, `classIcon`, `classContent`, `classClose` | `css.root`, `css.icon`, `css.content`, `css.close` (also `message`, `title`, `description`) | +| `CardRoot` | `classRoot` | `css.root` | +| `AccordionRoot` | `classes.icon` (a **class string**, applied to the item icon) | `css.icon` (a style object). The caret is `css.indicator`. Other slots: `root`, `item`, `trigger`, `title`, `content` | +| `CarouselRoot` | `classWrapper`, `classCarousel` | `css.root`, `css.viewport` | +| `FlyoutRoot` | `classTrigger` | `css.trigger` (also `root`, `content`) | + +```vue + + + + + + + + + +``` + +`AccordionRoot` `classes.icon` took a class name. If the app passed a non-Panda class (global CSS), move that rule to the `#icon` slot instead: + +```vue + + + +``` + +**Wrap every existing `css` value in `css.raw()`.** 0.4.x already had `css` on `PricingCard*`, `ListRoot`, `ListItem`, `ProgressRoot`, `SwitchRoot`, `FieldUrl`, and `FieldSwitch`. A bare object there never generated CSS (unless the same atomic class happened to exist). This is the likeliest silent styling bug in the app: + +```vue + + + + +``` + +`css` comes from the app's own codegen: `import { css } from 'styled-system/css'` (or the app's `importMap` path), not from `@fyrst/ui`. + +**Types.** Use the exported per-component types (`AlertCss`, `CarouselRootCss`, `FlyoutRootCss`, …) or `CssMap<'root' | …>` from `@fyrst/ui`. + +**Check.** `rg` from "Find" returns nothing for the old names. Overridden elements look as intended in light and dark. + +## 4. Component CSS is now `fy*` recipes + +Component classes changed from atomic utilities to recipe classes (`fy-button`, `fy-button--color_primary`, `fy-field__label`, `fy-control--valid_false`, …). Styles look the same, apart from the visual notes in section 9. + +**Find code that depended on the old classes.** + +```bash +rg -n -e '\b(d|bg|c|bdr|bd[a-z]*|p[xytblr]?|m[xytblr]?|fs|fw|w|h|ff|gap|rounded)_[A-Za-z0-9.%\\-]+' \ + -g '*.spec.*' -g '*.test.*' -g '*.css' -g '*.scss' -g '__snapshots__/**' -g '*.snap' +``` + +- Unit / e2e selectors or snapshots that match `@fyrst/ui` atomic classes: select by role, label, `data-*`, or the stable recipe class (`.fy-button`, `.fy-alert__root`). Update snapshots once you have checked the diff. +- Global CSS that targeted those classes: replace with a `css` override (section 3) or a recipe extension. + +**App-wide restyling: extend the recipe** instead of overriding every instance. Recipe keys: `fyAccordion`, `fyAlert`, `fyBadge`, `fyButton`, `fyCard`, `fyCarousel`, `fyCheckbox`, `fyControl` (input, textarea, select trigger), `fyDialog`, `fyField` (label, message, error, footer), `fyFlyout`, `fyFormPrompt`, `fyHeroLead`, `fyList`, `fyLoader`, `fyPricingCard`, `fyProgress`, `fyRadioGroup`, `fySelect`, `fySwitch`, `fyTab`, `fyUrl`. + +```ts +// panda.config.ts +export default defineConfig({ + designSystem: '@fyrst/ui', + theme: { + extend: { + recipes: { + fyButton: { base: { borderRadius: 'pill' } }, + }, + slotRecipes: { + fyAlert: { variants: { spacing: { lg: { root: { padding: '2xl' } } } } }, + }, + }, + }, +}) +``` + +Panda logs `design_system_artifact_conflict … your definition is merged over the design system's`. That is expected. A **new** variant value (for example `size: { xl: … }`) is available as CSS, but the component's prop type does not include it; use it from the app's own recipe call or keep to existing values. + +Do not name an app recipe `fy*` unless you mean to extend the library's. + +**Precedence change.** In 0.4.x an override could lose to a compound variant or to `!important`. In 0.5.x anything passed through `css` wins over recipe styles except the few `!important` declarations kept on field validation borders. Re-check overrides that relied on losing. + +## 5. Composables + +### `useFormData` + +```bash +rg -n 'useFormData' -g '*.vue' -g '*.ts' +``` + +```ts +// before +const { jsonData, formData } = useFormData(formEl) +send(jsonData.value) +// after +const { getJson, getFormData } = useFormData(formEl) // element, ref, or getter +send(getJson()) +``` + +0.4.x cached the first read and returned `null` when called in `setup` before mount. Calls that worked around this (calling it inside the submit handler) still work after the rename. Calls in `setup` with a template ref now work as written. + +### `useCarousel` + +```bash +rg -n 'useCarousel' -g '*.vue' -g '*.ts' +``` + +```ts +// before +const carousel = useCarousel(props, carouselEl, useSlots()) +carousel.carouselItems.value?.length // NodeListOf | null +// after +const carousel = useCarousel({ scrollMode: () => props.scrollMode }, carouselEl) +carousel.carouselItems.value.length // HTMLElement[] +``` + +Return names are unchanged. `handleWheel` now follows the dominant axis, calls `preventDefault()` itself, and moves at most one step per gesture. It no longer logs `console.warn` at the ends. + +### `useFlyout` + +`useFlyout({ el })` still returns `{ open, toggle }` and still opens on hover. It now listens to `pointerenter` / `pointerleave` and ignores touch and pen. New: `openOnHover`, `closeDelay`, `setOpen`, `pin`, `openedBy`, `onPointerEnter`, `onPointerLeave`. No change needed unless the app relied on `mouseenter` firing for touch. + +## 6. Carousel + +```bash +rg -n -e "inject\((['\"])(carousel|handleNext|handlePrev|carouselItems|carouselItem|visibleCarouselItems|currentCarouselItemIndex|scrollDirection|allItemsVisible)\1" \ + -e 'CarouselRoot|Carousel\.Root' -g '*.vue' -g '*.ts' +``` + +**Custom children** that injected string keys: + +```ts +// before +const handleNext = inject<() => void>('handleNext') +const index = inject>('currentCarouselItemIndex') +// after +import { CarouselContextKey } from '@fyrst/ui' +const carousel = inject(CarouselContextKey) +carousel?.handleNext() +carousel?.currentCarouselItemIndex.value +``` + +The context has every `useCarousel` return plus `carousel` (the scroller ref). + +**Wheel.** The carousel no longer scrolls on the mouse wheel, and the page scrolls normally over it. Keep the old behavior only where product asks for it: + +```vue +… +``` + +**Navigation buttons** now have `type="button"`, so they no longer submit an enclosing form. Labels: `prev-label` / `next-label`. + +## 7. Flyout + +```bash +rg -n -e 'FlyoutRoot|FlyoutDropdown|Flyout\.(Root|Dropdown)' -e 'flyout-(enter|leave)' -g '*.vue' -g '*.ts' -g '*.css' -g '*.scss' +``` + +The flyout is a Reka Popover now. Behavior: mouse hover opens and leaving closes after 150 ms; click toggles; click while hover-open pins it open; Escape and an outside click close it. The trigger gets `aria-expanded`, `aria-controls`, and `aria-haspopup="dialog"` (was `"true"`). + +- **`#trigger` slot:** render exactly **one** element (component or tag). It becomes the Popover trigger, so it toggles on click without extra code. Slot props are `{ open, toggle }`. Remove any `@click="toggle"` you added on it, or it toggles twice. + + ```vue + + + … + + ``` + +- **`#dropdown` slot:** keep the panel inside `` and drop `v-if="open"` and the wrapping ``; the dropdown handles presence and animation. `FlyoutDropdown` only works inside `FlyoutRoot`. + + ```vue + + + + + ``` + +- **Transition CSS:** delete app CSS for `.flyout-enter-*` / `.flyout-leave-*`. Restyle the animation with `css.content` or by extending `fyFlyout`. +- **Positioning:** the panel is positioned by Reka (floating-ui) and stays in the flyout's DOM, below the trigger, aligned `start` (`direction="left"`, default) or `end` (`"right"`). The positioning wrapper gets inline styles on the client while open. SSR HTML has none. +- Hover-only menus that should only open on click: `:open-on-hover="false"`. + +## 8. Removed props, types, and names + +```bash +rg -n -e 'SwitchCssMap|ProgressCssMap|SwitchStyles|ProgressStyles|ListStyles|PricingCardStyles' \ + -e 'FyButton|FyLoader' -g '*.vue' -g '*.ts' +rg -n -B2 -A2 'border-color=|borderColor' -g '*.vue' | rg -i 'card' +``` + +| Removed | Use | +| --- | --- | +| `CardRoot` `borderColor` (no-op since 0.3.0) | delete it; use `color` or `css.root` | +| `SwitchCssMap`, `ProgressCssMap` | `CssMap` | +| `SwitchStyles`, `ProgressStyles`, `ListStyles`, `PricingCardStyles` | none. Style objects are no longer exposed. Use `css` or recipe extensions | +| Component name `FyButton` / `FyLoader` (KeepAlive `include`, devtools filters, `findComponent({ name })`) | `FyrstButton` / `FyrstLoader` | + +## 9. Behavior and visual notes (check, usually no code change) + +- `Button` with `to` and `disabled` renders `` **without `href`**. It no longer navigates. Tests that expected an `href` on a disabled link need updating. +- `Button` `title`: with `html`, tags are stripped. +- `ListItem` `size` / `state` / `icon` now win over `ListRoot` (0.4.x ignored them inside a root). +- `FieldError` dropped `aria-live` (it keeps `role="alert"`). `FieldRequired` is `aria-hidden`; `required` on the control already announces it. +- `Loader` dropped `aria-live` (it keeps `role="status"`). +- Field helper text (`message`) in light mode is `grey.600` (was `grey.500`). Checkbox and radio hover borders in light mode are `grey.300` (was `grey.400`). +- Radio options dim individually when `disabled` is set on the option. +- `@fyrst/ui/style.css` is icons only (the flyout transition CSS moved into the recipe). +- CommonJS `require('@fyrst/ui/vue/')` now loads the `.cjs` build. + +# Verification (required) + +```bash +# no old APIs left +rg -n -e 'class-(root|icon|content|close|wrapper|carousel|trigger)\b' -e '\bclass(Root|Icon|Content|Close|Wrapper|Carousel|Trigger)\b' -e ':classes=' -g '*.vue' -g '*.ts' +rg -n -e "inject\((['\"])(handleNext|handlePrev|carouselItems|currentCarouselItemIndex|allItemsVisible)\1" -e '\.jsonData\b|\.formData\.value' -e 'SwitchCssMap|ProgressCssMap|SwitchStyles|ProgressStyles|ListStyles|PricingCardStyles' -g '*.vue' -g '*.ts' + +panda codegen --clean +panda cssgen --outfile /tmp/fyrst-check.css +rg -c '\.fy-button' /tmp/fyrst-check.css # > 0: component recipes reach the app + + && && && +``` + +Then check by hand, in light and dark: + +1. Pages that used `html` content: markup renders; nothing shows literal tags or entities. +2. Every element with a `css` override: the override applies. If it does not, the value is missing `css.raw()`. +3. Flyouts: hover, click, click-while-hovered (stays open), Escape, outside click, keyboard (Tab to trigger, Enter, Escape returns focus). +4. Carousels: page scroll over the carousel works; buttons move; `wheel-navigation` only where intended. +5. Forms: errors render as text, inputs get `aria-invalid="true"`, helper text is linked through `aria-describedby`. +6. CSP / SSR: server HTML from `@fyrst/ui` components has no `style=""` attributes. + +# Common errors and fixes + +| Symptom | Cause | Fix | +| --- | --- | --- | +| Literal `` / `` / `&` shows in a heading, button, list, or tab | Content is text by default | Add `html` for app-authored markup, or use the slot. Replace entities with characters | +| Override has no effect | Bare object in `css`, or old `class*` prop name | `css.raw()`, new slot key (section 3) | +| TS error: `Property 'classRoot' does not exist` / `'classes'` / `'classWrapper'` / `'classTrigger'` / `'borderColor'` | Removed props | Section 3 / 8 | +| TS error: `Expected 2 arguments, but got 3` on `useCarousel` | `slots` argument removed | Section 5 | +| TS error: `Property 'jsonData' does not exist` | `useFormData` API | `getJson()` / `getFormData()` | +| Custom carousel buttons do nothing | String-key `inject` returns `undefined` | `inject(CarouselContextKey)` | +| Flyout opens and closes in one click | Extra `@click="toggle"` on the `#trigger` slot element | Remove it; the slot element is the trigger | +| Flyout trigger slot warns about multiple root nodes / does nothing | Slot renders a fragment or text | Render exactly one element | +| `FlyoutDropdown` throws ``Injection `Symbol(PopoverRootContext)` not found. Component must be used within `PopoverRoot` `` | Used outside `FlyoutRoot` | Keep it inside `FlyoutRoot` (`#dropdown` or default slot) | +| Snapshot tests fail on class names | Atomic → `fy-*` recipe classes | Review the diff and update; select by role / label / recipe class | +| `design_system_artifact_conflict` warning | App extends a `fy*` recipe | Expected when intentional. Rename the app recipe if it is unrelated | +| Token conflict warning for `surface`, `border`, or `text` | App already defines a semantic color with that name | Keep the app's if it is used app-wide; otherwise rename the app token. Library components use the library's values only through `designSystem` | +| Page no longer scrolls into a carousel on wheel | That is the fix | Add `wheel-navigation` only if product requires it | + +# Do not + +- Do not add `html` to every component "to keep the old behavior". Decide per string. +- Do not pass server or user-controlled strings with `html`. +- Do not pass bare objects to `css`. +- Do not copy `fy*` recipe definitions into the app; extend them by key. +- Do not pin `@fyrst/ui` to 0.4.x "for now" while other packages in the same app use 0.5.x; the design-system manifest is per install. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6fe2e49..9d70361 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,9 @@ jobs: - name: Lint run: bun run lint + - name: Typecheck + run: bun run typecheck + - name: Build run: bun run build diff --git a/.gitignore b/.gitignore index 91b1efe..45eb866 100644 --- a/.gitignore +++ b/.gitignore @@ -16,17 +16,6 @@ logs _.log report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json -# reset build folders -/packages/preset/css -/packages/preset/jsx -/packages/preset/patterns -/packages/preset/tokens -/packages/preset/types -/packages/preset/recipes -/packages/preset/helpers.js -/packages/preset/helpers.d.ts -/packages/preset/helpers.mjs - # dotenv environment variable files .env .env.development.local diff --git a/AGENTS.md b/AGENTS.md index d611bcc..f343a87 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -9,7 +9,7 @@ Workspace packages (private, not published): Uses Bun as package manager and build tool, full TypeScript support. -First-party agent skills live in `.agents/skills//SKILL.md`. Consumer apps on `@fyrst/ui` 0.2.x (`panda.buildinfo.json` in `include`) or still on Panda CSS 1.x should follow [`.agents/skills/panda-v2-migration/SKILL.md`](.agents/skills/panda-v2-migration/SKILL.md). +First-party agent skills live in `.agents/skills//SKILL.md`. Consumer apps on `@fyrst/ui` 0.2.x (`panda.buildinfo.json` in `include`) or still on Panda CSS 1.x should follow [`.agents/skills/panda-v2-migration/SKILL.md`](.agents/skills/panda-v2-migration/SKILL.md). Consumer apps on 0.3.x / 0.4.x upgrading to 0.5.x should follow [`.agents/skills/fyrst-ui-0.5-migration/SKILL.md`](.agents/skills/fyrst-ui-0.5-migration/SKILL.md). Every breaking change to the public API needs a matching section in a migration skill. ## Package Structure @@ -17,7 +17,9 @@ First-party agent skills live in `.agents/skills//SKILL.md`. Consumer apps packages/ ├── preset/ # @fyrst/design-preset - Panda CSS Preset │ └── src/ -│ ├── index.ts # Main preset export +│ ├── index.ts # Token preset (`@fyrst/ui/design-preset`) +│ ├── components.ts # componentsPreset: recipes + staticCss (library build only) +│ ├── recipes/ # fy* component recipes │ └── tokens/ # Base & semantic tokens ├── components/ # @fyrst/ui-components - Vue 3 UI Components └── nuxt/ # @fyrst/ui-nuxt - Nuxt Module @@ -39,13 +41,14 @@ bun run dev:components # Components dev server bun run dev:nuxt # Link @fyrst/ui, panda lib, then Nuxt module playground bun run dev:nuxt:prepare # Link @fyrst/ui, panda lib, then stub/prepare the Nuxt module + playground bun run dev:nuxt:build # Link @fyrst/ui, then build the Nuxt playground (dev check, not publish) +bun run typecheck # tsc on the preset, vue-tsc on the components bun run clean # Clean all dist folders ``` ## Lint Commands ```bash -bun run lint # Run ESLint on all packages +bun run lint # ESLint on sources, tests, and build scripts bun run lint:fix # Auto-fix lint issues bun run --filter='@fyrst/ui-nuxt' lint # Lint specific package ``` @@ -110,67 +113,64 @@ bun run --filter='@fyrst/ui-nuxt' test:types # Type checking - Use Panda CSS for styling - Follow patterns in `packages/components/src/` -### CVA/SVA Styling Pattern +### Component Styling (config recipes) -New components using CVA (or SVA for multi-slot) must follow this pattern: +Component styles are Panda **config recipes** in the preset package, not `cva`/`sva` in the components package. -**1. Create component folder** (e.g., `packages/components/src/components/Badge/`): -``` -Badge/ -├── BadgeRoot.vue -├── styles.ts -└── index.ts -``` - -Standalone exceptions (`Button`, `Loader`) keep those public names (not `ButtonRoot` / `LoaderRoot`) but still use a folder + `styles.ts`: -``` -Button/ -├── Button.vue -├── styles.ts -└── index.ts -``` - -**2. styles.ts** - Define CVA/SVA with slots if needed: +**1. Recipe** in `packages/preset/src/recipes/.ts`. Use `defineRecipe` (one element) or `defineSlotRecipe` (several). Prefix the key with `fy` and the class name with `fy-`: ```typescript -import { cva } from 'styled-system/css' -// or for multi-slot: import { sva } from 'styled-system/css' - -export const badgeStyles = cva({ - base: { ... }, - variants: { ... }, - defaultVariants: { ... }, +import { defineSlotRecipe } from '@pandacss/dev' + +export const fyBadge = defineSlotRecipe({ + className: 'fy-badge', + slots: ['root', 'icon'], + base: { root: { ... } }, + variants: { size: { sm: { ... } } }, + defaultVariants: { size: 'md' }, }) ``` +Register it in `packages/preset/src/recipes/index.ts` (`recipes` or `slotRecipes`). `componentsPreset` (`packages/preset/src/components.ts`) adds every registered recipe to `staticCss`, because variants come from props at runtime and Panda cannot see them. Generate repetitive variants in code (see `progress.ts`, `loader.ts`, `card.ts`); a preset runs as code, it is not statically extracted. -**3. Component.vue** - Use computed with `.raw()` (typically wrapped in `css(...)`): -```typescript +`componentsPreset` is only for the library build (root `panda.config.ts` and `packages/components/panda.config.ts`). It is **not** part of the token-only `@fyrst/ui/design-preset` export. + +**2. Component** folder `packages/components/src/components/Badge/` with `BadgeRoot.vue` and `index.ts` (plus `types.ts` when needed). Standalone exceptions (`Button`, `Loader`) keep those public names. + +```vue + -```vue ``` -**4. index.ts** - Named parts plus default namespace `{ Root, … }`: +- Call the recipe function directly. Do not call `.raw()` across files and do not wrap recipe output in `css()`. +- Every component takes a `css` prop typed `CssMap<…>`; `root` is always the outermost element. `withCss` appends the override (utilities layer beats recipes layer). +- Share recipe classes between parts through a typed `createInjectionKey` context (see `Card/types.ts`), never string keys. +- Numeric variant keys are strings in the generated types (`String(size)`). +- Prefer semantic tokens (`surface`, `border`, `text.muted`, `neutral`) over `_light` overrides. Keep a `_light` block only when state selectors must beat light-mode colors on specificity (see `switch.ts`). + +**3. Content.** Render copy as text. When a prop may carry markup, add an `html?: boolean` prop and render through `internal/RichText.vue` (the only `v-html`; ESLint `vue/no-v-html` is on). + +**4. index.ts** — named parts plus default namespace `{ Root, … }`, and export the component's `*Css` types: ```typescript import BadgeRoot from './BadgeRoot.vue' export { BadgeRoot } +export type { BadgeCss } from './BadgeRoot.vue' export default { Root: BadgeRoot } ``` -Register the same named exports in `vue-components.ts` and `vue-entries.ts` (`vueLibEntries` and `nuxtComponents` are 1:1; no alias table). `Button` / `Loader` export the SFC by those names and do not use a `{ Root }` namespace. +Register the entry in `vue-entries.ts` (`vueLibEntries`; `nuxtComponents` is derived) and the named export in `vue-components.ts`. `Button` / `Loader` export the SFC by those names and do not use a `{ Root }` namespace. -Do not export `Control*` from `@fyrst/ui`. Bare controls stay under `src/internal/controls/` for Field/Switch. Public form API is `Field.*` / `FyrstField*`. Re-export `FieldOption` from Field. +Do not export `Control*` from `@fyrst/ui`. Bare controls stay under `src/internal/controls/` and share `useFieldControl()` (id, ARIA links, validity from the Field context). Public form API is `Field.*` / `FyrstField*`; composed fields use `FieldSharedProps` and `FieldFooter`. Re-export `FieldOption` from Field. ### Panda CSS @@ -231,9 +231,9 @@ describe('ssr', async () => { ## Important Notes -1. Token changes: add to both `tokens.ts` and `semantic-tokens.ts` +1. Token changes: add to both `tokens.ts` and `semantic-tokens.ts`. Recipe changes go in `packages/preset/src/recipes/` 2. New packages: register in root `package.json` under `workspaces` 3. Build order: Nuxt module requires preset built first (automatic) 4. Peer dependencies: `vue`, `reka-ui`, and `@pandacss/dev` are required. `@pandacss/preset-base` is a published `dependency` (the design-system preset inlines the module; apps on `designSystem` do not install it). `nuxt` and `@nuxt/kit` are optional (only `@fyrst/ui/nuxt`). Do not put `@nuxt/kit` in published `dependencies`. 5. No Prettier: ESLint used for formatting (stylistic rules) -6. Do not ship compiled Panda CSS (`panda cssgen`, `styles.css`, `panda.css`). Publish only the root `@fyrst/ui` package. Consuming apps must depend on `@pandacss/dev`, keep their own `panda.config.ts`, and set `designSystem: '@fyrst/ui'` (no fyrst preset, no `include` into the package). The library build runs `panda lib --outdir dist --files './**/*.{js,mjs}' --panda '^2.4.0'` after assembling `dist/`. That command owns `./panda/*`, `./css`, `./tokens`, `./types`, and other generated subpaths — do not hand-edit them. Custom exports (`./design-preset`, `./preset`, `./nuxt`, `./vue/*`, `./style.css`) stay in `package.json`. `@fyrst/ui/style.css` is Iconify icons only. Pack root `dist/` only (assembled from workspace build outputs, including `dist/panda/` and `dist/styled-system/`) — do not include nested `packages/*/dist`. +6. Do not ship compiled Panda CSS (`panda cssgen`, `styles.css`, `panda.css`). Publish only the root `@fyrst/ui` package. Consuming apps must depend on `@pandacss/dev`, keep their own `panda.config.ts`, and set `designSystem: '@fyrst/ui'` (no fyrst preset, no `include` into the package). The library build runs `panda lib --outdir dist --files './**/*.{js,mjs}' --panda '^2.4.0'` after assembling `dist/`. That command owns `./panda/*`, `./css`, `./recipes`, `./tokens`, `./types`, and other generated subpaths — do not hand-edit them. Custom exports (`./design-preset`, `./preset`, `./nuxt`, `./vue/*`, `./style.css`) stay in `package.json`. `@fyrst/ui/style.css` is Iconify icons only: do not add ` diff --git a/packages/components/src/components/Flyout/index.ts b/packages/components/src/components/Flyout/index.ts index 44ab08a..56ea669 100644 --- a/packages/components/src/components/Flyout/index.ts +++ b/packages/components/src/components/Flyout/index.ts @@ -1,10 +1,10 @@ import FlyoutRoot from './FlyoutRoot.vue' import FlyoutDropdown from './FlyoutDropdown.vue' -// Named exports for direct imports export { FlyoutRoot, FlyoutDropdown } -// Default export for namespaced usage: , +export type { FlyoutRootCss, FlyoutDropdownCss } from './types' + export default { Root: FlyoutRoot, Dropdown: FlyoutDropdown, diff --git a/packages/components/src/components/Flyout/types.ts b/packages/components/src/components/Flyout/types.ts new file mode 100644 index 0000000..d411dae --- /dev/null +++ b/packages/components/src/components/Flyout/types.ts @@ -0,0 +1,14 @@ +import type { DeepReadonly, Ref } from 'vue' +import { createInjectionKey } from '../../composables/injection-key' +import type { FlyoutOpenReason } from '../../composables/flyout' +import type { CssMap } from '../../internal/css' + +export interface FlyoutContext { + openedBy: DeepReadonly> + direction: Ref<'left' | 'right'> +} + +export const FlyoutContextKey = createInjectionKey('Flyout') + +export type FlyoutRootCss = CssMap<'root' | 'trigger' | 'content'> +export type FlyoutDropdownCss = CssMap<'root'> diff --git a/packages/components/src/components/Form/FormPrompt.vue b/packages/components/src/components/Form/FormPrompt.vue index 1a04294..f072ce7 100644 --- a/packages/components/src/components/Form/FormPrompt.vue +++ b/packages/components/src/components/Form/FormPrompt.vue @@ -1,6 +1,9 @@