@hogoshi/ui 0.1.14 → 0.1.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hogoshi/ui",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -5,7 +5,6 @@ import { NavigationMenu } from "@base-ui/react/navigation-menu";
5
5
  import { ArrowDown01Icon } from "@hugeicons-pro/core-stroke-rounded";
6
6
  import { useEffect, useState, type ComponentProps, type ReactNode } from "react";
7
7
  import { cn } from "../lib/cn";
8
- import { ChromeVeil } from "./chrome-veil";
9
8
  import { Glide, glideActive } from "./glide";
10
9
  import type { AppIcon } from "./icon";
11
10
  import { Icon } from "./icon";
@@ -32,7 +31,6 @@ export function TopBar({ contained = false, children, className }: { contained?:
32
31
 
33
32
  return (
34
33
  <header className={cn("pointer-events-none inset-x-0 top-0 z-[var(--z-sticky)]", contained ? "absolute" : "fixed", className)}>
35
- <ChromeVeil side="top" />
36
34
  <div
37
35
  className={cn(
38
36
  "pointer-events-auto relative mx-auto flex h-12 translate-y-[var(--topbar-offset)] items-center border transition-[width,border-radius,background-color,border-color,box-shadow] duration-[calc(var(--motion-duration)*4)] ease-[var(--motion-ease)]",
@@ -4,7 +4,6 @@ import { Button as BaseButton } from "@base-ui/react/button";
4
4
  import { SidebarLeftIcon } from "@hugeicons-pro/core-stroke-rounded";
5
5
  import { createContext, useContext, useEffect, useMemo, useState, type ComponentProps, type ReactNode } from "react";
6
6
  import { cn } from "../lib/cn";
7
- import { ChromeVeil } from "./chrome-veil";
8
7
  import type { AppIcon, IconVariant } from "./icon";
9
8
  import { Glide, glideActive } from "./glide";
10
9
  import { Icon } from "./icon";
@@ -153,22 +152,19 @@ export function SidebarItem({
153
152
 
154
153
  export function BottomBar({ className, children, ...props }: ComponentProps<"nav">) {
155
154
  return (
156
- <>
157
- <ChromeVeil side="bottom" fixed className="md:hidden" />
158
- <nav
159
- data-bottom-bar
160
- className={cn(
161
- "bg-bg-elevated/70 border-border fixed right-[var(--edge-right)] bottom-[var(--bottombar-offset)] left-[var(--edge-left)] z-[var(--z-sticky)] rounded-[var(--radius-lg)] border p-1 shadow-[var(--shadow-md)] backdrop-blur-xl md:hidden",
162
- className,
163
- )}
164
- {...props}
165
- >
166
- <div className="relative flex items-stretch justify-around">
167
- <Glide selector={ACTIVE} className="bg-accent-muted/60 rounded-[var(--radius-md)]" />
168
- {children}
169
- </div>
170
- </nav>
171
- </>
155
+ <nav
156
+ data-bottom-bar
157
+ className={cn(
158
+ "bg-bg-elevated/70 border-border fixed right-[var(--edge-right)] bottom-[var(--bottombar-offset)] left-[var(--edge-left)] z-[var(--z-sticky)] rounded-[var(--radius-lg)] border p-1 shadow-[var(--shadow-md)] backdrop-blur-xl md:hidden",
159
+ className,
160
+ )}
161
+ {...props}
162
+ >
163
+ <div className="relative flex items-stretch justify-around">
164
+ <Glide selector={ACTIVE} className="bg-accent-muted/60 rounded-[var(--radius-md)]" />
165
+ {children}
166
+ </div>
167
+ </nav>
172
168
  );
173
169
  }
174
170
 
package/src/index.ts CHANGED
@@ -42,7 +42,6 @@ export { Progress } from "./components/progress";
42
42
  export { Logo } from "./components/logo";
43
43
  export { LOGO_PATH, LOGO_VIEWBOX, logoSvg } from "./components/logo-mark";
44
44
  export { Navbar, NavbarItem, NavbarMenu, NavbarMenuLink, NavbarMenus, TopBar } from "./components/navbar";
45
- export { ChromeVeil } from "./components/chrome-veil";
46
45
  export { AppShell, ShellAction, ShellBrand, ShellLogo, ShellMenu, ShellSearch, ShellTitle, shellGlass } from "./components/shell";
47
46
  export { Glide, glideActive } from "./components/glide";
48
47
  export type { GlideProps } from "./components/glide";
@@ -1,20 +0,0 @@
1
- import { cn } from "../lib/cn";
2
-
3
- const sides = {
4
- top: "top-0 h-[calc(var(--safe-top)+2rem)] bg-gradient-to-b [mask-image:linear-gradient(to_bottom,black_30%,transparent)]",
5
- bottom: "bottom-0 h-[var(--bottombar-space)] bg-gradient-to-t [mask-image:linear-gradient(to_top,black_30%,transparent)]",
6
- };
7
-
8
- export function ChromeVeil({ side, fixed = false, className }: { side: "top" | "bottom"; fixed?: boolean; className?: string }) {
9
- return (
10
- <div
11
- aria-hidden
12
- className={cn(
13
- "from-bg pointer-events-none inset-x-0 to-transparent backdrop-blur-xl",
14
- fixed ? "fixed z-[calc(var(--z-sticky)-1)]" : "absolute",
15
- sides[side],
16
- className,
17
- )}
18
- />
19
- );
20
- }