@imfusion/web-ui 0.5.1-dev.18.g81350f83 → 0.5.1-dev.2.g0a349a2a

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.
Files changed (45) hide show
  1. package/README.md +43 -122
  2. package/bin/install-skill.js +180 -0
  3. package/dist/components/logo/logo.d.ts +1 -1
  4. package/dist/index.js +2 -4
  5. package/dist/style.css +1 -1
  6. package/package.json +24 -34
  7. package/src/docgen/doc.gen.json +1 -1
  8. package/src/llms/skills/imf-web-ui/SKILL.md +11 -15
  9. package/src/llms/skills/imf-web-ui-components/SKILL.md +1 -1
  10. package/src/llms/skills/imf-web-ui-frontend-patterns/SKILL.md +93 -0
  11. package/src/llms/skills/imf-web-ui-frontend-patterns/references/code-conventions.md +133 -0
  12. package/src/llms/skills/{imf-web-ui-frontend-conventions/references/react.md → imf-web-ui-frontend-patterns/references/react-patterns.md} +12 -26
  13. package/src/llms/skills/imf-web-ui-imfusion-frontend-setup/SKILL.md +201 -0
  14. package/src/llms/skills/imf-web-ui-setup/SKILL.md +57 -0
  15. package/src/llms/skills/imf-web-ui-ux/SKILL.md +4 -4
  16. package/src/llms/skills/imf-web-ui-ux/references/forms.md +1 -1
  17. package/bin/install.js +0 -319
  18. package/bin/install.test.ts +0 -139
  19. package/dist/build/vite-css-module-names/index.d.ts +0 -20
  20. package/dist/build/vite-css-module-names.js +0 -17
  21. package/src/llms/skills/imf-web-ui-agent-setup/SKILL.md +0 -71
  22. package/src/llms/skills/imf-web-ui-agent-setup/templates/hooks/baseline-staleness.sh +0 -17
  23. package/src/llms/skills/imf-web-ui-agent-setup/templates/hooks/post-tool-use.sh +0 -21
  24. package/src/llms/skills/imf-web-ui-agent-setup/templates/hooks/session-start.sh +0 -4
  25. package/src/llms/skills/imf-web-ui-agent-setup/templates/hooks/user-prompt-submit.sh +0 -4
  26. package/src/llms/skills/imf-web-ui-agent-setup/templates/settings.json +0 -37
  27. package/src/llms/skills/imf-web-ui-frontend-conventions/SKILL.md +0 -45
  28. package/src/llms/skills/imf-web-ui-frontend-conventions/references/assets.md +0 -23
  29. package/src/llms/skills/imf-web-ui-frontend-conventions/references/class-names.md +0 -42
  30. package/src/llms/skills/imf-web-ui-frontend-conventions/references/components.md +0 -63
  31. package/src/llms/skills/imf-web-ui-frontend-conventions/references/data.md +0 -130
  32. package/src/llms/skills/imf-web-ui-frontend-conventions/references/docs-structure.md +0 -44
  33. package/src/llms/skills/imf-web-ui-frontend-conventions/references/git.md +0 -33
  34. package/src/llms/skills/imf-web-ui-frontend-conventions/references/library-boundary.md +0 -37
  35. package/src/llms/skills/imf-web-ui-frontend-conventions/references/npm-project.md +0 -57
  36. package/src/llms/skills/imf-web-ui-frontend-conventions/references/project-structure.md +0 -21
  37. package/src/llms/skills/imf-web-ui-frontend-conventions/references/stack.md +0 -39
  38. package/src/llms/skills/imf-web-ui-frontend-conventions/references/styling.md +0 -91
  39. package/src/llms/skills/imf-web-ui-frontend-conventions/references/testing.md +0 -16
  40. package/src/llms/skills/imf-web-ui-frontend-conventions/references/tooling.md +0 -76
  41. package/src/llms/skills/imf-web-ui-frontend-conventions/references/typescript.md +0 -45
  42. package/src/llms/skills/imf-web-ui-frontend-setup/SKILL.md +0 -89
  43. package/src/llms/skills/imf-web-ui-frontend-setup/templates/AGENTS.md +0 -34
  44. package/src/llms/skills/imf-web-ui-frontend-setup/templates/README.md +0 -27
  45. package/src/llms/skills/imf-web-ui-library-setup/SKILL.md +0 -36
@@ -1,36 +0,0 @@
1
- ---
2
- name: imf-web-ui-library-setup
3
- description:
4
- "One-time wiring of a consumer project: the @imfusion/web-ui styles import and WebUIProvider wrapper. Load when installing
5
- the library for the first time, or when components render unstyled or without theme context."
6
- ---
7
-
8
- # imf-web-ui-library-setup
9
-
10
- This is library wiring: the styles import and the provider. It applies to anyone using `@imfusion/web-ui`.
11
-
12
- If the project is an **ImFusion** frontend and this is first-time setup, mention once that `imf-web-ui-frontend-setup` sets
13
- up or audits the repo's tooling (formatting, linting, hooks, scripts) against the ImFusion baseline, and let the human
14
- decide. Offer it; never run it uninvited, and don't raise it again if they pass — the library works fine without any of it.
15
-
16
- Every consumer entry point needs exactly two lines, in this order:
17
-
18
- ```tsx
19
- import "@imfusion/web-ui/styles.css";
20
- import { WebUIProvider, Button } from "@imfusion/web-ui";
21
- ```
22
-
23
- Wrap the app root in `<WebUIProvider>` once. Components rendered outside it won't have the theme/CSS-variable context they
24
- expect.
25
-
26
- Never import a Base UI (or other upstream) stylesheet or component directly — everything a web-ui component needs is already
27
- inside `styles.css` and the package's own exports; reaching around web-ui to the upstream library is always wrong, even if
28
- the upstream docs show it that way.
29
-
30
- ## Symptoms of a broken setup
31
-
32
- - **Components render but look unstyled** — the `styles.css` import is missing from the entry point.
33
- - **Components render but ignore the theme (wrong colors, no CSS variables resolving)** — they're mounted outside
34
- `<WebUIProvider>`.
35
- - **An integration component throws on import** — its optional peer dependency isn't installed; check the component's
36
- description in the docgen index (`imf-web-ui-components`) for which peer to add to your `package.json`.