@pawkit/ui 0.2.0 → 0.2.1

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/ui/avatar.js CHANGED
@@ -20,7 +20,7 @@ function Avatar({ src, name, size = 32, className, style, ...props }) {
20
20
  function AvatarGroup({ className, children, max, size = 32, }) {
21
21
  const shown = max ? children.slice(0, max) : children;
22
22
  const rest = children.length - shown.length;
23
- return (_jsxs("div", { "data-slot": "avatar-group", className: cn("group/av flex items-center", className), children: [shown.map((child, i) => (_jsx("span", { className: "ml-(--ov) rounded-full shadow-[0_0_0_2px_var(--pk-surface)] transition-[margin] duration-300 ease-spring first:ml-0 group-hover/av:ml-[calc(var(--ov)+8px)] group-hover/av:first:ml-0", style: { "--ov": `${-size * 0.3}px`, zIndex: shown.length - i }, children: child }, child.key ?? i))), rest > 0 && (_jsxs("span", { className: "ml-(--ov) grid place-items-center rounded-full bg-fill font-medium text-fg-2 shadow-[0_0_0_2px_var(--pk-surface)] transition-[margin] duration-300 ease-spring group-hover/av:ml-[calc(var(--ov)+8px)]", style: {
23
+ return (_jsxs("div", { "data-slot": "avatar-group", className: cn("group/av flex items-center", className), children: [shown.map((child, i) => (_jsx("span", { className: "ml-(--ov) flex rounded-full shadow-[0_0_0_2px_var(--pk-surface)] transition-[margin] duration-300 ease-spring first:ml-0 group-hover/av:ml-[calc(var(--ov)+8px)] group-hover/av:first:ml-0", style: { "--ov": `${-size * 0.3}px`, zIndex: shown.length - i }, children: child }, child.key ?? i))), rest > 0 && (_jsxs("span", { className: "ml-(--ov) grid place-items-center rounded-full bg-fill font-medium text-fg-2 shadow-[0_0_0_2px_var(--pk-surface)] transition-[margin] duration-300 ease-spring group-hover/av:ml-[calc(var(--ov)+8px)]", style: {
24
24
  width: size,
25
25
  height: size,
26
26
  "--ov": `${-size * 0.3}px`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pawkit/ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Quiet, soft, tactile React components. Tailwind v4 + Radix.",
5
5
  "license": "MIT",
6
6
  "author": "Dogxi",