@bythium/unisson 0.1.0 → 0.2.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 (204) hide show
  1. package/README.md +61 -15
  2. package/dist/CHANGELOG.md +29 -1
  3. package/dist/badge.d.ts +27 -0
  4. package/dist/badge.js +1 -0
  5. package/dist/button.js +1 -1
  6. package/dist/card.d.ts +29 -0
  7. package/dist/card.js +1 -0
  8. package/dist/checkbox.d.ts +39 -0
  9. package/dist/checkbox.js +1 -0
  10. package/dist/chunks/chunk-4JVFLK3U.js +416 -0
  11. package/dist/chunks/chunk-4LYJO5OS.js +411 -0
  12. package/dist/chunks/chunk-53M4DJQN.js +406 -0
  13. package/dist/chunks/chunk-5UXAUVTG.js +1 -0
  14. package/dist/chunks/chunk-6OG5ZBWQ.js +334 -0
  15. package/dist/chunks/chunk-7YT6MUHG.js +383 -0
  16. package/dist/chunks/chunk-B2JFDWCV.js +265 -0
  17. package/dist/chunks/chunk-D52FUFUP.js +1 -0
  18. package/dist/chunks/{chunk-MYB6FQX2.js → chunk-FATZ4W4Y.js} +2 -2
  19. package/dist/chunks/chunk-GG2TGBO7.js +388 -0
  20. package/dist/chunks/chunk-HBQNWILJ.js +447 -0
  21. package/dist/chunks/chunk-HYLPNRSS.js +346 -0
  22. package/dist/chunks/chunk-I67ANBTP.js +328 -0
  23. package/dist/chunks/chunk-IGDZPHRL.js +338 -0
  24. package/dist/chunks/chunk-J5K4GGOS.js +269 -0
  25. package/dist/chunks/chunk-KDXXLMWM.js +1 -0
  26. package/dist/chunks/{chunk-WKXQ2JMZ.js → chunk-NHTQILO5.js} +2 -2
  27. package/dist/chunks/chunk-ORYY4OPY.js +307 -0
  28. package/dist/chunks/chunk-QMY5FB4F.js +293 -0
  29. package/dist/chunks/chunk-SADTI7JS.js +319 -0
  30. package/dist/chunks/chunk-SEAWGQLP.js +316 -0
  31. package/dist/chunks/chunk-SUDTJKQT.js +314 -0
  32. package/dist/chunks/chunk-SVPZPTWA.js +353 -0
  33. package/dist/chunks/{chunk-MWNIQCR3.js → chunk-U7UKQQ5V.js} +1 -1
  34. package/dist/chunks/chunk-YAVUNJL2.js +326 -0
  35. package/dist/chunks/chunk-ZOW53TBP.js +358 -0
  36. package/dist/confirm-button.js +1 -1
  37. package/dist/copy-button.js +1 -1
  38. package/dist/custom-elements.json +3925 -0
  39. package/dist/define.d.ts +20 -0
  40. package/dist/define.js +1 -1
  41. package/dist/dialog.d.ts +29 -0
  42. package/dist/dialog.js +1 -0
  43. package/dist/field.d.ts +23 -0
  44. package/dist/field.js +1 -0
  45. package/dist/form.d.ts +29 -0
  46. package/dist/form.js +1 -0
  47. package/dist/heading.d.ts +21 -0
  48. package/dist/heading.js +1 -0
  49. package/dist/index.d.ts +20 -0
  50. package/dist/index.js +1 -1
  51. package/dist/inline-alert.d.ts +25 -0
  52. package/dist/inline-alert.js +1 -0
  53. package/dist/input.d.ts +53 -0
  54. package/dist/input.js +1 -0
  55. package/dist/radio-group.d.ts +45 -0
  56. package/dist/radio-group.js +1 -0
  57. package/dist/react/badge.d.ts +25 -0
  58. package/dist/react/badge.js +7 -0
  59. package/dist/react/card.d.ts +27 -0
  60. package/dist/react/card.js +7 -0
  61. package/dist/react/checkbox.d.ts +37 -0
  62. package/dist/react/checkbox.js +7 -0
  63. package/dist/react/dialog.d.ts +27 -0
  64. package/dist/react/dialog.js +7 -0
  65. package/dist/react/field.d.ts +21 -0
  66. package/dist/react/field.js +7 -0
  67. package/dist/react/form.d.ts +27 -0
  68. package/dist/react/form.js +7 -0
  69. package/dist/react/heading.d.ts +19 -0
  70. package/dist/react/heading.js +7 -0
  71. package/dist/react/index.d.ts +20 -0
  72. package/dist/react/index.js +20 -0
  73. package/dist/react/inline-alert.d.ts +23 -0
  74. package/dist/react/inline-alert.js +7 -0
  75. package/dist/react/input.d.ts +51 -0
  76. package/dist/react/input.js +7 -0
  77. package/dist/react/radio-group.d.ts +43 -0
  78. package/dist/react/radio-group.js +7 -0
  79. package/dist/react/select.d.ts +39 -0
  80. package/dist/react/select.js +7 -0
  81. package/dist/react/stack.d.ts +25 -0
  82. package/dist/react/stack.js +7 -0
  83. package/dist/react/switch.d.ts +37 -0
  84. package/dist/react/switch.js +7 -0
  85. package/dist/react/tab-panel.d.ts +23 -0
  86. package/dist/react/tab-panel.js +7 -0
  87. package/dist/react/tab.d.ts +23 -0
  88. package/dist/react/tab.js +7 -0
  89. package/dist/react/tabs.d.ts +27 -0
  90. package/dist/react/tabs.js +7 -0
  91. package/dist/react/text.d.ts +23 -0
  92. package/dist/react/text.js +7 -0
  93. package/dist/react/textarea.d.ts +43 -0
  94. package/dist/react/textarea.js +7 -0
  95. package/dist/react/toast.d.ts +25 -0
  96. package/dist/react/toast.js +7 -0
  97. package/dist/react/toaster.d.ts +21 -0
  98. package/dist/react/toaster.js +7 -0
  99. package/dist/select.d.ts +41 -0
  100. package/dist/select.js +1 -0
  101. package/dist/stack.d.ts +27 -0
  102. package/dist/stack.js +1 -0
  103. package/dist/svelte/OBadge.svelte +14 -0
  104. package/dist/svelte/OBadge.svelte.d.ts +26 -0
  105. package/dist/svelte/OCard.svelte +14 -0
  106. package/dist/svelte/OCard.svelte.d.ts +28 -0
  107. package/dist/svelte/OCheckbox.svelte +14 -0
  108. package/dist/svelte/OCheckbox.svelte.d.ts +38 -0
  109. package/dist/svelte/ODialog.svelte +14 -0
  110. package/dist/svelte/ODialog.svelte.d.ts +28 -0
  111. package/dist/svelte/OField.svelte +14 -0
  112. package/dist/svelte/OField.svelte.d.ts +22 -0
  113. package/dist/svelte/OForm.svelte +14 -0
  114. package/dist/svelte/OForm.svelte.d.ts +28 -0
  115. package/dist/svelte/OHeading.svelte +14 -0
  116. package/dist/svelte/OHeading.svelte.d.ts +20 -0
  117. package/dist/svelte/OInlineAlert.svelte +14 -0
  118. package/dist/svelte/OInlineAlert.svelte.d.ts +24 -0
  119. package/dist/svelte/OInput.svelte +14 -0
  120. package/dist/svelte/OInput.svelte.d.ts +52 -0
  121. package/dist/svelte/ORadioGroup.svelte +14 -0
  122. package/dist/svelte/ORadioGroup.svelte.d.ts +44 -0
  123. package/dist/svelte/OSelect.svelte +14 -0
  124. package/dist/svelte/OSelect.svelte.d.ts +40 -0
  125. package/dist/svelte/OStack.svelte +14 -0
  126. package/dist/svelte/OStack.svelte.d.ts +26 -0
  127. package/dist/svelte/OSwitch.svelte +14 -0
  128. package/dist/svelte/OSwitch.svelte.d.ts +38 -0
  129. package/dist/svelte/OTab.svelte +14 -0
  130. package/dist/svelte/OTab.svelte.d.ts +24 -0
  131. package/dist/svelte/OTabPanel.svelte +14 -0
  132. package/dist/svelte/OTabPanel.svelte.d.ts +24 -0
  133. package/dist/svelte/OTabs.svelte +14 -0
  134. package/dist/svelte/OTabs.svelte.d.ts +28 -0
  135. package/dist/svelte/OText.svelte +14 -0
  136. package/dist/svelte/OText.svelte.d.ts +24 -0
  137. package/dist/svelte/OTextarea.svelte +14 -0
  138. package/dist/svelte/OTextarea.svelte.d.ts +44 -0
  139. package/dist/svelte/OToast.svelte +14 -0
  140. package/dist/svelte/OToast.svelte.d.ts +26 -0
  141. package/dist/svelte/OToaster.svelte +14 -0
  142. package/dist/svelte/OToaster.svelte.d.ts +22 -0
  143. package/dist/svelte/index.d.ts +20 -0
  144. package/dist/svelte/index.js +20 -0
  145. package/dist/switch.d.ts +39 -0
  146. package/dist/switch.js +1 -0
  147. package/dist/tab-panel.d.ts +25 -0
  148. package/dist/tab-panel.js +1 -0
  149. package/dist/tab.d.ts +25 -0
  150. package/dist/tab.js +1 -0
  151. package/dist/tabs.d.ts +29 -0
  152. package/dist/tabs.js +1 -0
  153. package/dist/text.d.ts +25 -0
  154. package/dist/text.js +1 -0
  155. package/dist/textarea.d.ts +45 -0
  156. package/dist/textarea.js +1 -0
  157. package/dist/toast.d.ts +27 -0
  158. package/dist/toast.js +1 -0
  159. package/dist/toaster.d.ts +23 -0
  160. package/dist/toaster.js +1 -0
  161. package/dist/vue/badge.d.ts +26 -0
  162. package/dist/vue/badge.js +6 -0
  163. package/dist/vue/card.d.ts +28 -0
  164. package/dist/vue/card.js +6 -0
  165. package/dist/vue/checkbox.d.ts +37 -0
  166. package/dist/vue/checkbox.js +6 -0
  167. package/dist/vue/dialog.d.ts +27 -0
  168. package/dist/vue/dialog.js +6 -0
  169. package/dist/vue/field.d.ts +22 -0
  170. package/dist/vue/field.js +6 -0
  171. package/dist/vue/form.d.ts +27 -0
  172. package/dist/vue/form.js +6 -0
  173. package/dist/vue/heading.d.ts +20 -0
  174. package/dist/vue/heading.js +6 -0
  175. package/dist/vue/index.d.ts +20 -0
  176. package/dist/vue/index.js +20 -0
  177. package/dist/vue/inline-alert.d.ts +23 -0
  178. package/dist/vue/inline-alert.js +6 -0
  179. package/dist/vue/input.d.ts +51 -0
  180. package/dist/vue/input.js +6 -0
  181. package/dist/vue/radio-group.d.ts +43 -0
  182. package/dist/vue/radio-group.js +6 -0
  183. package/dist/vue/select.d.ts +39 -0
  184. package/dist/vue/select.js +6 -0
  185. package/dist/vue/stack.d.ts +26 -0
  186. package/dist/vue/stack.js +6 -0
  187. package/dist/vue/switch.d.ts +37 -0
  188. package/dist/vue/switch.js +6 -0
  189. package/dist/vue/tab-panel.d.ts +24 -0
  190. package/dist/vue/tab-panel.js +6 -0
  191. package/dist/vue/tab.d.ts +24 -0
  192. package/dist/vue/tab.js +6 -0
  193. package/dist/vue/tabs.d.ts +27 -0
  194. package/dist/vue/tabs.js +6 -0
  195. package/dist/vue/text.d.ts +24 -0
  196. package/dist/vue/text.js +6 -0
  197. package/dist/vue/textarea.d.ts +43 -0
  198. package/dist/vue/textarea.js +6 -0
  199. package/dist/vue/toast.d.ts +25 -0
  200. package/dist/vue/toast.js +6 -0
  201. package/dist/vue/toaster.d.ts +22 -0
  202. package/dist/vue/toaster.js +6 -0
  203. package/package.json +346 -3
  204. package/dist/chunks/chunk-BAYUYXVR.js +0 -1
package/dist/tabs.d.ts ADDED
@@ -0,0 +1,29 @@
1
+ // Generated from the contract of bythium-tabs. Do not edit.
2
+ export interface BythiumTabsEventMap extends HTMLElementEventMap {
3
+ /** Émis quand l’utilisateur choisit un autre onglet. Une écriture de value par la page n’émet rien. */
4
+ 'bythium-tab-change': CustomEvent<{ value: string }>;
5
+ }
6
+
7
+ /** Onglets soulignés (motif APG) : liste nommée, focus itinérant aux flèches, activation automatique ou manuelle, défilement des onglets hors champ. */
8
+ export declare class BythiumTabs extends HTMLElement {
9
+ /** Nom accessible de la liste d’onglets. Valeur par défaut : « Onglets » (ou « Tabs » selon locale). Attribute `label`. */
10
+ label: string;
11
+ /** Valeur de l’onglet choisi. Vide (défaut), inconnue ou désactivée : le premier onglet actif est choisi. Attribute `value`. */
12
+ value: string;
13
+ /** automatic : la flèche choisit l’onglet ; manual : la flèche déplace le focus, Entrée ou Espace choisit. Attribute `activation`. */
14
+ activation: 'automatic' | 'manual';
15
+ /** Axe de la liste ; les flèches suivent l’axe (et le sens de lecture en horizontal). Attribute `orientation`. */
16
+ orientation: 'horizontal' | 'vertical';
17
+ /** Langue des textes intégrés (BCP 47) : nom de la liste et noms des boutons de défilement. Toute balise en vaut en, le reste vaut fr. Un texte que la page écrit, quand l’attribut existe, l’emporte. Attribute `locale`. */
18
+ locale: string;
19
+ addEventListener<K extends keyof BythiumTabsEventMap>(type: K, listener: (this: BythiumTabs, event: BythiumTabsEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
20
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
21
+ removeEventListener<K extends keyof BythiumTabsEventMap>(type: K, listener: (this: BythiumTabs, event: BythiumTabsEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
22
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
23
+ }
24
+
25
+ declare global {
26
+ interface HTMLElementTagNameMap {
27
+ 'bythium-tabs': BythiumTabs;
28
+ }
29
+ }
package/dist/tabs.js ADDED
@@ -0,0 +1 @@
1
+ import{a}from"./chunks/chunk-HYLPNRSS.js";import"./chunks/chunk-D52FUFUP.js";import"./chunks/chunk-W3ASGVKH.js";export{a as BythiumTabs};
package/dist/text.d.ts ADDED
@@ -0,0 +1,25 @@
1
+ // Generated from the contract of bythium-text. Do not edit.
2
+ export interface BythiumTextEventMap extends HTMLElementEventMap {
3
+ }
4
+
5
+ /** Paragraphe de texte courant, interligne 1,55, ton par défaut ou atténué, taille courante, d'introduction ou petite, sans marge. */
6
+ export declare class BythiumText extends HTMLElement {
7
+ /** Ton du texte : default (couleur du texte de la page) ou muted (couleur atténuée). Une autre valeur garde le ton par défaut. Attribute `tone`. */
8
+ tone: string;
9
+ /** Taille du texte : default (taille héritée, interligne 1,55) ; lead : introduction sous un titre, 18 px sur 1,6 ; small : mention discrète, 14 px sur 1,6 ; intro : introduction du premier écran d'une page d'accueil, 19 px sur 1,6. Attribute `size`. */
10
+ size: 'default' | 'lead' | 'small' | 'intro';
11
+ /** default : texte courant ; stat : chiffre ou décompte en police à chasse fixe, 14 px sur 1,6, graisse 600 (les décomptes des cas d'usage) ; note : petite mention en police à chasse fixe, 12 px sur 1,6 (la note sous un filtre, la source d'un chiffre). La couleur reste celle de tone. Attribute `variant`. */
12
+ variant: 'default' | 'stat' | 'note';
13
+ /** Sens du texte pour les lecteurs d’écran : paragraph (paragraphe du contenu) ou note (remarque à part du contenu principal : avertissement de parité, précision sur une donnée), annoncée comme note (role note). L’apparence reste celle de tone, size et variant. Attribute `kind`. */
14
+ kind: 'paragraph' | 'note';
15
+ addEventListener<K extends keyof BythiumTextEventMap>(type: K, listener: (this: BythiumText, event: BythiumTextEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
16
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
17
+ removeEventListener<K extends keyof BythiumTextEventMap>(type: K, listener: (this: BythiumText, event: BythiumTextEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
18
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
19
+ }
20
+
21
+ declare global {
22
+ interface HTMLElementTagNameMap {
23
+ 'bythium-text': BythiumText;
24
+ }
25
+ }
package/dist/text.js ADDED
@@ -0,0 +1 @@
1
+ import{a}from"./chunks/chunk-QMY5FB4F.js";import"./chunks/chunk-5VNPX7DT.js";import"./chunks/chunk-W3ASGVKH.js";export{a as BythiumText};
@@ -0,0 +1,45 @@
1
+ // Generated from the contract of bythium-textarea. Do not edit.
2
+ export interface BythiumTextareaEventMap extends HTMLElementEventMap {
3
+ /** Émis à chaque saisie de l’utilisateur, après la mise à jour de value. */
4
+ 'bythium-input': CustomEvent<{ value: string }>;
5
+ /** Émis quand l’utilisateur valide le texte (sortie du champ après modification). */
6
+ 'bythium-change': CustomEvent<{ value: string }>;
7
+ }
8
+
9
+ /** Texte sur plusieurs lignes avec libellé, aide, compteur de caractères, erreur après interaction et hauteur automatique optionnelle. */
10
+ export declare class BythiumTextarea extends HTMLElement {
11
+ /** Texte du champ, reflété à chaque saisie ; celui du premier raccordement revient au reset du formulaire. Attribute `value`. */
12
+ value: string;
13
+ /** Libellé visible, rendu à côté du contrôle dans le même arbre : il donne le nom accessible. Attribute `label`. */
14
+ label: string;
15
+ /** Nom du champ dans le formulaire. Attribute `name`. */
16
+ name: string;
17
+ /** Champ obligatoire : invalide tant qu’il est vide ; l’erreur ne s’affiche qu’après une interaction. Attribute `required`. */
18
+ required: boolean;
19
+ /** Refuse la saisie ; la valeur n’est pas envoyée. Attribute `disabled`. */
20
+ disabled: boolean;
21
+ /** Aide affichée sous le champ quand le slot help est vide. Attribute `hint`. */
22
+ hint: string;
23
+ /** Nombre de lignes visibles (hauteur de départ). Attribute `rows`. */
24
+ rows: number;
25
+ /** Nombre maximal de caractères, repris par le compteur. Attribute `maxlength`. */
26
+ maxlength: number;
27
+ /** Hauteur qui suit le contenu après chaque rendu, 500 px au plus. Attribute `autosize`. */
28
+ autosize: boolean;
29
+ /** Exemple de saisie ; il ne remplace jamais le libellé. Vide par défaut. Attribute `placeholder`. */
30
+ placeholder: string;
31
+ /** Erreur fournie par l’application (par exemple après une validation serveur) : affichée tout de suite. Attribute `error`. */
32
+ error: string;
33
+ /** Langue BCP 47 des textes de la balise (mention obligatoire, messages d’erreur) : anglais pour toute balise en, français sinon. Attribute `locale`. */
34
+ locale: string;
35
+ addEventListener<K extends keyof BythiumTextareaEventMap>(type: K, listener: (this: BythiumTextarea, event: BythiumTextareaEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
36
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
37
+ removeEventListener<K extends keyof BythiumTextareaEventMap>(type: K, listener: (this: BythiumTextarea, event: BythiumTextareaEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
38
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
39
+ }
40
+
41
+ declare global {
42
+ interface HTMLElementTagNameMap {
43
+ 'bythium-textarea': BythiumTextarea;
44
+ }
45
+ }
@@ -0,0 +1 @@
1
+ import{a}from"./chunks/chunk-SVPZPTWA.js";import"./chunks/chunk-5UXAUVTG.js";import"./chunks/chunk-D52FUFUP.js";import"./chunks/chunk-5VNPX7DT.js";import"./chunks/chunk-W3ASGVKH.js";export{a as BythiumTextarea};
@@ -0,0 +1,27 @@
1
+ // Generated from the contract of bythium-toast. Do not edit.
2
+ export interface BythiumToastEventMap extends HTMLElementEventMap {
3
+ /** Émis quand la notification se referme par son bouton ou à l'expiration (reason « fermeture »). Retirer open par programme n'émet rien. */
4
+ 'bythium-close': CustomEvent<{ reason: "fermeture" }>;
5
+ }
6
+
7
+ /** Notification locale, annoncée par une région d'état et refermable ; expiration facultative, sans réseau. */
8
+ export declare class BythiumToast extends HTMLElement {
9
+ /** Langue du bouton de fermeture et du texte par défaut (BCP 47) : toute balise en vaut en, le reste vaut fr. Attribute `locale`. */
10
+ locale: string;
11
+ /** Notification visible. Refermée par le bouton ou à l'expiration, l'attribut est retiré. Attribute `open`. */
12
+ open: boolean;
13
+ /** Délai d'expiration en millisecondes, compté à chaque rendu ouvert ; 0 : pas d'expiration. Un délai positif vaut au moins 1000 ms. Attribute `duration`. */
14
+ duration: number;
15
+ /** Sans rôle d'état : la page annonce elle-même le message par sa propre région d'état silencieuse (aucune annonce en double). Le message reste visible et refermable. Attribute `silent`. */
16
+ silent: boolean;
17
+ addEventListener<K extends keyof BythiumToastEventMap>(type: K, listener: (this: BythiumToast, event: BythiumToastEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
18
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
19
+ removeEventListener<K extends keyof BythiumToastEventMap>(type: K, listener: (this: BythiumToast, event: BythiumToastEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
20
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
21
+ }
22
+
23
+ declare global {
24
+ interface HTMLElementTagNameMap {
25
+ 'bythium-toast': BythiumToast;
26
+ }
27
+ }
package/dist/toast.js ADDED
@@ -0,0 +1 @@
1
+ import{a}from"./chunks/chunk-ORYY4OPY.js";import"./chunks/chunk-D52FUFUP.js";import"./chunks/chunk-W3ASGVKH.js";export{a as BythiumToast};
@@ -0,0 +1,23 @@
1
+ // Generated from the contract of bythium-toaster. Do not edit.
2
+ export interface BythiumToasterEventMap extends HTMLElementEventMap {
3
+ }
4
+
5
+ /** Région de notifications (rôle log, annonces polies) qui reçoit les toasts de la page dans son slot et les annonce à leur arrivée. */
6
+ export declare class BythiumToaster extends HTMLElement {
7
+ /** Nom accessible de la région, lu par les lecteurs d’écran (aria-label). Attribute `label`. */
8
+ label: string;
9
+ /** Langue des textes intégrés (BCP 47) : texte d’attente de la région vide. Toute balise en vaut en, le reste vaut fr. Un label écrit par la page l’emporte. Attribute `locale`. */
10
+ locale: string;
11
+ /** Sans rôle log ni aria-live : chaque notification est annoncée par la page elle-même (région d'état silencieuse), la région ne fait qu'afficher. Attribute `silent`. */
12
+ silent: boolean;
13
+ addEventListener<K extends keyof BythiumToasterEventMap>(type: K, listener: (this: BythiumToaster, event: BythiumToasterEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
14
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
15
+ removeEventListener<K extends keyof BythiumToasterEventMap>(type: K, listener: (this: BythiumToaster, event: BythiumToasterEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
16
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
17
+ }
18
+
19
+ declare global {
20
+ interface HTMLElementTagNameMap {
21
+ 'bythium-toaster': BythiumToaster;
22
+ }
23
+ }
@@ -0,0 +1 @@
1
+ import{a}from"./chunks/chunk-B2JFDWCV.js";import"./chunks/chunk-D52FUFUP.js";import"./chunks/chunk-W3ASGVKH.js";export{a as BythiumToaster};
@@ -0,0 +1,26 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { DefineSetupFnComponent, SlotsType, VNode } from 'vue';
3
+ import type { BythiumBadge, BythiumBadgeEventMap } from '../badge.js';
4
+
5
+ export interface OBadgeProps {
6
+ /** Ton : info (défaut), success, danger, warning, neutral (gris), brand (violet de marque), outline (contour sans fond) ou gradient (dégradé de marque, texte sombre). Le texte porte le sens ; la couleur le souligne. Attribute `tone`. */
7
+ tone?: 'info' | 'success' | 'danger' | 'warning' | 'neutral' | 'brand' | 'outline' | 'gradient';
8
+ /** Forme : rounded (défaut, coins arrondis), pill (pastille aux extrémités rondes) ou circle (rond, pour un ou deux caractères comme un numéro). Attribute `shape`. */
9
+ shape?: 'rounded' | 'pill' | 'circle';
10
+ /** Taille : sm (défaut, 20 px), md (28 px, pour une puce de filtre ou de catégorie) ou lg (52 px, pour une grande pastille de confirmation : cadre à 50 % du ton, fond à 14 %, pictogramme de 26 px, comme le crochet de la page de remerciement). Attribute `size`. */
11
+ size?: 'sm' | 'md' | 'lg';
12
+ /** Ajoute un point décoratif devant le texte, de la couleur du ton. Attribute `dot`. */
13
+ dot?: boolean;
14
+ /** Infobulle de l’étiquette, montrée au survol et au focus clavier, masquée par Échap ; elle décrit l’étiquette (aria-describedby) et la rend atteignable au clavier. Vide : aucune infobulle, aucun arrêt de tabulation. Attribute `hint`. */
15
+ hint?: string;
16
+ }
17
+
18
+ export type OBadgeEmits = {
19
+
20
+ };
21
+
22
+ /** Étiquette statique de statut ou de catégorie : un texte court (ou un nombre) sur un fond teinté par le ton, en rectangle arrondi, en pastille ou en rond. Renders `<bythium-badge>`. */
23
+ export declare const OBadge: DefineSetupFnComponent<OBadgeProps, OBadgeEmits, SlotsType<{ "default"?: () => VNode[] }>>;
24
+
25
+ /** The element the wrapper renders. */
26
+ export type OBadgeElement = BythiumBadge;
@@ -0,0 +1,6 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import { wrapper } from './runtime.js';
3
+
4
+ if (typeof customElements !== 'undefined') import('../badge.js');
5
+
6
+ export const OBadge = wrapper('OBadge', {"tag":"bythium-badge","attributes":{"tone":["tone","string"],"shape":["shape","string"],"size":["size","string"],"dot":["dot","boolean"],"hint":["hint","string"]},"events":{}}, [], []);
@@ -0,0 +1,28 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { DefineSetupFnComponent, SlotsType, VNode } from 'vue';
3
+ import type { BythiumCard, BythiumCardEventMap } from '../card.js';
4
+
5
+ export interface OCardProps {
6
+ /** Texte de l’en-tête quand le slot header est vide (texte simple, pas un titre du plan). Vide par défaut. Attribute `label`. */
7
+ label?: string;
8
+ /** Fond de la carte : default (à plat, comme avant), raised (fond relevé), gradient (dégradé vertical avec ombre portée, clair et sombre) ou page (fond de la page, pour une fenêtre posée sur une carte). Attribute `surface`. */
9
+ surface?: 'default' | 'raised' | 'gradient' | 'page';
10
+ /** Marge intérieure : md (défaut, 14 à 16 px) ou lg (36 px sur 32 px, rayon de 20 px, sans filet sous l’en-tête). Attribute `padding`. */
11
+ padding?: 'md' | 'lg';
12
+ /** Cadre : none (défaut, carte simple) ou window (fenêtre : barre de titre sur fond de surface avec trois points décoratifs et le titre en chasse fixe, rayon de 16 px, ombre portée, contenu à 16 px, pied masqué s’il est vide). Le titre vient du label ou du slot header. Attribute `frame`. */
13
+ frame?: 'none' | 'window';
14
+ /** Halo violet sous la carte (ombre portée colorée des cartes de tête et des fenêtres). Retiré en couleurs forcées ; aucun mouvement. Attribute `glow`. */
15
+ glow?: boolean;
16
+ /** Langue des textes intégrés (BCP 47) : texte du contenu quand le slot par défaut est vide. Toute balise en vaut en, le reste vaut fr. Un label écrit par la page l’emporte. Attribute `locale`. */
17
+ locale?: string;
18
+ }
19
+
20
+ export type OCardEmits = {
21
+
22
+ };
23
+
24
+ /** Surface sur filet (à plat par défaut, relevée ou en dégradé) : en-tête (texte de label ou slot header), contenu et pied, chacun alimenté par un slot. Renders `<bythium-card>`. */
25
+ export declare const OCard: DefineSetupFnComponent<OCardProps, OCardEmits, SlotsType<{ "default"?: () => VNode[]; "header"?: () => VNode[]; "footer"?: () => VNode[] }>>;
26
+
27
+ /** The element the wrapper renders. */
28
+ export type OCardElement = BythiumCard;
@@ -0,0 +1,6 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import { wrapper } from './runtime.js';
3
+
4
+ if (typeof customElements !== 'undefined') import('../card.js');
5
+
6
+ export const OCard = wrapper('OCard', {"tag":"bythium-card","attributes":{"label":["label","string"],"surface":["surface","string"],"padding":["padding","string"],"frame":["frame","string"],"glow":["glow","boolean"],"locale":["locale","string"]},"events":{}}, [], ["header","footer"]);
@@ -0,0 +1,37 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { DefineSetupFnComponent, SlotsType, VNode } from 'vue';
3
+ import type { BythiumCheckbox, BythiumCheckboxEventMap } from '../checkbox.js';
4
+
5
+ export interface OCheckboxProps {
6
+ /** Valeur envoyée avec le formulaire quand la case est cochée. Attribute `value`. */
7
+ value?: string;
8
+ /** Libellé visible à côté de la case, dans le même arbre : il donne le nom accessible. Attribute `label`. */
9
+ label?: string;
10
+ /** Nom du champ dans le formulaire. Attribute `name`. */
11
+ name?: string;
12
+ /** Case à cocher obligatoirement : invalide tant qu’elle est décochée (« Cochez cette case. ») ; l’erreur ne s’affiche qu’après une interaction. Attribute `required`. */
13
+ required?: boolean;
14
+ /** Refuse le changement ; la valeur n’est pas envoyée. Attribute `disabled`. */
15
+ disabled?: boolean;
16
+ /** Aide affichée sous le libellé quand le slot help est vide. Attribute `hint`. */
17
+ hint?: string;
18
+ /** État coché, reflété à chaque clic ; celui du premier raccordement revient au reset du formulaire. Attribute `checked`. */
19
+ checked?: boolean;
20
+ /** État mixte affiché (ni coché ni décoché) ; retiré dès que l’utilisateur change la case. Attribute `indeterminate`. */
21
+ indeterminate?: boolean;
22
+ /** Erreur fournie par l’application (par exemple après une validation serveur) : affichée tout de suite, sans attendre une interaction. Attribute `error`. */
23
+ error?: string;
24
+ /** Langue des textes intégrés (BCP 47) : la mention « obligatoire » (« required ») et le message de validation. Toute balise en vaut en, le reste vaut fr. Un libellé écrit par la page l’emporte. Attribute `locale`. */
25
+ locale?: string;
26
+ }
27
+
28
+ export type OCheckboxEmits = {
29
+ /** Émis quand l’utilisateur coche ou décoche la case, après la mise à jour de checked. Une écriture de l’attribut n’émet rien. */
30
+ 'bythium-change': (event: BythiumCheckboxEventMap['bythium-change']) => void;
31
+ };
32
+
33
+ /** Case à cocher native avec libellé, aide, état indéterminé et validation obligatoire, associée aux formulaires. Renders `<bythium-checkbox>`. */
34
+ export declare const OCheckbox: DefineSetupFnComponent<OCheckboxProps, OCheckboxEmits, SlotsType<{ "help"?: () => VNode[]; "control"?: () => VNode[] }>>;
35
+
36
+ /** The element the wrapper renders. */
37
+ export type OCheckboxElement = BythiumCheckbox;
@@ -0,0 +1,6 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import { wrapper } from './runtime.js';
3
+
4
+ if (typeof customElements !== 'undefined') import('../checkbox.js');
5
+
6
+ export const OCheckbox = wrapper('OCheckbox', {"tag":"bythium-checkbox","attributes":{"value":["value","string"],"label":["label","string"],"name":["name","string"],"required":["required","boolean"],"disabled":["disabled","boolean"],"hint":["hint","string"],"checked":["checked","boolean"],"indeterminate":["indeterminate","boolean"],"error":["error","string"],"locale":["locale","string"]},"events":{}}, ["bythium-change"], ["help","control"]);
@@ -0,0 +1,27 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { DefineSetupFnComponent, SlotsType, VNode } from 'vue';
3
+ import type { BythiumDialog, BythiumDialogEventMap } from '../dialog.js';
4
+
5
+ export interface ODialogProps {
6
+ /** Langue du bouton Fermer (BCP 47) : toute balise en vaut en, le reste vaut fr. Attribute `locale`. */
7
+ locale?: string;
8
+ /** Dialogue ouvert. Le clic sur le déclencheur l’ouvre ; Échap ou le bouton de fermeture le ferme. Attribute `open`. */
9
+ open?: boolean;
10
+ /** Texte du déclencheur et titre du dialogue, qui le nomme. Libellé générique par défaut ; la page le fournit. Attribute `label`. */
11
+ label?: string;
12
+ /** Côté d’ancrage réservé aux variantes latérales ; sans effet visuel pour le dialogue centré (repris tel quel de l’ancien contrat). Attribute `side`. */
13
+ side?: string;
14
+ /** Niveau du titre du dialogue dans le plan de la page (WC-N03). Attribute `heading-level`. */
15
+ headingLevel?: number;
16
+ }
17
+
18
+ export type ODialogEmits = {
19
+ /** Émis à la fermeture par l’utilisateur : bouton de fermeture ou Échap. */
20
+ 'bythium-close': (event: BythiumDialogEventMap['bythium-close']) => void;
21
+ };
22
+
23
+ /** Dialogue modal natif avec son bouton déclencheur : showModal(), page inerte et figée, Échap ferme, focus rendu au déclencheur. Renders `<bythium-dialog>`. */
24
+ export declare const ODialog: DefineSetupFnComponent<ODialogProps, ODialogEmits, SlotsType<{ "default"?: () => VNode[] }>>;
25
+
26
+ /** The element the wrapper renders. */
27
+ export type ODialogElement = BythiumDialog;
@@ -0,0 +1,6 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import { wrapper } from './runtime.js';
3
+
4
+ if (typeof customElements !== 'undefined') import('../dialog.js');
5
+
6
+ export const ODialog = wrapper('ODialog', {"tag":"bythium-dialog","attributes":{"locale":["locale","string"],"open":["open","boolean"],"label":["label","string"],"side":["side","string"],"headingLevel":["heading-level","number"]},"events":{}}, ["bythium-close"], []);
@@ -0,0 +1,22 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { DefineSetupFnComponent, SlotsType, VNode } from 'vue';
3
+ import type { BythiumField, BythiumFieldEventMap } from '../field.js';
4
+
5
+ export interface OFieldProps {
6
+ /** Libellé visible ; copié sur le contrôle slotté (propriété label s’il en a une, sinon aria-label), qui reçoit ainsi son nom accessible. Attribute `label`. */
7
+ label?: string;
8
+ /** Aide visible sous le contrôle ; avec l’erreur, elle forme l’aria-description du contrôle slotté (retirée quand les deux sont vides). Vide par défaut. Attribute `hint`. */
9
+ hint?: string;
10
+ /** Erreur fournie par l’application, affichée et annoncée (role status) ; pose aria-invalid="true" sur le contrôle slotté. Attribute `error`. */
11
+ error?: string;
12
+ }
13
+
14
+ export type OFieldEmits = {
15
+
16
+ };
17
+
18
+ /** Enveloppe de champ : libellé, aide et erreur autour d’un contrôle glissé dans le slot, qu’elle nomme et décrit ; sans deuxième participation au formulaire. Renders `<bythium-field>`. */
19
+ export declare const OField: DefineSetupFnComponent<OFieldProps, OFieldEmits, SlotsType<{ "default"?: () => VNode[]; "label"?: () => VNode[] }>>;
20
+
21
+ /** The element the wrapper renders. */
22
+ export type OFieldElement = BythiumField;
@@ -0,0 +1,6 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import { wrapper } from './runtime.js';
3
+
4
+ if (typeof customElements !== 'undefined') import('../field.js');
5
+
6
+ export const OField = wrapper('OField', {"tag":"bythium-field","attributes":{"label":["label","string"],"hint":["hint","string"],"error":["error","string"]},"events":{}}, [], ["label"]);
@@ -0,0 +1,27 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { DefineSetupFnComponent, SlotsType, VNode } from 'vue';
3
+ import type { BythiumForm, BythiumFormEventMap } from '../form.js';
4
+
5
+ export interface OFormProps {
6
+ /** Nom accessible de la région qui entoure le formulaire. Attribute `label`. */
7
+ label?: string;
8
+ /** Niveau du titre du résumé d’erreurs dans le plan de la page (WC-N03). Attribute `heading-level`. */
9
+ headingLevel?: number;
10
+ /** Langue BCP 47 des textes de la balise (titre du résumé, messages des champs natifs) : anglais pour toute balise en, français sinon. Attribute `locale`. */
11
+ locale?: string;
12
+ }
13
+
14
+ export type OFormEmits = {
15
+ /** Émis quand une validation (soumission ou validate()) trouve au moins un champ invalide, après le rendu du résumé ; le focus passe ensuite au résumé. */
16
+ 'bythium-invalid': (event: BythiumFormEventMap['bythium-invalid']) => void;
17
+ /** Émis à la soumission d’un formulaire valide (annulable). Sans action, ou sans method post, sur le form natif, l’envoi réseau est toujours empêché ; avec une action et method post, le navigateur envoie le formulaire, sauf si la page annule l’événement (envoi par la page). Un envoi par GET mettrait chaque champ, mot de passe compris, dans l’adresse. */
18
+ 'bythium-submit': (event: BythiumFormEventMap['bythium-submit']) => void;
19
+ /** Émis après le reset natif du formulaire (bouton reset ou reset()) ; le résumé est alors vidé. */
20
+ 'bythium-reset': (event: BythiumFormEventMap['bythium-reset']) => void;
21
+ };
22
+
23
+ /** Enveloppe d’un formulaire natif du DOM léger : validation globale, résumé d’erreurs lié et focalisé, soumission par événement ou envoi natif. Renders `<bythium-form>`. */
24
+ export declare const OForm: DefineSetupFnComponent<OFormProps, OFormEmits, SlotsType<{ "default"?: () => VNode[] }>>;
25
+
26
+ /** The element the wrapper renders. */
27
+ export type OFormElement = BythiumForm;
@@ -0,0 +1,6 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import { wrapper } from './runtime.js';
3
+
4
+ if (typeof customElements !== 'undefined') import('../form.js');
5
+
6
+ export const OForm = wrapper('OForm', {"tag":"bythium-form","attributes":{"label":["label","string"],"headingLevel":["heading-level","number"],"locale":["locale","string"]},"events":{}}, ["bythium-invalid","bythium-submit","bythium-reset"], []);
@@ -0,0 +1,20 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { DefineSetupFnComponent, SlotsType, VNode } from 'vue';
3
+ import type { BythiumHeading, BythiumHeadingEventMap } from '../heading.js';
4
+
5
+ export interface OHeadingProps {
6
+ /** Niveau du titre (h1 à h6), fixé par la page (WC-N03) ; décimal tronqué, ramené entre 1 et 6. Attribute `level`. */
7
+ level?: number;
8
+ /** default : échelle courante ; display : titre de haut de page, de 40 à 64 px selon la largeur ; section : titre de section de page marketing, de 32 à 48 px, graisse 660 ; huge : énoncé de très grande taille, de 40 à 96 px, interligne serré ; hero : titre du premier écran d'une page d'accueil, de 40 à 66 px, graisse 680, interligne 1,02 ; compact : titre réduit des pages secondaires (feuille de route, journal, cas d'usage, interfaces d'agents, démos), de 38 à 60 px, graisse 680, interligne 1,02 ; subsection : titre de panneau ou de carte, de 24 à 32 px, interlettrage -0,03em, interligne 1,15. Attribute `size`. */
9
+ size?: 'default' | 'display' | 'section' | 'huge' | 'hero' | 'compact' | 'subsection';
10
+ }
11
+
12
+ export type OHeadingEmits = {
13
+
14
+ };
15
+
16
+ /** Titre de niveau 1 à 6 choisi par la page, interlettrage négatif et graisse 600 : hiérarchise sans couleur. Renders `<bythium-heading>`. */
17
+ export declare const OHeading: DefineSetupFnComponent<OHeadingProps, OHeadingEmits, SlotsType<{ "default"?: () => VNode[] }>>;
18
+
19
+ /** The element the wrapper renders. */
20
+ export type OHeadingElement = BythiumHeading;
@@ -0,0 +1,6 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import { wrapper } from './runtime.js';
3
+
4
+ if (typeof customElements !== 'undefined') import('../heading.js');
5
+
6
+ export const OHeading = wrapper('OHeading', {"tag":"bythium-heading","attributes":{"level":["level","number"],"size":["size","string"]},"events":{}}, [], []);
@@ -6,3 +6,23 @@ export { OButtonGroup, type OButtonGroupProps, type OButtonGroupEmits, type OBut
6
6
  export { OCopyButton, type OCopyButtonProps, type OCopyButtonEmits, type OCopyButtonElement } from './copy-button.js';
7
7
  export { OSplitButton, type OSplitButtonProps, type OSplitButtonEmits, type OSplitButtonElement } from './split-button.js';
8
8
  export { OConfirmButton, type OConfirmButtonProps, type OConfirmButtonEmits, type OConfirmButtonElement } from './confirm-button.js';
9
+ export { OText, type OTextProps, type OTextEmits, type OTextElement } from './text.js';
10
+ export { OHeading, type OHeadingProps, type OHeadingEmits, type OHeadingElement } from './heading.js';
11
+ export { OStack, type OStackProps, type OStackEmits, type OStackElement } from './stack.js';
12
+ export { OField, type OFieldProps, type OFieldEmits, type OFieldElement } from './field.js';
13
+ export { OInput, type OInputProps, type OInputEmits, type OInputElement } from './input.js';
14
+ export { OTextarea, type OTextareaProps, type OTextareaEmits, type OTextareaElement } from './textarea.js';
15
+ export { OSelect, type OSelectProps, type OSelectEmits, type OSelectElement } from './select.js';
16
+ export { OCheckbox, type OCheckboxProps, type OCheckboxEmits, type OCheckboxElement } from './checkbox.js';
17
+ export { ORadioGroup, type ORadioGroupProps, type ORadioGroupEmits, type ORadioGroupElement } from './radio-group.js';
18
+ export { OSwitch, type OSwitchProps, type OSwitchEmits, type OSwitchElement } from './switch.js';
19
+ export { OForm, type OFormProps, type OFormEmits, type OFormElement } from './form.js';
20
+ export { OBadge, type OBadgeProps, type OBadgeEmits, type OBadgeElement } from './badge.js';
21
+ export { OCard, type OCardProps, type OCardEmits, type OCardElement } from './card.js';
22
+ export { OInlineAlert, type OInlineAlertProps, type OInlineAlertEmits, type OInlineAlertElement } from './inline-alert.js';
23
+ export { OTabs, type OTabsProps, type OTabsEmits, type OTabsElement } from './tabs.js';
24
+ export { OTab, type OTabProps, type OTabEmits, type OTabElement } from './tab.js';
25
+ export { OTabPanel, type OTabPanelProps, type OTabPanelEmits, type OTabPanelElement } from './tab-panel.js';
26
+ export { OToast, type OToastProps, type OToastEmits, type OToastElement } from './toast.js';
27
+ export { OToaster, type OToasterProps, type OToasterEmits, type OToasterElement } from './toaster.js';
28
+ export { ODialog, type ODialogProps, type ODialogEmits, type ODialogElement } from './dialog.js';
package/dist/vue/index.js CHANGED
@@ -6,3 +6,23 @@ export { OButtonGroup } from './button-group.js';
6
6
  export { OCopyButton } from './copy-button.js';
7
7
  export { OSplitButton } from './split-button.js';
8
8
  export { OConfirmButton } from './confirm-button.js';
9
+ export { OText } from './text.js';
10
+ export { OHeading } from './heading.js';
11
+ export { OStack } from './stack.js';
12
+ export { OField } from './field.js';
13
+ export { OInput } from './input.js';
14
+ export { OTextarea } from './textarea.js';
15
+ export { OSelect } from './select.js';
16
+ export { OCheckbox } from './checkbox.js';
17
+ export { ORadioGroup } from './radio-group.js';
18
+ export { OSwitch } from './switch.js';
19
+ export { OForm } from './form.js';
20
+ export { OBadge } from './badge.js';
21
+ export { OCard } from './card.js';
22
+ export { OInlineAlert } from './inline-alert.js';
23
+ export { OTabs } from './tabs.js';
24
+ export { OTab } from './tab.js';
25
+ export { OTabPanel } from './tab-panel.js';
26
+ export { OToast } from './toast.js';
27
+ export { OToaster } from './toaster.js';
28
+ export { ODialog } from './dialog.js';
@@ -0,0 +1,23 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { DefineSetupFnComponent, SlotsType, VNode } from 'vue';
3
+ import type { BythiumInlineAlert, BythiumInlineAlertEventMap } from '../inline-alert.js';
4
+
5
+ export interface OInlineAlertProps {
6
+ /** Ton du bandeau : couleur du cadre, du fond et de l’icône ; chaque ton a sa propre icône (info : i cerclé, success : coche cerclée, warning : triangle, danger : octogone). Une valeur inconnue vaut info. Attribute `tone`. */
7
+ tone?: 'info' | 'success' | 'warning' | 'danger';
8
+ /** Ajoute un bouton Fermer qui masque le bandeau (attribut hidden) et émet bythium-dismiss. Attribute `dismissible`. */
9
+ dismissible?: boolean;
10
+ /** Langue du nom accessible du bouton Fermer (BCP 47) : « Fermer l’alerte » ou « Dismiss alert ». Toute balise en vaut en, le reste vaut fr. Attribute `locale`. */
11
+ locale?: string;
12
+ }
13
+
14
+ export type OInlineAlertEmits = {
15
+ /** Émis quand l’utilisateur ferme le bandeau par son bouton, après la pose de l’attribut hidden. */
16
+ 'bythium-dismiss': (event: BythiumInlineAlertEventMap['bythium-dismiss']) => void;
17
+ };
18
+
19
+ /** Bandeau d’alerte en ligne, annoncé poliment (role status), en ton info, succès, avertissement ou danger, refermable sur demande. Renders `<bythium-inline-alert>`. */
20
+ export declare const OInlineAlert: DefineSetupFnComponent<OInlineAlertProps, OInlineAlertEmits, SlotsType<{ "default"?: () => VNode[] }>>;
21
+
22
+ /** The element the wrapper renders. */
23
+ export type OInlineAlertElement = BythiumInlineAlert;
@@ -0,0 +1,6 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import { wrapper } from './runtime.js';
3
+
4
+ if (typeof customElements !== 'undefined') import('../inline-alert.js');
5
+
6
+ export const OInlineAlert = wrapper('OInlineAlert', {"tag":"bythium-inline-alert","attributes":{"tone":["tone","string"],"dismissible":["dismissible","boolean"],"locale":["locale","string"]},"events":{}}, ["bythium-dismiss"], []);
@@ -0,0 +1,51 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { DefineSetupFnComponent, SlotsType, VNode } from 'vue';
3
+ import type { BythiumInput, BythiumInputEventMap } from '../input.js';
4
+
5
+ export interface OInputProps {
6
+ /** Valeur du champ, reflétée à chaque saisie ; celle du premier raccordement revient au reset du formulaire. Avec type color, la couleur de départ en #rrggbb : obligatoire et non vide dans une spec. Attribute `value`. */
7
+ value?: string;
8
+ /** Libellé visible, rendu à côté du contrôle dans le même arbre : il donne le nom accessible. Attribute `label`. */
9
+ label?: string;
10
+ /** Nom du champ dans le formulaire. Attribute `name`. */
11
+ name?: string;
12
+ /** Champ obligatoire : invalide tant qu’il est vide ; l’erreur ne s’affiche qu’après une interaction. Attribute `required`. */
13
+ required?: boolean;
14
+ /** Refuse la saisie ; la valeur n’est pas envoyée. Attribute `disabled`. */
15
+ disabled?: boolean;
16
+ /** Aide affichée sous le champ quand le slot help est vide. Attribute `hint`. */
17
+ hint?: string;
18
+ /** Type du contrôle natif. color : sélecteur de couleur natif, sa valeur écrite en #rrggbb à côté de la pastille (la couleur n’est jamais dite par la pastille seule) ; la valeur envoyée est #rrggbb en minuscules. Une spec donne toujours la couleur de départ (value), sinon le validateur signale ATTR_REQUIRED. Une valeur vide ou illisible s’écrit « Aucune couleur choisie », envoie une chaîne vide (invalide si required) et montre une pastille gris neutre #808080, jamais un noir pris pour un choix. placeholder, pattern, min, max et maxlength ne comptent pas, et readonly rend la pastille inactive. Attribute `type`. */
19
+ type?: 'text' | 'email' | 'url' | 'tel' | 'number' | 'date' | 'time' | 'search' | 'color';
20
+ /** Exemple de saisie ; il ne remplace jamais le libellé. Absent : « Saisir… » (« Type… » en anglais) ; vide : aucun. Attribute `placeholder`. */
21
+ placeholder?: string | null;
22
+ /** Jeton de remplissage automatique du contrôle natif (name, email, tel, organization, off…) ; vide : aucun. Attribute `autocomplete`. */
23
+ autocomplete?: string;
24
+ /** Langue BCP 47 des textes de la balise (mention obligatoire, exemple par défaut, messages d’erreur) : anglais pour toute balise en, français sinon. Attribute `locale`. */
25
+ locale?: string;
26
+ /** Expression régulière que la valeur doit respecter (vide : aucune). Attribute `pattern`. */
27
+ pattern?: string;
28
+ /** Minimum, pour les types nombre, date et heure. Attribute `min`. */
29
+ min?: string;
30
+ /** Maximum, pour les types nombre, date et heure. Attribute `max`. */
31
+ max?: string;
32
+ /** Nombre maximal de caractères. Attribute `maxlength`. */
33
+ maxlength?: number;
34
+ /** Lecture seule : la valeur est envoyée mais ne se modifie pas. Attribute `readonly`. */
35
+ readonly?: boolean;
36
+ /** Erreur fournie par l’application (par exemple après une validation serveur) : affichée tout de suite. Attribute `error`. */
37
+ error?: string;
38
+ }
39
+
40
+ export type OInputEmits = {
41
+ /** Émis à chaque saisie de l’utilisateur, après la mise à jour de value. */
42
+ 'bythium-input': (event: BythiumInputEventMap['bythium-input']) => void;
43
+ /** Émis quand l’utilisateur valide la valeur (sortie du champ après modification, Entrée). */
44
+ 'bythium-change': (event: BythiumInputEventMap['bythium-change']) => void;
45
+ };
46
+
47
+ /** Champ de saisie natif typé (texte, courriel, URL, téléphone, nombre, date, heure, recherche), avec libellé, aide, préfixe, suffixe et erreur. Renders `<bythium-input>`. */
48
+ export declare const OInput: DefineSetupFnComponent<OInputProps, OInputEmits, SlotsType<{ "prefix"?: () => VNode[]; "suffix"?: () => VNode[]; "help"?: () => VNode[]; "control"?: () => VNode[] }>>;
49
+
50
+ /** The element the wrapper renders. */
51
+ export type OInputElement = BythiumInput;
@@ -0,0 +1,6 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import { wrapper } from './runtime.js';
3
+
4
+ if (typeof customElements !== 'undefined') import('../input.js');
5
+
6
+ export const OInput = wrapper('OInput', {"tag":"bythium-input","attributes":{"value":["value","string"],"label":["label","string"],"name":["name","string"],"required":["required","boolean"],"disabled":["disabled","boolean"],"hint":["hint","string"],"type":["type","string"],"placeholder":["placeholder","string"],"autocomplete":["autocomplete","string"],"locale":["locale","string"],"pattern":["pattern","string"],"min":["min","string"],"max":["max","string"],"maxlength":["maxlength","number"],"readonly":["readonly","boolean"],"error":["error","string"]},"events":{}}, ["bythium-input","bythium-change"], ["prefix","suffix","help","control"]);