@obosbbl/grunnmuren-react 3.0.15 → 3.0.16

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.
Files changed (3) hide show
  1. package/dist/index.d.mts +454 -454
  2. package/dist/index.mjs +1594 -1592
  3. package/package.json +2 -2
package/dist/index.d.mts CHANGED
@@ -1,35 +1,14 @@
1
- import { RouterProvider, ButtonProps as ButtonProps$1, LinkProps, ContextValue, CheckboxProps as CheckboxProps$1, CheckboxGroupProps as CheckboxGroupProps$1, ListBoxItemProps, ListBoxSectionProps, HeadingProps as HeadingProps$1, ComboBoxProps, RadioGroupProps as RadioGroupProps$1, RadioProps as RadioProps$1, SelectProps as SelectProps$1, TextFieldProps as TextFieldProps$1, NumberFieldProps as NumberFieldProps$1, BreadcrumbProps as BreadcrumbProps$1, BreadcrumbsProps as BreadcrumbsProps$1, DisclosureProps as DisclosureProps$1, FileTriggerProps as FileTriggerProps$1, TextProps, LabelProps, DialogTriggerProps as DialogTriggerProps$1, ModalOverlayProps, DialogProps as DialogProps$1, TagGroupProps as TagGroupProps$1, TagListProps as TagListProps$1, TagProps as TagProps$1, TabsProps as TabsProps$1, TabListProps as TabListProps$1, TabProps as TabProps$1, TabPanelProps as TabPanelProps$1, TableProps as TableProps$1, TableHeaderProps as TableHeaderProps$1, ColumnProps, TableBodyProps as TableBodyProps$1, RowProps, CellProps } from 'react-aria-components';
1
+ import { ButtonProps as ButtonProps$1, LinkProps, BreadcrumbProps as BreadcrumbProps$1, BreadcrumbsProps as BreadcrumbsProps$1, ContextValue, CheckboxProps as CheckboxProps$1, CheckboxGroupProps as CheckboxGroupProps$1, ListBoxItemProps, ListBoxSectionProps, HeadingProps as HeadingProps$1, ComboBoxProps, DisclosureProps as DisclosureProps$1, FileTriggerProps as FileTriggerProps$1, RouterProvider, TextProps, LabelProps, DialogTriggerProps as DialogTriggerProps$1, ModalOverlayProps, DialogProps as DialogProps$1, NumberFieldProps as NumberFieldProps$1, RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1, SelectProps as SelectProps$1, TableProps as TableProps$1, TableHeaderProps as TableHeaderProps$1, ColumnProps, TableBodyProps as TableBodyProps$1, RowProps, CellProps, TabsProps as TabsProps$1, TabListProps as TabListProps$1, TabProps as TabProps$1, TabPanelProps as TabPanelProps$1, TagGroupProps as TagGroupProps$1, TagListProps as TagListProps$1, TagProps as TagProps$1, TextFieldProps as TextFieldProps$1 } from 'react-aria-components';
2
2
  export { ListBoxItemProps as ComboboxItemProps, Form, Group, LabelProps, ListBoxItemProps as SelectItemProps, DisclosureGroup as UNSAFE_DisclosureGroup, DisclosureGroupProps as UNSAFE_DisclosureGroupProps } from 'react-aria-components';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
- import { Ref, HTMLProps, HTMLAttributes, ReactNode, RefAttributes, RefObject, Dispatch, SetStateAction, ComponentProps, JSX } from 'react';
5
+ import { Ref, ComponentProps, HTMLAttributes, JSX, HTMLProps, ReactNode, RefAttributes, RefObject, Dispatch, SetStateAction } from 'react';
6
6
  import * as cva from 'cva';
7
7
  import { VariantProps } from 'cva';
8
8
  import { DateFormatterOptions } from 'react-aria';
9
9
  import { DisclosureState } from 'react-stately';
10
10
  import { FormValidationProps } from '@react-stately/form';
11
11
 
12
- type Locale = 'nb' | 'sv' | 'en';
13
- /**
14
- * Returns the locale set in `<GrunnmurenProvider />`
15
- */
16
- declare function _useLocale(): Locale;
17
-
18
- type RouterProviderProps = React.ComponentProps<typeof RouterProvider>;
19
- type GrunnmurenProviderProps = {
20
- children: React.ReactNode;
21
- /**
22
- * The locale to apply to the children.
23
- * @default nb
24
- */
25
- locale?: Locale;
26
- /** The router to use for client side navigation */
27
- navigate?: RouterProviderProps['navigate'];
28
- /** Converts a router-specific href to a native HTML href, e.g. prepending a base path */
29
- useHref?: RouterProviderProps['useHref'];
30
- };
31
- declare function GrunnmurenProvider({ children, locale, navigate, useHref, }: GrunnmurenProviderProps): react_jsx_runtime.JSX.Element;
32
-
33
12
  type AccordionProps = {
34
13
  children: React.ReactNode;
35
14
  /** Additional CSS className for the element. */
@@ -56,6 +35,68 @@ type AccordionItemProps = {
56
35
  declare function Accordion(props: AccordionProps): react_jsx_runtime.JSX.Element;
57
36
  declare function AccordionItem(props: AccordionItemProps): react_jsx_runtime.JSX.Element;
58
37
 
38
+ declare const alertVariants: (props?: ({
39
+ variant?: "info" | "success" | "warning" | "danger" | undefined;
40
+ } & ({
41
+ class?: cva.ClassValue;
42
+ className?: never;
43
+ } | {
44
+ class?: never;
45
+ className?: cva.ClassValue;
46
+ })) | undefined) => string;
47
+ type Props = VariantProps<typeof alertVariants> & {
48
+ children: React.ReactNode;
49
+ /**
50
+ * The ARIA role for the alertbox.
51
+ */
52
+ role: 'alert' | 'status' | 'none';
53
+ /** Additional CSS className for the element. */
54
+ className?: string;
55
+ /** Overrides the default icon for the alertbox variant. Should be used sparingly as the default icons are visually connected to the color of the variant. */
56
+ icon?: React.ComponentType;
57
+ /**
58
+ * Controls if the alert is expandable or not
59
+ * @default false
60
+ */
61
+ isExpandable?: boolean;
62
+ /**
63
+ * Controls if the alert can be dismissed with a close button.
64
+ * @default false
65
+ */
66
+ isDismissable?: boolean;
67
+ /**
68
+ * Controls if the alert is rendered or not.
69
+ * This is used to control the open/closed state of the component; make the component "controlled".
70
+ * @default false
71
+ */
72
+ isDismissed?: boolean;
73
+ /**
74
+ * Callback that should be triggered when a dismissable alert is closed.
75
+ * This is used to control the open/closed state of the component; make the component "controlled".
76
+ */
77
+ onDismiss?: () => void;
78
+ };
79
+ declare const Alertbox: ({ children, role, className, icon, variant, isDismissable, isDismissed, onDismiss, isExpandable, }: Props) => react_jsx_runtime.JSX.Element | undefined;
80
+
81
+ type AvatarProps = ComponentProps<'img'>;
82
+ declare const Avatar: ({ src, alt, className, onError, loading, ...rest }: AvatarProps) => react_jsx_runtime.JSX.Element;
83
+
84
+ type ButtonOrLinkProps$1 = {
85
+ children?: React.ReactNode;
86
+ /** Additional CSS className for the element. */
87
+ className?: string;
88
+ /** Determines whether to use an anchor or a button for the Backlink */
89
+ href?: LinkProps['href'];
90
+ /** To add a permanent underline on the link (not only on hover)
91
+ * @default false
92
+ */
93
+ withUnderline?: boolean;
94
+ /** Ref to the element. */
95
+ ref?: Ref<HTMLAnchorElement | HTMLButtonElement>;
96
+ };
97
+ type BacklinkProps = (ButtonProps$1 | LinkProps) & ButtonOrLinkProps$1;
98
+ declare function Backlink(props: BacklinkProps): react_jsx_runtime.JSX.Element;
99
+
59
100
  type BadgeProps = VariantProps<typeof badgeVariants> & {
60
101
  children?: React.ReactNode;
61
102
  /** Additional CSS className for the element. */
@@ -75,6 +116,29 @@ declare const badgeVariants: (props?: ({
75
116
  })) | undefined) => string;
76
117
  declare function Badge(props: BadgeProps): react_jsx_runtime.JSX.Element;
77
118
 
119
+ type BreadcrumbProps = {
120
+ /** Additional CSS className for the element. */
121
+ className?: string;
122
+ children?: React.ReactNode;
123
+ /** Additional style properties for the element. */
124
+ style?: React.CSSProperties;
125
+ /** The URL to navigate to when clicking the breadcrumb. */
126
+ href?: LinkProps['href'];
127
+ /** Ref to the element. */
128
+ ref?: Ref<HTMLLIElement>;
129
+ } & Omit<BreadcrumbProps$1, 'className' | 'style'>;
130
+ declare function Breadcrumb(props: BreadcrumbProps): react_jsx_runtime.JSX.Element;
131
+
132
+ type BreadcrumbsProps = {
133
+ /** Additional CSS className for the element. */
134
+ className?: string;
135
+ /** Additional style properties for the element. */
136
+ style?: React.CSSProperties;
137
+ /** Ref to the element. */
138
+ ref?: Ref<HTMLOListElement>;
139
+ } & Omit<BreadcrumbsProps$1<BreadcrumbProps>, 'className' | 'style'>;
140
+ declare function Breadcrumbs(props: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
141
+
78
142
  /**
79
143
  * Figma: https://www.figma.com/file/9OvSg0ZXI5E1eQYi7AWiWn/Grunnmuren-2.0-%E2%94%82-Designsystem?node-id=30%3A2574&mode=dev
80
144
  */
@@ -90,7 +154,7 @@ declare const buttonVariants: (props?: ({
90
154
  class?: never;
91
155
  className?: cva.ClassValue;
92
156
  })) | undefined) => string;
93
- type ButtonOrLinkProps$1 = VariantProps<typeof buttonVariants> & {
157
+ type ButtonOrLinkProps = VariantProps<typeof buttonVariants> & {
94
158
  children?: React.ReactNode;
95
159
  href?: LinkProps['href'];
96
160
  /** Additional style properties for the element. */
@@ -98,10 +162,76 @@ type ButtonOrLinkProps$1 = VariantProps<typeof buttonVariants> & {
98
162
  /** Ref to the element. */
99
163
  ref?: Ref<HTMLButtonElement | HTMLAnchorElement>;
100
164
  };
101
- type ButtonProps = (ButtonProps$1 | LinkProps) & ButtonOrLinkProps$1;
165
+ type ButtonProps = (ButtonProps$1 | LinkProps) & ButtonOrLinkProps;
102
166
  declare const ButtonContext: react.Context<ContextValue<ButtonProps, HTMLButtonElement | HTMLAnchorElement>>;
103
167
  declare function Button({ ref, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
104
168
 
169
+ type CardProps = VariantProps<typeof cardVariants> & HTMLAttributes<HTMLDivElement> & {
170
+ children?: React.ReactNode;
171
+ };
172
+ declare const cardVariants: (props?: ({
173
+ variant?: "subtle" | "outlined" | undefined;
174
+ layout?: "horizontal" | "vertical" | undefined;
175
+ } & ({
176
+ class?: cva.ClassValue;
177
+ className?: never;
178
+ } | {
179
+ class?: never;
180
+ className?: cva.ClassValue;
181
+ })) | undefined) => string;
182
+ declare const Card: ({ children, className, variant, layout, ...restProps }: CardProps) => react_jsx_runtime.JSX.Element;
183
+ type CardLinkWrapperProps = {
184
+ children?: React.ReactNode;
185
+ className?: string;
186
+ } & {
187
+ [K in keyof Omit<LinkProps, 'className' | 'children'>]?: never;
188
+ };
189
+ type CardLinkProps = (Omit<LinkProps, 'href'> & Required<Pick<LinkProps, 'href'>>) | CardLinkWrapperProps;
190
+ /**
191
+ * A component that creates a clickable area on a card.
192
+ * It can be used either as a wrapper around a link or as a standalone link.
193
+ */
194
+ declare const CardLink: ({ className: _className, href, ...restProps }: CardLinkProps) => react_jsx_runtime.JSX.Element;
195
+
196
+ type CarouselProps = {
197
+ /** The <CarouselItem/> components to be displayed within the carousel. */
198
+ children: React.ReactNode;
199
+ /** Additional CSS className for the element. */
200
+ className?: string;
201
+ /**
202
+ * Callback that is triggered when a user navigates to new item in the Carousel.
203
+ * The argument to the callback is an object containing `index` of the new item scrolled into view and the `id` of that item (if set on the `<CarouselItem>`)
204
+ * It also provides `prevIndex` which is the index of the previous item that was in view
205
+ * And `prevId`, which is the id of the previous item that was in view (if set on the `<CarouselItem>`)
206
+ * @param item { index: number; id?: string; prevIndex: number; prevId?: string }
207
+ */
208
+ onChange?: (item: CarouselItem) => void;
209
+ };
210
+ declare const Carousel: ({ className, children, onChange }: CarouselProps) => react_jsx_runtime.JSX.Element;
211
+ type CarouselItemsProps = {
212
+ /** The <CarouselItem/> components to be displayed within the carousel. */
213
+ children: React.ReactNode;
214
+ /** Additional CSS className for the element. */
215
+ className?: string;
216
+ };
217
+ declare const CarouselItems: ({ className, children }: CarouselItemsProps) => react_jsx_runtime.JSX.Element;
218
+ type CarouselItemProps = {
219
+ /** The component/components to display as the <CarouselItem/>. */
220
+ children: JSX.Element | JSX.Element[];
221
+ /** Additional CSS className for the element. */
222
+ className?: string;
223
+ id?: string;
224
+ };
225
+ type CarouselItem = Pick<CarouselItemProps, 'id'> & {
226
+ /** The index of the item that is currently in view */
227
+ index: number;
228
+ /** The index of the previous item that was in view */
229
+ prevIndex: number;
230
+ /** The id of the previous item that was in view */
231
+ prevId?: CarouselItemProps['id'];
232
+ };
233
+ declare const CarouselItem: ({ className, children, id }: CarouselItemProps) => react_jsx_runtime.JSX.Element;
234
+
105
235
  type CheckboxProps = {
106
236
  children: React.ReactNode;
107
237
  /** Additional CSS className for the element. */
@@ -168,235 +298,54 @@ type ComboboxProps<T extends object> = {
168
298
  } & Omit<ComboBoxProps<T>, 'className' | 'isReadOnly' | 'isDisabled' | 'children' | 'style'>;
169
299
  declare function Combobox<T extends object>(props: ComboboxProps<T>): react_jsx_runtime.JSX.Element;
170
300
 
171
- type RadioGroupProps = {
301
+ type HeadingProps = Omit<HTMLProps<HTMLHeadingElement>, 'size'> & VariantProps<typeof headingVariants> & {
302
+ children?: React.ReactNode;
303
+ /** The semantic level of the heading */
304
+ level: 1 | 2 | 3 | 4 | 5 | 6;
305
+ /** @private Used internally for slotted components */
306
+ _innerWrapper?: (children: React.ReactNode) => React.ReactNode;
307
+ /** @private Used internally for slotted components */
308
+ _outerWrapper?: (children: React.ReactNode) => React.ReactNode;
309
+ /** Ref for the element. */
310
+ ref?: Ref<HTMLHeadingElement>;
311
+ };
312
+ declare const HeadingContext: react.Context<ContextValue<Partial<HeadingProps>, HTMLHeadingElement>>;
313
+ declare const headingVariants: (props?: ({
314
+ size?: "xl" | "l" | "m" | "s" | "xs" | undefined;
315
+ } & ({
316
+ class?: cva.ClassValue;
317
+ className?: never;
318
+ } | {
319
+ class?: never;
320
+ className?: cva.ClassValue;
321
+ })) | undefined) => string;
322
+ declare const Heading: ({ ref, ...props }: HeadingProps) => string | number | bigint | boolean | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
323
+ declare const ContentContext: react.Context<ContextValue<Partial<ContentProps>, HTMLDivElement>>;
324
+ type ContentProps = HTMLProps<HTMLDivElement> & {
172
325
  children: React.ReactNode;
173
- /** Additional CSS className for the element. */
174
- className?: string;
175
- /** Help text for the form control. */
176
- description?: React.ReactNode;
177
- /** Error message for the form control. Automatically sets `isInvalid` to true */
178
- errorMessage?: React.ReactNode;
179
- /** Label for the form control. */
180
- label?: React.ReactNode;
181
- /** Additional style properties for the element. */
182
- style?: React.CSSProperties;
326
+ /** @private Used internally for slotted components */
327
+ _outerWrapper?: (children: React.ReactNode) => React.ReactNode;
183
328
  /** Ref for the element. */
184
329
  ref?: Ref<HTMLDivElement>;
185
- } & Omit<RadioGroupProps$1, 'className' | 'isReadOnly' | 'isDisabled' | 'children' | 'style' | 'orientation'>;
186
- declare function RadioGroup(props: RadioGroupProps): react_jsx_runtime.JSX.Element;
187
-
188
- type RadioProps = {
330
+ };
331
+ declare const Content: ({ ref, ...props }: ContentProps) => string | number | bigint | boolean | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
332
+ type MediaProps = HTMLProps<HTMLDivElement> & VariantProps<typeof mediaVariant> & {
189
333
  children: React.ReactNode;
190
- /** Additional CSS className for the element. */
191
- className?: string;
192
- /** Help text for the form control. */
193
- description?: React.ReactNode;
194
- /** Additional style properties for the element. */
195
- style?: React.CSSProperties;
196
334
  /** Ref for the element. */
197
- ref?: Ref<HTMLLabelElement>;
198
- } & Omit<RadioProps$1, 'isDisabled' | 'children' | 'style'>;
199
- declare function Radio(props: RadioProps): react_jsx_runtime.JSX.Element;
200
-
201
- type SelectProps<T extends object> = {
202
- children: React.ReactNode;
203
- /** Additional CSS className for the element. */
204
- className?: string;
205
- /** Help text for the form control. */
206
- description?: React.ReactNode;
207
- /** Error message for the form control. Automatically sets `isInvalid` to true */
208
- errorMessage?: React.ReactNode;
209
- /** Label for the form control. */
210
- label?: React.ReactNode;
211
- /** Placeholder text. Only visible when the input value is empty. */
212
- placeholder?: string;
213
- /** Additional style properties for the element. */
214
- style?: React.CSSProperties;
215
- /** Ref for the button element. */
216
- ref?: Ref<HTMLButtonElement>;
217
- } & Omit<SelectProps$1<T>, 'className' | 'isReadOnly' | 'isDisabled' | 'children' | 'style'>;
218
- declare function Select<T extends object>(props: SelectProps<T>): react_jsx_runtime.JSX.Element;
219
-
220
- type TextAreaProps = {
221
- /** Additional CSS className for the element. */
222
- className?: string;
223
- /** Help text for the form control. */
224
- description?: React.ReactNode;
225
- /** Error message for the form control. Automatically sets `isInvalid` to true */
226
- errorMessage?: React.ReactNode;
227
- /** Label for the form control. */
228
- label?: React.ReactNode;
229
- /** Placeholder text. Only visible when the input value is empty. */
230
- placeholder?: string;
231
- /** Additional style properties for the element. */
232
- style?: React.CSSProperties;
233
- /**
234
- * The number of visible text lines for the control.
235
- * @default 2
236
- */
237
- rows?: number;
238
- /** Ref for the textarea element. */
239
- ref?: Ref<HTMLTextAreaElement>;
240
- } & Omit<TextFieldProps$1, 'className' | 'isReadOnly' | 'isDisabled' | 'children' | 'style'>;
241
- declare function TextArea(props: TextAreaProps): react_jsx_runtime.JSX.Element;
242
-
243
- type TextFieldProps = {
244
- /** Additional CSS className for the element. */
245
- className?: string;
246
- /** Help text for the form control. */
247
- description?: React.ReactNode;
248
- /** Error message for the form control. Automatically sets `isInvalid` to true */
249
- errorMessage?: React.ReactNode;
250
- /** Element to be rendered in the left side of the input. */
251
- leftAddon?: React.ReactNode;
252
- /** Label for the form control. */
253
- label?: React.ReactNode;
254
- /** Element to be rendered in the right side of the input. */
255
- rightAddon?: React.ReactNode;
256
- /** Placeholder text. Only visible when the input value is empty. */
257
- placeholder?: string;
258
- /**
259
- * Text alignment of the input
260
- * @default left
261
- */
262
- textAlign?: 'left' | 'right';
263
- /** Additional style properties for the element. */
264
- style?: React.CSSProperties;
265
- /** Add a divider between the left/right addons and the input, a value of 0 will be ignored */
266
- withAddonDivider?: boolean;
267
- /** Defines the number of characters and determines the width of the input element */
268
- size?: number;
269
- /** Ref for the input element. */
270
- ref?: Ref<HTMLInputElement>;
271
- } & Omit<TextFieldProps$1, 'className' | 'isReadOnly' | 'isDisabled' | 'children' | 'style'>;
272
- declare function TextField(props: TextFieldProps): react_jsx_runtime.JSX.Element;
273
-
274
- type NumberFieldProps = {
275
- /** Additional CSS className for the element. */
276
- className?: string;
277
- /** Help text for the form control. */
278
- description?: React.ReactNode;
279
- /** Error message for the form control. Automatically sets `isInvalid` to true */
280
- errorMessage?: React.ReactNode;
281
- /** Element to be rendered in the left side of the input. */
282
- leftAddon?: React.ReactNode;
283
- /** Label for the form control. */
284
- label?: React.ReactNode;
285
- /** Element to be rendered in the right side of the input. */
286
- rightAddon?: React.ReactNode;
287
- /** Placeholder text. Only visible when the input value is empty. */
288
- placeholder?: string;
289
- /**
290
- * Text alignment of the input
291
- * @default left
292
- */
293
- textAlign?: 'left' | 'right';
294
- /** Additional style properties for the element. */
295
- style?: React.CSSProperties;
296
- /** Add a divider between the left/right addons and the input */
297
- withAddonDivider?: boolean;
298
- /** Defines the number of characters and determines the width of the input element, a value of 0 will be ignored */
299
- size?: number;
300
- /** Defines the maximum numeric value */
301
- maxValue?: number;
302
- /** Defines the minimum numeric value */
303
- minValue?: number;
304
- /** Ref for the input element. */
305
- ref?: Ref<HTMLInputElement>;
306
- } & Omit<NumberFieldProps$1, 'className' | 'isReadOnly' | 'isDisabled' | 'children' | 'style' | 'hideStepper'>;
307
- declare function NumberField(props: NumberFieldProps): react_jsx_runtime.JSX.Element;
308
-
309
- declare const alertVariants: (props?: ({
310
- variant?: "info" | "success" | "warning" | "danger" | undefined;
311
- } & ({
312
- class?: cva.ClassValue;
313
- className?: never;
314
- } | {
315
- class?: never;
316
- className?: cva.ClassValue;
317
- })) | undefined) => string;
318
- type Props = VariantProps<typeof alertVariants> & {
319
- children: React.ReactNode;
320
- /**
321
- * The ARIA role for the alertbox.
322
- */
323
- role: 'alert' | 'status' | 'none';
324
- /** Additional CSS className for the element. */
325
- className?: string;
326
- /** Overrides the default icon for the alertbox variant. Should be used sparingly as the default icons are visually connected to the color of the variant. */
327
- icon?: React.ComponentType;
328
- /**
329
- * Controls if the alert is expandable or not
330
- * @default false
331
- */
332
- isExpandable?: boolean;
333
- /**
334
- * Controls if the alert can be dismissed with a close button.
335
- * @default false
336
- */
337
- isDismissable?: boolean;
338
- /**
339
- * Controls if the alert is rendered or not.
340
- * This is used to control the open/closed state of the component; make the component "controlled".
341
- * @default false
342
- */
343
- isDismissed?: boolean;
344
- /**
345
- * Callback that should be triggered when a dismissable alert is closed.
346
- * This is used to control the open/closed state of the component; make the component "controlled".
347
- */
348
- onDismiss?: () => void;
349
- };
350
- declare const Alertbox: ({ children, role, className, icon, variant, isDismissable, isDismissed, onDismiss, isExpandable, }: Props) => react_jsx_runtime.JSX.Element | undefined;
351
-
352
- type HeadingProps = Omit<HTMLProps<HTMLHeadingElement>, 'size'> & VariantProps<typeof headingVariants> & {
353
- children?: React.ReactNode;
354
- /** The semantic level of the heading */
355
- level: 1 | 2 | 3 | 4 | 5 | 6;
356
- /** @private Used internally for slotted components */
357
- _innerWrapper?: (children: React.ReactNode) => React.ReactNode;
358
- /** @private Used internally for slotted components */
359
- _outerWrapper?: (children: React.ReactNode) => React.ReactNode;
360
- /** Ref for the element. */
361
- ref?: Ref<HTMLHeadingElement>;
362
- };
363
- declare const HeadingContext: react.Context<ContextValue<Partial<HeadingProps>, HTMLHeadingElement>>;
364
- declare const headingVariants: (props?: ({
365
- size?: "s" | "xl" | "l" | "m" | "xs" | undefined;
366
- } & ({
367
- class?: cva.ClassValue;
368
- className?: never;
369
- } | {
370
- class?: never;
371
- className?: cva.ClassValue;
372
- })) | undefined) => string;
373
- declare const Heading: ({ ref, ...props }: HeadingProps) => string | number | bigint | boolean | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
374
- declare const ContentContext: react.Context<ContextValue<Partial<ContentProps>, HTMLDivElement>>;
375
- type ContentProps = HTMLProps<HTMLDivElement> & {
376
- children: React.ReactNode;
377
- /** @private Used internally for slotted components */
378
- _outerWrapper?: (children: React.ReactNode) => React.ReactNode;
379
- /** Ref for the element. */
380
- ref?: Ref<HTMLDivElement>;
381
- };
382
- declare const Content: ({ ref, ...props }: ContentProps) => string | number | bigint | boolean | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
383
- type MediaProps = HTMLProps<HTMLDivElement> & VariantProps<typeof mediaVariant> & {
384
- children: React.ReactNode;
385
- /** Ref for the element. */
386
- ref?: Ref<HTMLDivElement>;
387
- };
388
- declare const mediaVariant: (props?: ({
389
- fit?: "cover" | "contain" | undefined;
390
- } & ({
391
- class?: cva.ClassValue;
392
- className?: never;
393
- } | {
394
- class?: never;
395
- className?: cva.ClassValue;
396
- })) | undefined) => string;
397
- declare const MediaContext: react.Context<ContextValue<Partial<MediaProps>, HTMLDivElement>>;
398
- declare const Media: ({ ref, ...props }: MediaProps) => react_jsx_runtime.JSX.Element;
399
- type FooterProps = HTMLProps<HTMLDivElement> & {
335
+ ref?: Ref<HTMLDivElement>;
336
+ };
337
+ declare const mediaVariant: (props?: ({
338
+ fit?: "cover" | "contain" | undefined;
339
+ } & ({
340
+ class?: cva.ClassValue;
341
+ className?: never;
342
+ } | {
343
+ class?: never;
344
+ className?: cva.ClassValue;
345
+ })) | undefined) => string;
346
+ declare const MediaContext: react.Context<ContextValue<Partial<MediaProps>, HTMLDivElement>>;
347
+ declare const Media: ({ ref, ...props }: MediaProps) => react_jsx_runtime.JSX.Element;
348
+ type FooterProps = HTMLProps<HTMLDivElement> & {
400
349
  children: React.ReactNode;
401
350
  };
402
351
  type CaptionProps = HTMLProps<HTMLDivElement> & {
@@ -405,72 +354,6 @@ type CaptionProps = HTMLProps<HTMLDivElement> & {
405
354
  declare const Caption: ({ className, ...restProps }: CaptionProps) => react_jsx_runtime.JSX.Element;
406
355
  declare const Footer: (props: FooterProps) => react_jsx_runtime.JSX.Element;
407
356
 
408
- type BreadcrumbProps = {
409
- /** Additional CSS className for the element. */
410
- className?: string;
411
- children?: React.ReactNode;
412
- /** Additional style properties for the element. */
413
- style?: React.CSSProperties;
414
- /** The URL to navigate to when clicking the breadcrumb. */
415
- href?: LinkProps['href'];
416
- /** Ref to the element. */
417
- ref?: Ref<HTMLLIElement>;
418
- } & Omit<BreadcrumbProps$1, 'className' | 'style'>;
419
- declare function Breadcrumb(props: BreadcrumbProps): react_jsx_runtime.JSX.Element;
420
-
421
- type BreadcrumbsProps = {
422
- /** Additional CSS className for the element. */
423
- className?: string;
424
- /** Additional style properties for the element. */
425
- style?: React.CSSProperties;
426
- /** Ref to the element. */
427
- ref?: Ref<HTMLOListElement>;
428
- } & Omit<BreadcrumbsProps$1<BreadcrumbProps>, 'className' | 'style'>;
429
- declare function Breadcrumbs(props: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
430
-
431
- type ButtonOrLinkProps = {
432
- children?: React.ReactNode;
433
- /** Additional CSS className for the element. */
434
- className?: string;
435
- /** Determines whether to use an anchor or a button for the Backlink */
436
- href?: LinkProps['href'];
437
- /** To add a permanent underline on the link (not only on hover)
438
- * @default false
439
- */
440
- withUnderline?: boolean;
441
- /** Ref to the element. */
442
- ref?: Ref<HTMLAnchorElement | HTMLButtonElement>;
443
- };
444
- type BacklinkProps = (ButtonProps$1 | LinkProps) & ButtonOrLinkProps;
445
- declare function Backlink(props: BacklinkProps): react_jsx_runtime.JSX.Element;
446
-
447
- type CardProps = VariantProps<typeof cardVariants> & HTMLAttributes<HTMLDivElement> & {
448
- children?: React.ReactNode;
449
- };
450
- declare const cardVariants: (props?: ({
451
- variant?: "subtle" | "outlined" | undefined;
452
- layout?: "horizontal" | "vertical" | undefined;
453
- } & ({
454
- class?: cva.ClassValue;
455
- className?: never;
456
- } | {
457
- class?: never;
458
- className?: cva.ClassValue;
459
- })) | undefined) => string;
460
- declare const Card: ({ children, className, variant, layout, ...restProps }: CardProps) => react_jsx_runtime.JSX.Element;
461
- type CardLinkWrapperProps = {
462
- children?: React.ReactNode;
463
- className?: string;
464
- } & {
465
- [K in keyof Omit<LinkProps, 'className' | 'children'>]?: never;
466
- };
467
- type CardLinkProps = (Omit<LinkProps, 'href'> & Required<Pick<LinkProps, 'href'>>) | CardLinkWrapperProps;
468
- /**
469
- * A component that creates a clickable area on a card.
470
- * It can be used either as a wrapper around a link or as a standalone link.
471
- */
472
- declare const CardLink: ({ className: _className, href, ...restProps }: CardLinkProps) => react_jsx_runtime.JSX.Element;
473
-
474
357
  type DateFormatterProps = {
475
358
  value: Date | string;
476
359
  options?: DateFormatterOptions;
@@ -484,22 +367,6 @@ type DateFormatterProps = {
484
367
  */
485
368
  declare const DateFormatter: ({ options: _options, value, children: render, }: DateFormatterProps) => ReactNode;
486
369
 
487
- type VideoLoopProps = {
488
- /** The video url */
489
- src: string;
490
- /** The video format */
491
- format: string;
492
- /**
493
- * The content of the video must have a text description, so that it is accessible to screen readers.
494
- * You can either provide just a caption, just an alt text, or both a caption and an alt text.
495
- * Make sure the alt text doesn't repeat too much of the caption text, if so just a caption is sufficent.
496
- * Think of this just as an alt text, but for a muted video - this text will not be visible, but read by screen readers.
497
- * */
498
- alt?: string;
499
- className?: string;
500
- };
501
- declare const VideoLoop: ({ src, format, alt, className }: VideoLoopProps) => react_jsx_runtime.JSX.Element;
502
-
503
370
  declare const disclosureButtonVariants: (props?: ({
504
371
  withChevron?: boolean | undefined;
505
372
  isIconOnly?: boolean | undefined;
@@ -542,6 +409,41 @@ type FileUploadProps = Omit<FileTriggerProps, 'onSelect'> & {
542
409
  };
543
410
  declare const FileUpload: ({ children, files: _files, onChange, validate, isInvalid: _isInvalid, errorMessage, isRequired, allowsMultiple, ref, ...fileTriggerProps }: FileUploadProps) => react_jsx_runtime.JSX.Element;
544
411
 
412
+ type Locale = 'nb' | 'sv' | 'en';
413
+ /**
414
+ * Returns the locale set in `<GrunnmurenProvider />`
415
+ */
416
+ declare function _useLocale(): Locale;
417
+
418
+ type RouterProviderProps = React.ComponentProps<typeof RouterProvider>;
419
+ type GrunnmurenProviderProps = {
420
+ children: React.ReactNode;
421
+ /**
422
+ * The locale to apply to the children.
423
+ * @default nb
424
+ */
425
+ locale?: Locale;
426
+ /** The router to use for client side navigation */
427
+ navigate?: RouterProviderProps['navigate'];
428
+ /** Converts a router-specific href to a native HTML href, e.g. prepending a base path */
429
+ useHref?: RouterProviderProps['useHref'];
430
+ };
431
+ declare function GrunnmurenProvider({ children, locale, navigate, useHref, }: GrunnmurenProviderProps): react_jsx_runtime.JSX.Element;
432
+
433
+ type HeroProps = HTMLProps<HTMLDivElement> & VariantProps<typeof variants> & {
434
+ children: React.ReactNode;
435
+ };
436
+ declare const variants: (props?: ({
437
+ variant?: "standard" | "full-bleed" | "two-column" | undefined;
438
+ } & ({
439
+ class?: cva.ClassValue;
440
+ className?: never;
441
+ } | {
442
+ class?: never;
443
+ className?: cva.ClassValue;
444
+ })) | undefined) => string;
445
+ declare const Hero: ({ variant, className, children }: HeroProps) => react_jsx_runtime.JSX.Element;
446
+
545
447
  type DescriptionProps = TextProps;
546
448
  declare function Description(props: DescriptionProps): react_jsx_runtime.JSX.Element;
547
449
 
@@ -550,8 +452,24 @@ declare function ErrorMessage(props: ErrorMessageProps): react_jsx_runtime.JSX.E
550
452
 
551
453
  declare function Label(props: LabelProps): react_jsx_runtime.JSX.Element;
552
454
 
553
- type AvatarProps = ComponentProps<'img'>;
554
- declare const Avatar: ({ src, alt, className, onError, loading, ...rest }: AvatarProps) => react_jsx_runtime.JSX.Element;
455
+ type CustomLinkProps = LinkProps & {
456
+ children: ReactNode;
457
+ };
458
+ /**
459
+ * A basic link component that extends react-aria-components Link with consistent styling.
460
+ * Provides accessible focus styles and maintains design system consistency.
461
+ */
462
+ declare const CustomLink: ({ children, className, ...restProps }: CustomLinkProps) => react_jsx_runtime.JSX.Element;
463
+
464
+ type LinkListProps = React.HTMLProps<HTMLDivElement> & {
465
+ children: JSX.Element | JSX.Element[];
466
+ };
467
+ declare const LinkList: ({ className, children, ...restProps }: LinkListProps) => react_jsx_runtime.JSX.Element;
468
+ type LinkListItemProps = LinkProps & {
469
+ children: ReactNode;
470
+ isExternal?: boolean;
471
+ };
472
+ declare const LinkListItem: ({ children, isExternal, className, ...restProps }: LinkListItemProps) => react_jsx_runtime.JSX.Element;
555
473
 
556
474
  type DialogTriggerProps = DialogTriggerProps$1;
557
475
  declare const DialogTrigger: (props: DialogTriggerProps) => react_jsx_runtime.JSX.Element;
@@ -562,99 +480,127 @@ type DialogProps = DialogProps$1 & {
562
480
  };
563
481
  declare const Dialog: ({ className, children, ...restProps }: DialogProps) => react_jsx_runtime.JSX.Element;
564
482
 
565
- type TagGroupProps = Omit<TagGroupProps$1, 'className'> & RefAttributes<HTMLDivElement> & {
483
+ type NumberFieldProps = {
484
+ /** Additional CSS className for the element. */
485
+ className?: string;
486
+ /** Help text for the form control. */
487
+ description?: React.ReactNode;
488
+ /** Error message for the form control. Automatically sets `isInvalid` to true */
489
+ errorMessage?: React.ReactNode;
490
+ /** Element to be rendered in the left side of the input. */
491
+ leftAddon?: React.ReactNode;
492
+ /** Label for the form control. */
493
+ label?: React.ReactNode;
494
+ /** Element to be rendered in the right side of the input. */
495
+ rightAddon?: React.ReactNode;
496
+ /** Placeholder text. Only visible when the input value is empty. */
497
+ placeholder?: string;
566
498
  /**
567
- * CSS classes to apply to the tag group
499
+ * Text alignment of the input
500
+ * @default left
568
501
  */
502
+ textAlign?: 'left' | 'right';
503
+ /** Additional style properties for the element. */
504
+ style?: React.CSSProperties;
505
+ /** Add a divider between the left/right addons and the input */
506
+ withAddonDivider?: boolean;
507
+ /** Defines the number of characters and determines the width of the input element, a value of 0 will be ignored */
508
+ size?: number;
509
+ /** Defines the maximum numeric value */
510
+ maxValue?: number;
511
+ /** Defines the minimum numeric value */
512
+ minValue?: number;
513
+ /** Ref for the input element. */
514
+ ref?: Ref<HTMLInputElement>;
515
+ } & Omit<NumberFieldProps$1, 'className' | 'isReadOnly' | 'isDisabled' | 'children' | 'style' | 'hideStepper'>;
516
+ declare function NumberField(props: NumberFieldProps): react_jsx_runtime.JSX.Element;
517
+
518
+ type RadioProps = {
519
+ children: React.ReactNode;
520
+ /** Additional CSS className for the element. */
521
+ className?: string;
522
+ /** Help text for the form control. */
523
+ description?: React.ReactNode;
524
+ /** Additional style properties for the element. */
525
+ style?: React.CSSProperties;
526
+ /** Ref for the element. */
527
+ ref?: Ref<HTMLLabelElement>;
528
+ } & Omit<RadioProps$1, 'isDisabled' | 'children' | 'style'>;
529
+ declare function Radio(props: RadioProps): react_jsx_runtime.JSX.Element;
530
+
531
+ type RadioGroupProps = {
532
+ children: React.ReactNode;
533
+ /** Additional CSS className for the element. */
534
+ className?: string;
535
+ /** Help text for the form control. */
536
+ description?: React.ReactNode;
537
+ /** Error message for the form control. Automatically sets `isInvalid` to true */
538
+ errorMessage?: React.ReactNode;
539
+ /** Label for the form control. */
540
+ label?: React.ReactNode;
541
+ /** Additional style properties for the element. */
542
+ style?: React.CSSProperties;
543
+ /** Ref for the element. */
544
+ ref?: Ref<HTMLDivElement>;
545
+ } & Omit<RadioGroupProps$1, 'className' | 'isReadOnly' | 'isDisabled' | 'children' | 'style' | 'orientation'>;
546
+ declare function RadioGroup(props: RadioGroupProps): react_jsx_runtime.JSX.Element;
547
+
548
+ type SelectProps<T extends object> = {
549
+ children: React.ReactNode;
550
+ /** Additional CSS className for the element. */
569
551
  className?: string;
552
+ /** Help text for the form control. */
553
+ description?: React.ReactNode;
554
+ /** Error message for the form control. Automatically sets `isInvalid` to true */
555
+ errorMessage?: React.ReactNode;
556
+ /** Label for the form control. */
557
+ label?: React.ReactNode;
558
+ /** Placeholder text. Only visible when the input value is empty. */
559
+ placeholder?: string;
560
+ /** Additional style properties for the element. */
561
+ style?: React.CSSProperties;
562
+ /** Ref for the button element. */
563
+ ref?: Ref<HTMLButtonElement>;
564
+ } & Omit<SelectProps$1<T>, 'className' | 'isReadOnly' | 'isDisabled' | 'children' | 'style'>;
565
+ declare function Select<T extends object>(props: SelectProps<T>): react_jsx_runtime.JSX.Element;
566
+
567
+ type TableProps = Omit<TableProps$1, 'aria-label' | 'aria-labelledby'> & RefAttributes<HTMLTableElement> & {
570
568
  /**
571
- * The function to call when the tag is removed
572
- */
573
- onRemove?: (key: React.Key) => void;
574
- /**
575
- * The selection mode for the tag group
576
- * @default "single"
577
- */
578
- selectionMode?: 'single' | 'multiple';
579
- };
580
- type TagListProps = Omit<TagListProps$1<object>, 'className'> & RefAttributes<HTMLDivElement> & {
581
- /**
582
- * CSS classes to apply to the tag list
569
+ * Visual variant of the table
570
+ * @default 'default'
583
571
  */
584
- className?: string;
572
+ variant?: 'default' | 'zebra-striped';
573
+ } & ({
574
+ 'aria-label': string;
575
+ 'aria-labelledby'?: never;
576
+ } | {
577
+ 'aria-label'?: never;
578
+ 'aria-labelledby': string;
579
+ });
580
+ type TableHeaderProps = TableHeaderProps$1<object> & RefAttributes<HTMLTableSectionElement>;
581
+ type TableColumnProps = ColumnProps & RefAttributes<HTMLTableCellElement> & {
582
+ children: React.ReactNode;
585
583
  };
586
- type TagProps = Omit<TagProps$1, 'className'> & RefAttributes<HTMLDivElement> & {
584
+ type TableBodyProps = TableBodyProps$1<object> & RefAttributes<HTMLTableSectionElement>;
585
+ type TableRowProps = RowProps<object> & RefAttributes<HTMLTableRowElement>;
586
+ type TableCellProps = CellProps & RefAttributes<HTMLTableCellElement> & {
587
587
  children: React.ReactNode;
588
- /**
589
- * CSS classes to apply to the tag
590
- */
591
- className?: string;
592
588
  };
593
589
  /**
594
- * A group component for Tag components that enables selection and organization of options.
590
+ * A container component for displaying tabular data with horizontal scrolling support.
595
591
  */
596
- declare function TagGroup(props: TagGroupProps): react_jsx_runtime.JSX.Element;
592
+ declare function Table(props: TableProps): react_jsx_runtime.JSX.Element;
597
593
  /**
598
- * A container component for Tag components within a TagGroup.
594
+ * Container for table column headers.
599
595
  */
600
- declare function TagList(props: TagListProps): react_jsx_runtime.JSX.Element;
596
+ declare function TableHeader({ className, children, ...restProps }: TableHeaderProps): react_jsx_runtime.JSX.Element;
597
+ declare function TableColumn(props: TableColumnProps): react_jsx_runtime.JSX.Element;
601
598
  /**
602
- * Interactive tag component for selections, filtering, and categorization.
599
+ * Container for table rows.
603
600
  */
604
- declare function Tag(props: TagProps): react_jsx_runtime.JSX.Element;
605
-
606
- type HeroProps = HTMLProps<HTMLDivElement> & VariantProps<typeof variants> & {
607
- children: React.ReactNode;
608
- };
609
- declare const variants: (props?: ({
610
- variant?: "standard" | "full-bleed" | "two-column" | undefined;
611
- } & ({
612
- class?: cva.ClassValue;
613
- className?: never;
614
- } | {
615
- class?: never;
616
- className?: cva.ClassValue;
617
- })) | undefined) => string;
618
- declare const Hero: ({ variant, className, children }: HeroProps) => react_jsx_runtime.JSX.Element;
619
-
620
- type CarouselProps = {
621
- /** The <CarouselItem/> components to be displayed within the carousel. */
622
- children: React.ReactNode;
623
- /** Additional CSS className for the element. */
624
- className?: string;
625
- /**
626
- * Callback that is triggered when a user navigates to new item in the Carousel.
627
- * The argument to the callback is an object containing `index` of the new item scrolled into view and the `id` of that item (if set on the `<CarouselItem>`)
628
- * It also provides `prevIndex` which is the index of the previous item that was in view
629
- * And `prevId`, which is the id of the previous item that was in view (if set on the `<CarouselItem>`)
630
- * @param item { index: number; id?: string; prevIndex: number; prevId?: string }
631
- */
632
- onChange?: (item: CarouselItem) => void;
633
- };
634
- declare const Carousel: ({ className, children, onChange }: CarouselProps) => react_jsx_runtime.JSX.Element;
635
- type CarouselItemsProps = {
636
- /** The <CarouselItem/> components to be displayed within the carousel. */
637
- children: React.ReactNode;
638
- /** Additional CSS className for the element. */
639
- className?: string;
640
- };
641
- declare const CarouselItems: ({ className, children }: CarouselItemsProps) => react_jsx_runtime.JSX.Element;
642
- type CarouselItemProps = {
643
- /** The component/components to display as the <CarouselItem/>. */
644
- children: JSX.Element | JSX.Element[];
645
- /** Additional CSS className for the element. */
646
- className?: string;
647
- id?: string;
648
- };
649
- type CarouselItem = Pick<CarouselItemProps, 'id'> & {
650
- /** The index of the item that is currently in view */
651
- index: number;
652
- /** The index of the previous item that was in view */
653
- prevIndex: number;
654
- /** The id of the previous item that was in view */
655
- prevId?: CarouselItemProps['id'];
656
- };
657
- declare const CarouselItem: ({ className, children, id }: CarouselItemProps) => react_jsx_runtime.JSX.Element;
601
+ declare function TableBody({ className, children, ...restProps }: TableBodyProps): react_jsx_runtime.JSX.Element;
602
+ declare function TableRow(props: TableRowProps): react_jsx_runtime.JSX.Element;
603
+ declare function TableCell(props: TableCellProps): react_jsx_runtime.JSX.Element;
658
604
 
659
605
  type TabsProps = Omit<TabsProps$1, 'className'> & RefAttributes<HTMLDivElement> & {
660
606
  /**
@@ -701,61 +647,115 @@ declare function Tab(props: TabProps): react_jsx_runtime.JSX.Element;
701
647
  */
702
648
  declare function TabPanel(props: TabPanelProps): react_jsx_runtime.JSX.Element;
703
649
 
704
- type TableProps = Omit<TableProps$1, 'aria-label' | 'aria-labelledby'> & RefAttributes<HTMLTableElement> & {
650
+ type TagGroupProps = Omit<TagGroupProps$1, 'className'> & RefAttributes<HTMLDivElement> & {
705
651
  /**
706
- * Visual variant of the table
707
- * @default 'default'
652
+ * CSS classes to apply to the tag group
708
653
  */
709
- variant?: 'default' | 'zebra-striped';
710
- } & ({
711
- 'aria-label': string;
712
- 'aria-labelledby'?: never;
713
- } | {
714
- 'aria-label'?: never;
715
- 'aria-labelledby': string;
716
- });
717
- type TableHeaderProps = TableHeaderProps$1<object> & RefAttributes<HTMLTableSectionElement>;
718
- type TableColumnProps = ColumnProps & RefAttributes<HTMLTableCellElement> & {
719
- children: React.ReactNode;
654
+ className?: string;
655
+ /**
656
+ * The function to call when the tag is removed
657
+ */
658
+ onRemove?: (key: React.Key) => void;
659
+ /**
660
+ * The selection mode for the tag group
661
+ * @default "single"
662
+ */
663
+ selectionMode?: 'single' | 'multiple';
720
664
  };
721
- type TableBodyProps = TableBodyProps$1<object> & RefAttributes<HTMLTableSectionElement>;
722
- type TableRowProps = RowProps<object> & RefAttributes<HTMLTableRowElement>;
723
- type TableCellProps = CellProps & RefAttributes<HTMLTableCellElement> & {
665
+ type TagListProps = Omit<TagListProps$1<object>, 'className'> & RefAttributes<HTMLDivElement> & {
666
+ /**
667
+ * CSS classes to apply to the tag list
668
+ */
669
+ className?: string;
670
+ };
671
+ type TagProps = Omit<TagProps$1, 'className'> & RefAttributes<HTMLDivElement> & {
724
672
  children: React.ReactNode;
673
+ /**
674
+ * CSS classes to apply to the tag
675
+ */
676
+ className?: string;
725
677
  };
726
678
  /**
727
- * A container component for displaying tabular data with horizontal scrolling support.
679
+ * A group component for Tag components that enables selection and organization of options.
728
680
  */
729
- declare function Table(props: TableProps): react_jsx_runtime.JSX.Element;
681
+ declare function TagGroup(props: TagGroupProps): react_jsx_runtime.JSX.Element;
730
682
  /**
731
- * Container for table column headers.
683
+ * A container component for Tag components within a TagGroup.
732
684
  */
733
- declare function TableHeader({ className, children, ...restProps }: TableHeaderProps): react_jsx_runtime.JSX.Element;
734
- declare function TableColumn(props: TableColumnProps): react_jsx_runtime.JSX.Element;
685
+ declare function TagList(props: TagListProps): react_jsx_runtime.JSX.Element;
735
686
  /**
736
- * Container for table rows.
687
+ * Interactive tag component for selections, filtering, and categorization.
737
688
  */
738
- declare function TableBody({ className, children, ...restProps }: TableBodyProps): react_jsx_runtime.JSX.Element;
739
- declare function TableRow(props: TableRowProps): react_jsx_runtime.JSX.Element;
740
- declare function TableCell(props: TableCellProps): react_jsx_runtime.JSX.Element;
689
+ declare function Tag(props: TagProps): react_jsx_runtime.JSX.Element;
741
690
 
742
- type CustomLinkProps = LinkProps & {
743
- children: ReactNode;
744
- };
745
- /**
746
- * A basic link component that extends react-aria-components Link with consistent styling.
747
- * Provides accessible focus styles and maintains design system consistency.
748
- */
749
- declare const CustomLink: ({ children, className, ...restProps }: CustomLinkProps) => react_jsx_runtime.JSX.Element;
691
+ type TextAreaProps = {
692
+ /** Additional CSS className for the element. */
693
+ className?: string;
694
+ /** Help text for the form control. */
695
+ description?: React.ReactNode;
696
+ /** Error message for the form control. Automatically sets `isInvalid` to true */
697
+ errorMessage?: React.ReactNode;
698
+ /** Label for the form control. */
699
+ label?: React.ReactNode;
700
+ /** Placeholder text. Only visible when the input value is empty. */
701
+ placeholder?: string;
702
+ /** Additional style properties for the element. */
703
+ style?: React.CSSProperties;
704
+ /**
705
+ * The number of visible text lines for the control.
706
+ * @default 2
707
+ */
708
+ rows?: number;
709
+ /** Ref for the textarea element. */
710
+ ref?: Ref<HTMLTextAreaElement>;
711
+ } & Omit<TextFieldProps$1, 'className' | 'isReadOnly' | 'isDisabled' | 'children' | 'style'>;
712
+ declare function TextArea(props: TextAreaProps): react_jsx_runtime.JSX.Element;
750
713
 
751
- type LinkListProps = React.HTMLProps<HTMLDivElement> & {
752
- children: JSX.Element | JSX.Element[];
753
- };
754
- declare const LinkList: ({ className, children, ...restProps }: LinkListProps) => react_jsx_runtime.JSX.Element;
755
- type LinkListItemProps = LinkProps & {
756
- children: ReactNode;
757
- isExternal?: boolean;
714
+ type TextFieldProps = {
715
+ /** Additional CSS className for the element. */
716
+ className?: string;
717
+ /** Help text for the form control. */
718
+ description?: React.ReactNode;
719
+ /** Error message for the form control. Automatically sets `isInvalid` to true */
720
+ errorMessage?: React.ReactNode;
721
+ /** Element to be rendered in the left side of the input. */
722
+ leftAddon?: React.ReactNode;
723
+ /** Label for the form control. */
724
+ label?: React.ReactNode;
725
+ /** Element to be rendered in the right side of the input. */
726
+ rightAddon?: React.ReactNode;
727
+ /** Placeholder text. Only visible when the input value is empty. */
728
+ placeholder?: string;
729
+ /**
730
+ * Text alignment of the input
731
+ * @default left
732
+ */
733
+ textAlign?: 'left' | 'right';
734
+ /** Additional style properties for the element. */
735
+ style?: React.CSSProperties;
736
+ /** Add a divider between the left/right addons and the input, a value of 0 will be ignored */
737
+ withAddonDivider?: boolean;
738
+ /** Defines the number of characters and determines the width of the input element */
739
+ size?: number;
740
+ /** Ref for the input element. */
741
+ ref?: Ref<HTMLInputElement>;
742
+ } & Omit<TextFieldProps$1, 'className' | 'isReadOnly' | 'isDisabled' | 'children' | 'style'>;
743
+ declare function TextField(props: TextFieldProps): react_jsx_runtime.JSX.Element;
744
+
745
+ type VideoLoopProps = {
746
+ /** The video url */
747
+ src: string;
748
+ /** The video format */
749
+ format: string;
750
+ /**
751
+ * The content of the video must have a text description, so that it is accessible to screen readers.
752
+ * You can either provide just a caption, just an alt text, or both a caption and an alt text.
753
+ * Make sure the alt text doesn't repeat too much of the caption text, if so just a caption is sufficent.
754
+ * Think of this just as an alt text, but for a muted video - this text will not be visible, but read by screen readers.
755
+ * */
756
+ alt?: string;
757
+ className?: string;
758
758
  };
759
- declare const LinkListItem: ({ children, isExternal, className, ...restProps }: LinkListItemProps) => react_jsx_runtime.JSX.Element;
759
+ declare const VideoLoop: ({ src, format, alt, className }: VideoLoopProps) => react_jsx_runtime.JSX.Element;
760
760
 
761
761
  export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, Alertbox, type Props as AlertboxProps, Avatar, type AvatarProps, Backlink, type BacklinkProps, Badge, type BadgeProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonContext, type ButtonProps, Caption, type CaptionProps, Card, CardLink, type CardLinkProps, type CardProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Combobox, ListBoxHeader as ComboboxHeader, ListBoxItem as ComboboxItem, type ComboboxProps, ListBoxSection as ComboboxSection, Content, ContentContext, type ContentProps, DateFormatter, type DateFormatterProps, Description, type DescriptionProps, DisclosureStateContext, ErrorMessage, type ErrorMessageProps, Footer, type FooterProps, GrunnmurenProvider, type GrunnmurenProviderProps, Heading, HeadingContext, type HeadingProps, Label, type Locale, Media, MediaContext, type MediaProps, NumberField, type NumberFieldProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Select, ListBoxHeader as SelectHeader, ListBoxItem as SelectItem, type SelectProps, ListBoxSection as SelectSection, type TagGroupProps, type TagListProps, type TagProps, TextArea, type TextAreaProps, TextField, type TextFieldProps, Carousel as UNSAFE_Carousel, CarouselItem as UNSAFE_CarouselItem, type CarouselItemProps as UNSAFE_CarouselItemProps, CarouselItems as UNSAFE_CarouselItems, type CarouselItemsProps as UNSAFE_CarouselItemsProps, type CarouselProps as UNSAFE_CarouselProps, Dialog as UNSAFE_Dialog, type DialogProps as UNSAFE_DialogProps, DialogTrigger as UNSAFE_DialogTrigger, type DialogTriggerProps as UNSAFE_DialogTriggerProps, Disclosure as UNSAFE_Disclosure, DisclosureButton as UNSAFE_DisclosureButton, type DisclosureButtonProps as UNSAFE_DisclosureButtonProps, DisclosurePanel as UNSAFE_DisclosurePanel, type DisclosurePanelProps as UNSAFE_DisclosurePanelProps, type DisclosureProps as UNSAFE_DisclosureProps, FileUpload as UNSAFE_FileUpload, type FileUploadProps as UNSAFE_FileUploadProps, Hero as UNSAFE_Hero, type HeroProps as UNSAFE_HeroProps, CustomLink as UNSAFE_Link, LinkList as UNSAFE_LinkList, LinkListItem as UNSAFE_LinkListItem, type LinkListItemProps as UNSAFE_LinkListItemProps, type LinkListProps as UNSAFE_LinkListProps, type CustomLinkProps as UNSAFE_LinkProps, Modal as UNSAFE_Modal, type ModalProps as UNSAFE_ModalProps, Tab as UNSAFE_Tab, TabList as UNSAFE_TabList, type TabListProps as UNSAFE_TabListProps, TabPanel as UNSAFE_TabPanel, type TabPanelProps as UNSAFE_TabPanelProps, type TabProps as UNSAFE_TabProps, Table as UNSAFE_Table, TableBody as UNSAFE_TableBody, type TableBodyProps as UNSAFE_TableBodyProps, TableCell as UNSAFE_TableCell, type TableCellProps as UNSAFE_TableCellProps, TableColumn as UNSAFE_TableColumn, type TableColumnProps as UNSAFE_TableColumnProps, TableHeader as UNSAFE_TableHeader, type TableHeaderProps as UNSAFE_TableHeaderProps, type TableProps as UNSAFE_TableProps, TableRow as UNSAFE_TableRow, type TableRowProps as UNSAFE_TableRowProps, Tabs as UNSAFE_Tabs, type TabsProps as UNSAFE_TabsProps, Tag as UNSAFE_Tag, TagGroup as UNSAFE_TagGroup, TagList as UNSAFE_TagList, VideoLoop, _useLocale as useLocale };