@obosbbl/grunnmuren-react 3.4.0 → 3.4.1
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.
|
@@ -253,7 +253,7 @@ function ErrorMessage(props) {
|
|
|
253
253
|
function Label(props) {
|
|
254
254
|
const { children, className, ...restProps } = props;
|
|
255
255
|
return /*#__PURE__*/ jsxRuntime.jsx(reactAriaComponents.Label, {
|
|
256
|
-
className: cva.cx(className, 'font-
|
|
256
|
+
className: cva.cx(className, 'font-medium leading-7'),
|
|
257
257
|
...restProps,
|
|
258
258
|
children: children
|
|
259
259
|
});
|
|
@@ -251,7 +251,7 @@ function ErrorMessage(props) {
|
|
|
251
251
|
function Label(props) {
|
|
252
252
|
const { children, className, ...restProps } = props;
|
|
253
253
|
return /*#__PURE__*/ jsx(Label$1, {
|
|
254
|
-
className: cx(className, 'font-
|
|
254
|
+
className: cx(className, 'font-medium leading-7'),
|
|
255
255
|
...restProps,
|
|
256
256
|
children: children
|
|
257
257
|
});
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DisclosureProps as DisclosureProps$1, ButtonProps as ButtonProps$1, LinkProps as LinkProps$1,
|
|
1
|
+
import { DisclosureProps as DisclosureProps$1, ButtonProps as ButtonProps$1, LinkProps as LinkProps$1, BreadcrumbProps as BreadcrumbProps$1, BreadcrumbsProps as BreadcrumbsProps$1, ContextValue, CheckboxProps as CheckboxProps$1, CheckboxGroupProps as CheckboxGroupProps$1, HeadingProps as HeadingProps$1, ListBoxItemProps, ListBoxSectionProps, ComboBoxProps, FileTriggerProps as FileTriggerProps$1, RouterProvider, TextProps, LabelProps, DialogProps as DialogProps$1, DialogTriggerProps as DialogTriggerProps$1, ModalOverlayProps as ModalOverlayProps$1, NumberFieldProps as NumberFieldProps$1, RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1, SelectProps as SelectProps$1, ColumnResizerProps, TableProps as TableProps$1, TableBodyProps as TableBodyProps$1, CellProps, ColumnProps, ResizableTableContainerProps, TableHeaderProps as TableHeaderProps$1, RowProps, TabProps as TabProps$1, TabListProps as TabListProps$1, TabPanelProps as TabPanelProps$1, TabsProps as TabsProps$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, DisclosureGroup, DisclosureGroupProps, Form, Group, LabelProps, 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';
|
|
@@ -131,7 +131,6 @@ declare const badgeVariants: (props?: ({
|
|
|
131
131
|
})) | undefined) => string;
|
|
132
132
|
declare function Badge(props: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
133
133
|
|
|
134
|
-
declare const _LinkContext: react.Context<ContextValue<Partial<LinkProps>, HTMLAnchorElement>>;
|
|
135
134
|
declare const linkVariants: (props?: (((VariantProps<(props?: ({
|
|
136
135
|
animateIcon?: "right" | "left" | "down" | "up" | "up-right" | undefined;
|
|
137
136
|
} & ({
|
|
@@ -154,10 +153,11 @@ declare const linkVariants: (props?: (((VariantProps<(props?: ({
|
|
|
154
153
|
className?: cva.ClassValue;
|
|
155
154
|
})) | undefined) => string;
|
|
156
155
|
type LinkProps = VariantProps<typeof linkVariants> & LinkProps$1 & React.RefAttributes<HTMLAnchorElement> & {
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
children?: React.ReactNode;
|
|
157
|
+
/** @private Internal use */
|
|
158
|
+
'~iconRight'?: React.ReactNode;
|
|
159
159
|
};
|
|
160
|
-
declare const Link: ({
|
|
160
|
+
declare const Link: ({ animateIcon, children, className, "~iconRight": iconRight, ...props }: LinkProps) => react_jsx_runtime.JSX.Element;
|
|
161
161
|
|
|
162
162
|
type BreadcrumbProps = {
|
|
163
163
|
/** Additional CSS className for the element. */
|
|
@@ -525,18 +525,27 @@ declare function ErrorMessage(props: ErrorMessageProps): react_jsx_runtime.JSX.E
|
|
|
525
525
|
|
|
526
526
|
declare function Label(props: LabelProps): react_jsx_runtime.JSX.Element;
|
|
527
527
|
|
|
528
|
-
|
|
528
|
+
declare const linkListContainerVariants: (props?: ({
|
|
529
|
+
layout?: "stack" | "grid" | undefined;
|
|
530
|
+
} & ({
|
|
531
|
+
class?: cva.ClassValue;
|
|
532
|
+
className?: never;
|
|
533
|
+
} | {
|
|
534
|
+
class?: never;
|
|
535
|
+
className?: cva.ClassValue;
|
|
536
|
+
})) | undefined) => string;
|
|
537
|
+
type LinkListContainerProps = VariantProps<typeof linkListContainerVariants> & React.HTMLProps<HTMLDivElement> & {
|
|
529
538
|
children: JSX.Element | JSX.Element[];
|
|
530
539
|
};
|
|
531
|
-
declare const LinkListContainer: ({ className, ...
|
|
540
|
+
declare const LinkListContainer: ({ className, layout, ...props }: LinkListContainerProps) => react_jsx_runtime.JSX.Element;
|
|
532
541
|
type LinkListProps = React.HTMLProps<HTMLUListElement> & {
|
|
533
542
|
children: JSX.Element | JSX.Element[];
|
|
534
543
|
};
|
|
535
|
-
declare const LinkList: (
|
|
544
|
+
declare const LinkList: ({ className, ...restProps }: LinkListProps) => react_jsx_runtime.JSX.Element;
|
|
536
545
|
type LinkListItemProps = React.HTMLProps<HTMLLIElement> & {
|
|
537
546
|
children: ReactNode;
|
|
538
547
|
};
|
|
539
|
-
declare const LinkListItem: (props: LinkListItemProps) => react_jsx_runtime.JSX.Element;
|
|
548
|
+
declare const LinkListItem: ({ children, className, ...props }: LinkListItemProps) => react_jsx_runtime.JSX.Element;
|
|
540
549
|
|
|
541
550
|
type DialogTriggerProps = DialogTriggerProps$1;
|
|
542
551
|
declare const DialogTrigger: (props: DialogTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -588,13 +597,6 @@ type NumberFieldProps = {
|
|
|
588
597
|
} & Omit<NumberFieldProps$1, 'className' | 'isReadOnly' | 'isDisabled' | 'children' | 'style' | 'hideStepper'>;
|
|
589
598
|
declare function NumberField(props: NumberFieldProps): react_jsx_runtime.JSX.Element;
|
|
590
599
|
|
|
591
|
-
type ProgressBarProps = ProgressBarProps$1;
|
|
592
|
-
type ProgressBarValueTextProps = Omit<HTMLProps<HTMLSpanElement>, 'children'> & {
|
|
593
|
-
className?: string;
|
|
594
|
-
};
|
|
595
|
-
declare const ProgressBarValueText: ({ className, ...restProps }: ProgressBarValueTextProps) => react_jsx_runtime.JSX.Element;
|
|
596
|
-
declare const ProgressBar: ({ children, className, ...restProps }: ProgressBarProps) => react_jsx_runtime.JSX.Element;
|
|
597
|
-
|
|
598
600
|
type RadioProps = {
|
|
599
601
|
children: React.ReactNode;
|
|
600
602
|
/** Additional CSS className for the element. */
|
|
@@ -644,6 +646,31 @@ type SelectProps<T extends object> = {
|
|
|
644
646
|
} & Omit<SelectProps$1<T>, 'className' | 'isReadOnly' | 'isDisabled' | 'children' | 'style'>;
|
|
645
647
|
declare function Select<T extends object>(props: SelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
646
648
|
|
|
649
|
+
type StepperProps = HTMLAttributes<HTMLDivElement> & {
|
|
650
|
+
children: React.ReactNode;
|
|
651
|
+
/** The active step, zero indexed. */
|
|
652
|
+
activeStep: number;
|
|
653
|
+
/** Handler that is called when the step changes. */
|
|
654
|
+
onStepChange?: (step: number) => void;
|
|
655
|
+
};
|
|
656
|
+
declare const Stepper: ({ children, activeStep, onStepChange, ...restProps }: StepperProps) => react_jsx_runtime.JSX.Element;
|
|
657
|
+
type StepProps = HTMLProps<HTMLLIElement> & {
|
|
658
|
+
/**
|
|
659
|
+
* The state fo the step, whether the step is completed or not.
|
|
660
|
+
*/
|
|
661
|
+
state?: 'completed';
|
|
662
|
+
/**
|
|
663
|
+
* Whether the step is disabled.
|
|
664
|
+
* @default false
|
|
665
|
+
*/
|
|
666
|
+
isDisabled?: boolean;
|
|
667
|
+
/** The current progress of the step, between 0 and 100. */
|
|
668
|
+
progress?: number;
|
|
669
|
+
/** @private */
|
|
670
|
+
'~stepIndex'?: number;
|
|
671
|
+
};
|
|
672
|
+
declare const Step: ({ isDisabled, state, children, "~stepIndex": stepIndex, progress, ...restProps }: StepProps) => react_jsx_runtime.JSX.Element;
|
|
673
|
+
|
|
647
674
|
type TableProps = Omit<TableProps$1, 'aria-label' | 'aria-labelledby'> & RefAttributes<HTMLTableElement> & {
|
|
648
675
|
/**
|
|
649
676
|
* Visual variant of the table
|
|
@@ -842,5 +869,5 @@ type VideoLoopProps = {
|
|
|
842
869
|
};
|
|
843
870
|
declare const VideoLoop: ({ src, format, alt, className }: VideoLoopProps) => react_jsx_runtime.JSX.Element;
|
|
844
871
|
|
|
845
|
-
export { Accordion, AccordionItem, Alertbox, Avatar, Backlink, Badge, Breadcrumb, Breadcrumbs, Button, ButtonContext, Caption, Card, CardLink, Checkbox, CheckboxGroup, Combobox, ListBoxHeader as ComboboxHeader, ListBoxItem as ComboboxItem, ListBoxSection as ComboboxSection, Content, ContentContext, DateFormatter, Description, Disclosure, DisclosureButton, DisclosurePanel, DisclosureStateContext, ErrorMessage, Footer, GrunnmurenProvider, Heading, HeadingContext, Label, LinkList, LinkListContainer, LinkListItem, Media, MediaContext, NumberField, Radio, RadioGroup, Select, ListBoxHeader as SelectHeader, ListBoxItem as SelectItem, ListBoxSection as SelectSection, Tag, TagGroup, TagList, TextArea, TextField, Carousel as UNSAFE_Carousel, CarouselButton as UNSAFE_CarouselButton, CarouselContext as UNSAFE_CarouselContext, CarouselControls as UNSAFE_CarouselControls, CarouselItem as UNSAFE_CarouselItem, CarouselItems as UNSAFE_CarouselItems, CarouselItemsContainer as UNSAFE_CarouselItemsContainer, CarouselItemsContainer as UNSAFE_CarouselItemsContainerProps, Dialog as UNSAFE_Dialog, DialogTrigger as UNSAFE_DialogTrigger, FileUpload as UNSAFE_FileUpload, Hero as UNSAFE_Hero, HeroContext as UNSAFE_HeroContext, Link as UNSAFE_Link, Modal as UNSAFE_Modal,
|
|
846
|
-
export type { AccordionItemProps, AccordionProps, Props as AlertboxProps, AvatarProps, BacklinkProps, BadgeProps, BreadcrumbProps, BreadcrumbsProps, ButtonProps, CaptionProps, CardLinkProps, CardProps, CheckboxGroupProps, CheckboxProps, ComboboxProps, ContentProps, DateFormatterProps, DescriptionProps, DisclosureButtonProps, DisclosurePanelProps, DisclosureProps, ErrorMessageProps, FooterProps, GrunnmurenProviderProps, HeadingProps, LinkListContainerProps, LinkListItemProps, LinkListProps, Locale, MediaProps, NumberFieldProps, RadioGroupProps, RadioProps, SelectProps, TagGroupProps, TagListProps, TagProps, TextAreaProps, TextFieldProps, CarouselButtonProps as UNSAFE_CarouselButtonProps, CarouselContextValue as UNSAFE_CarouselContextValue, CarouselControlsProps as UNSAFE_CarouselControlsProps, CarouselItemProps as UNSAFE_CarouselItemProps, CarouselItemsProps as UNSAFE_CarouselItemsProps, CarouselProps as UNSAFE_CarouselProps, DialogProps as UNSAFE_DialogProps, DialogTriggerProps as UNSAFE_DialogTriggerProps, FileUploadProps as UNSAFE_FileUploadProps, HeroContextValue as UNSAFE_HeroContextValue, HeroProps as UNSAFE_HeroProps, LinkProps as UNSAFE_LinkProps, ModalProps as UNSAFE_ModalProps,
|
|
872
|
+
export { Accordion, AccordionItem, Alertbox, Avatar, Backlink, Badge, Breadcrumb, Breadcrumbs, Button, ButtonContext, Caption, Card, CardLink, Checkbox, CheckboxGroup, Combobox, ListBoxHeader as ComboboxHeader, ListBoxItem as ComboboxItem, ListBoxSection as ComboboxSection, Content, ContentContext, DateFormatter, Description, Disclosure, DisclosureButton, DisclosurePanel, DisclosureStateContext, ErrorMessage, Footer, GrunnmurenProvider, Heading, HeadingContext, Label, LinkList, LinkListContainer, LinkListItem, Media, MediaContext, NumberField, Radio, RadioGroup, Select, ListBoxHeader as SelectHeader, ListBoxItem as SelectItem, ListBoxSection as SelectSection, Tag, TagGroup, TagList, TextArea, TextField, Carousel as UNSAFE_Carousel, CarouselButton as UNSAFE_CarouselButton, CarouselContext as UNSAFE_CarouselContext, CarouselControls as UNSAFE_CarouselControls, CarouselItem as UNSAFE_CarouselItem, CarouselItems as UNSAFE_CarouselItems, CarouselItemsContainer as UNSAFE_CarouselItemsContainer, CarouselItemsContainer as UNSAFE_CarouselItemsContainerProps, Dialog as UNSAFE_Dialog, DialogTrigger as UNSAFE_DialogTrigger, FileUpload as UNSAFE_FileUpload, Hero as UNSAFE_Hero, HeroContext as UNSAFE_HeroContext, Link as UNSAFE_Link, Modal as UNSAFE_Modal, Step as UNSAFE_Step, Stepper as UNSAFE_Stepper, Tab as UNSAFE_Tab, TabList as UNSAFE_TabList, TabPanel as UNSAFE_TabPanel, Table as UNSAFE_Table, TableBody as UNSAFE_TableBody, TableCell as UNSAFE_TableCell, TableColumn as UNSAFE_TableColumn, TableColumnResizer as UNSAFE_TableColumnResizer, TableContainer as UNSAFE_TableContainer, TableHeader as UNSAFE_TableHeader, TableRow as UNSAFE_TableRow, Tabs as UNSAFE_Tabs, VideoLoop, _useLocale as useLocale };
|
|
873
|
+
export type { AccordionItemProps, AccordionProps, Props as AlertboxProps, AvatarProps, BacklinkProps, BadgeProps, BreadcrumbProps, BreadcrumbsProps, ButtonProps, CaptionProps, CardLinkProps, CardProps, CheckboxGroupProps, CheckboxProps, ComboboxProps, ContentProps, DateFormatterProps, DescriptionProps, DisclosureButtonProps, DisclosurePanelProps, DisclosureProps, ErrorMessageProps, FooterProps, GrunnmurenProviderProps, HeadingProps, LinkListContainerProps, LinkListItemProps, LinkListProps, Locale, MediaProps, NumberFieldProps, RadioGroupProps, RadioProps, SelectProps, TagGroupProps, TagListProps, TagProps, TextAreaProps, TextFieldProps, CarouselButtonProps as UNSAFE_CarouselButtonProps, CarouselContextValue as UNSAFE_CarouselContextValue, CarouselControlsProps as UNSAFE_CarouselControlsProps, CarouselItemProps as UNSAFE_CarouselItemProps, CarouselItemsProps as UNSAFE_CarouselItemsProps, CarouselProps as UNSAFE_CarouselProps, DialogProps as UNSAFE_DialogProps, DialogTriggerProps as UNSAFE_DialogTriggerProps, FileUploadProps as UNSAFE_FileUploadProps, HeroContextValue as UNSAFE_HeroContextValue, HeroProps as UNSAFE_HeroProps, LinkProps as UNSAFE_LinkProps, ModalProps as UNSAFE_ModalProps, StepProps as UNSAFE_StepProps, StepperProps as UNSAFE_StepperProps, TabListProps as UNSAFE_TabListProps, TabPanelProps as UNSAFE_TabPanelProps, TabProps as UNSAFE_TabProps, TableBodyProps as UNSAFE_TableBodyProps, TableCellProps as UNSAFE_TableCellProps, TableColumnProps as UNSAFE_TableColumnProps, TableColumnResizerProps as UNSAFE_TableColumnResizerProps, TableContainerProps as UNSAFE_TableContainerProps, TableHeaderProps as UNSAFE_TableHeaderProps, TableProps as UNSAFE_TableProps, TableRowProps as UNSAFE_TableRowProps, TabsProps as UNSAFE_TabsProps };
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { useContextProps, DisclosureContext, DisclosureGroupStateContext, Provider, ButtonContext as ButtonContext$1, DEFAULT_SLOT, Button as Button$1, useLocale, Link as Link$1, Breadcrumb as Breadcrumb$1, Breadcrumbs as Breadcrumbs$1, GroupContext, Text, CheckboxContext, Checkbox as Checkbox$1, FieldError, Label as Label$1, CheckboxGroup as CheckboxGroup$1, Header, ListBoxItem as ListBoxItem$1, ListBoxSection as ListBoxSection$1, ListBox as ListBox$1, ComboBox, Group, Input, Popover, useSlottedContext, FormContext, FieldErrorContext, LabelContext, InputContext, I18nProvider, RouterProvider, Dialog as Dialog$1, DialogTrigger as DialogTrigger$1, Modal as Modal$1, ModalOverlay, NumberField as NumberField$1,
|
|
2
|
+
import { useContextProps, DisclosureContext, DisclosureGroupStateContext, Provider, ButtonContext as ButtonContext$1, DEFAULT_SLOT, Button as Button$1, useLocale, Link as Link$1, Breadcrumb as Breadcrumb$1, Breadcrumbs as Breadcrumbs$1, GroupContext, Text, CheckboxContext, Checkbox as Checkbox$1, FieldError, Label as Label$1, CheckboxGroup as CheckboxGroup$1, Header, ListBoxItem as ListBoxItem$1, ListBoxSection as ListBoxSection$1, ListBox as ListBox$1, ComboBox, Group, Input, Popover, useSlottedContext, FormContext, FieldErrorContext, LabelContext, InputContext, I18nProvider, RouterProvider, Dialog as Dialog$1, DialogTrigger as DialogTrigger$1, Modal as Modal$1, ModalOverlay, NumberField as NumberField$1, Radio as Radio$1, RadioGroup as RadioGroup$1, Select as Select$1, SelectValue, ProgressBar as ProgressBar$1, LinkContext, ColumnResizer, Table as Table$1, TableBody as TableBody$1, Cell, Column, ResizableTableContainer, TableHeader as TableHeader$1, Row, Tab as Tab$1, TabListStateContext, TabList as TabList$1, TabPanel as TabPanel$1, Tabs as Tabs$1, TagGroup as TagGroup$1, TagList as TagList$1, Tag as Tag$1, TextField as TextField$1, TextArea as TextArea$1 } from 'react-aria-components';
|
|
3
3
|
export { DisclosureGroup, Form, Group } from 'react-aria-components';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import { cva, cx, compose } from 'cva';
|
|
6
|
-
import { createContext, useContext, useId, useRef, Children, useState, useEffect, useMemo, useCallback } from 'react';
|
|
7
|
-
import { ChevronDown, Error, Warning, CheckCircle, InfoCircle, Close, User, ChevronLeft, ChevronRight, LoadingSpinner, Check, Trash,
|
|
6
|
+
import { createContext, useContext, useId, useRef, Children, useState, useEffect, useMemo, useCallback, isValidElement, cloneElement, use } from 'react';
|
|
7
|
+
import { ChevronDown, Error, Warning, CheckCircle, InfoCircle, Close, User, ChevronLeft, ChevronRight, LoadingSpinner, Check, Trash, Download, LinkExternal, ArrowRight, Edit, PlayerPause, PlayerPlay } from '@obosbbl/grunnmuren-icons-react';
|
|
8
8
|
import { filterDOMProps, mergeProps, mergeRefs, useObjectRef, useFormReset, useUpdateEffect } from '@react-aria/utils';
|
|
9
9
|
import { useFocusRing, useDisclosure, useProgressBar, useDateFormatter, useField } from 'react-aria';
|
|
10
10
|
import { useDisclosureState } from 'react-stately';
|
|
@@ -361,6 +361,16 @@ const translations$1 = {
|
|
|
361
361
|
nb: '(ekstern lenke)',
|
|
362
362
|
sv: '(extern länk)',
|
|
363
363
|
en: '(external link)'
|
|
364
|
+
},
|
|
365
|
+
stepper: {
|
|
366
|
+
nb: 'Steg',
|
|
367
|
+
sv: 'Steg',
|
|
368
|
+
en: 'Steps'
|
|
369
|
+
},
|
|
370
|
+
completed: {
|
|
371
|
+
nb: 'Fullført',
|
|
372
|
+
sv: 'Slutförd',
|
|
373
|
+
en: 'Completed'
|
|
364
374
|
}
|
|
365
375
|
};
|
|
366
376
|
|
|
@@ -619,37 +629,27 @@ function Badge(props) {
|
|
|
619
629
|
});
|
|
620
630
|
}
|
|
621
631
|
|
|
622
|
-
const _LinkContext = /*#__PURE__*/ createContext({});
|
|
623
632
|
const linkVariants = compose(animateIconVariants, cva({
|
|
624
|
-
base: 'inline-flex cursor-pointer items-center gap-1 font-medium hover:no-underline focus-visible:outline-current focus-visible:outline-focus-offset data-disabled:cursor-default'
|
|
633
|
+
base: 'inline-flex cursor-pointer items-center gap-1 font-medium hover:no-underline focus-visible:outline-current focus-visible:outline-focus-offset data-disabled:cursor-default data-disabled:font-normal data-disabled:no-underline'
|
|
625
634
|
}));
|
|
626
|
-
const Link = ({
|
|
627
|
-
const [props, ref] = useContextProps(_props, _ref, _LinkContext);
|
|
628
|
-
const { className, _innerWrapper, children: _children, ...restProps } = props;
|
|
635
|
+
const Link = ({ animateIcon, children, className, '~iconRight': iconRight, ...props })=>{
|
|
629
636
|
const locale = _useLocale();
|
|
630
|
-
const
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
}) : null;
|
|
634
|
-
const reactNodeChildren = /*#__PURE__*/ jsxs(Fragment, {
|
|
635
|
-
children: [
|
|
636
|
-
_children,
|
|
637
|
-
externalLinkSR
|
|
638
|
-
]
|
|
639
|
-
});
|
|
640
|
-
const children = _innerWrapper ? _innerWrapper({
|
|
641
|
-
...restProps,
|
|
642
|
-
children: typeof _children === 'function' ? (values)=>_children(values) : reactNodeChildren
|
|
643
|
-
}) : reactNodeChildren;
|
|
644
|
-
return /*#__PURE__*/ jsx(Link$1, {
|
|
645
|
-
...restProps,
|
|
646
|
-
ref: ref,
|
|
637
|
+
const externalLinkText = translations$1.externalLink[locale];
|
|
638
|
+
return /*#__PURE__*/ jsxs(Link$1, {
|
|
639
|
+
...props,
|
|
647
640
|
"data-slot": "link",
|
|
648
641
|
className: linkVariants({
|
|
649
642
|
className,
|
|
650
643
|
animateIcon
|
|
651
644
|
}),
|
|
652
|
-
children:
|
|
645
|
+
children: [
|
|
646
|
+
children,
|
|
647
|
+
props.rel?.includes('external') && /*#__PURE__*/ jsx("span", {
|
|
648
|
+
className: "sr-only",
|
|
649
|
+
children: externalLinkText
|
|
650
|
+
}),
|
|
651
|
+
iconRight
|
|
652
|
+
]
|
|
653
653
|
});
|
|
654
654
|
};
|
|
655
655
|
|
|
@@ -1628,7 +1628,7 @@ function Description(props) {
|
|
|
1628
1628
|
function Label(props) {
|
|
1629
1629
|
const { children, className, ...restProps } = props;
|
|
1630
1630
|
return /*#__PURE__*/ jsx(Label$1, {
|
|
1631
|
-
className: cx(className, 'font-
|
|
1631
|
+
className: cx(className, 'font-medium leading-7'),
|
|
1632
1632
|
...restProps,
|
|
1633
1633
|
children: children
|
|
1634
1634
|
});
|
|
@@ -2111,61 +2111,77 @@ function GrunnmurenProvider({ children, locale = 'nb', navigate, useHref }) {
|
|
|
2111
2111
|
});
|
|
2112
2112
|
}
|
|
2113
2113
|
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
const LinkListContainer = ({ className, ...
|
|
2143
|
-
/*#__PURE__*/ jsx(Provider, {
|
|
2114
|
+
const linkStyles = [
|
|
2115
|
+
'*:data-[slot=link]:flex',
|
|
2116
|
+
'*:data-[slot=link]:w-full',
|
|
2117
|
+
'*:data-[slot=link]:justify-between',
|
|
2118
|
+
'*:data-[slot=link]:gap-x-2',
|
|
2119
|
+
'*:data-[slot=link]:py-3.5',
|
|
2120
|
+
'*:data-[slot=link]:no-underline',
|
|
2121
|
+
'*:data-[slot=link]:focus-visible:outline-focus'
|
|
2122
|
+
];
|
|
2123
|
+
const linkListContainerVariants = cva({
|
|
2124
|
+
base: [
|
|
2125
|
+
'*:data-[slot=link-list]:overflow-visible',
|
|
2126
|
+
'*:data-[slot=heading]:p-1.25',
|
|
2127
|
+
'*:data-[slot=heading]:*:data-[slot=link]:py-2.25',
|
|
2128
|
+
'**:[svg]:text-base',
|
|
2129
|
+
'has-data-[slot=heading]:*:data-[slot=link-list]:overflow-visible',
|
|
2130
|
+
'*:data-[slot=heading]:has-not:*:data-[slot=link]:my-2.25'
|
|
2131
|
+
],
|
|
2132
|
+
variants: {
|
|
2133
|
+
layout: {
|
|
2134
|
+
stack: null,
|
|
2135
|
+
grid: '@container'
|
|
2136
|
+
}
|
|
2137
|
+
},
|
|
2138
|
+
defaultVariants: {
|
|
2139
|
+
layout: 'stack'
|
|
2140
|
+
}
|
|
2141
|
+
});
|
|
2142
|
+
const LinkListContainer = ({ className, layout = 'stack', ...props })=>/*#__PURE__*/ jsx(Provider, {
|
|
2144
2143
|
values: [
|
|
2145
2144
|
[
|
|
2146
2145
|
HeadingContext,
|
|
2147
2146
|
{
|
|
2148
|
-
size: 'm'
|
|
2147
|
+
size: 'm',
|
|
2148
|
+
className: cx(linkStyles)
|
|
2149
2149
|
}
|
|
2150
2150
|
]
|
|
2151
2151
|
],
|
|
2152
|
-
children: /*#__PURE__*/ jsx(
|
|
2153
|
-
children: /*#__PURE__*/ jsx("div", {
|
|
2154
|
-
className: cx(className, 'link-list-container'),
|
|
2155
|
-
...restProps
|
|
2156
|
-
})
|
|
2157
|
-
})
|
|
2158
|
-
});
|
|
2159
|
-
const LinkList = (props)=>/*#__PURE__*/ jsx(_LinkProvider, {
|
|
2160
|
-
children: /*#__PURE__*/ jsx("ul", {
|
|
2152
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
2161
2153
|
...props,
|
|
2162
|
-
|
|
2154
|
+
className: linkListContainerVariants({
|
|
2155
|
+
className,
|
|
2156
|
+
layout
|
|
2157
|
+
}),
|
|
2158
|
+
"data-layout": layout,
|
|
2159
|
+
"data-slot": "link-list-container"
|
|
2163
2160
|
})
|
|
2164
2161
|
});
|
|
2165
|
-
const
|
|
2162
|
+
const LinkList = ({ className, ...restProps })=>/*#__PURE__*/ jsx("ul", {
|
|
2163
|
+
...restProps,
|
|
2164
|
+
"data-slot": "link-list",
|
|
2165
|
+
className: cx(/**
|
|
2166
|
+
* Hides dividers at the top of the list (overflow-y)
|
|
2167
|
+
* while preventing arrow icons from overflowing container when animated to the right (overflow-x)
|
|
2168
|
+
*/ 'grid min-w-fit auto-rows-max gap-y-px overflow-hidden', className)
|
|
2169
|
+
});
|
|
2170
|
+
const LinkListItem = ({ children, className, ...props })=>{
|
|
2171
|
+
const child = Children.only(children);
|
|
2172
|
+
const childProps = /*#__PURE__*/ isValidElement(child) ? child.props : {};
|
|
2173
|
+
const animateIcon = childProps.animateIcon || childProps.download ? 'down' : childProps.rel?.includes('external') ? 'up-right' : 'right';
|
|
2174
|
+
const iconRight = childProps['~iconRight'] || childProps.download ? /*#__PURE__*/ jsx(Download, {}) : childProps.rel?.includes('external') ? /*#__PURE__*/ jsx(LinkExternal, {}) : /*#__PURE__*/ jsx(ArrowRight, {});
|
|
2175
|
+
return /*#__PURE__*/ jsx("li", {
|
|
2166
2176
|
...props,
|
|
2167
|
-
|
|
2177
|
+
className: cx(className, 'after:-top-px relative p-1.25 after:absolute after:right-0 after:left-0 after:h-px after:w-full after:bg-gray-light', '*:data-[slot=link]:paragraph', ...linkStyles),
|
|
2178
|
+
"data-slot": "link-list-item",
|
|
2179
|
+
children: /*#__PURE__*/ isValidElement(child) && /*#__PURE__*/ cloneElement(child, {
|
|
2180
|
+
animateIcon,
|
|
2181
|
+
'~iconRight': iconRight
|
|
2182
|
+
})
|
|
2168
2183
|
});
|
|
2184
|
+
};
|
|
2169
2185
|
|
|
2170
2186
|
const DialogTrigger = (props)=>/*#__PURE__*/ jsx(DialogTrigger$1, {
|
|
2171
2187
|
...props
|
|
@@ -2314,44 +2330,6 @@ function NumberField(props) {
|
|
|
2314
2330
|
});
|
|
2315
2331
|
}
|
|
2316
2332
|
|
|
2317
|
-
const _ProgressBarValueTextContext = /*#__PURE__*/ createContext(undefined);
|
|
2318
|
-
const _ProgressBarValueTextProvider = _ProgressBarValueTextContext.Provider;
|
|
2319
|
-
const ProgressBarValueText = ({ className, ...restProps })=>{
|
|
2320
|
-
const value = useContext(_ProgressBarValueTextContext);
|
|
2321
|
-
return /*#__PURE__*/ jsx("span", {
|
|
2322
|
-
...restProps,
|
|
2323
|
-
className: cx(className, 'px-2 leading-7'),
|
|
2324
|
-
"data-slot": "progress-bar-value-text",
|
|
2325
|
-
children: value
|
|
2326
|
-
});
|
|
2327
|
-
};
|
|
2328
|
-
const ProgressBar = ({ children, className, ...restProps })=>{
|
|
2329
|
-
return /*#__PURE__*/ jsx(ProgressBar$1, {
|
|
2330
|
-
"data-slot": "progress-bar",
|
|
2331
|
-
...restProps,
|
|
2332
|
-
className: cx(className, 'max-w-full'),
|
|
2333
|
-
children: ({ percentage, valueText, ...restArgs })=>/*#__PURE__*/ jsxs(_ProgressBarValueTextProvider, {
|
|
2334
|
-
value: valueText,
|
|
2335
|
-
children: [
|
|
2336
|
-
typeof children === 'function' ? children({
|
|
2337
|
-
percentage,
|
|
2338
|
-
valueText,
|
|
2339
|
-
...restArgs
|
|
2340
|
-
}) : children,
|
|
2341
|
-
/*#__PURE__*/ jsx("div", {
|
|
2342
|
-
className: "relative h-0.75 rounded bg-gray-light",
|
|
2343
|
-
children: /*#__PURE__*/ jsx("div", {
|
|
2344
|
-
className: "h-0.75 rounded bg-blue-dark transition-all duration-300 ease-in-out",
|
|
2345
|
-
style: {
|
|
2346
|
-
width: `${percentage}%`
|
|
2347
|
-
}
|
|
2348
|
-
})
|
|
2349
|
-
})
|
|
2350
|
-
]
|
|
2351
|
-
})
|
|
2352
|
-
});
|
|
2353
|
-
};
|
|
2354
|
-
|
|
2355
2333
|
const defaultClasses = cx([
|
|
2356
2334
|
'-ml-2.5 relative inline-flex max-w-fit cursor-pointer items-start gap-4 py-2.5 pl-2.5 leading-7',
|
|
2357
2335
|
// the radio button itself
|
|
@@ -2461,18 +2439,47 @@ function Select(props) {
|
|
|
2461
2439
|
});
|
|
2462
2440
|
}
|
|
2463
2441
|
|
|
2464
|
-
|
|
2442
|
+
const _ProgressBarValueTextContext = /*#__PURE__*/ createContext(undefined);
|
|
2443
|
+
const _ProgressBarValueTextProvider = _ProgressBarValueTextContext.Provider;
|
|
2444
|
+
const ProgressBar = ({ children, className, ...restProps })=>{
|
|
2445
|
+
return /*#__PURE__*/ jsx(ProgressBar$1, {
|
|
2446
|
+
"data-slot": "progress-bar",
|
|
2447
|
+
...restProps,
|
|
2448
|
+
className: cx(className, 'max-w-full'),
|
|
2449
|
+
children: ({ percentage, valueText, ...restArgs })=>/*#__PURE__*/ jsxs(_ProgressBarValueTextProvider, {
|
|
2450
|
+
value: valueText,
|
|
2451
|
+
children: [
|
|
2452
|
+
typeof children === 'function' ? children({
|
|
2453
|
+
percentage,
|
|
2454
|
+
valueText,
|
|
2455
|
+
...restArgs
|
|
2456
|
+
}) : children,
|
|
2457
|
+
/*#__PURE__*/ jsx("div", {
|
|
2458
|
+
className: "relative rounded border border-blue-dark bg-gray-light",
|
|
2459
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
2460
|
+
className: "h-1 rounded bg-blue-dark transition-all duration-300 ease-in-out",
|
|
2461
|
+
style: {
|
|
2462
|
+
width: `${percentage}%`
|
|
2463
|
+
}
|
|
2464
|
+
})
|
|
2465
|
+
})
|
|
2466
|
+
]
|
|
2467
|
+
})
|
|
2468
|
+
});
|
|
2469
|
+
};
|
|
2470
|
+
|
|
2471
|
+
function ScrollButton({ direction, onClick, isVisible, hasScrollingOccurred, className }) {
|
|
2465
2472
|
const Icon = direction === 'left' ? ChevronLeft : ChevronRight;
|
|
2466
2473
|
return(// biome-ignore lint/a11y/useKeyWithClickEvents: This button is only for mouse interaction to help users scroll. Keyboard and screen reader users can navigate the content directly without needing these scroll helpers.
|
|
2467
2474
|
// biome-ignore lint/a11y/noStaticElementInteractions: This button is only for mouse interaction to help users scroll. Keyboard and screen reader users can navigate the content directly without needing these scroll helpers.
|
|
2468
2475
|
/*#__PURE__*/ jsx("div", {
|
|
2469
2476
|
onClick: onClick,
|
|
2470
2477
|
className: cx(// Base scroll button styling
|
|
2471
|
-
'flex cursor-pointer items-center justify-center', '
|
|
2478
|
+
'flex cursor-pointer items-center justify-center', 'absolute top-0 size-11', 'group/scroll-button text-black', direction === 'left' ? 'bg-[linear-gradient(90deg,white,white_calc(100%-10px),transparent)]' : 'bg-[linear-gradient(90deg,transparent,white_calc(10px),white)]', // Animation
|
|
2472
2479
|
hasScrollingOccurred && 'duration-100 ease-in motion-safe:transition-transform', // Hide/show animation
|
|
2473
2480
|
direction === 'left' ? !isVisible && '-translate-x-full pointer-events-none' : !isVisible && 'pointer-events-none translate-x-full', direction === 'left' ? '-left-3' : '-right-3', className),
|
|
2474
2481
|
children: /*#__PURE__*/ jsx(Icon, {
|
|
2475
|
-
className:
|
|
2482
|
+
className: cx('motion-safe:transition-all', direction === 'left' ? 'group-hover/scroll-button:-translate-x-1' : 'group-hover/scroll-button:translate-x-1')
|
|
2476
2483
|
})
|
|
2477
2484
|
}));
|
|
2478
2485
|
}
|
|
@@ -2529,6 +2536,132 @@ function ScrollButton({ direction, onClick, isVisible, hasScrollingOccurred, cla
|
|
|
2529
2536
|
};
|
|
2530
2537
|
}
|
|
2531
2538
|
|
|
2539
|
+
const StepperContext = /*#__PURE__*/ createContext({
|
|
2540
|
+
activeStep: 0,
|
|
2541
|
+
stepsCount: 0
|
|
2542
|
+
});
|
|
2543
|
+
const Stepper = ({ children, activeStep, onStepChange, ...restProps })=>{
|
|
2544
|
+
const locale = _useLocale();
|
|
2545
|
+
const stepsCount = Children.count(children);
|
|
2546
|
+
const [emblaRef, emblaApi] = useEmblaCarousel({
|
|
2547
|
+
startIndex: activeStep,
|
|
2548
|
+
dragFree: true,
|
|
2549
|
+
breakpoints: {
|
|
2550
|
+
// disable the carousel on large screens
|
|
2551
|
+
'(width >= 64rem)': {
|
|
2552
|
+
active: false
|
|
2553
|
+
}
|
|
2554
|
+
}
|
|
2555
|
+
});
|
|
2556
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
2557
|
+
...restProps,
|
|
2558
|
+
"data-slot": "stepper-container",
|
|
2559
|
+
ref: emblaRef,
|
|
2560
|
+
children: [
|
|
2561
|
+
/*#__PURE__*/ jsx("ol", {
|
|
2562
|
+
"aria-label": translations$1.stepper[locale],
|
|
2563
|
+
"data-slot": "stepper",
|
|
2564
|
+
children: /*#__PURE__*/ jsx(StepperContext.Provider, {
|
|
2565
|
+
value: {
|
|
2566
|
+
onStepChange,
|
|
2567
|
+
activeStep,
|
|
2568
|
+
stepsCount
|
|
2569
|
+
},
|
|
2570
|
+
children: Children.map(children, (child, index)=>{
|
|
2571
|
+
return /*#__PURE__*/ isValidElement(child) && /*#__PURE__*/ cloneElement(child, {
|
|
2572
|
+
'~stepIndex': index
|
|
2573
|
+
});
|
|
2574
|
+
})
|
|
2575
|
+
})
|
|
2576
|
+
}),
|
|
2577
|
+
/*#__PURE__*/ jsx(MobileScrollButtons, {
|
|
2578
|
+
emblaApi: emblaApi
|
|
2579
|
+
})
|
|
2580
|
+
]
|
|
2581
|
+
});
|
|
2582
|
+
};
|
|
2583
|
+
const MobileScrollButtons = ({ emblaApi })=>{
|
|
2584
|
+
const [canScrollLeft, setCanScrollLeft] = useState(false);
|
|
2585
|
+
const [canScrollRight, setCanScrollRight] = useState(false);
|
|
2586
|
+
useEffect(()=>{
|
|
2587
|
+
if (!emblaApi) {
|
|
2588
|
+
return;
|
|
2589
|
+
}
|
|
2590
|
+
const handleSlidesInView = ()=>{
|
|
2591
|
+
setCanScrollLeft(emblaApi.canScrollPrev());
|
|
2592
|
+
setCanScrollRight(emblaApi.canScrollNext());
|
|
2593
|
+
};
|
|
2594
|
+
emblaApi.on('slidesInView', handleSlidesInView);
|
|
2595
|
+
return ()=>{
|
|
2596
|
+
emblaApi.off('slidesInView', handleSlidesInView);
|
|
2597
|
+
};
|
|
2598
|
+
}, [
|
|
2599
|
+
emblaApi
|
|
2600
|
+
]);
|
|
2601
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
2602
|
+
children: [
|
|
2603
|
+
/*#__PURE__*/ jsx(ScrollButton, {
|
|
2604
|
+
className: "lg:hidden",
|
|
2605
|
+
direction: "left",
|
|
2606
|
+
onClick: ()=>emblaApi?.scrollPrev(),
|
|
2607
|
+
isVisible: canScrollLeft,
|
|
2608
|
+
hasScrollingOccurred: false
|
|
2609
|
+
}),
|
|
2610
|
+
/*#__PURE__*/ jsx(ScrollButton, {
|
|
2611
|
+
className: "lg:hidden",
|
|
2612
|
+
direction: "right",
|
|
2613
|
+
isVisible: canScrollRight,
|
|
2614
|
+
onClick: ()=>emblaApi?.scrollNext(),
|
|
2615
|
+
hasScrollingOccurred: false
|
|
2616
|
+
})
|
|
2617
|
+
]
|
|
2618
|
+
});
|
|
2619
|
+
};
|
|
2620
|
+
const Step = ({ isDisabled = false, state, children, '~stepIndex': stepIndex, progress, ...restProps })=>{
|
|
2621
|
+
const locale = _useLocale();
|
|
2622
|
+
const id = useId();
|
|
2623
|
+
const { onStepChange, activeStep, stepsCount } = use(StepperContext);
|
|
2624
|
+
const isLastStep = stepIndex === stepsCount - 1;
|
|
2625
|
+
const isCurrent = stepIndex === activeStep;
|
|
2626
|
+
const iconText = state === 'completed' ? translations$1.completed[locale] : undefined;
|
|
2627
|
+
const icon = isCurrent ? /*#__PURE__*/ jsx(Edit, {
|
|
2628
|
+
"aria-label": iconText
|
|
2629
|
+
}) : state === 'completed' && /*#__PURE__*/ jsx(Check, {
|
|
2630
|
+
"aria-label": iconText
|
|
2631
|
+
});
|
|
2632
|
+
return /*#__PURE__*/ jsx("li", {
|
|
2633
|
+
...restProps,
|
|
2634
|
+
"data-slot": "step",
|
|
2635
|
+
"data-state": state,
|
|
2636
|
+
"data-current": isCurrent ? true : undefined,
|
|
2637
|
+
"data-disabled": isDisabled ? true : undefined,
|
|
2638
|
+
id: id,
|
|
2639
|
+
children: /*#__PURE__*/ jsxs(Provider, {
|
|
2640
|
+
values: [
|
|
2641
|
+
[
|
|
2642
|
+
LinkContext,
|
|
2643
|
+
{
|
|
2644
|
+
// @ts-expect-error this works even though it's a type error
|
|
2645
|
+
'aria-current': isCurrent ? 'step' : undefined,
|
|
2646
|
+
isDisabled,
|
|
2647
|
+
className: 'underline',
|
|
2648
|
+
onPress: ()=>onStepChange?.(stepIndex)
|
|
2649
|
+
}
|
|
2650
|
+
]
|
|
2651
|
+
],
|
|
2652
|
+
children: [
|
|
2653
|
+
icon,
|
|
2654
|
+
children,
|
|
2655
|
+
!isLastStep && /*#__PURE__*/ jsx(ProgressBar, {
|
|
2656
|
+
"aria-labelledby": id,
|
|
2657
|
+
// Make sure that if the step is completed, the progress value is 100%
|
|
2658
|
+
value: state === 'completed' ? 100 : progress
|
|
2659
|
+
})
|
|
2660
|
+
]
|
|
2661
|
+
})
|
|
2662
|
+
});
|
|
2663
|
+
};
|
|
2664
|
+
|
|
2532
2665
|
const tableVariants = cva({
|
|
2533
2666
|
base: [
|
|
2534
2667
|
'relative'
|
|
@@ -2578,22 +2711,6 @@ const TableScrollContainerContext = /*#__PURE__*/ createContext({
|
|
|
2578
2711
|
children: /*#__PURE__*/ jsxs("div", {
|
|
2579
2712
|
className: "relative overflow-hidden",
|
|
2580
2713
|
children: [
|
|
2581
|
-
/*#__PURE__*/ jsx(ScrollButton, {
|
|
2582
|
-
direction: "left",
|
|
2583
|
-
onClick: ()=>handleScroll('left'),
|
|
2584
|
-
isVisible: canScrollLeft,
|
|
2585
|
-
hasScrollingOccurred: hasScrollingOccurred,
|
|
2586
|
-
className: "-translate-y-1/2 absolute top-5 z-10 h-11 w-11",
|
|
2587
|
-
iconClassName: "h-5 w-5"
|
|
2588
|
-
}),
|
|
2589
|
-
/*#__PURE__*/ jsx(ScrollButton, {
|
|
2590
|
-
direction: "right",
|
|
2591
|
-
onClick: ()=>handleScroll('right'),
|
|
2592
|
-
isVisible: canScrollRight,
|
|
2593
|
-
hasScrollingOccurred: hasScrollingOccurred,
|
|
2594
|
-
className: "-translate-y-1/2 absolute top-5 z-10 h-11 w-11",
|
|
2595
|
-
iconClassName: "h-5 w-5"
|
|
2596
|
-
}),
|
|
2597
2714
|
/*#__PURE__*/ jsx("div", {
|
|
2598
2715
|
ref: scrollContainerRef,
|
|
2599
2716
|
className: "scrollbar-hidden overflow-x-auto",
|
|
@@ -2606,6 +2723,18 @@ const TableScrollContainerContext = /*#__PURE__*/ createContext({
|
|
|
2606
2723
|
"data-variant": variant,
|
|
2607
2724
|
children: children
|
|
2608
2725
|
})
|
|
2726
|
+
}),
|
|
2727
|
+
/*#__PURE__*/ jsx(ScrollButton, {
|
|
2728
|
+
direction: "left",
|
|
2729
|
+
onClick: ()=>handleScroll('left'),
|
|
2730
|
+
isVisible: canScrollLeft,
|
|
2731
|
+
hasScrollingOccurred: hasScrollingOccurred
|
|
2732
|
+
}),
|
|
2733
|
+
/*#__PURE__*/ jsx(ScrollButton, {
|
|
2734
|
+
direction: "right",
|
|
2735
|
+
onClick: ()=>handleScroll('right'),
|
|
2736
|
+
isVisible: canScrollRight,
|
|
2737
|
+
hasScrollingOccurred: hasScrollingOccurred
|
|
2609
2738
|
})
|
|
2610
2739
|
]
|
|
2611
2740
|
})
|
|
@@ -2793,17 +2922,13 @@ const tabsVariants = cva({
|
|
|
2793
2922
|
direction: "left",
|
|
2794
2923
|
onClick: onPrev,
|
|
2795
2924
|
isVisible: canScrollLeft,
|
|
2796
|
-
hasScrollingOccurred: hasScrollingOccurred
|
|
2797
|
-
className: "absolute bottom-0.25 size-11",
|
|
2798
|
-
iconClassName: "mt-0.25 h-6 w-full text-black"
|
|
2925
|
+
hasScrollingOccurred: hasScrollingOccurred
|
|
2799
2926
|
}),
|
|
2800
2927
|
/*#__PURE__*/ jsx(ScrollButton, {
|
|
2801
2928
|
direction: "right",
|
|
2802
2929
|
onClick: onNext,
|
|
2803
2930
|
isVisible: canScrollRight,
|
|
2804
|
-
hasScrollingOccurred: hasScrollingOccurred
|
|
2805
|
-
className: "absolute bottom-0.25 size-11",
|
|
2806
|
-
iconClassName: "mt-0.25 h-6 w-full text-black"
|
|
2931
|
+
hasScrollingOccurred: hasScrollingOccurred
|
|
2807
2932
|
})
|
|
2808
2933
|
]
|
|
2809
2934
|
});
|
|
@@ -2814,7 +2939,7 @@ const tabsVariants = cva({
|
|
|
2814
2939
|
const { className, children, ...restProps } = props;
|
|
2815
2940
|
return /*#__PURE__*/ jsx(Tab$1, {
|
|
2816
2941
|
...restProps,
|
|
2817
|
-
className: cx(className, 'data-focus-visible:-outline-offset-10 data-focus-visible:outline-2 data-focus-visible:outline-black', 'description cursor-pointer border-transparent px-4 py-
|
|
2942
|
+
className: cx(className, 'data-focus-visible:-outline-offset-10 data-focus-visible:outline-2 data-focus-visible:outline-black', 'description h-11 cursor-pointer border-transparent px-4 py-[0.71875rem] font-light', // Transition
|
|
2818
2943
|
'transition-colors duration-150 ease-out', // TODO: Should disabled tabs just be hidden?
|
|
2819
2944
|
'data-disabled:cursor-not-allowed data-disabled:opacity-50', // Selection
|
|
2820
2945
|
'data-selected:font-medium data-selected:text-blue-dark', // Hover with layout shift prevention using pseudo-element
|
|
@@ -3075,4 +3200,4 @@ const VideoLoop = ({ src, format, alt, className })=>{
|
|
|
3075
3200
|
});
|
|
3076
3201
|
};
|
|
3077
3202
|
|
|
3078
|
-
export { Accordion, AccordionItem, Alertbox, Avatar, Backlink, Badge, Breadcrumb, Breadcrumbs, Button, ButtonContext, Caption, Card, CardLink, Checkbox, CheckboxGroup, Combobox, ListBoxHeader as ComboboxHeader, ListBoxItem as ComboboxItem, ListBoxSection as ComboboxSection, Content, ContentContext, DateFormatter, Description, Disclosure, DisclosureButton, DisclosurePanel, DisclosureStateContext, ErrorMessage, Footer, GrunnmurenProvider, Heading, HeadingContext, Label, LinkList, LinkListContainer, LinkListItem, Media, MediaContext, NumberField, Radio, RadioGroup, Select, ListBoxHeader as SelectHeader, ListBoxItem as SelectItem, ListBoxSection as SelectSection, Tag, TagGroup, TagList, TextArea, TextField, Carousel as UNSAFE_Carousel, CarouselButton as UNSAFE_CarouselButton, CarouselContext as UNSAFE_CarouselContext, CarouselControls as UNSAFE_CarouselControls, CarouselItem as UNSAFE_CarouselItem, CarouselItems as UNSAFE_CarouselItems, CarouselItemsContainer as UNSAFE_CarouselItemsContainer, Dialog as UNSAFE_Dialog, DialogTrigger as UNSAFE_DialogTrigger, FileUpload as UNSAFE_FileUpload, Hero as UNSAFE_Hero, HeroContext as UNSAFE_HeroContext, Link as UNSAFE_Link, Modal as UNSAFE_Modal,
|
|
3203
|
+
export { Accordion, AccordionItem, Alertbox, Avatar, Backlink, Badge, Breadcrumb, Breadcrumbs, Button, ButtonContext, Caption, Card, CardLink, Checkbox, CheckboxGroup, Combobox, ListBoxHeader as ComboboxHeader, ListBoxItem as ComboboxItem, ListBoxSection as ComboboxSection, Content, ContentContext, DateFormatter, Description, Disclosure, DisclosureButton, DisclosurePanel, DisclosureStateContext, ErrorMessage, Footer, GrunnmurenProvider, Heading, HeadingContext, Label, LinkList, LinkListContainer, LinkListItem, Media, MediaContext, NumberField, Radio, RadioGroup, Select, ListBoxHeader as SelectHeader, ListBoxItem as SelectItem, ListBoxSection as SelectSection, Tag, TagGroup, TagList, TextArea, TextField, Carousel as UNSAFE_Carousel, CarouselButton as UNSAFE_CarouselButton, CarouselContext as UNSAFE_CarouselContext, CarouselControls as UNSAFE_CarouselControls, CarouselItem as UNSAFE_CarouselItem, CarouselItems as UNSAFE_CarouselItems, CarouselItemsContainer as UNSAFE_CarouselItemsContainer, Dialog as UNSAFE_Dialog, DialogTrigger as UNSAFE_DialogTrigger, FileUpload as UNSAFE_FileUpload, Hero as UNSAFE_Hero, HeroContext as UNSAFE_HeroContext, Link as UNSAFE_Link, Modal as UNSAFE_Modal, Step as UNSAFE_Step, Stepper as UNSAFE_Stepper, Tab as UNSAFE_Tab, TabList as UNSAFE_TabList, TabPanel as UNSAFE_TabPanel, Table as UNSAFE_Table, TableBody as UNSAFE_TableBody, TableCell as UNSAFE_TableCell, TableColumn as UNSAFE_TableColumn, TableColumnResizer as UNSAFE_TableColumnResizer, TableContainer as UNSAFE_TableContainer, TableHeader as UNSAFE_TableHeader, TableRow as UNSAFE_TableRow, Tabs as UNSAFE_Tabs, VideoLoop, _useLocale as useLocale };
|