vira 26.0.0 → 26.0.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.
@@ -16,9 +16,8 @@ export declare enum ViraButtonStyle {
16
16
  * @category Elements
17
17
  * @see https://electrovir.github.io/element-vir/vira/book/elements/vira-button
18
18
  */
19
- export declare const ViraButton: import("element-vir").DeclarativeElementDefinition<"vira-button", {
19
+ export declare const ViraButton: import("element-vir").DeclarativeElementDefinition<"vira-button", PartialWithUndefined<{
20
20
  text: string;
21
- } & PartialWithUndefined<{
22
21
  icon: Pick<ViraIconSvg, "svgTemplate">;
23
22
  disabled: boolean;
24
23
  buttonStyle: ViraButtonStyle;
@@ -99,6 +99,10 @@ export const ViraButton = defineViraElement()({
99
99
  border-color ${viraAnimationDurations['vira-interaction-animation-duration'].value};
100
100
  }
101
101
 
102
+ .empty-text {
103
+ width: 0;
104
+ }
105
+
102
106
  ${createFocusStyles({
103
107
  selector: 'button:focus:focus-visible:not(:active):not([disabled])',
104
108
  elementBorderSize: 2,
@@ -128,7 +132,9 @@ export const ViraButton = defineViraElement()({
128
132
  ? html `
129
133
  <span class="text-template">${inputs.text}</span>
130
134
  `
131
- : nothing;
135
+ : html `
136
+ <span class="empty-text">&nbsp;</span>
137
+ `;
132
138
  return html `
133
139
  <button ?disabled=${inputs.disabled}>${iconTemplate} ${textTemplate}</button>
134
140
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vira",
3
- "version": "26.0.0",
3
+ "version": "26.0.1",
4
4
  "description": "A simple and highly versatile design system using element-vir.",
5
5
  "keywords": [
6
6
  "design",
@@ -67,7 +67,7 @@
67
67
  "vite-tsconfig-paths": "^5.1.4"
68
68
  },
69
69
  "peerDependencies": {
70
- "element-vir": "^26.0.0"
70
+ "element-vir": "^26.0.1"
71
71
  },
72
72
  "engines": {
73
73
  "node": ">=22"