vira 25.3.1 → 25.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.
@@ -1,3 +1,4 @@
1
+ import { type AttributeValues } from 'element-vir';
1
2
  /**
2
3
  * Inputs shared between the multiple input elements.
3
4
  *
@@ -23,6 +24,8 @@ export type SharedTextInputElementInputs = {
23
24
  disableBrowserHelps?: boolean;
24
25
  /** Set this to true to make the whole element size to only fit the input text. */
25
26
  fitText?: boolean;
27
+ /** A set of attributes that will be applied to the inner native text element. */
28
+ attributePassthrough?: AttributeValues | undefined;
26
29
  };
27
30
  /**
28
31
  * Inputs used to check if the current input element value is allowed.
@@ -1,4 +1,4 @@
1
- import { css, defineElementEvent, html, listen, onResize, renderIf, } from 'element-vir';
1
+ import { attributes, css, defineElementEvent, html, listen, nothing, onResize, renderIf, } from 'element-vir';
2
2
  import { CloseX24Icon } from '../icons/icon-svgs/close-x-24.icon.js';
3
3
  import { EyeClosed24Icon, EyeOpen24Icon } from '../icons/index.js';
4
4
  import { createFocusStyles, viraFocusCssVars } from '../styles/focus.js';
@@ -311,6 +311,9 @@ export const ViraInput = defineViraElement()({
311
311
  });
312
312
  })}
313
313
  placeholder=${inputs.placeholder}
314
+ ${inputs.attributePassthrough
315
+ ? attributes(inputs.attributePassthrough)
316
+ : nothing}
314
317
  />
315
318
  ${renderIf(!!(inputs.showClearButton && inputs.value), html `
316
319
  <button
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vira",
3
- "version": "25.3.1",
3
+ "version": "25.4.0",
4
4
  "description": "A simple and highly versatile design system using element-vir.",
5
5
  "keywords": [
6
6
  "design",
@@ -66,7 +66,7 @@
66
66
  "vite-tsconfig-paths": "^5.1.4"
67
67
  },
68
68
  "peerDependencies": {
69
- "element-vir": "^25.3.1"
69
+ "element-vir": "^25.4.0"
70
70
  },
71
71
  "engines": {
72
72
  "node": ">=22"