@qoretechnologies/reqore 0.69.3 → 0.69.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.claude/CLAUDE.md CHANGED
@@ -96,6 +96,26 @@ yarn build # TypeScript compilation
96
96
  - `pre-push` hook enforces same checks before push (see `package.json`)
97
97
  - Line length: 100 characters (enforced by eslint)
98
98
 
99
+ ### Pre-commit / pre-push audit (`/audit`)
100
+
101
+ When the user asks the agent to commit OR push changes, the agent MUST first run the `/audit` skill on the pending diff and show the report — UNLESS `/audit` has already been run on the exact same set of changes in the current conversation (no new edits since). The audit catches the regressions `yarn precheck` cannot:
102
+
103
+ - Standard prop contract declared but never wired (the headline bug — `intent` extended on the interface but never read, so `intent='danger'` paints nothing).
104
+ - One-off raw HTML or styled wrappers where a Reqore primitive fits.
105
+ - Matrix stories (`Sizes`, `Intents`, …) that render identical-looking rows because the prop isn't wired OR the matrix isn't constrained on a wide viewport.
106
+ - Test coverage gaps against the standard prop matrix.
107
+ - Helper duplication vs `src/helpers/`.
108
+ - Appendix A drift vs `.tasks/NEW_COMPONENT.md`.
109
+
110
+ Order of operations on a commit/push request:
111
+
112
+ 1. Run `/audit` (if not already clean for this exact diff).
113
+ 2. Show the report.
114
+ 3. Pause for the user to either fix findings or explicitly waive them.
115
+ 4. Only then proceed to `git commit` / `git push`.
116
+
117
+ The audit never edits files and never invokes git — it reports; the user/agent decides what to fix. Skipping the audit on commit/push is a hard violation: the report is what makes the silent regressions visible.
118
+
99
119
  ### Testing Patterns
100
120
 
101
121
  - **Setup:** `__tests__/setup.js` disables console debug/info/error
@@ -0,0 +1,332 @@
1
+ ---
2
+ name: audit
3
+ description: Pre-commit audit for Reqore components. Runs tests / lint / typecheck, then checks that new or modified components actually wire the standard prop contract through to rendering (intent tints something, size scales something, customTheme reaches sub-components — not just declared), reuse existing Reqore primitives instead of one-off custom JSX or styled wrappers, follow Appendix A in `.tasks/NEW_COMPONENT.md`, have a sensible story matrix that **demonstrably** renders distinct variants (the Intents/Sizes stories actually look different), have tests that cover the standard prop matrix, and don't duplicate logic already living in `src/helpers/`. Invoke as `/audit` before every `git commit` and `git push` — the result is a structured report the user reads before deciding to commit. Never edits files, never invokes git.
4
+ ---
5
+
6
+ # `/audit` — Pre-Commit Audit for Reqore
7
+
8
+ This skill runs before a developer (or another agent) commits or pushes work on Reqore. It is **never optional** — the report must be produced and shown to the user before any commit/push is invoked. The user reads the report, decides what to fix or override, and then proceeds.
9
+
10
+ ## Goal
11
+
12
+ Catch problems that are easy to fix while the change is fresh and hard to spot in review without running the code:
13
+
14
+ 1. **Tests / lint / typecheck broken.** Deterministic gates.
15
+ 2. **Standard prop contract declared but not wired.** The headline regression: a new component `extends IReqoreIntent / IWithReqoreSize / IWithReqoreCustomTheme / IWithReqoreTransparent / IReqoreDisabled` etc. but never *uses* the destructured value, so `<ReqoreFoo intent='danger'>` paints nothing. The interface looks right, the prop is accepted by TypeScript, but the visible behaviour is missing.
16
+ 3. **One-off raw HTML or hand-rolled styled-components where a Reqore primitive fits.** A `<button>` instead of `<ReqoreButton>`, a `<div>` grid instead of `<ReqoreControlGroup>`, a styled wrapper around `<ReqoreTag>` that only changes the colour.
17
+ 4. **Stories that don't actually demonstrate the prop they claim to.** The classic case: an `Intents` story that renders 5 identical-looking rows because `intent` was never wired, OR because every row is rendered full-width on a 1440px viewport and nothing overflows. The story file exists, but the variants look the same.
18
+ 5. **Tests that don't cover the standard prop matrix.** Each meaningful prop should have a behavioural assertion.
19
+ 6. **Helper / code duplication.** A new utility that closely matches an existing one in `src/helpers/`.
20
+ 7. **Appendix A drift.** `.tasks/NEW_COMPONENT.md` Appendix A is the canonical convention list — `Omit<HTMLAttributes, 'title'>`, `memo + forwardRef`, transient `$`-prefixed style props, class hooks on every meaningful sub-element, sub-element `*Effect` props, no hardcoded pixels.
21
+
22
+ ## Procedure
23
+
24
+ Run checks in order, collect everything, emit a single Markdown report at the end. Do not stop at the first failure — collect everything so the user can address several findings at once.
25
+
26
+ ### Step 0 — Scope the diff
27
+
28
+ ```bash
29
+ git fetch origin --quiet
30
+ BASE=$(git merge-base HEAD origin/develop 2>/dev/null || git rev-parse HEAD~1)
31
+ git diff --stat $BASE...HEAD
32
+ git diff --name-only $BASE...HEAD
33
+ git status --short
34
+ ```
35
+
36
+ Treat the union of committed + staged + unstaged changes as the audit surface. **Never `git stash`** — Reqore has concurrent agents working in the same branch and stash can lose their work.
37
+
38
+ For very large diffs (>30 files or >2000 lines), warn the user up front and ask whether to audit the whole diff or just the staged/unstaged slice.
39
+
40
+ ### Step 1 — Deterministic gates
41
+
42
+ Run in parallel via Bash where possible:
43
+
44
+ ```bash
45
+ yarn test # vitest --project unit
46
+ yarn lint # eslint
47
+ yarn build:test:prod # tsc --noEmit
48
+ ```
49
+
50
+ - `yarn test` must end with `Tests` summary showing 0 failed. If a test fails, capture the failing test name + first relevant assertion line.
51
+ - `yarn lint` must exit 0. Capture any rule violations with file:line.
52
+ - `yarn build:test:prod` must exit 0. TypeScript errors are hard stops.
53
+
54
+ **`yarn test:stories`** (browser-based Storybook interaction tests) is **expensive** — only run it if the diff touches:
55
+
56
+ - Any `src/stories/**/*.stories.tsx`
57
+ - Any component referenced from a `.stories.tsx` `play` function
58
+ - `.storybook/` config
59
+ - A widely-used primitive that many stories transitively render (`ReqorePanel`, `ReqoreButton`, `ReqoreControlGroup`, `ReqoreEffect`, `ReqoreIcon`)
60
+
61
+ Otherwise note "skipped — diff does not touch story-bound files." When you do run it, expect a few minutes — set a Bash timeout of at least 600s.
62
+
63
+ A failing gate is a **hard stop** — the report leads with it.
64
+
65
+ ### Step 2 — Identify components in scope
66
+
67
+ Enumerate the audit targets from the diff:
68
+
69
+ - New or modified `src/components/<Name>/index.tsx` files → audited as **components**.
70
+ - New or modified `src/stories/<Name>/<Name>.stories.tsx` files → audited as **stories** (cross-checked against the component when one exists).
71
+ - New or modified `__tests__/<Name>.test.tsx` files → audited as **tests**.
72
+ - New or modified `src/helpers/**` → audited for duplication.
73
+
74
+ For each component target, read the file and note:
75
+
76
+ - The component name + props interface name.
77
+ - Which Reqore mixins it `extends` (e.g. `IReqoreIntent`, `IReqoreDisabled`, `IWithReqoreSize`, `IWithReqoreCustomTheme`, `IWithReqoreFlat`, `IWithReqoreFluid`, `IWithReqoreEffect`, `IWithReqoreTooltip`, `IWithReqoreTransparent`).
78
+ - The styled components it defines and their transient props.
79
+ - The sub-components it renders (`<ReqoreButton>`, `<ReqorePanel>`, etc.).
80
+
81
+ These are the inputs for Steps 3–8.
82
+
83
+ ### Step 3 — Standard contract wiring (the marquee check)
84
+
85
+ For each component in scope, for each mixin it extends, verify the corresponding prop is **destructured AND used** in a way that affects rendering. Not just spread into `{...rest}`.
86
+
87
+ | Mixin | Prop | What "wired" means |
88
+ |---|---|---|
89
+ | `IReqoreIntent` | `intent` | Passed to `useReqoreTheme('main', customTheme, intent, ...)` OR to a styled prop driving colour (e.g. `theme.intents[intent]` in a styled rule) OR passed to a sub-component that respects it. |
90
+ | `IWithReqoreSize` | `size` | Used in a lookup (`PADDING_FROM_SIZE[size]`, `RADIUS_FROM_SIZE[size]`, `SIZE_TO_PX[size]`, `CONTROL_TEXT_FROM_SIZE[size]`, ...) OR passed to a sub-component that scales with it. |
91
+ | `IWithReqoreCustomTheme` | `customTheme`, `inheritCustomTheme` | Both passed to `useReqoreTheme(...)`. `customTheme` ALSO forwarded to any sub-component that creates its own theme (otherwise descendants lose it). |
92
+ | `IWithReqoreEffect` | `effect` | Forwarded to `ReqoreTooltipComponent`, `StyledEffect`, or a sub-component. |
93
+ | `IWithReqoreFlat` | `flat` | Drives a border rule OR forwarded to a sub-component. |
94
+ | `IWithReqoreFluid` | `fluid` | Drives width via `$fluid` transient prop on the wrapper. |
95
+ | `IWithReqoreFixed` | `fixed` | Drives the `flex: 0 0 auto` / non-grow behaviour. |
96
+ | `IWithReqoreTooltip` | `tooltip` | Passed to `ReqoreTooltipComponent`. |
97
+ | `IReqoreDisabled` | `disabled` | Applies `DisabledElement` styles AND short-circuits interactive handlers (`onClick`, `onPick`, etc. early-return). |
98
+ | `IWithReqoreTransparent` | `transparent` | Drops the surface background (`'transparent'` instead of the resolved tint). |
99
+
100
+ **Detection heuristic:** after the destructure block, grep the rest of the file for each prop name. If the prop appears only in the destructure or only as `{...rest}` re-spread, flag it as "declared, not wired." If the prop appears in a `panelProps={...}` / `buttonProps={...}` forwarded object only, that's *partial* wiring — call it out so the user can decide whether the wrapper itself should also respect it.
101
+
102
+ Example finding:
103
+
104
+ > **IReqoreIntent declared but not wired** — [src/components/Foo/index.tsx:42](src/components/Foo/index.tsx#L42). Props interface extends `IReqoreIntent`, `intent` is destructured at line 67, but the only subsequent reference is `<ReqoreButton intent={intent}>` — the wrapper surface itself doesn't tint. If the wrapper has a visible surface (border, background, fade gradient), it should also derive its colour from `intent`. See `Testimonial` / `EntityRow` for the canonical pattern.
105
+
106
+ ### Step 4 — Reqore primitive reuse
107
+
108
+ Scan each component in scope (and any new view-level JSX) for opportunities to replace bespoke markup with existing Reqore primitives:
109
+
110
+ **Raw HTML with Reqore equivalents:**
111
+
112
+ | Raw | Use |
113
+ |---|---|
114
+ | `<button>` | `<ReqoreButton>` |
115
+ | `<input type="text">` etc. | `<ReqoreInput>` |
116
+ | `<textarea>` | `<ReqoreTextarea>` |
117
+ | `<table>` | `<ReqoreTable>` (or `<ReqoreKeyValueTable>` / `<ReqoreDescriptionList>` for k/v) |
118
+ | `<h1>..<h6>` | `<ReqoreH1>..<ReqoreH6>` or `<ReqoreHeading>` |
119
+ | `<p>` | `<ReqoreP>` (alias `ReqoreParagraph`) |
120
+ | `<span>` (text-bearing, themed) | `<ReqoreSpan>` |
121
+ | `<dialog>`, hand-rolled modal | `<ReqoreModal>` |
122
+ | `<details><summary>` | `<ReqoreCollapsibleContent>` (for in-place) or `<ReqoreAccordion>` (for header + body) |
123
+ | `<a>` | `<ReqoreLink>` |
124
+ | Hand-rolled tooltip / popover | `<ReqorePopover>` |
125
+ | Floating panel anchored to a trigger | `<ReqorePopover>` + `<ReqorePanel>` |
126
+
127
+ **Styled wrappers around Reqore primitives** are almost always wrong. Each is a finding unless the styled rule does something a prop genuinely can't:
128
+
129
+ ```bash
130
+ git diff $BASE...HEAD -- '*.tsx' '*.ts' | grep -E '^\+.*styled\(Reqore'
131
+ ```
132
+
133
+ For each hit, identify the cosmetic change:
134
+ - Colour → use `intent` / `customTheme` / `effect`
135
+ - Layout / spacing → use `padded` / `paddingSize` / `fluid` / `fixed` / `gapSize`
136
+ - Border → use `flat` / `rounded` / `radiusSize` / `intent`
137
+ - Background / blur → use `transparent` / `effect.backgroundBlur` / `effect.frost`
138
+ - Text styling → use `labelEffect` / `descriptionEffect` / `effect.weight` / `effect.italic` / `effect.uppercase`
139
+
140
+ **Hand-rolled layout** that maps to existing primitives:
141
+
142
+ - Vertical or horizontal flex with gap → `<ReqoreControlGroup vertical gapSize=...>`
143
+ - 2-column key/value rows → `<ReqoreKeyValueTable>` or `<ReqoreDescriptionList>`
144
+ - Sticky list of headed panels → `<ReqorePanel stickyHeader>` per item
145
+ - Card with marker + label + description → `<ReqoreFeatureCard>`
146
+ - Row with leading icon + label/description/metadata + actions → `<ReqoreEntityRow>`
147
+ - Row with severity strip + tag + label + actions → `<ReqoreSeverityRow>`
148
+ - KPI tile (number + label + trend) → `<ReqoreStatistic>`
149
+ - Quote / endorsement card → `<ReqoreTestimonial>`
150
+ - Inline notice + close button → `<ReqoreCallout>`
151
+ - Empty state with icon + label + actions → `<ReqoreEmptyState>`
152
+
153
+ **New helper that closely matches an existing one**:
154
+
155
+ ```bash
156
+ # Common helper names that frequently get reinvented
157
+ grep -nE '\b(padded|paddingSize|getCellSize|getOneLessSize|getOneHigherSize|resolveRadius|resolvePadding|changeLightness|changeDarkness|getMainBackgroundColor|getReadableColor|getColorFromMaybeString|getReadableColorFrom)\b' src/helpers/
158
+ ```
159
+
160
+ If the new helper duplicates one of these by a different name, flag it.
161
+
162
+ For each hit, write a row pointing at file:line and the recommended primitive / helper. A "keep" must carry a one-line written justification (genuine reason this surface needs custom markup).
163
+
164
+ ### Step 5 — Story matrix that actually varies
165
+
166
+ For each component in scope, open its story file and verify:
167
+
168
+ **Required matrix stories** (Appendix A.14):
169
+
170
+ - `Default` / `Basic`
171
+ - `Sizes` — if `IWithReqoreSize`
172
+ - `Intents` — if `IReqoreIntent`
173
+ - `Bordered` (`flat={false}`) — if `IWithReqoreFlat`
174
+ - `Square` (`rounded={false}`) — if the component has a border radius
175
+ - `Transparent` — if `IWithReqoreTransparent`
176
+ - `Disabled` — if `IReqoreDisabled`
177
+ - `Tooltip` — every component
178
+ - `Clickable` — if the component is interactive
179
+ - `WithEffects` — combined `effect` + sub-element effects
180
+ - `CustomTheme` — every component, with `customTheme={{ main: ... }}`
181
+ - `Fluid` — if `IWithReqoreFluid`
182
+ - `Fixed`, `Raised`, `NoWrap` as applicable
183
+
184
+ Missing required stories are findings.
185
+
186
+ **Matrix stories must visibly vary.** This is the lesson from the `CollapsibleContent` Intents/Sizes regression: the file existed, the stories rendered, but every row looked identical because the prop wasn't wired AND the rows were rendered fluid-width on a wide viewport so the content never overflowed.
187
+
188
+ For each `Sizes`/`Intents`/etc. matrix story, read the render function and verify:
189
+
190
+ 1. The iteration uses distinct values (not the same value with different labels).
191
+ 2. The container has a **constrained width** if the component is fluid — otherwise on a 1440px Chromatic viewport the content won't overflow / wrap and the variants will look the same. Typical good widths: 720px for content-bearing components, 600px for compact rows.
192
+ 3. The content is **enough** to demonstrate the prop's effect (a single `<p>` won't show fade variants in a `CollapsibleContent.Sizes` story; multiple `<ReqoreP>`s do).
193
+ 4. The prop driving the matrix is **actually wired in the component** (covered by Step 3 — but flag matrix stories where the prop isn't wired so the user knows the story is misleading even though it "exists").
194
+
195
+ **Story title pattern** (post commit `1b6c3cb`):
196
+
197
+ - `title: 'Display/<Component Name>'` — NOT `'Display/<Component>/Stories'`
198
+ - `title: 'Form/<Component Name>'` for form controls
199
+ - `title: 'Layout/<Component Name>'` for layout primitives
200
+
201
+ If the title still uses `/Stories`, that's a finding — the sidebar will show a redundant `Stories` group under each component.
202
+
203
+ ### Step 6 — Test matrix
204
+
205
+ For each component in scope, open its test file under `__tests__/<Name>.test.tsx`. The test matrix should cover (Appendix A.16):
206
+
207
+ - Root + each meaningful sub-element class hook (`.reqore-foo-label`, `-description`, `-actions`, etc.)
208
+ - Negative cases — optional parts NOT rendered when not provided
209
+ - Each intent value (or at least the four primary intents)
210
+ - Each size value (or at least `tiny / small / normal / big / huge`)
211
+ - `flat={false}` (border on case)
212
+ - `rounded={false}`
213
+ - `transparent`
214
+ - `effect` + sub-element effects together
215
+ - `onClick` fires (if interactive)
216
+ - `disabled` short-circuits (if interactive + disabled)
217
+ - `customTheme`
218
+ - Per-prop behaviour for the component-specific props (e.g. `padded={false}` produces no padding; `iconHasBackground={false}` produces no tile; `buttonAlign='right'` lands `align-items: flex-end`)
219
+
220
+ Missing test classes are findings.
221
+
222
+ If the standard `ReqoreUIProvider > ReqoreLayoutContent > ReqoreContent` wrapper isn't used, that's a finding too — many hooks (`useReqoreTheme`, `useReqoreProperty`) silently return undefined without it and tests can pass for the wrong reason.
223
+
224
+ ### Step 7 — Duplication / re-use
225
+
226
+ For each new helper or non-trivial utility introduced in the diff:
227
+
228
+ ```bash
229
+ git diff $BASE...HEAD -- 'src/**/*.tsx' 'src/**/*.ts' | grep -E '^\+(export )?(const|function) (use[A-Z]|resolve[A-Z]|get[A-Z]|format[A-Z]|build[A-Z]|parse[A-Z]|render[A-Z])'
230
+ ```
231
+
232
+ For each hit:
233
+
234
+ 1. Extract name + signature.
235
+ 2. `grep -rn` `src/helpers/` and `src/hooks/` for similar names or shapes.
236
+ 3. If a close match exists, report it: `→ duplicates <other location>; consider importing / parameterizing.`
237
+
238
+ Common reinventions to watch for (the recent session shows these are the usual suspects):
239
+
240
+ - Padding axis resolution → `resolvePadding({ padded, paddingSize, verticalMultiplier, horizontalMultiplier })`
241
+ - Size scaling → `getOneLessSize` / `getOneHigherSize`
242
+ - Color manipulation → `changeLightness` / `changeDarkness` / `getMainBackgroundColor` / `getReadableColor` / `getColorFromMaybeString` / `getReadableColorFrom`
243
+ - Theme resolution → `useReqoreTheme(main, customTheme, intent, intentsKey, inheritCustomTheme)`
244
+ - Container measurement → `useMeasure` from `react-use`
245
+ - Combined refs → `useCombinedRefs`
246
+ - Outside-click → `useOutsideClick`
247
+
248
+ A new component that looks 80% like an existing one (same props subset, same render structure) is also a finding — flag as a candidate for refactor into one parameterized component.
249
+
250
+ ### Step 8 — Appendix A drift
251
+
252
+ Walk each component in scope against `.tasks/NEW_COMPONENT.md` Appendix A:
253
+
254
+ - **A.2:** Props interface extends `Omit<React.HTMLAttributes<HTMLDivElement>, 'title'>` (NOT bare `HTMLAttributes`). The omit blocks the HTML `title` attribute from colliding with the standard Reqore `label` slot.
255
+ - **A.3:** `memo + forwardRef` wrapper. `ReqoreTooltipComponent` as the render-time wrapper (gives every component a free `tooltip` prop and propagates `effect` / `customTheme` / `disabled`). `useReqoreTheme(...)` (NOT direct context reads). `className` merges with the existing one and includes `.reqore-<component-name>`.
256
+ - **A.4:** Styling-only props on styled components use `$` prefix (transient). Pass-through props (`flat`, `rounded`, `size`) stay un-prefixed when they're also part of the public API.
257
+ - **A.5:** No hardcoded pixels — use `PADDING_FROM_SIZE`, `RADIUS_FROM_SIZE`, `SIZE_TO_PX`, `ICON_FROM_SIZE`, `CONTROL_TEXT_FROM_SIZE`.
258
+ - **A.6:** Use colour helpers (`changeLightness`, `getMainBackgroundColor`, `getReadableColor`, `getColorFromMaybeString`) not hex literals.
259
+ - **A.7:** Each text-bearing element gets its own `*Effect` prop (`labelEffect`, `descriptionEffect`, `metadataEffect`) for sub-element overrides.
260
+ - **A.8:** Badges via `<ButtonBadge>` with `margin='none'` inside a flex parent (not rolled by hand).
261
+ - **A.9:** `wrap={false}` truncation cascades into the actual text-bearing child via `& > *` selector on a `StyledTextSlot` — NOT applied to the wrapping `<div>`.
262
+ - **A.10:** Border respects `intent` when present (`changeLightness(intent ? theme.intents[intent] : getMainBackgroundColor(theme), 0.08)`).
263
+ - **A.11:** `raised` uses the shared `RaisedElement` helper, gated on `flat !== false` (to suppress the highlight when a border is rendered).
264
+ - **A.12:** Doesn't reinvent existing `IReqoreEffect` features (`gradient`, `glow`, `frost`, `backgroundBlur`, `weight`, `italic`, etc.) — pipes the `effect` prop through.
265
+ - **A.13:** Class hooks on every meaningful sub-element (`.reqore-<name>-label`, `-description`, `-actions`, etc.) for testability.
266
+ - **A.17:** Component exported from `src/index.tsx` in alphabetical order. Entry added to `src/components/COMPONENTS.md`.
267
+ - **A.18:** Doesn't silently drop `children` when supporting both `children` and structured props (`label` + `description`). Either fall back, render both, or document precedence.
268
+
269
+ Each missing item is a row pointing at the file:line.
270
+
271
+ ### Step 9 — Compose the report
272
+
273
+ Emit a single Markdown report with this shape. Use `[name](path#Lline)` links so the user can click into the IDE.
274
+
275
+ ```markdown
276
+ # /audit report — <branch> @ <short-sha>
277
+
278
+ ## ✅ Passing gates
279
+ - yarn test: <N> tests, 0 failed (<duration>)
280
+ - yarn lint: clean
281
+ - yarn build:test:prod: clean
282
+ - yarn test:stories: skipped — diff does not touch story-bound files
283
+ (OR: <N> stories, 0 failed)
284
+
285
+ ## ❌ Hard stops (fix before committing)
286
+ 1. **yarn test failed**: `__tests__/Foo.test.tsx > Renders <Foo /> with intent` — `expected null to be truthy`
287
+ 2. **lint error**: `src/components/Foo/index.tsx:42` — `'theme' is declared but its value is never read.`
288
+
289
+ ## ⚠️ Standard contract not wired
290
+ - [src/components/Foo/index.tsx:42](src/components/Foo/index.tsx#L42) — `IReqoreIntent` extended but `intent` is destructured at line 67 and never read again. → Pass to `useReqoreTheme(..., intent, ...)` and to the inner `<ReqoreButton intent={intent}>`.
291
+ - [src/components/Foo/index.tsx:55](src/components/Foo/index.tsx#L55) — `IWithReqoreSize` extended but the wrapper has no size-scaled padding/text. → Use `PADDING_FROM_SIZE[size]` for outer padding so size visibly scales the surface, not just the inner button.
292
+
293
+ ## ⚠️ Should use Reqore primitive
294
+ - [src/components/Bar/index.tsx:88](src/components/Bar/index.tsx#L88) — raw `<button>`. → Replace with `<ReqoreButton>`.
295
+ - [src/components/Bar/index.tsx:120](src/components/Bar/index.tsx#L120) — `styled(ReqoreTag)\`color: red\``. → Use `<ReqoreTag intent='danger'>` instead of wrapping.
296
+ - [src/components/Bar/index.tsx:145](src/components/Bar/index.tsx#L145) — vertical flex with `gap: 8px`. → Use `<ReqoreControlGroup vertical gapSize='small'>`.
297
+
298
+ ## ⚠️ Story matrix gaps
299
+ - [src/stories/Foo/Foo.stories.tsx:165](src/stories/Foo/Foo.stories.tsx#L165) — `Intents` story iterates `DEFAULT_INTENTS` correctly, BUT each row renders fluid-width and the content (3 paragraphs) fits within the 1440px viewport, so the fade never triggers and all intents look identical. → Constrain to `style={{ width: 720, maxWidth: '100%' }}` and use 4+ paragraphs.
300
+ - Missing `Disabled` story for `<ReqoreFoo>`.
301
+ - [src/stories/Bar/Bar.stories.tsx:14](src/stories/Bar/Bar.stories.tsx#L14) — `title: 'Display/Bar/Stories'` uses the deprecated `/Stories` suffix (removed in commit 1b6c3cb). → Change to `'Display/Bar'`.
302
+
303
+ ## ⚠️ Test matrix gaps
304
+ - `__tests__/Foo.test.tsx` — no test asserts `intent` is rendered.
305
+ - `__tests__/Foo.test.tsx` — no test for `disabled` short-circuiting `onClick`.
306
+
307
+ ## ⚠️ Duplication
308
+ - `resolveFooBar` in [src/components/Foo/index.tsx:42](src/components/Foo/index.tsx#L42) — same shape as `resolvePadding` in [src/helpers/utils.ts](src/helpers/utils.ts). → Import the shared helper.
309
+
310
+ ## ⚠️ Appendix A drift
311
+ - [src/components/Foo/index.tsx:20](src/components/Foo/index.tsx#L20) — props interface uses bare `React.HTMLAttributes<HTMLDivElement>`. → Use `Omit<..., 'title'>` per A.2.
312
+ - [src/components/Foo/index.tsx:140](src/components/Foo/index.tsx#L140) — hardcoded `padding: 12px`. → Use `PADDING_FROM_SIZE[size]` per A.5.
313
+ - `<ReqoreFoo>` not exported from `src/index.tsx`.
314
+ - No entry in `src/components/COMPONENTS.md` for `<ReqoreFoo>`.
315
+
316
+ ## ℹ️ Justifications recorded
317
+ - (none)
318
+
319
+ ## Suggested next step
320
+ Address the **hard stops** first, then walk the **Standard contract not wired** rows top-down — those are the bugs that look right in TypeScript but render wrong in the browser. Re-run `/audit` after each cluster.
321
+ ```
322
+
323
+ ## Operating notes
324
+
325
+ - The audit **never edits files** and **never invokes `git commit` or `git push`**. It reports; the user/agent then chooses what to fix.
326
+ - Always emit a section — even an empty one (`- (none)`) — for each of: Hard stops, Standard contract, Reqore primitive reuse, Story matrix, Test matrix, Duplication, Appendix A drift, Justifications. A silent section is suspicious; explicit `(none)` makes the absence visible.
327
+ - A **new file** in the diff (especially under `src/components/<NewName>/index.tsx`) deserves extra scrutiny — a brand-new component is the highest-leverage point to ask "does this match Appendix A and the standard contract end-to-end?"
328
+ - For single-typo / comment-only / regenerated-docs diffs, the report is one paragraph and explicitly says so — no need to walk every section.
329
+ - `yarn test:stories` is gated: run only if the diff touches story-bound files, otherwise skip and say so. Set a Bash timeout ≥ 600s when running it.
330
+ - Story `play` functions should query inside `waitFor` (not capture the result outside) — flag any `const x = canvasElement.querySelector(...); await waitFor(() => expect(x).toBeTruthy())` pattern as fragile (captures once, can fail when mount is delayed).
331
+ - The audit can spawn an `Explore` sub-agent for large diffs to parallelize the per-file reading; merge findings into the final report.
332
+ - If a finding is genuinely a false positive (e.g. a component intentionally has no size-scaled wrapper because it's a transparent disclosure widget), the user can record a one-line justification in the **Justifications recorded** section. A blanket "keep" with no reason is not acceptable — the report must call it out.
@@ -497,7 +497,7 @@ Every new surface component should have these stories at minimum (under `src/sto
497
497
  - `Raised` — when supported (see A.11)
498
498
  - `NoWrap` (or `Truncated`) — when supported (with a narrow-width decorator so the ellipsis is visible)
499
499
 
500
- **Story title pattern**: `'Display/<Component>/Stories'` or `'Data Display/<Component>/Stories'`. Match the existing folder grouping.
500
+ **Story title pattern**: `'Display/<Component>'` or `'Data Display/<Component>'`. Match the existing folder grouping. The repo used to suffix titles with `/Stories` but that was removed in commit `1b6c3cb` — don't reintroduce it; it creates a redundant `Stories` group in the sidebar under each component.
501
501
 
502
502
  ## A.15 Storybook layout pitfall
503
503
 
@@ -18,6 +18,7 @@ export interface IReqoreButtonProps extends React.HTMLAttributes<HTMLButtonEleme
18
18
  tooltip?: TReqoreTooltipProp;
19
19
  fluid?: boolean;
20
20
  fixed?: boolean;
21
+ alignSelf?: React.CSSProperties['alignSelf'];
21
22
  active?: boolean;
22
23
  flat?: boolean;
23
24
  animated?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAGtE,OAAO,EAUL,MAAM,EACP,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAwBzE,OAAO,EACL,eAAe,EACf,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAEL,aAAa,EAGb,kBAAkB,EAClB,eAAe,EAChB,MAAM,WAAW,CAAC;AACnB,OAAmB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEvD,OAAkB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAIpD,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,eAAe,CAAC;AAE7D;;GAEG;AACH,MAAM,WAAW,kBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAC7C,eAAe,EACf,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,iBAAiB;IACnB,IAAI,CAAC,EAAE,eAA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B,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB;AA0BD,eAAO,MAAM,yBAAyB,KAQrC,CAAC;AAEF,eAAO,MAAM,YAAY,KAsLxB,CAAC;AAEF,eAAO,MAAM,mBAAmB,KAe/B,CAAC;AAEF,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAC9D,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,CAAC;IACxC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,WAAW,+EACsC,uBAAuB,6CAwFpF,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,YAAY,8HA4QjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -145,8 +145,8 @@ exports.StyledButton = (0, styled_components_1.default)(Effect_1.StyledEffect)(t
145
145
  var grow = _a.grow;
146
146
  return grow;
147
147
  }, function (_a) {
148
- var fixed = _a.fixed, fluid = _a.fluid;
149
- return (fixed ? 'flex-start' : fluid ? 'stretch' : undefined);
148
+ var alignSelf = _a.alignSelf, fixed = _a.fixed, fluid = _a.fluid;
149
+ return alignSelf !== null && alignSelf !== void 0 ? alignSelf : (fixed ? 'flex-start' : fluid ? 'stretch' : undefined);
150
150
  }, function (_a) {
151
151
  var size = _a.size, radiusSize = _a.radiusSize, rounded = _a.rounded, pill = _a.pill, circle = _a.circle;
152
152
  return rounded === false
@@ -267,7 +267,7 @@ exports.ButtonBadge = (0, react_1.memo)(function (_a) {
267
267
  */
268
268
  var ReqoreButton = (0, react_1.memo)((0, react_1.forwardRef)(function (_a, ref) {
269
269
  var _b, _c;
270
- var icon = _a.icon, _d = _a.size, size = _d === void 0 ? 'normal' : _d, minimal = _a.minimal, transparent = _a.transparent, children = _a.children, tooltip = _a.tooltip, className = _a.className, fluid = _a.fluid, fixed = _a.fixed, intent = _a.intent, active = _a.active, flat = _a.flat, rightIcon = _a.rightIcon, customTheme = _a.customTheme, wrap = _a.wrap, readOnly = _a.readOnly, badge = _a.badge, description = _a.description, maxWidth = _a.maxWidth, _e = _a.textAlign, textAlign = _e === void 0 ? 'left' : _e, effect = _a.effect, labelEffect = _a.labelEffect, descriptionEffect = _a.descriptionEffect, leftIconColor = _a.leftIconColor, rightIconColor = _a.rightIconColor, iconColor = _a.iconColor, iconsAlign = _a.iconsAlign, leftIconProps = _a.leftIconProps, rightIconProps = _a.rightIconProps, label = _a.label, compact = _a.compact, as = _a.as, animated = _a.animated, loading = _a.loading, loadingIconType = _a.loadingIconType, rest = __rest(_a, ["icon", "size", "minimal", "transparent", "children", "tooltip", "className", "fluid", "fixed", "intent", "active", "flat", "rightIcon", "customTheme", "wrap", "readOnly", "badge", "description", "maxWidth", "textAlign", "effect", "labelEffect", "descriptionEffect", "leftIconColor", "rightIconColor", "iconColor", "iconsAlign", "leftIconProps", "rightIconProps", "label", "compact", "as", "animated", "loading", "loadingIconType"]);
270
+ var icon = _a.icon, _d = _a.size, size = _d === void 0 ? 'normal' : _d, minimal = _a.minimal, transparent = _a.transparent, children = _a.children, tooltip = _a.tooltip, className = _a.className, fluid = _a.fluid, fixed = _a.fixed, alignSelf = _a.alignSelf, intent = _a.intent, active = _a.active, flat = _a.flat, rightIcon = _a.rightIcon, customTheme = _a.customTheme, wrap = _a.wrap, readOnly = _a.readOnly, badge = _a.badge, description = _a.description, maxWidth = _a.maxWidth, _e = _a.textAlign, textAlign = _e === void 0 ? 'left' : _e, effect = _a.effect, labelEffect = _a.labelEffect, descriptionEffect = _a.descriptionEffect, leftIconColor = _a.leftIconColor, rightIconColor = _a.rightIconColor, iconColor = _a.iconColor, iconsAlign = _a.iconsAlign, leftIconProps = _a.leftIconProps, rightIconProps = _a.rightIconProps, label = _a.label, compact = _a.compact, as = _a.as, animated = _a.animated, loading = _a.loading, loadingIconType = _a.loadingIconType, rest = __rest(_a, ["icon", "size", "minimal", "transparent", "children", "tooltip", "className", "fluid", "fixed", "alignSelf", "intent", "active", "flat", "rightIcon", "customTheme", "wrap", "readOnly", "badge", "description", "maxWidth", "textAlign", "effect", "labelEffect", "descriptionEffect", "leftIconColor", "rightIconColor", "iconColor", "iconsAlign", "leftIconProps", "rightIconProps", "label", "compact", "as", "animated", "loading", "loadingIconType"]);
271
271
  var animations = (0, useReqoreContext_1.useReqoreProperty)('animations');
272
272
  var theme = (0, useTheme_1.useReqoreTheme)('main', customTheme, intent);
273
273
  var fixedEffect = (0, useReqoreEffect_1.useReqoreEffect)('buttons', theme, effect);
@@ -293,7 +293,7 @@ var ReqoreButton = (0, react_1.memo)((0, react_1.forwardRef)(function (_a, ref)
293
293
  var memoEffect = (0, react_1.useMemo)(function () { return (__assign(__assign({ interactive: !readOnly && !rest.disabled }, fixedEffect), { gradient: intent ? undefined : fixedEffect === null || fixedEffect === void 0 ? void 0 : fixedEffect.gradient })); }, [fixedEffect, intent, readOnly, rest.disabled]);
294
294
  return ((0, jsx_runtime_1.jsxs)(TooltipComponent_1.ReqoreTooltipComponent, __assign({}, rest, { effect: memoEffect,
295
295
  tabIndex: rest.disabled ? -1 : 0,
296
- as: as || 'button', theme: theme, fluid: fluid, fixed: fixed, maxWidth: maxWidth, minimal: minimal, transparent: transparent, size: size, intent: intent, color: customColor, animate: animate, flat: _flat, active: active, readOnly: readOnly || loading, wrap: wrap, description: description, className: "".concat(className || '', " reqore-control reqore-button"),
296
+ as: as || 'button', theme: theme, fluid: fluid, fixed: fixed, alignSelf: alignSelf, maxWidth: maxWidth, minimal: minimal, transparent: transparent, size: size, intent: intent, color: customColor, animate: animate, flat: _flat, active: active, readOnly: readOnly || loading, wrap: wrap, description: description, className: "".concat(className || '', " reqore-control reqore-button"),
297
297
  compact: _compact, tooltip: tooltip, Component: exports.StyledButton, ref: ref, children: [(0, jsx_runtime_1.jsxs)(exports.StyledButtonContent, { size: size, wrap: wrap, description: description, flat: _flat, children: [hasLeftIcon ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Icon_1.default, __assign({ size: size, color: leftIconColor || iconColor, compact: true, effect: {
298
298
  opacity: colors_1.CONTROL_ICON_OPACITY,
299
299
  } }, leftIconProps, { style: textAlign !== 'left' || iconsAlign === 'center' || !_children
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA8B;AAC9B,qCAAgD;AAChD,+BAAsE;AACtE,qEAAgD;AAChD,iDAA8D;AAC9D,+CAW+B;AAE/B,+CAM8B;AAC9B,6CAAuE;AACvE,iEAAiE;AACjE,+DAA8D;AAC9D,iDAAsD;AACtD,uCAWsB;AAWtB,oCAOmB;AACnB,iDAAuD;AACvD,oCAAiE;AACjE,+CAAoD;AACpD,uDAA0C;AAC1C,wDAA6D;AAwE7D,IAAM,kBAAkB,GAAG,UACzB,KAAmB,EACnB,KAAuB,EACvB,MAAsB;IAEtB,IAAM,OAAO,GAAG,IAAA,2BAAkB,EAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,CAAC,CAAC;IACrD,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,IAAA,uBAAc,EAAC,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/C,CAAC;IAED,IAAI,KAAK,EAAE,CAAC;QACV,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC;AACpB,CAAC,CAAC;AAEF,IAAM,kBAAkB,GAAG,UAAC,EAAsC;QAApC,OAAO,aAAA,EAAE,WAAW,iB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oB;iCAC9B,IACG,cAAc,IAClB,KAAK,EACH,SAAS,KAAK,OAAO,IAAI,UAAU,KAAK,QAAQ;oCAC9C,CAAC,CAAC;wCACE,UAAU,EACR,CAAC,oBAAoB,IAAI,CAAC,UAAU,KAAK,QAAQ,IAAI,CAAC,SAAS,CAAC;4CAC9D,CAAC,CAAC,MAAM;4CACR,CAAC,CAAC,SAAS;wCACf,WAAW,EACT,UAAU,KAAK,QAAQ,IAAI,CAAC,SAAS,KAAK,QAAQ,IAAI,CAAC,SAAS,CAAC;4CAC/D,CAAC,CAAC,MAAM;4CACR,CAAC,CAAC,SAAS;qCAChB;oCACH,CAAC,CAAC,SAAS,IAEf,IACD,CACJ,IACmB,EAErB,WAAW,IAAI,CACd,uBAAC,yBAAgB,IACf,SAAS,EAAC,2BAA2B,EACrC,MAAM,aACJ,QAAQ,EAAE,IAAA,sBAAc,EAAC,IAAI,CAAC,EAC9B,MAAM,EAAE,OAAO,EACf,SAAS,WAAA,IACN,iBAAiB,aAGrB,WAAW,GACK,CACpB,KACsB,CAC1B,CAAC;AACJ,CAAC,CACF,CACF,CAAC;AAEF,kBAAe,YAAY,CAAC"}
@@ -0,0 +1,64 @@
1
+ import { ReactNode } from 'react';
2
+ import { IReqoreDisabled, IReqoreIntent, IWithReqoreCustomTheme, IWithReqoreEffect, IWithReqoreFluid, IWithReqoreSize, IWithReqoreTooltip, IWithReqoreTransparent } from '../../types/global';
3
+ import { IReqoreIconName } from '../../types/icons';
4
+ import { IReqoreButtonProps } from '../Button';
5
+ export interface IReqoreCollapsibleContentProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'>, IReqoreDisabled, IReqoreIntent, IWithReqoreCustomTheme, IWithReqoreEffect, IWithReqoreFluid, IWithReqoreSize, IWithReqoreTooltip, IWithReqoreTransparent {
6
+ /** Content to reveal. Always rendered; clipped behind the fade when taller than the threshold. */
7
+ children: ReactNode;
8
+ /**
9
+ * Natural-height threshold in pixels. Content taller than this is clipped to this height
10
+ * and faded out behind a "Show more" affordance; shorter content shows in full with no fade.
11
+ * @default 300
12
+ */
13
+ maxCollapsedHeight?: number;
14
+ /** Start expanded, skipping the initial clip. @default false */
15
+ defaultExpanded?: boolean;
16
+ /** Reveal-button label. @default 'Show more' */
17
+ showMoreLabel?: string;
18
+ /** Collapse-button label. @default 'Show less' */
19
+ showLessLabel?: string;
20
+ /** Reveal-button icon. @default 'ArrowDownSLine' */
21
+ showMoreIcon?: IReqoreIconName;
22
+ /** Collapse-button icon. @default 'ArrowUpSLine' */
23
+ showLessIcon?: IReqoreIconName;
24
+ /**
25
+ * When the reveal / collapse button is shown. `'always'` keeps it visible; `'hover'` hides it
26
+ * until the content is hovered or keyboard-focused, for a quieter ambient look. Prefer
27
+ * `'always'` — a hover-only affordance is invisible on touch devices and in static snapshots.
28
+ * @default 'always'
29
+ */
30
+ revealOn?: 'always' | 'hover';
31
+ /**
32
+ * Horizontal alignment of the reveal / collapse buttons inside the fade overlay.
33
+ * @default 'center'
34
+ */
35
+ buttonAlign?: 'left' | 'center' | 'right';
36
+ /**
37
+ * Stretch the reveal button to the full width of the overlay (the collapse button below the
38
+ * content is already full-width because it owns its own row).
39
+ * @default false
40
+ */
41
+ buttonFluid?: boolean;
42
+ /**
43
+ * Animate the expand / collapse transition. Off by default — many surfaces want the
44
+ * disclosure to feel instant. The animation only runs when:
45
+ * 1. `animated` is `true`, AND
46
+ * 2. the global `animations.dialogs` flag isn't disabled in the `ReqoreUIProvider`, AND
47
+ * 3. the user isn't in `prefers-reduced-motion`.
48
+ *
49
+ * Powered by a `max-height` transition with the content's measured `scrollHeight` as the
50
+ * expand target — no `auto` → fixed-value broken animation. The fade overlay's opacity rides
51
+ * along so it doesn't pop.
52
+ * @default false
53
+ */
54
+ animated?: boolean;
55
+ /** Extra props forwarded to both the reveal and collapse buttons. */
56
+ buttonProps?: Partial<IReqoreButtonProps>;
57
+ }
58
+ /**
59
+ * Height-clipping "Show more" reveal: tall content clips behind a gradient fade with a reveal
60
+ * button (on hover / focus) and expands to a "Show less"; short content shows whole, no fade.
61
+ */
62
+ export declare const ReqoreCollapsibleContent: import("react").MemoExoticComponent<(props: IReqoreCollapsibleContentProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement | null>;
63
+ export default ReqoreCollapsibleContent;
64
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CollapsibleContent/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAqD,MAAM,OAAO,CAAC;AAQvG,OAAO,EACL,eAAe,EACf,aAAa,EACb,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAqB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAI7D,MAAM,WAAW,8BACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,EACzD,eAAe,EACf,aAAa,EACb,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,sBAAsB;IACxB,kGAAkG;IAClG,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gEAAgE;IAChE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gDAAgD;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kDAAkD;IAClD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oDAAoD;IACpD,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,oDAAoD;IACpD,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;I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