@togo-framework/ui 0.1.9 → 0.1.11

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 CHANGED
@@ -29,7 +29,6 @@ import {
29
29
  BreadcrumbList,
30
30
  BreadcrumbPage,
31
31
  BreadcrumbSeparator,
32
- Button,
33
32
  Calendar,
34
33
  Card,
35
34
  CardContent,
@@ -98,21 +97,6 @@ import {
98
97
  DrawerPortal,
99
98
  DrawerTitle,
100
99
  DrawerTrigger,
101
- DropdownMenu,
102
- DropdownMenuCheckboxItem,
103
- DropdownMenuContent,
104
- DropdownMenuGroup,
105
- DropdownMenuItem,
106
- DropdownMenuLabel,
107
- DropdownMenuPortal,
108
- DropdownMenuRadioGroup,
109
- DropdownMenuRadioItem,
110
- DropdownMenuSeparator,
111
- DropdownMenuShortcut,
112
- DropdownMenuSub,
113
- DropdownMenuSubContent,
114
- DropdownMenuSubTrigger,
115
- DropdownMenuTrigger,
116
100
  Form,
117
101
  FormControl,
118
102
  FormDescription,
@@ -242,20 +226,18 @@ import {
242
226
  TooltipProvider,
243
227
  TooltipTrigger,
244
228
  badgeVariants,
245
- buttonVariants,
246
- cn,
247
- formatRelativeTime,
248
229
  navigationMenuTriggerStyle,
249
230
  toast,
250
231
  toggleVariants,
251
232
  useFormField,
252
233
  useOptionalSidebar,
253
234
  useSidebar
254
- } from "./chunk-XXP2ZYPY.js";
235
+ } from "./chunk-YYV7ECKZ.js";
255
236
  import {
256
237
  BrandingProvider,
257
238
  SENTRA_BRAND,
258
239
  STORAGE_KEY,
240
+ ThemePicker,
259
241
  ThemeProvider,
260
242
  applyBrand,
261
243
  hexToHSL,
@@ -268,7 +250,28 @@ import {
268
250
  toHSLSafe,
269
251
  useBrand,
270
252
  useTheme
271
- } from "./chunk-KD4MPGYQ.js";
253
+ } from "./chunk-7B6OKTGY.js";
254
+ import {
255
+ Button,
256
+ DropdownMenu,
257
+ DropdownMenuCheckboxItem,
258
+ DropdownMenuContent,
259
+ DropdownMenuGroup,
260
+ DropdownMenuItem,
261
+ DropdownMenuLabel,
262
+ DropdownMenuPortal,
263
+ DropdownMenuRadioGroup,
264
+ DropdownMenuRadioItem,
265
+ DropdownMenuSeparator,
266
+ DropdownMenuShortcut,
267
+ DropdownMenuSub,
268
+ DropdownMenuSubContent,
269
+ DropdownMenuSubTrigger,
270
+ DropdownMenuTrigger,
271
+ buttonVariants,
272
+ cn,
273
+ formatRelativeTime
274
+ } from "./chunk-NRF3KNQX.js";
272
275
 
273
276
  // src/components/status/EmptyState.tsx
274
277
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -16039,66 +16042,68 @@ function MarketplaceCard({
16039
16042
  const tint = color || categoryColor || "#2D8CE6";
16040
16043
  const shown = (providers || []).slice(0, 5);
16041
16044
  const extra = (providers || []).length - shown.length;
16042
- return /* @__PURE__ */ jsx99("a", { href, className: cn("group block h-full", className), children: /* @__PURE__ */ jsxs87("div", { className: "rounded-2xl border border-border bg-card/40 overflow-hidden h-full flex flex-col transition-all duration-200 hover:border-foreground/25 hover:-translate-y-0.5", children: [
16043
- /* @__PURE__ */ jsxs87(
16044
- "div",
16045
- {
16046
- className: "relative h-28 flex items-center justify-center overflow-hidden",
16047
- style: { background: `radial-gradient(120% 140% at 0% 0%, ${tint}55, transparent 62%), linear-gradient(135deg, ${tint}26, #0b1016)` },
16048
- children: [
16049
- /* @__PURE__ */ jsx99("div", { className: "absolute inset-0 opacity-[0.14]", style: { backgroundImage: "radial-gradient(circle at 1px 1px, #fff 1px, transparent 0)", backgroundSize: "16px 16px" } }),
16050
- (Icon || brandIcon) && /* @__PURE__ */ jsx99("div", { className: "relative grid place-items-center w-14 h-14 rounded-2xl bg-black/20 ring-1 ring-white/20 transition-transform duration-300 group-hover:scale-105", children: /* @__PURE__ */ jsx99(Glyph2, { icon: Icon, brand: brandIcon }) }),
16051
- typeof providers !== "undefined" && providers.length > 0 && /* @__PURE__ */ jsxs87("span", { className: "absolute top-3 start-3 text-[10px] font-mono px-2 py-0.5 rounded-full bg-black/30 text-white/80 ring-1 ring-white/20", children: [
16045
+ return /* @__PURE__ */ jsx99("a", { href, className: cn("group block h-full", className), children: /* @__PURE__ */ jsxs87("div", { className: "rounded-2xl border border-border bg-card p-5 h-full flex flex-col transition-all duration-200 hover:border-foreground/30 hover:shadow-md", children: [
16046
+ /* @__PURE__ */ jsxs87("div", { className: "flex items-start gap-3.5", children: [
16047
+ (Icon || brandIcon) && /* @__PURE__ */ jsx99(
16048
+ "div",
16049
+ {
16050
+ className: "grid place-items-center w-11 h-11 rounded-xl shrink-0 shadow-sm transition-transform duration-200 group-hover:scale-[1.04]",
16051
+ style: { background: `linear-gradient(140deg, ${tint}, ${tint}cc)` },
16052
+ children: /* @__PURE__ */ jsx99(Glyph2, { icon: Icon, brand: brandIcon, size: 21 })
16053
+ }
16054
+ ),
16055
+ /* @__PURE__ */ jsxs87("div", { className: "min-w-0 flex-1", children: [
16056
+ /* @__PURE__ */ jsxs87("div", { className: "flex items-center gap-2", children: [
16057
+ /* @__PURE__ */ jsx99("h3", { style: DISPLAY3, className: "text-[15px] font-bold truncate", children: name }),
16058
+ enabled && /* @__PURE__ */ jsx99("span", { className: "shrink-0 text-[10px] font-mono px-1.5 py-0.5 rounded-full bg-emerald-500/10 text-emerald-400", children: "enabled" })
16059
+ ] }),
16060
+ /* @__PURE__ */ jsxs87("div", { className: "flex items-center gap-1.5 mt-1 text-[10px] font-mono uppercase tracking-wider text-muted-foreground", children: [
16061
+ category && /* @__PURE__ */ jsx99("span", { children: category }),
16062
+ typeof providers !== "undefined" && providers.length > 0 && /* @__PURE__ */ jsxs87("span", { className: "text-muted-foreground/60", children: [
16063
+ "\xB7 ",
16052
16064
  providers.length,
16053
16065
  " providers"
16054
- ] }),
16055
- enabled && /* @__PURE__ */ jsx99("span", { className: "absolute top-3 end-3 text-[10px] font-mono px-2 py-0.5 rounded-full bg-black/30 text-emerald-300 ring-1 ring-emerald-400/30", children: "enabled" })
16056
- ]
16057
- }
16058
- ),
16059
- /* @__PURE__ */ jsxs87("div", { className: "p-5 flex flex-col flex-1", children: [
16060
- /* @__PURE__ */ jsxs87("div", { className: "flex items-center gap-2", children: [
16061
- /* @__PURE__ */ jsx99("h3", { style: DISPLAY3, className: "text-[15px] font-bold truncate", children: name }),
16062
- category && /* @__PURE__ */ jsx99("span", { className: "ms-auto shrink-0 text-[10px] font-mono uppercase tracking-wider px-2 py-0.5 rounded-full border border-border text-muted-foreground", children: category })
16063
- ] }),
16064
- /* @__PURE__ */ jsx99("p", { className: "text-[13px] text-muted-foreground mt-1.5 line-clamp-2 flex-1", children: description || "A togo-framework plugin." }),
16065
- shown.length > 0 && /* @__PURE__ */ jsxs87("div", { className: "mt-3 flex flex-wrap gap-1.5", children: [
16066
- shown.map((p) => /* @__PURE__ */ jsxs87(
16067
- "span",
16068
- {
16069
- onClick: (e) => {
16070
- e.preventDefault();
16071
- e.stopPropagation();
16072
- window.location.href = p.href;
16073
- },
16074
- className: "inline-flex items-center gap-1.5 rounded-full border border-border bg-background/40 ps-1.5 pe-2.5 py-1 text-[11px] text-muted-foreground hover:text-foreground hover:border-foreground/25 transition-colors cursor-pointer",
16075
- children: [
16076
- /* @__PURE__ */ jsx99("span", { className: "grid place-items-center w-4 h-4 rounded-full", style: { background: `${p.color || tint}26` }, children: /* @__PURE__ */ jsx99(Glyph2, { icon: p.icon, brand: p.brand, size: 10 }) }),
16077
- p.name
16078
- ]
16079
- },
16080
- p.href
16081
- )),
16082
- extra > 0 && /* @__PURE__ */ jsxs87("span", { className: "inline-flex items-center rounded-full border border-border px-2.5 py-1 text-[11px] text-muted-foreground", children: [
16083
- "+",
16084
- extra
16085
- ] })
16086
- ] }),
16087
- /* @__PURE__ */ jsxs87("div", { className: "flex items-center gap-3 mt-3 text-[11px] text-muted-foreground font-mono", children: [
16088
- author && /* @__PURE__ */ jsx99("span", { className: "truncate", children: author }),
16089
- /* @__PURE__ */ jsxs87("span", { className: "ms-auto flex items-center gap-3 shrink-0", children: [
16090
- typeof stars === "number" && stars > 0 && /* @__PURE__ */ jsxs87("span", { className: "flex items-center gap-1", children: [
16091
- /* @__PURE__ */ jsx99(Star2, { size: 11 }),
16092
- " ",
16093
- stars
16094
- ] }),
16095
- typeof downloads === "number" && downloads > 0 && /* @__PURE__ */ jsxs87("span", { className: "flex items-center gap-1", children: [
16096
- /* @__PURE__ */ jsx99(Download2, { size: 11 }),
16097
- " ",
16098
- downloads
16099
16066
  ] })
16100
16067
  ] })
16101
16068
  ] })
16069
+ ] }),
16070
+ /* @__PURE__ */ jsx99("p", { className: "text-[13px] text-muted-foreground mt-3.5 line-clamp-2 flex-1", children: description || "A togo-framework plugin." }),
16071
+ shown.length > 0 && /* @__PURE__ */ jsxs87("div", { className: "mt-3.5 flex flex-wrap gap-1.5", children: [
16072
+ shown.map((p) => /* @__PURE__ */ jsxs87(
16073
+ "span",
16074
+ {
16075
+ onClick: (e) => {
16076
+ e.preventDefault();
16077
+ e.stopPropagation();
16078
+ window.location.href = p.href;
16079
+ },
16080
+ className: "inline-flex items-center gap-1.5 rounded-full border border-border bg-muted/40 ps-1.5 pe-2.5 py-1 text-[11px] text-muted-foreground hover:text-foreground hover:border-foreground/30 transition-colors cursor-pointer",
16081
+ children: [
16082
+ /* @__PURE__ */ jsx99("span", { className: "grid place-items-center w-4 h-4 rounded-full shrink-0", style: { background: p.color || tint }, children: /* @__PURE__ */ jsx99(Glyph2, { icon: p.icon, brand: p.brand, size: 10 }) }),
16083
+ p.name
16084
+ ]
16085
+ },
16086
+ p.href
16087
+ )),
16088
+ extra > 0 && /* @__PURE__ */ jsxs87("span", { className: "inline-flex items-center rounded-full border border-border px-2.5 py-1 text-[11px] text-muted-foreground", children: [
16089
+ "+",
16090
+ extra
16091
+ ] })
16092
+ ] }),
16093
+ (author || typeof stars === "number" && stars > 0 || typeof downloads === "number" && downloads > 0) && /* @__PURE__ */ jsxs87("div", { className: "flex items-center gap-3 mt-3.5 pt-3.5 border-t border-border/60 text-[11px] text-muted-foreground font-mono", children: [
16094
+ author && /* @__PURE__ */ jsx99("span", { className: "truncate", children: author }),
16095
+ /* @__PURE__ */ jsxs87("span", { className: "ms-auto flex items-center gap-3 shrink-0", children: [
16096
+ typeof stars === "number" && stars > 0 && /* @__PURE__ */ jsxs87("span", { className: "flex items-center gap-1", children: [
16097
+ /* @__PURE__ */ jsx99(Star2, { size: 11 }),
16098
+ " ",
16099
+ stars
16100
+ ] }),
16101
+ typeof downloads === "number" && downloads > 0 && /* @__PURE__ */ jsxs87("span", { className: "flex items-center gap-1", children: [
16102
+ /* @__PURE__ */ jsx99(Download2, { size: 11 }),
16103
+ " ",
16104
+ downloads
16105
+ ] })
16106
+ ] })
16102
16107
  ] })
16103
16108
  ] }) });
16104
16109
  }
@@ -17033,6 +17038,7 @@ export {
17033
17038
  TabsTrigger,
17034
17039
  TestRunPanel,
17035
17040
  Textarea,
17041
+ ThemePicker,
17036
17042
  ThemeProvider,
17037
17043
  Toaster,
17038
17044
  Toggle,