Skip to content

Commit 914b72f

Browse files
committed
chore: update dependencies and fix type references
- upgrade all packages to their latest versions - update radix-ui components to use specific portal prop types - update react and react-dom to v19 - fix eslint warnings in playground components - add npm registry configurations - update development dependencies across all packages
1 parent 1799385 commit 914b72f

15 files changed

Lines changed: 6240 additions & 10265 deletions

File tree

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
shamefully-hoist=true
22
engine-strict=true
33
strict-peer-dependencies=false
4+
ignore-workspace-root-check=true
5+
registry=https://registry.npmjs.org/
6+
@thinkbuff:registry=https://registry.npmjs.org/

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,28 @@
1313
"postinstall": "pnpm run -r stub",
1414
"prepare": "simple-git-hooks"
1515
},
16-
"packageManager": "pnpm@9.1.4",
16+
"packageManager": "pnpm@9.15.1",
1717
"engines": {
18-
"node": ">=18.18.0"
18+
"node": ">=20"
1919
},
2020
"author": "Eleven <eteplus@outlook.com>",
2121
"license": "MIT",
2222
"devDependencies": {
23-
"@thinkbuff/eslint-config": "^0.1.5",
24-
"@types/node": "^20.13.0",
25-
"@unocss/eslint-plugin": "^0.60.4",
26-
"changelogen": "^0.5.5",
27-
"eslint": "^8.57.0",
28-
"eslint-plugin-jsx-a11y": "^6.8.0",
29-
"eslint-plugin-react": "^7.34.2",
30-
"eslint-plugin-react-hooks": "^4.6.2",
31-
"eslint-plugin-react-refresh": "^0.4.7",
32-
"eslint-plugin-storybook": "^0.8.0",
33-
"glob": "^10.4.1",
34-
"lint-staged": "^15.2.5",
23+
"@eslint-react/eslint-plugin": "^1.22.1",
24+
"@thinkbuff/eslint-config": "^0.2.6",
25+
"@types/node": "^22.10.2",
26+
"@unocss/eslint-plugin": "^0.65.2",
27+
"changelogen": "^0.5.7",
28+
"eslint": "^9.17.0",
29+
"eslint-plugin-jsx-a11y": "^6.10.2",
30+
"eslint-plugin-react-hooks": "^5.1.0",
31+
"eslint-plugin-react-refresh": "^0.4.16",
32+
"eslint-plugin-storybook": "^0.11.1",
33+
"glob": "^11.0.0",
34+
"lint-staged": "^15.2.11",
3535
"simple-git-hooks": "^2.11.1",
36-
"tsx": "^4.11.0",
37-
"typescript": "^5.4.5"
36+
"tsx": "^4.19.2",
37+
"typescript": "^5.7.2"
3838
},
3939
"simple-git-hooks": {
4040
"pre-commit": "pnpm lint-staged"
@@ -44,4 +44,4 @@
4444
"singleQuote": true,
4545
"jsxSingleQuote": false
4646
}
47-
}
47+
}

packages/react/eslint.config.mjs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
import * as StorybookPlugin from 'eslint-plugin-storybook';
1+
import storybook from 'eslint-plugin-storybook';
22
import { defineFlatConfigAsync } from '@thinkbuff/eslint-config';
33

4-
const storybookConfigs = StorybookPlugin.configs.recommended.overrides.map(config => ({
5-
name: 'storybook:rules',
6-
plugins: {
7-
storybook: StorybookPlugin,
8-
},
9-
...config,
10-
}));
11-
124
export default defineFlatConfigAsync({
135
unocss: true,
146
extends: [
15-
...storybookConfigs,
7+
...storybook.configs['flat/recommended'],
168
],
179
});

packages/react/package.json

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -83,50 +83,50 @@
8383
}
8484
},
8585
"devDependencies": {
86-
"@chromatic-com/storybook": "^1.5.0",
87-
"@storybook/addon-essentials": "^8.1.5",
88-
"@storybook/addon-interactions": "^8.1.5",
89-
"@storybook/addon-links": "^8.1.5",
90-
"@storybook/addon-onboarding": "^8.1.5",
91-
"@storybook/blocks": "^8.1.5",
92-
"@storybook/react": "^8.1.5",
93-
"@storybook/react-vite": "^8.1.5",
94-
"@storybook/test": "^8.1.5",
86+
"@chromatic-com/storybook": "^3.2.3",
87+
"@storybook/addon-essentials": "^8.4.7",
88+
"@storybook/addon-interactions": "^8.4.7",
89+
"@storybook/addon-links": "^8.4.7",
90+
"@storybook/addon-onboarding": "^8.4.7",
91+
"@storybook/blocks": "^8.4.7",
92+
"@storybook/react": "^8.4.7",
93+
"@storybook/react-vite": "^8.4.7",
94+
"@storybook/test": "^8.4.7",
9595
"@thinkbuff/figma-theme": "workspace:*",
96-
"@unocss/preset-rem-to-px": "^0.60.4",
97-
"@vitejs/plugin-react": "^4.3.0",
98-
"glob": "^10.4.1",
99-
"react": "^18.3.1",
100-
"react-dom": "^18.3.1",
101-
"storybook": "^8.1.5",
102-
"typescript": "^5.4.5",
103-
"unocss": "^0.60.4",
104-
"unocss-preset-animations": "^1.0.2",
105-
"vite": "^5.2.12",
106-
"vite-plugin-dts": "^3.9.1"
96+
"@unocss/preset-rem-to-px": "^0.65.2",
97+
"@vitejs/plugin-react": "^4.3.4",
98+
"glob": "^11.0.0",
99+
"react": "^19.0.0",
100+
"react-dom": "^19.0.0",
101+
"storybook": "^8.4.7",
102+
"typescript": "^5.7.2",
103+
"unocss": "^0.65.2",
104+
"unocss-preset-animations": "^1.1.0",
105+
"vite": "^6.0.5",
106+
"vite-plugin-dts": "^4.4.0"
107107
},
108108
"dependencies": {
109-
"@radix-ui/react-alert-dialog": "^1.0.5",
110-
"@radix-ui/react-checkbox": "^1.0.4",
111-
"@radix-ui/react-dialog": "^1.0.5",
112-
"@radix-ui/react-dropdown-menu": "^2.0.6",
113-
"@radix-ui/react-label": "^2.0.2",
114-
"@radix-ui/react-popover": "^1.0.7",
115-
"@radix-ui/react-radio-group": "^1.1.3",
116-
"@radix-ui/react-scroll-area": "^1.0.5",
117-
"@radix-ui/react-select": "^2.0.0",
118-
"@radix-ui/react-separator": "^1.0.3",
119-
"@radix-ui/react-slider": "^1.1.2",
120-
"@radix-ui/react-slot": "^1.0.2",
121-
"@radix-ui/react-switch": "^1.0.3",
122-
"@radix-ui/react-tabs": "^1.0.4",
123-
"@radix-ui/react-toggle": "^1.0.3",
124-
"@radix-ui/react-toggle-group": "^1.0.4",
125-
"@radix-ui/react-tooltip": "^1.0.7",
126-
"class-variance-authority": "^0.7.0",
109+
"@radix-ui/react-alert-dialog": "^1.1.4",
110+
"@radix-ui/react-checkbox": "^1.1.3",
111+
"@radix-ui/react-dialog": "^1.1.4",
112+
"@radix-ui/react-dropdown-menu": "^2.1.4",
113+
"@radix-ui/react-label": "^2.1.1",
114+
"@radix-ui/react-popover": "^1.1.4",
115+
"@radix-ui/react-radio-group": "^1.2.2",
116+
"@radix-ui/react-scroll-area": "^1.2.2",
117+
"@radix-ui/react-select": "^2.1.4",
118+
"@radix-ui/react-separator": "^1.1.1",
119+
"@radix-ui/react-slider": "^1.2.2",
120+
"@radix-ui/react-slot": "^1.1.1",
121+
"@radix-ui/react-switch": "^1.1.2",
122+
"@radix-ui/react-tabs": "^1.1.2",
123+
"@radix-ui/react-toggle": "^1.1.1",
124+
"@radix-ui/react-toggle-group": "^1.1.1",
125+
"@radix-ui/react-tooltip": "^1.1.6",
126+
"class-variance-authority": "^0.7.1",
127127
"clsx": "^2.1.1",
128-
"sonner": "^1.4.41",
129-
"tailwind-merge": "^2.3.0"
128+
"sonner": "^1.7.1",
129+
"tailwind-merge": "^2.6.0"
130130
},
131131
"publishConfig": {
132132
"access": "public"

packages/react/src/components/popover/popover.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ interface PopoverContentProps extends React.ComponentPropsWithoutRef<typeof Popo
4646
*
4747
* @default document.body
4848
*/
49-
container?: PopoverPrimitive.PortalProps['container'];
49+
container?: PopoverPrimitive.PopoverPortalProps['container'];
5050
}
5151

5252
/**

packages/react/src/components/select/select.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ const SelectLabel = forwardRef<
160160

161161
SelectLabel.displayName = SelectPrimitive.Label.displayName;
162162

163-
interface SelectItemProps
164-
extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> {}
163+
type SelectItemProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>;
165164

166165
const SelectItem = forwardRef<
167166
React.ElementRef<typeof SelectPrimitive.Item>,

packages/react/src/components/sheet/sheet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const sheetVariants = cva(
9292
export interface SheetContentProps
9393
extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,
9494
VariantProps<typeof sheetVariants> {
95-
container?: SheetPrimitive.PortalProps['container'];
95+
container?: SheetPrimitive.DialogPortalProps['container'];
9696
}
9797

9898
/**

packages/react/src/components/tooltip/tooltip.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
2525
type TooltipContentElement = React.ElementRef<typeof TooltipPrimitive.Content>;
2626

2727
interface TooltipContentProps
28-
extends TooltipPrimitive.PortalProps,
28+
extends TooltipPrimitive.TooltipPortalProps,
2929
React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> {}
3030

3131
const TooltipContent = forwardRef<TooltipContentElement, TooltipContentProps>(
@@ -62,7 +62,7 @@ interface TooltipProps
6262
/**
6363
* The container of the tooltip
6464
*/
65-
container?: TooltipPrimitive.PortalProps['container'];
65+
container?: TooltipPrimitive.TooltipPortalProps['container'];
6666
/**
6767
* Whether the tooltip should have an arrow
6868
*

packages/theme/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
"dist"
6868
],
6969
"devDependencies": {
70-
"unbuild": "^2.0.0",
71-
"unocss": "^0.60.4"
70+
"unbuild": "^3.0.1",
71+
"unocss": "^0.65.2"
7272
},
7373
"lint-staged": {
7474
"*.{js,jsx,ts,tsx}": "eslint --fix"

packages/utils/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@
6868
},
6969
"dependencies": {
7070
"eventemitter3": "^5.0.1",
71-
"type-fest": "^4.18.3"
71+
"type-fest": "^4.30.2"
7272
},
7373
"devDependencies": {
74-
"@figma/plugin-typings": "^1.94.0",
75-
"@figma/widget-typings": "^1.9.1",
76-
"vite": "^5.2.12",
77-
"vite-plugin-dts": "^3.9.1"
74+
"@figma/plugin-typings": "^1.106.0",
75+
"@figma/widget-typings": "^1.11.0",
76+
"vite": "^6.0.5",
77+
"vite-plugin-dts": "^4.4.0"
7878
},
7979
"lint-staged": {
8080
"*.{js,jsx,ts,tsx}": "eslint --fix"

0 commit comments

Comments
 (0)