@norges-domstoler/dds-components 23.1.2 → 23.2.0

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
@@ -503,606 +503,216 @@ declare const DropdownHeader: ({ className, ...rest }: DropdownHeaderProps) => r
503
503
  */
504
504
  declare const HiddenInput: ({ className, ...rest }: ComponentPropsWithRef<"input">) => react.JSX.Element;
505
505
 
506
+ type StylelessListProps<TProps extends object = object> = TProps & ComponentPropsWithRef<'ul'>;
506
507
  /**
507
- * Hook som returnerer en callback-funksjon som refererer til den nyeste versjonen av den opprinnelige funksjonen.
508
- * Nyttig når du trenger en stabil referanse (f.eks. i event listeners), men fortsatt ønsker at den skal bruke den nyeste logikken.
508
+ * Normalisert `<ul>` uten styling. Base for custom ul styling.
509
509
  *
510
- * @template T - Typen til callback-funksjonen.
511
- * @param {T | undefined} callback - Funksjonen som skal kalles.
512
- * @param {DependencyList} [deps=[]] - Avhengigheter som styrer når den returnerte funksjonen skal oppdateres.
513
- * @returns {T} En memorisert funksjon som peker til den nyeste versjonen av `callback`.
510
+ * @component
511
+ * @template T ekstra props ved behov.
512
+ * @param {Object & T} props - Standard HTML-attributter for komponenten med mulig utvidelse.
513
+ *
514
+ * @returns {JSX.Element} `<ul>`-element uten styling.
515
+
514
516
  * @example
515
517
  * ```tsx
516
- * function MyComponent() {
517
- * const [count, setCount] = useState(0);
518
- *
519
- * const handleClick = useCallbackRef(() => {
520
- * console.log('Klikk med count:', count);
521
- * }, [count]);
522
- *
523
- * useEffect(() => {
524
- * window.addEventListener('click', handleClick);
525
- * return () => window.removeEventListener('click', handleClick);
526
- * }, [handleClick]);
527
- *
528
- * return <button onClick={() => setCount(c => c + 1)}>Øk</button>;
529
- * }
518
+ * <StylelessList className="min-styling">
519
+ * <li>item</li>
520
+ * <li>item</li>
521
+ * </StylelessList>
530
522
  * ```
531
-
532
523
  */
533
- declare function useCallbackRef<T extends (...args: Array<never>) => unknown>(callback: T | undefined, deps?: DependencyList): T;
534
-
524
+ declare const StylelessList: ({ className, ...rest }: StylelessListProps) => react.JSX.Element;
525
+ type StylelessOListProps<TProps extends object = object> = TProps & ComponentPropsWithRef<'ol'>;
535
526
  /**
536
- * Kombinerer refs for et element.
527
+ * Normalisert `<ol>` uten styling. Base for custom ol styling.
537
528
  *
538
- * @template T elementet som refereres til.
539
- * @param {Array<Ref<T> | undefined>} refs array med refs.
540
- * @returns {RefCallback<T>} callback med kombinerte refs.
529
+ * @component
530
+ * @template T ekstra props ved behov.
531
+ * @param {Object & T} props - Standard HTML-attributter for komponenten med mulig utvidelse.
532
+ *
533
+ * @returns {JSX.Element} `<ol>`-element uten styling.
534
+
541
535
  * @example
542
536
  * ```tsx
543
- * function MyComponent(ref) {
544
- *
545
- * const itemRef = useRef<HTMLDivElement>(null);
546
- * const combinedRef = useCombinedRef(ref, itemRef);
547
- *
548
- * return <div ref={combinedRef}>innhold</div>
549
- * });
537
+ * <StylelessOList className="min-styling">
538
+ * <li>item</li>
539
+ * <li>item</li>
540
+ * </StylelessOList>
550
541
  * ```
551
542
  */
552
- declare function useCombinedRef<T>(...refs: Array<Ref<T> | undefined>): RefCallback<T>;
543
+ declare const StylelessOList: ({ className, ...rest }: StylelessOListProps) => react.JSX.Element;
553
544
 
554
- interface UseControllableStateProps<T> {
555
- /**Verdi. */
556
- value?: T;
557
- /**Default verdi. */
558
- defaultValue?: T | (() => T);
559
- /** `onChange` funksjon. */
560
- onChange?: (value: T) => void;
561
- }
562
545
  /**
563
- * The `useControllableState` hook returns the state and function that updates the state, just like React.useState does.
546
+ * Styling utils i TS (CSS-in-JS)
564
547
  */
565
548
  /**
566
- * Håndterer bruk av state slik at den kan bli enten kontrollert eller ukontrollert ut av boksen.
567
- * @template T typen til verdien.
568
- * @param {{
569
- * value?: T;
570
- * defaultValue?: T | (() => T);
571
- * onChange?: (value: T) => void;
572
- * }} props verdi, default verdi ved ukontrollert state og funksjon til å kotrnollere `value`.
573
- * @returns {[T, Dispatch<SetStateAction<T>>]} state og funksjon til å kontrollere den.
574
- * @example
575
- * ```tsx
576
- * const MyComponent = ({
577
- * onChange,
578
- * checked: checkedProp,
579
- * defaultChecked
580
- * }) => {
581
- * const [checked, setChecked] = useControllableState({
582
- * value: checkedProp,
583
- * defaultValue: defaultChecked ?? false,
584
- * onChange,
585
- * });
586
- * return (
587
- * <input
588
- * checked={checked}
589
- * onChange={e => setChecked(e.target.checked)}
590
- * type="checkbox"
591
- * />
592
- * ) };
593
- * ```
549
+ * DDS utils
594
550
  */
595
- declare function useControllableState<T>(props: UseControllableStateProps<T>): [T, Dispatch<SetStateAction<T>>];
551
+ declare const outlineOffset = "var(--dds-spacing-x0-125)";
552
+ declare const outlineInset = "calc(var(--dds-spacing-x0-125) * -1)";
553
+ declare const focusVisible: {
554
+ outline: string;
555
+ outlineOffset: string;
556
+ boxShadow: string;
557
+ };
558
+ declare const focusVisibleTransitionValue = "outline-offset var(--dds-motion-micro-state)";
559
+ declare const focusVisibleInset: {
560
+ outline: string;
561
+ outlineOffset: string;
562
+ };
563
+ declare const scrollbarStyling: {
564
+ scrollbarColor: string;
565
+ scrollbarWidth: "thin";
566
+ };
596
567
  /**
597
- * The `useControllableGroupState` hook returns the group value and handleChange function to control it.
568
+ * Generelle utils
598
569
  */
599
- interface UseControllableGroupStateProps<T> extends Pick<UseControllableStateProps<T>, 'defaultValue' | 'value'> {
600
- onChange?: (event: ChangeEvent<HTMLInputElement>, value: T) => void;
570
+ declare const hideInput: {
571
+ clip: string;
572
+ position: string;
573
+ height: string;
574
+ width: string;
575
+ margin: number;
576
+ };
577
+ declare const inheritLinkStyling: {
578
+ color: string;
579
+ textDecoration: string;
580
+ };
581
+ declare const removeButtonStyling: {
582
+ background: string;
583
+ color: string;
584
+ border: string;
585
+ padding: number;
586
+ font: string;
587
+ cursor: string;
588
+ outline: string;
589
+ };
590
+ declare const removeListStyling: {
591
+ listStyle: string;
592
+ padding: number;
593
+ margin: number;
594
+ };
595
+ declare const normalizeButton: {
596
+ margin: number;
597
+ textTransform: Property.TextTransform;
598
+ };
599
+
600
+ declare const BREAKPOINTS: readonly ["xs", "sm", "md", "lg", "xl"];
601
+ type Breakpoint = (typeof BREAKPOINTS)[number];
602
+ declare const SPACING_SCALES: readonly ["x0", "x0.125", "x0.25", "x0.5", "x0.75", "x1", "x1.5", "x2", "x2.5", "x3", "x4", "x6", "x10"];
603
+ type SpacingScale = (typeof SPACING_SCALES)[number];
604
+ interface PrimitiveDisplayProps {
605
+ /** Skjuler komponenten fra og med det angitte brekkpunktet og nedover. */
606
+ hideBelow?: Breakpoint;
607
+ /** Viser komponenten kun under det angitte brekkpunktet. */
608
+ showBelow?: Breakpoint;
601
609
  }
602
- declare function useControllableGroupState<T>(props: UseControllableGroupStateProps<T>): {
603
- groupValue: T | undefined;
604
- handleChange: (e: ChangeEvent<HTMLInputElement>) => void;
610
+ type BreakpointBasedProp<T> = Partial<Record<Breakpoint, T>>;
611
+ type ResponsiveProp<T> = T | BreakpointBasedProp<T>;
612
+ interface PrimitiveLayoutProps {
613
+ /** CSS `width`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
614
+ width?: ResponsiveProp<Property.Width>;
615
+ /** CSS `max-width`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
616
+ maxWidth?: ResponsiveProp<Property.MaxWidth>;
617
+ /** CSS `min-width`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
618
+ minWidth?: ResponsiveProp<Property.MinWidth>;
619
+ /** CSS `height`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
620
+ height?: ResponsiveProp<Property.Height>;
621
+ /** CSS `max-height`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
622
+ maxHeight?: ResponsiveProp<Property.MaxHeight>;
623
+ /** CSS `min-height`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
624
+ minHeight?: ResponsiveProp<Property.MinHeight>;
625
+ /** CSS `overflow`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
626
+ overflow?: ResponsiveProp<Property.Overflow>;
627
+ /** CSS `overflow-y`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
628
+ overflowY?: ResponsiveProp<Property.OverflowY>;
629
+ /** CSS `overflow-x`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
630
+ overflowX?: ResponsiveProp<Property.OverflowX>;
631
+ /** CSS `position`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
632
+ position?: ResponsiveProp<Property.Position>;
633
+ /** CSS `top`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
634
+ top?: ResponsiveProp<Property.Top | SpacingScale>;
635
+ /** CSS `bottom`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
636
+ bottom?: ResponsiveProp<Property.Bottom | SpacingScale>;
637
+ /** CSS `left`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
638
+ left?: ResponsiveProp<Property.Left | SpacingScale>;
639
+ /** CSS `right`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
640
+ right?: ResponsiveProp<Property.Right | SpacingScale>;
641
+ /** CSS `padding`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
642
+ padding?: ResponsiveProp<Property.Padding | SpacingScale>;
643
+ /** CSS `padding-inline`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
644
+ paddingInline?: ResponsiveProp<Property.PaddingInline | SpacingScale>;
645
+ /** CSS `padding-block`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
646
+ paddingBlock?: ResponsiveProp<Property.PaddingBlock | SpacingScale>;
647
+ /** CSS `margin`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
648
+ margin?: ResponsiveProp<Property.Margin | SpacingScale>;
649
+ /** CSS `margin-inline`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
650
+ marginInline?: ResponsiveProp<Property.MarginInline | SpacingScale>;
651
+ /** CSS `margin-block`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
652
+ marginBlock?: ResponsiveProp<Property.MarginBlock | SpacingScale>;
653
+ /** CSS `display`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
654
+ display?: ResponsiveProp<Property.Display>;
655
+ /** CSS `flex-direction`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
656
+ flexDirection?: ResponsiveProp<Property.FlexDirection>;
657
+ /** CSS `flex-basis`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
658
+ flexBasis?: ResponsiveProp<Property.FlexBasis>;
659
+ /** CSS `flex-wrap`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
660
+ flexWrap?: ResponsiveProp<Property.FlexWrap>;
661
+ /** CSS `flex-flow`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
662
+ flexFlow?: ResponsiveProp<Property.FlexFlow>;
663
+ /** CSS `align-items`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
664
+ alignItems?: ResponsiveProp<Property.AlignItems>;
665
+ /** CSS `justify-items`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
666
+ justifyItems?: ResponsiveProp<Property.JustifyItems>;
667
+ /** CSS `place-items`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
668
+ placeItems?: ResponsiveProp<Property.PlaceItems>;
669
+ /** CSS `align-content`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
670
+ alignContent?: ResponsiveProp<Property.AlignContent>;
671
+ /** CSS `justify-content`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
672
+ justifyContent?: ResponsiveProp<Property.JustifyContent>;
673
+ /** CSS `text-align`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser. */
674
+ textAlign?: ResponsiveProp<Property.TextAlign>;
675
+ /** CSS `gap`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
676
+ gap?: ResponsiveProp<Property.Gap | SpacingScale>;
677
+ /** CSS `row-gap`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
678
+ rowGap?: ResponsiveProp<Property.RowGap | SpacingScale>;
679
+ /** CSS `column-gap`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
680
+ columnGap?: ResponsiveProp<Property.ColumnGap | SpacingScale>;
681
+ /** CSS `word-break`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
682
+ wordBreak?: ResponsiveProp<Property.WordBreak>;
683
+ }
684
+ type ResponsiveProps = PrimitiveDisplayProps & PrimitiveLayoutProps;
685
+ type ResponsiveStackProps = Omit<ResponsiveProps, 'display' | 'flexDirection'>;
686
+ type ResponsiveGridProps = Omit<ResponsiveProps, 'display'> & {
687
+ /** CSS `display`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
688
+ display?: ExtractStrict<Property.Display, 'grid' | 'inline-grid'>;
689
+ /** CSS `grid-template-columns`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser. */
690
+ gridTemplateColumns?: ResponsiveProp<Property.GridTemplateColumns>;
691
+ /** CSS `grid`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser. */
692
+ grid?: ResponsiveProp<Property.Grid>;
693
+ /** CSS `grid-auto-columns`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser. */
694
+ gridAutoColumns?: ResponsiveProp<Property.GridAutoColumns>;
695
+ /** CSS `grid-auto-rows`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser. */
696
+ gridAutoRows?: ResponsiveProp<Property.GridAutoRows>;
697
+ /** CSS `grid-auto-flow`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser. */
698
+ gridAutoFlow?: ResponsiveProp<Property.GridAutoFlow>;
699
+ /** CSS `grid-template-rows`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser. */
700
+ gridTemplateRows?: ResponsiveProp<Property.GridTemplateRows>;
701
+ /** CSS `grid-template`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser. */
702
+ gridTemplate?: ResponsiveProp<Property.GridTemplate>;
703
+ /** CSS `grid-template-areas`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser. */
704
+ gridTemplateAreas?: ResponsiveProp<Property.GridTemplateAreas>;
705
+ };
706
+ type ResponsiveBleedProps = PrimitiveLayoutProps & {
707
+ /**Setter negativ CSS `margin-inline`, overskriver prop `marginInline`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
708
+ bleedMarginInline?: ResponsiveProp<Property.MarginInline | SpacingScale>;
709
+ /**Setter negativ CSS `margin-block`, overskriver prop `marginBlock`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
710
+ bleedMarginBlock?: ResponsiveProp<Property.MarginBlock | SpacingScale>;
605
711
  };
606
712
 
607
- type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
608
- interface UseFloatPositionOptions {
713
+ type BleedProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T, {
609
714
  /**
610
- * Whether to update the position of the floating element on every animation frame if required.
611
- * This is optimized for performance but can still be costly.
612
- * @default true
613
- */
614
- animationFrame?: boolean;
615
- /**
616
- * `offset` is used to displace the floating element from its core placement.
617
- * The value passed is logical, meaning its effect on the
618
- * physical result is dependent on the writing direction (e.g. RTL).
619
- * @default 8
620
- */
621
- offset?: number;
622
- /**
623
- * Where to place the floating element relative to its reference element.
624
- * @default 'bottom'
625
- */
626
- placement?: Placement;
627
- }
628
- interface FloatingStyles {
629
- position: Strategy;
630
- top: number;
631
- left: number;
632
- }
633
- interface UseFloatPosition {
634
- refs: UseFloatingReturn['refs'];
635
- isPositioned: boolean;
636
- styles: {
637
- floating: FloatingStyles;
638
- arrow: {
639
- [x: string]: string | number;
640
- position: Strategy;
641
- top: string | number;
642
- left: string | number;
643
- transform: string;
644
- } | undefined;
645
- };
646
- }
647
- /**
648
- * Håndterer posisjonering av et element i forhold til et annet element i DOM.
649
- * @param {HTMLElement | null} arrowRef pil-elementet.
650
- * @param {{AnimationFrame: boolean, offset: number, placement: Placement}} options alternativer for float.
651
- * @returns {{
652
- * refs: import('@floating-ui/react-dom').UseFloatingReturn['refs'],
653
- * styles: {
654
- * floating: import('@floating-ui/react-dom').FloatingStyles,
655
- * arrow:
656
- * undefined | {
657
- * [x: string]: string | number;
658
- * position: Strategy;
659
- * top: string | number;
660
- * left: string | number;
661
- * transform: string;
662
- * }
663
- * }
664
- * }} Objekt med refs og styling for floating UI.
665
- * @example
666
- * ```tsx
667
- * function MyComponent() {
668
- *
669
- * // Hvis du trenger en pil
670
- * const [arrowElement, setArrowElement] = useState<HTMLElement | null>(null);
671
- *
672
- * const { refs, styles: positionStyles } = useFloatPosition(arrowElement, {
673
- * placement: 'right',
674
- * offset: 2,
675
- * });
676
- *
677
- * return (
678
- * <>
679
- * <button ref={refs.setReference}>Anchor</button>
680
- * <div
681
- * ref={refs.setFloating}
682
- * style={positionStyles.floating}
683
- * >
684
- * <div ref={setArrowElement} style={positionStyles.arrow}>
685
- * // din pil, f.eks. svg
686
- * </div>
687
- * Innhold
688
- * </div>
689
- * </>
690
- * };
691
- * ```
692
- */
693
- declare const useFloatPosition: (arrowRef?: HTMLElement | null, options?: UseFloatPositionOptions) => UseFloatPosition;
694
-
695
- /**
696
- * Fanger fokus i en loop inni et element.
697
- * @template {HTMLElement} T typen til container-elementet som fanger fokus.
698
- * @param {boolean} active om focus skal fanges, f.eks. når en modal åpnes.
699
- * @param {RefObject<HTMLElement | null> | undefined} initialFocusRef `ref` til elementet som skal motta focus når focus trap er aktiv.
700
- * @returns {RefObject<T | null>} `ref` til elementet som fanger fokus.
701
- * @example
702
- * ```tsx
703
- * function MyComponent() {
704
- *
705
- * const [isOpen, setOpen] = useState(false);
706
- * const componentRef = useFocusTrap<HTMLDivElement>(isOpen);
707
- *
708
- * return isOpen ? <div ref={componentRef}><button>click</button></div> : null;
709
- *
710
- * }
711
- * ```
712
- */
713
- declare function useFocusTrap<T extends HTMLElement>(active: boolean, initialFocusRef?: RefObject<HTMLElement | null> | undefined): RefObject<T | null>;
714
-
715
- /**
716
- * Sjekker om komponenten er mounted i DOM.
717
- *
718
- * @returns {() => boolean} om komponenten er mounted.
719
- * @example
720
- * ```tsx
721
- * function MyComponent() {
722
- *
723
- * const isMounted = useIsMounted();
724
- *
725
- * useEffect(() => {
726
- * if(isMounted()) {
727
- * // logikk når mounted
728
- * }
729
- * }, [isMounted]);
730
- *
731
- * });
732
- * ```
733
- *
734
- */
735
- declare const useIsMounted: () => (() => boolean);
736
-
737
- /**
738
- * Tillater effekter og animasjoner å bli gjennomført like etter et element blir lagt til eller like før det blir fjernet fra DOM.
739
- * @param {boolean} isMounted om elementet er mounted.
740
- * @param {number} unmountDelay hvor lenge transition skal vare før unmount.
741
- * @returns {boolean} om den har trasisjonert inn.
742
- * @example
743
- * ```css
744
- * // CSS
745
- * .component {
746
- * transition: opacity 0.2s;
747
- * opacity: 0;
748
- * }
749
- *
750
- * .transitionedIn.mounted {
751
- * opacity: 1;
752
- * }
753
- * ```
754
- * ```jsx
755
- * // JSX
756
- * function MyComponent(isMounted) {
757
- *
758
- * const hasTransitionedIn = useMountTransition(isMounted, 500);
759
- *
760
- * return isMounted || hasTransitionedIn ? (
761
- * <div
762
- * className={`component ${hasTransitionedIn && 'transitionedIn'} ${isMounted && 'mounted'}`}
763
- * >
764
- * innhold
765
- * </div>)
766
- * : null;
767
- * };
768
- * ```
769
- */
770
- declare const useMountTransition: (isMounted: boolean, unmountDelay: number) => boolean;
771
-
772
- /**
773
- * Kjører logikk når brukeren klikker utenfor espesifisert(e) element(er).
774
- * @param {HTMLElement | null | undefined | Array<HTMLElement | null | undefined>} element HTML element(er) som overvåkes for klikk utenfor.
775
- * @param {(event: MouseEvent | TouchEvent) => void} handler funksjonen som kjøres ved klikk utenfor.
776
- * @returns {void}
777
- * @example
778
- * ```tsx
779
- * * function MyComponent() {
780
- * const [isOpen, setOpen] = useState(true);
781
- * const ref = useRef<HTMLDivElement>(null);
782
- * useOnClickOutside(ref.current, () => setOpen(false));
783
- *
784
- * return isOpen && <div ref={ref}>innhold</div>
785
- * };
786
- * ```
787
- */
788
- declare function useOnClickOutside(element: RefObject<HTMLElement | null> | Array<RefObject<HTMLElement | null> | undefined> | undefined, handler: (event: MouseEvent | TouchEvent) => void): void;
789
-
790
- /**
791
- * Kjører logikk når spesifisert(e) tast(er) blir trykt ned.
792
- * @param {string} key tasten som trykkes.
793
- * @param {(event: KeyboardEvent) => void} handler funksjonen som skal kjøres.
794
- * @returns {void}
795
- * @example
796
- * ```tsx
797
- * function MyComponent() {
798
- * const [isOpen, setOpen] = useState(true);
799
- * useOnKeyDown('Escape', () => setOpen(false));
800
- *
801
- * return isOpen ? <div>innhold</div> : null;
802
- * }
803
- * ```
804
- */
805
- declare const useOnKeyDown: (key: string | Array<string>, handler: (event: KeyboardEvent) => void) => void;
806
-
807
- /**
808
- * Returnerer fokus til et element når første eller siste barn i en container mister fokus ved tastaturnavigasjon.
809
- * @template {HTMLElement} T typen til container som skal returnere fous.
810
- * @param {boolean} active om container skal få fokus, f.eks. når en modal åpnes.
811
- * @param {() => void} onBlur ekstra logikk når fokus forlater container.
812
- * @param {HTMLElement | null | undefined} triggerElement elementet som skal få fokus når fokus forlater container.
813
- * @returns {RefObject<T | null>} ref til container som skal returnere fokus.
814
- * @example
815
- * ```tsx
816
- * const MyComponent() {
817
- *
818
- * const [isOpen, setOpen] = useState(false);
819
- * const triggerRef = useRef<HTMLButtonElement>(null);
820
- * const containerRef = useReturnFocusOnBlur<HTMLDivElement>(
821
- * isOpen,
822
- * () => setOpen(false),
823
- * triggerRef.current,
824
- * );
825
- *
826
- * return (
827
- * <div>
828
- * <button
829
- * ref={triggerRef}
830
- * onClick={() => setOpen(true)}
831
- * >
832
- * Åpne popover
833
- * </button>
834
- * {isOpen &&
835
- * <div ref={containerRef}>
836
- * <button>1</button>
837
- * <button>2</button>
838
- * </div>
839
- * }
840
- * </div>
841
- * )
842
- * }
843
- * ```
844
- */
845
- declare function useReturnFocusOnBlur<T extends HTMLElement>(active: boolean, onBlur: () => void, triggerElement?: HTMLElement | null): RefObject<T | null>;
846
-
847
- declare const isKeyboardEvent: (e: Event | KeyboardEvent$1<Element>) => e is KeyboardEvent$1<Element>;
848
- /**
849
- * Bytter fokus mellom elementer i en gruppe med piltaster og ikke `Tab`, samt looper fokus i gruppen.
850
- * @param {number} size antall elementer i gruppen.
851
- * @param {boolean} active om fokus skal kontrolleres av hooken. Når status blir inaktiv vil fokusrekkefølge nullstilles.
852
- * @param {'row' | 'column'} direction retning elementene blas i.
853
- * @param {boolean} noWrap om indeksen skal 'wrappe' rundt til 0 hvis den går over size - 1, eller til size - 1 hvis den går under 0.
854
- * @returns {[focusedIndex: number, setFocus: Dispatch<SetStateAction<number>>]} hook par: indeksen til fokuserte elemenentet og funksjonen som håndterer fokus.
855
- * @example
856
- * ```tsx
857
- * import elements from './elements';
858
- * import RoveItem from './RoveItem';
859
- *
860
- * function MyComponent() {
861
- * const [focusedIndex, setFocus] = useRoveFocus(elements.length);
862
- *
863
- * return (
864
- * <ul>
865
- * {elements.map((element, index) => (
866
- * <li key={element}>
867
- * <RoveItem index={index} shouldFocus={focusedIndex === index} setFocus={setFocus}>{element.name}</RoveItem>
868
- * </li>
869
- * ))}
870
- * </ul>)
871
- * }
872
- * ```
873
- */
874
- declare function useRoveFocus(size?: number, active?: boolean, direction?: Direction$1, noWrap?: boolean): [number, Dispatch<SetStateAction<number>>];
875
-
876
- declare enum ScreenSize {
877
- XSmall = 0,
878
- Small = 1,
879
- Medium = 2,
880
- Large = 3,
881
- XLarge = 4
882
- }
883
- /**
884
- * Sjekker skjermstørrelsen basert på brekkpunkter definerte i designsystemet.
885
- * @returns den aktuelle skjermstørrelsen basert på {@link ScreenSize}.
886
- * @example
887
- * ```tsx
888
- * function MyComponent() {
889
- * const screenSize = useScreenSize();
890
- * const isSmallScreen = screenSize === ScreenSize.Small;
891
- *
892
- * return <div className={isSmallScreen && 'smallDiv'} >innhold</div>
893
- * }
894
- * ```
895
- */
896
- declare const useScreenSize: () => ScreenSize;
897
-
898
- /**
899
- * Kjører logikk når vindusstørrelsen endrer seg.
900
- * @param {() => void} handler funksjonen som skal kjøres.
901
- * @returns {void}
902
- * @example
903
- * ```tsx
904
- * function MyComponent() {
905
- * const [width, setWidth] = useState<number>(window.innerWidth);
906
- * useResize(() => setWidth(window.innerWidth));
907
- *
908
- * return <div>vindusstørrelse: {width}px</div>;
909
- * }
910
- * ```
911
- */
912
- declare const useWindowResize: (handler: () => void) => void;
913
-
914
- declare const BREAKPOINTS: readonly ["xs", "sm", "md", "lg", "xl"];
915
- type Breakpoint = (typeof BREAKPOINTS)[number];
916
- declare const SPACING_SCALES: readonly ["x0", "x0.125", "x0.25", "x0.5", "x0.75", "x1", "x1.5", "x2", "x2.5", "x3", "x4", "x6", "x10"];
917
- type SpacingScale = (typeof SPACING_SCALES)[number];
918
- interface PrimitiveDisplayProps {
919
- /** Skjuler komponenten fra og med det angitte brekkpunktet og nedover. */
920
- hideBelow?: Breakpoint;
921
- /** Viser komponenten kun under det angitte brekkpunktet. */
922
- showBelow?: Breakpoint;
923
- }
924
- type BreakpointBasedProp<T> = Partial<Record<Breakpoint, T>>;
925
- type ResponsiveProp<T> = T | BreakpointBasedProp<T>;
926
- interface PrimitiveLayoutProps {
927
- /** CSS `width`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
928
- width?: ResponsiveProp<Property.Width>;
929
- /** CSS `max-width`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
930
- maxWidth?: ResponsiveProp<Property.MaxWidth>;
931
- /** CSS `min-width`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
932
- minWidth?: ResponsiveProp<Property.MinWidth>;
933
- /** CSS `height`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
934
- height?: ResponsiveProp<Property.Height>;
935
- /** CSS `max-height`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
936
- maxHeight?: ResponsiveProp<Property.MaxHeight>;
937
- /** CSS `min-height`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
938
- minHeight?: ResponsiveProp<Property.MinHeight>;
939
- /** CSS `overflow`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
940
- overflow?: ResponsiveProp<Property.Overflow>;
941
- /** CSS `overflow-y`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
942
- overflowY?: ResponsiveProp<Property.OverflowY>;
943
- /** CSS `overflow-x`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
944
- overflowX?: ResponsiveProp<Property.OverflowX>;
945
- /** CSS `position`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
946
- position?: ResponsiveProp<Property.Position>;
947
- /** CSS `top`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
948
- top?: ResponsiveProp<Property.Top | SpacingScale>;
949
- /** CSS `bottom`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
950
- bottom?: ResponsiveProp<Property.Bottom | SpacingScale>;
951
- /** CSS `left`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
952
- left?: ResponsiveProp<Property.Left | SpacingScale>;
953
- /** CSS `right`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
954
- right?: ResponsiveProp<Property.Right | SpacingScale>;
955
- /** CSS `padding`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
956
- padding?: ResponsiveProp<Property.Padding | SpacingScale>;
957
- /** CSS `padding-inline`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
958
- paddingInline?: ResponsiveProp<Property.PaddingInline | SpacingScale>;
959
- /** CSS `padding-block`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
960
- paddingBlock?: ResponsiveProp<Property.PaddingBlock | SpacingScale>;
961
- /** CSS `margin`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
962
- margin?: ResponsiveProp<Property.Margin | SpacingScale>;
963
- /** CSS `margin-inline`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
964
- marginInline?: ResponsiveProp<Property.MarginInline | SpacingScale>;
965
- /** CSS `margin-block`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
966
- marginBlock?: ResponsiveProp<Property.MarginBlock | SpacingScale>;
967
- /** CSS `display`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
968
- display?: ResponsiveProp<Property.Display>;
969
- /** CSS `flex-direction`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
970
- flexDirection?: ResponsiveProp<Property.FlexDirection>;
971
- /** CSS `flex-basis`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
972
- flexBasis?: ResponsiveProp<Property.FlexBasis>;
973
- /** CSS `flex-wrap`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
974
- flexWrap?: ResponsiveProp<Property.FlexWrap>;
975
- /** CSS `flex-flow`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
976
- flexFlow?: ResponsiveProp<Property.FlexFlow>;
977
- /** CSS `align-items`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
978
- alignItems?: ResponsiveProp<Property.AlignItems>;
979
- /** CSS `justify-items`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
980
- justifyItems?: ResponsiveProp<Property.JustifyItems>;
981
- /** CSS `place-items`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
982
- placeItems?: ResponsiveProp<Property.PlaceItems>;
983
- /** CSS `align-content`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
984
- alignContent?: ResponsiveProp<Property.AlignContent>;
985
- /** CSS `justify-content`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
986
- justifyContent?: ResponsiveProp<Property.JustifyContent>;
987
- /** CSS `text-align`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser. */
988
- textAlign?: ResponsiveProp<Property.TextAlign>;
989
- /** CSS `gap`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
990
- gap?: ResponsiveProp<Property.Gap | SpacingScale>;
991
- /** CSS `row-gap`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
992
- rowGap?: ResponsiveProp<Property.RowGap | SpacingScale>;
993
- /** CSS `column-gap`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
994
- columnGap?: ResponsiveProp<Property.ColumnGap | SpacingScale>;
995
- /** CSS `word-break`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
996
- wordBreak?: ResponsiveProp<Property.WordBreak>;
997
- }
998
- type ResponsiveProps = PrimitiveDisplayProps & PrimitiveLayoutProps;
999
- type ResponsiveStackProps = Omit<ResponsiveProps, 'display' | 'flexDirection'>;
1000
- type ResponsiveBleedProps = PrimitiveLayoutProps & {
1001
- /**Setter negativ CSS `margin-inline`, overskriver prop `marginInline`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
1002
- bleedMarginInline?: ResponsiveProp<Property.MarginInline | SpacingScale>;
1003
- /**Setter negativ CSS `margin-block`, overskriver prop `marginBlock`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser.*/
1004
- bleedMarginBlock?: ResponsiveProp<Property.MarginBlock | SpacingScale>;
1005
- };
1006
-
1007
- declare const getLiteralScreenSize: (screenSize: ScreenSize) => Breakpoint;
1008
-
1009
- type StylelessListProps<TProps extends object = object> = TProps & ComponentPropsWithRef<'ul'>;
1010
- /**
1011
- * Normalisert `<ul>` uten styling. Base for custom ul styling.
1012
- *
1013
- * @component
1014
- * @template T ekstra props ved behov.
1015
- * @param {Object & T} props - Standard HTML-attributter for komponenten med mulig utvidelse.
1016
- *
1017
- * @returns {JSX.Element} `<ul>`-element uten styling.
1018
-
1019
- * @example
1020
- * ```tsx
1021
- * <StylelessList className="min-styling">
1022
- * <li>item</li>
1023
- * <li>item</li>
1024
- * </StylelessList>
1025
- * ```
1026
- */
1027
- declare const StylelessList: ({ className, ...rest }: StylelessListProps) => react.JSX.Element;
1028
- type StylelessOListProps<TProps extends object = object> = TProps & ComponentPropsWithRef<'ol'>;
1029
- /**
1030
- * Normalisert `<ol>` uten styling. Base for custom ol styling.
1031
- *
1032
- * @component
1033
- * @template T ekstra props ved behov.
1034
- * @param {Object & T} props - Standard HTML-attributter for komponenten med mulig utvidelse.
1035
- *
1036
- * @returns {JSX.Element} `<ol>`-element uten styling.
1037
-
1038
- * @example
1039
- * ```tsx
1040
- * <StylelessOList className="min-styling">
1041
- * <li>item</li>
1042
- * <li>item</li>
1043
- * </StylelessOList>
1044
- * ```
1045
- */
1046
- declare const StylelessOList: ({ className, ...rest }: StylelessOListProps) => react.JSX.Element;
1047
-
1048
- /**
1049
- * Styling utils i TS (CSS-in-JS)
1050
- */
1051
- /**
1052
- * DDS utils
1053
- */
1054
- declare const outlineOffset = "var(--dds-spacing-x0-125)";
1055
- declare const outlineInset = "calc(var(--dds-spacing-x0-125) * -1)";
1056
- declare const focusVisible: {
1057
- outline: string;
1058
- outlineOffset: string;
1059
- boxShadow: string;
1060
- };
1061
- declare const focusVisibleTransitionValue = "outline-offset var(--dds-motion-micro-state)";
1062
- declare const focusVisibleInset: {
1063
- outline: string;
1064
- outlineOffset: string;
1065
- };
1066
- declare const scrollbarStyling: {
1067
- scrollbarColor: string;
1068
- scrollbarWidth: "thin";
1069
- };
1070
- /**
1071
- * Generelle utils
1072
- */
1073
- declare const hideInput: {
1074
- clip: string;
1075
- position: string;
1076
- height: string;
1077
- width: string;
1078
- margin: number;
1079
- };
1080
- declare const inheritLinkStyling: {
1081
- color: string;
1082
- textDecoration: string;
1083
- };
1084
- declare const removeButtonStyling: {
1085
- background: string;
1086
- color: string;
1087
- border: string;
1088
- padding: number;
1089
- font: string;
1090
- cursor: string;
1091
- outline: string;
1092
- };
1093
- declare const removeListStyling: {
1094
- listStyle: string;
1095
- padding: number;
1096
- margin: number;
1097
- };
1098
- declare const normalizeButton: {
1099
- margin: number;
1100
- textTransform: Property.TextTransform;
1101
- };
1102
-
1103
- type BleedProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T, {
1104
- /**
1105
- * Setter positiv padding som gjenspeiler negativ margin satt med `bleedMarginBlock` og `bleedMarginInline`. Overskriver `paddingInline` og `paddingBlock`.
715
+ * Setter positiv padding som gjenspeiler negativ margin satt med `bleedMarginBlock` og `bleedMarginInline`. Overskriver `paddingInline` og `paddingBlock`.
1106
716
  */
1107
717
  reflectivePadding?: boolean;
1108
718
  } & ResponsiveBleedProps>;
@@ -1123,20 +733,25 @@ declare const Contrast: {
1123
733
  displayName: string;
1124
734
  };
1125
735
 
1126
- type GridProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T, Omit<{
736
+ type GridProps<T extends ElementType = 'div'> = PolymorphicBaseComponentProps<T, {
1127
737
  /** CSS `grid-template-columns`. Støtter standardverdier per brekkpunkt eller samme for alle skjermstørrelser.
1128
- * @default {
1129
- xs: 'repeat(var(--dds-grid-xs-count), minmax(0, 1fr))',
1130
- sm: 'repeat(var(--dds-grid-sm-count), minmax(0, 1fr))',
1131
- md: 'repeat(var(--dds-grid-md-count), minmax(0, 1fr))',
1132
- lg: 'repeat(var(--dds-grid-lg-count), minmax(0, 1fr))',
1133
- xl: 'repeat(var(--dds-grid-xl-count), minmax(0, 1fr))',
1134
- }
738
+ * @default {
739
+ xs: 'repeat(var(--dds-grid-xs-count), minmax(0, 1fr))',
740
+ sm: 'repeat(var(--dds-grid-sm-count), minmax(0, 1fr))',
741
+ md: 'repeat(var(--dds-grid-md-count), minmax(0, 1fr))',
742
+ lg: 'repeat(var(--dds-grid-lg-count), minmax(0, 1fr))',
743
+ xl: 'repeat(var(--dds-grid-xl-count), minmax(0, 1fr))',
744
+ }
745
+ */
746
+ gridTemplateColumns?: ResponsiveGridProps['gridTemplateColumns'];
747
+ /** Om standard styling for sideoppsett skal brukes.
748
+ * Ved `true` settes overskrivbare standard verdier for `grid-template-columns`, `marginInline`, `rowGap` og `columnGap` som er tilpasset sideoppsett.
749
+ * @default true
1135
750
  */
1136
- gridTemplateColumns?: ResponsiveProp<Property.GridTemplateColumns>;
1137
- } & ResponsiveProps, 'display'>>;
751
+ defaultPageLayout?: boolean;
752
+ } & ResponsiveGridProps>;
1138
753
  declare const Grid: {
1139
- <T extends ElementType = "div">({ id, className, htmlProps, gridTemplateColumns, columnGap, rowGap, marginInline, style, ...rest }: GridProps<T>): react.JSX.Element;
754
+ <T extends ElementType = "div">({ id, className, htmlProps, defaultPageLayout, display, grid, gridAutoColumns, gridAutoFlow, gridAutoRows, gridTemplate, gridTemplateAreas, gridTemplateRows, gridTemplateColumns, columnGap, rowGap, marginInline, style, ...rest }: GridProps<T>): react.JSX.Element;
1140
755
  displayName: string;
1141
756
  };
1142
757
 
@@ -1149,9 +764,11 @@ type GridChildProps<T extends ElementType = 'div'> = PolymorphicBaseComponentPro
1149
764
  justifySelf?: ResponsiveProp<Property.JustifySelf>;
1150
765
  /**CSS `grid-row`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
1151
766
  gridRow?: ResponsiveProp<Property.GridRow>;
767
+ /**CSS `grid-area`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
768
+ gridArea?: ResponsiveProp<Property.GridArea>;
1152
769
  } & Omit<ResponsiveProps, 'display'>>;
1153
770
  declare const GridChild: {
1154
- <T extends ElementType = "div">({ id, className, htmlProps, style, gridRow, justifySelf, columnsOccupied, ...rest }: GridChildProps<T>): react.JSX.Element;
771
+ <T extends ElementType = "div">({ id, className, htmlProps, style, gridRow, gridArea, justifySelf, columnsOccupied, ...rest }: GridChildProps<T>): react.JSX.Element;
1155
772
  displayName: string;
1156
773
  };
1157
774
 
@@ -1307,6 +924,8 @@ declare function FileAddIcon(props: SvgProps): react.JSX.Element;
1307
924
 
1308
925
  declare function FileShieldedIcon(props: SvgProps): react.JSX.Element;
1309
926
 
927
+ declare function FileSignedIcon(props: SvgProps): react.JSX.Element;
928
+
1310
929
  declare function FileTextIcon(props: SvgProps): react.JSX.Element;
1311
930
 
1312
931
  declare function FilterIcon(props: SvgProps): react.JSX.Element;
@@ -1499,220 +1118,629 @@ declare function ZoomInIcon(props: SvgProps): react.JSX.Element;
1499
1118
 
1500
1119
  declare function ZoomOutIcon(props: SvgProps): react.JSX.Element;
1501
1120
 
1502
- declare function BarChartIcon(props: SvgProps): react.JSX.Element;
1121
+ declare function BarChartIcon(props: SvgProps): react.JSX.Element;
1122
+
1123
+ declare function BarChartBoxedIcon(props: SvgProps): react.JSX.Element;
1124
+
1125
+ declare function LineChartIcon(props: SvgProps): react.JSX.Element;
1126
+
1127
+ declare function TrendingUpIcon(props: SvgProps): react.JSX.Element;
1128
+
1129
+ declare function TrendingDownIcon(props: SvgProps): react.JSX.Element;
1130
+
1131
+ declare function HelpSimpleIcon(props: SvgProps): react.JSX.Element;
1132
+
1133
+ declare const STATES: readonly ["up", "down"];
1134
+ type AnimatedChevronUpDownIconStates = (typeof STATES)[number];
1135
+ declare function AnimatedChevronUpDownIcon(props: SvgProps & {
1136
+ iconState?: AnimatedChevronUpDownIconStates;
1137
+ }): react.JSX.Element;
1138
+ declare namespace AnimatedChevronUpDownIcon {
1139
+ var states: readonly ["up", "down"];
1140
+ }
1141
+
1142
+ declare function FlagIcon(props: SvgProps): react.JSX.Element;
1143
+
1144
+ declare function FlagFilledIcon(props: SvgProps): react.JSX.Element;
1145
+
1146
+ declare function LocationOffIcon(props: SvgProps): react.JSX.Element;
1147
+
1148
+ declare function MapIcon(props: SvgProps): react.JSX.Element;
1149
+
1150
+ declare function MoonIcon(props: SvgProps): react.JSX.Element;
1151
+
1152
+ declare function NotebookPenIcon(props: SvgProps): react.JSX.Element;
1153
+
1154
+ declare function StickyNoteIcon(props: SvgProps): react.JSX.Element;
1155
+
1156
+ declare function SunIcon(props: SvgProps): react.JSX.Element;
1503
1157
 
1504
- declare function BarChartBoxedIcon(props: SvgProps): react.JSX.Element;
1158
+ declare function SupportIcon(props: SvgProps): react.JSX.Element;
1505
1159
 
1506
- declare function LineChartIcon(props: SvgProps): react.JSX.Element;
1160
+ declare const index_AddressShieldedIcon: typeof AddressShieldedIcon;
1161
+ declare const index_AgreementIcon: typeof AgreementIcon;
1162
+ declare const index_AnimatedChevronUpDownIcon: typeof AnimatedChevronUpDownIcon;
1163
+ type index_AnimatedChevronUpDownIconStates = AnimatedChevronUpDownIconStates;
1164
+ declare const index_AppsIcon: typeof AppsIcon;
1165
+ declare const index_ArchiveIcon: typeof ArchiveIcon;
1166
+ declare const index_ArrowDownIcon: typeof ArrowDownIcon;
1167
+ declare const index_ArrowLeftIcon: typeof ArrowLeftIcon;
1168
+ declare const index_ArrowRightIcon: typeof ArrowRightIcon;
1169
+ declare const index_ArrowUpIcon: typeof ArrowUpIcon;
1170
+ declare const index_AttachmentIcon: typeof AttachmentIcon;
1171
+ declare const index_BarChartBoxedIcon: typeof BarChartBoxedIcon;
1172
+ declare const index_BarChartIcon: typeof BarChartIcon;
1173
+ declare const index_BlockIcon: typeof BlockIcon;
1174
+ declare const index_BookIcon: typeof BookIcon;
1175
+ declare const index_BriefcaseIcon: typeof BriefcaseIcon;
1176
+ declare const index_BuildIcon: typeof BuildIcon;
1177
+ declare const index_BuildingIcon: typeof BuildingIcon;
1178
+ declare const index_CalendarIcon: typeof CalendarIcon;
1179
+ declare const index_CalendarMonthIcon: typeof CalendarMonthIcon;
1180
+ declare const index_CalendarViewDayIcon: typeof CalendarViewDayIcon;
1181
+ declare const index_CalendarViewMonthIcon: typeof CalendarViewMonthIcon;
1182
+ declare const index_CalendarViewWeekIcon: typeof CalendarViewWeekIcon;
1183
+ declare const index_CallIcon: typeof CallIcon;
1184
+ declare const index_CaringIcon: typeof CaringIcon;
1185
+ declare const index_ChatIcon: typeof ChatIcon;
1186
+ declare const index_CheckCircledIcon: typeof CheckCircledIcon;
1187
+ declare const index_CheckIcon: typeof CheckIcon;
1188
+ declare const index_ChecklistIcon: typeof ChecklistIcon;
1189
+ declare const index_ChevronDownIcon: typeof ChevronDownIcon;
1190
+ declare const index_ChevronFirstIcon: typeof ChevronFirstIcon;
1191
+ declare const index_ChevronLastIcon: typeof ChevronLastIcon;
1192
+ declare const index_ChevronLeftIcon: typeof ChevronLeftIcon;
1193
+ declare const index_ChevronRightIcon: typeof ChevronRightIcon;
1194
+ declare const index_ChevronUpIcon: typeof ChevronUpIcon;
1195
+ declare const index_CircleFilledIcon: typeof CircleFilledIcon;
1196
+ declare const index_CircleIcon: typeof CircleIcon;
1197
+ declare const index_CloseCircledIcon: typeof CloseCircledIcon;
1198
+ declare const index_CloseIcon: typeof CloseIcon;
1199
+ declare const index_CloseSmallIcon: typeof CloseSmallIcon;
1200
+ declare const index_CloudIcon: typeof CloudIcon;
1201
+ declare const index_CollapseIcon: typeof CollapseIcon;
1202
+ declare const index_CommentIcon: typeof CommentIcon;
1203
+ declare const index_CopyIcon: typeof CopyIcon;
1204
+ declare const index_CourtIcon: typeof CourtIcon;
1205
+ declare const index_DateRangeIcon: typeof DateRangeIcon;
1206
+ declare const index_DeathsIcon: typeof DeathsIcon;
1207
+ declare const index_DoubleChevronLeftIcon: typeof DoubleChevronLeftIcon;
1208
+ declare const index_DoubleChevronRightIcon: typeof DoubleChevronRightIcon;
1209
+ declare const index_DownloadDoneIcon: typeof DownloadDoneIcon;
1210
+ declare const index_DownloadIcon: typeof DownloadIcon;
1211
+ declare const index_DragHandleIcon: typeof DragHandleIcon;
1212
+ declare const index_EditAltIcon: typeof EditAltIcon;
1213
+ declare const index_EditIcon: typeof EditIcon;
1214
+ declare const index_ErrorIcon: typeof ErrorIcon;
1215
+ declare const index_ExclaimIcon: typeof ExclaimIcon;
1216
+ declare const index_ExpandIcon: typeof ExpandIcon;
1217
+ declare const index_FacebookIcon: typeof FacebookIcon;
1218
+ declare const index_FamilyIcon: typeof FamilyIcon;
1219
+ declare const index_FeedbackIcon: typeof FeedbackIcon;
1220
+ declare const index_FileAddIcon: typeof FileAddIcon;
1221
+ declare const index_FileIcon: typeof FileIcon;
1222
+ declare const index_FileShieldedIcon: typeof FileShieldedIcon;
1223
+ declare const index_FileSignedIcon: typeof FileSignedIcon;
1224
+ declare const index_FileTextIcon: typeof FileTextIcon;
1225
+ declare const index_FilterIcon: typeof FilterIcon;
1226
+ declare const index_FilterListIcon: typeof FilterListIcon;
1227
+ declare const index_FindInPageIcon: typeof FindInPageIcon;
1228
+ declare const index_FlagFilledIcon: typeof FlagFilledIcon;
1229
+ declare const index_FlagIcon: typeof FlagIcon;
1230
+ declare const index_FlickrIcon: typeof FlickrIcon;
1231
+ declare const index_FloppyDiskIcon: typeof FloppyDiskIcon;
1232
+ declare const index_FolderAddIcon: typeof FolderAddIcon;
1233
+ declare const index_FolderIcon: typeof FolderIcon;
1234
+ declare const index_FolderShieldedIcon: typeof FolderShieldedIcon;
1235
+ declare const index_FullscreenExitIcon: typeof FullscreenExitIcon;
1236
+ declare const index_FullscreenIcon: typeof FullscreenIcon;
1237
+ declare const index_GavelIcon: typeof GavelIcon;
1238
+ declare const index_GroupIcon: typeof GroupIcon;
1239
+ declare const index_GuardianIcon: typeof GuardianIcon;
1240
+ declare const index_HelpFilledIcon: typeof HelpFilledIcon;
1241
+ declare const index_HelpIcon: typeof HelpIcon;
1242
+ declare const index_HelpSimpleIcon: typeof HelpSimpleIcon;
1243
+ declare const index_HomeIcon: typeof HomeIcon;
1244
+ declare const index_HourglassEmptyIcon: typeof HourglassEmptyIcon;
1245
+ declare const index_ImageIcon: typeof ImageIcon;
1246
+ declare const index_InfoIcon: typeof InfoIcon;
1247
+ declare const index_InstagramIcon: typeof InstagramIcon;
1248
+ declare const index_JordskifterettIcon: typeof JordskifterettIcon;
1249
+ declare const index_JordskiftesakIcon: typeof JordskiftesakIcon;
1250
+ declare const index_KeyIcon: typeof KeyIcon;
1251
+ declare const index_LagmannsrettIcon: typeof LagmannsrettIcon;
1252
+ declare const index_LanguageIcon: typeof LanguageIcon;
1253
+ declare const index_LineChartIcon: typeof LineChartIcon;
1254
+ declare const index_LinkIcon: typeof LinkIcon;
1255
+ declare const index_LinkOffIcon: typeof LinkOffIcon;
1256
+ declare const index_LinkedInIcon: typeof LinkedInIcon;
1257
+ declare const index_ListAltIcon: typeof ListAltIcon;
1258
+ declare const index_ListIcon: typeof ListIcon;
1259
+ declare const index_LocationIcon: typeof LocationIcon;
1260
+ declare const index_LocationOffIcon: typeof LocationOffIcon;
1261
+ declare const index_LockFilledIcon: typeof LockFilledIcon;
1262
+ declare const index_LockIcon: typeof LockIcon;
1263
+ declare const index_LockOpenIcon: typeof LockOpenIcon;
1264
+ declare const index_LoginIcon: typeof LoginIcon;
1265
+ declare const index_LogoutIcon: typeof LogoutIcon;
1266
+ declare const index_MailIcon: typeof MailIcon;
1267
+ declare const index_MailOpenIcon: typeof MailOpenIcon;
1268
+ declare const index_MapIcon: typeof MapIcon;
1269
+ declare const index_MenuIcon: typeof MenuIcon;
1270
+ declare const index_MinusCircledIcon: typeof MinusCircledIcon;
1271
+ declare const index_MinusIcon: typeof MinusIcon;
1272
+ declare const index_MoonIcon: typeof MoonIcon;
1273
+ declare const index_MoreHorizontalIcon: typeof MoreHorizontalIcon;
1274
+ declare const index_MoreVerticalIcon: typeof MoreVerticalIcon;
1275
+ declare const index_NotarialIcon: typeof NotarialIcon;
1276
+ declare const index_NotebookPenIcon: typeof NotebookPenIcon;
1277
+ declare const index_NotificationsIcon: typeof NotificationsIcon;
1278
+ declare const index_NotificationsOffIcon: typeof NotificationsOffIcon;
1279
+ declare const index_OnlineMeetingIcon: typeof OnlineMeetingIcon;
1280
+ declare const index_OpenExternalIcon: typeof OpenExternalIcon;
1281
+ declare const index_PanelLeftIcon: typeof PanelLeftIcon;
1282
+ declare const index_PaperPlaneIcon: typeof PaperPlaneIcon;
1283
+ declare const index_PayoutIcon: typeof PayoutIcon;
1284
+ declare const index_PdfIcon: typeof PdfIcon;
1285
+ declare const index_PersonAddIcon: typeof PersonAddIcon;
1286
+ declare const index_PersonIcon: typeof PersonIcon;
1287
+ declare const index_PersonShieldedIcon: typeof PersonShieldedIcon;
1288
+ declare const index_PinIcon: typeof PinIcon;
1289
+ declare const index_PlusCircledIcon: typeof PlusCircledIcon;
1290
+ declare const index_PlusIcon: typeof PlusIcon;
1291
+ declare const index_PowerOfAttorneyIcon: typeof PowerOfAttorneyIcon;
1292
+ declare const index_PrintIcon: typeof PrintIcon;
1293
+ declare const index_PublishIcon: typeof PublishIcon;
1294
+ declare const index_QuestionAnswerIcon: typeof QuestionAnswerIcon;
1295
+ declare const index_ReceiptIcon: typeof ReceiptIcon;
1296
+ declare const index_RedoIcon: typeof RedoIcon;
1297
+ declare const index_RefreshIcon: typeof RefreshIcon;
1298
+ declare const index_ReplayIcon: typeof ReplayIcon;
1299
+ declare const index_RowsIcon: typeof RowsIcon;
1300
+ declare const index_ScaleIcon: typeof ScaleIcon;
1301
+ declare const index_SearchIcon: typeof SearchIcon;
1302
+ declare const index_SectionIcon: typeof SectionIcon;
1303
+ declare const index_SettingsIcon: typeof SettingsIcon;
1304
+ declare const index_SmsIcon: typeof SmsIcon;
1305
+ declare const index_StarFilledIcon: typeof StarFilledIcon;
1306
+ declare const index_StarHalfFilledIcon: typeof StarHalfFilledIcon;
1307
+ declare const index_StarIcon: typeof StarIcon;
1308
+ declare const index_StickyNoteIcon: typeof StickyNoteIcon;
1309
+ declare const index_SunIcon: typeof SunIcon;
1310
+ declare const index_SupportIcon: typeof SupportIcon;
1311
+ declare const index_SyncIcon: typeof SyncIcon;
1312
+ declare const index_ThumbDownFilledIcon: typeof ThumbDownFilledIcon;
1313
+ declare const index_ThumbDownIcon: typeof ThumbDownIcon;
1314
+ declare const index_ThumbUpFilledIcon: typeof ThumbUpFilledIcon;
1315
+ declare const index_ThumbUpIcon: typeof ThumbUpIcon;
1316
+ declare const index_TimeIcon: typeof TimeIcon;
1317
+ declare const index_TingrettIcon: typeof TingrettIcon;
1318
+ declare const index_TipIcon: typeof TipIcon;
1319
+ declare const index_TrashIcon: typeof TrashIcon;
1320
+ declare const index_TrendingDownIcon: typeof TrendingDownIcon;
1321
+ declare const index_TrendingUpIcon: typeof TrendingUpIcon;
1322
+ declare const index_UndoIcon: typeof UndoIcon;
1323
+ declare const index_UnfoldLessIcon: typeof UnfoldLessIcon;
1324
+ declare const index_UnfoldMoreIcon: typeof UnfoldMoreIcon;
1325
+ declare const index_UploadIcon: typeof UploadIcon;
1326
+ declare const index_VisibilityOffIcon: typeof VisibilityOffIcon;
1327
+ declare const index_VisibilityOnIcon: typeof VisibilityOnIcon;
1328
+ declare const index_WarningIcon: typeof WarningIcon;
1329
+ declare const index_WebexIcon: typeof WebexIcon;
1330
+ declare const index_XIcon: typeof XIcon;
1331
+ declare const index_ZoomInIcon: typeof ZoomInIcon;
1332
+ declare const index_ZoomOutIcon: typeof ZoomOutIcon;
1333
+ declare namespace index {
1334
+ export { index_AddressShieldedIcon as AddressShieldedIcon, index_AgreementIcon as AgreementIcon, index_AnimatedChevronUpDownIcon as AnimatedChevronUpDownIcon, type index_AnimatedChevronUpDownIconStates as AnimatedChevronUpDownIconStates, index_AppsIcon as AppsIcon, index_ArchiveIcon as ArchiveIcon, index_ArrowDownIcon as ArrowDownIcon, index_ArrowLeftIcon as ArrowLeftIcon, index_ArrowRightIcon as ArrowRightIcon, index_ArrowUpIcon as ArrowUpIcon, index_AttachmentIcon as AttachmentIcon, index_BarChartBoxedIcon as BarChartBoxedIcon, index_BarChartIcon as BarChartIcon, index_BlockIcon as BlockIcon, index_BookIcon as BookIcon, index_BriefcaseIcon as BriefcaseIcon, index_BuildIcon as BuildIcon, index_BuildingIcon as BuildingIcon, index_CalendarIcon as CalendarIcon, index_CalendarMonthIcon as CalendarMonthIcon, index_CalendarViewDayIcon as CalendarViewDayIcon, index_CalendarViewMonthIcon as CalendarViewMonthIcon, index_CalendarViewWeekIcon as CalendarViewWeekIcon, index_CallIcon as CallIcon, index_CaringIcon as CaringIcon, index_ChatIcon as ChatIcon, index_CheckCircledIcon as CheckCircledIcon, index_CheckIcon as CheckIcon, index_ChecklistIcon as ChecklistIcon, index_ChevronDownIcon as ChevronDownIcon, index_ChevronFirstIcon as ChevronFirstIcon, index_ChevronLastIcon as ChevronLastIcon, index_ChevronLeftIcon as ChevronLeftIcon, index_ChevronRightIcon as ChevronRightIcon, index_ChevronUpIcon as ChevronUpIcon, index_CircleFilledIcon as CircleFilledIcon, index_CircleIcon as CircleIcon, index_CloseCircledIcon as CloseCircledIcon, index_CloseIcon as CloseIcon, index_CloseSmallIcon as CloseSmallIcon, index_CloudIcon as CloudIcon, index_CollapseIcon as CollapseIcon, index_CommentIcon as CommentIcon, index_CopyIcon as CopyIcon, index_CourtIcon as CourtIcon, index_DateRangeIcon as DateRangeIcon, index_DeathsIcon as DeathsIcon, index_DoubleChevronLeftIcon as DoubleChevronLeftIcon, index_DoubleChevronRightIcon as DoubleChevronRightIcon, index_DownloadDoneIcon as DownloadDoneIcon, index_DownloadIcon as DownloadIcon, index_DragHandleIcon as DragHandleIcon, index_EditAltIcon as EditAltIcon, index_EditIcon as EditIcon, index_ErrorIcon as ErrorIcon, index_ExclaimIcon as ExclaimIcon, index_ExpandIcon as ExpandIcon, index_FacebookIcon as FacebookIcon, index_FamilyIcon as FamilyIcon, index_FeedbackIcon as FeedbackIcon, index_FileAddIcon as FileAddIcon, index_FileIcon as FileIcon, index_FileShieldedIcon as FileShieldedIcon, index_FileSignedIcon as FileSignedIcon, index_FileTextIcon as FileTextIcon, index_FilterIcon as FilterIcon, index_FilterListIcon as FilterListIcon, index_FindInPageIcon as FindInPageIcon, index_FlagFilledIcon as FlagFilledIcon, index_FlagIcon as FlagIcon, index_FlickrIcon as FlickrIcon, index_FloppyDiskIcon as FloppyDiskIcon, index_FolderAddIcon as FolderAddIcon, index_FolderIcon as FolderIcon, index_FolderShieldedIcon as FolderShieldedIcon, index_FullscreenExitIcon as FullscreenExitIcon, index_FullscreenIcon as FullscreenIcon, index_GavelIcon as GavelIcon, index_GroupIcon as GroupIcon, index_GuardianIcon as GuardianIcon, index_HelpFilledIcon as HelpFilledIcon, index_HelpIcon as HelpIcon, index_HelpSimpleIcon as HelpSimpleIcon, index_HomeIcon as HomeIcon, index_HourglassEmptyIcon as HourglassEmptyIcon, index_ImageIcon as ImageIcon, index_InfoIcon as InfoIcon, index_InstagramIcon as InstagramIcon, index_JordskifterettIcon as JordskifterettIcon, index_JordskiftesakIcon as JordskiftesakIcon, index_KeyIcon as KeyIcon, index_LagmannsrettIcon as LagmannsrettIcon, index_LanguageIcon as LanguageIcon, index_LineChartIcon as LineChartIcon, index_LinkIcon as LinkIcon, index_LinkOffIcon as LinkOffIcon, index_LinkedInIcon as LinkedInIcon, index_ListAltIcon as ListAltIcon, index_ListIcon as ListIcon, index_LocationIcon as LocationIcon, index_LocationOffIcon as LocationOffIcon, index_LockFilledIcon as LockFilledIcon, index_LockIcon as LockIcon, index_LockOpenIcon as LockOpenIcon, index_LoginIcon as LoginIcon, index_LogoutIcon as LogoutIcon, index_MailIcon as MailIcon, index_MailOpenIcon as MailOpenIcon, index_MapIcon as MapIcon, index_MenuIcon as MenuIcon, index_MinusCircledIcon as MinusCircledIcon, index_MinusIcon as MinusIcon, index_MoonIcon as MoonIcon, index_MoreHorizontalIcon as MoreHorizontalIcon, index_MoreVerticalIcon as MoreVerticalIcon, index_NotarialIcon as NotarialIcon, index_NotebookPenIcon as NotebookPenIcon, index_NotificationsIcon as NotificationsIcon, index_NotificationsOffIcon as NotificationsOffIcon, index_OnlineMeetingIcon as OnlineMeetingIcon, index_OpenExternalIcon as OpenExternalIcon, index_PanelLeftIcon as PanelLeftIcon, index_PaperPlaneIcon as PaperPlaneIcon, index_PayoutIcon as PayoutIcon, index_PdfIcon as PdfIcon, index_PersonAddIcon as PersonAddIcon, index_PersonIcon as PersonIcon, index_PersonShieldedIcon as PersonShieldedIcon, index_PinIcon as PinIcon, index_PlusCircledIcon as PlusCircledIcon, index_PlusIcon as PlusIcon, index_PowerOfAttorneyIcon as PowerOfAttorneyIcon, index_PrintIcon as PrintIcon, index_PublishIcon as PublishIcon, index_QuestionAnswerIcon as QuestionAnswerIcon, index_ReceiptIcon as ReceiptIcon, index_RedoIcon as RedoIcon, index_RefreshIcon as RefreshIcon, index_ReplayIcon as ReplayIcon, index_RowsIcon as RowsIcon, index_ScaleIcon as ScaleIcon, index_SearchIcon as SearchIcon, index_SectionIcon as SectionIcon, index_SettingsIcon as SettingsIcon, index_SmsIcon as SmsIcon, index_StarFilledIcon as StarFilledIcon, index_StarHalfFilledIcon as StarHalfFilledIcon, index_StarIcon as StarIcon, index_StickyNoteIcon as StickyNoteIcon, index_SunIcon as SunIcon, index_SupportIcon as SupportIcon, index_SyncIcon as SyncIcon, index_ThumbDownFilledIcon as ThumbDownFilledIcon, index_ThumbDownIcon as ThumbDownIcon, index_ThumbUpFilledIcon as ThumbUpFilledIcon, index_ThumbUpIcon as ThumbUpIcon, index_TimeIcon as TimeIcon, index_TingrettIcon as TingrettIcon, index_TipIcon as TipIcon, index_TrashIcon as TrashIcon, index_TrendingDownIcon as TrendingDownIcon, index_TrendingUpIcon as TrendingUpIcon, index_UndoIcon as UndoIcon, index_UnfoldLessIcon as UnfoldLessIcon, index_UnfoldMoreIcon as UnfoldMoreIcon, index_UploadIcon as UploadIcon, index_VisibilityOffIcon as VisibilityOffIcon, index_VisibilityOnIcon as VisibilityOnIcon, index_WarningIcon as WarningIcon, index_WebexIcon as WebexIcon, index_XIcon as XIcon, index_ZoomInIcon as ZoomInIcon, index_ZoomOutIcon as ZoomOutIcon };
1335
+ }
1507
1336
 
1508
- declare function TrendingUpIcon(props: SvgProps): react.JSX.Element;
1337
+ /**
1338
+ * Hook som returnerer en callback-funksjon som refererer til den nyeste versjonen av den opprinnelige funksjonen.
1339
+ * Nyttig når du trenger en stabil referanse (f.eks. i event listeners), men fortsatt ønsker at den skal bruke den nyeste logikken.
1340
+ *
1341
+ * @template T - Typen til callback-funksjonen.
1342
+ * @param {T | undefined} callback - Funksjonen som skal kalles.
1343
+ * @param {DependencyList} [deps=[]] - Avhengigheter som styrer når den returnerte funksjonen skal oppdateres.
1344
+ * @returns {T} En memorisert funksjon som peker til den nyeste versjonen av `callback`.
1345
+ * @example
1346
+ * ```tsx
1347
+ * function MyComponent() {
1348
+ * const [count, setCount] = useState(0);
1349
+ *
1350
+ * const handleClick = useCallbackRef(() => {
1351
+ * console.log('Klikk med count:', count);
1352
+ * }, [count]);
1353
+ *
1354
+ * useEffect(() => {
1355
+ * window.addEventListener('click', handleClick);
1356
+ * return () => window.removeEventListener('click', handleClick);
1357
+ * }, [handleClick]);
1358
+ *
1359
+ * return <button onClick={() => setCount(c => c + 1)}>Øk</button>;
1360
+ * }
1361
+ * ```
1509
1362
 
1510
- declare function TrendingDownIcon(props: SvgProps): react.JSX.Element;
1363
+ */
1364
+ declare function useCallbackRef<T extends (...args: Array<never>) => unknown>(callback: T | undefined, deps?: DependencyList): T;
1511
1365
 
1512
- declare function HelpSimpleIcon(props: SvgProps): react.JSX.Element;
1366
+ /**
1367
+ * Kombinerer refs for et element.
1368
+ *
1369
+ * @template T elementet som refereres til.
1370
+ * @param {Array<Ref<T> | undefined>} refs array med refs.
1371
+ * @returns {RefCallback<T>} callback med kombinerte refs.
1372
+ * @example
1373
+ * ```tsx
1374
+ * function MyComponent(ref) {
1375
+ *
1376
+ * const itemRef = useRef<HTMLDivElement>(null);
1377
+ * const combinedRef = useCombinedRef(ref, itemRef);
1378
+ *
1379
+ * return <div ref={combinedRef}>innhold</div>
1380
+ * });
1381
+ * ```
1382
+ */
1383
+ declare function useCombinedRef<T>(...refs: Array<Ref<T> | undefined>): RefCallback<T>;
1513
1384
 
1514
- declare const STATES: readonly ["up", "down"];
1515
- type AnimatedChevronUpDownIconStates = (typeof STATES)[number];
1516
- declare function AnimatedChevronUpDownIcon(props: SvgProps & {
1517
- iconState?: AnimatedChevronUpDownIconStates;
1518
- }): react.JSX.Element;
1519
- declare namespace AnimatedChevronUpDownIcon {
1520
- var states: readonly ["up", "down"];
1385
+ interface UseControllableStateProps<T> {
1386
+ /**Verdi. */
1387
+ value?: T;
1388
+ /**Default verdi. */
1389
+ defaultValue?: T | (() => T);
1390
+ /** `onChange` funksjon. */
1391
+ onChange?: (value: T) => void;
1392
+ }
1393
+ /**
1394
+ * The `useControllableState` hook returns the state and function that updates the state, just like React.useState does.
1395
+ */
1396
+ /**
1397
+ * Håndterer bruk av state slik at den kan bli enten kontrollert eller ukontrollert ut av boksen.
1398
+ * @template T typen til verdien.
1399
+ * @param {{
1400
+ * value?: T;
1401
+ * defaultValue?: T | (() => T);
1402
+ * onChange?: (value: T) => void;
1403
+ * }} props verdi, default verdi ved ukontrollert state og funksjon til å kotrnollere `value`.
1404
+ * @returns {[T, Dispatch<SetStateAction<T>>]} state og funksjon til å kontrollere den.
1405
+ * @example
1406
+ * ```tsx
1407
+ * const MyComponent = ({
1408
+ * onChange,
1409
+ * checked: checkedProp,
1410
+ * defaultChecked
1411
+ * }) => {
1412
+ * const [checked, setChecked] = useControllableState({
1413
+ * value: checkedProp,
1414
+ * defaultValue: defaultChecked ?? false,
1415
+ * onChange,
1416
+ * });
1417
+ * return (
1418
+ * <input
1419
+ * checked={checked}
1420
+ * onChange={e => setChecked(e.target.checked)}
1421
+ * type="checkbox"
1422
+ * />
1423
+ * ) };
1424
+ * ```
1425
+ */
1426
+ declare function useControllableState<T>(props: UseControllableStateProps<T>): [T, Dispatch<SetStateAction<T>>];
1427
+ /**
1428
+ * The `useControllableGroupState` hook returns the group value and handleChange function to control it.
1429
+ */
1430
+ interface UseControllableGroupStateProps<T> extends Pick<UseControllableStateProps<T>, 'defaultValue' | 'value'> {
1431
+ onChange?: (event: ChangeEvent<HTMLInputElement>, value: T) => void;
1521
1432
  }
1433
+ declare function useControllableGroupState<T>(props: UseControllableGroupStateProps<T>): {
1434
+ groupValue: T | undefined;
1435
+ handleChange: (e: ChangeEvent<HTMLInputElement>) => void;
1436
+ };
1522
1437
 
1523
- declare function FlagIcon(props: SvgProps): react.JSX.Element;
1524
-
1525
- declare function FlagFilledIcon(props: SvgProps): react.JSX.Element;
1438
+ type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
1439
+ interface UseFloatPositionOptions {
1440
+ /**
1441
+ * Whether to update the position of the floating element on every animation frame if required.
1442
+ * This is optimized for performance but can still be costly.
1443
+ * @default true
1444
+ */
1445
+ animationFrame?: boolean;
1446
+ /**
1447
+ * `offset` is used to displace the floating element from its core placement.
1448
+ * The value passed is logical, meaning its effect on the
1449
+ * physical result is dependent on the writing direction (e.g. RTL).
1450
+ * @default 8
1451
+ */
1452
+ offset?: number;
1453
+ /**
1454
+ * Where to place the floating element relative to its reference element.
1455
+ * @default 'bottom'
1456
+ */
1457
+ placement?: Placement;
1458
+ }
1459
+ interface FloatingStyles {
1460
+ position: Strategy;
1461
+ top: number;
1462
+ left: number;
1463
+ }
1464
+ interface UseFloatPosition {
1465
+ refs: UseFloatingReturn['refs'];
1466
+ isPositioned: boolean;
1467
+ styles: {
1468
+ floating: FloatingStyles;
1469
+ arrow: {
1470
+ [x: string]: string | number;
1471
+ position: Strategy;
1472
+ top: string | number;
1473
+ left: string | number;
1474
+ transform: string;
1475
+ } | undefined;
1476
+ };
1477
+ }
1478
+ /**
1479
+ * Håndterer posisjonering av et element i forhold til et annet element i DOM.
1480
+ * @param {HTMLElement | null} arrowRef pil-elementet.
1481
+ * @param {{AnimationFrame: boolean, offset: number, placement: Placement}} options alternativer for float.
1482
+ * @returns {{
1483
+ * refs: import('@floating-ui/react-dom').UseFloatingReturn['refs'],
1484
+ * styles: {
1485
+ * floating: import('@floating-ui/react-dom').FloatingStyles,
1486
+ * arrow:
1487
+ * undefined | {
1488
+ * [x: string]: string | number;
1489
+ * position: Strategy;
1490
+ * top: string | number;
1491
+ * left: string | number;
1492
+ * transform: string;
1493
+ * }
1494
+ * }
1495
+ * }} Objekt med refs og styling for floating UI.
1496
+ * @example
1497
+ * ```tsx
1498
+ * function MyComponent() {
1499
+ *
1500
+ * // Hvis du trenger en pil
1501
+ * const [arrowElement, setArrowElement] = useState<HTMLElement | null>(null);
1502
+ *
1503
+ * const { refs, styles: positionStyles } = useFloatPosition(arrowElement, {
1504
+ * placement: 'right',
1505
+ * offset: 2,
1506
+ * });
1507
+ *
1508
+ * return (
1509
+ * <>
1510
+ * <button ref={refs.setReference}>Anchor</button>
1511
+ * <div
1512
+ * ref={refs.setFloating}
1513
+ * style={positionStyles.floating}
1514
+ * >
1515
+ * <div ref={setArrowElement} style={positionStyles.arrow}>
1516
+ * // din pil, f.eks. svg
1517
+ * </div>
1518
+ * Innhold
1519
+ * </div>
1520
+ * </>
1521
+ * };
1522
+ * ```
1523
+ */
1524
+ declare const useFloatPosition: (arrowRef?: HTMLElement | null, options?: UseFloatPositionOptions) => UseFloatPosition;
1526
1525
 
1527
- declare function LocationOffIcon(props: SvgProps): react.JSX.Element;
1526
+ /**
1527
+ * Fanger fokus i en loop inni et element.
1528
+ * @template {HTMLElement} T typen til container-elementet som fanger fokus.
1529
+ * @param {boolean} active om focus skal fanges, f.eks. når en modal åpnes.
1530
+ * @param {RefObject<HTMLElement | null> | undefined} initialFocusRef `ref` til elementet som skal motta focus når focus trap er aktiv.
1531
+ * @returns {RefObject<T | null>} `ref` til elementet som fanger fokus.
1532
+ * @example
1533
+ * ```tsx
1534
+ * function MyComponent() {
1535
+ *
1536
+ * const [isOpen, setOpen] = useState(false);
1537
+ * const componentRef = useFocusTrap<HTMLDivElement>(isOpen);
1538
+ *
1539
+ * return isOpen ? <div ref={componentRef}><button>click</button></div> : null;
1540
+ *
1541
+ * }
1542
+ * ```
1543
+ */
1544
+ declare function useFocusTrap<T extends HTMLElement>(active: boolean, initialFocusRef?: RefObject<HTMLElement | null> | undefined): RefObject<T | null>;
1528
1545
 
1529
- declare function MapIcon(props: SvgProps): react.JSX.Element;
1546
+ /**
1547
+ * Sjekker om komponenten er mounted i DOM.
1548
+ *
1549
+ * @returns {() => boolean} om komponenten er mounted.
1550
+ * @example
1551
+ * ```tsx
1552
+ * function MyComponent() {
1553
+ *
1554
+ * const isMounted = useIsMounted();
1555
+ *
1556
+ * useEffect(() => {
1557
+ * if(isMounted()) {
1558
+ * // logikk når mounted
1559
+ * }
1560
+ * }, [isMounted]);
1561
+ *
1562
+ * });
1563
+ * ```
1564
+ *
1565
+ */
1566
+ declare const useIsMounted: () => (() => boolean);
1530
1567
 
1531
- declare function MoonIcon(props: SvgProps): react.JSX.Element;
1568
+ /**
1569
+ * Tillater effekter og animasjoner å bli gjennomført like etter et element blir lagt til eller like før det blir fjernet fra DOM.
1570
+ * @param {boolean} isMounted om elementet er mounted.
1571
+ * @param {number} unmountDelay hvor lenge transition skal vare før unmount.
1572
+ * @returns {boolean} om den har trasisjonert inn.
1573
+ * @example
1574
+ * ```css
1575
+ * // CSS
1576
+ * .component {
1577
+ * transition: opacity 0.2s;
1578
+ * opacity: 0;
1579
+ * }
1580
+ *
1581
+ * .transitionedIn.mounted {
1582
+ * opacity: 1;
1583
+ * }
1584
+ * ```
1585
+ * ```jsx
1586
+ * // JSX
1587
+ * function MyComponent(isMounted) {
1588
+ *
1589
+ * const hasTransitionedIn = useMountTransition(isMounted, 500);
1590
+ *
1591
+ * return isMounted || hasTransitionedIn ? (
1592
+ * <div
1593
+ * className={`component ${hasTransitionedIn && 'transitionedIn'} ${isMounted && 'mounted'}`}
1594
+ * >
1595
+ * innhold
1596
+ * </div>)
1597
+ * : null;
1598
+ * };
1599
+ * ```
1600
+ */
1601
+ declare const useMountTransition: (isMounted: boolean, unmountDelay: number) => boolean;
1532
1602
 
1533
- declare function NotebookPenIcon(props: SvgProps): react.JSX.Element;
1603
+ /**
1604
+ * Kjører logikk når brukeren klikker utenfor espesifisert(e) element(er).
1605
+ * @param {HTMLElement | null | undefined | Array<HTMLElement | null | undefined>} element HTML element(er) som overvåkes for klikk utenfor.
1606
+ * @param {(event: MouseEvent | TouchEvent) => void} handler funksjonen som kjøres ved klikk utenfor.
1607
+ * @returns {void}
1608
+ * @example
1609
+ * ```tsx
1610
+ * * function MyComponent() {
1611
+ * const [isOpen, setOpen] = useState(true);
1612
+ * const ref = useRef<HTMLDivElement>(null);
1613
+ * useOnClickOutside(ref.current, () => setOpen(false));
1614
+ *
1615
+ * return isOpen && <div ref={ref}>innhold</div>
1616
+ * };
1617
+ * ```
1618
+ */
1619
+ declare function useOnClickOutside(element: RefObject<HTMLElement | null> | Array<RefObject<HTMLElement | null> | undefined> | undefined, handler: (event: MouseEvent | TouchEvent) => void): void;
1534
1620
 
1535
- declare function StickyNoteIcon(props: SvgProps): react.JSX.Element;
1621
+ /**
1622
+ * Kjører logikk når spesifisert(e) tast(er) blir trykt ned.
1623
+ * @param {string} key tasten som trykkes.
1624
+ * @param {(event: KeyboardEvent) => void} handler funksjonen som skal kjøres.
1625
+ * @returns {void}
1626
+ * @example
1627
+ * ```tsx
1628
+ * function MyComponent() {
1629
+ * const [isOpen, setOpen] = useState(true);
1630
+ * useOnKeyDown('Escape', () => setOpen(false));
1631
+ *
1632
+ * return isOpen ? <div>innhold</div> : null;
1633
+ * }
1634
+ * ```
1635
+ */
1636
+ declare const useOnKeyDown: (key: string | Array<string>, handler: (event: KeyboardEvent) => void) => void;
1536
1637
 
1537
- declare function SunIcon(props: SvgProps): react.JSX.Element;
1638
+ /**
1639
+ * Returnerer fokus til et element når første eller siste barn i en container mister fokus ved tastaturnavigasjon.
1640
+ * @template {HTMLElement} T typen til container som skal returnere fous.
1641
+ * @param {boolean} active om container skal få fokus, f.eks. når en modal åpnes.
1642
+ * @param {() => void} onBlur ekstra logikk når fokus forlater container.
1643
+ * @param {HTMLElement | null | undefined} triggerElement elementet som skal få fokus når fokus forlater container.
1644
+ * @returns {RefObject<T | null>} ref til container som skal returnere fokus.
1645
+ * @example
1646
+ * ```tsx
1647
+ * const MyComponent() {
1648
+ *
1649
+ * const [isOpen, setOpen] = useState(false);
1650
+ * const triggerRef = useRef<HTMLButtonElement>(null);
1651
+ * const containerRef = useReturnFocusOnBlur<HTMLDivElement>(
1652
+ * isOpen,
1653
+ * () => setOpen(false),
1654
+ * triggerRef.current,
1655
+ * );
1656
+ *
1657
+ * return (
1658
+ * <div>
1659
+ * <button
1660
+ * ref={triggerRef}
1661
+ * onClick={() => setOpen(true)}
1662
+ * >
1663
+ * Åpne popover
1664
+ * </button>
1665
+ * {isOpen &&
1666
+ * <div ref={containerRef}>
1667
+ * <button>1</button>
1668
+ * <button>2</button>
1669
+ * </div>
1670
+ * }
1671
+ * </div>
1672
+ * )
1673
+ * }
1674
+ * ```
1675
+ */
1676
+ declare function useReturnFocusOnBlur<T extends HTMLElement>(active: boolean, onBlur: () => void, triggerElement?: HTMLElement | null): RefObject<T | null>;
1538
1677
 
1539
- declare function SupportIcon(props: SvgProps): react.JSX.Element;
1678
+ declare const isKeyboardEvent: (e: Event | KeyboardEvent$1<Element>) => e is KeyboardEvent$1<Element>;
1679
+ /**
1680
+ * Bytter fokus mellom elementer i en gruppe med piltaster og ikke `Tab`, samt looper fokus i gruppen.
1681
+ * @param {number} size antall elementer i gruppen.
1682
+ * @param {boolean} active om fokus skal kontrolleres av hooken. Når status blir inaktiv vil fokusrekkefølge nullstilles.
1683
+ * @param {'row' | 'column'} direction retning elementene blas i.
1684
+ * @param {boolean} noWrap om indeksen skal 'wrappe' rundt til 0 hvis den går over size - 1, eller til size - 1 hvis den går under 0.
1685
+ * @returns {[focusedIndex: number, setFocus: Dispatch<SetStateAction<number>>]} hook par: indeksen til fokuserte elemenentet og funksjonen som håndterer fokus.
1686
+ * @example
1687
+ * ```tsx
1688
+ * import elements from './elements';
1689
+ * import RoveItem from './RoveItem';
1690
+ *
1691
+ * function MyComponent() {
1692
+ * const [focusedIndex, setFocus] = useRoveFocus(elements.length);
1693
+ *
1694
+ * return (
1695
+ * <ul>
1696
+ * {elements.map((element, index) => (
1697
+ * <li key={element}>
1698
+ * <RoveItem index={index} shouldFocus={focusedIndex === index} setFocus={setFocus}>{element.name}</RoveItem>
1699
+ * </li>
1700
+ * ))}
1701
+ * </ul>)
1702
+ * }
1703
+ * ```
1704
+ */
1705
+ declare function useRoveFocus(size?: number, active?: boolean, direction?: Direction$1, noWrap?: boolean): [number, Dispatch<SetStateAction<number>>];
1540
1706
 
1541
- declare const index_AddressShieldedIcon: typeof AddressShieldedIcon;
1542
- declare const index_AgreementIcon: typeof AgreementIcon;
1543
- declare const index_AnimatedChevronUpDownIcon: typeof AnimatedChevronUpDownIcon;
1544
- type index_AnimatedChevronUpDownIconStates = AnimatedChevronUpDownIconStates;
1545
- declare const index_AppsIcon: typeof AppsIcon;
1546
- declare const index_ArchiveIcon: typeof ArchiveIcon;
1547
- declare const index_ArrowDownIcon: typeof ArrowDownIcon;
1548
- declare const index_ArrowLeftIcon: typeof ArrowLeftIcon;
1549
- declare const index_ArrowRightIcon: typeof ArrowRightIcon;
1550
- declare const index_ArrowUpIcon: typeof ArrowUpIcon;
1551
- declare const index_AttachmentIcon: typeof AttachmentIcon;
1552
- declare const index_BarChartBoxedIcon: typeof BarChartBoxedIcon;
1553
- declare const index_BarChartIcon: typeof BarChartIcon;
1554
- declare const index_BlockIcon: typeof BlockIcon;
1555
- declare const index_BookIcon: typeof BookIcon;
1556
- declare const index_BriefcaseIcon: typeof BriefcaseIcon;
1557
- declare const index_BuildIcon: typeof BuildIcon;
1558
- declare const index_BuildingIcon: typeof BuildingIcon;
1559
- declare const index_CalendarIcon: typeof CalendarIcon;
1560
- declare const index_CalendarMonthIcon: typeof CalendarMonthIcon;
1561
- declare const index_CalendarViewDayIcon: typeof CalendarViewDayIcon;
1562
- declare const index_CalendarViewMonthIcon: typeof CalendarViewMonthIcon;
1563
- declare const index_CalendarViewWeekIcon: typeof CalendarViewWeekIcon;
1564
- declare const index_CallIcon: typeof CallIcon;
1565
- declare const index_CaringIcon: typeof CaringIcon;
1566
- declare const index_ChatIcon: typeof ChatIcon;
1567
- declare const index_CheckCircledIcon: typeof CheckCircledIcon;
1568
- declare const index_CheckIcon: typeof CheckIcon;
1569
- declare const index_ChecklistIcon: typeof ChecklistIcon;
1570
- declare const index_ChevronDownIcon: typeof ChevronDownIcon;
1571
- declare const index_ChevronFirstIcon: typeof ChevronFirstIcon;
1572
- declare const index_ChevronLastIcon: typeof ChevronLastIcon;
1573
- declare const index_ChevronLeftIcon: typeof ChevronLeftIcon;
1574
- declare const index_ChevronRightIcon: typeof ChevronRightIcon;
1575
- declare const index_ChevronUpIcon: typeof ChevronUpIcon;
1576
- declare const index_CircleFilledIcon: typeof CircleFilledIcon;
1577
- declare const index_CircleIcon: typeof CircleIcon;
1578
- declare const index_CloseCircledIcon: typeof CloseCircledIcon;
1579
- declare const index_CloseIcon: typeof CloseIcon;
1580
- declare const index_CloseSmallIcon: typeof CloseSmallIcon;
1581
- declare const index_CloudIcon: typeof CloudIcon;
1582
- declare const index_CollapseIcon: typeof CollapseIcon;
1583
- declare const index_CommentIcon: typeof CommentIcon;
1584
- declare const index_CopyIcon: typeof CopyIcon;
1585
- declare const index_CourtIcon: typeof CourtIcon;
1586
- declare const index_DateRangeIcon: typeof DateRangeIcon;
1587
- declare const index_DeathsIcon: typeof DeathsIcon;
1588
- declare const index_DoubleChevronLeftIcon: typeof DoubleChevronLeftIcon;
1589
- declare const index_DoubleChevronRightIcon: typeof DoubleChevronRightIcon;
1590
- declare const index_DownloadDoneIcon: typeof DownloadDoneIcon;
1591
- declare const index_DownloadIcon: typeof DownloadIcon;
1592
- declare const index_DragHandleIcon: typeof DragHandleIcon;
1593
- declare const index_EditAltIcon: typeof EditAltIcon;
1594
- declare const index_EditIcon: typeof EditIcon;
1595
- declare const index_ErrorIcon: typeof ErrorIcon;
1596
- declare const index_ExclaimIcon: typeof ExclaimIcon;
1597
- declare const index_ExpandIcon: typeof ExpandIcon;
1598
- declare const index_FacebookIcon: typeof FacebookIcon;
1599
- declare const index_FamilyIcon: typeof FamilyIcon;
1600
- declare const index_FeedbackIcon: typeof FeedbackIcon;
1601
- declare const index_FileAddIcon: typeof FileAddIcon;
1602
- declare const index_FileIcon: typeof FileIcon;
1603
- declare const index_FileShieldedIcon: typeof FileShieldedIcon;
1604
- declare const index_FileTextIcon: typeof FileTextIcon;
1605
- declare const index_FilterIcon: typeof FilterIcon;
1606
- declare const index_FilterListIcon: typeof FilterListIcon;
1607
- declare const index_FindInPageIcon: typeof FindInPageIcon;
1608
- declare const index_FlagFilledIcon: typeof FlagFilledIcon;
1609
- declare const index_FlagIcon: typeof FlagIcon;
1610
- declare const index_FlickrIcon: typeof FlickrIcon;
1611
- declare const index_FloppyDiskIcon: typeof FloppyDiskIcon;
1612
- declare const index_FolderAddIcon: typeof FolderAddIcon;
1613
- declare const index_FolderIcon: typeof FolderIcon;
1614
- declare const index_FolderShieldedIcon: typeof FolderShieldedIcon;
1615
- declare const index_FullscreenExitIcon: typeof FullscreenExitIcon;
1616
- declare const index_FullscreenIcon: typeof FullscreenIcon;
1617
- declare const index_GavelIcon: typeof GavelIcon;
1618
- declare const index_GroupIcon: typeof GroupIcon;
1619
- declare const index_GuardianIcon: typeof GuardianIcon;
1620
- declare const index_HelpFilledIcon: typeof HelpFilledIcon;
1621
- declare const index_HelpIcon: typeof HelpIcon;
1622
- declare const index_HelpSimpleIcon: typeof HelpSimpleIcon;
1623
- declare const index_HomeIcon: typeof HomeIcon;
1624
- declare const index_HourglassEmptyIcon: typeof HourglassEmptyIcon;
1625
- declare const index_ImageIcon: typeof ImageIcon;
1626
- declare const index_InfoIcon: typeof InfoIcon;
1627
- declare const index_InstagramIcon: typeof InstagramIcon;
1628
- declare const index_JordskifterettIcon: typeof JordskifterettIcon;
1629
- declare const index_JordskiftesakIcon: typeof JordskiftesakIcon;
1630
- declare const index_KeyIcon: typeof KeyIcon;
1631
- declare const index_LagmannsrettIcon: typeof LagmannsrettIcon;
1632
- declare const index_LanguageIcon: typeof LanguageIcon;
1633
- declare const index_LineChartIcon: typeof LineChartIcon;
1634
- declare const index_LinkIcon: typeof LinkIcon;
1635
- declare const index_LinkOffIcon: typeof LinkOffIcon;
1636
- declare const index_LinkedInIcon: typeof LinkedInIcon;
1637
- declare const index_ListAltIcon: typeof ListAltIcon;
1638
- declare const index_ListIcon: typeof ListIcon;
1639
- declare const index_LocationIcon: typeof LocationIcon;
1640
- declare const index_LocationOffIcon: typeof LocationOffIcon;
1641
- declare const index_LockFilledIcon: typeof LockFilledIcon;
1642
- declare const index_LockIcon: typeof LockIcon;
1643
- declare const index_LockOpenIcon: typeof LockOpenIcon;
1644
- declare const index_LoginIcon: typeof LoginIcon;
1645
- declare const index_LogoutIcon: typeof LogoutIcon;
1646
- declare const index_MailIcon: typeof MailIcon;
1647
- declare const index_MailOpenIcon: typeof MailOpenIcon;
1648
- declare const index_MapIcon: typeof MapIcon;
1649
- declare const index_MenuIcon: typeof MenuIcon;
1650
- declare const index_MinusCircledIcon: typeof MinusCircledIcon;
1651
- declare const index_MinusIcon: typeof MinusIcon;
1652
- declare const index_MoonIcon: typeof MoonIcon;
1653
- declare const index_MoreHorizontalIcon: typeof MoreHorizontalIcon;
1654
- declare const index_MoreVerticalIcon: typeof MoreVerticalIcon;
1655
- declare const index_NotarialIcon: typeof NotarialIcon;
1656
- declare const index_NotebookPenIcon: typeof NotebookPenIcon;
1657
- declare const index_NotificationsIcon: typeof NotificationsIcon;
1658
- declare const index_NotificationsOffIcon: typeof NotificationsOffIcon;
1659
- declare const index_OnlineMeetingIcon: typeof OnlineMeetingIcon;
1660
- declare const index_OpenExternalIcon: typeof OpenExternalIcon;
1661
- declare const index_PanelLeftIcon: typeof PanelLeftIcon;
1662
- declare const index_PaperPlaneIcon: typeof PaperPlaneIcon;
1663
- declare const index_PayoutIcon: typeof PayoutIcon;
1664
- declare const index_PdfIcon: typeof PdfIcon;
1665
- declare const index_PersonAddIcon: typeof PersonAddIcon;
1666
- declare const index_PersonIcon: typeof PersonIcon;
1667
- declare const index_PersonShieldedIcon: typeof PersonShieldedIcon;
1668
- declare const index_PinIcon: typeof PinIcon;
1669
- declare const index_PlusCircledIcon: typeof PlusCircledIcon;
1670
- declare const index_PlusIcon: typeof PlusIcon;
1671
- declare const index_PowerOfAttorneyIcon: typeof PowerOfAttorneyIcon;
1672
- declare const index_PrintIcon: typeof PrintIcon;
1673
- declare const index_PublishIcon: typeof PublishIcon;
1674
- declare const index_QuestionAnswerIcon: typeof QuestionAnswerIcon;
1675
- declare const index_ReceiptIcon: typeof ReceiptIcon;
1676
- declare const index_RedoIcon: typeof RedoIcon;
1677
- declare const index_RefreshIcon: typeof RefreshIcon;
1678
- declare const index_ReplayIcon: typeof ReplayIcon;
1679
- declare const index_RowsIcon: typeof RowsIcon;
1680
- declare const index_ScaleIcon: typeof ScaleIcon;
1681
- declare const index_SearchIcon: typeof SearchIcon;
1682
- declare const index_SectionIcon: typeof SectionIcon;
1683
- declare const index_SettingsIcon: typeof SettingsIcon;
1684
- declare const index_SmsIcon: typeof SmsIcon;
1685
- declare const index_StarFilledIcon: typeof StarFilledIcon;
1686
- declare const index_StarHalfFilledIcon: typeof StarHalfFilledIcon;
1687
- declare const index_StarIcon: typeof StarIcon;
1688
- declare const index_StickyNoteIcon: typeof StickyNoteIcon;
1689
- declare const index_SunIcon: typeof SunIcon;
1690
- declare const index_SupportIcon: typeof SupportIcon;
1691
- declare const index_SyncIcon: typeof SyncIcon;
1692
- declare const index_ThumbDownFilledIcon: typeof ThumbDownFilledIcon;
1693
- declare const index_ThumbDownIcon: typeof ThumbDownIcon;
1694
- declare const index_ThumbUpFilledIcon: typeof ThumbUpFilledIcon;
1695
- declare const index_ThumbUpIcon: typeof ThumbUpIcon;
1696
- declare const index_TimeIcon: typeof TimeIcon;
1697
- declare const index_TingrettIcon: typeof TingrettIcon;
1698
- declare const index_TipIcon: typeof TipIcon;
1699
- declare const index_TrashIcon: typeof TrashIcon;
1700
- declare const index_TrendingDownIcon: typeof TrendingDownIcon;
1701
- declare const index_TrendingUpIcon: typeof TrendingUpIcon;
1702
- declare const index_UndoIcon: typeof UndoIcon;
1703
- declare const index_UnfoldLessIcon: typeof UnfoldLessIcon;
1704
- declare const index_UnfoldMoreIcon: typeof UnfoldMoreIcon;
1705
- declare const index_UploadIcon: typeof UploadIcon;
1706
- declare const index_VisibilityOffIcon: typeof VisibilityOffIcon;
1707
- declare const index_VisibilityOnIcon: typeof VisibilityOnIcon;
1708
- declare const index_WarningIcon: typeof WarningIcon;
1709
- declare const index_WebexIcon: typeof WebexIcon;
1710
- declare const index_XIcon: typeof XIcon;
1711
- declare const index_ZoomInIcon: typeof ZoomInIcon;
1712
- declare const index_ZoomOutIcon: typeof ZoomOutIcon;
1713
- declare namespace index {
1714
- export { index_AddressShieldedIcon as AddressShieldedIcon, index_AgreementIcon as AgreementIcon, index_AnimatedChevronUpDownIcon as AnimatedChevronUpDownIcon, type index_AnimatedChevronUpDownIconStates as AnimatedChevronUpDownIconStates, index_AppsIcon as AppsIcon, index_ArchiveIcon as ArchiveIcon, index_ArrowDownIcon as ArrowDownIcon, index_ArrowLeftIcon as ArrowLeftIcon, index_ArrowRightIcon as ArrowRightIcon, index_ArrowUpIcon as ArrowUpIcon, index_AttachmentIcon as AttachmentIcon, index_BarChartBoxedIcon as BarChartBoxedIcon, index_BarChartIcon as BarChartIcon, index_BlockIcon as BlockIcon, index_BookIcon as BookIcon, index_BriefcaseIcon as BriefcaseIcon, index_BuildIcon as BuildIcon, index_BuildingIcon as BuildingIcon, index_CalendarIcon as CalendarIcon, index_CalendarMonthIcon as CalendarMonthIcon, index_CalendarViewDayIcon as CalendarViewDayIcon, index_CalendarViewMonthIcon as CalendarViewMonthIcon, index_CalendarViewWeekIcon as CalendarViewWeekIcon, index_CallIcon as CallIcon, index_CaringIcon as CaringIcon, index_ChatIcon as ChatIcon, index_CheckCircledIcon as CheckCircledIcon, index_CheckIcon as CheckIcon, index_ChecklistIcon as ChecklistIcon, index_ChevronDownIcon as ChevronDownIcon, index_ChevronFirstIcon as ChevronFirstIcon, index_ChevronLastIcon as ChevronLastIcon, index_ChevronLeftIcon as ChevronLeftIcon, index_ChevronRightIcon as ChevronRightIcon, index_ChevronUpIcon as ChevronUpIcon, index_CircleFilledIcon as CircleFilledIcon, index_CircleIcon as CircleIcon, index_CloseCircledIcon as CloseCircledIcon, index_CloseIcon as CloseIcon, index_CloseSmallIcon as CloseSmallIcon, index_CloudIcon as CloudIcon, index_CollapseIcon as CollapseIcon, index_CommentIcon as CommentIcon, index_CopyIcon as CopyIcon, index_CourtIcon as CourtIcon, index_DateRangeIcon as DateRangeIcon, index_DeathsIcon as DeathsIcon, index_DoubleChevronLeftIcon as DoubleChevronLeftIcon, index_DoubleChevronRightIcon as DoubleChevronRightIcon, index_DownloadDoneIcon as DownloadDoneIcon, index_DownloadIcon as DownloadIcon, index_DragHandleIcon as DragHandleIcon, index_EditAltIcon as EditAltIcon, index_EditIcon as EditIcon, index_ErrorIcon as ErrorIcon, index_ExclaimIcon as ExclaimIcon, index_ExpandIcon as ExpandIcon, index_FacebookIcon as FacebookIcon, index_FamilyIcon as FamilyIcon, index_FeedbackIcon as FeedbackIcon, index_FileAddIcon as FileAddIcon, index_FileIcon as FileIcon, index_FileShieldedIcon as FileShieldedIcon, index_FileTextIcon as FileTextIcon, index_FilterIcon as FilterIcon, index_FilterListIcon as FilterListIcon, index_FindInPageIcon as FindInPageIcon, index_FlagFilledIcon as FlagFilledIcon, index_FlagIcon as FlagIcon, index_FlickrIcon as FlickrIcon, index_FloppyDiskIcon as FloppyDiskIcon, index_FolderAddIcon as FolderAddIcon, index_FolderIcon as FolderIcon, index_FolderShieldedIcon as FolderShieldedIcon, index_FullscreenExitIcon as FullscreenExitIcon, index_FullscreenIcon as FullscreenIcon, index_GavelIcon as GavelIcon, index_GroupIcon as GroupIcon, index_GuardianIcon as GuardianIcon, index_HelpFilledIcon as HelpFilledIcon, index_HelpIcon as HelpIcon, index_HelpSimpleIcon as HelpSimpleIcon, index_HomeIcon as HomeIcon, index_HourglassEmptyIcon as HourglassEmptyIcon, index_ImageIcon as ImageIcon, index_InfoIcon as InfoIcon, index_InstagramIcon as InstagramIcon, index_JordskifterettIcon as JordskifterettIcon, index_JordskiftesakIcon as JordskiftesakIcon, index_KeyIcon as KeyIcon, index_LagmannsrettIcon as LagmannsrettIcon, index_LanguageIcon as LanguageIcon, index_LineChartIcon as LineChartIcon, index_LinkIcon as LinkIcon, index_LinkOffIcon as LinkOffIcon, index_LinkedInIcon as LinkedInIcon, index_ListAltIcon as ListAltIcon, index_ListIcon as ListIcon, index_LocationIcon as LocationIcon, index_LocationOffIcon as LocationOffIcon, index_LockFilledIcon as LockFilledIcon, index_LockIcon as LockIcon, index_LockOpenIcon as LockOpenIcon, index_LoginIcon as LoginIcon, index_LogoutIcon as LogoutIcon, index_MailIcon as MailIcon, index_MailOpenIcon as MailOpenIcon, index_MapIcon as MapIcon, index_MenuIcon as MenuIcon, index_MinusCircledIcon as MinusCircledIcon, index_MinusIcon as MinusIcon, index_MoonIcon as MoonIcon, index_MoreHorizontalIcon as MoreHorizontalIcon, index_MoreVerticalIcon as MoreVerticalIcon, index_NotarialIcon as NotarialIcon, index_NotebookPenIcon as NotebookPenIcon, index_NotificationsIcon as NotificationsIcon, index_NotificationsOffIcon as NotificationsOffIcon, index_OnlineMeetingIcon as OnlineMeetingIcon, index_OpenExternalIcon as OpenExternalIcon, index_PanelLeftIcon as PanelLeftIcon, index_PaperPlaneIcon as PaperPlaneIcon, index_PayoutIcon as PayoutIcon, index_PdfIcon as PdfIcon, index_PersonAddIcon as PersonAddIcon, index_PersonIcon as PersonIcon, index_PersonShieldedIcon as PersonShieldedIcon, index_PinIcon as PinIcon, index_PlusCircledIcon as PlusCircledIcon, index_PlusIcon as PlusIcon, index_PowerOfAttorneyIcon as PowerOfAttorneyIcon, index_PrintIcon as PrintIcon, index_PublishIcon as PublishIcon, index_QuestionAnswerIcon as QuestionAnswerIcon, index_ReceiptIcon as ReceiptIcon, index_RedoIcon as RedoIcon, index_RefreshIcon as RefreshIcon, index_ReplayIcon as ReplayIcon, index_RowsIcon as RowsIcon, index_ScaleIcon as ScaleIcon, index_SearchIcon as SearchIcon, index_SectionIcon as SectionIcon, index_SettingsIcon as SettingsIcon, index_SmsIcon as SmsIcon, index_StarFilledIcon as StarFilledIcon, index_StarHalfFilledIcon as StarHalfFilledIcon, index_StarIcon as StarIcon, index_StickyNoteIcon as StickyNoteIcon, index_SunIcon as SunIcon, index_SupportIcon as SupportIcon, index_SyncIcon as SyncIcon, index_ThumbDownFilledIcon as ThumbDownFilledIcon, index_ThumbDownIcon as ThumbDownIcon, index_ThumbUpFilledIcon as ThumbUpFilledIcon, index_ThumbUpIcon as ThumbUpIcon, index_TimeIcon as TimeIcon, index_TingrettIcon as TingrettIcon, index_TipIcon as TipIcon, index_TrashIcon as TrashIcon, index_TrendingDownIcon as TrendingDownIcon, index_TrendingUpIcon as TrendingUpIcon, index_UndoIcon as UndoIcon, index_UnfoldLessIcon as UnfoldLessIcon, index_UnfoldMoreIcon as UnfoldMoreIcon, index_UploadIcon as UploadIcon, index_VisibilityOffIcon as VisibilityOffIcon, index_VisibilityOnIcon as VisibilityOnIcon, index_WarningIcon as WarningIcon, index_WebexIcon as WebexIcon, index_XIcon as XIcon, index_ZoomInIcon as ZoomInIcon, index_ZoomOutIcon as ZoomOutIcon };
1707
+ declare enum ScreenSize {
1708
+ XSmall = 0,
1709
+ Small = 1,
1710
+ Medium = 2,
1711
+ Large = 3,
1712
+ XLarge = 4
1715
1713
  }
1714
+ /**
1715
+ * Sjekker skjermstørrelsen basert på brekkpunkter definerte i designsystemet.
1716
+ * @returns den aktuelle skjermstørrelsen basert på {@link ScreenSize}.
1717
+ * @example
1718
+ * ```tsx
1719
+ * function MyComponent() {
1720
+ * const screenSize = useScreenSize();
1721
+ * const isSmallScreen = screenSize === ScreenSize.Small;
1722
+ *
1723
+ * return <div className={isSmallScreen && 'smallDiv'} >innhold</div>
1724
+ * }
1725
+ * ```
1726
+ */
1727
+ declare const useScreenSize: () => ScreenSize;
1728
+
1729
+ /**
1730
+ * Kjører logikk når vindusstørrelsen endrer seg.
1731
+ * @param {() => void} handler funksjonen som skal kjøres.
1732
+ * @returns {void}
1733
+ * @example
1734
+ * ```tsx
1735
+ * function MyComponent() {
1736
+ * const [width, setWidth] = useState<number>(window.innerWidth);
1737
+ * useResize(() => setWidth(window.innerWidth));
1738
+ *
1739
+ * return <div>vindusstørrelse: {width}px</div>;
1740
+ * }
1741
+ * ```
1742
+ */
1743
+ declare const useWindowResize: (handler: () => void) => void;
1716
1744
 
1717
1745
  type DdsTheme = keyof typeof ddsTokens;
1718
1746
  interface ThemeProviderProps {
@@ -4618,7 +4646,7 @@ type LocalMessageProps = BaseComponentProps<HTMLDivElement, {
4618
4646
  layout?: LocalMessageLayout;
4619
4647
  } & Pick<ResponsiveProps, 'width'>>;
4620
4648
  declare const LocalMessage: {
4621
- ({ purpose, closable, onClose, width, layout, children, id, className, style, htmlProps, ...rest }: LocalMessageProps): react.JSX.Element;
4649
+ ({ purpose, closable, onClose, width, layout, children, id, className, style, htmlProps, ...rest }: LocalMessageProps): react.JSX.Element | null;
4622
4650
  displayName: string;
4623
4651
  };
4624
4652
 
@@ -4847,11 +4875,6 @@ interface PhoneInputValue {
4847
4875
  countryCode: ISOCountryCode | (string & {});
4848
4876
  phoneNumber: string;
4849
4877
  }
4850
- interface PhoneInputCountryOption {
4851
- countryCode: ISOCountryCode;
4852
- label: string;
4853
- }
4854
- declare const countryOptions: Array<PhoneInputCountryOption>;
4855
4878
  type PhoneInputProps = {
4856
4879
  /**
4857
4880
  * Custom id for gruppen ved behov. setter `${id}-country-code` som `id` for landskode og `${id}-phone-number` for telefonnummer.
@@ -5630,4 +5653,4 @@ declare const VisuallyHidden: {
5630
5653
  displayName: string;
5631
5654
  };
5632
5655
 
5633
- export { Accordion, AccordionBody, type AccordionBodyProps, type AccordionConfig, AccordionContextProvider, AccordionHeader, type AccordionHeaderProps, type AccordionProps, type AccordionState, AddTabButton, type AddTabButtonProps, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDownIcon, type AnimatedChevronUpDownIconStates, AppsIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AttachmentIcon, BORDER_COLORS, BORDER_RADII, BackLink, type BackLinkProps, Backdrop, BarChartBoxedIcon, BarChartIcon, type BaseComponentProps, type BaseComponentPropsWithChildren, type BaseItemProps, type BaseLabelProps, type BaseTypographyProps, Bleed, type BleedProps, BlockIcon, type BlockTypographyResponsiveProps, BookIcon, type BorderColor, type BorderRadius, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, BriefcaseIcon, BuildIcon, BuildingIcon, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonPurpose, type ButtonSize, Calendar, CalendarIcon, CalendarMonthIcon, type CalendarProps, CalendarViewDayIcon, CalendarViewMonthIcon, CalendarViewWeekIcon, CallIcon, type Callback, Caption, type CaptionProps, Card, CardExpandable, CardExpandableBody, type CardExpandableBodyProps, CardExpandableHeader, type CardExpandableHeaderProps, type CardExpandableProps, type CardProps, CardSelectable, CardSelectableGroup, type CardSelectableGroupProps, type CardSelectableProps, CaringIcon, ChatIcon, CheckCircledIcon, CheckIcon, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxPickedHTMLAttributes, type CheckboxProps, ChecklistIcon, ChevronDownIcon, ChevronFirstIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipGroup, type ChipGroupProps, type ChipProps, CircleFilledIcon, CircleIcon, CloseCircledIcon, CloseIcon, CloseSmallIcon, CloudIcon, CollapseIcon, CollapsibleTable, type CollapsibleTableProps, CollapsibleRow as CollapsibleTableRow, type ColumnsOccupied, CommentIcon, type CommonBlockTypographyProps, type CommonInlineTypographyProps, Contrast, type ContrastProps, CookieBanner, CookieBannerCheckbox, type CookieBannerCheckboxProps, type CookieBannerProps, CopyIcon, CourtIcon, DETAIL_LIST_SIZES, DatePicker, type DatePickerProps, DateRangeIcon, DdsProvider, type DdsProviderProps, type DdsTheme, DeathsIcon, DescriptionList, type DescriptionListAppearance, DescriptionListDesc, type DescriptionListDescProps, DescriptionListGroup, type DescriptionListGroupProps, type DescriptionListProps, DescriptionListTerm, type DescriptionListTermProps, DetailList, DetailListDesc, type DetailListDescProps, type DetailListProps, DetailListRow, type DetailListRowProps, type DetailListSize, DetailListTerm, type DetailListTermProps, type Direction$1 as Direction, Divider, type DividerColor, type DividerProps, DoubleChevronLeftIcon, DoubleChevronRightIcon, DownloadDoneIcon, DownloadIcon, DragHandleIcon, Drawer, DrawerGroup, type DrawerGroupProps, type DrawerPlacement, type DrawerProps, type DrawerSize, DropdownHeader, DropdownItem, type DropdownItemButtonProps, type DropdownItemCustomProps, type DropdownItemProps, ELEVATIONS, EditAltIcon, EditIcon, ElementAs, type Elevation, EmptyContent, type EmptyContentProps, ErrorIcon, ErrorSummary, ErrorSummaryItem, type ErrorSummaryItemProps, type ErrorSummaryProps, ExclaimIcon, ExpandIcon, type ExtractStrict, FacebookIcon, FamilyIcon, FavStar, type FavStarProps, Feedback, FeedbackIcon, type FeedbackProps, Fieldset, FieldsetGroup, type FieldsetGroupProps, type FieldsetProps, FileAddIcon, FileIcon, type FileList, FileShieldedIcon, type FileStatusMap, FileTextIcon, FileUploader, type FileUploaderAccept, type FileUploaderProps, FilterIcon, FilterListIcon, FindInPageIcon, FlagFilledIcon, FlagIcon, FlickrIcon, type FloatingStyles, FloppyDiskIcon, FolderAddIcon, FolderIcon, FolderShieldedIcon, Footer, FooterLeft, type FooterLeftProps, FooterList, FooterListGroup, type FooterListGroupProps, FooterListHeader, type FooterListHeaderProps, type FooterListProps, FooterLogo, type FooterLogoProps, type FooterProps, FooterSocialsGroup, type FooterSocialsGroupProps, FooterSocialsList, type FooterSocialsListProps, FormSummary, FormSummaryEditButton, FormSummaryEmptyValue, FormSummaryError, FormSummaryField, FormSummaryFields, FormSummaryHeader, FormSummaryHeading, FormSummaryLabel, type FormSummaryProps, FormSummaryValue, FullscreenExitIcon, FullscreenIcon, GavelIcon, GlobalMessage, type GlobalMessageProps, type GlobalMessagePurpose, Grid, GridChild, type GridChildProps, type GridProps, GroupIcon, GuardianIcon, HStack, type HStackProps, type HTMLRootProps, Heading, type HeadingLevel, type HeadingProps, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassEmptyIcon, type HyphenTypographyType, Icon, type IconPosition, type IconProps, type IconSize, ImageIcon, InfoIcon, InlineButton, type InlineButtonProps, InlineEditInput, type InlineEditInputProps, InlineEditSelect, type InlineEditSelectProps, InlineEditTextArea, type InlineEditTextAreaProps, type InlineElement, type InlineTypographyResponsiveProps, InputMessage, type InputMessageProps, type InputMessageType, InstagramIcon, type InternaHeaderUserProps, InternalHeader, type InternalHeaderProps, JordskifterettIcon, JordskiftesakIcon, KeyIcon, L_MESSAGE_PURPOSES, Label, type LabelProps, LagmannsrettIcon, LanguageIcon, type Layout, Legend, type LegendProps, LineChartIcon, Link, LinkIcon, LinkOffIcon, type LinkProps, LinkedInIcon, List, ListAltIcon, ListIcon, ListItem, type ListItemProps, type ListProps, type ListType, type ListTypographyType, LocalMessage, type LocalMessageLayout, type LocalMessageProps, type LocalMessagePurpose, LocationIcon, LocationOffIcon, LockFilledIcon, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MapIcon, MenuIcon, MinusCircledIcon, MinusIcon, Modal, ModalActions, type ModalActionsProps, ModalBody, type ModalBodyProps, type ModalProps, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, type NativeSelectProps, NewsPopover, type NewsPopoverProps, NotarialIcon, NotebookPenIcon, NotificationsIcon, NotificationsOffIcon, type Nullable, OnlineMeetingIcon, OpenExternalIcon, type OtherTypographyType, OverflowMenu, OverflowMenuButton, type OverflowMenuButtonProps, OverflowMenuDivider, OverflowMenuGroup, type OverflowMenuGroupProps, OverflowMenuLink, type OverflowMenuLinkProps, OverflowMenuList, OverflowMenuListHeader, type OverflowMenuProps, OverflowMenuSpan, type OverflowMenuSpanProps, OverflowMenuToggle, type OverflowMenuToggleProps, Pagination, type PaginationOption, type PaginationProps, PanelLeftIcon, Paper, type PaperBackground, type PaperBorder, type PaperBorderRadius, type PaperElevation, PaperPlaneIcon, type PaperProps, Paragraph, type ParagraphProps, PayoutIcon, PdfIcon, PersonAddIcon, PersonIcon, PersonShieldedIcon, PhoneInput, type PhoneInputProps, type PhoneInputValue, PinIcon, type Placement, PlusCircledIcon, PlusIcon, type PolymorphicBaseComponentProps, type PolymorphicProps, Popover, PopoverGroup, type PopoverGroupProps, type PopoverProps, type PopoverSizeProps, PowerOfAttorneyIcon, PrintIcon, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressTracker, ProgressTrackerItem, type ProgressTrackerItemProps, type ProgressTrackerProps, PublishIcon, type Purpose, QuestionAnswerIcon, RadioButton, RadioButtonGroup, type RadioButtonGroupProps, type RadioButtonProps, type RadioValue, type Rating, ReceiptIcon, RedoIcon, RefreshIcon, type RemoteFile, ReplayIcon, type ResponsiveProps, type ResponsiveStackProps, RowsIcon, ScaleIcon, ScreenSize, Search, SearchAutocompleteWrapper, type SearchAutocompleteWrapperProps, type SearchButtonProps, type SearchData, SearchIcon, type SearchProps, type SearchSize, SearchSuggestions, type SearchSuggestionsProps, SectionIcon, Select, type SelectForwardRefType, type SelectOption, type SelectProps, SettingsIcon, ShowHide, type ShowHideProps, type Size, Skeleton, type SkeletonAppearance, type SkeletonProps, SkipToContent, type SkipToContentProps, SmsIcon, type SortOrder, type SpacingScale, Spinner, type SpinnerProps, SplitButton, type SplitButtonPrimaryActionProps, type SplitButtonProps, type SplitButtonPurpose, type SplitButtonSecondaryActionsProps, StarFilledIcon, StarHalfFilledIcon, StarIcon, type StaticTypographyType, StickyNoteIcon, StylelessButton, type StylelessButtonProps, StylelessList, type StylelessListProps, StylelessOList, type StylelessOListProps, SunIcon, SupportIcon, type SvgIcon, type SvgProps, SyncIcon, TG_HEADING_TYPES, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, type TabSize, Table, Body as TableBody, type TableBodyProps, Cell as TableCell, type TableCellLayout, type TableCellProps, type TableCellType, Foot as TableFoot, type TableFootProps, Head as TableHead, type TableHeadProps, type TableProps, Row as TableRow, type TableRowProps, type TableRowType, type TableSize, SortCell as TableSortCell, type TableSortCellProps, TableWrapper, Tabs, type TabsProps, Tag, type TagAppearance, type TagProps, type TagPurpose, type TextAffixProps, TextArea, type TextAreaProps, TextInput, type TextInputProps, TextOverflowEllipsisInner, TextOverflowEllipsisWrapper, ThumbDownFilledIcon, ThumbDownIcon, ThumbUpFilledIcon, ThumbUpIcon, TimeIcon, TimePicker, type TimePickerProps, TingrettIcon, TipIcon, Toggle, ToggleBar, type ToggleBarProps, type ToggleBarSize, type ToggleBarValue, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, type ToggleProps, ToggleRadio, type ToggleRadioProps, type ToggleSize, Tooltip, type TooltipProps, TrashIcon, TrendingDownIcon, TrendingUpIcon, Typography, type TypographyAnchorType, type TypographyBodyLongType, type TypographyBodyShortType, type TypographyBodyType, type TypographyComponentProps, type TypographyHeadingType, type TypographyLabelType, type TypographyLeadType, type TypographyProps, type TypographyType, UndoIcon, UnfoldLessIcon, UnfoldMoreIcon, UploadIcon, type UploadInfo, type UploadStatus, type UseAccordionBodyProps, type UseAccordionHeaderProps, type UseControllableGroupStateProps, type UseControllableStateProps, type UseFloatPositionOptions, VStack, type VStackProps, VisibilityOffIcon, VisibilityOnIcon, VisuallyHidden, type VisuallyHiddenProps, WarningIcon, WebexIcon, type WeightedSearchData, type WithRequiredIf, XIcon, ZoomInIcon, ZoomOutIcon, calendarDateToNativeDate, cn, countryOptions, createPurposes, createSelectOptions, createSizes, dateValueToNativeDate, focusVisible, focusVisibleInset, focusVisibleTransitionValue, getBaseHTMLProps, getColorCn, getElementType, getLiteralScreenSize, getTypographyCn, handleElementWithBackdropMount, handleElementWithBackdropUnmount, hideInput, index as icons, inheritLinkStyling, inlineElements, isAnchorTypographyProps, isBorderColor, isBorderRadius, isCaption, isElevation, isHeading, isInlineElement, isKeyboardEvent, isLegend, isPaperBackground, nativeDateToCalendarDate, nativeDateToDateValue, nativeDateToTime, normalizeButton, outlineInset, outlineOffset, removeButtonStyling, removeListStyling, renderInputMessage, scrollbarStyling, useAccordion, useAccordionContext, useCallbackRef, useCombinedRef, useControllableGroupState, useControllableState, useFloatPosition, useFocusTrap, useIsMounted, useMountTransition, useOnClickOutside, useOnKeyDown, useReturnFocusOnBlur, useRoveFocus, useScreenSize, useTheme, useWindowResize };
5656
+ export { Accordion, AccordionBody, type AccordionBodyProps, type AccordionConfig, AccordionContextProvider, AccordionHeader, type AccordionHeaderProps, type AccordionProps, type AccordionState, AddTabButton, type AddTabButtonProps, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDownIcon, type AnimatedChevronUpDownIconStates, AppsIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AttachmentIcon, BORDER_COLORS, BORDER_RADII, BackLink, type BackLinkProps, Backdrop, BarChartBoxedIcon, BarChartIcon, type BaseComponentProps, type BaseComponentPropsWithChildren, type BaseItemProps, type BaseLabelProps, type BaseTypographyProps, Bleed, type BleedProps, BlockIcon, type BlockTypographyResponsiveProps, BookIcon, type BorderColor, type BorderRadius, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, BriefcaseIcon, BuildIcon, BuildingIcon, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonPurpose, type ButtonSize, Calendar, CalendarIcon, CalendarMonthIcon, type CalendarProps, CalendarViewDayIcon, CalendarViewMonthIcon, CalendarViewWeekIcon, CallIcon, type Callback, Caption, type CaptionProps, Card, CardExpandable, CardExpandableBody, type CardExpandableBodyProps, CardExpandableHeader, type CardExpandableHeaderProps, type CardExpandableProps, type CardProps, CardSelectable, CardSelectableGroup, type CardSelectableGroupProps, type CardSelectableProps, CaringIcon, ChatIcon, CheckCircledIcon, CheckIcon, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxPickedHTMLAttributes, type CheckboxProps, ChecklistIcon, ChevronDownIcon, ChevronFirstIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipGroup, type ChipGroupProps, type ChipProps, CircleFilledIcon, CircleIcon, CloseCircledIcon, CloseIcon, CloseSmallIcon, CloudIcon, CollapseIcon, CollapsibleTable, type CollapsibleTableProps, CollapsibleRow as CollapsibleTableRow, type ColumnsOccupied, CommentIcon, type CommonBlockTypographyProps, type CommonInlineTypographyProps, Contrast, type ContrastProps, CookieBanner, CookieBannerCheckbox, type CookieBannerCheckboxProps, type CookieBannerProps, CopyIcon, CourtIcon, DETAIL_LIST_SIZES, DatePicker, type DatePickerProps, DateRangeIcon, DdsProvider, type DdsProviderProps, type DdsTheme, DeathsIcon, DescriptionList, type DescriptionListAppearance, DescriptionListDesc, type DescriptionListDescProps, DescriptionListGroup, type DescriptionListGroupProps, type DescriptionListProps, DescriptionListTerm, type DescriptionListTermProps, DetailList, DetailListDesc, type DetailListDescProps, type DetailListProps, DetailListRow, type DetailListRowProps, type DetailListSize, DetailListTerm, type DetailListTermProps, type Direction$1 as Direction, Divider, type DividerColor, type DividerProps, DoubleChevronLeftIcon, DoubleChevronRightIcon, DownloadDoneIcon, DownloadIcon, DragHandleIcon, Drawer, DrawerGroup, type DrawerGroupProps, type DrawerPlacement, type DrawerProps, type DrawerSize, DropdownHeader, DropdownItem, type DropdownItemButtonProps, type DropdownItemCustomProps, type DropdownItemProps, ELEVATIONS, EditAltIcon, EditIcon, ElementAs, type Elevation, EmptyContent, type EmptyContentProps, ErrorIcon, ErrorSummary, ErrorSummaryItem, type ErrorSummaryItemProps, type ErrorSummaryProps, ExclaimIcon, ExpandIcon, type ExtractStrict, FacebookIcon, FamilyIcon, FavStar, type FavStarProps, Feedback, FeedbackIcon, type FeedbackProps, Fieldset, FieldsetGroup, type FieldsetGroupProps, type FieldsetProps, FileAddIcon, FileIcon, type FileList, FileShieldedIcon, FileSignedIcon, type FileStatusMap, FileTextIcon, FileUploader, type FileUploaderAccept, type FileUploaderProps, FilterIcon, FilterListIcon, FindInPageIcon, FlagFilledIcon, FlagIcon, FlickrIcon, type FloatingStyles, FloppyDiskIcon, FolderAddIcon, FolderIcon, FolderShieldedIcon, Footer, FooterLeft, type FooterLeftProps, FooterList, FooterListGroup, type FooterListGroupProps, FooterListHeader, type FooterListHeaderProps, type FooterListProps, FooterLogo, type FooterLogoProps, type FooterProps, FooterSocialsGroup, type FooterSocialsGroupProps, FooterSocialsList, type FooterSocialsListProps, FormSummary, FormSummaryEditButton, FormSummaryEmptyValue, FormSummaryError, FormSummaryField, FormSummaryFields, FormSummaryHeader, FormSummaryHeading, FormSummaryLabel, type FormSummaryProps, FormSummaryValue, FullscreenExitIcon, FullscreenIcon, GavelIcon, GlobalMessage, type GlobalMessageProps, type GlobalMessagePurpose, Grid, GridChild, type GridChildProps, type GridProps, GroupIcon, GuardianIcon, HStack, type HStackProps, type HTMLRootProps, Heading, type HeadingLevel, type HeadingProps, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassEmptyIcon, type HyphenTypographyType, Icon, type IconPosition, type IconProps, type IconSize, ImageIcon, InfoIcon, InlineButton, type InlineButtonProps, InlineEditInput, type InlineEditInputProps, InlineEditSelect, type InlineEditSelectProps, InlineEditTextArea, type InlineEditTextAreaProps, type InlineElement, type InlineTypographyResponsiveProps, InputMessage, type InputMessageProps, type InputMessageType, InstagramIcon, type InternaHeaderUserProps, InternalHeader, type InternalHeaderProps, JordskifterettIcon, JordskiftesakIcon, KeyIcon, L_MESSAGE_PURPOSES, Label, type LabelProps, LagmannsrettIcon, LanguageIcon, type Layout, Legend, type LegendProps, LineChartIcon, Link, LinkIcon, LinkOffIcon, type LinkProps, LinkedInIcon, List, ListAltIcon, ListIcon, ListItem, type ListItemProps, type ListProps, type ListType, type ListTypographyType, LocalMessage, type LocalMessageLayout, type LocalMessageProps, type LocalMessagePurpose, LocationIcon, LocationOffIcon, LockFilledIcon, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MapIcon, MenuIcon, MinusCircledIcon, MinusIcon, Modal, ModalActions, type ModalActionsProps, ModalBody, type ModalBodyProps, type ModalProps, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, type NativeSelectProps, NewsPopover, type NewsPopoverProps, NotarialIcon, NotebookPenIcon, NotificationsIcon, NotificationsOffIcon, type Nullable, OnlineMeetingIcon, OpenExternalIcon, type OtherTypographyType, OverflowMenu, OverflowMenuButton, type OverflowMenuButtonProps, OverflowMenuDivider, OverflowMenuGroup, type OverflowMenuGroupProps, OverflowMenuLink, type OverflowMenuLinkProps, OverflowMenuList, OverflowMenuListHeader, type OverflowMenuProps, OverflowMenuSpan, type OverflowMenuSpanProps, OverflowMenuToggle, type OverflowMenuToggleProps, Pagination, type PaginationOption, type PaginationProps, PanelLeftIcon, Paper, type PaperBackground, type PaperBorder, type PaperBorderRadius, type PaperElevation, PaperPlaneIcon, type PaperProps, Paragraph, type ParagraphProps, PayoutIcon, PdfIcon, PersonAddIcon, PersonIcon, PersonShieldedIcon, PhoneInput, type PhoneInputProps, PinIcon, type Placement, PlusCircledIcon, PlusIcon, type PolymorphicBaseComponentProps, type PolymorphicProps, Popover, PopoverGroup, type PopoverGroupProps, type PopoverProps, type PopoverSizeProps, PowerOfAttorneyIcon, PrintIcon, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressTracker, ProgressTrackerItem, type ProgressTrackerItemProps, type ProgressTrackerProps, PublishIcon, type Purpose, QuestionAnswerIcon, RadioButton, RadioButtonGroup, type RadioButtonGroupProps, type RadioButtonProps, type RadioValue, type Rating, ReceiptIcon, RedoIcon, RefreshIcon, type RemoteFile, ReplayIcon, type ResponsiveProps, type ResponsiveStackProps, RowsIcon, ScaleIcon, ScreenSize, Search, SearchAutocompleteWrapper, type SearchAutocompleteWrapperProps, type SearchButtonProps, type SearchData, SearchIcon, type SearchProps, type SearchSize, SearchSuggestions, type SearchSuggestionsProps, SectionIcon, Select, type SelectForwardRefType, type SelectOption, type SelectProps, SettingsIcon, ShowHide, type ShowHideProps, type Size, Skeleton, type SkeletonAppearance, type SkeletonProps, SkipToContent, type SkipToContentProps, SmsIcon, type SortOrder, type SpacingScale, Spinner, type SpinnerProps, SplitButton, type SplitButtonPrimaryActionProps, type SplitButtonProps, type SplitButtonPurpose, type SplitButtonSecondaryActionsProps, StarFilledIcon, StarHalfFilledIcon, StarIcon, type StaticTypographyType, StickyNoteIcon, StylelessButton, type StylelessButtonProps, StylelessList, type StylelessListProps, StylelessOList, type StylelessOListProps, SunIcon, SupportIcon, type SvgIcon, type SvgProps, SyncIcon, TG_HEADING_TYPES, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, type TabSize, Table, Body as TableBody, type TableBodyProps, Cell as TableCell, type TableCellLayout, type TableCellProps, type TableCellType, Foot as TableFoot, type TableFootProps, Head as TableHead, type TableHeadProps, type TableProps, Row as TableRow, type TableRowProps, type TableRowType, type TableSize, SortCell as TableSortCell, type TableSortCellProps, TableWrapper, Tabs, type TabsProps, Tag, type TagAppearance, type TagProps, type TagPurpose, type TextAffixProps, TextArea, type TextAreaProps, TextInput, type TextInputProps, TextOverflowEllipsisInner, TextOverflowEllipsisWrapper, ThumbDownFilledIcon, ThumbDownIcon, ThumbUpFilledIcon, ThumbUpIcon, TimeIcon, TimePicker, type TimePickerProps, TingrettIcon, TipIcon, Toggle, ToggleBar, type ToggleBarProps, type ToggleBarSize, type ToggleBarValue, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, type ToggleProps, ToggleRadio, type ToggleRadioProps, type ToggleSize, Tooltip, type TooltipProps, TrashIcon, TrendingDownIcon, TrendingUpIcon, Typography, type TypographyAnchorType, type TypographyBodyLongType, type TypographyBodyShortType, type TypographyBodyType, type TypographyComponentProps, type TypographyHeadingType, type TypographyLabelType, type TypographyLeadType, type TypographyProps, type TypographyType, UndoIcon, UnfoldLessIcon, UnfoldMoreIcon, UploadIcon, type UploadInfo, type UploadStatus, type UseAccordionBodyProps, type UseAccordionHeaderProps, type UseControllableGroupStateProps, type UseControllableStateProps, type UseFloatPositionOptions, VStack, type VStackProps, VisibilityOffIcon, VisibilityOnIcon, VisuallyHidden, type VisuallyHiddenProps, WarningIcon, WebexIcon, type WeightedSearchData, type WithRequiredIf, XIcon, ZoomInIcon, ZoomOutIcon, calendarDateToNativeDate, cn, createPurposes, createSelectOptions, createSizes, dateValueToNativeDate, focusVisible, focusVisibleInset, focusVisibleTransitionValue, getBaseHTMLProps, getColorCn, getElementType, getTypographyCn, handleElementWithBackdropMount, handleElementWithBackdropUnmount, hideInput, index as icons, inheritLinkStyling, inlineElements, isAnchorTypographyProps, isBorderColor, isBorderRadius, isCaption, isElevation, isHeading, isInlineElement, isKeyboardEvent, isLegend, isPaperBackground, nativeDateToCalendarDate, nativeDateToDateValue, nativeDateToTime, normalizeButton, outlineInset, outlineOffset, removeButtonStyling, removeListStyling, renderInputMessage, scrollbarStyling, useAccordion, useAccordionContext, useCallbackRef, useCombinedRef, useControllableGroupState, useControllableState, useFloatPosition, useFocusTrap, useIsMounted, useMountTransition, useOnClickOutside, useOnKeyDown, useReturnFocusOnBlur, useRoveFocus, useScreenSize, useTheme, useWindowResize };