@xenide-io/the-old-ui-theme 0.6.14 → 0.7.1

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.
@@ -12,7 +12,7 @@ afterEach(() => {
12
12
  });
13
13
 
14
14
  describe("SuiteNotificationBell", () => {
15
- it("anchors the unread badge to the button corner, not the bell glyph", async () => {
15
+ it("anchors the unread badge close to the bell glyph", async () => {
16
16
  render(
17
17
  <SuiteNotificationBell
18
18
  fetchNotifications={async () => ({
@@ -38,9 +38,10 @@ describe("SuiteNotificationBell", () => {
38
38
  });
39
39
 
40
40
  expect(badge.textContent).toBe("9+");
41
- expect(badge.className).toContain("translate-x-1/2");
42
- expect(badge.className).not.toContain("-translate-y");
43
- expect(badge.parentElement?.className).toContain("h-11");
44
- expect(badge.parentElement?.className).toContain("w-11");
41
+ expect(badge.className).toContain("-right-2");
42
+ expect(badge.className).toContain("-top-2");
43
+ expect(badge.parentElement?.className).toContain("relative");
44
+ expect(badge.parentElement?.className).toContain("h-5");
45
+ expect(badge.parentElement?.className).toContain("w-5");
45
46
  });
46
47
  });
@@ -181,12 +181,14 @@ export function SuiteNotificationBell({
181
181
  onOpenChange={onOpenChange}
182
182
  trigger={
183
183
  <span className="relative inline-flex h-11 w-11 items-center justify-center overflow-visible rounded-full text-ph-mutedtext transition hover:bg-ph-muted hover:text-ph-ink">
184
- <Bell className="h-5 w-5" strokeWidth={1.75} aria-hidden />
185
- {unread > 0 ? (
186
- <span className="pointer-events-none absolute right-0 top-0 z-[1] flex h-4 min-w-4 translate-x-1/2 items-center justify-center rounded-full bg-ph-brand px-1 text-[9px] font-semibold leading-none text-white ring-2 ring-ph-surface">
187
- {unread > 9 ? "9+" : unread}
188
- </span>
189
- ) : null}
184
+ <span className="relative inline-flex h-5 w-5">
185
+ <Bell className="h-5 w-5" strokeWidth={1.75} aria-hidden />
186
+ {unread > 0 ? (
187
+ <span className="pointer-events-none absolute -right-2 -top-2 z-[1] flex h-4 min-w-4 items-center justify-center rounded-full bg-ph-brand px-1 text-[9px] font-semibold leading-none text-white ring-2 ring-ph-surface">
188
+ {unread > 9 ? "9+" : unread}
189
+ </span>
190
+ ) : null}
191
+ </span>
190
192
  </span>
191
193
  }
192
194
  >
@@ -8,6 +8,7 @@ export {
8
8
  appSwitcherMenuItemClass,
9
9
  appSwitcherTriggerClass,
10
10
  type SuiteAppEntry,
11
+ type SuiteAppSelectOptions,
11
12
  } from "./components/app-switcher";
12
13
  export {
13
14
  SuiteNotificationBell,
@@ -146,3 +147,8 @@ export {
146
147
  SuiteAppLayout,
147
148
  type SuiteAppLayoutProps,
148
149
  } from "./components/suite-app-layout";
150
+ export {
151
+ SuiteIntegrationPicker,
152
+ type SuiteIntegrationPickerItem,
153
+ type SuiteIntegrationPickerProps,
154
+ } from "./components/suite-integration-picker";