8seneca-app-launcher 0.1.0 → 0.1.3
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.d.ts +1 -1
- package/dist/index.js +4 -11
- package/dist/styles.css +10 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
import { Briefcase, FolderKanban
|
|
7
|
+
import { Briefcase, FolderKanban } from "lucide-react";
|
|
8
8
|
var APPS = [
|
|
9
9
|
{
|
|
10
10
|
id: "hrm",
|
|
@@ -19,13 +19,6 @@ var APPS = [
|
|
|
19
19
|
url: "https://projects.8seneca.com",
|
|
20
20
|
icon: FolderKanban,
|
|
21
21
|
color: "oklch(0.65 0.15 30)"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
id: "portal",
|
|
25
|
-
name: "8Seneca Hub",
|
|
26
|
-
url: "https://portal.8seneca.com",
|
|
27
|
-
icon: LayoutGrid,
|
|
28
|
-
color: "oklch(0.65 0.15 150)"
|
|
29
22
|
}
|
|
30
23
|
];
|
|
31
24
|
function resolveApps(urls) {
|
|
@@ -149,7 +142,7 @@ function AppLauncher({ urls, label = "Your apps", align = "end" } = {}) {
|
|
|
149
142
|
"aria-controls": panelId,
|
|
150
143
|
"aria-label": "Open app launcher",
|
|
151
144
|
className: `${TRIGGER_BASE} h-9 w-9 hover:bg-launcher-hover`,
|
|
152
|
-
children: /* @__PURE__ */ jsx2(
|
|
145
|
+
children: /* @__PURE__ */ jsx2(Grip, { className: "h-5 w-5", "aria-hidden": "true" })
|
|
153
146
|
}
|
|
154
147
|
),
|
|
155
148
|
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 +166,7 @@ function AppLauncherFab({ urls, label = "Your apps" } = {}) {
|
|
|
173
166
|
"aria-label": "Open app launcher",
|
|
174
167
|
title: "Open apps",
|
|
175
168
|
className: `${TRIGGER_BASE} size-12 bg-launcher-surface border border-launcher-border shadow-lg transition-transform hover:scale-105`,
|
|
176
|
-
children: /* @__PURE__ */ jsx2(
|
|
169
|
+
children: /* @__PURE__ */ jsx2(Grip, { className: "size-5", "aria-hidden": "true" })
|
|
177
170
|
}
|
|
178
171
|
)
|
|
179
172
|
] });
|
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");
|