@obosbbl/grunnmuren-react 2.0.0-canary.30 → 2.0.0-canary.32

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.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { CheckboxProps as CheckboxProps$1, CheckboxGroupProps as CheckboxGroupProps$1, ListBoxItemProps, ComboBoxProps, RadioGroupProps as RadioGroupProps$1, RadioProps as RadioProps$1, SelectProps as SelectProps$1, TextFieldProps as TextFieldProps$1, NumberFieldProps as NumberFieldProps$1, ContextValue, BreadcrumbProps as BreadcrumbProps$1, BreadcrumbsProps as BreadcrumbsProps$1, LinkProps } from 'react-aria-components';
1
+ import { ButtonProps as ButtonProps$1, Link, CheckboxProps as CheckboxProps$1, CheckboxGroupProps as CheckboxGroupProps$1, ListBoxItemProps, ComboBoxProps, RadioGroupProps as RadioGroupProps$1, RadioProps as RadioProps$1, SelectProps as SelectProps$1, TextFieldProps as TextFieldProps$1, NumberFieldProps as NumberFieldProps$1, ContextValue, BreadcrumbProps as BreadcrumbProps$1, BreadcrumbsProps as BreadcrumbsProps$1, LinkProps } from 'react-aria-components';
2
2
  export { ListBoxItemProps as ComboboxItemProps, Form, ListBoxItemProps as SelectItemProps } from 'react-aria-components';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
@@ -73,9 +73,9 @@ declare const buttonVariants: (props?: ({
73
73
  } | null | undefined)[] | {
74
74
  [x: string]: any;
75
75
  } | null | undefined;
76
- className?: undefined;
76
+ className?: never;
77
77
  } | {
78
- class?: undefined;
78
+ class?: never;
79
79
  className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
80
80
  [x: string]: any;
81
81
  } | null | undefined)[] | {
@@ -102,21 +102,16 @@ declare const buttonVariants: (props?: ({
102
102
  [x: string]: any;
103
103
  } | null | undefined;
104
104
  })) | undefined) => string;
105
- type ButtonOrLinkProps = (React.ComponentPropsWithoutRef<'button'> & {
106
- href?: never;
107
- }) | (React.ComponentPropsWithoutRef<'a'> & {
108
- href: string;
109
- });
110
- type ButtonProps = VariantProps<typeof buttonVariants> & {
111
- className?: string;
112
- children: React.ReactNode;
105
+ type ButtonOrLinkProps = VariantProps<typeof buttonVariants> & {
106
+ children?: React.ReactNode;
107
+ href?: string;
113
108
  /**
114
109
  * Display the button in a loading state
115
110
  * @default false
116
111
  */
117
112
  isLoading?: boolean;
118
- style?: React.CSSProperties;
119
- } & ButtonOrLinkProps;
113
+ };
114
+ type ButtonProps = (ButtonProps$1 | React.ComponentPropsWithoutRef<typeof Link>) & ButtonOrLinkProps;
120
115
  declare const _Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
121
116
 
122
117
  type CheckboxProps = {
@@ -133,13 +128,13 @@ type CheckboxProps = {
133
128
  declare const _Checkbox: react.ForwardRefExoticComponent<{
134
129
  children: React.ReactNode;
135
130
  /** Additional CSS className for the element. */
136
- className?: string | undefined;
131
+ className?: string;
137
132
  /** Help text for the form control. */
138
133
  description?: React.ReactNode;
139
134
  /** Error message for the form control. Automatically sets `isInvalid` to true */
140
135
  errorMessage?: React.ReactNode;
141
136
  /** Additional style properties for the element. */
142
- style?: react.CSSProperties | undefined;
137
+ style?: React.CSSProperties;
143
138
  } & Omit<CheckboxProps$1, "children" | "style" | "isDisabled" | "isIndeterminate" | "isReadOnly"> & react.RefAttributes<HTMLLabelElement>>;
144
139
 
145
140
  type CheckboxGroupProps = {
@@ -158,7 +153,7 @@ type CheckboxGroupProps = {
158
153
  declare const _CheckboxGroup: react.ForwardRefExoticComponent<{
159
154
  children: React.ReactNode;
160
155
  /** Additional CSS className for the element. */
161
- className?: string | undefined;
156
+ className?: string;
162
157
  /** Help text for the form control. */
163
158
  description?: React.ReactNode;
164
159
  /** Error message for the form control. Automatically sets `isInvalid` to true */
@@ -166,7 +161,7 @@ declare const _CheckboxGroup: react.ForwardRefExoticComponent<{
166
161
  /** Label for the form control. */
167
162
  label?: React.ReactNode;
168
163
  /** Additional style properties for the element. */
169
- style?: react.CSSProperties | undefined;
164
+ style?: React.CSSProperties;
170
165
  } & Omit<CheckboxGroupProps$1, "children" | "className" | "style" | "isDisabled" | "isReadOnly" | "orientation"> & react.RefAttributes<HTMLDivElement>>;
171
166
 
172
167
  declare const ListBoxItem: (props: ListBoxItemProps) => react_jsx_runtime.JSX.Element;
@@ -194,7 +189,7 @@ type ComboboxProps<T extends object> = {
194
189
  declare const _Combobox: react.ForwardRefExoticComponent<{
195
190
  children: React.ReactNode;
196
191
  /** Additional CSS className for the element. */
197
- className?: string | undefined;
192
+ className?: string;
198
193
  /** Help text for the form control. */
199
194
  description?: React.ReactNode;
200
195
  /** Error message for the form control. Automatically sets `isInvalid` to true */
@@ -203,13 +198,13 @@ declare const _Combobox: react.ForwardRefExoticComponent<{
203
198
  * Display the dropdown button trigger in a loading state
204
199
  * @default false
205
200
  */
206
- isLoading?: boolean | undefined;
201
+ isLoading?: boolean;
207
202
  /** Label for the form control. */
208
203
  label?: React.ReactNode;
209
204
  /** Placeholder text. Only visible when the input value is empty. */
210
- placeholder?: string | undefined;
205
+ placeholder?: string;
211
206
  /** Additional style properties for the element. */
212
- style?: react.CSSProperties | undefined;
207
+ style?: React.CSSProperties;
213
208
  } & Omit<ComboBoxProps<object>, "children" | "className" | "style" | "isDisabled" | "isReadOnly"> & react.RefAttributes<HTMLInputElement>>;
214
209
 
215
210
  type RadioGroupProps = {
@@ -228,7 +223,7 @@ type RadioGroupProps = {
228
223
  declare const _RadioGroup: react.ForwardRefExoticComponent<{
229
224
  children: React.ReactNode;
230
225
  /** Additional CSS className for the element. */
231
- className?: string | undefined;
226
+ className?: string;
232
227
  /** Help text for the form control. */
233
228
  description?: React.ReactNode;
234
229
  /** Error message for the form control. Automatically sets `isInvalid` to true */
@@ -236,7 +231,7 @@ declare const _RadioGroup: react.ForwardRefExoticComponent<{
236
231
  /** Label for the form control. */
237
232
  label?: React.ReactNode;
238
233
  /** Additional style properties for the element. */
239
- style?: react.CSSProperties | undefined;
234
+ style?: React.CSSProperties;
240
235
  } & Omit<RadioGroupProps$1, "children" | "className" | "style" | "isDisabled" | "isReadOnly" | "orientation"> & react.RefAttributes<HTMLDivElement>>;
241
236
 
242
237
  type RadioProps = {
@@ -251,11 +246,11 @@ type RadioProps = {
251
246
  declare const _Radio: react.ForwardRefExoticComponent<{
252
247
  children: React.ReactNode;
253
248
  /** Additional CSS className for the element. */
254
- className?: string | undefined;
249
+ className?: string;
255
250
  /** Help text for the form control. */
256
251
  description?: React.ReactNode;
257
252
  /** Additional style properties for the element. */
258
- style?: react.CSSProperties | undefined;
253
+ style?: React.CSSProperties;
259
254
  } & Omit<RadioProps$1, "children" | "style" | "isDisabled"> & react.RefAttributes<HTMLLabelElement>>;
260
255
 
261
256
  type SelectProps<T extends object> = {
@@ -276,7 +271,7 @@ type SelectProps<T extends object> = {
276
271
  declare const _Select: react.ForwardRefExoticComponent<{
277
272
  children: React.ReactNode;
278
273
  /** Additional CSS className for the element. */
279
- className?: string | undefined;
274
+ className?: string;
280
275
  /** Help text for the form control. */
281
276
  description?: React.ReactNode;
282
277
  /** Error message for the form control. Automatically sets `isInvalid` to true */
@@ -284,9 +279,9 @@ declare const _Select: react.ForwardRefExoticComponent<{
284
279
  /** Label for the form control. */
285
280
  label?: React.ReactNode;
286
281
  /** Placeholder text. Only visible when the input value is empty. */
287
- placeholder?: string | undefined;
282
+ placeholder?: string;
288
283
  /** Additional style properties for the element. */
289
- style?: react.CSSProperties | undefined;
284
+ style?: React.CSSProperties;
290
285
  } & Omit<SelectProps$1<object>, "children" | "className" | "style" | "isDisabled" | "isReadOnly"> & react.RefAttributes<HTMLButtonElement>>;
291
286
 
292
287
  type TextAreaProps = {
@@ -310,7 +305,7 @@ type TextAreaProps = {
310
305
  } & Omit<TextFieldProps$1, 'className' | 'isReadOnly' | 'isDisabled' | 'children' | 'style'>;
311
306
  declare const _TextArea: react.ForwardRefExoticComponent<{
312
307
  /** Additional CSS className for the element. */
313
- className?: string | undefined;
308
+ className?: string;
314
309
  /** Help text for the form control. */
315
310
  description?: React.ReactNode;
316
311
  /** Error message for the form control. Automatically sets `isInvalid` to true */
@@ -318,14 +313,14 @@ declare const _TextArea: react.ForwardRefExoticComponent<{
318
313
  /** Label for the form control. */
319
314
  label?: React.ReactNode;
320
315
  /** Placeholder text. Only visible when the input value is empty. */
321
- placeholder?: string | undefined;
316
+ placeholder?: string;
322
317
  /** Additional style properties for the element. */
323
- style?: react.CSSProperties | undefined;
318
+ style?: React.CSSProperties;
324
319
  /**
325
320
  * The number of visible text lines for the control.
326
321
  * @default 2
327
322
  */
328
- rows?: number | undefined;
323
+ rows?: number;
329
324
  } & Omit<TextFieldProps$1, "children" | "className" | "style" | "isDisabled" | "isReadOnly"> & react.RefAttributes<HTMLTextAreaElement>>;
330
325
 
331
326
  type TextFieldProps = {
@@ -357,7 +352,7 @@ type TextFieldProps = {
357
352
  } & Omit<TextFieldProps$1, 'className' | 'isReadOnly' | 'isDisabled' | 'children' | 'style'>;
358
353
  declare const _TextField: react.ForwardRefExoticComponent<{
359
354
  /** Additional CSS className for the element. */
360
- className?: string | undefined;
355
+ className?: string;
361
356
  /** Help text for the form control. */
362
357
  description?: React.ReactNode;
363
358
  /** Error message for the form control. Automatically sets `isInvalid` to true */
@@ -369,18 +364,18 @@ declare const _TextField: react.ForwardRefExoticComponent<{
369
364
  /** Element to be rendered in the right side of the input. */
370
365
  rightAddon?: React.ReactNode;
371
366
  /** Placeholder text. Only visible when the input value is empty. */
372
- placeholder?: string | undefined;
367
+ placeholder?: string;
373
368
  /**
374
369
  * Text alignment of the input
375
370
  * @default left
376
371
  */
377
- textAlign?: "left" | "right" | undefined;
372
+ textAlign?: "left" | "right";
378
373
  /** Additional style properties for the element. */
379
- style?: react.CSSProperties | undefined;
374
+ style?: React.CSSProperties;
380
375
  /** Add a divider between the left/right addons and the input, a value of 0 will be ignored */
381
- withAddonDivider?: boolean | undefined;
376
+ withAddonDivider?: boolean;
382
377
  /** Defines the number of characters and determines the width of the input element */
383
- size?: number | undefined;
378
+ size?: number;
384
379
  } & Omit<TextFieldProps$1, "children" | "className" | "style" | "isDisabled" | "isReadOnly"> & react.RefAttributes<HTMLInputElement>>;
385
380
 
386
381
  type NumberFieldProps = {
@@ -416,7 +411,7 @@ type NumberFieldProps = {
416
411
  } & Omit<NumberFieldProps$1, 'className' | 'isReadOnly' | 'isDisabled' | 'children' | 'style' | 'hideStepper'>;
417
412
  declare const _NumberField: react.ForwardRefExoticComponent<{
418
413
  /** Additional CSS className for the element. */
419
- className?: string | undefined;
414
+ className?: string;
420
415
  /** Help text for the form control. */
421
416
  description?: React.ReactNode;
422
417
  /** Error message for the form control. Automatically sets `isInvalid` to true */
@@ -428,22 +423,22 @@ declare const _NumberField: react.ForwardRefExoticComponent<{
428
423
  /** Element to be rendered in the right side of the input. */
429
424
  rightAddon?: React.ReactNode;
430
425
  /** Placeholder text. Only visible when the input value is empty. */
431
- placeholder?: string | undefined;
426
+ placeholder?: string;
432
427
  /**
433
428
  * Text alignment of the input
434
429
  * @default left
435
430
  */
436
- textAlign?: "left" | "right" | undefined;
431
+ textAlign?: "left" | "right";
437
432
  /** Additional style properties for the element. */
438
- style?: react.CSSProperties | undefined;
433
+ style?: React.CSSProperties;
439
434
  /** Add a divider between the left/right addons and the input */
440
- withAddonDivider?: boolean | undefined;
435
+ withAddonDivider?: boolean;
441
436
  /** Defines the number of characters and determines the width of the input element, a value of 0 will be ignored */
442
- size?: number | undefined;
437
+ size?: number;
443
438
  /** Defines the maximum numeric value */
444
- maxValue?: number | undefined;
439
+ maxValue?: number;
445
440
  /** Defines the minimum numeric value */
446
- minValue?: number | undefined;
441
+ minValue?: number;
447
442
  } & Omit<NumberFieldProps$1, "children" | "className" | "style" | "isDisabled" | "isReadOnly" | "hideStepper"> & react.RefAttributes<HTMLInputElement>>;
448
443
 
449
444
  declare const alertVariants: (props?: ({
@@ -474,9 +469,9 @@ declare const alertVariants: (props?: ({
474
469
  } | null | undefined)[] | {
475
470
  [x: string]: any;
476
471
  } | null | undefined;
477
- className?: undefined;
472
+ className?: never;
478
473
  } | {
479
- class?: undefined;
474
+ class?: never;
480
475
  className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
481
476
  [x: string]: any;
482
477
  } | null | undefined)[] | {
@@ -566,11 +561,11 @@ type BreadcrumbProps = {
566
561
  } & Omit<BreadcrumbProps$1, 'className' | 'style'>;
567
562
  declare const _Breadcrumb: react.ForwardRefExoticComponent<{
568
563
  /** Additional CSS className for the element. */
569
- className?: string | undefined;
564
+ className?: string;
570
565
  /** Additional style properties for the element. */
571
- style?: react.CSSProperties | undefined;
566
+ style?: React.CSSProperties;
572
567
  /** The URL to navigate to when clicking the breadcrumb. */
573
- href?: string | undefined;
568
+ href?: string;
574
569
  } & Omit<BreadcrumbProps$1, "className" | "style"> & react.RefAttributes<HTMLLIElement>>;
575
570
 
576
571
  type BreadcrumbsProps = {
@@ -581,9 +576,9 @@ type BreadcrumbsProps = {
581
576
  } & Omit<BreadcrumbsProps$1<BreadcrumbProps>, 'className' | 'style'>;
582
577
  declare const _Breadcrumbs: react.ForwardRefExoticComponent<{
583
578
  /** Additional CSS className for the element. */
584
- className?: string | undefined;
579
+ className?: string;
585
580
  /** Additional style properties for the element. */
586
- style?: react.CSSProperties | undefined;
581
+ style?: React.CSSProperties;
587
582
  } & Omit<BreadcrumbsProps$1<BreadcrumbProps>, "className" | "style"> & react.RefAttributes<HTMLOListElement>>;
588
583
 
589
584
  type BacklinkProps = {
@@ -600,15 +595,15 @@ type BacklinkProps = {
600
595
  } & LinkProps;
601
596
  declare const _Backlink: react.ForwardRefExoticComponent<{
602
597
  /** Additional CSS className for the element. */
603
- className?: string | undefined;
598
+ className?: string;
604
599
  /** The URL to navigate to when clicking the backlink. */
605
- href?: string | undefined;
600
+ href?: string;
606
601
  /** The content of the link */
607
602
  children?: React.ReactNode;
608
603
  /** To add a permanent underline on the link (not only on hover)
609
604
  * @default false
610
605
  */
611
- withUnderline?: boolean | undefined;
606
+ withUnderline?: boolean;
612
607
  } & LinkProps & react.RefAttributes<HTMLAnchorElement>>;
613
608
 
614
609
  export { _Accordion as Accordion, _AccordionItem as AccordionItem, type AccordionItemProps, type AccordionProps, Alertbox, type Props as AlertboxProps, _Backlink as Backlink, type BacklinkProps, _Breadcrumb as Breadcrumb, type BreadcrumbProps, _Breadcrumbs as Breadcrumbs, type BreadcrumbsProps, _Button as Button, type ButtonProps, _Checkbox as Checkbox, _CheckboxGroup as CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, _Combobox as Combobox, ListBoxItem as ComboboxItem, type ComboboxProps, Content, ContentContext, type ContentProps, Footer, type FooterProps, GrunnmurenProvider, type GrunnmurenProviderProps, Heading, HeadingContext, type HeadingProps, _NumberField as NumberField, type NumberFieldProps, _Radio as Radio, _RadioGroup as RadioGroup, type RadioGroupProps, type RadioProps, _Select as Select, ListBoxItem as SelectItem, type SelectProps, _TextArea as TextArea, type TextAreaProps, _TextField as TextField, type TextFieldProps };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { I18nProvider, RouterProvider, useContextProps, Provider, Text, CheckboxContext, Checkbox as Checkbox$1, Label as Label$1, FieldError, CheckboxGroup as CheckboxGroup$1, ListBoxItem as ListBoxItem$1, ListBox as ListBox$1, ComboBox, Group, Input, Button as Button$1, Popover, RadioGroup as RadioGroup$1, Radio as Radio$1, Select as Select$1, SelectValue, TextField as TextField$1, TextArea as TextArea$1, NumberField as NumberField$1, useLocale, Breadcrumbs as Breadcrumbs$1, Breadcrumb as Breadcrumb$1, Link } from 'react-aria-components';
2
+ import { I18nProvider, RouterProvider, useContextProps, Provider, Link, Button as Button$1, Text, CheckboxContext, Checkbox as Checkbox$1, Label as Label$1, FieldError, CheckboxGroup as CheckboxGroup$1, ListBoxItem as ListBoxItem$1, ListBox as ListBox$1, ComboBox, Group, Input, Popover, RadioGroup as RadioGroup$1, Radio as Radio$1, Select as Select$1, SelectValue, TextField as TextField$1, TextArea as TextArea$1, NumberField as NumberField$1, useLocale, Breadcrumbs as Breadcrumbs$1, Breadcrumb as Breadcrumb$1 } from 'react-aria-components';
3
3
  export { Form } from 'react-aria-components';
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
5
  import { useLayoutEffect, createContext, forwardRef, Children, useId, useState, useRef } from 'react';
@@ -156,7 +156,7 @@ const _AccordionItem = /*#__PURE__*/ forwardRef(AccordionItem);
156
156
  * Figma: https://www.figma.com/file/9OvSg0ZXI5E1eQYi7AWiWn/Grunnmuren-2.0-%E2%94%82-Designsystem?node-id=30%3A2574&mode=dev
157
157
  */ const buttonVariants = cva({
158
158
  base: [
159
- 'inline-flex min-h-[44px] cursor-pointer items-center justify-center whitespace-nowrap rounded-lg font-medium transition-all duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2'
159
+ 'inline-flex min-h-[44px] cursor-pointer items-center justify-center whitespace-nowrap rounded-lg font-medium transition-all duration-200 focus:outline-none data-[focus-visible]:ring-2 data-[focus-visible]:ring-offset-2'
160
160
  ],
161
161
  variants: {
162
162
  /**
@@ -234,8 +234,11 @@ const _AccordionItem = /*#__PURE__*/ forwardRef(AccordionItem);
234
234
  isIconOnly: false
235
235
  }
236
236
  });
237
+ function isLinkProps(props) {
238
+ return 'href' in props;
239
+ }
237
240
  function Button(props, forwardedRef) {
238
- const { children, className, color, isIconOnly, isLoading, variant, style, ...restProps } = props;
241
+ const { children: _children, color, isIconOnly, isLoading, variant, style: _style, ...restProps } = props;
239
242
  const [widthOverride, setWidthOverride] = useState();
240
243
  const ownRef = useRef(null);
241
244
  const ref = mergeRefs(ownRef, forwardedRef);
@@ -251,34 +254,35 @@ function Button(props, forwardedRef) {
251
254
  }
252
255
  }, [
253
256
  isLoading,
254
- children
257
+ _children
255
258
  ]);
256
- let Component = 'a';
257
- if (props.href == null) {
258
- // If we don't have a href, it's a button, and we add a fallback type button to prevent the button from accidentally submitting when in a form
259
- Component = 'button';
260
- restProps.type ??= 'button';
261
- }
262
- return(// @ts-expect-error TS doesn't agree here taht restProps is safe to spread, because restProps for anchors aren't type compatible with restProps for buttons, but that should be okay here
263
- /*#__PURE__*/ jsx(Component, {
264
- "aria-busy": isLoading ? true : undefined,
265
- className: buttonVariants({
266
- className,
267
- color,
268
- isIconOnly,
269
- variant
270
- }),
259
+ const className = buttonVariants({
260
+ className: props.className,
261
+ color,
262
+ isIconOnly,
263
+ variant
264
+ });
265
+ const children = widthOverride ? // remove margin for icon alignment
266
+ /*#__PURE__*/ jsx(LoadingSpinner, {
267
+ className: "!m-0 mx-auto animate-spin"
268
+ }) : _children;
269
+ const style = {
270
+ ..._style,
271
+ widthOverride
272
+ };
273
+ return isLinkProps(restProps) ? /*#__PURE__*/ jsx(Link, {
274
+ ...restProps,
275
+ className: className,
276
+ style: style,
271
277
  ref: ref,
272
- style: {
273
- ...style,
274
- width: widthOverride
275
- },
278
+ children: children
279
+ }) : /*#__PURE__*/ jsx(Button$1, {
276
280
  ...restProps,
277
- children: widthOverride ? // remove margin for icon alignment
278
- /*#__PURE__*/ jsx(LoadingSpinner, {
279
- className: "!m-0 mx-auto animate-spin"
280
- }) : children
281
- }));
281
+ className: className,
282
+ style: style,
283
+ ref: ref,
284
+ children: children
285
+ });
282
286
  }
283
287
  const _Button = /*#__PURE__*/ forwardRef(Button);
284
288
 
@@ -950,7 +954,8 @@ function Breadcrumb(props, ref) {
950
954
  children: [
951
955
  href ? /*#__PURE__*/ jsx(Link, {
952
956
  href: href,
953
- className: "group-last:no-underline",
957
+ // use outline instead of ring for focus marker that can be offset without creating a white background between the focus marker and the element content
958
+ className: "rounded-sm focus:outline-none group-last:no-underline data-[focus-visible]:outline data-[focus-visible]:outline-offset-2 data-[focus-visible]:outline-black",
954
959
  children: children
955
960
  }) : children,
956
961
  /*#__PURE__*/ jsx(ChevronRight, {
@@ -964,7 +969,7 @@ const _Breadcrumb = /*#__PURE__*/ forwardRef(Breadcrumb);
964
969
  function Backlink(props, ref) {
965
970
  const { className, children, href, withUnderline, ...restProps } = props;
966
971
  return /*#__PURE__*/ jsxs(Link, {
967
- className: cx(className, 'group flex max-w-fit items-center gap-3 rounded-md p-2.5 no-underline focus:outline-none data-[focus-visible]:ring data-[focus-visible]:ring-black'),
972
+ className: cx(className, 'group flex max-w-fit cursor-pointer items-center gap-3 rounded-md p-2.5 no-underline focus:outline-none data-[focus-visible]:ring data-[focus-visible]:ring-black'),
968
973
  ...restProps,
969
974
  ref: ref,
970
975
  href: href,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obosbbl/grunnmuren-react",
3
- "version": "2.0.0-canary.30",
3
+ "version": "2.0.0-canary.32",
4
4
  "description": "Grunnmuren components in React",
5
5
  "repository": {
6
6
  "url": "https://github.com/code-obos/grunnmuren"