vira 32.1.0 → 32.1.2

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.
@@ -61,4 +61,6 @@ export declare const ViraInput: import("element-vir").DeclarativeElementDefiniti
61
61
  * that was blocked out of programmatic "value" property assignments.
62
62
  */
63
63
  inputBlocked: import("element-vir").DefineElementEvent<string>;
64
+ /** Triggered if the clear button is activated. */
65
+ clear: import("element-vir").DefineElementEvent<void>;
64
66
  }, "vira-input-disabled" | "vira-input-fit-text" | "vira-input-clear-button-shown" | "vira-input-error", "vira-input-padding-horizontal" | "vira-input-padding-vertical", readonly [], readonly []>;
@@ -276,6 +276,8 @@ export const ViraInput = defineViraElement()({
276
276
  * that was blocked out of programmatic "value" property assignments.
277
277
  */
278
278
  inputBlocked: defineElementEvent(),
279
+ /** Triggered if the clear button is activated. */
280
+ clear: defineElementEvent(),
279
281
  },
280
282
  state() {
281
283
  return {
@@ -373,7 +375,6 @@ export const ViraInput = defineViraElement()({
373
375
  <input
374
376
  id=${ifDefined(inputs.label ? state.randomId : undefined)}
375
377
  aria-label=${ifDefined(inputs.label || undefined)}
376
- autofocus=${false}
377
378
  type=${calculateEffectiveInputType(inputs.type, state.showPassword)}
378
379
  style=${forcedInputWidthStyles}
379
380
  autocomplete=${ifDefined(shouldBlockBrowserHelps ? 'off' : undefined)}
@@ -418,6 +419,9 @@ export const ViraInput = defineViraElement()({
418
419
  dispatch(new events.valueChange({
419
420
  detail: '',
420
421
  }));
422
+ dispatch(new events.clear({
423
+ detail: undefined,
424
+ }));
421
425
  })}
422
426
  >
423
427
  <${ViraIcon.assign({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vira",
3
- "version": "32.1.0",
3
+ "version": "32.1.2",
4
4
  "description": "A simple and highly versatile design system using element-vir.",
5
5
  "keywords": [
6
6
  "design",