@bergetai/ui 0.2.6 → 0.3.1
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 +988 -715
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +175 -66
- package/dist/index.d.ts +175 -66
- package/dist/index.js +945 -681
- package/dist/index.js.map +1 -1
- package/package.json +8 -17
- package/LICENSE +0 -21
package/dist/index.d.cts
CHANGED
|
@@ -2,13 +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
|
|
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';
|
|
12
14
|
import { LucideProps, LucideIcon } from 'lucide-react';
|
|
13
15
|
|
|
14
16
|
type Theme = 'dark' | 'light' | 'system';
|
|
@@ -40,10 +42,14 @@ declare const buttonVariants: (props?: ({
|
|
|
40
42
|
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
41
43
|
size?: "sm" | "lg" | "default" | "xs" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
42
44
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
43
|
-
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. */
|
|
44
49
|
asChild?: boolean;
|
|
50
|
+
children?: React$1.ReactNode;
|
|
45
51
|
}
|
|
46
|
-
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>>;
|
|
47
53
|
|
|
48
54
|
/** Variants exposed by the Berget wrapper. */
|
|
49
55
|
type CustomVariant = 'default' | 'primary' | 'destructive' | 'outline' | 'ghost' | 'link';
|
|
@@ -103,12 +109,21 @@ declare const Alert: React$1.ForwardRefExoticComponent<AlertProps & React$1.RefA
|
|
|
103
109
|
type AlertTitleProps = React$1.HTMLAttributes<HTMLHeadingElement>;
|
|
104
110
|
type AlertDescriptionProps = React$1.HTMLAttributes<HTMLParagraphElement>;
|
|
105
111
|
|
|
106
|
-
declare const Dialog:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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>>;
|
|
112
127
|
declare const DialogHeader: {
|
|
113
128
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
114
129
|
displayName: string;
|
|
@@ -117,14 +132,27 @@ declare const DialogFooter: {
|
|
|
117
132
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
118
133
|
displayName: string;
|
|
119
134
|
};
|
|
120
|
-
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
declare const
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
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>>;
|
|
128
156
|
declare const AlertDialogHeader: {
|
|
129
157
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
130
158
|
displayName: string;
|
|
@@ -133,38 +161,114 @@ declare const AlertDialogFooter: {
|
|
|
133
161
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
134
162
|
displayName: string;
|
|
135
163
|
};
|
|
136
|
-
declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<
|
|
137
|
-
|
|
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>>;
|
|
138
170
|
/** Action button — compose with `<Button>` via `asChild` for consistent styling. */
|
|
139
|
-
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>>;
|
|
140
176
|
/** Cancel button — composes with `<Button>` via `asChild`. Includes `mt-2 sm:mt-0` for footer spacing. */
|
|
141
|
-
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
declare const
|
|
148
|
-
|
|
149
|
-
|
|
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;
|
|
150
196
|
inset?: boolean;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
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;
|
|
155
208
|
inset?: boolean;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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;
|
|
160
230
|
inset?: boolean;
|
|
161
|
-
|
|
162
|
-
|
|
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>>;
|
|
163
237
|
declare const DropdownMenuShortcut: {
|
|
164
238
|
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
165
239
|
displayName: string;
|
|
166
240
|
};
|
|
167
241
|
|
|
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>>;
|
|
249
|
+
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
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>>;
|
|
271
|
+
|
|
168
272
|
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
169
273
|
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
170
274
|
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -179,9 +283,7 @@ declare const itemVariants: (props?: ({
|
|
|
179
283
|
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
180
284
|
size?: "sm" | "default" | null | undefined;
|
|
181
285
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
182
|
-
declare function Item$1({ className, variant, size,
|
|
183
|
-
asChild?: boolean;
|
|
184
|
-
}): 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>>;
|
|
185
287
|
declare function ItemContent({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
186
288
|
declare function ItemActions({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
187
289
|
declare function ItemHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
@@ -190,8 +292,10 @@ declare function ItemFooter({ className, ...props }: React$1.ComponentProps<'div
|
|
|
190
292
|
interface ItemProps extends React$1.ComponentProps<typeof Item$1> {
|
|
191
293
|
variant?: VariantProps<typeof Item$1>['variant'];
|
|
192
294
|
size?: VariantProps<typeof Item$1>['size'];
|
|
295
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
296
|
+
asChild?: boolean;
|
|
193
297
|
}
|
|
194
|
-
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;
|
|
195
299
|
|
|
196
300
|
/** ItemMedia — override icon background. */
|
|
197
301
|
declare const ItemMedia: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
@@ -202,7 +306,9 @@ declare const ItemTitle: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAtt
|
|
|
202
306
|
/** ItemDescription — override muted text colour. */
|
|
203
307
|
declare const ItemDescription: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLParagraphElement> & React$1.HTMLAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
204
308
|
/** ItemSeparator — override colour. */
|
|
205
|
-
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>>;
|
|
206
312
|
|
|
207
313
|
interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
208
314
|
icon?: React$1.ReactNode;
|
|
@@ -217,13 +323,13 @@ declare const checkboxVariants: (props?: ({
|
|
|
217
323
|
variant?: "default" | "error" | "success" | null | undefined;
|
|
218
324
|
size?: "sm" | "lg" | "default" | null | undefined;
|
|
219
325
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
220
|
-
interface CheckboxProps extends Omit<React$1.ComponentPropsWithoutRef<typeof
|
|
326
|
+
interface CheckboxProps extends Omit<React$1.ComponentPropsWithoutRef<typeof Checkbox$1.Root>, 'className'>, VariantProps<typeof checkboxVariants> {
|
|
221
327
|
label?: string;
|
|
222
328
|
description?: string;
|
|
223
329
|
error?: string;
|
|
224
330
|
className?: string;
|
|
225
331
|
}
|
|
226
|
-
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<
|
|
332
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLElement>>;
|
|
227
333
|
|
|
228
334
|
declare const switchRootVariants: (props?: ({
|
|
229
335
|
variant?: "default" | "primary" | "subtle" | null | undefined;
|
|
@@ -232,13 +338,13 @@ declare const switchRootVariants: (props?: ({
|
|
|
232
338
|
declare const switchThumbVariants: (props?: ({
|
|
233
339
|
size?: "sm" | "lg" | "default" | null | undefined;
|
|
234
340
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
235
|
-
interface SwitchProps extends Omit<
|
|
341
|
+
interface SwitchProps extends Omit<Switch$1.Root.Props, 'className'>, VariantProps<typeof switchRootVariants> {
|
|
236
342
|
label?: string;
|
|
237
343
|
description?: string;
|
|
238
344
|
error?: string;
|
|
239
345
|
className?: string;
|
|
240
346
|
}
|
|
241
|
-
declare const Switch: React$1.ForwardRefExoticComponent<SwitchProps & React$1.RefAttributes<
|
|
347
|
+
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
242
348
|
|
|
243
349
|
declare const selectVariants: (props?: ({
|
|
244
350
|
variant?: "default" | "primary" | "muted" | "subtle" | null | undefined;
|
|
@@ -310,7 +416,7 @@ interface TextAreaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaEleme
|
|
|
310
416
|
}
|
|
311
417
|
declare const TextArea: React$1.ForwardRefExoticComponent<TextAreaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
312
418
|
|
|
313
|
-
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>>;
|
|
314
420
|
|
|
315
421
|
declare function FieldSet({ className, ...props }: React.ComponentProps<'fieldset'>): react_jsx_runtime.JSX.Element;
|
|
316
422
|
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<'legend'> & {
|
|
@@ -335,7 +441,7 @@ declare function FieldError({ className, children, errors, ...props }: React.Com
|
|
|
335
441
|
}): react_jsx_runtime.JSX.Element | null;
|
|
336
442
|
|
|
337
443
|
declare const linkVariants: (props?: ({
|
|
338
|
-
variant?: "default" | "secondary" | "ghost" | "
|
|
444
|
+
variant?: "default" | "secondary" | "ghost" | "code" | "primary" | "muted" | null | undefined;
|
|
339
445
|
size?: "sm" | "lg" | "default" | null | undefined;
|
|
340
446
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
341
447
|
interface LinkProps extends React$1.AnchorHTMLAttributes<HTMLAnchorElement>, VariantProps<typeof linkVariants> {
|
|
@@ -351,11 +457,12 @@ declare const containerVariants: (props?: ({
|
|
|
351
457
|
size?: "sm" | "md" | "lg" | "full" | "xl" | null | undefined;
|
|
352
458
|
padding?: "sm" | "md" | "lg" | "none" | null | undefined;
|
|
353
459
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
354
|
-
interface ContainerProps extends
|
|
355
|
-
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. */
|
|
356
463
|
asChild?: boolean;
|
|
357
464
|
}
|
|
358
|
-
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>>;
|
|
359
466
|
|
|
360
467
|
declare const gridVariants: (props?: ({
|
|
361
468
|
align?: "end" | "start" | "center" | "stretch" | null | undefined;
|
|
@@ -364,16 +471,17 @@ declare const gridVariants: (props?: ({
|
|
|
364
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;
|
|
365
472
|
type GridColsScale = 1 | 2 | 3 | 4 | 6 | 12;
|
|
366
473
|
type GridRowsScale = 1 | 2 | 3 | 4 | 5 | 6;
|
|
367
|
-
interface GridProps extends
|
|
368
|
-
children
|
|
474
|
+
interface GridProps extends useRender.ComponentProps<'div'>, VariantProps<typeof gridVariants> {
|
|
475
|
+
children?: React$1.ReactNode;
|
|
369
476
|
cols?: GridColsScale;
|
|
370
477
|
rows?: GridRowsScale;
|
|
371
478
|
gap?: SpacingScale$1;
|
|
372
479
|
gapX?: SpacingScale$1;
|
|
373
480
|
gapY?: SpacingScale$1;
|
|
481
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
374
482
|
asChild?: boolean;
|
|
375
483
|
}
|
|
376
|
-
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>>;
|
|
377
485
|
|
|
378
486
|
declare const boxVariants: (props?: ({
|
|
379
487
|
direction?: "row" | "column" | "row-reverse" | "column-reverse" | null | undefined;
|
|
@@ -382,12 +490,13 @@ declare const boxVariants: (props?: ({
|
|
|
382
490
|
wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
|
|
383
491
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
384
492
|
type SpacingScale = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 96;
|
|
385
|
-
interface BoxProps extends
|
|
386
|
-
children
|
|
493
|
+
interface BoxProps extends useRender.ComponentProps<'div'>, VariantProps<typeof boxVariants> {
|
|
494
|
+
children?: React$1.ReactNode;
|
|
387
495
|
gap?: SpacingScale;
|
|
496
|
+
/** Render as a different element/component. Replaces the Radix `asChild` prop. */
|
|
388
497
|
asChild?: boolean;
|
|
389
498
|
}
|
|
390
|
-
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>>;
|
|
391
500
|
|
|
392
501
|
interface BergetLogoProps extends React$1.SVGAttributes<SVGSVGElement> {
|
|
393
502
|
/** Shape variant */
|
|
@@ -548,4 +657,4 @@ interface WindowFrameProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
548
657
|
}
|
|
549
658
|
declare const WindowFrame: React$1.ForwardRefExoticComponent<WindowFrameProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
550
659
|
|
|
551
|
-
export { Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Badge, type BadgeProps, BergetLogo, type BergetLogoProps, Box, type BoxProps, type SpacingScale as BoxSpacingScale, Button, type ButtonProps, COUNTRIES, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockProps, Container, type ContainerProps, type Country, CountrySelect, type CountrySelectProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EU_COUNTRY_CODES, FeatureList, type FeatureListProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Grid, type GridColsScale, type GridProps, type GridRowsScale, type SpacingScale$1 as GridSpacingScale, HeroBlock, type HeroBlockProps, Icon, type IconProps, Input, type InputProps, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, type ItemProps, ItemSeparator, ItemTitle, Label, LanguageSelect, type LanguageSelectOption, type LanguageSelectProps, Link, type LinkProps, List, ListHeader, type ListHeaderProps, ListItem, type ListItemProps, type ListProps, Select, type SelectOption, type SelectProps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, type TerminalExample, TextArea, type TextAreaProps, type Theme, ThemeProvider, type ThemeProviderProps, ThemeToggle, type ThemeToggleProps, Typography, type TypographyProps, WindowFrame, type WindowFrameProps, type WindowTab, alertVariants, badgeVariants, boxVariants, buttonVariants, cardVariants, checkboxVariants, containerVariants, getCountryByCode, getCountryByName, gridVariants, isEUCountry, linkVariants, selectVariants, switchRootVariants, switchThumbVariants, textAreaVariants, typographyVariants, useTheme };
|
|
660
|
+
export { Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Badge, type BadgeProps, BergetLogo, type BergetLogoProps, Box, type BoxProps, type SpacingScale as BoxSpacingScale, Button, type ButtonProps, COUNTRIES, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockProps, Container, type ContainerProps, type Country, CountrySelect, type CountrySelectProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EU_COUNTRY_CODES, FeatureList, type FeatureListProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Grid, type GridColsScale, type GridProps, type GridRowsScale, type SpacingScale$1 as GridSpacingScale, HeroBlock, type HeroBlockProps, Icon, type IconProps, Input, type InputProps, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, type ItemProps, ItemSeparator, ItemTitle, Label, LanguageSelect, type LanguageSelectOption, type LanguageSelectProps, Link, type LinkProps, List, ListHeader, type ListHeaderProps, ListItem, type ListItemProps, type ListProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Select, type SelectOption, type SelectProps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, type TerminalExample, TextArea, type TextAreaProps, type Theme, ThemeProvider, type ThemeProviderProps, ThemeToggle, type ThemeToggleProps, Typography, type TypographyProps, WindowFrame, type WindowFrameProps, type WindowTab, alertVariants, badgeVariants, boxVariants, buttonVariants, cardVariants, checkboxVariants, containerVariants, getCountryByCode, getCountryByName, gridVariants, isEUCountry, linkVariants, navigationMenuTriggerStyle, selectVariants, switchRootVariants, switchThumbVariants, textAreaVariants, typographyVariants, useTheme };
|