@bythium/unisson 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/NOTICE +28 -0
- package/README.md +145 -2
- package/dist/CHANGELOG.md +17 -0
- package/dist/button-group.d.ts +29 -0
- package/dist/button-group.js +1 -0
- package/dist/button.d.ts +37 -0
- package/dist/button.js +1 -0
- package/dist/chunks/chunk-4GXKKP4T.js +460 -0
- package/dist/chunks/chunk-5TUKFRTD.js +376 -0
- package/dist/chunks/chunk-5VNPX7DT.js +1 -0
- package/dist/chunks/chunk-6TMCYM5S.js +436 -0
- package/dist/chunks/chunk-BAYUYXVR.js +1 -0
- package/dist/chunks/chunk-FGJHPGJI.js +1 -0
- package/dist/chunks/chunk-JOXL2SMV.js +373 -0
- package/dist/chunks/chunk-MWNIQCR3.js +298 -0
- package/dist/chunks/chunk-MYB6FQX2.js +394 -0
- package/dist/chunks/chunk-W3ASGVKH.js +1 -0
- package/dist/chunks/chunk-WKXQ2JMZ.js +557 -0
- package/dist/confirm-button.d.ts +37 -0
- package/dist/confirm-button.js +1 -0
- package/dist/copy-button.d.ts +25 -0
- package/dist/copy-button.js +1 -0
- package/dist/custom-elements.json +1480 -0
- package/dist/define.d.ts +8 -0
- package/dist/define.js +1 -0
- package/dist/icon-button.d.ts +33 -0
- package/dist/icon-button.js +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1 -0
- package/dist/react/attributes.d.ts +10 -0
- package/dist/react/attributes.js +25 -0
- package/dist/react/button-group.d.ts +27 -0
- package/dist/react/button-group.js +7 -0
- package/dist/react/button.d.ts +35 -0
- package/dist/react/button.js +7 -0
- package/dist/react/confirm-button.d.ts +35 -0
- package/dist/react/confirm-button.js +7 -0
- package/dist/react/copy-button.d.ts +23 -0
- package/dist/react/copy-button.js +7 -0
- package/dist/react/icon-button.d.ts +31 -0
- package/dist/react/icon-button.js +7 -0
- package/dist/react/index.d.ts +8 -0
- package/dist/react/index.js +9 -0
- package/dist/react/runtime.js +11 -0
- package/dist/react/split-button.d.ts +31 -0
- package/dist/react/split-button.js +7 -0
- package/dist/react/toggle-button.d.ts +27 -0
- package/dist/react/toggle-button.js +7 -0
- package/dist/split-button.d.ts +33 -0
- package/dist/split-button.js +1 -0
- package/dist/svelte/OButton.svelte +14 -0
- package/dist/svelte/OButton.svelte.d.ts +36 -0
- package/dist/svelte/OButtonGroup.svelte +14 -0
- package/dist/svelte/OButtonGroup.svelte.d.ts +28 -0
- package/dist/svelte/OConfirmButton.svelte +14 -0
- package/dist/svelte/OConfirmButton.svelte.d.ts +36 -0
- package/dist/svelte/OCopyButton.svelte +14 -0
- package/dist/svelte/OCopyButton.svelte.d.ts +24 -0
- package/dist/svelte/OIconButton.svelte +14 -0
- package/dist/svelte/OIconButton.svelte.d.ts +32 -0
- package/dist/svelte/OSplitButton.svelte +14 -0
- package/dist/svelte/OSplitButton.svelte.d.ts +32 -0
- package/dist/svelte/OToggleButton.svelte +14 -0
- package/dist/svelte/OToggleButton.svelte.d.ts +28 -0
- package/dist/svelte/attributes.d.ts +10 -0
- package/dist/svelte/attributes.js +25 -0
- package/dist/svelte/index.d.ts +8 -0
- package/dist/svelte/index.js +8 -0
- package/dist/toggle-button.d.ts +29 -0
- package/dist/toggle-button.js +1 -0
- package/dist/tokens.css +200 -0
- package/dist/vue/attributes.d.ts +10 -0
- package/dist/vue/attributes.js +25 -0
- package/dist/vue/button-group.d.ts +27 -0
- package/dist/vue/button-group.js +6 -0
- package/dist/vue/button.d.ts +35 -0
- package/dist/vue/button.js +6 -0
- package/dist/vue/confirm-button.d.ts +35 -0
- package/dist/vue/confirm-button.js +6 -0
- package/dist/vue/copy-button.d.ts +23 -0
- package/dist/vue/copy-button.js +6 -0
- package/dist/vue/icon-button.d.ts +31 -0
- package/dist/vue/icon-button.js +6 -0
- package/dist/vue/index.d.ts +8 -0
- package/dist/vue/index.js +8 -0
- package/dist/vue/runtime.js +31 -0
- package/dist/vue/split-button.d.ts +31 -0
- package/dist/vue/split-button.js +6 -0
- package/dist/vue/toggle-button.d.ts +27 -0
- package/dist/vue/toggle-button.js +6 -0
- package/package.json +199 -4
|
@@ -0,0 +1,557 @@
|
|
|
1
|
+
import{a as g,b as f,c as y}from"./chunk-FGJHPGJI.js";import{a as i}from"./chunk-BAYUYXVR.js";import{a as x}from"./chunk-5VNPX7DT.js";import{a,c as p,d as h,e as v}from"./chunk-W3ASGVKH.js";var o={error:"",invalid:!1,formDisabled:!1};var F={fr:{valueMissing:"Ce champ est obligatoire.",typeMismatch:"Le format n\u2019est pas valide.",patternMismatch:"La valeur ne respecte pas le motif attendu.",badInput:"Saisissez une valeur valide.",tooShortOne:"Saisissez au moins {n} caract\xE8re.",tooShortMany:"Saisissez au moins {n} caract\xE8res.",tooLongOne:"Saisissez au plus {n} caract\xE8re.",tooLongMany:"Saisissez au plus {n} caract\xE8res.",rangeUnderflow:"La valeur doit \xEAtre sup\xE9rieure ou \xE9gale \xE0 {min}.",rangeOverflow:"La valeur doit \xEAtre inf\xE9rieure ou \xE9gale \xE0 {max}.",stepMismatch:"La valeur doit respecter un pas de {step}.",stepMismatchFrom:"La valeur doit respecter un pas de {step} \xE0 partir de {base}."},en:{valueMissing:"This field is required.",typeMismatch:"The format is not valid.",patternMismatch:"The value does not match the expected pattern.",badInput:"Enter a valid value.",tooShortOne:"Enter at least {n} character.",tooShortMany:"Enter at least {n} characters.",tooLongOne:"Enter at most {n} character.",tooLongMany:"Enter at most {n} characters.",rangeUnderflow:"The value must be greater than or equal to {min}.",rangeOverflow:"The value must be less than or equal to {max}.",stepMismatch:"The value must follow a step of {step}.",stepMismatchFrom:"The value must follow a step of {step} from {base}."}};var s=class extends h{static formAssociated=!0;internals;#t=!1;#r=!1;#a=!1;#n={error:"",invalid:!1};#e;constructor(){super(),this.internals=this.attachInternals()}#o(){let t=this.signal;this.root.addEventListener("input",()=>{this.#r=!0},{signal:t}),this.root.addEventListener("change",()=>this.markTouched(),{signal:t}),this.root.addEventListener("focusout",e=>{let r=e.relatedTarget;this.#r&&!(r instanceof Node&&(this.root.contains(r)||r===this.nativeControl))&&this.markTouched()},{signal:t}),this.addEventListener("invalid",()=>{this.#a||this.markTouched()},{signal:t,capture:!0})}connectedCallback(){this.#e===void 0&&(this.#e=this.getAttribute("value")),super.connectedCallback(),this.#o()}get nativeControl(){return null}get formState(){return{...this.#n,formDisabled:this.#t}}get inactive(){return this.hasAttribute("disabled")||this.#t}get touched(){return this.hasAttribute("data-touched")}get errorVisible(){return this.touched}markTouched(){this.touched||(this.setAttribute("data-touched",""),this.requestUpdate())}clearTouched(){this.#r=!1,this.touched&&(this.removeAttribute("data-touched"),this.requestUpdate())}formValue(){return this.inactive?null:this.getAttribute("value")??""}validate(){return{flags:{},message:""}}formSaveState(){}formRestoreState(t,e){typeof t=="string"&&this.setAttribute("value",t)}#i(){let{locale:t}=this;return i(F,typeof t=="string"?t:void 0).badInput}updated(){let t=this.nativeControl,{flags:e,message:r,anchor:S}=this.validate(),u=Object.values(e).some(Boolean);if(t)this.internals.setFormValue(null),this.internals.setValidity({});else{let b=this.formValue(),m=this.formSaveState();m===void 0?this.internals.setFormValue(b):this.internals.setFormValue(b,m),u?this.internals.setValidity(e,r||this.#i(),S):this.internals.setValidity({})}let c=this.errorVisible&&(t?u:!this.internals.validity.valid),l={error:c?t?r||this.#i():this.internals.validationMessage:"",invalid:c};(l.error!==this.#n.error||l.invalid!==this.#n.invalid)&&(this.#n=l,this.requestUpdate())}get form(){return this.internals.form}get validity(){return this.nativeControl?.validity??this.internals.validity}get validationMessage(){let t=this.nativeControl;return t?t.validity.valid?"":this.validate().message||t.validationMessage:this.internals.validationMessage}get willValidate(){return this.nativeControl?.willValidate??this.internals.willValidate}checkValidity(){this.#a=!0;try{return(this.nativeControl??this.internals).checkValidity()}finally{this.#a=!1}}reportValidity(){return this.markTouched(),(this.nativeControl??this.internals).reportValidity()}focus(t){let e=this.nativeControl;e?e.focus(t):super.focus(t)}formResetCallback(){this.clearTouched(),this.#e==null?this.removeAttribute("value"):this.setAttribute("value",this.#e)}formDisabledCallback(t){this.#t=t,this.update()}formStateRestoreCallback(t,e="restore"){this.formRestoreState(t,e)}};var k={label:{type:"string",default:"Ex\xE9cuter une action"},variant:{type:"string",default:"primary",enum:["primary","secondary","ghost","danger","icon"]},size:{type:"string",default:"md",enum:["sm","md","lg"]},loading:{type:"boolean",default:!1},disabled:{type:"boolean",default:!1},"disabled-focusable":{type:"boolean",default:!1},type:{type:"string",default:"button",enum:["button","submit","reset"]},locale:{type:"string",default:"fr-CA"},hint:{type:"string",default:""}},z=`/* Styles de base de toute tranche : repris de src/shared/base.styles.css d'Orchestre, aux r\xE8gles de la convention
|
|
2
|
+
(jetons --bythium-*, propri\xE9t\xE9s logiques, pas de !important, mouvement sous no-preference).
|
|
3
|
+
tools/wc.generate.ts les place devant la feuille de chaque tranche : m\xEAme cascade que l'ancien d\xE9p\xF4t. */
|
|
4
|
+
:host {
|
|
5
|
+
display: inline-block;
|
|
6
|
+
min-inline-size: 0;
|
|
7
|
+
max-inline-size: 100%;
|
|
8
|
+
color: var(--bythium-text-primary);
|
|
9
|
+
font-family: var(--font-sans);
|
|
10
|
+
font-size: var(--font-size-base);
|
|
11
|
+
line-height: var(--line-height-base);
|
|
12
|
+
font-feature-settings: var(--font-features, normal);
|
|
13
|
+
letter-spacing: -0.006em;
|
|
14
|
+
vertical-align: middle;
|
|
15
|
+
}
|
|
16
|
+
:host([hidden]) {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
/* D\xE9sactiv\xE9 : couleurs att\xE9nu\xE9es qui gardent 4,5:1 (texte) et 3:1 (contour), jamais d'opacit\xE9 sur l'h\xF4te, qui ferait
|
|
20
|
+
\xE9chouer le contraste du libell\xE9 et des textes voisins (axe, WC-R04). Une tranche peut pr\xE9ciser sa propre r\xE8gle. */
|
|
21
|
+
:host([disabled]) {
|
|
22
|
+
color: var(--bythium-text-muted);
|
|
23
|
+
}
|
|
24
|
+
*,
|
|
25
|
+
*::before,
|
|
26
|
+
*::after {
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
}
|
|
29
|
+
button,
|
|
30
|
+
input,
|
|
31
|
+
a,
|
|
32
|
+
select,
|
|
33
|
+
textarea {
|
|
34
|
+
font: inherit;
|
|
35
|
+
color: inherit;
|
|
36
|
+
}
|
|
37
|
+
button,
|
|
38
|
+
a,
|
|
39
|
+
input {
|
|
40
|
+
touch-action: manipulation;
|
|
41
|
+
}
|
|
42
|
+
button {
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
}
|
|
45
|
+
button:disabled,
|
|
46
|
+
input:disabled {
|
|
47
|
+
cursor: not-allowed;
|
|
48
|
+
}
|
|
49
|
+
button:disabled,
|
|
50
|
+
.control:disabled {
|
|
51
|
+
color: var(--bythium-text-muted);
|
|
52
|
+
}
|
|
53
|
+
/* Profil Linear : un bouton se lit par son fond et son libell\xE9, sa bordure reste d\xE9corative ; un champ garde un contour \xE0 3:1. */
|
|
54
|
+
button {
|
|
55
|
+
min-block-size: var(--control-height);
|
|
56
|
+
padding: 4px 10px;
|
|
57
|
+
border: 1px solid var(--bythium-border-subtle);
|
|
58
|
+
border-radius: var(--radius-control);
|
|
59
|
+
background-color: var(--bythium-surface-raised);
|
|
60
|
+
color: var(--bythium-text-primary);
|
|
61
|
+
font-size: var(--font-size-caption);
|
|
62
|
+
font-weight: var(--font-weight-medium);
|
|
63
|
+
}
|
|
64
|
+
.control {
|
|
65
|
+
min-block-size: var(--control-height);
|
|
66
|
+
padding: 4px 9px;
|
|
67
|
+
border: 1px solid var(--bythium-border-strong);
|
|
68
|
+
border-radius: var(--radius-control);
|
|
69
|
+
background-color: var(--bythium-surface-base);
|
|
70
|
+
color: var(--bythium-text-primary);
|
|
71
|
+
font-size: var(--font-size-base);
|
|
72
|
+
}
|
|
73
|
+
.control:hover:not(:disabled):not(:focus-visible) {
|
|
74
|
+
border-color: var(--bythium-text-muted);
|
|
75
|
+
}
|
|
76
|
+
button:hover:not(:disabled) {
|
|
77
|
+
background: color-mix(in oklch, var(--bythium-text-primary) 8%, var(--bythium-surface-raised));
|
|
78
|
+
}
|
|
79
|
+
button:active:not(:disabled) {
|
|
80
|
+
background: color-mix(in oklch, var(--bythium-text-primary) 12%, var(--bythium-surface-raised));
|
|
81
|
+
}
|
|
82
|
+
a {
|
|
83
|
+
display: inline-flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
gap: var(--space-2);
|
|
86
|
+
min-block-size: var(--target-touch-min);
|
|
87
|
+
color: var(--bythium-link);
|
|
88
|
+
text-decoration: underline;
|
|
89
|
+
text-underline-offset: 3px;
|
|
90
|
+
}
|
|
91
|
+
:where(button, input, a, select, textarea, [tabindex]):focus-visible {
|
|
92
|
+
outline: var(--focus-ring-width) solid var(--bythium-border-focus);
|
|
93
|
+
outline-offset: 1px;
|
|
94
|
+
}
|
|
95
|
+
input {
|
|
96
|
+
min-inline-size: 0;
|
|
97
|
+
max-inline-size: 100%;
|
|
98
|
+
accent-color: var(--bythium-brand-primary);
|
|
99
|
+
}
|
|
100
|
+
::placeholder {
|
|
101
|
+
color: var(--bythium-text-muted);
|
|
102
|
+
opacity: 1;
|
|
103
|
+
}
|
|
104
|
+
input[type='range'] {
|
|
105
|
+
min-block-size: var(--target-touch-min);
|
|
106
|
+
}
|
|
107
|
+
input[type='checkbox'],
|
|
108
|
+
input[type='radio'] {
|
|
109
|
+
inline-size: 16px;
|
|
110
|
+
block-size: 16px;
|
|
111
|
+
margin: 0;
|
|
112
|
+
}
|
|
113
|
+
label {
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
gap: var(--space-2);
|
|
117
|
+
font-size: var(--font-size-caption);
|
|
118
|
+
}
|
|
119
|
+
.field {
|
|
120
|
+
display: grid;
|
|
121
|
+
gap: var(--space-1-5);
|
|
122
|
+
}
|
|
123
|
+
.row {
|
|
124
|
+
display: flex;
|
|
125
|
+
flex-wrap: wrap;
|
|
126
|
+
align-items: center;
|
|
127
|
+
gap: var(--space-2);
|
|
128
|
+
}
|
|
129
|
+
.sr-only {
|
|
130
|
+
position: absolute;
|
|
131
|
+
inline-size: 1px;
|
|
132
|
+
block-size: 1px;
|
|
133
|
+
padding: 0;
|
|
134
|
+
margin: -1px;
|
|
135
|
+
overflow: hidden;
|
|
136
|
+
clip-path: inset(50%);
|
|
137
|
+
white-space: nowrap;
|
|
138
|
+
border: 0;
|
|
139
|
+
}
|
|
140
|
+
/* A field inside a table whose column headers name its controls (bythium-slot-table labels="hidden") keeps its label
|
|
141
|
+
for assistive technologies only: the custom property inherits across the shadow boundaries down to the field. */
|
|
142
|
+
@container style(--bythium-field-labels: hidden) {
|
|
143
|
+
label[part=label][for],
|
|
144
|
+
legend[part=label] {
|
|
145
|
+
position: absolute;
|
|
146
|
+
inline-size: 1px;
|
|
147
|
+
block-size: 1px;
|
|
148
|
+
padding: 0;
|
|
149
|
+
margin: -1px;
|
|
150
|
+
overflow: hidden;
|
|
151
|
+
clip-path: inset(50%);
|
|
152
|
+
white-space: nowrap;
|
|
153
|
+
border: 0;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
.muted {
|
|
157
|
+
color: var(--bythium-text-muted);
|
|
158
|
+
}
|
|
159
|
+
.error {
|
|
160
|
+
color: var(--bythium-status-danger);
|
|
161
|
+
font-size: var(--font-size-base);
|
|
162
|
+
}
|
|
163
|
+
.primary {
|
|
164
|
+
border-color: var(--bythium-brand-primary);
|
|
165
|
+
background: var(--bythium-brand-primary);
|
|
166
|
+
color: var(--bythium-on-brand-primary);
|
|
167
|
+
box-shadow: inset 0 1px 0 0 color-mix(in oklch, var(--bythium-on-brand-primary) 16%, transparent);
|
|
168
|
+
}
|
|
169
|
+
.primary:hover:not(:disabled) {
|
|
170
|
+
background: var(--bythium-brand-primary-hover);
|
|
171
|
+
color: var(--bythium-on-brand-primary);
|
|
172
|
+
}
|
|
173
|
+
[aria-current],
|
|
174
|
+
[aria-selected='true'],
|
|
175
|
+
[aria-pressed='true'] {
|
|
176
|
+
border-color: var(--bythium-border-subtle);
|
|
177
|
+
background: var(--bythium-state-selected, var(--bythium-surface-raised));
|
|
178
|
+
}
|
|
179
|
+
slot {
|
|
180
|
+
max-inline-size: 100%;
|
|
181
|
+
}
|
|
182
|
+
/* Cible tactile de 44 px sans changer la taille visuelle (WC-R05, WC-D03) : classe \xAB target \xBB sur le contr\xF4le.
|
|
183
|
+
Le pseudo-\xE9l\xE9ment d\xE9borde du contr\xF4le de fa\xE7on sym\xE9trique, donc identique en ltr et en rtl. */
|
|
184
|
+
.target {
|
|
185
|
+
position: relative;
|
|
186
|
+
isolation: isolate;
|
|
187
|
+
}
|
|
188
|
+
/* Sous le contenu du contr\xF4le (z-index -1 dans son propre contexte d'empilement) : il ne masque jamais un enfant. */
|
|
189
|
+
.target::after {
|
|
190
|
+
content: '';
|
|
191
|
+
position: absolute;
|
|
192
|
+
z-index: -1;
|
|
193
|
+
inset-block: min(0px, calc((100% - var(--target-touch-min)) / 2));
|
|
194
|
+
inset-inline: min(0px, calc((100% - var(--target-touch-min)) / 2));
|
|
195
|
+
}
|
|
196
|
+
/* Rang\xE9es denses (H-05, WCAG 2.2 AA 2.5.8) : quand des zones de 44 px se chevaucheraient (points de pagination,
|
|
197
|
+
\xE9toiles, \xD7 d'\xE9tiquettes, lignes de cases, onglets serr\xE9s), la classe \xAB target-dense \xBB donne une zone d'au moins
|
|
198
|
+
24 px ; au pointeur grossier, elle revient \xE0 44 px (WC-D03). \xC0 poser \xE0 la place de \xAB target \xBB, sur le contr\xF4le. */
|
|
199
|
+
.target-dense {
|
|
200
|
+
position: relative;
|
|
201
|
+
isolation: isolate;
|
|
202
|
+
}
|
|
203
|
+
.target-dense::after {
|
|
204
|
+
content: '';
|
|
205
|
+
position: absolute;
|
|
206
|
+
z-index: -1;
|
|
207
|
+
inset-block: min(0px, calc((100% - 24px) / 2));
|
|
208
|
+
inset-inline: min(0px, calc((100% - 24px) / 2));
|
|
209
|
+
}
|
|
210
|
+
@media (pointer: coarse) {
|
|
211
|
+
.target-dense::after {
|
|
212
|
+
inset-block: min(0px, calc((100% - var(--target-touch-min)) / 2));
|
|
213
|
+
inset-inline: min(0px, calc((100% - var(--target-touch-min)) / 2));
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
/* Transition pos\xE9e \xE0 l'arriv\xE9e du survol seulement : une bascule de th\xE8me ne s'anime pas, l'audit de contraste mesure l'\xE9tat final. */
|
|
217
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
218
|
+
button:hover:not(:disabled),
|
|
219
|
+
.control:hover:not(:disabled) {
|
|
220
|
+
transition:
|
|
221
|
+
background-color var(--duration-fast) var(--ease-standard),
|
|
222
|
+
border-color var(--duration-fast) var(--ease-standard);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
@media (prefers-contrast: more) {
|
|
226
|
+
button,
|
|
227
|
+
.control {
|
|
228
|
+
border-color: currentColor;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
@media (forced-colors: active) {
|
|
232
|
+
button,
|
|
233
|
+
input,
|
|
234
|
+
a {
|
|
235
|
+
border: 1px solid ButtonText;
|
|
236
|
+
}
|
|
237
|
+
:focus-visible {
|
|
238
|
+
outline-color: Highlight;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
/* Densit\xE9 confortable sur les appareils tactiles ; focus explicite, jamais supprim\xE9. */
|
|
242
|
+
@media (pointer: coarse) {
|
|
243
|
+
button,
|
|
244
|
+
.control,
|
|
245
|
+
select {
|
|
246
|
+
min-block-size: var(--target-touch-min);
|
|
247
|
+
}
|
|
248
|
+
input[type='checkbox'],
|
|
249
|
+
input[type='radio'] {
|
|
250
|
+
inline-size: 20px;
|
|
251
|
+
block-size: 20px;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
/* Hint of a button-like control (core/hint.ts): a compact tooltip in the top layer, centred under the control and
|
|
255
|
+
flipped above it when the window is short of room, so a toolbar or a scrolling list never clips it. */
|
|
256
|
+
[part=base] {
|
|
257
|
+
anchor-name: --bythium-hint;
|
|
258
|
+
}
|
|
259
|
+
[part=hint] {
|
|
260
|
+
position: fixed;
|
|
261
|
+
inset: auto;
|
|
262
|
+
margin: 0;
|
|
263
|
+
inline-size: max-content;
|
|
264
|
+
max-inline-size: min(280px, 80vw);
|
|
265
|
+
padding-block: 4px;
|
|
266
|
+
padding-inline: 8px;
|
|
267
|
+
overflow: visible;
|
|
268
|
+
border: 1px solid var(--bythium-border-subtle);
|
|
269
|
+
border-radius: var(--radius-control);
|
|
270
|
+
background: var(--bythium-surface-overlay);
|
|
271
|
+
color: var(--bythium-text-primary);
|
|
272
|
+
box-shadow: var(--shadow-overlay);
|
|
273
|
+
font-size: 12px;
|
|
274
|
+
font-weight: 400;
|
|
275
|
+
line-height: 1.4;
|
|
276
|
+
text-align: start;
|
|
277
|
+
white-space: normal;
|
|
278
|
+
overflow-wrap: anywhere;
|
|
279
|
+
}
|
|
280
|
+
/* Hover bridge: the pointer crosses the gap to the hint without closing it (WCAG 1.4.13). */
|
|
281
|
+
[part=hint]::before {
|
|
282
|
+
content: "";
|
|
283
|
+
position: absolute;
|
|
284
|
+
inset-inline: 0;
|
|
285
|
+
inset-block: -7px -7px;
|
|
286
|
+
}
|
|
287
|
+
@supports (position-area: block-end) and (position-try-fallbacks: flip-block) {
|
|
288
|
+
[part=hint] {
|
|
289
|
+
position-anchor: --bythium-hint;
|
|
290
|
+
position-area: block-end;
|
|
291
|
+
margin-block-start: 6px;
|
|
292
|
+
position-try-fallbacks: flip-block;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
/* Without anchor positioning the hint would float at the top of the window: it stays hidden, the name still speaks. */
|
|
296
|
+
@supports not ((position-area: block-end) and (position-try-fallbacks: flip-block)) {
|
|
297
|
+
[part=hint] {
|
|
298
|
+
display: none;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
@media (forced-colors: active) {
|
|
302
|
+
[part=hint] {
|
|
303
|
+
border-color: CanvasText;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
/* Profil Linear : 30 px par d\xE9faut, 24 px en sm, 36 px en lg ; la cible de 44 px est port\xE9e par la classe \xAB target \xBB. */
|
|
307
|
+
.root {
|
|
308
|
+
display: inline-flex;
|
|
309
|
+
align-items: center;
|
|
310
|
+
justify-content: center;
|
|
311
|
+
gap: 6px;
|
|
312
|
+
min-inline-size: 0;
|
|
313
|
+
max-inline-size: 100%;
|
|
314
|
+
padding: 0 10px;
|
|
315
|
+
line-height: 1;
|
|
316
|
+
white-space: nowrap;
|
|
317
|
+
vertical-align: top;
|
|
318
|
+
user-select: none;
|
|
319
|
+
}
|
|
320
|
+
/* Libell\xE9 trop long pour son conteneur : points de suspension, jamais de d\xE9bordement. */
|
|
321
|
+
[part='content'] {
|
|
322
|
+
display: block;
|
|
323
|
+
min-inline-size: 0;
|
|
324
|
+
overflow: hidden;
|
|
325
|
+
text-overflow: ellipsis;
|
|
326
|
+
line-height: 1.4;
|
|
327
|
+
}
|
|
328
|
+
::slotted(*) {
|
|
329
|
+
vertical-align: middle;
|
|
330
|
+
}
|
|
331
|
+
.size-sm {
|
|
332
|
+
min-block-size: 24px;
|
|
333
|
+
padding: 0 8px;
|
|
334
|
+
}
|
|
335
|
+
.size-lg {
|
|
336
|
+
min-block-size: 36px;
|
|
337
|
+
padding: 0 14px;
|
|
338
|
+
font-size: var(--font-size-base);
|
|
339
|
+
}
|
|
340
|
+
.variant-primary {
|
|
341
|
+
border-color: var(--bythium-brand-primary);
|
|
342
|
+
background: var(--bythium-brand-primary);
|
|
343
|
+
color: var(--bythium-on-brand-primary);
|
|
344
|
+
box-shadow: inset 0 1px 0 0 color-mix(in oklch, var(--bythium-on-brand-primary) 16%, transparent);
|
|
345
|
+
}
|
|
346
|
+
.variant-primary:hover:not(:disabled),
|
|
347
|
+
.variant-primary:active:not(:disabled) {
|
|
348
|
+
border-color: var(--bythium-brand-primary-hover);
|
|
349
|
+
background: var(--bythium-brand-primary-hover);
|
|
350
|
+
}
|
|
351
|
+
.variant-ghost {
|
|
352
|
+
border-color: transparent;
|
|
353
|
+
background: transparent;
|
|
354
|
+
color: var(--bythium-text-secondary);
|
|
355
|
+
}
|
|
356
|
+
.variant-ghost:hover:not(:disabled) {
|
|
357
|
+
background: var(--bythium-state-hover);
|
|
358
|
+
color: var(--bythium-text-primary);
|
|
359
|
+
}
|
|
360
|
+
.variant-ghost:active:not(:disabled) {
|
|
361
|
+
background: var(--bythium-state-selected);
|
|
362
|
+
color: var(--bythium-text-primary);
|
|
363
|
+
}
|
|
364
|
+
.variant-danger {
|
|
365
|
+
border-color: color-mix(in oklch, var(--bythium-status-danger) 30%, var(--bythium-border-subtle));
|
|
366
|
+
background: transparent;
|
|
367
|
+
color: var(--bythium-status-danger);
|
|
368
|
+
}
|
|
369
|
+
.variant-danger:hover:not(:disabled) {
|
|
370
|
+
background: color-mix(in oklch, var(--bythium-status-danger) 10%, var(--bythium-surface-base));
|
|
371
|
+
}
|
|
372
|
+
.variant-danger:active:not(:disabled) {
|
|
373
|
+
background: color-mix(in oklch, var(--bythium-status-danger) 16%, var(--bythium-surface-base));
|
|
374
|
+
}
|
|
375
|
+
.variant-icon {
|
|
376
|
+
inline-size: var(--control-height);
|
|
377
|
+
padding: 0;
|
|
378
|
+
font-size: 14px;
|
|
379
|
+
}
|
|
380
|
+
.variant-icon.size-sm {
|
|
381
|
+
inline-size: 24px;
|
|
382
|
+
}
|
|
383
|
+
.variant-icon.size-lg {
|
|
384
|
+
inline-size: 36px;
|
|
385
|
+
}
|
|
386
|
+
:host([loading]) .variant-icon [part='content'] {
|
|
387
|
+
display: none;
|
|
388
|
+
}
|
|
389
|
+
/* D\xE9sactiv\xE9 : neutre et lisible (texte att\xE9nu\xE9 \xE0 4,5:1), jamais d'aplat violet d\xE9lav\xE9. */
|
|
390
|
+
:host([disabled]) {
|
|
391
|
+
opacity: 1;
|
|
392
|
+
}
|
|
393
|
+
:host([disabled]) .root,
|
|
394
|
+
:host([disabled-focusable]) .root {
|
|
395
|
+
border-color: var(--bythium-border-subtle);
|
|
396
|
+
background: var(--bythium-surface-raised);
|
|
397
|
+
color: var(--bythium-text-muted);
|
|
398
|
+
box-shadow: none;
|
|
399
|
+
}
|
|
400
|
+
:host([disabled]) .variant-ghost,
|
|
401
|
+
:host([disabled-focusable]) .variant-ghost,
|
|
402
|
+
:host([disabled]) .variant-danger,
|
|
403
|
+
:host([disabled-focusable]) .variant-danger {
|
|
404
|
+
background: transparent;
|
|
405
|
+
}
|
|
406
|
+
:host([disabled]) .variant-ghost,
|
|
407
|
+
:host([disabled-focusable]) .variant-ghost {
|
|
408
|
+
border-color: transparent;
|
|
409
|
+
}
|
|
410
|
+
:host([loading]) .root {
|
|
411
|
+
cursor: default;
|
|
412
|
+
}
|
|
413
|
+
/* Chargement : anneau fin dans la couleur du libell\xE9, la variante garde son apparence. */
|
|
414
|
+
[part='loader'] {
|
|
415
|
+
display: inline-block;
|
|
416
|
+
flex: none;
|
|
417
|
+
inline-size: 12px;
|
|
418
|
+
block-size: 12px;
|
|
419
|
+
border: 1.5px solid currentColor;
|
|
420
|
+
border-inline-end-color: transparent;
|
|
421
|
+
border-radius: 50%;
|
|
422
|
+
font-size: 0;
|
|
423
|
+
opacity: 0.75;
|
|
424
|
+
}
|
|
425
|
+
[part='loader'][hidden] {
|
|
426
|
+
display: none;
|
|
427
|
+
}
|
|
428
|
+
@keyframes spin {
|
|
429
|
+
to {
|
|
430
|
+
transform: rotate(360deg);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
434
|
+
.variant-ghost:hover,
|
|
435
|
+
.variant-danger:hover {
|
|
436
|
+
transition:
|
|
437
|
+
background-color var(--duration-fast) var(--ease-standard),
|
|
438
|
+
border-color var(--duration-fast) var(--ease-standard);
|
|
439
|
+
}
|
|
440
|
+
[part='loader'] {
|
|
441
|
+
animation: spin 0.8s linear infinite;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
@media (pointer: coarse) {
|
|
445
|
+
.root {
|
|
446
|
+
min-inline-size: var(--target-touch-min);
|
|
447
|
+
min-block-size: var(--target-touch-min);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
@media (forced-colors: active) {
|
|
451
|
+
:host([disabled]) .root,
|
|
452
|
+
:host([disabled-focusable]) .root {
|
|
453
|
+
border-color: GrayText;
|
|
454
|
+
color: GrayText;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
:host([disabled-focusable]) .root {
|
|
458
|
+
cursor: not-allowed;
|
|
459
|
+
}
|
|
460
|
+
/* Button natif du DOM l\xE9ger (slot control) : la feuille de base ne l'atteint pas, ses r\xE8gles sont reprises ici ;
|
|
461
|
+
variante et taille arrivent en data-variant et data-size, l'\xE9tat en aria-disabled et aria-busy. */
|
|
462
|
+
.native {
|
|
463
|
+
display: contents;
|
|
464
|
+
}
|
|
465
|
+
::slotted(button) {
|
|
466
|
+
display: inline-flex;
|
|
467
|
+
align-items: center;
|
|
468
|
+
justify-content: center;
|
|
469
|
+
gap: 6px;
|
|
470
|
+
box-sizing: border-box;
|
|
471
|
+
min-inline-size: 0;
|
|
472
|
+
max-inline-size: 100%;
|
|
473
|
+
min-block-size: var(--control-height);
|
|
474
|
+
padding: 0 10px;
|
|
475
|
+
border: 1px solid var(--bythium-border-subtle);
|
|
476
|
+
border-radius: var(--radius-control);
|
|
477
|
+
background-color: var(--bythium-surface-raised);
|
|
478
|
+
color: var(--bythium-text-primary);
|
|
479
|
+
font: inherit;
|
|
480
|
+
font-size: var(--font-size-caption);
|
|
481
|
+
font-weight: var(--font-weight-medium);
|
|
482
|
+
line-height: 1;
|
|
483
|
+
white-space: nowrap;
|
|
484
|
+
cursor: pointer;
|
|
485
|
+
touch-action: manipulation;
|
|
486
|
+
}
|
|
487
|
+
::slotted(button:focus-visible) {
|
|
488
|
+
outline: var(--focus-ring-width) solid var(--bythium-border-focus);
|
|
489
|
+
outline-offset: 1px;
|
|
490
|
+
}
|
|
491
|
+
::slotted(button[data-size=sm]) {
|
|
492
|
+
min-block-size: 24px;
|
|
493
|
+
padding: 0 8px;
|
|
494
|
+
}
|
|
495
|
+
::slotted(button[data-size=lg]) {
|
|
496
|
+
min-block-size: 36px;
|
|
497
|
+
padding: 0 14px;
|
|
498
|
+
font-size: var(--font-size-base);
|
|
499
|
+
}
|
|
500
|
+
::slotted(button[data-variant=primary]) {
|
|
501
|
+
border-color: var(--bythium-brand-primary);
|
|
502
|
+
background: var(--bythium-brand-primary);
|
|
503
|
+
color: var(--bythium-on-brand-primary);
|
|
504
|
+
box-shadow: inset 0 1px 0 0 color-mix(in oklch, var(--bythium-on-brand-primary) 16%, transparent);
|
|
505
|
+
}
|
|
506
|
+
::slotted(button[data-variant=primary]:hover:not([aria-disabled=true])) {
|
|
507
|
+
border-color: var(--bythium-brand-primary-hover);
|
|
508
|
+
background: var(--bythium-brand-primary-hover);
|
|
509
|
+
}
|
|
510
|
+
::slotted(button[data-variant=secondary]:hover:not([aria-disabled=true])) {
|
|
511
|
+
background: color-mix(in oklch, var(--bythium-text-primary) 8%, var(--bythium-surface-raised));
|
|
512
|
+
}
|
|
513
|
+
::slotted(button[data-variant=ghost]) {
|
|
514
|
+
border-color: transparent;
|
|
515
|
+
background: transparent;
|
|
516
|
+
color: var(--bythium-text-secondary);
|
|
517
|
+
}
|
|
518
|
+
::slotted(button[data-variant=ghost]:hover:not([aria-disabled=true])) {
|
|
519
|
+
background: var(--bythium-state-hover);
|
|
520
|
+
color: var(--bythium-text-primary);
|
|
521
|
+
}
|
|
522
|
+
::slotted(button[data-variant=danger]) {
|
|
523
|
+
border-color: color-mix(in oklch, var(--bythium-status-danger) 30%, var(--bythium-border-subtle));
|
|
524
|
+
background: transparent;
|
|
525
|
+
color: var(--bythium-status-danger);
|
|
526
|
+
}
|
|
527
|
+
::slotted(button[data-variant=danger]:hover:not([aria-disabled=true])) {
|
|
528
|
+
background: color-mix(in oklch, var(--bythium-status-danger) 10%, var(--bythium-surface-base));
|
|
529
|
+
}
|
|
530
|
+
::slotted(button[data-variant=icon]) {
|
|
531
|
+
inline-size: var(--control-height);
|
|
532
|
+
padding: 0;
|
|
533
|
+
font-size: 14px;
|
|
534
|
+
}
|
|
535
|
+
::slotted(button[aria-disabled=true]) {
|
|
536
|
+
border-color: var(--bythium-border-subtle);
|
|
537
|
+
background: var(--bythium-surface-raised);
|
|
538
|
+
color: var(--bythium-text-muted);
|
|
539
|
+
box-shadow: none;
|
|
540
|
+
cursor: not-allowed;
|
|
541
|
+
}
|
|
542
|
+
@media (pointer: coarse) {
|
|
543
|
+
::slotted(button) {
|
|
544
|
+
min-inline-size: var(--target-touch-min);
|
|
545
|
+
min-block-size: var(--target-touch-min);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
@media (forced-colors: active) {
|
|
549
|
+
::slotted(button) {
|
|
550
|
+
border: 1px solid ButtonText;
|
|
551
|
+
}
|
|
552
|
+
::slotted(button[aria-disabled=true]) {
|
|
553
|
+
border-color: GrayText;
|
|
554
|
+
color: GrayText;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
`;var T={variants:{variant:{primary:"variant-primary",secondary:"variant-secondary",ghost:"variant-ghost",danger:"variant-danger",icon:"variant-icon"},size:{sm:"size-sm",md:"size-md",lg:"size-lg"}},defaultVariants:{variant:"primary",size:"md"}},w=x("root target",T);var C={fr:{fallback:"Ex\xE9cuter"},en:{fallback:"Run"}},E=(n,t)=>n.disabled||n.disabledFocusable||n.loading||t.formDisabled;function M(n,t,e=o){return t.map(r=>r.slot==="control"&&r.tag==="button"?{"data-variant":n.variant,"data-size":n.size,"aria-busy":n.loading?"true":null,"aria-disabled":E(n,e)?"true":null,"aria-label":n.variant==="icon"?n.label:null}:null)}function L(n,t=o){if(p(n).slotted.has("control"))return[a("span",{part:"base",class:"native"},a("slot",{name:"control"}))];let e=g(n.hint);return[a("button",{part:"base",class:w({variant:n.variant,size:n.size}),type:"button","aria-label":n.variant==="icon"?n.label:null,"aria-busy":String(n.loading),"aria-disabled":n.disabledFocusable&&!n.disabled?"true":null,"aria-describedby":f(n.hint,n.variant==="icon"?n.label:""),disabled:n.disabled||n.loading||t.formDisabled},a("span",{part:"loader","aria-hidden":"true",hidden:!n.loading},"\u25CC"),a("span",{part:"content"},a("slot",{},i(C,n.locale).fallback))),...e?[e]:[]]}var d=class extends s{static props=k;static css=z;static delegatesFocus=!0;#t;constructor(){super(),this.root.addEventListener("click",t=>{let e=this.nativeControl,r=e??this.root.querySelector("button");if(!(!r||!t.composedPath().includes(r))){if(this.disabled||this.disabledFocusable||this.loading||this.inactive){e&&t.preventDefault();return}this.emit("bythium-action",{source:"activation"}),!e&&(this.type==="submit"?this.form?.requestSubmit():this.type==="reset"&&this.form?.reset())}}),this.#t=y(this,this.root)}disconnected(){super.disconnected(),this.#t.close()}get nativeControl(){return this.querySelector(":scope > button[slot=control]")}formValue(){return null}view(){return L(this.props,this.formState)}lightAttrs(t){return M(this.props,t,this.formState)}};v("bythium-button",d);export{d as a};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Generated from the contract of bythium-confirm-button. Do not edit.
|
|
2
|
+
export interface BythiumConfirmButtonEventMap extends HTMLElementEventMap {
|
|
3
|
+
/** Émis quand la confirmation aboutit (texte exact puis Confirmer, ou maintien complet). La balise n’exécute jamais l’action : la page s’en charge. */
|
|
4
|
+
'bythium-confirm': CustomEvent<{ mode: "typed" | "hold"; confirmation: string }>;
|
|
5
|
+
/** Émis quand l’utilisateur ferme le dialogue sans confirmer (Annuler, Échap). */
|
|
6
|
+
'bythium-cancel': CustomEvent<{ reason: string }>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/** Action destructive à double confirmation (texte exact ou maintien au clavier et au pointeur), annulable, focus rendu au déclencheur. */
|
|
10
|
+
export declare class BythiumConfirmButton extends HTMLElement {
|
|
11
|
+
/** Libellé du déclencheur, repris dans le titre du dialogue : il donne le nom accessible. Valeur par défaut : « Supprimer » (ou « Delete » selon locale). Attribute `label`. */
|
|
12
|
+
label: string;
|
|
13
|
+
/** Refuse l’ouverture et ferme un dialogue ouvert ; aucune confirmation possible. Attribute `disabled`. */
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
/** Confirmation par saisie du texte exact (typed) ou par maintien du bouton ou de la touche Espace (hold). Attribute `mode`. */
|
|
16
|
+
mode: 'typed' | 'hold';
|
|
17
|
+
/** Texte à saisir à l’identique (casse comprise) en mode typed ; vide : confirmation impossible. Attribute `confirmation-text`. */
|
|
18
|
+
confirmationText: string;
|
|
19
|
+
/** Durée du maintien en millisecondes en mode hold ; 500 au moins (une valeur plus courte vaut 500). Attribute `hold-duration`. */
|
|
20
|
+
holdDuration: number;
|
|
21
|
+
/** Texte d’explication du dialogue, relié par aria-describedby. Valeur par défaut : « Cette action nécessite une confirmation explicite. » (ou « This action needs an explicit confirmation. » selon locale). Attribute `description`. */
|
|
22
|
+
description: string;
|
|
23
|
+
/** Niveau du titre du dialogue (h1 à h6), fixé par la page (WC-N03). Attribute `heading-level`. */
|
|
24
|
+
headingLevel: number;
|
|
25
|
+
/** Langue des textes intégrés (BCP 47) : titre, consigne de saisie ou de maintien, boutons, progression, et libellé ou explication par défaut. Toute balise en vaut en, le reste vaut fr. Un texte que la page écrit, quand l’attribut existe, l’emporte. Attribute `locale`. */
|
|
26
|
+
locale: string;
|
|
27
|
+
addEventListener<K extends keyof BythiumConfirmButtonEventMap>(type: K, listener: (this: BythiumConfirmButton, event: BythiumConfirmButtonEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
28
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
29
|
+
removeEventListener<K extends keyof BythiumConfirmButtonEventMap>(type: K, listener: (this: BythiumConfirmButton, event: BythiumConfirmButtonEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
30
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare global {
|
|
34
|
+
interface HTMLElementTagNameMap {
|
|
35
|
+
'bythium-confirm-button': BythiumConfirmButton;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunks/chunk-MYB6FQX2.js";import"./chunks/chunk-BAYUYXVR.js";import"./chunks/chunk-W3ASGVKH.js";export{a as BythiumConfirmButton};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Generated from the contract of bythium-copy-button. Do not edit.
|
|
2
|
+
export interface BythiumCopyButtonEventMap extends HTMLElementEventMap {
|
|
3
|
+
/** Émis après chaque tentative de copie : success vaut false quand le presse-papiers est indisponible ou refusé. */
|
|
4
|
+
'bythium-copy': CustomEvent<{ value: string; success: boolean }>;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/** Bouton qui copie une valeur dans le presse-papiers et confirme le résultat pendant deux secondes, annoncé par une région d’état. */
|
|
8
|
+
export declare class BythiumCopyButton extends HTMLElement {
|
|
9
|
+
/** Langue du texte par défaut et du message de copie (BCP 47) : toute balise en vaut en, le reste vaut fr. Attribute `locale`. */
|
|
10
|
+
locale: string;
|
|
11
|
+
/** Texte copié dans le presse-papiers ; vide par défaut. Attribute `value`. */
|
|
12
|
+
value: string;
|
|
13
|
+
/** Refuse la copie et sort de l’ordre de tabulation. Attribute `disabled`. */
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
addEventListener<K extends keyof BythiumCopyButtonEventMap>(type: K, listener: (this: BythiumCopyButton, event: BythiumCopyButtonEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
16
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
17
|
+
removeEventListener<K extends keyof BythiumCopyButtonEventMap>(type: K, listener: (this: BythiumCopyButton, event: BythiumCopyButtonEventMap[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-copy-button': BythiumCopyButton;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunks/chunk-MWNIQCR3.js";import"./chunks/chunk-BAYUYXVR.js";import"./chunks/chunk-W3ASGVKH.js";export{a as BythiumCopyButton};
|