@vendure-io/ui 2.0.0-rc.0 → 2.0.0-rc.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendure-io/ui",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.1",
|
|
4
4
|
"description": "React component library for Vendure, built on shadcn/ui and Tailwind v4",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"homepage": "https://github.com/vendurehq/design/tree/main/packages/ui",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@base-ui/react": "^1.
|
|
51
|
+
"@base-ui/react": "^1.8.0",
|
|
52
52
|
"@shikijs/langs": "^3.23.0",
|
|
53
53
|
"@shikijs/themes": "^3.23.0",
|
|
54
54
|
"@shikijs/transformers": "^3.22.0",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
import * as React from "react"
|
|
4
|
-
import {
|
|
4
|
+
import { Drawer as DrawerPrimitive } from "@base-ui/react/drawer"
|
|
5
5
|
|
|
6
6
|
import { cn } from "@vendure-io/ui/lib/utils"
|
|
7
7
|
|
|
8
8
|
// Follows the shadcn base-vega Base UI drawer (upstream replaced vaul, which
|
|
9
|
-
// depends on Radix). Divergences:
|
|
10
|
-
//
|
|
11
|
-
//
|
|
9
|
+
// depends on Radix). Divergences: the scrim and surface use the scrim and
|
|
10
|
+
// overlay slots, the title uses our type style, and reduced motion turns the
|
|
11
|
+
// transitions off.
|
|
12
12
|
|
|
13
13
|
type DrawerContextProps = {
|
|
14
14
|
hasSnapPoints: boolean
|
|
@@ -33,9 +33,6 @@ function NavigationMenuList({
|
|
|
33
33
|
return (
|
|
34
34
|
<NavigationMenuPrimitive.List
|
|
35
35
|
data-slot="navigation-menu-list"
|
|
36
|
-
// Base UI sets aria-orientation, which is not allowed on a list
|
|
37
|
-
// (axe aria-allowed-attr). Arrow-key navigation does not depend on it.
|
|
38
|
-
aria-orientation={undefined}
|
|
39
36
|
className={cn(
|
|
40
37
|
"group flex flex-1 list-none items-center justify-center gap-0",
|
|
41
38
|
className
|