@ebrains/react 1.1.0 → 1.3.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/color-primary-palette_6.entry.esm.js +106 -106
- package/components-section.entry.esm.js +1 -1
- package/correct-use-of-colors.entry.esm.js +33 -33
- package/docs-palettes.entry.esm.js +1 -1
- package/docs-tokens.entry.esm.js +1 -1
- package/eds-app-root.entry.esm.js +4 -4
- package/eds-avatar_28.entry.esm.js +103 -106
- package/eds-cookies-preference.entry.esm.js +2 -2
- package/eds-feedback.entry.esm.js +5 -5
- package/eds-frame.entry.esm.js +4 -4
- package/eds-progress-bar.entry.esm.js +4 -4
- package/eds-rating.entry.esm.js +1 -1
- package/eds-section-core_2.entry.esm.js +5 -5
- package/eds-spinner.entry.esm.js +3 -3
- package/eds-switch.entry.esm.js +5 -5
- package/eds-timeline.entry.esm.js +4 -4
- package/eds-toast-manager.entry.esm.js +1 -1
- package/eds-tooltip.entry.esm.js +3 -3
- package/eds-trl.entry.esm.js +2 -2
- package/incorrect-use-of-colors.entry.esm.js +8 -8
- package/index.esm.js +1 -1
- package/index.esm2.js +4 -2
- package/logo-space.entry.esm.js +9 -9
- package/logo-variations-horizontal_2.entry.esm.js +28 -28
- package/logo-variations-tabs.entry.esm.js +1 -1
- package/logo-wrong-usage.entry.esm.js +25 -25
- package/package.json +1 -1
- package/src/components.d.ts +2 -0
- package/svg-repository.entry.esm.js +2 -2
- package/token-list_3.entry.esm.js +5 -5
- package/token-ratios.entry.esm.js +3 -3
- package/token-spacing.entry.esm.js +26 -26
- package/token-typography.entry.esm.js +2 -2
|
@@ -447,7 +447,7 @@ const EdsFooter = class {
|
|
|
447
447
|
*/
|
|
448
448
|
render() {
|
|
449
449
|
return h("footer", {
|
|
450
|
-
key: '
|
|
450
|
+
key: '97eecea73acf5ee3d125a446939010055c24e3f3'
|
|
451
451
|
}, this.social ? h("div", {
|
|
452
452
|
class: "border-softest border-t-2 pt-20 md:pt-28"
|
|
453
453
|
}, h("div", {
|
|
@@ -459,39 +459,39 @@ const EdsFooter = class {
|
|
|
459
459
|
}, h("eds-social-networks", {
|
|
460
460
|
class: "mt-28"
|
|
461
461
|
}))))) : null, h("div", {
|
|
462
|
-
key: '
|
|
462
|
+
key: 'b7592d90406aa7b5e4d71e2947335a85dbbf70ae',
|
|
463
463
|
class: `border-softest ${this.social ? 'border-t-2' : ''} pb-28 pt-20 md:pt-28`
|
|
464
464
|
}, h("div", {
|
|
465
|
-
key: '
|
|
465
|
+
key: '054190192082a4fdd2435ef62e5e7765386149f5',
|
|
466
466
|
class: "container flex items-center gap-20 lg:flex-nowrap"
|
|
467
467
|
}, h("div", {
|
|
468
|
-
key: '
|
|
468
|
+
key: 'baa874cda99a882f33643609ffd2b99f09db3646',
|
|
469
469
|
class: "flex items-center gap-x-12"
|
|
470
470
|
}, h("a", {
|
|
471
|
-
key: '
|
|
471
|
+
key: 'f47a0e02c7db660ab2c5b9894fd6ef1f820239cf',
|
|
472
472
|
target: "_blank",
|
|
473
473
|
rel: "noopener noreferrer",
|
|
474
474
|
class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0",
|
|
475
475
|
href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-europe_en",
|
|
476
476
|
"aria-label": "Learn about Horizon Europe funding"
|
|
477
477
|
}, h("eds-img", {
|
|
478
|
-
key: '
|
|
478
|
+
key: '470f3ccae44a83383ad7f5bfcab880365b203a50',
|
|
479
479
|
width: 54,
|
|
480
480
|
height: 41,
|
|
481
481
|
src: "https://www.ebrains.eu/flags/4x3/eu.svg",
|
|
482
482
|
alt: "European Union Flag"
|
|
483
483
|
}))), h("div", {
|
|
484
|
-
key: '
|
|
484
|
+
key: 'a02153ae5b772b105272eac575911826747ea246'
|
|
485
485
|
}, h("div", {
|
|
486
|
-
key: '
|
|
486
|
+
key: 'a274e52402142dce7df575b29ce8802d1d662368',
|
|
487
487
|
class: "f-ui-04 text-light"
|
|
488
488
|
}, h("p", {
|
|
489
|
-
key: '
|
|
489
|
+
key: 'ae2c393b8585aecd25d08ad20fe8bd712f9c12b5'
|
|
490
490
|
}, this.fundedBy), h("div", {
|
|
491
|
-
key: '
|
|
491
|
+
key: '9ef102155624ef47071d4285ea00c65d66d8606e',
|
|
492
492
|
class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap inline-block"
|
|
493
493
|
}, h("span", {
|
|
494
|
-
key: '
|
|
494
|
+
key: '86f5992c7570fcd88c80f7877f08cd4b357ca291',
|
|
495
495
|
class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline mr-4"
|
|
496
496
|
}, "\u00A9 ", this.rightsReserved), this.enableCookiesSettings ? h("eds-link", {
|
|
497
497
|
label: this.cookiesPreferences,
|
|
@@ -501,7 +501,7 @@ const EdsFooter = class {
|
|
|
501
501
|
this.toggleCookiesConsent();
|
|
502
502
|
}
|
|
503
503
|
}) : null))), h("div", {
|
|
504
|
-
key: '
|
|
504
|
+
key: '3ffce63f46352acd80eff48fb121b5ee165c1ad5',
|
|
505
505
|
class: "ml-auto pl-12"
|
|
506
506
|
}, this.enableScrollTop ? h("eds-button", {
|
|
507
507
|
id: "backToTop",
|
|
@@ -942,14 +942,14 @@ const EdsForm = class {
|
|
|
942
942
|
const hiddenFields = this.parsedFields.filter(field => field.type === 'hidden');
|
|
943
943
|
const otherFields = this.parsedFields.filter(field => field.type !== 'hidden');
|
|
944
944
|
return h("form", {
|
|
945
|
-
key: '
|
|
945
|
+
key: '1a53a4f0d2b8420a14db6fe35548a86cfeb8b698',
|
|
946
946
|
ref: el => this.formEl = el,
|
|
947
947
|
autocomplete: "on",
|
|
948
948
|
onSubmit: this.handleSubmit
|
|
949
949
|
}, h("div", {
|
|
950
|
-
key: '
|
|
950
|
+
key: '8fdd2fa6b73f24c025b43d6f0b34cdbb22e0ec82'
|
|
951
951
|
}, h("slot", {
|
|
952
|
-
key: '
|
|
952
|
+
key: '385f8c71b86b7ab9a74c1b7a0204331d0022467f'
|
|
953
953
|
}), hiddenFields.map((field, index) => h("eds-input", {
|
|
954
954
|
key: index,
|
|
955
955
|
type: "hidden",
|
|
@@ -978,15 +978,15 @@ const EdsForm = class {
|
|
|
978
978
|
error: ((_a = this.errors[field.name]) === null || _a === void 0 ? void 0 : _a.length) > 0,
|
|
979
979
|
errorMessage: (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br />'),
|
|
980
980
|
onInput: e => this.handleInput(e, field),
|
|
981
|
-
|
|
981
|
+
onChangeNative: e => this.handleChange(e, field),
|
|
982
982
|
class: index > 0 ? 'mt-20' : '',
|
|
983
983
|
options: field.options
|
|
984
984
|
});
|
|
985
985
|
})), this.formBtn && h("div", {
|
|
986
|
-
key: '
|
|
986
|
+
key: '0a120557c574112a8686087cfe2dbf3aae3feaa5',
|
|
987
987
|
class: "mt-20"
|
|
988
988
|
}, h("eds-button", {
|
|
989
|
-
key: '
|
|
989
|
+
key: '277a39f0d82e01f549966aa0c91347e090a82bc7',
|
|
990
990
|
intent: "primary",
|
|
991
991
|
label: this.formBtnLabel,
|
|
992
992
|
disabled: this.isSubmitting,
|
|
@@ -1171,20 +1171,20 @@ const EdsHeader = class {
|
|
|
1171
1171
|
// Logo color variant: default and inverse use 'color', strong uses 'color-white'
|
|
1172
1172
|
const logoType = this.headerVariant === 'strong' ? 'color-white' : 'color';
|
|
1173
1173
|
return h("header", {
|
|
1174
|
-
key: '
|
|
1174
|
+
key: '635e25577674250c4ce8cdc91e29fa0c93b7e821',
|
|
1175
1175
|
class: `flex items-center justify-between relative z-10 ${classes}`
|
|
1176
1176
|
}, h("div", {
|
|
1177
|
-
key: '
|
|
1177
|
+
key: '41275c9aedeff533f00348dfa85b49fdb1a3f25e',
|
|
1178
1178
|
class: "mr-auto w-[200px] h-[85px]"
|
|
1179
1179
|
}, h("eds-logo", {
|
|
1180
|
-
key: '
|
|
1180
|
+
key: 'fa8949ebbeab567b3770c6795a890f9187b66cf2',
|
|
1181
1181
|
type: logoType,
|
|
1182
1182
|
href: this.homeUrl
|
|
1183
1183
|
})), this.parsedLinks && h("nav", {
|
|
1184
|
-
key: '
|
|
1184
|
+
key: '64428c01fee019a77b15b2ad43fbdb18cf5cc1e9',
|
|
1185
1185
|
class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex"
|
|
1186
1186
|
}, h("ul", {
|
|
1187
|
-
key: '
|
|
1187
|
+
key: '8b6e7e82f077409987e0271f1d1c57d3473a0921',
|
|
1188
1188
|
class: "flex gap-x-2"
|
|
1189
1189
|
}, this.parsedLinks.map(link => h("eds-link", {
|
|
1190
1190
|
label: link.label,
|
|
@@ -1196,12 +1196,12 @@ const EdsHeader = class {
|
|
|
1196
1196
|
external: link.external,
|
|
1197
1197
|
"extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100"
|
|
1198
1198
|
})))), h("slot", {
|
|
1199
|
-
key: '
|
|
1199
|
+
key: '7ba569eafe18d902e78978840520d708b665a91b'
|
|
1200
1200
|
}), this.menuEnabled && h("div", {
|
|
1201
|
-
key: '
|
|
1201
|
+
key: '54c21f2e71a44049c56e4b31ba241996a1e658c3',
|
|
1202
1202
|
class: "md:hidden flex overflow-hidden px-16"
|
|
1203
1203
|
}, h("eds-button", {
|
|
1204
|
-
key: '
|
|
1204
|
+
key: 'e0bcc14abcad7151cacf19a4c50f238e39538754',
|
|
1205
1205
|
"aria-label": "Menu",
|
|
1206
1206
|
intent: this.headerVariant === 'default' ? 'ghost' : 'ghostInverse',
|
|
1207
1207
|
icon: "menu",
|
|
@@ -1447,43 +1447,33 @@ const EdsInputFieldStyle0 = edsInputFieldCss;
|
|
|
1447
1447
|
const EdsInputField = class {
|
|
1448
1448
|
constructor(hostRef) {
|
|
1449
1449
|
registerInstance(this, hostRef);
|
|
1450
|
+
this.edsinput = createEvent(this, "edsinput", 7);
|
|
1451
|
+
this.edschange = createEvent(this, "edschange", 7);
|
|
1450
1452
|
this.handleNativeInput = ev => {
|
|
1451
1453
|
var _a;
|
|
1452
|
-
// 1) Call any passed-in handler
|
|
1453
1454
|
(_a = this.onInput) === null || _a === void 0 ? void 0 : _a.call(this, ev);
|
|
1454
1455
|
if (this.shouldEmitValue()) {
|
|
1455
|
-
// 2) Re-emit on host so Vue/others can catch it
|
|
1456
1456
|
const newValue = ev.target.value;
|
|
1457
|
-
this.
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
},
|
|
1461
|
-
bubbles: false,
|
|
1462
|
-
composed: true
|
|
1463
|
-
}));
|
|
1457
|
+
this.edsinput.emit({
|
|
1458
|
+
value: newValue
|
|
1459
|
+
});
|
|
1464
1460
|
}
|
|
1465
1461
|
};
|
|
1466
1462
|
this.handleNativeChange = ev => {
|
|
1467
1463
|
var _a;
|
|
1468
|
-
(_a = this.
|
|
1464
|
+
(_a = this.onChangeNative) === null || _a === void 0 ? void 0 : _a.call(this, ev);
|
|
1469
1465
|
if (this.shouldEmitValue()) {
|
|
1470
1466
|
const target = ev.target;
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
bubbles: false,
|
|
1476
|
-
composed: true
|
|
1477
|
-
}));
|
|
1467
|
+
const value = target.value;
|
|
1468
|
+
this.edschange.emit({
|
|
1469
|
+
value
|
|
1470
|
+
});
|
|
1478
1471
|
}
|
|
1479
1472
|
};
|
|
1480
1473
|
this.name = undefined;
|
|
1481
1474
|
this.inputId = undefined;
|
|
1482
1475
|
this.placeholder = undefined;
|
|
1483
1476
|
this.disabled = false;
|
|
1484
|
-
this.onChange = undefined;
|
|
1485
|
-
this.onInput = undefined;
|
|
1486
|
-
this.type = 'text';
|
|
1487
1477
|
this.required = false;
|
|
1488
1478
|
this.label = undefined;
|
|
1489
1479
|
this.hint = undefined;
|
|
@@ -1496,20 +1486,20 @@ const EdsInputField = class {
|
|
|
1496
1486
|
this.value = undefined;
|
|
1497
1487
|
this.maxLength = undefined;
|
|
1498
1488
|
this.options = undefined;
|
|
1489
|
+
this.type = 'text';
|
|
1490
|
+
this.onChangeNative = undefined;
|
|
1491
|
+
this.onInput = undefined;
|
|
1499
1492
|
this.exposeValueEvents = true;
|
|
1500
1493
|
}
|
|
1501
1494
|
shouldEmitValue() {
|
|
1502
|
-
// Never emit for password fields, and respect the exposeValueEvents prop
|
|
1503
1495
|
return this.exposeValueEvents && this.type !== 'password';
|
|
1504
1496
|
}
|
|
1505
1497
|
get parsedOptions() {
|
|
1506
|
-
if (Array.isArray(this.options))
|
|
1507
|
-
|
|
1508
|
-
} else if (typeof this.options === 'string') {
|
|
1498
|
+
if (Array.isArray(this.options)) return this.options;
|
|
1499
|
+
if (typeof this.options === 'string') {
|
|
1509
1500
|
try {
|
|
1510
1501
|
return JSON.parse(this.options);
|
|
1511
1502
|
} catch (_a) {
|
|
1512
|
-
// eslint-disable-next-line
|
|
1513
1503
|
console.warn('Invalid options format');
|
|
1514
1504
|
return [];
|
|
1515
1505
|
}
|
|
@@ -1532,8 +1522,7 @@ const EdsInputField = class {
|
|
|
1532
1522
|
checked: this.checked
|
|
1533
1523
|
};
|
|
1534
1524
|
return h("div", {
|
|
1535
|
-
key: '
|
|
1536
|
-
class: "space-y-8"
|
|
1525
|
+
key: '6f048dc1418d0738fc097d3c48148ccfdf70fbdc'
|
|
1537
1526
|
}, this.type === 'checkbox' || this.type === 'radio' ? this.parsedOptions.length > 0 ? h("fieldset", {
|
|
1538
1527
|
class: "space-y-4 mt-8"
|
|
1539
1528
|
}, h("div", {
|
|
@@ -1550,7 +1539,7 @@ const EdsInputField = class {
|
|
|
1550
1539
|
key: option.value
|
|
1551
1540
|
}, h("eds-input", Object.assign({}, inputOpts, {
|
|
1552
1541
|
value: option.value,
|
|
1553
|
-
checked:
|
|
1542
|
+
checked: typeof this.value === 'string' && this.value.split(',').includes(String(option.value))
|
|
1554
1543
|
})), h("eds-input-label", {
|
|
1555
1544
|
name: `${this.name}-${option.value}`,
|
|
1556
1545
|
label: option.label
|
|
@@ -1580,7 +1569,7 @@ const EdsInputField = class {
|
|
|
1580
1569
|
type: "file",
|
|
1581
1570
|
id: this.inputId || this.name,
|
|
1582
1571
|
name: this.name,
|
|
1583
|
-
onChange: this.
|
|
1572
|
+
onChange: this.onChangeNative,
|
|
1584
1573
|
disabled: this.disabled,
|
|
1585
1574
|
required: this.required
|
|
1586
1575
|
}) : this.type === 'search' ? h("eds-input-search", {
|
|
@@ -1603,21 +1592,26 @@ const EdsInputField = class {
|
|
|
1603
1592
|
step: (_c = opt[2]) === null || _c === void 0 ? void 0 : _c.value,
|
|
1604
1593
|
value: numberValue
|
|
1605
1594
|
}));
|
|
1606
|
-
})() : h("eds-input", Object.assign({}, inputOpts))), h("
|
|
1607
|
-
key: '
|
|
1595
|
+
})() : h("eds-input", Object.assign({}, inputOpts))), h("div", {
|
|
1596
|
+
key: '27fb201362b478009fdc68a285395bfc24e84d45',
|
|
1597
|
+
class: "mt-4"
|
|
1598
|
+
}, h("eds-input-footer", {
|
|
1599
|
+
key: 'cd3d5742879b13ab62f9ba989971290b527be3ca',
|
|
1608
1600
|
id: `${this.name}-footer`,
|
|
1609
1601
|
name: this.name,
|
|
1610
1602
|
message: this.message,
|
|
1611
1603
|
"error-message": this.errorMessage,
|
|
1612
1604
|
error: this.error,
|
|
1613
1605
|
link: this.link
|
|
1614
|
-
}));
|
|
1606
|
+
})));
|
|
1615
1607
|
}
|
|
1616
1608
|
get hostEl() {
|
|
1617
1609
|
return getElement(this);
|
|
1618
1610
|
}
|
|
1619
1611
|
};
|
|
1620
1612
|
EdsInputField.style = EdsInputFieldStyle0;
|
|
1613
|
+
const edsInputFooterCss = "p{margin:0}.text-error{color:var(--red-700)}.flex{display:flex}.items-center{align-items:center}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.ml-4{margin-left:0.25rem}.f-ui-05{font-family:var(--f-ui-05-fontFamily);font-weight:var(--f-ui-05-fontWeight);font-size:var(--f-ui-05-fontSize);line-height:var(--f-ui-05-lineHeight);letter-spacing:var(--f-ui-05-letterSpacing)}.text-lighter{color:var(--grey-600)}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.hover\\:text-lighter:hover{color:var(--grey-600)}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}";
|
|
1614
|
+
const EdsInputFooterStyle0 = edsInputFooterCss;
|
|
1621
1615
|
const EdsInputFooter = class {
|
|
1622
1616
|
constructor(hostRef) {
|
|
1623
1617
|
registerInstance(this, hostRef);
|
|
@@ -1629,31 +1623,33 @@ const EdsInputFooter = class {
|
|
|
1629
1623
|
}
|
|
1630
1624
|
render() {
|
|
1631
1625
|
return h("div", {
|
|
1632
|
-
key: '
|
|
1633
|
-
class: "space-y-4 mt-4"
|
|
1626
|
+
key: 'a9f24f8726c7d5bcc3adfcb1d93a6076b0e672d8'
|
|
1634
1627
|
}, this.error && this.errorMessage && h("div", {
|
|
1635
|
-
key: '
|
|
1628
|
+
key: '5ed4b0881215887ed5532b4f6619cfe22f896773',
|
|
1636
1629
|
id: `error_${this.name}`,
|
|
1637
1630
|
class: "text-error flex items-center"
|
|
1638
1631
|
}, h("eds-icon-wrapper", {
|
|
1639
|
-
key: '
|
|
1632
|
+
key: '978b51b85d34c05f5f86ffa228404514e7572145',
|
|
1640
1633
|
icon: "warning"
|
|
1641
1634
|
}), h("p", {
|
|
1642
|
-
key: '
|
|
1635
|
+
key: '10c97eea1f6a835ad6c85618578fd4fa58a7d5f5',
|
|
1643
1636
|
class: "f-ui-04 ml-4",
|
|
1644
1637
|
innerHTML: this.errorMessage
|
|
1645
1638
|
})), this.message && h("p", {
|
|
1646
|
-
key: '
|
|
1639
|
+
key: '61db4e71da9136a1c2ede4bd30edb6c8f61e05d2',
|
|
1647
1640
|
id: `desc_${this.name}`,
|
|
1648
1641
|
class: "f-ui-05 text-lighter",
|
|
1649
1642
|
innerHTML: this.message
|
|
1650
1643
|
}), this.link && h("a", {
|
|
1651
|
-
key: '
|
|
1644
|
+
key: 'f44a7c6c17be59a6e6361a1a10c842f9c99f4b47',
|
|
1652
1645
|
href: this.link.url,
|
|
1653
1646
|
class: "f-ui-05 effect-color hover:text-lighter underline underline-offset-4"
|
|
1654
1647
|
}, this.link.label));
|
|
1655
1648
|
}
|
|
1656
1649
|
};
|
|
1650
|
+
EdsInputFooter.style = EdsInputFooterStyle0;
|
|
1651
|
+
const edsInputLabelCss = ".input-label{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.input-label b,.input-label strong{font-weight:var(--f-ui-04---bold-weight, bold)}.text-lighter{color:var(--grey-600)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}";
|
|
1652
|
+
const EdsInputLabelStyle0 = edsInputLabelCss;
|
|
1657
1653
|
const EdsInputLabel = class {
|
|
1658
1654
|
constructor(hostRef) {
|
|
1659
1655
|
registerInstance(this, hostRef);
|
|
@@ -1664,20 +1660,21 @@ const EdsInputLabel = class {
|
|
|
1664
1660
|
}
|
|
1665
1661
|
render() {
|
|
1666
1662
|
return h("label", {
|
|
1667
|
-
key: '
|
|
1663
|
+
key: '4007d3a533b1d4f199cd143fe0c1d3851a4906b1',
|
|
1668
1664
|
htmlFor: this.name,
|
|
1669
1665
|
class: `input-label ${this.disabled ? 'text-lighter' : ''}`
|
|
1670
1666
|
}, this.label, this.required && h("span", {
|
|
1671
|
-
key: '
|
|
1667
|
+
key: '319f85ff60d45e24ba8e21ace46b44534f9e1cbf'
|
|
1672
1668
|
}, h("span", {
|
|
1673
|
-
key: '
|
|
1669
|
+
key: '329b9936137fafa7aae9a442296eb44baaf1ab85',
|
|
1674
1670
|
"aria-hidden": "true"
|
|
1675
1671
|
}, "*"), h("span", {
|
|
1676
|
-
key: '
|
|
1672
|
+
key: 'acac48485fa35c9245bb8795cab0a2b40eb1cee2',
|
|
1677
1673
|
class: "sr-only"
|
|
1678
1674
|
}, "required")));
|
|
1679
1675
|
}
|
|
1680
1676
|
};
|
|
1677
|
+
EdsInputLabel.style = EdsInputLabelStyle0;
|
|
1681
1678
|
const EdsInputRange = class {
|
|
1682
1679
|
constructor(hostRef) {
|
|
1683
1680
|
registerInstance(this, hostRef);
|
|
@@ -2088,7 +2085,7 @@ const EdsLink = class {
|
|
|
2088
2085
|
const labelClasses = this.hideLabelOnSmallScreen ? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
|
|
2089
2086
|
: '';
|
|
2090
2087
|
return h(ComponentType, {
|
|
2091
|
-
key: '
|
|
2088
|
+
key: 'bdb8851264265b71dab033b807389ccd26519696',
|
|
2092
2089
|
class: `${classes || ''} ${this.extraClass || ''}`,
|
|
2093
2090
|
href: !this.disabled ? this.url : undefined,
|
|
2094
2091
|
target: this.external && !this.disabled ? '_blank' : undefined,
|
|
@@ -2099,10 +2096,10 @@ const EdsLink = class {
|
|
|
2099
2096
|
download: this.download ? '' : undefined,
|
|
2100
2097
|
onClick: event => this.handleClick(event)
|
|
2101
2098
|
}, h("span", {
|
|
2102
|
-
key: '
|
|
2099
|
+
key: 'fdf681ed48873939fb147c51fce59c7ff8ae772e',
|
|
2103
2100
|
class: "z-1 relative inline-flex items-center justify-center"
|
|
2104
2101
|
}, this.renderLeftIcon(), h("span", {
|
|
2105
|
-
key: '
|
|
2102
|
+
key: 'aa2ac0a8c0d12197a4c2c3263b1550f83a1df72f',
|
|
2106
2103
|
class: labelClasses
|
|
2107
2104
|
}, this.label), this.renderRightIcon()));
|
|
2108
2105
|
}
|
|
@@ -2173,13 +2170,13 @@ const EdsLogo = class {
|
|
|
2173
2170
|
render() {
|
|
2174
2171
|
const logoContent = this.getLogo();
|
|
2175
2172
|
return h("a", {
|
|
2176
|
-
key: '
|
|
2173
|
+
key: 'ff5c1ee09b325dca504a73b2d9eb4910fb67835d',
|
|
2177
2174
|
href: this.href,
|
|
2178
2175
|
onClick: () => this.handleClick(),
|
|
2179
2176
|
class: "eds-logo-wrapper",
|
|
2180
2177
|
"aria-label": this.label
|
|
2181
2178
|
}, h("div", {
|
|
2182
|
-
key: '
|
|
2179
|
+
key: '10ef011b7e3725231cf12771be38b209661709ed',
|
|
2183
2180
|
innerHTML: logoContent
|
|
2184
2181
|
}));
|
|
2185
2182
|
}
|
|
@@ -2289,40 +2286,40 @@ const EdsModal = class {
|
|
|
2289
2286
|
// Generate a unique id for the title so we can reference it for aria-labelledby.
|
|
2290
2287
|
const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
2291
2288
|
return h("div", {
|
|
2292
|
-
key: '
|
|
2289
|
+
key: '064613bfc4ada7e980d47b7ccb37b21e313731ca',
|
|
2293
2290
|
id: "eds-modal",
|
|
2294
2291
|
class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-9999999 flex`,
|
|
2295
2292
|
role: "dialog",
|
|
2296
2293
|
"aria-modal": "true",
|
|
2297
2294
|
"aria-labelledby": titleId
|
|
2298
2295
|
}, this.isOpen && h("div", {
|
|
2299
|
-
key: '
|
|
2296
|
+
key: '6430a5e2734f948e40ccdc7bfcbd6e934070ff25',
|
|
2300
2297
|
class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
|
|
2301
2298
|
,
|
|
2302
2299
|
|
|
2303
2300
|
onClick: () => this.close()
|
|
2304
2301
|
}), h("div", {
|
|
2305
|
-
key: '
|
|
2302
|
+
key: '468ce4425ce69c7612d9dbca6b812d7b0c2f869a',
|
|
2306
2303
|
class: `container absolute bg-inverse z-10 ${this.getModalPositionClasses()} grow justify-center`
|
|
2307
2304
|
}, h("div", {
|
|
2308
|
-
key: '
|
|
2305
|
+
key: 'e694805e5c39df16801fd2f13eaf2f113fbe2c5e',
|
|
2309
2306
|
class: `flex justify-between items-center border-b-2 border-softer px-20 py-20 ${this.inverseHeader ? 'bg-strongest text-inverse' : 'bg-dark text-default'}`
|
|
2310
2307
|
}, h("span", {
|
|
2311
|
-
key: '
|
|
2308
|
+
key: 'f4c1204f3971618138bd8385b15face3acd1ea71',
|
|
2312
2309
|
id: titleId,
|
|
2313
2310
|
class: `f-heading-04 ${this.getTruncateClass()}`
|
|
2314
2311
|
}, this.heading), h("eds-button", {
|
|
2315
|
-
key: '
|
|
2312
|
+
key: '813ba1a0c5d357187fc73964bb66230a15593ddc',
|
|
2316
2313
|
intent: "tertiary",
|
|
2317
2314
|
icon: "close",
|
|
2318
2315
|
"aria-label": "Close modal",
|
|
2319
2316
|
onClick: () => this.close(),
|
|
2320
2317
|
"extra-class": "ml-8 text-default"
|
|
2321
2318
|
})), h("div", {
|
|
2322
|
-
key: '
|
|
2319
|
+
key: '9ae10bc0e79c4553c2a5bdd2dbacd7a97d99f50c',
|
|
2323
2320
|
class: "pt-8 px-20 py-20"
|
|
2324
2321
|
}, h("slot", {
|
|
2325
|
-
key: '
|
|
2322
|
+
key: 'f460df4582e298289ab7abcd5417b7ef8d8ac827'
|
|
2326
2323
|
}))));
|
|
2327
2324
|
}
|
|
2328
2325
|
get el() {
|
|
@@ -2497,12 +2494,12 @@ const EdsPagination = class {
|
|
|
2497
2494
|
}
|
|
2498
2495
|
render() {
|
|
2499
2496
|
return h("div", {
|
|
2500
|
-
key: '
|
|
2497
|
+
key: 'a92aad013df27ce619c50ee8ed273c4799d9b55b'
|
|
2501
2498
|
}, this.total > 0 && this.mode === 'default' && h("p", {
|
|
2502
|
-
key: '
|
|
2499
|
+
key: '33b6a436765a10356cf201c19b837f668a74a035',
|
|
2503
2500
|
class: "f-ui-03 text-lightest mb-28 w-full text-center"
|
|
2504
2501
|
}, h("span", {
|
|
2505
|
-
key: '
|
|
2502
|
+
key: '0c45ab429986ba7537abbdaafddd4b960b92f41a',
|
|
2506
2503
|
class: "sr-only"
|
|
2507
2504
|
}, "Results:"), this.pageResults()), this.mode === 'navigator' || this.lastPage && this.lastPage > 1 ? h("nav", {
|
|
2508
2505
|
"aria-label": "Pagination"
|
|
@@ -2631,12 +2628,12 @@ const EdsSocialNetworks = class {
|
|
|
2631
2628
|
*/
|
|
2632
2629
|
render() {
|
|
2633
2630
|
return h("div", {
|
|
2634
|
-
key: '
|
|
2631
|
+
key: '6d52d64b09170108d1b61157d0ab126cefa794be'
|
|
2635
2632
|
}, h("p", {
|
|
2636
|
-
key: '
|
|
2633
|
+
key: '97e929fdaff0bcd4360140428007da0294567ea9',
|
|
2637
2634
|
class: "f-ui-02"
|
|
2638
2635
|
}, this.heading), h("ul", {
|
|
2639
|
-
key: '
|
|
2636
|
+
key: '3264e9e0ac366c4a502b69f6aa8545935b8536e7',
|
|
2640
2637
|
class: "mt-12 flex gap-4"
|
|
2641
2638
|
}, this.socialNetworks.map((network, index) => h("li", {
|
|
2642
2639
|
key: index
|
|
@@ -3350,13 +3347,13 @@ const EdsTabs = class {
|
|
|
3350
3347
|
}
|
|
3351
3348
|
render() {
|
|
3352
3349
|
return h("div", {
|
|
3353
|
-
key: '
|
|
3350
|
+
key: 'dd41d2d7ccbe03e08d3c20a2e9a370e69dfd1459',
|
|
3354
3351
|
id: `${this.identifier}`
|
|
3355
3352
|
}, h("div", {
|
|
3356
|
-
key: '
|
|
3353
|
+
key: '14c95711c8e7df2b7f6f0557ce233bc1a68ad31b',
|
|
3357
3354
|
class: "scroller-x overflow-x-auto max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28"
|
|
3358
3355
|
}, h("nav", {
|
|
3359
|
-
key: '
|
|
3356
|
+
key: '3ed1c5cc5d0aa1e7cb4bebe337885c7e5687aa68',
|
|
3360
3357
|
ref: el => this.tabContainer = el,
|
|
3361
3358
|
class: "inline-flex",
|
|
3362
3359
|
"aria-label": this.navAriaLabel
|
|
@@ -3369,7 +3366,7 @@ const EdsTabs = class {
|
|
|
3369
3366
|
onClick: () => this.handleTabClick(index, tab.label)
|
|
3370
3367
|
}), tab.label || tab.ariaLabel);
|
|
3371
3368
|
}))), h("div", {
|
|
3372
|
-
key: '
|
|
3369
|
+
key: '63399c53b2e5d642676d7f884bdecec0f8c515de',
|
|
3373
3370
|
class: "tab-panels"
|
|
3374
3371
|
}, this.parsedTabs.map((_, index) => h("div", {
|
|
3375
3372
|
hidden: index !== this.activeIndex
|
|
@@ -3430,7 +3427,7 @@ const EdsTag = class {
|
|
|
3430
3427
|
size: this.size
|
|
3431
3428
|
});
|
|
3432
3429
|
return h("span", {
|
|
3433
|
-
key: '
|
|
3430
|
+
key: 'a0d8788511615d0099fd764501449476126d343f',
|
|
3434
3431
|
class: classes
|
|
3435
3432
|
}, this.label);
|
|
3436
3433
|
}
|
|
@@ -3467,13 +3464,13 @@ const EdsUser = class {
|
|
|
3467
3464
|
render() {
|
|
3468
3465
|
const user = this.parsedUser;
|
|
3469
3466
|
return h("div", {
|
|
3470
|
-
key: '
|
|
3467
|
+
key: 'b30b0a30a94c6bd9046b234cd793da80c1b16de8',
|
|
3471
3468
|
class: "block"
|
|
3472
3469
|
}, h("div", {
|
|
3473
|
-
key: '
|
|
3470
|
+
key: '9ecea595c3d900aeda7c75a6aa5ae84999d775e1',
|
|
3474
3471
|
class: "flex items-center"
|
|
3475
3472
|
}, h("eds-dropdown", {
|
|
3476
|
-
key: '
|
|
3473
|
+
key: '6a4c4751aaeaa6426ee4c89305b5c419ee912ced',
|
|
3477
3474
|
label: `Hi, ${user.preferred_username}`,
|
|
3478
3475
|
intent: "tertiary",
|
|
3479
3476
|
"aria-label": "User Menu",
|
|
@@ -3482,36 +3479,36 @@ const EdsUser = class {
|
|
|
3482
3479
|
icon: "chevron-down",
|
|
3483
3480
|
class: "text-default"
|
|
3484
3481
|
}, h("div", {
|
|
3485
|
-
key: '
|
|
3482
|
+
key: '8e695af42fd229ca71e5d8f6fe367ed5ecc4184b',
|
|
3486
3483
|
class: "min-w-[280px] p-8"
|
|
3487
3484
|
}, h("div", {
|
|
3488
|
-
key: '
|
|
3485
|
+
key: 'd28e78ace074d7513a002297558219afae079646',
|
|
3489
3486
|
class: "flex gap-x-16"
|
|
3490
3487
|
}, h("eds-avatar", {
|
|
3491
|
-
key: '
|
|
3488
|
+
key: 'e9895e380ece01d116c14dbf0424061b1a039261',
|
|
3492
3489
|
"first-name": user.given_name,
|
|
3493
3490
|
"last-name": user.family_name,
|
|
3494
3491
|
initials: this.initials,
|
|
3495
3492
|
color: "grey"
|
|
3496
3493
|
}), h("div", {
|
|
3497
|
-
key: '
|
|
3494
|
+
key: '1597248135606e3300546b3278114cd8cc36d4b5',
|
|
3498
3495
|
class: "max-w-full"
|
|
3499
3496
|
}, user.name && h("p", {
|
|
3500
|
-
key: '
|
|
3497
|
+
key: 'fa04e93e50f3cf6d1e3d49dafc02d0dd5233a9f4',
|
|
3501
3498
|
class: "f-ui-01 text-default w-full text-ellipsis"
|
|
3502
3499
|
}, user.name), user.preferred_username && h("p", {
|
|
3503
|
-
key: '
|
|
3500
|
+
key: '1203bf8078cb1c2a4d31effbe96e7aefd9222eb2',
|
|
3504
3501
|
class: "f-ui-03-light text-light mt-4"
|
|
3505
3502
|
}, user.preferred_username), user.email && h("p", {
|
|
3506
|
-
key: '
|
|
3503
|
+
key: '6fcd932e87eb6e086daf61d2d8d16e6f8f27f12a',
|
|
3507
3504
|
class: "f-ui-03-light text-light mt-4"
|
|
3508
3505
|
}, user.email))), h("eds-block-break", {
|
|
3509
|
-
key: '
|
|
3506
|
+
key: '5811252802eecc3f5c001705c8e8fb94fb33e1bb'
|
|
3510
3507
|
}), h("div", {
|
|
3511
|
-
key: '
|
|
3508
|
+
key: 'd28913e74e9924f51e9b1e92a0f42691c733c438',
|
|
3512
3509
|
class: "text-default flex w-full flex-col gap-y-8"
|
|
3513
3510
|
}, h("slot", {
|
|
3514
|
-
key: '
|
|
3511
|
+
key: 'bb003f9bff1042b2778a7a924dc87c7baf1a9fb7'
|
|
3515
3512
|
}))))));
|
|
3516
3513
|
}
|
|
3517
3514
|
get hostEl() {
|
|
@@ -29,9 +29,9 @@ const EdsCookiesPreference = class {
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
return h("div", {
|
|
32
|
-
key: '
|
|
32
|
+
key: '4563e11542b6cab4f509ec25646a0e1f8380af6c'
|
|
33
33
|
}, h("eds-link", {
|
|
34
|
-
key: '
|
|
34
|
+
key: '24185ecd7818920490c1ca5c742e0f1a884f27da',
|
|
35
35
|
size: "small",
|
|
36
36
|
intent: this.intent,
|
|
37
37
|
label: this.buttonText,
|
|
@@ -61,20 +61,20 @@ const EdsFeedback = class {
|
|
|
61
61
|
const levelNum = this.headingLevel.replace('h', '');
|
|
62
62
|
const headingClass = `f-heading-${levelNum.padStart(2, '0')} my-4`;
|
|
63
63
|
return h("div", {
|
|
64
|
-
key: '
|
|
64
|
+
key: 'b51bb78eea70babd1b1ca98ed5e657184d8e459f',
|
|
65
65
|
class: "grid inline"
|
|
66
66
|
}, h(HeadingTag, {
|
|
67
|
-
key: '
|
|
67
|
+
key: 'eb84cce3a03aec99d0980ecd3c4aa4338f8d14e2',
|
|
68
68
|
class: headingClass
|
|
69
69
|
}, this.label), h("p", {
|
|
70
|
-
key: '
|
|
70
|
+
key: '5923739b4a7e73dc1c83710fe1535d51d6289b02',
|
|
71
71
|
class: "f-body-01 text-light"
|
|
72
72
|
}, this.description), h("eds-rating", {
|
|
73
|
-
key: '
|
|
73
|
+
key: '08d4b80838bc758cfdcf6f909f4bb41ae00d4c40',
|
|
74
74
|
"rating-type": this.type,
|
|
75
75
|
"rating-count": this.count
|
|
76
76
|
}), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && h("span", {
|
|
77
|
-
key: '
|
|
77
|
+
key: '849014d7a3c2ebf78b1de434d7ad92549c0ae2de',
|
|
78
78
|
class: "f-ui-04 text-lighter"
|
|
79
79
|
}, this.parsedMappings[this.selectedRating - 1]));
|
|
80
80
|
}
|
package/eds-frame.entry.esm.js
CHANGED
|
@@ -73,13 +73,13 @@ const EdsFrame = class {
|
|
|
73
73
|
}
|
|
74
74
|
render() {
|
|
75
75
|
return h("div", {
|
|
76
|
-
key: '
|
|
76
|
+
key: 'acfa57c701b5c683b3ff48ac2ff6a7c782977cd4',
|
|
77
77
|
class: this.articleClasses()
|
|
78
78
|
}, h("div", {
|
|
79
|
-
key: '
|
|
79
|
+
key: 'd62b6f7f67e41a6c8f0948c9d94e991d83dbe273',
|
|
80
80
|
class: "effect-height flex items-center justify-between py-8 px-12"
|
|
81
81
|
}, h("span", {
|
|
82
|
-
key: '
|
|
82
|
+
key: '40618b0353599888578e08a5422da754f97455d0',
|
|
83
83
|
class: "f-ui-02"
|
|
84
84
|
}, this.frameLabel), !this.iframeError && this.url && this.urlLabel ? h("eds-link", {
|
|
85
85
|
label: this.urlLabel,
|
|
@@ -90,7 +90,7 @@ const EdsFrame = class {
|
|
|
90
90
|
disabled: false,
|
|
91
91
|
icon: "arrow-diagonal"
|
|
92
92
|
}) : null), h("div", {
|
|
93
|
-
key: '
|
|
93
|
+
key: '96656482b2732aa766d1bcb45f28189991adb493',
|
|
94
94
|
class: "border-softer"
|
|
95
95
|
}, this.iframeError ? h("div", {
|
|
96
96
|
class: "container ml-8 mr-8 mt-16"
|
|
@@ -25,7 +25,7 @@ const EdsProgressBar = class {
|
|
|
25
25
|
// Fill bar classes (conditionally rounded only when >0)
|
|
26
26
|
const fillClasses = ['inner', 'h-full', 'transition-all', 'duration-300', 'bg-accent', progressValue > 0 && this.rounded ? 'rounded-lg' : '', 'z-0'].filter(Boolean).join(' ');
|
|
27
27
|
return h("div", {
|
|
28
|
-
key: '
|
|
28
|
+
key: '4d1905ce42ee1b539519c8bdbcc9cf8d8aad9f03',
|
|
29
29
|
role: "progressbar",
|
|
30
30
|
"aria-valuemin": "0",
|
|
31
31
|
"aria-valuemax": "100",
|
|
@@ -33,16 +33,16 @@ const EdsProgressBar = class {
|
|
|
33
33
|
"aria-valuetext": `${progressValue}%`,
|
|
34
34
|
class: outerClasses
|
|
35
35
|
}, h("div", {
|
|
36
|
-
key: '
|
|
36
|
+
key: '7feec42063d2111f68e9957e1b5ca5550df284d0',
|
|
37
37
|
class: fillClasses,
|
|
38
38
|
style: {
|
|
39
39
|
width: `${progressValue}%`
|
|
40
40
|
}
|
|
41
41
|
}), h("div", {
|
|
42
|
-
key: '
|
|
42
|
+
key: '13ab32e048f0b9e68e8bef96775b5204b653ed95',
|
|
43
43
|
class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10"
|
|
44
44
|
}, h("span", {
|
|
45
|
-
key: '
|
|
45
|
+
key: 'e46641bd65faf5ae4fb3a3c0542d312c9e9f1565',
|
|
46
46
|
class: "text-default f-body-02"
|
|
47
47
|
}, progressValue, "%")));
|
|
48
48
|
}
|