@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.
- package/README.md +61 -15
- package/dist/CHANGELOG.md +23 -0
- package/dist/badge.d.ts +27 -0
- package/dist/badge.js +1 -0
- package/dist/button.js +1 -1
- package/dist/card.d.ts +29 -0
- package/dist/card.js +1 -0
- package/dist/checkbox.d.ts +39 -0
- package/dist/checkbox.js +1 -0
- package/dist/chunks/chunk-4JVFLK3U.js +416 -0
- package/dist/chunks/chunk-4LYJO5OS.js +411 -0
- package/dist/chunks/chunk-53M4DJQN.js +406 -0
- package/dist/chunks/chunk-5UXAUVTG.js +1 -0
- package/dist/chunks/chunk-6OG5ZBWQ.js +334 -0
- package/dist/chunks/chunk-7YT6MUHG.js +383 -0
- package/dist/chunks/chunk-B2JFDWCV.js +265 -0
- package/dist/chunks/chunk-D52FUFUP.js +1 -0
- package/dist/chunks/{chunk-MYB6FQX2.js → chunk-FATZ4W4Y.js} +2 -2
- package/dist/chunks/chunk-GG2TGBO7.js +388 -0
- package/dist/chunks/chunk-HBQNWILJ.js +447 -0
- package/dist/chunks/chunk-HYLPNRSS.js +346 -0
- package/dist/chunks/chunk-I67ANBTP.js +328 -0
- package/dist/chunks/chunk-IGDZPHRL.js +338 -0
- package/dist/chunks/chunk-J5K4GGOS.js +269 -0
- package/dist/chunks/chunk-KDXXLMWM.js +1 -0
- package/dist/chunks/{chunk-WKXQ2JMZ.js → chunk-NHTQILO5.js} +2 -2
- package/dist/chunks/chunk-ORYY4OPY.js +307 -0
- package/dist/chunks/chunk-QMY5FB4F.js +293 -0
- package/dist/chunks/chunk-SADTI7JS.js +319 -0
- package/dist/chunks/chunk-SEAWGQLP.js +316 -0
- package/dist/chunks/chunk-SUDTJKQT.js +314 -0
- package/dist/chunks/chunk-SVPZPTWA.js +353 -0
- package/dist/chunks/{chunk-MWNIQCR3.js → chunk-U7UKQQ5V.js} +1 -1
- package/dist/chunks/chunk-YAVUNJL2.js +326 -0
- package/dist/chunks/chunk-ZOW53TBP.js +358 -0
- package/dist/confirm-button.js +1 -1
- package/dist/copy-button.js +1 -1
- package/dist/custom-elements.json +3925 -0
- package/dist/define.d.ts +20 -0
- package/dist/define.js +1 -1
- package/dist/dialog.d.ts +29 -0
- package/dist/dialog.js +1 -0
- package/dist/field.d.ts +23 -0
- package/dist/field.js +1 -0
- package/dist/form.d.ts +29 -0
- package/dist/form.js +1 -0
- package/dist/heading.d.ts +21 -0
- package/dist/heading.js +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +1 -1
- package/dist/inline-alert.d.ts +25 -0
- package/dist/inline-alert.js +1 -0
- package/dist/input.d.ts +53 -0
- package/dist/input.js +1 -0
- package/dist/radio-group.d.ts +45 -0
- package/dist/radio-group.js +1 -0
- package/dist/react/badge.d.ts +25 -0
- package/dist/react/badge.js +7 -0
- package/dist/react/card.d.ts +27 -0
- package/dist/react/card.js +7 -0
- package/dist/react/checkbox.d.ts +37 -0
- package/dist/react/checkbox.js +7 -0
- package/dist/react/dialog.d.ts +27 -0
- package/dist/react/dialog.js +7 -0
- package/dist/react/field.d.ts +21 -0
- package/dist/react/field.js +7 -0
- package/dist/react/form.d.ts +27 -0
- package/dist/react/form.js +7 -0
- package/dist/react/heading.d.ts +19 -0
- package/dist/react/heading.js +7 -0
- package/dist/react/index.d.ts +20 -0
- package/dist/react/index.js +20 -0
- package/dist/react/inline-alert.d.ts +23 -0
- package/dist/react/inline-alert.js +7 -0
- package/dist/react/input.d.ts +51 -0
- package/dist/react/input.js +7 -0
- package/dist/react/radio-group.d.ts +43 -0
- package/dist/react/radio-group.js +7 -0
- package/dist/react/select.d.ts +39 -0
- package/dist/react/select.js +7 -0
- package/dist/react/stack.d.ts +25 -0
- package/dist/react/stack.js +7 -0
- package/dist/react/switch.d.ts +37 -0
- package/dist/react/switch.js +7 -0
- package/dist/react/tab-panel.d.ts +23 -0
- package/dist/react/tab-panel.js +7 -0
- package/dist/react/tab.d.ts +23 -0
- package/dist/react/tab.js +7 -0
- package/dist/react/tabs.d.ts +27 -0
- package/dist/react/tabs.js +7 -0
- package/dist/react/text.d.ts +23 -0
- package/dist/react/text.js +7 -0
- package/dist/react/textarea.d.ts +43 -0
- package/dist/react/textarea.js +7 -0
- package/dist/react/toast.d.ts +25 -0
- package/dist/react/toast.js +7 -0
- package/dist/react/toaster.d.ts +21 -0
- package/dist/react/toaster.js +7 -0
- package/dist/select.d.ts +41 -0
- package/dist/select.js +1 -0
- package/dist/stack.d.ts +27 -0
- package/dist/stack.js +1 -0
- package/dist/svelte/OBadge.svelte +14 -0
- package/dist/svelte/OBadge.svelte.d.ts +26 -0
- package/dist/svelte/OCard.svelte +14 -0
- package/dist/svelte/OCard.svelte.d.ts +28 -0
- package/dist/svelte/OCheckbox.svelte +14 -0
- package/dist/svelte/OCheckbox.svelte.d.ts +38 -0
- package/dist/svelte/ODialog.svelte +14 -0
- package/dist/svelte/ODialog.svelte.d.ts +28 -0
- package/dist/svelte/OField.svelte +14 -0
- package/dist/svelte/OField.svelte.d.ts +22 -0
- package/dist/svelte/OForm.svelte +14 -0
- package/dist/svelte/OForm.svelte.d.ts +28 -0
- package/dist/svelte/OHeading.svelte +14 -0
- package/dist/svelte/OHeading.svelte.d.ts +20 -0
- package/dist/svelte/OInlineAlert.svelte +14 -0
- package/dist/svelte/OInlineAlert.svelte.d.ts +24 -0
- package/dist/svelte/OInput.svelte +14 -0
- package/dist/svelte/OInput.svelte.d.ts +52 -0
- package/dist/svelte/ORadioGroup.svelte +14 -0
- package/dist/svelte/ORadioGroup.svelte.d.ts +44 -0
- package/dist/svelte/OSelect.svelte +14 -0
- package/dist/svelte/OSelect.svelte.d.ts +40 -0
- package/dist/svelte/OStack.svelte +14 -0
- package/dist/svelte/OStack.svelte.d.ts +26 -0
- package/dist/svelte/OSwitch.svelte +14 -0
- package/dist/svelte/OSwitch.svelte.d.ts +38 -0
- package/dist/svelte/OTab.svelte +14 -0
- package/dist/svelte/OTab.svelte.d.ts +24 -0
- package/dist/svelte/OTabPanel.svelte +14 -0
- package/dist/svelte/OTabPanel.svelte.d.ts +24 -0
- package/dist/svelte/OTabs.svelte +14 -0
- package/dist/svelte/OTabs.svelte.d.ts +28 -0
- package/dist/svelte/OText.svelte +14 -0
- package/dist/svelte/OText.svelte.d.ts +24 -0
- package/dist/svelte/OTextarea.svelte +14 -0
- package/dist/svelte/OTextarea.svelte.d.ts +44 -0
- package/dist/svelte/OToast.svelte +14 -0
- package/dist/svelte/OToast.svelte.d.ts +26 -0
- package/dist/svelte/OToaster.svelte +14 -0
- package/dist/svelte/OToaster.svelte.d.ts +22 -0
- package/dist/svelte/index.d.ts +20 -0
- package/dist/svelte/index.js +20 -0
- package/dist/switch.d.ts +39 -0
- package/dist/switch.js +1 -0
- package/dist/tab-panel.d.ts +25 -0
- package/dist/tab-panel.js +1 -0
- package/dist/tab.d.ts +25 -0
- package/dist/tab.js +1 -0
- package/dist/tabs.d.ts +29 -0
- package/dist/tabs.js +1 -0
- package/dist/text.d.ts +25 -0
- package/dist/text.js +1 -0
- package/dist/textarea.d.ts +45 -0
- package/dist/textarea.js +1 -0
- package/dist/toast.d.ts +27 -0
- package/dist/toast.js +1 -0
- package/dist/toaster.d.ts +23 -0
- package/dist/toaster.js +1 -0
- package/dist/vue/badge.d.ts +26 -0
- package/dist/vue/badge.js +6 -0
- package/dist/vue/card.d.ts +28 -0
- package/dist/vue/card.js +6 -0
- package/dist/vue/checkbox.d.ts +37 -0
- package/dist/vue/checkbox.js +6 -0
- package/dist/vue/dialog.d.ts +27 -0
- package/dist/vue/dialog.js +6 -0
- package/dist/vue/field.d.ts +22 -0
- package/dist/vue/field.js +6 -0
- package/dist/vue/form.d.ts +27 -0
- package/dist/vue/form.js +6 -0
- package/dist/vue/heading.d.ts +20 -0
- package/dist/vue/heading.js +6 -0
- package/dist/vue/index.d.ts +20 -0
- package/dist/vue/index.js +20 -0
- package/dist/vue/inline-alert.d.ts +23 -0
- package/dist/vue/inline-alert.js +6 -0
- package/dist/vue/input.d.ts +51 -0
- package/dist/vue/input.js +6 -0
- package/dist/vue/radio-group.d.ts +43 -0
- package/dist/vue/radio-group.js +6 -0
- package/dist/vue/select.d.ts +39 -0
- package/dist/vue/select.js +6 -0
- package/dist/vue/stack.d.ts +26 -0
- package/dist/vue/stack.js +6 -0
- package/dist/vue/switch.d.ts +37 -0
- package/dist/vue/switch.js +6 -0
- package/dist/vue/tab-panel.d.ts +24 -0
- package/dist/vue/tab-panel.js +6 -0
- package/dist/vue/tab.d.ts +24 -0
- package/dist/vue/tab.js +6 -0
- package/dist/vue/tabs.d.ts +27 -0
- package/dist/vue/tabs.js +6 -0
- package/dist/vue/text.d.ts +24 -0
- package/dist/vue/text.js +6 -0
- package/dist/vue/textarea.d.ts +43 -0
- package/dist/vue/textarea.js +6 -0
- package/dist/vue/toast.d.ts +25 -0
- package/dist/vue/toast.js +6 -0
- package/dist/vue/toaster.d.ts +22 -0
- package/dist/vue/toaster.js +6 -0
- package/package.json +346 -3
- package/dist/chunks/chunk-BAYUYXVR.js +0 -1
package/dist/define.d.ts
CHANGED
|
@@ -5,4 +5,24 @@ import './button-group.js';
|
|
|
5
5
|
import './copy-button.js';
|
|
6
6
|
import './split-button.js';
|
|
7
7
|
import './confirm-button.js';
|
|
8
|
+
import './text.js';
|
|
9
|
+
import './heading.js';
|
|
10
|
+
import './stack.js';
|
|
11
|
+
import './field.js';
|
|
12
|
+
import './input.js';
|
|
13
|
+
import './textarea.js';
|
|
14
|
+
import './select.js';
|
|
15
|
+
import './checkbox.js';
|
|
16
|
+
import './radio-group.js';
|
|
17
|
+
import './switch.js';
|
|
18
|
+
import './form.js';
|
|
19
|
+
import './badge.js';
|
|
20
|
+
import './card.js';
|
|
21
|
+
import './inline-alert.js';
|
|
22
|
+
import './tabs.js';
|
|
23
|
+
import './tab.js';
|
|
24
|
+
import './tab-panel.js';
|
|
25
|
+
import './toast.js';
|
|
26
|
+
import './toaster.js';
|
|
27
|
+
import './dialog.js';
|
|
8
28
|
export {};
|
package/dist/define.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunks/chunk-
|
|
1
|
+
import"./chunks/chunk-SEAWGQLP.js";import"./chunks/chunk-J5K4GGOS.js";import"./chunks/chunk-ORYY4OPY.js";import"./chunks/chunk-B2JFDWCV.js";import"./chunks/chunk-SADTI7JS.js";import"./chunks/chunk-7YT6MUHG.js";import"./chunks/chunk-53M4DJQN.js";import"./chunks/chunk-HBQNWILJ.js";import"./chunks/chunk-I67ANBTP.js";import"./chunks/chunk-4JVFLK3U.js";import"./chunks/chunk-4LYJO5OS.js";import"./chunks/chunk-IGDZPHRL.js";import"./chunks/chunk-HYLPNRSS.js";import"./chunks/chunk-FATZ4W4Y.js";import"./chunks/chunk-KDXXLMWM.js";import"./chunks/chunk-QMY5FB4F.js";import"./chunks/chunk-6OG5ZBWQ.js";import"./chunks/chunk-SUDTJKQT.js";import"./chunks/chunk-ZOW53TBP.js";import"./chunks/chunk-GG2TGBO7.js";import"./chunks/chunk-SVPZPTWA.js";import"./chunks/chunk-YAVUNJL2.js";import"./chunks/chunk-NHTQILO5.js";import"./chunks/chunk-5UXAUVTG.js";import"./chunks/chunk-4GXKKP4T.js";import"./chunks/chunk-JOXL2SMV.js";import"./chunks/chunk-FGJHPGJI.js";import"./chunks/chunk-5TUKFRTD.js";import"./chunks/chunk-U7UKQQ5V.js";import"./chunks/chunk-D52FUFUP.js";import"./chunks/chunk-6TMCYM5S.js";import"./chunks/chunk-5VNPX7DT.js";import"./chunks/chunk-W3ASGVKH.js";
|
package/dist/dialog.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Generated from the contract of bythium-dialog. Do not edit.
|
|
2
|
+
export interface BythiumDialogEventMap extends HTMLElementEventMap {
|
|
3
|
+
/** Émis à la fermeture par l’utilisateur : bouton de fermeture ou Échap. */
|
|
4
|
+
'bythium-close': CustomEvent<{ reason: "fermeture" }>;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/** Dialogue modal natif avec son bouton déclencheur : showModal(), page inerte et figée, Échap ferme, focus rendu au déclencheur. */
|
|
8
|
+
export declare class BythiumDialog extends HTMLElement {
|
|
9
|
+
/** Langue du bouton Fermer (BCP 47) : toute balise en vaut en, le reste vaut fr. Attribute `locale`. */
|
|
10
|
+
locale: string;
|
|
11
|
+
/** Dialogue ouvert. Le clic sur le déclencheur l’ouvre ; Échap ou le bouton de fermeture le ferme. Attribute `open`. */
|
|
12
|
+
open: boolean;
|
|
13
|
+
/** Texte du déclencheur et titre du dialogue, qui le nomme. Libellé générique par défaut ; la page le fournit. Attribute `label`. */
|
|
14
|
+
label: string;
|
|
15
|
+
/** 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`. */
|
|
16
|
+
side: string;
|
|
17
|
+
/** Niveau du titre du dialogue dans le plan de la page (WC-N03). Attribute `heading-level`. */
|
|
18
|
+
headingLevel: number;
|
|
19
|
+
addEventListener<K extends keyof BythiumDialogEventMap>(type: K, listener: (this: BythiumDialog, event: BythiumDialogEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
20
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
21
|
+
removeEventListener<K extends keyof BythiumDialogEventMap>(type: K, listener: (this: BythiumDialog, event: BythiumDialogEventMap[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-dialog': BythiumDialog;
|
|
28
|
+
}
|
|
29
|
+
}
|
package/dist/dialog.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunks/chunk-SADTI7JS.js";import"./chunks/chunk-KDXXLMWM.js";import"./chunks/chunk-D52FUFUP.js";import"./chunks/chunk-W3ASGVKH.js";export{a as BythiumDialog};
|
package/dist/field.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Generated from the contract of bythium-field. Do not edit.
|
|
2
|
+
export interface BythiumFieldEventMap extends HTMLElementEventMap {
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/** 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. */
|
|
6
|
+
export declare class BythiumField extends HTMLElement {
|
|
7
|
+
/** 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`. */
|
|
8
|
+
label: string;
|
|
9
|
+
/** 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`. */
|
|
10
|
+
hint: string;
|
|
11
|
+
/** Erreur fournie par l’application, affichée et annoncée (role status) ; pose aria-invalid="true" sur le contrôle slotté. Attribute `error`. */
|
|
12
|
+
error: string;
|
|
13
|
+
addEventListener<K extends keyof BythiumFieldEventMap>(type: K, listener: (this: BythiumField, event: BythiumFieldEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
14
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
15
|
+
removeEventListener<K extends keyof BythiumFieldEventMap>(type: K, listener: (this: BythiumField, event: BythiumFieldEventMap[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-field': BythiumField;
|
|
22
|
+
}
|
|
23
|
+
}
|
package/dist/field.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunks/chunk-ZOW53TBP.js";import"./chunks/chunk-W3ASGVKH.js";export{a as BythiumField};
|
package/dist/form.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Generated from the contract of bythium-form. Do not edit.
|
|
2
|
+
export interface BythiumFormEventMap extends HTMLElementEventMap {
|
|
3
|
+
/** É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é. */
|
|
4
|
+
'bythium-invalid': CustomEvent<{ errors: { id: string; label: string; message: string }[] }>;
|
|
5
|
+
/** É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. */
|
|
6
|
+
'bythium-submit': CustomEvent<{ formData: unknown; form: unknown }>;
|
|
7
|
+
/** Émis après le reset natif du formulaire (bouton reset ou reset()) ; le résumé est alors vidé. */
|
|
8
|
+
'bythium-reset': CustomEvent<{ form: unknown }>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** 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. */
|
|
12
|
+
export declare class BythiumForm extends HTMLElement {
|
|
13
|
+
/** Nom accessible de la région qui entoure le formulaire. Attribute `label`. */
|
|
14
|
+
label: string;
|
|
15
|
+
/** Niveau du titre du résumé d’erreurs dans le plan de la page (WC-N03). Attribute `heading-level`. */
|
|
16
|
+
headingLevel: number;
|
|
17
|
+
/** 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`. */
|
|
18
|
+
locale: string;
|
|
19
|
+
addEventListener<K extends keyof BythiumFormEventMap>(type: K, listener: (this: BythiumForm, event: BythiumFormEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
20
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
21
|
+
removeEventListener<K extends keyof BythiumFormEventMap>(type: K, listener: (this: BythiumForm, event: BythiumFormEventMap[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-form': BythiumForm;
|
|
28
|
+
}
|
|
29
|
+
}
|
package/dist/form.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunks/chunk-I67ANBTP.js";import"./chunks/chunk-5UXAUVTG.js";import"./chunks/chunk-D52FUFUP.js";import"./chunks/chunk-W3ASGVKH.js";export{a as BythiumForm};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Generated from the contract of bythium-heading. Do not edit.
|
|
2
|
+
export interface BythiumHeadingEventMap extends HTMLElementEventMap {
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/** Titre de niveau 1 à 6 choisi par la page, interlettrage négatif et graisse 600 : hiérarchise sans couleur. */
|
|
6
|
+
export declare class BythiumHeading extends HTMLElement {
|
|
7
|
+
/** Niveau du titre (h1 à h6), fixé par la page (WC-N03) ; décimal tronqué, ramené entre 1 et 6. Attribute `level`. */
|
|
8
|
+
level: number;
|
|
9
|
+
/** 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`. */
|
|
10
|
+
size: 'default' | 'display' | 'section' | 'huge' | 'hero' | 'compact' | 'subsection';
|
|
11
|
+
addEventListener<K extends keyof BythiumHeadingEventMap>(type: K, listener: (this: BythiumHeading, event: BythiumHeadingEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
12
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
13
|
+
removeEventListener<K extends keyof BythiumHeadingEventMap>(type: K, listener: (this: BythiumHeading, event: BythiumHeadingEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
14
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare global {
|
|
18
|
+
interface HTMLElementTagNameMap {
|
|
19
|
+
'bythium-heading': BythiumHeading;
|
|
20
|
+
}
|
|
21
|
+
}
|
package/dist/heading.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunks/chunk-6OG5ZBWQ.js";import"./chunks/chunk-5VNPX7DT.js";import"./chunks/chunk-W3ASGVKH.js";export{a as BythiumHeading};
|
package/dist/index.d.ts
CHANGED
|
@@ -5,3 +5,23 @@ export { BythiumButtonGroup, type BythiumButtonGroupEventMap } from './button-gr
|
|
|
5
5
|
export { BythiumCopyButton, type BythiumCopyButtonEventMap } from './copy-button.js';
|
|
6
6
|
export { BythiumSplitButton, type BythiumSplitButtonEventMap } from './split-button.js';
|
|
7
7
|
export { BythiumConfirmButton, type BythiumConfirmButtonEventMap } from './confirm-button.js';
|
|
8
|
+
export { BythiumText, type BythiumTextEventMap } from './text.js';
|
|
9
|
+
export { BythiumHeading, type BythiumHeadingEventMap } from './heading.js';
|
|
10
|
+
export { BythiumStack, type BythiumStackEventMap } from './stack.js';
|
|
11
|
+
export { BythiumField, type BythiumFieldEventMap } from './field.js';
|
|
12
|
+
export { BythiumInput, type BythiumInputEventMap } from './input.js';
|
|
13
|
+
export { BythiumTextarea, type BythiumTextareaEventMap } from './textarea.js';
|
|
14
|
+
export { BythiumSelect, type BythiumSelectEventMap } from './select.js';
|
|
15
|
+
export { BythiumCheckbox, type BythiumCheckboxEventMap } from './checkbox.js';
|
|
16
|
+
export { BythiumRadioGroup, type BythiumRadioGroupEventMap } from './radio-group.js';
|
|
17
|
+
export { BythiumSwitch, type BythiumSwitchEventMap } from './switch.js';
|
|
18
|
+
export { BythiumForm, type BythiumFormEventMap } from './form.js';
|
|
19
|
+
export { BythiumBadge, type BythiumBadgeEventMap } from './badge.js';
|
|
20
|
+
export { BythiumCard, type BythiumCardEventMap } from './card.js';
|
|
21
|
+
export { BythiumInlineAlert, type BythiumInlineAlertEventMap } from './inline-alert.js';
|
|
22
|
+
export { BythiumTabs, type BythiumTabsEventMap } from './tabs.js';
|
|
23
|
+
export { BythiumTab, type BythiumTabEventMap } from './tab.js';
|
|
24
|
+
export { BythiumTabPanel, type BythiumTabPanelEventMap } from './tab-panel.js';
|
|
25
|
+
export { BythiumToast, type BythiumToastEventMap } from './toast.js';
|
|
26
|
+
export { BythiumToaster, type BythiumToasterEventMap } from './toaster.js';
|
|
27
|
+
export { BythiumDialog, type BythiumDialogEventMap } from './dialog.js';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as p}from"./chunks/chunk-
|
|
1
|
+
import{a as S}from"./chunks/chunk-SEAWGQLP.js";import{a as s}from"./chunks/chunk-J5K4GGOS.js";import{a as I}from"./chunks/chunk-ORYY4OPY.js";import{a as k}from"./chunks/chunk-B2JFDWCV.js";import{a as F}from"./chunks/chunk-SADTI7JS.js";import{a as n}from"./chunks/chunk-7YT6MUHG.js";import{a as l}from"./chunks/chunk-53M4DJQN.js";import{a as T}from"./chunks/chunk-HBQNWILJ.js";import{a as c}from"./chunks/chunk-I67ANBTP.js";import{a as d}from"./chunks/chunk-4JVFLK3U.js";import{a as g}from"./chunks/chunk-4LYJO5OS.js";import{a as b}from"./chunks/chunk-IGDZPHRL.js";import{a as C}from"./chunks/chunk-HYLPNRSS.js";import{a as i}from"./chunks/chunk-FATZ4W4Y.js";import"./chunks/chunk-KDXXLMWM.js";import{a as B}from"./chunks/chunk-QMY5FB4F.js";import{a as p}from"./chunks/chunk-6OG5ZBWQ.js";import{a as x}from"./chunks/chunk-SUDTJKQT.js";import{a as h}from"./chunks/chunk-ZOW53TBP.js";import{a as f}from"./chunks/chunk-GG2TGBO7.js";import{a as y}from"./chunks/chunk-SVPZPTWA.js";import{a}from"./chunks/chunk-YAVUNJL2.js";import{a as t}from"./chunks/chunk-NHTQILO5.js";import"./chunks/chunk-5UXAUVTG.js";import{a as o}from"./chunks/chunk-4GXKKP4T.js";import{a as r}from"./chunks/chunk-JOXL2SMV.js";import"./chunks/chunk-FGJHPGJI.js";import{a as m}from"./chunks/chunk-5TUKFRTD.js";import{a as e}from"./chunks/chunk-U7UKQQ5V.js";import"./chunks/chunk-D52FUFUP.js";import{a as u}from"./chunks/chunk-6TMCYM5S.js";import"./chunks/chunk-5VNPX7DT.js";import"./chunks/chunk-W3ASGVKH.js";export{d as BythiumBadge,t as BythiumButton,m as BythiumButtonGroup,g as BythiumCard,n as BythiumCheckbox,i as BythiumConfirmButton,e as BythiumCopyButton,F as BythiumDialog,h as BythiumField,c as BythiumForm,p as BythiumHeading,o as BythiumIconButton,b as BythiumInlineAlert,f as BythiumInput,l as BythiumRadioGroup,a as BythiumSelect,u as BythiumSplitButton,x as BythiumStack,T as BythiumSwitch,S as BythiumTab,s as BythiumTabPanel,C as BythiumTabs,B as BythiumText,y as BythiumTextarea,I as BythiumToast,k as BythiumToaster,r as BythiumToggleButton};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Generated from the contract of bythium-inline-alert. Do not edit.
|
|
2
|
+
export interface BythiumInlineAlertEventMap extends HTMLElementEventMap {
|
|
3
|
+
/** Émis quand l’utilisateur ferme le bandeau par son bouton, après la pose de l’attribut hidden. */
|
|
4
|
+
'bythium-dismiss': CustomEvent<{ reason: string }>;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/** Bandeau d’alerte en ligne, annoncé poliment (role status), en ton info, succès, avertissement ou danger, refermable sur demande. */
|
|
8
|
+
export declare class BythiumInlineAlert extends HTMLElement {
|
|
9
|
+
/** 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`. */
|
|
10
|
+
tone: 'info' | 'success' | 'warning' | 'danger';
|
|
11
|
+
/** Ajoute un bouton Fermer qui masque le bandeau (attribut hidden) et émet bythium-dismiss. Attribute `dismissible`. */
|
|
12
|
+
dismissible: boolean;
|
|
13
|
+
/** 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`. */
|
|
14
|
+
locale: string;
|
|
15
|
+
addEventListener<K extends keyof BythiumInlineAlertEventMap>(type: K, listener: (this: BythiumInlineAlert, event: BythiumInlineAlertEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
16
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
17
|
+
removeEventListener<K extends keyof BythiumInlineAlertEventMap>(type: K, listener: (this: BythiumInlineAlert, event: BythiumInlineAlertEventMap[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-inline-alert': BythiumInlineAlert;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunks/chunk-IGDZPHRL.js";import"./chunks/chunk-D52FUFUP.js";import"./chunks/chunk-5VNPX7DT.js";import"./chunks/chunk-W3ASGVKH.js";export{a as BythiumInlineAlert};
|
package/dist/input.d.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// Generated from the contract of bythium-input. Do not edit.
|
|
2
|
+
export interface BythiumInputEventMap 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 la valeur (sortie du champ après modification, Entrée). */
|
|
6
|
+
'bythium-change': CustomEvent<{ value: string }>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/** Champ de saisie natif typé (texte, courriel, URL, téléphone, nombre, date, heure, recherche), avec libellé, aide, préfixe, suffixe et erreur. */
|
|
10
|
+
export declare class BythiumInput extends HTMLElement {
|
|
11
|
+
/** 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`. */
|
|
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
|
+
/** 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`. */
|
|
24
|
+
type: 'text' | 'email' | 'url' | 'tel' | 'number' | 'date' | 'time' | 'search' | 'color';
|
|
25
|
+
/** Exemple de saisie ; il ne remplace jamais le libellé. Absent : « Saisir… » (« Type… » en anglais) ; vide : aucun. Attribute `placeholder`. */
|
|
26
|
+
placeholder: string | null;
|
|
27
|
+
/** Jeton de remplissage automatique du contrôle natif (name, email, tel, organization, off…) ; vide : aucun. Attribute `autocomplete`. */
|
|
28
|
+
autocomplete: string;
|
|
29
|
+
/** 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`. */
|
|
30
|
+
locale: string;
|
|
31
|
+
/** Expression régulière que la valeur doit respecter (vide : aucune). Attribute `pattern`. */
|
|
32
|
+
pattern: string;
|
|
33
|
+
/** Minimum, pour les types nombre, date et heure. Attribute `min`. */
|
|
34
|
+
min: string;
|
|
35
|
+
/** Maximum, pour les types nombre, date et heure. Attribute `max`. */
|
|
36
|
+
max: string;
|
|
37
|
+
/** Nombre maximal de caractères. Attribute `maxlength`. */
|
|
38
|
+
maxlength: number;
|
|
39
|
+
/** Lecture seule : la valeur est envoyée mais ne se modifie pas. Attribute `readonly`. */
|
|
40
|
+
readonly: boolean;
|
|
41
|
+
/** Erreur fournie par l’application (par exemple après une validation serveur) : affichée tout de suite. Attribute `error`. */
|
|
42
|
+
error: string;
|
|
43
|
+
addEventListener<K extends keyof BythiumInputEventMap>(type: K, listener: (this: BythiumInput, event: BythiumInputEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
44
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
45
|
+
removeEventListener<K extends keyof BythiumInputEventMap>(type: K, listener: (this: BythiumInput, event: BythiumInputEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
46
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare global {
|
|
50
|
+
interface HTMLElementTagNameMap {
|
|
51
|
+
'bythium-input': BythiumInput;
|
|
52
|
+
}
|
|
53
|
+
}
|
package/dist/input.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunks/chunk-GG2TGBO7.js";import"./chunks/chunk-5UXAUVTG.js";import"./chunks/chunk-D52FUFUP.js";import"./chunks/chunk-5VNPX7DT.js";import"./chunks/chunk-W3ASGVKH.js";export{a as BythiumInput};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// Generated from the contract of bythium-radio-group. Do not edit.
|
|
2
|
+
export interface BythiumRadioGroupEventMap extends HTMLElementEventMap {
|
|
3
|
+
/** Émis après un choix par l’utilisateur (clic, flèches, Espace). Une écriture de value par la page n’émet rien. */
|
|
4
|
+
'bythium-change': CustomEvent<{ value: string }>;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/** Groupe de boutons radio natifs pour un choix exclusif, en liste ou en contrôle segmenté, avec libellé, aide et erreur ; associé aux formulaires. */
|
|
8
|
+
export declare class BythiumRadioGroup extends HTMLElement {
|
|
9
|
+
/** Option choisie, envoyée avec le formulaire. Une valeur hors de items rend le champ invalide (« Choix hors de la liste. »). Attribute `value`. */
|
|
10
|
+
value: string;
|
|
11
|
+
/** Libellé visible du groupe ; il nomme le groupe, jamais une option : chaque option est nommée par son seul texte. Attribute `label`. */
|
|
12
|
+
label: string;
|
|
13
|
+
/** Nom du champ dans le formulaire. Attribute `name`. */
|
|
14
|
+
name: string;
|
|
15
|
+
/** Une option doit être choisie pour que le formulaire soit valide. Attribute `required`. */
|
|
16
|
+
required: boolean;
|
|
17
|
+
/** Refuse tout choix ; rien n’est envoyé. Attribute `disabled`. */
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
/** Aide sous le groupe, quand le slot help est vide. Attribute `hint`. */
|
|
20
|
+
hint: string;
|
|
21
|
+
/** 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`. */
|
|
22
|
+
items: string;
|
|
23
|
+
/** 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`. */
|
|
24
|
+
disabledItems: string;
|
|
25
|
+
/** 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`. */
|
|
26
|
+
disabledHint: string;
|
|
27
|
+
/** Apparence : liste verticale (default) ou contrôle segmenté en rail (segmented). Attribute `appearance`. */
|
|
28
|
+
appearance: 'default' | 'segmented';
|
|
29
|
+
/** 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`. */
|
|
30
|
+
groupTarget: string;
|
|
31
|
+
/** 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`. */
|
|
32
|
+
storageKey: string;
|
|
33
|
+
/** 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`. */
|
|
34
|
+
locale: string;
|
|
35
|
+
addEventListener<K extends keyof BythiumRadioGroupEventMap>(type: K, listener: (this: BythiumRadioGroup, event: BythiumRadioGroupEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
36
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
37
|
+
removeEventListener<K extends keyof BythiumRadioGroupEventMap>(type: K, listener: (this: BythiumRadioGroup, event: BythiumRadioGroupEventMap[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-radio-group': BythiumRadioGroup;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunks/chunk-53M4DJQN.js";import"./chunks/chunk-5UXAUVTG.js";import"./chunks/chunk-D52FUFUP.js";import"./chunks/chunk-5VNPX7DT.js";import"./chunks/chunk-W3ASGVKH.js";export{a as BythiumRadioGroup};
|
|
@@ -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 { BythiumBadge, BythiumBadgeEventMap } from '../badge.js';
|
|
4
|
+
|
|
5
|
+
export interface OBadgeOwnProps {
|
|
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 interface OBadgeProps extends OBadgeOwnProps, Omit<HTMLAttributes<BythiumBadge>, keyof OBadgeOwnProps | 'children'> {
|
|
19
|
+
ref?: Ref<BythiumBadge>;
|
|
20
|
+
/** Default slot; a child with `slot="<name>"` fills a named slot. */
|
|
21
|
+
children?: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** É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>`. */
|
|
25
|
+
export declare function OBadge(props: OBadgeProps): 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('../badge.js');
|
|
6
|
+
|
|
7
|
+
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,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 { BythiumCard, BythiumCardEventMap } from '../card.js';
|
|
4
|
+
|
|
5
|
+
export interface OCardOwnProps {
|
|
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 interface OCardProps extends OCardOwnProps, Omit<HTMLAttributes<BythiumCard>, keyof OCardOwnProps | 'children'> {
|
|
21
|
+
ref?: Ref<BythiumCard>;
|
|
22
|
+
/** Default slot; a child with `slot="<name>"` fills a named slot. */
|
|
23
|
+
children?: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** 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>`. */
|
|
27
|
+
export declare function OCard(props: OCardProps): 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('../card.js');
|
|
6
|
+
|
|
7
|
+
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":{}});
|
|
@@ -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 { BythiumCheckbox, BythiumCheckboxEventMap } from '../checkbox.js';
|
|
4
|
+
|
|
5
|
+
export interface OCheckboxOwnProps {
|
|
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
|
+
/** É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. Event `bythium-change`. */
|
|
27
|
+
onBythiumChange?: (event: BythiumCheckboxEventMap['bythium-change']) => void;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface OCheckboxProps extends OCheckboxOwnProps, Omit<HTMLAttributes<BythiumCheckbox>, keyof OCheckboxOwnProps | 'children'> {
|
|
31
|
+
ref?: Ref<BythiumCheckbox>;
|
|
32
|
+
/** Default slot; a child with `slot="<name>"` fills a named slot. */
|
|
33
|
+
children?: ReactNode;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** Case à cocher native avec libellé, aide, état indéterminé et validation obligatoire, associée aux formulaires. Renders `<bythium-checkbox>`. */
|
|
37
|
+
export declare function OCheckbox(props: OCheckboxProps): 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('../checkbox.js');
|
|
6
|
+
|
|
7
|
+
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":{"onBythiumChange":"bythium-change"}});
|
|
@@ -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 { BythiumDialog, BythiumDialogEventMap } from '../dialog.js';
|
|
4
|
+
|
|
5
|
+
export interface ODialogOwnProps {
|
|
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
|
+
/** Émis à la fermeture par l’utilisateur : bouton de fermeture ou Échap. Event `bythium-close`. */
|
|
17
|
+
onBythiumClose?: (event: BythiumDialogEventMap['bythium-close']) => void;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface ODialogProps extends ODialogOwnProps, Omit<HTMLAttributes<BythiumDialog>, keyof ODialogOwnProps | 'children'> {
|
|
21
|
+
ref?: Ref<BythiumDialog>;
|
|
22
|
+
/** Default slot; a child with `slot="<name>"` fills a named slot. */
|
|
23
|
+
children?: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Dialogue modal natif avec son bouton déclencheur : showModal(), page inerte et figée, Échap ferme, focus rendu au déclencheur. Renders `<bythium-dialog>`. */
|
|
27
|
+
export declare function ODialog(props: ODialogProps): 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('../dialog.js');
|
|
6
|
+
|
|
7
|
+
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":{"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 { BythiumField, BythiumFieldEventMap } from '../field.js';
|
|
4
|
+
|
|
5
|
+
export interface OFieldOwnProps {
|
|
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 interface OFieldProps extends OFieldOwnProps, Omit<HTMLAttributes<BythiumField>, keyof OFieldOwnProps | 'children'> {
|
|
15
|
+
ref?: Ref<BythiumField>;
|
|
16
|
+
/** Default slot; a child with `slot="<name>"` fills a named slot. */
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** 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>`. */
|
|
21
|
+
export declare function OField(props: OFieldProps): 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('../field.js');
|
|
6
|
+
|
|
7
|
+
export const OField = wrapper('OField', {"tag":"bythium-field","attributes":{"label":["label","string"],"hint":["hint","string"],"error":["error","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 { BythiumForm, BythiumFormEventMap } from '../form.js';
|
|
4
|
+
|
|
5
|
+
export interface OFormOwnProps {
|
|
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
|
+
/** É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é. Event `bythium-invalid`. */
|
|
13
|
+
onBythiumInvalid?: (event: BythiumFormEventMap['bythium-invalid']) => void;
|
|
14
|
+
/** É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. Event `bythium-submit`. */
|
|
15
|
+
onBythiumSubmit?: (event: BythiumFormEventMap['bythium-submit']) => void;
|
|
16
|
+
/** Émis après le reset natif du formulaire (bouton reset ou reset()) ; le résumé est alors vidé. Event `bythium-reset`. */
|
|
17
|
+
onBythiumReset?: (event: BythiumFormEventMap['bythium-reset']) => void;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface OFormProps extends OFormOwnProps, Omit<HTMLAttributes<BythiumForm>, keyof OFormOwnProps | 'children'> {
|
|
21
|
+
ref?: Ref<BythiumForm>;
|
|
22
|
+
/** Default slot; a child with `slot="<name>"` fills a named slot. */
|
|
23
|
+
children?: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** 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>`. */
|
|
27
|
+
export declare function OForm(props: OFormProps): 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('../form.js');
|
|
6
|
+
|
|
7
|
+
export const OForm = wrapper('OForm', {"tag":"bythium-form","attributes":{"label":["label","string"],"headingLevel":["heading-level","number"],"locale":["locale","string"]},"events":{"onBythiumInvalid":"bythium-invalid","onBythiumSubmit":"bythium-submit","onBythiumReset":"bythium-reset"}});
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { BythiumHeading, BythiumHeadingEventMap } from '../heading.js';
|
|
4
|
+
|
|
5
|
+
export interface OHeadingOwnProps {
|
|
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 interface OHeadingProps extends OHeadingOwnProps, Omit<HTMLAttributes<BythiumHeading>, keyof OHeadingOwnProps | 'children'> {
|
|
13
|
+
ref?: Ref<BythiumHeading>;
|
|
14
|
+
/** Default slot; a child with `slot="<name>"` fills a named slot. */
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Titre de niveau 1 à 6 choisi par la page, interlettrage négatif et graisse 600 : hiérarchise sans couleur. Renders `<bythium-heading>`. */
|
|
19
|
+
export declare function OHeading(props: OHeadingProps): 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('../heading.js');
|
|
6
|
+
|
|
7
|
+
export const OHeading = wrapper('OHeading', {"tag":"bythium-heading","attributes":{"level":["level","number"],"size":["size","string"]},"events":{}});
|