@saasmakers/ui 2.0.35 → 2.0.37
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.
|
@@ -11,6 +11,7 @@ const props = withDefaults(defineProps<Omit<FieldSelect, 'modelValue'>>(), {
|
|
|
11
11
|
direction: 'bottom',
|
|
12
12
|
disabled: false,
|
|
13
13
|
hideError: false,
|
|
14
|
+
hideCaret: false,
|
|
14
15
|
hideLabel: false,
|
|
15
16
|
label: '',
|
|
16
17
|
labelIcon: undefined,
|
|
@@ -279,7 +280,7 @@ function selectOption(event: MouseEvent, value: string) {
|
|
|
279
280
|
</span>
|
|
280
281
|
|
|
281
282
|
<BaseIcon
|
|
282
|
-
v-if="caret"
|
|
283
|
+
v-if="caret && !hideCaret"
|
|
283
284
|
class="flex-initial"
|
|
284
285
|
:class="{
|
|
285
286
|
'ml-2': !hideLabel,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
import type { LayoutBottomSheet } from '../../types/layout'
|
|
3
3
|
|
|
4
|
-
withDefaults(defineProps<LayoutBottomSheet>(), {
|
|
4
|
+
withDefaults(defineProps<LayoutBottomSheet>(), { ariaLabel: undefined })
|
|
5
5
|
|
|
6
6
|
defineSlots<{
|
|
7
7
|
default?: () => VNode[]
|
|
@@ -199,7 +199,7 @@ watch(visible, (isVisible) => {
|
|
|
199
199
|
<div
|
|
200
200
|
v-if="visible"
|
|
201
201
|
ref="panelRef"
|
|
202
|
-
:aria-label="
|
|
202
|
+
:aria-label="ariaLabel"
|
|
203
203
|
aria-modal="true"
|
|
204
204
|
class="layout-bottom-sheet fixed bottom-0 left-0 right-0 z-[60] mx-auto max-h-[85dvh] max-w-screen-md flex flex-col rounded-t-2xl bg-white text-gray-900 app-text shadow-lg outline-none safe-bottom dark:bg-gray-900 dark:text-gray-100"
|
|
205
205
|
:class="{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
import type { LayoutModal } from '../../types/layout'
|
|
3
3
|
|
|
4
|
-
withDefaults(defineProps<LayoutModal>(), {
|
|
4
|
+
withDefaults(defineProps<LayoutModal>(), { ariaLabel: undefined })
|
|
5
5
|
|
|
6
6
|
defineSlots<{
|
|
7
7
|
default?: () => VNode[]
|
|
@@ -39,7 +39,7 @@ function onClose() {
|
|
|
39
39
|
>
|
|
40
40
|
<div
|
|
41
41
|
ref="panelRef"
|
|
42
|
-
:aria-label="
|
|
42
|
+
:aria-label="ariaLabel"
|
|
43
43
|
aria-modal="true"
|
|
44
44
|
class="scroll-y-stable pointer-events-auto max-h-[85dvh] max-w-md w-full rounded-2xl bg-white p-5 text-gray-900 app-text shadow-lg outline-none dark:bg-gray-900 dark:text-gray-100"
|
|
45
45
|
role="dialog"
|
package/app/types/fields.d.ts
CHANGED
package/app/types/layout.d.ts
CHANGED