@bythium/unisson 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -15
- package/dist/CHANGELOG.md +29 -1
- 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
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
|
|
2
|
+
import type { Component, Snippet } from 'svelte';
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
+
import type { BythiumSelect, BythiumSelectEventMap } from '../select.js';
|
|
5
|
+
|
|
6
|
+
export interface OSelectOwnProps {
|
|
7
|
+
/** 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`. */
|
|
8
|
+
value?: string;
|
|
9
|
+
/** Libellé visible, rendu à côté du contrôle dans le même arbre : il donne le nom accessible. Attribute `label`. */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Nom du champ dans le formulaire. Attribute `name`. */
|
|
12
|
+
name?: string;
|
|
13
|
+
/** Choix obligatoire : invalide tant que « Choisir… » est sélectionné ; l’erreur ne s’affiche qu’après une interaction. Attribute `required`. */
|
|
14
|
+
required?: boolean;
|
|
15
|
+
/** Refuse le choix ; la valeur n’est pas envoyée. Attribute `disabled`. */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** Aide affichée sous le champ quand le slot help est vide. Attribute `hint`. */
|
|
18
|
+
hint?: string;
|
|
19
|
+
/** 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`. */
|
|
20
|
+
items?: string;
|
|
21
|
+
/** 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`. */
|
|
22
|
+
disabledItems?: string;
|
|
23
|
+
/** 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`. */
|
|
24
|
+
disabledHint?: string;
|
|
25
|
+
/** Texte de la première option, celle qui vaut la chaîne vide ; vide, le texte intégré de la langue (« Choisir… »). Attribute `placeholder`. */
|
|
26
|
+
placeholder?: string;
|
|
27
|
+
/** 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`. */
|
|
28
|
+
locale?: string;
|
|
29
|
+
/** É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`. */
|
|
30
|
+
'onbythium-change'?: (event: BythiumSelectEventMap['bythium-change']) => void;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface OSelectProps extends OSelectOwnProps, Omit<HTMLAttributes<BythiumSelect>, keyof OSelectOwnProps | 'children'> {
|
|
34
|
+
/** Default slot; an element with `slot="<name>"` fills a named slot. */
|
|
35
|
+
children?: Snippet;
|
|
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
|
+
declare const OSelect: Component<OSelectProps>;
|
|
40
|
+
export default OSelect;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Generated from the contract of bythium-stack (packages/unisson/available.json). Do not edit. -->
|
|
2
|
+
<script module>
|
|
3
|
+
if (typeof customElements !== 'undefined') import('../stack.js');
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<script>
|
|
7
|
+
import { elementAttributes } from './attributes.js';
|
|
8
|
+
|
|
9
|
+
const spec = {"tag":"bythium-stack","attributes":{"direction":["direction","string"],"gap":["gap","number"],"align":["align","string"],"justify":["justify","string"],"wrap":["wrap","boolean"]},"events":{}};
|
|
10
|
+
// Every prop the parent passes, without Svelte's own keys ($$slots, $$scope, children).
|
|
11
|
+
$: attributes = elementAttributes(spec, Object.fromEntries(Object.entries($$props).filter(([key]) => !key.startsWith('$$') && key !== 'children')));
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<bythium-stack {...attributes}><slot /></bythium-stack>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
|
|
2
|
+
import type { Component, Snippet } from 'svelte';
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
+
import type { BythiumStack, BythiumStackEventMap } from '../stack.js';
|
|
5
|
+
|
|
6
|
+
export interface OStackOwnProps {
|
|
7
|
+
/** Axe de la pile : vertical (défaut) ou horizontal. Attribute `direction`. */
|
|
8
|
+
direction?: 'vertical' | 'horizontal';
|
|
9
|
+
/** 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`. */
|
|
10
|
+
gap?: number;
|
|
11
|
+
/** Alignement sur l’axe transversal. Attribute `align`. */
|
|
12
|
+
align?: 'stretch' | 'start' | 'center' | 'end' | 'baseline';
|
|
13
|
+
/** Répartition sur l’axe principal. Attribute `justify`. */
|
|
14
|
+
justify?: 'start' | 'center' | 'end' | 'between';
|
|
15
|
+
/** Autorise le retour à la ligne quand la place manque. Attribute `wrap`. */
|
|
16
|
+
wrap?: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface OStackProps extends OStackOwnProps, Omit<HTMLAttributes<BythiumStack>, keyof OStackOwnProps | 'children'> {
|
|
20
|
+
/** Default slot; an element with `slot="<name>"` fills a named slot. */
|
|
21
|
+
children?: Snippet;
|
|
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
|
+
declare const OStack: Component<OStackProps>;
|
|
26
|
+
export default OStack;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Generated from the contract of bythium-switch (packages/unisson/available.json). Do not edit. -->
|
|
2
|
+
<script module>
|
|
3
|
+
if (typeof customElements !== 'undefined') import('../switch.js');
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<script>
|
|
7
|
+
import { elementAttributes } from './attributes.js';
|
|
8
|
+
|
|
9
|
+
const spec = {"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":{}};
|
|
10
|
+
// Every prop the parent passes, without Svelte's own keys ($$slots, $$scope, children).
|
|
11
|
+
$: attributes = elementAttributes(spec, Object.fromEntries(Object.entries($$props).filter(([key]) => !key.startsWith('$$') && key !== 'children')));
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<bythium-switch {...attributes}><slot /></bythium-switch>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
|
|
2
|
+
import type { Component, Snippet } from 'svelte';
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
+
import type { BythiumSwitch, BythiumSwitchEventMap } from '../switch.js';
|
|
5
|
+
|
|
6
|
+
export interface OSwitchOwnProps {
|
|
7
|
+
/** Libellé visible, relié à la case dans le même arbre : il donne le nom accessible. Attribute `label`. */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Aide sous le libellé, qui décrit la case (aria-describedby). Vide : rien n’est affiché. Attribute `description`. */
|
|
10
|
+
description?: string;
|
|
11
|
+
/** État activé, réfléchi. Une écriture par la page n’émet aucun événement. Attribute `checked`. */
|
|
12
|
+
checked?: boolean;
|
|
13
|
+
/** Valeur envoyée avec le formulaire quand l’interrupteur est activé. Vide : rien n’est envoyé et required n’est pas satisfait. Attribute `value`. */
|
|
14
|
+
value?: string;
|
|
15
|
+
/** Nom du champ dans le formulaire. Attribute `name`. */
|
|
16
|
+
name?: string;
|
|
17
|
+
/** Doit être activé pour que le formulaire soit valide ; l’erreur s’affiche après une interaction ou une tentative d’envoi. Attribute `required`. */
|
|
18
|
+
required?: boolean;
|
|
19
|
+
/** Refuse la bascule ; rien n’est envoyé. Un fieldset désactivé a le même effet. Attribute `disabled`. */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** Libellé après la piste (end, défaut) ou avant (start). Toute autre valeur vaut end. Attribute `label-position`. */
|
|
22
|
+
labelPosition?: 'start' | 'end';
|
|
23
|
+
/** Piste de 24 × 14 (sm) ou 28 × 16 px (md) ; 36 × 20 px au pointeur grossier. Toute autre valeur vaut md. Attribute `size`. */
|
|
24
|
+
size?: 'sm' | 'md';
|
|
25
|
+
/** 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`. */
|
|
26
|
+
locale?: string;
|
|
27
|
+
/** É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`. */
|
|
28
|
+
'onbythium-change'?: (event: BythiumSwitchEventMap['bythium-change']) => void;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface OSwitchProps extends OSwitchOwnProps, Omit<HTMLAttributes<BythiumSwitch>, keyof OSwitchOwnProps | 'children'> {
|
|
32
|
+
/** Default slot; an element with `slot="<name>"` fills a named slot. */
|
|
33
|
+
children?: Snippet;
|
|
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
|
+
declare const OSwitch: Component<OSwitchProps>;
|
|
38
|
+
export default OSwitch;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Generated from the contract of bythium-tab (packages/unisson/available.json). Do not edit. -->
|
|
2
|
+
<script module>
|
|
3
|
+
if (typeof customElements !== 'undefined') import('../tab.js');
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<script>
|
|
7
|
+
import { elementAttributes } from './attributes.js';
|
|
8
|
+
|
|
9
|
+
const spec = {"tag":"bythium-tab","attributes":{"value":["value","string"],"disabled":["disabled","boolean"],"selected":["selected","boolean"],"locale":["locale","string"]},"events":{}};
|
|
10
|
+
// Every prop the parent passes, without Svelte's own keys ($$slots, $$scope, children).
|
|
11
|
+
$: attributes = elementAttributes(spec, Object.fromEntries(Object.entries($$props).filter(([key]) => !key.startsWith('$$') && key !== 'children')));
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<bythium-tab {...attributes}><slot /></bythium-tab>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
|
|
2
|
+
import type { Component, Snippet } from 'svelte';
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
+
import type { BythiumTab, BythiumTabEventMap } from '../tab.js';
|
|
5
|
+
|
|
6
|
+
export interface OTabOwnProps {
|
|
7
|
+
/** Identifiant de l’onglet ; le panneau de même value lui correspond. Attribute `value`. */
|
|
8
|
+
value?: string;
|
|
9
|
+
/** Onglet inactif : ignoré par le clavier et le clic, annoncé désactivé. Attribute `disabled`. */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Onglet choisi. Posé par bythium-tabs ; l’écrire à la main n’ouvre pas le panneau. Attribute `selected`. */
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
/** 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`. */
|
|
14
|
+
locale?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface OTabProps extends OTabOwnProps, Omit<HTMLAttributes<BythiumTab>, keyof OTabOwnProps | 'children'> {
|
|
18
|
+
/** Default slot; an element with `slot="<name>"` fills a named slot. */
|
|
19
|
+
children?: Snippet;
|
|
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
|
+
declare const OTab: Component<OTabProps>;
|
|
24
|
+
export default OTab;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Generated from the contract of bythium-tab-panel (packages/unisson/available.json). Do not edit. -->
|
|
2
|
+
<script module>
|
|
3
|
+
if (typeof customElements !== 'undefined') import('../tab-panel.js');
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<script>
|
|
7
|
+
import { elementAttributes } from './attributes.js';
|
|
8
|
+
|
|
9
|
+
const spec = {"tag":"bythium-tab-panel","attributes":{"value":["value","string"],"label":["label","string"],"hidden":["hidden","boolean"],"locale":["locale","string"]},"events":{}};
|
|
10
|
+
// Every prop the parent passes, without Svelte's own keys ($$slots, $$scope, children).
|
|
11
|
+
$: attributes = elementAttributes(spec, Object.fromEntries(Object.entries($$props).filter(([key]) => !key.startsWith('$$') && key !== 'children')));
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<bythium-tab-panel {...attributes}><slot /></bythium-tab-panel>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
|
|
2
|
+
import type { Component, Snippet } from 'svelte';
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
+
import type { BythiumTabPanel, BythiumTabPanelEventMap } from '../tab-panel.js';
|
|
5
|
+
|
|
6
|
+
export interface OTabPanelOwnProps {
|
|
7
|
+
/** Identifiant du panneau : celui de son onglet. Attribute `value`. */
|
|
8
|
+
value?: string;
|
|
9
|
+
/** 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`. */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Panneau masqué. Posé par bythium-tabs selon l’onglet choisi. Attribute `hidden`. */
|
|
12
|
+
hidden?: boolean;
|
|
13
|
+
/** 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`. */
|
|
14
|
+
locale?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface OTabPanelProps extends OTabPanelOwnProps, Omit<HTMLAttributes<BythiumTabPanel>, keyof OTabPanelOwnProps | 'children'> {
|
|
18
|
+
/** Default slot; an element with `slot="<name>"` fills a named slot. */
|
|
19
|
+
children?: Snippet;
|
|
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
|
+
declare const OTabPanel: Component<OTabPanelProps>;
|
|
24
|
+
export default OTabPanel;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Generated from the contract of bythium-tabs (packages/unisson/available.json). Do not edit. -->
|
|
2
|
+
<script module>
|
|
3
|
+
if (typeof customElements !== 'undefined') import('../tabs.js');
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<script>
|
|
7
|
+
import { elementAttributes } from './attributes.js';
|
|
8
|
+
|
|
9
|
+
const spec = {"tag":"bythium-tabs","attributes":{"label":["label","string"],"value":["value","string"],"activation":["activation","string"],"orientation":["orientation","string"],"locale":["locale","string"]},"events":{}};
|
|
10
|
+
// Every prop the parent passes, without Svelte's own keys ($$slots, $$scope, children).
|
|
11
|
+
$: attributes = elementAttributes(spec, Object.fromEntries(Object.entries($$props).filter(([key]) => !key.startsWith('$$') && key !== 'children')));
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<bythium-tabs {...attributes}><slot /><slot name="tabs" /></bythium-tabs>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
|
|
2
|
+
import type { Component, Snippet } from 'svelte';
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
+
import type { BythiumTabs, BythiumTabsEventMap } from '../tabs.js';
|
|
5
|
+
|
|
6
|
+
export interface OTabsOwnProps {
|
|
7
|
+
/** Nom accessible de la liste d’onglets. Valeur par défaut : « Onglets » (ou « Tabs » selon locale). Attribute `label`. */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Valeur de l’onglet choisi. Vide (défaut), inconnue ou désactivée : le premier onglet actif est choisi. Attribute `value`. */
|
|
10
|
+
value?: string;
|
|
11
|
+
/** automatic : la flèche choisit l’onglet ; manual : la flèche déplace le focus, Entrée ou Espace choisit. Attribute `activation`. */
|
|
12
|
+
activation?: 'automatic' | 'manual';
|
|
13
|
+
/** Axe de la liste ; les flèches suivent l’axe (et le sens de lecture en horizontal). Attribute `orientation`. */
|
|
14
|
+
orientation?: 'horizontal' | 'vertical';
|
|
15
|
+
/** 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`. */
|
|
16
|
+
locale?: string;
|
|
17
|
+
/** Émis quand l’utilisateur choisit un autre onglet. Une écriture de value par la page n’émet rien. Event `bythium-tab-change`. */
|
|
18
|
+
'onbythium-tab-change'?: (event: BythiumTabsEventMap['bythium-tab-change']) => void;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface OTabsProps extends OTabsOwnProps, Omit<HTMLAttributes<BythiumTabs>, keyof OTabsOwnProps | 'children'> {
|
|
22
|
+
/** Default slot; an element with `slot="<name>"` fills a named slot. */
|
|
23
|
+
children?: Snippet;
|
|
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
|
+
declare const OTabs: Component<OTabsProps>;
|
|
28
|
+
export default OTabs;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Generated from the contract of bythium-text (packages/unisson/available.json). Do not edit. -->
|
|
2
|
+
<script module>
|
|
3
|
+
if (typeof customElements !== 'undefined') import('../text.js');
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<script>
|
|
7
|
+
import { elementAttributes } from './attributes.js';
|
|
8
|
+
|
|
9
|
+
const spec = {"tag":"bythium-text","attributes":{"tone":["tone","string"],"size":["size","string"],"variant":["variant","string"],"kind":["kind","string"]},"events":{}};
|
|
10
|
+
// Every prop the parent passes, without Svelte's own keys ($$slots, $$scope, children).
|
|
11
|
+
$: attributes = elementAttributes(spec, Object.fromEntries(Object.entries($$props).filter(([key]) => !key.startsWith('$$') && key !== 'children')));
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<bythium-text {...attributes}><slot /></bythium-text>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
|
|
2
|
+
import type { Component, Snippet } from 'svelte';
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
+
import type { BythiumText, BythiumTextEventMap } from '../text.js';
|
|
5
|
+
|
|
6
|
+
export interface OTextOwnProps {
|
|
7
|
+
/** Ton du texte : default (couleur du texte de la page) ou muted (couleur atténuée). Une autre valeur garde le ton par défaut. Attribute `tone`. */
|
|
8
|
+
tone?: string;
|
|
9
|
+
/** Taille du texte : default (taille héritée, interligne 1,55) ; lead : introduction sous un titre, 18 px sur 1,6 ; small : mention discrète, 14 px sur 1,6 ; intro : introduction du premier écran d'une page d'accueil, 19 px sur 1,6. Attribute `size`. */
|
|
10
|
+
size?: 'default' | 'lead' | 'small' | 'intro';
|
|
11
|
+
/** default : texte courant ; stat : chiffre ou décompte en police à chasse fixe, 14 px sur 1,6, graisse 600 (les décomptes des cas d'usage) ; note : petite mention en police à chasse fixe, 12 px sur 1,6 (la note sous un filtre, la source d'un chiffre). La couleur reste celle de tone. Attribute `variant`. */
|
|
12
|
+
variant?: 'default' | 'stat' | 'note';
|
|
13
|
+
/** Sens du texte pour les lecteurs d’écran : paragraph (paragraphe du contenu) ou note (remarque à part du contenu principal : avertissement de parité, précision sur une donnée), annoncée comme note (role note). L’apparence reste celle de tone, size et variant. Attribute `kind`. */
|
|
14
|
+
kind?: 'paragraph' | 'note';
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface OTextProps extends OTextOwnProps, Omit<HTMLAttributes<BythiumText>, keyof OTextOwnProps | 'children'> {
|
|
18
|
+
/** Default slot; an element with `slot="<name>"` fills a named slot. */
|
|
19
|
+
children?: Snippet;
|
|
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
|
+
declare const OText: Component<OTextProps>;
|
|
24
|
+
export default OText;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Generated from the contract of bythium-textarea (packages/unisson/available.json). Do not edit. -->
|
|
2
|
+
<script module>
|
|
3
|
+
if (typeof customElements !== 'undefined') import('../textarea.js');
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<script>
|
|
7
|
+
import { elementAttributes } from './attributes.js';
|
|
8
|
+
|
|
9
|
+
const spec = {"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":{}};
|
|
10
|
+
// Every prop the parent passes, without Svelte's own keys ($$slots, $$scope, children).
|
|
11
|
+
$: attributes = elementAttributes(spec, Object.fromEntries(Object.entries($$props).filter(([key]) => !key.startsWith('$$') && key !== 'children')));
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<bythium-textarea {...attributes}><slot /><slot name="help" /><slot name="control" /></bythium-textarea>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
|
|
2
|
+
import type { Component, Snippet } from 'svelte';
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
+
import type { BythiumTextarea, BythiumTextareaEventMap } from '../textarea.js';
|
|
5
|
+
|
|
6
|
+
export interface OTextareaOwnProps {
|
|
7
|
+
/** Texte du champ, reflété à chaque saisie ; celui du premier raccordement revient au reset du formulaire. Attribute `value`. */
|
|
8
|
+
value?: string;
|
|
9
|
+
/** Libellé visible, rendu à côté du contrôle dans le même arbre : il donne le nom accessible. Attribute `label`. */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Nom du champ dans le formulaire. Attribute `name`. */
|
|
12
|
+
name?: string;
|
|
13
|
+
/** Champ obligatoire : invalide tant qu’il est vide ; l’erreur ne s’affiche qu’après une interaction. Attribute `required`. */
|
|
14
|
+
required?: boolean;
|
|
15
|
+
/** Refuse la saisie ; la valeur n’est pas envoyée. Attribute `disabled`. */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** Aide affichée sous le champ quand le slot help est vide. Attribute `hint`. */
|
|
18
|
+
hint?: string;
|
|
19
|
+
/** Nombre de lignes visibles (hauteur de départ). Attribute `rows`. */
|
|
20
|
+
rows?: number;
|
|
21
|
+
/** Nombre maximal de caractères, repris par le compteur. Attribute `maxlength`. */
|
|
22
|
+
maxlength?: number;
|
|
23
|
+
/** Hauteur qui suit le contenu après chaque rendu, 500 px au plus. Attribute `autosize`. */
|
|
24
|
+
autosize?: boolean;
|
|
25
|
+
/** Exemple de saisie ; il ne remplace jamais le libellé. Vide par défaut. Attribute `placeholder`. */
|
|
26
|
+
placeholder?: string;
|
|
27
|
+
/** Erreur fournie par l’application (par exemple après une validation serveur) : affichée tout de suite. Attribute `error`. */
|
|
28
|
+
error?: string;
|
|
29
|
+
/** Langue BCP 47 des textes de la balise (mention obligatoire, messages d’erreur) : anglais pour toute balise en, français sinon. Attribute `locale`. */
|
|
30
|
+
locale?: string;
|
|
31
|
+
/** Émis à chaque saisie de l’utilisateur, après la mise à jour de value. Event `bythium-input`. */
|
|
32
|
+
'onbythium-input'?: (event: BythiumTextareaEventMap['bythium-input']) => void;
|
|
33
|
+
/** Émis quand l’utilisateur valide le texte (sortie du champ après modification). Event `bythium-change`. */
|
|
34
|
+
'onbythium-change'?: (event: BythiumTextareaEventMap['bythium-change']) => void;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface OTextareaProps extends OTextareaOwnProps, Omit<HTMLAttributes<BythiumTextarea>, keyof OTextareaOwnProps | 'children'> {
|
|
38
|
+
/** Default slot; an element with `slot="<name>"` fills a named slot. */
|
|
39
|
+
children?: Snippet;
|
|
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
|
+
declare const OTextarea: Component<OTextareaProps>;
|
|
44
|
+
export default OTextarea;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Generated from the contract of bythium-toast (packages/unisson/available.json). Do not edit. -->
|
|
2
|
+
<script module>
|
|
3
|
+
if (typeof customElements !== 'undefined') import('../toast.js');
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<script>
|
|
7
|
+
import { elementAttributes } from './attributes.js';
|
|
8
|
+
|
|
9
|
+
const spec = {"tag":"bythium-toast","attributes":{"locale":["locale","string"],"open":["open","boolean"],"duration":["duration","number"],"silent":["silent","boolean"]},"events":{}};
|
|
10
|
+
// Every prop the parent passes, without Svelte's own keys ($$slots, $$scope, children).
|
|
11
|
+
$: attributes = elementAttributes(spec, Object.fromEntries(Object.entries($$props).filter(([key]) => !key.startsWith('$$') && key !== 'children')));
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<bythium-toast {...attributes}><slot /></bythium-toast>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
|
|
2
|
+
import type { Component, Snippet } from 'svelte';
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
+
import type { BythiumToast, BythiumToastEventMap } from '../toast.js';
|
|
5
|
+
|
|
6
|
+
export interface OToastOwnProps {
|
|
7
|
+
/** Langue du bouton de fermeture et du texte par défaut (BCP 47) : toute balise en vaut en, le reste vaut fr. Attribute `locale`. */
|
|
8
|
+
locale?: string;
|
|
9
|
+
/** Notification visible. Refermée par le bouton ou à l'expiration, l'attribut est retiré. Attribute `open`. */
|
|
10
|
+
open?: boolean;
|
|
11
|
+
/** 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`. */
|
|
12
|
+
duration?: number;
|
|
13
|
+
/** 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`. */
|
|
14
|
+
silent?: boolean;
|
|
15
|
+
/** Émis quand la notification se referme par son bouton ou à l'expiration (reason « fermeture »). Retirer open par programme n'émet rien. Event `bythium-close`. */
|
|
16
|
+
'onbythium-close'?: (event: BythiumToastEventMap['bythium-close']) => void;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface OToastProps extends OToastOwnProps, Omit<HTMLAttributes<BythiumToast>, keyof OToastOwnProps | 'children'> {
|
|
20
|
+
/** Default slot; an element with `slot="<name>"` fills a named slot. */
|
|
21
|
+
children?: Snippet;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Notification locale, annoncée par une région d'état et refermable ; expiration facultative, sans réseau. Renders `<bythium-toast>`. */
|
|
25
|
+
declare const OToast: Component<OToastProps>;
|
|
26
|
+
export default OToast;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Generated from the contract of bythium-toaster (packages/unisson/available.json). Do not edit. -->
|
|
2
|
+
<script module>
|
|
3
|
+
if (typeof customElements !== 'undefined') import('../toaster.js');
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<script>
|
|
7
|
+
import { elementAttributes } from './attributes.js';
|
|
8
|
+
|
|
9
|
+
const spec = {"tag":"bythium-toaster","attributes":{"label":["label","string"],"locale":["locale","string"],"silent":["silent","boolean"]},"events":{}};
|
|
10
|
+
// Every prop the parent passes, without Svelte's own keys ($$slots, $$scope, children).
|
|
11
|
+
$: attributes = elementAttributes(spec, Object.fromEntries(Object.entries($$props).filter(([key]) => !key.startsWith('$$') && key !== 'children')));
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<bythium-toaster {...attributes}><slot /></bythium-toaster>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Generated from the contracts of the available tags (packages/unisson/available.json). Do not edit.
|
|
2
|
+
import type { Component, Snippet } from 'svelte';
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
+
import type { BythiumToaster, BythiumToasterEventMap } from '../toaster.js';
|
|
5
|
+
|
|
6
|
+
export interface OToasterOwnProps {
|
|
7
|
+
/** Nom accessible de la région, lu par les lecteurs d’écran (aria-label). Attribute `label`. */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Langue des textes intégrés (BCP 47) : texte d’attente de la région vide. Toute balise en vaut en, le reste vaut fr. Un label écrit par la page l’emporte. Attribute `locale`. */
|
|
10
|
+
locale?: string;
|
|
11
|
+
/** Sans rôle log ni aria-live : chaque notification est annoncée par la page elle-même (région d'état silencieuse), la région ne fait qu'afficher. Attribute `silent`. */
|
|
12
|
+
silent?: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface OToasterProps extends OToasterOwnProps, Omit<HTMLAttributes<BythiumToaster>, keyof OToasterOwnProps | 'children'> {
|
|
16
|
+
/** Default slot; an element with `slot="<name>"` fills a named slot. */
|
|
17
|
+
children?: Snippet;
|
|
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
|
+
declare const OToaster: Component<OToasterProps>;
|
|
22
|
+
export default OToaster;
|
package/dist/svelte/index.d.ts
CHANGED
|
@@ -6,3 +6,23 @@ export { default as OButtonGroup, type OButtonGroupProps, type OButtonGroupOwnPr
|
|
|
6
6
|
export { default as OCopyButton, type OCopyButtonProps, type OCopyButtonOwnProps } from './OCopyButton.svelte';
|
|
7
7
|
export { default as OSplitButton, type OSplitButtonProps, type OSplitButtonOwnProps } from './OSplitButton.svelte';
|
|
8
8
|
export { default as OConfirmButton, type OConfirmButtonProps, type OConfirmButtonOwnProps } from './OConfirmButton.svelte';
|
|
9
|
+
export { default as OText, type OTextProps, type OTextOwnProps } from './OText.svelte';
|
|
10
|
+
export { default as OHeading, type OHeadingProps, type OHeadingOwnProps } from './OHeading.svelte';
|
|
11
|
+
export { default as OStack, type OStackProps, type OStackOwnProps } from './OStack.svelte';
|
|
12
|
+
export { default as OField, type OFieldProps, type OFieldOwnProps } from './OField.svelte';
|
|
13
|
+
export { default as OInput, type OInputProps, type OInputOwnProps } from './OInput.svelte';
|
|
14
|
+
export { default as OTextarea, type OTextareaProps, type OTextareaOwnProps } from './OTextarea.svelte';
|
|
15
|
+
export { default as OSelect, type OSelectProps, type OSelectOwnProps } from './OSelect.svelte';
|
|
16
|
+
export { default as OCheckbox, type OCheckboxProps, type OCheckboxOwnProps } from './OCheckbox.svelte';
|
|
17
|
+
export { default as ORadioGroup, type ORadioGroupProps, type ORadioGroupOwnProps } from './ORadioGroup.svelte';
|
|
18
|
+
export { default as OSwitch, type OSwitchProps, type OSwitchOwnProps } from './OSwitch.svelte';
|
|
19
|
+
export { default as OForm, type OFormProps, type OFormOwnProps } from './OForm.svelte';
|
|
20
|
+
export { default as OBadge, type OBadgeProps, type OBadgeOwnProps } from './OBadge.svelte';
|
|
21
|
+
export { default as OCard, type OCardProps, type OCardOwnProps } from './OCard.svelte';
|
|
22
|
+
export { default as OInlineAlert, type OInlineAlertProps, type OInlineAlertOwnProps } from './OInlineAlert.svelte';
|
|
23
|
+
export { default as OTabs, type OTabsProps, type OTabsOwnProps } from './OTabs.svelte';
|
|
24
|
+
export { default as OTab, type OTabProps, type OTabOwnProps } from './OTab.svelte';
|
|
25
|
+
export { default as OTabPanel, type OTabPanelProps, type OTabPanelOwnProps } from './OTabPanel.svelte';
|
|
26
|
+
export { default as OToast, type OToastProps, type OToastOwnProps } from './OToast.svelte';
|
|
27
|
+
export { default as OToaster, type OToasterProps, type OToasterOwnProps } from './OToaster.svelte';
|
|
28
|
+
export { default as ODialog, type ODialogProps, type ODialogOwnProps } from './ODialog.svelte';
|
package/dist/svelte/index.js
CHANGED
|
@@ -6,3 +6,23 @@ export { default as OButtonGroup } from './OButtonGroup.svelte';
|
|
|
6
6
|
export { default as OCopyButton } from './OCopyButton.svelte';
|
|
7
7
|
export { default as OSplitButton } from './OSplitButton.svelte';
|
|
8
8
|
export { default as OConfirmButton } from './OConfirmButton.svelte';
|
|
9
|
+
export { default as OText } from './OText.svelte';
|
|
10
|
+
export { default as OHeading } from './OHeading.svelte';
|
|
11
|
+
export { default as OStack } from './OStack.svelte';
|
|
12
|
+
export { default as OField } from './OField.svelte';
|
|
13
|
+
export { default as OInput } from './OInput.svelte';
|
|
14
|
+
export { default as OTextarea } from './OTextarea.svelte';
|
|
15
|
+
export { default as OSelect } from './OSelect.svelte';
|
|
16
|
+
export { default as OCheckbox } from './OCheckbox.svelte';
|
|
17
|
+
export { default as ORadioGroup } from './ORadioGroup.svelte';
|
|
18
|
+
export { default as OSwitch } from './OSwitch.svelte';
|
|
19
|
+
export { default as OForm } from './OForm.svelte';
|
|
20
|
+
export { default as OBadge } from './OBadge.svelte';
|
|
21
|
+
export { default as OCard } from './OCard.svelte';
|
|
22
|
+
export { default as OInlineAlert } from './OInlineAlert.svelte';
|
|
23
|
+
export { default as OTabs } from './OTabs.svelte';
|
|
24
|
+
export { default as OTab } from './OTab.svelte';
|
|
25
|
+
export { default as OTabPanel } from './OTabPanel.svelte';
|
|
26
|
+
export { default as OToast } from './OToast.svelte';
|
|
27
|
+
export { default as OToaster } from './OToaster.svelte';
|
|
28
|
+
export { default as ODialog } from './ODialog.svelte';
|
package/dist/switch.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Generated from the contract of bythium-switch. Do not edit.
|
|
2
|
+
export interface BythiumSwitchEventMap extends HTMLElementEventMap {
|
|
3
|
+
/** Émis après une bascule par l’utilisateur (clic, Espace, Entrée). Une écriture de checked par la page n’émet rien. */
|
|
4
|
+
'bythium-change': CustomEvent<{ checked: boolean; value: string }>;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/** Interrupteur libellé associé aux formulaires : case native role=switch, description, libellé avant ou après la piste, deux tailles, bascule animée. */
|
|
8
|
+
export declare class BythiumSwitch extends HTMLElement {
|
|
9
|
+
/** Libellé visible, relié à la case dans le même arbre : il donne le nom accessible. Attribute `label`. */
|
|
10
|
+
label: string;
|
|
11
|
+
/** Aide sous le libellé, qui décrit la case (aria-describedby). Vide : rien n’est affiché. Attribute `description`. */
|
|
12
|
+
description: string;
|
|
13
|
+
/** État activé, réfléchi. Une écriture par la page n’émet aucun événement. Attribute `checked`. */
|
|
14
|
+
checked: boolean;
|
|
15
|
+
/** Valeur envoyée avec le formulaire quand l’interrupteur est activé. Vide : rien n’est envoyé et required n’est pas satisfait. Attribute `value`. */
|
|
16
|
+
value: string;
|
|
17
|
+
/** Nom du champ dans le formulaire. Attribute `name`. */
|
|
18
|
+
name: string;
|
|
19
|
+
/** Doit être activé pour que le formulaire soit valide ; l’erreur s’affiche après une interaction ou une tentative d’envoi. Attribute `required`. */
|
|
20
|
+
required: boolean;
|
|
21
|
+
/** Refuse la bascule ; rien n’est envoyé. Un fieldset désactivé a le même effet. Attribute `disabled`. */
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
/** Libellé après la piste (end, défaut) ou avant (start). Toute autre valeur vaut end. Attribute `label-position`. */
|
|
24
|
+
labelPosition: 'start' | 'end';
|
|
25
|
+
/** Piste de 24 × 14 (sm) ou 28 × 16 px (md) ; 36 × 20 px au pointeur grossier. Toute autre valeur vaut md. Attribute `size`. */
|
|
26
|
+
size: 'sm' | 'md';
|
|
27
|
+
/** 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`. */
|
|
28
|
+
locale: string;
|
|
29
|
+
addEventListener<K extends keyof BythiumSwitchEventMap>(type: K, listener: (this: BythiumSwitch, event: BythiumSwitchEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
30
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
31
|
+
removeEventListener<K extends keyof BythiumSwitchEventMap>(type: K, listener: (this: BythiumSwitch, event: BythiumSwitchEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
32
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare global {
|
|
36
|
+
interface HTMLElementTagNameMap {
|
|
37
|
+
'bythium-switch': BythiumSwitch;
|
|
38
|
+
}
|
|
39
|
+
}
|
package/dist/switch.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunks/chunk-HBQNWILJ.js";import"./chunks/chunk-5UXAUVTG.js";import"./chunks/chunk-D52FUFUP.js";import"./chunks/chunk-5VNPX7DT.js";import"./chunks/chunk-W3ASGVKH.js";export{a as BythiumSwitch};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Generated from the contract of bythium-tab-panel. Do not edit.
|
|
2
|
+
export interface BythiumTabPanelEventMap extends HTMLElementEventMap {
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/** Panneau d’une bythium-tabs : rôle tabpanel, focalisable, affiché seulement quand l’onglet de même value est choisi. */
|
|
6
|
+
export declare class BythiumTabPanel extends HTMLElement {
|
|
7
|
+
/** Identifiant du panneau : celui de son onglet. Attribute `value`. */
|
|
8
|
+
value: string;
|
|
9
|
+
/** 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`. */
|
|
10
|
+
label: string;
|
|
11
|
+
/** Panneau masqué. Posé par bythium-tabs selon l’onglet choisi. Attribute `hidden`. */
|
|
12
|
+
hidden: boolean;
|
|
13
|
+
/** 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`. */
|
|
14
|
+
locale: string;
|
|
15
|
+
addEventListener<K extends keyof BythiumTabPanelEventMap>(type: K, listener: (this: BythiumTabPanel, event: BythiumTabPanelEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
16
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
17
|
+
removeEventListener<K extends keyof BythiumTabPanelEventMap>(type: K, listener: (this: BythiumTabPanel, event: BythiumTabPanelEventMap[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-tab-panel': BythiumTabPanel;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunks/chunk-J5K4GGOS.js";import"./chunks/chunk-D52FUFUP.js";import"./chunks/chunk-W3ASGVKH.js";export{a as BythiumTabPanel};
|
package/dist/tab.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Generated from the contract of bythium-tab. Do not edit.
|
|
2
|
+
export interface BythiumTabEventMap extends HTMLElementEventMap {
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/** Onglet d’une bythium-tabs : texte atténué, souligné quand il est choisi ; porte le rôle tab et le focus itinérant. */
|
|
6
|
+
export declare class BythiumTab extends HTMLElement {
|
|
7
|
+
/** Identifiant de l’onglet ; le panneau de même value lui correspond. Attribute `value`. */
|
|
8
|
+
value: string;
|
|
9
|
+
/** Onglet inactif : ignoré par le clavier et le clic, annoncé désactivé. Attribute `disabled`. */
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
/** Onglet choisi. Posé par bythium-tabs ; l’écrire à la main n’ouvre pas le panneau. Attribute `selected`. */
|
|
12
|
+
selected: boolean;
|
|
13
|
+
/** 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`. */
|
|
14
|
+
locale: string;
|
|
15
|
+
addEventListener<K extends keyof BythiumTabEventMap>(type: K, listener: (this: BythiumTab, event: BythiumTabEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
16
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
17
|
+
removeEventListener<K extends keyof BythiumTabEventMap>(type: K, listener: (this: BythiumTab, event: BythiumTabEventMap[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-tab': BythiumTab;
|
|
24
|
+
}
|
|
25
|
+
}
|
package/dist/tab.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunks/chunk-SEAWGQLP.js";import"./chunks/chunk-D52FUFUP.js";import"./chunks/chunk-W3ASGVKH.js";export{a as BythiumTab};
|