Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 33 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
"prepack": "npm run build:styles"
},
"dependencies": {
"@base-ui/react": "^1.1.0",
"@base-ui/utils": "^0.2.3",
"@base-ui/react": "^1.3.0",
"@base-ui/utils": "^0.2.6",
"@tanstack/react-table": "^8.21.3",
"ajv": "^8.18.0",
"clsx": "^2.1.1"
Expand Down
10 changes: 5 additions & 5 deletions scripts/check-baseui-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import { fileURLToPath } from 'url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));

const UTILS_FILE = path.join(__dirname, '../src/lib/base-ui-utils.ts');
const BASE_UI_PKG = path.join(__dirname, '../node_modules/@base-ui-components/react/package.json');
const BASE_UI_PKG = path.join(__dirname, '../node_modules/@base-ui/react/package.json');

// Files we copied from Base UI
const COPIED_FILES = [
'esm/utils/getStateAttributesProps.js',
'esm/utils/createBaseUIEventDetails.js',
'esm/utils/reason-parts.js',
'utils/getStateAttributesProps.js',
'utils/createBaseUIEventDetails.js',
'utils/reason-parts.js',
];

function getInstalledVersion() {
Expand Down Expand Up @@ -48,7 +48,7 @@ function main() {
console.log('');
console.log('Review these files for changes:');
COPIED_FILES.forEach(file => {
console.log(` node_modules/@base-ui-components/react/${file}`);
console.log(` node_modules/@base-ui/react/${file}`);
});
console.log('');
console.log('After syncing, update @baseui-version in src/lib/base-ui-utils.ts');
Expand Down
8 changes: 4 additions & 4 deletions src/components/Drawer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export type {
DrawerIndentBackgroundProps,
} from './parts';

export { DrawerPreview as BaseDrawer } from '@base-ui/react/drawer';
export { Drawer as BaseDrawer } from '@base-ui/react/drawer';

import {
DrawerProvider,
Expand All @@ -51,9 +51,9 @@ import {
DrawerIndentBackground,
} from './parts';

import { DrawerPreview } from '@base-ui/react/drawer';
import { Drawer as BaseDrawer } from '@base-ui/react/drawer';

export const createHandle = DrawerPreview.createHandle;
export const createHandle = BaseDrawer.createHandle;

export const Drawer = {
Provider: DrawerProvider,
Expand All @@ -70,5 +70,5 @@ export const Drawer = {
Handle: DrawerHandle,
Indent: DrawerIndent,
IndentBackground: DrawerIndentBackground,
createHandle: DrawerPreview.createHandle,
createHandle: BaseDrawer.createHandle,
};
2 changes: 1 addition & 1 deletion src/components/Drawer/parts.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import * as React from 'react';
import { DrawerPreview as BaseDrawer } from '@base-ui/react/drawer';
import { Drawer as BaseDrawer } from '@base-ui/react/drawer';
import clsx from 'clsx';
import { useTrackedOpenChange } from '../Analytics/useTrackedOpenChange';
import styles from './Drawer.module.scss';
Expand Down
6 changes: 3 additions & 3 deletions src/lib/base-ui-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
*
* Zero drift from Base UI patterns.
*
* @baseui-version 1.2.0
* @synced 2026-02-11
* @baseui-version 1.3.0
* @synced 2026-03-17
*
* To check for updates: npm run check:baseui
* To sync: Compare files below with node_modules/@base-ui/react/esm/utils/
* To sync: Compare files below with node_modules/@base-ui/react/utils/
*
* ## Direct imports (always prefer these)
*
Expand Down
Loading