@bergetai/ui 0.2.7 → 0.3.2
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/dist/index.cjs +739 -575
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +172 -74
- package/dist/index.d.ts +172 -74
- package/dist/index.js +702 -538
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +15 -0
- package/package.json +8 -18
- package/LICENSE +0 -21
package/dist/index.d.cts
CHANGED
|
@@ -2,14 +2,15 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
import
|
|
6
|
-
import * as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
5
|
+
import { Button as Button$2 } from '@base-ui/react/button';
|
|
6
|
+
import * as _base_ui_react from '@base-ui/react';
|
|
7
|
+
import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
|
|
8
|
+
import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
|
|
9
|
+
import { Menu } from '@base-ui/react/menu';
|
|
10
|
+
import { NavigationMenu as NavigationMenu$1 } from '@base-ui/react/navigation-menu';
|
|
11
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
12
|
+
import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
|
|
13
|
+
import { Switch as Switch$1 } from '@base-ui/react/switch';
|
|
13
14
|
import { LucideProps, LucideIcon } from 'lucide-react';
|
|
14
15
|
|
|
15
16
|
type Theme = 'dark' | 'light' | 'system';
|
|
@@ -41,10 +42,14 @@ declare const buttonVariants: (props?: ({
|
|
|
41
42
|
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
42
43
|
size?: "sm" | "lg" | "default" | "xs" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
43
44
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
44
|
-
interface ButtonProps$1 extends
|
|
45
|
+
interface ButtonProps$1 extends Omit<Button$2.Props, 'className' | 'style' | 'render'>, VariantProps<typeof buttonVariants> {
|
|
46
|
+
className?: string;
|
|
47
|
+
style?: React$1.CSSProperties;
|
|
48
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
45
49
|
asChild?: boolean;
|
|
50
|
+
children?: React$1.ReactNode;
|
|
46
51
|
}
|
|
47
|
-
declare const Button$1: React$1.ForwardRefExoticComponent<ButtonProps$1 & React$1.RefAttributes<HTMLButtonElement>>;
|
|
52
|
+
declare const Button$1: React$1.ForwardRefExoticComponent<Omit<ButtonProps$1, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
48
53
|
|
|
49
54
|
/** Variants exposed by the Berget wrapper. */
|
|
50
55
|
type CustomVariant = 'default' | 'primary' | 'destructive' | 'outline' | 'ghost' | 'link';
|
|
@@ -104,12 +109,21 @@ declare const Alert: React$1.ForwardRefExoticComponent<AlertProps & React$1.RefA
|
|
|
104
109
|
type AlertTitleProps = React$1.HTMLAttributes<HTMLHeadingElement>;
|
|
105
110
|
type AlertDescriptionProps = React$1.HTMLAttributes<HTMLParagraphElement>;
|
|
106
111
|
|
|
107
|
-
declare const Dialog:
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
112
|
+
declare const Dialog: typeof Dialog$1.Root;
|
|
113
|
+
type DialogTriggerProps = Omit<Dialog$1.Trigger.Props, 'className' | 'render'> & {
|
|
114
|
+
className?: string;
|
|
115
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
116
|
+
asChild?: boolean;
|
|
117
|
+
};
|
|
118
|
+
declare const DialogTrigger: React$1.ForwardRefExoticComponent<Omit<DialogTriggerProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
119
|
+
declare const DialogPortal: React$1.ForwardRefExoticComponent<Omit<_base_ui_react.AlertDialogPortalProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
120
|
+
declare const DialogClose: React$1.ForwardRefExoticComponent<Omit<_base_ui_react.AlertDialogCloseProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
121
|
+
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.AlertDialogBackdropProps, "className"> & {
|
|
122
|
+
className?: string;
|
|
123
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
124
|
+
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.AlertDialogPopupProps, "className"> & {
|
|
125
|
+
className?: string;
|
|
126
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
113
127
|
declare const DialogHeader: {
|
|
114
128
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
115
129
|
displayName: string;
|
|
@@ -118,14 +132,27 @@ declare const DialogFooter: {
|
|
|
118
132
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
119
133
|
displayName: string;
|
|
120
134
|
};
|
|
121
|
-
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
declare const
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
declare const
|
|
135
|
+
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.AlertDialogTitleProps, "className"> & {
|
|
136
|
+
className?: string;
|
|
137
|
+
}, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
138
|
+
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.AlertDialogDescriptionProps, "className"> & {
|
|
139
|
+
className?: string;
|
|
140
|
+
}, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
141
|
+
|
|
142
|
+
declare const AlertDialog: typeof AlertDialog$1.Root;
|
|
143
|
+
type AlertDialogTriggerProps = Omit<AlertDialog$1.Trigger.Props, 'className' | 'render'> & {
|
|
144
|
+
className?: string;
|
|
145
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
146
|
+
asChild?: boolean;
|
|
147
|
+
};
|
|
148
|
+
declare const AlertDialogTrigger: React$1.ForwardRefExoticComponent<Omit<AlertDialogTriggerProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
149
|
+
declare const AlertDialogPortal: React$1.ForwardRefExoticComponent<Omit<_base_ui_react.AlertDialogPortalProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
150
|
+
declare const AlertDialogOverlay: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.AlertDialogBackdropProps, "className"> & {
|
|
151
|
+
className?: string;
|
|
152
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
153
|
+
declare const AlertDialogContent: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.AlertDialogPopupProps, "className"> & {
|
|
154
|
+
className?: string;
|
|
155
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
129
156
|
declare const AlertDialogHeader: {
|
|
130
157
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
131
158
|
displayName: string;
|
|
@@ -134,47 +161,113 @@ declare const AlertDialogFooter: {
|
|
|
134
161
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
135
162
|
displayName: string;
|
|
136
163
|
};
|
|
137
|
-
declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<
|
|
138
|
-
|
|
164
|
+
declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.AlertDialogTitleProps, "className"> & {
|
|
165
|
+
className?: string;
|
|
166
|
+
}, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
167
|
+
declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.AlertDialogDescriptionProps, "className"> & {
|
|
168
|
+
className?: string;
|
|
169
|
+
}, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
139
170
|
/** Action button — compose with `<Button>` via `asChild` for consistent styling. */
|
|
140
|
-
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<
|
|
171
|
+
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.AlertDialogCloseProps, "className" | "render"> & {
|
|
172
|
+
className?: string;
|
|
173
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
174
|
+
asChild?: boolean;
|
|
175
|
+
}, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
141
176
|
/** Cancel button — composes with `<Button>` via `asChild`. Includes `mt-2 sm:mt-0` for footer spacing. */
|
|
142
|
-
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
declare const
|
|
149
|
-
|
|
150
|
-
|
|
177
|
+
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.AlertDialogCloseProps, "className" | "render"> & {
|
|
178
|
+
className?: string;
|
|
179
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
180
|
+
asChild?: boolean;
|
|
181
|
+
}, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
182
|
+
|
|
183
|
+
declare const DropdownMenu: <Payload>(props: Menu.Root.Props<Payload>) => react_jsx_runtime.JSX.Element;
|
|
184
|
+
type DropdownMenuTriggerProps = Omit<Menu.Trigger.Props, 'className' | 'render'> & {
|
|
185
|
+
className?: string;
|
|
186
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
187
|
+
asChild?: boolean;
|
|
188
|
+
};
|
|
189
|
+
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuTriggerProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
190
|
+
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<Omit<_base_ui_react.ContextMenuGroupProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
191
|
+
declare const DropdownMenuPortal: React$1.ForwardRefExoticComponent<Omit<_base_ui_react.ContextMenuPortalProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
192
|
+
declare const DropdownMenuSub: typeof Menu.SubmenuRoot;
|
|
193
|
+
declare const DropdownMenuRadioGroup: React$1.NamedExoticComponent<Omit<_base_ui_react.ContextMenuRadioGroupProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
194
|
+
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.ContextMenuSubmenuTriggerProps, "className" | "render"> & {
|
|
195
|
+
className?: string;
|
|
151
196
|
inset?: boolean;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
declare const
|
|
197
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
198
|
+
asChild?: boolean;
|
|
199
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
200
|
+
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.ContextMenuPopupProps, "className"> & Pick<_base_ui_react.ContextMenuPositionerProps, "side" | "sideOffset" | "align" | "alignOffset"> & {
|
|
201
|
+
className?: string;
|
|
202
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
203
|
+
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.ContextMenuPopupProps, "className"> & Pick<_base_ui_react.ContextMenuPositionerProps, "side" | "sideOffset" | "align" | "alignOffset"> & {
|
|
204
|
+
className?: string;
|
|
205
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
206
|
+
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.ContextMenuItemProps, "label" | "className" | "render"> & {
|
|
207
|
+
className?: string;
|
|
156
208
|
inset?: boolean;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
209
|
+
/** Typeahead label. Replaces the Radix `textValue` prop. */
|
|
210
|
+
textValue?: string;
|
|
211
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
212
|
+
asChild?: boolean;
|
|
213
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
214
|
+
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.ContextMenuCheckboxItemProps, "label" | "className" | "render"> & {
|
|
215
|
+
className?: string;
|
|
216
|
+
/** Typeahead label. Replaces the Radix `textValue` prop. */
|
|
217
|
+
textValue?: string;
|
|
218
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
219
|
+
asChild?: boolean;
|
|
220
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
221
|
+
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.ContextMenuRadioItemProps, "label" | "className" | "render"> & {
|
|
222
|
+
className?: string;
|
|
223
|
+
/** Typeahead label. Replaces the Radix `textValue` prop. */
|
|
224
|
+
textValue?: string;
|
|
225
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
226
|
+
asChild?: boolean;
|
|
227
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
228
|
+
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.ContextMenuGroupLabelProps, "className" | "render"> & {
|
|
229
|
+
className?: string;
|
|
161
230
|
inset?: boolean;
|
|
162
|
-
|
|
163
|
-
|
|
231
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
232
|
+
asChild?: boolean;
|
|
233
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
234
|
+
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SeparatorProps, "className"> & {
|
|
235
|
+
className?: string;
|
|
236
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
164
237
|
declare const DropdownMenuShortcut: {
|
|
165
238
|
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
166
239
|
displayName: string;
|
|
167
240
|
};
|
|
168
241
|
|
|
169
|
-
declare const NavigationMenu: React$1.ForwardRefExoticComponent<Omit<
|
|
170
|
-
|
|
171
|
-
|
|
242
|
+
declare const NavigationMenu: React$1.ForwardRefExoticComponent<Omit<Omit<NavigationMenu$1.Root.Props<any>, "className"> & {
|
|
243
|
+
className?: string;
|
|
244
|
+
}, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
245
|
+
declare const NavigationMenuList: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.NavigationMenuListProps, "className"> & {
|
|
246
|
+
className?: string;
|
|
247
|
+
}, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
248
|
+
declare const NavigationMenuItem: React$1.ForwardRefExoticComponent<Omit<_base_ui_react.NavigationMenuItemProps, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
172
249
|
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
173
|
-
declare const NavigationMenuTrigger: React$1.ForwardRefExoticComponent<Omit<
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
250
|
+
declare const NavigationMenuTrigger: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.NavigationMenuTriggerProps, "className" | "render"> & {
|
|
251
|
+
className?: string;
|
|
252
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
253
|
+
asChild?: boolean;
|
|
254
|
+
}, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
255
|
+
declare const NavigationMenuContent: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.NavigationMenuContentProps, "className"> & {
|
|
256
|
+
className?: string;
|
|
257
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
258
|
+
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.NavigationMenuLinkProps, "className" | "render"> & {
|
|
259
|
+
className?: string;
|
|
260
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
261
|
+
asChild?: boolean;
|
|
262
|
+
}, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
263
|
+
declare const NavigationMenuViewport: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.NavigationMenuPopupProps, "className"> & {
|
|
264
|
+
className?: string;
|
|
265
|
+
}, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
266
|
+
declare const NavigationMenuIndicator: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.NavigationMenuIconProps, "className" | "render"> & {
|
|
267
|
+
className?: string;
|
|
268
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
269
|
+
asChild?: boolean;
|
|
270
|
+
}, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
178
271
|
|
|
179
272
|
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
180
273
|
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -190,9 +283,7 @@ declare const itemVariants: (props?: ({
|
|
|
190
283
|
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
191
284
|
size?: "sm" | "default" | null | undefined;
|
|
192
285
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
193
|
-
declare function Item$1({ className, variant, size,
|
|
194
|
-
asChild?: boolean;
|
|
195
|
-
}): react_jsx_runtime.JSX.Element;
|
|
286
|
+
declare function Item$1({ className, variant, size, render, ...props }: useRender.ComponentProps<'div'> & VariantProps<typeof itemVariants>): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
196
287
|
declare function ItemContent({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
197
288
|
declare function ItemActions({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
198
289
|
declare function ItemHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
@@ -201,8 +292,10 @@ declare function ItemFooter({ className, ...props }: React$1.ComponentProps<'div
|
|
|
201
292
|
interface ItemProps extends React$1.ComponentProps<typeof Item$1> {
|
|
202
293
|
variant?: VariantProps<typeof Item$1>['variant'];
|
|
203
294
|
size?: VariantProps<typeof Item$1>['size'];
|
|
295
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
296
|
+
asChild?: boolean;
|
|
204
297
|
}
|
|
205
|
-
declare function Item({ className, asChild, ...props }: ItemProps): react_jsx_runtime.JSX.Element;
|
|
298
|
+
declare function Item({ className, asChild, children, ...props }: ItemProps): react_jsx_runtime.JSX.Element;
|
|
206
299
|
|
|
207
300
|
/** ItemMedia — override icon background. */
|
|
208
301
|
declare const ItemMedia: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
@@ -213,7 +306,9 @@ declare const ItemTitle: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAtt
|
|
|
213
306
|
/** ItemDescription — override muted text colour. */
|
|
214
307
|
declare const ItemDescription: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLParagraphElement> & React$1.HTMLAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
215
308
|
/** ItemSeparator — override colour. */
|
|
216
|
-
declare const ItemSeparator: React$1.ForwardRefExoticComponent<Omit<Omit<
|
|
309
|
+
declare const ItemSeparator: React$1.ForwardRefExoticComponent<Omit<Omit<Omit<_base_ui_react.SeparatorProps, "orientation"> & {
|
|
310
|
+
orientation?: "horizontal" | "vertical";
|
|
311
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
217
312
|
|
|
218
313
|
interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
219
314
|
icon?: React$1.ReactNode;
|
|
@@ -228,13 +323,13 @@ declare const checkboxVariants: (props?: ({
|
|
|
228
323
|
variant?: "default" | "error" | "success" | null | undefined;
|
|
229
324
|
size?: "sm" | "lg" | "default" | null | undefined;
|
|
230
325
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
231
|
-
interface CheckboxProps extends Omit<React$1.ComponentPropsWithoutRef<typeof
|
|
326
|
+
interface CheckboxProps extends Omit<React$1.ComponentPropsWithoutRef<typeof Checkbox$1.Root>, 'className'>, VariantProps<typeof checkboxVariants> {
|
|
232
327
|
label?: string;
|
|
233
328
|
description?: string;
|
|
234
329
|
error?: string;
|
|
235
330
|
className?: string;
|
|
236
331
|
}
|
|
237
|
-
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<
|
|
332
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLElement>>;
|
|
238
333
|
|
|
239
334
|
declare const switchRootVariants: (props?: ({
|
|
240
335
|
variant?: "default" | "primary" | "subtle" | null | undefined;
|
|
@@ -243,13 +338,13 @@ declare const switchRootVariants: (props?: ({
|
|
|
243
338
|
declare const switchThumbVariants: (props?: ({
|
|
244
339
|
size?: "sm" | "lg" | "default" | null | undefined;
|
|
245
340
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
246
|
-
interface SwitchProps extends Omit<
|
|
341
|
+
interface SwitchProps extends Omit<Switch$1.Root.Props, 'className'>, VariantProps<typeof switchRootVariants> {
|
|
247
342
|
label?: string;
|
|
248
343
|
description?: string;
|
|
249
344
|
error?: string;
|
|
250
345
|
className?: string;
|
|
251
346
|
}
|
|
252
|
-
declare const Switch: React$1.ForwardRefExoticComponent<SwitchProps & React$1.RefAttributes<
|
|
347
|
+
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
253
348
|
|
|
254
349
|
declare const selectVariants: (props?: ({
|
|
255
350
|
variant?: "default" | "primary" | "muted" | "subtle" | null | undefined;
|
|
@@ -321,7 +416,7 @@ interface TextAreaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaEleme
|
|
|
321
416
|
}
|
|
322
417
|
declare const TextArea: React$1.ForwardRefExoticComponent<TextAreaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
323
418
|
|
|
324
|
-
declare const Label: React$1.ForwardRefExoticComponent<
|
|
419
|
+
declare const Label: React$1.ForwardRefExoticComponent<React$1.LabelHTMLAttributes<HTMLLabelElement> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
325
420
|
|
|
326
421
|
declare function FieldSet({ className, ...props }: React.ComponentProps<'fieldset'>): react_jsx_runtime.JSX.Element;
|
|
327
422
|
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<'legend'> & {
|
|
@@ -346,7 +441,7 @@ declare function FieldError({ className, children, errors, ...props }: React.Com
|
|
|
346
441
|
}): react_jsx_runtime.JSX.Element | null;
|
|
347
442
|
|
|
348
443
|
declare const linkVariants: (props?: ({
|
|
349
|
-
variant?: "default" | "secondary" | "ghost" | "
|
|
444
|
+
variant?: "default" | "secondary" | "ghost" | "code" | "primary" | "muted" | null | undefined;
|
|
350
445
|
size?: "sm" | "lg" | "default" | null | undefined;
|
|
351
446
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
352
447
|
interface LinkProps extends React$1.AnchorHTMLAttributes<HTMLAnchorElement>, VariantProps<typeof linkVariants> {
|
|
@@ -362,11 +457,12 @@ declare const containerVariants: (props?: ({
|
|
|
362
457
|
size?: "sm" | "md" | "lg" | "full" | "xl" | null | undefined;
|
|
363
458
|
padding?: "sm" | "md" | "lg" | "none" | null | undefined;
|
|
364
459
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
365
|
-
interface ContainerProps extends
|
|
366
|
-
children
|
|
460
|
+
interface ContainerProps extends useRender.ComponentProps<'div'>, VariantProps<typeof containerVariants> {
|
|
461
|
+
children?: React$1.ReactNode;
|
|
462
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
367
463
|
asChild?: boolean;
|
|
368
464
|
}
|
|
369
|
-
declare const Container: React$1.ForwardRefExoticComponent<ContainerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
465
|
+
declare const Container: React$1.ForwardRefExoticComponent<Omit<ContainerProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
370
466
|
|
|
371
467
|
declare const gridVariants: (props?: ({
|
|
372
468
|
align?: "end" | "start" | "center" | "stretch" | null | undefined;
|
|
@@ -375,16 +471,17 @@ declare const gridVariants: (props?: ({
|
|
|
375
471
|
type SpacingScale$1 = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 96;
|
|
376
472
|
type GridColsScale = 1 | 2 | 3 | 4 | 6 | 12;
|
|
377
473
|
type GridRowsScale = 1 | 2 | 3 | 4 | 5 | 6;
|
|
378
|
-
interface GridProps extends
|
|
379
|
-
children
|
|
474
|
+
interface GridProps extends useRender.ComponentProps<'div'>, VariantProps<typeof gridVariants> {
|
|
475
|
+
children?: React$1.ReactNode;
|
|
380
476
|
cols?: GridColsScale;
|
|
381
477
|
rows?: GridRowsScale;
|
|
382
478
|
gap?: SpacingScale$1;
|
|
383
479
|
gapX?: SpacingScale$1;
|
|
384
480
|
gapY?: SpacingScale$1;
|
|
481
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
385
482
|
asChild?: boolean;
|
|
386
483
|
}
|
|
387
|
-
declare const Grid: React$1.ForwardRefExoticComponent<GridProps & React$1.RefAttributes<HTMLElement>>;
|
|
484
|
+
declare const Grid: React$1.ForwardRefExoticComponent<Omit<GridProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
388
485
|
|
|
389
486
|
declare const boxVariants: (props?: ({
|
|
390
487
|
direction?: "row" | "column" | "row-reverse" | "column-reverse" | null | undefined;
|
|
@@ -393,12 +490,13 @@ declare const boxVariants: (props?: ({
|
|
|
393
490
|
wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
|
|
394
491
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
395
492
|
type SpacingScale = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 96;
|
|
396
|
-
interface BoxProps extends
|
|
397
|
-
children
|
|
493
|
+
interface BoxProps extends useRender.ComponentProps<'div'>, VariantProps<typeof boxVariants> {
|
|
494
|
+
children?: React$1.ReactNode;
|
|
398
495
|
gap?: SpacingScale;
|
|
496
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
399
497
|
asChild?: boolean;
|
|
400
498
|
}
|
|
401
|
-
declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttributes<HTMLElement>>;
|
|
499
|
+
declare const Box: React$1.ForwardRefExoticComponent<Omit<BoxProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
402
500
|
|
|
403
501
|
interface BergetLogoProps extends React$1.SVGAttributes<SVGSVGElement> {
|
|
404
502
|
/** Shape variant */
|