@codefast/ui 0.10.0 → 0.10.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @codefast/ui
2
2
 
3
+ ## 0.10.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies:
8
+ - @codefast/tailwind-variants@0.9.1
9
+
10
+ ## 0.10.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [#1027](https://github.com/codefastlabs/codefast/pull/1027) `Avatar` draws its edge in a translucent `foreground/10` instead of blending `--border` over the image with
15
+ `mix-blend-mode`. In Chromium, a page with a few hundred blended avatars inside a sideways scroller left stretches of
16
+ the scroller unpainted, and they stayed blank after scrolling stopped. Dark mode looks the same, since `lighten` with a
17
+ translucent white composites like a plain overlay. In light mode the edge over white stays within a shade of `--border`,
18
+ and over a darker photo it now darkens the rim slightly where `darken` left it unchanged.
19
+
20
+ - [#1026](https://github.com/codefastlabs/codefast/pull/1026) `SelectContent` insets its list by 4px whether or not the items sit in a `SelectGroup`. The inset lived on the group, so
21
+ items placed straight in `SelectContent` touched the popup's edge and an item-aligned popup opened 4px right of its
22
+ trigger. The viewport now carries the inset and keeps it when the keyboard scrolls an item into view. A group adds 8px
23
+ only after another group, and a `SelectSeparator` between groups keeps 4px on either side, as in the other menus.
24
+
3
25
  ## 0.10.0
4
26
 
5
27
  ### Minor Changes
@@ -5,7 +5,7 @@ import { cn } from "#lib/utils";
5
5
  * @since 0.3.16-canary.0
6
6
  */
7
7
  function Avatar({ className, size = "default", ...props }) {
8
- return (_jsx(AvatarPrimitive.Root, { className: cn("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten", className), "data-size": size, "data-slot": "avatar", ...props }));
8
+ return (_jsx(AvatarPrimitive.Root, { className: cn("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-foreground/10 data-[size=lg]:size-10 data-[size=sm]:size-6", className), "data-size": size, "data-slot": "avatar", ...props }));
9
9
  }
10
10
  /**
11
11
  * @since 0.3.16-canary.0
@@ -12,7 +12,7 @@ function Select({ ...props }) {
12
12
  * @since 0.3.16-canary.0
13
13
  */
14
14
  function SelectGroup({ className, ...props }) {
15
- return _jsx(SelectPrimitive.Group, { className: cn("scroll-my-1 p-1", className), "data-slot": "select-group", ...props });
15
+ return (_jsx(SelectPrimitive.Group, { className: cn("[[data-slot=select-group]+&]:mt-2", className), "data-slot": "select-group", ...props }));
16
16
  }
17
17
  /**
18
18
  * @since 0.3.16-canary.0
@@ -43,7 +43,7 @@ function SelectScrollDownButton({ className, ...props }) {
43
43
  */
44
44
  function SelectContent({ align = "center", children, className, position = "item-aligned", ...props }) {
45
45
  return (_jsx(SelectPrimitive.Portal, { "data-slot": "select-portal", children: _jsxs(SelectPrimitive.Content, { align: align, className: cn("relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 ease-snappy data-[align-trigger=true]:animate-none data-open:animate-in data-open:animation-duration-menu-in data-open:fade-in-0 data-open:zoom-in-95 data-open:data-side-top:slide-in-from-bottom-2 data-open:data-side-right:slide-in-from-left-2 data-open:data-side-bottom:slide-in-from-top-2 data-open:data-side-left:slide-in-from-right-2 data-closed:animate-out data-closed:ease-exit data-closed:animation-duration-menu-out data-closed:fade-out-0 data-closed:zoom-out-95 data-closed:data-side-top:slide-out-to-bottom-2 data-closed:data-side-right:slide-out-to-left-2 data-closed:data-side-bottom:slide-out-to-top-2 data-closed:data-side-left:slide-out-to-right-2", position === "popper" &&
46
- "data-side-top:-translate-y-1 data-side-right:translate-x-1 rtl:data-side-right:-translate-x-1 data-side-bottom:translate-y-1 data-side-left:-translate-x-1 rtl:data-side-left:translate-x-1", className), "data-align-trigger": position === "item-aligned", "data-slot": "select-content", position: position, ...props, children: [_jsx(SelectScrollUpButton, {}), _jsx(SelectPrimitive.Viewport, { className: cn("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)", position === "popper" && ""), "data-position": position, children: children }), _jsx(SelectScrollDownButton, {})] }) }));
46
+ "data-side-top:-translate-y-1 data-side-right:translate-x-1 rtl:data-side-right:-translate-x-1 data-side-bottom:translate-y-1 data-side-left:-translate-x-1 rtl:data-side-left:translate-x-1", className), "data-align-trigger": position === "item-aligned", "data-slot": "select-content", position: position, ...props, children: [_jsx(SelectScrollUpButton, {}), _jsx(SelectPrimitive.Viewport, { className: "scroll-py-1 p-1 data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)", "data-position": position, children: children }), _jsx(SelectScrollDownButton, {})] }) }));
47
47
  }
48
48
  /**
49
49
  * @since 0.3.16-canary.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codefast/ui",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
4
4
  "description": "Core UI components library built with React and Tailwind CSS",
5
5
  "keywords": [
6
6
  "components",
@@ -488,16 +488,16 @@
488
488
  "access": "public"
489
489
  },
490
490
  "dependencies": {
491
- "@codefast/tailwind-variants": "0.9.0",
491
+ "@codefast/tailwind-variants": "0.9.1",
492
492
  "@daypicker/react": "^10.0.1",
493
493
  "cmdk": "^1.1.1",
494
494
  "embla-carousel-react": "^8.6.0",
495
495
  "input-otp": "^1.5.0",
496
- "lucide-react": "^1.47.0",
496
+ "lucide-react": "^1.48.0",
497
497
  "next-themes": "^0.4.6",
498
498
  "radix-ui": "^1.6.7",
499
499
  "react-hook-form": "^7.88.0",
500
- "react-resizable-panels": "^4.13.2",
500
+ "react-resizable-panels": "^4.13.3",
501
501
  "recharts": "^3.10.1",
502
502
  "sonner": "^2.0.8",
503
503
  "tailwind-merge": "^3.7.0",