@indielayer/ui 1.6.2 → 1.6.3

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/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "1.6.2";
1
+ declare const _default: "1.6.3";
2
2
  export default _default;
package/lib/version.js CHANGED
@@ -1,4 +1,4 @@
1
- const e = "1.6.2";
1
+ const e = "1.6.3";
2
2
  export {
3
3
  e as default
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indielayer/ui",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "Indielayer UI Components with Tailwind CSS build for Vue 3",
5
5
  "author": {
6
6
  "name": "João Teixeira",
@@ -145,7 +145,7 @@ const { styles, classes, className } = useTheme('Form', {}, props)
145
145
  </div>
146
146
  </slot>
147
147
 
148
- <fieldset :disabled="disabled" :class="classes.content">
148
+ <fieldset :disabled="disabled" :class="classes.content" class="contents">
149
149
  <slot></slot>
150
150
  </fieldset>
151
151
 
@@ -188,6 +188,7 @@ defineExpose({ open, close })
188
188
  <component
189
189
  :is="isForm ? XForm : 'div'"
190
190
  ref="modalRef"
191
+ class="max-h-full"
191
192
  :disabled="formDisabled"
192
193
  :auto-validate="formAutoValidate"
193
194
  :title="formTitle"
@@ -18,7 +18,7 @@ const theme: ModalTheme = {
18
18
 
19
19
  if (props.position === 'top') classes.push('items-start')
20
20
  else if (props.position === 'bottom') classes.push('items-end')
21
- else classes.push('sm:items-end items-center')
21
+ else classes.push('items-end sm:items-center')
22
22
 
23
23
  return classes
24
24
  },
@@ -64,29 +64,6 @@ export function useFocusTrap() {
64
64
  lastEl?.focus()
65
65
  }
66
66
 
67
- } else if (event.key === 'ArrowUp' || event.key === 'ArrowLeft') {
68
- event.preventDefault()
69
- const currentEl = document.activeElement as HTMLElement
70
- const index = focusable.indexOf(currentEl)
71
- const previousEl = focusable[index - 1]
72
-
73
- if (previousEl) {
74
- previousEl.focus()
75
- } else if (lastFocusableEl) {
76
- lastFocusableEl.focus()
77
- }
78
-
79
- } else if (event.key === 'ArrowDown' || event.key === 'ArrowRight') {
80
- event.preventDefault()
81
- const currentEl = document.activeElement as HTMLElement
82
- const index = focusable.indexOf(currentEl)
83
- const nextElement = focusable[index + 1]
84
-
85
- if (nextElement) {
86
- nextElement.focus()
87
- } else if (firstFocusableEl) {
88
- firstFocusableEl.focus()
89
- }
90
67
  }
91
68
  }
92
69
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export default '1.6.2'
1
+ export default '1.6.3'