@norges-domstoler/dds-components 0.0.0-dev-20250715084850 → 0.0.0-dev-20250722071819
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 +259 -89
- package/dist/index.d.ts +259 -89
- package/dist/index.js +160 -158
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +138 -139
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { ComponentPropsWithRef, HTMLAttributes, Ref, ElementType, ComponentPropsWithoutRef, CSSProperties, ReactNode, ComponentProps, AnchorHTMLAttributes, SVGAttributes, JSX, LabelHTMLAttributes, RefCallback, RefObject, KeyboardEvent as KeyboardEvent$1,
|
|
3
|
+
import { ComponentPropsWithRef, HTMLAttributes, Ref, ElementType, ComponentPropsWithoutRef, CSSProperties, ReactNode, ComponentProps, AnchorHTMLAttributes, SVGAttributes, JSX, LabelHTMLAttributes, DependencyList, RefCallback, Dispatch, SetStateAction, ChangeEvent, RefObject, KeyboardEvent as KeyboardEvent$1, ButtonHTMLAttributes, AriaRole, InputHTMLAttributes, FocusEvent, MouseEventHandler, ForwardedRef, ForwardRefExoticComponent, MouseEvent as MouseEvent$1, ReactElement } from 'react';
|
|
4
4
|
import * as CSS from 'csstype';
|
|
5
5
|
import { Property, StandardProperties } from 'csstype';
|
|
6
6
|
import { Strategy, UseFloatingReturn, Placement as Placement$1 } from '@floating-ui/react-dom';
|
|
@@ -529,25 +529,106 @@ declare function getDefaultText(value?: string | number | ReadonlyArray<string>,
|
|
|
529
529
|
declare function getInputWidth(width?: ResponsiveProps['width'], defaultW?: ResponsiveProps['width'] | false | null): ResponsiveProps['width'];
|
|
530
530
|
|
|
531
531
|
/**
|
|
532
|
-
*
|
|
533
|
-
*
|
|
532
|
+
* Hook som returnerer en callback-funksjon som refererer til den nyeste versjonen av den opprinnelige funksjonen.
|
|
533
|
+
* Nyttig når du trenger en stabil referanse (f.eks. i event listeners), men fortsatt ønsker at den skal bruke den nyeste logikken.
|
|
534
|
+
*
|
|
535
|
+
* @template T - Typen til callback-funksjonen.
|
|
536
|
+
* @param {T | undefined} callback - Funksjonen som skal kalles.
|
|
537
|
+
* @param {DependencyList} [deps=[]] - Avhengigheter som styrer når den returnerte funksjonen skal oppdateres.
|
|
538
|
+
* @returns {T} En memorisert funksjon som peker til den nyeste versjonen av `callback`.
|
|
539
|
+
* @example
|
|
540
|
+
* ```tsx
|
|
541
|
+
* function MyComponent() {
|
|
542
|
+
* const [count, setCount] = useState(0);
|
|
543
|
+
*
|
|
544
|
+
* const handleClick = useCallbackRef(() => {
|
|
545
|
+
* console.log('Klikk med count:', count);
|
|
546
|
+
* }, [count]);
|
|
547
|
+
*
|
|
548
|
+
* useEffect(() => {
|
|
549
|
+
* window.addEventListener('click', handleClick);
|
|
550
|
+
* return () => window.removeEventListener('click', handleClick);
|
|
551
|
+
* }, [handleClick]);
|
|
552
|
+
*
|
|
553
|
+
* return <button onClick={() => setCount(c => c + 1)}>Øk</button>;
|
|
554
|
+
* }
|
|
534
555
|
* ```
|
|
535
|
-
|
|
556
|
+
|
|
557
|
+
*/
|
|
558
|
+
declare function useCallbackRef<T extends (...args: Array<never>) => unknown>(callback: T | undefined, deps?: DependencyList): T;
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Kombinerer refs for et element.
|
|
562
|
+
*
|
|
563
|
+
* @template T elementet som refereres til.
|
|
564
|
+
* @param {Array<Ref<T> | undefined>} refs array med refs.
|
|
565
|
+
* @returns {RefCallback<T>} callback med kombinerte refs.
|
|
566
|
+
* @example
|
|
567
|
+
* ```tsx
|
|
568
|
+
* function MyComponent(ref) {
|
|
536
569
|
*
|
|
537
570
|
* const itemRef = useRef<HTMLDivElement>(null);
|
|
538
571
|
* const combinedRef = useCombinedRef(ref, itemRef);
|
|
539
572
|
*
|
|
540
|
-
* return <div ref={combinedRef}
|
|
573
|
+
* return <div ref={combinedRef}>innhold</div>
|
|
541
574
|
* });
|
|
542
575
|
* ```
|
|
543
|
-
* @param refs array med refs.
|
|
544
|
-
* @template T elementet som refereres til.
|
|
545
|
-
* @returns callback med kombinerte refs.
|
|
546
|
-
*
|
|
547
|
-
* {@link useCombinedRef}
|
|
548
576
|
*/
|
|
549
577
|
declare function useCombinedRef<T>(...refs: Array<Ref<T> | undefined>): RefCallback<T>;
|
|
550
578
|
|
|
579
|
+
interface UseControllableStateProps<T> {
|
|
580
|
+
/**Verdi. */
|
|
581
|
+
value?: T;
|
|
582
|
+
/**Default verdi. */
|
|
583
|
+
defaultValue?: T | (() => T);
|
|
584
|
+
/** `onChange` funksjon. */
|
|
585
|
+
onChange?: (value: T) => void;
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* The `useControllableState` hook returns the state and function that updates the state, just like React.useState does.
|
|
589
|
+
*/
|
|
590
|
+
/**
|
|
591
|
+
* Håndterer bruk av state slik at den kan bli enten kontrollert eller ukontrollert ut av boksen.
|
|
592
|
+
* @template T typen til verdien.
|
|
593
|
+
* @param {{
|
|
594
|
+
* value?: T;
|
|
595
|
+
* defaultValue?: T | (() => T);
|
|
596
|
+
* onChange?: (value: T) => void;
|
|
597
|
+
* }} props verdi, default verdi ved ukontrollert state og funksjon til å kotrnollere `value`.
|
|
598
|
+
* @returns {[T, Dispatch<SetStateAction<T>>]} state og funksjon til å kontrollere den.
|
|
599
|
+
* @example
|
|
600
|
+
* ```tsx
|
|
601
|
+
* const MyComponent = ({
|
|
602
|
+
* onChange,
|
|
603
|
+
* checked: checkedProp,
|
|
604
|
+
* defaultChecked
|
|
605
|
+
* }) => {
|
|
606
|
+
* const [checked, setChecked] = useControllableState({
|
|
607
|
+
* value: checkedProp,
|
|
608
|
+
* defaultValue: defaultChecked ?? false,
|
|
609
|
+
* onChange,
|
|
610
|
+
* });
|
|
611
|
+
* return (
|
|
612
|
+
* <input
|
|
613
|
+
* checked={checked}
|
|
614
|
+
* onChange={e => setChecked(e.target.checked)}
|
|
615
|
+
* type="checkbox"
|
|
616
|
+
* />
|
|
617
|
+
* ) };
|
|
618
|
+
* ```
|
|
619
|
+
*/
|
|
620
|
+
declare function useControllableState<T>(props: UseControllableStateProps<T>): [T, Dispatch<SetStateAction<T>>];
|
|
621
|
+
/**
|
|
622
|
+
* The `useControllableGroupState` hook returns the group value and handleChange function to control it.
|
|
623
|
+
*/
|
|
624
|
+
interface UseControllableGroupStateProps<T> extends Pick<UseControllableStateProps<T>, 'defaultValue' | 'value'> {
|
|
625
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>, value: T) => void;
|
|
626
|
+
}
|
|
627
|
+
declare function useControllableGroupState<T>(props: UseControllableGroupStateProps<T>): {
|
|
628
|
+
groupValue: T | undefined;
|
|
629
|
+
handleChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
630
|
+
};
|
|
631
|
+
|
|
551
632
|
type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
552
633
|
interface UseFloatPositionOptions {
|
|
553
634
|
/**
|
|
@@ -587,31 +668,103 @@ interface UseFloatPosition {
|
|
|
587
668
|
} | undefined;
|
|
588
669
|
};
|
|
589
670
|
}
|
|
671
|
+
/**
|
|
672
|
+
* Håndterer posisjonering av et element i forhold til et annet element i DOM.
|
|
673
|
+
* @param {HTMLElement | null} arrowRef pil-elementet.
|
|
674
|
+
* @param {{AnimationFrame: boolean, offset: number, placement: Placement}} options alternativer for float.
|
|
675
|
+
* @returns {{
|
|
676
|
+
* refs: import('@floating-ui/react-dom').UseFloatingReturn['refs'],
|
|
677
|
+
* styles: {
|
|
678
|
+
* floating: import('@floating-ui/react-dom').FloatingStyles,
|
|
679
|
+
* arrow:
|
|
680
|
+
* undefined | {
|
|
681
|
+
* [x: string]: string | number;
|
|
682
|
+
* position: Strategy;
|
|
683
|
+
* top: string | number;
|
|
684
|
+
* left: string | number;
|
|
685
|
+
* transform: string;
|
|
686
|
+
* }
|
|
687
|
+
* }
|
|
688
|
+
* }} Objekt med refs og styling for floating UI.
|
|
689
|
+
* @example
|
|
690
|
+
* ```tsx
|
|
691
|
+
* function MyComponent() {
|
|
692
|
+
*
|
|
693
|
+
* // Hvis du trenger en pil
|
|
694
|
+
* const [arrowElement, setArrowElement] = useState<HTMLElement | null>(null);
|
|
695
|
+
*
|
|
696
|
+
* const { refs, styles: positionStyles } = useFloatPosition(arrowElement, {
|
|
697
|
+
* placement: 'right',
|
|
698
|
+
* offset: 2,
|
|
699
|
+
* });
|
|
700
|
+
*
|
|
701
|
+
* return (
|
|
702
|
+
* <>
|
|
703
|
+
* <button ref={refs.setReference}>Anchor</button>
|
|
704
|
+
* <div
|
|
705
|
+
* ref={refs.setFloating}
|
|
706
|
+
* style={positionStyles.floating}
|
|
707
|
+
* >
|
|
708
|
+
* <div ref={setArrowElement} style={positionStyles.arrow}>
|
|
709
|
+
* // din pil, f.eks. svg
|
|
710
|
+
* </div>
|
|
711
|
+
* Innhold
|
|
712
|
+
* </div>
|
|
713
|
+
* </>
|
|
714
|
+
* };
|
|
715
|
+
* ```
|
|
716
|
+
*/
|
|
590
717
|
declare const useFloatPosition: (arrowRef: HTMLElement | null, options?: UseFloatPositionOptions) => UseFloatPosition;
|
|
591
718
|
|
|
592
719
|
/**
|
|
593
|
-
* Fanger fokus i en loop inni et element.
|
|
594
|
-
*
|
|
595
|
-
*
|
|
720
|
+
* Fanger fokus i en loop inni et element.
|
|
721
|
+
* @template {HTMLElement} T typen til container-elementet som fanger fokus.
|
|
722
|
+
* @param {boolean} active om focus skal fanges, f.eks. når en modal åpnes.
|
|
723
|
+
* @param {RefObject<HTMLElement | null> | undefined} initialFocusRef `ref` til elementet som skal motta focus når focus trap er aktiv.
|
|
724
|
+
* @returns {RefObject<T | null>} `ref` til elementet som fanger fokus.
|
|
725
|
+
* @example
|
|
726
|
+
* ```tsx
|
|
727
|
+
* function MyComponent() {
|
|
596
728
|
*
|
|
597
|
-
* const
|
|
729
|
+
* const [isOpen, setOpen] = useState(false);
|
|
730
|
+
* const componentRef = useFocusTrap<HTMLDivElement>(isOpen);
|
|
598
731
|
*
|
|
599
|
-
* return
|
|
732
|
+
* return isOpen ? <div ref={componentRef}><button>click</button></div> : null;
|
|
600
733
|
*
|
|
601
734
|
* }
|
|
602
735
|
* ```
|
|
603
|
-
* @param active om focus skal fanges, f.eks. når en modal åpnes.
|
|
604
|
-
* @param initialFocusRef Ref som skal motta focus når focus trap er aktiv.
|
|
605
|
-
* @returns ref til elementet som fanger fokus.
|
|
606
736
|
*/
|
|
607
737
|
declare function useFocusTrap<T extends HTMLElement>(active: boolean, initialFocusRef?: RefObject<HTMLElement | null> | undefined): RefObject<T | null>;
|
|
608
738
|
|
|
609
|
-
|
|
739
|
+
/**
|
|
740
|
+
* Sjekker om komponenten er mounted i DOM.
|
|
741
|
+
*
|
|
742
|
+
* @returns {() => boolean} om komponenten er mounted.
|
|
743
|
+
* @example
|
|
744
|
+
* ```tsx
|
|
745
|
+
* function MyComponent() {
|
|
746
|
+
*
|
|
747
|
+
* const isMounted = useIsMounted();
|
|
748
|
+
*
|
|
749
|
+
* useEffect(() => {
|
|
750
|
+
* if(isMounted()) {
|
|
751
|
+
* // logikk når mounted
|
|
752
|
+
* }
|
|
753
|
+
* }, [isMounted]);
|
|
754
|
+
*
|
|
755
|
+
* });
|
|
756
|
+
* ```
|
|
757
|
+
*
|
|
758
|
+
*/
|
|
759
|
+
declare const useIsMounted: () => (() => boolean);
|
|
610
760
|
|
|
611
761
|
/**
|
|
612
762
|
* Tillater effekter og animasjoner å bli gjennomført like etter et element blir lagt til eller like før det blir fjernet fra DOM.
|
|
613
|
-
*
|
|
614
|
-
*
|
|
763
|
+
* @param {boolean} isMounted om elementet er mounted.
|
|
764
|
+
* @param {number} unmountDelay hvor lenge transition skal vare før unmount.
|
|
765
|
+
* @returns {boolean} om den har trasisjonert inn.
|
|
766
|
+
* @example
|
|
767
|
+
* ```css
|
|
615
768
|
* // CSS
|
|
616
769
|
* .component {
|
|
617
770
|
* transition: opacity 0.2s;
|
|
@@ -621,113 +774,126 @@ declare const useIsMounted: () => () => boolean;
|
|
|
621
774
|
* .transitionedIn.mounted {
|
|
622
775
|
* opacity: 1;
|
|
623
776
|
* }
|
|
777
|
+
* ```
|
|
778
|
+
* ```jsx
|
|
779
|
+
* // JSX
|
|
780
|
+
* function MyComponent(isMounted) {
|
|
624
781
|
*
|
|
625
|
-
* const
|
|
626
|
-
*
|
|
627
|
-
* const hasTransitionedIn = useMountTransition(props.isMounted, 500);
|
|
628
|
-
*
|
|
629
|
-
* return props.isMounted || hasTransitionedIn ? (
|
|
630
|
-
* <div
|
|
631
|
-
* className={`component ${hasTransitionedIn && 'transitionedIn'} ${props.isMounted && 'mounted'}`}
|
|
632
|
-
* >
|
|
633
|
-
* innhold
|
|
634
|
-
* </div>)
|
|
635
|
-
* : null;
|
|
782
|
+
* const hasTransitionedIn = useMountTransition(isMounted, 500);
|
|
636
783
|
*
|
|
637
|
-
*
|
|
784
|
+
* return isMounted || hasTransitionedIn ? (
|
|
785
|
+
* <div
|
|
786
|
+
* className={`component ${hasTransitionedIn && 'transitionedIn'} ${isMounted && 'mounted'}`}
|
|
787
|
+
* >
|
|
788
|
+
* innhold
|
|
789
|
+
* </div>)
|
|
790
|
+
* : null;
|
|
791
|
+
* };
|
|
638
792
|
* ```
|
|
639
|
-
* @param isMounted om elementet er mounted.
|
|
640
|
-
* @param unmountDelay hvor lenge transition skal vare før unmount.
|
|
641
|
-
* @returns om transition er ferdig.
|
|
642
793
|
*/
|
|
643
794
|
declare const useMountTransition: (isMounted: boolean, unmountDelay: number) => boolean;
|
|
644
795
|
|
|
645
796
|
/**
|
|
646
|
-
* Kjører logikk når brukeren klikker utenfor
|
|
647
|
-
*
|
|
648
|
-
*
|
|
649
|
-
*
|
|
650
|
-
*
|
|
651
|
-
*
|
|
797
|
+
* Kjører logikk når brukeren klikker utenfor espesifisert(e) element(er).
|
|
798
|
+
* @param {HTMLElement | null | undefined | Array<HTMLElement | null | undefined>} element HTML element(er) som overvåkes for klikk utenfor.
|
|
799
|
+
* @param {(event: MouseEvent | TouchEvent) => void} handler funksjonen som kjøres ved klikk utenfor.
|
|
800
|
+
* @returns {void}
|
|
801
|
+
* @example
|
|
802
|
+
* ```tsx
|
|
803
|
+
* * function MyComponent() {
|
|
804
|
+
* const [isOpen, setOpen] = useState(true);
|
|
805
|
+
* const ref = useRef<HTMLDivElement>(null);
|
|
806
|
+
* useOnClickOutside(ref.current, () => setOpen(false));
|
|
652
807
|
*
|
|
653
|
-
*
|
|
808
|
+
* return isOpen && <div ref={ref}>innhold</div>
|
|
809
|
+
* };
|
|
654
810
|
* ```
|
|
655
|
-
* @param element HTML elementet man klikker utenfor.
|
|
656
|
-
* @param handler funksjonen som kjøres ved klikk utenfor.
|
|
657
811
|
*/
|
|
658
812
|
declare function useOnClickOutside(element: HTMLElement | null | undefined | Array<HTMLElement | null | undefined>, handler: (event: MouseEvent | TouchEvent) => void): void;
|
|
659
813
|
|
|
660
814
|
/**
|
|
661
|
-
* Kjører logikk når
|
|
662
|
-
*
|
|
663
|
-
*
|
|
664
|
-
*
|
|
665
|
-
*
|
|
666
|
-
*
|
|
815
|
+
* Kjører logikk når spesifisert(e) tast(er) blir trykt ned.
|
|
816
|
+
* @param {string} key tasten som trykkes.
|
|
817
|
+
* @param {(event: KeyboardEvent) => void} handler funksjonen som skal kjøres.
|
|
818
|
+
* @returns {void}
|
|
819
|
+
* @example
|
|
820
|
+
* ```tsx
|
|
821
|
+
* function MyComponent() {
|
|
822
|
+
* const [isOpen, setOpen] = useState(true);
|
|
823
|
+
* useOnKeyDown('Escape', () => setOpen(false));
|
|
667
824
|
*
|
|
668
|
-
*
|
|
825
|
+
* return isOpen ? <div>innhold</div> : null;
|
|
826
|
+
* }
|
|
669
827
|
* ```
|
|
670
|
-
* @param key tasten som trykkes.
|
|
671
|
-
* @param handler funksjonen som skal kjøres.
|
|
672
828
|
*/
|
|
673
829
|
declare const useOnKeyDown: (key: string | Array<string>, handler: (event: KeyboardEvent) => void) => void;
|
|
674
830
|
|
|
675
831
|
/**
|
|
676
|
-
* Returnerer fokus til et element når første eller siste barn i en container mister fokus ved tastaturnavigasjon.
|
|
677
|
-
*
|
|
678
|
-
*
|
|
832
|
+
* Returnerer fokus til et element når første eller siste barn i en container mister fokus ved tastaturnavigasjon.
|
|
833
|
+
* @template {HTMLElement} T typen til container som skal returnere fous.
|
|
834
|
+
* @param {boolean} active om container skal få fokus, f.eks. når en modal åpnes.
|
|
835
|
+
* @param {() => void} onBlur ekstra logikk når fokus forlater container.
|
|
836
|
+
* @param {HTMLElement | null | undefined} triggerElement elementet som skal få fokus når fokus forlater container.
|
|
837
|
+
* @returns {RefObject<T | null>} ref til container som skal returnere fokus.
|
|
838
|
+
* @example
|
|
839
|
+
* ```tsx
|
|
840
|
+
* const MyComponent() {
|
|
679
841
|
*
|
|
680
|
-
* const [isOpen, setOpen] = useState(
|
|
681
|
-
* const close = () => setOpen(false);
|
|
842
|
+
* const [isOpen, setOpen] = useState(false);
|
|
682
843
|
* const triggerRef = useRef<HTMLButtonElement>(null);
|
|
683
844
|
* const containerRef = useReturnFocusOnBlur<HTMLDivElement>(
|
|
684
845
|
* isOpen,
|
|
846
|
+
* () => setOpen(false),
|
|
685
847
|
* triggerRef.current,
|
|
686
|
-
* () => close()
|
|
687
848
|
* );
|
|
688
849
|
*
|
|
689
850
|
* return (
|
|
690
851
|
* <div>
|
|
691
|
-
* <button
|
|
692
|
-
*
|
|
693
|
-
*
|
|
694
|
-
*
|
|
852
|
+
* <button
|
|
853
|
+
* ref={triggerRef}
|
|
854
|
+
* onClick={() => setOpen(true)}
|
|
855
|
+
* >
|
|
856
|
+
* Åpne popover
|
|
857
|
+
* </button>
|
|
858
|
+
* {isOpen &&
|
|
859
|
+
* <div ref={containerRef}>
|
|
860
|
+
* <button>1</button>
|
|
861
|
+
* <button>2</button>
|
|
862
|
+
* </div>
|
|
863
|
+
* }
|
|
695
864
|
* </div>
|
|
696
865
|
* )
|
|
697
866
|
* }
|
|
698
867
|
* ```
|
|
699
|
-
* @param active om container skal få fokus, f.eks. når en modal åpnes.
|
|
700
|
-
* @param triggerElement elementet som skal få fokus når fokus forlater container.
|
|
701
|
-
* @param onBlur ekstra logikk når fokus forlater container.
|
|
702
|
-
* @returns ref til container som får fokus.
|
|
703
868
|
*/
|
|
704
869
|
declare function useReturnFocusOnBlur<T extends HTMLElement>(active: boolean, onBlur: () => void, triggerElement?: HTMLElement | null): RefObject<T | null>;
|
|
705
870
|
|
|
706
871
|
declare const isKeyboardEvent: (e: Event | KeyboardEvent$1<Element>) => e is KeyboardEvent$1<Element>;
|
|
707
872
|
/**
|
|
708
|
-
* Bytter fokus mellom elementer i en gruppe med piltaster og ikke Tab
|
|
709
|
-
*
|
|
873
|
+
* Bytter fokus mellom elementer i en gruppe med piltaster og ikke `Tab`, samt looper fokus i gruppen.
|
|
874
|
+
* @param {number} size antall elementer i gruppen.
|
|
875
|
+
* @param {boolean} active om fokus skal kontrolleres av hooken. Når status blir inaktiv vil fokusrekkefølge nullstilles.
|
|
876
|
+
* @param {'row' | 'column'} direction retning elementene blas i.
|
|
877
|
+
* @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.
|
|
878
|
+
* @returns {[focusedIndex: number, setFocus: Dispatch<SetStateAction<number>>]} hook par: indeksen til fokuserte elemenentet og funksjonen som håndterer fokus.
|
|
879
|
+
* @example
|
|
880
|
+
* ```tsx
|
|
710
881
|
* import elements from './elements';
|
|
711
882
|
* import RoveItem from './RoveItem';
|
|
712
883
|
*
|
|
713
|
-
*
|
|
714
|
-
* const [
|
|
884
|
+
* function MyComponent() {
|
|
885
|
+
* const [focusedIndex, setFocus] = useRoveFocus(elements.length);
|
|
715
886
|
*
|
|
716
887
|
* return (
|
|
717
888
|
* <ul>
|
|
718
889
|
* {elements.map((element, index) => (
|
|
719
890
|
* <li key={element}>
|
|
720
|
-
* <RoveItem index={index}
|
|
891
|
+
* <RoveItem index={index} shouldFocus={focusedIndex === index} setFocus={setFocus}>{element.name}</RoveItem>
|
|
721
892
|
* </li>
|
|
722
893
|
* ))}
|
|
723
894
|
* </ul>)
|
|
724
895
|
* }
|
|
725
896
|
* ```
|
|
726
|
-
* @param size antall elementer i gruppen.
|
|
727
|
-
* @param active om fokus skal kontrolleres av hooken. Når status blir inaktiv vil fokusrekkefølge nullstilles.
|
|
728
|
-
* @param direction retning elementene blas i.
|
|
729
|
-
* @param 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.
|
|
730
|
-
* @returns hook par: indeksen til fokuserte elemenentet og funksjonen som håndterer fokus.
|
|
731
897
|
*/
|
|
732
898
|
declare function useRoveFocus(size?: number, active?: boolean, direction?: Direction$1, noWrap?: boolean): [number, Dispatch<SetStateAction<number>>];
|
|
733
899
|
|
|
@@ -739,29 +905,33 @@ declare enum ScreenSize {
|
|
|
739
905
|
XLarge = 4
|
|
740
906
|
}
|
|
741
907
|
/**
|
|
742
|
-
* Sjekker skjermstørrelsen basert på brekkpunkter definerte i designsystemet.
|
|
743
|
-
*
|
|
744
|
-
*
|
|
908
|
+
* Sjekker skjermstørrelsen basert på brekkpunkter definerte i designsystemet.
|
|
909
|
+
* @returns den aktuelle skjermstørrelsen basert på {@link ScreenSize}.
|
|
910
|
+
* @example
|
|
911
|
+
* ```tsx
|
|
912
|
+
* function MyComponent() {
|
|
745
913
|
* const screenSize = useScreenSize();
|
|
746
914
|
* const isSmallScreen = screenSize === ScreenSize.Small;
|
|
747
915
|
*
|
|
748
916
|
* return <div className={isSmallScreen && 'smallDiv'} >innhold</div>
|
|
749
917
|
* }
|
|
750
918
|
* ```
|
|
751
|
-
* @returns den aktuelle skjermstørrelsen basert på {@link ScreenSize}.
|
|
752
919
|
*/
|
|
753
920
|
declare const useScreenSize: () => ScreenSize;
|
|
754
921
|
|
|
755
922
|
/**
|
|
756
923
|
* Kjører logikk når vindusstørrelsen endrer seg.
|
|
757
|
-
*
|
|
758
|
-
*
|
|
759
|
-
*
|
|
760
|
-
*
|
|
924
|
+
* @param {() => void} handler funksjonen som skal kjøres.
|
|
925
|
+
* @returns {void}
|
|
926
|
+
* @example
|
|
927
|
+
* ```tsx
|
|
928
|
+
* function MyComponent() {
|
|
929
|
+
* const [width, setWidth] = useState<number>(window.innerWidth);
|
|
930
|
+
* useResize(() => setWidth(window.innerWidth));
|
|
761
931
|
*
|
|
762
|
-
*
|
|
932
|
+
* return <div>vindusstørrelse: {width}px</div>;
|
|
933
|
+
* }
|
|
763
934
|
* ```
|
|
764
|
-
* @param handler funksjonen som skal kjøres.
|
|
765
935
|
*/
|
|
766
936
|
declare const useWindowResize: (handler: () => void) => void;
|
|
767
937
|
|
|
@@ -4047,4 +4217,4 @@ declare const VisuallyHidden: {
|
|
|
4047
4217
|
displayName: string;
|
|
4048
4218
|
};
|
|
4049
4219
|
|
|
4050
|
-
export { Accordion, AccordionBody, type AccordionBodyProps, AccordionHeader, type AccordionHeaderProps, type AccordionProps, AddTabButton, type AddTabButtonProps, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDown, 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, BlockIcon, BookIcon, type BorderColor, type BorderRadius, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, BuildCircledIcon, BuildIcon, 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, CharCounter, ChatIcon, CheckCircledIcon, CheckIcon, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxPickedHTMLAttributes, type CheckboxProps, ChecklistIcon, ChevronDownIcon, ChevronFirstIcon, ChevronLargeLeftIcon, ChevronLargeRightIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipGroup, type ChipGroupProps, type ChipProps, CloseCircledIcon, CloseIcon, CloseSmallIcon, CloudIcon, CollapseIcon, CollapsibleTable, type CollapsibleTableProps, CollapsibleRow as CollapsibleTableRow, type ColumnsOccupied, CommentIcon, type CommonInputProps, Contrast, type ContrastProps, CookieBanner, CookieBannerCheckbox, type CookieBannerCheckboxProps, type CookieBannerProps, CopyIcon, CourtIcon, 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, ELEVATIONS, EditIcon, ElementAs, type Elevation, EmptyContent, type EmptyContentProps, ErrorIcon, ExclaimIcon, ExpandIcon, type ExtractStrict, FacebookIcon, FamilyIcon, FavStar, type FavStarProps, Feedback, FeedbackIcon, type FeedbackProps, Fieldset, FieldsetGroup, type FieldsetGroupProps, type FieldsetProps, FileAddIcon, FileIcon, type FileList, FileShieldedIcon, FileTextIcon, FileUploader, type FileUploaderAccept, type FileUploaderProps, FilterIcon, FilterListIcon, FilterListOffIcon, FilterOffIcon, FindInPageIcon, FlickrIcon, type FloatingStyles, 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, FullscreenExitIcon, FullscreenIcon, GavelIcon, GlobalMessage, type GlobalMessageProps, type GlobalMessagePurpose, Grid, GridChild, type GridChildProps, type GridProps, GuardianIcon, HStack, type HStackProps, Heading, type HeadingLevel, type HeadingProps, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassBottomIcon, HourglassDisabledIcon, HourglassEmptyIcon, HourglassFullIcon, HourglassTopIcon, 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, Input, InputMessage, type InputMessageProps, type InputMessageType, type InputProps, type InputSize, type InputTypographyTypes, InstagramIcon, InternalHeader, type InternalHeaderProps, JordskifterettIcon, JordskiftesakIcon, KeyIcon, Label, type LabelProps, LagmannsrettIcon, LanguageIcon, type Layout, Legend, type LegendProps, LibraryAddIcon, 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, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MenuIcon, MinusCirledIcon, MinusIcon, Modal, ModalActions, type ModalActionsProps, ModalBody, type ModalBodyProps, type ModalProps, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, NativeSelectPlaceholder, type NativeSelectPlaceholderProps, type NativeSelectProps, NotarialIcon, NotificationsIcon, NotificationsOffIcon, type Nullable, OnlineMeetingIcon, OpenExternalIcon, type OtherTypographyType, OverflowMenu, OverflowMenuButton, type OverflowMenuButtonProps, OverflowMenuDivider, OverflowMenuGroup, type OverflowMenuGroupProps, OverflowMenuLink, type OverflowMenuLinkProps, OverflowMenuList, OverflowMenuListHeader, type OverflowMenuListItemBaseProps, type OverflowMenuProps, OverflowMenuSpan, type OverflowMenuSpanProps, Pagination, type PaginationOption, type PaginationProps, Paper, type PaperBackground, type PaperBorder, type PaperBorderRadius, type PaperElevation, 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, PropertyIcon, PublishIcon, QuestionAnswerIcon, RadioButton, RadioButtonGroup, type RadioButtonGroupProps, type RadioButtonProps, type RadioValue, type Rating, ReceiptIcon, RedoIcon, RefreshIcon, ReplayIcon, type ResponsiveProps, type ResponsiveStackProps, ScreenSize, Search, SearchAutocompleteWrapper, type SearchAutocompleteWrapperProps, type SearchButtonProps, type SearchData, SearchIcon, type SearchProps, type SearchSize, SearchSuggestions, type SearchSuggestionsProps, 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, StarHalfFilled, StarIcon, StatefulInput, type StatefulInputProps, type StaticTypographyType, StylelessButton, type StylelessButtonProps, StylelessList, type StylelessListProps, StylelessOList, type StylelessOListProps, type SvgIcon, type SvgProps, SvgWrapper, SyncIcon, 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, ThemeContext, ThemeProvider, type ThemeProviderProps, 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 TypographyBodyType, type TypographyComponentProps, type TypographyHeadingType, type TypographyLabelType, type TypographyLeadType, type TypographyProps, type TypographyType, UndoIcon, UnfoldLessIcon, UnfoldMoreIcon, UploadIcon, type UseFloatPositionOptions, VStack, type VStackProps, VisibilityOffIcon, VisibilityOnIcon, VisuallyHidden, type VisuallyHiddenProps, WarningIcon, WebexIcon, type WeightedSearchData, type WidthProps, type WithRequiredIf, XIcon, ZoomInIcon, ZoomOutIcon, calendarDateToNativeDate, cn, countryOptions, createSelectOptions, dateValueToNativeDate, defaultTypographyType, defaultTypographyTypeClassName, focusVisible, focusVisibleInset, focusVisibleTransitionValue, getBaseHTMLProps, getColorCn, getDefaultText, getElementType, getInputWidth, 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, renderCharCounter, renderInputMessage, scrollbarStyling, typographyTypes, useCombinedRef, useFloatPosition, useFocusTrap, useIsMounted, useMountTransition, useOnClickOutside, useOnKeyDown, useReturnFocusOnBlur, useRoveFocus, useScreenSize, useTheme, useWindowResize, visibilityTransition };
|
|
4220
|
+
export { Accordion, AccordionBody, type AccordionBodyProps, AccordionHeader, type AccordionHeaderProps, type AccordionProps, AddTabButton, type AddTabButtonProps, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDown, 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, BlockIcon, BookIcon, type BorderColor, type BorderRadius, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, BuildCircledIcon, BuildIcon, 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, CharCounter, ChatIcon, CheckCircledIcon, CheckIcon, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxPickedHTMLAttributes, type CheckboxProps, ChecklistIcon, ChevronDownIcon, ChevronFirstIcon, ChevronLargeLeftIcon, ChevronLargeRightIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipGroup, type ChipGroupProps, type ChipProps, CloseCircledIcon, CloseIcon, CloseSmallIcon, CloudIcon, CollapseIcon, CollapsibleTable, type CollapsibleTableProps, CollapsibleRow as CollapsibleTableRow, type ColumnsOccupied, CommentIcon, type CommonInputProps, Contrast, type ContrastProps, CookieBanner, CookieBannerCheckbox, type CookieBannerCheckboxProps, type CookieBannerProps, CopyIcon, CourtIcon, 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, ELEVATIONS, EditIcon, ElementAs, type Elevation, EmptyContent, type EmptyContentProps, ErrorIcon, ExclaimIcon, ExpandIcon, type ExtractStrict, FacebookIcon, FamilyIcon, FavStar, type FavStarProps, Feedback, FeedbackIcon, type FeedbackProps, Fieldset, FieldsetGroup, type FieldsetGroupProps, type FieldsetProps, FileAddIcon, FileIcon, type FileList, FileShieldedIcon, FileTextIcon, FileUploader, type FileUploaderAccept, type FileUploaderProps, FilterIcon, FilterListIcon, FilterListOffIcon, FilterOffIcon, FindInPageIcon, FlickrIcon, type FloatingStyles, 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, FullscreenExitIcon, FullscreenIcon, GavelIcon, GlobalMessage, type GlobalMessageProps, type GlobalMessagePurpose, Grid, GridChild, type GridChildProps, type GridProps, GuardianIcon, HStack, type HStackProps, Heading, type HeadingLevel, type HeadingProps, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassBottomIcon, HourglassDisabledIcon, HourglassEmptyIcon, HourglassFullIcon, HourglassTopIcon, 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, Input, InputMessage, type InputMessageProps, type InputMessageType, type InputProps, type InputSize, type InputTypographyTypes, InstagramIcon, InternalHeader, type InternalHeaderProps, JordskifterettIcon, JordskiftesakIcon, KeyIcon, Label, type LabelProps, LagmannsrettIcon, LanguageIcon, type Layout, Legend, type LegendProps, LibraryAddIcon, 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, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MenuIcon, MinusCirledIcon, MinusIcon, Modal, ModalActions, type ModalActionsProps, ModalBody, type ModalBodyProps, type ModalProps, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, NativeSelectPlaceholder, type NativeSelectPlaceholderProps, type NativeSelectProps, NotarialIcon, NotificationsIcon, NotificationsOffIcon, type Nullable, OnlineMeetingIcon, OpenExternalIcon, type OtherTypographyType, OverflowMenu, OverflowMenuButton, type OverflowMenuButtonProps, OverflowMenuDivider, OverflowMenuGroup, type OverflowMenuGroupProps, OverflowMenuLink, type OverflowMenuLinkProps, OverflowMenuList, OverflowMenuListHeader, type OverflowMenuListItemBaseProps, type OverflowMenuProps, OverflowMenuSpan, type OverflowMenuSpanProps, Pagination, type PaginationOption, type PaginationProps, Paper, type PaperBackground, type PaperBorder, type PaperBorderRadius, type PaperElevation, 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, PropertyIcon, PublishIcon, QuestionAnswerIcon, RadioButton, RadioButtonGroup, type RadioButtonGroupProps, type RadioButtonProps, type RadioValue, type Rating, ReceiptIcon, RedoIcon, RefreshIcon, ReplayIcon, type ResponsiveProps, type ResponsiveStackProps, ScreenSize, Search, SearchAutocompleteWrapper, type SearchAutocompleteWrapperProps, type SearchButtonProps, type SearchData, SearchIcon, type SearchProps, type SearchSize, SearchSuggestions, type SearchSuggestionsProps, 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, StarHalfFilled, StarIcon, StatefulInput, type StatefulInputProps, type StaticTypographyType, StylelessButton, type StylelessButtonProps, StylelessList, type StylelessListProps, StylelessOList, type StylelessOListProps, type SvgIcon, type SvgProps, SvgWrapper, SyncIcon, 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, ThemeContext, ThemeProvider, type ThemeProviderProps, 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 TypographyBodyType, type TypographyComponentProps, type TypographyHeadingType, type TypographyLabelType, type TypographyLeadType, type TypographyProps, type TypographyType, UndoIcon, UnfoldLessIcon, UnfoldMoreIcon, UploadIcon, type UseControllableGroupStateProps, type UseControllableStateProps, type UseFloatPositionOptions, VStack, type VStackProps, VisibilityOffIcon, VisibilityOnIcon, VisuallyHidden, type VisuallyHiddenProps, WarningIcon, WebexIcon, type WeightedSearchData, type WidthProps, type WithRequiredIf, XIcon, ZoomInIcon, ZoomOutIcon, calendarDateToNativeDate, cn, countryOptions, createSelectOptions, dateValueToNativeDate, defaultTypographyType, defaultTypographyTypeClassName, focusVisible, focusVisibleInset, focusVisibleTransitionValue, getBaseHTMLProps, getColorCn, getDefaultText, getElementType, getInputWidth, 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, renderCharCounter, renderInputMessage, scrollbarStyling, typographyTypes, useCallbackRef, useCombinedRef, useControllableGroupState, useControllableState, useFloatPosition, useFocusTrap, useIsMounted, useMountTransition, useOnClickOutside, useOnKeyDown, useReturnFocusOnBlur, useRoveFocus, useScreenSize, useTheme, useWindowResize, visibilityTransition };
|