@supersoniks/concorde 5.0.4 → 5.1.0

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 (123) hide show
  1. package/.agents/skills/concorde-component-docs/SKILL.md +194 -0
  2. package/.agents/skills/concorde-component-docs/template.md +45 -0
  3. package/.tmp-cem/custom-elements.json +13705 -0
  4. package/ai/cursor/rules/concorde-theme.mdc +1 -1
  5. package/ai/cursor/rules/concorde.mdc +1 -1
  6. package/ai/skills/concorde/SKILL.md +1 -1
  7. package/ai/skills/concorde-theme/SKILL.md +21 -10
  8. package/build-infos.json +1 -1
  9. package/concorde-3d.bundle.js +3960 -0
  10. package/concorde-3d.es.js +33433 -0
  11. package/concorde-core.bundle.js +507 -513
  12. package/concorde-core.es.js +4027 -3702
  13. package/concorde-hugging-face-infer.bundle.js +32 -0
  14. package/concorde-hugging-face-infer.es.js +2952 -0
  15. package/concorde-interactive.bundle.js +1157 -0
  16. package/concorde-interactive.es.js +10734 -0
  17. package/concorde-shader.bundle.js +116 -0
  18. package/concorde-shader.es.js +8353 -0
  19. package/concorde-webgpu.bundle.js +307 -0
  20. package/concorde-webgpu.es.js +8627 -0
  21. package/custom-elements-manifest.config.mjs +14 -0
  22. package/dist/concorde-core.bundle.js +507 -513
  23. package/dist/concorde-core.es.js +4027 -3702
  24. package/dist/docs-mock-api-sw.js +2 -0
  25. package/dist/docs-mock-api-sw.js.map +2 -2
  26. package/gitlab/job_tests.sh +0 -0
  27. package/index.html +4 -2
  28. package/package.json +42 -2
  29. package/public/docs-mock-api-sw.js +2 -0
  30. package/public/docs-mock-api-sw.js.map +2 -2
  31. package/scripts/generate-sdui-catalog.mjs +250 -0
  32. package/scripts/generate-sdui-catalog.spec.ts +91 -0
  33. package/scripts/pre-build.mjs +15 -0
  34. package/src/core/components/functional/if/if.ts +0 -0
  35. package/src/core/components/functional/sdui/SDUIDescriptorTransformer.ts +5 -5
  36. package/src/core/components/functional/sdui/__fixtures__/descriptors.ts +251 -0
  37. package/src/core/components/functional/sdui/__snapshots__/sdui-action.spec.ts.snap +73 -0
  38. package/src/core/components/functional/sdui/__snapshots__/sdui-incremental.spec.ts.snap +50 -0
  39. package/src/core/components/functional/sdui/__snapshots__/sdui-partial.spec.ts.snap +50 -0
  40. package/src/core/components/functional/sdui/__snapshots__/sdui.regression.spec.ts.snap +461 -0
  41. package/src/core/components/functional/sdui/component-catalog.gaps.json +511 -0
  42. package/src/core/components/functional/sdui/component-catalog.json +3103 -0
  43. package/src/core/components/functional/sdui/component-catalog.spec.ts +23 -0
  44. package/src/core/components/functional/sdui/sdui-action.spec.ts +99 -0
  45. package/src/core/components/functional/sdui/sdui-dom-snapshot.ts +61 -0
  46. package/src/core/components/functional/sdui/sdui-extension-points.md +94 -0
  47. package/src/core/components/functional/sdui/sdui-incremental.spec.ts +137 -0
  48. package/src/core/components/functional/sdui/sdui-partial.spec.ts +83 -0
  49. package/src/core/components/functional/sdui/sdui-partial.ts +19 -0
  50. package/src/core/components/functional/sdui/sdui-safe.spec.ts +188 -0
  51. package/src/core/components/functional/sdui/sdui-safe.ts +100 -0
  52. package/src/core/components/functional/sdui/sdui.md +122 -0
  53. package/src/core/components/functional/sdui/sdui.regression.spec.ts +64 -0
  54. package/src/core/components/functional/sdui/sdui.ts +442 -34
  55. package/src/core/components/functional/sdui/types.ts +49 -0
  56. package/src/core/components/functional/value/value.ts +0 -0
  57. package/src/core/components/ui/_css/align.ts +1 -0
  58. package/src/core/components/ui/_css/type.ts +86 -8
  59. package/src/core/components/ui/_i18n/ui-aria-labels.ts +8 -0
  60. package/src/core/components/ui/alert/alert.md +21 -2
  61. package/src/core/components/ui/alert-messages/alert-messages.md +85 -0
  62. package/src/core/components/ui/badge/badge.md +19 -6
  63. package/src/core/components/ui/badge/badge.ts +8 -9
  64. package/src/core/components/ui/button/button.ts +5 -15
  65. package/src/core/components/ui/captcha/captcha.md +65 -6
  66. package/src/core/components/ui/card/card.md +73 -10
  67. package/src/core/components/ui/card/card.ts +24 -22
  68. package/src/core/components/ui/divider/divider.md +107 -13
  69. package/src/core/components/ui/divider/divider.ts +40 -33
  70. package/src/core/components/ui/form/fieldset/fieldset.md +175 -99
  71. package/src/core/components/ui/form/fieldset/fieldset.ts +15 -28
  72. package/src/core/components/ui/form/fieldset/legend.ts +13 -13
  73. package/src/core/components/ui/form/form-actions/form-actions.md +75 -52
  74. package/src/core/components/ui/form/form-actions/form-actions.ts +7 -5
  75. package/src/core/components/ui/form/form-layout/form-layout.md +109 -34
  76. package/src/core/components/ui/form/form-layout/form-layout.ts +27 -24
  77. package/src/core/components/ui/form/textarea/textarea.ts +4 -3
  78. package/src/core/components/ui/group/group.md +36 -36
  79. package/src/core/components/ui/group/group.ts +5 -10
  80. package/src/core/components/ui/icon/icon.md +132 -43
  81. package/src/core/components/ui/image/image.md +35 -3
  82. package/src/core/components/ui/link/link.md +43 -5
  83. package/src/core/components/ui/loader/loader.md +79 -22
  84. package/src/core/components/ui/loader/loader.ts +67 -27
  85. package/src/core/components/ui/loader/styles/fixed.ts +6 -11
  86. package/src/core/components/ui/menu/menu.md +133 -92
  87. package/src/core/components/ui/menu/menu.ts +53 -58
  88. package/src/core/components/ui/modal/modal.md +163 -47
  89. package/src/core/components/ui/modal/modal.ts +2 -4
  90. package/src/core/components/ui/pop/pop.md +217 -123
  91. package/src/core/components/ui/pop/pop.ts +0 -1
  92. package/src/core/components/ui/progress/progress.md +76 -30
  93. package/src/core/components/ui/progress/progress.ts +25 -56
  94. package/src/core/components/ui/table/table-caption.ts +2 -2
  95. package/src/core/components/ui/table/table-tbody.ts +3 -3
  96. package/src/core/components/ui/table/table-td.ts +23 -18
  97. package/src/core/components/ui/table/table-th.ts +8 -8
  98. package/src/core/components/ui/table/table-tr.ts +4 -4
  99. package/src/core/components/ui/table/table.md +147 -171
  100. package/src/core/components/ui/table/table.ts +20 -19
  101. package/src/core/components/ui/theme/theme-collection/auto.ts +15 -0
  102. package/src/core/components/ui/theme/theme-collection/core-variables.ts +8 -31
  103. package/src/core/components/ui/theme/theme-collection/dark.ts +1 -7
  104. package/src/core/components/ui/theme/theme-collection/light.ts +30 -26
  105. package/src/core/components/ui/theme/theme.md +122 -0
  106. package/src/core/components/ui/theme/theme.ts +30 -7
  107. package/src/core/components/ui/toast/toast-item.ts +6 -9
  108. package/src/core/components/ui/toast/toast.md +108 -58
  109. package/src/core/components/ui/toast/types.ts +1 -1
  110. package/src/core/components/ui/tooltip/tooltip.md +68 -26
  111. package/src/docs/_getting-started/start.md +1 -1
  112. package/src/docs/_getting-started/theming.md +223 -61
  113. package/src/docs/code.ts +125 -58
  114. package/src/docs/header/header.ts +62 -54
  115. package/src/docs/mock-api/router.ts +2 -0
  116. package/src/docs/navigation/navigation.ts +6 -3
  117. package/src/docs/search/docs-search.json +2504 -399
  118. package/src/docs/search/markdown-renderer.ts +6 -6
  119. package/src/docs/search/search.ts +4 -4
  120. package/src/docs/tailwind/css/tailwind.css +6 -5
  121. package/src/tsconfig.json +108 -0
  122. package/src/tsconfig.tsbuildinfo +1 -1
  123. package/tailwind.config.js +19 -0
@@ -8,6 +8,6 @@ alwaysApply: false
8
8
 
9
9
  Skill **`concorde-theme`**
10
10
 
11
- - `<sonic-theme background color font>` + `--sc-*` CSS variables
11
+ - `<sonic-theme color font class="block bg-base">` + `--sc-*` CSS variables
12
12
  - `theme="dark"` for built-in dark palette
13
13
  - Not for `serviceURL` / API — use **`concorde-scope`**
@@ -53,7 +53,7 @@ Placeholder `${prop}` = chaîne normale, résolu depuis le composant hôte.
53
53
  par `get` pour `refetch`.
54
54
  - **Write + handler** : même modèle avec `post`, `put`, `patch` ; `@send`
55
55
  reste le déclencheur explicite.
56
- - **Theme** : `<sonic-theme background color font>` · `--sc-*` — skill `concorde-theme`
56
+ - **Theme** : `<sonic-theme color font class="block bg-base">` · `--sc-*` — skill `concorde-theme`
57
57
 
58
58
  ## Migration Subscriber / sonic-fetch (piège fréquent)
59
59
 
@@ -170,7 +170,7 @@ Avancés : `cache`, `blockUntilDone`, `keepAlive`, `addHTTPResponse`.
170
170
 
171
171
  Skill dédié : **`concorde-theme`**.
172
172
 
173
- `<sonic-theme background color font>` + variables CSS `--sc-*` (surfaces, sémantique, typo). Pas pour l’API.
173
+ `<sonic-theme color font class="block bg-base">` + variables CSS `--sc-*` (surfaces, sémantique, typo). Pas pour l’API.
174
174
 
175
175
  ```typescript
176
176
  import "@supersoniks/concorde/theme";
@@ -8,37 +8,48 @@ description: >-
8
8
 
9
9
  `<sonic-theme>` définit la base visuelle Concorde. **Pas** pour l’API (`serviceURL` → scope, skill `concorde-scope`).
10
10
 
11
+ Les composants ont un **rendu par défaut** sans override : fallbacks dans chaque composant + presets `light` / `dark`. Ne documenter que le **plus petit ensemble** de variables publiques `--sc-*` pour personnaliser un thème.
12
+
11
13
  ```typescript
12
14
  import "@supersoniks/concorde/theme";
13
15
  ```
14
16
 
15
17
  ```html
16
- <sonic-theme background color font>
18
+ <sonic-theme color font class="block bg-base min-h-screen">
17
19
  …app…
18
20
  </sonic-theme>
19
21
 
20
22
  <!-- dark -->
21
- <sonic-theme theme="dark" background color font>…</sonic-theme>
23
+ <sonic-theme theme="dark" color font class="block bg-base min-h-screen">…</sonic-theme>
22
24
  ```
23
25
 
24
26
  ## Attributs
25
27
 
26
28
  | Attribut | Rôle |
27
29
  |----------|------|
28
- | `background` | Fond page / surface (`--sc-base`) |
30
+ | `class="bg-base block"` (Tailwind) | Fond page / surface (`--sc-base`) |
29
31
  | `color` | Couleur texte (`--sc-base-content`) |
30
32
  | `font` | Famille / graisse (`--sc-font-family-base`) |
31
- | `theme="light"` \| `"dark"` | Palette built-in |
33
+ | *(omit)* \| `theme="custom"` | Défaut : tokens core + vos `--sc-*` ; pas de palette light/dark built-in |
34
+ | `theme="light"` \| `"dark"` \| `"auto"` | Presets opt-in ; `auto` suit `prefers-color-scheme` |
35
+
36
+ ## Variables CSS essentielles (API publique)
37
+
38
+ Override dans `:root`, sur `sonic-theme`, ou fichier CSS projet. **Ne pas** recopier les dérivées (`--sc-rounded-sm`, `--sc-btn-rounded`, …) : elles sont calculées par le thème à partir des primitives.
32
39
 
33
- ## Variables CSS
40
+ Convention : **sans suffixe `-content`** = couleur de **fond / surface / remplissage** ; **avec `-content`** = **texte et icônes** posés sur cette surface (boutons pleins, badges, etc.). Ne pas mélanger les deux rôles.
34
41
 
35
- Override dans `:root` ou fichier CSS projet :
42
+ - **Surfaces neutres (fonds)** : `--sc-base`, `--sc-base-50` … `--sc-base-900`
43
+ - **Texte sur surfaces neutres** : `--sc-base-content` (défaut UI, corps de page)
44
+ - **Couleurs sémantiques (fonds)** : `--sc-primary`, `--sc-secondary` (si utilisé), `--sc-success`, `--sc-warning`, `--sc-danger`, `--sc-info`, `--sc-contrast`
45
+ - **Texte sur fond sémantique** : `--sc-primary-content`, `--sc-secondary-content`, `--sc-success-content`, `--sc-warning-content`, `--sc-danger-content`, `--sc-info-content`, `--sc-contrast-content`
46
+ - **Forme** : `--sc-rounded` (primitive unique pour les rayons)
47
+ - **Typo** : `--sc-font-family-base`, `--sc-headings-font-family`, etc.
48
+ - **Formulaires (optionnel, global)** : `--sc-border-width`, `--sc-form-height`, `--sc-input-bg`, `--sc-input-color`, `--sc-input-border-color`, états actifs `--sc-input-active-*`
36
49
 
37
- - Surfaces : `--sc-base`, `--sc-base-content`, `--sc-base-50` … `--sc-base-900`
38
- - Sémantique : `--sc-primary`, `--sc-success`, `--sc-warning`, `--sc-danger`, `--sc-info` (+ `-content`)
39
- - Forme : `--sc-rounded`, `--sc-btn-rounded`, `--sc-border-width`
40
- - Typo : `--sc-font-family-base`, `--sc-headings-font-family`
50
+ Privé côté composants : `--sc_*`, `--sc-_color`, … — pas d’API par composant ni `::part()` sauf exceptions documentées.
41
51
 
52
+ Doc utilisateur : `#docs/_getting-started/theming.md/theming`.
42
53
  Doc composant : `node_modules/@supersoniks/concorde/src/core/components/ui/theme/`.
43
54
 
44
55
  Popovers, modals, toasts se montent sous le `<sonic-theme>` le plus proche.
package/build-infos.json CHANGED
@@ -1 +1 @@
1
- {"date":1790855624}
1
+ {"date":1791460056}