@eslamdevui/ui 3.2.0-beta.1 → 3.2.0-beta.2
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 +5 -0
- package/.nuxt/ui/badge.ts +5 -0
- package/.nuxt/ui/button-group.ts +13 -0
- package/.nuxt/ui/button.ts +5 -0
- package/.nuxt/ui/carousel.ts +5 -0
- package/.nuxt/ui/content/content-navigation.ts +339 -0
- package/.nuxt/ui/content/content-search-button.ts +6 -0
- package/.nuxt/ui/content/content-search.ts +6 -0
- package/.nuxt/ui/content/content-surround.ts +39 -0
- package/.nuxt/ui/content/content-toc.ts +150 -0
- package/.nuxt/ui/content/index.ts +5 -0
- package/.nuxt/ui/content-surround.ts +5 -0
- package/.nuxt/ui/content-toc.ts +6 -6
- package/.nuxt/ui/dashboard-navbar.ts +5 -0
- package/.nuxt/ui/dashboard-sidebar-collapse.ts +5 -0
- package/.nuxt/ui/dashboard-sidebar-toggle.ts +5 -0
- package/.nuxt/ui/dashboard-sidebar.ts +10 -0
- package/.nuxt/ui/error.ts +9 -0
- package/.nuxt/ui/index.ts +48 -1
- package/.nuxt/ui/input-menu.ts +9 -0
- package/.nuxt/ui/input-number.ts +5 -0
- package/.nuxt/ui/input-tags.ts +9 -0
- package/.nuxt/ui/input.ts +9 -0
- package/.nuxt/ui/prose/a.ts +6 -0
- package/.nuxt/ui/prose/accordion-item.ts +3 -0
- package/.nuxt/ui/prose/accordion.ts +6 -0
- package/.nuxt/ui/prose/badge.ts +3 -0
- package/.nuxt/ui/prose/blockquote.ts +3 -0
- package/.nuxt/ui/prose/callout.ts +129 -0
- package/.nuxt/ui/prose/card-group.ts +3 -0
- package/.nuxt/ui/prose/card.ts +119 -0
- package/.nuxt/ui/prose/code-collapse.ts +19 -0
- package/.nuxt/ui/prose/code-group.ts +13 -0
- package/.nuxt/ui/prose/code-icon.ts +66 -0
- package/.nuxt/ui/prose/code-preview.ts +14 -0
- package/.nuxt/ui/prose/code-tree.ts +28 -0
- package/.nuxt/ui/prose/code.ts +27 -0
- package/.nuxt/ui/prose/collapsible.ts +12 -0
- package/.nuxt/ui/prose/em.ts +3 -0
- package/.nuxt/ui/prose/field-group.ts +3 -0
- package/.nuxt/ui/prose/field.ts +11 -0
- package/.nuxt/ui/prose/h1.ts +6 -0
- package/.nuxt/ui/prose/h2.ts +14 -0
- package/.nuxt/ui/prose/h3.ts +14 -0
- package/.nuxt/ui/prose/h4.ts +6 -0
- package/.nuxt/ui/prose/hr.ts +3 -0
- package/.nuxt/ui/prose/icon.ts +3 -0
- package/.nuxt/ui/prose/img.ts +3 -0
- package/.nuxt/ui/prose/index.ts +41 -0
- package/.nuxt/ui/prose/kbd.ts +3 -0
- package/.nuxt/ui/prose/li.ts +3 -0
- package/.nuxt/ui/prose/ol.ts +3 -0
- package/.nuxt/ui/prose/p.ts +3 -0
- package/.nuxt/ui/prose/pre.ts +17 -0
- package/.nuxt/ui/prose/steps.ts +19 -0
- package/.nuxt/ui/prose/strong.ts +3 -0
- package/.nuxt/ui/prose/table.ts +6 -0
- package/.nuxt/ui/prose/tabs-item.ts +3 -0
- package/.nuxt/ui/prose/tabs.ts +5 -0
- package/.nuxt/ui/prose/tbody.ts +3 -0
- package/.nuxt/ui/prose/td.ts +3 -0
- package/.nuxt/ui/prose/th.ts +3 -0
- package/.nuxt/ui/prose/thead.ts +3 -0
- package/.nuxt/ui/prose/tr.ts +3 -0
- package/.nuxt/ui/prose/ul.ts +3 -0
- package/.nuxt/ui/select-menu.ts +9 -0
- package/.nuxt/ui/select.ts +9 -0
- package/.nuxt/ui/textarea.ts +9 -0
- package/.nuxt/ui/toast.ts +5 -0
- 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 -228
- package/cli/utils.mjs +31 -31
- package/dist/module.json +1 -1
- package/dist/module.mjs +18 -13
- 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 +71 -71
- package/dist/runtime/components/ChatMessages.vue.d.ts +1 -2
- package/dist/runtime/components/ChatPrompt.vue +30 -31
- package/dist/runtime/components/ChatPrompt.vue.d.ts +4 -4
- 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 +41 -41
- package/dist/runtime/components/DashboardNavbar.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardPanel.vue +29 -29
- package/dist/runtime/components/DashboardPanel.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardResizeHandle.vue +7 -7
- package/dist/runtime/components/DashboardSearch.vue +24 -25
- package/dist/runtime/components/DashboardSearch.vue.d.ts +3 -3
- package/dist/runtime/components/DashboardSearchButton.vue +63 -41
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +7 -1
- package/dist/runtime/components/DashboardSidebar.vue +77 -77
- package/dist/runtime/components/DashboardSidebarCollapse.vue +7 -7
- package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebarToggle.vue +14 -17
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +4 -6
- 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 +57 -0
- package/dist/runtime/components/Error.vue.d.ts +52 -0
- package/dist/runtime/components/Form.vue +8 -8
- package/dist/runtime/components/Form.vue.d.ts +1 -1
- 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/ColorModeAvatar.vue.d.ts +2 -2
- package/dist/runtime/components/color-mode/ColorModeButton.vue +16 -16
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +3 -3
- 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/ColorModeSelect.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue +19 -19
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentNavigation.vue +175 -0
- package/dist/runtime/components/content/ContentNavigation.vue.d.ts +53 -0
- package/dist/runtime/components/content/ContentSearch.vue +184 -0
- package/dist/runtime/components/content/ContentSearch.vue.d.ts +111 -0
- package/dist/runtime/components/content/ContentSearchButton.vue +95 -0
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +12 -0
- package/dist/runtime/components/content/ContentSurround.vue +61 -0
- package/dist/runtime/components/content/ContentSurround.vue.d.ts +59 -0
- package/dist/runtime/components/content/ContentToc.vue +146 -0
- package/dist/runtime/components/content/ContentToc.vue.d.ts +88 -0
- package/dist/runtime/components/locale/LocaleSelect.vue +20 -20
- package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +1 -1
- package/dist/runtime/components/prose/A.vue +24 -0
- package/dist/runtime/components/prose/A.vue.d.ts +15 -0
- package/dist/runtime/components/prose/Accordion.vue +43 -0
- package/dist/runtime/components/prose/Accordion.vue.d.ts +16 -0
- package/dist/runtime/components/prose/AccordionItem.vue +25 -0
- package/dist/runtime/components/prose/AccordionItem.vue.d.ts +15 -0
- package/dist/runtime/components/prose/Badge.vue +21 -0
- package/dist/runtime/components/prose/Badge.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Blockquote.vue +21 -0
- package/dist/runtime/components/prose/Blockquote.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Callout.vue +60 -0
- package/dist/runtime/components/prose/Callout.vue.d.ts +26 -0
- package/dist/runtime/components/prose/Card.vue +83 -0
- package/dist/runtime/components/prose/Card.vue.d.ts +30 -0
- package/dist/runtime/components/prose/CardGroup.vue +21 -0
- package/dist/runtime/components/prose/CardGroup.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Code.vue +23 -0
- package/dist/runtime/components/prose/Code.vue.d.ts +22 -0
- package/dist/runtime/components/prose/CodeCollapse.vue +44 -0
- package/dist/runtime/components/prose/CodeCollapse.vue.d.ts +46 -0
- package/dist/runtime/components/prose/CodeGroup.vue +70 -0
- package/dist/runtime/components/prose/CodeGroup.vue.d.ts +37 -0
- package/dist/runtime/components/prose/CodeIcon.vue +28 -0
- package/dist/runtime/components/prose/CodeIcon.vue.d.ts +24 -0
- package/dist/runtime/components/prose/CodePreview.vue +28 -0
- package/dist/runtime/components/prose/CodePreview.vue.d.ts +19 -0
- package/dist/runtime/components/prose/CodeTree.vue +160 -0
- package/dist/runtime/components/prose/CodeTree.vue.d.ts +30 -0
- package/dist/runtime/components/prose/Collapsible.vue +41 -0
- package/dist/runtime/components/prose/Collapsible.vue.d.ts +38 -0
- package/dist/runtime/components/prose/Em.vue +19 -0
- package/dist/runtime/components/prose/Em.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Field.vue +48 -0
- package/dist/runtime/components/prose/Field.vue.d.ts +39 -0
- package/dist/runtime/components/prose/FieldGroup.vue +23 -0
- package/dist/runtime/components/prose/FieldGroup.vue.d.ts +18 -0
- package/dist/runtime/components/prose/H1.vue +28 -0
- package/dist/runtime/components/prose/H1.vue.d.ts +19 -0
- package/dist/runtime/components/prose/H2.vue +32 -0
- package/dist/runtime/components/prose/H2.vue.d.ts +19 -0
- package/dist/runtime/components/prose/H3.vue +32 -0
- package/dist/runtime/components/prose/H3.vue.d.ts +19 -0
- package/dist/runtime/components/prose/H4.vue +28 -0
- package/dist/runtime/components/prose/H4.vue.d.ts +19 -0
- package/dist/runtime/components/prose/Hr.vue +18 -0
- package/dist/runtime/components/prose/Hr.vue.d.ts +5 -0
- package/dist/runtime/components/prose/Icon.vue +19 -0
- package/dist/runtime/components/prose/Icon.vue.d.ts +6 -0
- package/dist/runtime/components/prose/Img.vue +40 -0
- package/dist/runtime/components/prose/Img.vue.d.ts +9 -0
- package/dist/runtime/components/prose/Kbd.vue +19 -0
- package/dist/runtime/components/prose/Kbd.vue.d.ts +6 -0
- package/dist/runtime/components/prose/Li.vue +21 -0
- package/dist/runtime/components/prose/Li.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Ol.vue +21 -0
- package/dist/runtime/components/prose/Ol.vue.d.ts +13 -0
- package/dist/runtime/components/prose/P.vue +21 -0
- package/dist/runtime/components/prose/P.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Pre.vue +63 -0
- package/dist/runtime/components/prose/Pre.vue.d.ts +25 -0
- package/dist/runtime/components/prose/Script.vue +12 -0
- package/dist/runtime/components/prose/Script.vue.d.ts +12 -0
- package/dist/runtime/components/prose/Steps.vue +22 -0
- package/dist/runtime/components/prose/Steps.vue.d.ts +22 -0
- package/dist/runtime/components/prose/Strong.vue +21 -0
- package/dist/runtime/components/prose/Strong.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Table.vue +24 -0
- package/dist/runtime/components/prose/Table.vue.d.ts +18 -0
- package/dist/runtime/components/prose/Tabs.vue +78 -0
- package/dist/runtime/components/prose/Tabs.vue.d.ts +36 -0
- package/dist/runtime/components/prose/TabsItem.vue +25 -0
- package/dist/runtime/components/prose/TabsItem.vue.d.ts +15 -0
- package/dist/runtime/components/prose/Tbody.vue +21 -0
- package/dist/runtime/components/prose/Tbody.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Td.vue +21 -0
- package/dist/runtime/components/prose/Td.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Th.vue +21 -0
- package/dist/runtime/components/prose/Th.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Thead.vue +21 -0
- package/dist/runtime/components/prose/Thead.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Tr.vue +21 -0
- package/dist/runtime/components/prose/Tr.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Ul.vue +21 -0
- package/dist/runtime/components/prose/Ul.vue.d.ts +13 -0
- package/dist/runtime/components/prose/callout/Caution.vue +11 -0
- package/dist/runtime/components/prose/callout/Caution.vue.d.ts +14 -0
- package/dist/runtime/components/prose/callout/Note.vue +11 -0
- package/dist/runtime/components/prose/callout/Note.vue.d.ts +14 -0
- package/dist/runtime/components/prose/callout/Tip.vue +11 -0
- package/dist/runtime/components/prose/callout/Tip.vue.d.ts +14 -0
- package/dist/runtime/components/prose/callout/Warning.vue +11 -0
- package/dist/runtime/components/prose/callout/Warning.vue.d.ts +14 -0
- package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
- package/dist/runtime/composables/useComponentIcons.d.ts +1 -1
- package/dist/runtime/composables/useFormField.d.ts +2 -2
- package/dist/runtime/composables/usePortal.d.ts +1 -1
- package/dist/runtime/composables/useResizable.d.ts +1 -1
- 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/types/content.d.ts +4 -1
- package/dist/runtime/types/content.js +4 -0
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/prose.d.ts +42 -1
- package/dist/runtime/types/prose.js +42 -0
- package/dist/runtime/types/tv.d.ts +2 -2
- package/dist/runtime/utils/index.d.ts +1 -1
- package/dist/runtime/utils/index.js +13 -4
- 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/dist/shared/{ui.BcVNrqyb.mjs → ui.DQZ75GCP.mjs} +183 -180
- package/dist/unplugin.mjs +9 -9
- package/dist/vite.mjs +1 -1
- package/package.json +8 -9
- package/vue-plugin.d.ts +5 -5
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ProseTbodyProps {
|
|
2
|
+
class?: any;
|
|
3
|
+
}
|
|
4
|
+
export interface ProseTbodySlots {
|
|
5
|
+
default(props?: {}): any;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseTbodyProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseTbodyProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseTbodySlots>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import theme from "#build/ui/prose/td";
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { computed } from "vue";
|
|
7
|
+
import { useAppConfig } from "#imports";
|
|
8
|
+
import { tv } from "../../utils/tv";
|
|
9
|
+
const props = defineProps({
|
|
10
|
+
class: { type: null, required: false }
|
|
11
|
+
});
|
|
12
|
+
defineSlots();
|
|
13
|
+
const appConfig = useAppConfig();
|
|
14
|
+
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.td || {} }));
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<td :class="ui({ class: props.class })">
|
|
19
|
+
<slot />
|
|
20
|
+
</td>
|
|
21
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ProseTdProps {
|
|
2
|
+
class?: any;
|
|
3
|
+
}
|
|
4
|
+
export interface ProseTdSlots {
|
|
5
|
+
default(props?: {}): any;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseTdProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseTdProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseTdSlots>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import theme from "#build/ui/prose/th";
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { computed } from "vue";
|
|
7
|
+
import { useAppConfig } from "#imports";
|
|
8
|
+
import { tv } from "../../utils/tv";
|
|
9
|
+
const props = defineProps({
|
|
10
|
+
class: { type: null, required: false }
|
|
11
|
+
});
|
|
12
|
+
defineSlots();
|
|
13
|
+
const appConfig = useAppConfig();
|
|
14
|
+
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.th || {} }));
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<th :class="ui({ class: props.class })">
|
|
19
|
+
<slot />
|
|
20
|
+
</th>
|
|
21
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ProseThProps {
|
|
2
|
+
class?: any;
|
|
3
|
+
}
|
|
4
|
+
export interface ProseThSlots {
|
|
5
|
+
default(props?: {}): any;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseThProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseThProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseThSlots>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import theme from "#build/ui/prose/thead";
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { computed } from "vue";
|
|
7
|
+
import { useAppConfig } from "#imports";
|
|
8
|
+
import { tv } from "../../utils/tv";
|
|
9
|
+
const props = defineProps({
|
|
10
|
+
class: { type: null, required: false }
|
|
11
|
+
});
|
|
12
|
+
defineSlots();
|
|
13
|
+
const appConfig = useAppConfig();
|
|
14
|
+
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.thead || {} }));
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<thead :class="ui({ class: props.class })">
|
|
19
|
+
<slot />
|
|
20
|
+
</thead>
|
|
21
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ProseTheadProps {
|
|
2
|
+
class?: any;
|
|
3
|
+
}
|
|
4
|
+
export interface ProseTheadSlots {
|
|
5
|
+
default(props?: {}): any;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseTheadProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseTheadProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseTheadSlots>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import theme from "#build/ui/prose/tr";
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { computed } from "vue";
|
|
7
|
+
import { useAppConfig } from "#imports";
|
|
8
|
+
import { tv } from "../../utils/tv";
|
|
9
|
+
const props = defineProps({
|
|
10
|
+
class: { type: null, required: false }
|
|
11
|
+
});
|
|
12
|
+
defineSlots();
|
|
13
|
+
const appConfig = useAppConfig();
|
|
14
|
+
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.tr || {} }));
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<tr :class="ui({ class: props.class })">
|
|
19
|
+
<slot />
|
|
20
|
+
</tr>
|
|
21
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ProseTrProps {
|
|
2
|
+
class?: any;
|
|
3
|
+
}
|
|
4
|
+
export interface ProseTrSlots {
|
|
5
|
+
default(props?: {}): any;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseTrProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseTrProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseTrSlots>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import theme from "#build/ui/prose/ul";
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { computed } from "vue";
|
|
7
|
+
import { useAppConfig } from "#imports";
|
|
8
|
+
import { tv } from "../../utils/tv";
|
|
9
|
+
const props = defineProps({
|
|
10
|
+
class: { type: null, required: false }
|
|
11
|
+
});
|
|
12
|
+
defineSlots();
|
|
13
|
+
const appConfig = useAppConfig();
|
|
14
|
+
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.ul || {} }));
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<ul :class="ui({ class: props.class })">
|
|
19
|
+
<slot />
|
|
20
|
+
</ul>
|
|
21
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ProseUlProps {
|
|
2
|
+
class?: any;
|
|
3
|
+
}
|
|
4
|
+
export interface ProseUlSlots {
|
|
5
|
+
default(props?: {}): any;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseUlProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseUlProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseUlSlots>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useAppConfig } from "#imports";
|
|
3
|
+
import Callout from "../Callout.vue";
|
|
4
|
+
const appConfig = useAppConfig();
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<Callout color="error" :icon="appConfig.ui.icons.caution">
|
|
9
|
+
<slot mdc-unwrap="p" />
|
|
10
|
+
</Callout>
|
|
11
|
+
</template>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare var __VLS_5: {
|
|
2
|
+
mdcUnwrap: string;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_5) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useAppConfig } from "#imports";
|
|
3
|
+
import Callout from "../Callout.vue";
|
|
4
|
+
const appConfig = useAppConfig();
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<Callout color="info" :icon="appConfig.ui.icons.info">
|
|
9
|
+
<slot mdc-unwrap="p" />
|
|
10
|
+
</Callout>
|
|
11
|
+
</template>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare var __VLS_5: {
|
|
2
|
+
mdcUnwrap: string;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_5) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useAppConfig } from "#imports";
|
|
3
|
+
import Callout from "../Callout.vue";
|
|
4
|
+
const appConfig = useAppConfig();
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<Callout color="success" :icon="appConfig.ui.icons.tip">
|
|
9
|
+
<slot mdc-unwrap="p" />
|
|
10
|
+
</Callout>
|
|
11
|
+
</template>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare var __VLS_5: {
|
|
2
|
+
mdcUnwrap: string;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_5) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useAppConfig } from "#imports";
|
|
3
|
+
import Callout from "../Callout.vue";
|
|
4
|
+
const appConfig = useAppConfig();
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<Callout color="warning" :icon="appConfig.ui.icons.warning">
|
|
9
|
+
<slot mdc-unwrap="p" />
|
|
10
|
+
</Callout>
|
|
11
|
+
</template>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare var __VLS_5: {
|
|
2
|
+
mdcUnwrap: string;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_5) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ComputedRef, InjectionKey } from 'vue';
|
|
2
2
|
import type { AvatarGroupProps } from '../types';
|
|
3
3
|
export declare const avatarGroupInjectionKey: InjectionKey<ComputedRef<{
|
|
4
4
|
size: AvatarGroupProps['size'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { InjectionKey, Ref, ComputedRef } from 'vue';
|
|
2
|
+
import type { UseEventBusReturn } from '@vueuse/core';
|
|
3
3
|
import type { FormFieldProps } from '../types';
|
|
4
4
|
import type { FormEvent, FormFieldInjectedOptions, FormInjectedOptions } from '../types/form';
|
|
5
5
|
import type { GetObjectField } from '../types/utils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Ref, InjectionKey } from 'vue';
|
|
2
2
|
export declare const portalTargetInjectionKey: InjectionKey<Ref<string | HTMLElement>>;
|
|
3
3
|
export declare function usePortal(portal: Ref<string | HTMLElement | boolean | undefined>): import("vue").ComputedRef<{
|
|
4
4
|
to: string | HTMLElement;
|
|
@@ -100,8 +100,8 @@ const linkClass = computed(() => {
|
|
|
100
100
|
</script>
|
|
101
101
|
|
|
102
102
|
<template>
|
|
103
|
-
<template v-if="custom">
|
|
104
|
-
<slot
|
|
103
|
+
<template v-if="custom">
|
|
104
|
+
<slot
|
|
105
105
|
v-bind="{
|
|
106
106
|
...$attrs,
|
|
107
107
|
...routerLinkProps,
|
|
@@ -111,11 +111,11 @@ const linkClass = computed(() => {
|
|
|
111
111
|
href,
|
|
112
112
|
active: isLinkActive,
|
|
113
113
|
isExternal
|
|
114
|
-
}"
|
|
115
|
-
/>
|
|
116
|
-
</template>
|
|
117
|
-
<ULinkBase
|
|
118
|
-
v-else
|
|
114
|
+
}"
|
|
115
|
+
/>
|
|
116
|
+
</template>
|
|
117
|
+
<ULinkBase
|
|
118
|
+
v-else
|
|
119
119
|
v-bind="{
|
|
120
120
|
...$attrs,
|
|
121
121
|
...routerLinkProps,
|
|
@@ -124,9 +124,9 @@ const linkClass = computed(() => {
|
|
|
124
124
|
disabled,
|
|
125
125
|
href,
|
|
126
126
|
isExternal
|
|
127
|
-
}"
|
|
128
|
-
:class="linkClass"
|
|
129
|
-
>
|
|
130
|
-
<slot :active="isLinkActive" />
|
|
131
|
-
</ULinkBase>
|
|
127
|
+
}"
|
|
128
|
+
:class="linkClass"
|
|
129
|
+
>
|
|
130
|
+
<slot :active="isLinkActive" />
|
|
131
|
+
</ULinkBase>
|
|
132
132
|
</template>
|
|
@@ -31,19 +31,19 @@ function onClickWrapper(e) {
|
|
|
31
31
|
</script>
|
|
32
32
|
|
|
33
33
|
<template>
|
|
34
|
-
<InertiaLink
|
|
35
|
-
v-if="!!href && !isExternal && !disabled"
|
|
36
|
-
:href="href"
|
|
34
|
+
<InertiaLink
|
|
35
|
+
v-if="!!href && !isExternal && !disabled"
|
|
36
|
+
:href="href"
|
|
37
37
|
v-bind="{
|
|
38
38
|
target: target || (isExternal ? '_blank' : void 0),
|
|
39
39
|
...$attrs
|
|
40
|
-
}"
|
|
41
|
-
@click="onClickWrapper"
|
|
42
|
-
>
|
|
43
|
-
<slot />
|
|
44
|
-
</InertiaLink>
|
|
45
|
-
<Primitive
|
|
46
|
-
v-else
|
|
40
|
+
}"
|
|
41
|
+
@click="onClickWrapper"
|
|
42
|
+
>
|
|
43
|
+
<slot />
|
|
44
|
+
</InertiaLink>
|
|
45
|
+
<Primitive
|
|
46
|
+
v-else
|
|
47
47
|
v-bind="href ? {
|
|
48
48
|
'as': 'a',
|
|
49
49
|
'href': disabled ? void 0 : href,
|
|
@@ -60,9 +60,9 @@ function onClickWrapper(e) {
|
|
|
60
60
|
} : {
|
|
61
61
|
as,
|
|
62
62
|
...$attrs
|
|
63
|
-
}"
|
|
64
|
-
@click="onClickWrapper"
|
|
65
|
-
>
|
|
66
|
-
<slot />
|
|
67
|
-
</Primitive>
|
|
63
|
+
}"
|
|
64
|
+
@click="onClickWrapper"
|
|
65
|
+
>
|
|
66
|
+
<slot />
|
|
67
|
+
</Primitive>
|
|
68
68
|
</template>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare module '#build/app.config' {
|
|
2
|
-
import type { AppConfig } from '@nuxt/schema'
|
|
3
|
-
|
|
4
|
-
const _default: AppConfig
|
|
5
|
-
export default _default
|
|
6
|
-
}
|
|
1
|
+
declare module '#build/app.config' {
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema'
|
|
3
|
+
|
|
4
|
+
const _default: AppConfig
|
|
5
|
+
export default _default
|
|
6
|
+
}
|
|
@@ -38,6 +38,7 @@ export * from '../components/DashboardSidebarCollapse.vue';
|
|
|
38
38
|
export * from '../components/DashboardSidebarToggle.vue';
|
|
39
39
|
export * from '../components/Drawer.vue';
|
|
40
40
|
export * from '../components/DropdownMenu.vue';
|
|
41
|
+
export * from '../components/Error.vue';
|
|
41
42
|
export * from '../components/Form.vue';
|
|
42
43
|
export * from '../components/FormField.vue';
|
|
43
44
|
export * from '../components/Icon.vue';
|
|
@@ -38,6 +38,7 @@ export * from "../components/DashboardSidebarCollapse.vue";
|
|
|
38
38
|
export * from "../components/DashboardSidebarToggle.vue";
|
|
39
39
|
export * from "../components/Drawer.vue";
|
|
40
40
|
export * from "../components/DropdownMenu.vue";
|
|
41
|
+
export * from "../components/Error.vue";
|
|
41
42
|
export * from "../components/Form.vue";
|
|
42
43
|
export * from "../components/FormField.vue";
|
|
43
44
|
export * from "../components/Icon.vue";
|
|
@@ -1 +1,42 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from '../components/prose/A.vue';
|
|
2
|
+
export * from '../components/prose/Accordion.vue';
|
|
3
|
+
export * from '../components/prose/AccordionItem.vue';
|
|
4
|
+
export * from '../components/prose/Badge.vue';
|
|
5
|
+
export * from '../components/prose/Blockquote.vue';
|
|
6
|
+
export * from '../components/prose/Callout.vue';
|
|
7
|
+
export * from '../components/prose/Card.vue';
|
|
8
|
+
export * from '../components/prose/CardGroup.vue';
|
|
9
|
+
export * from '../components/prose/Code.vue';
|
|
10
|
+
export * from '../components/prose/CodeCollapse.vue';
|
|
11
|
+
export * from '../components/prose/CodeGroup.vue';
|
|
12
|
+
export * from '../components/prose/CodeIcon.vue';
|
|
13
|
+
export * from '../components/prose/CodePreview.vue';
|
|
14
|
+
export * from '../components/prose/CodeTree.vue';
|
|
15
|
+
export * from '../components/prose/Collapsible.vue';
|
|
16
|
+
export * from '../components/prose/Em.vue';
|
|
17
|
+
export * from '../components/prose/Field.vue';
|
|
18
|
+
export * from '../components/prose/FieldGroup.vue';
|
|
19
|
+
export * from '../components/prose/H1.vue';
|
|
20
|
+
export * from '../components/prose/H2.vue';
|
|
21
|
+
export * from '../components/prose/H3.vue';
|
|
22
|
+
export * from '../components/prose/H4.vue';
|
|
23
|
+
export * from '../components/prose/Hr.vue';
|
|
24
|
+
export * from '../components/prose/Icon.vue';
|
|
25
|
+
export * from '../components/prose/Img.vue';
|
|
26
|
+
export * from '../components/prose/Kbd.vue';
|
|
27
|
+
export * from '../components/prose/Li.vue';
|
|
28
|
+
export * from '../components/prose/Ol.vue';
|
|
29
|
+
export * from '../components/prose/P.vue';
|
|
30
|
+
export * from '../components/prose/Pre.vue';
|
|
31
|
+
export * from '../components/prose/Script.vue';
|
|
32
|
+
export * from '../components/prose/Steps.vue';
|
|
33
|
+
export * from '../components/prose/Strong.vue';
|
|
34
|
+
export * from '../components/prose/Table.vue';
|
|
35
|
+
export * from '../components/prose/Tabs.vue';
|
|
36
|
+
export * from '../components/prose/TabsItem.vue';
|
|
37
|
+
export * from '../components/prose/Tbody.vue';
|
|
38
|
+
export * from '../components/prose/Td.vue';
|
|
39
|
+
export * from '../components/prose/Th.vue';
|
|
40
|
+
export * from '../components/prose/Thead.vue';
|
|
41
|
+
export * from '../components/prose/Tr.vue';
|
|
42
|
+
export * from '../components/prose/Ul.vue';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export * from "../components/prose/A.vue";
|
|
2
|
+
export * from "../components/prose/Accordion.vue";
|
|
3
|
+
export * from "../components/prose/AccordionItem.vue";
|
|
4
|
+
export * from "../components/prose/Badge.vue";
|
|
5
|
+
export * from "../components/prose/Blockquote.vue";
|
|
6
|
+
export * from "../components/prose/Callout.vue";
|
|
7
|
+
export * from "../components/prose/Card.vue";
|
|
8
|
+
export * from "../components/prose/CardGroup.vue";
|
|
9
|
+
export * from "../components/prose/Code.vue";
|
|
10
|
+
export * from "../components/prose/CodeCollapse.vue";
|
|
11
|
+
export * from "../components/prose/CodeGroup.vue";
|
|
12
|
+
export * from "../components/prose/CodeIcon.vue";
|
|
13
|
+
export * from "../components/prose/CodePreview.vue";
|
|
14
|
+
export * from "../components/prose/CodeTree.vue";
|
|
15
|
+
export * from "../components/prose/Collapsible.vue";
|
|
16
|
+
export * from "../components/prose/Em.vue";
|
|
17
|
+
export * from "../components/prose/Field.vue";
|
|
18
|
+
export * from "../components/prose/FieldGroup.vue";
|
|
19
|
+
export * from "../components/prose/H1.vue";
|
|
20
|
+
export * from "../components/prose/H2.vue";
|
|
21
|
+
export * from "../components/prose/H3.vue";
|
|
22
|
+
export * from "../components/prose/H4.vue";
|
|
23
|
+
export * from "../components/prose/Hr.vue";
|
|
24
|
+
export * from "../components/prose/Icon.vue";
|
|
25
|
+
export * from "../components/prose/Img.vue";
|
|
26
|
+
export * from "../components/prose/Kbd.vue";
|
|
27
|
+
export * from "../components/prose/Li.vue";
|
|
28
|
+
export * from "../components/prose/Ol.vue";
|
|
29
|
+
export * from "../components/prose/P.vue";
|
|
30
|
+
export * from "../components/prose/Pre.vue";
|
|
31
|
+
export * from "../components/prose/Script.vue";
|
|
32
|
+
export * from "../components/prose/Steps.vue";
|
|
33
|
+
export * from "../components/prose/Strong.vue";
|
|
34
|
+
export * from "../components/prose/Table.vue";
|
|
35
|
+
export * from "../components/prose/Tabs.vue";
|
|
36
|
+
export * from "../components/prose/TabsItem.vue";
|
|
37
|
+
export * from "../components/prose/Tbody.vue";
|
|
38
|
+
export * from "../components/prose/Td.vue";
|
|
39
|
+
export * from "../components/prose/Th.vue";
|
|
40
|
+
export * from "../components/prose/Thead.vue";
|
|
41
|
+
export * from "../components/prose/Tr.vue";
|
|
42
|
+
export * from "../components/prose/Ul.vue";
|
|
@@ -43,9 +43,9 @@ type ComponentAppConfig<T, A extends Record<string, any>, K extends string, U ex
|
|
|
43
43
|
* @template T The component's theme imported from `#build/ui/*`.
|
|
44
44
|
* @template A The base AppConfig type from `@nuxt/schema`.
|
|
45
45
|
* @template K The key identifying the component (e.g., 'badge').
|
|
46
|
-
* @template U The top-level key in AppConfig ('ui' or '
|
|
46
|
+
* @template U The top-level key in AppConfig ('ui' or 'uiPro').
|
|
47
47
|
*/
|
|
48
|
-
export type ComponentConfig<T extends Record<string, any>, A extends Record<string, any>, K extends string, U extends 'ui' | 'ui
|
|
48
|
+
export type ComponentConfig<T extends Record<string, any>, A extends Record<string, any>, K extends string, U extends 'ui' | 'ui.prose' = 'ui'> = {
|
|
49
49
|
AppConfig: ComponentAppConfig<T, A, K, U>;
|
|
50
50
|
variants: ComponentVariants<T & GetComponentAppConfig<A, U, K>>;
|
|
51
51
|
slots: ComponentSlots<T>;
|
|
@@ -8,5 +8,5 @@ export declare function isArrayOfArray<A>(item: A[] | A[][]): item is A[][];
|
|
|
8
8
|
export declare function getSlotChildrenText(children: any): string;
|
|
9
9
|
export declare function transformUI(ui: Record<string, ((args: {
|
|
10
10
|
class?: string;
|
|
11
|
-
}) => any) | any>, uiProp?: Record<string,
|
|
11
|
+
}) => any) | any>, uiProp?: Record<string, any>): Record<string, any>;
|
|
12
12
|
export * from './content';
|
|
@@ -81,9 +81,18 @@ export function getSlotChildrenText(children) {
|
|
|
81
81
|
return "";
|
|
82
82
|
}
|
|
83
83
|
export function transformUI(ui, uiProp) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
const result = {};
|
|
85
|
+
for (const key in ui) {
|
|
86
|
+
const uiValue = ui[key];
|
|
87
|
+
const classValue = normalizeClass(uiProp?.[key]);
|
|
88
|
+
result[key] = typeof uiValue === "function" ? uiValue({ class: classValue }) : uiValue;
|
|
89
|
+
}
|
|
90
|
+
return result;
|
|
91
|
+
}
|
|
92
|
+
function normalizeClass(value) {
|
|
93
|
+
if (typeof value === "string") return value;
|
|
94
|
+
if (Array.isArray(value)) return value.filter(Boolean).join(" ");
|
|
95
|
+
if (typeof value === "number" || typeof value === "boolean") return String(value);
|
|
96
|
+
return void 0;
|
|
88
97
|
}
|
|
89
98
|
export * from "./content.js";
|