Skip to content

Commit 1b64bc6

Browse files
committed
optimize(projects): optimize code
1 parent e3aad0f commit 1b64bc6

File tree

333 files changed

+1226
-1266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

333 files changed

+1226
-1266
lines changed

packages/primitive/src/components/accordion/accordion-header.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import { Primitive } from '../primitive';
32
import { useForwardExpose } from '../../composables';
3+
import { Primitive } from '../primitive';
44
import { injectAccordionItemContext, injectAccordionRootContext } from './context';
55
import type { AccordionHeaderPropsWithPrimitive } from './types';
66

packages/primitive/src/components/accordion/accordion-item.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import { computed } from 'vue';
3-
import { CollapsibleRoot } from '../collapsible';
43
import { useArrowNavigation, useForwardExpose } from '../../composables';
4+
import { CollapsibleRoot } from '../collapsible';
55
import { injectAccordionRootContext, provideAccordionItemContext } from './context';
66
import type { AccordionItemPropsWithPrimitive } from './types';
77

packages/primitive/src/components/accordion/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import type { ComputedRef, Ref, VNodeRef } from 'vue';
2-
import type { PrimitiveProps } from '../primitive';
3-
import type { CollapsibleContentProps, CollapsibleRootProps } from '../collapsible';
42
import type {
53
AcceptableValue,
64
ClassValueProp,
@@ -10,6 +8,8 @@ import type {
108
SingleOrMultipleProps,
119
SingleOrMultipleType
1210
} from '../../types';
11+
import type { PrimitiveProps } from '../primitive';
12+
import type { CollapsibleContentProps, CollapsibleRootProps } from '../collapsible';
1313

1414
// AccordionRoot
1515
export type AccordionRootProps<

packages/primitive/src/components/alert-dialog/alert-dialog-action.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import { DialogClose } from '../dialog';
32
import { useForwardExpose } from '../../composables';
3+
import { DialogClose } from '../dialog';
44
import type { AlertDialogActionPropsWithPrimitive } from './types';
55
66
defineOptions({

packages/primitive/src/components/alert-dialog/alert-dialog-cancel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import { onMounted } from 'vue';
3-
import { DialogClose } from '../dialog';
43
import { useForwardExpose } from '../../composables';
4+
import { DialogClose } from '../dialog';
55
import { injectAlertDialogContentContext } from './context';
66
import type { AlertDialogCancelPropsWithPrimitive } from './types';
77

packages/primitive/src/components/alert-dialog/alert-dialog-content.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import { nextTick, ref } from 'vue';
3-
import { DialogContent } from '../dialog';
43
import { useForwardExpose, useForwardPropsEmits } from '../../composables';
4+
import { DialogContent } from '../dialog';
55
import { provideAlertDialogContentContext } from './context';
66
import type { AlertDialogContentEmits, AlertDialogContentPropsWithPrimitive } from './types';
77

packages/primitive/src/components/alert-dialog/alert-dialog-description.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import { DialogDescription } from '../dialog';
32
import { useForwardExpose } from '../../composables';
3+
import { DialogDescription } from '../dialog';
44
import type { AlertDialogDescriptionPropsWithPrimitive } from './types';
55
66
defineOptions({

packages/primitive/src/components/alert-dialog/alert-dialog-overlay.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import { DialogOverlay } from '../dialog';
32
import { useForwardExpose } from '../../composables';
3+
import { DialogOverlay } from '../dialog';
44
import type { AlertDialogOverlayPropsWithPrimitive } from './types';
55
66
defineOptions({

packages/primitive/src/components/alert-dialog/alert-dialog-root.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import { DialogRoot } from '../dialog';
32
import { useForwardExpose, useForwardPropsEmits } from '../../composables';
3+
import { DialogRoot } from '../dialog';
44
import type { AlertDialogRootEmits, AlertDialogRootProps } from './types';
55
66
defineOptions({

packages/primitive/src/components/alert-dialog/alert-dialog-title.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import { DialogTitle } from '../dialog';
32
import { useForwardExpose } from '../../composables';
3+
import { DialogTitle } from '../dialog';
44
import type { AlertDialogTitlePropsWithPrimitive } from './types';
55
66
defineOptions({

0 commit comments

Comments
 (0)