@warp-ds/elements 1.4.0-next.3 → 1.4.1-next.1

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/dist/index.js CHANGED
@@ -1042,8 +1042,6 @@ var require_parser = __commonJS({
1042
1042
 
1043
1043
  // packages/affix/index.js
1044
1044
  import { html as html3 } from "lit";
1045
- import WarpElement from "@warp-ds/elements-core";
1046
- import { ifDefined } from "lit/directives/if-defined.js";
1047
1045
 
1048
1046
  // node_modules/.pnpm/@warp-ds+css@1.9.6/node_modules/@warp-ds/css/component-classes/index.js
1049
1047
  var badge = {
@@ -1450,6 +1448,10 @@ var attention = {
1450
1448
  closeBtn: `${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonColors.pill} justify-self-end -mr-8 ml-8`
1451
1449
  };
1452
1450
 
1451
+ // packages/affix/index.js
1452
+ import WarpElement from "@warp-ds/elements-core";
1453
+ import { ifDefined } from "lit/directives/if-defined.js";
1454
+
1453
1455
  // node_modules/.pnpm/@warp-ds+icons@2.0.0/node_modules/@warp-ds/icons/dist/elements/search-16.js
1454
1456
  import { LitElement } from "lit";
1455
1457
  import { unsafeStatic, html } from "lit/static-html.js";
@@ -2091,7 +2093,6 @@ if (!customElements.get("w-affix")) {
2091
2093
  }
2092
2094
 
2093
2095
  // packages/alert/index.js
2094
- import WarpElement2 from "@warp-ds/elements-core";
2095
2096
  import { css, html as html8 } from "lit";
2096
2097
 
2097
2098
  // node_modules/.pnpm/@chbphone55+classnames@2.0.0/node_modules/@chbphone55/classnames/dist/index.m.js
@@ -2105,6 +2106,9 @@ var r = function() {
2105
2106
  }, []).join(" ");
2106
2107
  };
2107
2108
 
2109
+ // packages/alert/index.js
2110
+ import WarpElement2 from "@warp-ds/elements-core";
2111
+
2108
2112
  // node_modules/.pnpm/@warp-ds+icons@2.0.0/node_modules/@warp-ds/icons/dist/elements/info-16.js
2109
2113
  import { LitElement as LitElement3 } from "lit";
2110
2114
  import { unsafeStatic as unsafeStatic3, html as html4 } from "lit/static-html.js";
@@ -2558,8 +2562,6 @@ if (!customElements.get("w-alert")) {
2558
2562
 
2559
2563
  // packages/attention/index.js
2560
2564
  import { css as css2, html as html9, nothing } from "lit";
2561
- import WarpElement3 from "@warp-ds/elements-core";
2562
- import { ifDefined as ifDefined2 } from "lit/directives/if-defined.js";
2563
2565
 
2564
2566
  // node_modules/.pnpm/@floating-ui+utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
2565
2567
  var sides = ["top", "right", "bottom", "left"];
@@ -3851,14 +3853,9 @@ async function useRecompute(state) {
3851
3853
  return state;
3852
3854
  }
3853
3855
 
3854
- // packages/attention/locales/en/messages.mjs
3855
- var messages9 = JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Close","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}');
3856
-
3857
- // packages/attention/locales/nb/messages.mjs
3858
- var messages10 = JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Lukk","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}');
3859
-
3860
- // packages/attention/locales/fi/messages.mjs
3861
- var messages11 = JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Sulje","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}');
3856
+ // packages/attention/index.js
3857
+ import WarpElement3 from "@warp-ds/elements-core";
3858
+ import { ifDefined as ifDefined2 } from "lit/directives/if-defined.js";
3862
3859
 
3863
3860
  // packages/i18n.ts
3864
3861
  var supportedLocales7 = ["en", "nb", "fi"];
@@ -3895,11 +3892,20 @@ var activateI18n7 = (enMessages, nbMessages, fiMessages) => {
3895
3892
  i18n.activate(locale);
3896
3893
  };
3897
3894
 
3895
+ // packages/attention/locales/en/messages.mjs
3896
+ var messages9 = JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Close","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}');
3897
+
3898
+ // packages/attention/locales/fi/messages.mjs
3899
+ var messages10 = JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Sulje","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}');
3900
+
3901
+ // packages/attention/locales/nb/messages.mjs
3902
+ var messages11 = JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Lukk","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}');
3903
+
3898
3904
  // packages/attention/index.js
3899
3905
  var WarpAttention = class extends kebabCaseAttributes(WarpElement3) {
3900
3906
  constructor() {
3901
3907
  super();
3902
- activateI18n7(messages9, messages10, messages11);
3908
+ activateI18n7(messages9, messages11, messages10);
3903
3909
  this.handleDone = this.handleDone.bind(this);
3904
3910
  this.show = false;
3905
3911
  this.placement = "bottom";
@@ -3923,8 +3929,10 @@ var WarpAttention = class extends kebabCaseAttributes(WarpElement3) {
3923
3929
  ${JSON.stringify(Object.keys(opposites))}`);
3924
3930
  }
3925
3931
  if (this.fallbackPlacements && !this.fallbackPlacements.every((fallbackPlacement) => directions.includes(fallbackPlacement))) {
3926
- throw new Error(`Invalid "fallbackPlacements" attribute. Set its value to an array with one or more of the following:
3927
- ${JSON.stringify(directions)}`);
3932
+ throw new Error(
3933
+ `Invalid "fallbackPlacements" attribute. Set its value to an array with one or more of the following:
3934
+ ${JSON.stringify(directions)}`
3935
+ );
3928
3936
  }
3929
3937
  setTimeout(() => this.requestUpdate(), 0);
3930
3938
  if (!this.callout) {
@@ -3978,7 +3986,7 @@ ${JSON.stringify(directions)}`);
3978
3986
  });
3979
3987
  }
3980
3988
  get _arrowHtml() {
3981
- return this.noArrow ? "" : html9`<div id="arrow" role="img" class="${this._arrowClasses}" />`;
3989
+ return this.noArrow ? "" : html9`<div id="arrow" role="img" class="${this._arrowClasses}"></div>`;
3982
3990
  }
3983
3991
  get _activeVariantClasses() {
3984
3992
  const variantProps = {
@@ -4021,7 +4029,7 @@ ${JSON.stringify(directions)}`);
4021
4029
  get _closeBtnHtml() {
4022
4030
  return html9`
4023
4031
  <button aria-label="${this._ariaClose}" @click="${this.close}" @keydown=${this.keypressed} class="${attention.closeBtn}">
4024
- <w-icon-close-16 />
4032
+ <w-icon-close-16></w-icon-close-16>
4025
4033
  </button>
4026
4034
  `;
4027
4035
  }
@@ -4156,7 +4164,11 @@ ${JSON.stringify(directions)}`);
4156
4164
  ${this.placement === "right-start" || this.placement === "right" || this.placement === "right-end" || this.placement === "bottom-start" || this.placement === "bottom" || this.placement === "bottom-end" ? html9`
4157
4165
  <slot name="target"></slot>
4158
4166
 
4159
- <div id="attention" role="${this.tooltip ? "tooltip" : "img"}" aria-label="${this.defaultAriaLabel()}" class="${this._wrapperClasses}">
4167
+ <div
4168
+ id="attention"
4169
+ role="${this.tooltip ? "tooltip" : "img"}"
4170
+ aria-label="${this.defaultAriaLabel()}"
4171
+ class="${this._wrapperClasses}">
4160
4172
  ${this._arrowHtml}
4161
4173
  <slot name="message"></slot>
4162
4174
  ${this.canClose ? this._closeBtnHtml : nothing}
@@ -4313,28 +4325,30 @@ if (!customElements.get("w-box")) {
4313
4325
 
4314
4326
  // packages/breadcrumbs/index.js
4315
4327
  import { html as html12 } from "lit";
4316
- import WarpElement6 from "@warp-ds/elements-core";
4317
4328
 
4318
4329
  // node_modules/.pnpm/@warp-ds+core@1.1.1_@floating-ui+dom@1.6.3/node_modules/@warp-ds/core/dist/breadcrumbs/index.js
4319
4330
  function interleave(array, separator2) {
4320
4331
  return array.flatMap((el) => [el, separator2]).slice(0, -1);
4321
4332
  }
4322
4333
 
4334
+ // packages/breadcrumbs/index.js
4335
+ import WarpElement6 from "@warp-ds/elements-core";
4336
+
4323
4337
  // packages/breadcrumbs/locales/en/messages.mjs
4324
4338
  var messages12 = JSON.parse('{"breadcrumbs.ariaLabel":"You are here"}');
4325
4339
 
4326
- // packages/breadcrumbs/locales/nb/messages.mjs
4327
- var messages13 = JSON.parse('{"breadcrumbs.ariaLabel":"Her er du"}');
4328
-
4329
4340
  // packages/breadcrumbs/locales/fi/messages.mjs
4330
- var messages14 = JSON.parse('{"breadcrumbs.ariaLabel":"Olet t\xE4ss\xE4"}');
4341
+ var messages13 = JSON.parse('{"breadcrumbs.ariaLabel":"Olet t\xE4ss\xE4"}');
4342
+
4343
+ // packages/breadcrumbs/locales/nb/messages.mjs
4344
+ var messages14 = JSON.parse('{"breadcrumbs.ariaLabel":"Her er du"}');
4331
4345
 
4332
4346
  // packages/breadcrumbs/index.js
4333
4347
  var separator = html12`<span class=${breadcrumbs.separator}>/</span>`;
4334
4348
  var WarpBreadcrumbs = class extends kebabCaseAttributes(WarpElement6) {
4335
4349
  constructor() {
4336
4350
  super();
4337
- activateI18n7(messages12, messages13, messages14);
4351
+ activateI18n7(messages12, messages14, messages13);
4338
4352
  this.ariaLabel = i18n._({
4339
4353
  id: "breadcrumbs.ariaLabel",
4340
4354
  message: "You are here",
@@ -4459,18 +4473,18 @@ import WarpElement8 from "@warp-ds/elements-core";
4459
4473
  // packages/button/locales/en/messages.mjs
4460
4474
  var messages15 = JSON.parse('{"button.aria.loading":"Loading..."}');
4461
4475
 
4462
- // packages/button/locales/nb/messages.mjs
4463
- var messages16 = JSON.parse('{"button.aria.loading":"Laster..."}');
4464
-
4465
4476
  // packages/button/locales/fi/messages.mjs
4466
- var messages17 = JSON.parse('{"button.aria.loading":"Ladataan..."}');
4477
+ var messages16 = JSON.parse('{"button.aria.loading":"Ladataan..."}');
4478
+
4479
+ // packages/button/locales/nb/messages.mjs
4480
+ var messages17 = JSON.parse('{"button.aria.loading":"Laster..."}');
4467
4481
 
4468
4482
  // packages/button/index.js
4469
4483
  var buttonTypes2 = ["primary", "secondary", "negative", "utility", "pill", "link"];
4470
4484
  var WarpButton = class extends kebabCaseAttributes(WarpElement8) {
4471
4485
  constructor() {
4472
4486
  super();
4473
- activateI18n7(messages15, messages16, messages17);
4487
+ activateI18n7(messages15, messages17, messages16);
4474
4488
  this.variant = "secondary";
4475
4489
  this.ariaValueTextLoading = i18n._({
4476
4490
  id: "button.aria.loading",
@@ -4545,12 +4559,16 @@ ${buttonTypes2.join(", ")}.`);
4545
4559
  );
4546
4560
  }
4547
4561
  render() {
4548
- return html14` ${this.href ? html14`<a href=${this.href} target=${this.target} rel=${this.target === "_blank" ? this.rel || "noopener" : void 0} class=${this._classes}>
4562
+ return html14` ${this.href ? html14`<a
4563
+ href=${this.href}
4564
+ target=${this.target}
4565
+ rel=${this.target === "_blank" ? this.rel || "noopener" : void 0}
4566
+ class=${this._classes}>
4549
4567
  <slot></slot>
4550
4568
  </a>` : html14`<button type=${this.type || "button"} class=${this._classes}>
4551
4569
  <slot></slot>
4552
4570
  </button>`}
4553
- ${this.loading ? html14`<span class="sr-only" role="progressbar" aria-valuenow="{0}" aria-valuetext=${this.ariaValueTextLoading} />` : null}`;
4571
+ ${this.loading ? html14`<span class="sr-only" role="progressbar" aria-valuenow="{0}" aria-valuetext=${this.ariaValueTextLoading}></span>` : null}`;
4554
4572
  }
4555
4573
  };
4556
4574
  __publicField(WarpButton, "shadowRootOptions", __spreadProps(__spreadValues({}, WarpElement8.shadowRootOptions), {
@@ -4656,6 +4674,7 @@ if (!customElements.get("w-card")) {
4656
4674
  // packages/expandable/index.js
4657
4675
  import { css as css5, html as html18 } from "lit";
4658
4676
  import WarpElement10 from "@warp-ds/elements-core";
4677
+ import { ifDefined as ifDefined4 } from "lit/directives/if-defined.js";
4659
4678
 
4660
4679
  // node_modules/.pnpm/@warp-ds+icons@2.0.0/node_modules/@warp-ds/icons/dist/elements/chevron-down-16.js
4661
4680
  import { LitElement as LitElement7 } from "lit";
@@ -4840,7 +4859,6 @@ if (!customElements.get("w-icon-chevron-up-16")) {
4840
4859
  }
4841
4860
 
4842
4861
  // packages/expandable/index.js
4843
- import { ifDefined as ifDefined4 } from "lit/directives/if-defined.js";
4844
4862
  var WarpExpandable = class extends kebabCaseAttributes(WarpElement10) {
4845
4863
  constructor() {
4846
4864
  super();
@@ -4869,8 +4887,7 @@ var WarpExpandable = class extends kebabCaseAttributes(WarpElement10) {
4869
4887
  [this.contentClass || ""]: true,
4870
4888
  [box.box]: this.box,
4871
4889
  [expandable.paddingTop]: this._hasTitle && this.box
4872
- })}
4873
- >
4890
+ })}>
4874
4891
  <slot></slot>
4875
4892
  </div>`;
4876
4893
  }
@@ -4892,8 +4909,7 @@ var WarpExpandable = class extends kebabCaseAttributes(WarpElement10) {
4892
4909
  [expandable.expandable]: true,
4893
4910
  [expandable.expandableBox]: this.box,
4894
4911
  [expandable.expandableBleed]: this.bleed
4895
- })}
4896
- >
4912
+ })}>
4897
4913
  ${this._hasTitle ? html18`<w-unstyled-heading level=${this.headingLevel}>
4898
4914
  <button
4899
4915
  type="button"
@@ -4903,8 +4919,7 @@ var WarpExpandable = class extends kebabCaseAttributes(WarpElement10) {
4903
4919
  [expandable.button]: true,
4904
4920
  [expandable.buttonBox]: this.box
4905
4921
  })}
4906
- @click=${() => this.expanded = !this.expanded}
4907
- >
4922
+ @click=${() => this.expanded = !this.expanded}>
4908
4923
  <div class="${expandable.title}">
4909
4924
  ${this.title ? html18`<span class="${expandable.titleType}">${this.title}</span>` : html18`<slot name="title"></slot>`}
4910
4925
  ${this.noChevron ? "" : html18`<div
@@ -4912,8 +4927,7 @@ var WarpExpandable = class extends kebabCaseAttributes(WarpElement10) {
4912
4927
  [expandable.chevron]: true,
4913
4928
  [expandable.chevronBox]: this.box,
4914
4929
  [expandable.chevronNonBox]: !this.box
4915
- })}
4916
- >
4930
+ })}>
4917
4931
  ${this._showChevronUp ? html18`<w-icon-chevron-up-16 class="${this._chevronUpClasses}"></w-icon-chevron-up-16>` : html18`<w-icon-chevron-down-16 class="${this._chevronDownClasses}"></w-icon-chevron-down-16>`}
4918
4932
  </div>`}
4919
4933
  </div>
@@ -4924,8 +4938,7 @@ var WarpExpandable = class extends kebabCaseAttributes(WarpElement10) {
4924
4938
  [expandable.expansion]: true,
4925
4939
  [expandable.expansionNotExpanded]: !this.expanded
4926
4940
  })}
4927
- aria-hidden=${ifDefined4(!this.expanded ? true : void 0)}
4928
- >
4941
+ aria-hidden=${ifDefined4(!this.expanded ? true : void 0)}>
4929
4942
  ${this._expandableSlot}
4930
4943
  </div>`}
4931
4944
  </div>`;
@@ -4966,6 +4979,7 @@ if (!customElements.get("w-expandable")) {
4966
4979
 
4967
4980
  // packages/pill/index.js
4968
4981
  import { html as html19 } from "lit";
4982
+ import WarpElement11 from "@warp-ds/elements-core";
4969
4983
 
4970
4984
  // packages/pill/locales/en/messages.mjs
4971
4985
  var messages20 = JSON.parse('{"pill.aria.openFilter":"Open filter","pill.aria.removeFilter":["Remove filter ",["label"]]}');
@@ -4977,7 +4991,6 @@ var messages21 = JSON.parse('{"pill.aria.openFilter":"Avaa suodatin","pill.aria.
4977
4991
  var messages29 = JSON.parse('{"pill.aria.openFilter":"\xC5pne filter","pill.aria.removeFilter":["Fjern filter ",["label"]]}');
4978
4992
 
4979
4993
  // packages/pill/index.js
4980
- import WarpElement11 from "@warp-ds/elements-core";
4981
4994
  var WarpPill = class extends kebabCaseAttributes(WarpElement11) {
4982
4995
  constructor() {
4983
4996
  super();
@@ -5046,17 +5059,17 @@ if (!customElements.get("w-pill")) {
5046
5059
  import { html as html20 } from "lit";
5047
5060
  import WarpElement12 from "@warp-ds/elements-core";
5048
5061
  import { ifDefined as ifDefined5 } from "lit/directives/if-defined.js";
5049
- import { when } from "lit/directives/when.js";
5050
5062
  import { unsafeHTML } from "lit/directives/unsafe-html.js";
5063
+ import { when } from "lit/directives/when.js";
5051
5064
 
5052
5065
  // packages/select/locales/en/messages.mjs
5053
5066
  var messages30 = JSON.parse('{"select.label.optional":"(optional)"}');
5054
5067
 
5055
- // packages/select/locales/nb/messages.mjs
5056
- var messages31 = JSON.parse('{"select.label.optional":"(valgfritt)"}');
5057
-
5058
5068
  // packages/select/locales/fi/messages.mjs
5059
- var messages39 = JSON.parse('{"select.label.optional":"(vapaaehtoinen)"}');
5069
+ var messages31 = JSON.parse('{"select.label.optional":"(vapaaehtoinen)"}');
5070
+
5071
+ // packages/select/locales/nb/messages.mjs
5072
+ var messages39 = JSON.parse('{"select.label.optional":"(valgfritt)"}');
5060
5073
 
5061
5074
  // packages/select/index.js
5062
5075
  var _classes, classes_get, _helpTextClasses, helpTextClasses_get, _chevronClasses, chevronClasses_get, _id, id_get, _helpId, helpId_get;
@@ -5068,7 +5081,7 @@ var WarpSelect = class extends kebabCaseAttributes(WarpElement12) {
5068
5081
  __privateAdd(this, _chevronClasses);
5069
5082
  __privateAdd(this, _id);
5070
5083
  __privateAdd(this, _helpId);
5071
- activateI18n7(messages30, messages31, messages39);
5084
+ activateI18n7(messages30, messages39, messages31);
5072
5085
  this._options = this.innerHTML;
5073
5086
  }
5074
5087
  render() {
@@ -5090,7 +5103,13 @@ var WarpSelect = class extends kebabCaseAttributes(WarpElement12) {
5090
5103
  >`
5091
5104
  )}
5092
5105
  <div class="${select.selectWrapper}">
5093
- <select class="${__privateGet(this, _classes, classes_get)}" id="${__privateGet(this, _id, id_get)}" ?autofocus=${this.autoFocus} aria-describedby="${ifDefined5(__privateGet(this, _helpId, helpId_get))}" aria-invalid="${ifDefined5(this.invalid)}" aria-errormessage="${ifDefined5(this.invalid && __privateGet(this, _helpId, helpId_get))}">
5106
+ <select
5107
+ class="${__privateGet(this, _classes, classes_get)}"
5108
+ id="${__privateGet(this, _id, id_get)}"
5109
+ ?autofocus=${this.autoFocus}
5110
+ aria-describedby="${ifDefined5(__privateGet(this, _helpId, helpId_get))}"
5111
+ aria-invalid="${ifDefined5(this.invalid)}"
5112
+ aria-errormessage="${ifDefined5(this.invalid && __privateGet(this, _helpId, helpId_get))}">
5094
5113
  ${unsafeHTML(this._options)}
5095
5114
  </select>
5096
5115
  <div class="${__privateGet(this, _chevronClasses, chevronClasses_get)}">
@@ -5222,7 +5241,28 @@ var WarpTextField = class extends WarpElement13 {
5222
5241
  ${this._label}
5223
5242
  <div class="${input.wrapper}">
5224
5243
  <slot @slotchange="${this.prefixSlotChange}" name="prefix"></slot>
5225
- <input class="${this._inputStyles}" type="${this.type}" min="${ifDefined6(this.min)}" max="${ifDefined6(this.max)}" size="${ifDefined6(this.size)}" minlength="${ifDefined6(this.minLength)}" maxlength="${ifDefined6(this.maxLength)}" name="${ifDefined6(this.name)}" pattern="${ifDefined6(this.pattern)}" placeholder="${ifDefined6(this.placeholder)}" value="${ifDefined6(this.value)}" aria-describedby="${ifDefined6(this._helpId)}" aria-errormessage="${ifDefined6(this._error)}" aria-invalid="${ifDefined6(this.invalid)}" id="${this._id}" ?disabled="${this.disabled}" ?readonly="${this.readOnly}" ?required="${this.required}" @blur="${this.handler}" @change="${this.handler}" @focus="${this.handler}" />
5244
+ <input
5245
+ class="${this._inputStyles}"
5246
+ type="${this.type}"
5247
+ min="${ifDefined6(this.min)}"
5248
+ max="${ifDefined6(this.max)}"
5249
+ size="${ifDefined6(this.size)}"
5250
+ minlength="${ifDefined6(this.minLength)}"
5251
+ maxlength="${ifDefined6(this.maxLength)}"
5252
+ name="${ifDefined6(this.name)}"
5253
+ pattern="${ifDefined6(this.pattern)}"
5254
+ placeholder="${ifDefined6(this.placeholder)}"
5255
+ value="${ifDefined6(this.value)}"
5256
+ aria-describedby="${ifDefined6(this._helpId)}"
5257
+ aria-errormessage="${ifDefined6(this._error)}"
5258
+ aria-invalid="${ifDefined6(this.invalid)}"
5259
+ id="${this._id}"
5260
+ ?disabled="${this.disabled}"
5261
+ ?readonly="${this.readOnly}"
5262
+ ?required="${this.required}"
5263
+ @blur="${this.handler}"
5264
+ @change="${this.handler}"
5265
+ @focus="${this.handler}" />
5226
5266
  <slot @slotchange="${this.suffixSlotChange}" name="suffix"></slot>
5227
5267
  </div>
5228
5268
  ${this.helpText && html21`<div class="${this._helpTextStyles}" id="${this._helpId}">${this.helpText}</div>`}
@@ -5397,7 +5437,14 @@ var WarpToastContainer = class extends WarpElement14 {
5397
5437
  ${repeat2(
5398
5438
  this._toastsArray,
5399
5439
  (toast3) => toast3.id,
5400
- (toast3) => html22` <w-toast class="${toaster.content}" id="${toast3.id}" type="${toast3.type}" text="${toast3.text}" ?canclose=${toast3.canclose} @close=${() => this.del(toast3.id)}> </w-toast>`
5440
+ (toast3) => html22` <w-toast
5441
+ class="${toaster.content}"
5442
+ id="${toast3.id}"
5443
+ type="${toast3.type}"
5444
+ text="${toast3.text}"
5445
+ ?canclose=${toast3.canclose}
5446
+ @close=${() => this.del(toast3.id)}>
5447
+ </w-toast>`
5401
5448
  )}
5402
5449
  </div>
5403
5450
  </aside>
@@ -5422,8 +5469,6 @@ if (!customElements.get("w-toast-container")) {
5422
5469
  // packages/toast/toast.js
5423
5470
  import { css as css8, html as html23 } from "lit";
5424
5471
  import WarpElement15 from "@warp-ds/elements-core";
5425
- import { classMap as classMap2 } from "lit/directives/class-map.js";
5426
- import { when as when2 } from "lit/directives/when.js";
5427
5472
 
5428
5473
  // node_modules/.pnpm/element-collapse@1.1.0/node_modules/element-collapse/index.js
5429
5474
  var windowExists2 = typeof window !== "undefined";
@@ -5498,14 +5543,18 @@ var collapse = (el, done) => {
5498
5543
  return returnPromise;
5499
5544
  };
5500
5545
 
5546
+ // packages/toast/toast.js
5547
+ import { classMap as classMap2 } from "lit/directives/class-map.js";
5548
+ import { when as when2 } from "lit/directives/when.js";
5549
+
5501
5550
  // packages/toast/locales/en/messages.mjs
5502
5551
  var messages40 = JSON.parse('{"toast.aria.error":"Error","toast.aria.successful":"Successful","toast.aria.warning":"Warning"}');
5503
5552
 
5504
- // packages/toast/locales/nb/messages.mjs
5505
- var messages41 = JSON.parse('{"toast.aria.error":"Varsel","toast.aria.successful":"Vellykket","toast.aria.warning":"Feil"}');
5506
-
5507
5553
  // packages/toast/locales/fi/messages.mjs
5508
- var messages42 = JSON.parse('{"toast.aria.error":"Error","toast.aria.successful":"Successful","toast.aria.warning":"Warning"}');
5554
+ var messages41 = JSON.parse('{"toast.aria.error":"Error","toast.aria.successful":"Successful","toast.aria.warning":"Warning"}');
5555
+
5556
+ // packages/toast/locales/nb/messages.mjs
5557
+ var messages42 = JSON.parse('{"toast.aria.error":"Varsel","toast.aria.successful":"Vellykket","toast.aria.warning":"Feil"}');
5509
5558
 
5510
5559
  // packages/toast/toast.js
5511
5560
  var classes2 = (definition) => {
@@ -5525,7 +5574,7 @@ var toastType = {
5525
5574
  var WarpToast = class extends WarpElement15 {
5526
5575
  constructor() {
5527
5576
  super();
5528
- activateI18n7(messages40, messages41, messages42);
5577
+ activateI18n7(messages40, messages42, messages41);
5529
5578
  this.id = Date.now().toString(36) + Math.random().toString(36).slice(2, 5);
5530
5579
  this.type = "success";
5531
5580
  this.text = "";