Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ runs:
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.15.1
version: 10.22.0

- run: pnpm install
shell: bash
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.15.1
version: 10.22.0
- uses: ./.github/setup

- name: Check formatting
Expand All @@ -39,7 +39,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.15.1
version: 10.22.0
- uses: ./.github/setup

- run: pnpm turbo build
Expand All @@ -52,7 +52,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.15.1
version: 10.22.0
- uses: ./.github/setup

- run: pnpm lint
Expand All @@ -65,7 +65,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.15.1
version: 10.22.0
- uses: ./.github/setup

- run: pnpm turbo test
Expand All @@ -78,7 +78,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.15.1
version: 10.22.0
- uses: ./.github/setup

- run: pnpm turbo typecheck
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.1/schema.json",
"$schema": "https://biomejs.dev/schemas/2.3.5/schema.json",
"assist": {
"actions": {
"source": {
Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/components/compare-slider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ A compare slider with vertical orientation, perfect for comparing tall images or

Compare slider with custom handle, labels, and vertical orientation.

<ComponentTabs name="compare-slider-custom-demo" />
<ComponentTabs name="compare-slider-customization-demo" />

## API Reference

Expand Down
48 changes: 24 additions & 24 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,75 +26,75 @@
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@hookform/resolvers": "^5.2.2",
"@mux/mux-video-react": "^0.27.1",
"@radix-ui/react-avatar": "^1.1.10",
"@mux/mux-video-react": "^0.27.2",
"@radix-ui/react-avatar": "^1.1.11",
"@radix-ui/react-checkbox": "^1.3.3",
"@radix-ui/react-collapsible": "^1.1.12",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-dropdown-menu": "^2.1.16",
"@radix-ui/react-hover-card": "^1.1.15",
"@radix-ui/react-label": "^2.1.7",
"@radix-ui/react-label": "^2.1.8",
"@radix-ui/react-popover": "^1.1.15",
"@radix-ui/react-progress": "^1.1.7",
"@radix-ui/react-progress": "^1.1.8",
"@radix-ui/react-radio-group": "^1.3.8",
"@radix-ui/react-scroll-area": "^1.2.10",
"@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-separator": "^1.1.7",
"@radix-ui/react-separator": "^1.1.8",
"@radix-ui/react-slider": "^1.3.6",
"@radix-ui/react-slot": "^1.2.3",
"@radix-ui/react-slot": "^1.2.4",
"@radix-ui/react-switch": "^1.2.6",
"@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-tooltip": "^1.2.8",
"@tanstack/react-table": "^8.21.3",
"@tanstack/react-virtual": "^3.13.12",
"@uploadthing/react": "^7.3.3",
"@upstash/ratelimit": "^2.0.6",
"@upstash/ratelimit": "^2.0.7",
"@upstash/redis": "^1.35.6",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "1.1.1",
"date-fns": "^4.1.0",
"fumadocs-core": "^16.0.4",
"fumadocs-docgen": "^3.0.3",
"fumadocs-mdx": "^13.0.2",
"fumadocs-typescript": "^4.0.12",
"fumadocs-ui": "^16.0.4",
"jotai": "^2.15.0",
"lucide-react": "^0.548.0",
"fumadocs-core": "^16.0.11",
"fumadocs-docgen": "^3.0.4",
"fumadocs-mdx": "^13.0.8",
"fumadocs-typescript": "^4.0.13",
"fumadocs-ui": "^16.0.11",
"jotai": "^2.15.1",
"lucide-react": "^0.553.0",
"match-sorter": "^8.1.0",
"media-chrome": "^4.15.0",
"media-chrome": "^4.15.1",
"motion": "^12.23.24",
"nanoid": "^5.1.6",
"next": "^16.0.0",
"next": "^16.0.3",
"next-themes": "^0.4.6",
"nuqs": "^2.7.2",
"nuqs": "^2.7.3",
"qrcode": "^1.5.4",
"react": "^19.2.0",
"react-day-picker": "9.11.1",
"react-dom": "^19.2.0",
"react-hook-form": "^7.65.0",
"react-hook-form": "^7.66.0",
"shadcn": "^3.5.0",
"sonner": "^2.0.7",
"tailwind-merge": "^3.3.1",
"tailwind-merge": "^3.4.0",
"uploadthing": "^7.7.4",
"zod": "^4.1.12"
},
"devDependencies": {
"@faker-js/faker": "^10.1.0",
"@tailwindcss/postcss": "^4.1.16",
"@tailwindcss/postcss": "^4.1.17",
"@types/mdx": "^2.0.13",
"@types/qrcode": "^1.5.6",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"@types/react": "^19.2.5",
"@types/react-dom": "^19.2.3",
"postcss": "^8.5.6",
"react-reconciler": "^0.33.0",
"react-scan": "^0.4.3",
"rehype-pretty-code": "^0.14.1",
"rehype-slug": "^6.0.0",
"remark-code-import": "^1.2.0",
"remark-math": "^6.0.0",
"shiki": "^3.14.0",
"tailwindcss": "^4.1.16",
"shiki": "^3.15.0",
"tailwindcss": "^4.1.17",
"ts-morph": "^27.0.2",
"tsx": "^4.20.6",
"tw-animate-css": "^1.4.0",
Expand Down
15 changes: 5 additions & 10 deletions docs/registry/default/ui/compare-slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,10 @@ interface CompareSliderRootProps extends DivProps {
}

function CompareSliderRoot(props: CompareSliderRootProps) {
const {
value: valueProp,
defaultValue = 50,
onValueChange,
...rootProps
} = props;
const { value, defaultValue = 50, onValueChange, ...rootProps } = props;

const stateRef = useLazyRef<StoreState>(() => ({
value: clamp(valueProp ?? defaultValue, 0, 100),
value: clamp(value ?? defaultValue, 0, 100),
isDragging: false,
}));
const listenersRef = useLazyRef(() => new Set<() => void>());
Expand Down Expand Up @@ -160,10 +155,10 @@ function CompareSliderRoot(props: CompareSliderRootProps) {
}, [listenersRef, stateRef, onValueChangeRef]);

useIsomorphicLayoutEffect(() => {
if (valueProp !== undefined) {
store.updateValue(valueProp);
if (value !== undefined) {
store.updateValue(value);
}
}, [valueProp]);
}, [value]);

return (
<StoreContext.Provider value={store}>
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "diceui",
"packageManager": "pnpm@10.15.1",
"packageManager": "pnpm@10.22.0",
"private": true,
"type": "module",
"workspaces": [
Expand All @@ -23,19 +23,19 @@
"release": "changeset publish"
},
"devDependencies": {
"@biomejs/biome": "^2.3.1",
"@biomejs/biome": "^2.3.5",
"@changesets/cli": "^2.29.7",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/node": "^24.9.1",
"@vitejs/plugin-react": "^5.1.0",
"@types/node": "^24.10.1",
"@vitejs/plugin-react": "^5.1.1",
"expect-type": "^1.2.2",
"jsdom": "^27.0.1",
"rimraf": "^6.0.1",
"turbo": "^2.5.8",
"jsdom": "^27.2.0",
"rimraf": "^6.1.0",
"turbo": "^2.6.1",
"typescript": "^5.9.3",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^4.0.4"
"vitest": "^4.0.9"
}
}
Loading
Loading