@edu-tosel/design 1.0.271 → 1.0.272

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.
@@ -2,14 +2,17 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cn } from "../../../util";
3
3
  export default function Float({ contents }) {
4
4
  const container = {
5
- displays: "fixed bottom-12 right-12 z-40",
5
+ displays: "fixed flex flex-col bottom-16 right-16 z-40 overflow-visible",
6
+ spacings: "gap-5",
6
7
  };
7
8
  const buttonBox = (background) => ({
8
- displays: "flex justify-center items-center",
9
- sizes: "w-24 h-24",
9
+ displays: "flex flex-col justify-center items-center",
10
+ spacings: "p-3",
11
+ sizes: "w-16 h-16",
10
12
  styles: "rounded-full bg-black overflow-hidden",
11
13
  backgrounds: background ?? "bg-white",
12
- shadows: "box-shadow",
14
+ shadows: "shadow-main",
15
+ animation: "hover:scale-110 duration-300 hover:shadow-icon-hover",
13
16
  });
14
17
  return (_jsx("div", { className: cn(container), children: contents.map(({ image, onClick, background }) => (_jsx("button", { onClick: onClick, className: cn(buttonBox(background)), children: _jsx("img", { src: image, alt: "image", className: "object-contain" }) }, image))) }));
15
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.271",
3
+ "version": "1.0.272",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.271
1
+ 1.0.272