@ebrains/react 1.2.0 → 1.4.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.
@@ -447,7 +447,7 @@ const EdsFooter = class {
447
447
  */
448
448
  render() {
449
449
  return h("footer", {
450
- key: '7bbc8cd8e0e3a153dc30bb3569e83afc0bc09b0a'
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: '9ee8ada698546344b18e557ee1de76042cd727ed',
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: 'e795e5bba0273b4147c66ed667142997bc0cbaff',
465
+ key: '054190192082a4fdd2435ef62e5e7765386149f5',
466
466
  class: "container flex items-center gap-20 lg:flex-nowrap"
467
467
  }, h("div", {
468
- key: 'fa09a0dbccb035b1e4f496aa447aca241bcc2415',
468
+ key: 'baa874cda99a882f33643609ffd2b99f09db3646',
469
469
  class: "flex items-center gap-x-12"
470
470
  }, h("a", {
471
- key: '578d6a8463e65d07278f8328c108ee266cfba2b8',
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: '5b9e987c2ecf62fb4f44c1faacad7c569a149805',
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: 'df75949c0718b8fb7dd449a6e7df39d332da366f'
484
+ key: 'a02153ae5b772b105272eac575911826747ea246'
485
485
  }, h("div", {
486
- key: 'f83d31b16d0601cd456d5cb72e9fa2adb29a2b66',
486
+ key: 'a274e52402142dce7df575b29ce8802d1d662368',
487
487
  class: "f-ui-04 text-light"
488
488
  }, h("p", {
489
- key: 'dcdf09d78ca64c5391d56fe5ed69bab987cbf67b'
489
+ key: 'ae2c393b8585aecd25d08ad20fe8bd712f9c12b5'
490
490
  }, this.fundedBy), h("div", {
491
- key: 'af279fb5dfdf0a8f1f85e6ce7446dc3a0eeac397',
491
+ key: '9ef102155624ef47071d4285ea00c65d66d8606e',
492
492
  class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap inline-block"
493
493
  }, h("span", {
494
- key: '026b41fa6162ffb6825ccf98364b4caf64b6457a',
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: '27cb561815d6918567ab8cfa1148019aca8aeda0',
504
+ key: '3ffce63f46352acd80eff48fb121b5ee165c1ad5',
505
505
  class: "ml-auto pl-12"
506
506
  }, this.enableScrollTop ? h("eds-button", {
507
507
  id: "backToTop",
@@ -517,11 +517,24 @@ const EdsFooter = class {
517
517
  EdsFooter.style = EdsFooterStyle0;
518
518
 
519
519
  // utils/validators.ts
520
- function validateField(name, value, type, required, maxLength) {
520
+ function validateField(name, value, type, required, maxLength, min, max) {
521
521
  const errors = [];
522
522
  if (required && !value) {
523
523
  errors.push(`${name} is required.`);
524
524
  }
525
+ if (type === 'number') {
526
+ const parsed = typeof value === 'number' ? value : parseFloat(value);
527
+ if (isNaN(parsed)) {
528
+ errors.push(`${name} must be a valid number.`);
529
+ } else {
530
+ if (typeof min === 'number' && parsed < min) {
531
+ errors.push(`${name} must be greater than or equal to ${min}.`);
532
+ }
533
+ if (typeof max === 'number' && parsed > max) {
534
+ errors.push(`${name} must be less than or equal to ${max}.`);
535
+ }
536
+ }
537
+ }
525
538
  if (maxLength && typeof value === 'string' && value.length > maxLength) {
526
539
  errors.push(`${name} must be at most ${maxLength} characters.`);
527
540
  }
@@ -622,7 +635,7 @@ isFieldVisible) {
622
635
  const inputEl = findFieldElement(formEl, field.name);
623
636
  if (inputEl) {
624
637
  const value = inputEl.value;
625
- const fieldErrors = validateField(field.name, value, field.type, field.required, field.maxlength);
638
+ const fieldErrors = validateField(field.name, value, field.type, field.required, field.maxlength, field.min, field.max);
626
639
  if (fieldErrors.length > 0) {
627
640
  errors[field.name] = fieldErrors;
628
641
  hasError = true;
@@ -650,7 +663,7 @@ function validateInputField(field, value, formEl) {
650
663
  }
651
664
  return validateSingleBox(field.name, field.required, formEl);
652
665
  }
653
- return validateField(field.name, value, field.type, field.required, field.maxlength);
666
+ return validateField(field.name, value, field.type, field.required, field.maxlength, field.min, field.max);
654
667
  }
655
668
 
656
669
  /**
@@ -726,11 +739,11 @@ const EdsForm = class {
726
739
  linkElement.dispatchEvent(event);
727
740
  }
728
741
  isFieldVisible(field) {
729
- if (!field.condition) {
730
- return true;
731
- }
732
- const parentValue = this.values[field.condition.field];
733
- return parentValue === field.condition.value;
742
+ if (!field.condition) return true;
743
+ const actual = this.values[field.condition.field];
744
+ const expected = field.condition.value;
745
+ // Handle loose match between booleans and strings
746
+ return String(actual) === String(expected);
734
747
  }
735
748
  validateForm() {
736
749
  const {
@@ -820,6 +833,7 @@ const EdsForm = class {
820
833
  }
821
834
  handleChange(e, field) {
822
835
  const target = e.target;
836
+ let newValue = target.value;
823
837
  if (target.type === 'checkbox') {
824
838
  // Get the current comma separated string or default to an empty string.
825
839
  const currentStr = this.values[field.name] || '';
@@ -834,16 +848,14 @@ const EdsForm = class {
834
848
  // Remove the value from the array if the checkbox is unchecked.
835
849
  valuesArray = valuesArray.filter(item => item !== target.value);
836
850
  }
837
- // Reassemble the comma separated string and update your form values.
838
- this.values = Object.assign(Object.assign({}, this.values), {
839
- [field.name]: valuesArray.join(',')
840
- });
841
- } else {
842
- // Handle non-checkbox input normally.
843
- this.values = Object.assign(Object.assign({}, this.values), {
844
- [field.name]: target.value
845
- });
851
+ newValue = valuesArray.join(',');
852
+ } else if (target.type === 'radio') {
853
+ if (!target.checked) return; // Only react to the selected radio
854
+ newValue = target.value;
846
855
  }
856
+ this.values = Object.assign(Object.assign({}, this.values), {
857
+ [field.name]: newValue
858
+ });
847
859
  // If it’s the password field, return here for no event emission
848
860
  if (field.name === 'password') {
849
861
  return;
@@ -852,13 +864,15 @@ const EdsForm = class {
852
864
  this.form.emit({
853
865
  event: 'change',
854
866
  field: field.name,
855
- value: target.type === 'checkbox' ? this.values[field.name] : target.value,
867
+ value: newValue,
856
868
  message: `${field.name} updated`
857
869
  //data: this.makeFormData()
858
870
  });
859
871
  }
860
872
  handleInput(e, field) {
861
873
  const target = e.target;
874
+ if (target.type === 'radio' && !target.checked) return;
875
+ const newValue = target.value;
862
876
  // Update the field's value in state.
863
877
  //this.values = { ...this.values, [field.name]: target.value };
864
878
  // Create a copy of the current errors.
@@ -877,7 +891,7 @@ const EdsForm = class {
877
891
  this.form.emit({
878
892
  event: 'input',
879
893
  field: field.name,
880
- value: target.type === 'checkbox' ? this.values[field.name] : target.value,
894
+ value: newValue,
881
895
  message: `${field.name} updated`
882
896
  //data: this.makeFormData()
883
897
  });
@@ -942,14 +956,14 @@ const EdsForm = class {
942
956
  const hiddenFields = this.parsedFields.filter(field => field.type === 'hidden');
943
957
  const otherFields = this.parsedFields.filter(field => field.type !== 'hidden');
944
958
  return h("form", {
945
- key: '1418bbac3ea7c994bf363602e6ddd18ed3c6c661',
959
+ key: '98825e73a0279bed49b82caf2cc0529f30b53c70',
946
960
  ref: el => this.formEl = el,
947
961
  autocomplete: "on",
948
962
  onSubmit: this.handleSubmit
949
963
  }, h("div", {
950
- key: 'ae6f05d50a1c32312e585d55f0b5d64b0dd1fc9c'
964
+ key: '6b9abe2a6c2d091d57ea9ca383d9edb5d48445dc'
951
965
  }, h("slot", {
952
- key: '09c9ddd0d3b77ae9cbcb54389b799af7a6fc6c9e'
966
+ key: '930bcd24d9b1c6ec1b29ccb1c3150897fa9d0a35'
953
967
  }), hiddenFields.map((field, index) => h("eds-input", {
954
968
  key: index,
955
969
  type: "hidden",
@@ -967,6 +981,9 @@ const EdsForm = class {
967
981
  label: field.label,
968
982
  placeholder: field.placeholder,
969
983
  value: this.values[field.name] || null,
984
+ min: field.min,
985
+ max: field.max,
986
+ step: field.step,
970
987
  type: field.type,
971
988
  icon: field.icon || null,
972
989
  disabled: field.disabled,
@@ -983,10 +1000,10 @@ const EdsForm = class {
983
1000
  options: field.options
984
1001
  });
985
1002
  })), this.formBtn && h("div", {
986
- key: 'c97041c2e421c21a38513d3b456991167f5d1cdb',
1003
+ key: 'e0ab2f16ff4a677a2b09a1069212e374f6d6eff8',
987
1004
  class: "mt-20"
988
1005
  }, h("eds-button", {
989
- key: '96c35271f7227b9acd467fe822745bd41d3eaa80',
1006
+ key: '781250d5e456a3f0176ade6e28356063c6981bb7',
990
1007
  intent: "primary",
991
1008
  label: this.formBtnLabel,
992
1009
  disabled: this.isSubmitting,
@@ -1171,20 +1188,20 @@ const EdsHeader = class {
1171
1188
  // Logo color variant: default and inverse use 'color', strong uses 'color-white'
1172
1189
  const logoType = this.headerVariant === 'strong' ? 'color-white' : 'color';
1173
1190
  return h("header", {
1174
- key: '3c6ae4789993e140ee8a00e7f32c8ff3a2793b87',
1191
+ key: '635e25577674250c4ce8cdc91e29fa0c93b7e821',
1175
1192
  class: `flex items-center justify-between relative z-10 ${classes}`
1176
1193
  }, h("div", {
1177
- key: 'a406f073ae110622ad8930c61438b46d16553362',
1194
+ key: '41275c9aedeff533f00348dfa85b49fdb1a3f25e',
1178
1195
  class: "mr-auto w-[200px] h-[85px]"
1179
1196
  }, h("eds-logo", {
1180
- key: '19c91de446b76f76e97f160c0af538db2637ffdc',
1197
+ key: 'fa8949ebbeab567b3770c6795a890f9187b66cf2',
1181
1198
  type: logoType,
1182
1199
  href: this.homeUrl
1183
1200
  })), this.parsedLinks && h("nav", {
1184
- key: '921c87b668b25abc8117014880c9669a96c04122',
1201
+ key: '64428c01fee019a77b15b2ad43fbdb18cf5cc1e9',
1185
1202
  class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex"
1186
1203
  }, h("ul", {
1187
- key: 'b0de4a0eaafb7409eeedc77104b39fed8a55441b',
1204
+ key: '8b6e7e82f077409987e0271f1d1c57d3473a0921',
1188
1205
  class: "flex gap-x-2"
1189
1206
  }, this.parsedLinks.map(link => h("eds-link", {
1190
1207
  label: link.label,
@@ -1196,12 +1213,12 @@ const EdsHeader = class {
1196
1213
  external: link.external,
1197
1214
  "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
1215
  })))), h("slot", {
1199
- key: '2b3d292703b8b7083a7ae1dcfbefbd091d5a744b'
1216
+ key: '7ba569eafe18d902e78978840520d708b665a91b'
1200
1217
  }), this.menuEnabled && h("div", {
1201
- key: '10d16f0f0ecdc450acf900dd8d7d7b439deb8dcd',
1218
+ key: '54c21f2e71a44049c56e4b31ba241996a1e658c3',
1202
1219
  class: "md:hidden flex overflow-hidden px-16"
1203
1220
  }, h("eds-button", {
1204
- key: '2e62e0a57bf008d0e566988011beab9a09f7774d',
1221
+ key: 'e0bcc14abcad7151cacf19a4c50f238e39538754',
1205
1222
  "aria-label": "Menu",
1206
1223
  intent: this.headerVariant === 'default' ? 'ghost' : 'ghostInverse',
1207
1224
  icon: "menu",
@@ -1353,6 +1370,9 @@ const EdsInput = class {
1353
1370
  this.maxLength = undefined;
1354
1371
  this.options = [];
1355
1372
  this.extraClass = undefined;
1373
+ this.min = undefined;
1374
+ this.max = undefined;
1375
+ this.step = undefined;
1356
1376
  this.innerVal = '';
1357
1377
  this.maxLengthReached = false;
1358
1378
  }
@@ -1375,7 +1395,7 @@ const EdsInput = class {
1375
1395
  const withIcon = !!this.icon;
1376
1396
  const describedBy = this.hasMessage || this.error ? `${this.name}-error` : '';
1377
1397
  return h("div", {
1378
- key: '5c66c14b19aa3d5fc37e7a77a2d1194fa0be9b8c',
1398
+ key: '8645092d1b4c53609cbac2077fd0575f7bae4aaa',
1379
1399
  class: "relative flex items-center"
1380
1400
  }, this.type === 'textarea' ? h("textarea", {
1381
1401
  id: this.inputId || this.name,
@@ -1404,7 +1424,7 @@ const EdsInput = class {
1404
1424
  value: option.value,
1405
1425
  selected: option.value === this.innerVal,
1406
1426
  key: option.value
1407
- }, option.label))) : h("input", {
1427
+ }, option.label))) : h("input", Object.assign({
1408
1428
  id: this.inputId || this.name,
1409
1429
  name: this.name,
1410
1430
  placeholder: this.placeholder,
@@ -1412,7 +1432,12 @@ const EdsInput = class {
1412
1432
  required: this.required,
1413
1433
  disabled: this.disabled,
1414
1434
  type: this.type,
1415
- checked: ['radio', 'checkbox'].includes(this.type) ? this.checked : undefined,
1435
+ checked: ['radio', 'checkbox'].includes(this.type) ? this.checked : undefined
1436
+ }, this.type === 'number' ? {
1437
+ min: this.min,
1438
+ max: this.max,
1439
+ step: this.step
1440
+ } : {}, {
1416
1441
  class: `
1417
1442
  ${this.extraClass || ''}
1418
1443
  input ${this.type === 'radio' ? 'input-radio' : this.type === 'checkbox' ? 'input-checkbox' : ''}
@@ -1424,11 +1449,11 @@ const EdsInput = class {
1424
1449
  maxlength: this.maxLength,
1425
1450
  onInput: this.handleInput,
1426
1451
  onChange: this.handleInput
1427
- }), this.maxLength && this.type === 'textarea' && h("span", {
1428
- key: '4326db3729dea8bbddb7a109a90424aa832aded7',
1452
+ })), this.maxLength && this.type === 'textarea' && h("span", {
1453
+ key: '3cbf1dbffabb0cb895c6b69651933867584606d0',
1429
1454
  class: `input-counter f-ui-05 absolute bottom-8 right-8 ${this.maxLengthReached ? 'input-counter-error' : ''}`
1430
1455
  }, this.maxLength), this.icon && h("eds-icon-wrapper", {
1431
- key: 'df2f5598aedd36b9cb2ce886fb8ea08da58dc5ff',
1456
+ key: 'fb3a7051ecb72a5f425a0590dae14ee731e40a60',
1432
1457
  class: `absolute top-1/2 left-[4px] -translate-y-1/2 ${this.disabled ? 'text-lightest' : 'text-lightest'}`,
1433
1458
  icon: this.icon
1434
1459
  }));
@@ -1450,21 +1475,44 @@ const EdsInputField = class {
1450
1475
  this.edsinput = createEvent(this, "edsinput", 7);
1451
1476
  this.edschange = createEvent(this, "edschange", 7);
1452
1477
  this.handleNativeInput = ev => {
1453
- var _a;
1478
+ var _a, _b;
1454
1479
  (_a = this.onInput) === null || _a === void 0 ? void 0 : _a.call(this, ev);
1455
1480
  if (this.shouldEmitValue()) {
1456
- const newValue = ev.target.value;
1481
+ const target = ev.target;
1482
+ let value = target.value;
1483
+ if (this.type === 'checkbox' && ((_b = this.parsedOptions) === null || _b === void 0 ? void 0 : _b.length) > 0) {
1484
+ // checkbox group case
1485
+ const checkboxes = this.hostEl.querySelectorAll(`input[type="checkbox"][name="${this.name}"]`);
1486
+ value = Array.from(checkboxes).filter(cb => cb.checked).map(cb => cb.value);
1487
+ } else if (this.type === 'checkbox') {
1488
+ value = target.checked;
1489
+ } else if (this.type === 'radio') {
1490
+ value = target.value;
1491
+ } else {
1492
+ value = target.value;
1493
+ }
1457
1494
  this.edsinput.emit({
1458
- value: newValue
1495
+ value
1459
1496
  });
1460
1497
  }
1461
1498
  };
1462
1499
  this.handleNativeChange = ev => {
1463
- var _a;
1500
+ var _a, _b;
1464
1501
  (_a = this.onChangeNative) === null || _a === void 0 ? void 0 : _a.call(this, ev);
1465
1502
  if (this.shouldEmitValue()) {
1466
1503
  const target = ev.target;
1467
- const value = target.value;
1504
+ let value = target.value;
1505
+ if (this.type === 'checkbox' && ((_b = this.parsedOptions) === null || _b === void 0 ? void 0 : _b.length) > 0) {
1506
+ // checkbox group case
1507
+ const checkboxes = this.hostEl.querySelectorAll(`input[type="checkbox"][name="${this.name}"]`);
1508
+ value = Array.from(checkboxes).filter(cb => cb.checked).map(cb => cb.value);
1509
+ } else if (this.type === 'checkbox') {
1510
+ value = target.checked;
1511
+ } else if (this.type === 'radio') {
1512
+ value = target.value;
1513
+ } else {
1514
+ value = target.value;
1515
+ }
1468
1516
  this.edschange.emit({
1469
1517
  value
1470
1518
  });
@@ -1485,6 +1533,9 @@ const EdsInputField = class {
1485
1533
  this.errorMessage = undefined;
1486
1534
  this.value = undefined;
1487
1535
  this.maxLength = undefined;
1536
+ this.min = undefined;
1537
+ this.max = undefined;
1538
+ this.step = undefined;
1488
1539
  this.options = undefined;
1489
1540
  this.type = 'text';
1490
1541
  this.onChangeNative = undefined;
@@ -1507,7 +1558,7 @@ const EdsInputField = class {
1507
1558
  return [];
1508
1559
  }
1509
1560
  render() {
1510
- const inputOpts = {
1561
+ const inputOpts = Object.assign({
1511
1562
  name: this.name,
1512
1563
  id: this.inputId,
1513
1564
  placeholder: this.placeholder,
@@ -1520,10 +1571,13 @@ const EdsInputField = class {
1520
1571
  error: this.error,
1521
1572
  icon: this.icon,
1522
1573
  checked: this.checked
1523
- };
1574
+ }, this.type === 'number' ? {
1575
+ min: this.min,
1576
+ max: this.max,
1577
+ step: this.step
1578
+ } : {});
1524
1579
  return h("div", {
1525
- key: '2ff82dedd17922c5cb72fc30b7f616c7fafa7b07',
1526
- class: "space-y-8"
1580
+ key: '48926c14240f7e26d2277729d829d98ab17f9eee'
1527
1581
  }, this.type === 'checkbox' || this.type === 'radio' ? this.parsedOptions.length > 0 ? h("fieldset", {
1528
1582
  class: "space-y-4 mt-8"
1529
1583
  }, h("div", {
@@ -1548,7 +1602,7 @@ const EdsInputField = class {
1548
1602
  class: "flex items-center gap-x-8"
1549
1603
  }, h("eds-input", Object.assign({}, inputOpts, {
1550
1604
  value: this.value,
1551
- checked: this.value === 'on'
1605
+ checked: this.value === 'on' || this.checked
1552
1606
  })), this.label && h("eds-input-label", {
1553
1607
  name: this.inputId || this.name,
1554
1608
  label: this.label,
@@ -1593,21 +1647,26 @@ const EdsInputField = class {
1593
1647
  step: (_c = opt[2]) === null || _c === void 0 ? void 0 : _c.value,
1594
1648
  value: numberValue
1595
1649
  }));
1596
- })() : h("eds-input", Object.assign({}, inputOpts))), h("eds-input-footer", {
1597
- key: '4b8513dcd713d56953934b158ba1b9182e1497a8',
1650
+ })() : h("eds-input", Object.assign({}, inputOpts))), h("div", {
1651
+ key: '72b565ac1c52a56d7e563e227baf187d72f2ba21',
1652
+ class: "mt-4"
1653
+ }, h("eds-input-footer", {
1654
+ key: '65c40184d6fd5dfc730a46ffe8e826687c7d6f36',
1598
1655
  id: `${this.name}-footer`,
1599
1656
  name: this.name,
1600
1657
  message: this.message,
1601
1658
  "error-message": this.errorMessage,
1602
1659
  error: this.error,
1603
1660
  link: this.link
1604
- }));
1661
+ })));
1605
1662
  }
1606
1663
  get hostEl() {
1607
1664
  return getElement(this);
1608
1665
  }
1609
1666
  };
1610
1667
  EdsInputField.style = EdsInputFieldStyle0;
1668
+ 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}";
1669
+ const EdsInputFooterStyle0 = edsInputFooterCss;
1611
1670
  const EdsInputFooter = class {
1612
1671
  constructor(hostRef) {
1613
1672
  registerInstance(this, hostRef);
@@ -1619,31 +1678,33 @@ const EdsInputFooter = class {
1619
1678
  }
1620
1679
  render() {
1621
1680
  return h("div", {
1622
- key: 'd5424778da81d6558246efe97917d3e3ccfa9aaa',
1623
- class: "space-y-4 mt-4"
1681
+ key: 'a9f24f8726c7d5bcc3adfcb1d93a6076b0e672d8'
1624
1682
  }, this.error && this.errorMessage && h("div", {
1625
- key: 'e915fc1f4719f48eca5a831ac72913d2f91f633b',
1683
+ key: '5ed4b0881215887ed5532b4f6619cfe22f896773',
1626
1684
  id: `error_${this.name}`,
1627
1685
  class: "text-error flex items-center"
1628
1686
  }, h("eds-icon-wrapper", {
1629
- key: '9cc87cfd4955766947a2581604fe1e072f8d82a9',
1687
+ key: '978b51b85d34c05f5f86ffa228404514e7572145',
1630
1688
  icon: "warning"
1631
1689
  }), h("p", {
1632
- key: '564a2397fb7e8185e43e1c2be216c76060e7498e',
1690
+ key: '10c97eea1f6a835ad6c85618578fd4fa58a7d5f5',
1633
1691
  class: "f-ui-04 ml-4",
1634
1692
  innerHTML: this.errorMessage
1635
1693
  })), this.message && h("p", {
1636
- key: '24e0702df7e5c2fe4ef0cc6755159fefe76b70a7',
1694
+ key: '61db4e71da9136a1c2ede4bd30edb6c8f61e05d2',
1637
1695
  id: `desc_${this.name}`,
1638
1696
  class: "f-ui-05 text-lighter",
1639
1697
  innerHTML: this.message
1640
1698
  }), this.link && h("a", {
1641
- key: '9e3720a3ded9d755afd7755104df0942246f1fbe',
1699
+ key: 'f44a7c6c17be59a6e6361a1a10c842f9c99f4b47',
1642
1700
  href: this.link.url,
1643
1701
  class: "f-ui-05 effect-color hover:text-lighter underline underline-offset-4"
1644
1702
  }, this.link.label));
1645
1703
  }
1646
1704
  };
1705
+ EdsInputFooter.style = EdsInputFooterStyle0;
1706
+ 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}";
1707
+ const EdsInputLabelStyle0 = edsInputLabelCss;
1647
1708
  const EdsInputLabel = class {
1648
1709
  constructor(hostRef) {
1649
1710
  registerInstance(this, hostRef);
@@ -1654,20 +1715,21 @@ const EdsInputLabel = class {
1654
1715
  }
1655
1716
  render() {
1656
1717
  return h("label", {
1657
- key: 'd700690a67a8348836aec27d2ff4f4d4ee18b9c8',
1718
+ key: '4007d3a533b1d4f199cd143fe0c1d3851a4906b1',
1658
1719
  htmlFor: this.name,
1659
1720
  class: `input-label ${this.disabled ? 'text-lighter' : ''}`
1660
1721
  }, this.label, this.required && h("span", {
1661
- key: '9b52c053652db132a9bdb2d9fc64c569a529c2d9'
1722
+ key: '319f85ff60d45e24ba8e21ace46b44534f9e1cbf'
1662
1723
  }, h("span", {
1663
- key: 'cd17268b6048ebaa70dc7f905fc7f7bf3ed3fa34',
1724
+ key: '329b9936137fafa7aae9a442296eb44baaf1ab85',
1664
1725
  "aria-hidden": "true"
1665
1726
  }, "*"), h("span", {
1666
- key: '352d7b5ef080336a5c7b53e0b710d5b0d7aa0efe',
1727
+ key: 'acac48485fa35c9245bb8795cab0a2b40eb1cee2',
1667
1728
  class: "sr-only"
1668
1729
  }, "required")));
1669
1730
  }
1670
1731
  };
1732
+ EdsInputLabel.style = EdsInputLabelStyle0;
1671
1733
  const EdsInputRange = class {
1672
1734
  constructor(hostRef) {
1673
1735
  registerInstance(this, hostRef);
@@ -2078,7 +2140,7 @@ const EdsLink = class {
2078
2140
  const labelClasses = this.hideLabelOnSmallScreen ? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
2079
2141
  : '';
2080
2142
  return h(ComponentType, {
2081
- key: '8c7ab8b80b9765e83e4e57d59ba1b45fe36f15b7',
2143
+ key: 'bdb8851264265b71dab033b807389ccd26519696',
2082
2144
  class: `${classes || ''} ${this.extraClass || ''}`,
2083
2145
  href: !this.disabled ? this.url : undefined,
2084
2146
  target: this.external && !this.disabled ? '_blank' : undefined,
@@ -2089,10 +2151,10 @@ const EdsLink = class {
2089
2151
  download: this.download ? '' : undefined,
2090
2152
  onClick: event => this.handleClick(event)
2091
2153
  }, h("span", {
2092
- key: '94284b425a331f6a56a3e63db89fed5fa1a207c1',
2154
+ key: 'fdf681ed48873939fb147c51fce59c7ff8ae772e',
2093
2155
  class: "z-1 relative inline-flex items-center justify-center"
2094
2156
  }, this.renderLeftIcon(), h("span", {
2095
- key: '7496886c7c975d6795633c36b9cc8d31673d5a4b',
2157
+ key: 'aa2ac0a8c0d12197a4c2c3263b1550f83a1df72f',
2096
2158
  class: labelClasses
2097
2159
  }, this.label), this.renderRightIcon()));
2098
2160
  }
@@ -2163,13 +2225,13 @@ const EdsLogo = class {
2163
2225
  render() {
2164
2226
  const logoContent = this.getLogo();
2165
2227
  return h("a", {
2166
- key: 'ab11d53e1f417221dcca2de441c7b3efa96f99a5',
2228
+ key: 'ff5c1ee09b325dca504a73b2d9eb4910fb67835d',
2167
2229
  href: this.href,
2168
2230
  onClick: () => this.handleClick(),
2169
2231
  class: "eds-logo-wrapper",
2170
2232
  "aria-label": this.label
2171
2233
  }, h("div", {
2172
- key: '0d4a6b970788534d34d55b28fe83407ce7c4e00e',
2234
+ key: '10ef011b7e3725231cf12771be38b209661709ed',
2173
2235
  innerHTML: logoContent
2174
2236
  }));
2175
2237
  }
@@ -2279,40 +2341,40 @@ const EdsModal = class {
2279
2341
  // Generate a unique id for the title so we can reference it for aria-labelledby.
2280
2342
  const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
2281
2343
  return h("div", {
2282
- key: 'affa340307adc5bdd637696b56a59e3f73cbf7e9',
2344
+ key: '064613bfc4ada7e980d47b7ccb37b21e313731ca',
2283
2345
  id: "eds-modal",
2284
2346
  class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-9999999 flex`,
2285
2347
  role: "dialog",
2286
2348
  "aria-modal": "true",
2287
2349
  "aria-labelledby": titleId
2288
2350
  }, this.isOpen && h("div", {
2289
- key: 'e4359b32052a155f879070deea34fbca2fb67e3b',
2351
+ key: '6430a5e2734f948e40ccdc7bfcbd6e934070ff25',
2290
2352
  class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
2291
2353
  ,
2292
2354
 
2293
2355
  onClick: () => this.close()
2294
2356
  }), h("div", {
2295
- key: 'ba95f463e8c807e2ac2e900b3167191908ca2f5d',
2357
+ key: '468ce4425ce69c7612d9dbca6b812d7b0c2f869a',
2296
2358
  class: `container absolute bg-inverse z-10 ${this.getModalPositionClasses()} grow justify-center`
2297
2359
  }, h("div", {
2298
- key: '1fc4649d6ba728745e4f1ed73e8fb8bdac6eda59',
2360
+ key: 'e694805e5c39df16801fd2f13eaf2f113fbe2c5e',
2299
2361
  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'}`
2300
2362
  }, h("span", {
2301
- key: '731e7cb6c7aaa36bcda8d1c32bd1b8da9d85f253',
2363
+ key: 'f4c1204f3971618138bd8385b15face3acd1ea71',
2302
2364
  id: titleId,
2303
2365
  class: `f-heading-04 ${this.getTruncateClass()}`
2304
2366
  }, this.heading), h("eds-button", {
2305
- key: '89657ac29b27ce173569353f3101e998cb756eec',
2367
+ key: '813ba1a0c5d357187fc73964bb66230a15593ddc',
2306
2368
  intent: "tertiary",
2307
2369
  icon: "close",
2308
2370
  "aria-label": "Close modal",
2309
2371
  onClick: () => this.close(),
2310
2372
  "extra-class": "ml-8 text-default"
2311
2373
  })), h("div", {
2312
- key: '2e39edaa1f5cc5389873e203c3e4294de8b56678',
2374
+ key: '9ae10bc0e79c4553c2a5bdd2dbacd7a97d99f50c',
2313
2375
  class: "pt-8 px-20 py-20"
2314
2376
  }, h("slot", {
2315
- key: '0fb09f52100042fc5f20f5f443a8f5cff381d944'
2377
+ key: 'f460df4582e298289ab7abcd5417b7ef8d8ac827'
2316
2378
  }))));
2317
2379
  }
2318
2380
  get el() {
@@ -2487,12 +2549,12 @@ const EdsPagination = class {
2487
2549
  }
2488
2550
  render() {
2489
2551
  return h("div", {
2490
- key: '6377e0187e461bcbeac835dd7cb83e93ef199865'
2552
+ key: 'a92aad013df27ce619c50ee8ed273c4799d9b55b'
2491
2553
  }, this.total > 0 && this.mode === 'default' && h("p", {
2492
- key: 'ec2a6b6a40c76352743d012c51cda5d7fe1137df',
2554
+ key: '33b6a436765a10356cf201c19b837f668a74a035',
2493
2555
  class: "f-ui-03 text-lightest mb-28 w-full text-center"
2494
2556
  }, h("span", {
2495
- key: '3a23e3d156f87167b0dacb4085870958ce19e793',
2557
+ key: '0c45ab429986ba7537abbdaafddd4b960b92f41a',
2496
2558
  class: "sr-only"
2497
2559
  }, "Results:"), this.pageResults()), this.mode === 'navigator' || this.lastPage && this.lastPage > 1 ? h("nav", {
2498
2560
  "aria-label": "Pagination"
@@ -2621,12 +2683,12 @@ const EdsSocialNetworks = class {
2621
2683
  */
2622
2684
  render() {
2623
2685
  return h("div", {
2624
- key: '49661af4c05520403c4801e447c730b971e0096f'
2686
+ key: '6d52d64b09170108d1b61157d0ab126cefa794be'
2625
2687
  }, h("p", {
2626
- key: '22fc89817969a9e7059335b43f8e7b6cc2d095f7',
2688
+ key: '97e929fdaff0bcd4360140428007da0294567ea9',
2627
2689
  class: "f-ui-02"
2628
2690
  }, this.heading), h("ul", {
2629
- key: '90c04408db4f9d58a5ee4834f8fcfde88aede8ee',
2691
+ key: '3264e9e0ac366c4a502b69f6aa8545935b8536e7',
2630
2692
  class: "mt-12 flex gap-4"
2631
2693
  }, this.socialNetworks.map((network, index) => h("li", {
2632
2694
  key: index
@@ -3102,10 +3164,9 @@ const EdsTable = class {
3102
3164
  }
3103
3165
  updateColumns() {
3104
3166
  var _a, _b;
3105
- // 1) Grab all data‐keys from the first row (if any) as before:
3167
+ // Grab all data‐keys from the first row (if any) as before:
3106
3168
  this.columns = this.tbData.length > 0 ? Object.keys(this.tbData[0]) : [];
3107
- // 2) Instead of pushing each action.name, we add just a single “actions” column
3108
- // (you can call it anything; we’ll detect it in render())
3169
+ // Instead of pushing each action.name, add just a single “actions” column
3109
3170
  if (((_b = (_a = this.parsedActions) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 0 && this.tbData.length > 0) {
3110
3171
  this.columns.push('actions');
3111
3172
  }
@@ -3135,9 +3196,9 @@ const EdsTable = class {
3135
3196
  const paginatedRows = this.getPaginatedRows();
3136
3197
  const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
3137
3198
  return h("div", {
3138
- key: '5034177431626ab2bfc5fd0118c006d11a4f6e96'
3199
+ key: 'f188b98870101f250e8515178d50763bb708ade5'
3139
3200
  }, this.searchEnabled && h("div", {
3140
- key: '86e1a6ffc4bed69f290b3a53031341ab276eaf04'
3201
+ key: '96f046ad286df6cb46e9f9f6d3e45a69f90af108'
3141
3202
  }, h("eds-input-field", {
3142
3203
  key: 1,
3143
3204
  name: "search",
@@ -3146,29 +3207,26 @@ const EdsTable = class {
3146
3207
  placeholder: "Search...",
3147
3208
  onInput: event => this.handleSearch(event)
3148
3209
  })), h("div", {
3149
- key: 'bc11838d819ecf89c5ba1cc1cfe7ac0af0e82b59',
3210
+ key: 'bbf27504732266f3e3ae299fcf742a653a23fdef',
3150
3211
  class: "mt-20"
3151
3212
  }, h("table", {
3152
- key: '97f16b65eb1d9387e9ca7588184c9e68c1afcc2e',
3213
+ key: 'a1c76a7b0d4c4a1382c34cf58a49896567610403',
3153
3214
  class: "block overflow-x-auto mt-6 p-0"
3154
3215
  }, h("thead", {
3155
- key: 'f4d64ada28c225db1b224277513e663a99de1cec'
3216
+ key: 'ea7e4b5d1c48c63094a96ba5c8fb38bf8e805024'
3156
3217
  }, h("tr", {
3157
- key: 'c6a69e159cceada0f7143c0acb787e5c23242ae7',
3218
+ key: '6e49bc93f9678f5f6449269728ca893a88ceb51a',
3158
3219
  class: "m-0 p-0 border border-softer even:bg-inverse-softer"
3159
3220
  }, this.columns.map(col => {
3160
3221
  var _a;
3161
- // 3) For the “actions” column, override the header to “Actions”
3162
3222
  if (col === 'actions') {
3163
- // You can choose a smaller min‐width here if you wish:
3164
3223
  return h("th", {
3165
3224
  class: "m-0 py-8 border border-softer f-ui-02 break-words",
3166
3225
  style: {
3167
3226
  minWidth: `${columnWidth - 4}px`
3168
3227
  }
3169
- }, "Actions");
3228
+ });
3170
3229
  }
3171
- // Otherwise, render column name or action label if you do want to override:
3172
3230
  if (!((_a = this.parsedConfig[col]) === null || _a === void 0 ? void 0 : _a.hidden)) {
3173
3231
  return h("th", {
3174
3232
  class: "m-0 py-8 border border-softer f-ui-02 break-words",
@@ -3179,13 +3237,12 @@ const EdsTable = class {
3179
3237
  }
3180
3238
  return null;
3181
3239
  }))), h("tbody", {
3182
- key: '133af82fdd1f820e853734ab48123cb3db527e15'
3240
+ key: '7f09b3133241c4a19ad75c27134c04192e9dc357'
3183
3241
  }, paginatedRows.map(row => h("tr", {
3184
3242
  class: "m-0 p-0 border border-softer even:bg-inverse-softer"
3185
3243
  }, this.columns.map(col => {
3186
3244
  var _a;
3187
3245
  if (col === 'actions') {
3188
- // 4) Render ALL actions inside a single <td> for this row:
3189
3246
  return h("td", {
3190
3247
  class: "text-center border border-softer m-0 f-ui-02 break-words actions-cell",
3191
3248
  style: {
@@ -3205,7 +3262,7 @@ const EdsTable = class {
3205
3262
  }, this.renderSingleActionCell(act.name, row)))));
3206
3263
  }
3207
3264
  if (!((_a = this.parsedConfig[col]) === null || _a === void 0 ? void 0 : _a.hidden)) {
3208
- // Regular data cell:
3265
+ // Regular data cell
3209
3266
  return h("td", {
3210
3267
  class: "text-center border border-softer m-0 py-8 f-ui-2 break-words",
3211
3268
  style: {
@@ -3215,10 +3272,10 @@ const EdsTable = class {
3215
3272
  }
3216
3273
  return null;
3217
3274
  })))))), this.shouldEnablePagination() && h("div", {
3218
- key: '85032d06cd0ac5dae9b504d423fceba3cd074861',
3275
+ key: 'ceb320ba2e1cb14e4220c653c92bb2a9e8bf3593',
3219
3276
  class: "mt-20"
3220
3277
  }, h("eds-pagination", {
3221
- key: '8caf6f57960e222c04d45f57a5811cd7bd524f4c',
3278
+ key: '19c22566443e476742fd7f5e232c9240ecb34bec',
3222
3279
  currentPage: this.currentPage,
3223
3280
  lastPage: lastPage,
3224
3281
  perPage: this.rowsPerPage,
@@ -3340,13 +3397,13 @@ const EdsTabs = class {
3340
3397
  }
3341
3398
  render() {
3342
3399
  return h("div", {
3343
- key: 'b6752f90f4c1a9501816c574baf92a0c8b95e802',
3400
+ key: 'dd41d2d7ccbe03e08d3c20a2e9a370e69dfd1459',
3344
3401
  id: `${this.identifier}`
3345
3402
  }, h("div", {
3346
- key: '266813bd461bae3d5df1b76563b949b8dd900482',
3403
+ key: '14c95711c8e7df2b7f6f0557ce233bc1a68ad31b',
3347
3404
  class: "scroller-x overflow-x-auto max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28"
3348
3405
  }, h("nav", {
3349
- key: 'b16c4f78ee24dace9a188097a8c5995476d7da41',
3406
+ key: '3ed1c5cc5d0aa1e7cb4bebe337885c7e5687aa68',
3350
3407
  ref: el => this.tabContainer = el,
3351
3408
  class: "inline-flex",
3352
3409
  "aria-label": this.navAriaLabel
@@ -3359,7 +3416,7 @@ const EdsTabs = class {
3359
3416
  onClick: () => this.handleTabClick(index, tab.label)
3360
3417
  }), tab.label || tab.ariaLabel);
3361
3418
  }))), h("div", {
3362
- key: '09c25532583d443eac47da606955955e1e66f2e8',
3419
+ key: '63399c53b2e5d642676d7f884bdecec0f8c515de',
3363
3420
  class: "tab-panels"
3364
3421
  }, this.parsedTabs.map((_, index) => h("div", {
3365
3422
  hidden: index !== this.activeIndex
@@ -3420,12 +3477,102 @@ const EdsTag = class {
3420
3477
  size: this.size
3421
3478
  });
3422
3479
  return h("span", {
3423
- key: '78ef2d9ed4fc79f078df2fe418c339fc8934eef2',
3480
+ key: 'a0d8788511615d0099fd764501449476126d343f',
3424
3481
  class: classes
3425
3482
  }, this.label);
3426
3483
  }
3427
3484
  };
3428
3485
  EdsTag.style = EdsTagStyle0;
3486
+ const edsToastCss = ".relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:0.25rem}.w-auto{width:auto}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:0.25rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.ml-8{margin-left:0.5rem}.p-12{padding:0.75rem}.rounded-lg{border-radius:16px}.shadow-md{--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),\n 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-dark{background-color:var(--grey-300)}.bg-success{background-color:var(--green-200)}.bg-error{background-color:var(--red-200)}.bg-warning{background-color:var(--yellow-200)}.text-light{color:var(--grey-700)}.text-current{color:currentColor}.text-default{color:var(--black)}";
3487
+ const EdsToastStyle0 = edsToastCss;
3488
+ const toastStyles = cva(['relative bottom-4 w-auto p-12 rounded-lg shadow-md'], {
3489
+ variants: {
3490
+ intent: {
3491
+ default: 'bg-dark text-light',
3492
+ success: 'bg-success text-dark',
3493
+ error: 'bg-error text-light',
3494
+ warning: 'bg-warning text-dark'
3495
+ }
3496
+ },
3497
+ defaultVariants: {
3498
+ intent: 'default'
3499
+ }
3500
+ });
3501
+ const EdsToast = class {
3502
+ constructor(hostRef) {
3503
+ registerInstance(this, hostRef);
3504
+ this.toast = createEvent(this, "toast", 7);
3505
+ /**
3506
+ * Dismisses the toast.
3507
+ */
3508
+ this.dismissToast = () => {
3509
+ this.toast.emit({
3510
+ visible: false,
3511
+ label: 'dismissed'
3512
+ });
3513
+ this.visible = false;
3514
+ };
3515
+ this.message = undefined;
3516
+ this.intent = 'default';
3517
+ this.duration = undefined;
3518
+ this.visible = true;
3519
+ }
3520
+ componentDidLoad() {
3521
+ const btn = this.el.shadowRoot.querySelector('eds-button');
3522
+ this.emitContext(btn);
3523
+ }
3524
+ /**
3525
+ * Emits a custom event called `parentContext` for a given button element.
3526
+ * This event provides context information about the toast component.
3527
+ *
3528
+ * @param btnElement - The link element to which the event will be dispatched.
3529
+ */
3530
+ emitContext(btnElement) {
3531
+ const event = new CustomEvent('parentContext', {
3532
+ detail: {
3533
+ componentName: this.el.tagName.toLowerCase(),
3534
+ identifier: null
3535
+ }
3536
+ });
3537
+ btnElement.dispatchEvent(event);
3538
+ }
3539
+ connectedCallback() {
3540
+ if (this.duration && this.duration > 0) {
3541
+ this.dismissTimeout = setTimeout(this.dismissToast, this.duration);
3542
+ }
3543
+ }
3544
+ disconnectedCallback() {
3545
+ // Clear the timeout when the component is removed
3546
+ clearTimeout(this.dismissTimeout);
3547
+ }
3548
+ render() {
3549
+ if (!this.visible) {
3550
+ return null;
3551
+ }
3552
+ const classes = toastStyles({
3553
+ intent: this.intent
3554
+ });
3555
+ return h("div", {
3556
+ class: classes,
3557
+ role: "alert",
3558
+ "aria-live": "assertive"
3559
+ }, h("div", {
3560
+ class: "flex items-center justify-between gap-4"
3561
+ }, h("span", {
3562
+ class: "f-ui-01"
3563
+ }, this.message), h("eds-button", {
3564
+ intent: "tertiary",
3565
+ icon: "close",
3566
+ "aria-label": "Close Toast",
3567
+ onClick: () => this.dismissToast(),
3568
+ "extra-class": "ml-8"
3569
+ })));
3570
+ }
3571
+ get el() {
3572
+ return getElement(this);
3573
+ }
3574
+ };
3575
+ EdsToast.style = EdsToastStyle0;
3429
3576
  const edsUserCss = "hr,p{margin:0}.block{display:block}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.text-default{color:var(--black)}.min-w-\\[280px\\]{min-width:280px}.p-8{padding:0.5rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.gap-y-8{row-gap:0.5rem}.pb-16{padding-bottom:1rem}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1 )}.max-w-full{max-width:100%}.w-full{width:100%}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.text-light{color:var(--grey-700)}.mt-4{margin-top:0.25rem}.mt-16{margin-top:1rem}";
3430
3577
  const EdsUserStyle0 = edsUserCss;
3431
3578
  const EdsUser = class {
@@ -3457,13 +3604,13 @@ const EdsUser = class {
3457
3604
  render() {
3458
3605
  const user = this.parsedUser;
3459
3606
  return h("div", {
3460
- key: '9e2a8da09c2c15080e3b1ccf5b8e0e93b679d34b',
3607
+ key: 'b30b0a30a94c6bd9046b234cd793da80c1b16de8',
3461
3608
  class: "block"
3462
3609
  }, h("div", {
3463
- key: 'ccc34b3c7b0ab8d515eebfa1962264365d20c788',
3610
+ key: '9ecea595c3d900aeda7c75a6aa5ae84999d775e1',
3464
3611
  class: "flex items-center"
3465
3612
  }, h("eds-dropdown", {
3466
- key: 'dc4920fd442baa9f13d9f2b9a21065b5184eba83',
3613
+ key: '6a4c4751aaeaa6426ee4c89305b5c419ee912ced',
3467
3614
  label: `Hi, ${user.preferred_username}`,
3468
3615
  intent: "tertiary",
3469
3616
  "aria-label": "User Menu",
@@ -3472,36 +3619,36 @@ const EdsUser = class {
3472
3619
  icon: "chevron-down",
3473
3620
  class: "text-default"
3474
3621
  }, h("div", {
3475
- key: '0522db7fc229186c645665a4c9eeedc46fb5823b',
3622
+ key: '8e695af42fd229ca71e5d8f6fe367ed5ecc4184b',
3476
3623
  class: "min-w-[280px] p-8"
3477
3624
  }, h("div", {
3478
- key: 'af7b9daec713d24f8a1415415d19cdf48905c0cb',
3625
+ key: 'd28e78ace074d7513a002297558219afae079646',
3479
3626
  class: "flex gap-x-16"
3480
3627
  }, h("eds-avatar", {
3481
- key: 'c3ea7307d9beb597fe93d3942b7724f8526298ad',
3628
+ key: 'e9895e380ece01d116c14dbf0424061b1a039261',
3482
3629
  "first-name": user.given_name,
3483
3630
  "last-name": user.family_name,
3484
3631
  initials: this.initials,
3485
3632
  color: "grey"
3486
3633
  }), h("div", {
3487
- key: '7af823b5f38a3d7acf16c633471dcfe74bca5e3c',
3634
+ key: '1597248135606e3300546b3278114cd8cc36d4b5',
3488
3635
  class: "max-w-full"
3489
3636
  }, user.name && h("p", {
3490
- key: '5973dfbac0efceeddb0dc211d9c502a1ad3b0dde',
3637
+ key: 'fa04e93e50f3cf6d1e3d49dafc02d0dd5233a9f4',
3491
3638
  class: "f-ui-01 text-default w-full text-ellipsis"
3492
3639
  }, user.name), user.preferred_username && h("p", {
3493
- key: '5989927760ed2a2d1365661bbdc112a3a3d23bbf',
3640
+ key: '1203bf8078cb1c2a4d31effbe96e7aefd9222eb2',
3494
3641
  class: "f-ui-03-light text-light mt-4"
3495
3642
  }, user.preferred_username), user.email && h("p", {
3496
- key: 'ee36be95298c0c7a748537012d48a85884955904',
3643
+ key: '6fcd932e87eb6e086daf61d2d8d16e6f8f27f12a',
3497
3644
  class: "f-ui-03-light text-light mt-4"
3498
3645
  }, user.email))), h("eds-block-break", {
3499
- key: 'fb3ef5cad6e81f51983e54914412131c3bd4cbc2'
3646
+ key: '5811252802eecc3f5c001705c8e8fb94fb33e1bb'
3500
3647
  }), h("div", {
3501
- key: 'e3784f3f4931378bf55d766d4a1cf5e24a75d462',
3648
+ key: 'd28913e74e9924f51e9b1e92a0f42691c733c438',
3502
3649
  class: "text-default flex w-full flex-col gap-y-8"
3503
3650
  }, h("slot", {
3504
- key: 'c0052bb56286d9a3fdc686c8407e105499a38084'
3651
+ key: 'bb003f9bff1042b2778a7a924dc87c7baf1a9fb7'
3505
3652
  }))))));
3506
3653
  }
3507
3654
  get hostEl() {
@@ -3510,4 +3657,4 @@ const EdsUser = class {
3510
3657
  };
3511
3658
  EdsUser.style = EdsUserStyle0;
3512
3659
 
3513
- export { EdsAvatar as eds_avatar, EdsBlockBreak as eds_block_break, EdsButton as eds_button, EdsDropdown as eds_dropdown, EdsFooter as eds_footer, EdsForm as eds_form, EdsFullscreenMenu as eds_fullscreen_menu, EdsHeader as eds_header, EdsIconWrapper as eds_icon_wrapper, EdsImg as eds_img, EdsInput as eds_input, EdsInputField as eds_input_field, EdsInputFooter as eds_input_footer, EdsInputLabel as eds_input_label, EdsInputRange as eds_input_range, EdsInputSearch as eds_input_search, EdsInputSelect as eds_input_select, EdsLink as eds_link, EdsLogo as eds_logo, EdsModal as eds_modal, EdsPagination as eds_pagination, EdsSocialNetworks as eds_social_networks, EdsSteps as eds_steps, EdsStepsV2 as eds_steps_v2, EdsTable as eds_table, EdsTabs as eds_tabs, EdsTag as eds_tag, EdsUser as eds_user };
3660
+ export { EdsAvatar as eds_avatar, EdsBlockBreak as eds_block_break, EdsButton as eds_button, EdsDropdown as eds_dropdown, EdsFooter as eds_footer, EdsForm as eds_form, EdsFullscreenMenu as eds_fullscreen_menu, EdsHeader as eds_header, EdsIconWrapper as eds_icon_wrapper, EdsImg as eds_img, EdsInput as eds_input, EdsInputField as eds_input_field, EdsInputFooter as eds_input_footer, EdsInputLabel as eds_input_label, EdsInputRange as eds_input_range, EdsInputSearch as eds_input_search, EdsInputSelect as eds_input_select, EdsLink as eds_link, EdsLogo as eds_logo, EdsModal as eds_modal, EdsPagination as eds_pagination, EdsSocialNetworks as eds_social_networks, EdsSteps as eds_steps, EdsStepsV2 as eds_steps_v2, EdsTable as eds_table, EdsTabs as eds_tabs, EdsTag as eds_tag, EdsToast as eds_toast, EdsUser as eds_user };