@bitrix24/b24ui-nuxt 2.1.2 → 2.1.4
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/cli/templates.mjs +2 -2
- package/dist/meta.d.mts +1321 -192
- package/dist/meta.mjs +1321 -192
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Accordion.vue +9 -4
- package/dist/runtime/components/Advice.vue +9 -5
- package/dist/runtime/components/Alert.vue +9 -7
- package/dist/runtime/components/Avatar.vue +4 -2
- package/dist/runtime/components/AvatarGroup.vue +3 -3
- package/dist/runtime/components/Badge.vue +6 -1
- package/dist/runtime/components/Banner.vue +9 -8
- package/dist/runtime/components/Breadcrumb.vue +9 -4
- package/dist/runtime/components/Button.vue +12 -9
- package/dist/runtime/components/Calendar.vue +11 -5
- package/dist/runtime/components/Card.vue +4 -4
- package/dist/runtime/components/ChatMessage.vue +7 -5
- package/dist/runtime/components/ChatMessages.vue +4 -2
- package/dist/runtime/components/ChatPalette.vue +3 -3
- package/dist/runtime/components/ChatPrompt.vue +4 -3
- package/dist/runtime/components/ChatPromptSubmit.vue +1 -0
- package/dist/runtime/components/Checkbox.vue +9 -7
- package/dist/runtime/components/CheckboxGroup.vue +4 -2
- package/dist/runtime/components/Chip.vue +3 -0
- package/dist/runtime/components/Collapsible.vue +2 -2
- package/dist/runtime/components/ColorPicker.vue +7 -3
- package/dist/runtime/components/CommandPalette.vue +68 -23
- package/dist/runtime/components/ContextMenu.vue +1 -0
- package/dist/runtime/components/ContextMenuContent.vue +19 -6
- package/dist/runtime/components/Countdown.vue +8 -1
- package/dist/runtime/components/DashboardSearch.vue +1 -0
- package/dist/runtime/components/DashboardSearchButton.vue +2 -1
- package/dist/runtime/components/DescriptionList.vue +12 -4
- package/dist/runtime/components/DropdownMenu.vue +2 -1
- package/dist/runtime/components/DropdownMenuContent.vue +21 -7
- package/dist/runtime/components/Empty.vue +9 -8
- package/dist/runtime/components/Error.vue +5 -5
- package/dist/runtime/components/FileUpload.vue +15 -8
- package/dist/runtime/components/FormField.vue +11 -11
- package/dist/runtime/components/Input.vue +8 -3
- package/dist/runtime/components/InputDate.vue +9 -2
- package/dist/runtime/components/InputMenu.vue +50 -32
- package/dist/runtime/components/InputNumber.vue +5 -2
- package/dist/runtime/components/InputTags.vue +12 -3
- package/dist/runtime/components/InputTime.vue +8 -2
- package/dist/runtime/components/Kbd.vue +1 -1
- package/dist/runtime/components/Modal.vue +11 -8
- package/dist/runtime/components/Navbar.vue +1 -1
- package/dist/runtime/components/NavbarDivider.vue +1 -1
- package/dist/runtime/components/NavbarSection.vue +2 -1
- package/dist/runtime/components/NavbarSpacer.vue +1 -1
- package/dist/runtime/components/NavigationMenu.vue +43 -12
- package/dist/runtime/components/PageCard.vue +10 -9
- package/dist/runtime/components/PageLinks.vue +9 -7
- package/dist/runtime/components/Pagination.vue +8 -8
- package/dist/runtime/components/PinInput.vue +2 -0
- package/dist/runtime/components/Popover.vue +2 -2
- package/dist/runtime/components/Progress.vue +6 -6
- package/dist/runtime/components/RadioGroup.d.vue.ts +2 -2
- package/dist/runtime/components/RadioGroup.vue +10 -4
- package/dist/runtime/components/RadioGroup.vue.d.ts +2 -2
- package/dist/runtime/components/Range.vue +5 -4
- package/dist/runtime/components/Select.vue +25 -11
- package/dist/runtime/components/SelectMenu.vue +47 -25
- package/dist/runtime/components/Separator.vue +7 -7
- package/dist/runtime/components/Sidebar.vue +1 -1
- package/dist/runtime/components/SidebarBody.vue +1 -1
- package/dist/runtime/components/SidebarFooter.vue +1 -1
- package/dist/runtime/components/SidebarHeader.vue +1 -1
- package/dist/runtime/components/SidebarHeading.vue +1 -1
- package/dist/runtime/components/SidebarLayout.vue +18 -13
- package/dist/runtime/components/SidebarSection.vue +2 -1
- package/dist/runtime/components/SidebarSpacer.vue +1 -1
- package/dist/runtime/components/Skeleton.vue +1 -0
- package/dist/runtime/components/Slideover.vue +10 -7
- package/dist/runtime/components/Stepper.vue +12 -9
- package/dist/runtime/components/Switch.vue +10 -6
- package/dist/runtime/components/Table.d.vue.ts +2 -2
- package/dist/runtime/components/Table.vue +33 -15
- package/dist/runtime/components/Table.vue.d.ts +2 -2
- package/dist/runtime/components/TableWrapper.vue +1 -0
- package/dist/runtime/components/Tabs.d.vue.ts +3 -3
- package/dist/runtime/components/Tabs.vue +24 -15
- package/dist/runtime/components/Tabs.vue.d.ts +3 -3
- package/dist/runtime/components/Textarea.vue +8 -3
- package/dist/runtime/components/Timeline.vue +9 -6
- package/dist/runtime/components/Toast.vue +10 -6
- package/dist/runtime/components/Toaster.vue +2 -0
- package/dist/runtime/components/Tooltip.vue +4 -4
- package/dist/runtime/components/User.vue +13 -6
- package/dist/runtime/components/color-mode/ColorModeButton.d.vue.ts +2 -9
- package/dist/runtime/components/color-mode/ColorModeButton.vue +8 -13
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +2 -9
- package/dist/runtime/components/content/ContentSearch.vue +59 -68
- package/dist/runtime/components/content/ContentSearchButton.vue +2 -1
- package/dist/runtime/components/content/ContentSurround.vue +6 -4
- package/dist/runtime/components/content/ContentToc.vue +13 -10
- package/dist/runtime/components/prose/A.vue +1 -1
- package/dist/runtime/components/prose/Blockquote.vue +1 -1
- package/dist/runtime/components/prose/Callout.vue +4 -1
- package/dist/runtime/components/prose/Card.vue +5 -3
- package/dist/runtime/components/prose/Code.vue +1 -0
- package/dist/runtime/components/prose/CodeCollapse.vue +3 -2
- package/dist/runtime/components/prose/CodeGroup.vue +6 -6
- package/dist/runtime/components/prose/CodePreview.vue +3 -3
- package/dist/runtime/components/prose/Collapsible.vue +3 -2
- package/dist/runtime/components/prose/Em.vue +1 -1
- package/dist/runtime/components/prose/Field.vue +7 -7
- package/dist/runtime/components/prose/H1.vue +1 -0
- package/dist/runtime/components/prose/H2.vue +4 -2
- package/dist/runtime/components/prose/H3.vue +4 -2
- package/dist/runtime/components/prose/H4.vue +4 -2
- package/dist/runtime/components/prose/H5.vue +1 -0
- package/dist/runtime/components/prose/H6.vue +1 -0
- package/dist/runtime/components/prose/Hr.vue +1 -1
- package/dist/runtime/components/prose/Img.vue +4 -0
- package/dist/runtime/components/prose/Li.vue +1 -1
- package/dist/runtime/components/prose/Ol.vue +1 -1
- package/dist/runtime/components/prose/P.vue +1 -1
- package/dist/runtime/components/prose/Pre.vue +6 -5
- package/dist/runtime/components/prose/Strong.vue +1 -1
- package/dist/runtime/components/prose/Table.d.vue.ts +0 -3
- package/dist/runtime/components/prose/Table.vue +2 -1
- package/dist/runtime/components/prose/Table.vue.d.ts +0 -3
- package/dist/runtime/components/prose/Tbody.vue +1 -1
- package/dist/runtime/components/prose/Td.vue +1 -1
- package/dist/runtime/components/prose/Th.vue +1 -1
- package/dist/runtime/components/prose/Thead.vue +1 -1
- package/dist/runtime/components/prose/Tr.vue +1 -1
- package/dist/runtime/components/prose/Ul.vue +1 -1
- package/dist/runtime/composables/useContentSearch.d.ts +5 -0
- package/dist/runtime/composables/useContentSearch.js +30 -1
- package/dist/runtime/inertia/stubs.js +1 -1
- package/dist/runtime/types/index.d.ts +3 -0
- package/dist/runtime/types/index.js +3 -0
- package/dist/runtime/utils/virtualizer.d.ts +6 -0
- package/dist/runtime/utils/virtualizer.js +32 -0
- package/dist/shared/{b24ui-nuxt.B9uYyQGR.mjs → b24ui-nuxt.Bs0V9FLV.mjs} +25 -19
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +11 -11
- package/dist/runtime/vue/components/color-mode/ColorModeButton.d.vue.ts +0 -12
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue +0 -83
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue.d.ts +0 -12
|
@@ -63,6 +63,7 @@ defineExpose({
|
|
|
63
63
|
v-slot="{ remaining, duration, open }"
|
|
64
64
|
v-bind="rootProps"
|
|
65
65
|
:data-orientation="orientation"
|
|
66
|
+
data-slot="root"
|
|
66
67
|
:class="b24ui.root({ class: [props.b24ui?.root, props.class] })"
|
|
67
68
|
:style="{ '--height': height }"
|
|
68
69
|
>
|
|
@@ -70,13 +71,14 @@ defineExpose({
|
|
|
70
71
|
<Component
|
|
71
72
|
:is="icon"
|
|
72
73
|
v-if="icon"
|
|
74
|
+
data-slot="icon"
|
|
73
75
|
:class="b24ui.icon({ class: props.b24ui?.icon })"
|
|
74
76
|
/>
|
|
75
|
-
<B24Avatar v-else-if="avatar" :size="props.b24ui?.avatarSize || b24ui.avatarSize()" v-bind="avatar" :class="b24ui.avatar({ class: props.b24ui?.avatar })" />
|
|
77
|
+
<B24Avatar v-else-if="avatar" :size="props.b24ui?.avatarSize || b24ui.avatarSize()" v-bind="avatar" data-slot="avatar" :class="b24ui.avatar({ class: props.b24ui?.avatar })" />
|
|
76
78
|
</slot>
|
|
77
79
|
|
|
78
|
-
<div :class="b24ui.wrapper({ class: props.b24ui?.wrapper })">
|
|
79
|
-
<ToastTitle v-if="title || !!slots.title" :class="b24ui.title({ class: props.b24ui?.title })">
|
|
80
|
+
<div data-slot="wrapper" :class="b24ui.wrapper({ class: props.b24ui?.wrapper })">
|
|
81
|
+
<ToastTitle v-if="title || !!slots.title" data-slot="title" :class="b24ui.title({ class: props.b24ui?.title })">
|
|
80
82
|
<slot name="title">
|
|
81
83
|
<component :is="title()" v-if="typeof title === 'function'" />
|
|
82
84
|
<component :is="title" v-else-if="typeof title === 'object'" />
|
|
@@ -85,7 +87,7 @@ defineExpose({
|
|
|
85
87
|
</template>
|
|
86
88
|
</slot>
|
|
87
89
|
</ToastTitle>
|
|
88
|
-
<ToastDescription v-if="description || !!slots.description" :class="b24ui.description({ class: props.b24ui?.description })">
|
|
90
|
+
<ToastDescription v-if="description || !!slots.description" data-slot="description" :class="b24ui.description({ class: props.b24ui?.description })">
|
|
89
91
|
<slot name="description">
|
|
90
92
|
<component :is="description()" v-if="typeof description === 'function'" />
|
|
91
93
|
<component :is="description" v-else-if="typeof description === 'object'" />
|
|
@@ -95,7 +97,7 @@ defineExpose({
|
|
|
95
97
|
</slot>
|
|
96
98
|
</ToastDescription>
|
|
97
99
|
|
|
98
|
-
<div v-if="orientation === 'vertical' && (actions?.length || !!slots.actions)" :class="b24ui.actions({ class: props.b24ui?.actions })">
|
|
100
|
+
<div v-if="orientation === 'vertical' && (actions?.length || !!slots.actions)" data-slot="actions" :class="b24ui.actions({ class: props.b24ui?.actions })">
|
|
99
101
|
<slot name="actions">
|
|
100
102
|
<ToastAction v-for="(action, index) in actions" :key="index" :alt-text="action.label || 'Action'" as-child @click.stop>
|
|
101
103
|
<B24Button size="sm" :color="color" v-bind="action" />
|
|
@@ -104,7 +106,7 @@ defineExpose({
|
|
|
104
106
|
</div>
|
|
105
107
|
</div>
|
|
106
108
|
|
|
107
|
-
<div v-if="orientation === 'horizontal' && (actions?.length || !!slots.actions) || close !== null" :class="b24ui.actions({ class: props.b24ui?.actions, orientation: 'horizontal' })">
|
|
109
|
+
<div v-if="orientation === 'horizontal' && (actions?.length || !!slots.actions) || close !== null" data-slot="actions" :class="b24ui.actions({ class: props.b24ui?.actions, orientation: 'horizontal' })">
|
|
108
110
|
<template v-if="orientation === 'horizontal' && (actions?.length || !!slots.actions)">
|
|
109
111
|
<slot name="actions">
|
|
110
112
|
<ToastAction v-for="(action, index) in actions" :key="index" :alt-text="action.label || 'Action'" as-child @click.stop>
|
|
@@ -122,6 +124,7 @@ defineExpose({
|
|
|
122
124
|
color="air-tertiary"
|
|
123
125
|
:aria-label="t('toast.close')"
|
|
124
126
|
v-bind="typeof close === 'object' ? close : {}"
|
|
127
|
+
data-slot="close"
|
|
125
128
|
:class="b24ui.close({ class: props.b24ui?.close })"
|
|
126
129
|
@click.stop
|
|
127
130
|
/>
|
|
@@ -135,6 +138,7 @@ defineExpose({
|
|
|
135
138
|
:color="color"
|
|
136
139
|
v-bind="typeof progress === 'object' ? progress : {}"
|
|
137
140
|
size="sm"
|
|
141
|
+
data-slot="progress"
|
|
138
142
|
:class="b24ui.progress({ class: props.b24ui?.progress })"
|
|
139
143
|
/>
|
|
140
144
|
</ToastRoot>
|
|
@@ -90,6 +90,7 @@ function getOffset(index) {
|
|
|
90
90
|
'--translate': expanded ? 'calc(var(--offset) * var(--translate-factor))' : 'calc(var(--before) * var(--gap))',
|
|
91
91
|
'--transform': 'translateY(var(--translate)) scale(var(--scale))'
|
|
92
92
|
}"
|
|
93
|
+
data-slot="base"
|
|
93
94
|
:class="b24ui.base({ class: [props.b24ui?.base, toast.onClick ? 'cursor-pointer' : void 0] })"
|
|
94
95
|
@update:open="onUpdateOpen($event, toast.id)"
|
|
95
96
|
@click="toast.onClick && toast.onClick(toast)"
|
|
@@ -98,6 +99,7 @@ function getOffset(index) {
|
|
|
98
99
|
<ToastPortal v-bind="portalProps">
|
|
99
100
|
<ToastViewport
|
|
100
101
|
:data-expanded="expanded"
|
|
102
|
+
data-slot="viewport"
|
|
101
103
|
:class="b24ui.viewport({ class: [props.b24ui?.viewport, props.class] })"
|
|
102
104
|
:style="{
|
|
103
105
|
'--scale-factor': '0.05',
|
|
@@ -57,11 +57,11 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.tooltip
|
|
|
57
57
|
</TooltipTrigger>
|
|
58
58
|
|
|
59
59
|
<TooltipPortal v-bind="portalProps">
|
|
60
|
-
<TooltipContent v-bind="contentProps" :class="b24ui.content({ class: [!slots.default && props.b24ui?.content, props.class] })">
|
|
60
|
+
<TooltipContent v-bind="contentProps" data-slot="content" :class="b24ui.content({ class: [!slots.default && props.b24ui?.content, props.class] })">
|
|
61
61
|
<slot name="content" :b24ui="b24ui">
|
|
62
|
-
<span v-if="text" :class="b24ui.text({ class: props.b24ui?.text })">{{ text }}</span>
|
|
62
|
+
<span v-if="text" data-slot="text" :class="b24ui.text({ class: props.b24ui?.text })">{{ text }}</span>
|
|
63
63
|
|
|
64
|
-
<span v-if="kbds?.length" :class="b24ui.kbds({ class: props.b24ui?.kbds })">
|
|
64
|
+
<span v-if="kbds?.length" data-slot="kbds" :class="b24ui.kbds({ class: props.b24ui?.kbds })">
|
|
65
65
|
<B24Kbd
|
|
66
66
|
v-for="(kbd, index) in kbds"
|
|
67
67
|
:key="index"
|
|
@@ -72,7 +72,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.tooltip
|
|
|
72
72
|
</span>
|
|
73
73
|
</slot>
|
|
74
74
|
|
|
75
|
-
<TooltipArrow v-if="!!arrow" v-bind="arrowProps" :class="b24ui.arrow({ class: props.b24ui?.arrow })" />
|
|
75
|
+
<TooltipArrow v-if="!!arrow" v-bind="arrowProps" data-slot="arrow" :class="b24ui.arrow({ class: props.b24ui?.arrow })" />
|
|
76
76
|
</TooltipContent>
|
|
77
77
|
</TooltipPortal>
|
|
78
78
|
</TooltipRoot>
|
|
@@ -56,15 +56,22 @@ const chipSize = computed(() => {
|
|
|
56
56
|
</script>
|
|
57
57
|
|
|
58
58
|
<template>
|
|
59
|
-
<Primitive :as="as" :data-orientation="orientation" :class="b24ui.root({ class: [props.b24ui?.root, props.class] })" @click="onClick">
|
|
59
|
+
<Primitive :as="as" :data-orientation="orientation" data-slot="root" :class="b24ui.root({ class: [props.b24ui?.root, props.class] })" @click="onClick">
|
|
60
60
|
<slot name="avatar" :b24ui="b24ui">
|
|
61
61
|
<B24Chip v-if="chip && avatar && !['3xs'].includes(size || '')" inset v-bind="typeof chip === 'object' ? chip : {}" :size="chipSize">
|
|
62
|
-
<B24Avatar :alt="name" v-bind="avatar" :size="size" :class="b24ui.avatar({ class: props.b24ui?.avatar })" />
|
|
62
|
+
<B24Avatar :alt="name" v-bind="avatar" :size="size" data-slot="avatar" :class="b24ui.avatar({ class: props.b24ui?.avatar })" />
|
|
63
63
|
</B24Chip>
|
|
64
|
-
<B24Avatar
|
|
64
|
+
<B24Avatar
|
|
65
|
+
v-else-if="avatar"
|
|
66
|
+
:alt="name"
|
|
67
|
+
v-bind="avatar"
|
|
68
|
+
:size="size"
|
|
69
|
+
data-slot="avatar"
|
|
70
|
+
:class="b24ui.avatar({ class: props.b24ui?.avatar })"
|
|
71
|
+
/>
|
|
65
72
|
</slot>
|
|
66
73
|
|
|
67
|
-
<div :class="b24ui.wrapper({ class: props.b24ui?.wrapper })">
|
|
74
|
+
<div data-slot="wrapper" :class="b24ui.wrapper({ class: props.b24ui?.wrapper })">
|
|
68
75
|
<B24Link
|
|
69
76
|
v-if="to"
|
|
70
77
|
:aria-label="name"
|
|
@@ -77,12 +84,12 @@ const chipSize = computed(() => {
|
|
|
77
84
|
</B24Link>
|
|
78
85
|
|
|
79
86
|
<slot>
|
|
80
|
-
<p v-if="name || !!slots.name" :class="b24ui.name({ class: props.b24ui?.name })">
|
|
87
|
+
<p v-if="name || !!slots.name" data-slot="name" :class="b24ui.name({ class: props.b24ui?.name })">
|
|
81
88
|
<slot name="name">
|
|
82
89
|
{{ name }}
|
|
83
90
|
</slot>
|
|
84
91
|
</p>
|
|
85
|
-
<p v-if="description || !!slots.description" :class="b24ui.description({ class: props.b24ui?.description })">
|
|
92
|
+
<p v-if="description || !!slots.description" data-slot="description" :class="b24ui.description({ class: props.b24ui?.description })">
|
|
86
93
|
<slot name="description">
|
|
87
94
|
{{ description }}
|
|
88
95
|
</slot>
|
|
@@ -5,15 +5,8 @@ export interface ColorModeButtonProps extends Omit<ButtonProps, 'color'> {
|
|
|
5
5
|
*/
|
|
6
6
|
color?: ButtonProps['color'];
|
|
7
7
|
}
|
|
8
|
-
declare const __VLS_export:
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<ColorModeButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeButtonProps> & Readonly<{}>, {
|
|
9
9
|
color: "default" | "link" | "air-primary" | "air-primary-success" | "air-primary-alert" | "air-primary-copilot" | "air-secondary" | "air-secondary-accent" | "air-secondary-accent-1" | "air-tertiary" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | "air-secondary-alert" | "air-secondary-accent-2" | "air-secondary-no-accent" | "air-tertiary-accent" | "air-tertiary-no-accent" | "air-selection" | "air-boost";
|
|
10
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
11
|
-
fallback(props?: {}): any;
|
|
12
|
-
}>;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
11
|
declare const _default: typeof __VLS_export;
|
|
14
12
|
export default _default;
|
|
15
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
-
new (): {
|
|
17
|
-
$slots: S;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
@@ -57,7 +57,6 @@ const props = defineProps({
|
|
|
57
57
|
viewTransition: { type: Boolean, required: false },
|
|
58
58
|
replace: { type: Boolean, required: false }
|
|
59
59
|
});
|
|
60
|
-
defineSlots();
|
|
61
60
|
const { t } = useLocale();
|
|
62
61
|
const colorMode = useColorMode();
|
|
63
62
|
const buttonProps = useForwardProps(reactiveOmit(props, "icon"));
|
|
@@ -72,21 +71,17 @@ const isDark = computed({
|
|
|
72
71
|
</script>
|
|
73
72
|
|
|
74
73
|
<template>
|
|
75
|
-
<
|
|
76
|
-
|
|
77
|
-
v-bind="{
|
|
74
|
+
<B24Button
|
|
75
|
+
v-bind="{
|
|
78
76
|
...buttonProps,
|
|
79
|
-
'icon': props.icon || (isDark ? icons.dark : icons.light),
|
|
80
77
|
'aria-label': isDark ? t('colorMode.switchToLight') : t('colorMode.switchToDark'),
|
|
81
78
|
...$attrs
|
|
82
79
|
}"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
<slot
|
|
88
|
-
<div class="w-[32px] h-[34px]" />
|
|
89
|
-
</slot>
|
|
80
|
+
@click="isDark = !isDark"
|
|
81
|
+
>
|
|
82
|
+
<template #leading="{ b24ui }">
|
|
83
|
+
<Component :is="icons.dark" data-slot="leadingIcon" :class="b24ui.leadingIcon({ class: props.b24ui?.leadingIcon })" class="hidden dark:inline" />
|
|
84
|
+
<Component :is="icons.light" data-slot="leadingIcon" :class="b24ui.leadingIcon({ class: props.b24ui?.leadingIcon })" class="inline dark:hidden" />
|
|
90
85
|
</template>
|
|
91
|
-
</
|
|
86
|
+
</B24Button>
|
|
92
87
|
</template>
|
|
@@ -5,15 +5,8 @@ export interface ColorModeButtonProps extends Omit<ButtonProps, 'color'> {
|
|
|
5
5
|
*/
|
|
6
6
|
color?: ButtonProps['color'];
|
|
7
7
|
}
|
|
8
|
-
declare const __VLS_export:
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<ColorModeButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeButtonProps> & Readonly<{}>, {
|
|
9
9
|
color: "default" | "link" | "air-primary" | "air-primary-success" | "air-primary-alert" | "air-primary-copilot" | "air-secondary" | "air-secondary-accent" | "air-secondary-accent-1" | "air-tertiary" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | "air-secondary-alert" | "air-secondary-accent-2" | "air-secondary-no-accent" | "air-tertiary-accent" | "air-tertiary-no-accent" | "air-selection" | "air-boost";
|
|
10
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
11
|
-
fallback(props?: {}): any;
|
|
12
|
-
}>;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
11
|
declare const _default: typeof __VLS_export;
|
|
14
12
|
export default _default;
|
|
15
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
-
new (): {
|
|
17
|
-
$slots: S;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
@@ -44,7 +44,7 @@ const props = defineProps({
|
|
|
44
44
|
const slots = defineSlots();
|
|
45
45
|
const searchTerm = defineModel("searchTerm", { type: String, ...{ default: "" } });
|
|
46
46
|
const { t } = useLocale();
|
|
47
|
-
const { open } = useContentSearch();
|
|
47
|
+
const { open, mapNavigationItems, postFilter } = useContentSearch();
|
|
48
48
|
const colorMode = useColorMode();
|
|
49
49
|
const appConfig = useAppConfig();
|
|
50
50
|
const commandPaletteProps = useForwardProps(reactivePick(props, "icon", "placeholder", "autofocus", "loading", "close", "closeIcon"));
|
|
@@ -59,12 +59,16 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.content
|
|
|
59
59
|
fullscreen: props.fullscreen
|
|
60
60
|
}));
|
|
61
61
|
const commandPaletteRef = useTemplateRef("commandPaletteRef");
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
const mappedLinksItems = computed(() => {
|
|
63
|
+
if (!props.links?.length) {
|
|
64
|
+
return [];
|
|
65
|
+
}
|
|
66
|
+
return props.links.flatMap((link) => [{
|
|
64
67
|
...link,
|
|
65
68
|
suffix: link.description,
|
|
66
69
|
description: void 0,
|
|
67
|
-
icon: link.icon || icons.file
|
|
70
|
+
icon: link.icon || icons.file,
|
|
71
|
+
children: void 0
|
|
68
72
|
}, ...link.children?.map((child) => ({
|
|
69
73
|
...child,
|
|
70
74
|
prefix: link.label + " >",
|
|
@@ -72,79 +76,65 @@ function mapLinksItems(links) {
|
|
|
72
76
|
description: void 0,
|
|
73
77
|
icon: child.icon || link.icon || icons.file
|
|
74
78
|
})) || []]);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return props.
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
});
|
|
80
|
+
const mappedNavigationGroups = computed(() => {
|
|
81
|
+
if (!props.navigation?.length) {
|
|
82
|
+
return [];
|
|
83
|
+
}
|
|
84
|
+
if (props.navigation.some((link) => !!link.children?.length)) {
|
|
85
|
+
return props.navigation.map((group) => ({
|
|
86
|
+
id: group.path,
|
|
87
|
+
label: group.title,
|
|
88
|
+
items: mapNavigationItems(group.children || [], props.files || []),
|
|
89
|
+
postFilter
|
|
90
|
+
}));
|
|
91
|
+
} else {
|
|
92
|
+
return [{ id: "docs", items: mapNavigationItems(props.navigation, props.files || []), postFilter }];
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
const themeGroup = computed(() => {
|
|
96
|
+
if (!props.colorMode || colorMode?.forced) {
|
|
97
|
+
return null;
|
|
98
|
+
}
|
|
86
99
|
return {
|
|
87
|
-
|
|
88
|
-
label:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
100
|
+
id: "theme",
|
|
101
|
+
label: t("contentSearch.theme"),
|
|
102
|
+
items: [{
|
|
103
|
+
label: t("colorMode.system"),
|
|
104
|
+
icon: icons.system,
|
|
105
|
+
active: colorMode.preference === "system",
|
|
106
|
+
onSelect: () => {
|
|
107
|
+
colorMode.preference = "system";
|
|
108
|
+
}
|
|
109
|
+
}, {
|
|
110
|
+
label: t("colorMode.light"),
|
|
111
|
+
icon: icons.light,
|
|
112
|
+
active: colorMode.preference === "light",
|
|
113
|
+
onSelect: () => {
|
|
114
|
+
colorMode.preference = "light";
|
|
115
|
+
}
|
|
116
|
+
}, {
|
|
117
|
+
label: t("colorMode.dark"),
|
|
118
|
+
icon: icons.dark,
|
|
119
|
+
active: colorMode.preference === "dark",
|
|
120
|
+
onSelect: () => {
|
|
121
|
+
colorMode.preference = "dark";
|
|
122
|
+
}
|
|
123
|
+
}]
|
|
93
124
|
};
|
|
94
|
-
}
|
|
125
|
+
});
|
|
95
126
|
const groups = computed(() => {
|
|
96
127
|
const groups2 = [];
|
|
97
|
-
if (
|
|
98
|
-
groups2.push({ id: "links", label: t("contentSearch.links"), items:
|
|
99
|
-
}
|
|
100
|
-
if (props.navigation?.length) {
|
|
101
|
-
if (props.navigation.some((link) => !!link.children?.length)) {
|
|
102
|
-
groups2.push(...props.navigation.map((group) => ({ id: group.path, label: group.title, items: mapNavigationItems(group.children || []), postFilter })));
|
|
103
|
-
} else {
|
|
104
|
-
groups2.push({ id: "docs", items: mapNavigationItems(props.navigation), postFilter });
|
|
105
|
-
}
|
|
128
|
+
if (mappedLinksItems.value.length) {
|
|
129
|
+
groups2.push({ id: "links", label: t("contentSearch.links"), items: mappedLinksItems.value });
|
|
106
130
|
}
|
|
131
|
+
groups2.push(...mappedNavigationGroups.value);
|
|
107
132
|
groups2.push(...props.groups || []);
|
|
108
|
-
if (
|
|
109
|
-
groups2.push(
|
|
110
|
-
id: "theme",
|
|
111
|
-
label: t("contentSearch.theme"),
|
|
112
|
-
items: [
|
|
113
|
-
{
|
|
114
|
-
label: t("colorMode.system"),
|
|
115
|
-
icon: icons.system,
|
|
116
|
-
active: colorMode.preference === "system",
|
|
117
|
-
onSelect: () => {
|
|
118
|
-
colorMode.preference = "system";
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
label: t("colorMode.light"),
|
|
123
|
-
icon: icons.light,
|
|
124
|
-
active: colorMode.preference === "light",
|
|
125
|
-
onSelect: () => {
|
|
126
|
-
colorMode.preference = "light";
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
label: t("colorMode.dark"),
|
|
131
|
-
icon: icons.dark,
|
|
132
|
-
active: colorMode.preference === "dark",
|
|
133
|
-
onSelect: () => {
|
|
134
|
-
colorMode.preference = "dark";
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
]
|
|
138
|
-
});
|
|
133
|
+
if (themeGroup.value) {
|
|
134
|
+
groups2.push(themeGroup.value);
|
|
139
135
|
}
|
|
140
136
|
return groups2;
|
|
141
137
|
});
|
|
142
|
-
function postFilter(query, items) {
|
|
143
|
-
if (!query) {
|
|
144
|
-
return items?.filter((item) => item.level === 1);
|
|
145
|
-
}
|
|
146
|
-
return items;
|
|
147
|
-
}
|
|
148
138
|
function onSelect(item) {
|
|
149
139
|
if (item.disabled) {
|
|
150
140
|
return;
|
|
@@ -169,6 +159,7 @@ defineExpose({
|
|
|
169
159
|
:title="title || t('contentSearch.title')"
|
|
170
160
|
:description="description || t('contentSearch.description')"
|
|
171
161
|
v-bind="modalProps"
|
|
162
|
+
data-slot="modal"
|
|
172
163
|
:class="b24ui.modal({ class: [props.b24ui?.modal, props.class] })"
|
|
173
164
|
>
|
|
174
165
|
<template #content="contentData">
|
|
@@ -92,6 +92,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.content
|
|
|
92
92
|
},
|
|
93
93
|
...$attrs
|
|
94
94
|
}"
|
|
95
|
+
data-slot="base"
|
|
95
96
|
:class="b24ui.base({ class: [props.b24ui?.base, props.class] })"
|
|
96
97
|
:b24ui="transformUI(b24ui, props.b24ui)"
|
|
97
98
|
@click="open = true"
|
|
@@ -101,7 +102,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.content
|
|
|
101
102
|
</template>
|
|
102
103
|
|
|
103
104
|
<template v-if="!collapsed" #trailing="{ b24ui: b24uiProxy }">
|
|
104
|
-
<div :class="b24ui.trailing({ class: props.b24ui?.trailing })">
|
|
105
|
+
<div data-slot="trailing" :class="b24ui.trailing({ class: props.b24ui?.trailing })">
|
|
105
106
|
<slot name="trailing" :b24ui="b24uiProxy">
|
|
106
107
|
<template v-if="kbds?.length">
|
|
107
108
|
<B24Kbd
|
|
@@ -37,25 +37,27 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.content
|
|
|
37
37
|
v-if="link"
|
|
38
38
|
:to="link.path"
|
|
39
39
|
raw
|
|
40
|
+
data-slot="link"
|
|
40
41
|
:class="b24ui.link({ class: [props.b24ui?.link, link.b24ui?.link, link.class], direction })"
|
|
41
42
|
>
|
|
42
43
|
<slot name="link" :link="link" :b24ui="b24ui">
|
|
43
|
-
<div :class="b24ui.linkLeading({ class: [props.b24ui?.linkLeading, link.b24ui?.linkLeading] })">
|
|
44
|
+
<div data-slot="linkLeading" :class="b24ui.linkLeading({ class: [props.b24ui?.linkLeading, link.b24ui?.linkLeading] })">
|
|
44
45
|
<slot name="link-leading" :link="link" :b24ui="b24ui">
|
|
45
46
|
<Component
|
|
46
47
|
:is="link.icon || icon"
|
|
48
|
+
data-slot="linkLeadingIcon"
|
|
47
49
|
:class="b24ui.linkLeadingIcon({ class: [props.b24ui?.linkLeadingIcon, link.b24ui?.linkLeadingIcon], direction })"
|
|
48
50
|
/>
|
|
49
51
|
</slot>
|
|
50
52
|
</div>
|
|
51
53
|
|
|
52
|
-
<p :class="b24ui.linkTitle({ class: [props.b24ui?.linkTitle, link.b24ui?.linkTitle] })">
|
|
54
|
+
<p data-slot="linkTitle" :class="b24ui.linkTitle({ class: [props.b24ui?.linkTitle, link.b24ui?.linkTitle] })">
|
|
53
55
|
<slot name="link-title" :link="link" :b24ui="b24ui">
|
|
54
56
|
{{ link.title }}
|
|
55
57
|
</slot>
|
|
56
58
|
</p>
|
|
57
59
|
|
|
58
|
-
<p :class="b24ui.linkDescription({ class: [props.b24ui?.linkDescription, link.b24ui?.linkDescription] })">
|
|
60
|
+
<p data-slot="linkDescription" :class="b24ui.linkDescription({ class: [props.b24ui?.linkDescription, link.b24ui?.linkDescription] })">
|
|
59
61
|
<slot name="link-description" :link="link" :b24ui="b24ui">
|
|
60
62
|
{{ link.description }}
|
|
61
63
|
</slot>
|
|
@@ -65,7 +67,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.content
|
|
|
65
67
|
<span v-else class="hidden lg:block"> </span>
|
|
66
68
|
</DefineLinkTemplate>
|
|
67
69
|
|
|
68
|
-
<Primitive v-if="surround" :as="as" v-bind="$attrs" :class="b24ui.root({ class: [props.b24ui?.root, props.class] })">
|
|
70
|
+
<Primitive v-if="surround" :as="as" v-bind="$attrs" data-slot="root" :class="b24ui.root({ class: [props.b24ui?.root, props.class] })">
|
|
69
71
|
<ReuseLinkTemplate :link="surround[0]" :icon="prevIcon || icons.arrowLeft" direction="left" />
|
|
70
72
|
<ReuseLinkTemplate :link="surround[1]" :icon="nextIcon || icons.arrowRight" direction="right" />
|
|
71
73
|
</Primitive>
|
|
@@ -60,11 +60,12 @@ nuxtApp.hooks.hook("page:transition:finish", () => {
|
|
|
60
60
|
<li v-for="(link, index) in links" :key="index" :class="link.children && link.children.length > 0 ? b24ui.itemWithChildren({ class: [props.b24ui?.itemWithChildren, link.b24ui?.itemWithChildren] }) : b24ui.item({ class: [props.b24ui?.item, link.b24ui?.item] })">
|
|
61
61
|
<a
|
|
62
62
|
:href="`#${link.id}`"
|
|
63
|
+
data-slot="link"
|
|
63
64
|
:class="b24ui.link({ class: [props.b24ui?.link, link.b24ui?.link, link.class], active: activeHeadings.includes(link.id) })"
|
|
64
65
|
@click.prevent="scrollToHeading(link.id)"
|
|
65
66
|
>
|
|
66
67
|
<slot name="link" :link="link">
|
|
67
|
-
<span :class="b24ui.linkText({ class: [props.b24ui?.linkText, link.b24ui?.linkText] })">
|
|
68
|
+
<span data-slot="linkText" :class="b24ui.linkText({ class: [props.b24ui?.linkText, link.b24ui?.linkText] })">
|
|
68
69
|
{{ link.text }}
|
|
69
70
|
</span>
|
|
70
71
|
</slot>
|
|
@@ -78,14 +79,15 @@ nuxtApp.hooks.hook("page:transition:finish", () => {
|
|
|
78
79
|
<DefineTriggerTemplate v-slot="{ open }">
|
|
79
80
|
<slot name="leading" :open="open" :b24ui="b24ui" />
|
|
80
81
|
|
|
81
|
-
<span :class="b24ui.title({ class: props.b24ui?.title })">
|
|
82
|
+
<span data-slot="title" :class="b24ui.title({ class: props.b24ui?.title })">
|
|
82
83
|
<slot :open="open">{{ title || t("contentToc.title") }}</slot>
|
|
83
84
|
</span>
|
|
84
85
|
|
|
85
|
-
<span :class="b24ui.trailing({ class: props.b24ui?.trailing })">
|
|
86
|
+
<span data-slot="trailing" :class="b24ui.trailing({ class: props.b24ui?.trailing })">
|
|
86
87
|
<slot name="trailing" :open="open" :b24ui="b24ui">
|
|
87
88
|
<Component
|
|
88
89
|
:is="trailingIcon || icons.chevronDown"
|
|
90
|
+
data-slot="trailingIcon"
|
|
89
91
|
:class="b24ui.trailingIcon({ class: props.b24ui?.trailingIcon })"
|
|
90
92
|
/>
|
|
91
93
|
</slot>
|
|
@@ -96,36 +98,37 @@ nuxtApp.hooks.hook("page:transition:finish", () => {
|
|
|
96
98
|
v-slot="{ open }"
|
|
97
99
|
v-bind="{ ...rootProps, ...$attrs }"
|
|
98
100
|
:default-open="defaultOpen"
|
|
101
|
+
data-slot="root"
|
|
99
102
|
:class="b24ui.root({ class: [props.b24ui?.root, props.class] })"
|
|
100
103
|
>
|
|
101
|
-
<div :class="b24ui.container({ class: props.b24ui?.container })">
|
|
102
|
-
<div v-if="!!slots.top" :class="b24ui.top({ class: props.b24ui?.top })">
|
|
104
|
+
<div data-slot="container" :class="b24ui.container({ class: props.b24ui?.container })">
|
|
105
|
+
<div v-if="!!slots.top" data-slot="top" :class="b24ui.top({ class: props.b24ui?.top })">
|
|
103
106
|
<slot name="top" :links="links" />
|
|
104
107
|
</div>
|
|
105
108
|
|
|
106
109
|
<template v-if="links?.length">
|
|
107
|
-
<CollapsibleTrigger :class="b24ui.trigger({ class: 'lg:hidden' })">
|
|
110
|
+
<CollapsibleTrigger data-slot="trigger" :class="b24ui.trigger({ class: 'lg:hidden' })">
|
|
108
111
|
<ReuseTriggerTemplate :open="open" />
|
|
109
112
|
</CollapsibleTrigger>
|
|
110
113
|
|
|
111
|
-
<CollapsibleContent :class="b24ui.content({ class: [props.b24ui?.content, 'lg:hidden'] })">
|
|
114
|
+
<CollapsibleContent data-slot="content" :class="b24ui.content({ class: [props.b24ui?.content, 'lg:hidden'] })">
|
|
112
115
|
<slot name="content" :links="links">
|
|
113
116
|
<ReuseListTemplate :links="links" :level="0" />
|
|
114
117
|
</slot>
|
|
115
118
|
</CollapsibleContent>
|
|
116
119
|
|
|
117
|
-
<p :class="b24ui.trigger({ class: 'hidden lg:flex' })">
|
|
120
|
+
<p data-slot="trigger" :class="b24ui.trigger({ class: 'hidden lg:flex' })">
|
|
118
121
|
<ReuseTriggerTemplate :open="open" />
|
|
119
122
|
</p>
|
|
120
123
|
|
|
121
|
-
<div :class="b24ui.content({ class: [props.b24ui?.content, 'hidden lg:flex'] })">
|
|
124
|
+
<div data-slot="content" :class="b24ui.content({ class: [props.b24ui?.content, 'hidden lg:flex'] })">
|
|
122
125
|
<slot name="content" :links="links">
|
|
123
126
|
<ReuseListTemplate :links="links" :level="0" />
|
|
124
127
|
</slot>
|
|
125
128
|
</div>
|
|
126
129
|
</template>
|
|
127
130
|
|
|
128
|
-
<div v-if="!!slots.bottom" :class="b24ui.bottom({ class: props.b24ui?.bottom, body: !!slots.top || !!links?.length })">
|
|
131
|
+
<div v-if="!!slots.bottom" data-slot="bottom" :class="b24ui.bottom({ class: props.b24ui?.bottom, body: !!slots.top || !!links?.length })">
|
|
129
132
|
<slot name="bottom" :links="links" />
|
|
130
133
|
</div>
|
|
131
134
|
</div>
|
|
@@ -19,7 +19,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.prose?.
|
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
21
|
<template>
|
|
22
|
-
<B24Link :href="href" :target="target" :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
22
|
+
<B24Link :href="href" :target="target" data-slot="base" :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
23
23
|
<slot />
|
|
24
24
|
</B24Link>
|
|
25
25
|
</template>
|
|
@@ -16,7 +16,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.prose?.
|
|
|
16
16
|
</script>
|
|
17
17
|
|
|
18
18
|
<template>
|
|
19
|
-
<blockquote :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
19
|
+
<blockquote data-slot="base" :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
|
|
20
20
|
<slot />
|
|
21
21
|
</blockquote>
|
|
22
22
|
</template>
|
|
@@ -45,7 +45,7 @@ const iconFromIconName = computed(() => {
|
|
|
45
45
|
</script>
|
|
46
46
|
|
|
47
47
|
<template>
|
|
48
|
-
<div :class="b24ui.base({ class: props.class })">
|
|
48
|
+
<div data-slot="base" :class="b24ui.base({ class: props.class })">
|
|
49
49
|
<B24Link
|
|
50
50
|
v-if="to"
|
|
51
51
|
v-bind="{ to, target, ...$attrs }"
|
|
@@ -59,16 +59,19 @@ const iconFromIconName = computed(() => {
|
|
|
59
59
|
<Component
|
|
60
60
|
:is="icon"
|
|
61
61
|
v-if="icon"
|
|
62
|
+
data-slot="icon"
|
|
62
63
|
:class="b24ui.icon({ class: props.b24ui?.icon })"
|
|
63
64
|
/>
|
|
64
65
|
<Component
|
|
65
66
|
:is="iconFromIconName"
|
|
66
67
|
v-else-if="props.iconName"
|
|
68
|
+
data-slot="icon"
|
|
67
69
|
:class="b24ui.icon({ class: props.b24ui?.icon })"
|
|
68
70
|
/>
|
|
69
71
|
<Component
|
|
70
72
|
:is="icons.external"
|
|
71
73
|
v-if="!!to && target === '_blank'"
|
|
74
|
+
data-slot="externalIcon"
|
|
72
75
|
:class="b24ui.externalIcon({ class: props.b24ui?.externalIcon })"
|
|
73
76
|
/>
|
|
74
77
|
<slot mdc-unwrap="p" />
|
|
@@ -31,7 +31,7 @@ const ariaLabel = computed(() => (props.title || "Card link").trim());
|
|
|
31
31
|
</script>
|
|
32
32
|
|
|
33
33
|
<template>
|
|
34
|
-
<div :class="b24ui.base({ class: props.class })">
|
|
34
|
+
<div data-slot="base" :class="b24ui.base({ class: props.class })">
|
|
35
35
|
<B24Link
|
|
36
36
|
v-if="to"
|
|
37
37
|
:aria-label="ariaLabel"
|
|
@@ -46,21 +46,23 @@ const ariaLabel = computed(() => (props.title || "Card link").trim());
|
|
|
46
46
|
<Component
|
|
47
47
|
:is="icon"
|
|
48
48
|
v-if="icon"
|
|
49
|
+
data-slot="icon"
|
|
49
50
|
:class="b24ui.icon({ class: props.b24ui?.icon })"
|
|
50
51
|
/>
|
|
51
52
|
<Component
|
|
52
53
|
:is="icons.external"
|
|
53
54
|
v-if="!!to && target === '_blank'"
|
|
55
|
+
data-slot="externalIcon"
|
|
54
56
|
:class="b24ui.externalIcon({ class: props.b24ui?.externalIcon })"
|
|
55
57
|
/>
|
|
56
58
|
|
|
57
|
-
<p v-if="title || !!slots.title" :class="b24ui.title({ class: props.b24ui?.title })">
|
|
59
|
+
<p v-if="title || !!slots.title" data-slot="title" :class="b24ui.title({ class: props.b24ui?.title })">
|
|
58
60
|
<slot name="title" mdc-unwrap="p">
|
|
59
61
|
{{ title }}
|
|
60
62
|
</slot>
|
|
61
63
|
</p>
|
|
62
64
|
|
|
63
|
-
<div v-if="!!slots.default" :class="b24ui.description({ class: props.b24ui?.description })">
|
|
65
|
+
<div v-if="!!slots.default" data-slot="description" :class="b24ui.description({ class: props.b24ui?.description })">
|
|
64
66
|
<slot>
|
|
65
67
|
{{ description }}
|
|
66
68
|
</slot>
|