@obosbbl/grunnmuren-react 2.0.0-canary.20 → 2.0.0-canary.21
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 +20 -3
- package/dist/index.mjs +1 -1
- 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';
|
|
@@ -573,13 +573,30 @@ declare const _Breadcrumbs: react.ForwardRefExoticComponent<{
|
|
|
573
573
|
type BacklinkProps = {
|
|
574
574
|
/** Additional CSS className for the element. */
|
|
575
575
|
className?: string;
|
|
576
|
+
/** Additional style properties for the element. */
|
|
577
|
+
style?: React.CSSProperties;
|
|
576
578
|
/** The URL to navigate to when clicking the backlink. */
|
|
577
579
|
href?: string;
|
|
580
|
+
/** The content of the link */
|
|
581
|
+
children?: React.ReactNode;
|
|
578
582
|
/** To add a permanent underline on the link (not only on hover)
|
|
579
583
|
* @default false
|
|
580
584
|
*/
|
|
581
585
|
withUnderline?: boolean;
|
|
582
|
-
} &
|
|
583
|
-
declare const _Backlink: react.ForwardRefExoticComponent<
|
|
586
|
+
} & Omit<LinkProps, 'className' | 'style'>;
|
|
587
|
+
declare const _Backlink: react.ForwardRefExoticComponent<{
|
|
588
|
+
/** Additional CSS className for the element. */
|
|
589
|
+
className?: string | undefined;
|
|
590
|
+
/** Additional style properties for the element. */
|
|
591
|
+
style?: react.CSSProperties | undefined;
|
|
592
|
+
/** The URL to navigate to when clicking the backlink. */
|
|
593
|
+
href?: string | undefined;
|
|
594
|
+
/** The content of the link */
|
|
595
|
+
children?: React.ReactNode;
|
|
596
|
+
/** To add a permanent underline on the link (not only on hover)
|
|
597
|
+
* @default false
|
|
598
|
+
*/
|
|
599
|
+
withUnderline?: boolean | undefined;
|
|
600
|
+
} & Omit<LinkProps, "className" | "style"> & react.RefAttributes<HTMLAnchorElement>>;
|
|
584
601
|
|
|
585
602
|
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,7 +928,7 @@ 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(
|
|
931
|
+
return /*#__PURE__*/ jsxs(Link, {
|
|
932
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'),
|
|
933
933
|
...restProps,
|
|
934
934
|
ref: ref,
|