@eslamdevui/ui 3.2.0-beta.2 → 3.2.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.
- package/.nuxt/ui/alert.ts +0 -5
- package/.nuxt/ui/badge.ts +0 -5
- package/.nuxt/ui/button-group.ts +0 -13
- package/.nuxt/ui/button.ts +0 -5
- package/.nuxt/ui/carousel.ts +0 -5
- package/.nuxt/ui/content-surround.ts +0 -5
- package/.nuxt/ui/dashboard-navbar.ts +0 -5
- package/.nuxt/ui/dashboard-sidebar-collapse.ts +0 -5
- package/.nuxt/ui/dashboard-sidebar-toggle.ts +0 -5
- package/.nuxt/ui/dashboard-sidebar.ts +0 -10
- package/.nuxt/ui/index.ts +1 -48
- package/.nuxt/ui/input-menu.ts +0 -9
- package/.nuxt/ui/input-number.ts +0 -5
- package/.nuxt/ui/input-tags.ts +0 -9
- package/.nuxt/ui/input.ts +0 -9
- package/.nuxt/ui/select-menu.ts +0 -9
- package/.nuxt/ui/select.ts +0 -9
- package/.nuxt/ui/textarea.ts +0 -9
- package/.nuxt/ui/toast.ts +0 -5
- package/LICENSE.md +9 -9
- package/README.md +147 -147
- package/cli/commands/make/component.mjs +95 -95
- package/cli/commands/make/index.mjs +14 -14
- package/cli/commands/make/locale.mjs +64 -64
- package/cli/index.mjs +15 -15
- package/cli/package.json +13 -13
- package/cli/templates.mjs +236 -236
- package/cli/utils.mjs +31 -31
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Accordion.vue +36 -36
- package/dist/runtime/components/Alert.vue +46 -46
- package/dist/runtime/components/App.vue +10 -10
- package/dist/runtime/components/Avatar.vue +27 -27
- package/dist/runtime/components/AvatarGroup.vue +4 -4
- package/dist/runtime/components/Badge.vue +16 -16
- package/dist/runtime/components/Breadcrumb.vue +32 -32
- package/dist/runtime/components/Button.vue +28 -28
- package/dist/runtime/components/ButtonGroup.vue +3 -3
- package/dist/runtime/components/Calendar.vue +74 -74
- package/dist/runtime/components/Card.vue +13 -13
- package/dist/runtime/components/Carousel.vue +58 -58
- package/dist/runtime/components/ChatMessage.vue +35 -35
- package/dist/runtime/components/ChatMessages.vue +55 -55
- package/dist/runtime/components/ChatPrompt.vue +26 -26
- package/dist/runtime/components/ChatPromptSubmit.vue +10 -10
- package/dist/runtime/components/Checkbox.vue +33 -33
- package/dist/runtime/components/CheckboxGroup.vue +32 -32
- package/dist/runtime/components/Chip.vue +11 -11
- package/dist/runtime/components/Collapsible.vue +9 -9
- package/dist/runtime/components/ColorPicker.vue +30 -30
- package/dist/runtime/components/CommandPalette.vue +117 -117
- package/dist/runtime/components/Container.vue +3 -3
- package/dist/runtime/components/ContextMenu.vue +22 -22
- package/dist/runtime/components/ContextMenuContent.vue +105 -105
- package/dist/runtime/components/DashboardGroup.vue +3 -3
- package/dist/runtime/components/DashboardNavbar.vue +40 -40
- package/dist/runtime/components/DashboardPanel.vue +27 -27
- package/dist/runtime/components/DashboardResizeHandle.vue +7 -7
- package/dist/runtime/components/DashboardSearch.vue +20 -20
- package/dist/runtime/components/DashboardSearchButton.vue +43 -43
- package/dist/runtime/components/DashboardSidebar.vue +74 -74
- package/dist/runtime/components/DashboardSidebarCollapse.vue +7 -7
- package/dist/runtime/components/DashboardSidebarToggle.vue +7 -7
- package/dist/runtime/components/Drawer.vue +55 -55
- package/dist/runtime/components/DropdownMenu.vue +24 -24
- package/dist/runtime/components/DropdownMenuContent.vue +107 -107
- package/dist/runtime/components/Error.vue +22 -22
- package/dist/runtime/components/Form.vue +8 -8
- package/dist/runtime/components/FormField.vue +37 -37
- package/dist/runtime/components/Icon.vue +1 -1
- package/dist/runtime/components/Input.vue +34 -34
- package/dist/runtime/components/InputMenu.vue +163 -163
- package/dist/runtime/components/InputNumber.vue +49 -49
- package/dist/runtime/components/InputTags.vue +55 -55
- package/dist/runtime/components/Kbd.vue +5 -5
- package/dist/runtime/components/Link.vue +14 -14
- package/dist/runtime/components/LinkBase.vue +8 -8
- package/dist/runtime/components/Modal.vue +69 -69
- package/dist/runtime/components/NavigationMenu.vue +166 -166
- package/dist/runtime/components/OverlayProvider.vue +9 -9
- package/dist/runtime/components/Pagination.vue +47 -47
- package/dist/runtime/components/PinInput.vue +20 -20
- package/dist/runtime/components/Popover.vue +17 -17
- package/dist/runtime/components/Progress.vue +19 -19
- package/dist/runtime/components/RadioGroup.vue +43 -43
- package/dist/runtime/components/Select.vue +96 -96
- package/dist/runtime/components/SelectMenu.vue +130 -130
- package/dist/runtime/components/Separator.vue +15 -15
- package/dist/runtime/components/Skeleton.vue +10 -10
- package/dist/runtime/components/Slideover.vue +76 -76
- package/dist/runtime/components/Slider.vue +27 -27
- package/dist/runtime/components/Stepper.vue +51 -51
- package/dist/runtime/components/Switch.vue +33 -33
- package/dist/runtime/components/Table.vue +77 -77
- package/dist/runtime/components/Tabs.vue +37 -37
- package/dist/runtime/components/Textarea.vue +33 -33
- package/dist/runtime/components/Timeline.vue +38 -38
- package/dist/runtime/components/Toast.vue +69 -69
- package/dist/runtime/components/Toaster.vue +28 -28
- package/dist/runtime/components/Tooltip.vue +19 -19
- package/dist/runtime/components/Tree.vue +60 -60
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue +2 -2
- package/dist/runtime/components/color-mode/ColorModeButton.vue +16 -16
- package/dist/runtime/components/color-mode/ColorModeImage.vue +2 -2
- package/dist/runtime/components/color-mode/ColorModeSelect.vue +19 -19
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue +19 -19
- package/dist/runtime/components/content/ContentNavigation.vue +109 -109
- package/dist/runtime/components/content/ContentSearch.vue +25 -25
- package/dist/runtime/components/content/ContentSearchButton.vue +38 -38
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +12 -12
- package/dist/runtime/components/content/ContentSurround.vue +29 -29
- package/dist/runtime/components/content/ContentSurround.vue.d.ts +59 -59
- package/dist/runtime/components/content/ContentToc.vue +68 -68
- package/dist/runtime/components/content/ContentToc.vue.d.ts +88 -88
- package/dist/runtime/components/locale/LocaleSelect.vue +20 -20
- package/dist/runtime/components/prose/A.vue +3 -3
- package/dist/runtime/components/prose/Accordion.vue +5 -5
- package/dist/runtime/components/prose/AccordionItem.vue +5 -5
- package/dist/runtime/components/prose/Badge.vue +3 -3
- package/dist/runtime/components/prose/Blockquote.vue +3 -3
- package/dist/runtime/components/prose/Callout.vue +27 -27
- package/dist/runtime/components/prose/Card.vue +43 -43
- package/dist/runtime/components/prose/CardGroup.vue +3 -3
- package/dist/runtime/components/prose/Code.vue +3 -3
- package/dist/runtime/components/prose/CodeCollapse.vue +16 -16
- package/dist/runtime/components/prose/CodeGroup.vue +15 -15
- package/dist/runtime/components/prose/CodeIcon.vue +1 -1
- package/dist/runtime/components/prose/CodePreview.vue +9 -9
- package/dist/runtime/components/prose/CodeTree.vue +61 -61
- package/dist/runtime/components/prose/Collapsible.vue +15 -15
- package/dist/runtime/components/prose/Em.vue +1 -1
- package/dist/runtime/components/prose/Field.vue +23 -23
- package/dist/runtime/components/prose/FieldGroup.vue +3 -3
- package/dist/runtime/components/prose/H1.vue +6 -6
- package/dist/runtime/components/prose/H2.vue +10 -10
- package/dist/runtime/components/prose/H3.vue +10 -10
- package/dist/runtime/components/prose/H4.vue +6 -6
- package/dist/runtime/components/prose/Hr.vue +1 -1
- package/dist/runtime/components/prose/Icon.vue +1 -1
- package/dist/runtime/components/prose/Img.vue +8 -8
- package/dist/runtime/components/prose/Kbd.vue +1 -1
- package/dist/runtime/components/prose/Li.vue +3 -3
- package/dist/runtime/components/prose/Ol.vue +3 -3
- package/dist/runtime/components/prose/P.vue +3 -3
- package/dist/runtime/components/prose/Pre.vue +20 -20
- package/dist/runtime/components/prose/Script.vue +3 -3
- package/dist/runtime/components/prose/Steps.vue +3 -3
- package/dist/runtime/components/prose/Strong.vue +3 -3
- package/dist/runtime/components/prose/Table.vue +5 -5
- package/dist/runtime/components/prose/Tabs.vue +14 -14
- package/dist/runtime/components/prose/TabsItem.vue +5 -5
- package/dist/runtime/components/prose/Tbody.vue +3 -3
- package/dist/runtime/components/prose/Td.vue +3 -3
- package/dist/runtime/components/prose/Th.vue +3 -3
- package/dist/runtime/components/prose/Thead.vue +3 -3
- package/dist/runtime/components/prose/Tr.vue +3 -3
- package/dist/runtime/components/prose/Ul.vue +3 -3
- package/dist/runtime/components/prose/callout/Caution.vue +3 -3
- package/dist/runtime/components/prose/callout/Note.vue +3 -3
- package/dist/runtime/components/prose/callout/Tip.vue +3 -3
- package/dist/runtime/components/prose/callout/Warning.vue +3 -3
- package/dist/runtime/inertia/components/Link.vue +12 -12
- package/dist/runtime/inertia/components/LinkBase.vue +15 -15
- package/dist/runtime/types/app.config.d.ts +6 -6
- package/dist/runtime/vue/components/Icon.vue +1 -1
- package/dist/runtime/vue/components/Link.vue +31 -31
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue +7 -7
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +7 -7
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +7 -7
- package/package.json +1 -1
- package/vue-plugin.d.ts +5 -5
- package/.nuxt/ui/content/content-navigation.ts +0 -339
- package/.nuxt/ui/content/content-search-button.ts +0 -6
- package/.nuxt/ui/content/content-search.ts +0 -6
- package/.nuxt/ui/content/content-surround.ts +0 -39
- package/.nuxt/ui/content/content-toc.ts +0 -150
- package/.nuxt/ui/content/index.ts +0 -5
- package/.nuxt/ui/error.ts +0 -9
- package/.nuxt/ui/prose/a.ts +0 -6
- package/.nuxt/ui/prose/accordion-item.ts +0 -3
- package/.nuxt/ui/prose/accordion.ts +0 -6
- package/.nuxt/ui/prose/badge.ts +0 -3
- package/.nuxt/ui/prose/blockquote.ts +0 -3
- package/.nuxt/ui/prose/callout.ts +0 -129
- package/.nuxt/ui/prose/card-group.ts +0 -3
- package/.nuxt/ui/prose/card.ts +0 -119
- package/.nuxt/ui/prose/code-collapse.ts +0 -19
- package/.nuxt/ui/prose/code-group.ts +0 -13
- package/.nuxt/ui/prose/code-icon.ts +0 -66
- package/.nuxt/ui/prose/code-preview.ts +0 -14
- package/.nuxt/ui/prose/code-tree.ts +0 -28
- package/.nuxt/ui/prose/code.ts +0 -27
- package/.nuxt/ui/prose/collapsible.ts +0 -12
- package/.nuxt/ui/prose/em.ts +0 -3
- package/.nuxt/ui/prose/field-group.ts +0 -3
- package/.nuxt/ui/prose/field.ts +0 -11
- package/.nuxt/ui/prose/h1.ts +0 -6
- package/.nuxt/ui/prose/h2.ts +0 -14
- package/.nuxt/ui/prose/h3.ts +0 -14
- package/.nuxt/ui/prose/h4.ts +0 -6
- package/.nuxt/ui/prose/hr.ts +0 -3
- package/.nuxt/ui/prose/icon.ts +0 -3
- package/.nuxt/ui/prose/img.ts +0 -3
- package/.nuxt/ui/prose/index.ts +0 -41
- package/.nuxt/ui/prose/kbd.ts +0 -3
- package/.nuxt/ui/prose/li.ts +0 -3
- package/.nuxt/ui/prose/ol.ts +0 -3
- package/.nuxt/ui/prose/p.ts +0 -3
- package/.nuxt/ui/prose/pre.ts +0 -17
- package/.nuxt/ui/prose/steps.ts +0 -19
- package/.nuxt/ui/prose/strong.ts +0 -3
- package/.nuxt/ui/prose/table.ts +0 -6
- package/.nuxt/ui/prose/tabs-item.ts +0 -3
- package/.nuxt/ui/prose/tabs.ts +0 -5
- package/.nuxt/ui/prose/tbody.ts +0 -3
- package/.nuxt/ui/prose/td.ts +0 -3
- package/.nuxt/ui/prose/th.ts +0 -3
- package/.nuxt/ui/prose/thead.ts +0 -3
- package/.nuxt/ui/prose/tr.ts +0 -3
- package/.nuxt/ui/prose/ul.ts +0 -3
|
@@ -47,51 +47,51 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pagination ||
|
|
|
47
47
|
</script>
|
|
48
48
|
|
|
49
49
|
<template>
|
|
50
|
-
<PaginationRoot v-slot="{ page, pageCount }" v-bind="rootProps" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
51
|
-
<PaginationList v-slot="{ items }" :class="ui.list({ class: props.ui?.list })">
|
|
52
|
-
<PaginationFirst v-if="showControls || !!slots.first" as-child :class="ui.first({ class: props.ui?.first })">
|
|
53
|
-
<slot name="first">
|
|
54
|
-
<UButton :color="color" :variant="variant" :size="size" :icon="firstIcon" :to="to?.(1)" />
|
|
55
|
-
</slot>
|
|
56
|
-
</PaginationFirst>
|
|
57
|
-
<PaginationPrev v-if="showControls || !!slots.prev" as-child :class="ui.prev({ class: props.ui?.prev })">
|
|
58
|
-
<slot name="prev">
|
|
59
|
-
<UButton :color="color" :variant="variant" :size="size" :icon="prevIcon" :to="page > 1 ? to?.(page - 1) : void 0" />
|
|
60
|
-
</slot>
|
|
61
|
-
</PaginationPrev>
|
|
62
|
-
|
|
63
|
-
<template v-for="(item, index) in items">
|
|
64
|
-
<PaginationListItem v-if="item.type === 'page'" :key="index" as-child :value="item.value" :class="ui.item({ class: props.ui?.item })">
|
|
65
|
-
<slot name="item" v-bind="{ item, index, page, pageCount }">
|
|
66
|
-
<UButton
|
|
67
|
-
:color="page === item.value ? activeColor : color"
|
|
68
|
-
:variant="page === item.value ? activeVariant : variant"
|
|
69
|
-
:size="size"
|
|
70
|
-
:label="String(item.value)"
|
|
71
|
-
:ui="{ label: ui.label() }"
|
|
72
|
-
:to="to?.(item.value)"
|
|
73
|
-
square
|
|
74
|
-
/>
|
|
75
|
-
</slot>
|
|
76
|
-
</PaginationListItem>
|
|
77
|
-
|
|
78
|
-
<PaginationEllipsis v-else :key="item.type" :index="index" as-child :class="ui.ellipsis({ class: props.ui?.ellipsis })">
|
|
79
|
-
<slot name="ellipsis">
|
|
80
|
-
<UButton :color="color" :variant="variant" :size="size" :icon="ellipsisIcon || appConfig.ui.icons.ellipsis" />
|
|
81
|
-
</slot>
|
|
82
|
-
</PaginationEllipsis>
|
|
83
|
-
</template>
|
|
84
|
-
|
|
85
|
-
<PaginationNext v-if="showControls || !!slots.next" as-child :class="ui.next({ class: props.ui?.next })">
|
|
86
|
-
<slot name="next">
|
|
87
|
-
<UButton :color="color" :variant="variant" :size="size" :icon="nextIcon" :to="page < pageCount ? to?.(page + 1) : void 0" />
|
|
88
|
-
</slot>
|
|
89
|
-
</PaginationNext>
|
|
90
|
-
<PaginationLast v-if="showControls || !!slots.last" as-child :class="ui.last({ class: props.ui?.last })">
|
|
91
|
-
<slot name="last">
|
|
92
|
-
<UButton :color="color" :variant="variant" :size="size" :icon="lastIcon" :to="to?.(pageCount)" />
|
|
93
|
-
</slot>
|
|
94
|
-
</PaginationLast>
|
|
95
|
-
</PaginationList>
|
|
96
|
-
</PaginationRoot>
|
|
50
|
+
<PaginationRoot v-slot="{ page, pageCount }" v-bind="rootProps" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
51
|
+
<PaginationList v-slot="{ items }" :class="ui.list({ class: props.ui?.list })">
|
|
52
|
+
<PaginationFirst v-if="showControls || !!slots.first" as-child :class="ui.first({ class: props.ui?.first })">
|
|
53
|
+
<slot name="first">
|
|
54
|
+
<UButton :color="color" :variant="variant" :size="size" :icon="firstIcon" :to="to?.(1)" />
|
|
55
|
+
</slot>
|
|
56
|
+
</PaginationFirst>
|
|
57
|
+
<PaginationPrev v-if="showControls || !!slots.prev" as-child :class="ui.prev({ class: props.ui?.prev })">
|
|
58
|
+
<slot name="prev">
|
|
59
|
+
<UButton :color="color" :variant="variant" :size="size" :icon="prevIcon" :to="page > 1 ? to?.(page - 1) : void 0" />
|
|
60
|
+
</slot>
|
|
61
|
+
</PaginationPrev>
|
|
62
|
+
|
|
63
|
+
<template v-for="(item, index) in items">
|
|
64
|
+
<PaginationListItem v-if="item.type === 'page'" :key="index" as-child :value="item.value" :class="ui.item({ class: props.ui?.item })">
|
|
65
|
+
<slot name="item" v-bind="{ item, index, page, pageCount }">
|
|
66
|
+
<UButton
|
|
67
|
+
:color="page === item.value ? activeColor : color"
|
|
68
|
+
:variant="page === item.value ? activeVariant : variant"
|
|
69
|
+
:size="size"
|
|
70
|
+
:label="String(item.value)"
|
|
71
|
+
:ui="{ label: ui.label() }"
|
|
72
|
+
:to="to?.(item.value)"
|
|
73
|
+
square
|
|
74
|
+
/>
|
|
75
|
+
</slot>
|
|
76
|
+
</PaginationListItem>
|
|
77
|
+
|
|
78
|
+
<PaginationEllipsis v-else :key="item.type" :index="index" as-child :class="ui.ellipsis({ class: props.ui?.ellipsis })">
|
|
79
|
+
<slot name="ellipsis">
|
|
80
|
+
<UButton :color="color" :variant="variant" :size="size" :icon="ellipsisIcon || appConfig.ui.icons.ellipsis" />
|
|
81
|
+
</slot>
|
|
82
|
+
</PaginationEllipsis>
|
|
83
|
+
</template>
|
|
84
|
+
|
|
85
|
+
<PaginationNext v-if="showControls || !!slots.next" as-child :class="ui.next({ class: props.ui?.next })">
|
|
86
|
+
<slot name="next">
|
|
87
|
+
<UButton :color="color" :variant="variant" :size="size" :icon="nextIcon" :to="page < pageCount ? to?.(page + 1) : void 0" />
|
|
88
|
+
</slot>
|
|
89
|
+
</PaginationNext>
|
|
90
|
+
<PaginationLast v-if="showControls || !!slots.last" as-child :class="ui.last({ class: props.ui?.last })">
|
|
91
|
+
<slot name="last">
|
|
92
|
+
<UButton :color="color" :variant="variant" :size="size" :icon="lastIcon" :to="to?.(pageCount)" />
|
|
93
|
+
</slot>
|
|
94
|
+
</PaginationLast>
|
|
95
|
+
</PaginationList>
|
|
96
|
+
</PaginationRoot>
|
|
97
97
|
</template>
|
|
@@ -71,24 +71,24 @@ defineExpose({
|
|
|
71
71
|
</script>
|
|
72
72
|
|
|
73
73
|
<template>
|
|
74
|
-
<PinInputRoot
|
|
75
|
-
v-bind="{ ...rootProps, ...ariaAttrs }"
|
|
76
|
-
:id="id"
|
|
77
|
-
:name="name"
|
|
78
|
-
:placeholder="placeholder"
|
|
79
|
-
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
|
80
|
-
@update:model-value="emitFormInput()"
|
|
81
|
-
@complete="onComplete"
|
|
82
|
-
>
|
|
83
|
-
<PinInputInput
|
|
84
|
-
v-for="(ids, index) in looseToNumber(props.length)"
|
|
85
|
-
:key="ids"
|
|
86
|
-
:ref="(el) => inputsRef[index] = el"
|
|
87
|
-
:index="index"
|
|
88
|
-
:class="ui.base({ class: props.ui?.base })"
|
|
89
|
-
:disabled="disabled"
|
|
90
|
-
@blur="onBlur"
|
|
91
|
-
@focus="emitFormFocus"
|
|
92
|
-
/>
|
|
93
|
-
</PinInputRoot>
|
|
74
|
+
<PinInputRoot
|
|
75
|
+
v-bind="{ ...rootProps, ...ariaAttrs }"
|
|
76
|
+
:id="id"
|
|
77
|
+
:name="name"
|
|
78
|
+
:placeholder="placeholder"
|
|
79
|
+
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
|
80
|
+
@update:model-value="emitFormInput()"
|
|
81
|
+
@complete="onComplete"
|
|
82
|
+
>
|
|
83
|
+
<PinInputInput
|
|
84
|
+
v-for="(ids, index) in looseToNumber(props.length)"
|
|
85
|
+
:key="ids"
|
|
86
|
+
:ref="(el) => inputsRef[index] = el"
|
|
87
|
+
:index="index"
|
|
88
|
+
:class="ui.base({ class: props.ui?.base })"
|
|
89
|
+
:disabled="disabled"
|
|
90
|
+
@blur="onBlur"
|
|
91
|
+
@focus="emitFormFocus"
|
|
92
|
+
/>
|
|
93
|
+
</PinInputRoot>
|
|
94
94
|
</template>
|
|
@@ -53,21 +53,21 @@ const Component = computed(() => props.mode === "hover" ? HoverCard : Popover);
|
|
|
53
53
|
</script>
|
|
54
54
|
|
|
55
55
|
<template>
|
|
56
|
-
<Component.Root v-slot="{ open }" v-bind="rootProps">
|
|
57
|
-
<Component.Trigger v-if="!!slots.default" as-child :class="props.class">
|
|
58
|
-
<slot :open="open" />
|
|
59
|
-
</Component.Trigger>
|
|
60
|
-
|
|
61
|
-
<Component.Anchor v-if="'Anchor' in Component && !!slots.anchor" as-child>
|
|
62
|
-
<slot name="anchor" />
|
|
63
|
-
</Component.Anchor>
|
|
64
|
-
|
|
65
|
-
<Component.Portal v-bind="portalProps">
|
|
66
|
-
<Component.Content v-bind="contentProps" :class="ui.content({ class: [!slots.default && props.class, props.ui?.content] })" v-on="contentEvents">
|
|
67
|
-
<slot name="content" />
|
|
68
|
-
|
|
69
|
-
<Component.Arrow v-if="!!arrow" v-bind="arrowProps" :class="ui.arrow({ class: props.ui?.arrow })" />
|
|
70
|
-
</Component.Content>
|
|
71
|
-
</Component.Portal>
|
|
72
|
-
</Component.Root>
|
|
56
|
+
<Component.Root v-slot="{ open }" v-bind="rootProps">
|
|
57
|
+
<Component.Trigger v-if="!!slots.default" as-child :class="props.class">
|
|
58
|
+
<slot :open="open" />
|
|
59
|
+
</Component.Trigger>
|
|
60
|
+
|
|
61
|
+
<Component.Anchor v-if="'Anchor' in Component && !!slots.anchor" as-child>
|
|
62
|
+
<slot name="anchor" />
|
|
63
|
+
</Component.Anchor>
|
|
64
|
+
|
|
65
|
+
<Component.Portal v-bind="portalProps">
|
|
66
|
+
<Component.Content v-bind="contentProps" :class="ui.content({ class: [!slots.default && props.class, props.ui?.content] })" v-on="contentEvents">
|
|
67
|
+
<slot name="content" />
|
|
68
|
+
|
|
69
|
+
<Component.Arrow v-if="!!arrow" v-bind="arrowProps" :class="ui.arrow({ class: props.ui?.arrow })" />
|
|
70
|
+
</Component.Content>
|
|
71
|
+
</Component.Portal>
|
|
72
|
+
</Component.Root>
|
|
73
73
|
</template>
|
|
@@ -110,23 +110,23 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.progress || {
|
|
|
110
110
|
</script>
|
|
111
111
|
|
|
112
112
|
<template>
|
|
113
|
-
<Primitive :as="as" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
114
|
-
<div v-if="!isIndeterminate && (status || !!slots.status)" :class="ui.status({ class: props.ui?.status })" :style="statusStyle">
|
|
115
|
-
<slot name="status" :percent="percent">
|
|
116
|
-
{{ percent }}%
|
|
117
|
-
</slot>
|
|
118
|
-
</div>
|
|
119
|
-
|
|
120
|
-
<ProgressRoot v-bind="rootProps" :max="realMax" :class="ui.base({ class: props.ui?.base })" style="transform: translateZ(0)">
|
|
121
|
-
<ProgressIndicator :class="ui.indicator({ class: props.ui?.indicator })" :style="indicatorStyle" />
|
|
122
|
-
</ProgressRoot>
|
|
123
|
-
|
|
124
|
-
<div v-if="hasSteps" :class="ui.steps({ class: props.ui?.steps })">
|
|
125
|
-
<div v-for="(step, index) in max" :key="index" :class="ui.step({ class: props.ui?.step, step: stepVariant(index) })">
|
|
126
|
-
<slot :name="`step-${index}`" :step="step">
|
|
127
|
-
{{ step }}
|
|
128
|
-
</slot>
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
</Primitive>
|
|
113
|
+
<Primitive :as="as" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
114
|
+
<div v-if="!isIndeterminate && (status || !!slots.status)" :class="ui.status({ class: props.ui?.status })" :style="statusStyle">
|
|
115
|
+
<slot name="status" :percent="percent">
|
|
116
|
+
{{ percent }}%
|
|
117
|
+
</slot>
|
|
118
|
+
</div>
|
|
119
|
+
|
|
120
|
+
<ProgressRoot v-bind="rootProps" :max="realMax" :class="ui.base({ class: props.ui?.base })" style="transform: translateZ(0)">
|
|
121
|
+
<ProgressIndicator :class="ui.indicator({ class: props.ui?.indicator })" :style="indicatorStyle" />
|
|
122
|
+
</ProgressRoot>
|
|
123
|
+
|
|
124
|
+
<div v-if="hasSteps" :class="ui.steps({ class: props.ui?.steps })">
|
|
125
|
+
<div v-for="(step, index) in max" :key="index" :class="ui.step({ class: props.ui?.step, step: stepVariant(index) })">
|
|
126
|
+
<slot :name="`step-${index}`" :step="step">
|
|
127
|
+
{{ step }}
|
|
128
|
+
</slot>
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
</Primitive>
|
|
132
132
|
</template>
|
|
@@ -87,47 +87,47 @@ function onUpdate(value) {
|
|
|
87
87
|
</script>
|
|
88
88
|
|
|
89
89
|
<template>
|
|
90
|
-
<RadioGroupRoot
|
|
91
|
-
:id="id"
|
|
92
|
-
v-slot="{ modelValue }"
|
|
93
|
-
v-bind="rootProps"
|
|
94
|
-
:name="name"
|
|
95
|
-
:disabled="disabled"
|
|
96
|
-
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
|
97
|
-
@update:model-value="onUpdate"
|
|
98
|
-
>
|
|
99
|
-
<fieldset :class="ui.fieldset({ class: props.ui?.fieldset })" v-bind="ariaAttrs">
|
|
100
|
-
<legend v-if="legend || !!slots.legend" :class="ui.legend({ class: props.ui?.legend })">
|
|
101
|
-
<slot name="legend">
|
|
102
|
-
{{ legend }}
|
|
103
|
-
</slot>
|
|
104
|
-
</legend>
|
|
105
|
-
|
|
106
|
-
<component :is="!variant || variant === 'list' ? 'div' : Label" v-for="item in normalizedItems" :key="item.value" :class="ui.item({ class: [props.ui?.item, item.ui?.item, item.class] })">
|
|
107
|
-
<div :class="ui.container({ class: [props.ui?.container, item.ui?.container] })">
|
|
108
|
-
<RadioGroupItem
|
|
109
|
-
:id="item.id"
|
|
110
|
-
:value="item.value"
|
|
111
|
-
:disabled="item.disabled"
|
|
112
|
-
:class="ui.base({ class: [props.ui?.base, item.ui?.base], disabled: item.disabled })"
|
|
113
|
-
>
|
|
114
|
-
<RadioGroupIndicator :class="ui.indicator({ class: [props.ui?.indicator, item.ui?.indicator] })" />
|
|
115
|
-
</RadioGroupItem>
|
|
116
|
-
</div>
|
|
117
|
-
|
|
118
|
-
<div v-if="item.label || !!slots.label || (item.description || !!slots.description)" :class="ui.wrapper({ class: [props.ui?.wrapper, item.ui?.wrapper] })">
|
|
119
|
-
<component :is="!variant || variant === 'list' ? Label : 'p'" v-if="item.label || !!slots.label" :for="item.id" :class="ui.label({ class: [props.ui?.label, item.ui?.label] })">
|
|
120
|
-
<slot name="label" :item="item" :model-value="modelValue">
|
|
121
|
-
{{ item.label }}
|
|
122
|
-
</slot>
|
|
123
|
-
</component>
|
|
124
|
-
<p v-if="item.description || !!slots.description" :class="ui.description({ class: [props.ui?.description, item.ui?.description] })">
|
|
125
|
-
<slot name="description" :item="item" :model-value="modelValue">
|
|
126
|
-
{{ item.description }}
|
|
127
|
-
</slot>
|
|
128
|
-
</p>
|
|
129
|
-
</div>
|
|
130
|
-
</component>
|
|
131
|
-
</fieldset>
|
|
132
|
-
</RadioGroupRoot>
|
|
90
|
+
<RadioGroupRoot
|
|
91
|
+
:id="id"
|
|
92
|
+
v-slot="{ modelValue }"
|
|
93
|
+
v-bind="rootProps"
|
|
94
|
+
:name="name"
|
|
95
|
+
:disabled="disabled"
|
|
96
|
+
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
|
97
|
+
@update:model-value="onUpdate"
|
|
98
|
+
>
|
|
99
|
+
<fieldset :class="ui.fieldset({ class: props.ui?.fieldset })" v-bind="ariaAttrs">
|
|
100
|
+
<legend v-if="legend || !!slots.legend" :class="ui.legend({ class: props.ui?.legend })">
|
|
101
|
+
<slot name="legend">
|
|
102
|
+
{{ legend }}
|
|
103
|
+
</slot>
|
|
104
|
+
</legend>
|
|
105
|
+
|
|
106
|
+
<component :is="!variant || variant === 'list' ? 'div' : Label" v-for="item in normalizedItems" :key="item.value" :class="ui.item({ class: [props.ui?.item, item.ui?.item, item.class] })">
|
|
107
|
+
<div :class="ui.container({ class: [props.ui?.container, item.ui?.container] })">
|
|
108
|
+
<RadioGroupItem
|
|
109
|
+
:id="item.id"
|
|
110
|
+
:value="item.value"
|
|
111
|
+
:disabled="item.disabled"
|
|
112
|
+
:class="ui.base({ class: [props.ui?.base, item.ui?.base], disabled: item.disabled })"
|
|
113
|
+
>
|
|
114
|
+
<RadioGroupIndicator :class="ui.indicator({ class: [props.ui?.indicator, item.ui?.indicator] })" />
|
|
115
|
+
</RadioGroupItem>
|
|
116
|
+
</div>
|
|
117
|
+
|
|
118
|
+
<div v-if="item.label || !!slots.label || (item.description || !!slots.description)" :class="ui.wrapper({ class: [props.ui?.wrapper, item.ui?.wrapper] })">
|
|
119
|
+
<component :is="!variant || variant === 'list' ? Label : 'p'" v-if="item.label || !!slots.label" :for="item.id" :class="ui.label({ class: [props.ui?.label, item.ui?.label] })">
|
|
120
|
+
<slot name="label" :item="item" :model-value="modelValue">
|
|
121
|
+
{{ item.label }}
|
|
122
|
+
</slot>
|
|
123
|
+
</component>
|
|
124
|
+
<p v-if="item.description || !!slots.description" :class="ui.description({ class: [props.ui?.description, item.ui?.description] })">
|
|
125
|
+
<slot name="description" :item="item" :model-value="modelValue">
|
|
126
|
+
{{ item.description }}
|
|
127
|
+
</slot>
|
|
128
|
+
</p>
|
|
129
|
+
</div>
|
|
130
|
+
</component>
|
|
131
|
+
</fieldset>
|
|
132
|
+
</RadioGroupRoot>
|
|
133
133
|
</template>
|
|
@@ -126,100 +126,100 @@ defineExpose({
|
|
|
126
126
|
</script>
|
|
127
127
|
|
|
128
128
|
<template>
|
|
129
|
-
<SelectRoot
|
|
130
|
-
v-slot="{ modelValue, open }"
|
|
131
|
-
:name="name"
|
|
132
|
-
v-bind="rootProps"
|
|
133
|
-
:autocomplete="autocomplete"
|
|
134
|
-
:disabled="disabled"
|
|
135
|
-
:default-value="defaultValue"
|
|
136
|
-
:model-value="modelValue"
|
|
137
|
-
@update:model-value="onUpdate"
|
|
138
|
-
@update:open="onUpdateOpen"
|
|
139
|
-
>
|
|
140
|
-
<SelectTrigger :id="id" ref="triggerRef" :class="ui.base({ class: [props.ui?.base, props.class] })" v-bind="{ ...$attrs, ...ariaAttrs }">
|
|
141
|
-
<span v-if="isLeading || !!avatar || !!slots.leading" :class="ui.leading({ class: props.ui?.leading })">
|
|
142
|
-
<slot name="leading" :model-value="modelValue" :open="open" :ui="ui">
|
|
143
|
-
<UIcon v-if="isLeading && leadingIconName" :name="leadingIconName" :class="ui.leadingIcon({ class: props.ui?.leadingIcon })" />
|
|
144
|
-
<UAvatar v-else-if="!!avatar" :size="props.ui?.itemLeadingAvatarSize || ui.itemLeadingAvatarSize()" v-bind="avatar" :class="ui.itemLeadingAvatar({ class: props.ui?.itemLeadingAvatar })" />
|
|
145
|
-
</slot>
|
|
146
|
-
</span>
|
|
147
|
-
|
|
148
|
-
<slot :model-value="modelValue" :open="open">
|
|
149
|
-
<template v-for="displayedModelValue in [displayValue(modelValue)]" :key="displayedModelValue">
|
|
150
|
-
<span v-if="displayedModelValue !== void 0 && displayedModelValue !== null" :class="ui.value({ class: props.ui?.value })">
|
|
151
|
-
{{ displayedModelValue }}
|
|
152
|
-
</span>
|
|
153
|
-
<span v-else :class="ui.placeholder({ class: props.ui?.placeholder })">
|
|
154
|
-
{{ placeholder ?? "\xA0" }}
|
|
155
|
-
</span>
|
|
156
|
-
</template>
|
|
157
|
-
</slot>
|
|
158
|
-
|
|
159
|
-
<span v-if="isTrailing || !!slots.trailing" :class="ui.trailing({ class: props.ui?.trailing })">
|
|
160
|
-
<slot name="trailing" :model-value="modelValue" :open="open" :ui="ui">
|
|
161
|
-
<UIcon v-if="trailingIconName" :name="trailingIconName" :class="ui.trailingIcon({ class: props.ui?.trailingIcon })" />
|
|
162
|
-
</slot>
|
|
163
|
-
</span>
|
|
164
|
-
</SelectTrigger>
|
|
165
|
-
|
|
166
|
-
<SelectPortal v-bind="portalProps">
|
|
167
|
-
<SelectContent :class="ui.content({ class: props.ui?.content })" v-bind="contentProps">
|
|
168
|
-
<slot name="content-top" />
|
|
169
|
-
|
|
170
|
-
<div role="presentation" :class="ui.viewport({ class: props.ui?.viewport })">
|
|
171
|
-
<SelectGroup v-for="(group, groupIndex) in groups" :key="`group-${groupIndex}`" :class="ui.group({ class: props.ui?.group })">
|
|
172
|
-
<template v-for="(item, index) in group" :key="`group-${groupIndex}-${index}`">
|
|
173
|
-
<SelectLabel v-if="isSelectItem(item) && item.type === 'label'" :class="ui.label({ class: [props.ui?.label, item.ui?.label, item.class] })">
|
|
174
|
-
{{ get(item, props.labelKey) }}
|
|
175
|
-
</SelectLabel>
|
|
176
|
-
|
|
177
|
-
<SelectSeparator v-else-if="isSelectItem(item) && item.type === 'separator'" :class="ui.separator({ class: [props.ui?.separator, item.ui?.separator, item.class] })" />
|
|
178
|
-
|
|
179
|
-
<SelectItem
|
|
180
|
-
v-else
|
|
181
|
-
:class="ui.item({ class: [props.ui?.item, isSelectItem(item) && item.ui?.item, isSelectItem(item) && item.class] })"
|
|
182
|
-
:disabled="isSelectItem(item) && item.disabled"
|
|
183
|
-
:value="isSelectItem(item) ? get(item, props.valueKey) : item"
|
|
184
|
-
@select="isSelectItem(item) && item.onSelect?.($event)"
|
|
185
|
-
>
|
|
186
|
-
<slot name="item" :item="item" :index="index">
|
|
187
|
-
<slot name="item-leading" :item="item" :index="index">
|
|
188
|
-
<UIcon v-if="isSelectItem(item) && item.icon" :name="item.icon" :class="ui.itemLeadingIcon({ class: [props.ui?.itemLeadingIcon, item.ui?.itemLeadingIcon] })" />
|
|
189
|
-
<UAvatar v-else-if="isSelectItem(item) && item.avatar" :size="item.ui?.itemLeadingAvatarSize || props.ui?.itemLeadingAvatarSize || ui.itemLeadingAvatarSize()" v-bind="item.avatar" :class="ui.itemLeadingAvatar({ class: [props.ui?.itemLeadingAvatar, item.ui?.itemLeadingAvatar] })" />
|
|
190
|
-
<UChip
|
|
191
|
-
v-else-if="isSelectItem(item) && item.chip"
|
|
192
|
-
:size="item.ui?.itemLeadingChipSize || props.ui?.itemLeadingChipSize || ui.itemLeadingChipSize()"
|
|
193
|
-
inset
|
|
194
|
-
standalone
|
|
195
|
-
v-bind="item.chip"
|
|
196
|
-
:class="ui.itemLeadingChip({ class: [props.ui?.itemLeadingChip, item.ui?.itemLeadingChip] })"
|
|
197
|
-
/>
|
|
198
|
-
</slot>
|
|
199
|
-
|
|
200
|
-
<SelectItemText :class="ui.itemLabel({ class: [props.ui?.itemLabel, isSelectItem(item) && item.ui?.itemLabel] })">
|
|
201
|
-
<slot name="item-label" :item="item" :index="index">
|
|
202
|
-
{{ isSelectItem(item) ? get(item, props.labelKey) : item }}
|
|
203
|
-
</slot>
|
|
204
|
-
</SelectItemText>
|
|
205
|
-
|
|
206
|
-
<span :class="ui.itemTrailing({ class: [props.ui?.itemTrailing, isSelectItem(item) && item.ui?.itemTrailing] })">
|
|
207
|
-
<slot name="item-trailing" :item="item" :index="index" />
|
|
208
|
-
|
|
209
|
-
<SelectItemIndicator as-child>
|
|
210
|
-
<UIcon :name="selectedIcon || appConfig.ui.icons.check" :class="ui.itemTrailingIcon({ class: [props.ui?.itemTrailingIcon, isSelectItem(item) && item.ui?.itemTrailingIcon] })" />
|
|
211
|
-
</SelectItemIndicator>
|
|
212
|
-
</span>
|
|
213
|
-
</slot>
|
|
214
|
-
</SelectItem>
|
|
215
|
-
</template>
|
|
216
|
-
</SelectGroup>
|
|
217
|
-
</div>
|
|
218
|
-
|
|
219
|
-
<slot name="content-bottom" />
|
|
220
|
-
|
|
221
|
-
<SelectArrow v-if="!!arrow" v-bind="arrowProps" :class="ui.arrow({ class: props.ui?.arrow })" />
|
|
222
|
-
</SelectContent>
|
|
223
|
-
</SelectPortal>
|
|
224
|
-
</SelectRoot>
|
|
129
|
+
<SelectRoot
|
|
130
|
+
v-slot="{ modelValue, open }"
|
|
131
|
+
:name="name"
|
|
132
|
+
v-bind="rootProps"
|
|
133
|
+
:autocomplete="autocomplete"
|
|
134
|
+
:disabled="disabled"
|
|
135
|
+
:default-value="defaultValue"
|
|
136
|
+
:model-value="modelValue"
|
|
137
|
+
@update:model-value="onUpdate"
|
|
138
|
+
@update:open="onUpdateOpen"
|
|
139
|
+
>
|
|
140
|
+
<SelectTrigger :id="id" ref="triggerRef" :class="ui.base({ class: [props.ui?.base, props.class] })" v-bind="{ ...$attrs, ...ariaAttrs }">
|
|
141
|
+
<span v-if="isLeading || !!avatar || !!slots.leading" :class="ui.leading({ class: props.ui?.leading })">
|
|
142
|
+
<slot name="leading" :model-value="modelValue" :open="open" :ui="ui">
|
|
143
|
+
<UIcon v-if="isLeading && leadingIconName" :name="leadingIconName" :class="ui.leadingIcon({ class: props.ui?.leadingIcon })" />
|
|
144
|
+
<UAvatar v-else-if="!!avatar" :size="props.ui?.itemLeadingAvatarSize || ui.itemLeadingAvatarSize()" v-bind="avatar" :class="ui.itemLeadingAvatar({ class: props.ui?.itemLeadingAvatar })" />
|
|
145
|
+
</slot>
|
|
146
|
+
</span>
|
|
147
|
+
|
|
148
|
+
<slot :model-value="modelValue" :open="open">
|
|
149
|
+
<template v-for="displayedModelValue in [displayValue(modelValue)]" :key="displayedModelValue">
|
|
150
|
+
<span v-if="displayedModelValue !== void 0 && displayedModelValue !== null" :class="ui.value({ class: props.ui?.value })">
|
|
151
|
+
{{ displayedModelValue }}
|
|
152
|
+
</span>
|
|
153
|
+
<span v-else :class="ui.placeholder({ class: props.ui?.placeholder })">
|
|
154
|
+
{{ placeholder ?? "\xA0" }}
|
|
155
|
+
</span>
|
|
156
|
+
</template>
|
|
157
|
+
</slot>
|
|
158
|
+
|
|
159
|
+
<span v-if="isTrailing || !!slots.trailing" :class="ui.trailing({ class: props.ui?.trailing })">
|
|
160
|
+
<slot name="trailing" :model-value="modelValue" :open="open" :ui="ui">
|
|
161
|
+
<UIcon v-if="trailingIconName" :name="trailingIconName" :class="ui.trailingIcon({ class: props.ui?.trailingIcon })" />
|
|
162
|
+
</slot>
|
|
163
|
+
</span>
|
|
164
|
+
</SelectTrigger>
|
|
165
|
+
|
|
166
|
+
<SelectPortal v-bind="portalProps">
|
|
167
|
+
<SelectContent :class="ui.content({ class: props.ui?.content })" v-bind="contentProps">
|
|
168
|
+
<slot name="content-top" />
|
|
169
|
+
|
|
170
|
+
<div role="presentation" :class="ui.viewport({ class: props.ui?.viewport })">
|
|
171
|
+
<SelectGroup v-for="(group, groupIndex) in groups" :key="`group-${groupIndex}`" :class="ui.group({ class: props.ui?.group })">
|
|
172
|
+
<template v-for="(item, index) in group" :key="`group-${groupIndex}-${index}`">
|
|
173
|
+
<SelectLabel v-if="isSelectItem(item) && item.type === 'label'" :class="ui.label({ class: [props.ui?.label, item.ui?.label, item.class] })">
|
|
174
|
+
{{ get(item, props.labelKey) }}
|
|
175
|
+
</SelectLabel>
|
|
176
|
+
|
|
177
|
+
<SelectSeparator v-else-if="isSelectItem(item) && item.type === 'separator'" :class="ui.separator({ class: [props.ui?.separator, item.ui?.separator, item.class] })" />
|
|
178
|
+
|
|
179
|
+
<SelectItem
|
|
180
|
+
v-else
|
|
181
|
+
:class="ui.item({ class: [props.ui?.item, isSelectItem(item) && item.ui?.item, isSelectItem(item) && item.class] })"
|
|
182
|
+
:disabled="isSelectItem(item) && item.disabled"
|
|
183
|
+
:value="isSelectItem(item) ? get(item, props.valueKey) : item"
|
|
184
|
+
@select="isSelectItem(item) && item.onSelect?.($event)"
|
|
185
|
+
>
|
|
186
|
+
<slot name="item" :item="item" :index="index">
|
|
187
|
+
<slot name="item-leading" :item="item" :index="index">
|
|
188
|
+
<UIcon v-if="isSelectItem(item) && item.icon" :name="item.icon" :class="ui.itemLeadingIcon({ class: [props.ui?.itemLeadingIcon, item.ui?.itemLeadingIcon] })" />
|
|
189
|
+
<UAvatar v-else-if="isSelectItem(item) && item.avatar" :size="item.ui?.itemLeadingAvatarSize || props.ui?.itemLeadingAvatarSize || ui.itemLeadingAvatarSize()" v-bind="item.avatar" :class="ui.itemLeadingAvatar({ class: [props.ui?.itemLeadingAvatar, item.ui?.itemLeadingAvatar] })" />
|
|
190
|
+
<UChip
|
|
191
|
+
v-else-if="isSelectItem(item) && item.chip"
|
|
192
|
+
:size="item.ui?.itemLeadingChipSize || props.ui?.itemLeadingChipSize || ui.itemLeadingChipSize()"
|
|
193
|
+
inset
|
|
194
|
+
standalone
|
|
195
|
+
v-bind="item.chip"
|
|
196
|
+
:class="ui.itemLeadingChip({ class: [props.ui?.itemLeadingChip, item.ui?.itemLeadingChip] })"
|
|
197
|
+
/>
|
|
198
|
+
</slot>
|
|
199
|
+
|
|
200
|
+
<SelectItemText :class="ui.itemLabel({ class: [props.ui?.itemLabel, isSelectItem(item) && item.ui?.itemLabel] })">
|
|
201
|
+
<slot name="item-label" :item="item" :index="index">
|
|
202
|
+
{{ isSelectItem(item) ? get(item, props.labelKey) : item }}
|
|
203
|
+
</slot>
|
|
204
|
+
</SelectItemText>
|
|
205
|
+
|
|
206
|
+
<span :class="ui.itemTrailing({ class: [props.ui?.itemTrailing, isSelectItem(item) && item.ui?.itemTrailing] })">
|
|
207
|
+
<slot name="item-trailing" :item="item" :index="index" />
|
|
208
|
+
|
|
209
|
+
<SelectItemIndicator as-child>
|
|
210
|
+
<UIcon :name="selectedIcon || appConfig.ui.icons.check" :class="ui.itemTrailingIcon({ class: [props.ui?.itemTrailingIcon, isSelectItem(item) && item.ui?.itemTrailingIcon] })" />
|
|
211
|
+
</SelectItemIndicator>
|
|
212
|
+
</span>
|
|
213
|
+
</slot>
|
|
214
|
+
</SelectItem>
|
|
215
|
+
</template>
|
|
216
|
+
</SelectGroup>
|
|
217
|
+
</div>
|
|
218
|
+
|
|
219
|
+
<slot name="content-bottom" />
|
|
220
|
+
|
|
221
|
+
<SelectArrow v-if="!!arrow" v-bind="arrowProps" :class="ui.arrow({ class: props.ui?.arrow })" />
|
|
222
|
+
</SelectContent>
|
|
223
|
+
</SelectPortal>
|
|
224
|
+
</SelectRoot>
|
|
225
225
|
</template>
|