@bythium/unisson 0.1.1-rc.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 +23 -0
  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
@@ -6,3 +6,23 @@ export { OButtonGroup, type OButtonGroupProps, type OButtonGroupOwnProps } from
6
6
  export { OCopyButton, type OCopyButtonProps, type OCopyButtonOwnProps } from './copy-button.js';
7
7
  export { OSplitButton, type OSplitButtonProps, type OSplitButtonOwnProps } from './split-button.js';
8
8
  export { OConfirmButton, type OConfirmButtonProps, type OConfirmButtonOwnProps } from './confirm-button.js';
9
+ export { OText, type OTextProps, type OTextOwnProps } from './text.js';
10
+ export { OHeading, type OHeadingProps, type OHeadingOwnProps } from './heading.js';
11
+ export { OStack, type OStackProps, type OStackOwnProps } from './stack.js';
12
+ export { OField, type OFieldProps, type OFieldOwnProps } from './field.js';
13
+ export { OInput, type OInputProps, type OInputOwnProps } from './input.js';
14
+ export { OTextarea, type OTextareaProps, type OTextareaOwnProps } from './textarea.js';
15
+ export { OSelect, type OSelectProps, type OSelectOwnProps } from './select.js';
16
+ export { OCheckbox, type OCheckboxProps, type OCheckboxOwnProps } from './checkbox.js';
17
+ export { ORadioGroup, type ORadioGroupProps, type ORadioGroupOwnProps } from './radio-group.js';
18
+ export { OSwitch, type OSwitchProps, type OSwitchOwnProps } from './switch.js';
19
+ export { OForm, type OFormProps, type OFormOwnProps } from './form.js';
20
+ export { OBadge, type OBadgeProps, type OBadgeOwnProps } from './badge.js';
21
+ export { OCard, type OCardProps, type OCardOwnProps } from './card.js';
22
+ export { OInlineAlert, type OInlineAlertProps, type OInlineAlertOwnProps } from './inline-alert.js';
23
+ export { OTabs, type OTabsProps, type OTabsOwnProps } from './tabs.js';
24
+ export { OTab, type OTabProps, type OTabOwnProps } from './tab.js';
25
+ export { OTabPanel, type OTabPanelProps, type OTabPanelOwnProps } from './tab-panel.js';
26
+ export { OToast, type OToastProps, type OToastOwnProps } from './toast.js';
27
+ export { OToaster, type OToasterProps, type OToasterOwnProps } from './toaster.js';
28
+ export { ODialog, type ODialogProps, type ODialogOwnProps } from './dialog.js';
@@ -7,3 +7,23 @@ export { OButtonGroup } from './button-group.js';
7
7
  export { OCopyButton } from './copy-button.js';
8
8
  export { OSplitButton } from './split-button.js';
9
9
  export { OConfirmButton } from './confirm-button.js';
10
+ export { OText } from './text.js';
11
+ export { OHeading } from './heading.js';
12
+ export { OStack } from './stack.js';
13
+ export { OField } from './field.js';
14
+ export { OInput } from './input.js';
15
+ export { OTextarea } from './textarea.js';
16
+ export { OSelect } from './select.js';
17
+ export { OCheckbox } from './checkbox.js';
18
+ export { ORadioGroup } from './radio-group.js';
19
+ export { OSwitch } from './switch.js';
20
+ export { OForm } from './form.js';
21
+ export { OBadge } from './badge.js';
22
+ export { OCard } from './card.js';
23
+ export { OInlineAlert } from './inline-alert.js';
24
+ export { OTabs } from './tabs.js';
25
+ export { OTab } from './tab.js';
26
+ export { OTabPanel } from './tab-panel.js';
27
+ export { OToast } from './toast.js';
28
+ export { OToaster } from './toaster.js';
29
+ 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 { HTMLAttributes, JSX, ReactNode, Ref } from 'react';
3
+ import type { BythiumInlineAlert, BythiumInlineAlertEventMap } from '../inline-alert.js';
4
+
5
+ export interface OInlineAlertOwnProps {
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
+ /** Émis quand l’utilisateur ferme le bandeau par son bouton, après la pose de l’attribut hidden. Event `bythium-dismiss`. */
13
+ onBythiumDismiss?: (event: BythiumInlineAlertEventMap['bythium-dismiss']) => void;
14
+ }
15
+
16
+ export interface OInlineAlertProps extends OInlineAlertOwnProps, Omit<HTMLAttributes<BythiumInlineAlert>, keyof OInlineAlertOwnProps | 'children'> {
17
+ ref?: Ref<BythiumInlineAlert>;
18
+ /** Default slot; a child with `slot="<name>"` fills a named slot. */
19
+ children?: ReactNode;
20
+ }
21
+
22
+ /** Bandeau d’alerte en ligne, annoncé poliment (role status), en ton info, succès, avertissement ou danger, refermable sur demande. Renders `<bythium-inline-alert>`. */
23
+ export declare function OInlineAlert(props: OInlineAlertProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ 'use client';
2
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
3
+ import { wrapper } from './runtime.js';
4
+
5
+ if (typeof customElements !== 'undefined') import('../inline-alert.js');
6
+
7
+ export const OInlineAlert = wrapper('OInlineAlert', {"tag":"bythium-inline-alert","attributes":{"tone":["tone","string"],"dismissible":["dismissible","boolean"],"locale":["locale","string"]},"events":{"onBythiumDismiss":"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 { HTMLAttributes, JSX, ReactNode, Ref } from 'react';
3
+ import type { BythiumInput, BythiumInputEventMap } from '../input.js';
4
+
5
+ export interface OInputOwnProps {
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
+ /** Émis à chaque saisie de l’utilisateur, après la mise à jour de value. Event `bythium-input`. */
39
+ onBythiumInput?: (event: BythiumInputEventMap['bythium-input']) => void;
40
+ /** Émis quand l’utilisateur valide la valeur (sortie du champ après modification, Entrée). Event `bythium-change`. */
41
+ onBythiumChange?: (event: BythiumInputEventMap['bythium-change']) => void;
42
+ }
43
+
44
+ export interface OInputProps extends OInputOwnProps, Omit<HTMLAttributes<BythiumInput>, keyof OInputOwnProps | 'children'> {
45
+ ref?: Ref<BythiumInput>;
46
+ /** Default slot; a child with `slot="<name>"` fills a named slot. */
47
+ children?: ReactNode;
48
+ }
49
+
50
+ /** 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>`. */
51
+ export declare function OInput(props: OInputProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ 'use client';
2
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
3
+ import { wrapper } from './runtime.js';
4
+
5
+ if (typeof customElements !== 'undefined') import('../input.js');
6
+
7
+ 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":{"onBythiumInput":"bythium-input","onBythiumChange":"bythium-change"}});
@@ -0,0 +1,43 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { HTMLAttributes, JSX, ReactNode, Ref } from 'react';
3
+ import type { BythiumRadioGroup, BythiumRadioGroupEventMap } from '../radio-group.js';
4
+
5
+ export interface ORadioGroupOwnProps {
6
+ /** Option choisie, envoyée avec le formulaire. Une valeur hors de items rend le champ invalide (« Choix hors de la liste. »). Attribute `value`. */
7
+ value?: string;
8
+ /** Libellé visible du groupe ; il nomme le groupe, jamais une option : chaque option est nommée par son seul texte. Attribute `label`. */
9
+ label?: string;
10
+ /** Nom du champ dans le formulaire. Attribute `name`. */
11
+ name?: string;
12
+ /** Une option doit être choisie pour que le formulaire soit valide. Attribute `required`. */
13
+ required?: boolean;
14
+ /** Refuse tout choix ; rien n’est envoyé. Attribute `disabled`. */
15
+ disabled?: boolean;
16
+ /** Aide sous le groupe, quand le slot help est vide. Attribute `hint`. */
17
+ hint?: string;
18
+ /** Options, séparées par « | », dans l’ordre d’affichage. Vide par défaut : aucune option (les données vont dans la page). Attribute `items`. */
19
+ items?: string;
20
+ /** Options de items montrées mais impossibles à choisir, séparées par « | » (« Nova|Orion »). Une option désactivée déjà choisie reste choisie et envoyée. Vide par défaut : toutes les options se choisissent. Attribute `disabled-items`. */
21
+ disabledItems?: string;
22
+ /** Raison des options désactivées (« Réservé aux administrateurs. »), affichée sous le groupe et lue avec chaque option désactivée. Sans option désactivée dans la liste, rien n’est affiché. Attribute `disabled-hint`. */
23
+ disabledHint?: string;
24
+ /** Apparence : liste verticale (default) ou contrôle segmenté en rail (segmented). Attribute `appearance`. */
25
+ appearance?: 'default' | 'segmented';
26
+ /** Nom d’un groupe d’exemples de code (l’attribut group de bythium-code-sample) que ce groupe pilote : choisir une option choisit la version du même libellé dans tous les exemples du groupe de la page, et un choix fait dans un exemple coche ici l’option du même libellé. Les options s’écrivent comme les libellés des versions (« HTML|Vue|React|Svelte »). Vide par défaut : le groupe ne pilote rien. Attribute `group-target`. */
27
+ groupTarget?: string;
28
+ /** Avec group-target : clé de stockage local, la même que celle des exemples, sous laquelle l’option choisie est gardée et relue au chargement. Stockage refusé : le choix dure le temps de la page. Vide par défaut : rien n’est gardé. Attribute `storage-key`. */
29
+ storageKey?: string;
30
+ /** 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`. */
31
+ locale?: string;
32
+ /** Émis après un choix par l’utilisateur (clic, flèches, Espace). Une écriture de value par la page n’émet rien. Event `bythium-change`. */
33
+ onBythiumChange?: (event: BythiumRadioGroupEventMap['bythium-change']) => void;
34
+ }
35
+
36
+ export interface ORadioGroupProps extends ORadioGroupOwnProps, Omit<HTMLAttributes<BythiumRadioGroup>, keyof ORadioGroupOwnProps | 'children'> {
37
+ ref?: Ref<BythiumRadioGroup>;
38
+ /** Default slot; a child with `slot="<name>"` fills a named slot. */
39
+ children?: ReactNode;
40
+ }
41
+
42
+ /** Groupe de boutons radio natifs pour un choix exclusif, en liste ou en contrôle segmenté, avec libellé, aide et erreur ; associé aux formulaires. Renders `<bythium-radio-group>`. */
43
+ export declare function ORadioGroup(props: ORadioGroupProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ 'use client';
2
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
3
+ import { wrapper } from './runtime.js';
4
+
5
+ if (typeof customElements !== 'undefined') import('../radio-group.js');
6
+
7
+ export const ORadioGroup = wrapper('ORadioGroup', {"tag":"bythium-radio-group","attributes":{"value":["value","string"],"label":["label","string"],"name":["name","string"],"required":["required","boolean"],"disabled":["disabled","boolean"],"hint":["hint","string"],"items":["items","string"],"disabledItems":["disabled-items","string"],"disabledHint":["disabled-hint","string"],"appearance":["appearance","string"],"groupTarget":["group-target","string"],"storageKey":["storage-key","string"],"locale":["locale","string"]},"events":{"onBythiumChange":"bythium-change"}});
@@ -0,0 +1,39 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { HTMLAttributes, JSX, ReactNode, Ref } from 'react';
3
+ import type { BythiumSelect, BythiumSelectEventMap } from '../select.js';
4
+
5
+ export interface OSelectOwnProps {
6
+ /** Option choisie, reflétée à chaque choix ; une valeur absente de items affiche « Choisir… ». Celle du premier raccordement revient au reset du formulaire. 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
+ /** Choix obligatoire : invalide tant que « Choisir… » est sélectionné ; l’erreur ne s’affiche qu’après une interaction. Attribute `required`. */
13
+ required?: boolean;
14
+ /** Refuse le choix ; 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
+ /** Options séparées par |, dans l’ordre d’affichage ; chaque texte est aussi la valeur de l’option. La première option, « Choisir… », vaut toujours la chaîne vide. Attribute `items`. */
19
+ items?: string;
20
+ /** Options de items listées mais impossibles à choisir, séparées par | (« Nova|Orion »). Une option désactivée déjà choisie reste affichée et envoyée. Vide par défaut : toutes les options se choisissent. Attribute `disabled-items`. */
21
+ disabledItems?: string;
22
+ /** Raison des options désactivées (« Réservé aux administrateurs. »), affichée sous le champ et lue avec le contrôle. Sans option désactivée dans la liste, rien n’est affiché. Attribute `disabled-hint`. */
23
+ disabledHint?: string;
24
+ /** Texte de la première option, celle qui vaut la chaîne vide ; vide, le texte intégré de la langue (« Choisir… »). Attribute `placeholder`. */
25
+ placeholder?: string;
26
+ /** Langue BCP 47 des textes intégrés (« Choisir… », « obligatoire », message d’erreur) : français par défaut, anglais pour une balise en. Attribute `locale`. */
27
+ locale?: string;
28
+ /** Émis quand l’utilisateur choisit une option, après la mise à jour de value. Une écriture de l’attribut n’émet rien. Event `bythium-change`. */
29
+ onBythiumChange?: (event: BythiumSelectEventMap['bythium-change']) => void;
30
+ }
31
+
32
+ export interface OSelectProps extends OSelectOwnProps, Omit<HTMLAttributes<BythiumSelect>, keyof OSelectOwnProps | 'children'> {
33
+ ref?: Ref<BythiumSelect>;
34
+ /** Default slot; a child with `slot="<name>"` fills a named slot. */
35
+ children?: ReactNode;
36
+ }
37
+
38
+ /** Sélecteur natif dans une liste d’options fixe, avec libellé, aide, validation en français et association au formulaire. Renders `<bythium-select>`. */
39
+ export declare function OSelect(props: OSelectProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ 'use client';
2
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
3
+ import { wrapper } from './runtime.js';
4
+
5
+ if (typeof customElements !== 'undefined') import('../select.js');
6
+
7
+ export const OSelect = wrapper('OSelect', {"tag":"bythium-select","attributes":{"value":["value","string"],"label":["label","string"],"name":["name","string"],"required":["required","boolean"],"disabled":["disabled","boolean"],"hint":["hint","string"],"items":["items","string"],"disabledItems":["disabled-items","string"],"disabledHint":["disabled-hint","string"],"placeholder":["placeholder","string"],"locale":["locale","string"]},"events":{"onBythiumChange":"bythium-change"}});
@@ -0,0 +1,25 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { HTMLAttributes, JSX, ReactNode, Ref } from 'react';
3
+ import type { BythiumStack, BythiumStackEventMap } from '../stack.js';
4
+
5
+ export interface OStackOwnProps {
6
+ /** Axe de la pile : vertical (défaut) ou horizontal. Attribute `direction`. */
7
+ direction?: 'vertical' | 'horizontal';
8
+ /** Espacement en pas de 4 px : 0, 1, 2, 3, 4, 6 ou 8 (0 à 32 px). Une autre valeur donne l’espacement par défaut (12 px). Attribute `gap`. */
9
+ gap?: number;
10
+ /** Alignement sur l’axe transversal. Attribute `align`. */
11
+ align?: 'stretch' | 'start' | 'center' | 'end' | 'baseline';
12
+ /** Répartition sur l’axe principal. Attribute `justify`. */
13
+ justify?: 'start' | 'center' | 'end' | 'between';
14
+ /** Autorise le retour à la ligne quand la place manque. Attribute `wrap`. */
15
+ wrap?: boolean;
16
+ }
17
+
18
+ export interface OStackProps extends OStackOwnProps, Omit<HTMLAttributes<BythiumStack>, keyof OStackOwnProps | 'children'> {
19
+ ref?: Ref<BythiumStack>;
20
+ /** Default slot; a child with `slot="<name>"` fills a named slot. */
21
+ children?: ReactNode;
22
+ }
23
+
24
+ /** Pile flex qui empile ou aligne ses enfants avec un espacement régulier de l’échelle de 4 px, sans rôle ni cadre. Renders `<bythium-stack>`. */
25
+ export declare function OStack(props: OStackProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ 'use client';
2
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
3
+ import { wrapper } from './runtime.js';
4
+
5
+ if (typeof customElements !== 'undefined') import('../stack.js');
6
+
7
+ export const OStack = wrapper('OStack', {"tag":"bythium-stack","attributes":{"direction":["direction","string"],"gap":["gap","number"],"align":["align","string"],"justify":["justify","string"],"wrap":["wrap","boolean"]},"events":{}});
@@ -0,0 +1,37 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { HTMLAttributes, JSX, ReactNode, Ref } from 'react';
3
+ import type { BythiumSwitch, BythiumSwitchEventMap } from '../switch.js';
4
+
5
+ export interface OSwitchOwnProps {
6
+ /** Libellé visible, relié à la case dans le même arbre : il donne le nom accessible. Attribute `label`. */
7
+ label?: string;
8
+ /** Aide sous le libellé, qui décrit la case (aria-describedby). Vide : rien n’est affiché. Attribute `description`. */
9
+ description?: string;
10
+ /** État activé, réfléchi. Une écriture par la page n’émet aucun événement. Attribute `checked`. */
11
+ checked?: boolean;
12
+ /** Valeur envoyée avec le formulaire quand l’interrupteur est activé. Vide : rien n’est envoyé et required n’est pas satisfait. Attribute `value`. */
13
+ value?: string;
14
+ /** Nom du champ dans le formulaire. Attribute `name`. */
15
+ name?: string;
16
+ /** Doit être activé pour que le formulaire soit valide ; l’erreur s’affiche après une interaction ou une tentative d’envoi. Attribute `required`. */
17
+ required?: boolean;
18
+ /** Refuse la bascule ; rien n’est envoyé. Un fieldset désactivé a le même effet. Attribute `disabled`. */
19
+ disabled?: boolean;
20
+ /** Libellé après la piste (end, défaut) ou avant (start). Toute autre valeur vaut end. Attribute `label-position`. */
21
+ labelPosition?: 'start' | 'end';
22
+ /** Piste de 24 × 14 (sm) ou 28 × 16 px (md) ; 36 × 20 px au pointeur grossier. Toute autre valeur vaut md. Attribute `size`. */
23
+ size?: 'sm' | 'md';
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
+ /** Émis après une bascule par l’utilisateur (clic, Espace, Entrée). Une écriture de checked par la page n’émet rien. Event `bythium-change`. */
27
+ onBythiumChange?: (event: BythiumSwitchEventMap['bythium-change']) => void;
28
+ }
29
+
30
+ export interface OSwitchProps extends OSwitchOwnProps, Omit<HTMLAttributes<BythiumSwitch>, keyof OSwitchOwnProps | 'children'> {
31
+ ref?: Ref<BythiumSwitch>;
32
+ /** Default slot; a child with `slot="<name>"` fills a named slot. */
33
+ children?: ReactNode;
34
+ }
35
+
36
+ /** Interrupteur libellé associé aux formulaires : case native role=switch, description, libellé avant ou après la piste, deux tailles, bascule animée. Renders `<bythium-switch>`. */
37
+ export declare function OSwitch(props: OSwitchProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ 'use client';
2
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
3
+ import { wrapper } from './runtime.js';
4
+
5
+ if (typeof customElements !== 'undefined') import('../switch.js');
6
+
7
+ export const OSwitch = wrapper('OSwitch', {"tag":"bythium-switch","attributes":{"label":["label","string"],"description":["description","string"],"checked":["checked","boolean"],"value":["value","string"],"name":["name","string"],"required":["required","boolean"],"disabled":["disabled","boolean"],"labelPosition":["label-position","string"],"size":["size","string"],"locale":["locale","string"]},"events":{"onBythiumChange":"bythium-change"}});
@@ -0,0 +1,23 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { HTMLAttributes, JSX, ReactNode, Ref } from 'react';
3
+ import type { BythiumTabPanel, BythiumTabPanelEventMap } from '../tab-panel.js';
4
+
5
+ export interface OTabPanelOwnProps {
6
+ /** Identifiant du panneau : celui de son onglet. Attribute `value`. */
7
+ value?: string;
8
+ /** Nom accessible du panneau ; reprenez le libellé de son onglet. Valeur par défaut : « Contenu de l’onglet » (ou « Tab content » selon locale). Attribute `label`. */
9
+ label?: string;
10
+ /** Panneau masqué. Posé par bythium-tabs selon l’onglet choisi. Attribute `hidden`. */
11
+ hidden?: boolean;
12
+ /** Langue des textes intégrés (BCP 47) : nom accessible et contenu par défaut du panneau. Toute balise en vaut en, le reste vaut fr. Un texte que la page écrit, quand l’attribut existe, l’emporte. Attribute `locale`. */
13
+ locale?: string;
14
+ }
15
+
16
+ export interface OTabPanelProps extends OTabPanelOwnProps, Omit<HTMLAttributes<BythiumTabPanel>, keyof OTabPanelOwnProps | 'children'> {
17
+ ref?: Ref<BythiumTabPanel>;
18
+ /** Default slot; a child with `slot="<name>"` fills a named slot. */
19
+ children?: ReactNode;
20
+ }
21
+
22
+ /** Panneau d’une bythium-tabs : rôle tabpanel, focalisable, affiché seulement quand l’onglet de même value est choisi. Renders `<bythium-tab-panel>`. */
23
+ export declare function OTabPanel(props: OTabPanelProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ 'use client';
2
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
3
+ import { wrapper } from './runtime.js';
4
+
5
+ if (typeof customElements !== 'undefined') import('../tab-panel.js');
6
+
7
+ export const OTabPanel = wrapper('OTabPanel', {"tag":"bythium-tab-panel","attributes":{"value":["value","string"],"label":["label","string"],"hidden":["hidden","boolean"],"locale":["locale","string"]},"events":{}});
@@ -0,0 +1,23 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { HTMLAttributes, JSX, ReactNode, Ref } from 'react';
3
+ import type { BythiumTab, BythiumTabEventMap } from '../tab.js';
4
+
5
+ export interface OTabOwnProps {
6
+ /** Identifiant de l’onglet ; le panneau de même value lui correspond. Attribute `value`. */
7
+ value?: string;
8
+ /** Onglet inactif : ignoré par le clavier et le clic, annoncé désactivé. Attribute `disabled`. */
9
+ disabled?: boolean;
10
+ /** Onglet choisi. Posé par bythium-tabs ; l’écrire à la main n’ouvre pas le panneau. Attribute `selected`. */
11
+ selected?: boolean;
12
+ /** Langue des textes intégrés (BCP 47) : texte par défaut quand le slot est vide. Toute balise en vaut en, le reste vaut fr. Un label écrit par la page l’emporte. Attribute `locale`. */
13
+ locale?: string;
14
+ }
15
+
16
+ export interface OTabProps extends OTabOwnProps, Omit<HTMLAttributes<BythiumTab>, keyof OTabOwnProps | 'children'> {
17
+ ref?: Ref<BythiumTab>;
18
+ /** Default slot; a child with `slot="<name>"` fills a named slot. */
19
+ children?: ReactNode;
20
+ }
21
+
22
+ /** Onglet d’une bythium-tabs : texte atténué, souligné quand il est choisi ; porte le rôle tab et le focus itinérant. Renders `<bythium-tab>`. */
23
+ export declare function OTab(props: OTabProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ 'use client';
2
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
3
+ import { wrapper } from './runtime.js';
4
+
5
+ if (typeof customElements !== 'undefined') import('../tab.js');
6
+
7
+ export const OTab = wrapper('OTab', {"tag":"bythium-tab","attributes":{"value":["value","string"],"disabled":["disabled","boolean"],"selected":["selected","boolean"],"locale":["locale","string"]},"events":{}});
@@ -0,0 +1,27 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { HTMLAttributes, JSX, ReactNode, Ref } from 'react';
3
+ import type { BythiumTabs, BythiumTabsEventMap } from '../tabs.js';
4
+
5
+ export interface OTabsOwnProps {
6
+ /** Nom accessible de la liste d’onglets. Valeur par défaut : « Onglets » (ou « Tabs » selon locale). Attribute `label`. */
7
+ label?: string;
8
+ /** Valeur de l’onglet choisi. Vide (défaut), inconnue ou désactivée : le premier onglet actif est choisi. Attribute `value`. */
9
+ value?: string;
10
+ /** automatic : la flèche choisit l’onglet ; manual : la flèche déplace le focus, Entrée ou Espace choisit. Attribute `activation`. */
11
+ activation?: 'automatic' | 'manual';
12
+ /** Axe de la liste ; les flèches suivent l’axe (et le sens de lecture en horizontal). Attribute `orientation`. */
13
+ orientation?: 'horizontal' | 'vertical';
14
+ /** 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`. */
15
+ locale?: string;
16
+ /** Émis quand l’utilisateur choisit un autre onglet. Une écriture de value par la page n’émet rien. Event `bythium-tab-change`. */
17
+ onBythiumTabChange?: (event: BythiumTabsEventMap['bythium-tab-change']) => void;
18
+ }
19
+
20
+ export interface OTabsProps extends OTabsOwnProps, Omit<HTMLAttributes<BythiumTabs>, keyof OTabsOwnProps | 'children'> {
21
+ ref?: Ref<BythiumTabs>;
22
+ /** Default slot; a child with `slot="<name>"` fills a named slot. */
23
+ children?: ReactNode;
24
+ }
25
+
26
+ /** Onglets soulignés (motif APG) : liste nommée, focus itinérant aux flèches, activation automatique ou manuelle, défilement des onglets hors champ. Renders `<bythium-tabs>`. */
27
+ export declare function OTabs(props: OTabsProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ 'use client';
2
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
3
+ import { wrapper } from './runtime.js';
4
+
5
+ if (typeof customElements !== 'undefined') import('../tabs.js');
6
+
7
+ export const OTabs = wrapper('OTabs', {"tag":"bythium-tabs","attributes":{"label":["label","string"],"value":["value","string"],"activation":["activation","string"],"orientation":["orientation","string"],"locale":["locale","string"]},"events":{"onBythiumTabChange":"bythium-tab-change"}});
@@ -0,0 +1,23 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { HTMLAttributes, JSX, ReactNode, Ref } from 'react';
3
+ import type { BythiumText, BythiumTextEventMap } from '../text.js';
4
+
5
+ export interface OTextOwnProps {
6
+ /** 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`. */
7
+ tone?: string;
8
+ /** 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`. */
9
+ size?: 'default' | 'lead' | 'small' | 'intro';
10
+ /** 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`. */
11
+ variant?: 'default' | 'stat' | 'note';
12
+ /** 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`. */
13
+ kind?: 'paragraph' | 'note';
14
+ }
15
+
16
+ export interface OTextProps extends OTextOwnProps, Omit<HTMLAttributes<BythiumText>, keyof OTextOwnProps | 'children'> {
17
+ ref?: Ref<BythiumText>;
18
+ /** Default slot; a child with `slot="<name>"` fills a named slot. */
19
+ children?: ReactNode;
20
+ }
21
+
22
+ /** Paragraphe de texte courant, interligne 1,55, ton par défaut ou atténué, taille courante, d'introduction ou petite, sans marge. Renders `<bythium-text>`. */
23
+ export declare function OText(props: OTextProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ 'use client';
2
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
3
+ import { wrapper } from './runtime.js';
4
+
5
+ if (typeof customElements !== 'undefined') import('../text.js');
6
+
7
+ export const OText = wrapper('OText', {"tag":"bythium-text","attributes":{"tone":["tone","string"],"size":["size","string"],"variant":["variant","string"],"kind":["kind","string"]},"events":{}});
@@ -0,0 +1,43 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { HTMLAttributes, JSX, ReactNode, Ref } from 'react';
3
+ import type { BythiumTextarea, BythiumTextareaEventMap } from '../textarea.js';
4
+
5
+ export interface OTextareaOwnProps {
6
+ /** Texte du champ, reflété à chaque saisie ; celui du premier raccordement revient au reset du formulaire. 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
+ /** Nombre de lignes visibles (hauteur de départ). Attribute `rows`. */
19
+ rows?: number;
20
+ /** Nombre maximal de caractères, repris par le compteur. Attribute `maxlength`. */
21
+ maxlength?: number;
22
+ /** Hauteur qui suit le contenu après chaque rendu, 500 px au plus. Attribute `autosize`. */
23
+ autosize?: boolean;
24
+ /** Exemple de saisie ; il ne remplace jamais le libellé. Vide par défaut. Attribute `placeholder`. */
25
+ placeholder?: string;
26
+ /** Erreur fournie par l’application (par exemple après une validation serveur) : affichée tout de suite. Attribute `error`. */
27
+ error?: string;
28
+ /** Langue BCP 47 des textes de la balise (mention obligatoire, messages d’erreur) : anglais pour toute balise en, français sinon. Attribute `locale`. */
29
+ locale?: string;
30
+ /** Émis à chaque saisie de l’utilisateur, après la mise à jour de value. Event `bythium-input`. */
31
+ onBythiumInput?: (event: BythiumTextareaEventMap['bythium-input']) => void;
32
+ /** Émis quand l’utilisateur valide le texte (sortie du champ après modification). Event `bythium-change`. */
33
+ onBythiumChange?: (event: BythiumTextareaEventMap['bythium-change']) => void;
34
+ }
35
+
36
+ export interface OTextareaProps extends OTextareaOwnProps, Omit<HTMLAttributes<BythiumTextarea>, keyof OTextareaOwnProps | 'children'> {
37
+ ref?: Ref<BythiumTextarea>;
38
+ /** Default slot; a child with `slot="<name>"` fills a named slot. */
39
+ children?: ReactNode;
40
+ }
41
+
42
+ /** Texte sur plusieurs lignes avec libellé, aide, compteur de caractères, erreur après interaction et hauteur automatique optionnelle. Renders `<bythium-textarea>`. */
43
+ export declare function OTextarea(props: OTextareaProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ 'use client';
2
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
3
+ import { wrapper } from './runtime.js';
4
+
5
+ if (typeof customElements !== 'undefined') import('../textarea.js');
6
+
7
+ export const OTextarea = wrapper('OTextarea', {"tag":"bythium-textarea","attributes":{"value":["value","string"],"label":["label","string"],"name":["name","string"],"required":["required","boolean"],"disabled":["disabled","boolean"],"hint":["hint","string"],"rows":["rows","number"],"maxlength":["maxlength","number"],"autosize":["autosize","boolean"],"placeholder":["placeholder","string"],"error":["error","string"],"locale":["locale","string"]},"events":{"onBythiumInput":"bythium-input","onBythiumChange":"bythium-change"}});
@@ -0,0 +1,25 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { HTMLAttributes, JSX, ReactNode, Ref } from 'react';
3
+ import type { BythiumToast, BythiumToastEventMap } from '../toast.js';
4
+
5
+ export interface OToastOwnProps {
6
+ /** Langue du bouton de fermeture et du texte par défaut (BCP 47) : toute balise en vaut en, le reste vaut fr. Attribute `locale`. */
7
+ locale?: string;
8
+ /** Notification visible. Refermée par le bouton ou à l'expiration, l'attribut est retiré. Attribute `open`. */
9
+ open?: boolean;
10
+ /** 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`. */
11
+ duration?: number;
12
+ /** 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`. */
13
+ silent?: boolean;
14
+ /** Émis quand la notification se referme par son bouton ou à l'expiration (reason « fermeture »). Retirer open par programme n'émet rien. Event `bythium-close`. */
15
+ onBythiumClose?: (event: BythiumToastEventMap['bythium-close']) => void;
16
+ }
17
+
18
+ export interface OToastProps extends OToastOwnProps, Omit<HTMLAttributes<BythiumToast>, keyof OToastOwnProps | 'children'> {
19
+ ref?: Ref<BythiumToast>;
20
+ /** Default slot; a child with `slot="<name>"` fills a named slot. */
21
+ children?: ReactNode;
22
+ }
23
+
24
+ /** Notification locale, annoncée par une région d'état et refermable ; expiration facultative, sans réseau. Renders `<bythium-toast>`. */
25
+ export declare function OToast(props: OToastProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ 'use client';
2
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
3
+ import { wrapper } from './runtime.js';
4
+
5
+ if (typeof customElements !== 'undefined') import('../toast.js');
6
+
7
+ export const OToast = wrapper('OToast', {"tag":"bythium-toast","attributes":{"locale":["locale","string"],"open":["open","boolean"],"duration":["duration","number"],"silent":["silent","boolean"]},"events":{"onBythiumClose":"bythium-close"}});
@@ -0,0 +1,21 @@
1
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
2
+ import type { HTMLAttributes, JSX, ReactNode, Ref } from 'react';
3
+ import type { BythiumToaster, BythiumToasterEventMap } from '../toaster.js';
4
+
5
+ export interface OToasterOwnProps {
6
+ /** Nom accessible de la région, lu par les lecteurs d’écran (aria-label). Attribute `label`. */
7
+ label?: string;
8
+ /** 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`. */
9
+ locale?: string;
10
+ /** 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`. */
11
+ silent?: boolean;
12
+ }
13
+
14
+ export interface OToasterProps extends OToasterOwnProps, Omit<HTMLAttributes<BythiumToaster>, keyof OToasterOwnProps | 'children'> {
15
+ ref?: Ref<BythiumToaster>;
16
+ /** Default slot; a child with `slot="<name>"` fills a named slot. */
17
+ children?: ReactNode;
18
+ }
19
+
20
+ /** 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. Renders `<bythium-toaster>`. */
21
+ export declare function OToaster(props: OToasterProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ 'use client';
2
+ // Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
3
+ import { wrapper } from './runtime.js';
4
+
5
+ if (typeof customElements !== 'undefined') import('../toaster.js');
6
+
7
+ export const OToaster = wrapper('OToaster', {"tag":"bythium-toaster","attributes":{"label":["label","string"],"locale":["locale","string"],"silent":["silent","boolean"]},"events":{}});