@norges-domstoler/dds-components 0.0.0-dev-20261007132152 → 0.0.0-dev-20261008114725

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.cts CHANGED
@@ -25578,6 +25578,8 @@ export declare const ButtonGroup: {
25578
25578
  };
25579
25579
  //#endregion
25580
25580
  //#region src/components/SelectionControl/common/SelectionControl.types.d.ts
25581
+ declare const SELECTION_CONTROL_SIZES: ["small", "medium"];
25582
+ type SelectionControlSize = (typeof SELECTION_CONTROL_SIZES)[number];
25581
25583
  interface SelectionControlCommonProps {
25582
25584
  /**Ledetekst for alternativet. */
25583
25585
  label?: string;
@@ -25589,6 +25591,10 @@ interface SelectionControlCommonProps {
25589
25591
  readOnly?: boolean;
25590
25592
  /**Barn. Brukes når komponenten skal ha unik layout eller lignende. */
25591
25593
  children?: ReactNode;
25594
+ /**Størrelsen på komponenten.
25595
+ * @default "medium"
25596
+ */
25597
+ size?: SelectionControlSize;
25592
25598
  }
25593
25599
  interface SelectionControlGroupCommonProps {
25594
25600
  /**Ledetekst for gruppen. */
@@ -25607,6 +25613,10 @@ interface SelectionControlGroupCommonProps {
25607
25613
  readOnly?: boolean;
25608
25614
  /**Meldingen som vises ved valideringsfeil. Gir error-tilstand til barna og setter `aria-describedby` for barna. */
25609
25615
  errorMessage?: string;
25616
+ /**Størrelsen på elementene i gruppen.
25617
+ * @default "medium"
25618
+ */
25619
+ size?: SelectionControlSize;
25610
25620
  }
25611
25621
  //#endregion
25612
25622
  //#region src/components/SelectionControl/Checkbox/Checkbox.types.d.ts
@@ -25619,7 +25629,7 @@ export type CheckboxProps = BaseComponentProps<HTMLInputElement, SelectionContro
25619
25629
  //#endregion
25620
25630
  //#region src/components/SelectionControl/Checkbox/Checkbox.d.ts
25621
25631
  export declare const Checkbox: {
25622
- ({ id, name, label, error, disabled, readOnly, indeterminate, "aria-describedby": ariaDescribedby, className, htmlProps, style, children, ...rest }: CheckboxProps): import("react").JSX.Element;
25632
+ ({ id, name, label, error, disabled, readOnly, indeterminate, "aria-describedby": ariaDescribedby, className, htmlProps, style, children, size, ...rest }: CheckboxProps): import("react").JSX.Element;
25623
25633
  displayName: string;
25624
25634
  };
25625
25635
  //#endregion
@@ -25737,25 +25747,98 @@ export declare const CardSelectableGroup: {
25737
25747
  displayName: string;
25738
25748
  };
25739
25749
  //#endregion
25750
+ //#region src/components/SelectionControl/RadioButton/RadioButton.d.ts
25751
+ export declare const RadioButton: {
25752
+ ({ id, name, label, disabled, readOnly, error, checked, value, children, required, onChange, "aria-describedby": ariaDescribedby, className, htmlProps, size, style, ...rest }: RadioButtonProps): import("react").JSX.Element;
25753
+ displayName: string;
25754
+ };
25755
+ //#endregion
25756
+ //#region src/components/SelectionControl/RadioButton/RadioButtonGroup.d.ts
25757
+ export type RadioButtonGroupProps<T extends string | number> = BaseComponentPropsWithChildren<HTMLDivElement, SelectionControlGroupCommonProps & {
25758
+ /** Gir alle barna `name` prop.*/
25759
+ name?: string;
25760
+ /**Funksjonen for onChange-event for barna. */
25761
+ onChange?: (event: ChangeEvent<HTMLInputElement>, value: T | undefined) => void;
25762
+ /** Gjør alle barna påkrevd ved å gi dem `required` prop. Legger en markør (*) bak ledeteksten. */
25763
+ required?: boolean;
25764
+ /**Verdi - en `<RadioButton>` med denne verdien blir valgt med controlled state. */
25765
+ value?: T | undefined;
25766
+ /**Default verdi - en `<RadioButton>` med denne verdien blir forhåndsvalgt med uncontrolled state. */
25767
+ defaultValue?: T | undefined;
25768
+ }>;
25769
+ export declare const RadioButtonGroup: {
25770
+ <T extends string | number = string>({ name, label, groupId, errorMessage, tip, disabled, readOnly, direction, value, defaultValue, children, required, onChange, size, id, className, style, htmlProps, ...rest }: RadioButtonGroupProps<T>): import("react").JSX.Element;
25771
+ displayName: string;
25772
+ };
25773
+ //#endregion
25740
25774
  //#region src/components/Chip/Chip.d.ts
25741
- export type ChipProps = BaseComponentProps<HTMLDivElement, {
25742
- /** Teksten som vises i komponenten. */
25743
- children?: string;
25744
- /** Ekstra logikk når `<Chip>` lukkes. */
25745
- onClose?: () => void;
25775
+ declare const CHIP_SIZES: ["small", "medium"];
25776
+ type ChipSize = (typeof CHIP_SIZES)[number];
25777
+ type ChipType = 'button' | 'span' | typeof RadioButton | typeof Checkbox;
25778
+ type ChipBaseProps<T extends ChipType> = PolymorphicBaseComponentProps<T, {
25779
+ /** Størrelse.
25780
+ * @default 'medium'
25781
+ */
25782
+ size?: ChipSize;
25783
+ /** Ikon. Plasseres foran barn. Erstatter markør for valgkontroller i `<ChipCheckbox>` og `<ChipRadio>`. */
25784
+ icon?: SvgIcon;
25746
25785
  }>;
25747
- export declare const Chip: {
25748
- ({ children, onClose, id, className, style, htmlProps, ...rest }: ChipProps): import("react").JSX.Element | null;
25786
+ type ChipCommonProps<T extends ChipType> = Omit<ChipBaseProps<T>, 'as'>;
25787
+ type ChipButtonProps = ChipCommonProps<'button'> & {
25788
+ /**Props for `<Badge>` som vises på knappen. */
25789
+ badgeProps?: BadgeInComponentProps;
25790
+ };
25791
+ type ChipRemovableProps = ChipCommonProps<'span'> & {
25792
+ /** Ekstra logikk når `<ChipRemovable>` lukkes. */
25793
+ onClose?: () => void;
25794
+ };
25795
+ type ChipSelectionControlProps<T extends ExtractStrict<ChipType, typeof RadioButton | typeof Checkbox>> = Omit<ChipCommonProps<T>, 'indeterminate' | 'label' | 'error' | 'readOnly'> & {
25796
+ /** Om valgkontrollen skal vises.
25797
+ * @default true
25798
+ */
25799
+ showSelectionControlIndicator?: boolean;
25800
+ };
25801
+ type ChipCheckboxProps = ChipSelectionControlProps<typeof Checkbox>;
25802
+ type ChipRadioProps = ChipSelectionControlProps<typeof RadioButton>;
25803
+ export declare const ChipButton: {
25804
+ ({ htmlProps, size, id, className, style, children, badgeProps, ...rest }: ChipButtonProps): import("react").JSX.Element;
25805
+ displayName: string;
25806
+ };
25807
+ export declare const ChipCheckbox: {
25808
+ (props: ChipCheckboxProps): import("react").JSX.Element;
25809
+ displayName: string;
25810
+ };
25811
+ export declare const ChipRadio: {
25812
+ (props: ChipRadioProps): import("react").JSX.Element;
25813
+ displayName: string;
25814
+ };
25815
+ export declare const ChipRemovable: {
25816
+ ({ htmlProps, onClose, size, id, className, style, children, ...rest }: ChipRemovableProps): import("react").JSX.Element | null;
25749
25817
  displayName: string;
25750
25818
  };
25751
25819
  //#endregion
25752
25820
  //#region src/components/Chip/ChipGroup.d.ts
25753
- export type ChipGroupProps = ComponentPropsWithRef<'ul'>;
25821
+ type ChipGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, {
25822
+ /** Ledetekst for gruppen. */
25823
+ label?: string;
25824
+ /** Custom `id` for ledetekst. Som default genereres denne for å knytte ledetekst til gruppen. */
25825
+ labelId?: string;
25826
+ } & Pick<ResponsiveProps, 'gap' | 'flexWrap'>>;
25754
25827
  export declare const ChipGroup: {
25755
- ({ children, ...rest }: ChipGroupProps): import("react").JSX.Element;
25828
+ (props: ChipGroupProps): import("react").JSX.Element;
25756
25829
  displayName: string;
25757
25830
  };
25758
25831
  //#endregion
25832
+ //#region src/components/Chip/index.d.ts
25833
+ interface ChipCompoundProps {
25834
+ Group: typeof ChipGroup;
25835
+ Button: typeof ChipButton;
25836
+ Checkbox: typeof ChipCheckbox;
25837
+ Radio: typeof ChipRadio;
25838
+ Removable: typeof ChipRemovable;
25839
+ }
25840
+ declare const Chip: ChipCompoundProps;
25841
+ //#endregion
25759
25842
  //#region src/components/CookieBanner/CookieBannerCheckbox.d.ts
25760
25843
  export type CookieBannerCheckboxProps = Omit<CheckboxProps, 'label' | 'children'> & {
25761
25844
  /**Header - kort oppsummering av den spesifikke typen informasjonskapsel. */
@@ -27082,30 +27165,6 @@ export declare const NativeSelect: ({ ref, id, children, componentSize, label, m
27082
27165
  //#region src/components/Select/utils.d.ts
27083
27166
  export declare const createSelectOptions: <TValue extends string | number>(...args: Array<TValue>) => Array<SelectOption<TValue>>;
27084
27167
  //#endregion
27085
- //#region src/components/SelectionControl/RadioButton/RadioButton.d.ts
27086
- export declare const RadioButton: {
27087
- ({ id, name, label, disabled, readOnly, error, checked, value, children, required, onChange, "aria-describedby": ariaDescribedby, className, htmlProps, style, ...rest }: RadioButtonProps): import("react").JSX.Element;
27088
- displayName: string;
27089
- };
27090
- //#endregion
27091
- //#region src/components/SelectionControl/RadioButton/RadioButtonGroup.d.ts
27092
- export type RadioButtonGroupProps<T extends string | number> = BaseComponentPropsWithChildren<HTMLDivElement, SelectionControlGroupCommonProps & {
27093
- /** Gir alle barna `name` prop.*/
27094
- name?: string;
27095
- /**Funksjonen for onChange-event for barna. */
27096
- onChange?: (event: ChangeEvent<HTMLInputElement>, value: T | undefined) => void;
27097
- /** Gjør alle barna påkrevd ved å gi dem `required` prop. Legger en markør (*) bak ledeteksten. */
27098
- required?: boolean;
27099
- /**Verdi - en `<RadioButton>` med denne verdien blir valgt med controlled state. */
27100
- value?: T | undefined;
27101
- /**Default verdi - en `<RadioButton>` med denne verdien blir forhåndsvalgt med uncontrolled state. */
27102
- defaultValue?: T | undefined;
27103
- }>;
27104
- export declare const RadioButtonGroup: {
27105
- <T extends string | number = string>({ name, label, groupId, errorMessage, tip, disabled, readOnly, direction, value, defaultValue, children, required, onChange, id, className, style, htmlProps, ...rest }: RadioButtonGroupProps<T>): import("react").JSX.Element;
27106
- displayName: string;
27107
- };
27108
- //#endregion
27109
27168
  //#region src/components/Skeleton/Skeleton.d.ts
27110
27169
  export type SkeletonProps = {
27111
27170
  /**Hvor runde hjørner skal være. Støtter dds tokens.
@@ -27392,7 +27451,7 @@ export declare const TabPanels: {
27392
27451
  //#region src/components/Tag/Tag.d.ts
27393
27452
  declare const TAG_PURPOSES: ["success", "info", "danger", "warning", "neutral"];
27394
27453
  declare const TAG_SIZES: ["small", "medium"];
27395
- declare const TAG_COLORS: readonly ["teal", "blue", "red", "green", "magenta", "olive", "gray", "brown", "deepblue"];
27454
+ declare const TAG_COLORS: readonly ["teal", "blue", "red", "green", "magenta", "purple", "olive", "gray", "brown", "deepblue"];
27396
27455
  declare const TAG_APPEARANCES: readonly ["outline", "strong", "subtle", "accent-left"];
27397
27456
  type TagPurpose = (typeof TAG_PURPOSES)[number];
27398
27457
  type TagSize = (typeof TAG_SIZES)[number];
@@ -27534,42 +27593,6 @@ export declare const ToggleRadio: {
27534
27593
  displayName: string;
27535
27594
  };
27536
27595
  //#endregion
27537
- //#region src/components/ToggleButton/ToggleButton.types.d.ts
27538
- declare const TOGGLE_BUTTON_SIZES: ["xsmall", "small"];
27539
- type ToggleButtonProps = BaseComponentProps<HTMLInputElement, {
27540
- /**Ledetekst for inputelementet. */
27541
- label?: string;
27542
- /** Ikon. */
27543
- icon?: SvgIcon;
27544
- /**Størrelse.
27545
- * @default 'small'
27546
- */
27547
- size?: (typeof TOGGLE_BUTTON_SIZES)[number];
27548
- } & CheckboxPickedHTMLAttributes, InputHTMLAttributes<HTMLInputElement>>;
27549
- //#endregion
27550
- //#region src/components/ToggleButton/ToggleButton.d.ts
27551
- export declare const ToggleButton: {
27552
- ({ id, label, icon, size, className, style, htmlProps, ...rest }: ToggleButtonProps): import("react").JSX.Element;
27553
- displayName: string;
27554
- };
27555
- //#endregion
27556
- //#region src/components/ToggleButton/ToggleButtonGroup.d.ts
27557
- type Direction$1 = 'row' | 'column';
27558
- export type ToggleButtonGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, {
27559
- /** Ledetekst for gruppen. */
27560
- label?: string;
27561
- /**Retningen barna legger seg i.
27562
- * @default "row"
27563
- */
27564
- direction?: Direction$1;
27565
- /** Custom `id` for ledetekst. Blir generert som default for å knytte ledetekst til gruppen. */
27566
- labelId?: string;
27567
- }>;
27568
- export declare const ToggleButtonGroup: {
27569
- (props: ToggleButtonGroupProps): import("react").JSX.Element;
27570
- displayName: string;
27571
- };
27572
- //#endregion
27573
27596
  //#region src/components/Tooltip/Tooltip.d.ts
27574
27597
  type AnchorElement = ReactElement<HTMLAttributes<HTMLElement> & {
27575
27598
  ref: Ref<HTMLElement>;
@@ -27604,5 +27627,5 @@ export declare const VisuallyHidden: {
27604
27627
  displayName: string;
27605
27628
  };
27606
27629
  //#endregion
27607
- export { type BadgeInComponentProps, type BadgeProps, type BadgePurpose, type BadgeSize, Bleed$1 as Bleed, type BleedProps, type Breakpoint, type ButtonProps, type ButtonPurpose, type ButtonSize, type CalendarProps, type CardProps, type CardSelectableProps, type DatePickerProps, type DdsTheme, type DrawerPlacement, type DrawerProps, type DrawerSize, type ErrorSummaryItemProps, type ErrorSummaryProps, type FavStarProps, type GlobalMessageProps, type GlobalMessagePurpose, type IconPosition, type IconProps, type IconSize, type InlineEditInputProps, type InlineEditSelectProps, type InlineEditTextAreaProps, type NewsPopoverProps, type ParagraphProps, type PhoneInputProps, type ProgressBarProps, type ProgressBarSize, type Purpose, type RadioButtonProps, type RadioValue, type ResponsiveProps, type ResponsiveStackProps, Search, type SearchAutocompleteWrapperProps, type SearchData, type SearchProps, type SearchSuggestionsProps, type Size$1 as Size, type SortOrder, type SpacingScale, type SvgIcon, type SvgProps, 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, type TabsProps, type TagAppearance, type TagColor, type TagProps, type TagPurpose, type TagSize, type TimePickerProps, type ToggleBarProps, type ToggleBarSize, type ToggleBarValue, type ToggleButtonProps, type ToggleProps, type ToggleSize, type WeightedSearchData, type ZIndex, index_d_exports as icons };
27630
+ export { type BadgeInComponentProps, type BadgeProps, type BadgePurpose, type BadgeSize, Bleed$1 as Bleed, type BleedProps, type Breakpoint, type ButtonProps, type ButtonPurpose, type ButtonSize, type CalendarProps, type CardProps, type CardSelectableProps, Chip, type ChipButtonProps, type ChipCheckboxProps, type ChipGroupProps, type ChipRadioProps, type ChipRemovableProps, type ChipSize, type DatePickerProps, type DdsTheme, type DrawerPlacement, type DrawerProps, type DrawerSize, type ErrorSummaryItemProps, type ErrorSummaryProps, type FavStarProps, type GlobalMessageProps, type GlobalMessagePurpose, type IconPosition, type IconProps, type IconSize, type InlineEditInputProps, type InlineEditSelectProps, type InlineEditTextAreaProps, type NewsPopoverProps, type ParagraphProps, type PhoneInputProps, type ProgressBarProps, type ProgressBarSize, type Purpose, type RadioButtonProps, type RadioValue, type ResponsiveProps, type ResponsiveStackProps, Search, type SearchAutocompleteWrapperProps, type SearchData, type SearchProps, type SearchSuggestionsProps, type SelectionControlSize, type Size$1 as Size, type SortOrder, type SpacingScale, type SvgIcon, type SvgProps, 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, type TabsProps, type TagAppearance, type TagColor, type TagProps, type TagPurpose, type TagSize, type TimePickerProps, type ToggleBarProps, type ToggleBarSize, type ToggleBarValue, type ToggleProps, type ToggleSize, type WeightedSearchData, type ZIndex, index_d_exports as icons };
27608
27631
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.mts CHANGED
@@ -25577,6 +25577,8 @@ export declare const ButtonGroup: {
25577
25577
  };
25578
25578
  //#endregion
25579
25579
  //#region src/components/SelectionControl/common/SelectionControl.types.d.ts
25580
+ declare const SELECTION_CONTROL_SIZES: ["small", "medium"];
25581
+ type SelectionControlSize = (typeof SELECTION_CONTROL_SIZES)[number];
25580
25582
  interface SelectionControlCommonProps {
25581
25583
  /**Ledetekst for alternativet. */
25582
25584
  label?: string;
@@ -25588,6 +25590,10 @@ interface SelectionControlCommonProps {
25588
25590
  readOnly?: boolean;
25589
25591
  /**Barn. Brukes når komponenten skal ha unik layout eller lignende. */
25590
25592
  children?: ReactNode;
25593
+ /**Størrelsen på komponenten.
25594
+ * @default "medium"
25595
+ */
25596
+ size?: SelectionControlSize;
25591
25597
  }
25592
25598
  interface SelectionControlGroupCommonProps {
25593
25599
  /**Ledetekst for gruppen. */
@@ -25606,6 +25612,10 @@ interface SelectionControlGroupCommonProps {
25606
25612
  readOnly?: boolean;
25607
25613
  /**Meldingen som vises ved valideringsfeil. Gir error-tilstand til barna og setter `aria-describedby` for barna. */
25608
25614
  errorMessage?: string;
25615
+ /**Størrelsen på elementene i gruppen.
25616
+ * @default "medium"
25617
+ */
25618
+ size?: SelectionControlSize;
25609
25619
  }
25610
25620
  //#endregion
25611
25621
  //#region src/components/SelectionControl/Checkbox/Checkbox.types.d.ts
@@ -25618,7 +25628,7 @@ export type CheckboxProps = BaseComponentProps<HTMLInputElement, SelectionContro
25618
25628
  //#endregion
25619
25629
  //#region src/components/SelectionControl/Checkbox/Checkbox.d.ts
25620
25630
  export declare const Checkbox: {
25621
- ({ id, name, label, error, disabled, readOnly, indeterminate, "aria-describedby": ariaDescribedby, className, htmlProps, style, children, ...rest }: CheckboxProps): import("react").JSX.Element;
25631
+ ({ id, name, label, error, disabled, readOnly, indeterminate, "aria-describedby": ariaDescribedby, className, htmlProps, style, children, size, ...rest }: CheckboxProps): import("react").JSX.Element;
25622
25632
  displayName: string;
25623
25633
  };
25624
25634
  //#endregion
@@ -25736,25 +25746,98 @@ export declare const CardSelectableGroup: {
25736
25746
  displayName: string;
25737
25747
  };
25738
25748
  //#endregion
25749
+ //#region src/components/SelectionControl/RadioButton/RadioButton.d.ts
25750
+ export declare const RadioButton: {
25751
+ ({ id, name, label, disabled, readOnly, error, checked, value, children, required, onChange, "aria-describedby": ariaDescribedby, className, htmlProps, size, style, ...rest }: RadioButtonProps): import("react").JSX.Element;
25752
+ displayName: string;
25753
+ };
25754
+ //#endregion
25755
+ //#region src/components/SelectionControl/RadioButton/RadioButtonGroup.d.ts
25756
+ export type RadioButtonGroupProps<T extends string | number> = BaseComponentPropsWithChildren<HTMLDivElement, SelectionControlGroupCommonProps & {
25757
+ /** Gir alle barna `name` prop.*/
25758
+ name?: string;
25759
+ /**Funksjonen for onChange-event for barna. */
25760
+ onChange?: (event: ChangeEvent<HTMLInputElement>, value: T | undefined) => void;
25761
+ /** Gjør alle barna påkrevd ved å gi dem `required` prop. Legger en markør (*) bak ledeteksten. */
25762
+ required?: boolean;
25763
+ /**Verdi - en `<RadioButton>` med denne verdien blir valgt med controlled state. */
25764
+ value?: T | undefined;
25765
+ /**Default verdi - en `<RadioButton>` med denne verdien blir forhåndsvalgt med uncontrolled state. */
25766
+ defaultValue?: T | undefined;
25767
+ }>;
25768
+ export declare const RadioButtonGroup: {
25769
+ <T extends string | number = string>({ name, label, groupId, errorMessage, tip, disabled, readOnly, direction, value, defaultValue, children, required, onChange, size, id, className, style, htmlProps, ...rest }: RadioButtonGroupProps<T>): import("react").JSX.Element;
25770
+ displayName: string;
25771
+ };
25772
+ //#endregion
25739
25773
  //#region src/components/Chip/Chip.d.ts
25740
- export type ChipProps = BaseComponentProps<HTMLDivElement, {
25741
- /** Teksten som vises i komponenten. */
25742
- children?: string;
25743
- /** Ekstra logikk når `<Chip>` lukkes. */
25744
- onClose?: () => void;
25774
+ declare const CHIP_SIZES: ["small", "medium"];
25775
+ type ChipSize = (typeof CHIP_SIZES)[number];
25776
+ type ChipType = 'button' | 'span' | typeof RadioButton | typeof Checkbox;
25777
+ type ChipBaseProps<T extends ChipType> = PolymorphicBaseComponentProps<T, {
25778
+ /** Størrelse.
25779
+ * @default 'medium'
25780
+ */
25781
+ size?: ChipSize;
25782
+ /** Ikon. Plasseres foran barn. Erstatter markør for valgkontroller i `<ChipCheckbox>` og `<ChipRadio>`. */
25783
+ icon?: SvgIcon;
25745
25784
  }>;
25746
- export declare const Chip: {
25747
- ({ children, onClose, id, className, style, htmlProps, ...rest }: ChipProps): import("react").JSX.Element | null;
25785
+ type ChipCommonProps<T extends ChipType> = Omit<ChipBaseProps<T>, 'as'>;
25786
+ type ChipButtonProps = ChipCommonProps<'button'> & {
25787
+ /**Props for `<Badge>` som vises på knappen. */
25788
+ badgeProps?: BadgeInComponentProps;
25789
+ };
25790
+ type ChipRemovableProps = ChipCommonProps<'span'> & {
25791
+ /** Ekstra logikk når `<ChipRemovable>` lukkes. */
25792
+ onClose?: () => void;
25793
+ };
25794
+ type ChipSelectionControlProps<T extends ExtractStrict<ChipType, typeof RadioButton | typeof Checkbox>> = Omit<ChipCommonProps<T>, 'indeterminate' | 'label' | 'error' | 'readOnly'> & {
25795
+ /** Om valgkontrollen skal vises.
25796
+ * @default true
25797
+ */
25798
+ showSelectionControlIndicator?: boolean;
25799
+ };
25800
+ type ChipCheckboxProps = ChipSelectionControlProps<typeof Checkbox>;
25801
+ type ChipRadioProps = ChipSelectionControlProps<typeof RadioButton>;
25802
+ export declare const ChipButton: {
25803
+ ({ htmlProps, size, id, className, style, children, badgeProps, ...rest }: ChipButtonProps): import("react").JSX.Element;
25804
+ displayName: string;
25805
+ };
25806
+ export declare const ChipCheckbox: {
25807
+ (props: ChipCheckboxProps): import("react").JSX.Element;
25808
+ displayName: string;
25809
+ };
25810
+ export declare const ChipRadio: {
25811
+ (props: ChipRadioProps): import("react").JSX.Element;
25812
+ displayName: string;
25813
+ };
25814
+ export declare const ChipRemovable: {
25815
+ ({ htmlProps, onClose, size, id, className, style, children, ...rest }: ChipRemovableProps): import("react").JSX.Element | null;
25748
25816
  displayName: string;
25749
25817
  };
25750
25818
  //#endregion
25751
25819
  //#region src/components/Chip/ChipGroup.d.ts
25752
- export type ChipGroupProps = ComponentPropsWithRef<'ul'>;
25820
+ type ChipGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, {
25821
+ /** Ledetekst for gruppen. */
25822
+ label?: string;
25823
+ /** Custom `id` for ledetekst. Som default genereres denne for å knytte ledetekst til gruppen. */
25824
+ labelId?: string;
25825
+ } & Pick<ResponsiveProps, 'gap' | 'flexWrap'>>;
25753
25826
  export declare const ChipGroup: {
25754
- ({ children, ...rest }: ChipGroupProps): import("react").JSX.Element;
25827
+ (props: ChipGroupProps): import("react").JSX.Element;
25755
25828
  displayName: string;
25756
25829
  };
25757
25830
  //#endregion
25831
+ //#region src/components/Chip/index.d.ts
25832
+ interface ChipCompoundProps {
25833
+ Group: typeof ChipGroup;
25834
+ Button: typeof ChipButton;
25835
+ Checkbox: typeof ChipCheckbox;
25836
+ Radio: typeof ChipRadio;
25837
+ Removable: typeof ChipRemovable;
25838
+ }
25839
+ declare const Chip: ChipCompoundProps;
25840
+ //#endregion
25758
25841
  //#region src/components/CookieBanner/CookieBannerCheckbox.d.ts
25759
25842
  export type CookieBannerCheckboxProps = Omit<CheckboxProps, 'label' | 'children'> & {
25760
25843
  /**Header - kort oppsummering av den spesifikke typen informasjonskapsel. */
@@ -27081,30 +27164,6 @@ export declare const NativeSelect: ({ ref, id, children, componentSize, label, m
27081
27164
  //#region src/components/Select/utils.d.ts
27082
27165
  export declare const createSelectOptions: <TValue extends string | number>(...args: Array<TValue>) => Array<SelectOption<TValue>>;
27083
27166
  //#endregion
27084
- //#region src/components/SelectionControl/RadioButton/RadioButton.d.ts
27085
- export declare const RadioButton: {
27086
- ({ id, name, label, disabled, readOnly, error, checked, value, children, required, onChange, "aria-describedby": ariaDescribedby, className, htmlProps, style, ...rest }: RadioButtonProps): import("react").JSX.Element;
27087
- displayName: string;
27088
- };
27089
- //#endregion
27090
- //#region src/components/SelectionControl/RadioButton/RadioButtonGroup.d.ts
27091
- export type RadioButtonGroupProps<T extends string | number> = BaseComponentPropsWithChildren<HTMLDivElement, SelectionControlGroupCommonProps & {
27092
- /** Gir alle barna `name` prop.*/
27093
- name?: string;
27094
- /**Funksjonen for onChange-event for barna. */
27095
- onChange?: (event: ChangeEvent<HTMLInputElement>, value: T | undefined) => void;
27096
- /** Gjør alle barna påkrevd ved å gi dem `required` prop. Legger en markør (*) bak ledeteksten. */
27097
- required?: boolean;
27098
- /**Verdi - en `<RadioButton>` med denne verdien blir valgt med controlled state. */
27099
- value?: T | undefined;
27100
- /**Default verdi - en `<RadioButton>` med denne verdien blir forhåndsvalgt med uncontrolled state. */
27101
- defaultValue?: T | undefined;
27102
- }>;
27103
- export declare const RadioButtonGroup: {
27104
- <T extends string | number = string>({ name, label, groupId, errorMessage, tip, disabled, readOnly, direction, value, defaultValue, children, required, onChange, id, className, style, htmlProps, ...rest }: RadioButtonGroupProps<T>): import("react").JSX.Element;
27105
- displayName: string;
27106
- };
27107
- //#endregion
27108
27167
  //#region src/components/Skeleton/Skeleton.d.ts
27109
27168
  export type SkeletonProps = {
27110
27169
  /**Hvor runde hjørner skal være. Støtter dds tokens.
@@ -27391,7 +27450,7 @@ export declare const TabPanels: {
27391
27450
  //#region src/components/Tag/Tag.d.ts
27392
27451
  declare const TAG_PURPOSES: ["success", "info", "danger", "warning", "neutral"];
27393
27452
  declare const TAG_SIZES: ["small", "medium"];
27394
- declare const TAG_COLORS: readonly ["teal", "blue", "red", "green", "magenta", "olive", "gray", "brown", "deepblue"];
27453
+ declare const TAG_COLORS: readonly ["teal", "blue", "red", "green", "magenta", "purple", "olive", "gray", "brown", "deepblue"];
27395
27454
  declare const TAG_APPEARANCES: readonly ["outline", "strong", "subtle", "accent-left"];
27396
27455
  type TagPurpose = (typeof TAG_PURPOSES)[number];
27397
27456
  type TagSize = (typeof TAG_SIZES)[number];
@@ -27533,42 +27592,6 @@ export declare const ToggleRadio: {
27533
27592
  displayName: string;
27534
27593
  };
27535
27594
  //#endregion
27536
- //#region src/components/ToggleButton/ToggleButton.types.d.ts
27537
- declare const TOGGLE_BUTTON_SIZES: ["xsmall", "small"];
27538
- type ToggleButtonProps = BaseComponentProps<HTMLInputElement, {
27539
- /**Ledetekst for inputelementet. */
27540
- label?: string;
27541
- /** Ikon. */
27542
- icon?: SvgIcon;
27543
- /**Størrelse.
27544
- * @default 'small'
27545
- */
27546
- size?: (typeof TOGGLE_BUTTON_SIZES)[number];
27547
- } & CheckboxPickedHTMLAttributes, InputHTMLAttributes<HTMLInputElement>>;
27548
- //#endregion
27549
- //#region src/components/ToggleButton/ToggleButton.d.ts
27550
- export declare const ToggleButton: {
27551
- ({ id, label, icon, size, className, style, htmlProps, ...rest }: ToggleButtonProps): import("react").JSX.Element;
27552
- displayName: string;
27553
- };
27554
- //#endregion
27555
- //#region src/components/ToggleButton/ToggleButtonGroup.d.ts
27556
- type Direction$1 = 'row' | 'column';
27557
- export type ToggleButtonGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, {
27558
- /** Ledetekst for gruppen. */
27559
- label?: string;
27560
- /**Retningen barna legger seg i.
27561
- * @default "row"
27562
- */
27563
- direction?: Direction$1;
27564
- /** Custom `id` for ledetekst. Blir generert som default for å knytte ledetekst til gruppen. */
27565
- labelId?: string;
27566
- }>;
27567
- export declare const ToggleButtonGroup: {
27568
- (props: ToggleButtonGroupProps): import("react").JSX.Element;
27569
- displayName: string;
27570
- };
27571
- //#endregion
27572
27595
  //#region src/components/Tooltip/Tooltip.d.ts
27573
27596
  type AnchorElement = ReactElement<HTMLAttributes<HTMLElement> & {
27574
27597
  ref: Ref<HTMLElement>;
@@ -27603,5 +27626,5 @@ export declare const VisuallyHidden: {
27603
27626
  displayName: string;
27604
27627
  };
27605
27628
  //#endregion
27606
- export { type BadgeInComponentProps, type BadgeProps, type BadgePurpose, type BadgeSize, Bleed$1 as Bleed, type BleedProps, type Breakpoint, type ButtonProps, type ButtonPurpose, type ButtonSize, type CalendarProps, type CardProps, type CardSelectableProps, type DatePickerProps, type DdsTheme, type DrawerPlacement, type DrawerProps, type DrawerSize, type ErrorSummaryItemProps, type ErrorSummaryProps, type FavStarProps, type GlobalMessageProps, type GlobalMessagePurpose, type IconPosition, type IconProps, type IconSize, type InlineEditInputProps, type InlineEditSelectProps, type InlineEditTextAreaProps, type NewsPopoverProps, type ParagraphProps, type PhoneInputProps, type ProgressBarProps, type ProgressBarSize, type Purpose, type RadioButtonProps, type RadioValue, type ResponsiveProps, type ResponsiveStackProps, Search, type SearchAutocompleteWrapperProps, type SearchData, type SearchProps, type SearchSuggestionsProps, type Size$1 as Size, type SortOrder, type SpacingScale, type SvgIcon, type SvgProps, 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, type TabsProps, type TagAppearance, type TagColor, type TagProps, type TagPurpose, type TagSize, type TimePickerProps, type ToggleBarProps, type ToggleBarSize, type ToggleBarValue, type ToggleButtonProps, type ToggleProps, type ToggleSize, type WeightedSearchData, type ZIndex, index_d_exports as icons };
27629
+ export { type BadgeInComponentProps, type BadgeProps, type BadgePurpose, type BadgeSize, Bleed$1 as Bleed, type BleedProps, type Breakpoint, type ButtonProps, type ButtonPurpose, type ButtonSize, type CalendarProps, type CardProps, type CardSelectableProps, Chip, type ChipButtonProps, type ChipCheckboxProps, type ChipGroupProps, type ChipRadioProps, type ChipRemovableProps, type ChipSize, type DatePickerProps, type DdsTheme, type DrawerPlacement, type DrawerProps, type DrawerSize, type ErrorSummaryItemProps, type ErrorSummaryProps, type FavStarProps, type GlobalMessageProps, type GlobalMessagePurpose, type IconPosition, type IconProps, type IconSize, type InlineEditInputProps, type InlineEditSelectProps, type InlineEditTextAreaProps, type NewsPopoverProps, type ParagraphProps, type PhoneInputProps, type ProgressBarProps, type ProgressBarSize, type Purpose, type RadioButtonProps, type RadioValue, type ResponsiveProps, type ResponsiveStackProps, Search, type SearchAutocompleteWrapperProps, type SearchData, type SearchProps, type SearchSuggestionsProps, type SelectionControlSize, type Size$1 as Size, type SortOrder, type SpacingScale, type SvgIcon, type SvgProps, 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, type TabsProps, type TagAppearance, type TagColor, type TagProps, type TagPurpose, type TagSize, type TimePickerProps, type ToggleBarProps, type ToggleBarSize, type ToggleBarValue, type ToggleProps, type ToggleSize, type WeightedSearchData, type ZIndex, index_d_exports as icons };
27607
27630
  //# sourceMappingURL=index.d.mts.map