@obosbbl/grunnmuren-react 2.0.0-canary.20 → 2.0.0-canary.22
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 +16 -3
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
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 } from 'react-aria-components';
|
|
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';
|
|
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';
|
|
@@ -575,11 +575,24 @@ type BacklinkProps = {
|
|
|
575
575
|
className?: string;
|
|
576
576
|
/** The URL to navigate to when clicking the backlink. */
|
|
577
577
|
href?: string;
|
|
578
|
+
/** The content of the link */
|
|
579
|
+
children?: React.ReactNode;
|
|
578
580
|
/** To add a permanent underline on the link (not only on hover)
|
|
579
581
|
* @default false
|
|
580
582
|
*/
|
|
581
583
|
withUnderline?: boolean;
|
|
582
|
-
} &
|
|
583
|
-
declare const _Backlink: react.ForwardRefExoticComponent<
|
|
584
|
+
} & LinkProps;
|
|
585
|
+
declare const _Backlink: react.ForwardRefExoticComponent<{
|
|
586
|
+
/** Additional CSS className for the element. */
|
|
587
|
+
className?: string | undefined;
|
|
588
|
+
/** The URL to navigate to when clicking the backlink. */
|
|
589
|
+
href?: string | undefined;
|
|
590
|
+
/** The content of the link */
|
|
591
|
+
children?: React.ReactNode;
|
|
592
|
+
/** To add a permanent underline on the link (not only on hover)
|
|
593
|
+
* @default false
|
|
594
|
+
*/
|
|
595
|
+
withUnderline?: boolean | undefined;
|
|
596
|
+
} & LinkProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
584
597
|
|
|
585
598
|
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
|
@@ -928,8 +928,8 @@ const _Breadcrumb = /*#__PURE__*/ forwardRef(Breadcrumb);
|
|
|
928
928
|
|
|
929
929
|
function Backlink(props, ref) {
|
|
930
930
|
const { className, children, href, withUnderline, ...restProps } = props;
|
|
931
|
-
return /*#__PURE__*/ jsxs(
|
|
932
|
-
className: cx(className, 'group flex max-w-fit items-center gap-3 rounded-md p-2.5 no-underline focus:outline-none focus-visible:ring focus-visible:ring-black'),
|
|
931
|
+
return /*#__PURE__*/ jsxs(Link, {
|
|
932
|
+
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'),
|
|
933
933
|
...restProps,
|
|
934
934
|
ref: ref,
|
|
935
935
|
href: href,
|