@bebranded/bb-contents 1.0.132 → 1.0.133
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/bb-contents.js +6 -5
- package/package.json +1 -1
package/bb-contents.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* BeBranded Contents
|
|
3
3
|
* Contenus additionnels français pour Webflow
|
|
4
|
-
* @version 1.0.
|
|
4
|
+
* @version 1.0.133
|
|
5
5
|
* @author BeBranded
|
|
6
6
|
* @license MIT
|
|
7
7
|
* @website https://www.bebranded.xyz
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
window._bbContentsInitialized = true;
|
|
33
33
|
|
|
34
34
|
// Log de démarrage simple (une seule fois)
|
|
35
|
-
console.log('bb-contents | v1.0.
|
|
35
|
+
console.log('bb-contents | v1.0.133');
|
|
36
36
|
|
|
37
37
|
// Configuration
|
|
38
38
|
const config = {
|
|
39
|
-
version: '1.0.
|
|
39
|
+
version: '1.0.133',
|
|
40
40
|
debug: false, // Debug désactivé pour rendu propre
|
|
41
41
|
prefix: 'bb-', // utilisé pour générer les sélecteurs (data-bb-*)
|
|
42
42
|
youtubeEndpoint: null, // URL du worker YouTube (à définir par l'utilisateur)
|
|
@@ -1395,7 +1395,7 @@
|
|
|
1395
1395
|
|
|
1396
1396
|
trigger.innerHTML = '<div style="display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;"><span class="bb-country-flag" style="flex-shrink: 0;">' + selectedFlag + '</span><span class="bb-country-name" style="flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">' + bbContents.utils.sanitize(selectedName) + '</span></div><svg width="16" height="16" viewBox="0 0 16 16" fill="none" style="flex-shrink: 0; transition: transform 0.2s;"><path d="M4 6L8 10L12 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';
|
|
1397
1397
|
let triggerStyle = 'display: flex; align-items: center; justify-content: space-between; cursor: pointer; box-sizing: border-box; transition: border-color 0.2s;';
|
|
1398
|
-
// Appliquer les styles du select natif
|
|
1398
|
+
// Appliquer les styles du select natif (récupérés depuis CET élément spécifique)
|
|
1399
1399
|
if (selectBgColor && selectBgColor !== 'rgba(0, 0, 0, 0)' && selectBgColor !== 'transparent') {
|
|
1400
1400
|
triggerStyle += ' background-color: ' + selectBgColor + ';';
|
|
1401
1401
|
}
|
|
@@ -1407,7 +1407,8 @@
|
|
|
1407
1407
|
if (selectBorderRadius && selectBorderRadius !== '0px') {
|
|
1408
1408
|
triggerStyle += ' border-radius: ' + selectBorderRadius + ';';
|
|
1409
1409
|
}
|
|
1410
|
-
|
|
1410
|
+
// Toujours appliquer la couleur du texte (même si héritée)
|
|
1411
|
+
if (selectColor && selectColor !== 'rgba(0, 0, 0, 0)') {
|
|
1411
1412
|
triggerStyle += ' color: ' + selectColor + ';';
|
|
1412
1413
|
}
|
|
1413
1414
|
if (selectFontSize) {
|