@warp-ds/elements 2.0.2-next.2 → 2.0.2-next.4
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 +12 -9
- package/dist/index.js.map +2 -2
- package/dist/packages/attention/index.js +5 -8
- package/dist/packages/attention/index.js.map +2 -2
- package/dist/packages/select/index.d.ts +3 -0
- package/dist/packages/select/index.js +7 -1
- package/dist/packages/select/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4125,7 +4125,7 @@ ${JSON.stringify(directions)}`
|
|
|
4125
4125
|
]);
|
|
4126
4126
|
}
|
|
4127
4127
|
get _arrowHtml() {
|
|
4128
|
-
return this.noArrow ? "" : html9`<div id="arrow"
|
|
4128
|
+
return this.noArrow ? "" : html9`<div id="arrow" class="${this._arrowClasses}"></div>`;
|
|
4129
4129
|
}
|
|
4130
4130
|
get _activeVariantClasses() {
|
|
4131
4131
|
const variantProps = {
|
|
@@ -4298,19 +4298,16 @@ ${JSON.stringify(directions)}`
|
|
|
4298
4298
|
${this.placement === "right-start" || this.placement === "right" || this.placement === "right-end" || this.placement === "bottom-start" || this.placement === "bottom" || this.placement === "bottom-end" ? html9`
|
|
4299
4299
|
<slot name="target"></slot>
|
|
4300
4300
|
|
|
4301
|
-
<div
|
|
4302
|
-
|
|
4303
|
-
role="${this.tooltip ? "tooltip" : "img"}"
|
|
4304
|
-
aria-label="${this.defaultAriaLabel()}"
|
|
4305
|
-
class="${this._wrapperClasses}">
|
|
4306
|
-
${this._arrowHtml}
|
|
4301
|
+
<div id="attention" class="${this._wrapperClasses}">
|
|
4302
|
+
<div role="${this.tooltip ? "tooltip" : "img"}" aria-label="${this.defaultAriaLabel()}">${this._arrowHtml}</div>
|
|
4307
4303
|
<slot name="message"></slot>
|
|
4308
4304
|
${this.canClose ? this._closeBtnHtml : nothing}
|
|
4309
4305
|
</div>
|
|
4310
4306
|
` : html9`
|
|
4311
4307
|
<div id="attention" class="${this._wrapperClasses}">
|
|
4312
4308
|
<slot name="message"></slot>
|
|
4313
|
-
${this.
|
|
4309
|
+
<div role="${this.tooltip ? "tooltip" : "img"}" aria-label="${this.defaultAriaLabel()}">${this._arrowHtml}</div>
|
|
4310
|
+
${this.canClose ? this._closeBtnHtml : nothing}
|
|
4314
4311
|
</div>
|
|
4315
4312
|
<slot name="target"></slot>
|
|
4316
4313
|
`}
|
|
@@ -5757,6 +5754,11 @@ var WarpSelect = class extends kebabCaseAttributes(WarpElement15) {
|
|
|
5757
5754
|
event.preventDefault();
|
|
5758
5755
|
}
|
|
5759
5756
|
}
|
|
5757
|
+
// Fire a custom 'change' event, used when the dropdown changes state.
|
|
5758
|
+
onChange({ target }) {
|
|
5759
|
+
const event = new CustomEvent("change", { detail: target.value });
|
|
5760
|
+
this.dispatchEvent(event);
|
|
5761
|
+
}
|
|
5760
5762
|
render() {
|
|
5761
5763
|
return html24`<div class="${select.wrapper}">
|
|
5762
5764
|
${when(
|
|
@@ -5783,7 +5785,8 @@ var WarpSelect = class extends kebabCaseAttributes(WarpElement15) {
|
|
|
5783
5785
|
aria-describedby="${ifDefined5(__privateGet(this, _WarpSelect_instances, helpId_get))}"
|
|
5784
5786
|
aria-invalid="${ifDefined5(this.invalid)}"
|
|
5785
5787
|
aria-errormessage="${ifDefined5(this.invalid && __privateGet(this, _WarpSelect_instances, helpId_get))}"
|
|
5786
|
-
@keydown=${this.handleKeyDown}
|
|
5788
|
+
@keydown=${this.handleKeyDown}
|
|
5789
|
+
@change=${this.onChange}>
|
|
5787
5790
|
${unsafeHTML(this._options)}
|
|
5788
5791
|
</select>
|
|
5789
5792
|
<div class="${__privateGet(this, _WarpSelect_instances, chevronClasses_get2)}">
|