framepexls-ui-lib 0.2.14 → 0.2.15

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/Dropdown.js CHANGED
@@ -146,7 +146,7 @@ function Trigger({
146
146
  unstyled: true,
147
147
  ref: triggerRef,
148
148
  "aria-haspopup": "menu",
149
- "aria-controls": menuId,
149
+ "aria-controls": open ? menuId : void 0,
150
150
  "aria-expanded": open,
151
151
  onClick,
152
152
  onKeyDown,
package/dist/Dropdown.mjs CHANGED
@@ -116,7 +116,7 @@ function Trigger({
116
116
  unstyled: true,
117
117
  ref: triggerRef,
118
118
  "aria-haspopup": "menu",
119
- "aria-controls": menuId,
119
+ "aria-controls": open ? menuId : void 0,
120
120
  "aria-expanded": open,
121
121
  onClick,
122
122
  onKeyDown,
package/dist/Select.js CHANGED
@@ -175,7 +175,7 @@ function ModernSelect({
175
175
  disabled,
176
176
  "aria-haspopup": "listbox",
177
177
  "aria-expanded": open,
178
- "aria-controls": `${selectId}-listbox`,
178
+ "aria-controls": open ? `${selectId}-listbox` : void 0,
179
179
  "aria-describedby": hintId != null ? hintId : hasError ? errorId : void 0,
180
180
  onClick: () => !disabled && setOpen((o) => !o),
181
181
  onKeyDown: onKeyBtn,
package/dist/Select.mjs CHANGED
@@ -142,7 +142,7 @@ function ModernSelect({
142
142
  disabled,
143
143
  "aria-haspopup": "listbox",
144
144
  "aria-expanded": open,
145
- "aria-controls": `${selectId}-listbox`,
145
+ "aria-controls": open ? `${selectId}-listbox` : void 0,
146
146
  "aria-describedby": hintId != null ? hintId : hasError ? errorId : void 0,
147
147
  onClick: () => !disabled && setOpen((o) => !o),
148
148
  onKeyDown: onKeyBtn,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framepexls-ui-lib",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "Componentes UI de Framepexls para React/Next.",