@hogoshi/ui 0.1.6 → 0.1.8

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.6",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,16 @@
1
+ import type { IconSvgElement } from "@hugeicons/react";
2
+
3
+ const stroke = {
4
+ fill: "none",
5
+ stroke: "currentColor",
6
+ strokeWidth: 2.4,
7
+ strokeLinecap: "round",
8
+ strokeLinejoin: "round",
9
+ } as const;
10
+
11
+ export const CollapseScreenIcon: IconSvgElement = [
12
+ ["path", { d: "M9 5 V9 H5", ...stroke, key: "0" }],
13
+ ["path", { d: "M15 5 V9 H19", ...stroke, key: "1" }],
14
+ ["path", { d: "M9 19 V15 H5", ...stroke, key: "2" }],
15
+ ["path", { d: "M15 19 V15 H19", ...stroke, key: "3" }],
16
+ ];
@@ -321,7 +321,7 @@ export function ImageGallery({
321
321
  const [index, setIndex] = useState(0);
322
322
  return (
323
323
  <>
324
- <div className={cn("grid grid-cols-[repeat(auto-fill,minmax(8rem,1fr))] gap-2", className)}>
324
+ <div className={cn("grid min-w-0 grid-cols-[repeat(auto-fill,minmax(min(100%,8rem),1fr))] gap-2", className)}>
325
325
  {images.map((image, at) => (
326
326
  <button
327
327
  key={`${image.src}-${at}`}
@@ -3,7 +3,6 @@
3
3
  import {
4
4
  Alert02Icon,
5
5
  FullScreenIcon,
6
- MinimizeScreenIcon,
7
6
  PauseIcon,
8
7
  PictureInPictureOnIcon,
9
8
  PlayIcon,
@@ -23,6 +22,7 @@ import {
23
22
  type RefObject,
24
23
  } from "react";
25
24
  import { cn } from "../lib/cn";
25
+ import { CollapseScreenIcon } from "./collapse-screen-icon";
26
26
  import { Icon, type AppIcon } from "./icon";
27
27
  import { Popover, PopoverContent, PopoverTrigger } from "./popover";
28
28
  import { Slider } from "./slider";
@@ -549,7 +549,7 @@ export function VideoPlayer({
549
549
  <Control label="Picture in picture" icon={PictureInPictureOnIcon} onClick={togglePip} />
550
550
  <Control
551
551
  label={fullscreen ? "Exit fullscreen" : "Fullscreen"}
552
- icon={fullscreen ? MinimizeScreenIcon : FullScreenIcon}
552
+ icon={fullscreen ? CollapseScreenIcon : FullScreenIcon}
553
553
  onClick={toggleFullscreen}
554
554
  />
555
555
  </div>