@obosbbl/grunnmuren-react 2.0.0-canary.19 → 2.0.0-canary.20
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 +3 -20
- package/dist/index.mjs +5 -3
- 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
|
|
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';
|
|
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,30 +573,13 @@ 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;
|
|
578
576
|
/** The URL to navigate to when clicking the backlink. */
|
|
579
577
|
href?: string;
|
|
580
|
-
/** The content of the link */
|
|
581
|
-
children?: React.ReactNode;
|
|
582
578
|
/** To add a permanent underline on the link (not only on hover)
|
|
583
579
|
* @default false
|
|
584
580
|
*/
|
|
585
581
|
withUnderline?: boolean;
|
|
586
|
-
} &
|
|
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>>;
|
|
582
|
+
} & HTMLProps<HTMLAnchorElement>;
|
|
583
|
+
declare const _Backlink: react.ForwardRefExoticComponent<Omit<BacklinkProps, "ref"> & react.RefAttributes<HTMLAnchorElement>>;
|
|
601
584
|
|
|
602
585
|
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("a", {
|
|
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,
|
|
@@ -938,8 +938,10 @@ function Backlink(props, ref) {
|
|
|
938
938
|
className: cx('-ml-[0.5em] flex-shrink-0 transition-transform duration-300 group-hover:-translate-x-1')
|
|
939
939
|
}),
|
|
940
940
|
/*#__PURE__*/ jsx("span", {
|
|
941
|
-
|
|
942
|
-
|
|
941
|
+
children: /*#__PURE__*/ jsx("span", {
|
|
942
|
+
className: cx('border-b-[1px] border-t-[1px] border-transparent transition-colors duration-300', withUnderline ? 'border-b-black' : 'group-hover:border-b-black'),
|
|
943
|
+
children: children
|
|
944
|
+
})
|
|
943
945
|
})
|
|
944
946
|
]
|
|
945
947
|
});
|