From 9cc6eb75bcfcd2d2f9bf6c7ce628b33ed8f48573 Mon Sep 17 00:00:00 2001 From: Hunter Johnston <64506580+huntabyte@users.noreply.github.com> Date: Tue, 24 Sep 2024 16:38:11 -0400 Subject: [PATCH] next: rename menu label (#674) --- packages/bits-ui/src/lib/bits/context-menu/index.ts | 2 +- packages/bits-ui/src/lib/bits/dropdown-menu/index.ts | 2 +- .../{menu-group-label.svelte => menu-group-heading.svelte} | 0 packages/bits-ui/src/lib/bits/menu/index.ts | 2 +- packages/bits-ui/src/lib/bits/menubar/index.ts | 4 ++-- packages/bits-ui/src/tests/menubar/menubar-menu-test.svelte | 2 +- packages/bits-ui/src/tests/menubar/menubar.spec.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) rename packages/bits-ui/src/lib/bits/menu/components/{menu-group-label.svelte => menu-group-heading.svelte} (100%) diff --git a/packages/bits-ui/src/lib/bits/context-menu/index.ts b/packages/bits-ui/src/lib/bits/context-menu/index.ts index 4f4115f23..7cb79e3fa 100644 --- a/packages/bits-ui/src/lib/bits/context-menu/index.ts +++ b/packages/bits-ui/src/lib/bits/context-menu/index.ts @@ -2,7 +2,7 @@ export { default as Root } from "$lib/bits/menu/components/menu.svelte"; export { default as Sub } from "$lib/bits/menu/components/menu-sub.svelte"; export { default as Item } from "$lib/bits/menu/components/menu-item.svelte"; export { default as Group } from "$lib/bits/menu/components/menu-group.svelte"; -export { default as GroupHeading } from "$lib/bits/menu/components/menu-group-label.svelte"; +export { default as GroupHeading } from "$lib/bits/menu/components/menu-group-heading.svelte"; export { default as Arrow } from "$lib/bits/menu/components/menu-arrow.svelte"; export { default as Content } from "./components/context-menu-content.svelte"; export { default as ContentStatic } from "./components/context-menu-content-static.svelte"; diff --git a/packages/bits-ui/src/lib/bits/dropdown-menu/index.ts b/packages/bits-ui/src/lib/bits/dropdown-menu/index.ts index d9641ac00..8c76ec14c 100644 --- a/packages/bits-ui/src/lib/bits/dropdown-menu/index.ts +++ b/packages/bits-ui/src/lib/bits/dropdown-menu/index.ts @@ -2,7 +2,7 @@ export { default as Root } from "$lib/bits/menu/components/menu.svelte"; export { default as Sub } from "$lib/bits/menu/components/menu-sub.svelte"; export { default as Item } from "$lib/bits/menu/components/menu-item.svelte"; export { default as Group } from "$lib/bits/menu/components/menu-group.svelte"; -export { default as GroupHeading } from "$lib/bits/menu/components/menu-group-label.svelte"; +export { default as GroupHeading } from "$lib/bits/menu/components/menu-group-heading.svelte"; export { default as Arrow } from "$lib/bits/menu/components/menu-arrow.svelte"; export { default as Content } from "./components/dropdown-menu-content.svelte"; export { default as ContentStatic } from "./components/dropdown-menu-content-static.svelte"; diff --git a/packages/bits-ui/src/lib/bits/menu/components/menu-group-label.svelte b/packages/bits-ui/src/lib/bits/menu/components/menu-group-heading.svelte similarity index 100% rename from packages/bits-ui/src/lib/bits/menu/components/menu-group-label.svelte rename to packages/bits-ui/src/lib/bits/menu/components/menu-group-heading.svelte diff --git a/packages/bits-ui/src/lib/bits/menu/index.ts b/packages/bits-ui/src/lib/bits/menu/index.ts index 4256d5921..c6367c817 100644 --- a/packages/bits-ui/src/lib/bits/menu/index.ts +++ b/packages/bits-ui/src/lib/bits/menu/index.ts @@ -5,7 +5,7 @@ export { default as Content } from "./components/menu-content.svelte"; export { default as ContentStatic } from "./components/menu-content-static.svelte"; export { default as Group } from "./components/menu-group.svelte"; export { default as Item } from "./components/menu-item.svelte"; -export { default as GroupHeading } from "./components/menu-group-label.svelte"; +export { default as GroupHeading } from "./components/menu-group-heading.svelte"; export { default as Portal } from "$lib/bits/utilities/portal/portal.svelte"; export { default as RadioGroup } from "./components/menu-radio-group.svelte"; export { default as RadioItem } from "./components/menu-radio-item.svelte"; diff --git a/packages/bits-ui/src/lib/bits/menubar/index.ts b/packages/bits-ui/src/lib/bits/menubar/index.ts index b142e8def..296e3eb89 100644 --- a/packages/bits-ui/src/lib/bits/menubar/index.ts +++ b/packages/bits-ui/src/lib/bits/menubar/index.ts @@ -6,7 +6,7 @@ export { default as Trigger } from "./components/menubar-trigger.svelte"; export { default as Sub } from "$lib/bits/menu/components/menu-sub.svelte"; export { default as Item } from "$lib/bits/menu/components/menu-item.svelte"; export { default as Group } from "$lib/bits/menu/components/menu-group.svelte"; -export { default as Label } from "$lib/bits/menu/components/menu-group-label.svelte"; +export { default as GroupHeading } from "$lib/bits/menu/components/menu-group-heading.svelte"; export { default as Arrow } from "$lib/bits/menu/components/menu-arrow.svelte"; export { default as RadioItem } from "$lib/bits/menu/components/menu-radio-item.svelte"; export { default as Separator } from "$lib/bits/menu/components/menu-separator.svelte"; @@ -28,7 +28,7 @@ export type { MenuSubPropsWithoutHTML as SubProps, MenuItemProps as ItemProps, MenuGroupProps as GroupProps, - MenuGroupHeadingProps as LabelProps, + MenuGroupHeadingProps as GroupHeadingProps, MenuArrowProps as ArrowProps, MenuRadioItemProps as RadioItemProps, MenuSeparatorProps as SeparatorProps, diff --git a/packages/bits-ui/src/tests/menubar/menubar-menu-test.svelte b/packages/bits-ui/src/tests/menubar/menubar-menu-test.svelte index 3ade935d4..8456b401e 100644 --- a/packages/bits-ui/src/tests/menubar/menubar-menu-test.svelte +++ b/packages/bits-ui/src/tests/menubar/menubar-menu-test.svelte @@ -18,7 +18,7 @@ - Stuff + Stuff item diff --git a/packages/bits-ui/src/tests/menubar/menubar.spec.ts b/packages/bits-ui/src/tests/menubar/menubar.spec.ts index 5c6911a75..7208c2f78 100644 --- a/packages/bits-ui/src/tests/menubar/menubar.spec.ts +++ b/packages/bits-ui/src/tests/menubar/menubar.spec.ts @@ -42,7 +42,7 @@ describe("menubar", () => { "content", "trigger", "group", - "label", + "group-heading", "separator", "sub-trigger", "item",