@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.
- package/dist/{chunk-VOCHIR3W.mjs → chunk-YB4TBWHV.mjs} +1423 -375
- package/dist/index.js +3 -1
- package/dist/index.mjs +43 -45
- package/dist/suite.d.mts +29 -3
- package/dist/suite.d.ts +29 -3
- package/dist/suite.js +1550 -325
- package/dist/suite.mjs +136 -44
- package/dist/ui.js +3 -1
- package/dist/ui.mjs +10 -12
- package/package.json +1 -1
- package/scripts/sync-posthog-icons.mjs +3 -4
- package/src/components/icons/icons.tsx +3 -1
- package/src/suite/components/app-switcher.test.tsx +96 -0
- package/src/suite/components/app-switcher.tsx +57 -39
- package/src/suite/components/suite-integration-picker.tsx +68 -0
- package/src/suite/components/suite-notification-bell.test.tsx +6 -5
- package/src/suite/components/suite-notification-bell.tsx +8 -6
- package/src/suite/index.ts +6 -0
- package/dist/chunk-E5ZBQYEX.mjs +0 -1073
|
@@ -12,7 +12,7 @@ afterEach(() => {
|
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
describe("SuiteNotificationBell", () => {
|
|
15
|
-
it("anchors the unread badge to the
|
|
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("
|
|
42
|
-
expect(badge.className).
|
|
43
|
-
expect(badge.parentElement?.className).toContain("
|
|
44
|
-
expect(badge.parentElement?.className).toContain("
|
|
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
|
-
<
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
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
|
>
|
package/src/suite/index.ts
CHANGED
|
@@ -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";
|