@dynect/base 0.13.0 → 0.14.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/package.json +4 -4
- package/src/runtime/components/base/event-calendar/AgendaView.vue +1 -1
- package/src/runtime/components/base/event-calendar/EventModal.vue +1 -1
- package/src/runtime/components/dynect/Autocomplete.vue +0 -1
- package/src/runtime/components/dynect/Button.vue +1 -1
- package/src/runtime/components/dynect/EventCalendar.vue +2 -2
- package/src/runtime/components/ui/alert-dialog/AlertDialogAction.vue +1 -1
- package/src/runtime/components/ui/alert-dialog/AlertDialogCancel.vue +2 -2
- package/src/runtime/components/ui/button-group/ButtonGroupSeparator.vue +1 -1
- package/src/runtime/components/ui/calendar/Calendar.vue +1 -1
- package/src/runtime/components/ui/calendar/CalendarNextButton.vue +1 -1
- package/src/runtime/components/ui/calendar/CalendarPrevButton.vue +1 -1
- package/src/runtime/components/ui/carousel/CarouselNext.vue +4 -5
- package/src/runtime/components/ui/carousel/CarouselPrevious.vue +5 -6
- package/src/runtime/components/ui/command/CommandDialog.vue +1 -1
- package/src/runtime/components/ui/dialog/DialogFooter.vue +1 -1
- package/src/runtime/components/ui/field/FieldLabel.vue +1 -1
- package/src/runtime/components/ui/field/FieldSeparator.vue +1 -1
- package/src/runtime/components/ui/form/FormLabel.vue +1 -1
- package/src/runtime/components/ui/input-group/InputGroupButton.vue +4 -5
- package/src/runtime/components/ui/input-group/InputGroupInput.vue +1 -1
- package/src/runtime/components/ui/input-group/InputGroupTextarea.vue +1 -1
- package/src/runtime/components/ui/item/ItemSeparator.vue +1 -1
- package/src/runtime/components/ui/pagination/PaginationFirst.vue +1 -2
- package/src/runtime/components/ui/pagination/PaginationItem.vue +1 -2
- package/src/runtime/components/ui/pagination/PaginationLast.vue +1 -2
- package/src/runtime/components/ui/pagination/PaginationNext.vue +1 -2
- package/src/runtime/components/ui/pagination/PaginationPrevious.vue +1 -2
- package/src/runtime/components/ui/range-calendar/RangeCalendarNextButton.vue +1 -1
- package/src/runtime/components/ui/range-calendar/RangeCalendarPrevButton.vue +1 -1
- package/src/runtime/components/ui/sidebar/Sidebar.vue +4 -4
- package/src/runtime/components/ui/sidebar/SidebarInput.vue +1 -1
- package/src/runtime/components/ui/sidebar/SidebarMenuButton.vue +1 -1
- package/src/runtime/components/ui/sidebar/SidebarMenuSkeleton.vue +1 -1
- package/src/runtime/components/ui/sidebar/SidebarSeparator.vue +1 -1
- package/src/runtime/components/ui/tiptap/TiptapMobileToolbar.vue +1 -1
- package/src/runtime/components/ui/tiptap/TiptapSlotPanel.vue +2 -2
- package/src/runtime/components/ui/tiptap/TiptapStatusBar.vue +1 -1
- package/src/runtime/components/ui/tiptap/TiptapTableToolbar.vue +6 -6
- package/src/runtime/components/ui/tiptap/TiptapToolbar.vue +3 -3
- package/src/runtime/components/ui/tiptap/TiptapTreeItem.vue +2 -2
- package/src/runtime/components/ui/toggle-group/ToggleGroup.vue +1 -1
- package/src/runtime/components/ui/toggle-group/ToggleGroupItem.vue +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynect/base",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Reusable Nuxt base module — components, composables, utils, plugins and i18n from the Dynect design system.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -81,8 +81,11 @@
|
|
|
81
81
|
"reka-ui": "^2.9.7",
|
|
82
82
|
"shadcn-nuxt": "^2.6.2",
|
|
83
83
|
"signature_pad": "^5.1.3",
|
|
84
|
+
"@tailwindcss/vite": "^4.3.0",
|
|
84
85
|
"tailwind-merge": "^3.5.0",
|
|
86
|
+
"tailwindcss": "^4.3.0",
|
|
85
87
|
"tailwindcss-animate": "^1.0.7",
|
|
88
|
+
"tw-animate-css": "^1.4.0",
|
|
86
89
|
"vaul-vue": "^0.4.1",
|
|
87
90
|
"vee-validate": "^4.15.1",
|
|
88
91
|
"vue-echarts": "^8.0.1",
|
|
@@ -97,10 +100,7 @@
|
|
|
97
100
|
"@iconify-json/heroicons": "^1.2.3",
|
|
98
101
|
"@iconify-json/lucide": "^1.2.106",
|
|
99
102
|
"@iconify-json/mdi": "^1.2.3",
|
|
100
|
-
"@tailwindcss/vite": "^4.3.0",
|
|
101
103
|
"@types/node": "^25.6.2",
|
|
102
|
-
"tailwindcss": "^4.3.0",
|
|
103
|
-
"tw-animate-css": "^1.4.0",
|
|
104
104
|
"typescript": "^6.0.3"
|
|
105
105
|
}
|
|
106
106
|
}
|
|
@@ -6,7 +6,7 @@ import type { CalendarEvent } from './types';
|
|
|
6
6
|
import LocationDisplay from './LocationDisplay.vue';
|
|
7
7
|
import { useColorManager } from './composables/useColorManager';
|
|
8
8
|
import { useDragAndDropSystem } from './composables/useDragAndDrop';
|
|
9
|
-
import { ScrollArea } from '
|
|
9
|
+
import { ScrollArea } from '../../ui/scroll-area';
|
|
10
10
|
|
|
11
11
|
const props = defineProps<{
|
|
12
12
|
events: CalendarEvent[]; // Expects events already sorted and filtered by the parent
|
|
@@ -12,7 +12,7 @@ import type { CalendarEvent, EventColor, EventStatus } from './types';
|
|
|
12
12
|
import { DefaultEndHour, DefaultStartHour, EndHour, StartHour } from './constants';
|
|
13
13
|
import { useTimezone } from './composables/useTimezone';
|
|
14
14
|
import { eventModalSchema } from './eventModal.schema';
|
|
15
|
-
import DynectButton from '
|
|
15
|
+
import DynectButton from '../../dynect/Button.vue';
|
|
16
16
|
|
|
17
17
|
const uuidv4 = useId();
|
|
18
18
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { HTMLAttributes } from 'vue';
|
|
3
3
|
import { Primitive, type PrimitiveProps } from 'reka-ui';
|
|
4
4
|
import { cn } from '../../lib/utils';
|
|
5
|
-
import { buttonVariants, type ButtonVariants } from '
|
|
5
|
+
import { buttonVariants, type ButtonVariants } from '../ui/button';
|
|
6
6
|
|
|
7
7
|
// ── Props ─────────────────────────────────────────────────────────────────────
|
|
8
8
|
interface Props extends PrimitiveProps {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue';
|
|
3
|
-
import type { CalendarEvent, ViewMode } from '
|
|
3
|
+
import type { CalendarEvent, ViewMode } from '../base/event-calendar/types';
|
|
4
4
|
|
|
5
5
|
// Re-export types for convenience
|
|
6
|
-
export type { CalendarEvent, ViewMode, EventColor, EventStatus, RecurringPattern } from '
|
|
6
|
+
export type { CalendarEvent, ViewMode, EventColor, EventStatus, RecurringPattern } from '../base/event-calendar/types';
|
|
7
7
|
|
|
8
8
|
// ── Props ────────────────────────────────────────────────────────────────────
|
|
9
9
|
interface Props {
|
|
@@ -4,7 +4,7 @@ import type { HTMLAttributes } from 'vue';
|
|
|
4
4
|
import { reactiveOmit } from '@vueuse/core';
|
|
5
5
|
import { AlertDialogAction } from 'reka-ui';
|
|
6
6
|
import { cn } from '@/lib/utils';
|
|
7
|
-
import { buttonVariants } from '
|
|
7
|
+
import { buttonVariants } from '../button';
|
|
8
8
|
|
|
9
9
|
const props = defineProps<AlertDialogActionProps & { class?: HTMLAttributes['class'] }>();
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ import type { HTMLAttributes } from 'vue';
|
|
|
4
4
|
import { reactiveOmit } from '@vueuse/core';
|
|
5
5
|
import { AlertDialogCancel } from 'reka-ui';
|
|
6
6
|
import { cn } from '@/lib/utils';
|
|
7
|
-
import { buttonVariants } from '
|
|
7
|
+
import { buttonVariants } from '../button';
|
|
8
8
|
|
|
9
9
|
const props = defineProps<AlertDialogCancelProps & { class?: HTMLAttributes['class'] }>();
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ const delegatedProps = reactiveOmit(props, 'class');
|
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
14
|
<template>
|
|
15
|
-
<AlertDialogCancel v-bind="delegatedProps" :class="cn(buttonVariants({
|
|
15
|
+
<AlertDialogCancel v-bind="delegatedProps" :class="cn(buttonVariants({ color: 'outline-info' }), 'mt-2 sm:mt-0', props.class)">
|
|
16
16
|
<slot />
|
|
17
17
|
</AlertDialogCancel>
|
|
18
18
|
</template>
|
|
@@ -3,7 +3,7 @@ import type { SeparatorProps } from 'reka-ui';
|
|
|
3
3
|
import type { HTMLAttributes } from 'vue';
|
|
4
4
|
import { reactiveOmit } from '@vueuse/core';
|
|
5
5
|
import { cn } from '@/lib/utils';
|
|
6
|
-
import { Separator } from '
|
|
6
|
+
import { Separator } from '../separator';
|
|
7
7
|
|
|
8
8
|
const props = withDefaults(defineProps<SeparatorProps & { class?: HTMLAttributes['class'] }>(), {
|
|
9
9
|
orientation: 'vertical',
|
|
@@ -8,7 +8,7 @@ import { CalendarRoot, useDateFormatter, useForwardPropsEmits } from 'reka-ui';
|
|
|
8
8
|
import { createYear, createYearRange, toDate } from 'reka-ui/date';
|
|
9
9
|
import { computed, toRaw } from 'vue';
|
|
10
10
|
import { cn } from '@/lib/utils';
|
|
11
|
-
import { NativeSelect, NativeSelectOption } from '
|
|
11
|
+
import { NativeSelect, NativeSelectOption } from '../native-select';
|
|
12
12
|
import { CalendarCell, CalendarCellTrigger, CalendarGrid, CalendarGridBody, CalendarGridHead, CalendarGridRow, CalendarHeadCell, CalendarHeader, CalendarHeading, CalendarNextButton, CalendarPrevButton } from '.';
|
|
13
13
|
|
|
14
14
|
const props = withDefaults(defineProps<CalendarRootProps & { class?: HTMLAttributes['class']; layout?: LayoutTypes; yearRange?: DateValue[] }>(), {
|
|
@@ -4,7 +4,7 @@ import type { HTMLAttributes } from 'vue';
|
|
|
4
4
|
import { reactiveOmit } from '@vueuse/core';
|
|
5
5
|
import { CalendarNext, useForwardProps } from 'reka-ui';
|
|
6
6
|
import { cn } from '@/lib/utils';
|
|
7
|
-
import { buttonVariants } from '
|
|
7
|
+
import { buttonVariants } from '../button';
|
|
8
8
|
|
|
9
9
|
const props = defineProps<CalendarNextProps & { class?: HTMLAttributes['class'] }>();
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ import type { HTMLAttributes } from 'vue';
|
|
|
4
4
|
import { reactiveOmit } from '@vueuse/core';
|
|
5
5
|
import { CalendarPrev, useForwardProps } from 'reka-ui';
|
|
6
6
|
import { cn } from '@/lib/utils';
|
|
7
|
-
import { buttonVariants } from '
|
|
7
|
+
import { buttonVariants } from '../button';
|
|
8
8
|
|
|
9
9
|
const props = defineProps<CalendarPrevProps & { class?: HTMLAttributes['class'] }>();
|
|
10
10
|
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { WithClassAsProps } from './interface';
|
|
3
|
-
import type { ButtonVariants } from '@/components/ui/button';
|
|
4
3
|
import { ArrowRight } from 'lucide-vue-next';
|
|
5
4
|
import { cn } from '@/lib/utils';
|
|
6
|
-
import { Button } from '
|
|
5
|
+
import { Button, type ButtonVariants } from '../button';
|
|
7
6
|
import { useCarousel } from './useCarousel';
|
|
8
7
|
|
|
9
8
|
const props = withDefaults(
|
|
10
9
|
defineProps<
|
|
11
10
|
{
|
|
12
|
-
|
|
11
|
+
color?: ButtonVariants['color'];
|
|
13
12
|
size?: ButtonVariants['size'];
|
|
14
13
|
} & WithClassAsProps
|
|
15
14
|
>(),
|
|
16
15
|
{
|
|
17
|
-
|
|
18
|
-
size: '
|
|
16
|
+
color: 'outline-info',
|
|
17
|
+
size: 'sm',
|
|
19
18
|
}
|
|
20
19
|
);
|
|
21
20
|
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { WithClassAsProps } from './interface';
|
|
3
|
-
import type { ButtonVariants } from '@/components/ui/button';
|
|
4
3
|
import { ArrowLeft } from 'lucide-vue-next';
|
|
5
4
|
import { cn } from '@/lib/utils';
|
|
6
|
-
import { Button } from '
|
|
5
|
+
import { Button, type ButtonVariants } from '../button';
|
|
7
6
|
import { useCarousel } from './useCarousel';
|
|
8
7
|
|
|
9
8
|
const props = withDefaults(
|
|
10
9
|
defineProps<
|
|
11
10
|
{
|
|
12
|
-
|
|
11
|
+
color?: ButtonVariants['color'];
|
|
13
12
|
size?: ButtonVariants['size'];
|
|
14
13
|
} & WithClassAsProps
|
|
15
14
|
>(),
|
|
16
15
|
{
|
|
17
|
-
|
|
18
|
-
size: '
|
|
16
|
+
color: 'outline-info',
|
|
17
|
+
size: 'sm',
|
|
19
18
|
}
|
|
20
19
|
);
|
|
21
20
|
|
|
@@ -23,7 +22,7 @@ const { orientation, canScrollPrev, scrollPrev } = useCarousel();
|
|
|
23
22
|
</script>
|
|
24
23
|
|
|
25
24
|
<template>
|
|
26
|
-
<Button data-slot="carousel-previous" :disabled="!canScrollPrev" :class="cn('absolute size-8 rounded-full', orientation === 'horizontal' ? 'top-1/2 -left-12 -translate-y-1/2' : '-top-12 left-1/2 -translate-x-1/2 rotate-90', props.class)" :variant="
|
|
25
|
+
<Button data-slot="carousel-previous" :disabled="!canScrollPrev" :class="cn('absolute size-8 rounded-full', orientation === 'horizontal' ? 'top-1/2 -left-12 -translate-y-1/2' : '-top-12 left-1/2 -translate-x-1/2 rotate-90', props.class)" :variant="color" :size="size" @click="scrollPrev">
|
|
27
26
|
<slot>
|
|
28
27
|
<ArrowLeft />
|
|
29
28
|
<span class="sr-only">Previous Slide</span>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { DialogRootEmits, DialogRootProps } from 'reka-ui';
|
|
3
3
|
import { useForwardPropsEmits } from 'reka-ui';
|
|
4
|
-
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '
|
|
4
|
+
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '../dialog';
|
|
5
5
|
import Command from './Command.vue';
|
|
6
6
|
|
|
7
7
|
const props = withDefaults(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { HTMLAttributes } from 'vue';
|
|
3
3
|
import { cn } from '@/lib/utils';
|
|
4
|
-
import { Label as FieldLabel } from '
|
|
4
|
+
import { Label as FieldLabel } from '../label';
|
|
5
5
|
|
|
6
6
|
const props = defineProps<{
|
|
7
7
|
class?: HTMLAttributes['class'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { HTMLAttributes } from 'vue';
|
|
3
3
|
import { cn } from '@/lib/utils';
|
|
4
|
-
import { Separator } from '
|
|
4
|
+
import { Separator } from '../separator';
|
|
5
5
|
|
|
6
6
|
const props = defineProps<{
|
|
7
7
|
class?: HTMLAttributes['class'];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { LabelProps } from 'reka-ui';
|
|
3
3
|
import type { HTMLAttributes } from 'vue';
|
|
4
4
|
import { cn } from '@/lib/utils';
|
|
5
|
-
import { Label } from '
|
|
5
|
+
import { Label } from '../label';
|
|
6
6
|
import { useFormField } from './useFormField';
|
|
7
7
|
|
|
8
8
|
const props = defineProps<LabelProps & { class?: HTMLAttributes['class'] }>();
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { HTMLAttributes } from 'vue';
|
|
3
3
|
import type { InputGroupButtonVariants } from '.';
|
|
4
|
-
import type { ButtonVariants } from '@/components/ui/button';
|
|
5
4
|
import { cn } from '@/lib/utils';
|
|
6
|
-
import { Button } from '
|
|
5
|
+
import { Button, type ButtonVariants } from '../button';
|
|
7
6
|
import { inputGroupButtonVariants } from '.';
|
|
8
7
|
|
|
9
8
|
interface InputGroupButtonProps {
|
|
10
|
-
|
|
9
|
+
color?: ButtonVariants['color'];
|
|
11
10
|
size?: InputGroupButtonVariants['size'];
|
|
12
11
|
class?: HTMLAttributes['class'];
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
const props = withDefaults(defineProps<InputGroupButtonProps>(), {
|
|
16
15
|
size: 'xs',
|
|
17
|
-
|
|
16
|
+
color: 'brand',
|
|
18
17
|
});
|
|
19
18
|
</script>
|
|
20
19
|
|
|
21
20
|
<template>
|
|
22
|
-
<Button :data-size="props.size" :
|
|
21
|
+
<Button :data-size="props.size" :color="props.color" :class="cn(inputGroupButtonVariants({ size: props.size }), props.class)">
|
|
23
22
|
<slot />
|
|
24
23
|
</Button>
|
|
25
24
|
</template>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { HTMLAttributes } from 'vue';
|
|
3
3
|
import { cn } from '@/lib/utils';
|
|
4
|
-
import { Textarea } from '
|
|
4
|
+
import { Textarea } from '../textarea';
|
|
5
5
|
|
|
6
6
|
const props = defineProps<{
|
|
7
7
|
class?: HTMLAttributes['class'];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { SeparatorProps } from 'reka-ui';
|
|
3
3
|
import type { HTMLAttributes } from 'vue';
|
|
4
4
|
import { cn } from '@/lib/utils';
|
|
5
|
-
import { Separator } from '
|
|
5
|
+
import { Separator } from '../separator';
|
|
6
6
|
|
|
7
7
|
const props = defineProps<SeparatorProps & { class?: HTMLAttributes['class'] }>();
|
|
8
8
|
</script>
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { PaginationFirstProps } from 'reka-ui';
|
|
3
3
|
import type { HTMLAttributes } from 'vue';
|
|
4
|
-
import type { ButtonVariants } from '@/components/ui/button';
|
|
5
4
|
import { reactiveOmit } from '@vueuse/core';
|
|
6
5
|
import { ChevronLeftIcon } from 'lucide-vue-next';
|
|
7
6
|
import { PaginationFirst, useForwardProps } from 'reka-ui';
|
|
8
7
|
import { cn } from '@/lib/utils';
|
|
9
|
-
import { buttonVariants } from '
|
|
8
|
+
import { buttonVariants, type ButtonVariants } from '../button';
|
|
10
9
|
|
|
11
10
|
const props = withDefaults(
|
|
12
11
|
defineProps<
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { PaginationListItemProps } from 'reka-ui';
|
|
3
3
|
import type { HTMLAttributes } from 'vue';
|
|
4
|
-
import type { ButtonVariants } from '@/components/ui/button';
|
|
5
4
|
import { reactiveOmit } from '@vueuse/core';
|
|
6
5
|
import { PaginationListItem } from 'reka-ui';
|
|
7
6
|
import { cn } from '@/lib/utils';
|
|
8
|
-
import { buttonVariants } from '
|
|
7
|
+
import { buttonVariants, type ButtonVariants } from '../button';
|
|
9
8
|
|
|
10
9
|
const props = withDefaults(
|
|
11
10
|
defineProps<
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { PaginationLastProps } from 'reka-ui';
|
|
3
3
|
import type { HTMLAttributes } from 'vue';
|
|
4
|
-
import type { ButtonVariants } from '@/components/ui/button';
|
|
5
4
|
import { reactiveOmit } from '@vueuse/core';
|
|
6
5
|
import { ChevronRightIcon } from 'lucide-vue-next';
|
|
7
6
|
import { PaginationLast, useForwardProps } from 'reka-ui';
|
|
8
7
|
import { cn } from '@/lib/utils';
|
|
9
|
-
import { buttonVariants } from '
|
|
8
|
+
import { buttonVariants, type ButtonVariants } from '../button';
|
|
10
9
|
|
|
11
10
|
const props = withDefaults(
|
|
12
11
|
defineProps<
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { PaginationNextProps } from 'reka-ui';
|
|
3
3
|
import type { HTMLAttributes } from 'vue';
|
|
4
|
-
import type { ButtonVariants } from '@/components/ui/button';
|
|
5
4
|
import { reactiveOmit } from '@vueuse/core';
|
|
6
5
|
import { ChevronRightIcon } from 'lucide-vue-next';
|
|
7
6
|
import { PaginationNext, useForwardProps } from 'reka-ui';
|
|
8
7
|
import { cn } from '@/lib/utils';
|
|
9
|
-
import { buttonVariants } from '
|
|
8
|
+
import { buttonVariants, type ButtonVariants } from '../button';
|
|
10
9
|
|
|
11
10
|
const props = withDefaults(
|
|
12
11
|
defineProps<
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { PaginationPrevProps } from 'reka-ui';
|
|
3
3
|
import type { HTMLAttributes } from 'vue';
|
|
4
|
-
import type { ButtonVariants } from '@/components/ui/button';
|
|
5
4
|
import { reactiveOmit } from '@vueuse/core';
|
|
6
5
|
import { ChevronLeftIcon } from 'lucide-vue-next';
|
|
7
6
|
import { PaginationPrev, useForwardProps } from 'reka-ui';
|
|
8
7
|
import { cn } from '@/lib/utils';
|
|
9
|
-
import { buttonVariants } from '
|
|
8
|
+
import { buttonVariants, type ButtonVariants } from '../button';
|
|
10
9
|
|
|
11
10
|
const props = withDefaults(
|
|
12
11
|
defineProps<
|
|
@@ -4,7 +4,7 @@ import type { HTMLAttributes } from 'vue';
|
|
|
4
4
|
import { reactiveOmit } from '@vueuse/core';
|
|
5
5
|
import { RangeCalendarNext, useForwardProps } from 'reka-ui';
|
|
6
6
|
import { cn } from '@/lib/utils';
|
|
7
|
-
import { buttonVariants } from '
|
|
7
|
+
import { buttonVariants } from '../button';
|
|
8
8
|
|
|
9
9
|
const props = defineProps<RangeCalendarNextProps & { class?: HTMLAttributes['class'] }>();
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ import type { HTMLAttributes } from 'vue';
|
|
|
4
4
|
import { reactiveOmit } from '@vueuse/core';
|
|
5
5
|
import { RangeCalendarPrev, useForwardProps } from 'reka-ui';
|
|
6
6
|
import { cn } from '@/lib/utils';
|
|
7
|
-
import { buttonVariants } from '
|
|
7
|
+
import { buttonVariants } from '../button';
|
|
8
8
|
|
|
9
9
|
const props = defineProps<RangeCalendarPrevProps & { class?: HTMLAttributes['class'] }>();
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { SidebarProps } from '.';
|
|
3
3
|
import { cn } from '@/lib/utils';
|
|
4
|
-
import { Sheet, SheetContent } from '
|
|
5
|
-
import SheetDescription from '
|
|
6
|
-
import SheetHeader from '
|
|
7
|
-
import SheetTitle from '
|
|
4
|
+
import { Sheet, SheetContent } from '../sheet';
|
|
5
|
+
import SheetDescription from '../sheet/SheetDescription.vue';
|
|
6
|
+
import SheetHeader from '../sheet/SheetHeader.vue';
|
|
7
|
+
import SheetTitle from '../sheet/SheetTitle.vue';
|
|
8
8
|
import { SIDEBAR_WIDTH_MOBILE, useSidebar } from './utils';
|
|
9
9
|
|
|
10
10
|
defineOptions({
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { Component } from 'vue';
|
|
3
3
|
import type { SidebarMenuButtonProps } from './SidebarMenuButtonChild.vue';
|
|
4
4
|
import { reactiveOmit } from '@vueuse/core';
|
|
5
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from '
|
|
5
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from '../tooltip';
|
|
6
6
|
import SidebarMenuButtonChild from './SidebarMenuButtonChild.vue';
|
|
7
7
|
import { useSidebar } from './utils';
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { HTMLAttributes } from 'vue';
|
|
3
3
|
import { cn } from '@/lib/utils';
|
|
4
|
-
import { Separator } from '
|
|
4
|
+
import { Separator } from '../separator';
|
|
5
5
|
|
|
6
6
|
const props = defineProps<{
|
|
7
7
|
class?: HTMLAttributes['class'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { Editor } from '@tiptap/vue-3';
|
|
3
3
|
import type { HTMLAttributes } from 'vue';
|
|
4
|
-
import { Button } from '
|
|
4
|
+
import { Button } from '../button';
|
|
5
5
|
import { cn } from '@/lib/utils';
|
|
6
6
|
import { computed, ref } from 'vue';
|
|
7
7
|
import { useTiptapContext } from '.';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { Editor } from '@tiptap/vue-3';
|
|
3
3
|
import type { HTMLAttributes } from 'vue';
|
|
4
|
-
import { Label } from '
|
|
5
|
-
import { Textarea } from '
|
|
4
|
+
import { Label } from '../label';
|
|
5
|
+
import { Textarea } from '../textarea';
|
|
6
6
|
import { cn } from '@/lib/utils';
|
|
7
7
|
import { computed, reactive, watch } from 'vue';
|
|
8
8
|
import { useTiptapContext } from '.';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { Editor } from '@tiptap/vue-3';
|
|
3
3
|
import type { HTMLAttributes } from 'vue';
|
|
4
|
-
import { Badge } from '
|
|
4
|
+
import { Badge } from '../badge';
|
|
5
5
|
import { cn } from '@/lib/utils';
|
|
6
6
|
import { computed, ref, watch } from 'vue';
|
|
7
7
|
import { useTiptapContext } from '.';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { Editor } from '@tiptap/vue-3';
|
|
3
3
|
import type { HTMLAttributes } from 'vue';
|
|
4
|
-
import { Button } from '
|
|
5
|
-
import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '
|
|
6
|
-
import { Input } from '
|
|
7
|
-
import { Label } from '
|
|
8
|
-
import { Separator } from '
|
|
9
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '
|
|
4
|
+
import { Button } from '../button';
|
|
5
|
+
import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '../dialog';
|
|
6
|
+
import { Input } from '../input';
|
|
7
|
+
import { Label } from '../label';
|
|
8
|
+
import { Separator } from '../separator';
|
|
9
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../tooltip';
|
|
10
10
|
import { cn } from '@/lib/utils';
|
|
11
11
|
import { computed, ref } from 'vue';
|
|
12
12
|
import { useTiptapContext } from '.';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { Editor } from '@tiptap/vue-3';
|
|
3
3
|
import type { HTMLAttributes } from 'vue';
|
|
4
|
-
import { Button } from '
|
|
5
|
-
import { Separator } from '
|
|
6
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '
|
|
4
|
+
import { Button } from '../button';
|
|
5
|
+
import { Separator } from '../separator';
|
|
6
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../tooltip';
|
|
7
7
|
import { cn } from '@/lib/utils';
|
|
8
8
|
import { computed } from 'vue';
|
|
9
9
|
import { useTiptapContext } from '.';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { Instruction } from '@atlaskit/pragmatic-drag-and-drop-hitbox/tree-item';
|
|
3
3
|
import type { FlattenedItem } from 'reka-ui';
|
|
4
|
-
import { Button } from '
|
|
5
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '
|
|
4
|
+
import { Button } from '../button';
|
|
5
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../tooltip';
|
|
6
6
|
import { attachInstruction, extractInstruction } from '@atlaskit/pragmatic-drag-and-drop-hitbox/tree-item';
|
|
7
7
|
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
8
8
|
import { draggable, dropTargetForElements, monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import type { ToggleGroupRootEmits, ToggleGroupRootProps } from 'reka-ui';
|
|
4
4
|
import type { HTMLAttributes } from 'vue';
|
|
5
|
-
import type { toggleVariants } from '
|
|
5
|
+
import type { toggleVariants } from '../toggle';
|
|
6
6
|
import { reactiveOmit } from '@vueuse/core';
|
|
7
7
|
import { ToggleGroupRoot, useForwardPropsEmits } from 'reka-ui';
|
|
8
8
|
import { provide } from 'vue';
|
|
@@ -6,7 +6,7 @@ import { reactiveOmit } from '@vueuse/core';
|
|
|
6
6
|
import { ToggleGroupItem, useForwardProps } from 'reka-ui';
|
|
7
7
|
import { inject } from 'vue';
|
|
8
8
|
import { cn } from '@/lib/utils';
|
|
9
|
-
import { toggleVariants } from '
|
|
9
|
+
import { toggleVariants } from '../toggle';
|
|
10
10
|
|
|
11
11
|
type ToggleGroupVariants = VariantProps<typeof toggleVariants> & {
|
|
12
12
|
spacing?: number;
|