8seneca-app-launcher 0.1.0 → 0.1.2
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/index.js +4 -4
- package/dist/styles.css +10 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
// src/launcher.tsx
|
|
4
|
-
import {
|
|
4
|
+
import { Grip } from "lucide-react";
|
|
5
5
|
|
|
6
6
|
// src/apps.ts
|
|
7
7
|
import { Briefcase, FolderKanban, LayoutGrid } from "lucide-react";
|
|
@@ -22,7 +22,7 @@ var APPS = [
|
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
id: "portal",
|
|
25
|
-
name: "
|
|
25
|
+
name: "8Hub",
|
|
26
26
|
url: "https://portal.8seneca.com",
|
|
27
27
|
icon: LayoutGrid,
|
|
28
28
|
color: "oklch(0.65 0.15 150)"
|
|
@@ -149,7 +149,7 @@ function AppLauncher({ urls, label = "Your apps", align = "end" } = {}) {
|
|
|
149
149
|
"aria-controls": panelId,
|
|
150
150
|
"aria-label": "Open app launcher",
|
|
151
151
|
className: `${TRIGGER_BASE} h-9 w-9 hover:bg-launcher-hover`,
|
|
152
|
-
children: /* @__PURE__ */ jsx2(
|
|
152
|
+
children: /* @__PURE__ */ jsx2(Grip, { className: "h-5 w-5", "aria-hidden": "true" })
|
|
153
153
|
}
|
|
154
154
|
),
|
|
155
155
|
open && /* @__PURE__ */ jsx2("div", { className: `absolute top-11 z-50 ${align === "end" ? "right-0" : "left-0"}`, children: /* @__PURE__ */ jsx2(LauncherPanel, { tiles, hostname, label, id: panelId }) })
|
|
@@ -173,7 +173,7 @@ function AppLauncherFab({ urls, label = "Your apps" } = {}) {
|
|
|
173
173
|
"aria-label": "Open app launcher",
|
|
174
174
|
title: "Open apps",
|
|
175
175
|
className: `${TRIGGER_BASE} size-12 bg-launcher-surface border border-launcher-border shadow-lg transition-transform hover:scale-105`,
|
|
176
|
-
children: /* @__PURE__ */ jsx2(
|
|
176
|
+
children: /* @__PURE__ */ jsx2(Grip, { className: "size-5", "aria-hidden": "true" })
|
|
177
177
|
}
|
|
178
178
|
)
|
|
179
179
|
] });
|
package/dist/styles.css
CHANGED
|
@@ -12,3 +12,13 @@
|
|
|
12
12
|
--color-launcher-border: var(--launcher-border, var(--border, oklch(0.92 0 0)));
|
|
13
13
|
--color-launcher-ring: var(--launcher-ring, var(--ring, currentColor));
|
|
14
14
|
}
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* The utilities this package's markup uses, declared explicitly.
|
|
18
|
+
* Scanning the package with `@source "…/node_modules/8seneca-app-launcher/dist"`
|
|
19
|
+
* only works under a hoisted node_modules: with pnpm's isolated linker the path
|
|
20
|
+
* is a symlink into .pnpm/, which Tailwind does not follow, and the layout
|
|
21
|
+
* utilities silently go missing. Listing them here makes the package
|
|
22
|
+
* self-contained — consumers only import this file.
|
|
23
|
+
*/
|
|
24
|
+
@source inline("absolute bg-launcher-hover bg-launcher-surface border border-launcher-border bottom-16 bottom-6 cursor-default fixed flex flex-col focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-launcher-ring font-medium gap-1 gap-1.5 grid grid-cols-3 h-10 h-5 h-9 hover:bg-launcher-hover hover:scale-105 inline-flex items-center justify-center left-0 mb-3 no-underline p-3 p-4 px-2 relative right-0 right-6 rounded-2xl rounded-full rounded-xl shadow-lg size-12 size-5 text-[11px] text-launcher-fg text-launcher-muted text-white text-xs top-11 tracking-wide transition-colors transition-transform uppercase w-10 w-5 w-72 w-9 z-50");
|