Skip to content

Commit fd131d6

Browse files
committed
Updating registry components
1 parent 282d935 commit fd131d6

84 files changed

Lines changed: 7745 additions & 902 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

frontend/bun.lock

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
"@base-ui/react": "^1.0.0",
7777
"@buf/redpandadata_cloud.connectrpc_query-es": "^2.2.0-20251128173054-b9f9fc6e5a70.1",
7878
"@buf/redpandadata_common.bufbuild_es": "^2.11.0-20260316210807-5d899910f714.1",
79-
"@bufbuild/protobuf": "^2.10.0",
79+
"@bufbuild/cel": "^0.4.0",
80+
"@bufbuild/protobuf": "^2.0.0",
8081
"@bufbuild/protoc-gen-es": "^2.10.0",
8182
"@builder.io/sdk-react": "^4.2.4",
8283
"@chakra-ui/object-utils": "^2.1",
@@ -96,7 +97,7 @@
9697
"@module-federation/runtime": "^2.3.2",
9798
"@monaco-editor/react": "^4.7.0",
9899
"@redpanda-data/ui": "^4.2.0",
99-
"@stepperize/react": "^5.1.9",
100+
"@stepperize/react": "^5.0.0",
100101
"@tailwindcss/postcss": "^4.2.4",
101102
"@tanstack/react-form": "^1.12.3",
102103
"@tanstack/react-query": "^5.90.7",
@@ -112,17 +113,18 @@
112113
"class-variance-authority": "^0.7.0",
113114
"clsx": "^2.0.0",
114115
"cmdk": "^1.0.0",
116+
"date-fns": "^4.0.0",
115117
"dexie": "^4.2.1",
116118
"dexie-react-hooks": "^4.2.0",
117119
"dotenv": "^17.2.3",
118120
"es-cookie": "^1.5.0",
119121
"framer-motion": "^7.10.3",
120122
"hast": "^1.0.0",
121-
"hast-util-to-jsx-runtime": "^2.3.6",
123+
"hast-util-to-jsx-runtime": "^2.0.0",
122124
"js-base64": "^3.7.8",
123125
"json-bigint": "^1.0.0",
124126
"jwt-decode": "^4.0.0",
125-
"lottie-react": "^2.4.1",
127+
"lottie-react": "^2.0.0",
126128
"lucide-react": "^1.0.0",
127129
"moment": "^2.30.1",
128130
"monaco-editor": "^0.55.0",
@@ -137,31 +139,31 @@
137139
"react": "^18.3.1",
138140
"react-beautiful-dnd": "^13.1.1",
139141
"react-compiler-runtime": "^1.0.0",
140-
"react-day-picker": "^9.11.1",
142+
"react-day-picker": "^9.0.0",
141143
"react-dom": "^18.3.1",
142144
"react-draggable": "^4.5.0",
143-
"react-dropzone": "^14.3.8",
145+
"react-dropzone": "^15.0.0",
144146
"react-highlight-words": "^0.21.0",
145-
"react-hook-form": "^7.73.1",
147+
"react-hook-form": "^7.0.0",
146148
"react-markdown": "^10.1.0",
147-
"react-resizable-panels": "^3.0.4",
149+
"react-resizable-panels": "^3.0.0",
148150
"react-simple-code-editor": "^0.14.1",
149151
"react-syntax-highlighter": "^16.0.0",
150-
"recharts": "2.15.4",
152+
"recharts": "^2.0.0",
151153
"remark-emoji": "^5.0.2",
152154
"remark-gfm": "^4.0.1",
153-
"shiki": "^3.15.0",
154-
"sonner": "^2.0.7",
155+
"shiki": "^3.0.0",
156+
"sonner": "^2.0.0",
155157
"stacktrace-js": "^2.0.2",
156158
"streamdown": "^2.5.0",
157159
"tailwind-merge": "^3.0.0",
158160
"tailwindcss": "^4.2.4",
159161
"tokenlens": "^1.3.1",
160162
"use-stick-to-bottom": "^1.1.1",
161163
"uuid": "^13.0.0",
162-
"vaul": "^1.1.2",
164+
"vaul": "^1.0.0",
163165
"yaml": "^2.8.3",
164-
"zod": "^3.25.76",
166+
"zod": "^4.0.0",
165167
"zustand": "^5.0.8"
166168
},
167169
"devDependencies": {

frontend/src/components/redpanda-ui/components/alert-dialog.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof
4646
return (
4747
<AlertDialogPrimitive.Backdrop
4848
className={cn(
49-
'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in',
49+
// fill-mode-forwards keeps opacity 0 applied after the exit animation
50+
// ends; otherwise the backdrop flashes back to full opacity for a
51+
// frame before Base UI unmounts it.
52+
'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 fill-mode-forwards data-[state=closed]:animate-out data-[state=open]:animate-in',
5053
className
5154
)}
5255
data-slot="alert-dialog-overlay"
@@ -74,7 +77,7 @@ function AlertDialogContent({
7477
{showOverlay ? <AlertDialogOverlay /> : null}
7578
<AlertDialogPrimitive.Popup
7679
className={cn(
77-
'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg',
80+
'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 flex max-h-[85vh] w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] flex-col gap-4 overflow-hidden rounded-lg border bg-background fill-mode-forwards p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg',
7881
className
7982
)}
8083
data-slot="alert-dialog-content"
@@ -89,7 +92,7 @@ function AlertDialogContent({
8992
function AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>) {
9093
return (
9194
<div
92-
className={cn('flex flex-col gap-2 text-center sm:text-left', className)}
95+
className={cn('flex shrink-0 flex-col gap-2 text-center sm:text-left', className)}
9396
data-slot="alert-dialog-header"
9497
{...props}
9598
/>
@@ -99,7 +102,7 @@ function AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>)
99102
function AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>) {
100103
return (
101104
<div
102-
className={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)}
105+
className={cn('flex shrink-0 flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)}
103106
data-slot="alert-dialog-footer"
104107
{...props}
105108
/>

frontend/src/components/redpanda-ui/components/alert.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { cva, type VariantProps } from 'class-variance-authority';
2+
import { InfoIcon } from 'lucide-react';
23
import React from 'react';
34

45
import { cn, type SharedProps } from '../lib/utils';
@@ -26,9 +27,7 @@ const alertVariants = cva(
2627
const Alert = React.forwardRef<
2728
HTMLDivElement,
2829
React.ComponentProps<'div'> & VariantProps<typeof alertVariants> & SharedProps & { icon?: React.ReactNode }
29-
>(({ className, variant, testId, icon: iconProp, children, ...props }, ref) => {
30-
const icon = iconProp === undefined ? undefined : iconProp;
31-
return (
30+
>(({ className, variant, testId, icon = <InfoIcon />, children, ...props }, ref) => (
3231
<div
3332
className={cn(alertVariants({ variant }), className)}
3433
data-slot="alert"
@@ -40,7 +39,7 @@ const Alert = React.forwardRef<
4039
{icon}
4140
{children}
4241
</div>
43-
)});
42+
));
4443

4544
Alert.displayName = 'Alert';
4645

0 commit comments

Comments
 (0)